|
@@ -4,13 +4,6 @@ export type ClientOptions = {
|
|
|
baseUrl: `${string}://${string}` | (string & {})
|
|
baseUrl: `${string}://${string}` | (string & {})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export type EventServerInstanceDisposed = {
|
|
|
|
|
- type: "server.instance.disposed"
|
|
|
|
|
- properties: {
|
|
|
|
|
- directory: string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export type EventInstallationUpdated = {
|
|
export type EventInstallationUpdated = {
|
|
|
type: "installation.updated"
|
|
type: "installation.updated"
|
|
|
properties: {
|
|
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 = {
|
|
export type EventLspClientDiagnostics = {
|
|
|
type: "lsp.client.diagnostics"
|
|
type: "lsp.client.diagnostics"
|
|
|
properties: {
|
|
properties: {
|
|
@@ -704,9 +725,10 @@ export type EventServerConnected = {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export type Event =
|
|
export type Event =
|
|
|
- | EventServerInstanceDisposed
|
|
|
|
|
| EventInstallationUpdated
|
|
| EventInstallationUpdated
|
|
|
| EventInstallationUpdateAvailable
|
|
| EventInstallationUpdateAvailable
|
|
|
|
|
+ | EventProjectUpdated
|
|
|
|
|
+ | EventServerInstanceDisposed
|
|
|
| EventLspClientDiagnostics
|
|
| EventLspClientDiagnostics
|
|
|
| EventLspUpdated
|
|
| EventLspUpdated
|
|
|
| EventMessageUpdated
|
|
| EventMessageUpdated
|
|
@@ -742,20 +764,6 @@ export type GlobalEvent = {
|
|
|
payload: Event
|
|
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 = {
|
|
export type BadRequestError = {
|
|
|
data: unknown
|
|
data: unknown
|
|
|
errors: Array<{
|
|
errors: Array<{
|
|
@@ -1721,8 +1729,10 @@ export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurren
|
|
|
export type ProjectUpdateData = {
|
|
export type ProjectUpdateData = {
|
|
|
body?: {
|
|
body?: {
|
|
|
name?: string
|
|
name?: string
|
|
|
- icon?: string
|
|
|
|
|
- color?: string
|
|
|
|
|
|
|
+ icon?: {
|
|
|
|
|
+ url: string
|
|
|
|
|
+ color: string
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
path: {
|
|
path: {
|
|
|
projectID: string
|
|
projectID: string
|