{
  "openapi": "3.1.0",
  "info": {
    "title": "Api",
    "version": "0.0.1"
  },
  "paths": {
    "/instance/dispose": {
      "post": {
        "tags": ["top-level"],
        "operationId": "instance.dispose",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "InstanceDisposeResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InstanceDisposeResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.instance.dispose({\n  ...\n})"
          }
        ]
      }
    },
    "/path": {
      "get": {
        "tags": ["top-level"],
        "operationId": "path.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Path",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Path"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.path.get({\n  ...\n})"
          }
        ]
      }
    },
    "/vcs": {
      "get": {
        "tags": ["top-level"],
        "operationId": "vcs.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "VcsInfo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VcsInfo"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.vcs.get({\n  ...\n})"
          }
        ]
      }
    },
    "/vcs/status": {
      "get": {
        "tags": ["top-level"],
        "operationId": "vcs.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VcsFileStatus"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.vcs.status({\n  ...\n})"
          }
        ]
      }
    },
    "/vcs/diff/raw": {
      "get": {
        "tags": ["top-level"],
        "operationId": "vcs.diff.raw",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/x-diff; charset=utf-8": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.vcs.diff.raw({\n  ...\n})"
          }
        ]
      }
    },
    "/vcs/apply": {
      "post": {
        "tags": ["top-level"],
        "operationId": "vcs.apply",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "VcsApplyResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VcsApplyResult"
                }
              }
            }
          },
          "400": {
            "description": "VcsApplyError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VcsApplyError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VcsApplyInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.vcs.apply({\n  ...\n})"
          }
        ]
      }
    },
    "/command": {
      "get": {
        "tags": ["top-level"],
        "operationId": "command.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Command"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.command.list({\n  ...\n})"
          }
        ]
      }
    },
    "/agent": {
      "get": {
        "tags": ["top-level"],
        "operationId": "app.agents",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Agent"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.app.agents({\n  ...\n})"
          }
        ]
      }
    },
    "/skill": {
      "get": {
        "tags": ["top-level"],
        "operationId": "app.skills",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Skill"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.app.skills({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["app"],
        "operationId": "app.skill.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "AppSkillInfo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSkillInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppSkillCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.app.skill.create({\n  ...\n})"
          }
        ]
      }
    },
    "/lsp": {
      "get": {
        "tags": ["top-level"],
        "operationId": "lsp.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LSPStatus"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.lsp.status({\n  ...\n})"
          }
        ]
      }
    },
    "/formatter": {
      "get": {
        "tags": ["top-level"],
        "operationId": "formatter.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FormatterStatus"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.formatter.status({\n  ...\n})"
          }
        ]
      }
    },
    "/analytics/global": {
      "get": {
        "tags": ["analytics"],
        "operationId": "analytics.global",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "AnalyticsGlobal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsGlobal"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.analytics.global({\n  ...\n})"
          }
        ]
      }
    },
    "/analytics/daily": {
      "get": {
        "tags": ["analytics"],
        "operationId": "analytics.daily",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "days",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnalyticsDaily"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.analytics.daily({\n  ...\n})"
          }
        ]
      }
    },
    "/analytics/session/{sessionID}": {
      "get": {
        "tags": ["analytics"],
        "operationId": "analytics.session",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "AnalyticsSession",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsSession"
                }
              }
            }
          },
          "404": {
            "description": "AnalyticsSessionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsSessionNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.analytics.session({\n  ...\n})"
          }
        ]
      }
    },
    "/analytics/sessions": {
      "get": {
        "tags": ["analytics"],
        "operationId": "analytics.sessions",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnalyticsSession"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.analytics.sessions({\n  ...\n})"
          }
        ]
      }
    },
    "/analytics/leaderboard": {
      "get": {
        "tags": ["analytics"],
        "operationId": "analytics.leaderboard",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "AnalyticsLeaderboard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsLeaderboard"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.analytics.leaderboard({\n  ...\n})"
          }
        ]
      }
    },
    "/analytics/data": {
      "get": {
        "tags": ["analytics"],
        "operationId": "analytics.data",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "seriesDays",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "AnalyticsData",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsData"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.analytics.data({\n  ...\n})"
          }
        ]
      }
    },
    "/log": {
      "post": {
        "tags": ["app"],
        "operationId": "app.log",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppLogInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.app.log({\n  ...\n})"
          }
        ]
      }
    },
    "/skill/{name}": {
      "delete": {
        "tags": ["app"],
        "operationId": "app.skill.delete",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.app.skill.delete({\n  ...\n})"
          }
        ]
      }
    },
    "/brain": {
      "get": {
        "tags": ["brain"],
        "operationId": "brain.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BrainStatus",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrainStatus"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.brain.status({\n  ...\n})"
          }
        ]
      }
    },
    "/brain/trigger": {
      "post": {
        "tags": ["brain"],
        "operationId": "brain.trigger",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BrainResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrainResult"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrainTriggerInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.brain.trigger({\n  ...\n})"
          }
        ]
      }
    },
    "/chatbot/bots": {
      "get": {
        "tags": ["chatbot"],
        "operationId": "chatbot.bots",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatbotBot"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.chatbot.bots({\n  ...\n})"
          }
        ]
      }
    },
    "/chatbot/bots/{name}/start": {
      "post": {
        "tags": ["chatbot"],
        "operationId": "chatbot.start",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ChatbotStartResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatbotStartResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.chatbot.start({\n  ...\n})"
          }
        ]
      }
    },
    "/chatbot/bots/{name}/stop": {
      "post": {
        "tags": ["chatbot"],
        "operationId": "chatbot.stop",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ChatbotStopResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatbotStopResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.chatbot.stop({\n  ...\n})"
          }
        ]
      }
    },
    "/discord": {
      "get": {
        "tags": ["discord"],
        "operationId": "discord.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "DiscordStatus",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscordStatus"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.discord.status({\n  ...\n})"
          }
        ]
      }
    },
    "/discord/setup": {
      "post": {
        "tags": ["discord"],
        "operationId": "discord.setup",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "DiscordSetupOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscordSetupOutput"
                }
              }
            }
          },
          "400": {
            "description": "DiscordValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscordValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscordSetupInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.discord.setup({\n  ...\n})"
          }
        ]
      }
    },
    "/discord/start": {
      "post": {
        "tags": ["discord"],
        "operationId": "discord.start",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "DiscordStartResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscordStartResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.discord.start({\n  ...\n})"
          }
        ]
      }
    },
    "/discord/stop": {
      "post": {
        "tags": ["discord"],
        "operationId": "discord.stop",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "DiscordStopResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscordStopResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.discord.stop({\n  ...\n})"
          }
        ]
      }
    },
    "/voice/transcribe": {
      "post": {
        "tags": ["voice"],
        "operationId": "voice.transcribe",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "VoiceTranscribeResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceTranscribeResult"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoiceTranscribeInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.voice.transcribe({\n  ...\n})"
          }
        ]
      }
    },
    "/profile": {
      "get": {
        "tags": ["profile"],
        "operationId": "profile.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProfileInfoOrNull",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileInfoOrNull"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.profile.get({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["profile"],
        "operationId": "profile.patch",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProfileInfo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfilePatchInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.profile.patch({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["profile"],
        "operationId": "profile.clear",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProfileDeleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDeleted"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.profile.clear({\n  ...\n})"
          }
        ]
      }
    },
    "/profile/habits": {
      "get": {
        "tags": ["profile"],
        "operationId": "profile.habits",
        "parameters": [
          {
            "name": "worktree",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProfileHabits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileHabits"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.profile.habits({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["profile"],
        "operationId": "profile.clearHabits",
        "parameters": [
          {
            "name": "worktree",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProfileDeleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDeleted"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.profile.clearHabits({\n  ...\n})"
          }
        ]
      }
    },
    "/profile/preview": {
      "get": {
        "tags": ["profile"],
        "operationId": "profile.preview",
        "parameters": [
          {
            "name": "worktree",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProfilePreview",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfilePreview"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.profile.preview({\n  ...\n})"
          }
        ]
      }
    },
    "/config": {
      "get": {
        "tags": ["config"],
        "operationId": "config.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Config",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.config.get({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["config"],
        "operationId": "config.update",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Config",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "400": {
            "description": "ConfigUpdateError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigUpdateError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Config"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.config.update({\n  ...\n})"
          }
        ]
      }
    },
    "/config/providers": {
      "get": {
        "tags": ["config"],
        "operationId": "config.providers",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConfigProviders",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigProviders"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.config.providers({\n  ...\n})"
          }
        ]
      }
    },
    "/connectors": {
      "get": {
        "tags": ["connectors"],
        "operationId": "connectors.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConnectorsStatusOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorsStatusOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.connectors.status({\n  ...\n})"
          }
        ]
      }
    },
    "/connectors/{name}/auth": {
      "post": {
        "tags": ["connectors"],
        "operationId": "connectors.auth.set",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConnectorsSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorsSuccess"
                }
              }
            }
          },
          "400": {
            "description": "ConnectorsValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorsValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectorsAuthInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.connectors.auth.set({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["connectors"],
        "operationId": "connectors.auth.remove",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConnectorsSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorsSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.connectors.auth.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/connectors/invalidate": {
      "post": {
        "tags": ["connectors"],
        "operationId": "connectors.invalidate",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConnectorsSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorsSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectorsInvalidateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.connectors.invalidate({\n  ...\n})"
          }
        ]
      }
    },
    "/doctor": {
      "get": {
        "tags": ["doctor"],
        "operationId": "doctor.run",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "DoctorReport",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorReport"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.doctor.run({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/tool/ids": {
      "get": {
        "tags": ["experimental"],
        "operationId": "tool.ids",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ToolIDs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolIDs"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tool.ids({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/tool": {
      "get": {
        "tags": ["experimental"],
        "operationId": "tool.list",
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "model",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ToolList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tool.list({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/worktree": {
      "post": {
        "tags": ["experimental"],
        "operationId": "worktree.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Worktree",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Worktree"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorktreeCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.worktree.create({\n  ...\n})"
          }
        ]
      },
      "get": {
        "tags": ["experimental"],
        "operationId": "worktree.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "WorktreeList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorktreeList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.worktree.list({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["experimental"],
        "operationId": "worktree.remove",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorktreeDirectoryInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.worktree.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/worktree/reset": {
      "post": {
        "tags": ["experimental"],
        "operationId": "worktree.reset",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorktreeDirectoryInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.worktree.reset({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/resource": {
      "get": {
        "tags": ["experimental"],
        "operationId": "experimental.resource.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "McpResourceMap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResourceMap"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.resource.list({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/managed-worktree": {
      "post": {
        "tags": ["experimental"],
        "operationId": "managed-worktree.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ManagedWorktreeInfo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedWorktreeInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManagedWorktreeCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.managed-worktree.create({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["experimental"],
        "operationId": "managed-worktree.remove",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "null"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManagedWorktreeRemoveInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.managed-worktree.remove({\n  ...\n})"
          }
        ]
      },
      "get": {
        "tags": ["experimental"],
        "operationId": "managed-worktree.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ManagedWorktreeList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedWorktreeList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.managed-worktree.list({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/managed-worktree/link": {
      "post": {
        "tags": ["experimental"],
        "operationId": "managed-worktree.link",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ManagedWorktreeInfo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedWorktreeInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManagedWorktreeLinkInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.managed-worktree.link({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/managed-worktree/children": {
      "get": {
        "tags": ["experimental"],
        "operationId": "managed-worktree.children",
        "parameters": [
          {
            "name": "of",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ManagedWorktreeList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedWorktreeList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.managed-worktree.children({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/managed-worktree/ancestors": {
      "get": {
        "tags": ["experimental"],
        "operationId": "managed-worktree.ancestors",
        "parameters": [
          {
            "name": "of",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ManagedWorktreeList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedWorktreeList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.managed-worktree.ancestors({\n  ...\n})"
          }
        ]
      }
    },
    "/find": {
      "get": {
        "tags": ["file"],
        "operationId": "find.text",
        "parameters": [
          {
            "name": "pattern",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchMatch"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.find.text({\n  ...\n})"
          }
        ]
      }
    },
    "/find/file": {
      "get": {
        "tags": ["file"],
        "operationId": "find.files",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "dirs",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": ["true", "false"]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": ["file", "directory"]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.find.files({\n  ...\n})"
          }
        ]
      }
    },
    "/find/symbol": {
      "get": {
        "tags": ["file"],
        "operationId": "find.symbols",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Symbol"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.find.symbols({\n  ...\n})"
          }
        ]
      }
    },
    "/file": {
      "get": {
        "tags": ["file"],
        "operationId": "file.list",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileNode"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.file.list({\n  ...\n})"
          }
        ]
      }
    },
    "/file/content": {
      "get": {
        "tags": ["file"],
        "operationId": "file.read",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "FileContent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileContent"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.file.read({\n  ...\n})"
          }
        ]
      },
      "put": {
        "tags": ["file"],
        "operationId": "file.write",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "FileWriteResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileWriteResult"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileWritePayload"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.file.write({\n  ...\n})"
          }
        ]
      }
    },
    "/file/status": {
      "get": {
        "tags": ["file"],
        "operationId": "file.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/File"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.file.status({\n  ...\n})"
          }
        ]
      }
    },
    "/global/health": {
      "get": {
        "tags": ["global"],
        "operationId": "global.health",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "GlobalHealth",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalHealth"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.global.health({\n  ...\n})"
          }
        ]
      }
    },
    "/global/dispose": {
      "post": {
        "tags": ["global"],
        "operationId": "global.dispose",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.global.dispose({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp": {
      "get": {
        "tags": ["mcp"],
        "operationId": "mcp.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MCPStatusMap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MCPStatusMap"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.status({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.add",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MCPStatusMap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MCPStatusMap"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpAddPayload"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.add({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp/{name}/auth": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.auth.start",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "McpStartAuthResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpStartAuthResponse"
                }
              }
            }
          },
          "400": {
            "description": "McpOAuthUnsupportedError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpOAuthUnsupportedError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.auth.start({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mcp"],
        "operationId": "mcp.auth.remove",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "McpMutationSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpMutationSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.auth.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp/{name}/auth/callback": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.auth.callback",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MCPStatus",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MCPStatus"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpAuthCallbackPayload"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.auth.callback({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp/{name}/auth/authenticate": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.auth.authenticate",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MCPStatus",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MCPStatus"
                }
              }
            }
          },
          "400": {
            "description": "McpOAuthUnsupportedError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpOAuthUnsupportedError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.auth.authenticate({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp/{name}/connect": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.connect",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.connect({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp/{name}/disconnect": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.disconnect",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.disconnect({\n  ...\n})"
          }
        ]
      }
    },
    "/mcp/{name}/toggle": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcp.toggle",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MCPStatusMap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MCPStatusMap"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpTogglePayload"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mcp.toggle({\n  ...\n})"
          }
        ]
      }
    },
    "/mission": {
      "get": {
        "tags": ["mission"],
        "operationId": "mission.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionListOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionListOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.list({\n  ...\n})"
          }
        ]
      },
      "put": {
        "tags": ["mission"],
        "operationId": "mission.upsert",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MissionValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissionCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.upsert({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/templates": {
      "get": {
        "tags": ["mission"],
        "operationId": "mission.templates",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionTemplatesOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionTemplatesOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.templates({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/generate": {
      "post": {
        "tags": ["mission"],
        "operationId": "mission.generate",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MissionValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissionGenerateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.generate({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/execs/recent": {
      "get": {
        "tags": ["mission"],
        "operationId": "mission.recentExecs",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionExecsOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionExecsOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.recentExecs({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/{id}": {
      "get": {
        "tags": ["mission"],
        "operationId": "mission.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionGetOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionGetOutput"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.get({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mission"],
        "operationId": "mission.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MissionValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionValidationError"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissionUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.update({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mission"],
        "operationId": "mission.delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.delete({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/{id}/start": {
      "post": {
        "tags": ["mission"],
        "operationId": "mission.start",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissionStartInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.start({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/{id}/pause": {
      "post": {
        "tags": ["mission"],
        "operationId": "mission.pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.pause({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/{id}/cancel": {
      "post": {
        "tags": ["mission"],
        "operationId": "mission.cancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.cancel({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/{id}/feature/{featureID}": {
      "post": {
        "tags": ["mission"],
        "operationId": "mission.feature.mutate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "featureID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MissionValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionValidationError"
                }
              }
            }
          },
          "404": {
            "description": "MissionNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissionFeatureMutateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.feature.mutate({\n  ...\n})"
          }
        ]
      }
    },
    "/mission/{id}/execs": {
      "get": {
        "tags": ["mission"],
        "operationId": "mission.execs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MissionExecsOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissionExecsOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mission.execs({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/auth/token": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.auth.token.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileAuthTokenPublic"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.auth.token.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.auth.token.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "info": {
                      "$ref": "#/components/schemas/MobileAuthTokenPublic"
                    }
                  },
                  "required": ["token", "info"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileAuthTokenCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.auth.token.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/auth/token/{id}": {
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.auth.token.revoke",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean"
                    }
                  },
                  "required": ["revoked"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.auth.token.revoke({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/bootstrap": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.bootstrap",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileBootstrap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBootstrap"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.bootstrap({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/command": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.command.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileCommand"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.command.list({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/project": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.project.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileProject"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.project.list({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/memory/history": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.memory.history",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobilePromptHistoryEntry"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.memory.history({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/memory/search": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.memory.search",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileMemorySearchHit"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.memory.search({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/memory/stash": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.memory.stash.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobilePromptStashEntry"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.memory.stash.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.memory.stash.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobilePromptStashEntry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobilePromptStashEntry"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "string"
                  }
                },
                "required": ["input"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.memory.stash.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/memory/stash/{id}": {
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.memory.stash.delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.memory.stash.delete({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.github.repos",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.repos({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/branches": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.github.branches",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGithubBranch"
                  }
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.branches({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/actions/workflows": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.github.actions.workflows",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGithubWorkflow"
                  }
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.actions.workflows({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/actions/runs": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.github.actions.runs",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "branch",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileGithubWorkflowRunList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileGithubWorkflowRunList"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.actions.runs({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/actions/runs/{runID}/jobs": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.github.actions.run.jobs",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "runID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGithubWorkflowJob"
                  }
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.actions.run.jobs({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/actions/runs/{runID}/rerun": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.actions.run.rerun",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "runID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileGithubRerunInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.actions.run.rerun({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/actions/runs/{runID}/cancel": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.actions.run.cancel",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "runID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.actions.run.cancel({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/repos/{owner}/{repo}/actions/workflows/{workflowID}/dispatch": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.actions.workflow.dispatch",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "repo",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "workflowID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileGithubWorkflowDispatchInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.actions.workflow.dispatch({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/imports": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.github.imports",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGithubImport"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.imports({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/oauth/client": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.oauth.clientId.set",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileConfigInfo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileConfigInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string"
                  }
                },
                "required": ["clientId"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.oauth.clientId.set({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/oauth/device": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.oauth.device.start",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileGithubDeviceAuthStart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileGithubDeviceAuthStart"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.oauth.device.start({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/oauth/device/poll": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.oauth.device.poll",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileGithubDeviceAuthPollResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileGithubDeviceAuthPollResult"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "deviceCode": {
                    "type": "string"
                  }
                },
                "required": ["deviceCode"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.oauth.device.poll({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/auth": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.auth.set",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  }
                },
                "required": ["token"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.auth.set({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.github.auth.remove",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.auth.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/import": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.import",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "import": {
                      "$ref": "#/components/schemas/MobileGithubImport"
                    },
                    "project": {
                      "$ref": "#/components/schemas/Project"
                    }
                  },
                  "required": ["import", "project"],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileGithubImportRequest"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.import({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/github/session": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.session.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileGithubSessionCreateResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileGithubSessionCreateResult"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileGithubSessionCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.session.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.session.list",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileSessionSummary"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileSessionCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.session.detail",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSessionDetail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSessionDetail"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.detail({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.session.delete",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.delete({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/diff/{messageID}": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.session.diff",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "messageID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileDiff_2"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.diff({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/command": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.session.command.list",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileCommand"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.command.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.command",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "info": {
                      "$ref": "#/components/schemas/Message_1"
                    },
                    "parts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Part_1"
                      }
                    }
                  },
                  "required": ["info", "parts"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileSessionCommandInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.command({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/message": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.message",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "MobileAccepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileAccepted"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileSessionMessageInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.message({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/abort": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.abort",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.abort({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/permissions/{permissionID}": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.permission.respond",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "permissionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobilePermissionRespondInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.permission.respond({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/question/{requestID}": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.question.respond",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "requestID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "answers": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                },
                "required": ["answers"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.question.respond({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.question.reject",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "requestID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.question.reject({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/publish": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.session.publish",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileGithubPublishResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileGithubPublishResult"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "MobileUnauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileUnauthorized"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileGithubPublishInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.session.publish({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/cleanup": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.github.session.cleanup",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.github.session.cleanup({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/stream": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.session.stream",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": ["id", "event", "data"],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Fail"]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": ["_tag", "error"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Die"]
                            },
                            "defect": {}
                          },
                          "required": ["_tag", "defect"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Interrupt"]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["_tag", "fiberId"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.stream({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/rename": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.rename",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  }
                },
                "required": ["title"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.rename({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/todo": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.session.todo",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "todos": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Todo"
                      }
                    }
                  },
                  "required": ["todos"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.todo({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/teleport/upload": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.teleport.upload.begin",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "uploadID": {
                      "type": "string"
                    }
                  },
                  "required": ["uploadID"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.teleport.upload.begin({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/teleport/upload/{uploadID}": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.teleport.upload.chunk",
        "parameters": [
          {
            "name": "uploadID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": ["ok"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.teleport.upload.chunk({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/teleport": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.teleport",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileTeleportResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileTeleportResult"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileTeleportInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.teleport({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/session/{sessionID}/teleport": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.session.teleport.out",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileTeleportResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileTeleportResult"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileTeleportOutInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.session.teleport.out({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/worktree": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.worktree.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Worktree",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Worktree_2"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileWorktreeCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.worktree.create({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.worktree.remove",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileWorktreeRemoveInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.worktree.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/worktree/reset": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.worktree.reset",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileWorktreeResetInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.worktree.reset({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/status": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.git.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileGitStatus",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileGitStatus"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.status({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/diff": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.git.diff",
        "parameters": [
          {
            "name": "file",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "staged",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": ["true", "false"]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGitFileDiff"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.diff({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/commits": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.git.commits",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGitCommit"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.commits({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/branches": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.git.branches",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileGitBranch"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.branches({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/commit": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.commit",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sha": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": ["sha", "message"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "files": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "amend": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stagedOnly": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["message"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.commit({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/checkout": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.checkout",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "branch": {
                    "type": "string"
                  },
                  "create": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["branch"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.checkout({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/stage": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.stage",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": ["files"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.stage({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/unstage": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.unstage",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": ["files"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.unstage({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/discard": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.discard",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": ["files"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.discard({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/push": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.push",
        "parameters": [
          {
            "name": "upstream",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [true]
                    },
                    "pushed": {
                      "type": "boolean"
                    }
                  },
                  "required": ["success", "pushed"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.push({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/git/pull": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.git.pull",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [true]
                    },
                    "pulled": {
                      "type": "boolean"
                    },
                    "conflicts": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["success", "pulled"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.git.pull({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "loops": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/LoopDefinition"
                      }
                    },
                    "runtimes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileLoopRuntime"
                      }
                    }
                  },
                  "required": ["loops", "runtimes"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileLoopWriteInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/templates": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.templates",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "templates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileLoopTemplate"
                      }
                    }
                  },
                  "required": ["templates"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.templates({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/generate": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.generate",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileLoopGenerateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.generate({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/runs/recent": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.runs.recent",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "runs": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileLoopRun"
                      }
                    }
                  },
                  "required": ["runs"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.runs.recent({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "loop": {
                      "$ref": "#/components/schemas/LoopDefinition"
                    },
                    "runtime": {
                      "$ref": "#/components/schemas/MobileLoopRuntime"
                    }
                  },
                  "required": ["loop", "runtime"],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.get({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.delete({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileLoopWriteInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.update({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}/runs": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.runs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "runs": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileLoopRun"
                      }
                    }
                  },
                  "required": ["runs"],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.runs({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}/run": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.run",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.run({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}/abort": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.abort",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.abort({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}/toggle": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.toggle",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": ["enabled"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.toggle({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}/pause": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.pause({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/loops/{id}/resume": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.loop.resume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.loop.resume({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/routines": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileRoutine"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileRoutine",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileRoutine"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileRoutineCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/routines/{id}": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileRoutine",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileRoutine"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.get({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.delete({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileRoutine",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileRoutine"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileRoutineUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.update({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/routines/{id}/run": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.run",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileRoutineRunInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.run({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/routines/{id}/pause": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileRoutine",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileRoutine"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.pause({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/routines/{id}/resume": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.resume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileRoutine",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileRoutine"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.resume({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/routines/trigger/{token}": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.routine.trigger",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileRoutineTriggerInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.routine.trigger({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/pty": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.pty.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Pty"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.pty.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.pty.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pty"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "command": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "args": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cwd": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "env": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.pty.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/pty/{ptyID}": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.pty.get",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pty"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.pty.get({\n  ...\n})"
          }
        ]
      },
      "put": {
        "tags": ["mobile"],
        "operationId": "mobile.pty.update",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pty"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "size": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "rows": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          "cols": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          }
                        },
                        "required": ["rows", "cols"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.pty.update({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.pty.remove",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.pty.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/pty/{ptyID}/connect": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.pty.connect",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "WebSocket upgrade",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.pty.connect({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "missions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileMissionDefinition"
                      }
                    },
                    "runtimes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileMissionRuntime"
                      }
                    }
                  },
                  "required": ["missions", "runtimes"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileMissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileMissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileMissionWriteInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.create({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/templates": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.templates",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "templates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileMissionTemplate"
                      }
                    }
                  },
                  "required": ["templates"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.templates({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/generate": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.generate",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileMissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileMissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileMissionGenerateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.generate({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/execs/recent": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.execs.recent",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "execs": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileMissionExec"
                      }
                    }
                  },
                  "required": ["execs"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.execs.recent({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/{id}": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission": {
                      "$ref": "#/components/schemas/MobileMissionDefinition"
                    },
                    "runtime": {
                      "$ref": "#/components/schemas/MobileMissionRuntime"
                    }
                  },
                  "required": ["mission", "runtime"],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.get({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileMissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileMissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileMissionUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.update({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.delete({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/{id}/execs": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.execs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "execs": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MobileMissionExec"
                      }
                    }
                  },
                  "required": ["execs"],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.execs({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/{id}/start": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.start",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.start({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/{id}/pause": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.pause({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/{id}/cancel": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.cancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileSuccess"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.cancel({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/missions/{id}/feature/{featureID}": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.mission.feature.mutate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "featureID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileMissionDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileMissionDefinition"
                }
              }
            }
          },
          "400": {
            "description": "MobileBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBadRequest"
                }
              }
            }
          },
          "404": {
            "description": "MobileNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileMissionFeatureMutateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.mission.feature.mutate({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/events": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.events",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": ["id", "event", "data"],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Fail"]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": ["_tag", "error"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Die"]
                            },
                            "defect": {}
                          },
                          "required": ["_tag", "defect"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Interrupt"]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["_tag", "fiberId"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.events({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/brain": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.brain.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "memoryEnabled": {
                      "type": "boolean"
                    },
                    "minHours": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "minSessions": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "lastBrainAt": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "hoursSinceLastBrain": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "sessionsSinceLastBrain": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "shouldTrigger": {
                      "type": "boolean"
                    },
                    "model": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "providerID": {
                              "type": "string"
                            },
                            "modelID": {
                              "type": "string"
                            }
                          },
                          "required": ["providerID", "modelID"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "memoryEnabled",
                    "minHours",
                    "minSessions",
                    "lastBrainAt",
                    "hoursSinceLastBrain",
                    "sessionsSinceLastBrain",
                    "shouldTrigger"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.brain.get({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.brain.trigger",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "sessionsReviewed": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "hoursSinceLastBrain": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sessionID": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["success", "sessionsReviewed", "hoursSinceLastBrain"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "force": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.brain.trigger({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/chatbot/bots": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.chatbot.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "bots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "running": {
                            "type": "boolean"
                          },
                          "webhookPath": {
                            "type": "string"
                          }
                        },
                        "required": ["name", "type", "running", "webhookPath"],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": ["bots"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.chatbot.list({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/chatbot/bots/{name}/start": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.chatbot.start",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "running": {
                      "type": "boolean"
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["running"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.chatbot.start({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/chatbot/bots/{name}/stop": {
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.chatbot.stop",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": ["removed"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.chatbot.stop({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/observability": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.observability.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "otlpEndpoint": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["enabled", "otlpEndpoint"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.observability.get({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.observability.set",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "otlpEndpoint": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["enabled", "otlpEndpoint"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": ["enabled"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.observability.set({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/lsp": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.lsp.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "servers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "root": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": ["connected", "error"]
                          }
                        },
                        "required": ["id", "name", "root", "status"],
                        "additionalProperties": false
                      }
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["servers"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.lsp.status({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/fusion": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.fusion.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "presets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "builtin": {
                            "type": "boolean"
                          },
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "required": ["name", "builtin", "enabled"],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": ["presets"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.fusion.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.fusion.set",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": ["name", "enabled"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": ["name", "enabled"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.fusion.set({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/host/browser": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.host.browser",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sessions": {
                      "anyOf": [
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["available"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.browser({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/host/computer": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.host.computer",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "platform": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "screenshot": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "input": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "detail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["available"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.computer({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/host/herdr": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.host.herdr.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "installed": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["available"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.herdr.get({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.host.herdr.set",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "installed": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["available"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": ["enabled"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.herdr.set({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/host/island": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.host.island",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "supported": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "appRunning": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sessions": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["available"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.island({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/host/devtools": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.host.devtools",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rss": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "heapUsed": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "heapTotal": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "external": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pid": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "uptimeSec": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "platform": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["available"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.devtools({\n  ...\n})"
          }
        ]
      }
    },
    "/mobile/host/lan": {
      "get": {
        "tags": ["mobile"],
        "operationId": "mobile.host.lan.get",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileHostLan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileHostLan"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.lan.get({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["mobile"],
        "operationId": "mobile.host.lan.start",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MobileHostLan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileHostLan"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileHostLanStartInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.mobile.host.lan.start({\n  ...\n})"
          }
        ]
      }
    },
    "/project": {
      "get": {
        "tags": ["project"],
        "operationId": "project.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Project_2"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.list({\n  ...\n})"
          }
        ]
      }
    },
    "/project/current": {
      "get": {
        "tags": ["project"],
        "operationId": "project.current",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Project",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project_2"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.current({\n  ...\n})"
          }
        ]
      }
    },
    "/project/{projectID}": {
      "patch": {
        "tags": ["project"],
        "operationId": "project.update",
        "parameters": [
          {
            "name": "projectID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Project",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project_2"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.update({\n  ...\n})"
          }
        ]
      }
    },
    "/project/{projectID}/directory": {
      "get": {
        "tags": ["project"],
        "operationId": "project.directory.list",
        "parameters": [
          {
            "name": "projectID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectDirectory"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.directory.list({\n  ...\n})"
          }
        ]
      }
    },
    "/project/{projectID}/copy": {
      "post": {
        "tags": ["project"],
        "operationId": "project.copy.create",
        "parameters": [
          {
            "name": "projectID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProjectCopy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCopy"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCopyCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.copy.create({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["project"],
        "operationId": "project.copy.remove",
        "parameters": [
          {
            "name": "projectID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCopyRemoveInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.copy.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/project/{projectID}/copy/refresh": {
      "post": {
        "tags": ["project"],
        "operationId": "project.copy.refresh",
        "parameters": [
          {
            "name": "projectID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProjectCopyRefresh",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCopyRefresh"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.project.copy.refresh({\n  ...\n})"
          }
        ]
      }
    },
    "/provider": {
      "get": {
        "tags": ["provider"],
        "operationId": "provider.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProviderList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.provider.list({\n  ...\n})"
          }
        ]
      }
    },
    "/provider/auth": {
      "get": {
        "tags": ["provider"],
        "operationId": "provider.auth",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProviderAuthMethods",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthMethods"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.provider.auth({\n  ...\n})"
          }
        ]
      }
    },
    "/provider/{providerID}/api": {
      "post": {
        "tags": ["provider"],
        "operationId": "provider.api.set",
        "parameters": [
          {
            "name": "providerID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProviderMutationSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderMutationSuccess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderApiPayload"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.provider.api.set({\n  ...\n})"
          }
        ]
      }
    },
    "/provider/{providerID}/auth": {
      "delete": {
        "tags": ["provider"],
        "operationId": "provider.auth.remove",
        "parameters": [
          {
            "name": "providerID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ProviderMutationSuccess",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderMutationSuccess"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.provider.auth.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/provider/{providerID}/oauth/authorize": {
      "post": {
        "tags": ["provider"],
        "operationId": "provider.oauth.authorize",
        "parameters": [
          {
            "name": "providerID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ProviderOAuthAuthorization"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderOAuthAuthorizeInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.provider.oauth.authorize({\n  ...\n})"
          }
        ]
      }
    },
    "/provider/{providerID}/oauth/callback": {
      "post": {
        "tags": ["provider"],
        "operationId": "provider.oauth.callback",
        "parameters": [
          {
            "name": "providerID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderOAuthCallbackInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.provider.oauth.callback({\n  ...\n})"
          }
        ]
      }
    },
    "/question": {
      "get": {
        "tags": ["question"],
        "operationId": "question.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionRequest_1"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.question.list({\n  ...\n})"
          }
        ]
      }
    },
    "/question/{requestID}/reply": {
      "post": {
        "tags": ["question"],
        "operationId": "question.reply",
        "parameters": [
          {
            "name": "requestID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionReply"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.question.reply({\n  ...\n})"
          }
        ]
      }
    },
    "/question/{requestID}/reject": {
      "post": {
        "tags": ["question"],
        "operationId": "question.reject",
        "parameters": [
          {
            "name": "requestID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.question.reject({\n  ...\n})"
          }
        ]
      }
    },
    "/permission": {
      "get": {
        "tags": ["permission"],
        "operationId": "permission.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PermissionRequest_1"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.permission.list({\n  ...\n})"
          }
        ]
      }
    },
    "/permission/blocked": {
      "get": {
        "tags": ["permission"],
        "operationId": "permission.blocked",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PermissionBlocked"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.permission.blocked({\n  ...\n})"
          }
        ]
      }
    },
    "/permission/{requestID}/reply": {
      "post": {
        "tags": ["permission"],
        "operationId": "permission.reply",
        "parameters": [
          {
            "name": "requestID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PermissionReplyInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.permission.reply({\n  ...\n})"
          }
        ]
      }
    },
    "/pty": {
      "get": {
        "tags": ["pty"],
        "operationId": "pty.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "PtyList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PtyList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.pty.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["pty"],
        "operationId": "pty.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pty_1"
                }
              }
            }
          },
          "400": {
            "description": "PtyCreateErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PtyCreateErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PtyCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.pty.create({\n  ...\n})"
          }
        ]
      }
    },
    "/pty/{ptyID}": {
      "get": {
        "tags": ["pty"],
        "operationId": "pty.get",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pty_1"
                }
              }
            }
          },
          "404": {
            "description": "PtyNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PtyNotFoundError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.pty.get({\n  ...\n})"
          }
        ]
      },
      "put": {
        "tags": ["pty"],
        "operationId": "pty.update",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pty_1"
                }
              }
            }
          },
          "404": {
            "description": "PtyNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PtyNotFoundError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PtyUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.pty.update({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["pty"],
        "operationId": "pty.remove",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.pty.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/loop": {
      "get": {
        "tags": ["loop"],
        "operationId": "loop.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopListOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopListOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.list({\n  ...\n})"
          }
        ]
      },
      "put": {
        "tags": ["loop"],
        "operationId": "loop.upsert",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "400": {
            "description": "LoopValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoopCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.upsert({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/templates": {
      "get": {
        "tags": ["loop"],
        "operationId": "loop.templates",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopTemplatesOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopTemplatesOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.templates({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/generate": {
      "post": {
        "tags": ["loop"],
        "operationId": "loop.generate",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "400": {
            "description": "LoopValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoopGenerateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.generate({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/runs/recent": {
      "get": {
        "tags": ["loop"],
        "operationId": "loop.recentRuns",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopRunsOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopRunsOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.recentRuns({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}": {
      "get": {
        "tags": ["loop"],
        "operationId": "loop.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopGetOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopGetOutput"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.get({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["loop"],
        "operationId": "loop.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "400": {
            "description": "LoopValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopValidationError"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoopUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.update({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["loop"],
        "operationId": "loop.delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.delete({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}/toggle": {
      "post": {
        "tags": ["loop"],
        "operationId": "loop.toggle",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopDefinition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopDefinition"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoopToggleInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.toggle({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}/run": {
      "post": {
        "tags": ["loop"],
        "operationId": "loop.run",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoopRunInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.run({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}/abort": {
      "post": {
        "tags": ["loop"],
        "operationId": "loop.abort",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.abort({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}/pause": {
      "post": {
        "tags": ["loop"],
        "operationId": "loop.pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.pause({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}/resume": {
      "post": {
        "tags": ["loop"],
        "operationId": "loop.resume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopBooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "LoopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.resume({\n  ...\n})"
          }
        ]
      }
    },
    "/loop/{id}/runs": {
      "get": {
        "tags": ["loop"],
        "operationId": "loop.runs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "LoopRunsOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoopRunsOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.loop.runs({\n  ...\n})"
          }
        ]
      }
    },
    "/session": {
      "get": {
        "tags": ["session"],
        "operationId": "session.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "roots",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.list({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["session"],
        "operationId": "session.create",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.create({\n  ...\n})"
          }
        ]
      }
    },
    "/session/status": {
      "get": {
        "tags": ["session"],
        "operationId": "session.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionStatusMap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionStatusMap"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.status({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}": {
      "get": {
        "tags": ["session"],
        "operationId": "session.get",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.get({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["session"],
        "operationId": "session.delete",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.delete({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["session"],
        "operationId": "session.update",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionUpdateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.update({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/fork": {
      "post": {
        "tags": ["session"],
        "operationId": "session.fork",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionForkInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.fork({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/abort": {
      "post": {
        "tags": ["session"],
        "operationId": "session.abort",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.abort({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/revert": {
      "post": {
        "tags": ["session"],
        "operationId": "session.revert",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionRevertInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.revert({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/unrevert": {
      "post": {
        "tags": ["session"],
        "operationId": "session.unrevert",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.unrevert({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/share": {
      "post": {
        "tags": ["session"],
        "operationId": "session.share",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.share({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["session"],
        "operationId": "session.unshare",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session_2"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.unshare({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/summarize": {
      "post": {
        "tags": ["session"],
        "operationId": "session.summarize",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionSummarizeInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.summarize({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/generate": {
      "post": {
        "tags": ["session"],
        "operationId": "session.generate",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionGenerateResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionGenerateResult"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "422": {
            "description": "SessionGenerateError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionGenerateError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionGenerateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.generate({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/command": {
      "post": {
        "tags": ["session"],
        "operationId": "session.command",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MessageWithParts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageWithParts"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionCommandInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.command({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/shell": {
      "post": {
        "tags": ["session"],
        "operationId": "session.shell",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MessageWithParts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageWithParts"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionShellInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.shell({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/permissions/{permissionID}": {
      "post": {
        "tags": ["session"],
        "operationId": "permission.respond",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "permissionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionPermissionRespondInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.permission.respond({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/children": {
      "get": {
        "tags": ["session"],
        "operationId": "session.children",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.children({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/todo": {
      "get": {
        "tags": ["session"],
        "operationId": "session.todo",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TodoList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TodoList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.todo({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/diff": {
      "get": {
        "tags": ["session"],
        "operationId": "session.diff",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "messageID",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "FileDiffList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDiffList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.diff({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/message": {
      "get": {
        "tags": ["session"],
        "operationId": "session.messages",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MessageList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.messages({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["session-prompt"],
        "operationId": "session.prompt",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionPromptResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionPromptResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionPromptInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.prompt({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/pending": {
      "get": {
        "tags": ["session"],
        "operationId": "session.pending",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionPendingInputList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionPendingInputList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.pending({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/pending/{pendingID}/steer": {
      "post": {
        "tags": ["session"],
        "operationId": "session.pendingSteer",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "pendingID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionPendingInput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionPendingInput"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.pendingSteer({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/message/{messageID}": {
      "get": {
        "tags": ["session"],
        "operationId": "session.message",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "messageID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "MessageWithParts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageWithParts"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.message({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["session"],
        "operationId": "session.messageRemove",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "messageID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.messageRemove({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/message/{messageID}/part/{partID}": {
      "delete": {
        "tags": ["session"],
        "operationId": "part.delete",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "messageID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "partID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "BooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BooleanResult"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.part.delete({\n  ...\n})"
          }
        ]
      },
      "patch": {
        "tags": ["session"],
        "operationId": "part.update",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "messageID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "partID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part_1"
                }
              }
            }
          },
          "400": {
            "description": "SessionPartMismatchError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionPartMismatchError"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Part_1"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.part.update({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/v2/entries": {
      "get": {
        "tags": ["session"],
        "operationId": "session.v2.entries",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionV2EntryList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionV2EntryList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.v2.entries({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/v2/state": {
      "get": {
        "tags": ["session"],
        "operationId": "session.v2.state",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionV2State",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionV2StateEncoded"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.v2.state({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/v2/events": {
      "get": {
        "tags": ["session"],
        "operationId": "session.v2.events",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionV2EventList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionV2EventList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.v2.events({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/instructions": {
      "get": {
        "tags": ["session"],
        "operationId": "session.instructions",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionInstructionList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionInstructionList"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.instructions({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/context": {
      "get": {
        "tags": ["session"],
        "operationId": "session.context",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionContextBreakdown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionContextBreakdown"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.context({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/context/toggle": {
      "post": {
        "tags": ["session"],
        "operationId": "session.contextToggle",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionContextBreakdown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionContextBreakdown"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionContextToggleInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.contextToggle({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/goal": {
      "get": {
        "tags": ["session"],
        "operationId": "session.goal",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionGoalOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionGoalOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.goal({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/background": {
      "get": {
        "tags": ["session"],
        "operationId": "session.background",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionBackgroundOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBackgroundOutput"
                }
              }
            }
          },
          "404": {
            "description": "SessionBackgroundNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBackgroundNotFound"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.background({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/background/{delegationID}": {
      "get": {
        "tags": ["session"],
        "operationId": "session.background.inspect",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "delegationID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionBackgroundInspectOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBackgroundInspectOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.background.inspect({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/background/{delegationID}/read": {
      "get": {
        "tags": ["session"],
        "operationId": "session.background.read",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "delegationID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.background.read({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/background/{delegationID}/cancel": {
      "post": {
        "tags": ["session"],
        "operationId": "session.background.cancel",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "delegationID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.background.cancel({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/background/{delegationID}/resume": {
      "post": {
        "tags": ["session"],
        "operationId": "session.background.resume",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "delegationID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.background.resume({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/monitor/{monitorID}": {
      "get": {
        "tags": ["session"],
        "operationId": "session.monitor",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "monitorID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionMonitorOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionMonitorOutput"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.monitor({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/monitor/{monitorID}/log": {
      "get": {
        "tags": ["session"],
        "operationId": "session.monitorLog",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "monitorID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lines",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionMonitorLogOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionMonitorLogOutput"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.monitorLog({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/monitor/{monitorID}/cancel": {
      "post": {
        "tags": ["session"],
        "operationId": "session.monitorCancel",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "monitorID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SessionMonitorOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionMonitorOutput"
                }
              }
            }
          },
          "404": {
            "description": "SessionNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionNotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "SessionBusyErrorBody",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionBusyErrorBody"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.monitorCancel({\n  ...\n})"
          }
        ]
      }
    },
    "/account": {
      "get": {
        "tags": ["account"],
        "operationId": "getAccount",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Account / null / session payload, shape depends on the call.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponseEncoded"
                }
              }
            }
          },
          "502": {
            "description": "AccountError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.getAccount({\n  ...\n})"
          }
        ]
      }
    },
    "/account/login": {
      "post": {
        "tags": ["account"],
        "operationId": "postAccountLogin",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Account / null / session payload, shape depends on the call.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponseEncoded"
                }
              }
            }
          },
          "502": {
            "description": "AccountError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postAccountLogin({\n  ...\n})"
          }
        ]
      }
    },
    "/account/login/complete": {
      "post": {
        "tags": ["account"],
        "operationId": "postAccountLoginComplete",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Account / null / session payload, shape depends on the call.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponseEncoded"
                }
              }
            }
          },
          "502": {
            "description": "AccountError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "deviceCode": {
                    "type": "string"
                  },
                  "expiresIn": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["deviceCode"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postAccountLoginComplete({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/event": {
      "post": {
        "tags": ["sync"],
        "operationId": "sync.event.push",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          },
          "401": {
            "description": "UnauthorizedChallenge",
            "headers": {
              "www-authenticate": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "required": false
              }
            }
          },
          "429": {
            "description": "SyncRateLimited",
            "headers": {
              "retry-after": {
                "schema": {
                  "type": "string"
                },
                "required": true
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncEventPushInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.event.push({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/outbox": {
      "get": {
        "tags": ["sync"],
        "operationId": "sync.outbox.list",
        "parameters": [
          {
            "name": "projectID",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Return events with seq > since (default 0)"
            },
            "required": false
          },
          {
            "name": "afterAggregate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "afterID",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SyncOutboxResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncOutboxResponse"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.outbox.list({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/snapshot/{aggregateID}": {
      "get": {
        "tags": ["sync"],
        "operationId": "sync.snapshot.get",
        "parameters": [
          {
            "name": "aggregateID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "projectID",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SyncSnapshotResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncSnapshotResponse"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.snapshot.get({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/stream": {
      "get": {
        "tags": ["sync"],
        "operationId": "sync.event.stream",
        "parameters": [
          {
            "name": "projectID",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "readiness",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Bearer token via query parameter — EventSource cannot send custom headers"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": ["id", "event", "data"],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Fail"]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": ["_tag", "error"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Die"]
                            },
                            "defect": {}
                          },
                          "required": ["_tag", "defect"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Interrupt"]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["_tag", "fiberId"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.event.stream({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/stats": {
      "get": {
        "tags": ["sync"],
        "operationId": "sync.stats",
        "parameters": [
          {
            "name": "projectID",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SyncStatsOutput",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncStatsOutput"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.stats({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/config": {
      "post": {
        "tags": ["sync"],
        "operationId": "sync.config.set",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SyncConfigSetResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncConfigSetResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncConfigSetInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.config.set({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/connect": {
      "post": {
        "tags": ["sync"],
        "operationId": "sync.connect",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.connect({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/disconnect": {
      "post": {
        "tags": ["sync"],
        "operationId": "sync.disconnect",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.disconnect({\n  ...\n})"
          }
        ]
      }
    },
    "/sync/drain": {
      "post": {
        "tags": ["sync"],
        "operationId": "sync.drain",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.sync.drain({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/append-prompt": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.appendPrompt",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          },
          "400": {
            "description": "TuiValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TuiAppendPromptInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.appendPrompt({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/open-help": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.openHelp",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.openHelp({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/open-sessions": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.openSessions",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.openSessions({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/open-themes": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.openThemes",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.openThemes({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/open-models": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.openModels",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.openModels({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/submit-prompt": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.submitPrompt",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.submitPrompt({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/clear-prompt": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.clearPrompt",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.clearPrompt({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/execute-command": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.executeCommand",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          },
          "400": {
            "description": "TuiValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TuiExecuteCommandInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.executeCommand({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/show-toast": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.showToast",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          },
          "400": {
            "description": "TuiValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TuiShowToastInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.showToast({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/publish": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.publish",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          },
          "400": {
            "description": "TuiValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TuiPublishInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.publish({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/select-session": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.selectSession",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          },
          "400": {
            "description": "TuiValidationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiValidationError"
                }
              }
            }
          },
          "404": {
            "description": "TuiNotFoundError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiNotFoundError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TuiSelectSessionInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.selectSession({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/config": {
      "get": {
        "tags": ["tui"],
        "operationId": "tui.config",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiConfig",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiConfig"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.config({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/control/next": {
      "get": {
        "tags": ["tui"],
        "operationId": "tui.control.next",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiControlRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiControlRequest"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.control.next({\n  ...\n})"
          }
        ]
      }
    },
    "/tui/control/response": {
      "post": {
        "tags": ["tui"],
        "operationId": "tui.control.response",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TuiBooleanResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TuiBooleanResult"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TuiControlResponseInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.tui.control.response({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/adaptor": {
      "get": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.adaptor.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceAdaptorInfo"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.adaptor.list({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/sync-list": {
      "post": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.syncList",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.syncList({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/status": {
      "get": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.status",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceConnectionStatus"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.status({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/{id}": {
      "post": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.create",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspace_1"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceCreateInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.create({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OptionalWorkspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionalWorkspace"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace": {
      "get": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.list",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Workspace_1"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.list({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/{id}/restore": {
      "post": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.restore",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "timeoutMs",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "WorkspaceRestore",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceRestore"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.restore({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/{id}/session/{sessionID}/restore": {
      "post": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.session.restore",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "timeoutMs",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "WorkspaceSessionRestore",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceSessionRestore"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.session.restore({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/warp": {
      "post": {
        "tags": ["workspace"],
        "operationId": "experimental.workspace.warp",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceWarpInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.warp({\n  ...\n})"
          }
        ]
      }
    },
    "/auth/{providerID}": {
      "put": {
        "tags": ["auth"],
        "operationId": "auth.set",
        "parameters": [
          {
            "name": "providerID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Auth"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.auth.set({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["auth"],
        "operationId": "auth.remove",
        "parameters": [
          {
            "name": "providerID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.auth.remove({\n  ...\n})"
          }
        ]
      }
    },
    "/config/reload": {
      "post": {
        "tags": ["config-management"],
        "operationId": "config.reload",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConfigReloadResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigReloadResponse"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.config.reload({\n  ...\n})"
          }
        ]
      }
    },
    "/config/mcp": {
      "post": {
        "tags": ["config-management"],
        "operationId": "postConfigMcp",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SuccessFlag",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessFlag"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigMcpAddInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postConfigMcp({\n  ...\n})"
          }
        ]
      }
    },
    "/config/mcp/{name}": {
      "patch": {
        "tags": ["config-management"],
        "operationId": "patchConfigMcp:name",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SuccessFlag",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessFlag"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.patchConfigMcp:name({\n  ...\n})"
          }
        ]
      },
      "delete": {
        "tags": ["config-management"],
        "operationId": "deleteConfigMcp:name",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SuccessFlag",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessFlag"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.deleteConfigMcp:name({\n  ...\n})"
          }
        ]
      }
    },
    "/config/profiles": {
      "get": {
        "tags": ["config-management"],
        "operationId": "getConfigProfiles",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ConfigProfilesList",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigProfilesList"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.getConfigProfiles({\n  ...\n})"
          }
        ]
      },
      "post": {
        "tags": ["config-management"],
        "operationId": "postConfigProfiles",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SuccessFlag",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessFlag"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": ["name"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postConfigProfiles({\n  ...\n})"
          }
        ]
      }
    },
    "/config/profiles/activate/{name}": {
      "post": {
        "tags": ["config-management"],
        "operationId": "postConfigProfilesActivate:name",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "SuccessFlag",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessFlag"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postConfigProfilesActivate:name({\n  ...\n})"
          }
        ]
      }
    },
    "/session/{sessionID}/prompt_async": {
      "post": {
        "tags": ["session-prompt"],
        "operationId": "session.prompt_async",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionPromptInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.session.prompt_async({\n  ...\n})"
          }
        ]
      }
    },
    "/s/{shareID}": {
      "get": {
        "tags": ["share"],
        "operationId": "getS:shareID",
        "parameters": [
          {
            "name": "shareID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "308": {
            "description": "308 redirect to /share/:shareID",
            "headers": {
              "location": {
                "schema": {
                  "type": "string"
                },
                "required": true
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.getS:shareID({\n  ...\n})"
          }
        ]
      }
    },
    "/share/{shareID}": {
      "get": {
        "tags": ["share"],
        "operationId": "getShare:shareID",
        "parameters": [
          {
            "name": "shareID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "ShareData",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareData"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.getShare:shareID({\n  ...\n})"
          }
        ]
      }
    },
    "/api/share/{shareID}": {
      "get": {
        "tags": ["share"],
        "operationId": "getApiShare:shareID",
        "parameters": [
          {
            "name": "shareID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "ShareData",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareData"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.getApiShare:shareID({\n  ...\n})"
          }
        ]
      }
    },
    "/api/share/{shareID}/data": {
      "get": {
        "tags": ["share"],
        "operationId": "getApiShare:shareIDData",
        "parameters": [
          {
            "name": "shareID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "ShareData",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareData"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.getApiShare:shareIDData({\n  ...\n})"
          }
        ]
      }
    },
    "/event": {
      "get": {
        "tags": ["events"],
        "operationId": "event.subscribe",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "$ref": "#/components/schemas/EventEncoded"
                    }
                  },
                  "required": ["id", "event", "data"],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Fail"]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": ["_tag", "error"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Die"]
                            },
                            "defect": {}
                          },
                          "required": ["_tag", "defect"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Interrupt"]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["_tag", "fiberId"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.event.subscribe({\n  ...\n})"
          }
        ]
      }
    },
    "/global/event": {
      "get": {
        "tags": ["events"],
        "operationId": "global.event",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "$ref": "#/components/schemas/GlobalEventEncoded"
                    }
                  },
                  "required": ["id", "event", "data"],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Fail"]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": ["_tag", "error"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Die"]
                            },
                            "defect": {}
                          },
                          "required": ["_tag", "defect"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": ["Interrupt"]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["_tag", "fiberId"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.global.event({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/{id}/events": {
      "get": {
        "tags": ["workspace-extra"],
        "operationId": "experimental.workspace.events",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceJournalEventEncoded"
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.events({\n  ...\n})"
          }
        ]
      }
    },
    "/experimental/workspace/session/{sessionID}/warp": {
      "post": {
        "tags": ["workspace-extra"],
        "operationId": "experimental.workspace.session.warp",
        "parameters": [
          {
            "name": "sessionID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "WorkspaceSessionWarpResponse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceSessionWarpResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceSessionWarpInput"
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.experimental.workspace.session.warp({\n  ...\n})"
          }
        ]
      }
    },
    "/user/register": {
      "post": {
        "tags": ["users"],
        "operationId": "postUserRegister",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "UserSession",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSession"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "displayName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["username", "email", "password"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postUserRegister({\n  ...\n})"
          }
        ]
      }
    },
    "/user/login": {
      "post": {
        "tags": ["users"],
        "operationId": "postUserLogin",
        "parameters": [
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "UserSession",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSession"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                },
                "required": ["email", "password"],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.postUserLogin({\n  ...\n})"
          }
        ]
      }
    },
    "/user/{id}": {
      "patch": {
        "tags": ["users"],
        "operationId": "patchUser:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "PublicUser",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicUser"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "displayName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "password": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "role": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["admin", "user"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.patchUser:id({\n  ...\n})"
          }
        ]
      }
    },
    "/pty/{ptyID}/connect": {
      "get": {
        "tags": ["pty-connect"],
        "operationId": "pty.connect",
        "parameters": [
          {
            "name": "ptyID",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "directory",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "auth_token": []
          },
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "WebSocket upgrade",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "js",
            "source": "import { createNikcliClient } from \"@nikcli-ai/sdk/httpapi\"\n\nconst client = createNikcliClient()\nawait client.pty.connect({\n  ...\n})"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "InstanceDisposeResult": {
        "type": "boolean"
      },
      "Path": {
        "type": "object",
        "properties": {
          "home": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "config": {
            "type": "string"
          },
          "worktree": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["home", "state", "config", "worktree", "directory"],
        "additionalProperties": false
      },
      "VcsInfo": {
        "type": "object",
        "properties": {
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "VcsFileStatus": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["added", "deleted", "modified"]
          }
        },
        "required": ["file", "additions", "deletions", "status"],
        "additionalProperties": false
      },
      "VcsApplyInput": {
        "type": "object",
        "properties": {
          "patch": {
            "type": "string"
          }
        },
        "required": ["patch"],
        "additionalProperties": false
      },
      "VcsApplyResult": {
        "type": "object",
        "properties": {
          "applied": {
            "type": "boolean"
          }
        },
        "required": ["applied"],
        "additionalProperties": false
      },
      "VcsApplyError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["VcsApplyError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": ["message", "reason"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "Command": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mcp": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {},
          "subtask": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "hints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["name", "template", "hints"],
        "additionalProperties": false
      },
      "Agent": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "type": "string",
            "enum": ["subagent", "primary", "all"]
          },
          "native": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "hidden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "topP": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "temperature": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "permission": {
                  "type": "string"
                },
                "pattern": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": ["allow", "deny", "ask"]
                }
              },
              "required": ["permission", "pattern", "action"],
              "additionalProperties": false
            }
          },
          "permissionMode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["default", "auto"]
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "modelID": {
                    "type": "string"
                  },
                  "providerID": {
                    "type": "string"
                  }
                },
                "required": ["modelID", "providerID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "advisor": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "object",
                    "properties": {
                      "modelID": {
                        "type": "string"
                      },
                      "providerID": {
                        "type": "string"
                      }
                    },
                    "required": ["modelID", "providerID"],
                    "additionalProperties": false
                  },
                  "maxUses": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["model"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "type": "object"
          },
          "steps": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "mode", "permission", "options"],
        "additionalProperties": false
      },
      "Skill": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "description", "location"],
        "additionalProperties": false
      },
      "LSPStatus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "root": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["connected", "error"]
          }
        },
        "required": ["id", "name", "root", "status"],
        "additionalProperties": false
      },
      "FormatterStatus": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["name", "extensions", "enabled"],
        "additionalProperties": false
      },
      "AnalyticsTokenBreakdown": {
        "type": "object",
        "properties": {
          "input": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "output": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "reasoning": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheRead": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheWrite": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["input", "output", "reasoning", "cacheRead", "cacheWrite"],
        "additionalProperties": false
      },
      "AnalyticsProviderStat": {
        "type": "object",
        "properties": {
          "sessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "messages": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["sessions", "messages", "tokens", "cost"],
        "additionalProperties": false
      },
      "AnalyticsModelTokens": {
        "type": "object",
        "properties": {
          "input": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "output": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "reasoning": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["input", "output", "reasoning"],
        "additionalProperties": false
      },
      "AnalyticsModelStat": {
        "type": "object",
        "properties": {
          "sessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "messages": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "$ref": "#/components/schemas/AnalyticsModelTokens"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "firstUsed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastUsed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["sessions", "messages", "tokens", "cost", "firstUsed", "lastUsed"],
        "additionalProperties": false
      },
      "AnalyticsProjectStat": {
        "type": "object",
        "properties": {
          "sessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastActive": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["sessions", "tokens", "cost", "lastActive"],
        "additionalProperties": false
      },
      "AnalyticsGlobal": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "enum": [1]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "totals": {
            "type": "object",
            "properties": {
              "sessions": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "messages": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "tokens": {
                "$ref": "#/components/schemas/AnalyticsTokenBreakdown"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "toolCalls": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["sessions", "messages", "tokens", "cost", "toolCalls"],
            "additionalProperties": false
          },
          "byProvider": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/AnalyticsProviderStat"
            }
          },
          "byModel": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/AnalyticsModelStat"
            }
          },
          "byProject": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/AnalyticsProjectStat"
            }
          }
        },
        "required": ["version", "updatedAt", "totals", "byProvider", "byModel", "byProject"],
        "additionalProperties": false
      },
      "AnalyticsDaily": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "sessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "messages": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "$ref": "#/components/schemas/AnalyticsTokenBreakdown"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "toolCalls": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tools": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "calls": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "success": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "error": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["calls", "success", "error"],
              "additionalProperties": false
            }
          },
          "providers": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "messages": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "cost": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["messages", "tokens", "cost"],
              "additionalProperties": false
            }
          },
          "models": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "messages": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "cost": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["messages", "tokens", "cost"],
              "additionalProperties": false
            }
          },
          "recordedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": [
          "date",
          "sessions",
          "messages",
          "tokens",
          "cost",
          "toolCalls",
          "tools",
          "providers",
          "models",
          "recordedAt"
        ],
        "additionalProperties": false
      },
      "AnalyticsSession": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          },
          "projectID": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "providerID": {
            "type": "string"
          },
          "modelID": {
            "type": "string"
          },
          "messages": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "$ref": "#/components/schemas/AnalyticsTokenBreakdown"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "toolCalls": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "completed": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created", "completed"],
            "additionalProperties": false
          }
        },
        "required": [
          "sessionID",
          "projectID",
          "directory",
          "title",
          "providerID",
          "modelID",
          "messages",
          "tokens",
          "cost",
          "toolCalls",
          "duration",
          "time"
        ],
        "additionalProperties": false
      },
      "AnalyticsSessionNotFound": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "enum": ["Session not found"]
          }
        },
        "required": ["error"],
        "additionalProperties": false
      },
      "AnalyticsLeaderboard": {
        "type": "object",
        "properties": {
          "models": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "providerID": {
                  "type": "string"
                },
                "modelID": {
                  "type": "string"
                },
                "sessions": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "messages": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "tokens": {
                  "$ref": "#/components/schemas/AnalyticsModelTokens"
                },
                "cost": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "firstUsed": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "lastUsed": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "totalTokens": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": [
                "key",
                "providerID",
                "modelID",
                "sessions",
                "messages",
                "tokens",
                "cost",
                "firstUsed",
                "lastUsed",
                "totalTokens"
              ],
              "additionalProperties": false
            }
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "sessions": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "messages": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "cost": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["id", "sessions", "messages", "tokens", "cost"],
              "additionalProperties": false
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "sessions": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "cost": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "lastActive": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["id", "sessions", "tokens", "cost", "lastActive"],
              "additionalProperties": false
            }
          }
        },
        "required": ["models", "providers", "projects"],
        "additionalProperties": false
      },
      "AnalyticsDataModelStat": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "tokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "inputTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "outputTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "reasoningTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheReadTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheWriteTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "messages": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "toolCalls": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "costUsd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "pricePerMillion": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "costPerSession": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokensPerSession": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheRatio": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "model",
          "provider",
          "author",
          "tokens",
          "inputTokens",
          "outputTokens",
          "reasoningTokens",
          "cacheReadTokens",
          "cacheWriteTokens",
          "sessions",
          "messages",
          "toolCalls",
          "costUsd",
          "share",
          "pricePerMillion",
          "costPerSession",
          "tokensPerSession",
          "cacheRatio"
        ],
        "additionalProperties": false
      },
      "AnalyticsDataPeriodStat": {
        "type": "object",
        "properties": {
          "month": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "inputTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "outputTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheReadTokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "messages": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "toolCalls": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "costUsd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "models": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "pricePerMillion": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "costPerSession": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "cacheRatio": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "month",
          "tokens",
          "inputTokens",
          "outputTokens",
          "cacheReadTokens",
          "messages",
          "toolCalls",
          "sessions",
          "costUsd",
          "models",
          "pricePerMillion",
          "costPerSession",
          "cacheRatio"
        ],
        "additionalProperties": false
      },
      "AnalyticsData": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "totals": {
                "type": "object",
                "properties": {
                  "tokens": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "inputTokens": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "outputTokens": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "cacheReadTokens": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "sessions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "messages": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "toolCalls": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "costUsd": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "models": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "providers": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "authors": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "pricePerMillion": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "costPerSession": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "tokensPerSession": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "cacheRatio": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "change": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "tokens",
                  "inputTokens",
                  "outputTokens",
                  "cacheReadTokens",
                  "sessions",
                  "messages",
                  "toolCalls",
                  "costUsd",
                  "models",
                  "providers",
                  "authors",
                  "pricePerMillion",
                  "costPerSession",
                  "tokensPerSession",
                  "cacheRatio",
                  "change"
                ],
                "additionalProperties": false
              },
              "models": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AnalyticsDataModelStat"
                }
              },
              "authors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "author": {
                      "type": "string"
                    },
                    "tokens": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "sessions": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "share": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "models": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    }
                  },
                  "required": ["author", "tokens", "sessions", "share", "models"],
                  "additionalProperties": false
                }
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "string"
                    },
                    "byModel": {
                      "type": "object",
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      }
                    },
                    "tokens": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "sessions": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    }
                  },
                  "required": ["day", "byModel", "tokens", "sessions"],
                  "additionalProperties": false
                }
              },
              "months": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AnalyticsDataPeriodStat"
                }
              },
              "lifetime": {
                "$ref": "#/components/schemas/AnalyticsDataPeriodStat"
              },
              "seriesModels": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "windowDays": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "seriesDays": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              },
              "generatedAt": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": [
              "totals",
              "models",
              "authors",
              "series",
              "months",
              "lifetime",
              "seriesModels",
              "windowDays",
              "seriesDays",
              "from",
              "to",
              "generatedAt"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "AppLogInput": {
        "type": "object",
        "properties": {
          "service": {
            "type": "string",
            "description": "Service name for the log entry"
          },
          "level": {
            "type": "string",
            "enum": ["debug", "info", "error", "warn"],
            "description": "Log level"
          },
          "message": {
            "type": "string",
            "description": "Log message"
          },
          "extra": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Additional metadata for the log entry"
          }
        },
        "required": ["service", "level", "message"],
        "additionalProperties": false
      },
      "AppSkillCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Skill name (kebab-case recommended)"
          },
          "description": {
            "type": "string",
            "description": "Short description of the skill"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional category"
          },
          "tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional tags"
          },
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markdown content body"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["workspace", "global"]
              },
              {
                "type": "null"
              }
            ],
            "description": "Where to create the skill (default workspace)"
          }
        },
        "required": ["name", "description"],
        "additionalProperties": false
      },
      "AppSkillInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "description", "location"],
        "additionalProperties": false
      },
      "BrainStatus": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "memoryEnabled": {
            "type": "boolean"
          },
          "minHours": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "minSessions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastBrainAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "hoursSinceLastBrain": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sessionsSinceLastBrain": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "shouldTrigger": {
            "type": "boolean"
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "enabled",
          "memoryEnabled",
          "minHours",
          "minSessions",
          "lastBrainAt",
          "hoursSinceLastBrain",
          "sessionsSinceLastBrain",
          "shouldTrigger"
        ],
        "additionalProperties": false
      },
      "BrainTriggerInput": {
        "type": "object",
        "properties": {
          "force": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "BrainResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "sessionsReviewed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "hoursSinceLastBrain": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["success", "sessionsReviewed", "hoursSinceLastBrain"],
        "additionalProperties": false
      },
      "ChatbotBot": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "running": {
            "type": "boolean"
          },
          "webhookPath": {
            "type": "string"
          }
        },
        "required": ["name", "type", "running", "webhookPath"],
        "additionalProperties": false
      },
      "ChatbotStartResult": {
        "type": "object",
        "properties": {
          "running": {
            "type": "boolean"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["running"],
        "additionalProperties": false
      },
      "ChatbotStopResult": {
        "type": "object",
        "properties": {
          "removed": {
            "type": "boolean"
          }
        },
        "required": ["removed"],
        "additionalProperties": false
      },
      "DiscordStatus": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "running": {
            "type": "boolean"
          },
          "username": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "inviteUrl": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": ["configured", "running"],
        "additionalProperties": false
      },
      "DiscordSetupInput": {
        "type": "object",
        "properties": {
          "botToken": {
            "type": "string"
          }
        },
        "required": ["botToken"],
        "additionalProperties": false
      },
      "DiscordSetupOutput": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "inviteUrl": {
            "type": "string"
          }
        },
        "required": ["username", "clientId", "inviteUrl"],
        "additionalProperties": false
      },
      "DiscordValidationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ValidationError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "DiscordStartResult": {
        "type": "object",
        "properties": {
          "running": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          }
        },
        "required": ["running"],
        "additionalProperties": false
      },
      "DiscordStopResult": {
        "type": "object",
        "properties": {
          "stopped": {
            "type": "boolean"
          }
        },
        "required": ["stopped"],
        "additionalProperties": false
      },
      "VoiceTranscribeInput": {
        "type": "object",
        "properties": {
          "audio": {
            "type": "string"
          },
          "format": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["audio"],
        "additionalProperties": false
      },
      "VoiceTranscribeResult": {
        "type": "object",
        "properties": {
          "transcript": {
            "type": "string"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["transcript"],
        "additionalProperties": false
      },
      "ProfileInfo": {
        "type": "object",
        "properties": {
          "version": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "key": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "about": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "stack": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "expertise": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "learning": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "preferred": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "avoid": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "conventions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "communication": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "verbosity": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["concise", "balanced", "detailed"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "explain": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "custom": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "habits": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["version", "key", "updatedAt"],
        "additionalProperties": false
      },
      "ProfileInfoOrNull": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ProfileInfo"
          },
          {
            "type": "null"
          }
        ]
      },
      "ProfilePatchInput": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "about": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "stack": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "expertise": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "learning": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "preferred": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "avoid": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "conventions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "communication": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "verbosity": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["concise", "balanced", "detailed"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "explain": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "custom": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "habits": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ProfileDeleted": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean"
          }
        },
        "required": ["deleted"],
        "additionalProperties": false
      },
      "ProfileHabits": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          }
        },
        "required": ["content"],
        "additionalProperties": false
      },
      "ProfilePreview": {
        "type": "object",
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "habitsFile": {
            "type": "string"
          }
        },
        "required": ["lines", "habitsFile"],
        "additionalProperties": false
      },
      "KeybindsConfig": {
        "type": "object",
        "properties": {
          "leader": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "app_exit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "editor_open": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "theme_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sidebar_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scrollbar_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "username_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status_view": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_view": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_export": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_new": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_timeline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_fork": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_rename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_delete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_pin_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_scope_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_tab_back": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_tab_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_1": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_3": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_4": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_5": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_6": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_7": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_8": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_9": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "stash_delete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_provider_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_favorite_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_share": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_unshare": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_interrupt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_codebro_open": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask_background": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask_picker": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_compact": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_page_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_page_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_line_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_line_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_half_page_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_half_page_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_first": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_last": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_previous": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_last_user": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_copy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_undo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_redo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_toggle_conceal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tool_details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_recent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_recent_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_favorite": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_favorite_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "command_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_cycle_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "variant_cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_clear": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_paste": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_submit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_newline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_left": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_right": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_left": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_right": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_visual_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_visual_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_visual_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_visual_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_buffer_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_buffer_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_buffer_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_buffer_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_to_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_to_line_start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_backspace": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_undo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_redo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_word_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_word_backward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_word_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_word_backward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_word_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_word_backward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "history_previous": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "history_next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_child_cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_child_cycle_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_parent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_child_close": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_suspend": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_title_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tips_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "voice_record": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "app_support": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "LogLevel": {
        "type": "string",
        "enum": ["DEBUG", "INFO", "WARN", "ERROR"]
      },
      "AdsItemConfig": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "text"],
        "additionalProperties": false
      },
      "AdsConfig": {
        "type": "object",
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "ratio": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AdsItemConfig"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ServerConfig": {
        "type": "object",
        "properties": {
          "port": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "hostname": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mdns": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "cors": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "RemoteConfig": {
        "type": "object",
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "enableTunnel": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["localtunnel", "cloudflared", "ngrok", "remotosh", "none"]
              },
              {
                "type": "null"
              }
            ]
          },
          "askOnExistingSession": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "TeleportConfig": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReferenceConfig": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["git"]
              },
              "repository": {
                "type": "string"
              },
              "branch": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "repository"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["local"]
              },
              "path": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "path"],
            "additionalProperties": false
          }
        ]
      },
      "PermissionActionConfig": {
        "type": "string",
        "enum": ["ask", "allow", "deny"]
      },
      "PermissionObjectConfig": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/PermissionActionConfig"
        }
      },
      "PermissionRuleConfig": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PermissionActionConfig"
          },
          {
            "$ref": "#/components/schemas/PermissionObjectConfig"
          }
        ]
      },
      "PermissionConfig": {
        "type": "object",
        "additionalProperties": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/PermissionRuleConfig"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "PermissionModeConfig": {
        "type": "string",
        "enum": ["default", "auto"]
      },
      "AgentConfig": {
        "type": "object",
        "properties": {
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "temperature": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "top_p": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["subagent", "primary", "all"]
              },
              {
                "type": "null"
              }
            ]
          },
          "hidden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "order": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "maxSteps": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionModeConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "advisor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "advisor_max_uses": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "allOf": [
          {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            }
          }
        ]
      },
      "ProviderConfig": {
        "type": "object",
        "properties": {
          "api": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "env": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "npm": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "family": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "release_date": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attachment": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reasoning": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "temperature": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tool_call": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "interleaved": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "enum": [true]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "enum": ["reasoning_content", "reasoning_details"]
                                }
                              },
                              "required": ["field"],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cost": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "input": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            },
                            "output": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            },
                            "cache_read": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": ["Infinity", "-Infinity", "NaN"]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cache_write": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": ["Infinity", "-Infinity", "NaN"]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "context_over_200k": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "input": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": ["Infinity", "-Infinity", "NaN"]
                                        }
                                      ]
                                    },
                                    "output": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": ["Infinity", "-Infinity", "NaN"]
                                        }
                                      ]
                                    },
                                    "cache_read": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": ["Infinity", "-Infinity", "NaN"]
                                            }
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "cache_write": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": ["Infinity", "-Infinity", "NaN"]
                                            }
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["input", "output"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["input", "output"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "limit": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "context": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            },
                            "input": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": ["Infinity", "-Infinity", "NaN"]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "output": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            }
                          },
                          "required": ["context", "output"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "modalities": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["text", "audio", "image", "video", "pdf"]
                              }
                            },
                            "output": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["text", "audio", "image", "video", "pdf"]
                              }
                            }
                          },
                          "required": ["input", "output"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "experimental": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": ["alpha", "beta", "deprecated"]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "options": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "headers": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "provider": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "npm": {
                              "type": "string"
                            },
                            "api": {
                              "type": "string"
                            }
                          },
                          "required": ["npm", "api"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reasoning_options": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": ["effort"]
                                  },
                                  "values": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                },
                                "required": ["type", "values"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": ["toggle"]
                                  }
                                },
                                "required": ["type"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": ["budget_tokens"]
                                  },
                                  "min": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "max": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": ["type"],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "variants": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "disabled": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "allOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {},
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disabled": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "auth_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "whitelist": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "blacklist": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseURL": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enterpriseUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "setCacheKey": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "headerTimeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chunkTimeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "allOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "McpLocalConfig": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["local"]
          },
          "command": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "environment": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeout": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "command"],
        "additionalProperties": false
      },
      "McpOAuthConfig": {
        "type": "object",
        "properties": {
          "clientId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientSecret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "McpRemoteConfig": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["remote"]
          },
          "url": {
            "type": "string"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "headers": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "oauth": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/McpOAuthConfig"
                  },
                  {
                    "type": "boolean",
                    "enum": [false]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "timeout": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "url"],
        "additionalProperties": false
      },
      "ConnectorFigma": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["figma"]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorSlack": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["slack"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "teamId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorGithub": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["github"]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "oauthClientId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorLovable": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["lovable"]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "apiKey": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorDiscord": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["discord"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorTeams": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["teams"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorGChat": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["gchat"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorLinear": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["linear"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "LayoutConfig": {
        "type": "string",
        "enum": ["auto", "stretch"]
      },
      "AutoModeConfig": {
        "type": "object",
        "properties": {
          "environment": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "allow": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "soft_deny": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "hard_deny": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "classify_all_shell": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "disable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "PolicyStatementConfig": {
        "type": "object",
        "properties": {
          "effect": {
            "type": "string",
            "enum": ["allow", "deny"]
          },
          "action": {
            "type": "string"
          },
          "resource": {
            "type": "string"
          }
        },
        "required": ["effect", "action", "resource"],
        "additionalProperties": false
      },
      "RagConfig": {
        "type": "object",
        "properties": {
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ImageConfig": {
        "type": "object",
        "properties": {
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ComputerConfig": {
        "type": "object",
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["sandbox", "host"]
              },
              {
                "type": "null"
              }
            ]
          },
          "width": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "AttachmentConfig": {
        "type": "object",
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "auto_resize": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_width": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_height": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_base64_bytes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SpeakConfig": {
        "type": "object",
        "properties": {
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "modelId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "outputFormat": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "Config": {
        "type": "object",
        "properties": {
          "$schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "theme": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "language": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "locale": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timezone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "autoDetect": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "replyLanguage": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "keybinds": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/KeybindsConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "logLevel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LogLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "tui": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "scroll_speed": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scroll_acceleration": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "required": ["enabled"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diff_style": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["auto", "stacked"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mouse": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sound": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bg_pulse": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "turn_tokens": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "ads": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdsConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "server": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ServerConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "remote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoteConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "teleport": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TeleportConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "command": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "model": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "subtask": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "aliases": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "reference": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/ReferenceConfig"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "watcher": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "ignore": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "autostart": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "analytics": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "share": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "endpoint": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "share": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["manual", "auto", "disabled"]
              },
              {
                "type": "null"
              }
            ]
          },
          "autoshare": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "autoupdate": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "string",
                    "enum": ["notify"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "disabled_providers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled_providers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "small_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "build": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "allOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AgentConfig"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "plan": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "build": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "general": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "explore": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scout": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "compaction": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "allOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AgentConfig"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/ProviderConfig"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "mcp": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/McpLocalConfig"
                        },
                        {
                          "$ref": "#/components/schemas/McpRemoteConfig"
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["enabled"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "connectors": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ConnectorFigma"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorSlack"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorGithub"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorLovable"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorDiscord"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorTeams"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorGChat"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorLinear"
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["enabled"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "formatter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "boolean",
                    "enum": [false]
                  },
                  {
                    "type": "boolean",
                    "enum": [true]
                  },
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "disabled": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "command": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "extensions": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "websearch": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "provider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["exa", "parallel", "mcp"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "apiKey": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lsp": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "boolean",
                    "enum": [false]
                  },
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean",
                              "enum": [true]
                            }
                          },
                          "required": ["disabled"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "command": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "extensions": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "disabled": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "env": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "initialization": {
                              "anyOf": [
                                {
                                  "type": "object"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "min_severity": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": ["Infinity", "-Infinity", "NaN"]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["command"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "instructions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "layout": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LayoutConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionModeConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoModeConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "allow": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pin": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "eager": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "enterprise": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "compaction": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "auto": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "prune": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reserved": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "experimental": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "policies": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/PolicyStatementConfig"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hook": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "file_edited": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "command": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "environment": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["command"],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "session_completed": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "command": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "environment": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["command"],
                                  "additionalProperties": false
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "queued_message_wrap": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "header": {
                                "type": "string"
                              },
                              "footer": {
                                "type": "string"
                              }
                            },
                            "required": ["header", "footer"],
                            "additionalProperties": false
                          },
                          {
                            "type": "string",
                            "enum": ["default"]
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chatMaxRetries": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "disable_paste_summary": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "batch_tool": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "openTelemetry": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "primary_tools": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "continue_loop_on_deny": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brain": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brainMinHours": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brainMinSessions": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brainModel": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "memory": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcp_timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "task_timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "nativeLlm": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tui": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "cacheEviction": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "messageVirtualization": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "explorationGrouping": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requests": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "latestOnlyLspRefresh": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "events": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "schemaEncoding": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "rag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RagConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "browser": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "computer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ComputerConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttachmentConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "speak": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpeakConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "todo": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "macos": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slack": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "connector": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "channel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "discord": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "webhook": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "icon": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "url": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "alt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "notify": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "macos": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slack": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "connector": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "channel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "discord": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "webhook": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "events": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "sessionIdle": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "sessionError": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "permissionAsked": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "questionAsked": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "idleMinMs": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": ["Infinity", "-Infinity", "NaN"]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimit": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "windowMs": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "maxPerWindow": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retry": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "attempts": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delay": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "factor": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "maxDelay": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "timeoutMs": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "breaker": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "failures": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "cooldownMs": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quietHours": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "start": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "end": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "suppress": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": ["macos", "slack", "discord"]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "mobile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "tophat": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cliPath": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultPlatform": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": ["ios", "android"]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultDestination": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": ["device", "simulator", "emulator"]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoDetect": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "allOf": [
          {
            "type": "object",
            "additionalProperties": {}
          }
        ]
      },
      "ConfigUpdateError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "Model": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "providerID": {
            "type": "string"
          },
          "api": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "npm": {
                "type": "string"
              }
            },
            "required": ["id", "npm"],
            "additionalProperties": false
          },
          "name": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "temperature": {
                "type": "boolean"
              },
              "reasoning": {
                "type": "boolean"
              },
              "attachment": {
                "type": "boolean"
              },
              "toolcall": {
                "type": "boolean"
              },
              "input": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "boolean"
                  },
                  "audio": {
                    "type": "boolean"
                  },
                  "image": {
                    "type": "boolean"
                  },
                  "video": {
                    "type": "boolean"
                  },
                  "pdf": {
                    "type": "boolean"
                  }
                },
                "required": ["text", "audio", "image", "video", "pdf"],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "boolean"
                  },
                  "audio": {
                    "type": "boolean"
                  },
                  "image": {
                    "type": "boolean"
                  },
                  "video": {
                    "type": "boolean"
                  },
                  "pdf": {
                    "type": "boolean"
                  }
                },
                "required": ["text", "audio", "image", "video", "pdf"],
                "additionalProperties": false
              },
              "interleaved": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": ["reasoning_content", "reasoning_details"]
                      }
                    },
                    "required": ["field"],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": ["temperature", "reasoning", "attachment", "toolcall", "input", "output", "interleaved"],
            "additionalProperties": false
          },
          "cost": {
            "type": "object",
            "properties": {
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              },
              "experimentalOver200K": {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "output": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "cache": {
                    "type": "object",
                    "properties": {
                      "read": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      "write": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      }
                    },
                    "required": ["read", "write"],
                    "additionalProperties": false
                  }
                },
                "required": ["input", "output", "cache"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "cache"],
            "additionalProperties": false
          },
          "limit": {
            "type": "object",
            "properties": {
              "context": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["context", "output"],
            "additionalProperties": false
          },
          "status": {
            "type": "string",
            "enum": ["alpha", "beta", "deprecated", "active"]
          },
          "options": {
            "type": "object"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "release_date": {
            "type": "string"
          },
          "variants": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "required": [
          "id",
          "providerID",
          "api",
          "name",
          "capabilities",
          "cost",
          "limit",
          "status",
          "options",
          "headers",
          "release_date"
        ],
        "additionalProperties": false
      },
      "Provider": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "enum": ["env", "config", "custom", "api"]
          },
          "env": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "type": "object"
          },
          "models": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Model"
            }
          }
        },
        "required": ["id", "name", "source", "env", "options", "models"],
        "additionalProperties": false
      },
      "ConfigProviders": {
        "type": "object",
        "properties": {
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          "default": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": ["providers", "default"],
        "additionalProperties": false
      },
      "ConnectorStatus": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["connected"]
              }
            },
            "required": ["status"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["disabled"]
              }
            },
            "required": ["status"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["failed"]
              },
              "error": {
                "type": "string"
              }
            },
            "required": ["status", "error"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["needs_auth"]
              }
            },
            "required": ["status"],
            "additionalProperties": false
          }
        ]
      },
      "ConnectorsStatusOutput": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/ConnectorStatus"
        }
      },
      "ConnectorsAuthInput": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "botToken": {
            "type": "string"
          },
          "apiKey": {
            "type": "string"
          },
          "teamId": {
            "type": "string"
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "refreshToken": {
            "type": "string"
          },
          "refreshTokenExpiresAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ConnectorsSuccess": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [true]
          }
        },
        "required": ["success"],
        "additionalProperties": false
      },
      "ConnectorsValidationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ValidationError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "ConnectorsInvalidateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DoctorCheck": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "fix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["ok", "label"],
        "additionalProperties": false
      },
      "DoctorReport": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "failures": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DoctorCheck"
            }
          }
        },
        "required": ["ok", "version", "channel", "failures", "results"],
        "additionalProperties": false
      },
      "ToolIDs": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "ToolListItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "parameters": {}
        },
        "required": ["id", "description", "parameters"],
        "additionalProperties": false
      },
      "ToolList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ToolListItem"
        }
      },
      "WorktreeCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "branchPrefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "baseBranch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "remote": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startCommand": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "Worktree": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["name", "directory"],
        "additionalProperties": false
      },
      "WorktreeList": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "WorktreeDirectoryInput": {
        "type": "object",
        "properties": {
          "directory": {
            "type": "string"
          }
        },
        "required": ["directory"],
        "additionalProperties": false
      },
      "McpResource": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mimeType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "client": {
            "type": "string"
          }
        },
        "required": ["name", "uri", "client"],
        "additionalProperties": false
      },
      "McpResourceMap": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/McpResource"
        }
      },
      "ManagedWorktreeCreateInput": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "into": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["from"],
        "additionalProperties": false
      },
      "ManagedWorktreeInfo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "parentId", "name", "branch", "directory", "createdAt"],
        "additionalProperties": false
      },
      "ManagedWorktreeRemoveInput": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string"
          }
        },
        "required": ["at"],
        "additionalProperties": false
      },
      "ManagedWorktreeLinkInput": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string"
          },
          "to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["at"],
        "additionalProperties": false
      },
      "ManagedWorktreeList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ManagedWorktreeInfo"
        }
      },
      "SearchMatch": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              }
            },
            "required": ["text"],
            "additionalProperties": false
          },
          "lines": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              }
            },
            "required": ["text"],
            "additionalProperties": false
          },
          "line_number": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "absolute_offset": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "submatches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "match": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    }
                  },
                  "required": ["text"],
                  "additionalProperties": false
                },
                "start": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "end": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["match", "start", "end"],
              "additionalProperties": false
            }
          }
        },
        "required": ["path", "lines", "line_number", "absolute_offset", "submatches"],
        "additionalProperties": false
      },
      "Symbol": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "location": {
            "type": "object",
            "properties": {
              "uri": {
                "type": "string"
              },
              "range": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "object",
                    "properties": {
                      "line": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      "character": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      }
                    },
                    "required": ["line", "character"],
                    "additionalProperties": false
                  },
                  "end": {
                    "type": "object",
                    "properties": {
                      "line": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      "character": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      }
                    },
                    "required": ["line", "character"],
                    "additionalProperties": false
                  }
                },
                "required": ["start", "end"],
                "additionalProperties": false
              }
            },
            "required": ["uri", "range"],
            "additionalProperties": false
          }
        },
        "required": ["name", "kind", "location"],
        "additionalProperties": false
      },
      "FileNode": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "absolute": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["file", "directory"]
          },
          "ignored": {
            "type": "boolean"
          }
        },
        "required": ["name", "path", "absolute", "type", "ignored"],
        "additionalProperties": false
      },
      "FileContent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["text"]
          },
          "content": {
            "type": "string"
          },
          "diff": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "patch": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "oldFileName": {
                    "type": "string"
                  },
                  "newFileName": {
                    "type": "string"
                  },
                  "oldHeader": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "newHeader": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hunks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oldStart": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        "oldLines": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        "newStart": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        "newLines": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        "lines": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": ["oldStart", "oldLines", "newStart", "newLines", "lines"],
                      "additionalProperties": false
                    }
                  },
                  "index": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["oldFileName", "newFileName", "hunks"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "encoding": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["base64"]
              },
              {
                "type": "null"
              }
            ]
          },
          "mimeType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "content"],
        "additionalProperties": false
      },
      "FileWritePayload": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": ["path", "content"],
        "additionalProperties": false
      },
      "FileWriteResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": ["success"],
        "additionalProperties": false
      },
      "File": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "added": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "removed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["added", "deleted", "modified"]
          }
        },
        "required": ["path", "added", "removed", "status"],
        "additionalProperties": false
      },
      "GlobalHealth": {
        "type": "object",
        "properties": {
          "healthy": {
            "type": "boolean",
            "enum": [true]
          },
          "version": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          }
        },
        "required": ["healthy", "version"],
        "additionalProperties": false
      },
      "MCPStatus": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["connected"]
              }
            },
            "required": ["status"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["disabled"]
              }
            },
            "required": ["status"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["failed"]
              },
              "error": {
                "type": "string"
              }
            },
            "required": ["status", "error"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["needs_auth"]
              }
            },
            "required": ["status"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["needs_client_registration"]
              },
              "error": {
                "type": "string"
              }
            },
            "required": ["status", "error"],
            "additionalProperties": false
          }
        ]
      },
      "MCPStatusMap": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/MCPStatus"
        }
      },
      "McpConfig": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["local"]
              },
              "command": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "environment": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timeout": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "command"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["remote"]
              },
              "url": {
                "type": "string"
              },
              "enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "headers": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "oauth": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "clientId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "clientSecret": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "scope": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "boolean",
                        "enum": [false]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timeout": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "url"],
            "additionalProperties": false
          }
        ]
      },
      "McpAddPayload": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/McpConfig"
          }
        },
        "required": ["name", "config"],
        "additionalProperties": false
      },
      "McpStartAuthResponse": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "type": "string"
          }
        },
        "required": ["authorizationUrl"],
        "additionalProperties": false
      },
      "McpOAuthUnsupportedError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": ["error"],
        "additionalProperties": false
      },
      "McpAuthCallbackPayload": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          }
        },
        "required": ["code"],
        "additionalProperties": false
      },
      "McpMutationSuccess": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [true]
          }
        },
        "required": ["success"],
        "additionalProperties": false
      },
      "McpTogglePayload": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["enabled"],
        "additionalProperties": false
      },
      "MissionFeature": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "objective": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "tokenBudget": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "dependsOn": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
          },
          "error": {
            "type": "string"
          }
        },
        "required": ["id", "name", "objective", "agent", "dependsOn", "status"],
        "additionalProperties": false
      },
      "MissionMilestone": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissionFeature"
            }
          },
          "validation": {
            "type": "string",
            "enum": ["scrutiny", "user-test", "none"]
          },
          "status": {
            "type": "string",
            "enum": ["pending", "running", "validating", "done", "blocked"]
          }
        },
        "required": ["id", "name", "features", "validation", "status"],
        "additionalProperties": false
      },
      "MissionModels": {
        "type": "object",
        "properties": {
          "worker": {
            "type": "string"
          },
          "validation": {
            "type": "string"
          },
          "orchestrator": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "MissionWorktree": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["name", "directory"],
        "additionalProperties": false
      },
      "MissionDefinition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          },
          "milestones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissionMilestone"
            }
          },
          "models": {
            "$ref": "#/components/schemas/MissionModels"
          },
          "timeoutMs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sandbox": {
            "type": "boolean"
          },
          "worktree": {
            "$ref": "#/components/schemas/MissionWorktree"
          },
          "status": {
            "type": "string",
            "enum": ["planning", "ready", "running", "paused", "frozen", "complete", "error"]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "name", "brief", "milestones", "models", "status", "createdAt"],
        "additionalProperties": false
      },
      "MissionRuntime": {
        "type": "object",
        "properties": {
          "missionID": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["idle", "running", "paused", "error", "cancelling"]
          },
          "sessionID": {
            "type": "string"
          },
          "currentMilestoneID": {
            "type": "string"
          },
          "currentFeatureID": {
            "type": "string"
          },
          "doneFeatures": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "totalFeatures": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastError": {
            "type": "string"
          },
          "lastRunAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["missionID", "status", "doneFeatures", "totalFeatures"],
        "additionalProperties": false
      },
      "MissionListOutput": {
        "type": "object",
        "properties": {
          "missions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissionDefinition"
            }
          },
          "runtimes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissionRuntime"
            }
          }
        },
        "required": ["missions", "runtimes"],
        "additionalProperties": false
      },
      "MissionTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          }
        },
        "required": ["id", "title", "description", "brief"],
        "additionalProperties": false
      },
      "MissionTemplatesOutput": {
        "type": "object",
        "properties": {
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissionTemplate"
            }
          }
        },
        "required": ["templates"],
        "additionalProperties": false
      },
      "MissionGenerateInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          }
        },
        "required": ["description"],
        "additionalProperties": false
      },
      "MissionValidationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ValidationError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MissionExec": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "missionID": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": ["feature", "validation"]
          },
          "targetID": {
            "type": "string"
          },
          "targetName": {
            "type": "string"
          },
          "startedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["running", "complete", "error", "timeout", "cancelled", "orphaned"]
          },
          "heartbeatAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sessionID": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          }
        },
        "required": ["id", "missionID", "kind", "targetID", "targetName", "startedAt", "status", "ok"],
        "additionalProperties": false
      },
      "MissionExecsOutput": {
        "type": "object",
        "properties": {
          "execs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissionExec"
            }
          }
        },
        "required": ["execs"],
        "additionalProperties": false
      },
      "MissionGetOutput": {
        "type": "object",
        "properties": {
          "mission": {
            "$ref": "#/components/schemas/MissionDefinition"
          },
          "runtime": {
            "$ref": "#/components/schemas/MissionRuntime"
          }
        },
        "required": ["mission", "runtime"],
        "additionalProperties": false
      },
      "MissionNotFound": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["NotFound"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MissionCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "objective": {
                        "type": "string"
                      },
                      "agent": {
                        "type": "string"
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tokenBudget": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependsOn": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["id", "name", "objective", "agent"],
                    "additionalProperties": false
                  }
                },
                "validation": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["scrutiny", "user-test", "none"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["pending", "running", "validating", "done", "blocked"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["id", "name", "features"],
              "additionalProperties": false
            }
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "worker": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orchestrator": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sandbox": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "directory": {
                    "type": "string"
                  }
                },
                "required": ["name", "directory"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "brief", "milestones"],
        "additionalProperties": false
      },
      "MissionUpdateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "objective": {
                        "type": "string"
                      },
                      "agent": {
                        "type": "string"
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tokenBudget": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependsOn": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["id", "name", "objective", "agent"],
                    "additionalProperties": false
                  }
                },
                "validation": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["scrutiny", "user-test", "none"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["pending", "running", "validating", "done", "blocked"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["id", "name", "features"],
              "additionalProperties": false
            }
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "worker": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orchestrator": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sandbox": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "directory": {
                    "type": "string"
                  }
                },
                "required": ["name", "directory"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["planning", "ready", "running", "paused", "frozen", "complete", "error"]
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "brief", "milestones", "createdAt"],
        "additionalProperties": false
      },
      "MissionBooleanResult": {
        "type": "boolean"
      },
      "MissionStartInput": {
        "type": "object",
        "properties": {
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MissionFeatureMutateInput": {
        "type": "object",
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "appendDependsOn": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileAuthTokenPublic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "name", "createdAt"],
        "additionalProperties": false
      },
      "MobileAuthTokenCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "expiresInDays": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileProject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "worktree": {
            "type": "string"
          },
          "canonical": {
            "type": "string"
          },
          "vcs": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["git"]
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "override": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "commands": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "initialized": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "sandboxes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "current": {
            "type": "boolean"
          }
        },
        "required": ["id", "worktree", "canonical", "time", "sandboxes", "current"],
        "additionalProperties": false
      },
      "MobileBootstrap": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "auth": {
            "type": "object",
            "properties": {
              "bearerEnabled": {
                "type": "boolean"
              },
              "currentToken": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/MobileAuthTokenPublic"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["bearerEnabled"],
            "additionalProperties": false
          },
          "currentProject": {
            "$ref": "#/components/schemas/MobileProject"
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MobileProject"
            }
          },
          "execution": {
            "type": "object",
            "properties": {
              "container": {
                "type": "object",
                "properties": {
                  "available": {
                    "type": "boolean"
                  },
                  "runtime": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["docker", "podman"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "image": {
                    "type": "string"
                  }
                },
                "required": ["available", "image"],
                "additionalProperties": false
              }
            },
            "required": ["container"],
            "additionalProperties": false
          },
          "github": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "tokenAvailable": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reconnectRequired": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "oauthDeviceEnabled": {
                "type": "boolean"
              },
              "oauthDeviceConfigured": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "oauthClientSource": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["flag", "config", "env"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "user": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "login": {
                        "type": "string"
                      },
                      "name": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "avatar_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["login"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["connected", "oauthDeviceEnabled"],
            "additionalProperties": false
          },
          "expo": {
            "type": "object",
            "properties": {
              "available": {
                "type": "boolean"
              },
              "easAvailable": {
                "type": "boolean"
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": ["available", "easAvailable", "details"],
            "additionalProperties": false
          },
          "mobileProject": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "detected": {
                    "type": "boolean"
                  },
                  "platforms": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "primaryPlatform": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "root": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["detected"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["version", "auth", "currentProject", "projects", "execution", "github", "expo"],
        "additionalProperties": false
      },
      "MobileCommand": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mcp": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "hints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["name", "hints"],
        "additionalProperties": false
      },
      "MobilePromptHistoryEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["normal", "shell"]
              },
              {
                "type": "null"
              }
            ]
          },
          "partsCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "input", "partsCount"],
        "additionalProperties": false
      },
      "MobileMemorySearchHit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "sessionTitle": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["user", "assistant"]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "preview": {
            "type": "string"
          }
        },
        "required": ["id", "sessionID", "sessionTitle", "messageID", "role", "createdAt", "preview"],
        "additionalProperties": false
      },
      "MobilePromptStashEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "partsCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "input", "timestamp", "partsCount"],
        "additionalProperties": false
      },
      "MobileSuccess": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [true]
          }
        },
        "required": ["success"],
        "additionalProperties": false
      },
      "MobileNotFound": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["NotFoundError"]
          },
          "error": {
            "type": "string"
          }
        },
        "required": ["name", "error"],
        "additionalProperties": false
      },
      "MobileUnauthorized": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["Unauthorized"]
          },
          "error": {
            "type": "string"
          }
        },
        "required": ["name", "error"],
        "additionalProperties": false
      },
      "MobileBadRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["BadRequest"]
          },
          "error": {
            "type": "string"
          }
        },
        "required": ["name", "error"],
        "additionalProperties": false
      },
      "MobileGithubBranch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "protected": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "commit": {
            "type": "object",
            "properties": {
              "sha": {
                "type": "string"
              }
            },
            "required": ["sha"],
            "additionalProperties": false
          }
        },
        "required": ["name", "commit"],
        "additionalProperties": false
      },
      "MobileGithubWorkflow": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "name", "path", "state"],
        "additionalProperties": false
      },
      "MobileGithubWorkflowRun": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "workflowID": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "runNumber": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "attempt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "conclusion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "event": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "sha": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "actor": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string"
                  },
                  "avatarUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["login"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "htmlUrl": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "startedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "runNumber",
          "status",
          "event",
          "branch",
          "sha",
          "title",
          "htmlUrl",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "MobileGithubWorkflowRunList": {
        "type": "object",
        "properties": {
          "runs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MobileGithubWorkflowRun"
            }
          },
          "totalCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "configured": {
            "type": "boolean"
          }
        },
        "required": ["runs", "totalCount", "configured"],
        "additionalProperties": false
      },
      "MobileGithubWorkflowStep": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "number": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "conclusion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "number", "status"],
        "additionalProperties": false
      },
      "MobileGithubWorkflowJob": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "conclusion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MobileGithubWorkflowStep"
            }
          }
        },
        "required": ["id", "name", "status", "steps"],
        "additionalProperties": false
      },
      "MobileGithubRerunInput": {
        "type": "object",
        "properties": {
          "failedOnly": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileGithubWorkflowDispatchInput": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "string"
          },
          "inputs": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["ref"],
        "additionalProperties": false
      },
      "MobileGithubImport": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "cloneUrl": {
            "type": "string"
          },
          "defaultBranch": {
            "type": "string"
          },
          "private": {
            "type": "boolean"
          },
          "importedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "projectID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "owner",
          "repo",
          "fullName",
          "directory",
          "cloneUrl",
          "defaultBranch",
          "private",
          "importedAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "KeybindsConfig_1": {
        "type": "object",
        "properties": {
          "leader": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "app_exit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "editor_open": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "theme_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sidebar_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scrollbar_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "username_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status_view": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_view": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_export": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_new": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_timeline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_fork": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_rename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_delete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_pin_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_scope_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_tab_back": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_tab_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_1": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_3": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_4": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_5": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_6": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_7": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_8": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_quick_switch_9": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "stash_delete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_provider_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_favorite_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_share": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_unshare": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_interrupt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_codebro_open": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask_background": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask_picker": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_compact": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_page_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_page_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_line_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_line_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_half_page_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_half_page_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_first": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_last": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_previous": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_last_user": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_copy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_undo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_redo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages_toggle_conceal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tool_details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_recent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_recent_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_favorite": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_cycle_favorite_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "command_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_list": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_cycle_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "variant_cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_clear": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_paste": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_submit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_newline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_left": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_right": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_move_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_left": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_right": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_up": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_down": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_visual_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_visual_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_visual_line_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_visual_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_buffer_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_buffer_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_buffer_home": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_buffer_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_to_line_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_to_line_start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_backspace": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_undo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_redo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_word_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_word_backward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_word_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_select_word_backward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_word_forward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_delete_word_backward": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "history_previous": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "history_next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_child_cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_child_cycle_reverse": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_parent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_child_close": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_suspend": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_title_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tips_toggle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "voice_record": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "app_support": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "LogLevel_1": {
        "type": "string",
        "enum": ["DEBUG", "INFO", "WARN", "ERROR"]
      },
      "AdsItemConfig_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "text"],
        "additionalProperties": false
      },
      "AdsConfig_1": {
        "type": "object",
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "ratio": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AdsItemConfig_1"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ServerConfig_1": {
        "type": "object",
        "properties": {
          "port": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "hostname": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mdns": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "cors": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "RemoteConfig_1": {
        "type": "object",
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "enableTunnel": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["localtunnel", "cloudflared", "ngrok", "remotosh", "none"]
              },
              {
                "type": "null"
              }
            ]
          },
          "askOnExistingSession": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "TeleportConfig_1": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReferenceConfig_1": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["git"]
              },
              "repository": {
                "type": "string"
              },
              "branch": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "repository"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["local"]
              },
              "path": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "path"],
            "additionalProperties": false
          }
        ]
      },
      "PermissionModeConfig_1": {
        "type": "string",
        "enum": ["default", "auto"]
      },
      "AgentConfig_1": {
        "type": "object",
        "properties": {
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "temperature": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "top_p": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["subagent", "primary", "all"]
              },
              {
                "type": "null"
              }
            ]
          },
          "hidden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "order": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "maxSteps": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionModeConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "advisor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "advisor_max_uses": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "allOf": [
          {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            }
          }
        ]
      },
      "ProviderConfig_1": {
        "type": "object",
        "properties": {
          "api": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "env": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "npm": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "family": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "release_date": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attachment": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reasoning": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "temperature": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tool_call": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "interleaved": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "enum": [true]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "enum": ["reasoning_content", "reasoning_details"]
                                }
                              },
                              "required": ["field"],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cost": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "input": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            },
                            "output": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            },
                            "cache_read": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": ["Infinity", "-Infinity", "NaN"]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cache_write": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": ["Infinity", "-Infinity", "NaN"]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "context_over_200k": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "input": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": ["Infinity", "-Infinity", "NaN"]
                                        }
                                      ]
                                    },
                                    "output": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": ["Infinity", "-Infinity", "NaN"]
                                        }
                                      ]
                                    },
                                    "cache_read": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": ["Infinity", "-Infinity", "NaN"]
                                            }
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "cache_write": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "string",
                                              "enum": ["Infinity", "-Infinity", "NaN"]
                                            }
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["input", "output"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["input", "output"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "limit": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "context": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            },
                            "input": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": ["Infinity", "-Infinity", "NaN"]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "output": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": ["Infinity", "-Infinity", "NaN"]
                                }
                              ]
                            }
                          },
                          "required": ["context", "output"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "modalities": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["text", "audio", "image", "video", "pdf"]
                              }
                            },
                            "output": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["text", "audio", "image", "video", "pdf"]
                              }
                            }
                          },
                          "required": ["input", "output"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "experimental": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": ["alpha", "beta", "deprecated"]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "options": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "headers": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "provider": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "npm": {
                              "type": "string"
                            },
                            "api": {
                              "type": "string"
                            }
                          },
                          "required": ["npm", "api"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reasoning_options": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": ["effort"]
                                  },
                                  "values": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                },
                                "required": ["type", "values"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": ["toggle"]
                                  }
                                },
                                "required": ["type"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": ["budget_tokens"]
                                  },
                                  "min": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "max": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": ["type"],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "variants": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "disabled": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "allOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {},
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disabled": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "auth_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "whitelist": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "blacklist": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseURL": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enterpriseUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "setCacheKey": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "headerTimeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chunkTimeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "allOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "McpLocalConfig_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["local"]
          },
          "command": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "environment": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeout": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "command"],
        "additionalProperties": false
      },
      "McpOAuthConfig_1": {
        "type": "object",
        "properties": {
          "clientId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientSecret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "McpRemoteConfig_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["remote"]
          },
          "url": {
            "type": "string"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "headers": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "oauth": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/McpOAuthConfig_1"
                  },
                  {
                    "type": "boolean",
                    "enum": [false]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "timeout": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "url"],
        "additionalProperties": false
      },
      "ConnectorFigma_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["figma"]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorSlack_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["slack"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "teamId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorGithub_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["github"]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "oauthClientId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorLovable_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["lovable"]
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "apiKey": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorDiscord_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["discord"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorTeams_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["teams"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorGChat_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["gchat"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "ConnectorLinear_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["linear"]
          },
          "botToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "LayoutConfig_1": {
        "type": "string",
        "enum": ["auto", "stretch"]
      },
      "AutoModeConfig_1": {
        "type": "object",
        "properties": {
          "environment": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "allow": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "soft_deny": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "hard_deny": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "classify_all_shell": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "disable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "PolicyStatementConfig_1": {
        "type": "object",
        "properties": {
          "effect": {
            "type": "string",
            "enum": ["allow", "deny"]
          },
          "action": {
            "type": "string"
          },
          "resource": {
            "type": "string"
          }
        },
        "required": ["effect", "action", "resource"],
        "additionalProperties": false
      },
      "RagConfig_1": {
        "type": "object",
        "properties": {
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ImageConfig_1": {
        "type": "object",
        "properties": {
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ComputerConfig_1": {
        "type": "object",
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["sandbox", "host"]
              },
              {
                "type": "null"
              }
            ]
          },
          "width": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "AttachmentConfig_1": {
        "type": "object",
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "auto_resize": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_width": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_height": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_base64_bytes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SpeakConfig_1": {
        "type": "object",
        "properties": {
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "modelId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "outputFormat": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileConfigInfo": {
        "type": "object",
        "properties": {
          "$schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "theme": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "language": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "locale": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timezone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "autoDetect": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "replyLanguage": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "keybinds": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/KeybindsConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "logLevel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LogLevel_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "tui": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "scroll_speed": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scroll_acceleration": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          }
                        },
                        "required": ["enabled"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diff_style": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["auto", "stacked"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mouse": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sound": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bg_pulse": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "turn_tokens": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "ads": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdsConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "server": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ServerConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "remote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoteConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "teleport": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TeleportConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "command": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "model": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "subtask": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "aliases": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "reference": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/ReferenceConfig_1"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "watcher": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "ignore": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "autostart": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "analytics": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "share": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "endpoint": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "share": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["manual", "auto", "disabled"]
              },
              {
                "type": "null"
              }
            ]
          },
          "autoshare": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "autoupdate": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "string",
                    "enum": ["notify"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "disabled_providers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled_providers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "small_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "build": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "allOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AgentConfig_1"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "plan": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "build": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "general": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "explore": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scout": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "compaction": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentConfig_1"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "allOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AgentConfig_1"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/ProviderConfig_1"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "mcp": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/McpLocalConfig_1"
                        },
                        {
                          "$ref": "#/components/schemas/McpRemoteConfig_1"
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["enabled"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "connectors": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ConnectorFigma_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorSlack_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorGithub_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorLovable_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorDiscord_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorTeams_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorGChat_1"
                        },
                        {
                          "$ref": "#/components/schemas/ConnectorLinear_1"
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["enabled"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "formatter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "boolean",
                    "enum": [false]
                  },
                  {
                    "type": "boolean",
                    "enum": [true]
                  },
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "disabled": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "command": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "extensions": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "websearch": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "provider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["exa", "parallel", "mcp"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "apiKey": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lsp": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "boolean",
                    "enum": [false]
                  },
                  {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "disabled": {
                              "type": "boolean",
                              "enum": [true]
                            }
                          },
                          "required": ["disabled"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "command": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "extensions": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "disabled": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "env": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "initialization": {
                              "anyOf": [
                                {
                                  "type": "object"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "min_severity": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": ["Infinity", "-Infinity", "NaN"]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["command"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "instructions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "layout": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LayoutConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionModeConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoModeConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "allow": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pin": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "eager": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "enterprise": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "compaction": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "auto": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "prune": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reserved": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "experimental": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "policies": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/PolicyStatementConfig_1"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hook": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "file_edited": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "command": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "environment": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["command"],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "session_completed": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "command": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "environment": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["command"],
                                  "additionalProperties": false
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "queued_message_wrap": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "header": {
                                "type": "string"
                              },
                              "footer": {
                                "type": "string"
                              }
                            },
                            "required": ["header", "footer"],
                            "additionalProperties": false
                          },
                          {
                            "type": "string",
                            "enum": ["default"]
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chatMaxRetries": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "disable_paste_summary": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "batch_tool": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "openTelemetry": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "primary_tools": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "continue_loop_on_deny": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brain": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brainMinHours": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brainMinSessions": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brainModel": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "memory": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcp_timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "task_timeout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "boolean",
                            "enum": [false]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "nativeLlm": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tui": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "cacheEviction": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "messageVirtualization": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "explorationGrouping": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requests": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "latestOnlyLspRefresh": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "events": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "schemaEncoding": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "rag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RagConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "browser": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "computer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ComputerConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttachmentConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "speak": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpeakConfig_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "todo": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "macos": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slack": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "connector": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "channel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "discord": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "webhook": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "icon": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "url": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "alt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "notify": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "macos": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slack": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "connector": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "channel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "discord": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "webhook": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "events": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "sessionIdle": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "sessionError": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "permissionAsked": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "questionAsked": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "idleMinMs": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": ["Infinity", "-Infinity", "NaN"]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimit": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "windowMs": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "maxPerWindow": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retry": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "attempts": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delay": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "factor": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "maxDelay": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "timeoutMs": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "breaker": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "failures": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "cooldownMs": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": ["Infinity", "-Infinity", "NaN"]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quietHours": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "start": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "end": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "suppress": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": ["macos", "slack", "discord"]
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "mobile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "tophat": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cliPath": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultPlatform": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": ["ios", "android"]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultDestination": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": ["device", "simulator", "emulator"]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "autoDetect": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileGithubDeviceAuthStart": {
        "type": "object",
        "properties": {
          "deviceCode": {
            "type": "string"
          },
          "userCode": {
            "type": "string"
          },
          "verificationUri": {
            "type": "string"
          },
          "verificationUriComplete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "interval": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["deviceCode", "userCode", "verificationUri", "expiresAt", "interval"],
        "additionalProperties": false
      },
      "MobileGithubDeviceAuthPollResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["pending", "approved", "denied", "expired"]
          },
          "interval": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "avatar_url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["login"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["status"],
        "additionalProperties": false
      },
      "MobileGithubImportRequest": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "cloneUrl": {
            "type": "string"
          },
          "defaultBranch": {
            "type": "string"
          },
          "private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["owner", "repo", "cloneUrl", "defaultBranch"],
        "additionalProperties": false
      },
      "Project": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "worktree": {
            "type": "string"
          },
          "canonical": {
            "type": "string"
          },
          "vcs": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["git"]
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "override": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "commands": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "initialized": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "sandboxes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "worktree", "canonical", "time", "sandboxes"],
        "additionalProperties": false
      },
      "MobileExecutionTarget": {
        "type": "string",
        "enum": ["local", "container"]
      },
      "MobileGithubSessionCreateInput": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "cloneUrl": {
            "type": "string"
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultBranch": {
            "type": "string"
          },
          "baseBranch": {
            "type": "string"
          },
          "private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "executionTarget": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MobileExecutionTarget"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["owner", "repo", "cloneUrl", "defaultBranch", "baseBranch"],
        "additionalProperties": false
      },
      "FileDiff": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "patch": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["added", "deleted", "modified"]
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          }
        },
        "required": ["file", "patch", "additions", "deletions", "before", "after"],
        "additionalProperties": false
      },
      "SessionWorktree": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionGithub": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "baseBranch": {
            "type": "string"
          },
          "headBranch": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cloneUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "$ref": "#/components/schemas/SessionWorktree"
          },
          "pullRequest": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "number": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": ["number", "url", "title"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastCommitSha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "publishError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["owner", "repo", "fullName", "baseBranch", "headBranch", "worktree"],
        "additionalProperties": false
      },
      "SessionWorktree_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionMobile": {
        "type": "object",
        "properties": {
          "platforms": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["ios", "android", "expo", "flutter", "react-native"]
            }
          },
          "primaryPlatform": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "detectedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "buildStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["unknown", "building", "succeeded", "failed"]
              },
              {
                "type": "null"
              }
            ]
          },
          "lastBuildAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "artifacts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "platform": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "size": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["platform", "path"],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["platforms", "primaryPlatform", "method", "detectedAt"],
        "additionalProperties": false
      },
      "PermissionAction": {
        "type": "string",
        "enum": ["allow", "deny", "ask"]
      },
      "PermissionRule": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "action": {
            "$ref": "#/components/schemas/PermissionAction"
          }
        },
        "required": ["permission", "pattern", "action"],
        "additionalProperties": false
      },
      "PermissionRuleset": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PermissionRule"
        }
      },
      "Session": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "projectID": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "parentID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspaceID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "additions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "deletions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "files": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "diffs": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/FileDiff"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["additions", "deletions", "files"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "share": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "required": ["url"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "github": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionGithub"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionWorktree_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "mobile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionMobile"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "activeCommand": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "string"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacting": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "archived": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionRuleset"
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledInstructions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledTools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "revert": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "partID": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "snapshot": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diff": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["messageID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModel": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "slug", "projectID", "directory", "title", "version", "time"],
        "additionalProperties": false
      },
      "Worktree_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["name", "directory"],
        "additionalProperties": false
      },
      "Project_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "worktree": {
            "type": "string"
          },
          "canonical": {
            "type": "string"
          },
          "vcs": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["git"]
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "override": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "commands": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "initialized": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "sandboxes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "worktree", "canonical", "time", "sandboxes"],
        "additionalProperties": false
      },
      "Workspace": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "timeUsed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "projectID": {
            "type": "string"
          },
          "config": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "directory": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": ["worktree"]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "strategy": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["git", "cow"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "eventLimit": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["directory", "type"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "directory": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": ["container"]
                  },
                  "runtime": {
                    "type": "string",
                    "enum": ["docker", "podman"]
                  },
                  "image": {
                    "type": "string"
                  },
                  "containerName": {
                    "type": "string"
                  },
                  "port": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "serverUrl": {
                    "type": "string"
                  },
                  "eventLimit": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["directory", "type", "runtime", "image", "containerName", "port", "serverUrl"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "directory": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": ["branch"]
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "eventLimit": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["directory", "type"],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": ["id", "name", "timeUsed", "branch", "projectID", "config"],
        "additionalProperties": false
      },
      "MobileGithubSessionCreateResult": {
        "type": "object",
        "properties": {
          "session": {
            "$ref": "#/components/schemas/Session"
          },
          "worktree": {
            "$ref": "#/components/schemas/Worktree_1"
          },
          "project": {
            "$ref": "#/components/schemas/Project_1"
          },
          "workspace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Workspace"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["session", "worktree", "project"],
        "additionalProperties": false
      },
      "FileDiff_1": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "patch": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["added", "deleted", "modified"]
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          }
        },
        "required": ["file", "patch", "additions", "deletions", "before", "after"],
        "additionalProperties": false
      },
      "SessionWorktree_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionGithub_1": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "baseBranch": {
            "type": "string"
          },
          "headBranch": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cloneUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "$ref": "#/components/schemas/SessionWorktree_2"
          },
          "pullRequest": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "number": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": ["number", "url", "title"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastCommitSha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "publishError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["owner", "repo", "fullName", "baseBranch", "headBranch", "worktree"],
        "additionalProperties": false
      },
      "SessionWorktree_3": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionMobile_1": {
        "type": "object",
        "properties": {
          "platforms": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["ios", "android", "expo", "flutter", "react-native"]
            }
          },
          "primaryPlatform": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "detectedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "buildStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["unknown", "building", "succeeded", "failed"]
              },
              {
                "type": "null"
              }
            ]
          },
          "lastBuildAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "artifacts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "platform": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "size": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["platform", "path"],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["platforms", "primaryPlatform", "method", "detectedAt"],
        "additionalProperties": false
      },
      "PermissionAction_1": {
        "type": "string",
        "enum": ["allow", "deny", "ask"]
      },
      "PermissionRule_1": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "action": {
            "$ref": "#/components/schemas/PermissionAction_1"
          }
        },
        "required": ["permission", "pattern", "action"],
        "additionalProperties": false
      },
      "PermissionRuleset_1": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PermissionRule_1"
        }
      },
      "Session_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "projectID": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "parentID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspaceID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "additions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "deletions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "files": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "diffs": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/FileDiff_1"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["additions", "deletions", "files"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "share": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "required": ["url"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "github": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionGithub_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionWorktree_3"
              },
              {
                "type": "null"
              }
            ]
          },
          "mobile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionMobile_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "activeCommand": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "string"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacting": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "archived": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionRuleset_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledInstructions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledTools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "revert": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "partID": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "snapshot": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diff": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["messageID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModel": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "slug", "projectID", "directory", "title", "version", "time"],
        "additionalProperties": false
      },
      "SessionStatus": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["idle"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["retry"]
              },
              "attempt": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "message": {
                "type": "string"
              },
              "next": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["type", "attempt", "message", "next"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["busy"]
              },
              "since": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["type", "since"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["busy"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          }
        ]
      },
      "MobileSessionSummary": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/Session_1"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["info"],
        "additionalProperties": false
      },
      "PermissionAction_2": {
        "type": "string",
        "enum": ["allow", "deny", "ask"]
      },
      "PermissionRule_2": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "action": {
            "$ref": "#/components/schemas/PermissionAction_2"
          }
        },
        "required": ["permission", "pattern", "action"],
        "additionalProperties": false
      },
      "PermissionRuleset_2": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PermissionRule_2"
        }
      },
      "SessionWorktree_4": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionGithub_2": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "baseBranch": {
            "type": "string"
          },
          "headBranch": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cloneUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "$ref": "#/components/schemas/SessionWorktree_4"
          },
          "pullRequest": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "number": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": ["number", "url", "title"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastCommitSha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "publishError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["owner", "repo", "fullName", "baseBranch", "headBranch", "worktree"],
        "additionalProperties": false
      },
      "MobileExecutionTarget_1": {
        "type": "string",
        "enum": ["local", "container"]
      },
      "MobileSessionCreateInput": {
        "type": "object",
        "properties": {
          "parentID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionRuleset_2"
              },
              {
                "type": "null"
              }
            ]
          },
          "github": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionGithub_2"
              },
              {
                "type": "null"
              }
            ]
          },
          "executionTarget": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MobileExecutionTarget_1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "FileDiff_2": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "patch": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["added", "deleted", "modified"]
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          }
        },
        "required": ["file", "patch", "additions", "deletions", "before", "after"],
        "additionalProperties": false
      },
      "SessionWorktree_5": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "type": "string"
          },
          "cleanedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionGithub_3": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "baseBranch": {
            "type": "string"
          },
          "headBranch": {
            "type": "string"
          },
          "repositoryDirectory": {
            "type": "string"
          },
          "cloneUrl": {
            "type": "string"
          },
          "htmlUrl": {
            "type": "string"
          },
          "private": {
            "type": "boolean"
          },
          "worktree": {
            "$ref": "#/components/schemas/SessionWorktree_5"
          },
          "pullRequest": {
            "type": "object",
            "properties": {
              "number": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "url": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": ["number", "url", "title"],
            "additionalProperties": false
          },
          "lastCommitSha": {
            "type": "string"
          },
          "publishedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "publishError": {
            "type": "string"
          }
        },
        "required": ["owner", "repo", "fullName", "baseBranch", "headBranch", "worktree"],
        "additionalProperties": false
      },
      "SessionWorktree_6": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "type": "string"
          },
          "cleanedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionMobile_2": {
        "type": "object",
        "properties": {
          "platforms": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["ios", "android", "expo", "flutter", "react-native"]
            }
          },
          "primaryPlatform": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "detectedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "buildStatus": {
            "type": "string",
            "enum": ["unknown", "building", "succeeded", "failed"]
          },
          "lastBuildAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "artifacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                },
                "size": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": ["Infinity", "-Infinity", "NaN"]
                    }
                  ]
                }
              },
              "required": ["platform", "path"],
              "additionalProperties": false
            }
          }
        },
        "required": ["platforms", "primaryPlatform", "method", "detectedAt"],
        "additionalProperties": false
      },
      "PermissionAction_3": {
        "type": "string",
        "enum": ["allow", "deny", "ask"]
      },
      "PermissionRule_3": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "action": {
            "$ref": "#/components/schemas/PermissionAction_3"
          }
        },
        "required": ["permission", "pattern", "action"],
        "additionalProperties": false
      },
      "PermissionRuleset_3": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PermissionRule_3"
        }
      },
      "Session_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^ses"
          },
          "slug": {
            "type": "string"
          },
          "projectID": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "parentID": {
            "type": "string",
            "pattern": "^ses"
          },
          "workspaceID": {
            "type": "string"
          },
          "summary": {
            "type": "object",
            "properties": {
              "additions": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "deletions": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "files": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "diffs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileDiff_2"
                }
              }
            },
            "required": ["additions", "deletions", "files"],
            "additionalProperties": false
          },
          "share": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              }
            },
            "required": ["url"],
            "additionalProperties": false
          },
          "github": {
            "$ref": "#/components/schemas/SessionGithub_3"
          },
          "worktree": {
            "$ref": "#/components/schemas/SessionWorktree_6"
          },
          "mobile": {
            "$ref": "#/components/schemas/SessionMobile_2"
          },
          "title": {
            "type": "string"
          },
          "activeCommand": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacting": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "archived": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "permission": {
            "$ref": "#/components/schemas/PermissionRuleset_3"
          },
          "skills": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "disabledInstructions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "disabledTools": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "revert": {
            "type": "object",
            "properties": {
              "messageID": {
                "type": "string"
              },
              "partID": {
                "type": "string"
              },
              "snapshot": {
                "type": "string"
              },
              "diff": {
                "type": "string"
              }
            },
            "required": ["messageID"],
            "additionalProperties": false
          },
          "lastModel": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          }
        },
        "required": ["id", "slug", "projectID", "directory", "title", "version", "time"],
        "additionalProperties": false
      },
      "FileDiff_3": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "patch": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["added", "deleted", "modified"]
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          }
        },
        "required": ["file", "patch", "additions", "deletions", "before", "after"],
        "additionalProperties": false
      },
      "SessionWorktree_7": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionGithub_4": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "baseBranch": {
            "type": "string"
          },
          "headBranch": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cloneUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "htmlUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "$ref": "#/components/schemas/SessionWorktree_7"
          },
          "pullRequest": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "number": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": ["number", "url", "title"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastCommitSha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "publishError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["owner", "repo", "fullName", "baseBranch", "headBranch", "worktree"],
        "additionalProperties": false
      },
      "SessionWorktree_8": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "repositoryDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "branch", "directory"],
        "additionalProperties": false
      },
      "SessionMobile_3": {
        "type": "object",
        "properties": {
          "platforms": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["ios", "android", "expo", "flutter", "react-native"]
            }
          },
          "primaryPlatform": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "detectedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "buildStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["unknown", "building", "succeeded", "failed"]
              },
              {
                "type": "null"
              }
            ]
          },
          "lastBuildAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "artifacts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "platform": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "size": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["platform", "path"],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["platforms", "primaryPlatform", "method", "detectedAt"],
        "additionalProperties": false
      },
      "PermissionAction_4": {
        "type": "string",
        "enum": ["allow", "deny", "ask"]
      },
      "PermissionRule_4": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "action": {
            "$ref": "#/components/schemas/PermissionAction_4"
          }
        },
        "required": ["permission", "pattern", "action"],
        "additionalProperties": false
      },
      "PermissionRuleset_4": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PermissionRule_4"
        }
      },
      "Session_3": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "projectID": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "parentID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspaceID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "additions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "deletions": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "files": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "diffs": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/FileDiff_3"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["additions", "deletions", "files"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "share": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "required": ["url"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "github": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionGithub_4"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionWorktree_8"
              },
              {
                "type": "null"
              }
            ]
          },
          "mobile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionMobile_3"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "activeCommand": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "string"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacting": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "archived": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionRuleset_4"
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledInstructions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledTools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "revert": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "partID": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "snapshot": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diff": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["messageID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModel": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "slug", "projectID", "directory", "title", "version", "time"],
        "additionalProperties": false
      },
      "SessionStatus_1": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["idle"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["retry"]
              },
              "attempt": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "message": {
                "type": "string"
              },
              "next": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["type", "attempt", "message", "next"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["busy"]
              },
              "since": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["type", "since"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["busy"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          }
        ]
      },
      "OutputFormatText": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["text"]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "JSONSchema": {
        "type": "object"
      },
      "OutputFormatJsonSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["json_schema"]
          },
          "schema": {
            "$ref": "#/components/schemas/JSONSchema"
          },
          "retryCount": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "schema"],
        "additionalProperties": false
      },
      "OutputFormat": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OutputFormatText"
          },
          {
            "$ref": "#/components/schemas/OutputFormatJsonSchema"
          }
        ]
      },
      "FileDiff_4": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "patch": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["added", "deleted", "modified"]
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          }
        },
        "required": ["file", "patch", "additions", "deletions", "before", "after"],
        "additionalProperties": false
      },
      "UserMessage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["user"]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          },
          "format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputFormat"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diffs": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FileDiff_4"
                    }
                  }
                },
                "required": ["diffs"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "system": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "role", "time", "agent", "model"],
        "additionalProperties": false
      },
      "ProviderAuthError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ProviderAuthError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["providerID", "message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "UnknownError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["UnknownError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageOutputLengthError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageOutputLengthError"]
          },
          "data": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "array"
              }
            ]
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageContextOverflowError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageContextOverflowError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responseBody": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageAbortedError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageAbortedError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "StructuredOutputError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["StructuredOutputError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "retries": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["message", "retries"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "APIError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["APIError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isRetryable": {
                "type": "boolean"
              },
              "responseHeaders": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responseBody": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "classification": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["payload-too-large"]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["message", "isRetryable"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "AssistantMessage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["assistant"]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "completed": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          },
          "error": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ProviderAuthError"
                  },
                  {
                    "$ref": "#/components/schemas/UnknownError"
                  },
                  {
                    "$ref": "#/components/schemas/MessageOutputLengthError"
                  },
                  {
                    "$ref": "#/components/schemas/MessageContextOverflowError"
                  },
                  {
                    "$ref": "#/components/schemas/MessageAbortedError"
                  },
                  {
                    "$ref": "#/components/schemas/StructuredOutputError"
                  },
                  {
                    "$ref": "#/components/schemas/APIError"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "parentID": {
            "type": "string"
          },
          "modelID": {
            "type": "string"
          },
          "providerID": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "path": {
            "type": "object",
            "properties": {
              "cwd": {
                "type": "string"
              },
              "root": {
                "type": "string"
              }
            },
            "required": ["cwd", "root"],
            "additionalProperties": false
          },
          "summary": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "reasoning", "cache"],
            "additionalProperties": false
          },
          "structured": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "finish": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "sessionID",
          "role",
          "time",
          "parentID",
          "modelID",
          "providerID",
          "mode",
          "agent",
          "path",
          "cost",
          "tokens"
        ],
        "additionalProperties": false
      },
      "Message": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/UserMessage"
          },
          {
            "$ref": "#/components/schemas/AssistantMessage"
          }
        ]
      },
      "TextPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["text"]
          },
          "text": {
            "type": "string"
          },
          "synthetic": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "ignored": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["start"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "text"],
        "additionalProperties": false
      },
      "SubtaskPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["subtask"]
          },
          "prompt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"],
        "additionalProperties": false
      },
      "ReasoningPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["reasoning"]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "text", "time"],
        "additionalProperties": false
      },
      "FilePartSourceText": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "FileSource": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "path": {
            "type": "string"
          }
        },
        "required": ["text", "type", "path"],
        "additionalProperties": false
      },
      "FilePartSourceText_1": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "Range": {
        "type": "object",
        "properties": {
          "start": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          },
          "end": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          }
        },
        "required": ["start", "end"],
        "additionalProperties": false
      },
      "SymbolSource": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_1"
          },
          "type": {
            "type": "string",
            "enum": ["symbol"]
          },
          "path": {
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/Range"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["text", "type", "path", "range", "name", "kind"],
        "additionalProperties": false
      },
      "FilePartSourceText_2": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "ResourceSource": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_2"
          },
          "type": {
            "type": "string",
            "enum": ["resource"]
          },
          "clientName": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": ["text", "type", "clientName", "uri"],
        "additionalProperties": false
      },
      "FilePartSource": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/FileSource"
          },
          {
            "$ref": "#/components/schemas/SymbolSource"
          },
          {
            "$ref": "#/components/schemas/ResourceSource"
          }
        ]
      },
      "FilePart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilePartSource"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
        "additionalProperties": false
      },
      "ToolStatePending": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["pending"]
          },
          "input": {
            "type": "object"
          },
          "raw": {
            "type": "string"
          }
        },
        "required": ["status", "input", "raw"],
        "additionalProperties": false
      },
      "ToolStateRunning": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["running"]
          },
          "input": {
            "type": "object"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "structured": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "content": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": ["text"]
                        },
                        "text": {
                          "type": "string"
                        }
                      },
                      "required": ["type", "text"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": ["file"]
                        },
                        "data": {
                          "type": "string"
                        },
                        "mime": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["type", "data", "mime"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          }
        },
        "required": ["status", "input", "time"],
        "additionalProperties": false
      },
      "FilePartSourceText_3": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "FileSource_1": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_3"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "path": {
            "type": "string"
          }
        },
        "required": ["text", "type", "path"],
        "additionalProperties": false
      },
      "FilePartSourceText_4": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "Range_1": {
        "type": "object",
        "properties": {
          "start": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          },
          "end": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          }
        },
        "required": ["start", "end"],
        "additionalProperties": false
      },
      "SymbolSource_1": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_4"
          },
          "type": {
            "type": "string",
            "enum": ["symbol"]
          },
          "path": {
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/Range_1"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["text", "type", "path", "range", "name", "kind"],
        "additionalProperties": false
      },
      "FilePartSourceText_5": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "ResourceSource_1": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_5"
          },
          "type": {
            "type": "string",
            "enum": ["resource"]
          },
          "clientName": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": ["text", "type", "clientName", "uri"],
        "additionalProperties": false
      },
      "FilePartSource_1": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/FileSource_1"
          },
          {
            "$ref": "#/components/schemas/SymbolSource_1"
          },
          {
            "$ref": "#/components/schemas/ResourceSource_1"
          }
        ]
      },
      "FilePart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilePartSource_1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
        "additionalProperties": false
      },
      "ToolStateCompleted": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["completed"]
          },
          "input": {
            "type": "object"
          },
          "output": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacted": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["start", "end"],
            "additionalProperties": false
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FilePart_1"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["status", "input", "output", "title", "metadata", "time"],
        "additionalProperties": false
      },
      "ToolStateError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["error"]
          },
          "input": {
            "type": "object"
          },
          "error": {
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start", "end"],
            "additionalProperties": false
          }
        },
        "required": ["status", "input", "error", "time"],
        "additionalProperties": false
      },
      "ToolState": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ToolStatePending"
          },
          {
            "$ref": "#/components/schemas/ToolStateRunning"
          },
          {
            "$ref": "#/components/schemas/ToolStateCompleted"
          },
          {
            "$ref": "#/components/schemas/ToolStateError"
          }
        ]
      },
      "ToolPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["tool"]
          },
          "callID": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ToolState"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"],
        "additionalProperties": false
      },
      "StepStartPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["step-start"]
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type"],
        "additionalProperties": false
      },
      "StepFinishPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["step-finish"]
          },
          "reason": {
            "type": "string"
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "reasoning", "cache"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"],
        "additionalProperties": false
      },
      "SnapshotPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["snapshot"]
          },
          "snapshot": {
            "type": "string"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "snapshot"],
        "additionalProperties": false
      },
      "PatchPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["patch"]
          },
          "hash": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "hash", "files"],
        "additionalProperties": false
      },
      "AgentPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["agent"]
          },
          "name": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "string"
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["value", "start", "end"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "name"],
        "additionalProperties": false
      },
      "APIError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["APIError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isRetryable": {
                "type": "boolean"
              },
              "responseHeaders": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responseBody": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "classification": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["payload-too-large"]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["message", "isRetryable"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "RetryPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["retry"]
          },
          "attempt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "error": {
            "$ref": "#/components/schemas/APIError_1"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"],
        "additionalProperties": false
      },
      "CompactionPart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["compaction"]
          },
          "auto": {
            "type": "boolean"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "auto"],
        "additionalProperties": false
      },
      "Part": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/TextPart"
          },
          {
            "$ref": "#/components/schemas/SubtaskPart"
          },
          {
            "$ref": "#/components/schemas/ReasoningPart"
          },
          {
            "$ref": "#/components/schemas/FilePart"
          },
          {
            "$ref": "#/components/schemas/ToolPart"
          },
          {
            "$ref": "#/components/schemas/StepStartPart"
          },
          {
            "$ref": "#/components/schemas/StepFinishPart"
          },
          {
            "$ref": "#/components/schemas/SnapshotPart"
          },
          {
            "$ref": "#/components/schemas/PatchPart"
          },
          {
            "$ref": "#/components/schemas/AgentPart"
          },
          {
            "$ref": "#/components/schemas/RetryPart"
          },
          {
            "$ref": "#/components/schemas/CompactionPart"
          }
        ]
      },
      "MobileArtifact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "filename": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": ["html", "markdown", "image", "video", "text"]
          },
          "url": {
            "type": "string"
          },
          "viewerUrl": {
            "type": "string"
          },
          "previewUrl": {
            "type": "string"
          },
          "version": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sessionID": {
            "type": "string"
          },
          "size": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "title",
          "filename",
          "contentType",
          "kind",
          "url",
          "viewerUrl",
          "previewUrl",
          "version",
          "sessionID",
          "size",
          "time"
        ],
        "additionalProperties": false
      },
      "PermissionRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "permission": {
            "type": "string"
          },
          "patterns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "metadata": {
            "type": "object"
          },
          "always": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "callID": {
                    "type": "string"
                  }
                },
                "required": ["messageID", "callID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"],
        "additionalProperties": false
      },
      "QuestionOption": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": ["label", "description"],
        "additionalProperties": false
      },
      "QuestionInfo": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string"
          },
          "header": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionOption"
            }
          },
          "multiple": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["question", "header", "options"],
        "additionalProperties": false
      },
      "QuestionRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionInfo"
            }
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "callID": {
                    "type": "string"
                  }
                },
                "required": ["messageID", "callID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "questions"],
        "additionalProperties": false
      },
      "MobileSessionDetail": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/Session_3"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionStatus_1"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "info": {
                  "$ref": "#/components/schemas/Message"
                },
                "parts": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Part"
                  }
                }
              },
              "required": ["info", "parts"],
              "additionalProperties": false
            }
          },
          "artifacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MobileArtifact"
            }
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionRequest"
            }
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionRequest"
            }
          }
        },
        "required": ["info", "messages", "artifacts", "permissions", "questions"],
        "additionalProperties": false
      },
      "MobileSessionCommandInput": {
        "type": "object",
        "properties": {
          "command": {
            "type": "string"
          },
          "arguments": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["command"],
        "additionalProperties": false
      },
      "OutputFormatText_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["text"]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "JSONSchema_1": {
        "type": "object"
      },
      "OutputFormatJsonSchema_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["json_schema"]
          },
          "schema": {
            "$ref": "#/components/schemas/JSONSchema_1"
          },
          "retryCount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": ["type", "schema", "retryCount"],
        "additionalProperties": false
      },
      "OutputFormat_1": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OutputFormatText_1"
          },
          {
            "$ref": "#/components/schemas/OutputFormatJsonSchema_1"
          }
        ]
      },
      "UserMessage_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["user"]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          },
          "format": {
            "$ref": "#/components/schemas/OutputFormat_1"
          },
          "summary": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "body": {
                "type": "string"
              },
              "diffs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileDiff_2"
                }
              }
            },
            "required": ["diffs"],
            "additionalProperties": false
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "system": {
            "type": "string"
          },
          "tools": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "variant": {
            "type": "string"
          }
        },
        "required": ["id", "sessionID", "role", "time", "agent", "model"],
        "additionalProperties": false
      },
      "ProviderAuthError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ProviderAuthError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["providerID", "message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "UnknownError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["UnknownError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageOutputLengthError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageOutputLengthError"]
          },
          "data": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "array"
              }
            ]
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageContextOverflowError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageContextOverflowError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "responseBody": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageAbortedError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageAbortedError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "StructuredOutputError_1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["StructuredOutputError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "retries": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["message", "retries"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "APIError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["APIError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "isRetryable": {
                "type": "boolean"
              },
              "responseHeaders": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "responseBody": {
                "type": "string"
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "classification": {
                "type": "string",
                "enum": ["payload-too-large"]
              }
            },
            "required": ["message", "isRetryable"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "AssistantMessage_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["assistant"]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "completed": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProviderAuthError_1"
              },
              {
                "$ref": "#/components/schemas/UnknownError_1"
              },
              {
                "$ref": "#/components/schemas/MessageOutputLengthError_1"
              },
              {
                "$ref": "#/components/schemas/MessageContextOverflowError_1"
              },
              {
                "$ref": "#/components/schemas/MessageAbortedError_1"
              },
              {
                "$ref": "#/components/schemas/StructuredOutputError_1"
              },
              {
                "$ref": "#/components/schemas/APIError_2"
              }
            ]
          },
          "parentID": {
            "type": "string"
          },
          "modelID": {
            "type": "string"
          },
          "providerID": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "path": {
            "type": "object",
            "properties": {
              "cwd": {
                "type": "string"
              },
              "root": {
                "type": "string"
              }
            },
            "required": ["cwd", "root"],
            "additionalProperties": false
          },
          "summary": {
            "type": "boolean"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "reasoning", "cache"],
            "additionalProperties": false
          },
          "structured": {},
          "finish": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "sessionID",
          "role",
          "time",
          "parentID",
          "modelID",
          "providerID",
          "mode",
          "agent",
          "path",
          "cost",
          "tokens"
        ],
        "additionalProperties": false
      },
      "Message_1": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/UserMessage_1"
          },
          {
            "$ref": "#/components/schemas/AssistantMessage_1"
          }
        ]
      },
      "TextPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["text"]
          },
          "text": {
            "type": "string"
          },
          "synthetic": {
            "type": "boolean"
          },
          "ignored": {
            "type": "boolean"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          },
          "metadata": {
            "type": "object"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "text"],
        "additionalProperties": false
      },
      "SubtaskPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["subtask"]
          },
          "prompt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "command": {
            "type": "string"
          },
          "background": {
            "type": "boolean"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"],
        "additionalProperties": false
      },
      "ReasoningPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["reasoning"]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "text", "time"],
        "additionalProperties": false
      },
      "FilePartSourceText_6": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "type": "integer"
          },
          "end": {
            "type": "integer"
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "FileSource_2": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_6"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "path": {
            "type": "string"
          }
        },
        "required": ["text", "type", "path"],
        "additionalProperties": false
      },
      "Range_2": {
        "type": "object",
        "properties": {
          "start": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          },
          "end": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          }
        },
        "required": ["start", "end"],
        "additionalProperties": false
      },
      "SymbolSource_2": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_6"
          },
          "type": {
            "type": "string",
            "enum": ["symbol"]
          },
          "path": {
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/Range_2"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "integer"
          }
        },
        "required": ["text", "type", "path", "range", "name", "kind"],
        "additionalProperties": false
      },
      "ResourceSource_2": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_6"
          },
          "type": {
            "type": "string",
            "enum": ["resource"]
          },
          "clientName": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": ["text", "type", "clientName", "uri"],
        "additionalProperties": false
      },
      "FilePartSource_2": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/FileSource_2"
          },
          {
            "$ref": "#/components/schemas/SymbolSource_2"
          },
          {
            "$ref": "#/components/schemas/ResourceSource_2"
          }
        ]
      },
      "FilePart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/FilePartSource_2"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
        "additionalProperties": false
      },
      "ToolStatePending_1": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["pending"]
          },
          "input": {
            "type": "object"
          },
          "raw": {
            "type": "string"
          }
        },
        "required": ["status", "input", "raw"],
        "additionalProperties": false
      },
      "ToolStateRunning_1": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["running"]
          },
          "input": {
            "type": "object"
          },
          "title": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "structured": {
            "type": "object"
          },
          "content": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": ["text"]
                    },
                    "text": {
                      "type": "string"
                    }
                  },
                  "required": ["type", "text"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": ["file"]
                    },
                    "data": {
                      "type": "string"
                    },
                    "mime": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": ["type", "data", "mime"],
                  "additionalProperties": false
                }
              ]
            }
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          }
        },
        "required": ["status", "input", "time"],
        "additionalProperties": false
      },
      "ToolStateCompleted_1": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["completed"]
          },
          "input": {
            "type": "object"
          },
          "output": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacted": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start", "end"],
            "additionalProperties": false
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilePart_2"
            }
          }
        },
        "required": ["status", "input", "output", "title", "metadata", "time"],
        "additionalProperties": false
      },
      "ToolStateError_1": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["error"]
          },
          "input": {
            "type": "object"
          },
          "error": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start", "end"],
            "additionalProperties": false
          }
        },
        "required": ["status", "input", "error", "time"],
        "additionalProperties": false
      },
      "ToolState_1": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ToolStatePending_1"
          },
          {
            "$ref": "#/components/schemas/ToolStateRunning_1"
          },
          {
            "$ref": "#/components/schemas/ToolStateCompleted_1"
          },
          {
            "$ref": "#/components/schemas/ToolStateError_1"
          }
        ]
      },
      "ToolPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["tool"]
          },
          "callID": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ToolState_1"
          },
          "metadata": {
            "type": "object"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"],
        "additionalProperties": false
      },
      "StepStartPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["step-start"]
          },
          "snapshot": {
            "type": "string"
          }
        },
        "required": ["id", "sessionID", "messageID", "type"],
        "additionalProperties": false
      },
      "StepFinishPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["step-finish"]
          },
          "reason": {
            "type": "string"
          },
          "snapshot": {
            "type": "string"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "reasoning", "cache"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"],
        "additionalProperties": false
      },
      "SnapshotPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["snapshot"]
          },
          "snapshot": {
            "type": "string"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "snapshot"],
        "additionalProperties": false
      },
      "PatchPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["patch"]
          },
          "hash": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "hash", "files"],
        "additionalProperties": false
      },
      "AgentPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["agent"]
          },
          "name": {
            "type": "string"
          },
          "source": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string"
              },
              "start": {
                "type": "integer"
              },
              "end": {
                "type": "integer"
              }
            },
            "required": ["value", "start", "end"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "name"],
        "additionalProperties": false
      },
      "RetryPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["retry"]
          },
          "attempt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "error": {
            "$ref": "#/components/schemas/APIError_2"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"],
        "additionalProperties": false
      },
      "CompactionPart_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["compaction"]
          },
          "auto": {
            "type": "boolean"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "auto"],
        "additionalProperties": false
      },
      "Part_1": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/TextPart_1"
          },
          {
            "$ref": "#/components/schemas/SubtaskPart_1"
          },
          {
            "$ref": "#/components/schemas/ReasoningPart_1"
          },
          {
            "$ref": "#/components/schemas/FilePart_2"
          },
          {
            "$ref": "#/components/schemas/ToolPart_1"
          },
          {
            "$ref": "#/components/schemas/StepStartPart_1"
          },
          {
            "$ref": "#/components/schemas/StepFinishPart_1"
          },
          {
            "$ref": "#/components/schemas/SnapshotPart_1"
          },
          {
            "$ref": "#/components/schemas/PatchPart_1"
          },
          {
            "$ref": "#/components/schemas/AgentPart_1"
          },
          {
            "$ref": "#/components/schemas/RetryPart_1"
          },
          {
            "$ref": "#/components/schemas/CompactionPart_1"
          }
        ]
      },
      "OutputFormatText_2": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["text"]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "JSONSchema_2": {
        "type": "object"
      },
      "OutputFormatJsonSchema_2": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["json_schema"]
          },
          "schema": {
            "$ref": "#/components/schemas/JSONSchema_2"
          },
          "retryCount": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "schema"],
        "additionalProperties": false
      },
      "OutputFormat_2": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OutputFormatText_2"
          },
          {
            "$ref": "#/components/schemas/OutputFormatJsonSchema_2"
          }
        ]
      },
      "TextPartInput": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": ["text"]
          },
          "text": {
            "type": "string"
          },
          "synthetic": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "ignored": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["start"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "text"],
        "additionalProperties": false
      },
      "FilePartSourceText_7": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "FileSource_3": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_7"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "path": {
            "type": "string"
          }
        },
        "required": ["text", "type", "path"],
        "additionalProperties": false
      },
      "FilePartSourceText_8": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "Range_3": {
        "type": "object",
        "properties": {
          "start": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          },
          "end": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          }
        },
        "required": ["start", "end"],
        "additionalProperties": false
      },
      "SymbolSource_3": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_8"
          },
          "type": {
            "type": "string",
            "enum": ["symbol"]
          },
          "path": {
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/Range_3"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["text", "type", "path", "range", "name", "kind"],
        "additionalProperties": false
      },
      "FilePartSourceText_9": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "ResourceSource_3": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_9"
          },
          "type": {
            "type": "string",
            "enum": ["resource"]
          },
          "clientName": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": ["text", "type", "clientName", "uri"],
        "additionalProperties": false
      },
      "FilePartSource_3": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/FileSource_3"
          },
          {
            "$ref": "#/components/schemas/SymbolSource_3"
          },
          {
            "$ref": "#/components/schemas/ResourceSource_3"
          }
        ]
      },
      "FilePartInput": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilePartSource_3"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "mime", "url"],
        "additionalProperties": false
      },
      "AgentPartInput": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": ["agent"]
          },
          "name": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "string"
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["value", "start", "end"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "name"],
        "additionalProperties": false
      },
      "SubtaskPartInput": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": ["subtask"]
          },
          "prompt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "prompt", "description", "agent"],
        "additionalProperties": false
      },
      "MobileSessionMessageInput": {
        "type": "object",
        "properties": {
          "messageID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["steer", "queue"]
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "noReply": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputFormat_2"
              },
              {
                "type": "null"
              }
            ]
          },
          "system": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "parts": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TextPartInput"
                },
                {
                  "$ref": "#/components/schemas/FilePartInput"
                },
                {
                  "$ref": "#/components/schemas/AgentPartInput"
                },
                {
                  "$ref": "#/components/schemas/SubtaskPartInput"
                }
              ]
            }
          },
          "parentSessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["parts"],
        "additionalProperties": false
      },
      "MobileAccepted": {
        "type": "object",
        "properties": {
          "accepted": {
            "type": "boolean",
            "enum": [true]
          }
        },
        "required": ["accepted"],
        "additionalProperties": false
      },
      "MobilePermissionRespondInput": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "enum": ["once", "always", "reject"]
          }
        },
        "required": ["response"],
        "additionalProperties": false
      },
      "MobileGithubPublishInput": {
        "type": "object",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "commitMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileGithubPublishResult": {
        "type": "object",
        "properties": {
          "commitSha": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "pullRequest": {
            "type": "object",
            "properties": {
              "number": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "url": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": ["number", "url", "title"],
            "additionalProperties": false
          }
        },
        "required": ["commitSha", "branch", "pullRequest"],
        "additionalProperties": false
      },
      "Todo": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "Brief description of the task"
          },
          "status": {
            "type": "string",
            "description": "Current status of the task: pending, in_progress, completed, cancelled"
          },
          "priority": {
            "type": "string",
            "description": "Priority level of the task: high, medium, low"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier for the todo item"
          }
        },
        "required": ["content", "status", "priority", "id"],
        "additionalProperties": false
      },
      "PermissionAction_5": {
        "type": "string",
        "enum": ["allow", "deny", "ask"]
      },
      "PermissionRule_5": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "action": {
            "$ref": "#/components/schemas/PermissionAction_5"
          }
        },
        "required": ["permission", "pattern", "action"],
        "additionalProperties": false
      },
      "PermissionRuleset_5": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PermissionRule_5"
        }
      },
      "OutputFormatText_3": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["text"]
          }
        },
        "required": ["type"],
        "additionalProperties": false
      },
      "JSONSchema_3": {
        "type": "object"
      },
      "OutputFormatJsonSchema_3": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["json_schema"]
          },
          "schema": {
            "$ref": "#/components/schemas/JSONSchema_3"
          },
          "retryCount": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "schema"],
        "additionalProperties": false
      },
      "OutputFormat_3": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OutputFormatText_3"
          },
          {
            "$ref": "#/components/schemas/OutputFormatJsonSchema_3"
          }
        ]
      },
      "FileDiff_5": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "patch": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["added", "deleted", "modified"]
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          }
        },
        "required": ["file", "patch", "additions", "deletions", "before", "after"],
        "additionalProperties": false
      },
      "UserMessage_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["user"]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          },
          "format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputFormat_3"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diffs": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FileDiff_5"
                    }
                  }
                },
                "required": ["diffs"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "system": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tools": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "role", "time", "agent", "model"],
        "additionalProperties": false
      },
      "ProviderAuthError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ProviderAuthError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["providerID", "message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "UnknownError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["UnknownError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageOutputLengthError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageOutputLengthError"]
          },
          "data": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "array"
              }
            ]
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageContextOverflowError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageContextOverflowError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responseBody": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "MessageAbortedError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["MessageAbortedError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "StructuredOutputError_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["StructuredOutputError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "retries": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["message", "retries"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "APIError_3": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["APIError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isRetryable": {
                "type": "boolean"
              },
              "responseHeaders": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responseBody": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "classification": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["payload-too-large"]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["message", "isRetryable"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "AssistantMessage_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["assistant"]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "completed": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          },
          "error": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ProviderAuthError_2"
                  },
                  {
                    "$ref": "#/components/schemas/UnknownError_2"
                  },
                  {
                    "$ref": "#/components/schemas/MessageOutputLengthError_2"
                  },
                  {
                    "$ref": "#/components/schemas/MessageContextOverflowError_2"
                  },
                  {
                    "$ref": "#/components/schemas/MessageAbortedError_2"
                  },
                  {
                    "$ref": "#/components/schemas/StructuredOutputError_2"
                  },
                  {
                    "$ref": "#/components/schemas/APIError_3"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "parentID": {
            "type": "string"
          },
          "modelID": {
            "type": "string"
          },
          "providerID": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "path": {
            "type": "object",
            "properties": {
              "cwd": {
                "type": "string"
              },
              "root": {
                "type": "string"
              }
            },
            "required": ["cwd", "root"],
            "additionalProperties": false
          },
          "summary": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "reasoning", "cache"],
            "additionalProperties": false
          },
          "structured": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "finish": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "sessionID",
          "role",
          "time",
          "parentID",
          "modelID",
          "providerID",
          "mode",
          "agent",
          "path",
          "cost",
          "tokens"
        ],
        "additionalProperties": false
      },
      "Message_2": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/UserMessage_2"
          },
          {
            "$ref": "#/components/schemas/AssistantMessage_2"
          }
        ]
      },
      "TextPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["text"]
          },
          "text": {
            "type": "string"
          },
          "synthetic": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "ignored": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["start"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "text"],
        "additionalProperties": false
      },
      "SubtaskPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["subtask"]
          },
          "prompt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"],
        "additionalProperties": false
      },
      "ReasoningPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["reasoning"]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "text", "time"],
        "additionalProperties": false
      },
      "FilePartSourceText_10": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "FileSource_4": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_10"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "path": {
            "type": "string"
          }
        },
        "required": ["text", "type", "path"],
        "additionalProperties": false
      },
      "FilePartSourceText_11": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "Range_4": {
        "type": "object",
        "properties": {
          "start": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          },
          "end": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          }
        },
        "required": ["start", "end"],
        "additionalProperties": false
      },
      "SymbolSource_4": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_11"
          },
          "type": {
            "type": "string",
            "enum": ["symbol"]
          },
          "path": {
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/Range_4"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["text", "type", "path", "range", "name", "kind"],
        "additionalProperties": false
      },
      "FilePartSourceText_12": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "ResourceSource_4": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_12"
          },
          "type": {
            "type": "string",
            "enum": ["resource"]
          },
          "clientName": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": ["text", "type", "clientName", "uri"],
        "additionalProperties": false
      },
      "FilePartSource_4": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/FileSource_4"
          },
          {
            "$ref": "#/components/schemas/SymbolSource_4"
          },
          {
            "$ref": "#/components/schemas/ResourceSource_4"
          }
        ]
      },
      "FilePart_3": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilePartSource_4"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
        "additionalProperties": false
      },
      "ToolStatePending_2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["pending"]
          },
          "input": {
            "type": "object"
          },
          "raw": {
            "type": "string"
          }
        },
        "required": ["status", "input", "raw"],
        "additionalProperties": false
      },
      "ToolStateRunning_2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["running"]
          },
          "input": {
            "type": "object"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "structured": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "content": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": ["text"]
                        },
                        "text": {
                          "type": "string"
                        }
                      },
                      "required": ["type", "text"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": ["file"]
                        },
                        "data": {
                          "type": "string"
                        },
                        "mime": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["type", "data", "mime"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          }
        },
        "required": ["status", "input", "time"],
        "additionalProperties": false
      },
      "FilePartSourceText_13": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "FileSource_5": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_13"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "path": {
            "type": "string"
          }
        },
        "required": ["text", "type", "path"],
        "additionalProperties": false
      },
      "FilePartSourceText_14": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "Range_5": {
        "type": "object",
        "properties": {
          "start": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          },
          "end": {
            "type": "object",
            "properties": {
              "line": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "character": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["line", "character"],
            "additionalProperties": false
          }
        },
        "required": ["start", "end"],
        "additionalProperties": false
      },
      "SymbolSource_5": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_14"
          },
          "type": {
            "type": "string",
            "enum": ["symbol"]
          },
          "path": {
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/Range_5"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["text", "type", "path", "range", "name", "kind"],
        "additionalProperties": false
      },
      "FilePartSourceText_15": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["value", "start", "end"],
        "additionalProperties": false
      },
      "ResourceSource_5": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/FilePartSourceText_15"
          },
          "type": {
            "type": "string",
            "enum": ["resource"]
          },
          "clientName": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": ["text", "type", "clientName", "uri"],
        "additionalProperties": false
      },
      "FilePartSource_5": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/FileSource_5"
          },
          {
            "$ref": "#/components/schemas/SymbolSource_5"
          },
          {
            "$ref": "#/components/schemas/ResourceSource_5"
          }
        ]
      },
      "FilePart_4": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilePartSource_5"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
        "additionalProperties": false
      },
      "ToolStateCompleted_2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["completed"]
          },
          "input": {
            "type": "object"
          },
          "output": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "compacted": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["start", "end"],
            "additionalProperties": false
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FilePart_4"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["status", "input", "output", "title", "metadata", "time"],
        "additionalProperties": false
      },
      "ToolStateError_2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["error"]
          },
          "input": {
            "type": "object"
          },
          "error": {
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start", "end"],
            "additionalProperties": false
          }
        },
        "required": ["status", "input", "error", "time"],
        "additionalProperties": false
      },
      "ToolState_2": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ToolStatePending_2"
          },
          {
            "$ref": "#/components/schemas/ToolStateRunning_2"
          },
          {
            "$ref": "#/components/schemas/ToolStateCompleted_2"
          },
          {
            "$ref": "#/components/schemas/ToolStateError_2"
          }
        ]
      },
      "ToolPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["tool"]
          },
          "callID": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ToolState_2"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"],
        "additionalProperties": false
      },
      "StepStartPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["step-start"]
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type"],
        "additionalProperties": false
      },
      "StepFinishPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["step-finish"]
          },
          "reason": {
            "type": "string"
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokens": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cache": {
                "type": "object",
                "properties": {
                  "read": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "write": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["read", "write"],
                "additionalProperties": false
              }
            },
            "required": ["input", "output", "reasoning", "cache"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"],
        "additionalProperties": false
      },
      "SnapshotPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["snapshot"]
          },
          "snapshot": {
            "type": "string"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "snapshot"],
        "additionalProperties": false
      },
      "PatchPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["patch"]
          },
          "hash": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "hash", "files"],
        "additionalProperties": false
      },
      "AgentPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["agent"]
          },
          "name": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "string"
                  },
                  "start": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "end": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["value", "start", "end"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "name"],
        "additionalProperties": false
      },
      "APIError_4": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["APIError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "statusCode": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isRetryable": {
                "type": "boolean"
              },
              "responseHeaders": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responseBody": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "classification": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["payload-too-large"]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["message", "isRetryable"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "RetryPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["retry"]
          },
          "attempt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "error": {
            "$ref": "#/components/schemas/APIError_4"
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["created"],
            "additionalProperties": false
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"],
        "additionalProperties": false
      },
      "CompactionPart_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["compaction"]
          },
          "auto": {
            "type": "boolean"
          }
        },
        "required": ["id", "sessionID", "messageID", "type", "auto"],
        "additionalProperties": false
      },
      "Part_2": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/TextPart_2"
          },
          {
            "$ref": "#/components/schemas/SubtaskPart_2"
          },
          {
            "$ref": "#/components/schemas/ReasoningPart_2"
          },
          {
            "$ref": "#/components/schemas/FilePart_3"
          },
          {
            "$ref": "#/components/schemas/ToolPart_2"
          },
          {
            "$ref": "#/components/schemas/StepStartPart_2"
          },
          {
            "$ref": "#/components/schemas/StepFinishPart_2"
          },
          {
            "$ref": "#/components/schemas/SnapshotPart_2"
          },
          {
            "$ref": "#/components/schemas/PatchPart_2"
          },
          {
            "$ref": "#/components/schemas/AgentPart_2"
          },
          {
            "$ref": "#/components/schemas/RetryPart_2"
          },
          {
            "$ref": "#/components/schemas/CompactionPart_2"
          }
        ]
      },
      "MobileTeleportInput": {
        "type": "object",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PermissionRuleset_5"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "info": {
                  "$ref": "#/components/schemas/Message_2"
                },
                "parts": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Part_2"
                  }
                }
              },
              "required": ["info", "parts"],
              "additionalProperties": false
            }
          },
          "uploadID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["messages"],
        "additionalProperties": false
      },
      "MobileTeleportResult": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "messageCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "directory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspace": {
            "type": "boolean"
          }
        },
        "required": ["sessionID", "messageCount", "workspace"],
        "additionalProperties": false
      },
      "MobileTeleportOutInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "content": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "includeGit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["url", "token"],
        "additionalProperties": false
      },
      "MobileWorktreeCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "branchPrefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "baseBranch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "remote": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startCommand": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "detached": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceDirectory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "root": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "Worktree_2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["name", "directory"],
        "additionalProperties": false
      },
      "MobileWorktreeRemoveInput": {
        "type": "object",
        "properties": {
          "directory": {
            "type": "string"
          },
          "force": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["directory"],
        "additionalProperties": false
      },
      "MobileWorktreeResetInput": {
        "type": "object",
        "properties": {
          "directory": {
            "type": "string"
          }
        },
        "required": ["directory"],
        "additionalProperties": false
      },
      "MobileGitChange": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["added", "modified", "deleted", "renamed"]
          },
          "path": {
            "type": "string"
          },
          "additions": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "oldPath": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["status", "path"],
        "additionalProperties": false
      },
      "MobileGitStatus": {
        "type": "object",
        "properties": {
          "branch": {
            "type": "string"
          },
          "staged": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MobileGitChange"
            }
          },
          "unstaged": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MobileGitChange"
            }
          },
          "untracked": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "commitsAhead": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "commitsBehind": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastCommit": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "sha": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "timestamp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["sha", "message", "author", "timestamp"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["branch", "staged", "unstaged", "untracked", "commitsAhead", "commitsBehind"],
        "additionalProperties": false
      },
      "MobileGitFileDiff": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "oldPath": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hunks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "header": {
                  "type": "object",
                  "properties": {
                    "oldStart": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "oldLines": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "newStart": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    "newLines": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    }
                  },
                  "required": ["oldStart", "oldLines", "newStart", "newLines"],
                  "additionalProperties": false
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": ["add", "remove", "context"]
                      },
                      "text": {
                        "type": "string"
                      },
                      "oldLineNumber": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "newLineNumber": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["type", "text"],
                    "additionalProperties": false
                  }
                }
              },
              "required": ["header", "lines"],
              "additionalProperties": false
            }
          },
          "isBinary": {
            "type": "boolean"
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["file", "hunks", "isBinary", "additions", "deletions"],
        "additionalProperties": false
      },
      "MobileGitCommit": {
        "type": "object",
        "properties": {
          "sha": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "author": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "required": ["name", "email"],
            "additionalProperties": false
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "filesCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "additions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "deletions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["sha", "message", "author", "timestamp", "filesCount", "additions", "deletions"],
        "additionalProperties": false
      },
      "MobileGitBranch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "isProtected": {
            "type": "boolean"
          },
          "aheadBy": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "behindBy": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "isCurrent", "isProtected", "aheadBy", "behindBy"],
        "additionalProperties": false
      },
      "LoopStage": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "objective": {
            "type": "string"
          },
          "tokenBudget": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "agent", "objective"],
        "additionalProperties": false
      },
      "LoopTrigger": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": ["manual"]
              }
            },
            "required": ["kind"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": ["interval"]
              },
              "everyMs": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["kind", "everyMs"],
            "additionalProperties": false
          }
        ]
      },
      "LoopWorktree": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["name", "directory"],
        "additionalProperties": false
      },
      "LoopDefinition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopStage"
            }
          },
          "trigger": {
            "$ref": "#/components/schemas/LoopTrigger"
          },
          "maxRuns": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "createPR": {
            "type": "boolean"
          },
          "sandbox": {
            "type": "boolean"
          },
          "worktree": {
            "$ref": "#/components/schemas/LoopWorktree"
          },
          "paused": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "name", "stages", "trigger", "enabled", "createdAt"],
        "additionalProperties": false
      },
      "MobileLoopRuntime": {
        "type": "object",
        "properties": {
          "loopID": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["idle", "running", "paused", "error", "cancelling"]
          },
          "runs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastRunAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "lastError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["loopID", "status", "runs"],
        "additionalProperties": false
      },
      "MobileLoopWriteInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "stages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "agent": {
                  "type": "string"
                },
                "model": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "objective": {
                  "type": "string"
                },
                "tokenBudget": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["name", "agent", "objective"],
              "additionalProperties": false
            }
          },
          "trigger": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["manual"]
                  }
                },
                "required": ["kind"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["interval"]
                  },
                  "everyMs": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["kind", "everyMs"],
                "additionalProperties": false
              }
            ]
          },
          "maxRuns": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "createPR": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sandbox": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "directory": {
                    "type": "string"
                  }
                },
                "required": ["name", "directory"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "paused": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["name", "stages", "trigger", "enabled"],
        "additionalProperties": false
      },
      "MobileLoopTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "draft": {
            "type": "object",
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "stages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "model": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "objective": {
                      "type": "string"
                    },
                    "tokenBudget": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": ["Infinity", "-Infinity", "NaN"]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["objective"],
                  "additionalProperties": false
                }
              },
              "intervalMs": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "maxRuns": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["stages"],
            "additionalProperties": false
          }
        },
        "required": ["id", "title", "description", "draft"],
        "additionalProperties": false
      },
      "MobileLoopGenerateInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["description"],
        "additionalProperties": false
      },
      "MobileLoopRun": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "loopID": {
            "type": "string"
          },
          "startedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["running", "complete", "error", "timeout", "cancelled", "orphaned"]
          },
          "heartbeatAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ok": {
            "type": "boolean"
          },
          "pullRequest": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "number": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "branch": {
                    "type": "string"
                  },
                  "base": {
                    "type": "string"
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "action": {
                    "type": "string",
                    "enum": ["created", "updated"]
                  }
                },
                "required": ["number", "url", "branch", "base", "action"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "loopID", "startedAt", "status", "ok"],
        "additionalProperties": false
      },
      "RoutineTriggerSchedule": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["schedule"]
          },
          "cron": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["type", "cron", "enabled"],
        "additionalProperties": false
      },
      "RoutineTriggerApi": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["api"]
          },
          "token": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["type", "token", "enabled"],
        "additionalProperties": false
      },
      "RoutineTrigger": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/RoutineTriggerSchedule"
          },
          {
            "$ref": "#/components/schemas/RoutineTriggerApi"
          }
        ]
      },
      "MobileRoutine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoutineTrigger"
            }
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "paused": {
            "type": "boolean"
          },
          "projectID": {
            "type": "string"
          },
          "directory": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastRunAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "lastSessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "name", "prompt", "triggers", "paused", "projectID", "directory", "createdAt", "updatedAt"],
        "additionalProperties": false
      },
      "RoutineTriggerSchedule_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["schedule"]
          },
          "cron": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["type", "cron", "enabled"],
        "additionalProperties": false
      },
      "RoutineTriggerApi_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["api"]
          },
          "token": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["type", "token", "enabled"],
        "additionalProperties": false
      },
      "RoutineTrigger_1": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/RoutineTriggerSchedule_1"
          },
          {
            "$ref": "#/components/schemas/RoutineTriggerApi_1"
          }
        ]
      },
      "MobileRoutineCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "triggers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RoutineTrigger_1"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "prompt"],
        "additionalProperties": false
      },
      "RoutineTriggerSchedule_2": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["schedule"]
          },
          "cron": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["type", "cron", "enabled"],
        "additionalProperties": false
      },
      "RoutineTriggerApi_2": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["api"]
          },
          "token": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["type", "token", "enabled"],
        "additionalProperties": false
      },
      "RoutineTrigger_2": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/RoutineTriggerSchedule_2"
          },
          {
            "$ref": "#/components/schemas/RoutineTriggerApi_2"
          }
        ]
      },
      "MobileRoutineUpdateInput": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "triggers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RoutineTrigger_2"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "providerID": {
                    "type": "string"
                  },
                  "modelID": {
                    "type": "string"
                  }
                },
                "required": ["providerID", "modelID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "paused": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileRoutineRunInput": {
        "type": "object",
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileRoutineTriggerInput": {
        "type": "object",
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "Pty": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^pty"
          },
          "title": {
            "type": "string"
          },
          "command": {
            "type": "string"
          },
          "args": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cwd": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["running", "exited"]
          },
          "pid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
        "additionalProperties": false
      },
      "MobileMissionDefinition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "objective": {
                        "type": "string"
                      },
                      "agent": {
                        "type": "string"
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tokenBudget": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependsOn": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["id", "name", "objective", "agent"],
                    "additionalProperties": false
                  }
                },
                "validation": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["scrutiny", "user-test", "none"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["pending", "running", "validating", "done", "blocked"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["id", "name", "features"],
              "additionalProperties": false
            }
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "worker": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orchestrator": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sandbox": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "directory": {
                    "type": "string"
                  }
                },
                "required": ["name", "directory"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["planning", "ready", "running", "paused", "frozen", "complete", "error"]
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "name", "brief", "milestones", "createdAt"],
        "additionalProperties": false
      },
      "MobileMissionRuntime": {
        "type": "object",
        "properties": {
          "missionID": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["idle", "running", "paused", "error", "cancelling"]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "currentMilestoneID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "currentFeatureID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "doneFeatures": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "totalFeatures": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastRunAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["missionID", "status", "doneFeatures", "totalFeatures"],
        "additionalProperties": false
      },
      "MobileMissionWriteInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "objective": {
                        "type": "string"
                      },
                      "agent": {
                        "type": "string"
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tokenBudget": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependsOn": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["id", "name", "objective", "agent"],
                    "additionalProperties": false
                  }
                },
                "validation": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["scrutiny", "user-test", "none"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["pending", "running", "validating", "done", "blocked"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["id", "name", "features"],
              "additionalProperties": false
            }
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "worker": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orchestrator": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sandbox": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "directory": {
                    "type": "string"
                  }
                },
                "required": ["name", "directory"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name", "brief", "milestones"],
        "additionalProperties": false
      },
      "MobileMissionTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          }
        },
        "required": ["id", "title", "description", "brief"],
        "additionalProperties": false
      },
      "MobileMissionGenerateInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["description"],
        "additionalProperties": false
      },
      "MobileMissionExec": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "missionID": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": ["feature", "validation"]
          },
          "targetID": {
            "type": "string"
          },
          "targetName": {
            "type": "string"
          },
          "startedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["running", "complete", "error", "timeout", "cancelled", "orphaned"]
          },
          "heartbeatAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ok": {
            "type": "boolean"
          }
        },
        "required": ["id", "missionID", "kind", "targetID", "targetName", "startedAt", "status", "ok"],
        "additionalProperties": false
      },
      "MobileMissionUpdateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "brief": {
            "type": "string"
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "objective": {
                        "type": "string"
                      },
                      "agent": {
                        "type": "string"
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tokenBudget": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependsOn": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["id", "name", "objective", "agent"],
                    "additionalProperties": false
                  }
                },
                "validation": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["scrutiny", "user-test", "none"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["pending", "running", "validating", "done", "blocked"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["id", "name", "features"],
              "additionalProperties": false
            }
          },
          "models": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "worker": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orchestrator": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sandbox": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "worktree": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "directory": {
                    "type": "string"
                  }
                },
                "required": ["name", "directory"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["planning", "ready", "running", "paused", "frozen", "complete", "error"]
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "brief", "milestones", "createdAt"],
        "additionalProperties": false
      },
      "MobileMissionFeatureMutateInput": {
        "type": "object",
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["pending", "running", "done", "blocked", "skipped", "error"]
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "appendDependsOn": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "MobileHostLan": {
        "type": "object",
        "properties": {
          "listening": {
            "type": "boolean"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hostname": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "port": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["listening"],
        "additionalProperties": false
      },
      "MobileHostLanStartInput": {
        "type": "object",
        "properties": {
          "mdns": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Project_2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "worktree": {
            "type": "string"
          },
          "canonical": {
            "type": "string"
          },
          "vcs": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["git"]
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "override": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "commands": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "time": {
            "type": "object",
            "properties": {
              "created": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "updated": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "initialized": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["created", "updated"],
            "additionalProperties": false
          },
          "sandboxes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "worktree", "canonical", "time", "sandboxes"],
        "additionalProperties": false
      },
      "ProjectUpdateInput": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "override": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ProjectDirectory": {
        "type": "object",
        "properties": {
          "directory": {
            "type": "string"
          },
          "strategy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["directory"],
        "additionalProperties": false
      },
      "ProjectCopyCreateInput": {
        "type": "object",
        "properties": {
          "strategy": {
            "type": "string",
            "enum": ["git_worktree"]
          },
          "directory": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["strategy", "directory"],
        "additionalProperties": false
      },
      "ProjectCopy": {
        "type": "object",
        "properties": {
          "directory": {
            "type": "string"
          }
        },
        "required": ["directory"],
        "additionalProperties": false
      },
      "ProjectCopyRemoveInput": {
        "type": "object",
        "properties": {
          "directory": {
            "type": "string"
          },
          "force": {
            "type": "boolean"
          }
        },
        "required": ["directory", "force"],
        "additionalProperties": false
      },
      "ProjectCopyRefresh": {
        "type": "object",
        "properties": {
          "updated": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "removed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["updated", "removed"],
        "additionalProperties": false
      },
      "ProviderList": {
        "type": "object",
        "properties": {
          "all": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider"
            }
          },
          "default": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "connected": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["all", "default", "connected"],
        "additionalProperties": false
      },
      "ProviderAuthMethod": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["oauth", "api"]
          },
          "label": {
            "type": "string"
          }
        },
        "required": ["type", "label"],
        "additionalProperties": false
      },
      "ProviderAuthMethods": {
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ProviderAuthMethod"
          }
        }
      },
      "ProviderApiPayload": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          }
        },
        "required": ["key"],
        "additionalProperties": false
      },
      "ProviderMutationSuccess": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [true]
          }
        },
        "required": ["success"],
        "additionalProperties": false
      },
      "ProviderOAuthAuthorizeInput": {
        "type": "object",
        "properties": {
          "method": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["method"],
        "additionalProperties": false
      },
      "ProviderOAuthAuthorization": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "method": {
            "type": "string",
            "enum": ["auto", "code", "auto-code"]
          },
          "instructions": {
            "type": "string"
          }
        },
        "required": ["url", "method", "instructions"],
        "additionalProperties": false
      },
      "ProviderOAuthCallbackInput": {
        "type": "object",
        "properties": {
          "method": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "code": {
            "type": "string"
          }
        },
        "required": ["method"],
        "additionalProperties": false
      },
      "QuestionOption_1": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": ["label", "description"],
        "additionalProperties": false
      },
      "QuestionInfo_1": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string"
          },
          "header": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionOption_1"
            }
          },
          "multiple": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["question", "header", "options"],
        "additionalProperties": false
      },
      "QuestionRequest_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionInfo_1"
            }
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "callID": {
                    "type": "string"
                  }
                },
                "required": ["messageID", "callID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "questions"],
        "additionalProperties": false
      },
      "QuestionAnswer": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "QuestionReply": {
        "type": "object",
        "properties": {
          "answers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionAnswer"
            }
          }
        },
        "required": ["answers"],
        "additionalProperties": false
      },
      "PermissionRequest_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "permission": {
            "type": "string"
          },
          "patterns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "metadata": {
            "type": "object"
          },
          "always": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "callID": {
                    "type": "string"
                  }
                },
                "required": ["messageID", "callID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"],
        "additionalProperties": false
      },
      "PermissionBlocked": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "permission": {
            "type": "string"
          },
          "patterns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rule": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tool": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "messageID": {
                    "type": "string"
                  },
                  "callID": {
                    "type": "string"
                  }
                },
                "required": ["messageID", "callID"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID", "permission", "patterns", "rule", "reason", "time"],
        "additionalProperties": false
      },
      "PermissionReply": {
        "type": "string",
        "enum": ["once", "always", "reject"]
      },
      "PermissionReplyInput": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/PermissionReply"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["reply"],
        "additionalProperties": false
      },
      "Pty_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "command": {
            "type": "string"
          },
          "args": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cwd": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["running", "exited"]
          },
          "pid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
        "additionalProperties": false
      },
      "PtyList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Pty_1"
        }
      },
      "PtyCreateInput": {
        "type": "object",
        "properties": {
          "command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "args": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "cwd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "env": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "PtyCreateErrorBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["PtyCreateError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "PtyNotFoundError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["NotFoundError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "PtyUpdateInput": {
        "type": "object",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "size": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "rows": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "cols": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["rows", "cols"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "LoopRuntime": {
        "type": "object",
        "properties": {
          "loopID": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["idle", "running", "paused", "error", "cancelling"]
          },
          "runs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastRunAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastError": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          }
        },
        "required": ["loopID", "status", "runs"],
        "additionalProperties": false
      },
      "LoopListOutput": {
        "type": "object",
        "properties": {
          "loops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopDefinition"
            }
          },
          "runtimes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopRuntime"
            }
          }
        },
        "required": ["loops", "runtimes"],
        "additionalProperties": false
      },
      "LoopTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "draft": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "stages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "agent": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "objective": {
                      "type": "string"
                    },
                    "tokenBudget": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": ["Infinity", "-Infinity", "NaN"]
                        }
                      ]
                    }
                  },
                  "required": ["objective"],
                  "additionalProperties": false
                }
              },
              "intervalMs": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "maxRuns": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["stages"],
            "additionalProperties": false
          }
        },
        "required": ["id", "title", "description", "draft"],
        "additionalProperties": false
      },
      "LoopTemplatesOutput": {
        "type": "object",
        "properties": {
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopTemplate"
            }
          }
        },
        "required": ["templates"],
        "additionalProperties": false
      },
      "LoopGenerateInput": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          }
        },
        "required": ["description"],
        "additionalProperties": false
      },
      "LoopValidationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["ValidationError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "LoopPullRequestRef": {
        "type": "object",
        "properties": {
          "number": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "url": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "base": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "action": {
            "type": "string",
            "enum": ["created", "updated"]
          }
        },
        "required": ["number", "url", "branch", "base", "action"],
        "additionalProperties": false
      },
      "LoopRun": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "loopID": {
            "type": "string"
          },
          "startedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["running", "complete", "error", "timeout", "cancelled", "orphaned"]
          },
          "heartbeatAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "sessionID": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "pullRequest": {
            "$ref": "#/components/schemas/LoopPullRequestRef"
          }
        },
        "required": ["id", "loopID", "startedAt", "status", "ok"],
        "additionalProperties": false
      },
      "LoopRunsOutput": {
        "type": "object",
        "properties": {
          "runs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopRun"
            }
          }
        },
        "required": ["runs"],
        "additionalProperties": false
      },
      "LoopGetOutput": {
        "type": "object",
        "properties": {
          "loop": {
            "$ref": "#/components/schemas/LoopDefinition"
          },
          "runtime": {
            "$ref": "#/components/schemas/LoopRuntime"
          }
        },
        "required": ["loop", "runtime"],
        "additionalProperties": false
      },
      "LoopNotFound": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["NotFound"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "LoopCreateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopStage"
            }
          },
          "trigger": {
            "$ref": "#/components/schemas/LoopTrigger"
          },
          "maxRuns": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "createPR": {
            "type": "boolean"
          },
          "sandbox": {
            "type": "boolean"
          },
          "worktree": {
            "$ref": "#/components/schemas/LoopWorktree"
          },
          "paused": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["name", "stages", "trigger"],
        "additionalProperties": false
      },
      "LoopUpdateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoopStage"
            }
          },
          "trigger": {
            "$ref": "#/components/schemas/LoopTrigger"
          },
          "maxRuns": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "createPR": {
            "type": "boolean"
          },
          "sandbox": {
            "type": "boolean"
          },
          "worktree": {
            "$ref": "#/components/schemas/LoopWorktree"
          },
          "paused": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["name", "stages", "trigger", "enabled", "createdAt"],
        "additionalProperties": false
      },
      "LoopBooleanResult": {
        "type": "boolean"
      },
      "LoopToggleInput": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["enabled"],
        "additionalProperties": false
      },
      "LoopRunInput": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SessionList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Session_2"
        }
      },
      "SessionCreateInput": {
        "type": "object",
        "properties": {
          "parentID": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "permission": {
            "type": "array"
          },
          "skills": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "github": {},
          "workspaceID": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SessionStatus_2": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["idle"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["retry"]
              },
              "attempt": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "message": {
                "type": "string"
              },
              "next": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["type", "attempt", "message", "next"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["busy"]
              },
              "since": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["type", "since"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["busy"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          }
        ]
      },
      "SessionStatusMap": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/SessionStatus_2"
        }
      },
      "SessionNotFoundError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["NotFoundError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "SessionBusyErrorBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["SessionBusyError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "BooleanResult": {
        "type": "boolean"
      },
      "SessionUpdateInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "time": {
            "type": "object",
            "properties": {
              "archived": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "SessionModelRef": {
        "type": "object",
        "properties": {
          "providerID": {
            "type": "string"
          },
          "modelID": {
            "type": "string"
          }
        },
        "required": ["providerID", "modelID"],
        "additionalProperties": false
      },
      "SessionForkContinuation": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "response": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "$ref": "#/components/schemas/SessionModelRef"
          },
          "finish": {
            "type": "string"
          }
        },
        "required": ["prompt", "response", "agent", "model"],
        "additionalProperties": false
      },
      "SessionForkInput": {
        "type": "object",
        "properties": {
          "messageID": {
            "type": "string"
          },
          "continuation": {
            "$ref": "#/components/schemas/SessionForkContinuation"
          }
        },
        "additionalProperties": false
      },
      "SessionRevertInput": {
        "type": "object",
        "properties": {
          "messageID": {
            "type": "string"
          },
          "partID": {
            "type": "string"
          }
        },
        "required": ["messageID"],
        "additionalProperties": false
      },
      "SessionSummarizeInput": {
        "type": "object",
        "properties": {
          "providerID": {
            "type": "string"
          },
          "modelID": {
            "type": "string"
          },
          "auto": {
            "type": "boolean"
          }
        },
        "required": ["providerID", "modelID"],
        "additionalProperties": false
      },
      "SessionGenerateInput": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          }
        },
        "required": ["prompt"],
        "additionalProperties": false
      },
      "SessionGenerateResult": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "$ref": "#/components/schemas/SessionModelRef"
          },
          "finish": {
            "type": "string"
          }
        },
        "required": ["text", "agent", "model", "finish"],
        "additionalProperties": false
      },
      "SessionGenerateError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["SessionGenerateError"]
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": ["message"],
            "additionalProperties": false
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "SessionCommandInput": {
        "type": "object",
        "properties": {
          "messageID": {
            "type": "string"
          },
          "delivery": {
            "type": "string",
            "enum": ["steer", "queue"]
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "arguments": {
            "type": "string"
          },
          "command": {
            "type": "string"
          },
          "variant": {
            "type": "string"
          },
          "parts": {
            "type": "array"
          }
        },
        "required": ["arguments", "command"],
        "additionalProperties": false
      },
      "MessageWithParts": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/Message_1"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Part_1"
            }
          }
        },
        "required": ["info", "parts"],
        "additionalProperties": false
      },
      "SessionShellInput": {
        "type": "object",
        "properties": {
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "command": {
            "type": "string"
          }
        },
        "required": ["agent", "command"],
        "additionalProperties": false
      },
      "SessionPermissionRespondInput": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "enum": ["once", "always", "reject"]
          }
        },
        "required": ["response"],
        "additionalProperties": false
      },
      "TodoList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Todo"
        }
      },
      "FileDiffList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/FileDiff_2"
        }
      },
      "MessageList": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "info": {
              "$ref": "#/components/schemas/Message_1"
            },
            "parts": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Part_1"
              }
            }
          },
          "required": ["info", "parts"],
          "additionalProperties": false
        }
      },
      "TextPartInput_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["text"]
          },
          "text": {
            "type": "string"
          },
          "synthetic": {
            "type": "boolean"
          },
          "ignored": {
            "type": "boolean"
          },
          "time": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["start"],
            "additionalProperties": false
          },
          "metadata": {
            "type": "object"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "text"],
        "additionalProperties": false
      },
      "FilePartInput_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["file"]
          },
          "mime": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/FilePartSource_2"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "mime", "url"],
        "additionalProperties": false
      },
      "AgentPartInput_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["agent"]
          },
          "name": {
            "type": "string"
          },
          "source": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string"
              },
              "start": {
                "type": "integer"
              },
              "end": {
                "type": "integer"
              }
            },
            "required": ["value", "start", "end"],
            "additionalProperties": false
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "name"],
        "additionalProperties": false
      },
      "SubtaskPartInput_1": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["subtask"]
          },
          "prompt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "command": {
            "type": "string"
          },
          "background": {
            "type": "boolean"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "prompt", "description", "agent"],
        "additionalProperties": false
      },
      "PromptPartInput": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/TextPartInput_1"
          },
          {
            "$ref": "#/components/schemas/FilePartInput_1"
          },
          {
            "$ref": "#/components/schemas/AgentPartInput_1"
          },
          {
            "$ref": "#/components/schemas/SubtaskPartInput_1"
          }
        ]
      },
      "SessionPendingPromptInput": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          },
          "messageID": {
            "type": "string"
          },
          "delivery": {
            "type": "string",
            "enum": ["steer", "queue"]
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "agent": {
            "type": "string"
          },
          "noReply": {
            "type": "boolean"
          },
          "tools": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "format": {
            "$ref": "#/components/schemas/OutputFormat_1"
          },
          "system": {
            "type": "string"
          },
          "variant": {
            "type": "string"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptPartInput"
            }
          }
        },
        "required": ["sessionID", "parts"],
        "additionalProperties": false
      },
      "SessionPendingInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "delivery": {
            "type": "string",
            "enum": ["steer", "queue"]
          },
          "messageID": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/SessionPendingPromptInput"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "sessionID", "delivery", "messageID", "data", "createdAt"],
        "additionalProperties": false
      },
      "SessionPendingInputList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/SessionPendingInput"
        }
      },
      "SessionPartMismatchError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["PartMismatchError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "SessionV2EntryList": {
        "type": "array"
      },
      "SessionV2StateEncoded": {},
      "SessionV2EventList": {
        "type": "array"
      },
      "SessionInstructionList": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": ["path", "name"],
          "additionalProperties": false
        }
      },
      "SessionContextSource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": ["system", "instructions", "skills", "mcp", "tools", "agents", "messages"]
          },
          "label": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "tokens": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "deferred": {
            "type": "boolean"
          },
          "togglable": {
            "type": "boolean"
          },
          "toggleKind": {
            "type": "string",
            "enum": ["mcp", "skill", "instruction", "tool"]
          },
          "toggleKey": {
            "type": "string"
          }
        },
        "required": ["id", "category", "label", "tokens", "enabled", "togglable"],
        "additionalProperties": false
      },
      "SessionContextBreakdown": {
        "type": "object",
        "properties": {
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "contextLimit": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["providerID", "modelID", "name", "contextLimit"],
            "additionalProperties": false
          },
          "reported": {
            "type": "object",
            "properties": {
              "input": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "output": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "reasoning": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cacheRead": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "cacheWrite": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "total": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              }
            },
            "required": ["input", "output", "reasoning", "cacheRead", "cacheWrite", "total"],
            "additionalProperties": false
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionContextSource"
            }
          },
          "estimatedTotal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["reported", "sources", "estimatedTotal"],
        "additionalProperties": false
      },
      "SessionContextToggleInput": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": ["mcp", "skill", "instruction", "tool"]
          },
          "key": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": ["kind", "key", "enabled"],
        "additionalProperties": false
      },
      "SessionGoalState": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          },
          "goalID": {
            "type": "string"
          },
          "objective": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["active", "paused", "blocked", "usage_limited", "budget_limited", "complete"]
          },
          "tokenBudget": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "tokensUsed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "timeUsedSeconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "iterationCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "timeCreated": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "timeUpdated": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": [
          "sessionID",
          "goalID",
          "objective",
          "status",
          "tokensUsed",
          "timeUsedSeconds",
          "iterationCount",
          "timeCreated",
          "timeUpdated"
        ],
        "additionalProperties": false
      },
      "SessionGoalOutput": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/SessionGoalState"
          },
          {
            "type": "null"
          }
        ]
      },
      "DelegationJob": {
        "type": "object",
        "properties": {
          "jobID": {
            "type": "string"
          },
          "rootDelegationID": {
            "type": "string"
          },
          "parentSessionID": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "parentAgent": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["running", "complete", "error", "timeout", "cancelled", "orphaned", "synthesizing"]
          },
          "source": {
            "type": "string",
            "enum": [
              "task",
              "model-subtask",
              "advisor",
              "research",
              "ultrareview",
              "delegator",
              "delegator-followup",
              "loop",
              "other"
            ]
          },
          "workerSessionID": {
            "type": "string"
          },
          "delegatorID": {
            "type": "string"
          },
          "delegatorSessionID": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "completedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastActivityAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "progressSummary": {
            "type": "string"
          },
          "resultSummary": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "jobID",
          "rootDelegationID",
          "parentSessionID",
          "title",
          "agent",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "SessionBackgroundOutput": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/DelegationJob"
        }
      },
      "SessionBackgroundNotFound": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "enum": ["Session not found"]
          }
        },
        "required": ["error"],
        "additionalProperties": false
      },
      "SessionBackgroundInspectOutput": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/DelegationJob"
          },
          {
            "type": "null"
          }
        ]
      },
      "SessionMonitorOutput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "sessionID": {
                "type": "string"
              },
              "messageID": {
                "type": "string",
                "pattern": "^msg"
              },
              "callID": {
                "type": "string"
              },
              "partID": {
                "type": "string",
                "pattern": "^prt"
              },
              "title": {
                "type": "string"
              },
              "command": {
                "type": "string"
              },
              "cwd": {
                "type": "string"
              },
              "agent": {
                "type": "string"
              },
              "wake": {
                "type": "boolean"
              },
              "timeoutMs": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": ["running", "complete", "error", "timeout", "cancelled"]
              },
              "pid": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "exitCode": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "signal": {
                "type": "string"
              },
              "logPath": {
                "type": "string"
              },
              "commandPath": {
                "type": "string"
              },
              "pidPath": {
                "type": "string"
              },
              "exitCodePath": {
                "type": "string"
              },
              "preview": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "bytes": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time": {
                "type": "object",
                "properties": {
                  "created": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "updated": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "completed": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  }
                },
                "required": ["created", "updated"],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "sessionID",
              "messageID",
              "callID",
              "title",
              "command",
              "cwd",
              "agent",
              "wake",
              "status",
              "logPath",
              "commandPath",
              "pidPath",
              "exitCodePath",
              "time"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "SessionMonitorLogOutput": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "record": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "sessionID": {
                    "type": "string"
                  },
                  "messageID": {
                    "type": "string",
                    "pattern": "^msg"
                  },
                  "callID": {
                    "type": "string"
                  },
                  "partID": {
                    "type": "string",
                    "pattern": "^prt"
                  },
                  "title": {
                    "type": "string"
                  },
                  "command": {
                    "type": "string"
                  },
                  "cwd": {
                    "type": "string"
                  },
                  "agent": {
                    "type": "string"
                  },
                  "wake": {
                    "type": "boolean"
                  },
                  "timeoutMs": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": ["running", "complete", "error", "timeout", "cancelled"]
                  },
                  "pid": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "exitCode": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  "signal": {
                    "type": "string"
                  },
                  "logPath": {
                    "type": "string"
                  },
                  "commandPath": {
                    "type": "string"
                  },
                  "pidPath": {
                    "type": "string"
                  },
                  "exitCodePath": {
                    "type": "string"
                  },
                  "preview": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bytes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": ["Infinity", "-Infinity", "NaN"]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "time": {
                    "type": "object",
                    "properties": {
                      "created": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      "updated": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      },
                      "completed": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": ["Infinity", "-Infinity", "NaN"]
                          }
                        ]
                      }
                    },
                    "required": ["created", "updated"],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "sessionID",
                  "messageID",
                  "callID",
                  "title",
                  "command",
                  "cwd",
                  "agent",
                  "wake",
                  "status",
                  "logPath",
                  "commandPath",
                  "pidPath",
                  "exitCodePath",
                  "time"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "string"
              },
              "truncated": {
                "type": "boolean"
              }
            },
            "required": ["record", "output", "truncated"],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "AccountResponseEncoded": {},
      "AccountError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": ["error"],
        "additionalProperties": false
      },
      "SyncEventRecord": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "workspaceId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "aggregate": {
            "type": "string"
          },
          "seq": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "data": {},
          "timestamp": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "originSeq": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "projectId", "aggregate", "seq", "type", "data", "timestamp"],
        "additionalProperties": false
      },
      "SyncEventPushInput": {
        "type": "object",
        "properties": {
          "event": {
            "$ref": "#/components/schemas/SyncEventRecord"
          },
          "projectID": {
            "type": "string"
          }
        },
        "required": ["event", "projectID"],
        "additionalProperties": false
      },
      "SyncOutboxResponse": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array"
          },
          "hasMore": {
            "type": "boolean"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "seq": {
                    "type": "integer"
                  },
                  "aggregate": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  }
                },
                "required": ["seq", "aggregate", "id"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["events", "hasMore"],
        "additionalProperties": false
      },
      "SyncSnapshotResponse": {
        "type": "object",
        "properties": {
          "lastSeq": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "state": {}
        },
        "required": ["lastSeq", "state"],
        "additionalProperties": false
      },
      "SyncStatsEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "workspaceId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "aggregate": {
            "type": "string"
          },
          "seq": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "type": {
            "type": "string"
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "origin": {
            "type": "string"
          },
          "dataPreview": {}
        },
        "required": ["id", "projectId", "aggregate", "seq", "type", "timestamp", "origin", "dataPreview"],
        "additionalProperties": false
      },
      "SyncStatsOutput": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "configured": {
            "type": "boolean"
          },
          "source": {
            "type": "string"
          },
          "connected": {
            "type": "boolean"
          },
          "pending": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "failed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastSeq": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "lastError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastChange": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SyncStatsEvent"
            }
          }
        },
        "required": [
          "configured",
          "source",
          "connected",
          "pending",
          "failed",
          "total",
          "lastSeq",
          "lastChange",
          "events"
        ],
        "additionalProperties": false
      },
      "SyncConfigSetInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Omit to keep the token already saved in the config file"
          },
          "autostart": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["url"],
        "additionalProperties": false
      },
      "SyncConfigSetResponse": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["env", "config"]
              },
              {
                "type": "null"
              }
            ]
          },
          "started": {
            "type": "boolean"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["configured", "started"],
        "additionalProperties": false
      },
      "TuiAppendPromptInput": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": ["text"],
        "additionalProperties": false
      },
      "TuiBooleanResult": {
        "type": "boolean"
      },
      "TuiValidationError": {
        "type": "object",
        "properties": {
          "data": {},
          "error": {},
          "success": {
            "type": "boolean",
            "enum": [false]
          }
        },
        "required": ["data", "error", "success"],
        "additionalProperties": false
      },
      "TuiExecuteCommandInput": {
        "type": "object",
        "properties": {
          "command": {
            "type": "string"
          }
        },
        "required": ["command"],
        "additionalProperties": false
      },
      "TuiShowToastInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "variant": {
            "type": "string",
            "enum": ["info", "success", "warning", "error"]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["message", "variant", "duration"],
        "additionalProperties": false
      },
      "TuiPublishInput": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "properties": {}
        },
        "required": ["type", "properties"],
        "additionalProperties": false
      },
      "TuiSelectSessionInput": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          }
        },
        "required": ["sessionID"],
        "additionalProperties": false
      },
      "TuiNotFoundError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": ["NotFoundError"]
          },
          "data": {
            "type": "object"
          }
        },
        "required": ["name", "data"],
        "additionalProperties": false
      },
      "PluginOptionsConfig": {
        "type": "object"
      },
      "PluginSpecConfig": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "prefixItems": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/PluginOptionsConfig"
              }
            ],
            "maxItems": 2,
            "minItems": 2
          }
        ]
      },
      "TuiConfig": {
        "type": "object",
        "properties": {
          "$schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "theme": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "keybinds": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "leader": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "app_exit": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "editor_open": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "theme_list": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sidebar_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scrollbar_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "username_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status_view": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sync_view": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_export": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_new": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_list": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_timeline": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_fork": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_rename": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_delete": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_pin_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_scope_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_tab_back": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_tab_forward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_1": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_2": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_3": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_4": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_5": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_6": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_7": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_8": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_quick_switch_9": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stash_delete": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_provider_list": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_favorite_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_share": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_unshare": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_interrupt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_codebro_open": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "subtask_background": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "subtask_picker": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_compact": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_page_up": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_page_down": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_line_up": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_line_down": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_half_page_up": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_half_page_down": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_first": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_last": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_next": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_previous": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_last_user": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_copy": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_undo": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_redo": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages_toggle_conceal": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_details": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_list": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_cycle_recent": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_cycle_recent_reverse": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_cycle_favorite": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model_cycle_favorite_reverse": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "command_list": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent_list": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent_cycle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent_cycle_reverse": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "permission_mode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "variant_cycle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_clear": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_paste": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_submit": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_newline": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_move_left": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_move_right": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_move_up": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_move_down": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_left": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_right": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_up": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_down": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_line_home": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_line_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_line_home": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_line_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_visual_line_home": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_visual_line_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_visual_line_home": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_visual_line_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_buffer_home": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_buffer_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_buffer_home": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_buffer_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_delete_line": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_delete_to_line_end": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_delete_to_line_start": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_backspace": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_delete": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_undo": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_redo": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_word_forward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_word_backward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_word_forward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_select_word_backward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_delete_word_forward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_delete_word_backward": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "history_previous": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "history_next": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_child_cycle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_child_cycle_reverse": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_parent": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "session_child_close": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "terminal_suspend": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "terminal_title_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tips_toggle": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "voice_record": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "app_support": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PluginSpecConfig"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin_enabled": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "scroll_speed": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scroll_acceleration": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": ["enabled"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "diff_style": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["auto", "stacked"]
              },
              {
                "type": "null"
              }
            ]
          },
          "mouse": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sound": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "bg_pulse": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "turn_tokens": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin_meta": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "enum": ["global", "local"]
                },
                "source": {
                  "type": "string"
                }
              },
              "required": ["scope", "source"],
              "additionalProperties": false
            }
          }
        },
        "allOf": [
          {
            "type": "object",
            "additionalProperties": {}
          }
        ]
      },
      "TuiControlRequest": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "body": {}
        },
        "required": ["path", "body"],
        "additionalProperties": false
      },
      "TuiControlResponseInput": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "body": {}
        },
        "required": ["path", "body"],
        "additionalProperties": false
      },
      "WorkspaceAdaptorInfo": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "available": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "name", "description"],
        "additionalProperties": false
      },
      "WorkspaceConnectionStatus": {
        "type": "object",
        "properties": {
          "workspaceID": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["connected", "connecting", "disconnected", "error"]
          }
        },
        "required": ["workspaceID", "status"],
        "additionalProperties": false
      },
      "WorkspaceConfig": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["worktree"]
              },
              "directory": {
                "type": "string"
              },
              "strategy": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["git", "cow"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "eventLimit": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "directory"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["container"]
              },
              "directory": {
                "type": "string"
              },
              "runtime": {
                "type": "string",
                "enum": ["docker", "podman"]
              },
              "image": {
                "type": "string"
              },
              "containerName": {
                "type": "string"
              },
              "port": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              "serverUrl": {
                "type": "string"
              },
              "eventLimit": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "directory", "runtime", "image", "containerName", "port", "serverUrl"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["branch"]
              },
              "directory": {
                "type": "string"
              },
              "branch": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "eventLimit": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": ["Infinity", "-Infinity", "NaN"]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["type", "directory"],
            "additionalProperties": false
          }
        ]
      },
      "WorkspaceCreateInput": {
        "type": "object",
        "properties": {
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "config": {
            "$ref": "#/components/schemas/WorkspaceConfig"
          }
        },
        "required": ["branch", "config"],
        "additionalProperties": false
      },
      "Workspace_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "timeUsed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "projectID": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/WorkspaceConfig"
          }
        },
        "required": ["id", "name", "timeUsed", "branch", "projectID", "config"],
        "additionalProperties": false
      },
      "OptionalWorkspace": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Workspace_1"
          },
          {
            "type": "null"
          }
        ]
      },
      "WorkspaceRestore": {
        "type": "object",
        "properties": {
          "workspaceID": {
            "type": "string"
          },
          "sessions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "events": {
            "type": "array"
          }
        },
        "required": ["workspaceID", "sessions", "events"],
        "additionalProperties": false
      },
      "WorkspaceSessionRestore": {
        "type": "object",
        "properties": {
          "workspaceID": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "sessions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "events": {
            "type": "array"
          }
        },
        "required": ["workspaceID", "sessionID", "sessions", "events"],
        "additionalProperties": false
      },
      "WorkspaceWarpInput": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionID": {
            "type": "string"
          },
          "copyChanges": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["id", "sessionID"],
        "additionalProperties": false
      },
      "OAuth": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["oauth"]
          },
          "refresh": {
            "type": "string"
          },
          "access": {
            "type": "string"
          },
          "expires": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "accountId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enterpriseUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["type", "refresh", "access", "expires"],
        "additionalProperties": false
      },
      "ApiAuth": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["api"]
          },
          "key": {
            "type": "string"
          }
        },
        "required": ["type", "key"],
        "additionalProperties": false
      },
      "WellKnownAuth": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["wellknown"]
          },
          "key": {
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "required": ["type", "key", "token"],
        "additionalProperties": false
      },
      "Auth": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OAuth"
          },
          {
            "$ref": "#/components/schemas/ApiAuth"
          },
          {
            "$ref": "#/components/schemas/WellKnownAuth"
          }
        ]
      },
      "ConfigReloadResponse": {
        "type": "object",
        "properties": {
          "reloaded": {
            "type": "boolean"
          },
          "directory": {
            "type": "string"
          }
        },
        "required": ["reloaded", "directory"],
        "additionalProperties": false
      },
      "ConfigMcpAddInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "config": {}
        },
        "required": ["name", "config"],
        "additionalProperties": false
      },
      "SuccessFlag": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": ["success"],
        "additionalProperties": false
      },
      "ConfigProfileInfo": {
        "type": "object",
        "properties": {
          "mcpCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "plugins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "providerCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["mcpCount", "plugins", "providerCount"],
        "additionalProperties": false
      },
      "ConfigProfilesList": {
        "type": "object",
        "properties": {
          "profiles": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ConfigProfileInfo"
            }
          },
          "activeProfile": {
            "type": "string"
          }
        },
        "required": ["profiles", "activeProfile"],
        "additionalProperties": false
      },
      "SessionPromptInput": {
        "type": "object",
        "properties": {
          "messageID": {
            "type": "string"
          },
          "delivery": {
            "type": "string",
            "enum": ["steer", "queue"]
          },
          "model": {
            "type": "object",
            "properties": {
              "providerID": {
                "type": "string"
              },
              "modelID": {
                "type": "string"
              }
            },
            "required": ["providerID", "modelID"],
            "additionalProperties": false
          },
          "agent": {
            "type": "string"
          },
          "noReply": {
            "type": "boolean"
          },
          "tools": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "format": {
            "$ref": "#/components/schemas/OutputFormat_1"
          },
          "system": {
            "type": "string"
          },
          "variant": {
            "type": "string"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptPartInput"
            }
          }
        },
        "required": ["parts"],
        "additionalProperties": false
      },
      "SessionPromptResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/Message_1"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Part_1"
            }
          }
        },
        "required": ["info", "parts"],
        "additionalProperties": false
      },
      "ShareData": {
        "type": "array",
        "items": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": ["session"]
                },
                "data": {
                  "$ref": "#/components/schemas/Session_2"
                }
              },
              "required": ["type", "data"],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": ["message"]
                },
                "data": {
                  "$ref": "#/components/schemas/Message_1"
                }
              },
              "required": ["type", "data"],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": ["part"]
                },
                "data": {
                  "$ref": "#/components/schemas/Part_1"
                }
              },
              "required": ["type", "data"],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": ["session_diff"]
                },
                "data": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileDiff_2"
                  }
                }
              },
              "required": ["type", "data"],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": ["model"]
                },
                "data": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Model"
                  }
                }
              },
              "required": ["type", "data"],
              "additionalProperties": false
            }
          ]
        }
      },
      "EventEncoded": {
        "type": "string",
        "contentMediaType": "application/json"
      },
      "GlobalEventEncoded": {
        "type": "string",
        "contentMediaType": "application/json"
      },
      "WorkspaceJournalEventEncoded": {},
      "WorkspaceSessionWarpInput": {
        "type": "object",
        "properties": {
          "workspaceID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "copyChanges": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeoutMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": ["Infinity", "-Infinity", "NaN"]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["workspaceID"],
        "additionalProperties": false
      },
      "WorkspaceSessionWarpResponse": {
        "type": "object",
        "properties": {
          "sessionID": {
            "type": "string"
          },
          "workspaceID": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["sessionID", "workspaceID"],
        "additionalProperties": false
      },
      "PublicUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "type": "string",
            "enum": ["admin", "user"]
          },
          "created_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": ["Infinity", "-Infinity", "NaN"]
              }
            ]
          }
        },
        "required": ["id", "username", "email", "display_name", "role", "created_at", "updated_at"],
        "additionalProperties": false
      },
      "UserSession": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/PublicUser"
          }
        },
        "required": ["token", "user"],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "Bearer"
      },
      "auth_token": {
        "type": "apiKey",
        "name": "token",
        "in": "query"
      },
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [],
  "tags": [
    {
      "name": "top-level"
    },
    {
      "name": "analytics"
    },
    {
      "name": "app"
    },
    {
      "name": "brain"
    },
    {
      "name": "chatbot"
    },
    {
      "name": "discord"
    },
    {
      "name": "voice"
    },
    {
      "name": "profile"
    },
    {
      "name": "config"
    },
    {
      "name": "connectors"
    },
    {
      "name": "doctor"
    },
    {
      "name": "experimental"
    },
    {
      "name": "file"
    },
    {
      "name": "global"
    },
    {
      "name": "mcp"
    },
    {
      "name": "mission"
    },
    {
      "name": "mobile"
    },
    {
      "name": "project"
    },
    {
      "name": "provider"
    },
    {
      "name": "question"
    },
    {
      "name": "permission"
    },
    {
      "name": "pty"
    },
    {
      "name": "loop"
    },
    {
      "name": "session"
    },
    {
      "name": "account"
    },
    {
      "name": "sync"
    },
    {
      "name": "tui"
    },
    {
      "name": "workspace"
    },
    {
      "name": "auth"
    },
    {
      "name": "config-management"
    },
    {
      "name": "session-prompt"
    },
    {
      "name": "share"
    },
    {
      "name": "events"
    },
    {
      "name": "workspace-extra"
    },
    {
      "name": "users"
    },
    {
      "name": "pty-connect"
    }
  ]
}
