@opencode-ai/sdk 0.0.0-dev-202512091930 → 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.
@@ -59,8 +59,10 @@ export declare class Project extends HeyApiClient {
59
59
  projectID: string;
60
60
  directory?: string;
61
61
  name?: string;
62
- icon?: string;
63
- color?: string;
62
+ icon?: {
63
+ url: string;
64
+ color: string;
65
+ };
64
66
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
65
67
  }
66
68
  export declare class Pty extends HeyApiClient {
@@ -74,7 +74,6 @@ export class Project extends HeyApiClient {
74
74
  { in: "query", key: "directory" },
75
75
  { in: "body", key: "name" },
76
76
  { in: "body", key: "icon" },
77
- { in: "body", key: "color" },
78
77
  ],
79
78
  },
80
79
  ]);
@@ -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,24 +621,11 @@ export type EventServerConnected = {
602
621
  [key: string]: unknown;
603
622
  };
604
623
  };
605
- export type Event = EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | 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;
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
- color?: string;
617
- time: {
618
- created: number;
619
- updated?: number;
620
- initialized?: number;
621
- };
622
- };
623
629
  export type BadRequestError = {
624
630
  data: unknown;
625
631
  errors: Array<{
@@ -1500,8 +1506,10 @@ export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurren
1500
1506
  export type ProjectUpdateData = {
1501
1507
  body?: {
1502
1508
  name?: string;
1503
- icon?: string;
1504
- color?: string;
1509
+ icon?: {
1510
+ url: string;
1511
+ color: string;
1512
+ };
1505
1513
  };
1506
1514
  path: {
1507
1515
  projectID: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "0.0.0-dev-202512091930",
4
+ "version": "0.0.0-dev-202512091954",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",