@kilocode/sdk 7.4.11 → 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.
- package/dist/v2/client.d.ts +1 -1
- package/dist/v2/gen/sdk.gen.d.ts +216 -35
- package/dist/v2/gen/sdk.gen.js +322 -45
- package/dist/v2/gen/types.gen.d.ts +969 -376
- package/package.json +1 -1
|
@@ -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 |
|
|
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
|
|
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 |
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
2810
|
+
export type SessionMessagesResponse = {
|
|
2789
2811
|
data: Array<SessionMessage>;
|
|
2790
2812
|
cursor: {
|
|
2791
2813
|
previous?: string;
|
|
@@ -3168,6 +3190,53 @@ export type EventGlobalConfigUpdated = {
|
|
|
3168
3190
|
[key: string]: unknown;
|
|
3169
3191
|
};
|
|
3170
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
|
+
};
|
|
3171
3240
|
export type EventPluginAdded = {
|
|
3172
3241
|
id: string;
|
|
3173
3242
|
type: "plugin.added";
|
|
@@ -3208,6 +3277,19 @@ export type ModelV2Info = {
|
|
|
3208
3277
|
body: {
|
|
3209
3278
|
[key: string]: unknown;
|
|
3210
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
|
+
};
|
|
3211
3293
|
variant?: string;
|
|
3212
3294
|
};
|
|
3213
3295
|
variants: Array<{
|
|
@@ -3218,6 +3300,19 @@ export type ModelV2Info = {
|
|
|
3218
3300
|
body: {
|
|
3219
3301
|
[key: string]: unknown;
|
|
3220
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
|
+
};
|
|
3221
3316
|
}>;
|
|
3222
3317
|
time: {
|
|
3223
3318
|
released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
@@ -3361,17 +3456,6 @@ export type PromptAgentAttachment = {
|
|
|
3361
3456
|
name: string;
|
|
3362
3457
|
source?: PromptSource;
|
|
3363
3458
|
};
|
|
3364
|
-
export type PromptReferenceAttachment = {
|
|
3365
|
-
name: string;
|
|
3366
|
-
kind: "local" | "git" | "invalid";
|
|
3367
|
-
uri?: string;
|
|
3368
|
-
repository?: string;
|
|
3369
|
-
branch?: string;
|
|
3370
|
-
target?: string;
|
|
3371
|
-
targetUri?: string;
|
|
3372
|
-
problem?: string;
|
|
3373
|
-
source?: PromptSource;
|
|
3374
|
-
};
|
|
3375
3459
|
export type EventSessionNextPrompted = {
|
|
3376
3460
|
id: string;
|
|
3377
3461
|
type: "session.next.prompted";
|
|
@@ -3405,6 +3489,14 @@ export type EventSessionNextPromptPromoted = {
|
|
|
3405
3489
|
timeCreated: number;
|
|
3406
3490
|
};
|
|
3407
3491
|
};
|
|
3492
|
+
export type EventSessionNextInterruptRequested = {
|
|
3493
|
+
id: string;
|
|
3494
|
+
type: "session.next.interrupt.requested";
|
|
3495
|
+
properties: {
|
|
3496
|
+
timestamp: number;
|
|
3497
|
+
sessionID: string;
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3408
3500
|
export type EventSessionNextContextUpdated = {
|
|
3409
3501
|
id: string;
|
|
3410
3502
|
type: "session.next.context.updated";
|
|
@@ -3632,16 +3724,7 @@ export type ToolTextContent = {
|
|
|
3632
3724
|
};
|
|
3633
3725
|
export type ToolFileContent = {
|
|
3634
3726
|
type: "file";
|
|
3635
|
-
|
|
3636
|
-
type: "data";
|
|
3637
|
-
data: string;
|
|
3638
|
-
} | {
|
|
3639
|
-
type: "url";
|
|
3640
|
-
url: string;
|
|
3641
|
-
} | {
|
|
3642
|
-
type: "file";
|
|
3643
|
-
uri: string;
|
|
3644
|
-
};
|
|
3727
|
+
uri: string;
|
|
3645
3728
|
mime: string;
|
|
3646
3729
|
name?: string;
|
|
3647
3730
|
};
|
|
@@ -3671,6 +3754,7 @@ export type EventSessionNextToolSuccess = {
|
|
|
3671
3754
|
[key: string]: unknown;
|
|
3672
3755
|
};
|
|
3673
3756
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
3757
|
+
outputPaths?: Array<string>;
|
|
3674
3758
|
result?: unknown;
|
|
3675
3759
|
provider: {
|
|
3676
3760
|
executed: boolean;
|
|
@@ -3740,6 +3824,7 @@ export type EventSessionNextCompactionDelta = {
|
|
|
3740
3824
|
properties: {
|
|
3741
3825
|
timestamp: number;
|
|
3742
3826
|
sessionID: string;
|
|
3827
|
+
messageID: string;
|
|
3743
3828
|
text: string;
|
|
3744
3829
|
};
|
|
3745
3830
|
};
|
|
@@ -3749,7 +3834,10 @@ export type EventSessionNextCompactionEnded = {
|
|
|
3749
3834
|
properties: {
|
|
3750
3835
|
timestamp: number;
|
|
3751
3836
|
sessionID: string;
|
|
3837
|
+
messageID?: string;
|
|
3838
|
+
reason?: "auto" | "manual";
|
|
3752
3839
|
text: string;
|
|
3840
|
+
recent?: string;
|
|
3753
3841
|
include?: string;
|
|
3754
3842
|
};
|
|
3755
3843
|
};
|
|
@@ -3823,7 +3911,7 @@ export type EventSessionError = {
|
|
|
3823
3911
|
type: "session.error";
|
|
3824
3912
|
properties: {
|
|
3825
3913
|
sessionID?: string;
|
|
3826
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError | AgentRequirementError;
|
|
3914
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError | AgentRequirementError;
|
|
3827
3915
|
};
|
|
3828
3916
|
};
|
|
3829
3917
|
export type EventModelsDevRefreshed = {
|
|
@@ -3874,99 +3962,48 @@ export type EventPermissionReplied = {
|
|
|
3874
3962
|
reply: "once" | "always" | "reject";
|
|
3875
3963
|
};
|
|
3876
3964
|
};
|
|
3877
|
-
export type
|
|
3878
|
-
/**
|
|
3879
|
-
* Brief description of the task
|
|
3880
|
-
*/
|
|
3881
|
-
content: string;
|
|
3882
|
-
/**
|
|
3883
|
-
* Current status of the task: pending, in_progress, completed, cancelled
|
|
3884
|
-
*/
|
|
3885
|
-
status: string;
|
|
3886
|
-
/**
|
|
3887
|
-
* Priority level of the task: high, medium, low
|
|
3888
|
-
*/
|
|
3889
|
-
priority: string;
|
|
3890
|
-
};
|
|
3891
|
-
export type EventTodoUpdated = {
|
|
3892
|
-
id: string;
|
|
3893
|
-
type: "todo.updated";
|
|
3894
|
-
properties: {
|
|
3895
|
-
sessionID: string;
|
|
3896
|
-
todos: Array<SessionTodoInfo>;
|
|
3897
|
-
};
|
|
3898
|
-
};
|
|
3899
|
-
export type EventSessionStatus = {
|
|
3900
|
-
id: string;
|
|
3901
|
-
type: "session.status";
|
|
3902
|
-
properties: {
|
|
3903
|
-
sessionID: string;
|
|
3904
|
-
status: SessionStatus;
|
|
3905
|
-
};
|
|
3906
|
-
};
|
|
3907
|
-
export type EventSessionIdle = {
|
|
3908
|
-
id: string;
|
|
3909
|
-
type: "session.idle";
|
|
3910
|
-
properties: {
|
|
3911
|
-
sessionID: string;
|
|
3912
|
-
};
|
|
3913
|
-
};
|
|
3914
|
-
export type EventSessionCompacted = {
|
|
3965
|
+
export type EventReferenceUpdated = {
|
|
3915
3966
|
id: string;
|
|
3916
|
-
type: "
|
|
3967
|
+
type: "reference.updated";
|
|
3917
3968
|
properties: {
|
|
3918
|
-
|
|
3969
|
+
[key: string]: unknown;
|
|
3919
3970
|
};
|
|
3920
3971
|
};
|
|
3921
|
-
export type
|
|
3972
|
+
export type EventConnectorUpdated = {
|
|
3922
3973
|
id: string;
|
|
3923
|
-
type: "
|
|
3974
|
+
type: "connector.updated";
|
|
3924
3975
|
properties: {
|
|
3925
|
-
|
|
3926
|
-
sessionID: string;
|
|
3927
|
-
arguments: string;
|
|
3928
|
-
messageID: string;
|
|
3976
|
+
[key: string]: unknown;
|
|
3929
3977
|
};
|
|
3930
3978
|
};
|
|
3931
|
-
export type
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
projectID: string;
|
|
3936
|
-
};
|
|
3979
|
+
export type PermissionV2Source = {
|
|
3980
|
+
type: "tool";
|
|
3981
|
+
messageID: string;
|
|
3982
|
+
callID: string;
|
|
3937
3983
|
};
|
|
3938
|
-
export type
|
|
3984
|
+
export type EventPermissionV2Asked = {
|
|
3939
3985
|
id: string;
|
|
3940
|
-
type: "
|
|
3986
|
+
type: "permission.v2.asked";
|
|
3941
3987
|
properties: {
|
|
3942
3988
|
id: string;
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
color?: string;
|
|
3950
|
-
};
|
|
3951
|
-
commands?: {
|
|
3952
|
-
/**
|
|
3953
|
-
* Startup script to run when creating a new workspace (worktree)
|
|
3954
|
-
*/
|
|
3955
|
-
start?: string;
|
|
3956
|
-
};
|
|
3957
|
-
time: {
|
|
3958
|
-
created: number;
|
|
3959
|
-
updated: number;
|
|
3960
|
-
initialized?: number;
|
|
3989
|
+
sessionID: string;
|
|
3990
|
+
action: string;
|
|
3991
|
+
resources: Array<string>;
|
|
3992
|
+
save?: Array<string>;
|
|
3993
|
+
metadata?: {
|
|
3994
|
+
[key: string]: unknown;
|
|
3961
3995
|
};
|
|
3962
|
-
|
|
3996
|
+
source?: PermissionV2Source;
|
|
3963
3997
|
};
|
|
3964
3998
|
};
|
|
3965
|
-
export type
|
|
3999
|
+
export type PermissionV2Reply = "once" | "always" | "reject";
|
|
4000
|
+
export type EventPermissionV2Replied = {
|
|
3966
4001
|
id: string;
|
|
3967
|
-
type: "
|
|
4002
|
+
type: "permission.v2.replied";
|
|
3968
4003
|
properties: {
|
|
3969
|
-
|
|
4004
|
+
sessionID: string;
|
|
4005
|
+
requestID: string;
|
|
4006
|
+
reply: PermissionV2Reply;
|
|
3970
4007
|
};
|
|
3971
4008
|
};
|
|
3972
4009
|
export type EventFileEdited = {
|
|
@@ -3984,151 +4021,33 @@ export type EventFileWatcherUpdated = {
|
|
|
3984
4021
|
event: "add" | "change" | "unlink";
|
|
3985
4022
|
};
|
|
3986
4023
|
};
|
|
3987
|
-
export type
|
|
3988
|
-
id: string;
|
|
3989
|
-
type: "vcs.branch.updated";
|
|
3990
|
-
properties: {
|
|
3991
|
-
branch?: string;
|
|
3992
|
-
};
|
|
3993
|
-
};
|
|
3994
|
-
export type EventWorkspaceReady = {
|
|
4024
|
+
export type EventPtyCreated = {
|
|
3995
4025
|
id: string;
|
|
3996
|
-
type: "
|
|
4026
|
+
type: "pty.created";
|
|
3997
4027
|
properties: {
|
|
3998
|
-
|
|
4028
|
+
info: Pty;
|
|
3999
4029
|
};
|
|
4000
4030
|
};
|
|
4001
|
-
export type
|
|
4031
|
+
export type EventPtyUpdated = {
|
|
4002
4032
|
id: string;
|
|
4003
|
-
type: "
|
|
4033
|
+
type: "pty.updated";
|
|
4004
4034
|
properties: {
|
|
4005
|
-
|
|
4035
|
+
info: Pty;
|
|
4006
4036
|
};
|
|
4007
4037
|
};
|
|
4008
|
-
export type
|
|
4038
|
+
export type EventPtyExited = {
|
|
4009
4039
|
id: string;
|
|
4010
|
-
type: "
|
|
4040
|
+
type: "pty.exited";
|
|
4011
4041
|
properties: {
|
|
4012
|
-
|
|
4013
|
-
|
|
4042
|
+
id: string;
|
|
4043
|
+
exitCode: number;
|
|
4014
4044
|
};
|
|
4015
4045
|
};
|
|
4016
|
-
export type
|
|
4046
|
+
export type EventPtyDeleted = {
|
|
4017
4047
|
id: string;
|
|
4018
|
-
type: "
|
|
4048
|
+
type: "pty.deleted";
|
|
4019
4049
|
properties: {
|
|
4020
|
-
|
|
4021
|
-
branch?: string;
|
|
4022
|
-
};
|
|
4023
|
-
};
|
|
4024
|
-
export type EventWorktreeFailed = {
|
|
4025
|
-
id: string;
|
|
4026
|
-
type: "worktree.failed";
|
|
4027
|
-
properties: {
|
|
4028
|
-
message: string;
|
|
4029
|
-
};
|
|
4030
|
-
};
|
|
4031
|
-
export type AuthOAuthCredential = {
|
|
4032
|
-
type: "oauth";
|
|
4033
|
-
refresh: string;
|
|
4034
|
-
access: string;
|
|
4035
|
-
expires: number;
|
|
4036
|
-
accountId?: string;
|
|
4037
|
-
};
|
|
4038
|
-
export type AuthApiKeyCredential = {
|
|
4039
|
-
type: "api";
|
|
4040
|
-
key: string;
|
|
4041
|
-
metadata?: {
|
|
4042
|
-
[key: string]: string;
|
|
4043
|
-
};
|
|
4044
|
-
};
|
|
4045
|
-
export type AuthCredential = AuthOAuthCredential | AuthApiKeyCredential;
|
|
4046
|
-
export type AuthInfo = {
|
|
4047
|
-
id: string;
|
|
4048
|
-
serviceID: string;
|
|
4049
|
-
description: string;
|
|
4050
|
-
credential: AuthCredential;
|
|
4051
|
-
};
|
|
4052
|
-
export type EventAccountAdded = {
|
|
4053
|
-
id: string;
|
|
4054
|
-
type: "account.added";
|
|
4055
|
-
properties: {
|
|
4056
|
-
account: AuthInfo;
|
|
4057
|
-
};
|
|
4058
|
-
};
|
|
4059
|
-
export type EventAccountRemoved = {
|
|
4060
|
-
id: string;
|
|
4061
|
-
type: "account.removed";
|
|
4062
|
-
properties: {
|
|
4063
|
-
account: AuthInfo;
|
|
4064
|
-
};
|
|
4065
|
-
};
|
|
4066
|
-
export type EventAccountSwitched = {
|
|
4067
|
-
id: string;
|
|
4068
|
-
type: "account.switched";
|
|
4069
|
-
properties: {
|
|
4070
|
-
serviceID: string;
|
|
4071
|
-
from?: string;
|
|
4072
|
-
to?: string;
|
|
4073
|
-
};
|
|
4074
|
-
};
|
|
4075
|
-
export type PermissionV2Source = {
|
|
4076
|
-
type: "tool";
|
|
4077
|
-
messageID: string;
|
|
4078
|
-
callID: string;
|
|
4079
|
-
};
|
|
4080
|
-
export type EventPermissionV2Asked = {
|
|
4081
|
-
id: string;
|
|
4082
|
-
type: "permission.v2.asked";
|
|
4083
|
-
properties: {
|
|
4084
|
-
id: string;
|
|
4085
|
-
sessionID: string;
|
|
4086
|
-
action: string;
|
|
4087
|
-
resources: Array<string>;
|
|
4088
|
-
save?: Array<string>;
|
|
4089
|
-
metadata?: {
|
|
4090
|
-
[key: string]: unknown;
|
|
4091
|
-
};
|
|
4092
|
-
source?: PermissionV2Source;
|
|
4093
|
-
};
|
|
4094
|
-
};
|
|
4095
|
-
export type PermissionV2Reply = "once" | "always" | "reject";
|
|
4096
|
-
export type EventPermissionV2Replied = {
|
|
4097
|
-
id: string;
|
|
4098
|
-
type: "permission.v2.replied";
|
|
4099
|
-
properties: {
|
|
4100
|
-
sessionID: string;
|
|
4101
|
-
requestID: string;
|
|
4102
|
-
reply: PermissionV2Reply;
|
|
4103
|
-
};
|
|
4104
|
-
};
|
|
4105
|
-
export type EventPtyCreated = {
|
|
4106
|
-
id: string;
|
|
4107
|
-
type: "pty.created";
|
|
4108
|
-
properties: {
|
|
4109
|
-
info: Pty;
|
|
4110
|
-
};
|
|
4111
|
-
};
|
|
4112
|
-
export type EventPtyUpdated = {
|
|
4113
|
-
id: string;
|
|
4114
|
-
type: "pty.updated";
|
|
4115
|
-
properties: {
|
|
4116
|
-
info: Pty;
|
|
4117
|
-
};
|
|
4118
|
-
};
|
|
4119
|
-
export type EventPtyExited = {
|
|
4120
|
-
id: string;
|
|
4121
|
-
type: "pty.exited";
|
|
4122
|
-
properties: {
|
|
4123
|
-
id: string;
|
|
4124
|
-
exitCode: number;
|
|
4125
|
-
};
|
|
4126
|
-
};
|
|
4127
|
-
export type EventPtyDeleted = {
|
|
4128
|
-
id: string;
|
|
4129
|
-
type: "pty.deleted";
|
|
4130
|
-
properties: {
|
|
4131
|
-
id: string;
|
|
4050
|
+
id: string;
|
|
4132
4051
|
};
|
|
4133
4052
|
};
|
|
4134
4053
|
export type QuestionV2Option = {
|
|
@@ -4192,6 +4111,131 @@ export type EventQuestionV2Rejected = {
|
|
|
4192
4111
|
requestID: string;
|
|
4193
4112
|
};
|
|
4194
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
|
+
};
|
|
4195
4239
|
export type SyncEventSessionCreated = {
|
|
4196
4240
|
type: "sync";
|
|
4197
4241
|
id: string;
|
|
@@ -4700,6 +4744,7 @@ export type SyncEventSessionNextToolSuccess = {
|
|
|
4700
4744
|
[key: string]: unknown;
|
|
4701
4745
|
};
|
|
4702
4746
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
4747
|
+
outputPaths?: Array<string>;
|
|
4703
4748
|
result?: unknown;
|
|
4704
4749
|
provider: {
|
|
4705
4750
|
executed: boolean;
|
|
@@ -4770,21 +4815,6 @@ export type SyncEventSessionNextCompactionStarted = {
|
|
|
4770
4815
|
};
|
|
4771
4816
|
};
|
|
4772
4817
|
};
|
|
4773
|
-
export type SyncEventSessionNextCompactionDelta = {
|
|
4774
|
-
type: "sync";
|
|
4775
|
-
id: string;
|
|
4776
|
-
syncEvent: {
|
|
4777
|
-
type: "session.next.compaction.delta.1";
|
|
4778
|
-
id: string;
|
|
4779
|
-
seq: number;
|
|
4780
|
-
aggregateID: string;
|
|
4781
|
-
data: {
|
|
4782
|
-
timestamp: number;
|
|
4783
|
-
sessionID: string;
|
|
4784
|
-
text: string;
|
|
4785
|
-
};
|
|
4786
|
-
};
|
|
4787
|
-
};
|
|
4788
4818
|
export type SyncEventSessionNextCompactionEnded = {
|
|
4789
4819
|
type: "sync";
|
|
4790
4820
|
id: string;
|
|
@@ -4796,18 +4826,35 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
4796
4826
|
data: {
|
|
4797
4827
|
timestamp: number;
|
|
4798
4828
|
sessionID: string;
|
|
4829
|
+
messageID?: string;
|
|
4830
|
+
reason?: "auto" | "manual";
|
|
4799
4831
|
text: string;
|
|
4832
|
+
recent?: string;
|
|
4800
4833
|
include?: string;
|
|
4801
4834
|
};
|
|
4802
4835
|
};
|
|
4803
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
|
+
};
|
|
4804
4848
|
export type PolicyEffect = "allow" | "deny";
|
|
4805
4849
|
export type ConfigV2ExperimentalPolicy = {
|
|
4806
4850
|
action: "provider.use";
|
|
4807
4851
|
effect: PolicyEffect;
|
|
4808
4852
|
resource: string;
|
|
4809
4853
|
};
|
|
4810
|
-
export type ProjectDirectories = Array<
|
|
4854
|
+
export type ProjectDirectories = Array<{
|
|
4855
|
+
directory: string;
|
|
4856
|
+
type: "main" | "root" | "git_worktree";
|
|
4857
|
+
}>;
|
|
4811
4858
|
export type ProjectCopyCopy = {
|
|
4812
4859
|
directory: string;
|
|
4813
4860
|
};
|
|
@@ -4924,7 +4971,6 @@ export type SessionMessageUser = {
|
|
|
4924
4971
|
text: string;
|
|
4925
4972
|
files?: Array<PromptFileAttachment>;
|
|
4926
4973
|
agents?: Array<PromptAgentAttachment>;
|
|
4927
|
-
references?: Array<PromptReferenceAttachment>;
|
|
4928
4974
|
type: "user";
|
|
4929
4975
|
};
|
|
4930
4976
|
export type SessionMessageSynthetic = {
|
|
@@ -5000,6 +5046,7 @@ export type SessionMessageToolStateCompleted = {
|
|
|
5000
5046
|
};
|
|
5001
5047
|
attachments?: Array<PromptFileAttachment>;
|
|
5002
5048
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
5049
|
+
outputPaths?: Array<string>;
|
|
5003
5050
|
structured: {
|
|
5004
5051
|
[key: string]: unknown;
|
|
5005
5052
|
};
|
|
@@ -5080,7 +5127,7 @@ export type SessionMessageCompaction = {
|
|
|
5080
5127
|
type: "compaction";
|
|
5081
5128
|
reason: "auto" | "manual";
|
|
5082
5129
|
summary: string;
|
|
5083
|
-
|
|
5130
|
+
recent: string;
|
|
5084
5131
|
id: string;
|
|
5085
5132
|
metadata?: {
|
|
5086
5133
|
[key: string]: unknown;
|
|
@@ -5097,8 +5144,8 @@ export type ProviderV2Info = {
|
|
|
5097
5144
|
via: "env";
|
|
5098
5145
|
name: string;
|
|
5099
5146
|
} | {
|
|
5100
|
-
via: "
|
|
5101
|
-
|
|
5147
|
+
via: "credential";
|
|
5148
|
+
credentialID: string;
|
|
5102
5149
|
} | {
|
|
5103
5150
|
via: "custom";
|
|
5104
5151
|
data: {
|
|
@@ -5129,37 +5176,75 @@ export type ProviderV2Info = {
|
|
|
5129
5176
|
};
|
|
5130
5177
|
};
|
|
5131
5178
|
};
|
|
5132
|
-
export type
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
resources: Array<string>;
|
|
5137
|
-
save?: Array<string>;
|
|
5138
|
-
metadata?: {
|
|
5139
|
-
[key: string]: unknown;
|
|
5140
|
-
};
|
|
5141
|
-
source?: PermissionV2Source;
|
|
5179
|
+
export type ConnectorWhen = {
|
|
5180
|
+
key: string;
|
|
5181
|
+
op: "eq" | "neq";
|
|
5182
|
+
value: string;
|
|
5142
5183
|
};
|
|
5143
|
-
export type
|
|
5144
|
-
id: string;
|
|
5145
|
-
projectID: string;
|
|
5146
|
-
action: string;
|
|
5147
|
-
resource: string;
|
|
5148
|
-
};
|
|
5149
|
-
export type FileSystemTextContent = {
|
|
5184
|
+
export type ConnectorTextPrompt = {
|
|
5150
5185
|
type: "text";
|
|
5151
|
-
|
|
5152
|
-
|
|
5186
|
+
key: string;
|
|
5187
|
+
message: string;
|
|
5188
|
+
placeholder?: string;
|
|
5189
|
+
when?: ConnectorWhen;
|
|
5153
5190
|
};
|
|
5154
|
-
export type
|
|
5155
|
-
type: "
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
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;
|
|
5159
5245
|
};
|
|
5160
5246
|
export type FileSystemEntry = {
|
|
5161
5247
|
path: string;
|
|
5162
|
-
uri: string;
|
|
5163
5248
|
type: "file" | "directory";
|
|
5164
5249
|
mime: string;
|
|
5165
5250
|
};
|
|
@@ -5197,6 +5282,26 @@ export type QuestionV2Reply = {
|
|
|
5197
5282
|
*/
|
|
5198
5283
|
answers: Array<QuestionV2Answer>;
|
|
5199
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
|
+
};
|
|
5200
5305
|
export type EventMemoryStatus1 = {
|
|
5201
5306
|
id: string;
|
|
5202
5307
|
type: "memory.status";
|
|
@@ -5338,6 +5443,19 @@ export type ModelV2Info1 = {
|
|
|
5338
5443
|
body: {
|
|
5339
5444
|
[key: string]: unknown;
|
|
5340
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
|
+
};
|
|
5341
5459
|
variant?: string;
|
|
5342
5460
|
};
|
|
5343
5461
|
variants: Array<{
|
|
@@ -5348,6 +5466,19 @@ export type ModelV2Info1 = {
|
|
|
5348
5466
|
body: {
|
|
5349
5467
|
[key: string]: unknown;
|
|
5350
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
|
+
};
|
|
5351
5482
|
}>;
|
|
5352
5483
|
time: {
|
|
5353
5484
|
released: number | "NaN" | "Infinity" | "-Infinity";
|
|
@@ -6943,12 +7074,12 @@ export type ProjectDirectoriesResponse = ProjectDirectoriesResponses[keyof Proje
|
|
|
6943
7074
|
export type ExperimentalProjectCopyRemoveData = {
|
|
6944
7075
|
body?: {
|
|
6945
7076
|
directory: string;
|
|
7077
|
+
force: boolean;
|
|
6946
7078
|
};
|
|
6947
7079
|
path: {
|
|
6948
7080
|
projectID: string;
|
|
6949
7081
|
};
|
|
6950
7082
|
query?: {
|
|
6951
|
-
directory?: string;
|
|
6952
7083
|
workspace?: string;
|
|
6953
7084
|
};
|
|
6954
7085
|
url: "/experimental/project/{projectID}/copy";
|
|
@@ -7861,7 +7992,7 @@ export type SessionMessagesResponses = {
|
|
|
7861
7992
|
parts: Array<Part>;
|
|
7862
7993
|
}>;
|
|
7863
7994
|
};
|
|
7864
|
-
export type
|
|
7995
|
+
export type SessionMessagesResponse2 = SessionMessagesResponses[keyof SessionMessagesResponses];
|
|
7865
7996
|
export type SessionPromptData = {
|
|
7866
7997
|
body?: {
|
|
7867
7998
|
messageID?: string;
|
|
@@ -10514,6 +10645,10 @@ export type KiloCloudSessionImportErrors = {
|
|
|
10514
10645
|
* Not found
|
|
10515
10646
|
*/
|
|
10516
10647
|
404: NotFoundError;
|
|
10648
|
+
/**
|
|
10649
|
+
* CloudSessionImportError
|
|
10650
|
+
*/
|
|
10651
|
+
500: CloudSessionImportError;
|
|
10517
10652
|
};
|
|
10518
10653
|
export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
|
|
10519
10654
|
export type KiloCloudSessionImportResponses = {
|
|
@@ -11270,6 +11405,7 @@ export type KilocodeSessionImportSessionData = {
|
|
|
11270
11405
|
partID?: string;
|
|
11271
11406
|
snapshot?: string;
|
|
11272
11407
|
diff?: string;
|
|
11408
|
+
workspace?: "restored" | "snapshots-disabled" | "unavailable";
|
|
11273
11409
|
};
|
|
11274
11410
|
permission?: {
|
|
11275
11411
|
[key: string]: unknown;
|
|
@@ -12247,6 +12383,35 @@ export type V2HealthGetResponses = {
|
|
|
12247
12383
|
};
|
|
12248
12384
|
};
|
|
12249
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];
|
|
12250
12415
|
export type V2AgentListData = {
|
|
12251
12416
|
body?: never;
|
|
12252
12417
|
path?: never;
|
|
@@ -12310,11 +12475,78 @@ export type V2SessionListErrors = {
|
|
|
12310
12475
|
export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors];
|
|
12311
12476
|
export type V2SessionListResponses = {
|
|
12312
12477
|
/**
|
|
12313
|
-
*
|
|
12478
|
+
* SessionsResponse
|
|
12314
12479
|
*/
|
|
12315
|
-
200:
|
|
12480
|
+
200: SessionsResponse;
|
|
12316
12481
|
};
|
|
12317
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];
|
|
12318
12550
|
export type V2SessionPromptData = {
|
|
12319
12551
|
body: {
|
|
12320
12552
|
id?: string;
|
|
@@ -12496,11 +12728,11 @@ export type V2SessionMessagesErrors = {
|
|
|
12496
12728
|
export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors];
|
|
12497
12729
|
export type V2SessionMessagesResponses = {
|
|
12498
12730
|
/**
|
|
12499
|
-
*
|
|
12731
|
+
* SessionMessagesResponse
|
|
12500
12732
|
*/
|
|
12501
|
-
200:
|
|
12733
|
+
200: SessionMessagesResponse;
|
|
12502
12734
|
};
|
|
12503
|
-
export type
|
|
12735
|
+
export type V2SessionMessagesResponse = V2SessionMessagesResponses[keyof V2SessionMessagesResponses];
|
|
12504
12736
|
export type V2ModelListData = {
|
|
12505
12737
|
body?: never;
|
|
12506
12738
|
path?: never;
|
|
@@ -12615,7 +12847,7 @@ export type V2ProviderGetResponses = {
|
|
|
12615
12847
|
};
|
|
12616
12848
|
};
|
|
12617
12849
|
export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses];
|
|
12618
|
-
export type
|
|
12850
|
+
export type V2ConnectorListData = {
|
|
12619
12851
|
body?: never;
|
|
12620
12852
|
path?: never;
|
|
12621
12853
|
query?: {
|
|
@@ -12624,9 +12856,9 @@ export type V2PermissionRequestListData = {
|
|
|
12624
12856
|
workspace?: string;
|
|
12625
12857
|
};
|
|
12626
12858
|
};
|
|
12627
|
-
url: "/api/
|
|
12859
|
+
url: "/api/connector";
|
|
12628
12860
|
};
|
|
12629
|
-
export type
|
|
12861
|
+
export type V2ConnectorListErrors = {
|
|
12630
12862
|
/**
|
|
12631
12863
|
* InvalidRequestError
|
|
12632
12864
|
*/
|
|
@@ -12636,26 +12868,31 @@ export type V2PermissionRequestListErrors = {
|
|
|
12636
12868
|
*/
|
|
12637
12869
|
401: UnauthorizedError;
|
|
12638
12870
|
};
|
|
12639
|
-
export type
|
|
12640
|
-
export type
|
|
12871
|
+
export type V2ConnectorListError = V2ConnectorListErrors[keyof V2ConnectorListErrors];
|
|
12872
|
+
export type V2ConnectorListResponses = {
|
|
12641
12873
|
/**
|
|
12642
12874
|
* Success
|
|
12643
12875
|
*/
|
|
12644
12876
|
200: {
|
|
12645
12877
|
location: LocationInfo;
|
|
12646
|
-
data: Array<
|
|
12878
|
+
data: Array<ConnectorInfo>;
|
|
12647
12879
|
};
|
|
12648
12880
|
};
|
|
12649
|
-
export type
|
|
12650
|
-
export type
|
|
12881
|
+
export type V2ConnectorListResponse = V2ConnectorListResponses[keyof V2ConnectorListResponses];
|
|
12882
|
+
export type V2ConnectorGetData = {
|
|
12651
12883
|
body?: never;
|
|
12652
12884
|
path: {
|
|
12653
|
-
|
|
12885
|
+
connectorID: string;
|
|
12654
12886
|
};
|
|
12655
|
-
query?:
|
|
12656
|
-
|
|
12887
|
+
query?: {
|
|
12888
|
+
location?: {
|
|
12889
|
+
directory?: string;
|
|
12890
|
+
workspace?: string;
|
|
12891
|
+
};
|
|
12892
|
+
};
|
|
12893
|
+
url: "/api/connector/{connectorID}";
|
|
12657
12894
|
};
|
|
12658
|
-
export type
|
|
12895
|
+
export type V2ConnectorGetErrors = {
|
|
12659
12896
|
/**
|
|
12660
12897
|
* InvalidRequestError
|
|
12661
12898
|
*/
|
|
@@ -12664,34 +12901,141 @@ export type V2SessionPermissionListErrors = {
|
|
|
12664
12901
|
* UnauthorizedError
|
|
12665
12902
|
*/
|
|
12666
12903
|
401: UnauthorizedError;
|
|
12904
|
+
};
|
|
12905
|
+
export type V2ConnectorGetError = V2ConnectorGetErrors[keyof V2ConnectorGetErrors];
|
|
12906
|
+
export type V2ConnectorGetResponses = {
|
|
12667
12907
|
/**
|
|
12668
|
-
*
|
|
12908
|
+
* Success
|
|
12669
12909
|
*/
|
|
12670
|
-
|
|
12910
|
+
200: {
|
|
12911
|
+
location: LocationInfo;
|
|
12912
|
+
data: ConnectorInfo;
|
|
12913
|
+
};
|
|
12671
12914
|
};
|
|
12672
|
-
export type
|
|
12673
|
-
export type
|
|
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 = {
|
|
12674
12985
|
/**
|
|
12675
12986
|
* Success
|
|
12676
12987
|
*/
|
|
12677
12988
|
200: {
|
|
12678
|
-
|
|
12989
|
+
location: LocationInfo;
|
|
12990
|
+
data: ConnectorAttempt;
|
|
12679
12991
|
};
|
|
12680
12992
|
};
|
|
12681
|
-
export type
|
|
12682
|
-
export type
|
|
12683
|
-
body
|
|
12684
|
-
|
|
12685
|
-
|
|
12993
|
+
export type V2ConnectorConnectOauthBeginResponse = V2ConnectorConnectOauthBeginResponses[keyof V2ConnectorConnectOauthBeginResponses];
|
|
12994
|
+
export type V2ConnectorConnectOauthCancelData = {
|
|
12995
|
+
body?: never;
|
|
12996
|
+
path: {
|
|
12997
|
+
attemptID: string;
|
|
12686
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;
|
|
12687
13027
|
path: {
|
|
12688
|
-
|
|
12689
|
-
requestID: string;
|
|
13028
|
+
attemptID: string;
|
|
12690
13029
|
};
|
|
12691
|
-
query?:
|
|
12692
|
-
|
|
13030
|
+
query?: {
|
|
13031
|
+
location?: {
|
|
13032
|
+
directory?: string;
|
|
13033
|
+
workspace?: string;
|
|
13034
|
+
};
|
|
13035
|
+
};
|
|
13036
|
+
url: "/api/connector/oauth/{attemptID}";
|
|
12693
13037
|
};
|
|
12694
|
-
export type
|
|
13038
|
+
export type V2ConnectorConnectOauthStatusErrors = {
|
|
12695
13039
|
/**
|
|
12696
13040
|
* InvalidRequestError
|
|
12697
13041
|
*/
|
|
@@ -12700,19 +13044,108 @@ export type V2SessionPermissionReplyErrors = {
|
|
|
12700
13044
|
* UnauthorizedError
|
|
12701
13045
|
*/
|
|
12702
13046
|
401: UnauthorizedError;
|
|
13047
|
+
};
|
|
13048
|
+
export type V2ConnectorConnectOauthStatusError = V2ConnectorConnectOauthStatusErrors[keyof V2ConnectorConnectOauthStatusErrors];
|
|
13049
|
+
export type V2ConnectorConnectOauthStatusResponses = {
|
|
12703
13050
|
/**
|
|
12704
|
-
*
|
|
13051
|
+
* Success
|
|
12705
13052
|
*/
|
|
12706
|
-
|
|
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
|
+
};
|
|
12707
13082
|
};
|
|
12708
|
-
export type
|
|
12709
|
-
export type
|
|
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 = {
|
|
12710
13111
|
/**
|
|
12711
13112
|
* <No Content>
|
|
12712
13113
|
*/
|
|
12713
13114
|
204: void;
|
|
12714
13115
|
};
|
|
12715
|
-
export type
|
|
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];
|
|
12716
13149
|
export type V2PermissionSavedListData = {
|
|
12717
13150
|
body?: never;
|
|
12718
13151
|
path?: never;
|
|
@@ -12767,18 +13200,83 @@ export type V2PermissionSavedRemoveResponses = {
|
|
|
12767
13200
|
204: void;
|
|
12768
13201
|
};
|
|
12769
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];
|
|
12770
13269
|
export type V2FsReadData = {
|
|
12771
13270
|
body?: never;
|
|
12772
13271
|
path?: never;
|
|
12773
|
-
query
|
|
13272
|
+
query?: {
|
|
12774
13273
|
location?: {
|
|
12775
13274
|
directory?: string;
|
|
12776
13275
|
workspace?: string;
|
|
12777
13276
|
};
|
|
12778
|
-
path
|
|
12779
|
-
reference?: string;
|
|
13277
|
+
path?: string;
|
|
12780
13278
|
};
|
|
12781
|
-
url: "/api/fs/read";
|
|
13279
|
+
url: "/api/fs/read/*";
|
|
12782
13280
|
};
|
|
12783
13281
|
export type V2FsReadErrors = {
|
|
12784
13282
|
/**
|
|
@@ -12795,10 +13293,7 @@ export type V2FsReadResponses = {
|
|
|
12795
13293
|
/**
|
|
12796
13294
|
* Success
|
|
12797
13295
|
*/
|
|
12798
|
-
200:
|
|
12799
|
-
location: LocationInfo;
|
|
12800
|
-
data: FileSystemTextContent | FileSystemBinaryContent;
|
|
12801
|
-
};
|
|
13296
|
+
200: Blob | File;
|
|
12802
13297
|
};
|
|
12803
13298
|
export type V2FsReadResponse = V2FsReadResponses[keyof V2FsReadResponses];
|
|
12804
13299
|
export type V2FsListData = {
|
|
@@ -12810,7 +13305,6 @@ export type V2FsListData = {
|
|
|
12810
13305
|
workspace?: string;
|
|
12811
13306
|
};
|
|
12812
13307
|
path?: string;
|
|
12813
|
-
reference?: string;
|
|
12814
13308
|
};
|
|
12815
13309
|
url: "/api/fs/list";
|
|
12816
13310
|
};
|
|
@@ -12835,6 +13329,41 @@ export type V2FsListResponses = {
|
|
|
12835
13329
|
};
|
|
12836
13330
|
};
|
|
12837
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];
|
|
12838
13367
|
export type V2CommandListData = {
|
|
12839
13368
|
body?: never;
|
|
12840
13369
|
path?: never;
|
|
@@ -12960,6 +13489,38 @@ export type V2QuestionRequestListResponses = {
|
|
|
12960
13489
|
};
|
|
12961
13490
|
};
|
|
12962
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];
|
|
12963
13524
|
export type V2SessionQuestionReplyData = {
|
|
12964
13525
|
body: QuestionV2Reply;
|
|
12965
13526
|
path: {
|
|
@@ -12967,7 +13528,7 @@ export type V2SessionQuestionReplyData = {
|
|
|
12967
13528
|
requestID: string;
|
|
12968
13529
|
};
|
|
12969
13530
|
query?: never;
|
|
12970
|
-
url: "/api/session/{sessionID}/question/
|
|
13531
|
+
url: "/api/session/{sessionID}/question/{requestID}/reply";
|
|
12971
13532
|
};
|
|
12972
13533
|
export type V2SessionQuestionReplyErrors = {
|
|
12973
13534
|
/**
|
|
@@ -12981,7 +13542,7 @@ export type V2SessionQuestionReplyErrors = {
|
|
|
12981
13542
|
/**
|
|
12982
13543
|
* SessionNotFoundError | QuestionNotFoundError
|
|
12983
13544
|
*/
|
|
12984
|
-
404:
|
|
13545
|
+
404: QuestionNotFoundError | SessionNotFoundError;
|
|
12985
13546
|
};
|
|
12986
13547
|
export type V2SessionQuestionReplyError = V2SessionQuestionReplyErrors[keyof V2SessionQuestionReplyErrors];
|
|
12987
13548
|
export type V2SessionQuestionReplyResponses = {
|
|
@@ -12998,7 +13559,7 @@ export type V2SessionQuestionRejectData = {
|
|
|
12998
13559
|
requestID: string;
|
|
12999
13560
|
};
|
|
13000
13561
|
query?: never;
|
|
13001
|
-
url: "/api/session/{sessionID}/question/
|
|
13562
|
+
url: "/api/session/{sessionID}/question/{requestID}/reject";
|
|
13002
13563
|
};
|
|
13003
13564
|
export type V2SessionQuestionRejectErrors = {
|
|
13004
13565
|
/**
|
|
@@ -13012,7 +13573,7 @@ export type V2SessionQuestionRejectErrors = {
|
|
|
13012
13573
|
/**
|
|
13013
13574
|
* SessionNotFoundError | QuestionNotFoundError
|
|
13014
13575
|
*/
|
|
13015
|
-
404:
|
|
13576
|
+
404: QuestionNotFoundError | SessionNotFoundError;
|
|
13016
13577
|
};
|
|
13017
13578
|
export type V2SessionQuestionRejectError = V2SessionQuestionRejectErrors[keyof V2SessionQuestionRejectErrors];
|
|
13018
13579
|
export type V2SessionQuestionRejectResponses = {
|
|
@@ -13022,6 +13583,38 @@ export type V2SessionQuestionRejectResponses = {
|
|
|
13022
13583
|
204: void;
|
|
13023
13584
|
};
|
|
13024
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];
|
|
13025
13618
|
export type PtyConnectData = {
|
|
13026
13619
|
body?: never;
|
|
13027
13620
|
path: {
|