diff --git a/bun.lock b/bun.lock index 7603fc870d..1599ffa964 100644 --- a/bun.lock +++ b/bun.lock @@ -324,7 +324,7 @@ "name": "@opencode-ai/sdk", "version": "1.0.134", "devDependencies": { - "@hey-api/openapi-ts": "0.88.0", + "@hey-api/openapi-ts": "https://pkg.pr.new/hey-api/openapi-ts/@hey-api/openapi-ts@3047", "@tsconfig/node22": "catalog:", "@types/node": "catalog:", "@typescript/native-preview": "catalog:", @@ -851,11 +851,11 @@ "@happy-dom/global-registrator": ["@happy-dom/global-registrator@20.0.11", "", { "dependencies": { "@types/node": "^20.0.0", "happy-dom": "^20.0.11" } }, "sha512-GqNqiShBT/lzkHTMC/slKBrvN0DsD4Di8ssBk4aDaVgEn+2WMzE6DXxq701ndSXj7/0cJ8mNT71pM7Bnrr6JRw=="], - "@hey-api/codegen-core": ["@hey-api/codegen-core@0.3.3", "", { "peerDependencies": { "typescript": ">=5.5.3" } }, "sha512-vArVDtrvdzFewu1hnjUm4jX1NBITlSCeO81EdWq676MxQbyxsGcDPAgohaSA+Wvr4HjPSvsg2/1s2zYxUtXebg=="], + "@hey-api/codegen-core": ["@hey-api/codegen-core@https://pkg.pr.new/hey-api/openapi-ts/@hey-api/codegen-core@55ef27994740ba0af0bc8db17b3e71bfb5c11714", { "peerDependencies": { "typescript": ">=5.5.3" } }], - "@hey-api/json-schema-ref-parser": ["@hey-api/json-schema-ref-parser@1.2.1", "", { "dependencies": { "@jsdevtools/ono": "^7.1.3", "@types/json-schema": "^7.0.15", "js-yaml": "^4.1.0", "lodash": "^4.17.21" } }, "sha512-inPeksRLq+j3ArnuGOzQPQE//YrhezQG0+9Y9yizScBN2qatJ78fIByhEgKdNAbtguDCn4RPxmEhcrePwHxs4A=="], + "@hey-api/json-schema-ref-parser": ["@hey-api/json-schema-ref-parser@1.2.2", "", { "dependencies": { "@jsdevtools/ono": "^7.1.3", "@types/json-schema": "^7.0.15", "js-yaml": "^4.1.1", "lodash": "^4.17.21" } }, "sha512-oS+5yAdwnK20lSeFO1d53Ku+yaGCsY8PcrmSq2GtSs3bsBfRnHAbpPKSVzQcaxAOrzj5NB+f34WhZglVrNayBA=="], - "@hey-api/openapi-ts": ["@hey-api/openapi-ts@0.88.0", "", { "dependencies": { "@hey-api/codegen-core": "^0.3.3", "@hey-api/json-schema-ref-parser": "1.2.1", "ansi-colors": "4.1.3", "c12": "3.3.2", "color-support": "1.1.3", "commander": "14.0.2", "open": "11.0.0", "semver": "7.7.2" }, "peerDependencies": { "typescript": ">=5.5.3" }, "bin": { "openapi-ts": "bin/run.js" } }, "sha512-ZrvmDfmVf+N4ry786LAhS/DoH+xkIjIJIeDnj2aL1qnMTIDsdRIXXvr80EnAZVBgunzu1wTBbHb3H9OfyDQ2EQ=="], + "@hey-api/openapi-ts": ["@hey-api/openapi-ts@https://pkg.pr.new/hey-api/openapi-ts/@hey-api/openapi-ts@3047", { "dependencies": { "@hey-api/codegen-core": "https://pkg.pr.new/hey-api/openapi-ts/@hey-api/codegen-core@55ef27994740ba0af0bc8db17b3e71bfb5c11714", "@hey-api/json-schema-ref-parser": "1.2.2", "ansi-colors": "4.1.3", "c12": "3.3.2", "color-support": "1.1.3", "commander": "14.0.2", "open": "11.0.0", "semver": "7.7.2" }, "peerDependencies": { "typescript": ">=5.5.3" }, "bin": { "openapi-ts": "./bin/run.js" } }], "@hono/standard-validator": ["@hono/standard-validator@0.1.5", "", { "peerDependencies": { "@standard-schema/spec": "1.0.0", "hono": ">=3.9.0" } }, "sha512-EIyZPPwkyLn6XKwFj5NBEWHXhXbgmnVh2ceIFo5GO7gKI9WmzTjPDKnppQB0KrqKeAkq3kpoW4SIbu5X1dgx3w=="], @@ -3981,6 +3981,8 @@ "@expressive-code/plugin-shiki/shiki": ["shiki@3.15.0", "", { "dependencies": { "@shikijs/core": "3.15.0", "@shikijs/engine-javascript": "3.15.0", "@shikijs/engine-oniguruma": "3.15.0", "@shikijs/langs": "3.15.0", "@shikijs/themes": "3.15.0", "@shikijs/types": "3.15.0", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "sha512-kLdkY6iV3dYbtPwS9KXU7mjfmDm25f5m0IPNFnaXO7TBPcvbUOY72PYXSuSqDzwp+vlH/d7MXpHlKO/x+QoLXw=="], + "@hey-api/json-schema-ref-parser/js-yaml": ["js-yaml@4.1.1", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA=="], + "@hey-api/openapi-ts/open": ["open@11.0.0", "", { "dependencies": { "default-browser": "^5.4.0", "define-lazy-prop": "^3.0.0", "is-in-ssh": "^1.0.0", "is-inside-container": "^1.0.0", "powershell-utils": "^0.1.0", "wsl-utils": "^0.3.0" } }, "sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw=="], "@hono/zod-validator/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], diff --git a/packages/sdk/js/openapi.json b/packages/sdk/js/openapi.json index ff04e21839..b74f1a0341 100644 --- a/packages/sdk/js/openapi.json +++ b/packages/sdk/js/openapi.json @@ -286,7 +286,10 @@ "type": "number" } }, - "required": ["rows", "cols"] + "required": [ + "rows", + "cols" + ] } } } @@ -1117,7 +1120,11 @@ "pattern": "^msg.*" } }, - "required": ["modelID", "providerID", "messageID"] + "required": [ + "modelID", + "providerID", + "messageID" + ] } } } @@ -1473,7 +1480,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] } } } @@ -1529,7 +1539,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -1596,7 +1609,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -1642,7 +1658,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "agent": { "type": "string" @@ -1682,7 +1701,9 @@ } } }, - "required": ["parts"] + "required": [ + "parts" + ] } } } @@ -1738,7 +1759,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -1833,7 +1857,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "agent": { "type": "string" @@ -1873,7 +1900,9 @@ } } }, - "required": ["parts"] + "required": [ + "parts" + ] } } } @@ -1920,7 +1949,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -1969,7 +2001,10 @@ "type": "string" } }, - "required": ["arguments", "command"] + "required": [ + "arguments", + "command" + ] } } } @@ -2049,13 +2084,19 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "command": { "type": "string" } }, - "required": ["agent", "command"] + "required": [ + "agent", + "command" + ] } } } @@ -2130,7 +2171,9 @@ "pattern": "^prt.*" } }, - "required": ["messageID"] + "required": [ + "messageID" + ] } } } @@ -2261,10 +2304,16 @@ "properties": { "response": { "type": "string", - "enum": ["once", "always", "reject"] + "enum": [ + "once", + "always", + "reject" + ] } }, - "required": ["response"] + "required": [ + "response" + ] } } } @@ -2338,7 +2387,10 @@ } } }, - "required": ["providers", "default"] + "required": [ + "providers", + "default" + ] } } } @@ -2450,10 +2502,16 @@ "type": "number" } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "limit": { "type": "object", @@ -2465,7 +2523,10 @@ "type": "number" } }, - "required": ["context", "output"] + "required": [ + "context", + "output" + ] }, "modalities": { "type": "object", @@ -2474,25 +2535,44 @@ "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } }, "output": { "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "experimental": { "type": "boolean" }, "status": { "type": "string", - "enum": ["alpha", "beta", "deprecated"] + "enum": [ + "alpha", + "beta", + "deprecated" + ] }, "options": { "type": "object", @@ -2517,7 +2597,9 @@ "type": "string" } }, - "required": ["npm"] + "required": [ + "npm" + ] } }, "required": [ @@ -2534,7 +2616,12 @@ } } }, - "required": ["name", "env", "id", "models"] + "required": [ + "name", + "env", + "id", + "models" + ] } }, "default": { @@ -2553,7 +2640,11 @@ } } }, - "required": ["all", "default", "connected"] + "required": [ + "all", + "default", + "connected" + ] } } } @@ -2652,7 +2743,9 @@ "type": "number" } }, - "required": ["method"] + "required": [ + "method" + ] } } } @@ -2718,7 +2811,9 @@ "type": "string" } }, - "required": ["method"] + "required": [ + "method" + ] } } } @@ -2763,7 +2858,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] }, "lines": { "type": "object", @@ -2772,7 +2869,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] }, "line_number": { "type": "number" @@ -2792,7 +2891,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] }, "start": { "type": "number" @@ -2801,11 +2902,21 @@ "type": "number" } }, - "required": ["match", "start", "end"] + "required": [ + "match", + "start", + "end" + ] } } }, - "required": ["path", "lines", "line_number", "absolute_offset", "submatches"] + "required": [ + "path", + "lines", + "line_number", + "absolute_offset", + "submatches" + ] } } } @@ -2838,7 +2949,10 @@ "name": "dirs", "schema": { "type": "string", - "enum": ["true", "false"] + "enum": [ + "true", + "false" + ] } } ], @@ -3049,7 +3163,12 @@ "level": { "description": "Log level", "type": "string", - "enum": ["debug", "info", "error", "warn"] + "enum": [ + "debug", + "info", + "error", + "warn" + ] }, "message": { "description": "Log message", @@ -3064,7 +3183,11 @@ "additionalProperties": {} } }, - "required": ["service", "level", "message"] + "required": [ + "service", + "level", + "message" + ] } } } @@ -3193,7 +3316,10 @@ ] } }, - "required": ["name", "config"] + "required": [ + "name", + "config" + ] } } } @@ -3234,7 +3360,9 @@ "type": "string" } }, - "required": ["authorizationUrl"] + "required": [ + "authorizationUrl" + ] } } } @@ -3294,7 +3422,9 @@ "const": true } }, - "required": ["success"] + "required": [ + "success" + ] } } } @@ -3376,7 +3506,9 @@ "type": "string" } }, - "required": ["code"] + "required": [ + "code" + ] } } } @@ -3543,7 +3675,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] } } } @@ -3757,7 +3891,9 @@ "type": "string" } }, - "required": ["command"] + "required": [ + "command" + ] } } } @@ -3803,7 +3939,12 @@ }, "variant": { "type": "string", - "enum": ["info", "success", "warning", "error"] + "enum": [ + "info", + "success", + "warning", + "error" + ] }, "duration": { "description": "Duration in milliseconds", @@ -3811,7 +3952,10 @@ "type": "number" } }, - "required": ["message", "variant"] + "required": [ + "message", + "variant" + ] } } } @@ -3900,7 +4044,10 @@ }, "body": {} }, - "required": ["path", "body"] + "required": [ + "path", + "body" + ] } } } @@ -4040,10 +4187,15 @@ "type": "string" } }, - "required": ["directory"] + "required": [ + "directory" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.installation.updated": { "type": "object", @@ -4059,10 +4211,15 @@ "type": "string" } }, - "required": ["version"] + "required": [ + "version" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.installation.update-available": { "type": "object", @@ -4078,10 +4235,15 @@ "type": "string" } }, - "required": ["version"] + "required": [ + "version" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.lsp.client.diagnostics": { "type": "object", @@ -4100,10 +4262,16 @@ "type": "string" } }, - "required": ["serverID", "path"] + "required": [ + "serverID", + "path" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.lsp.updated": { "type": "object", @@ -4117,7 +4285,10 @@ "properties": {} } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "FileDiff": { "type": "object", @@ -4138,7 +4309,13 @@ "type": "number" } }, - "required": ["file", "before", "after", "additions", "deletions"] + "required": [ + "file", + "before", + "after", + "additions", + "deletions" + ] }, "UserMessage": { "type": "object", @@ -4160,7 +4337,9 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] }, "summary": { "type": "object", @@ -4178,7 +4357,9 @@ } } }, - "required": ["diffs"] + "required": [ + "diffs" + ] }, "agent": { "type": "string" @@ -4193,7 +4374,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "system": { "type": "string" @@ -4208,7 +4392,14 @@ } } }, - "required": ["id", "sessionID", "role", "time", "agent", "model"] + "required": [ + "id", + "sessionID", + "role", + "time", + "agent", + "model" + ] }, "ProviderAuthError": { "type": "object", @@ -4227,10 +4418,16 @@ "type": "string" } }, - "required": ["providerID", "message"] + "required": [ + "providerID", + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "UnknownError": { "type": "object", @@ -4246,10 +4443,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "MessageOutputLengthError": { "type": "object", @@ -4263,7 +4465,10 @@ "properties": {} } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "MessageAbortedError": { "type": "object", @@ -4279,10 +4484,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "APIError": { "type": "object", @@ -4316,10 +4526,16 @@ "type": "string" } }, - "required": ["message", "isRetryable"] + "required": [ + "message", + "isRetryable" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "AssistantMessage": { "type": "object", @@ -4344,7 +4560,9 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] }, "error": { "anyOf": [ @@ -4387,7 +4605,10 @@ "type": "string" } }, - "required": ["cwd", "root"] + "required": [ + "cwd", + "root" + ] }, "summary": { "type": "boolean" @@ -4417,10 +4638,18 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "reasoning", "cache"] + "required": [ + "input", + "output", + "reasoning", + "cache" + ] }, "finish": { "type": "string" @@ -4464,10 +4693,15 @@ "$ref": "#/components/schemas/Message" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.message.removed": { "type": "object", @@ -4486,10 +4720,16 @@ "type": "string" } }, - "required": ["sessionID", "messageID"] + "required": [ + "sessionID", + "messageID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "TextPart": { "type": "object", @@ -4526,7 +4766,9 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] }, "metadata": { "type": "object", @@ -4536,7 +4778,13 @@ "additionalProperties": {} } }, - "required": ["id", "sessionID", "messageID", "type", "text"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "text" + ] }, "ReasoningPart": { "type": "object", @@ -4574,10 +4822,19 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "text", "time"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "text", + "time" + ] }, "FilePartSourceText": { "type": "object", @@ -4596,7 +4853,11 @@ "maximum": 9007199254740991 } }, - "required": ["value", "start", "end"] + "required": [ + "value", + "start", + "end" + ] }, "FileSource": { "type": "object", @@ -4612,7 +4873,11 @@ "type": "string" } }, - "required": ["text", "type", "path"] + "required": [ + "text", + "type", + "path" + ] }, "Range": { "type": "object", @@ -4627,7 +4892,10 @@ "type": "number" } }, - "required": ["line", "character"] + "required": [ + "line", + "character" + ] }, "end": { "type": "object", @@ -4639,10 +4907,16 @@ "type": "number" } }, - "required": ["line", "character"] + "required": [ + "line", + "character" + ] } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "SymbolSource": { "type": "object", @@ -4669,7 +4943,14 @@ "maximum": 9007199254740991 } }, - "required": ["text", "type", "path", "range", "name", "kind"] + "required": [ + "text", + "type", + "path", + "range", + "name", + "kind" + ] }, "FilePartSource": { "anyOf": [ @@ -4710,7 +4991,14 @@ "$ref": "#/components/schemas/FilePartSource" } }, - "required": ["id", "sessionID", "messageID", "type", "mime", "url"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "mime", + "url" + ] }, "ToolStatePending": { "type": "object", @@ -4730,7 +5018,11 @@ "type": "string" } }, - "required": ["status", "input", "raw"] + "required": [ + "status", + "input", + "raw" + ] }, "ToolStateRunning": { "type": "object", @@ -4763,10 +5055,16 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] } }, - "required": ["status", "input", "time"] + "required": [ + "status", + "input", + "time" + ] }, "ToolStateCompleted": { "type": "object", @@ -4808,7 +5106,10 @@ "type": "number" } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "attachments": { "type": "array", @@ -4817,7 +5118,14 @@ } } }, - "required": ["status", "input", "output", "title", "metadata", "time"] + "required": [ + "status", + "input", + "output", + "title", + "metadata", + "time" + ] }, "ToolStateError": { "type": "object", @@ -4853,10 +5161,18 @@ "type": "number" } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] } }, - "required": ["status", "input", "error", "time"] + "required": [ + "status", + "input", + "error", + "time" + ] }, "ToolState": { "anyOf": [ @@ -4907,7 +5223,15 @@ "additionalProperties": {} } }, - "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "callID", + "tool", + "state" + ] }, "StepStartPart": { "type": "object", @@ -4929,7 +5253,12 @@ "type": "string" } }, - "required": ["id", "sessionID", "messageID", "type"] + "required": [ + "id", + "sessionID", + "messageID", + "type" + ] }, "StepFinishPart": { "type": "object", @@ -4978,13 +5307,29 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "reasoning", "cache"] + "required": [ + "input", + "output", + "reasoning", + "cache" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "reason", + "cost", + "tokens" + ] }, "SnapshotPart": { "type": "object", @@ -5006,7 +5351,13 @@ "type": "string" } }, - "required": ["id", "sessionID", "messageID", "type", "snapshot"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "snapshot" + ] }, "PatchPart": { "type": "object", @@ -5034,7 +5385,14 @@ } } }, - "required": ["id", "sessionID", "messageID", "type", "hash", "files"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "hash", + "files" + ] }, "AgentPart": { "type": "object", @@ -5072,10 +5430,20 @@ "maximum": 9007199254740991 } }, - "required": ["value", "start", "end"] + "required": [ + "value", + "start", + "end" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "name"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "name" + ] }, "RetryPart": { "type": "object", @@ -5106,10 +5474,20 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "attempt", + "error", + "time" + ] }, "CompactionPart": { "type": "object", @@ -5131,7 +5509,13 @@ "type": "boolean" } }, - "required": ["id", "sessionID", "messageID", "type", "auto"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "auto" + ] }, "Part": { "anyOf": [ @@ -5164,7 +5548,15 @@ "type": "string" } }, - "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "prompt", + "description", + "agent" + ] }, { "$ref": "#/components/schemas/ReasoningPart" @@ -5215,10 +5607,15 @@ "type": "string" } }, - "required": ["part"] + "required": [ + "part" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.message.part.removed": { "type": "object", @@ -5240,10 +5637,17 @@ "type": "string" } }, - "required": ["sessionID", "messageID", "partID"] + "required": [ + "sessionID", + "messageID", + "partID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Permission": { "type": "object", @@ -5293,10 +5697,20 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] } }, - "required": ["id", "type", "sessionID", "messageID", "title", "metadata", "time"] + "required": [ + "id", + "type", + "sessionID", + "messageID", + "title", + "metadata", + "time" + ] }, "Event.permission.updated": { "type": "object", @@ -5309,7 +5723,10 @@ "$ref": "#/components/schemas/Permission" } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.permission.replied": { "type": "object", @@ -5331,10 +5748,17 @@ "type": "string" } }, - "required": ["sessionID", "permissionID", "response"] + "required": [ + "sessionID", + "permissionID", + "response" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "SessionStatus": { "anyOf": [ @@ -5346,7 +5770,9 @@ "const": "idle" } }, - "required": ["type"] + "required": [ + "type" + ] }, { "type": "object", @@ -5365,7 +5791,12 @@ "type": "number" } }, - "required": ["type", "attempt", "message", "next"] + "required": [ + "type", + "attempt", + "message", + "next" + ] }, { "type": "object", @@ -5375,7 +5806,9 @@ "const": "busy" } }, - "required": ["type"] + "required": [ + "type" + ] } ] }, @@ -5396,10 +5829,16 @@ "$ref": "#/components/schemas/SessionStatus" } }, - "required": ["sessionID", "status"] + "required": [ + "sessionID", + "status" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.idle": { "type": "object", @@ -5415,10 +5854,15 @@ "type": "string" } }, - "required": ["sessionID"] + "required": [ + "sessionID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.compacted": { "type": "object", @@ -5434,10 +5878,15 @@ "type": "string" } }, - "required": ["sessionID"] + "required": [ + "sessionID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.file.edited": { "type": "object", @@ -5453,10 +5902,15 @@ "type": "string" } }, - "required": ["file"] + "required": [ + "file" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Todo": { "type": "object", @@ -5478,7 +5932,12 @@ "type": "string" } }, - "required": ["content", "status", "priority", "id"] + "required": [ + "content", + "status", + "priority", + "id" + ] }, "Event.todo.updated": { "type": "object", @@ -5500,10 +5959,16 @@ } } }, - "required": ["sessionID", "todos"] + "required": [ + "sessionID", + "todos" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.command.executed": { "type": "object", @@ -5530,10 +5995,18 @@ "pattern": "^msg.*" } }, - "required": ["name", "sessionID", "arguments", "messageID"] + "required": [ + "name", + "sessionID", + "arguments", + "messageID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Session": { "type": "object", @@ -5571,7 +6044,11 @@ } } }, - "required": ["additions", "deletions", "files"] + "required": [ + "additions", + "deletions", + "files" + ] }, "share": { "type": "object", @@ -5580,7 +6057,9 @@ "type": "string" } }, - "required": ["url"] + "required": [ + "url" + ] }, "title": { "type": "string" @@ -5601,7 +6080,10 @@ "type": "number" } }, - "required": ["created", "updated"] + "required": [ + "created", + "updated" + ] }, "revert": { "type": "object", @@ -5619,10 +6101,19 @@ "type": "string" } }, - "required": ["messageID"] + "required": [ + "messageID" + ] } }, - "required": ["id", "projectID", "directory", "title", "version", "time"] + "required": [ + "id", + "projectID", + "directory", + "title", + "version", + "time" + ] }, "Event.session.created": { "type": "object", @@ -5638,10 +6129,15 @@ "$ref": "#/components/schemas/Session" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.updated": { "type": "object", @@ -5657,10 +6153,15 @@ "$ref": "#/components/schemas/Session" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.deleted": { "type": "object", @@ -5676,10 +6177,15 @@ "$ref": "#/components/schemas/Session" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.diff": { "type": "object", @@ -5701,10 +6207,16 @@ } } }, - "required": ["sessionID", "diff"] + "required": [ + "sessionID", + "diff" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.error": { "type": "object", @@ -5741,7 +6253,10 @@ } } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.file.watcher.updated": { "type": "object", @@ -5773,10 +6288,16 @@ ] } }, - "required": ["file", "event"] + "required": [ + "file", + "event" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.vcs.branch.updated": { "type": "object", @@ -5794,7 +6315,10 @@ } } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.tui.prompt.append": { "type": "object", @@ -5810,10 +6334,15 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.tui.command.execute": { "type": "object", @@ -5852,10 +6381,15 @@ ] } }, - "required": ["command"] + "required": [ + "command" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.tui.toast.show": { "type": "object", @@ -5875,7 +6409,12 @@ }, "variant": { "type": "string", - "enum": ["info", "success", "warning", "error"] + "enum": [ + "info", + "success", + "warning", + "error" + ] }, "duration": { "description": "Duration in milliseconds", @@ -5883,10 +6422,16 @@ "type": "number" } }, - "required": ["message", "variant"] + "required": [ + "message", + "variant" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Pty": { "type": "object", @@ -5912,13 +6457,24 @@ }, "status": { "type": "string", - "enum": ["running", "exited"] + "enum": [ + "running", + "exited" + ] }, "pid": { "type": "number" } }, - "required": ["id", "title", "command", "args", "cwd", "status", "pid"] + "required": [ + "id", + "title", + "command", + "args", + "cwd", + "status", + "pid" + ] }, "Event.pty.created": { "type": "object", @@ -5934,10 +6490,15 @@ "$ref": "#/components/schemas/Pty" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.pty.updated": { "type": "object", @@ -5953,10 +6514,15 @@ "$ref": "#/components/schemas/Pty" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.pty.exited": { "type": "object", @@ -5976,10 +6542,16 @@ "type": "number" } }, - "required": ["id", "exitCode"] + "required": [ + "id", + "exitCode" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.pty.deleted": { "type": "object", @@ -5996,10 +6568,15 @@ "pattern": "^pty.*" } }, - "required": ["id"] + "required": [ + "id" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.server.connected": { "type": "object", @@ -6013,7 +6590,10 @@ "properties": {} } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event": { "anyOf": [ @@ -6125,7 +6705,10 @@ "$ref": "#/components/schemas/Event" } }, - "required": ["directory", "payload"] + "required": [ + "directory", + "payload" + ] }, "Project": { "type": "object", @@ -6153,10 +6736,16 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] } }, - "required": ["id", "worktree", "time"] + "required": [ + "id", + "worktree", + "time" + ] }, "BadRequestError": { "type": "object", @@ -6177,7 +6766,11 @@ "const": false } }, - "required": ["data", "errors", "success"] + "required": [ + "data", + "errors", + "success" + ] }, "NotFoundError": { "type": "object", @@ -6193,10 +6786,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "KeybindsConfig": { "description": "Custom keybind configurations", @@ -6463,7 +7061,11 @@ }, "mode": { "type": "string", - "enum": ["subagent", "primary", "all"] + "enum": [ + "subagent", + "primary", + "all" + ] }, "color": { "description": "Hex color code for the agent (e.g., #FF5733)", @@ -6481,13 +7083,21 @@ "properties": { "edit": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "bash": { "anyOf": [ { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, { "type": "object", @@ -6496,22 +7106,38 @@ }, "additionalProperties": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] } } ] }, "webfetch": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "doom_loop": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "external_directory": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] } } } @@ -6599,10 +7225,16 @@ "type": "number" } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "limit": { "type": "object", @@ -6614,7 +7246,10 @@ "type": "number" } }, - "required": ["context", "output"] + "required": [ + "context", + "output" + ] }, "modalities": { "type": "object", @@ -6623,25 +7258,44 @@ "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } }, "output": { "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "experimental": { "type": "boolean" }, "status": { "type": "string", - "enum": ["alpha", "beta", "deprecated"] + "enum": [ + "alpha", + "beta", + "deprecated" + ] }, "options": { "type": "object", @@ -6666,7 +7320,9 @@ "type": "string" } }, - "required": ["npm"] + "required": [ + "npm" + ] } } } @@ -6758,7 +7414,10 @@ "maximum": 9007199254740991 } }, - "required": ["type", "command"], + "required": [ + "type", + "command" + ], "additionalProperties": false }, "McpOAuthConfig": { @@ -6824,13 +7483,19 @@ "maximum": 9007199254740991 } }, - "required": ["type", "url"], + "required": [ + "type", + "url" + ], "additionalProperties": false }, "LayoutConfig": { "description": "@deprecated Always uses stretch layout.", "type": "string", - "enum": ["auto", "stretch"] + "enum": [ + "auto", + "stretch" + ] }, "Config": { "type": "object", @@ -6864,12 +7529,17 @@ "type": "boolean" } }, - "required": ["enabled"] + "required": [ + "enabled" + ] }, "diff_style": { "description": "Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column", "type": "string", - "enum": ["auto", "stacked"] + "enum": [ + "auto", + "stacked" + ] } } }, @@ -6898,7 +7568,9 @@ "type": "boolean" } }, - "required": ["template"] + "required": [ + "template" + ] } }, "watcher": { @@ -6924,7 +7596,11 @@ "share": { "description": "Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing", "type": "string", - "enum": ["manual", "auto", "disabled"] + "enum": [ + "manual", + "auto", + "disabled" + ] }, "autoshare": { "description": "@deprecated Use 'share' field instead. Share newly created sessions automatically", @@ -7095,7 +7771,9 @@ "const": true } }, - "required": ["disabled"] + "required": [ + "disabled" + ] }, { "type": "object", @@ -7132,7 +7810,9 @@ "additionalProperties": {} } }, - "required": ["command"] + "required": [ + "command" + ] } ] } @@ -7154,13 +7834,21 @@ "properties": { "edit": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "bash": { "anyOf": [ { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, { "type": "object", @@ -7169,22 +7857,38 @@ }, "additionalProperties": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] } } ] }, "webfetch": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "doom_loop": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "external_directory": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] } } }, @@ -7238,7 +7942,9 @@ } } }, - "required": ["command"] + "required": [ + "command" + ] } } }, @@ -7263,7 +7969,9 @@ } } }, - "required": ["command"] + "required": [ + "command" + ] } } } @@ -7312,7 +8020,11 @@ }, "parameters": {} }, - "required": ["id", "description", "parameters"] + "required": [ + "id", + "description", + "parameters" + ] }, "ToolList": { "type": "array", @@ -7336,7 +8048,12 @@ "type": "string" } }, - "required": ["state", "config", "worktree", "directory"] + "required": [ + "state", + "config", + "worktree", + "directory" + ] }, "VcsInfo": { "type": "object", @@ -7345,7 +8062,9 @@ "type": "string" } }, - "required": ["branch"] + "required": [ + "branch" + ] }, "TextPartInput": { "type": "object", @@ -7376,7 +8095,9 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] }, "metadata": { "type": "object", @@ -7386,7 +8107,10 @@ "additionalProperties": {} } }, - "required": ["type", "text"] + "required": [ + "type", + "text" + ] }, "FilePartInput": { "type": "object", @@ -7411,7 +8135,11 @@ "$ref": "#/components/schemas/FilePartSource" } }, - "required": ["type", "mime", "url"] + "required": [ + "type", + "mime", + "url" + ] }, "AgentPartInput": { "type": "object", @@ -7443,10 +8171,17 @@ "maximum": 9007199254740991 } }, - "required": ["value", "start", "end"] + "required": [ + "value", + "start", + "end" + ] } }, - "required": ["type", "name"] + "required": [ + "type", + "name" + ] }, "SubtaskPartInput": { "type": "object", @@ -7468,7 +8203,12 @@ "type": "string" } }, - "required": ["type", "prompt", "description", "agent"] + "required": [ + "type", + "prompt", + "description", + "agent" + ] }, "Command": { "type": "object", @@ -7492,7 +8232,10 @@ "type": "boolean" } }, - "required": ["name", "template"] + "required": [ + "name", + "template" + ] }, "Model": { "type": "object", @@ -7516,7 +8259,11 @@ "type": "string" } }, - "required": ["id", "url", "npm"] + "required": [ + "id", + "url", + "npm" + ] }, "name": { "type": "string" @@ -7555,7 +8302,13 @@ "type": "boolean" } }, - "required": ["text", "audio", "image", "video", "pdf"] + "required": [ + "text", + "audio", + "image", + "video", + "pdf" + ] }, "output": { "type": "object", @@ -7576,10 +8329,23 @@ "type": "boolean" } }, - "required": ["text", "audio", "image", "video", "pdf"] + "required": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } }, - "required": ["temperature", "reasoning", "attachment", "toolcall", "input", "output"] + "required": [ + "temperature", + "reasoning", + "attachment", + "toolcall", + "input", + "output" + ] }, "cost": { "type": "object", @@ -7600,7 +8366,10 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] }, "experimentalOver200K": { "type": "object", @@ -7621,13 +8390,24 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "cache"] + "required": [ + "input", + "output", + "cache" + ] } }, - "required": ["input", "output", "cache"] + "required": [ + "input", + "output", + "cache" + ] }, "limit": { "type": "object", @@ -7639,11 +8419,19 @@ "type": "number" } }, - "required": ["context", "output"] + "required": [ + "context", + "output" + ] }, "status": { "type": "string", - "enum": ["alpha", "beta", "deprecated", "active"] + "enum": [ + "alpha", + "beta", + "deprecated", + "active" + ] }, "options": { "type": "object", @@ -7662,7 +8450,18 @@ } } }, - "required": ["id", "providerID", "api", "name", "capabilities", "cost", "limit", "status", "options", "headers"] + "required": [ + "id", + "providerID", + "api", + "name", + "capabilities", + "cost", + "limit", + "status", + "options", + "headers" + ] }, "Provider": { "type": "object", @@ -7675,7 +8474,12 @@ }, "source": { "type": "string", - "enum": ["env", "config", "custom", "api"] + "enum": [ + "env", + "config", + "custom", + "api" + ] }, "env": { "type": "array", @@ -7703,7 +8507,14 @@ } } }, - "required": ["id", "name", "source", "env", "options", "models"] + "required": [ + "id", + "name", + "source", + "env", + "options", + "models" + ] }, "ProviderAuthMethod": { "type": "object", @@ -7724,7 +8535,10 @@ "type": "string" } }, - "required": ["type", "label"] + "required": [ + "type", + "label" + ] }, "ProviderAuthAuthorization": { "type": "object", @@ -7748,7 +8562,11 @@ "type": "string" } }, - "required": ["url", "method", "instructions"] + "required": [ + "url", + "method", + "instructions" + ] }, "Symbol": { "type": "object", @@ -7769,10 +8587,17 @@ "$ref": "#/components/schemas/Range" } }, - "required": ["uri", "range"] + "required": [ + "uri", + "range" + ] } }, - "required": ["name", "kind", "location"] + "required": [ + "name", + "kind", + "location" + ] }, "FileNode": { "type": "object", @@ -7788,13 +8613,22 @@ }, "type": { "type": "string", - "enum": ["file", "directory"] + "enum": [ + "file", + "directory" + ] }, "ignored": { "type": "boolean" } }, - "required": ["name", "path", "absolute", "type", "ignored"] + "required": [ + "name", + "path", + "absolute", + "type", + "ignored" + ] }, "FileContent": { "type": "object", @@ -7848,14 +8682,24 @@ } } }, - "required": ["oldStart", "oldLines", "newStart", "newLines", "lines"] + "required": [ + "oldStart", + "oldLines", + "newStart", + "newLines", + "lines" + ] } }, "index": { "type": "string" } }, - "required": ["oldFileName", "newFileName", "hunks"] + "required": [ + "oldFileName", + "newFileName", + "hunks" + ] }, "encoding": { "type": "string", @@ -7865,7 +8709,10 @@ "type": "string" } }, - "required": ["type", "content"] + "required": [ + "type", + "content" + ] }, "File": { "type": "object", @@ -7885,10 +8732,19 @@ }, "status": { "type": "string", - "enum": ["added", "deleted", "modified"] + "enum": [ + "added", + "deleted", + "modified" + ] } }, - "required": ["path", "added", "removed", "status"] + "required": [ + "path", + "added", + "removed", + "status" + ] }, "Agent": { "type": "object", @@ -7901,7 +8757,11 @@ }, "mode": { "type": "string", - "enum": ["subagent", "primary", "all"] + "enum": [ + "subagent", + "primary", + "all" + ] }, "builtIn": { "type": "boolean" @@ -7920,7 +8780,11 @@ "properties": { "edit": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "bash": { "type": "object", @@ -7929,23 +8793,42 @@ }, "additionalProperties": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] } }, "webfetch": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "doom_loop": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, "external_directory": { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] } }, - "required": ["edit", "bash"] + "required": [ + "edit", + "bash" + ] }, "model": { "type": "object", @@ -7957,7 +8840,10 @@ "type": "string" } }, - "required": ["modelID", "providerID"] + "required": [ + "modelID", + "providerID" + ] }, "prompt": { "type": "string" @@ -7984,7 +8870,14 @@ "maximum": 9007199254740991 } }, - "required": ["name", "mode", "builtIn", "permission", "tools", "options"] + "required": [ + "name", + "mode", + "builtIn", + "permission", + "tools", + "options" + ] }, "MCPStatusConnected": { "type": "object", @@ -7994,7 +8887,9 @@ "const": "connected" } }, - "required": ["status"] + "required": [ + "status" + ] }, "MCPStatusDisabled": { "type": "object", @@ -8004,7 +8899,9 @@ "const": "disabled" } }, - "required": ["status"] + "required": [ + "status" + ] }, "MCPStatusFailed": { "type": "object", @@ -8017,7 +8914,10 @@ "type": "string" } }, - "required": ["status", "error"] + "required": [ + "status", + "error" + ] }, "MCPStatusNeedsAuth": { "type": "object", @@ -8027,7 +8927,9 @@ "const": "needs_auth" } }, - "required": ["status"] + "required": [ + "status" + ] }, "MCPStatusNeedsClientRegistration": { "type": "object", @@ -8040,7 +8942,10 @@ "type": "string" } }, - "required": ["status", "error"] + "required": [ + "status", + "error" + ] }, "MCPStatus": { "anyOf": [ @@ -8086,7 +8991,12 @@ ] } }, - "required": ["id", "name", "root", "status"] + "required": [ + "id", + "name", + "root", + "status" + ] }, "FormatterStatus": { "type": "object", @@ -8104,7 +9014,11 @@ "type": "boolean" } }, - "required": ["name", "extensions", "enabled"] + "required": [ + "name", + "extensions", + "enabled" + ] }, "OAuth": { "type": "object", @@ -8126,7 +9040,12 @@ "type": "string" } }, - "required": ["type", "refresh", "access", "expires"] + "required": [ + "type", + "refresh", + "access", + "expires" + ] }, "ApiAuth": { "type": "object", @@ -8139,7 +9058,10 @@ "type": "string" } }, - "required": ["type", "key"] + "required": [ + "type", + "key" + ] }, "WellKnownAuth": { "type": "object", @@ -8155,7 +9077,11 @@ "type": "string" } }, - "required": ["type", "key", "token"] + "required": [ + "type", + "key", + "token" + ] }, "Auth": { "anyOf": [ @@ -8172,4 +9098,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json index 1b50f7500c..aabb52194a 100644 --- a/packages/sdk/js/package.json +++ b/packages/sdk/js/package.json @@ -19,7 +19,7 @@ "dist" ], "devDependencies": { - "@hey-api/openapi-ts": "0.88.0", + "@hey-api/openapi-ts": "https://pkg.pr.new/hey-api/openapi-ts/@hey-api/openapi-ts@3047", "@tsconfig/node22": "catalog:", "@types/node": "catalog:", "typescript": "catalog:", diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts index 7899da025a..997f990b54 100644 --- a/packages/sdk/js/src/v2/gen/sdk.gen.ts +++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts @@ -62,7 +62,7 @@ export class Project extends HeyApiClient { public list(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/project', ...options, @@ -76,7 +76,7 @@ export class Project extends HeyApiClient { public current(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/project/current', ...options, @@ -92,7 +92,7 @@ export class Pty extends HeyApiClient { public list(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/pty', ...options, @@ -113,14 +113,14 @@ export class Pty extends HeyApiClient { [key: string]: string; }; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'body', key: 'command' }, - { in: 'body', key: 'args' }, - { in: 'body', key: 'cwd' }, - { in: 'body', key: 'title' }, - { in: 'body', key: 'env' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'body', key: 'command' }, + { in: 'body', key: 'args' }, + { in: 'body', key: 'cwd' }, + { in: 'body', key: 'title' }, + { in: 'body', key: 'env' } + ] }]); return (options?.client ?? this.client).post({ url: '/pty', ...options, @@ -140,7 +140,7 @@ export class Pty extends HeyApiClient { ptyID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'ptyID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'ptyID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).delete({ url: '/pty/{ptyID}', ...options, @@ -155,7 +155,7 @@ export class Pty extends HeyApiClient { ptyID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'ptyID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'ptyID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/pty/{ptyID}', ...options, @@ -175,12 +175,12 @@ export class Pty extends HeyApiClient { cols: number; }; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'ptyID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'title' }, - { in: 'body', key: 'size' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'ptyID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'title' }, + { in: 'body', key: 'size' } + ] }]); return (options?.client ?? this.client).put({ url: '/pty/{ptyID}', ...options, @@ -200,7 +200,7 @@ export class Pty extends HeyApiClient { ptyID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'ptyID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'ptyID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/pty/{ptyID}/connect', ...options, @@ -216,7 +216,7 @@ export class Config extends HeyApiClient { public get(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/config', ...options, @@ -231,7 +231,7 @@ export class Config extends HeyApiClient { directory?: string; config?: Config2; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, {}]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { key: 'config', map: 'body' }] }]); return (options?.client ?? this.client).patch({ url: '/config', ...options, @@ -250,7 +250,7 @@ export class Config extends HeyApiClient { public providers(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/config/providers', ...options, @@ -266,7 +266,7 @@ export class Tool extends HeyApiClient { public ids(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/experimental/tool/ids', ...options, @@ -282,11 +282,11 @@ export class Tool extends HeyApiClient { provider: string; model: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'query', key: 'provider' }, - { in: 'query', key: 'model' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'query', key: 'provider' }, + { in: 'query', key: 'model' } + ] }]); return (options?.client ?? this.client).get({ url: '/experimental/tool', ...options, @@ -302,7 +302,7 @@ export class Instance extends HeyApiClient { public dispose(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/instance/dispose', ...options, @@ -318,7 +318,7 @@ export class Path extends HeyApiClient { public get(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/path', ...options, @@ -334,7 +334,7 @@ export class Vcs extends HeyApiClient { public get(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/vcs', ...options, @@ -350,7 +350,7 @@ export class Session extends HeyApiClient { public list(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/session', ...options, @@ -366,11 +366,11 @@ export class Session extends HeyApiClient { parentID?: string; title?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'body', key: 'parentID' }, - { in: 'body', key: 'title' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'body', key: 'parentID' }, + { in: 'body', key: 'title' } + ] }]); return (options?.client ?? this.client).post({ url: '/session', ...options, @@ -389,7 +389,7 @@ export class Session extends HeyApiClient { public status(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/session/status', ...options, @@ -404,7 +404,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).delete({ url: '/session/{sessionID}', ...options, @@ -419,7 +419,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/session/{sessionID}', ...options, @@ -435,11 +435,11 @@ export class Session extends HeyApiClient { directory?: string; title?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'title' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'title' } + ] }]); return (options?.client ?? this.client).patch({ url: '/session/{sessionID}', ...options, @@ -459,7 +459,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/session/{sessionID}/children', ...options, @@ -474,7 +474,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/session/{sessionID}/todo', ...options, @@ -492,13 +492,13 @@ export class Session extends HeyApiClient { providerID?: string; messageID?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'modelID' }, - { in: 'body', key: 'providerID' }, - { in: 'body', key: 'messageID' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'modelID' }, + { in: 'body', key: 'providerID' }, + { in: 'body', key: 'messageID' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/init', ...options, @@ -519,11 +519,11 @@ export class Session extends HeyApiClient { directory?: string; messageID?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'messageID' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'messageID' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/fork', ...options, @@ -543,7 +543,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/abort', ...options, @@ -558,7 +558,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).delete({ url: '/session/{sessionID}/share', ...options, @@ -573,7 +573,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/share', ...options, @@ -589,11 +589,11 @@ export class Session extends HeyApiClient { directory?: string; messageID?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'query', key: 'messageID' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'query', key: 'messageID' } + ] }]); return (options?.client ?? this.client).get({ url: '/session/{sessionID}/diff', ...options, @@ -610,12 +610,12 @@ export class Session extends HeyApiClient { providerID?: string; modelID?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'providerID' }, - { in: 'body', key: 'modelID' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'providerID' }, + { in: 'body', key: 'modelID' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/summarize', ...options, @@ -636,11 +636,11 @@ export class Session extends HeyApiClient { directory?: string; limit?: number; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'query', key: 'limit' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'query', key: 'limit' } + ] }]); return (options?.client ?? this.client).get({ url: '/session/{sessionID}/message', ...options, @@ -667,17 +667,17 @@ export class Session extends HeyApiClient { }; parts?: Array; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'messageID' }, - { in: 'body', key: 'model' }, - { in: 'body', key: 'agent' }, - { in: 'body', key: 'noReply' }, - { in: 'body', key: 'system' }, - { in: 'body', key: 'tools' }, - { in: 'body', key: 'parts' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'messageID' }, + { in: 'body', key: 'model' }, + { in: 'body', key: 'agent' }, + { in: 'body', key: 'noReply' }, + { in: 'body', key: 'system' }, + { in: 'body', key: 'tools' }, + { in: 'body', key: 'parts' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/message', ...options, @@ -698,11 +698,11 @@ export class Session extends HeyApiClient { messageID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'path', key: 'messageID' }, - { in: 'query', key: 'directory' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'path', key: 'messageID' }, + { in: 'query', key: 'directory' } + ] }]); return (options?.client ?? this.client).get({ url: '/session/{sessionID}/message/{messageID}', ...options, @@ -729,17 +729,17 @@ export class Session extends HeyApiClient { }; parts?: Array; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'messageID' }, - { in: 'body', key: 'model' }, - { in: 'body', key: 'agent' }, - { in: 'body', key: 'noReply' }, - { in: 'body', key: 'system' }, - { in: 'body', key: 'tools' }, - { in: 'body', key: 'parts' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'messageID' }, + { in: 'body', key: 'model' }, + { in: 'body', key: 'agent' }, + { in: 'body', key: 'noReply' }, + { in: 'body', key: 'system' }, + { in: 'body', key: 'tools' }, + { in: 'body', key: 'parts' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/prompt_async', ...options, @@ -764,15 +764,15 @@ export class Session extends HeyApiClient { arguments?: string; command?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'messageID' }, - { in: 'body', key: 'agent' }, - { in: 'body', key: 'model' }, - { in: 'body', key: 'arguments' }, - { in: 'body', key: 'command' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'messageID' }, + { in: 'body', key: 'agent' }, + { in: 'body', key: 'model' }, + { in: 'body', key: 'arguments' }, + { in: 'body', key: 'command' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/command', ...options, @@ -798,13 +798,13 @@ export class Session extends HeyApiClient { }; command?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'agent' }, - { in: 'body', key: 'model' }, - { in: 'body', key: 'command' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'agent' }, + { in: 'body', key: 'model' }, + { in: 'body', key: 'command' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/shell', ...options, @@ -826,12 +826,12 @@ export class Session extends HeyApiClient { messageID?: string; partID?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'messageID' }, - { in: 'body', key: 'partID' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'messageID' }, + { in: 'body', key: 'partID' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/revert', ...options, @@ -851,7 +851,7 @@ export class Session extends HeyApiClient { sessionID: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'sessionID' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/unrevert', ...options, @@ -870,12 +870,12 @@ export class Permission extends HeyApiClient { directory?: string; response?: 'once' | 'always' | 'reject'; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'sessionID' }, - { in: 'path', key: 'permissionID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'response' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'sessionID' }, + { in: 'path', key: 'permissionID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'response' } + ] }]); return (options?.client ?? this.client).post({ url: '/session/{sessionID}/permissions/{permissionID}', ...options, @@ -896,7 +896,7 @@ export class Command extends HeyApiClient { public list(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/command', ...options, @@ -914,11 +914,11 @@ export class Oauth extends HeyApiClient { directory?: string; method?: number; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'providerID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'method' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'providerID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'method' } + ] }]); return (options?.client ?? this.client).post({ url: '/provider/{providerID}/oauth/authorize', ...options, @@ -940,12 +940,12 @@ export class Oauth extends HeyApiClient { method?: number; code?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'providerID' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'method' }, - { in: 'body', key: 'code' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'providerID' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'method' }, + { in: 'body', key: 'code' } + ] }]); return (options?.client ?? this.client).post({ url: '/provider/{providerID}/oauth/callback', ...options, @@ -966,7 +966,7 @@ export class Provider extends HeyApiClient { public list(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/provider', ...options, @@ -980,7 +980,7 @@ export class Provider extends HeyApiClient { public auth(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/provider/auth', ...options, @@ -999,7 +999,7 @@ export class Find extends HeyApiClient { directory?: string; pattern: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'query', key: 'pattern' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'query', key: 'pattern' }] }]); return (options?.client ?? this.client).get({ url: '/find', ...options, @@ -1015,11 +1015,11 @@ export class Find extends HeyApiClient { query: string; dirs?: 'true' | 'false'; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'query', key: 'query' }, - { in: 'query', key: 'dirs' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'query', key: 'query' }, + { in: 'query', key: 'dirs' } + ] }]); return (options?.client ?? this.client).get({ url: '/find/file', ...options, @@ -1034,7 +1034,7 @@ export class Find extends HeyApiClient { directory?: string; query: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'query', key: 'query' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'query', key: 'query' }] }]); return (options?.client ?? this.client).get({ url: '/find/symbol', ...options, @@ -1051,7 +1051,7 @@ export class File extends HeyApiClient { directory?: string; path: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'query', key: 'path' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'query', key: 'path' }] }]); return (options?.client ?? this.client).get({ url: '/file', ...options, @@ -1066,7 +1066,7 @@ export class File extends HeyApiClient { directory?: string; path: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'query', key: 'path' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'query', key: 'path' }] }]); return (options?.client ?? this.client).get({ url: '/file/content', ...options, @@ -1080,7 +1080,7 @@ export class File extends HeyApiClient { public status(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/file/status', ...options, @@ -1102,13 +1102,13 @@ export class App extends HeyApiClient { [key: string]: unknown; }; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'body', key: 'service' }, - { in: 'body', key: 'level' }, - { in: 'body', key: 'message' }, - { in: 'body', key: 'extra' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'body', key: 'service' }, + { in: 'body', key: 'level' }, + { in: 'body', key: 'message' }, + { in: 'body', key: 'extra' } + ] }]); return (options?.client ?? this.client).post({ url: '/log', ...options, @@ -1127,7 +1127,7 @@ export class App extends HeyApiClient { public agents(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/agent', ...options, @@ -1144,7 +1144,7 @@ export class Auth extends HeyApiClient { name: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'name' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'name' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).delete({ url: '/mcp/{name}/auth', ...options, @@ -1159,7 +1159,7 @@ export class Auth extends HeyApiClient { name: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'name' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'name' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/mcp/{name}/auth', ...options, @@ -1175,11 +1175,11 @@ export class Auth extends HeyApiClient { directory?: string; code?: string; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'name' }, - { in: 'query', key: 'directory' }, - { in: 'body', key: 'code' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'name' }, + { in: 'query', key: 'directory' }, + { in: 'body', key: 'code' } + ] }]); return (options?.client ?? this.client).post({ url: '/mcp/{name}/auth/callback', ...options, @@ -1199,7 +1199,7 @@ export class Auth extends HeyApiClient { name: string; directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'path', key: 'name' }, { in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'name' }, { in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/mcp/{name}/auth/authenticate', ...options, @@ -1215,11 +1215,11 @@ export class Auth extends HeyApiClient { directory?: string; auth?: Auth2; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'path', key: 'providerID' }, - { in: 'query', key: 'directory' }, - {} - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'path', key: 'providerID' }, + { in: 'query', key: 'directory' }, + { key: 'auth', map: 'body' } + ] }]); return (options?.client ?? this.client).put({ url: '/auth/{providerID}', ...options, @@ -1240,7 +1240,7 @@ export class Mcp extends HeyApiClient { public status(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/mcp', ...options, @@ -1256,11 +1256,11 @@ export class Mcp extends HeyApiClient { name?: string; config?: McpLocalConfig | McpRemoteConfig; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'body', key: 'name' }, - { in: 'body', key: 'config' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'body', key: 'name' }, + { in: 'body', key: 'config' } + ] }]); return (options?.client ?? this.client).post({ url: '/mcp', ...options, @@ -1283,7 +1283,7 @@ export class Lsp extends HeyApiClient { public status(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/lsp', ...options, @@ -1299,7 +1299,7 @@ export class Formatter extends HeyApiClient { public status(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/formatter', ...options, @@ -1315,7 +1315,7 @@ export class Control extends HeyApiClient { public next(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).get({ url: '/tui/control/next', ...options, @@ -1330,7 +1330,7 @@ export class Control extends HeyApiClient { directory?: string; body?: unknown; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'body' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'body' }] }]); return (options?.client ?? this.client).post({ url: '/tui/control/response', ...options, @@ -1352,7 +1352,7 @@ export class Tui extends HeyApiClient { directory?: string; text?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'body', key: 'text' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'body', key: 'text' }] }]); return (options?.client ?? this.client).post({ url: '/tui/append-prompt', ...options, @@ -1371,7 +1371,7 @@ export class Tui extends HeyApiClient { public openHelp(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/tui/open-help', ...options, @@ -1385,7 +1385,7 @@ export class Tui extends HeyApiClient { public openSessions(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/tui/open-sessions', ...options, @@ -1399,7 +1399,7 @@ export class Tui extends HeyApiClient { public openThemes(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/tui/open-themes', ...options, @@ -1413,7 +1413,7 @@ export class Tui extends HeyApiClient { public openModels(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/tui/open-models', ...options, @@ -1427,7 +1427,7 @@ export class Tui extends HeyApiClient { public submitPrompt(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/tui/submit-prompt', ...options, @@ -1441,7 +1441,7 @@ export class Tui extends HeyApiClient { public clearPrompt(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).post({ url: '/tui/clear-prompt', ...options, @@ -1456,7 +1456,7 @@ export class Tui extends HeyApiClient { directory?: string; command?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'body', key: 'command' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'body', key: 'command' }] }]); return (options?.client ?? this.client).post({ url: '/tui/execute-command', ...options, @@ -1479,13 +1479,13 @@ export class Tui extends HeyApiClient { variant?: 'info' | 'success' | 'warning' | 'error'; duration?: number; }, options?: Options) { - const params = buildClientParams([parameters], [ - { in: 'query', key: 'directory' }, - { in: 'body', key: 'title' }, - { in: 'body', key: 'message' }, - { in: 'body', key: 'variant' }, - { in: 'body', key: 'duration' } - ]); + const params = buildClientParams([parameters], [{ args: [ + { in: 'query', key: 'directory' }, + { in: 'body', key: 'title' }, + { in: 'body', key: 'message' }, + { in: 'body', key: 'variant' }, + { in: 'body', key: 'duration' } + ] }]); return (options?.client ?? this.client).post({ url: '/tui/show-toast', ...options, @@ -1505,7 +1505,7 @@ export class Tui extends HeyApiClient { directory?: string; body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }, { in: 'body' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }, { in: 'body' }] }]); return (options?.client ?? this.client).post({ url: '/tui/publish', ...options, @@ -1528,7 +1528,7 @@ export class Event extends HeyApiClient { public subscribe(parameters?: { directory?: string; }, options?: Options) { - const params = buildClientParams([parameters], [{ in: 'query', key: 'directory' }]); + const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'directory' }] }]); return (options?.client ?? this.client).sse.get({ url: '/event', ...options,