@kilocode/sdk 7.4.9 → 7.4.13

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.
@@ -1,7 +1,7 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
- export type Event = EventServerInstanceDisposed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventLspClientDiagnostics | EventKiloSessionsRemoteStatusChanged | EventMemoryStatus1 | EventMemoryUpdated1 | EventMemoryError1 | EventIndexingStatus | EventIndexingWarning | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventModelsDevRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventPermissionAsked | EventPermissionReplied | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventLspUpdated | EventFileEdited | EventFileWatcherUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventAccountAdded | EventAccountRemoved | EventAccountSwitched | EventPermissionV2Asked | EventPermissionV2Replied | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected;
4
+ export type Event = EventServerInstanceDisposed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventLspClientDiagnostics | EventKiloSessionsRemoteStatusChanged | EventMemoryStatus1 | EventMemoryUpdated1 | EventMemoryError1 | EventIndexingStatus | EventIndexingWarning | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventCredentialAdded | EventCredentialRemoved | EventCredentialSwitched | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextInterruptRequested | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventModelsDevRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventPermissionAsked | EventPermissionReplied | EventReferenceUpdated | EventConnectorUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventFileEdited | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventLspUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed;
5
5
  export type QuestionReplied = {
6
6
  sessionID: string;
7
7
  requestID: string;
@@ -136,7 +136,13 @@ export type AgentManagerPromptRequest = {
136
136
  targetSessionID: string;
137
137
  prompt: string;
138
138
  };
139
- export type AgentManagerRequest = AgentManagerOverviewRequest | AgentManagerPromptRequest;
139
+ export type AgentManagerStopRequest = {
140
+ id: AgentManagerRequestId;
141
+ sessionID: string;
142
+ operation: "stop";
143
+ targetSessionID: string;
144
+ };
145
+ export type AgentManagerRequest = AgentManagerOverviewRequest | AgentManagerPromptRequest | AgentManagerStopRequest;
140
146
  export type NotebookRequestId = string;
141
147
  export type NotebookReadRequest = {
142
148
  id: NotebookRequestId;
@@ -265,6 +271,7 @@ export type Session = {
265
271
  partID?: string;
266
272
  snapshot?: string;
267
273
  diff?: string;
274
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
268
275
  };
269
276
  };
270
277
  export type OutputFormatText = {
@@ -349,6 +356,12 @@ export type ContextOverflowError = {
349
356
  responseBody?: string;
350
357
  };
351
358
  };
359
+ export type ContentFilterError = {
360
+ name: "ContentFilterError";
361
+ data: {
362
+ message: string;
363
+ };
364
+ };
352
365
  export type ApiError = {
353
366
  name: "APIError";
354
367
  data: {
@@ -372,7 +385,7 @@ export type AssistantMessage = {
372
385
  created: number;
373
386
  completed?: number;
374
387
  };
375
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
388
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
376
389
  parentID: string;
377
390
  modelID: string;
378
391
  providerID: string;
@@ -634,7 +647,6 @@ export type Prompt = {
634
647
  text: string;
635
648
  files?: Array<PromptFileAttachment>;
636
649
  agents?: Array<PromptAgentAttachment>;
637
- references?: Array<PromptReferenceAttachment>;
638
650
  };
639
651
  export type QuestionOption = {
640
652
  /**
@@ -729,6 +741,30 @@ export type AgentRequirementError = {
729
741
  }>;
730
742
  };
731
743
  };
744
+ export type Pty = {
745
+ id: string;
746
+ title: string;
747
+ command: string;
748
+ args: Array<string>;
749
+ cwd: string;
750
+ status: "running" | "exited";
751
+ pid: number;
752
+ sessionID?: string | null;
753
+ };
754
+ export type Todo = {
755
+ /**
756
+ * Brief description of the task
757
+ */
758
+ content: string;
759
+ /**
760
+ * Current status of the task: pending, in_progress, completed, cancelled
761
+ */
762
+ status: string;
763
+ /**
764
+ * Priority level of the task: high, medium, low
765
+ */
766
+ priority: string;
767
+ };
732
768
  export type SessionStatus = {
733
769
  type: "idle";
734
770
  } | {
@@ -751,21 +787,11 @@ export type SessionStatus = {
751
787
  requestID: string;
752
788
  message: string;
753
789
  };
754
- export type Pty = {
755
- id: string;
756
- title: string;
757
- command: string;
758
- args: Array<string>;
759
- cwd: string;
760
- status: "running" | "exited";
761
- pid: number;
762
- sessionID?: string | null;
763
- };
764
790
  export type GlobalEvent = {
765
791
  directory: string;
766
792
  project?: string;
767
793
  workspace?: string;
768
- payload: EventServerInstanceDisposed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventLspClientDiagnostics | EventKiloSessionsRemoteStatusChanged | EventMemoryStatus | EventMemoryUpdated | EventMemoryError | EventIndexingStatus | EventIndexingWarning | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventModelsDevRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventPermissionAsked | EventPermissionReplied | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventLspUpdated | EventFileEdited | EventFileWatcherUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventAccountAdded | EventAccountRemoved | EventAccountSwitched | EventPermissionV2Asked | EventPermissionV2Replied | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextPromptPromoted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded;
794
+ payload: EventServerInstanceDisposed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventLspClientDiagnostics | EventKiloSessionsRemoteStatusChanged | EventMemoryStatus | EventMemoryUpdated | EventMemoryError | EventIndexingStatus | EventIndexingWarning | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventCredentialAdded | EventCredentialRemoved | EventCredentialSwitched | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextInterruptRequested | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventModelsDevRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventPermissionAsked | EventPermissionReplied | EventReferenceUpdated | EventConnectorUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventFileEdited | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventLspUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextPromptPromoted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded;
769
795
  };
770
796
  /**
771
797
  * Log level
@@ -781,21 +807,6 @@ export type ServerConfig = {
781
807
  mdnsDomain?: string;
782
808
  cors?: Array<string>;
783
809
  };
784
- export type ReferenceConfigEntry = string | {
785
- /**
786
- * Git repository URL, host/path reference, or GitHub owner/repo shorthand
787
- */
788
- repository: string;
789
- branch?: string;
790
- } | {
791
- /**
792
- * Absolute path, ~/ path, or workspace-relative path to a local reference directory
793
- */
794
- path: string;
795
- };
796
- export type ReferenceConfig = {
797
- [key: string]: ReferenceConfigEntry;
798
- };
799
810
  export type IndexingConfig = {
800
811
  enabled?: boolean;
801
812
  provider?: "kilo" | "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "voyage";
@@ -848,6 +859,7 @@ export type IndexingConfig = {
848
859
  searchMaxResults?: number;
849
860
  embeddingBatchSize?: number;
850
861
  scannerMaxBatchRetries?: number;
862
+ fileExtensions?: Array<string>;
851
863
  };
852
864
  export type PermissionActionConfig = "ask" | "allow" | "deny";
853
865
  export type PermissionObjectConfig = {
@@ -960,7 +972,7 @@ export type ProviderConfig = {
960
972
  temperature?: boolean;
961
973
  tool_call?: boolean;
962
974
  interleaved?: true | {
963
- field: "reasoning_content" | "reasoning_details";
975
+ field: "reasoning" | "reasoning_content" | "reasoning_details";
964
976
  };
965
977
  cost?: {
966
978
  input: number;
@@ -1077,7 +1089,12 @@ export type Config = {
1077
1089
  paths?: Array<string>;
1078
1090
  urls?: Array<string>;
1079
1091
  };
1080
- reference?: ReferenceConfig;
1092
+ references?: {
1093
+ [key: string]: string | ConfigV2ReferenceGit | ConfigV2ReferenceLocal;
1094
+ };
1095
+ reference?: {
1096
+ [key: string]: string | ConfigV2ReferenceGit | ConfigV2ReferenceLocal;
1097
+ };
1081
1098
  watcher?: {
1082
1099
  ignore?: Array<string>;
1083
1100
  };
@@ -1276,7 +1293,7 @@ export type Model = {
1276
1293
  pdf: boolean;
1277
1294
  };
1278
1295
  interleaved: boolean | {
1279
- field: "reasoning_content" | "reasoning_details";
1296
+ field: "reasoning" | "reasoning_content" | "reasoning_details";
1280
1297
  };
1281
1298
  };
1282
1299
  cost: {
@@ -1475,6 +1492,7 @@ export type GlobalSession = {
1475
1492
  partID?: string;
1476
1493
  snapshot?: string;
1477
1494
  diff?: string;
1495
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
1478
1496
  };
1479
1497
  project: ProjectSummary | null;
1480
1498
  worktreeName?: string;
@@ -1670,6 +1688,7 @@ export type ProjectCopyError = {
1670
1688
  name: "ProjectCopyError";
1671
1689
  data: {
1672
1690
  message: string;
1691
+ forceRequired?: boolean;
1673
1692
  };
1674
1693
  };
1675
1694
  export type PtyNotFoundError = {
@@ -1808,6 +1827,7 @@ export type Session1 = {
1808
1827
  partID?: string;
1809
1828
  snapshot?: string;
1810
1829
  diff?: string;
1830
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
1811
1831
  };
1812
1832
  };
1813
1833
  export type Session2 = {
@@ -1860,6 +1880,7 @@ export type Session2 = {
1860
1880
  partID?: string;
1861
1881
  snapshot?: string;
1862
1882
  diff?: string;
1883
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
1863
1884
  };
1864
1885
  };
1865
1886
  export type NotFoundError = {
@@ -1868,20 +1889,6 @@ export type NotFoundError = {
1868
1889
  message: string;
1869
1890
  };
1870
1891
  };
1871
- export type Todo = {
1872
- /**
1873
- * Brief description of the task
1874
- */
1875
- content: string;
1876
- /**
1877
- * Current status of the task: pending, in_progress, completed, cancelled
1878
- */
1879
- status: string;
1880
- /**
1881
- * Priority level of the task: high, medium, low
1882
- */
1883
- priority: string;
1884
- };
1885
1892
  export type Session3 = {
1886
1893
  id: string;
1887
1894
  slug: string;
@@ -1932,6 +1939,7 @@ export type Session3 = {
1932
1939
  partID?: string;
1933
1940
  snapshot?: string;
1934
1941
  diff?: string;
1942
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
1935
1943
  };
1936
1944
  };
1937
1945
  export type Session4 = {
@@ -1984,6 +1992,7 @@ export type Session4 = {
1984
1992
  partID?: string;
1985
1993
  snapshot?: string;
1986
1994
  diff?: string;
1995
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
1987
1996
  };
1988
1997
  };
1989
1998
  export type Session5 = {
@@ -2036,6 +2045,7 @@ export type Session5 = {
2036
2045
  partID?: string;
2037
2046
  snapshot?: string;
2038
2047
  diff?: string;
2048
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
2039
2049
  };
2040
2050
  };
2041
2051
  export type Session6 = {
@@ -2088,6 +2098,7 @@ export type Session6 = {
2088
2098
  partID?: string;
2089
2099
  snapshot?: string;
2090
2100
  diff?: string;
2101
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
2091
2102
  };
2092
2103
  };
2093
2104
  export type Session7 = {
@@ -2140,6 +2151,7 @@ export type Session7 = {
2140
2151
  partID?: string;
2141
2152
  snapshot?: string;
2142
2153
  diff?: string;
2154
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
2143
2155
  };
2144
2156
  };
2145
2157
  export type TextPartInput = {
@@ -2241,6 +2253,7 @@ export type Session8 = {
2241
2253
  partID?: string;
2242
2254
  snapshot?: string;
2243
2255
  diff?: string;
2256
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
2244
2257
  };
2245
2258
  };
2246
2259
  export type Session9 = {
@@ -2293,6 +2306,7 @@ export type Session9 = {
2293
2306
  partID?: string;
2294
2307
  snapshot?: string;
2295
2308
  diff?: string;
2309
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
2296
2310
  };
2297
2311
  };
2298
2312
  export type EventTuiPromptAppend2 = {
@@ -2526,6 +2540,9 @@ export type EffectHttpApiErrorUnauthorized = {
2526
2540
  export type EffectHttpApiErrorServiceUnavailable = {
2527
2541
  _tag: "ServiceUnavailable";
2528
2542
  };
2543
+ export type CloudSessionImportError = {
2544
+ error: string;
2545
+ };
2529
2546
  export type AgentRequirementResult = {
2530
2547
  agent: string;
2531
2548
  directory: string;
@@ -2685,7 +2702,12 @@ export type AgentManagerPromptResult = {
2685
2702
  sessionID: string;
2686
2703
  delivered: true;
2687
2704
  };
2688
- export type AgentManagerResult = AgentManagerOverviewResult | AgentManagerPromptResult;
2705
+ export type AgentManagerStopResult = {
2706
+ operation: "stop";
2707
+ sessionID: string;
2708
+ stopped: true;
2709
+ };
2710
+ export type AgentManagerResult = AgentManagerOverviewResult | AgentManagerPromptResult | AgentManagerStopResult;
2689
2711
  export type AgentManagerFailure = {
2690
2712
  code: "cancelled" | "cross_workspace" | "disconnected" | "host_error" | "stale_session" | "timeout" | "unavailable_session" | "unknown_session" | "workspace_unavailable";
2691
2713
  message: string;
@@ -2759,7 +2781,7 @@ export type UnauthorizedError = {
2759
2781
  _tag: "UnauthorizedError";
2760
2782
  message: string;
2761
2783
  };
2762
- export type V2SessionsResponse = {
2784
+ export type SessionsResponse = {
2763
2785
  data: Array<SessionV2Info>;
2764
2786
  cursor: {
2765
2787
  previous?: string;
@@ -2785,7 +2807,7 @@ export type UnknownError1 = {
2785
2807
  message: string;
2786
2808
  ref?: string;
2787
2809
  };
2788
- export type V2SessionMessagesResponse = {
2810
+ export type SessionMessagesResponse = {
2789
2811
  data: Array<SessionMessage>;
2790
2812
  cursor: {
2791
2813
  previous?: string;
@@ -3055,6 +3077,8 @@ export type EventMemoryStatus = {
3055
3077
  duplicateOf?: string;
3056
3078
  tokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3057
3079
  operationCount?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3080
+ added?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3081
+ removed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3058
3082
  skippedCount?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3059
3083
  sources?: Array<string>;
3060
3084
  files?: Array<string>;
@@ -3089,6 +3113,8 @@ export type EventMemoryUpdated = {
3089
3113
  duplicateOf?: string;
3090
3114
  tokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3091
3115
  operationCount?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3116
+ added?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3117
+ removed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3092
3118
  skippedCount?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3093
3119
  sources?: Array<string>;
3094
3120
  files?: Array<string>;
@@ -3123,6 +3149,8 @@ export type EventMemoryError = {
3123
3149
  duplicateOf?: string;
3124
3150
  tokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3125
3151
  operationCount?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3152
+ added?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3153
+ removed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3126
3154
  skippedCount?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3127
3155
  sources?: Array<string>;
3128
3156
  files?: Array<string>;
@@ -3162,6 +3190,53 @@ export type EventGlobalConfigUpdated = {
3162
3190
  [key: string]: unknown;
3163
3191
  };
3164
3192
  };
3193
+ export type CredentialOAuth = {
3194
+ type: "oauth";
3195
+ refresh: string;
3196
+ access: string;
3197
+ expires: number;
3198
+ metadata?: {
3199
+ [key: string]: string;
3200
+ };
3201
+ };
3202
+ export type CredentialKey = {
3203
+ type: "key";
3204
+ key: string;
3205
+ metadata?: {
3206
+ [key: string]: string;
3207
+ };
3208
+ };
3209
+ export type CredentialValue = CredentialOAuth | CredentialKey;
3210
+ export type CredentialInfo = {
3211
+ id: string;
3212
+ connectorID: string;
3213
+ methodID: string;
3214
+ label: string;
3215
+ value: CredentialValue;
3216
+ };
3217
+ export type EventCredentialAdded = {
3218
+ id: string;
3219
+ type: "credential.added";
3220
+ properties: {
3221
+ credential: CredentialInfo;
3222
+ };
3223
+ };
3224
+ export type EventCredentialRemoved = {
3225
+ id: string;
3226
+ type: "credential.removed";
3227
+ properties: {
3228
+ credential: CredentialInfo;
3229
+ };
3230
+ };
3231
+ export type EventCredentialSwitched = {
3232
+ id: string;
3233
+ type: "credential.switched";
3234
+ properties: {
3235
+ connectorID: string;
3236
+ from?: string;
3237
+ to?: string;
3238
+ };
3239
+ };
3165
3240
  export type EventPluginAdded = {
3166
3241
  id: string;
3167
3242
  type: "plugin.added";
@@ -3202,6 +3277,19 @@ export type ModelV2Info = {
3202
3277
  body: {
3203
3278
  [key: string]: unknown;
3204
3279
  };
3280
+ generation?: {
3281
+ maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3282
+ temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3283
+ topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3284
+ topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3285
+ frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3286
+ presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3287
+ seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3288
+ stop?: Array<string>;
3289
+ };
3290
+ options?: {
3291
+ [key: string]: unknown;
3292
+ };
3205
3293
  variant?: string;
3206
3294
  };
3207
3295
  variants: Array<{
@@ -3212,6 +3300,19 @@ export type ModelV2Info = {
3212
3300
  body: {
3213
3301
  [key: string]: unknown;
3214
3302
  };
3303
+ generation?: {
3304
+ maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3305
+ temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3306
+ topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3307
+ topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3308
+ frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3309
+ presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3310
+ seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3311
+ stop?: Array<string>;
3312
+ };
3313
+ options?: {
3314
+ [key: string]: unknown;
3315
+ };
3215
3316
  }>;
3216
3317
  time: {
3217
3318
  released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
@@ -3355,17 +3456,6 @@ export type PromptAgentAttachment = {
3355
3456
  name: string;
3356
3457
  source?: PromptSource;
3357
3458
  };
3358
- export type PromptReferenceAttachment = {
3359
- name: string;
3360
- kind: "local" | "git" | "invalid";
3361
- uri?: string;
3362
- repository?: string;
3363
- branch?: string;
3364
- target?: string;
3365
- targetUri?: string;
3366
- problem?: string;
3367
- source?: PromptSource;
3368
- };
3369
3459
  export type EventSessionNextPrompted = {
3370
3460
  id: string;
3371
3461
  type: "session.next.prompted";
@@ -3399,6 +3489,14 @@ export type EventSessionNextPromptPromoted = {
3399
3489
  timeCreated: number;
3400
3490
  };
3401
3491
  };
3492
+ export type EventSessionNextInterruptRequested = {
3493
+ id: string;
3494
+ type: "session.next.interrupt.requested";
3495
+ properties: {
3496
+ timestamp: number;
3497
+ sessionID: string;
3498
+ };
3499
+ };
3402
3500
  export type EventSessionNextContextUpdated = {
3403
3501
  id: string;
3404
3502
  type: "session.next.context.updated";
@@ -3626,16 +3724,7 @@ export type ToolTextContent = {
3626
3724
  };
3627
3725
  export type ToolFileContent = {
3628
3726
  type: "file";
3629
- source: {
3630
- type: "data";
3631
- data: string;
3632
- } | {
3633
- type: "url";
3634
- url: string;
3635
- } | {
3636
- type: "file";
3637
- uri: string;
3638
- };
3727
+ uri: string;
3639
3728
  mime: string;
3640
3729
  name?: string;
3641
3730
  };
@@ -3665,6 +3754,7 @@ export type EventSessionNextToolSuccess = {
3665
3754
  [key: string]: unknown;
3666
3755
  };
3667
3756
  content: Array<ToolTextContent | ToolFileContent>;
3757
+ outputPaths?: Array<string>;
3668
3758
  result?: unknown;
3669
3759
  provider: {
3670
3760
  executed: boolean;
@@ -3734,6 +3824,7 @@ export type EventSessionNextCompactionDelta = {
3734
3824
  properties: {
3735
3825
  timestamp: number;
3736
3826
  sessionID: string;
3827
+ messageID: string;
3737
3828
  text: string;
3738
3829
  };
3739
3830
  };
@@ -3743,7 +3834,10 @@ export type EventSessionNextCompactionEnded = {
3743
3834
  properties: {
3744
3835
  timestamp: number;
3745
3836
  sessionID: string;
3837
+ messageID?: string;
3838
+ reason?: "auto" | "manual";
3746
3839
  text: string;
3840
+ recent?: string;
3747
3841
  include?: string;
3748
3842
  };
3749
3843
  };
@@ -3817,7 +3911,7 @@ export type EventSessionError = {
3817
3911
  type: "session.error";
3818
3912
  properties: {
3819
3913
  sessionID?: string;
3820
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError | AgentRequirementError;
3914
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError | AgentRequirementError;
3821
3915
  };
3822
3916
  };
3823
3917
  export type EventModelsDevRefreshed = {
@@ -3868,99 +3962,48 @@ export type EventPermissionReplied = {
3868
3962
  reply: "once" | "always" | "reject";
3869
3963
  };
3870
3964
  };
3871
- export type SessionTodoInfo = {
3872
- /**
3873
- * Brief description of the task
3874
- */
3875
- content: string;
3876
- /**
3877
- * Current status of the task: pending, in_progress, completed, cancelled
3878
- */
3879
- status: string;
3880
- /**
3881
- * Priority level of the task: high, medium, low
3882
- */
3883
- priority: string;
3884
- };
3885
- export type EventTodoUpdated = {
3886
- id: string;
3887
- type: "todo.updated";
3888
- properties: {
3889
- sessionID: string;
3890
- todos: Array<SessionTodoInfo>;
3891
- };
3892
- };
3893
- export type EventSessionStatus = {
3894
- id: string;
3895
- type: "session.status";
3896
- properties: {
3897
- sessionID: string;
3898
- status: SessionStatus;
3899
- };
3900
- };
3901
- export type EventSessionIdle = {
3902
- id: string;
3903
- type: "session.idle";
3904
- properties: {
3905
- sessionID: string;
3906
- };
3907
- };
3908
- export type EventSessionCompacted = {
3965
+ export type EventReferenceUpdated = {
3909
3966
  id: string;
3910
- type: "session.compacted";
3967
+ type: "reference.updated";
3911
3968
  properties: {
3912
- sessionID: string;
3969
+ [key: string]: unknown;
3913
3970
  };
3914
3971
  };
3915
- export type EventCommandExecuted = {
3972
+ export type EventConnectorUpdated = {
3916
3973
  id: string;
3917
- type: "command.executed";
3974
+ type: "connector.updated";
3918
3975
  properties: {
3919
- name: string;
3920
- sessionID: string;
3921
- arguments: string;
3922
- messageID: string;
3976
+ [key: string]: unknown;
3923
3977
  };
3924
3978
  };
3925
- export type EventProjectDirectoriesUpdated = {
3926
- id: string;
3927
- type: "project.directories.updated";
3928
- properties: {
3929
- projectID: string;
3930
- };
3979
+ export type PermissionV2Source = {
3980
+ type: "tool";
3981
+ messageID: string;
3982
+ callID: string;
3931
3983
  };
3932
- export type EventProjectUpdated = {
3984
+ export type EventPermissionV2Asked = {
3933
3985
  id: string;
3934
- type: "project.updated";
3986
+ type: "permission.v2.asked";
3935
3987
  properties: {
3936
3988
  id: string;
3937
- worktree: string;
3938
- vcs?: "git";
3939
- name?: string;
3940
- icon?: {
3941
- url?: string;
3942
- override?: string;
3943
- color?: string;
3944
- };
3945
- commands?: {
3946
- /**
3947
- * Startup script to run when creating a new workspace (worktree)
3948
- */
3949
- start?: string;
3950
- };
3951
- time: {
3952
- created: number;
3953
- updated: number;
3954
- initialized?: number;
3989
+ sessionID: string;
3990
+ action: string;
3991
+ resources: Array<string>;
3992
+ save?: Array<string>;
3993
+ metadata?: {
3994
+ [key: string]: unknown;
3955
3995
  };
3956
- sandboxes: Array<string>;
3996
+ source?: PermissionV2Source;
3957
3997
  };
3958
3998
  };
3959
- export type EventLspUpdated = {
3999
+ export type PermissionV2Reply = "once" | "always" | "reject";
4000
+ export type EventPermissionV2Replied = {
3960
4001
  id: string;
3961
- type: "lsp.updated";
4002
+ type: "permission.v2.replied";
3962
4003
  properties: {
3963
- [key: string]: unknown;
4004
+ sessionID: string;
4005
+ requestID: string;
4006
+ reply: PermissionV2Reply;
3964
4007
  };
3965
4008
  };
3966
4009
  export type EventFileEdited = {
@@ -3978,151 +4021,33 @@ export type EventFileWatcherUpdated = {
3978
4021
  event: "add" | "change" | "unlink";
3979
4022
  };
3980
4023
  };
3981
- export type EventVcsBranchUpdated = {
3982
- id: string;
3983
- type: "vcs.branch.updated";
3984
- properties: {
3985
- branch?: string;
3986
- };
3987
- };
3988
- export type EventWorkspaceReady = {
4024
+ export type EventPtyCreated = {
3989
4025
  id: string;
3990
- type: "workspace.ready";
4026
+ type: "pty.created";
3991
4027
  properties: {
3992
- name: string;
4028
+ info: Pty;
3993
4029
  };
3994
4030
  };
3995
- export type EventWorkspaceFailed = {
4031
+ export type EventPtyUpdated = {
3996
4032
  id: string;
3997
- type: "workspace.failed";
4033
+ type: "pty.updated";
3998
4034
  properties: {
3999
- message: string;
4035
+ info: Pty;
4000
4036
  };
4001
4037
  };
4002
- export type EventWorkspaceStatus = {
4038
+ export type EventPtyExited = {
4003
4039
  id: string;
4004
- type: "workspace.status";
4040
+ type: "pty.exited";
4005
4041
  properties: {
4006
- workspaceID: string;
4007
- status: "connected" | "connecting" | "disconnected" | "error";
4042
+ id: string;
4043
+ exitCode: number;
4008
4044
  };
4009
4045
  };
4010
- export type EventWorktreeReady = {
4046
+ export type EventPtyDeleted = {
4011
4047
  id: string;
4012
- type: "worktree.ready";
4048
+ type: "pty.deleted";
4013
4049
  properties: {
4014
- name: string;
4015
- branch?: string;
4016
- };
4017
- };
4018
- export type EventWorktreeFailed = {
4019
- id: string;
4020
- type: "worktree.failed";
4021
- properties: {
4022
- message: string;
4023
- };
4024
- };
4025
- export type AuthOAuthCredential = {
4026
- type: "oauth";
4027
- refresh: string;
4028
- access: string;
4029
- expires: number;
4030
- accountId?: string;
4031
- };
4032
- export type AuthApiKeyCredential = {
4033
- type: "api";
4034
- key: string;
4035
- metadata?: {
4036
- [key: string]: string;
4037
- };
4038
- };
4039
- export type AuthCredential = AuthOAuthCredential | AuthApiKeyCredential;
4040
- export type AuthInfo = {
4041
- id: string;
4042
- serviceID: string;
4043
- description: string;
4044
- credential: AuthCredential;
4045
- };
4046
- export type EventAccountAdded = {
4047
- id: string;
4048
- type: "account.added";
4049
- properties: {
4050
- account: AuthInfo;
4051
- };
4052
- };
4053
- export type EventAccountRemoved = {
4054
- id: string;
4055
- type: "account.removed";
4056
- properties: {
4057
- account: AuthInfo;
4058
- };
4059
- };
4060
- export type EventAccountSwitched = {
4061
- id: string;
4062
- type: "account.switched";
4063
- properties: {
4064
- serviceID: string;
4065
- from?: string;
4066
- to?: string;
4067
- };
4068
- };
4069
- export type PermissionV2Source = {
4070
- type: "tool";
4071
- messageID: string;
4072
- callID: string;
4073
- };
4074
- export type EventPermissionV2Asked = {
4075
- id: string;
4076
- type: "permission.v2.asked";
4077
- properties: {
4078
- id: string;
4079
- sessionID: string;
4080
- action: string;
4081
- resources: Array<string>;
4082
- save?: Array<string>;
4083
- metadata?: {
4084
- [key: string]: unknown;
4085
- };
4086
- source?: PermissionV2Source;
4087
- };
4088
- };
4089
- export type PermissionV2Reply = "once" | "always" | "reject";
4090
- export type EventPermissionV2Replied = {
4091
- id: string;
4092
- type: "permission.v2.replied";
4093
- properties: {
4094
- sessionID: string;
4095
- requestID: string;
4096
- reply: PermissionV2Reply;
4097
- };
4098
- };
4099
- export type EventPtyCreated = {
4100
- id: string;
4101
- type: "pty.created";
4102
- properties: {
4103
- info: Pty;
4104
- };
4105
- };
4106
- export type EventPtyUpdated = {
4107
- id: string;
4108
- type: "pty.updated";
4109
- properties: {
4110
- info: Pty;
4111
- };
4112
- };
4113
- export type EventPtyExited = {
4114
- id: string;
4115
- type: "pty.exited";
4116
- properties: {
4117
- id: string;
4118
- exitCode: number;
4119
- };
4120
- };
4121
- export type EventPtyDeleted = {
4122
- id: string;
4123
- type: "pty.deleted";
4124
- properties: {
4125
- id: string;
4050
+ id: string;
4126
4051
  };
4127
4052
  };
4128
4053
  export type QuestionV2Option = {
@@ -4186,6 +4111,131 @@ export type EventQuestionV2Rejected = {
4186
4111
  requestID: string;
4187
4112
  };
4188
4113
  };
4114
+ export type EventTodoUpdated = {
4115
+ id: string;
4116
+ type: "todo.updated";
4117
+ properties: {
4118
+ sessionID: string;
4119
+ todos: Array<Todo>;
4120
+ };
4121
+ };
4122
+ export type EventSessionStatus = {
4123
+ id: string;
4124
+ type: "session.status";
4125
+ properties: {
4126
+ sessionID: string;
4127
+ status: SessionStatus;
4128
+ };
4129
+ };
4130
+ export type EventSessionIdle = {
4131
+ id: string;
4132
+ type: "session.idle";
4133
+ properties: {
4134
+ sessionID: string;
4135
+ };
4136
+ };
4137
+ export type EventSessionCompacted = {
4138
+ id: string;
4139
+ type: "session.compacted";
4140
+ properties: {
4141
+ sessionID: string;
4142
+ };
4143
+ };
4144
+ export type EventCommandExecuted = {
4145
+ id: string;
4146
+ type: "command.executed";
4147
+ properties: {
4148
+ name: string;
4149
+ sessionID: string;
4150
+ arguments: string;
4151
+ messageID: string;
4152
+ };
4153
+ };
4154
+ export type EventProjectDirectoriesUpdated = {
4155
+ id: string;
4156
+ type: "project.directories.updated";
4157
+ properties: {
4158
+ projectID: string;
4159
+ };
4160
+ };
4161
+ export type EventProjectUpdated = {
4162
+ id: string;
4163
+ type: "project.updated";
4164
+ properties: {
4165
+ id: string;
4166
+ worktree: string;
4167
+ vcs?: "git";
4168
+ name?: string;
4169
+ icon?: {
4170
+ url?: string;
4171
+ override?: string;
4172
+ color?: string;
4173
+ };
4174
+ commands?: {
4175
+ /**
4176
+ * Startup script to run when creating a new workspace (worktree)
4177
+ */
4178
+ start?: string;
4179
+ };
4180
+ time: {
4181
+ created: number;
4182
+ updated: number;
4183
+ initialized?: number;
4184
+ };
4185
+ sandboxes: Array<string>;
4186
+ };
4187
+ };
4188
+ export type EventLspUpdated = {
4189
+ id: string;
4190
+ type: "lsp.updated";
4191
+ properties: {
4192
+ [key: string]: unknown;
4193
+ };
4194
+ };
4195
+ export type EventVcsBranchUpdated = {
4196
+ id: string;
4197
+ type: "vcs.branch.updated";
4198
+ properties: {
4199
+ branch?: string;
4200
+ };
4201
+ };
4202
+ export type EventWorkspaceReady = {
4203
+ id: string;
4204
+ type: "workspace.ready";
4205
+ properties: {
4206
+ name: string;
4207
+ };
4208
+ };
4209
+ export type EventWorkspaceFailed = {
4210
+ id: string;
4211
+ type: "workspace.failed";
4212
+ properties: {
4213
+ message: string;
4214
+ };
4215
+ };
4216
+ export type EventWorkspaceStatus = {
4217
+ id: string;
4218
+ type: "workspace.status";
4219
+ properties: {
4220
+ workspaceID: string;
4221
+ status: "connected" | "connecting" | "disconnected" | "error";
4222
+ };
4223
+ };
4224
+ export type EventWorktreeReady = {
4225
+ id: string;
4226
+ type: "worktree.ready";
4227
+ properties: {
4228
+ name: string;
4229
+ branch?: string;
4230
+ };
4231
+ };
4232
+ export type EventWorktreeFailed = {
4233
+ id: string;
4234
+ type: "worktree.failed";
4235
+ properties: {
4236
+ message: string;
4237
+ };
4238
+ };
4189
4239
  export type SyncEventSessionCreated = {
4190
4240
  type: "sync";
4191
4241
  id: string;
@@ -4694,6 +4744,7 @@ export type SyncEventSessionNextToolSuccess = {
4694
4744
  [key: string]: unknown;
4695
4745
  };
4696
4746
  content: Array<ToolTextContent | ToolFileContent>;
4747
+ outputPaths?: Array<string>;
4697
4748
  result?: unknown;
4698
4749
  provider: {
4699
4750
  executed: boolean;
@@ -4764,21 +4815,6 @@ export type SyncEventSessionNextCompactionStarted = {
4764
4815
  };
4765
4816
  };
4766
4817
  };
4767
- export type SyncEventSessionNextCompactionDelta = {
4768
- type: "sync";
4769
- id: string;
4770
- syncEvent: {
4771
- type: "session.next.compaction.delta.1";
4772
- id: string;
4773
- seq: number;
4774
- aggregateID: string;
4775
- data: {
4776
- timestamp: number;
4777
- sessionID: string;
4778
- text: string;
4779
- };
4780
- };
4781
- };
4782
4818
  export type SyncEventSessionNextCompactionEnded = {
4783
4819
  type: "sync";
4784
4820
  id: string;
@@ -4790,18 +4826,35 @@ export type SyncEventSessionNextCompactionEnded = {
4790
4826
  data: {
4791
4827
  timestamp: number;
4792
4828
  sessionID: string;
4829
+ messageID?: string;
4830
+ reason?: "auto" | "manual";
4793
4831
  text: string;
4832
+ recent?: string;
4794
4833
  include?: string;
4795
4834
  };
4796
4835
  };
4797
4836
  };
4837
+ export type ConfigV2ReferenceGit = {
4838
+ repository: string;
4839
+ branch?: string;
4840
+ description?: string;
4841
+ hidden?: boolean;
4842
+ };
4843
+ export type ConfigV2ReferenceLocal = {
4844
+ path: string;
4845
+ description?: string;
4846
+ hidden?: boolean;
4847
+ };
4798
4848
  export type PolicyEffect = "allow" | "deny";
4799
4849
  export type ConfigV2ExperimentalPolicy = {
4800
4850
  action: "provider.use";
4801
4851
  effect: PolicyEffect;
4802
4852
  resource: string;
4803
4853
  };
4804
- export type ProjectDirectories = Array<string>;
4854
+ export type ProjectDirectories = Array<{
4855
+ directory: string;
4856
+ type: "main" | "root" | "git_worktree";
4857
+ }>;
4805
4858
  export type ProjectCopyCopy = {
4806
4859
  directory: string;
4807
4860
  };
@@ -4918,7 +4971,6 @@ export type SessionMessageUser = {
4918
4971
  text: string;
4919
4972
  files?: Array<PromptFileAttachment>;
4920
4973
  agents?: Array<PromptAgentAttachment>;
4921
- references?: Array<PromptReferenceAttachment>;
4922
4974
  type: "user";
4923
4975
  };
4924
4976
  export type SessionMessageSynthetic = {
@@ -4994,6 +5046,7 @@ export type SessionMessageToolStateCompleted = {
4994
5046
  };
4995
5047
  attachments?: Array<PromptFileAttachment>;
4996
5048
  content: Array<ToolTextContent | ToolFileContent>;
5049
+ outputPaths?: Array<string>;
4997
5050
  structured: {
4998
5051
  [key: string]: unknown;
4999
5052
  };
@@ -5074,7 +5127,7 @@ export type SessionMessageCompaction = {
5074
5127
  type: "compaction";
5075
5128
  reason: "auto" | "manual";
5076
5129
  summary: string;
5077
- include?: string;
5130
+ recent: string;
5078
5131
  id: string;
5079
5132
  metadata?: {
5080
5133
  [key: string]: unknown;
@@ -5091,8 +5144,8 @@ export type ProviderV2Info = {
5091
5144
  via: "env";
5092
5145
  name: string;
5093
5146
  } | {
5094
- via: "account";
5095
- service: string;
5147
+ via: "credential";
5148
+ credentialID: string;
5096
5149
  } | {
5097
5150
  via: "custom";
5098
5151
  data: {
@@ -5123,37 +5176,75 @@ export type ProviderV2Info = {
5123
5176
  };
5124
5177
  };
5125
5178
  };
5126
- export type PermissionV2Request = {
5127
- id: string;
5128
- sessionID: string;
5129
- action: string;
5130
- resources: Array<string>;
5131
- save?: Array<string>;
5132
- metadata?: {
5133
- [key: string]: unknown;
5134
- };
5135
- source?: PermissionV2Source;
5179
+ export type ConnectorWhen = {
5180
+ key: string;
5181
+ op: "eq" | "neq";
5182
+ value: string;
5136
5183
  };
5137
- export type PermissionSavedInfo = {
5138
- id: string;
5139
- projectID: string;
5140
- action: string;
5141
- resource: string;
5142
- };
5143
- export type FileSystemTextContent = {
5184
+ export type ConnectorTextPrompt = {
5144
5185
  type: "text";
5145
- content: string;
5146
- mime: string;
5186
+ key: string;
5187
+ message: string;
5188
+ placeholder?: string;
5189
+ when?: ConnectorWhen;
5147
5190
  };
5148
- export type FileSystemBinaryContent = {
5149
- type: "binary";
5150
- content: string;
5151
- encoding: "base64";
5152
- mime: string;
5191
+ export type ConnectorSelectPrompt = {
5192
+ type: "select";
5193
+ key: string;
5194
+ message: string;
5195
+ options: Array<{
5196
+ label: string;
5197
+ value: string;
5198
+ hint?: string;
5199
+ }>;
5200
+ when?: ConnectorWhen;
5201
+ };
5202
+ export type ConnectorOAuthMethod = {
5203
+ id: string;
5204
+ type: "oauth";
5205
+ label: string;
5206
+ prompts?: Array<ConnectorTextPrompt | ConnectorSelectPrompt>;
5207
+ };
5208
+ export type ConnectorKeyMethod = {
5209
+ id: string;
5210
+ type: "key";
5211
+ label: string;
5212
+ prompts?: Array<ConnectorTextPrompt | ConnectorSelectPrompt>;
5213
+ };
5214
+ export type ConnectorInfo = {
5215
+ id: string;
5216
+ name: string;
5217
+ methods: Array<ConnectorOAuthMethod | ConnectorKeyMethod>;
5218
+ };
5219
+ export type ConnectorAttempt = {
5220
+ attemptID: string;
5221
+ url: string;
5222
+ instructions: string;
5223
+ mode: "auto" | "code";
5224
+ time: {
5225
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
5226
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
5227
+ };
5228
+ };
5229
+ export type PermissionV2Request = {
5230
+ id: string;
5231
+ sessionID: string;
5232
+ action: string;
5233
+ resources: Array<string>;
5234
+ save?: Array<string>;
5235
+ metadata?: {
5236
+ [key: string]: unknown;
5237
+ };
5238
+ source?: PermissionV2Source;
5239
+ };
5240
+ export type PermissionSavedInfo = {
5241
+ id: string;
5242
+ projectID: string;
5243
+ action: string;
5244
+ resource: string;
5153
5245
  };
5154
5246
  export type FileSystemEntry = {
5155
5247
  path: string;
5156
- uri: string;
5157
5248
  type: "file" | "directory";
5158
5249
  mime: string;
5159
5250
  };
@@ -5191,6 +5282,26 @@ export type QuestionV2Reply = {
5191
5282
  */
5192
5283
  answers: Array<QuestionV2Answer>;
5193
5284
  };
5285
+ export type ReferenceLocalSource = {
5286
+ type: "local";
5287
+ path: string;
5288
+ description?: string;
5289
+ hidden?: boolean;
5290
+ };
5291
+ export type ReferenceGitSource = {
5292
+ type: "git";
5293
+ repository: string;
5294
+ branch?: string;
5295
+ description?: string;
5296
+ hidden?: boolean;
5297
+ };
5298
+ export type ReferenceInfo = {
5299
+ name: string;
5300
+ path: string;
5301
+ description?: string;
5302
+ hidden?: boolean;
5303
+ source: ReferenceLocalSource | ReferenceGitSource;
5304
+ };
5194
5305
  export type EventMemoryStatus1 = {
5195
5306
  id: string;
5196
5307
  type: "memory.status";
@@ -5219,6 +5330,8 @@ export type EventMemoryStatus1 = {
5219
5330
  duplicateOf?: string;
5220
5331
  tokens?: number | "NaN" | "Infinity" | "-Infinity";
5221
5332
  operationCount?: number | "NaN" | "Infinity" | "-Infinity";
5333
+ added?: number | "NaN" | "Infinity" | "-Infinity";
5334
+ removed?: number | "NaN" | "Infinity" | "-Infinity";
5222
5335
  skippedCount?: number | "NaN" | "Infinity" | "-Infinity";
5223
5336
  sources?: Array<string>;
5224
5337
  files?: Array<string>;
@@ -5253,6 +5366,8 @@ export type EventMemoryUpdated1 = {
5253
5366
  duplicateOf?: string;
5254
5367
  tokens?: number | "NaN" | "Infinity" | "-Infinity";
5255
5368
  operationCount?: number | "NaN" | "Infinity" | "-Infinity";
5369
+ added?: number | "NaN" | "Infinity" | "-Infinity";
5370
+ removed?: number | "NaN" | "Infinity" | "-Infinity";
5256
5371
  skippedCount?: number | "NaN" | "Infinity" | "-Infinity";
5257
5372
  sources?: Array<string>;
5258
5373
  files?: Array<string>;
@@ -5287,6 +5402,8 @@ export type EventMemoryError1 = {
5287
5402
  duplicateOf?: string;
5288
5403
  tokens?: number | "NaN" | "Infinity" | "-Infinity";
5289
5404
  operationCount?: number | "NaN" | "Infinity" | "-Infinity";
5405
+ added?: number | "NaN" | "Infinity" | "-Infinity";
5406
+ removed?: number | "NaN" | "Infinity" | "-Infinity";
5290
5407
  skippedCount?: number | "NaN" | "Infinity" | "-Infinity";
5291
5408
  sources?: Array<string>;
5292
5409
  files?: Array<string>;
@@ -5326,6 +5443,19 @@ export type ModelV2Info1 = {
5326
5443
  body: {
5327
5444
  [key: string]: unknown;
5328
5445
  };
5446
+ generation?: {
5447
+ maxTokens?: number | "NaN" | "Infinity" | "-Infinity";
5448
+ temperature?: number | "NaN" | "Infinity" | "-Infinity";
5449
+ topP?: number | "NaN" | "Infinity" | "-Infinity";
5450
+ topK?: number | "NaN" | "Infinity" | "-Infinity";
5451
+ frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity";
5452
+ presencePenalty?: number | "NaN" | "Infinity" | "-Infinity";
5453
+ seed?: number | "NaN" | "Infinity" | "-Infinity";
5454
+ stop?: Array<string>;
5455
+ };
5456
+ options?: {
5457
+ [key: string]: unknown;
5458
+ };
5329
5459
  variant?: string;
5330
5460
  };
5331
5461
  variants: Array<{
@@ -5336,6 +5466,19 @@ export type ModelV2Info1 = {
5336
5466
  body: {
5337
5467
  [key: string]: unknown;
5338
5468
  };
5469
+ generation?: {
5470
+ maxTokens?: number | "NaN" | "Infinity" | "-Infinity";
5471
+ temperature?: number | "NaN" | "Infinity" | "-Infinity";
5472
+ topP?: number | "NaN" | "Infinity" | "-Infinity";
5473
+ topK?: number | "NaN" | "Infinity" | "-Infinity";
5474
+ frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity";
5475
+ presencePenalty?: number | "NaN" | "Infinity" | "-Infinity";
5476
+ seed?: number | "NaN" | "Infinity" | "-Infinity";
5477
+ stop?: Array<string>;
5478
+ };
5479
+ options?: {
5480
+ [key: string]: unknown;
5481
+ };
5339
5482
  }>;
5340
5483
  time: {
5341
5484
  released: number | "NaN" | "Infinity" | "-Infinity";
@@ -6931,12 +7074,12 @@ export type ProjectDirectoriesResponse = ProjectDirectoriesResponses[keyof Proje
6931
7074
  export type ExperimentalProjectCopyRemoveData = {
6932
7075
  body?: {
6933
7076
  directory: string;
7077
+ force: boolean;
6934
7078
  };
6935
7079
  path: {
6936
7080
  projectID: string;
6937
7081
  };
6938
7082
  query?: {
6939
- directory?: string;
6940
7083
  workspace?: string;
6941
7084
  };
6942
7085
  url: "/experimental/project/{projectID}/copy";
@@ -7849,7 +7992,7 @@ export type SessionMessagesResponses = {
7849
7992
  parts: Array<Part>;
7850
7993
  }>;
7851
7994
  };
7852
- export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
7995
+ export type SessionMessagesResponse2 = SessionMessagesResponses[keyof SessionMessagesResponses];
7853
7996
  export type SessionPromptData = {
7854
7997
  body?: {
7855
7998
  messageID?: string;
@@ -10502,6 +10645,10 @@ export type KiloCloudSessionImportErrors = {
10502
10645
  * Not found
10503
10646
  */
10504
10647
  404: NotFoundError;
10648
+ /**
10649
+ * CloudSessionImportError
10650
+ */
10651
+ 500: CloudSessionImportError;
10505
10652
  };
10506
10653
  export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
10507
10654
  export type KiloCloudSessionImportResponses = {
@@ -11258,6 +11405,7 @@ export type KilocodeSessionImportSessionData = {
11258
11405
  partID?: string;
11259
11406
  snapshot?: string;
11260
11407
  diff?: string;
11408
+ workspace?: "restored" | "snapshots-disabled" | "unavailable";
11261
11409
  };
11262
11410
  permission?: {
11263
11411
  [key: string]: unknown;
@@ -11638,6 +11786,7 @@ export type MemoryStatusResponses = {
11638
11786
  scope: "project";
11639
11787
  autoInject: boolean;
11640
11788
  autoConsolidate: boolean;
11789
+ verbose: boolean;
11641
11790
  capture: {
11642
11791
  mode: "selective";
11643
11792
  turnClose: boolean;
@@ -11713,6 +11862,7 @@ export type MemoryShowResponses = {
11713
11862
  scope: "project";
11714
11863
  autoInject: boolean;
11715
11864
  autoConsolidate: boolean;
11865
+ verbose: boolean;
11716
11866
  capture: {
11717
11867
  mode: "selective";
11718
11868
  turnClose: boolean;
@@ -11788,6 +11938,7 @@ export type MemoryEnableResponses = {
11788
11938
  scope: "project";
11789
11939
  autoInject: boolean;
11790
11940
  autoConsolidate: boolean;
11941
+ verbose: boolean;
11791
11942
  capture: {
11792
11943
  mode: "selective";
11793
11944
  turnClose: boolean;
@@ -11860,6 +12011,7 @@ export type MemoryDisableResponses = {
11860
12011
  scope: "project";
11861
12012
  autoInject: boolean;
11862
12013
  autoConsolidate: boolean;
12014
+ verbose: boolean;
11863
12015
  capture: {
11864
12016
  mode: "selective";
11865
12017
  turnClose: boolean;
@@ -11897,6 +12049,7 @@ export type MemoryDisableResponse = MemoryDisableResponses[keyof MemoryDisableRe
11897
12049
  export type MemoryConfigureData = {
11898
12050
  body?: {
11899
12051
  autoConsolidate?: boolean;
12052
+ verbose?: boolean;
11900
12053
  };
11901
12054
  path?: never;
11902
12055
  query?: {
@@ -11928,6 +12081,7 @@ export type MemoryConfigureResponses = {
11928
12081
  scope: "project";
11929
12082
  autoInject: boolean;
11930
12083
  autoConsolidate: boolean;
12084
+ verbose: boolean;
11931
12085
  capture: {
11932
12086
  mode: "selective";
11933
12087
  turnClose: boolean;
@@ -11994,6 +12148,7 @@ export type MemoryRebuildResponses = {
11994
12148
  scope: "project";
11995
12149
  autoInject: boolean;
11996
12150
  autoConsolidate: boolean;
12151
+ verbose: boolean;
11997
12152
  capture: {
11998
12153
  mode: "selective";
11999
12154
  turnClose: boolean;
@@ -12228,6 +12383,35 @@ export type V2HealthGetResponses = {
12228
12383
  };
12229
12384
  };
12230
12385
  export type V2HealthGetResponse = V2HealthGetResponses[keyof V2HealthGetResponses];
12386
+ export type V2LocationGetData = {
12387
+ body?: never;
12388
+ path?: never;
12389
+ query?: {
12390
+ location?: {
12391
+ directory?: string;
12392
+ workspace?: string;
12393
+ };
12394
+ };
12395
+ url: "/api/location";
12396
+ };
12397
+ export type V2LocationGetErrors = {
12398
+ /**
12399
+ * InvalidRequestError
12400
+ */
12401
+ 400: InvalidRequestError;
12402
+ /**
12403
+ * UnauthorizedError
12404
+ */
12405
+ 401: UnauthorizedError;
12406
+ };
12407
+ export type V2LocationGetError = V2LocationGetErrors[keyof V2LocationGetErrors];
12408
+ export type V2LocationGetResponses = {
12409
+ /**
12410
+ * Location.Info
12411
+ */
12412
+ 200: LocationInfo;
12413
+ };
12414
+ export type V2LocationGetResponse = V2LocationGetResponses[keyof V2LocationGetResponses];
12231
12415
  export type V2AgentListData = {
12232
12416
  body?: never;
12233
12417
  path?: never;
@@ -12291,11 +12475,78 @@ export type V2SessionListErrors = {
12291
12475
  export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors];
12292
12476
  export type V2SessionListResponses = {
12293
12477
  /**
12294
- * V2SessionsResponse
12478
+ * SessionsResponse
12295
12479
  */
12296
- 200: V2SessionsResponse;
12480
+ 200: SessionsResponse;
12297
12481
  };
12298
12482
  export type V2SessionListResponse = V2SessionListResponses[keyof V2SessionListResponses];
12483
+ export type V2SessionCreateData = {
12484
+ body: {
12485
+ id?: string;
12486
+ agent?: string;
12487
+ model?: {
12488
+ id: string;
12489
+ providerID: string;
12490
+ variant?: string;
12491
+ };
12492
+ location?: LocationRef;
12493
+ };
12494
+ path?: never;
12495
+ query?: never;
12496
+ url: "/api/session";
12497
+ };
12498
+ export type V2SessionCreateErrors = {
12499
+ /**
12500
+ * InvalidRequestError
12501
+ */
12502
+ 400: InvalidRequestError;
12503
+ /**
12504
+ * UnauthorizedError
12505
+ */
12506
+ 401: UnauthorizedError;
12507
+ };
12508
+ export type V2SessionCreateError = V2SessionCreateErrors[keyof V2SessionCreateErrors];
12509
+ export type V2SessionCreateResponses = {
12510
+ /**
12511
+ * Success
12512
+ */
12513
+ 200: {
12514
+ data: SessionV2Info;
12515
+ };
12516
+ };
12517
+ export type V2SessionCreateResponse = V2SessionCreateResponses[keyof V2SessionCreateResponses];
12518
+ export type V2SessionGetData = {
12519
+ body?: never;
12520
+ path: {
12521
+ sessionID: string;
12522
+ };
12523
+ query?: never;
12524
+ url: "/api/session/{sessionID}";
12525
+ };
12526
+ export type V2SessionGetErrors = {
12527
+ /**
12528
+ * InvalidRequestError
12529
+ */
12530
+ 400: InvalidRequestError;
12531
+ /**
12532
+ * UnauthorizedError
12533
+ */
12534
+ 401: UnauthorizedError;
12535
+ /**
12536
+ * SessionNotFoundError
12537
+ */
12538
+ 404: SessionNotFoundError;
12539
+ };
12540
+ export type V2SessionGetError = V2SessionGetErrors[keyof V2SessionGetErrors];
12541
+ export type V2SessionGetResponses = {
12542
+ /**
12543
+ * Success
12544
+ */
12545
+ 200: {
12546
+ data: SessionV2Info;
12547
+ };
12548
+ };
12549
+ export type V2SessionGetResponse = V2SessionGetResponses[keyof V2SessionGetResponses];
12299
12550
  export type V2SessionPromptData = {
12300
12551
  body: {
12301
12552
  id?: string;
@@ -12477,11 +12728,11 @@ export type V2SessionMessagesErrors = {
12477
12728
  export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors];
12478
12729
  export type V2SessionMessagesResponses = {
12479
12730
  /**
12480
- * V2SessionMessagesResponse
12731
+ * SessionMessagesResponse
12481
12732
  */
12482
- 200: V2SessionMessagesResponse;
12733
+ 200: SessionMessagesResponse;
12483
12734
  };
12484
- export type V2SessionMessagesResponse2 = V2SessionMessagesResponses[keyof V2SessionMessagesResponses];
12735
+ export type V2SessionMessagesResponse = V2SessionMessagesResponses[keyof V2SessionMessagesResponses];
12485
12736
  export type V2ModelListData = {
12486
12737
  body?: never;
12487
12738
  path?: never;
@@ -12596,7 +12847,7 @@ export type V2ProviderGetResponses = {
12596
12847
  };
12597
12848
  };
12598
12849
  export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses];
12599
- export type V2PermissionRequestListData = {
12850
+ export type V2ConnectorListData = {
12600
12851
  body?: never;
12601
12852
  path?: never;
12602
12853
  query?: {
@@ -12605,9 +12856,9 @@ export type V2PermissionRequestListData = {
12605
12856
  workspace?: string;
12606
12857
  };
12607
12858
  };
12608
- url: "/api/permission/request";
12859
+ url: "/api/connector";
12609
12860
  };
12610
- export type V2PermissionRequestListErrors = {
12861
+ export type V2ConnectorListErrors = {
12611
12862
  /**
12612
12863
  * InvalidRequestError
12613
12864
  */
@@ -12617,26 +12868,31 @@ export type V2PermissionRequestListErrors = {
12617
12868
  */
12618
12869
  401: UnauthorizedError;
12619
12870
  };
12620
- export type V2PermissionRequestListError = V2PermissionRequestListErrors[keyof V2PermissionRequestListErrors];
12621
- export type V2PermissionRequestListResponses = {
12871
+ export type V2ConnectorListError = V2ConnectorListErrors[keyof V2ConnectorListErrors];
12872
+ export type V2ConnectorListResponses = {
12622
12873
  /**
12623
12874
  * Success
12624
12875
  */
12625
12876
  200: {
12626
12877
  location: LocationInfo;
12627
- data: Array<PermissionV2Request>;
12878
+ data: Array<ConnectorInfo>;
12628
12879
  };
12629
12880
  };
12630
- export type V2PermissionRequestListResponse = V2PermissionRequestListResponses[keyof V2PermissionRequestListResponses];
12631
- export type V2SessionPermissionListData = {
12881
+ export type V2ConnectorListResponse = V2ConnectorListResponses[keyof V2ConnectorListResponses];
12882
+ export type V2ConnectorGetData = {
12632
12883
  body?: never;
12633
12884
  path: {
12634
- sessionID: string;
12885
+ connectorID: string;
12635
12886
  };
12636
- query?: never;
12637
- url: "/api/session/{sessionID}/permission/request";
12887
+ query?: {
12888
+ location?: {
12889
+ directory?: string;
12890
+ workspace?: string;
12891
+ };
12892
+ };
12893
+ url: "/api/connector/{connectorID}";
12638
12894
  };
12639
- export type V2SessionPermissionListErrors = {
12895
+ export type V2ConnectorGetErrors = {
12640
12896
  /**
12641
12897
  * InvalidRequestError
12642
12898
  */
@@ -12645,34 +12901,141 @@ export type V2SessionPermissionListErrors = {
12645
12901
  * UnauthorizedError
12646
12902
  */
12647
12903
  401: UnauthorizedError;
12904
+ };
12905
+ export type V2ConnectorGetError = V2ConnectorGetErrors[keyof V2ConnectorGetErrors];
12906
+ export type V2ConnectorGetResponses = {
12648
12907
  /**
12649
- * SessionNotFoundError
12908
+ * Success
12650
12909
  */
12651
- 404: SessionNotFoundError;
12910
+ 200: {
12911
+ location: LocationInfo;
12912
+ data: ConnectorInfo;
12913
+ };
12652
12914
  };
12653
- export type V2SessionPermissionListError = V2SessionPermissionListErrors[keyof V2SessionPermissionListErrors];
12654
- export type V2SessionPermissionListResponses = {
12915
+ export type V2ConnectorGetResponse = V2ConnectorGetResponses[keyof V2ConnectorGetResponses];
12916
+ export type V2ConnectorConnectKeyData = {
12917
+ body: {
12918
+ methodID: string;
12919
+ key: string;
12920
+ inputs: {
12921
+ [key: string]: string;
12922
+ };
12923
+ label?: string;
12924
+ };
12925
+ path: {
12926
+ connectorID: string;
12927
+ };
12928
+ query?: {
12929
+ location?: {
12930
+ directory?: string;
12931
+ workspace?: string;
12932
+ };
12933
+ };
12934
+ url: "/api/connector/{connectorID}/connect/key";
12935
+ };
12936
+ export type V2ConnectorConnectKeyErrors = {
12937
+ /**
12938
+ * InvalidRequestError
12939
+ */
12940
+ 400: InvalidRequestError;
12941
+ /**
12942
+ * UnauthorizedError
12943
+ */
12944
+ 401: UnauthorizedError;
12945
+ };
12946
+ export type V2ConnectorConnectKeyError = V2ConnectorConnectKeyErrors[keyof V2ConnectorConnectKeyErrors];
12947
+ export type V2ConnectorConnectKeyResponses = {
12948
+ /**
12949
+ * <No Content>
12950
+ */
12951
+ 204: void;
12952
+ };
12953
+ export type V2ConnectorConnectKeyResponse = V2ConnectorConnectKeyResponses[keyof V2ConnectorConnectKeyResponses];
12954
+ export type V2ConnectorConnectOauthBeginData = {
12955
+ body: {
12956
+ methodID: string;
12957
+ inputs: {
12958
+ [key: string]: string;
12959
+ };
12960
+ label?: string;
12961
+ };
12962
+ path: {
12963
+ connectorID: string;
12964
+ };
12965
+ query?: {
12966
+ location?: {
12967
+ directory?: string;
12968
+ workspace?: string;
12969
+ };
12970
+ };
12971
+ url: "/api/connector/{connectorID}/connect/oauth";
12972
+ };
12973
+ export type V2ConnectorConnectOauthBeginErrors = {
12974
+ /**
12975
+ * InvalidRequestError
12976
+ */
12977
+ 400: InvalidRequestError;
12978
+ /**
12979
+ * UnauthorizedError
12980
+ */
12981
+ 401: UnauthorizedError;
12982
+ };
12983
+ export type V2ConnectorConnectOauthBeginError = V2ConnectorConnectOauthBeginErrors[keyof V2ConnectorConnectOauthBeginErrors];
12984
+ export type V2ConnectorConnectOauthBeginResponses = {
12655
12985
  /**
12656
12986
  * Success
12657
12987
  */
12658
12988
  200: {
12659
- data: Array<PermissionV2Request>;
12989
+ location: LocationInfo;
12990
+ data: ConnectorAttempt;
12660
12991
  };
12661
12992
  };
12662
- export type V2SessionPermissionListResponse = V2SessionPermissionListResponses[keyof V2SessionPermissionListResponses];
12663
- export type V2SessionPermissionReplyData = {
12664
- body: {
12665
- reply: PermissionV2Reply;
12666
- message?: string;
12993
+ export type V2ConnectorConnectOauthBeginResponse = V2ConnectorConnectOauthBeginResponses[keyof V2ConnectorConnectOauthBeginResponses];
12994
+ export type V2ConnectorConnectOauthCancelData = {
12995
+ body?: never;
12996
+ path: {
12997
+ attemptID: string;
12667
12998
  };
12999
+ query?: {
13000
+ location?: {
13001
+ directory?: string;
13002
+ workspace?: string;
13003
+ };
13004
+ };
13005
+ url: "/api/connector/oauth/{attemptID}";
13006
+ };
13007
+ export type V2ConnectorConnectOauthCancelErrors = {
13008
+ /**
13009
+ * InvalidRequestError
13010
+ */
13011
+ 400: InvalidRequestError;
13012
+ /**
13013
+ * UnauthorizedError
13014
+ */
13015
+ 401: UnauthorizedError;
13016
+ };
13017
+ export type V2ConnectorConnectOauthCancelError = V2ConnectorConnectOauthCancelErrors[keyof V2ConnectorConnectOauthCancelErrors];
13018
+ export type V2ConnectorConnectOauthCancelResponses = {
13019
+ /**
13020
+ * <No Content>
13021
+ */
13022
+ 204: void;
13023
+ };
13024
+ export type V2ConnectorConnectOauthCancelResponse = V2ConnectorConnectOauthCancelResponses[keyof V2ConnectorConnectOauthCancelResponses];
13025
+ export type V2ConnectorConnectOauthStatusData = {
13026
+ body?: never;
12668
13027
  path: {
12669
- sessionID: string;
12670
- requestID: string;
13028
+ attemptID: string;
12671
13029
  };
12672
- query?: never;
12673
- url: "/api/session/{sessionID}/permission/request/{requestID}/reply";
13030
+ query?: {
13031
+ location?: {
13032
+ directory?: string;
13033
+ workspace?: string;
13034
+ };
13035
+ };
13036
+ url: "/api/connector/oauth/{attemptID}";
12674
13037
  };
12675
- export type V2SessionPermissionReplyErrors = {
13038
+ export type V2ConnectorConnectOauthStatusErrors = {
12676
13039
  /**
12677
13040
  * InvalidRequestError
12678
13041
  */
@@ -12681,19 +13044,108 @@ export type V2SessionPermissionReplyErrors = {
12681
13044
  * UnauthorizedError
12682
13045
  */
12683
13046
  401: UnauthorizedError;
13047
+ };
13048
+ export type V2ConnectorConnectOauthStatusError = V2ConnectorConnectOauthStatusErrors[keyof V2ConnectorConnectOauthStatusErrors];
13049
+ export type V2ConnectorConnectOauthStatusResponses = {
12684
13050
  /**
12685
- * SessionNotFoundError | PermissionNotFoundError
13051
+ * Success
12686
13052
  */
12687
- 404: SessionNotFoundError | PermissionNotFoundError;
13053
+ 200: {
13054
+ location: LocationInfo;
13055
+ data: {
13056
+ status: "pending";
13057
+ time: {
13058
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13059
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13060
+ };
13061
+ } | {
13062
+ status: "complete";
13063
+ time: {
13064
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13065
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13066
+ };
13067
+ } | {
13068
+ status: "failed";
13069
+ message: string;
13070
+ time: {
13071
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13072
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13073
+ };
13074
+ } | {
13075
+ status: "expired";
13076
+ time: {
13077
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13078
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
13079
+ };
13080
+ };
13081
+ };
12688
13082
  };
12689
- export type V2SessionPermissionReplyError = V2SessionPermissionReplyErrors[keyof V2SessionPermissionReplyErrors];
12690
- export type V2SessionPermissionReplyResponses = {
13083
+ export type V2ConnectorConnectOauthStatusResponse = V2ConnectorConnectOauthStatusResponses[keyof V2ConnectorConnectOauthStatusResponses];
13084
+ export type V2ConnectorConnectOauthCompleteData = {
13085
+ body: {
13086
+ code?: string;
13087
+ };
13088
+ path: {
13089
+ attemptID: string;
13090
+ };
13091
+ query?: {
13092
+ location?: {
13093
+ directory?: string;
13094
+ workspace?: string;
13095
+ };
13096
+ };
13097
+ url: "/api/connector/oauth/{attemptID}/complete";
13098
+ };
13099
+ export type V2ConnectorConnectOauthCompleteErrors = {
13100
+ /**
13101
+ * InvalidRequestError
13102
+ */
13103
+ 400: InvalidRequestError;
13104
+ /**
13105
+ * UnauthorizedError
13106
+ */
13107
+ 401: UnauthorizedError;
13108
+ };
13109
+ export type V2ConnectorConnectOauthCompleteError = V2ConnectorConnectOauthCompleteErrors[keyof V2ConnectorConnectOauthCompleteErrors];
13110
+ export type V2ConnectorConnectOauthCompleteResponses = {
12691
13111
  /**
12692
13112
  * <No Content>
12693
13113
  */
12694
13114
  204: void;
12695
13115
  };
12696
- export type V2SessionPermissionReplyResponse = V2SessionPermissionReplyResponses[keyof V2SessionPermissionReplyResponses];
13116
+ export type V2ConnectorConnectOauthCompleteResponse = V2ConnectorConnectOauthCompleteResponses[keyof V2ConnectorConnectOauthCompleteResponses];
13117
+ export type V2PermissionRequestListData = {
13118
+ body?: never;
13119
+ path?: never;
13120
+ query?: {
13121
+ location?: {
13122
+ directory?: string;
13123
+ workspace?: string;
13124
+ };
13125
+ };
13126
+ url: "/api/permission/request";
13127
+ };
13128
+ export type V2PermissionRequestListErrors = {
13129
+ /**
13130
+ * InvalidRequestError
13131
+ */
13132
+ 400: InvalidRequestError;
13133
+ /**
13134
+ * UnauthorizedError
13135
+ */
13136
+ 401: UnauthorizedError;
13137
+ };
13138
+ export type V2PermissionRequestListError = V2PermissionRequestListErrors[keyof V2PermissionRequestListErrors];
13139
+ export type V2PermissionRequestListResponses = {
13140
+ /**
13141
+ * Success
13142
+ */
13143
+ 200: {
13144
+ location: LocationInfo;
13145
+ data: Array<PermissionV2Request>;
13146
+ };
13147
+ };
13148
+ export type V2PermissionRequestListResponse = V2PermissionRequestListResponses[keyof V2PermissionRequestListResponses];
12697
13149
  export type V2PermissionSavedListData = {
12698
13150
  body?: never;
12699
13151
  path?: never;
@@ -12748,18 +13200,83 @@ export type V2PermissionSavedRemoveResponses = {
12748
13200
  204: void;
12749
13201
  };
12750
13202
  export type V2PermissionSavedRemoveResponse = V2PermissionSavedRemoveResponses[keyof V2PermissionSavedRemoveResponses];
13203
+ export type V2SessionPermissionListData = {
13204
+ body?: never;
13205
+ path: {
13206
+ sessionID: string;
13207
+ };
13208
+ query?: never;
13209
+ url: "/api/session/{sessionID}/permission";
13210
+ };
13211
+ export type V2SessionPermissionListErrors = {
13212
+ /**
13213
+ * InvalidRequestError
13214
+ */
13215
+ 400: InvalidRequestError;
13216
+ /**
13217
+ * UnauthorizedError
13218
+ */
13219
+ 401: UnauthorizedError;
13220
+ /**
13221
+ * SessionNotFoundError
13222
+ */
13223
+ 404: SessionNotFoundError;
13224
+ };
13225
+ export type V2SessionPermissionListError = V2SessionPermissionListErrors[keyof V2SessionPermissionListErrors];
13226
+ export type V2SessionPermissionListResponses = {
13227
+ /**
13228
+ * Success
13229
+ */
13230
+ 200: {
13231
+ data: Array<PermissionV2Request>;
13232
+ };
13233
+ };
13234
+ export type V2SessionPermissionListResponse = V2SessionPermissionListResponses[keyof V2SessionPermissionListResponses];
13235
+ export type V2SessionPermissionReplyData = {
13236
+ body: {
13237
+ reply: PermissionV2Reply;
13238
+ message?: string;
13239
+ };
13240
+ path: {
13241
+ sessionID: string;
13242
+ requestID: string;
13243
+ };
13244
+ query?: never;
13245
+ url: "/api/session/{sessionID}/permission/{requestID}/reply";
13246
+ };
13247
+ export type V2SessionPermissionReplyErrors = {
13248
+ /**
13249
+ * InvalidRequestError
13250
+ */
13251
+ 400: InvalidRequestError;
13252
+ /**
13253
+ * UnauthorizedError
13254
+ */
13255
+ 401: UnauthorizedError;
13256
+ /**
13257
+ * SessionNotFoundError | PermissionNotFoundError
13258
+ */
13259
+ 404: PermissionNotFoundError | SessionNotFoundError;
13260
+ };
13261
+ export type V2SessionPermissionReplyError = V2SessionPermissionReplyErrors[keyof V2SessionPermissionReplyErrors];
13262
+ export type V2SessionPermissionReplyResponses = {
13263
+ /**
13264
+ * <No Content>
13265
+ */
13266
+ 204: void;
13267
+ };
13268
+ export type V2SessionPermissionReplyResponse = V2SessionPermissionReplyResponses[keyof V2SessionPermissionReplyResponses];
12751
13269
  export type V2FsReadData = {
12752
13270
  body?: never;
12753
13271
  path?: never;
12754
- query: {
13272
+ query?: {
12755
13273
  location?: {
12756
13274
  directory?: string;
12757
13275
  workspace?: string;
12758
13276
  };
12759
- path: string;
12760
- reference?: string;
13277
+ path?: string;
12761
13278
  };
12762
- url: "/api/fs/read";
13279
+ url: "/api/fs/read/*";
12763
13280
  };
12764
13281
  export type V2FsReadErrors = {
12765
13282
  /**
@@ -12776,10 +13293,7 @@ export type V2FsReadResponses = {
12776
13293
  /**
12777
13294
  * Success
12778
13295
  */
12779
- 200: {
12780
- location: LocationInfo;
12781
- data: FileSystemTextContent | FileSystemBinaryContent;
12782
- };
13296
+ 200: Blob | File;
12783
13297
  };
12784
13298
  export type V2FsReadResponse = V2FsReadResponses[keyof V2FsReadResponses];
12785
13299
  export type V2FsListData = {
@@ -12791,7 +13305,6 @@ export type V2FsListData = {
12791
13305
  workspace?: string;
12792
13306
  };
12793
13307
  path?: string;
12794
- reference?: string;
12795
13308
  };
12796
13309
  url: "/api/fs/list";
12797
13310
  };
@@ -12816,6 +13329,41 @@ export type V2FsListResponses = {
12816
13329
  };
12817
13330
  };
12818
13331
  export type V2FsListResponse = V2FsListResponses[keyof V2FsListResponses];
13332
+ export type V2FsFindData = {
13333
+ body?: never;
13334
+ path?: never;
13335
+ query: {
13336
+ location?: {
13337
+ directory?: string;
13338
+ workspace?: string;
13339
+ };
13340
+ query: string;
13341
+ type?: "file" | "directory";
13342
+ limit?: string;
13343
+ };
13344
+ url: "/api/fs/find";
13345
+ };
13346
+ export type V2FsFindErrors = {
13347
+ /**
13348
+ * InvalidRequestError
13349
+ */
13350
+ 400: InvalidRequestError;
13351
+ /**
13352
+ * UnauthorizedError
13353
+ */
13354
+ 401: UnauthorizedError;
13355
+ };
13356
+ export type V2FsFindError = V2FsFindErrors[keyof V2FsFindErrors];
13357
+ export type V2FsFindResponses = {
13358
+ /**
13359
+ * Success
13360
+ */
13361
+ 200: {
13362
+ location: LocationInfo;
13363
+ data: Array<FileSystemEntry>;
13364
+ };
13365
+ };
13366
+ export type V2FsFindResponse = V2FsFindResponses[keyof V2FsFindResponses];
12819
13367
  export type V2CommandListData = {
12820
13368
  body?: never;
12821
13369
  path?: never;
@@ -12941,6 +13489,38 @@ export type V2QuestionRequestListResponses = {
12941
13489
  };
12942
13490
  };
12943
13491
  export type V2QuestionRequestListResponse = V2QuestionRequestListResponses[keyof V2QuestionRequestListResponses];
13492
+ export type V2SessionQuestionListData = {
13493
+ body?: never;
13494
+ path: {
13495
+ sessionID: string;
13496
+ };
13497
+ query?: never;
13498
+ url: "/api/session/{sessionID}/question";
13499
+ };
13500
+ export type V2SessionQuestionListErrors = {
13501
+ /**
13502
+ * InvalidRequestError
13503
+ */
13504
+ 400: InvalidRequestError;
13505
+ /**
13506
+ * UnauthorizedError
13507
+ */
13508
+ 401: UnauthorizedError;
13509
+ /**
13510
+ * SessionNotFoundError
13511
+ */
13512
+ 404: SessionNotFoundError;
13513
+ };
13514
+ export type V2SessionQuestionListError = V2SessionQuestionListErrors[keyof V2SessionQuestionListErrors];
13515
+ export type V2SessionQuestionListResponses = {
13516
+ /**
13517
+ * Success
13518
+ */
13519
+ 200: {
13520
+ data: Array<QuestionV2Request>;
13521
+ };
13522
+ };
13523
+ export type V2SessionQuestionListResponse = V2SessionQuestionListResponses[keyof V2SessionQuestionListResponses];
12944
13524
  export type V2SessionQuestionReplyData = {
12945
13525
  body: QuestionV2Reply;
12946
13526
  path: {
@@ -12948,7 +13528,7 @@ export type V2SessionQuestionReplyData = {
12948
13528
  requestID: string;
12949
13529
  };
12950
13530
  query?: never;
12951
- url: "/api/session/{sessionID}/question/request/{requestID}/reply";
13531
+ url: "/api/session/{sessionID}/question/{requestID}/reply";
12952
13532
  };
12953
13533
  export type V2SessionQuestionReplyErrors = {
12954
13534
  /**
@@ -12962,7 +13542,7 @@ export type V2SessionQuestionReplyErrors = {
12962
13542
  /**
12963
13543
  * SessionNotFoundError | QuestionNotFoundError
12964
13544
  */
12965
- 404: SessionNotFoundError | QuestionNotFoundError;
13545
+ 404: QuestionNotFoundError | SessionNotFoundError;
12966
13546
  };
12967
13547
  export type V2SessionQuestionReplyError = V2SessionQuestionReplyErrors[keyof V2SessionQuestionReplyErrors];
12968
13548
  export type V2SessionQuestionReplyResponses = {
@@ -12979,7 +13559,7 @@ export type V2SessionQuestionRejectData = {
12979
13559
  requestID: string;
12980
13560
  };
12981
13561
  query?: never;
12982
- url: "/api/session/{sessionID}/question/request/{requestID}/reject";
13562
+ url: "/api/session/{sessionID}/question/{requestID}/reject";
12983
13563
  };
12984
13564
  export type V2SessionQuestionRejectErrors = {
12985
13565
  /**
@@ -12993,7 +13573,7 @@ export type V2SessionQuestionRejectErrors = {
12993
13573
  /**
12994
13574
  * SessionNotFoundError | QuestionNotFoundError
12995
13575
  */
12996
- 404: SessionNotFoundError | QuestionNotFoundError;
13576
+ 404: QuestionNotFoundError | SessionNotFoundError;
12997
13577
  };
12998
13578
  export type V2SessionQuestionRejectError = V2SessionQuestionRejectErrors[keyof V2SessionQuestionRejectErrors];
12999
13579
  export type V2SessionQuestionRejectResponses = {
@@ -13003,6 +13583,38 @@ export type V2SessionQuestionRejectResponses = {
13003
13583
  204: void;
13004
13584
  };
13005
13585
  export type V2SessionQuestionRejectResponse = V2SessionQuestionRejectResponses[keyof V2SessionQuestionRejectResponses];
13586
+ export type V2ReferenceListData = {
13587
+ body?: never;
13588
+ path?: never;
13589
+ query?: {
13590
+ location?: {
13591
+ directory?: string;
13592
+ workspace?: string;
13593
+ };
13594
+ };
13595
+ url: "/api/reference";
13596
+ };
13597
+ export type V2ReferenceListErrors = {
13598
+ /**
13599
+ * InvalidRequestError
13600
+ */
13601
+ 400: InvalidRequestError;
13602
+ /**
13603
+ * UnauthorizedError
13604
+ */
13605
+ 401: UnauthorizedError;
13606
+ };
13607
+ export type V2ReferenceListError = V2ReferenceListErrors[keyof V2ReferenceListErrors];
13608
+ export type V2ReferenceListResponses = {
13609
+ /**
13610
+ * Success
13611
+ */
13612
+ 200: {
13613
+ location: LocationInfo;
13614
+ data: Array<ReferenceInfo>;
13615
+ };
13616
+ };
13617
+ export type V2ReferenceListResponse = V2ReferenceListResponses[keyof V2ReferenceListResponses];
13006
13618
  export type PtyConnectData = {
13007
13619
  body?: never;
13008
13620
  path: {