@opencode-ai/sdk 0.0.0-dev-202512091857 → 0.0.0-dev-202512091954
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/dist/v2/gen/sdk.gen.d.ts +5 -2
- package/dist/v2/gen/sdk.gen.js +1 -1
- package/dist/v2/gen/types.gen.d.ts +30 -20
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -53,13 +53,16 @@ export declare class Project extends HeyApiClient {
|
|
|
53
53
|
/**
|
|
54
54
|
* Update project
|
|
55
55
|
*
|
|
56
|
-
* Update project properties such as name and
|
|
56
|
+
* Update project properties such as name, icon and color.
|
|
57
57
|
*/
|
|
58
58
|
update<ThrowOnError extends boolean = false>(parameters: {
|
|
59
59
|
projectID: string;
|
|
60
60
|
directory?: string;
|
|
61
61
|
name?: string;
|
|
62
|
-
icon?:
|
|
62
|
+
icon?: {
|
|
63
|
+
url: string;
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
63
66
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
|
|
64
67
|
}
|
|
65
68
|
export declare class Pty extends HeyApiClient {
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -64,7 +64,7 @@ export class Project extends HeyApiClient {
|
|
|
64
64
|
/**
|
|
65
65
|
* Update project
|
|
66
66
|
*
|
|
67
|
-
* Update project properties such as name and
|
|
67
|
+
* Update project properties such as name, icon and color.
|
|
68
68
|
*/
|
|
69
69
|
update(parameters, options) {
|
|
70
70
|
const params = buildClientParams([parameters], [
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type EventServerInstanceDisposed = {
|
|
5
|
-
type: "server.instance.disposed";
|
|
6
|
-
properties: {
|
|
7
|
-
directory: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
export type EventInstallationUpdated = {
|
|
11
5
|
type: "installation.updated";
|
|
12
6
|
properties: {
|
|
@@ -19,6 +13,31 @@ export type EventInstallationUpdateAvailable = {
|
|
|
19
13
|
version: string;
|
|
20
14
|
};
|
|
21
15
|
};
|
|
16
|
+
export type Project = {
|
|
17
|
+
id: string;
|
|
18
|
+
worktree: string;
|
|
19
|
+
vcs?: "git";
|
|
20
|
+
name?: string;
|
|
21
|
+
icon?: {
|
|
22
|
+
url: string;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
time: {
|
|
26
|
+
created: number;
|
|
27
|
+
updated?: number;
|
|
28
|
+
initialized?: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type EventProjectUpdated = {
|
|
32
|
+
type: "project.updated";
|
|
33
|
+
properties: Project;
|
|
34
|
+
};
|
|
35
|
+
export type EventServerInstanceDisposed = {
|
|
36
|
+
type: "server.instance.disposed";
|
|
37
|
+
properties: {
|
|
38
|
+
directory: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
22
41
|
export type EventLspClientDiagnostics = {
|
|
23
42
|
type: "lsp.client.diagnostics";
|
|
24
43
|
properties: {
|
|
@@ -602,23 +621,11 @@ export type EventServerConnected = {
|
|
|
602
621
|
[key: string]: unknown;
|
|
603
622
|
};
|
|
604
623
|
};
|
|
605
|
-
export type Event =
|
|
624
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected;
|
|
606
625
|
export type GlobalEvent = {
|
|
607
626
|
directory: string;
|
|
608
627
|
payload: Event;
|
|
609
628
|
};
|
|
610
|
-
export type Project = {
|
|
611
|
-
id: string;
|
|
612
|
-
worktree: string;
|
|
613
|
-
vcs?: "git";
|
|
614
|
-
name?: string;
|
|
615
|
-
icon?: string;
|
|
616
|
-
time: {
|
|
617
|
-
created: number;
|
|
618
|
-
updated?: number;
|
|
619
|
-
initialized?: number;
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
629
|
export type BadRequestError = {
|
|
623
630
|
data: unknown;
|
|
624
631
|
errors: Array<{
|
|
@@ -1499,7 +1506,10 @@ export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurren
|
|
|
1499
1506
|
export type ProjectUpdateData = {
|
|
1500
1507
|
body?: {
|
|
1501
1508
|
name?: string;
|
|
1502
|
-
icon?:
|
|
1509
|
+
icon?: {
|
|
1510
|
+
url: string;
|
|
1511
|
+
color: string;
|
|
1512
|
+
};
|
|
1503
1513
|
};
|
|
1504
1514
|
path: {
|
|
1505
1515
|
projectID: string;
|