summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2025-12-09 19:54:19 +0000
committerGitHub Action <[email protected]>2025-12-09 19:54:19 +0000
commit553d9013eb4a9c729bc732f1e544ca4bf5cc53f2 (patch)
treec72fc408bd57348748c70f850449b2fea0f2223c /packages/sdk/js/src
parent8bff3cdae86c7ae8d85d18e0d11b3b848fd7498c (diff)
downloadopencode-553d9013eb4a9c729bc732f1e544ca4bf5cc53f2.tar.gz
opencode-553d9013eb4a9c729bc732f1e544ca4bf5cc53f2.zip
chore: regen sdk
Diffstat (limited to 'packages/sdk/js/src')
-rw-r--r--packages/sdk/js/src/v2/gen/sdk.gen.ts7
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts58
2 files changed, 38 insertions, 27 deletions
diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts
index 56167f6f3..da1a67986 100644
--- a/packages/sdk/js/src/v2/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts
@@ -244,8 +244,10 @@ export class Project extends HeyApiClient {
projectID: string
directory?: string
name?: string
- icon?: string
- color?: string
+ icon?: {
+ url: string
+ color: string
+ }
},
options?: Options<never, ThrowOnError>,
) {
@@ -258,7 +260,6 @@ export class Project extends HeyApiClient {
{ in: "query", key: "directory" },
{ in: "body", key: "name" },
{ in: "body", key: "icon" },
- { in: "body", key: "color" },
],
},
],
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index a3364fe5e..5f796fb7c 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -4,13 +4,6 @@ export type ClientOptions = {
baseUrl: `${string}://${string}` | (string & {})
}
-export type EventServerInstanceDisposed = {
- type: "server.instance.disposed"
- properties: {
- directory: string
- }
-}
-
export type EventInstallationUpdated = {
type: "installation.updated"
properties: {
@@ -25,6 +18,34 @@ export type EventInstallationUpdateAvailable = {
}
}
+export type Project = {
+ id: string
+ worktree: string
+ vcs?: "git"
+ name?: string
+ icon?: {
+ url: string
+ color: string
+ }
+ time: {
+ created: number
+ updated?: number
+ initialized?: number
+ }
+}
+
+export type EventProjectUpdated = {
+ type: "project.updated"
+ properties: Project
+}
+
+export type EventServerInstanceDisposed = {
+ type: "server.instance.disposed"
+ properties: {
+ directory: string
+ }
+}
+
export type EventLspClientDiagnostics = {
type: "lsp.client.diagnostics"
properties: {
@@ -704,9 +725,10 @@ export type EventServerConnected = {
}
export type Event =
- | EventServerInstanceDisposed
| EventInstallationUpdated
| EventInstallationUpdateAvailable
+ | EventProjectUpdated
+ | EventServerInstanceDisposed
| EventLspClientDiagnostics
| EventLspUpdated
| EventMessageUpdated
@@ -742,20 +764,6 @@ export type GlobalEvent = {
payload: Event
}
-export type Project = {
- id: string
- worktree: string
- vcs?: "git"
- name?: string
- icon?: string
- color?: string
- time: {
- created: number
- updated?: number
- initialized?: number
- }
-}
-
export type BadRequestError = {
data: unknown
errors: Array<{
@@ -1721,8 +1729,10 @@ export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurren
export type ProjectUpdateData = {
body?: {
name?: string
- icon?: string
- color?: string
+ icon?: {
+ url: string
+ color: string
+ }
}
path: {
projectID: string