@opencode-ai/sdk 0.1.0-alpha.2 → 0.1.0-alpha.20
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 +173 -0
- package/LICENSE +198 -4
- package/README.md +27 -9
- package/client.d.mts +25 -53
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -53
- package/client.d.ts.map +1 -1
- package/client.js +25 -55
- package/client.js.map +1 -1
- package/client.mjs +25 -55
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +44 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +44 -0
- 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 +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/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 +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +13 -3
- package/resources/app.d.mts +130 -0
- package/resources/app.d.mts.map +1 -0
- package/resources/app.d.ts +130 -0
- package/resources/app.d.ts.map +1 -0
- package/resources/app.js +39 -0
- package/resources/app.js.map +1 -0
- package/resources/app.mjs +35 -0
- package/resources/app.mjs.map +1 -0
- package/resources/config.d.mts +344 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +344 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/{config-get.js → config.js} +6 -6
- package/resources/config.js.map +1 -0
- package/resources/{config-get.mjs → config.mjs} +4 -4
- package/resources/config.mjs.map +1 -0
- package/resources/event.d.mts +82 -29
- package/resources/event.d.mts.map +1 -1
- package/resources/event.d.ts +82 -29
- 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.d.mts +31 -0
- package/resources/file.d.mts.map +1 -0
- package/resources/file.d.ts +31 -0
- package/resources/file.d.ts.map +1 -0
- package/resources/file.js +21 -0
- package/resources/file.js.map +1 -0
- package/resources/file.mjs +17 -0
- package/resources/file.mjs.map +1 -0
- package/resources/find.d.mts +85 -0
- package/resources/find.d.mts.map +1 -0
- package/resources/find.d.ts +85 -0
- package/resources/find.d.ts.map +1 -0
- package/resources/find.js +27 -0
- package/resources/find.js.map +1 -0
- package/resources/find.mjs +23 -0
- package/resources/find.mjs.map +1 -0
- package/resources/index.d.mts +6 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -16
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -33
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -16
- package/resources/index.mjs.map +1 -1
- package/resources/session.d.mts +272 -0
- package/resources/session.d.mts.map +1 -0
- package/resources/session.d.ts +272 -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/resources/shared.d.mts +24 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +24 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/src/client.ts +145 -128
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +55 -0
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/app.ts +196 -0
- package/src/resources/config.ts +431 -0
- package/src/resources/event.ts +119 -39
- package/src/resources/file.ts +52 -0
- package/src/resources/find.ts +133 -0
- package/src/resources/index.ts +65 -32
- package/src/resources/session.ts +457 -0
- package/src/resources/shared.ts +33 -0
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- 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/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.map +0 -1
- 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 +0 -15
- package/resources/file-search.js.map +0 -1
- package/resources/file-search.mjs +0 -11
- 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 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.ConfigResource = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class
|
|
6
|
+
class ConfigResource extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Get config info
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
return this._client.
|
|
10
|
+
get(options) {
|
|
11
|
+
return this._client.get('/config', options);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
exports.
|
|
15
|
-
//# sourceMappingURL=config
|
|
14
|
+
exports.ConfigResource = ConfigResource;
|
|
15
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wCAOC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class
|
|
3
|
+
export class ConfigResource extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Get config info
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
return this._client.
|
|
7
|
+
get(options) {
|
|
8
|
+
return this._client.get('/config', options);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=config
|
|
11
|
+
//# sourceMappingURL=config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.mjs","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
package/resources/event.d.mts
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as SessionAPI from "./session.mjs";
|
|
3
|
+
import * as Shared from "./shared.mjs";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { Stream } from "../core/streaming.mjs";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
7
|
export declare class Event extends APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Get events
|
|
9
10
|
*/
|
|
10
|
-
list(options?: RequestOptions): APIPromise<EventListResponse
|
|
11
|
+
list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
|
|
11
12
|
}
|
|
12
|
-
export type EventListResponse = EventListResponse.
|
|
13
|
+
export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessageRemoved | EventListResponse.EventMessagePartUpdated | EventListResponse.EventStorageWrite | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
|
|
13
14
|
export declare namespace EventListResponse {
|
|
14
|
-
interface EventStorageWrite {
|
|
15
|
-
properties: EventStorageWrite.Properties;
|
|
16
|
-
type: 'storage.write';
|
|
17
|
-
}
|
|
18
|
-
namespace EventStorageWrite {
|
|
19
|
-
interface Properties {
|
|
20
|
-
key: string;
|
|
21
|
-
content?: unknown;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
interface EventInstallationUpdated {
|
|
25
|
-
properties: EventInstallationUpdated.Properties;
|
|
26
|
-
type: 'installation.updated';
|
|
27
|
-
}
|
|
28
|
-
namespace EventInstallationUpdated {
|
|
29
|
-
interface Properties {
|
|
30
|
-
version: string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
15
|
interface EventLspClientDiagnostics {
|
|
34
16
|
properties: EventLspClientDiagnostics.Properties;
|
|
35
17
|
type: 'lsp.client.diagnostics';
|
|
@@ -60,13 +42,41 @@ export declare namespace EventListResponse {
|
|
|
60
42
|
}
|
|
61
43
|
}
|
|
62
44
|
}
|
|
45
|
+
interface EventFileEdited {
|
|
46
|
+
properties: EventFileEdited.Properties;
|
|
47
|
+
type: 'file.edited';
|
|
48
|
+
}
|
|
49
|
+
namespace EventFileEdited {
|
|
50
|
+
interface Properties {
|
|
51
|
+
file: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
interface EventInstallationUpdated {
|
|
55
|
+
properties: EventInstallationUpdated.Properties;
|
|
56
|
+
type: 'installation.updated';
|
|
57
|
+
}
|
|
58
|
+
namespace EventInstallationUpdated {
|
|
59
|
+
interface Properties {
|
|
60
|
+
version: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
63
|
interface EventMessageUpdated {
|
|
64
64
|
properties: EventMessageUpdated.Properties;
|
|
65
65
|
type: 'message.updated';
|
|
66
66
|
}
|
|
67
67
|
namespace EventMessageUpdated {
|
|
68
68
|
interface Properties {
|
|
69
|
-
info:
|
|
69
|
+
info: SessionAPI.Message;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
interface EventMessageRemoved {
|
|
73
|
+
properties: EventMessageRemoved.Properties;
|
|
74
|
+
type: 'message.removed';
|
|
75
|
+
}
|
|
76
|
+
namespace EventMessageRemoved {
|
|
77
|
+
interface Properties {
|
|
78
|
+
messageID: string;
|
|
79
|
+
sessionID: string;
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
82
|
interface EventMessagePartUpdated {
|
|
@@ -75,9 +85,17 @@ export declare namespace EventListResponse {
|
|
|
75
85
|
}
|
|
76
86
|
namespace EventMessagePartUpdated {
|
|
77
87
|
interface Properties {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
88
|
+
part: SessionAPI.Part;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
interface EventStorageWrite {
|
|
92
|
+
properties: EventStorageWrite.Properties;
|
|
93
|
+
type: 'storage.write';
|
|
94
|
+
}
|
|
95
|
+
namespace EventStorageWrite {
|
|
96
|
+
interface Properties {
|
|
97
|
+
key: string;
|
|
98
|
+
content?: unknown;
|
|
81
99
|
}
|
|
82
100
|
}
|
|
83
101
|
interface EventSessionUpdated {
|
|
@@ -86,7 +104,25 @@ export declare namespace EventListResponse {
|
|
|
86
104
|
}
|
|
87
105
|
namespace EventSessionUpdated {
|
|
88
106
|
interface Properties {
|
|
89
|
-
info:
|
|
107
|
+
info: SessionAPI.Session;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
interface EventSessionDeleted {
|
|
111
|
+
properties: EventSessionDeleted.Properties;
|
|
112
|
+
type: 'session.deleted';
|
|
113
|
+
}
|
|
114
|
+
namespace EventSessionDeleted {
|
|
115
|
+
interface Properties {
|
|
116
|
+
info: SessionAPI.Session;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
interface EventSessionIdle {
|
|
120
|
+
properties: EventSessionIdle.Properties;
|
|
121
|
+
type: 'session.idle';
|
|
122
|
+
}
|
|
123
|
+
namespace EventSessionIdle {
|
|
124
|
+
interface Properties {
|
|
125
|
+
sessionID: string;
|
|
90
126
|
}
|
|
91
127
|
}
|
|
92
128
|
interface EventSessionError {
|
|
@@ -95,7 +131,24 @@ export declare namespace EventListResponse {
|
|
|
95
131
|
}
|
|
96
132
|
namespace EventSessionError {
|
|
97
133
|
interface Properties {
|
|
98
|
-
error?:
|
|
134
|
+
error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError | Shared.MessageAbortedError;
|
|
135
|
+
sessionID?: string;
|
|
136
|
+
}
|
|
137
|
+
namespace Properties {
|
|
138
|
+
interface MessageOutputLengthError {
|
|
139
|
+
data: unknown;
|
|
140
|
+
name: 'MessageOutputLengthError';
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
interface EventFileWatcherUpdated {
|
|
145
|
+
properties: EventFileWatcherUpdated.Properties;
|
|
146
|
+
type: 'file.watcher.updated';
|
|
147
|
+
}
|
|
148
|
+
namespace EventFileWatcherUpdated {
|
|
149
|
+
interface Properties {
|
|
150
|
+
event: 'rename' | 'change';
|
|
151
|
+
file: string;
|
|
99
152
|
}
|
|
100
153
|
}
|
|
101
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.mts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"event.d.mts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAGtE;AAED,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,yBAAyB,GAC3C,iBAAiB,CAAC,sBAAsB,GACxC,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,wBAAwB,GAC1C,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,gBAAgB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AAgB,CAAC,UAAU,CAAC;QAExC,IAAI,EAAE,cAAc,CAAC;KACtB;IAED,UAAiB,gBAAgB,CAAC;QAChC,UAAiB,UAAU;YACzB,SAAS,EAAE,MAAM,CAAC;SACnB;KACF;IAED,UAAiB,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,YAAY,GACnB,UAAU,CAAC,wBAAwB,GACnC,MAAM,CAAC,mBAAmB,CAAC;YAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;IAED,UAAiB,uBAAuB;QACtC,UAAU,EAAE,uBAAuB,CAAC,UAAU,CAAC;QAE/C,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,UAAU;YACzB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;YAE3B,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
|
package/resources/event.d.ts
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as SessionAPI from "./session.js";
|
|
3
|
+
import * as Shared from "./shared.js";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { Stream } from "../core/streaming.js";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
7
|
export declare class Event extends APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Get events
|
|
9
10
|
*/
|
|
10
|
-
list(options?: RequestOptions): APIPromise<EventListResponse
|
|
11
|
+
list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
|
|
11
12
|
}
|
|
12
|
-
export type EventListResponse = EventListResponse.
|
|
13
|
+
export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessageRemoved | EventListResponse.EventMessagePartUpdated | EventListResponse.EventStorageWrite | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
|
|
13
14
|
export declare namespace EventListResponse {
|
|
14
|
-
interface EventStorageWrite {
|
|
15
|
-
properties: EventStorageWrite.Properties;
|
|
16
|
-
type: 'storage.write';
|
|
17
|
-
}
|
|
18
|
-
namespace EventStorageWrite {
|
|
19
|
-
interface Properties {
|
|
20
|
-
key: string;
|
|
21
|
-
content?: unknown;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
interface EventInstallationUpdated {
|
|
25
|
-
properties: EventInstallationUpdated.Properties;
|
|
26
|
-
type: 'installation.updated';
|
|
27
|
-
}
|
|
28
|
-
namespace EventInstallationUpdated {
|
|
29
|
-
interface Properties {
|
|
30
|
-
version: string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
15
|
interface EventLspClientDiagnostics {
|
|
34
16
|
properties: EventLspClientDiagnostics.Properties;
|
|
35
17
|
type: 'lsp.client.diagnostics';
|
|
@@ -60,13 +42,41 @@ export declare namespace EventListResponse {
|
|
|
60
42
|
}
|
|
61
43
|
}
|
|
62
44
|
}
|
|
45
|
+
interface EventFileEdited {
|
|
46
|
+
properties: EventFileEdited.Properties;
|
|
47
|
+
type: 'file.edited';
|
|
48
|
+
}
|
|
49
|
+
namespace EventFileEdited {
|
|
50
|
+
interface Properties {
|
|
51
|
+
file: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
interface EventInstallationUpdated {
|
|
55
|
+
properties: EventInstallationUpdated.Properties;
|
|
56
|
+
type: 'installation.updated';
|
|
57
|
+
}
|
|
58
|
+
namespace EventInstallationUpdated {
|
|
59
|
+
interface Properties {
|
|
60
|
+
version: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
63
|
interface EventMessageUpdated {
|
|
64
64
|
properties: EventMessageUpdated.Properties;
|
|
65
65
|
type: 'message.updated';
|
|
66
66
|
}
|
|
67
67
|
namespace EventMessageUpdated {
|
|
68
68
|
interface Properties {
|
|
69
|
-
info:
|
|
69
|
+
info: SessionAPI.Message;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
interface EventMessageRemoved {
|
|
73
|
+
properties: EventMessageRemoved.Properties;
|
|
74
|
+
type: 'message.removed';
|
|
75
|
+
}
|
|
76
|
+
namespace EventMessageRemoved {
|
|
77
|
+
interface Properties {
|
|
78
|
+
messageID: string;
|
|
79
|
+
sessionID: string;
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
82
|
interface EventMessagePartUpdated {
|
|
@@ -75,9 +85,17 @@ export declare namespace EventListResponse {
|
|
|
75
85
|
}
|
|
76
86
|
namespace EventMessagePartUpdated {
|
|
77
87
|
interface Properties {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
88
|
+
part: SessionAPI.Part;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
interface EventStorageWrite {
|
|
92
|
+
properties: EventStorageWrite.Properties;
|
|
93
|
+
type: 'storage.write';
|
|
94
|
+
}
|
|
95
|
+
namespace EventStorageWrite {
|
|
96
|
+
interface Properties {
|
|
97
|
+
key: string;
|
|
98
|
+
content?: unknown;
|
|
81
99
|
}
|
|
82
100
|
}
|
|
83
101
|
interface EventSessionUpdated {
|
|
@@ -86,7 +104,25 @@ export declare namespace EventListResponse {
|
|
|
86
104
|
}
|
|
87
105
|
namespace EventSessionUpdated {
|
|
88
106
|
interface Properties {
|
|
89
|
-
info:
|
|
107
|
+
info: SessionAPI.Session;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
interface EventSessionDeleted {
|
|
111
|
+
properties: EventSessionDeleted.Properties;
|
|
112
|
+
type: 'session.deleted';
|
|
113
|
+
}
|
|
114
|
+
namespace EventSessionDeleted {
|
|
115
|
+
interface Properties {
|
|
116
|
+
info: SessionAPI.Session;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
interface EventSessionIdle {
|
|
120
|
+
properties: EventSessionIdle.Properties;
|
|
121
|
+
type: 'session.idle';
|
|
122
|
+
}
|
|
123
|
+
namespace EventSessionIdle {
|
|
124
|
+
interface Properties {
|
|
125
|
+
sessionID: string;
|
|
90
126
|
}
|
|
91
127
|
}
|
|
92
128
|
interface EventSessionError {
|
|
@@ -95,7 +131,24 @@ export declare namespace EventListResponse {
|
|
|
95
131
|
}
|
|
96
132
|
namespace EventSessionError {
|
|
97
133
|
interface Properties {
|
|
98
|
-
error?:
|
|
134
|
+
error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError | Shared.MessageAbortedError;
|
|
135
|
+
sessionID?: string;
|
|
136
|
+
}
|
|
137
|
+
namespace Properties {
|
|
138
|
+
interface MessageOutputLengthError {
|
|
139
|
+
data: unknown;
|
|
140
|
+
name: 'MessageOutputLengthError';
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
interface EventFileWatcherUpdated {
|
|
145
|
+
properties: EventFileWatcherUpdated.Properties;
|
|
146
|
+
type: 'file.watcher.updated';
|
|
147
|
+
}
|
|
148
|
+
namespace EventFileWatcherUpdated {
|
|
149
|
+
interface Properties {
|
|
150
|
+
event: 'rename' | 'change';
|
|
151
|
+
file: string;
|
|
99
152
|
}
|
|
100
153
|
}
|
|
101
154
|
}
|
package/resources/event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAGtE;AAED,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,yBAAyB,GAC3C,iBAAiB,CAAC,sBAAsB,GACxC,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,wBAAwB,GAC1C,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,gBAAgB,GAClC,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,uBAAuB,CAAC;AAE9C,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,yBAAyB;QACxC,UAAU,EAAE,yBAAyB,CAAC,UAAU,CAAC;QAEjD,IAAI,EAAE,wBAAwB,CAAC;KAChC;IAED,UAAiB,yBAAyB,CAAC;QACzC,UAAiB,UAAU;YACzB,IAAI,EAAE,MAAM,CAAC;YAEb,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;IAED,UAAiB,sBAAsB;QACrC,UAAU,EAAE,sBAAsB,CAAC,UAAU,CAAC;QAE9C,I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C,MAAM,CAAC,mBAAmB,CAAC;YAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;IAED,UAAiB,uBAAuB;QACtC,UAAU,EAAE,uBAAuB,CAAC,UAAU,CAAC;QAE/C,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,UAAU;YACzB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;YAE3B,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
|
package/resources/event.js
CHANGED
package/resources/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAO/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAA0C,CAAC;IAC3G,CAAC;CACF;AAPD,sBAOC"}
|
package/resources/event.mjs
CHANGED
package/resources/event.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.mjs","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"event.mjs","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAOtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAA0C,CAAC;IAC3G,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 FileResource 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 File {
|
|
15
|
+
added: number;
|
|
16
|
+
path: string;
|
|
17
|
+
removed: number;
|
|
18
|
+
status: 'added' | 'deleted' | 'modified';
|
|
19
|
+
}
|
|
20
|
+
export interface FileReadResponse {
|
|
21
|
+
content: string;
|
|
22
|
+
type: 'raw' | 'patch';
|
|
23
|
+
}
|
|
24
|
+
export type FileStatusResponse = Array<File>;
|
|
25
|
+
export interface FileReadParams {
|
|
26
|
+
path: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace FileResource {
|
|
29
|
+
export { type File as File, type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,YAAa,SAAQ,WAAW;IAC3C;;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,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC1C;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,IAAI,CAAC,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 FileResource 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 File {
|
|
15
|
+
added: number;
|
|
16
|
+
path: string;
|
|
17
|
+
removed: number;
|
|
18
|
+
status: 'added' | 'deleted' | 'modified';
|
|
19
|
+
}
|
|
20
|
+
export interface FileReadResponse {
|
|
21
|
+
content: string;
|
|
22
|
+
type: 'raw' | 'patch';
|
|
23
|
+
}
|
|
24
|
+
export type FileStatusResponse = Array<File>;
|
|
25
|
+
export interface FileReadParams {
|
|
26
|
+
path: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace FileResource {
|
|
29
|
+
export { type File as File, type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,YAAa,SAAQ,WAAW;IAC3C;;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,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC1C;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,IAAI,CAAC,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.FileResource = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class FileResource 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.FileResource = FileResource;
|
|
21
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;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,oCAcC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class FileResource 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.mjs","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;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"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 interface Match {
|
|
19
|
+
absolute_offset: number;
|
|
20
|
+
line_number: number;
|
|
21
|
+
lines: Match.Lines;
|
|
22
|
+
path: Match.Path;
|
|
23
|
+
submatches: Array<Match.Submatch>;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace Match {
|
|
26
|
+
interface Lines {
|
|
27
|
+
text: string;
|
|
28
|
+
}
|
|
29
|
+
interface Path {
|
|
30
|
+
text: string;
|
|
31
|
+
}
|
|
32
|
+
interface Submatch {
|
|
33
|
+
end: number;
|
|
34
|
+
match: Submatch.Match;
|
|
35
|
+
start: number;
|
|
36
|
+
}
|
|
37
|
+
namespace Submatch {
|
|
38
|
+
interface Match {
|
|
39
|
+
text: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export interface Symbol {
|
|
44
|
+
kind: number;
|
|
45
|
+
location: Symbol.Location;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Symbol {
|
|
49
|
+
interface Location {
|
|
50
|
+
range: Location.Range;
|
|
51
|
+
uri: string;
|
|
52
|
+
}
|
|
53
|
+
namespace Location {
|
|
54
|
+
interface Range {
|
|
55
|
+
end: Range.End;
|
|
56
|
+
start: Range.Start;
|
|
57
|
+
}
|
|
58
|
+
namespace Range {
|
|
59
|
+
interface End {
|
|
60
|
+
character: number;
|
|
61
|
+
line: number;
|
|
62
|
+
}
|
|
63
|
+
interface Start {
|
|
64
|
+
character: number;
|
|
65
|
+
line: number;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export type FindFilesResponse = Array<string>;
|
|
71
|
+
export type FindSymbolsResponse = Array<Symbol>;
|
|
72
|
+
export type FindTextResponse = Array<Match>;
|
|
73
|
+
export interface FindFilesParams {
|
|
74
|
+
query: string;
|
|
75
|
+
}
|
|
76
|
+
export interface FindSymbolsParams {
|
|
77
|
+
query: string;
|
|
78
|
+
}
|
|
79
|
+
export interface FindTextParams {
|
|
80
|
+
pattern: string;
|
|
81
|
+
}
|
|
82
|
+
export declare namespace Find {
|
|
83
|
+
export { type Match as Match, type Symbol as Symbol, type FindFilesResponse as FindFilesResponse, type FindSymbolsResponse as FindSymbolsResponse, type FindTextResponse as FindTextResponse, type FindFilesParams as FindFilesParams, type FindSymbolsParams as FindSymbolsParams, type FindTextParams as FindTextParams, };
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=find.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,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