@opencode-ai/sdk 0.1.0-alpha.14 → 0.1.0-alpha.2
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 +0 -113
- package/LICENSE +4 -198
- package/README.md +0 -18
- package/client.d.mts +48 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +48 -17
- package/client.d.ts.map +1 -1
- package/client.js +48 -15
- package/client.js.map +1 -1
- package/client.mjs +48 -15
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -10
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -10
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +0 -2
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -2
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +6 -6
- package/internal/types.d.mts +6 -8
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -8
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +5 -26
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +5 -26
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +3 -13
- package/resources/app-info.d.mts +31 -0
- package/resources/app-info.d.mts.map +1 -0
- package/resources/app-info.d.ts +31 -0
- package/resources/app-info.d.ts.map +1 -0
- package/resources/app-info.js +15 -0
- package/resources/app-info.js.map +1 -0
- package/resources/app-info.mjs +11 -0
- package/resources/app-info.mjs.map +1 -0
- package/resources/app-initialize.d.mts +14 -0
- package/resources/app-initialize.d.mts.map +1 -0
- package/resources/app-initialize.d.ts +14 -0
- package/resources/app-initialize.d.ts.map +1 -0
- package/resources/app-initialize.js +15 -0
- package/resources/app-initialize.js.map +1 -0
- package/resources/app-initialize.mjs +11 -0
- package/resources/app-initialize.mjs.map +1 -0
- package/resources/config-get.d.mts +236 -0
- package/resources/config-get.d.mts.map +1 -0
- package/resources/config-get.d.ts +236 -0
- package/resources/config-get.d.ts.map +1 -0
- package/resources/config-get.js +15 -0
- package/resources/config-get.js.map +1 -0
- package/resources/config-get.mjs +11 -0
- package/resources/config-get.mjs.map +1 -0
- package/resources/event.d.mts +27 -81
- package/resources/event.d.mts.map +1 -1
- package/resources/event.d.ts +27 -81
- package/resources/event.d.ts.map +1 -1
- package/resources/event.js +1 -1
- package/resources/event.js.map +1 -1
- package/resources/event.mjs +1 -1
- package/resources/event.mjs.map +1 -1
- package/resources/file-search.d.mts +17 -0
- package/resources/file-search.d.mts.map +1 -0
- package/resources/file-search.d.ts +17 -0
- package/resources/file-search.d.ts.map +1 -0
- package/resources/file-search.js +15 -0
- package/resources/file-search.js.map +1 -0
- package/resources/file-search.mjs +11 -0
- package/resources/file-search.mjs.map +1 -0
- package/resources/index.d.mts +16 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +16 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +33 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +16 -6
- package/resources/index.mjs.map +1 -1
- package/resources/installation-info.d.mts +17 -0
- package/resources/installation-info.d.mts.map +1 -0
- package/resources/installation-info.d.ts +17 -0
- package/resources/installation-info.d.ts.map +1 -0
- package/resources/installation-info.js +15 -0
- package/resources/installation-info.js.map +1 -0
- package/resources/installation-info.mjs +11 -0
- package/resources/installation-info.mjs.map +1 -0
- package/resources/path-get.d.mts +19 -0
- package/resources/path-get.d.mts.map +1 -0
- package/resources/path-get.d.ts +19 -0
- package/resources/path-get.d.ts.map +1 -0
- package/resources/path-get.js +15 -0
- package/resources/path-get.js.map +1 -0
- package/resources/path-get.mjs +11 -0
- package/resources/path-get.mjs.map +1 -0
- package/resources/provider-list.d.mts +58 -0
- package/resources/provider-list.d.mts.map +1 -0
- package/resources/provider-list.d.ts +58 -0
- package/resources/provider-list.d.ts.map +1 -0
- package/resources/provider-list.js +15 -0
- package/resources/provider-list.js.map +1 -0
- package/resources/provider-list.mjs +11 -0
- package/resources/provider-list.mjs.map +1 -0
- package/resources/session-abort.d.mts +17 -0
- package/resources/session-abort.d.mts.map +1 -0
- package/resources/session-abort.d.ts +17 -0
- package/resources/session-abort.d.ts.map +1 -0
- package/resources/session-abort.js +15 -0
- package/resources/session-abort.js.map +1 -0
- package/resources/session-abort.mjs +11 -0
- package/resources/session-abort.mjs.map +1 -0
- package/resources/session-chat.d.mts +160 -0
- package/resources/session-chat.d.mts.map +1 -0
- package/resources/session-chat.d.ts +160 -0
- package/resources/session-chat.d.ts.map +1 -0
- package/resources/session-chat.js +15 -0
- package/resources/session-chat.js.map +1 -0
- package/resources/session-chat.mjs +11 -0
- package/resources/session-chat.mjs.map +1 -0
- package/resources/session-create.d.mts +30 -0
- package/resources/session-create.d.mts.map +1 -0
- package/resources/session-create.d.ts +30 -0
- package/resources/session-create.d.ts.map +1 -0
- package/resources/session-create.js +15 -0
- package/resources/session-create.js.map +1 -0
- package/resources/session-create.mjs +11 -0
- package/resources/session-create.mjs.map +1 -0
- package/resources/session-initialize.d.mts +19 -0
- package/resources/session-initialize.d.mts.map +1 -0
- package/resources/session-initialize.d.ts +19 -0
- package/resources/session-initialize.d.ts.map +1 -0
- package/resources/session-initialize.js +15 -0
- package/resources/session-initialize.js.map +1 -0
- package/resources/session-initialize.mjs +11 -0
- package/resources/session-initialize.mjs.map +1 -0
- package/resources/session-list.d.mts +15 -0
- package/resources/session-list.d.mts.map +1 -0
- package/resources/session-list.d.ts +15 -0
- package/resources/session-list.d.ts.map +1 -0
- package/resources/session-list.js +15 -0
- package/resources/session-list.js.map +1 -0
- package/resources/session-list.mjs +11 -0
- package/resources/session-list.mjs.map +1 -0
- package/resources/session-messages.d.mts +18 -0
- package/resources/session-messages.d.mts.map +1 -0
- package/resources/session-messages.d.ts +18 -0
- package/resources/session-messages.d.ts.map +1 -0
- package/resources/session-messages.js +15 -0
- package/resources/session-messages.js.map +1 -0
- package/resources/session-messages.mjs +11 -0
- package/resources/session-messages.mjs.map +1 -0
- package/resources/session-share.d.mts +17 -0
- package/resources/session-share.d.mts.map +1 -0
- package/resources/session-share.d.ts +17 -0
- package/resources/session-share.d.ts.map +1 -0
- package/resources/session-share.js +15 -0
- package/resources/session-share.js.map +1 -0
- package/resources/session-share.mjs +11 -0
- package/resources/session-share.mjs.map +1 -0
- package/resources/session-summarize.d.mts +19 -0
- package/resources/session-summarize.d.mts.map +1 -0
- package/resources/session-summarize.d.ts +19 -0
- package/resources/session-summarize.d.ts.map +1 -0
- package/resources/session-summarize.js +15 -0
- package/resources/session-summarize.js.map +1 -0
- package/resources/session-summarize.mjs +11 -0
- package/resources/session-summarize.mjs.map +1 -0
- package/resources/session-unshare.d.mts +17 -0
- package/resources/session-unshare.d.mts.map +1 -0
- package/resources/session-unshare.d.ts +17 -0
- package/resources/session-unshare.d.ts.map +1 -0
- package/resources/session-unshare.js +15 -0
- package/resources/session-unshare.js.map +1 -0
- package/resources/session-unshare.mjs +11 -0
- package/resources/session-unshare.mjs.map +1 -0
- package/src/client.ts +118 -96
- package/src/internal/parse.ts +0 -14
- package/src/internal/request-options.ts +0 -2
- package/src/internal/types.ts +6 -9
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +7 -32
- package/src/resources/app-info.ts +46 -0
- package/src/resources/app-initialize.ts +20 -0
- package/src/resources/config-get.ts +294 -0
- package/src/resources/event.ts +37 -115
- package/src/resources/file-search.ts +27 -0
- package/src/resources/index.ts +33 -44
- package/src/resources/installation-info.ts +24 -0
- package/src/resources/path-get.ts +28 -0
- package/src/resources/provider-list.ts +80 -0
- package/src/resources/session-abort.ts +27 -0
- package/src/resources/session-chat.ts +250 -0
- package/src/resources/session-create.ts +44 -0
- package/src/resources/session-initialize.ts +34 -0
- package/src/resources/session-list.ts +21 -0
- package/src/resources/session-messages.ts +31 -0
- package/src/resources/session-share.ts +23 -0
- package/src/resources/session-summarize.ts +34 -0
- package/src/resources/session-unshare.ts +26 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/core/streaming.d.mts +0 -31
- package/core/streaming.d.mts.map +0 -1
- package/core/streaming.d.ts +0 -31
- package/core/streaming.d.ts.map +0 -1
- package/core/streaming.js +0 -257
- package/core/streaming.js.map +0 -1
- package/core/streaming.mjs +0 -252
- package/core/streaming.mjs.map +0 -1
- package/internal/decoders/line.d.mts +0 -17
- package/internal/decoders/line.d.mts.map +0 -1
- package/internal/decoders/line.d.ts +0 -17
- package/internal/decoders/line.d.ts.map +0 -1
- package/internal/decoders/line.js +0 -113
- package/internal/decoders/line.js.map +0 -1
- package/internal/decoders/line.mjs +0 -108
- package/internal/decoders/line.mjs.map +0 -1
- package/resources/app.d.mts +0 -37
- package/resources/app.d.mts.map +0 -1
- package/resources/app.d.ts +0 -37
- package/resources/app.d.ts.map +0 -1
- package/resources/app.js +0 -21
- package/resources/app.js.map +0 -1
- package/resources/app.mjs +0 -17
- package/resources/app.mjs.map +0 -1
- package/resources/config.d.mts +0 -318
- package/resources/config.d.mts.map +0 -1
- package/resources/config.d.ts +0 -318
- package/resources/config.d.ts.map +0 -1
- package/resources/config.js +0 -21
- package/resources/config.js.map +0 -1
- package/resources/config.mjs +0 -17
- package/resources/config.mjs.map +0 -1
- package/resources/file.d.mts +0 -33
- package/resources/file.d.mts.map +0 -1
- package/resources/file.d.ts +0 -33
- package/resources/file.d.ts.map +0 -1
- package/resources/file.js +0 -21
- package/resources/file.js.map +0 -1
- package/resources/file.mjs +0 -17
- package/resources/file.mjs.map +0 -1
- package/resources/find.d.mts +0 -60
- package/resources/find.d.mts.map +0 -1
- package/resources/find.d.ts +0 -60
- package/resources/find.d.ts.map +0 -1
- package/resources/find.js +0 -27
- package/resources/find.js.map +0 -1
- package/resources/find.mjs +0 -23
- package/resources/find.mjs.map +0 -1
- package/resources/session.d.mts +0 -215
- package/resources/session.d.mts.map +0 -1
- package/resources/session.d.ts +0 -215
- package/resources/session.d.ts.map +0 -1
- package/resources/session.js +0 -70
- package/resources/session.js.map +0 -1
- package/resources/session.mjs +0 -66
- package/resources/session.mjs.map +0 -1
- package/resources/shared.d.mts +0 -20
- package/resources/shared.d.mts.map +0 -1
- package/resources/shared.d.ts +0 -20
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -4
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -3
- package/resources/shared.mjs.map +0 -1
- package/src/core/streaming.ts +0 -301
- package/src/internal/decoders/line.ts +0 -135
- package/src/resources/app.ts +0 -57
- package/src/resources/config.ts +0 -409
- package/src/resources/file.ts +0 -53
- package/src/resources/find.ts +0 -95
- package/src/resources/session.ts +0 -369
- package/src/resources/shared.ts +0 -27
- package/src/streaming.ts +0 -2
- package/streaming.d.mts +0 -2
- package/streaming.d.mts.map +0 -1
- package/streaming.d.ts +0 -2
- package/streaming.d.ts.map +0 -1
- package/streaming.js +0 -6
- package/streaming.js.map +0 -1
- package/streaming.mjs +0 -2
- package/streaming.mjs.map +0 -1
package/resources/file.d.mts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class File extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Read a file
|
|
7
|
-
*/
|
|
8
|
-
read(query: FileReadParams, options?: RequestOptions): APIPromise<FileReadResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Get file status
|
|
11
|
-
*/
|
|
12
|
-
status(options?: RequestOptions): APIPromise<FileStatusResponse>;
|
|
13
|
-
}
|
|
14
|
-
export interface FileReadResponse {
|
|
15
|
-
content: string;
|
|
16
|
-
type: 'raw' | 'patch';
|
|
17
|
-
}
|
|
18
|
-
export type FileStatusResponse = Array<FileStatusResponse.FileStatusResponseItem>;
|
|
19
|
-
export declare namespace FileStatusResponse {
|
|
20
|
-
interface FileStatusResponseItem {
|
|
21
|
-
added: number;
|
|
22
|
-
file: string;
|
|
23
|
-
removed: number;
|
|
24
|
-
status: 'added' | 'deleted' | 'modified';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export interface FileReadParams {
|
|
28
|
-
path: string;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace File {
|
|
31
|
-
export { type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=file.d.mts.map
|
package/resources/file.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.mts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,sBAAsB;QACrC,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;QAEb,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;KAC1C;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/file.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class File extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Read a file
|
|
7
|
-
*/
|
|
8
|
-
read(query: FileReadParams, options?: RequestOptions): APIPromise<FileReadResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Get file status
|
|
11
|
-
*/
|
|
12
|
-
status(options?: RequestOptions): APIPromise<FileStatusResponse>;
|
|
13
|
-
}
|
|
14
|
-
export interface FileReadResponse {
|
|
15
|
-
content: string;
|
|
16
|
-
type: 'raw' | 'patch';
|
|
17
|
-
}
|
|
18
|
-
export type FileStatusResponse = Array<FileStatusResponse.FileStatusResponseItem>;
|
|
19
|
-
export declare namespace FileStatusResponse {
|
|
20
|
-
interface FileStatusResponseItem {
|
|
21
|
-
added: number;
|
|
22
|
-
file: string;
|
|
23
|
-
removed: number;
|
|
24
|
-
status: 'added' | 'deleted' | 'modified';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export interface FileReadParams {
|
|
28
|
-
path: string;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace File {
|
|
31
|
-
export { type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=file.d.ts.map
|
package/resources/file.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,sBAAsB;QACrC,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;QAEb,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;KAC1C;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/file.js
DELETED
|
@@ -1,21 +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.File = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class File extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Read a file
|
|
9
|
-
*/
|
|
10
|
-
read(query, options) {
|
|
11
|
-
return this._client.get('/file', { query, ...options });
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Get file status
|
|
15
|
-
*/
|
|
16
|
-
status(options) {
|
|
17
|
-
return this._client.get('/file/status', options);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.File = File;
|
|
21
|
-
//# sourceMappingURL=file.js.map
|
package/resources/file.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAdD,oBAcC"}
|
package/resources/file.mjs
DELETED
|
@@ -1,17 +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 File extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Read a file
|
|
6
|
-
*/
|
|
7
|
-
read(query, options) {
|
|
8
|
-
return this._client.get('/file', { query, ...options });
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Get file status
|
|
12
|
-
*/
|
|
13
|
-
status(options) {
|
|
14
|
-
return this._client.get('/file/status', options);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=file.mjs.map
|
package/resources/file.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.mjs","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
|
package/resources/find.d.mts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class Find extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Find files
|
|
7
|
-
*/
|
|
8
|
-
files(query: FindFilesParams, options?: RequestOptions): APIPromise<FindFilesResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Find workspace symbols
|
|
11
|
-
*/
|
|
12
|
-
symbols(query: FindSymbolsParams, options?: RequestOptions): APIPromise<FindSymbolsResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Find text in files
|
|
15
|
-
*/
|
|
16
|
-
text(query: FindTextParams, options?: RequestOptions): APIPromise<FindTextResponse>;
|
|
17
|
-
}
|
|
18
|
-
export type FindFilesResponse = Array<string>;
|
|
19
|
-
export type FindSymbolsResponse = Array<unknown>;
|
|
20
|
-
export type FindTextResponse = Array<FindTextResponse.FindTextResponseItem>;
|
|
21
|
-
export declare namespace FindTextResponse {
|
|
22
|
-
interface FindTextResponseItem {
|
|
23
|
-
absolute_offset: number;
|
|
24
|
-
line_number: number;
|
|
25
|
-
lines: FindTextResponseItem.Lines;
|
|
26
|
-
path: FindTextResponseItem.Path;
|
|
27
|
-
submatches: Array<FindTextResponseItem.Submatch>;
|
|
28
|
-
}
|
|
29
|
-
namespace FindTextResponseItem {
|
|
30
|
-
interface Lines {
|
|
31
|
-
text: string;
|
|
32
|
-
}
|
|
33
|
-
interface Path {
|
|
34
|
-
text: string;
|
|
35
|
-
}
|
|
36
|
-
interface Submatch {
|
|
37
|
-
end: number;
|
|
38
|
-
match: Submatch.Match;
|
|
39
|
-
start: number;
|
|
40
|
-
}
|
|
41
|
-
namespace Submatch {
|
|
42
|
-
interface Match {
|
|
43
|
-
text: string;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export interface FindFilesParams {
|
|
49
|
-
query: string;
|
|
50
|
-
}
|
|
51
|
-
export interface FindSymbolsParams {
|
|
52
|
-
query: string;
|
|
53
|
-
}
|
|
54
|
-
export interface FindTextParams {
|
|
55
|
-
pattern: string;
|
|
56
|
-
}
|
|
57
|
-
export declare namespace Find {
|
|
58
|
-
export { type FindFilesResponse as FindFilesResponse, type FindSymbolsResponse as FindSymbolsResponse, type FindTextResponse as FindTextResponse, type FindFilesParams as FindFilesParams, type FindSymbolsParams as FindSymbolsParams, type FindTextParams as FindTextParams, };
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=find.d.mts.map
|
package/resources/find.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.mts","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI5F;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGpF;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAE5E,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,oBAAoB;QACnC,eAAe,EAAE,MAAM,CAAC;QAExB,WAAW,EAAE,MAAM,CAAC;QAEpB,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC;QAElC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;QAEhC,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;KAClD;IAED,UAAiB,oBAAoB,CAAC;QACpC,UAAiB,KAAK;YACpB,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,IAAI;YACnB,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,QAAQ;YACvB,GAAG,EAAE,MAAM,CAAC;YAEZ,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC;YAEtB,KAAK,EAAE,MAAM,CAAC;SACf;QAED,UAAiB,QAAQ,CAAC;YACxB,UAAiB,KAAK;gBACpB,IAAI,EAAE,MAAM,CAAC;aACd;SACF;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/find.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class Find extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Find files
|
|
7
|
-
*/
|
|
8
|
-
files(query: FindFilesParams, options?: RequestOptions): APIPromise<FindFilesResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Find workspace symbols
|
|
11
|
-
*/
|
|
12
|
-
symbols(query: FindSymbolsParams, options?: RequestOptions): APIPromise<FindSymbolsResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Find text in files
|
|
15
|
-
*/
|
|
16
|
-
text(query: FindTextParams, options?: RequestOptions): APIPromise<FindTextResponse>;
|
|
17
|
-
}
|
|
18
|
-
export type FindFilesResponse = Array<string>;
|
|
19
|
-
export type FindSymbolsResponse = Array<unknown>;
|
|
20
|
-
export type FindTextResponse = Array<FindTextResponse.FindTextResponseItem>;
|
|
21
|
-
export declare namespace FindTextResponse {
|
|
22
|
-
interface FindTextResponseItem {
|
|
23
|
-
absolute_offset: number;
|
|
24
|
-
line_number: number;
|
|
25
|
-
lines: FindTextResponseItem.Lines;
|
|
26
|
-
path: FindTextResponseItem.Path;
|
|
27
|
-
submatches: Array<FindTextResponseItem.Submatch>;
|
|
28
|
-
}
|
|
29
|
-
namespace FindTextResponseItem {
|
|
30
|
-
interface Lines {
|
|
31
|
-
text: string;
|
|
32
|
-
}
|
|
33
|
-
interface Path {
|
|
34
|
-
text: string;
|
|
35
|
-
}
|
|
36
|
-
interface Submatch {
|
|
37
|
-
end: number;
|
|
38
|
-
match: Submatch.Match;
|
|
39
|
-
start: number;
|
|
40
|
-
}
|
|
41
|
-
namespace Submatch {
|
|
42
|
-
interface Match {
|
|
43
|
-
text: string;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export interface FindFilesParams {
|
|
49
|
-
query: string;
|
|
50
|
-
}
|
|
51
|
-
export interface FindSymbolsParams {
|
|
52
|
-
query: string;
|
|
53
|
-
}
|
|
54
|
-
export interface FindTextParams {
|
|
55
|
-
pattern: string;
|
|
56
|
-
}
|
|
57
|
-
export declare namespace Find {
|
|
58
|
-
export { type FindFilesResponse as FindFilesResponse, type FindSymbolsResponse as FindSymbolsResponse, type FindTextResponse as FindTextResponse, type FindFilesParams as FindFilesParams, type FindSymbolsParams as FindSymbolsParams, type FindTextParams as FindTextParams, };
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=find.d.ts.map
|
package/resources/find.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":"OAEO,EAAE,WA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EAAE,MAAM,CAAC;aACd;SACF;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/find.js
DELETED
|
@@ -1,27 +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.Find = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Find extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Find files
|
|
9
|
-
*/
|
|
10
|
-
files(query, options) {
|
|
11
|
-
return this._client.get('/find/file', { query, ...options });
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Find workspace symbols
|
|
15
|
-
*/
|
|
16
|
-
symbols(query, options) {
|
|
17
|
-
return this._client.get('/find/symbol', { query, ...options });
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Find text in files
|
|
21
|
-
*/
|
|
22
|
-
text(query, options) {
|
|
23
|
-
return this._client.get('/find', { query, ...options });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.Find = Find;
|
|
27
|
-
//# sourceMappingURL=find.js.map
|
package/resources/find.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,KAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF;AArBD,oBAqBC"}
|
package/resources/find.mjs
DELETED
|
@@ -1,23 +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 Find extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Find files
|
|
6
|
-
*/
|
|
7
|
-
files(query, options) {
|
|
8
|
-
return this._client.get('/find/file', { query, ...options });
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Find workspace symbols
|
|
12
|
-
*/
|
|
13
|
-
symbols(query, options) {
|
|
14
|
-
return this._client.get('/find/symbol', { query, ...options });
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Find text in files
|
|
18
|
-
*/
|
|
19
|
-
text(query, options) {
|
|
20
|
-
return this._client.get('/find', { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=find.mjs.map
|
package/resources/find.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.mjs","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,KAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
package/resources/session.d.mts
DELETED
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as Shared from "./shared.mjs";
|
|
3
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
-
export declare class SessionResource extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a new session
|
|
8
|
-
*/
|
|
9
|
-
create(options?: RequestOptions): APIPromise<Session>;
|
|
10
|
-
/**
|
|
11
|
-
* List all sessions
|
|
12
|
-
*/
|
|
13
|
-
list(options?: RequestOptions): APIPromise<SessionListResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Delete a session and all its data
|
|
16
|
-
*/
|
|
17
|
-
delete(id: string, options?: RequestOptions): APIPromise<SessionDeleteResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Abort a session
|
|
20
|
-
*/
|
|
21
|
-
abort(id: string, options?: RequestOptions): APIPromise<SessionAbortResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Create and send a new message to a session
|
|
24
|
-
*/
|
|
25
|
-
chat(id: string, body: SessionChatParams, options?: RequestOptions): APIPromise<Message>;
|
|
26
|
-
/**
|
|
27
|
-
* Analyze the app and create an AGENTS.md file
|
|
28
|
-
*/
|
|
29
|
-
init(id: string, body: SessionInitParams, options?: RequestOptions): APIPromise<SessionInitResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* List messages for a session
|
|
32
|
-
*/
|
|
33
|
-
messages(id: string, options?: RequestOptions): APIPromise<SessionMessagesResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* Share a session
|
|
36
|
-
*/
|
|
37
|
-
share(id: string, options?: RequestOptions): APIPromise<Session>;
|
|
38
|
-
/**
|
|
39
|
-
* Summarize the session
|
|
40
|
-
*/
|
|
41
|
-
summarize(id: string, body: SessionSummarizeParams, options?: RequestOptions): APIPromise<SessionSummarizeResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* Unshare the session
|
|
44
|
-
*/
|
|
45
|
-
unshare(id: string, options?: RequestOptions): APIPromise<Session>;
|
|
46
|
-
}
|
|
47
|
-
export interface FilePart {
|
|
48
|
-
mediaType: string;
|
|
49
|
-
type: 'file';
|
|
50
|
-
url: string;
|
|
51
|
-
filename?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface Message {
|
|
54
|
-
id: string;
|
|
55
|
-
metadata: Message.Metadata;
|
|
56
|
-
parts: Array<MessagePart>;
|
|
57
|
-
role: 'user' | 'assistant';
|
|
58
|
-
}
|
|
59
|
-
export declare namespace Message {
|
|
60
|
-
interface Metadata {
|
|
61
|
-
sessionID: string;
|
|
62
|
-
time: Metadata.Time;
|
|
63
|
-
tool: {
|
|
64
|
-
[key: string]: Metadata.Tool;
|
|
65
|
-
};
|
|
66
|
-
assistant?: Metadata.Assistant;
|
|
67
|
-
error?: Shared.ProviderAuthError | Shared.UnknownError | Metadata.MessageOutputLengthError;
|
|
68
|
-
snapshot?: string;
|
|
69
|
-
}
|
|
70
|
-
namespace Metadata {
|
|
71
|
-
interface Time {
|
|
72
|
-
created: number;
|
|
73
|
-
completed?: number;
|
|
74
|
-
}
|
|
75
|
-
interface Tool {
|
|
76
|
-
time: Tool.Time;
|
|
77
|
-
title: string;
|
|
78
|
-
snapshot?: string;
|
|
79
|
-
[k: string]: unknown;
|
|
80
|
-
}
|
|
81
|
-
namespace Tool {
|
|
82
|
-
interface Time {
|
|
83
|
-
end: number;
|
|
84
|
-
start: number;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
interface Assistant {
|
|
88
|
-
cost: number;
|
|
89
|
-
modelID: string;
|
|
90
|
-
path: Assistant.Path;
|
|
91
|
-
providerID: string;
|
|
92
|
-
system: Array<string>;
|
|
93
|
-
tokens: Assistant.Tokens;
|
|
94
|
-
summary?: boolean;
|
|
95
|
-
}
|
|
96
|
-
namespace Assistant {
|
|
97
|
-
interface Path {
|
|
98
|
-
cwd: string;
|
|
99
|
-
root: string;
|
|
100
|
-
}
|
|
101
|
-
interface Tokens {
|
|
102
|
-
cache: Tokens.Cache;
|
|
103
|
-
input: number;
|
|
104
|
-
output: number;
|
|
105
|
-
reasoning: number;
|
|
106
|
-
}
|
|
107
|
-
namespace Tokens {
|
|
108
|
-
interface Cache {
|
|
109
|
-
read: number;
|
|
110
|
-
write: number;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
interface MessageOutputLengthError {
|
|
115
|
-
data: unknown;
|
|
116
|
-
name: 'MessageOutputLengthError';
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
export type MessagePart = TextPart | ReasoningPart | ToolInvocationPart | SourceURLPart | FilePart | StepStartPart;
|
|
121
|
-
export interface ReasoningPart {
|
|
122
|
-
text: string;
|
|
123
|
-
type: 'reasoning';
|
|
124
|
-
providerMetadata?: {
|
|
125
|
-
[key: string]: unknown;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
export interface Session {
|
|
129
|
-
id: string;
|
|
130
|
-
time: Session.Time;
|
|
131
|
-
title: string;
|
|
132
|
-
version: string;
|
|
133
|
-
parentID?: string;
|
|
134
|
-
revert?: Session.Revert;
|
|
135
|
-
share?: Session.Share;
|
|
136
|
-
}
|
|
137
|
-
export declare namespace Session {
|
|
138
|
-
interface Time {
|
|
139
|
-
created: number;
|
|
140
|
-
updated: number;
|
|
141
|
-
}
|
|
142
|
-
interface Revert {
|
|
143
|
-
messageID: string;
|
|
144
|
-
part: number;
|
|
145
|
-
snapshot?: string;
|
|
146
|
-
}
|
|
147
|
-
interface Share {
|
|
148
|
-
url: string;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
export interface SourceURLPart {
|
|
152
|
-
sourceId: string;
|
|
153
|
-
type: 'source-url';
|
|
154
|
-
url: string;
|
|
155
|
-
providerMetadata?: {
|
|
156
|
-
[key: string]: unknown;
|
|
157
|
-
};
|
|
158
|
-
title?: string;
|
|
159
|
-
}
|
|
160
|
-
export interface StepStartPart {
|
|
161
|
-
type: 'step-start';
|
|
162
|
-
}
|
|
163
|
-
export interface TextPart {
|
|
164
|
-
text: string;
|
|
165
|
-
type: 'text';
|
|
166
|
-
}
|
|
167
|
-
export interface ToolCall {
|
|
168
|
-
state: 'call';
|
|
169
|
-
toolCallId: string;
|
|
170
|
-
toolName: string;
|
|
171
|
-
args?: unknown;
|
|
172
|
-
step?: number;
|
|
173
|
-
}
|
|
174
|
-
export interface ToolInvocationPart {
|
|
175
|
-
toolInvocation: ToolCall | ToolPartialCall | ToolResult;
|
|
176
|
-
type: 'tool-invocation';
|
|
177
|
-
}
|
|
178
|
-
export interface ToolPartialCall {
|
|
179
|
-
state: 'partial-call';
|
|
180
|
-
toolCallId: string;
|
|
181
|
-
toolName: string;
|
|
182
|
-
args?: unknown;
|
|
183
|
-
step?: number;
|
|
184
|
-
}
|
|
185
|
-
export interface ToolResult {
|
|
186
|
-
result: string;
|
|
187
|
-
state: 'result';
|
|
188
|
-
toolCallId: string;
|
|
189
|
-
toolName: string;
|
|
190
|
-
args?: unknown;
|
|
191
|
-
step?: number;
|
|
192
|
-
}
|
|
193
|
-
export type SessionListResponse = Array<Session>;
|
|
194
|
-
export type SessionDeleteResponse = boolean;
|
|
195
|
-
export type SessionAbortResponse = boolean;
|
|
196
|
-
export type SessionInitResponse = boolean;
|
|
197
|
-
export type SessionMessagesResponse = Array<Message>;
|
|
198
|
-
export type SessionSummarizeResponse = boolean;
|
|
199
|
-
export interface SessionChatParams {
|
|
200
|
-
modelID: string;
|
|
201
|
-
parts: Array<MessagePart>;
|
|
202
|
-
providerID: string;
|
|
203
|
-
}
|
|
204
|
-
export interface SessionInitParams {
|
|
205
|
-
modelID: string;
|
|
206
|
-
providerID: string;
|
|
207
|
-
}
|
|
208
|
-
export interface SessionSummarizeParams {
|
|
209
|
-
modelID: string;
|
|
210
|
-
providerID: string;
|
|
211
|
-
}
|
|
212
|
-
export declare namespace SessionResource {
|
|
213
|
-
export { type FilePart as FilePart, type Message as Message, type MessagePart as MessagePart, type ReasoningPart as ReasoningPart, type Session as Session, type SourceURLPart as SourceURLPart, type StepStartPart as StepStartPart, type TextPart as TextPart, type ToolCall as ToolCall, type ToolInvocationPart as ToolInvocationPart, type ToolPartialCall as ToolPartialCall, type ToolResult as ToolResult, type SessionListResponse as SessionListResponse, type SessionDeleteResponse as SessionDeleteResponse, type SessionAbortResponse as SessionAbortResponse, type SessionInitResponse as SessionInitResponse, type SessionMessagesResponse as SessionMessagesResponse, type SessionSummarizeResponse as SessionSummarizeResponse, type SessionChatParams as SessionChatParams, type SessionInitParams as SessionInitParams, type SessionSummarizeParams as SessionSummarizeParams, };
|
|
214
|
-
}
|
|
215
|
-
//# sourceMappingURL=session.d.mts.map
|
|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