@opencode-ai/sdk 0.1.0-alpha.2 → 0.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/LICENSE +198 -4
- package/client.d.mts +12 -48
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -48
- package/client.d.ts.map +1 -1
- package/client.js +12 -48
- package/client.js.map +1 -1
- package/client.mjs +12 -48
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +8 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/resources/app.d.mts +38 -0
- package/resources/app.d.mts.map +1 -0
- package/resources/app.d.ts +38 -0
- package/resources/app.d.ts.map +1 -0
- package/resources/app.js +21 -0
- package/resources/app.js.map +1 -0
- package/resources/app.mjs +17 -0
- package/resources/app.mjs.map +1 -0
- package/resources/config.d.mts +304 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +304 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/config.js +21 -0
- package/resources/config.js.map +1 -0
- package/resources/config.mjs +17 -0
- package/resources/config.mjs.map +1 -0
- package/resources/event.d.mts +40 -7
- package/resources/event.d.mts.map +1 -1
- package/resources/event.d.ts +40 -7
- package/resources/event.d.ts.map +1 -1
- package/resources/event.js.map +1 -1
- package/resources/event.mjs.map +1 -1
- package/resources/file.d.mts +17 -0
- package/resources/file.d.mts.map +1 -0
- package/resources/file.d.ts +17 -0
- package/resources/file.d.ts.map +1 -0
- package/resources/{file-search.js → file.js} +6 -6
- package/resources/file.js.map +1 -0
- package/resources/{file-search.mjs → file.mjs} +4 -4
- package/resources/file.mjs.map +1 -0
- package/resources/index.d.mts +4 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -16
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -33
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -16
- package/resources/index.mjs.map +1 -1
- package/resources/session.d.mts +226 -0
- package/resources/session.d.mts.map +1 -0
- package/resources/session.d.ts +226 -0
- package/resources/session.d.ts.map +1 -0
- package/resources/session.js +70 -0
- package/resources/session.js.map +1 -0
- package/resources/session.mjs +66 -0
- package/resources/session.mjs.map +1 -0
- package/src/client.ts +75 -122
- package/src/internal/types.ts +9 -6
- package/src/resources/app.ts +59 -0
- package/src/resources/config.ts +390 -0
- package/src/resources/event.ts +52 -6
- package/src/resources/file.ts +24 -0
- package/src/resources/index.ts +34 -33
- package/src/resources/session.ts +382 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/app-info.d.mts +0 -31
- package/resources/app-info.d.mts.map +0 -1
- package/resources/app-info.d.ts +0 -31
- package/resources/app-info.d.ts.map +0 -1
- package/resources/app-info.js +0 -15
- package/resources/app-info.js.map +0 -1
- package/resources/app-info.mjs +0 -11
- package/resources/app-info.mjs.map +0 -1
- package/resources/app-initialize.d.mts +0 -14
- package/resources/app-initialize.d.mts.map +0 -1
- package/resources/app-initialize.d.ts +0 -14
- package/resources/app-initialize.d.ts.map +0 -1
- package/resources/app-initialize.js +0 -15
- package/resources/app-initialize.js.map +0 -1
- package/resources/app-initialize.mjs +0 -11
- package/resources/app-initialize.mjs.map +0 -1
- package/resources/config-get.d.mts +0 -236
- package/resources/config-get.d.mts.map +0 -1
- package/resources/config-get.d.ts +0 -236
- package/resources/config-get.d.ts.map +0 -1
- package/resources/config-get.js +0 -15
- package/resources/config-get.js.map +0 -1
- package/resources/config-get.mjs +0 -11
- package/resources/config-get.mjs.map +0 -1
- package/resources/file-search.d.mts +0 -17
- package/resources/file-search.d.mts.map +0 -1
- package/resources/file-search.d.ts +0 -17
- package/resources/file-search.d.ts.map +0 -1
- package/resources/file-search.js.map +0 -1
- package/resources/file-search.mjs.map +0 -1
- package/resources/installation-info.d.mts +0 -17
- package/resources/installation-info.d.mts.map +0 -1
- package/resources/installation-info.d.ts +0 -17
- package/resources/installation-info.d.ts.map +0 -1
- package/resources/installation-info.js +0 -15
- package/resources/installation-info.js.map +0 -1
- package/resources/installation-info.mjs +0 -11
- package/resources/installation-info.mjs.map +0 -1
- package/resources/path-get.d.mts +0 -19
- package/resources/path-get.d.mts.map +0 -1
- package/resources/path-get.d.ts +0 -19
- package/resources/path-get.d.ts.map +0 -1
- package/resources/path-get.js +0 -15
- package/resources/path-get.js.map +0 -1
- package/resources/path-get.mjs +0 -11
- package/resources/path-get.mjs.map +0 -1
- package/resources/provider-list.d.mts +0 -58
- package/resources/provider-list.d.mts.map +0 -1
- package/resources/provider-list.d.ts +0 -58
- package/resources/provider-list.d.ts.map +0 -1
- package/resources/provider-list.js +0 -15
- package/resources/provider-list.js.map +0 -1
- package/resources/provider-list.mjs +0 -11
- package/resources/provider-list.mjs.map +0 -1
- package/resources/session-abort.d.mts +0 -17
- package/resources/session-abort.d.mts.map +0 -1
- package/resources/session-abort.d.ts +0 -17
- package/resources/session-abort.d.ts.map +0 -1
- package/resources/session-abort.js +0 -15
- package/resources/session-abort.js.map +0 -1
- package/resources/session-abort.mjs +0 -11
- package/resources/session-abort.mjs.map +0 -1
- package/resources/session-chat.d.mts +0 -160
- package/resources/session-chat.d.mts.map +0 -1
- package/resources/session-chat.d.ts +0 -160
- package/resources/session-chat.d.ts.map +0 -1
- package/resources/session-chat.js +0 -15
- package/resources/session-chat.js.map +0 -1
- package/resources/session-chat.mjs +0 -11
- package/resources/session-chat.mjs.map +0 -1
- package/resources/session-create.d.mts +0 -30
- package/resources/session-create.d.mts.map +0 -1
- package/resources/session-create.d.ts +0 -30
- package/resources/session-create.d.ts.map +0 -1
- package/resources/session-create.js +0 -15
- package/resources/session-create.js.map +0 -1
- package/resources/session-create.mjs +0 -11
- package/resources/session-create.mjs.map +0 -1
- package/resources/session-initialize.d.mts +0 -19
- package/resources/session-initialize.d.mts.map +0 -1
- package/resources/session-initialize.d.ts +0 -19
- package/resources/session-initialize.d.ts.map +0 -1
- package/resources/session-initialize.js +0 -15
- package/resources/session-initialize.js.map +0 -1
- package/resources/session-initialize.mjs +0 -11
- package/resources/session-initialize.mjs.map +0 -1
- package/resources/session-list.d.mts +0 -15
- package/resources/session-list.d.mts.map +0 -1
- package/resources/session-list.d.ts +0 -15
- package/resources/session-list.d.ts.map +0 -1
- package/resources/session-list.js +0 -15
- package/resources/session-list.js.map +0 -1
- package/resources/session-list.mjs +0 -11
- package/resources/session-list.mjs.map +0 -1
- package/resources/session-messages.d.mts +0 -18
- package/resources/session-messages.d.mts.map +0 -1
- package/resources/session-messages.d.ts +0 -18
- package/resources/session-messages.d.ts.map +0 -1
- package/resources/session-messages.js +0 -15
- package/resources/session-messages.js.map +0 -1
- package/resources/session-messages.mjs +0 -11
- package/resources/session-messages.mjs.map +0 -1
- package/resources/session-share.d.mts +0 -17
- package/resources/session-share.d.mts.map +0 -1
- package/resources/session-share.d.ts +0 -17
- package/resources/session-share.d.ts.map +0 -1
- package/resources/session-share.js +0 -15
- package/resources/session-share.js.map +0 -1
- package/resources/session-share.mjs +0 -11
- package/resources/session-share.mjs.map +0 -1
- package/resources/session-summarize.d.mts +0 -19
- package/resources/session-summarize.d.mts.map +0 -1
- package/resources/session-summarize.d.ts +0 -19
- package/resources/session-summarize.d.ts.map +0 -1
- package/resources/session-summarize.js +0 -15
- package/resources/session-summarize.js.map +0 -1
- package/resources/session-summarize.mjs +0 -11
- package/resources/session-summarize.mjs.map +0 -1
- package/resources/session-unshare.d.mts +0 -17
- package/resources/session-unshare.d.mts.map +0 -1
- package/resources/session-unshare.d.ts +0 -17
- package/resources/session-unshare.d.ts.map +0 -1
- package/resources/session-unshare.js +0 -15
- package/resources/session-unshare.js.map +0 -1
- package/resources/session-unshare.mjs +0 -11
- package/resources/session-unshare.mjs.map +0 -1
- package/src/resources/app-info.ts +0 -46
- package/src/resources/app-initialize.ts +0 -20
- package/src/resources/config-get.ts +0 -294
- package/src/resources/file-search.ts +0 -27
- package/src/resources/installation-info.ts +0 -24
- package/src/resources/path-get.ts +0 -28
- package/src/resources/provider-list.ts +0 -80
- package/src/resources/session-abort.ts +0 -27
- package/src/resources/session-chat.ts +0 -250
- package/src/resources/session-create.ts +0 -44
- package/src/resources/session-initialize.ts +0 -34
- package/src/resources/session-list.ts +0 -21
- package/src/resources/session-messages.ts +0 -31
- package/src/resources/session-share.ts +0 -23
- package/src/resources/session-summarize.ts +0 -34
- package/src/resources/session-unshare.ts +0 -26
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SessionUnshare = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class SessionUnshare extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Unshare the session
|
|
9
|
-
*/
|
|
10
|
-
unshare(body, options) {
|
|
11
|
-
return this._client.post('/session_unshare', { body, ...options });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.SessionUnshare = SessionUnshare;
|
|
15
|
-
//# sourceMappingURL=session-unshare.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-unshare.js","sourceRoot":"","sources":["../src/resources/session-unshare.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,OAAO,CACL,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAVD,wCAUC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class SessionUnshare extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Unshare the session
|
|
6
|
-
*/
|
|
7
|
-
unshare(body, options) {
|
|
8
|
-
return this._client.post('/session_unshare', { body, ...options });
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=session-unshare.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-unshare.mjs","sourceRoot":"","sources":["../src/resources/session-unshare.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,OAAO,CACL,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class AppInfo extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get app info
|
|
10
|
-
*/
|
|
11
|
-
create(options?: RequestOptions): APIPromise<AppInfoCreateResponse> {
|
|
12
|
-
return this._client.post('/app_info', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface AppInfoCreateResponse {
|
|
17
|
-
git: boolean;
|
|
18
|
-
|
|
19
|
-
path: AppInfoCreateResponse.Path;
|
|
20
|
-
|
|
21
|
-
time: AppInfoCreateResponse.Time;
|
|
22
|
-
|
|
23
|
-
user: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export namespace AppInfoCreateResponse {
|
|
27
|
-
export interface Path {
|
|
28
|
-
config: string;
|
|
29
|
-
|
|
30
|
-
cwd: string;
|
|
31
|
-
|
|
32
|
-
data: string;
|
|
33
|
-
|
|
34
|
-
root: string;
|
|
35
|
-
|
|
36
|
-
state: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface Time {
|
|
40
|
-
initialized?: number;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare namespace AppInfo {
|
|
45
|
-
export { type AppInfoCreateResponse as AppInfoCreateResponse };
|
|
46
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class AppInitialize extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Initialize the app
|
|
10
|
-
*/
|
|
11
|
-
initialize(options?: RequestOptions): APIPromise<AppInitializeInitializeResponse> {
|
|
12
|
-
return this._client.post('/app_initialize', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type AppInitializeInitializeResponse = boolean;
|
|
17
|
-
|
|
18
|
-
export declare namespace AppInitialize {
|
|
19
|
-
export { type AppInitializeInitializeResponse as AppInitializeInitializeResponse };
|
|
20
|
-
}
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class ConfigGet extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get config info
|
|
10
|
-
*/
|
|
11
|
-
retrieve(options?: RequestOptions): APIPromise<ConfigGetRetrieveResponse> {
|
|
12
|
-
return this._client.post('/config_get', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ConfigGetRetrieveResponse {
|
|
17
|
-
/**
|
|
18
|
-
* JSON schema reference for configuration validation
|
|
19
|
-
*/
|
|
20
|
-
$schema?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Share newly created sessions automatically
|
|
24
|
-
*/
|
|
25
|
-
autoshare?: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Automatically update to the latest version
|
|
29
|
-
*/
|
|
30
|
-
autoupdate?: boolean;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Disable providers that are loaded automatically
|
|
34
|
-
*/
|
|
35
|
-
disabled_providers?: Array<string>;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Custom keybind configurations
|
|
39
|
-
*/
|
|
40
|
-
keybinds?: ConfigGetRetrieveResponse.Keybinds;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* MCP (Model Context Protocol) server configurations
|
|
44
|
-
*/
|
|
45
|
-
mcp?: {
|
|
46
|
-
[key: string]: ConfigGetRetrieveResponse.ConfigMcpLocal | ConfigGetRetrieveResponse.ConfigMcpRemote;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
51
|
-
*/
|
|
52
|
-
model?: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Custom provider configurations and model overrides
|
|
56
|
-
*/
|
|
57
|
-
provider?: { [key: string]: ConfigGetRetrieveResponse.Provider };
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Theme name to use for the interface
|
|
61
|
-
*/
|
|
62
|
-
theme?: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export namespace ConfigGetRetrieveResponse {
|
|
66
|
-
/**
|
|
67
|
-
* Custom keybind configurations
|
|
68
|
-
*/
|
|
69
|
-
export interface Keybinds {
|
|
70
|
-
/**
|
|
71
|
-
* Exit the application
|
|
72
|
-
*/
|
|
73
|
-
app_exit?: string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Open external editor
|
|
77
|
-
*/
|
|
78
|
-
editor_open?: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Show help dialog
|
|
82
|
-
*/
|
|
83
|
-
help?: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Navigate to next history item
|
|
87
|
-
*/
|
|
88
|
-
history_next?: string;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Navigate to previous history item
|
|
92
|
-
*/
|
|
93
|
-
history_previous?: string;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Clear input field
|
|
97
|
-
*/
|
|
98
|
-
input_clear?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Insert newline in input
|
|
102
|
-
*/
|
|
103
|
-
input_newline?: string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Paste from clipboard
|
|
107
|
-
*/
|
|
108
|
-
input_paste?: string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Submit input
|
|
112
|
-
*/
|
|
113
|
-
input_submit?: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Leader key for keybind combinations
|
|
117
|
-
*/
|
|
118
|
-
leader?: string;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Navigate to first message
|
|
122
|
-
*/
|
|
123
|
-
messages_first?: string;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Scroll messages down by half page
|
|
127
|
-
*/
|
|
128
|
-
messages_half_page_down?: string;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Scroll messages up by half page
|
|
132
|
-
*/
|
|
133
|
-
messages_half_page_up?: string;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Navigate to last message
|
|
137
|
-
*/
|
|
138
|
-
messages_last?: string;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Navigate to next message
|
|
142
|
-
*/
|
|
143
|
-
messages_next?: string;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Scroll messages down by one page
|
|
147
|
-
*/
|
|
148
|
-
messages_page_down?: string;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Scroll messages up by one page
|
|
152
|
-
*/
|
|
153
|
-
messages_page_up?: string;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Navigate to previous message
|
|
157
|
-
*/
|
|
158
|
-
messages_previous?: string;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* List available models
|
|
162
|
-
*/
|
|
163
|
-
model_list?: string;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Initialize project configuration
|
|
167
|
-
*/
|
|
168
|
-
project_init?: string;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Toggle compact mode for session
|
|
172
|
-
*/
|
|
173
|
-
session_compact?: string;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Interrupt current session
|
|
177
|
-
*/
|
|
178
|
-
session_interrupt?: string;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* List all sessions
|
|
182
|
-
*/
|
|
183
|
-
session_list?: string;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Create a new session
|
|
187
|
-
*/
|
|
188
|
-
session_new?: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Share current session
|
|
192
|
-
*/
|
|
193
|
-
session_share?: string;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* List available themes
|
|
197
|
-
*/
|
|
198
|
-
theme_list?: string;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Show tool details
|
|
202
|
-
*/
|
|
203
|
-
tool_details?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface ConfigMcpLocal {
|
|
207
|
-
/**
|
|
208
|
-
* Command and arguments to run the MCP server
|
|
209
|
-
*/
|
|
210
|
-
command: Array<string>;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Type of MCP server connection
|
|
214
|
-
*/
|
|
215
|
-
type: 'local';
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Environment variables to set when running the MCP server
|
|
219
|
-
*/
|
|
220
|
-
environment?: { [key: string]: string };
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface ConfigMcpRemote {
|
|
224
|
-
/**
|
|
225
|
-
* Type of MCP server connection
|
|
226
|
-
*/
|
|
227
|
-
type: 'remote';
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* URL of the remote MCP server
|
|
231
|
-
*/
|
|
232
|
-
url: string;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export interface Provider {
|
|
236
|
-
models: { [key: string]: Provider.Models };
|
|
237
|
-
|
|
238
|
-
id?: string;
|
|
239
|
-
|
|
240
|
-
api?: string;
|
|
241
|
-
|
|
242
|
-
env?: Array<string>;
|
|
243
|
-
|
|
244
|
-
name?: string;
|
|
245
|
-
|
|
246
|
-
npm?: string;
|
|
247
|
-
|
|
248
|
-
options?: { [key: string]: unknown };
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export namespace Provider {
|
|
252
|
-
export interface Models {
|
|
253
|
-
id?: string;
|
|
254
|
-
|
|
255
|
-
attachment?: boolean;
|
|
256
|
-
|
|
257
|
-
cost?: Models.Cost;
|
|
258
|
-
|
|
259
|
-
limit?: Models.Limit;
|
|
260
|
-
|
|
261
|
-
name?: string;
|
|
262
|
-
|
|
263
|
-
options?: { [key: string]: unknown };
|
|
264
|
-
|
|
265
|
-
reasoning?: boolean;
|
|
266
|
-
|
|
267
|
-
temperature?: boolean;
|
|
268
|
-
|
|
269
|
-
tool_call?: boolean;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export namespace Models {
|
|
273
|
-
export interface Cost {
|
|
274
|
-
input: number;
|
|
275
|
-
|
|
276
|
-
output: number;
|
|
277
|
-
|
|
278
|
-
cache_read?: number;
|
|
279
|
-
|
|
280
|
-
cache_write?: number;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface Limit {
|
|
284
|
-
context: number;
|
|
285
|
-
|
|
286
|
-
output: number;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export declare namespace ConfigGet {
|
|
293
|
-
export { type ConfigGetRetrieveResponse as ConfigGetRetrieveResponse };
|
|
294
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class FileSearch extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Search for files
|
|
10
|
-
*/
|
|
11
|
-
search(body: FileSearchSearchParams, options?: RequestOptions): APIPromise<FileSearchSearchResponse> {
|
|
12
|
-
return this._client.post('/file_search', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type FileSearchSearchResponse = Array<string>;
|
|
17
|
-
|
|
18
|
-
export interface FileSearchSearchParams {
|
|
19
|
-
query: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare namespace FileSearch {
|
|
23
|
-
export {
|
|
24
|
-
type FileSearchSearchResponse as FileSearchSearchResponse,
|
|
25
|
-
type FileSearchSearchParams as FileSearchSearchParams,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class InstallationInfo extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get installation info
|
|
10
|
-
*/
|
|
11
|
-
create(options?: RequestOptions): APIPromise<InstallationInfoCreateResponse> {
|
|
12
|
-
return this._client.post('/installation_info', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface InstallationInfoCreateResponse {
|
|
17
|
-
latest: string;
|
|
18
|
-
|
|
19
|
-
version: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare namespace InstallationInfo {
|
|
23
|
-
export { type InstallationInfoCreateResponse as InstallationInfoCreateResponse };
|
|
24
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class PathGet extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get paths
|
|
10
|
-
*/
|
|
11
|
-
create(options?: RequestOptions): APIPromise<PathGetCreateResponse> {
|
|
12
|
-
return this._client.post('/path_get', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface PathGetCreateResponse {
|
|
17
|
-
config: string;
|
|
18
|
-
|
|
19
|
-
cwd: string;
|
|
20
|
-
|
|
21
|
-
data: string;
|
|
22
|
-
|
|
23
|
-
root: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export declare namespace PathGet {
|
|
27
|
-
export { type PathGetCreateResponse as PathGetCreateResponse };
|
|
28
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class ProviderList extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* List all providers
|
|
10
|
-
*/
|
|
11
|
-
create(options?: RequestOptions): APIPromise<ProviderListCreateResponse> {
|
|
12
|
-
return this._client.post('/provider_list', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ProviderListCreateResponse {
|
|
17
|
-
default: { [key: string]: string };
|
|
18
|
-
|
|
19
|
-
providers: Array<ProviderListCreateResponse.Provider>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export namespace ProviderListCreateResponse {
|
|
23
|
-
export interface Provider {
|
|
24
|
-
id: string;
|
|
25
|
-
|
|
26
|
-
env: Array<string>;
|
|
27
|
-
|
|
28
|
-
models: { [key: string]: Provider.Models };
|
|
29
|
-
|
|
30
|
-
name: string;
|
|
31
|
-
|
|
32
|
-
api?: string;
|
|
33
|
-
|
|
34
|
-
npm?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export namespace Provider {
|
|
38
|
-
export interface Models {
|
|
39
|
-
id: string;
|
|
40
|
-
|
|
41
|
-
attachment: boolean;
|
|
42
|
-
|
|
43
|
-
cost: Models.Cost;
|
|
44
|
-
|
|
45
|
-
limit: Models.Limit;
|
|
46
|
-
|
|
47
|
-
name: string;
|
|
48
|
-
|
|
49
|
-
options: { [key: string]: unknown };
|
|
50
|
-
|
|
51
|
-
reasoning: boolean;
|
|
52
|
-
|
|
53
|
-
temperature: boolean;
|
|
54
|
-
|
|
55
|
-
tool_call: boolean;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export namespace Models {
|
|
59
|
-
export interface Cost {
|
|
60
|
-
input: number;
|
|
61
|
-
|
|
62
|
-
output: number;
|
|
63
|
-
|
|
64
|
-
cache_read?: number;
|
|
65
|
-
|
|
66
|
-
cache_write?: number;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface Limit {
|
|
70
|
-
context: number;
|
|
71
|
-
|
|
72
|
-
output: number;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export declare namespace ProviderList {
|
|
79
|
-
export { type ProviderListCreateResponse as ProviderListCreateResponse };
|
|
80
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class SessionAbort extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Abort a session
|
|
10
|
-
*/
|
|
11
|
-
abort(body: SessionAbortAbortParams, options?: RequestOptions): APIPromise<SessionAbortAbortResponse> {
|
|
12
|
-
return this._client.post('/session_abort', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type SessionAbortAbortResponse = boolean;
|
|
17
|
-
|
|
18
|
-
export interface SessionAbortAbortParams {
|
|
19
|
-
sessionID: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare namespace SessionAbort {
|
|
23
|
-
export {
|
|
24
|
-
type SessionAbortAbortResponse as SessionAbortAbortResponse,
|
|
25
|
-
type SessionAbortAbortParams as SessionAbortAbortParams,
|
|
26
|
-
};
|
|
27
|
-
}
|