@opencode-ai/sdk 0.0.0-next-15079 → 0.0.0-next-15081
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/gen/types.gen.d.ts +130 -3
- 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 = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventAgentUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionAgentSelected | EventSessionModelSelected | EventSessionMoved | EventSessionRenamed | EventSessionForked | EventSessionPromptPromoted | EventSessionPromptAdmitted | EventSessionExecutionStarted | EventSessionExecutionSucceeded | EventSessionExecutionFailed | EventSessionExecutionInterrupted | EventSessionInstructionsUpdated | EventSessionSynthetic | EventSessionSkillActivated | EventSessionShellStarted | EventSessionShellEnded | EventSessionStepStarted | EventSessionStepEnded | EventSessionStepFailed | EventSessionTextStarted | EventSessionTextDelta | EventSessionTextEnded | EventSessionReasoningStarted | EventSessionReasoningDelta | EventSessionReasoningEnded | EventSessionToolInputStarted | EventSessionToolInputDelta | EventSessionToolInputEnded | EventSessionToolCalled | EventSessionToolProgress | EventSessionToolSuccess | EventSessionToolFailed | EventSessionRetryScheduled | EventSessionCompactionAdmitted | EventSessionCompactionStarted | EventSessionCompactionDelta | EventSessionCompactionEnded | EventSessionCompactionFailed | EventSessionRevertStaged | EventSessionRevertCleared | EventSessionRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFilesystemChanged | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventPluginUpdated | EventProjectDirectoriesUpdated | EventCommandUpdated | EventConfigUpdated | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventShellCreated | EventShellExited | EventShellDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventFormCreated | EventFormReplied | EventFormCancelled | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpResourcesChanged | EventMcpStatusChanged | EventCommandExecuted | EventFileEdited | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventAgentUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionAgentSelected | EventSessionModelSelected | EventSessionMoved | EventSessionRenamed | EventSessionUsageUpdated | EventSessionForked | EventSessionPromptPromoted | EventSessionPromptAdmitted | EventSessionExecutionStarted | EventSessionExecutionSucceeded | EventSessionExecutionFailed | EventSessionExecutionInterrupted | EventSessionInstructionsUpdated | EventSessionSynthetic | EventSessionSkillActivated | EventSessionShellStarted | EventSessionShellEnded | EventSessionStepStarted | EventSessionStepEnded | EventSessionStepFailed | EventSessionTextStarted | EventSessionTextDelta | EventSessionTextEnded | EventSessionReasoningStarted | EventSessionReasoningDelta | EventSessionReasoningEnded | EventSessionToolInputStarted | EventSessionToolInputDelta | EventSessionToolInputEnded | EventSessionToolCalled | EventSessionToolProgress | EventSessionToolSuccess | EventSessionToolFailed | EventSessionRetryScheduled | EventSessionCompactionAdmitted | EventSessionCompactionStarted | EventSessionCompactionDelta | EventSessionCompactionEnded | EventSessionCompactionFailed | EventSessionRevertStaged | EventSessionRevertCleared | EventSessionRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFilesystemChanged | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventPluginUpdated | EventProjectDirectoriesUpdated | EventCommandUpdated | EventConfigUpdated | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventShellCreated | EventShellExited | EventShellDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventFormCreated | EventFormReplied | EventFormCancelled | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpResourcesChanged | EventMcpStatusChanged | EventCommandExecuted | EventFileEdited | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -680,6 +680,22 @@ export type GlobalEvent = {
|
|
|
680
680
|
sessionID: string;
|
|
681
681
|
title: string;
|
|
682
682
|
};
|
|
683
|
+
} | {
|
|
684
|
+
id: string;
|
|
685
|
+
type: "session.usage.updated";
|
|
686
|
+
properties: {
|
|
687
|
+
sessionID: string;
|
|
688
|
+
cost: number;
|
|
689
|
+
tokens: {
|
|
690
|
+
input: number;
|
|
691
|
+
output: number;
|
|
692
|
+
reasoning: number;
|
|
693
|
+
cache: {
|
|
694
|
+
read: number;
|
|
695
|
+
write: number;
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
};
|
|
683
699
|
} | {
|
|
684
700
|
id: string;
|
|
685
701
|
type: "session.forked";
|
|
@@ -813,6 +829,16 @@ export type GlobalEvent = {
|
|
|
813
829
|
sessionID: string;
|
|
814
830
|
assistantMessageID: string;
|
|
815
831
|
error: SessionStructuredError;
|
|
832
|
+
cost?: number;
|
|
833
|
+
tokens?: {
|
|
834
|
+
input: number;
|
|
835
|
+
output: number;
|
|
836
|
+
reasoning: number;
|
|
837
|
+
cache: {
|
|
838
|
+
read: number;
|
|
839
|
+
write: number;
|
|
840
|
+
};
|
|
841
|
+
};
|
|
816
842
|
};
|
|
817
843
|
} | {
|
|
818
844
|
id: string;
|
|
@@ -2478,7 +2504,7 @@ export type QuestionRejected2 = {
|
|
|
2478
2504
|
requestID: string;
|
|
2479
2505
|
};
|
|
2480
2506
|
};
|
|
2481
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionForked | SessionPromptPromoted | SessionPromptAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FilesystemChanged | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | FormCreated | FormReplied | FormCancelled | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpResourcesChanged | McpStatusChanged | CommandExecuted | FileEdited | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
|
|
2507
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionForked | SessionPromptPromoted | SessionPromptAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FilesystemChanged | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | FormCreated | FormReplied | FormCancelled | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpResourcesChanged | McpStatusChanged | CommandExecuted | FileEdited | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
|
|
2482
2508
|
export type V2EventStream = string;
|
|
2483
2509
|
export type ForbiddenError = {
|
|
2484
2510
|
_tag: "ForbiddenError";
|
|
@@ -3180,6 +3206,16 @@ export type SyncEventSessionStepFailed = {
|
|
|
3180
3206
|
sessionID: string;
|
|
3181
3207
|
assistantMessageID: string;
|
|
3182
3208
|
error: SessionStructuredError;
|
|
3209
|
+
cost?: number;
|
|
3210
|
+
tokens?: {
|
|
3211
|
+
input: number;
|
|
3212
|
+
output: number;
|
|
3213
|
+
reasoning: number;
|
|
3214
|
+
cache: {
|
|
3215
|
+
read: number;
|
|
3216
|
+
write: number;
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3183
3219
|
};
|
|
3184
3220
|
};
|
|
3185
3221
|
};
|
|
@@ -4196,6 +4232,16 @@ export type SessionStepFailed = {
|
|
|
4196
4232
|
sessionID: string;
|
|
4197
4233
|
assistantMessageID: string;
|
|
4198
4234
|
error: SessionStructuredError;
|
|
4235
|
+
cost?: number;
|
|
4236
|
+
tokens?: {
|
|
4237
|
+
input: number;
|
|
4238
|
+
output: number;
|
|
4239
|
+
reasoning: number;
|
|
4240
|
+
cache: {
|
|
4241
|
+
read: number;
|
|
4242
|
+
write: number;
|
|
4243
|
+
};
|
|
4244
|
+
};
|
|
4199
4245
|
};
|
|
4200
4246
|
};
|
|
4201
4247
|
export type SessionTextStarted = {
|
|
@@ -4997,6 +5043,28 @@ export type MessagePartRemoved = {
|
|
|
4997
5043
|
partID: string;
|
|
4998
5044
|
};
|
|
4999
5045
|
};
|
|
5046
|
+
export type SessionUsageUpdated = {
|
|
5047
|
+
id: string;
|
|
5048
|
+
created: number;
|
|
5049
|
+
metadata?: {
|
|
5050
|
+
[key: string]: unknown;
|
|
5051
|
+
};
|
|
5052
|
+
type: "session.usage.updated";
|
|
5053
|
+
location?: LocationRef;
|
|
5054
|
+
data: {
|
|
5055
|
+
sessionID: string;
|
|
5056
|
+
cost: number;
|
|
5057
|
+
tokens: {
|
|
5058
|
+
input: number;
|
|
5059
|
+
output: number;
|
|
5060
|
+
reasoning: number;
|
|
5061
|
+
cache: {
|
|
5062
|
+
read: number;
|
|
5063
|
+
write: number;
|
|
5064
|
+
};
|
|
5065
|
+
};
|
|
5066
|
+
};
|
|
5067
|
+
};
|
|
5000
5068
|
export type SessionTextDelta = {
|
|
5001
5069
|
id: string;
|
|
5002
5070
|
created: number;
|
|
@@ -5954,6 +6022,23 @@ export type EventSessionRenamed = {
|
|
|
5954
6022
|
title: string;
|
|
5955
6023
|
};
|
|
5956
6024
|
};
|
|
6025
|
+
export type EventSessionUsageUpdated = {
|
|
6026
|
+
id: string;
|
|
6027
|
+
type: "session.usage.updated";
|
|
6028
|
+
properties: {
|
|
6029
|
+
sessionID: string;
|
|
6030
|
+
cost: number;
|
|
6031
|
+
tokens: {
|
|
6032
|
+
input: number;
|
|
6033
|
+
output: number;
|
|
6034
|
+
reasoning: number;
|
|
6035
|
+
cache: {
|
|
6036
|
+
read: number;
|
|
6037
|
+
write: number;
|
|
6038
|
+
};
|
|
6039
|
+
};
|
|
6040
|
+
};
|
|
6041
|
+
};
|
|
5957
6042
|
export type EventSessionForked = {
|
|
5958
6043
|
id: string;
|
|
5959
6044
|
type: "session.forked";
|
|
@@ -6101,6 +6186,16 @@ export type EventSessionStepFailed = {
|
|
|
6101
6186
|
sessionID: string;
|
|
6102
6187
|
assistantMessageID: string;
|
|
6103
6188
|
error: SessionStructuredError;
|
|
6189
|
+
cost?: number;
|
|
6190
|
+
tokens?: {
|
|
6191
|
+
input: number;
|
|
6192
|
+
output: number;
|
|
6193
|
+
reasoning: number;
|
|
6194
|
+
cache: {
|
|
6195
|
+
read: number;
|
|
6196
|
+
write: number;
|
|
6197
|
+
};
|
|
6198
|
+
};
|
|
6104
6199
|
};
|
|
6105
6200
|
};
|
|
6106
6201
|
export type EventSessionTextStarted = {
|
|
@@ -7300,7 +7395,7 @@ export type QuestionToolV2 = {
|
|
|
7300
7395
|
messageID: string;
|
|
7301
7396
|
callID: string;
|
|
7302
7397
|
};
|
|
7303
|
-
export type V2EventV2 = ModelsDevRefreshedV2 | IntegrationUpdatedV2 | IntegrationConnectionUpdatedV2 | CatalogUpdatedV2 | AgentUpdatedV2 | SessionCreatedV2 | SessionUpdatedV2 | SessionDeleted1 | MessageUpdatedV2 | MessageRemovedV2 | MessagePartUpdatedV2 | MessagePartRemovedV2 | SessionAgentSelectedV2 | SessionModelSelectedV2 | SessionMovedV2 | SessionRenamedV2 | SessionDeletedV2 | SessionForkedV2 | SessionPromptPromotedV2 | SessionPromptAdmittedV2 | SessionExecutionStartedV2 | SessionExecutionSucceededV2 | SessionExecutionFailedV2 | SessionExecutionInterruptedV2 | SessionInstructionsUpdatedV2 | SessionSyntheticV2 | SessionSkillActivatedV2 | SessionShellStartedV2 | SessionShellEndedV2 | SessionStepStartedV2 | SessionStepEndedV2 | SessionStepFailedV2 | SessionTextStartedV2 | SessionTextDeltaV2 | SessionTextEndedV2 | SessionReasoningStartedV2 | SessionReasoningDeltaV2 | SessionReasoningEndedV2 | SessionToolInputStartedV2 | SessionToolInputDeltaV2 | SessionToolInputEndedV2 | SessionToolCalledV2 | SessionToolProgressV2 | SessionToolSuccessV2 | SessionToolFailedV2 | SessionRetryScheduledV2 | SessionCompactionAdmittedV2 | SessionCompactionStartedV2 | SessionCompactionDeltaV2 | SessionCompactionEndedV2 | SessionCompactionFailedV2 | SessionRevertStagedV2 | SessionRevertClearedV2 | SessionRevertCommittedV2 | FilesystemChangedV2 | ReferenceUpdatedV2 | PermissionV2AskedV2 | PermissionV2RepliedV2 | PluginAddedV2 | PluginUpdatedV2 | ProjectDirectoriesUpdatedV2 | CommandUpdatedV2 | ConfigUpdatedV2 | SkillUpdatedV2 | PtyCreatedV2 | PtyUpdatedV2 | PtyExitedV2 | PtyDeletedV2 | ShellCreatedV2 | ShellExitedV2 | ShellDeletedV2 | QuestionV2AskedV2 | QuestionV2RepliedV2 | QuestionV2RejectedV2 | FormCreatedV2 | FormRepliedV2 | FormCancelledV2 | TodoUpdatedV2 | SessionStatusV22 | SessionIdleV2 | TuiPromptAppendV2 | TuiCommandExecuteV2 | TuiToastShowV2 | TuiSessionSelectV2 | InstallationUpdatedV2 | InstallationUpdateAvailableV2 | VcsBranchUpdatedV2 | McpStatusChangedV2 | McpResourcesChangedV2 | PermissionAskedV2 | PermissionRepliedV2 | QuestionAskedV2 | QuestionRepliedV2 | QuestionRejectedV2 | SessionErrorV2 | V2EventServerConnected;
|
|
7398
|
+
export type V2EventV2 = ModelsDevRefreshedV2 | IntegrationUpdatedV2 | IntegrationConnectionUpdatedV2 | CatalogUpdatedV2 | AgentUpdatedV2 | SessionCreatedV2 | SessionUpdatedV2 | SessionDeleted1 | MessageUpdatedV2 | MessageRemovedV2 | MessagePartUpdatedV2 | MessagePartRemovedV2 | SessionAgentSelectedV2 | SessionModelSelectedV2 | SessionMovedV2 | SessionRenamedV2 | SessionUsageUpdatedV2 | SessionDeletedV2 | SessionForkedV2 | SessionPromptPromotedV2 | SessionPromptAdmittedV2 | SessionExecutionStartedV2 | SessionExecutionSucceededV2 | SessionExecutionFailedV2 | SessionExecutionInterruptedV2 | SessionInstructionsUpdatedV2 | SessionSyntheticV2 | SessionSkillActivatedV2 | SessionShellStartedV2 | SessionShellEndedV2 | SessionStepStartedV2 | SessionStepEndedV2 | SessionStepFailedV2 | SessionTextStartedV2 | SessionTextDeltaV2 | SessionTextEndedV2 | SessionReasoningStartedV2 | SessionReasoningDeltaV2 | SessionReasoningEndedV2 | SessionToolInputStartedV2 | SessionToolInputDeltaV2 | SessionToolInputEndedV2 | SessionToolCalledV2 | SessionToolProgressV2 | SessionToolSuccessV2 | SessionToolFailedV2 | SessionRetryScheduledV2 | SessionCompactionAdmittedV2 | SessionCompactionStartedV2 | SessionCompactionDeltaV2 | SessionCompactionEndedV2 | SessionCompactionFailedV2 | SessionRevertStagedV2 | SessionRevertClearedV2 | SessionRevertCommittedV2 | FilesystemChangedV2 | ReferenceUpdatedV2 | PermissionV2AskedV2 | PermissionV2RepliedV2 | PluginAddedV2 | PluginUpdatedV2 | ProjectDirectoriesUpdatedV2 | CommandUpdatedV2 | ConfigUpdatedV2 | SkillUpdatedV2 | PtyCreatedV2 | PtyUpdatedV2 | PtyExitedV2 | PtyDeletedV2 | ShellCreatedV2 | ShellExitedV2 | ShellDeletedV2 | QuestionV2AskedV2 | QuestionV2RepliedV2 | QuestionV2RejectedV2 | FormCreatedV2 | FormRepliedV2 | FormCancelledV2 | TodoUpdatedV2 | SessionStatusV22 | SessionIdleV2 | TuiPromptAppendV2 | TuiCommandExecuteV2 | TuiToastShowV2 | TuiSessionSelectV2 | InstallationUpdatedV2 | InstallationUpdateAvailableV2 | VcsBranchUpdatedV2 | McpStatusChangedV2 | McpResourcesChangedV2 | PermissionAskedV2 | PermissionRepliedV2 | QuestionAskedV2 | QuestionRepliedV2 | QuestionRejectedV2 | SessionErrorV2 | V2EventServerConnected;
|
|
7304
7399
|
export type ProjectCopyErrorV2 = {
|
|
7305
7400
|
name: "ProjectCopyError";
|
|
7306
7401
|
data: {
|
|
@@ -7927,6 +8022,16 @@ export type SessionStepFailedV2 = {
|
|
|
7927
8022
|
sessionID: string;
|
|
7928
8023
|
assistantMessageID: string;
|
|
7929
8024
|
error: SessionStructuredError;
|
|
8025
|
+
cost?: number;
|
|
8026
|
+
tokens?: {
|
|
8027
|
+
input: number;
|
|
8028
|
+
output: number;
|
|
8029
|
+
reasoning: number;
|
|
8030
|
+
cache: {
|
|
8031
|
+
read: number;
|
|
8032
|
+
write: number;
|
|
8033
|
+
};
|
|
8034
|
+
};
|
|
7930
8035
|
};
|
|
7931
8036
|
};
|
|
7932
8037
|
export type SessionTextStartedV2 = {
|
|
@@ -8595,6 +8700,28 @@ export type MessagePartRemovedV2 = {
|
|
|
8595
8700
|
partID: string;
|
|
8596
8701
|
};
|
|
8597
8702
|
};
|
|
8703
|
+
export type SessionUsageUpdatedV2 = {
|
|
8704
|
+
id: string;
|
|
8705
|
+
created: number;
|
|
8706
|
+
metadata?: {
|
|
8707
|
+
[key: string]: unknown;
|
|
8708
|
+
};
|
|
8709
|
+
type: "session.usage.updated";
|
|
8710
|
+
location?: LocationRefV2;
|
|
8711
|
+
data: {
|
|
8712
|
+
sessionID: string;
|
|
8713
|
+
cost: number;
|
|
8714
|
+
tokens: {
|
|
8715
|
+
input: number;
|
|
8716
|
+
output: number;
|
|
8717
|
+
reasoning: number;
|
|
8718
|
+
cache: {
|
|
8719
|
+
read: number;
|
|
8720
|
+
write: number;
|
|
8721
|
+
};
|
|
8722
|
+
};
|
|
8723
|
+
};
|
|
8724
|
+
};
|
|
8598
8725
|
export type SessionTextDeltaV2 = {
|
|
8599
8726
|
id: string;
|
|
8600
8727
|
created: number;
|