GitHub Action 4 месяцев назад
Родитель
Сommit
553d9013eb

Разница между файлами не показана из-за своего большого размера
+ 416 - 92
packages/sdk/js/openapi.json


+ 4 - 3
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" },
           ],
         },
       ],

+ 34 - 24
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

Разница между файлами не показана из-за своего большого размера
+ 416 - 92
packages/sdk/openapi.json


Некоторые файлы не были показаны из-за большого количества измененных файлов