2834 lines
120 KiB
Go
2834 lines
120 KiB
Go
// Code generated by go run ./gen from the codex-cli 0.163.0 app-server schema. DO NOT EDIT.
|
|
|
|
package codex
|
|
|
|
import "encoding/json"
|
|
|
|
const SchemaVersion = "codex-cli 0.163.0"
|
|
|
|
const (
|
|
MethodInitialize = "initialize"
|
|
MethodThreadStart = "thread/start"
|
|
MethodThreadResume = "thread/resume"
|
|
MethodThreadFork = "thread/fork"
|
|
MethodThreadCompactStart = "thread/compact/start"
|
|
MethodThreadRead = "thread/read"
|
|
MethodTurnStart = "turn/start"
|
|
MethodTurnSteer = "turn/steer"
|
|
MethodTurnInterrupt = "turn/interrupt"
|
|
MethodAccountRateLimitsRead = "account/rateLimits/read"
|
|
MethodError = "error"
|
|
MethodThreadStarted = "thread/started"
|
|
MethodThreadStatusChanged = "thread/status/changed"
|
|
MethodThreadReadStateChanged = "thread/readState/changed"
|
|
MethodThreadArchived = "thread/archived"
|
|
MethodThreadDeleted = "thread/deleted"
|
|
MethodThreadUnarchived = "thread/unarchived"
|
|
MethodThreadClosed = "thread/closed"
|
|
MethodThreadReverted = "thread/reverted"
|
|
MethodSkillsChanged = "skills/changed"
|
|
MethodThreadNameUpdated = "thread/name/updated"
|
|
MethodThreadAttachmentUpdated = "thread/attachment/updated"
|
|
MethodThreadGoalUpdated = "thread/goal/updated"
|
|
MethodThreadPredictionUpdated = "thread/prediction/updated"
|
|
MethodThreadGoalCleared = "thread/goal/cleared"
|
|
MethodThreadQueueChanged = "thread/queue/changed"
|
|
MethodProjectChanged = "project/changed"
|
|
MethodThreadProjectUpdated = "thread/project/updated"
|
|
MethodThreadEnvironmentConnected = "thread/environment/connected"
|
|
MethodThreadEnvironmentDisconnected = "thread/environment/disconnected"
|
|
MethodThreadSettingsUpdated = "thread/settings/updated"
|
|
MethodThreadTokenUsageUpdated = "thread/tokenUsage/updated"
|
|
MethodTurnStarted = "turn/started"
|
|
MethodHookStarted = "hook/started"
|
|
MethodTurnCompleted = "turn/completed"
|
|
MethodHookCompleted = "hook/completed"
|
|
MethodTurnDiffUpdated = "turn/diff/updated"
|
|
MethodTurnPlanUpdated = "turn/plan/updated"
|
|
MethodItemStarted = "item/started"
|
|
MethodItemAutoApprovalReviewStarted = "item/autoApprovalReview/started"
|
|
MethodItemAutoApprovalReviewCompleted = "item/autoApprovalReview/completed"
|
|
MethodAutoApprovalReviewStrictReviewRequired = "autoApprovalReview/strictReviewRequired"
|
|
MethodItemCompleted = "item/completed"
|
|
MethodItemAgentMessageDelta = "item/agentMessage/delta"
|
|
MethodItemPlanDelta = "item/plan/delta"
|
|
MethodCommandExecOutputDelta = "command/exec/outputDelta"
|
|
MethodProcessOutputDelta = "process/outputDelta"
|
|
MethodProcessExited = "process/exited"
|
|
MethodItemCommandExecutionOutputDelta = "item/commandExecution/outputDelta"
|
|
MethodItemCommandExecutionTerminalInteraction = "item/commandExecution/terminalInteraction"
|
|
MethodItemFileChangeOutputDelta = "item/fileChange/outputDelta"
|
|
MethodItemFileChangePatchUpdated = "item/fileChange/patchUpdated"
|
|
MethodServerRequestResolved = "serverRequest/resolved"
|
|
MethodItemMcpToolCallProgress = "item/mcpToolCall/progress"
|
|
MethodMcpServerOauthLoginCompleted = "mcpServer/oauthLogin/completed"
|
|
MethodMcpServerStartupStatusUpdated = "mcpServer/startupStatus/updated"
|
|
MethodMcpServerEventStreamNotification = "mcpServer/event/stream/notification"
|
|
MethodAccountUpdated = "account/updated"
|
|
MethodAccountGatewayOAuthChanged = "account/gatewayOAuth/changed"
|
|
MethodAccountRateLimitsUpdated = "account/rateLimits/updated"
|
|
MethodAppListUpdated = "app/list/updated"
|
|
MethodRemoteControlStatusChanged = "remoteControl/status/changed"
|
|
MethodExternalAgentConfigImportProgress = "externalAgentConfig/import/progress"
|
|
MethodExternalAgentConfigImportCompleted = "externalAgentConfig/import/completed"
|
|
MethodFsChanged = "fs/changed"
|
|
MethodItemReasoningSummaryTextDelta = "item/reasoning/summaryTextDelta"
|
|
MethodItemReasoningSummaryPartAdded = "item/reasoning/summaryPartAdded"
|
|
MethodItemReasoningTextDelta = "item/reasoning/textDelta"
|
|
MethodThreadCompacted = "thread/compacted"
|
|
MethodModelRerouted = "model/rerouted"
|
|
MethodModelVerification = "model/verification"
|
|
MethodModelProviderAuthRecoveryStarted = "modelProvider/authRecoveryStarted"
|
|
MethodModelProviderAuthRecoveryCompleted = "modelProvider/authRecoveryCompleted"
|
|
MethodTurnModerationMetadata = "turn/moderationMetadata"
|
|
MethodModelSafetyBufferingUpdated = "model/safetyBuffering/updated"
|
|
MethodWarning = "warning"
|
|
MethodGuardianWarning = "guardianWarning"
|
|
MethodDeprecationNotice = "deprecationNotice"
|
|
MethodConfigWarning = "configWarning"
|
|
MethodFuzzyFileSearchSessionUpdated = "fuzzyFileSearch/sessionUpdated"
|
|
MethodFuzzyFileSearchSessionCompleted = "fuzzyFileSearch/sessionCompleted"
|
|
MethodThreadRealtimeStarted = "thread/realtime/started"
|
|
MethodThreadRealtimeItemAdded = "thread/realtime/itemAdded"
|
|
MethodThreadRealtimeItemStarted = "thread/realtime/item/started"
|
|
MethodThreadRealtimeItemTranscriptDelta = "thread/realtime/item/transcript/delta"
|
|
MethodThreadRealtimeItemCompleted = "thread/realtime/item/completed"
|
|
MethodThreadRealtimeTranscriptDelta = "thread/realtime/transcript/delta"
|
|
MethodThreadRealtimeTranscriptDone = "thread/realtime/transcript/done"
|
|
MethodThreadRealtimeOutputAudioDelta = "thread/realtime/outputAudio/delta"
|
|
MethodThreadRealtimeSdp = "thread/realtime/sdp"
|
|
MethodThreadRealtimeError = "thread/realtime/error"
|
|
MethodThreadRealtimeClosed = "thread/realtime/closed"
|
|
MethodWindowsWorldWritableWarning = "windows/worldWritableWarning"
|
|
MethodWindowsSandboxSetupCompleted = "windowsSandbox/setupCompleted"
|
|
MethodAccountLoginCompleted = "account/login/completed"
|
|
MethodItemCommandExecutionRequestApproval = "item/commandExecution/requestApproval"
|
|
MethodItemFileChangeRequestApproval = "item/fileChange/requestApproval"
|
|
MethodItemToolRequestUserInput = "item/tool/requestUserInput"
|
|
MethodMcpServerElicitationRequest = "mcpServer/elicitation/request"
|
|
MethodItemPermissionsRequestApproval = "item/permissions/requestApproval"
|
|
MethodItemToolCall = "item/tool/call"
|
|
MethodAccountChatgptAuthTokensRefresh = "account/chatgptAuthTokens/refresh"
|
|
MethodAttestationGenerate = "attestation/generate"
|
|
MethodCurrentTimeRead = "currentTime/read"
|
|
MethodApplyPatchApproval = "applyPatchApproval"
|
|
MethodExecCommandApproval = "execCommandApproval"
|
|
)
|
|
|
|
var clientResults = map[string]func() any{
|
|
MethodInitialize: func() any { return &InitializeResponse{} },
|
|
MethodThreadStart: func() any { return &ThreadStartResponse{} },
|
|
MethodThreadResume: func() any { return &ThreadResumeResponse{} },
|
|
MethodThreadFork: func() any { return &ThreadForkResponse{} },
|
|
MethodThreadCompactStart: func() any { return &ThreadCompactStartResponse{} },
|
|
MethodThreadRead: func() any { return &ThreadReadResponse{} },
|
|
MethodTurnStart: func() any { return &TurnStartResponse{} },
|
|
MethodTurnSteer: func() any { return &TurnSteerResponse{} },
|
|
MethodTurnInterrupt: func() any { return &TurnInterruptResponse{} },
|
|
MethodAccountRateLimitsRead: func() any { return &GetAccountRateLimitsResponse{} },
|
|
}
|
|
|
|
var notificationParams = map[string]func() any{
|
|
MethodError: func() any { return &ErrorNotification{} },
|
|
MethodThreadStarted: func() any { return &ThreadStartedNotification{} },
|
|
MethodThreadStatusChanged: func() any { return &ThreadStatusChangedNotification{} },
|
|
MethodThreadReadStateChanged: func() any { return &ThreadReadStateChangedNotification{} },
|
|
MethodThreadArchived: func() any { return &ThreadArchivedNotification{} },
|
|
MethodThreadDeleted: func() any { return &ThreadDeletedNotification{} },
|
|
MethodThreadUnarchived: func() any { return &ThreadUnarchivedNotification{} },
|
|
MethodThreadClosed: func() any { return &ThreadClosedNotification{} },
|
|
MethodThreadReverted: func() any { return &ThreadRevertedNotification{} },
|
|
MethodSkillsChanged: func() any { return &SkillsChangedNotification{} },
|
|
MethodThreadNameUpdated: func() any { return &ThreadNameUpdatedNotification{} },
|
|
MethodThreadAttachmentUpdated: func() any { return &ThreadAttachmentUpdatedNotification{} },
|
|
MethodThreadGoalUpdated: func() any { return &ThreadGoalUpdatedNotification{} },
|
|
MethodThreadPredictionUpdated: func() any { return &ThreadPredictionUpdatedNotification{} },
|
|
MethodThreadGoalCleared: func() any { return &ThreadGoalClearedNotification{} },
|
|
MethodThreadQueueChanged: func() any { return &ThreadQueueChangedNotification{} },
|
|
MethodProjectChanged: func() any { return &ProjectChangedNotification{} },
|
|
MethodThreadProjectUpdated: func() any { return &ThreadProjectUpdatedNotification{} },
|
|
MethodThreadEnvironmentConnected: func() any { return &EnvironmentConnectionNotification{} },
|
|
MethodThreadEnvironmentDisconnected: func() any { return &EnvironmentConnectionNotification{} },
|
|
MethodThreadSettingsUpdated: func() any { return &ThreadSettingsUpdatedNotification{} },
|
|
MethodThreadTokenUsageUpdated: func() any { return &ThreadTokenUsageUpdatedNotification{} },
|
|
MethodTurnStarted: func() any { return &TurnStartedNotification{} },
|
|
MethodHookStarted: func() any { return &HookStartedNotification{} },
|
|
MethodTurnCompleted: func() any { return &TurnCompletedNotification{} },
|
|
MethodHookCompleted: func() any { return &HookCompletedNotification{} },
|
|
MethodTurnDiffUpdated: func() any { return &TurnDiffUpdatedNotification{} },
|
|
MethodTurnPlanUpdated: func() any { return &TurnPlanUpdatedNotification{} },
|
|
MethodItemStarted: func() any { return &ItemStartedNotification{} },
|
|
MethodItemAutoApprovalReviewStarted: func() any { return &ItemGuardianApprovalReviewStartedNotification{} },
|
|
MethodItemAutoApprovalReviewCompleted: func() any { return &ItemGuardianApprovalReviewCompletedNotification{} },
|
|
MethodAutoApprovalReviewStrictReviewRequired: func() any { return &StrictReviewRequiredNotification{} },
|
|
MethodItemCompleted: func() any { return &ItemCompletedNotification{} },
|
|
MethodItemAgentMessageDelta: func() any { return &AgentMessageDeltaNotification{} },
|
|
MethodItemPlanDelta: func() any { return &PlanDeltaNotification{} },
|
|
MethodCommandExecOutputDelta: func() any { return &CommandExecOutputDeltaNotification{} },
|
|
MethodProcessOutputDelta: func() any { return &ProcessOutputDeltaNotification{} },
|
|
MethodProcessExited: func() any { return &ProcessExitedNotification{} },
|
|
MethodItemCommandExecutionOutputDelta: func() any { return &CommandExecutionOutputDeltaNotification{} },
|
|
MethodItemCommandExecutionTerminalInteraction: func() any { return &TerminalInteractionNotification{} },
|
|
MethodItemFileChangeOutputDelta: func() any { return &FileChangeOutputDeltaNotification{} },
|
|
MethodItemFileChangePatchUpdated: func() any { return &FileChangePatchUpdatedNotification{} },
|
|
MethodServerRequestResolved: func() any { return &ServerRequestResolvedNotification{} },
|
|
MethodItemMcpToolCallProgress: func() any { return &McpToolCallProgressNotification{} },
|
|
MethodMcpServerOauthLoginCompleted: func() any { return &McpServerOauthLoginCompletedNotification{} },
|
|
MethodMcpServerStartupStatusUpdated: func() any { return &McpServerStatusUpdatedNotification{} },
|
|
MethodMcpServerEventStreamNotification: func() any { return &McpServerEventStreamNotification{} },
|
|
MethodAccountUpdated: func() any { return &AccountUpdatedNotification{} },
|
|
MethodAccountGatewayOAuthChanged: func() any { return &GatewayOAuthChangedNotification{} },
|
|
MethodAccountRateLimitsUpdated: func() any { return &AccountRateLimitsUpdatedNotification{} },
|
|
MethodAppListUpdated: func() any { return &AppListUpdatedNotification{} },
|
|
MethodRemoteControlStatusChanged: func() any { return &RemoteControlStatusChangedNotification{} },
|
|
MethodExternalAgentConfigImportProgress: func() any { return &ExternalAgentConfigImportProgressNotification{} },
|
|
MethodExternalAgentConfigImportCompleted: func() any { return &ExternalAgentConfigImportCompletedNotification{} },
|
|
MethodFsChanged: func() any { return &FsChangedNotification{} },
|
|
MethodItemReasoningSummaryTextDelta: func() any { return &ReasoningSummaryTextDeltaNotification{} },
|
|
MethodItemReasoningSummaryPartAdded: func() any { return &ReasoningSummaryPartAddedNotification{} },
|
|
MethodItemReasoningTextDelta: func() any { return &ReasoningTextDeltaNotification{} },
|
|
MethodThreadCompacted: func() any { return &ContextCompactedNotification{} },
|
|
MethodModelRerouted: func() any { return &ModelReroutedNotification{} },
|
|
MethodModelVerification: func() any { return &ModelVerificationNotification{} },
|
|
MethodModelProviderAuthRecoveryStarted: func() any { return &AuthRecoveryNotification{} },
|
|
MethodModelProviderAuthRecoveryCompleted: func() any { return &AuthRecoveryNotification{} },
|
|
MethodTurnModerationMetadata: func() any { return &TurnModerationMetadataNotification{} },
|
|
MethodModelSafetyBufferingUpdated: func() any { return &ModelSafetyBufferingUpdatedNotification{} },
|
|
MethodWarning: func() any { return &WarningNotification{} },
|
|
MethodGuardianWarning: func() any { return &GuardianWarningNotification{} },
|
|
MethodDeprecationNotice: func() any { return &DeprecationNoticeNotification{} },
|
|
MethodConfigWarning: func() any { return &ConfigWarningNotification{} },
|
|
MethodFuzzyFileSearchSessionUpdated: func() any { return &FuzzyFileSearchSessionUpdatedNotification{} },
|
|
MethodFuzzyFileSearchSessionCompleted: func() any { return &FuzzyFileSearchSessionCompletedNotification{} },
|
|
MethodThreadRealtimeStarted: func() any { return &ThreadRealtimeStartedNotification{} },
|
|
MethodThreadRealtimeItemAdded: func() any { return &ThreadRealtimeItemAddedNotification{} },
|
|
MethodThreadRealtimeItemStarted: func() any { return &ThreadRealtimeItemStartedNotification{} },
|
|
MethodThreadRealtimeItemTranscriptDelta: func() any { return &ThreadRealtimeItemTranscriptDeltaNotification{} },
|
|
MethodThreadRealtimeItemCompleted: func() any { return &ThreadRealtimeItemCompletedNotification{} },
|
|
MethodThreadRealtimeTranscriptDelta: func() any { return &ThreadRealtimeTranscriptDeltaNotification{} },
|
|
MethodThreadRealtimeTranscriptDone: func() any { return &ThreadRealtimeTranscriptDoneNotification{} },
|
|
MethodThreadRealtimeOutputAudioDelta: func() any { return &ThreadRealtimeOutputAudioDeltaNotification{} },
|
|
MethodThreadRealtimeSdp: func() any { return &ThreadRealtimeSdpNotification{} },
|
|
MethodThreadRealtimeError: func() any { return &ThreadRealtimeErrorNotification{} },
|
|
MethodThreadRealtimeClosed: func() any { return &ThreadRealtimeClosedNotification{} },
|
|
MethodWindowsWorldWritableWarning: func() any { return &WindowsWorldWritableWarningNotification{} },
|
|
MethodWindowsSandboxSetupCompleted: func() any { return &WindowsSandboxSetupCompletedNotification{} },
|
|
MethodAccountLoginCompleted: func() any { return &AccountLoginCompletedNotification{} },
|
|
}
|
|
|
|
var serverRequestParams = map[string]func() any{
|
|
MethodItemCommandExecutionRequestApproval: func() any { return &CommandExecutionRequestApprovalParams{} },
|
|
MethodItemFileChangeRequestApproval: func() any { return &FileChangeRequestApprovalParams{} },
|
|
MethodItemToolRequestUserInput: func() any { return &ToolRequestUserInputParams{} },
|
|
MethodMcpServerElicitationRequest: func() any { return &McpServerElicitationRequestParams{} },
|
|
MethodItemPermissionsRequestApproval: func() any { return &PermissionsRequestApprovalParams{} },
|
|
MethodItemToolCall: func() any { return &DynamicToolCallParams{} },
|
|
MethodAccountChatgptAuthTokensRefresh: func() any { return &ChatgptAuthTokensRefreshParams{} },
|
|
MethodAttestationGenerate: func() any { return &AttestationGenerateParams{} },
|
|
MethodCurrentTimeRead: func() any { return &CurrentTimeReadParams{} },
|
|
MethodApplyPatchApproval: func() any { return &ApplyPatchApprovalParams{} },
|
|
MethodExecCommandApproval: func() any { return &ExecCommandApprovalParams{} },
|
|
}
|
|
|
|
var serverRequestResponses = map[string]func() any{
|
|
MethodItemCommandExecutionRequestApproval: func() any { return &CommandExecutionRequestApprovalResponse{} },
|
|
MethodItemFileChangeRequestApproval: func() any { return &FileChangeRequestApprovalResponse{} },
|
|
MethodItemToolRequestUserInput: func() any { return &ToolRequestUserInputResponse{} },
|
|
MethodMcpServerElicitationRequest: func() any { return &McpServerElicitationRequestResponse{} },
|
|
MethodItemPermissionsRequestApproval: func() any { return &PermissionsRequestApprovalResponse{} },
|
|
MethodItemToolCall: func() any { return &DynamicToolCallResponse{} },
|
|
MethodAccountChatgptAuthTokensRefresh: func() any { return &ChatgptAuthTokensRefreshResponse{} },
|
|
MethodAttestationGenerate: func() any { return &AttestationGenerateResponse{} },
|
|
MethodCurrentTimeRead: func() any { return &CurrentTimeReadResponse{} },
|
|
MethodApplyPatchApproval: func() any { return &ApplyPatchApprovalResponse{} },
|
|
MethodExecCommandApproval: func() any { return &ExecCommandApprovalResponse{} },
|
|
}
|
|
|
|
const (
|
|
ApprovalsReviewerUser ApprovalsReviewer = "user"
|
|
ApprovalsReviewerAutoReview ApprovalsReviewer = "auto_review"
|
|
ApprovalsReviewerGuardianSubagent ApprovalsReviewer = "guardian_subagent"
|
|
)
|
|
|
|
const (
|
|
DynamicToolSpecTypeFunction = "function"
|
|
DynamicToolSpecTypeNamespace = "namespace"
|
|
)
|
|
|
|
const (
|
|
ThreadHistoryModeLegacy ThreadHistoryMode = "legacy"
|
|
ThreadHistoryModePaginated ThreadHistoryMode = "paginated"
|
|
)
|
|
|
|
const (
|
|
PersonalityNone Personality = "none"
|
|
PersonalityFriendly Personality = "friendly"
|
|
PersonalityPragmatic Personality = "pragmatic"
|
|
)
|
|
|
|
const (
|
|
SandboxModeReadOnly SandboxMode = "read-only"
|
|
SandboxModeWorkspaceWrite SandboxMode = "workspace-write"
|
|
SandboxModeDangerFullAccess SandboxMode = "danger-full-access"
|
|
)
|
|
|
|
const (
|
|
ThreadStartSourceStartup ThreadStartSource = "startup"
|
|
ThreadStartSourceClear ThreadStartSource = "clear"
|
|
)
|
|
|
|
const (
|
|
NetworkAccessRestricted NetworkAccess = "restricted"
|
|
NetworkAccessEnabled NetworkAccess = "enabled"
|
|
)
|
|
|
|
const (
|
|
SandboxPolicyTypeDangerFullAccess = "dangerFullAccess"
|
|
SandboxPolicyTypeReadOnly = "readOnly"
|
|
SandboxPolicyTypeExternalSandbox = "externalSandbox"
|
|
SandboxPolicyTypeWorkspaceWrite = "workspaceWrite"
|
|
)
|
|
|
|
const (
|
|
ThreadActiveFlagWaitingOnApproval ThreadActiveFlag = "waitingOnApproval"
|
|
ThreadActiveFlagWaitingOnUserInput ThreadActiveFlag = "waitingOnUserInput"
|
|
)
|
|
|
|
const (
|
|
ThreadStatusTypeNotLoaded = "notLoaded"
|
|
ThreadStatusTypeIdle = "idle"
|
|
ThreadStatusTypeSystemError = "systemError"
|
|
ThreadStatusTypeActive = "active"
|
|
)
|
|
|
|
const (
|
|
WebSearchActionTypeSearch = "search"
|
|
WebSearchActionTypeOpenPage = "openPage"
|
|
WebSearchActionTypeFindInPage = "findInPage"
|
|
WebSearchActionTypeOther = "other"
|
|
)
|
|
|
|
const (
|
|
CollabAgentStatusPendingInit CollabAgentStatus = "pendingInit"
|
|
CollabAgentStatusRunning CollabAgentStatus = "running"
|
|
CollabAgentStatusInterrupted CollabAgentStatus = "interrupted"
|
|
CollabAgentStatusCompleted CollabAgentStatus = "completed"
|
|
CollabAgentStatusErrored CollabAgentStatus = "errored"
|
|
CollabAgentStatusShutdown CollabAgentStatus = "shutdown"
|
|
CollabAgentStatusNotFound CollabAgentStatus = "notFound"
|
|
)
|
|
|
|
const (
|
|
PatchChangeKindTypeAdd = "add"
|
|
PatchChangeKindTypeDelete = "delete"
|
|
PatchChangeKindTypeUpdate = "update"
|
|
)
|
|
|
|
const (
|
|
CommandActionTypeRead = "read"
|
|
CommandActionTypeListFiles = "listFiles"
|
|
CommandActionTypeSearch = "search"
|
|
CommandActionTypeUnknown = "unknown"
|
|
)
|
|
|
|
const (
|
|
ImageDetailAuto ImageDetail = "auto"
|
|
ImageDetailLow ImageDetail = "low"
|
|
ImageDetailHigh ImageDetail = "high"
|
|
ImageDetailOriginal ImageDetail = "original"
|
|
)
|
|
|
|
const (
|
|
UserInputTypeText = "text"
|
|
UserInputTypeImage = "image"
|
|
UserInputTypeLocalImage = "localImage"
|
|
UserInputTypeAudio = "audio"
|
|
UserInputTypeLocalAudio = "localAudio"
|
|
UserInputTypeSkill = "skill"
|
|
UserInputTypeMention = "mention"
|
|
)
|
|
|
|
const (
|
|
DynamicToolCallOutputContentItemTypeInputText = "inputText"
|
|
DynamicToolCallOutputContentItemTypeInputImage = "inputImage"
|
|
DynamicToolCallOutputContentItemTypeInputAudio = "inputAudio"
|
|
)
|
|
|
|
const (
|
|
AgentMessageDeliveryAsync AgentMessageDelivery = "async"
|
|
)
|
|
|
|
const (
|
|
SubAgentActivityKindStarted SubAgentActivityKind = "started"
|
|
SubAgentActivityKindInteracted SubAgentActivityKind = "interacted"
|
|
SubAgentActivityKindInterrupted SubAgentActivityKind = "interrupted"
|
|
SubAgentActivityKindCompleted SubAgentActivityKind = "completed"
|
|
)
|
|
|
|
const (
|
|
McpAppDisplayModeInline McpAppDisplayMode = "inline"
|
|
McpAppDisplayModeFullscreen McpAppDisplayMode = "fullscreen"
|
|
)
|
|
|
|
const (
|
|
MessagePhaseCommentary MessagePhase = "commentary"
|
|
MessagePhasePartialAnswer MessagePhase = "partial_answer"
|
|
MessagePhaseFinalAnswer MessagePhase = "final_answer"
|
|
)
|
|
|
|
const (
|
|
CommandExecutionSourceAgent CommandExecutionSource = "agent"
|
|
CommandExecutionSourceUserShell CommandExecutionSource = "userShell"
|
|
CommandExecutionSourceUnifiedExecStartup CommandExecutionSource = "unifiedExecStartup"
|
|
CommandExecutionSourceUnifiedExecInteraction CommandExecutionSource = "unifiedExecInteraction"
|
|
)
|
|
|
|
const (
|
|
CommandExecutionStatusInProgress CommandExecutionStatus = "inProgress"
|
|
CommandExecutionStatusCompleted CommandExecutionStatus = "completed"
|
|
CommandExecutionStatusFailed CommandExecutionStatus = "failed"
|
|
CommandExecutionStatusDeclined CommandExecutionStatus = "declined"
|
|
)
|
|
|
|
const (
|
|
PatchApplyStatusInProgress PatchApplyStatus = "inProgress"
|
|
PatchApplyStatusCompleted PatchApplyStatus = "completed"
|
|
PatchApplyStatusFailed PatchApplyStatus = "failed"
|
|
PatchApplyStatusDeclined PatchApplyStatus = "declined"
|
|
)
|
|
|
|
const (
|
|
McpToolCallStatusInProgress McpToolCallStatus = "inProgress"
|
|
McpToolCallStatusCompleted McpToolCallStatus = "completed"
|
|
McpToolCallStatusFailed McpToolCallStatus = "failed"
|
|
)
|
|
|
|
const (
|
|
DynamicToolCallStatusInProgress DynamicToolCallStatus = "inProgress"
|
|
DynamicToolCallStatusCompleted DynamicToolCallStatus = "completed"
|
|
DynamicToolCallStatusFailed DynamicToolCallStatus = "failed"
|
|
)
|
|
|
|
const (
|
|
CollabAgentToolCallStatusInProgress CollabAgentToolCallStatus = "inProgress"
|
|
CollabAgentToolCallStatusCompleted CollabAgentToolCallStatus = "completed"
|
|
CollabAgentToolCallStatusFailed CollabAgentToolCallStatus = "failed"
|
|
CollabAgentToolCallStatusInterrupted CollabAgentToolCallStatus = "interrupted"
|
|
)
|
|
|
|
const (
|
|
CollabAgentToolSpawnAgent CollabAgentTool = "spawnAgent"
|
|
CollabAgentToolSendInput CollabAgentTool = "sendInput"
|
|
CollabAgentToolResumeAgent CollabAgentTool = "resumeAgent"
|
|
CollabAgentToolWait CollabAgentTool = "wait"
|
|
CollabAgentToolCloseAgent CollabAgentTool = "closeAgent"
|
|
CollabAgentToolSendMessage CollabAgentTool = "sendMessage"
|
|
CollabAgentToolFollowupTask CollabAgentTool = "followupTask"
|
|
CollabAgentToolInterruptAgent CollabAgentTool = "interruptAgent"
|
|
CollabAgentToolListAgents CollabAgentTool = "listAgents"
|
|
)
|
|
|
|
const (
|
|
ThreadItemTypeUserMessage = "userMessage"
|
|
ThreadItemTypeHookPrompt = "hookPrompt"
|
|
ThreadItemTypeAgentMessage = "agentMessage"
|
|
ThreadItemTypeFunctionCallOutput = "functionCallOutput"
|
|
ThreadItemTypePlan = "plan"
|
|
ThreadItemTypeReasoning = "reasoning"
|
|
ThreadItemTypeCommandExecution = "commandExecution"
|
|
ThreadItemTypeFileChange = "fileChange"
|
|
ThreadItemTypeMcpToolCall = "mcpToolCall"
|
|
ThreadItemTypeDynamicToolCall = "dynamicToolCall"
|
|
ThreadItemTypeCollabAgentToolCall = "collabAgentToolCall"
|
|
ThreadItemTypeSubAgentActivity = "subAgentActivity"
|
|
ThreadItemTypeWebSearch = "webSearch"
|
|
ThreadItemTypeImageView = "imageView"
|
|
ThreadItemTypeSleep = "sleep"
|
|
ThreadItemTypeImageGeneration = "imageGeneration"
|
|
ThreadItemTypeEnteredReviewMode = "enteredReviewMode"
|
|
ThreadItemTypeExitedReviewMode = "exitedReviewMode"
|
|
ThreadItemTypeContextCompaction = "contextCompaction"
|
|
)
|
|
|
|
const (
|
|
TurnItemsViewNotLoaded TurnItemsView = "notLoaded"
|
|
TurnItemsViewSummary TurnItemsView = "summary"
|
|
TurnItemsViewFull TurnItemsView = "full"
|
|
)
|
|
|
|
const (
|
|
TurnStatusCompleted TurnStatus = "completed"
|
|
TurnStatusInterrupted TurnStatus = "interrupted"
|
|
TurnStatusFailed TurnStatus = "failed"
|
|
TurnStatusInProgress TurnStatus = "inProgress"
|
|
)
|
|
|
|
const (
|
|
ResponsesApiWebSearchActionTypeSearch = "search"
|
|
ResponsesApiWebSearchActionTypeOpenPage = "open_page"
|
|
ResponsesApiWebSearchActionTypeFindInPage = "find_in_page"
|
|
ResponsesApiWebSearchActionTypeOther = "other"
|
|
)
|
|
|
|
const (
|
|
ContentItemTypeInputText = "input_text"
|
|
ContentItemTypeInputImage = "input_image"
|
|
ContentItemTypeInputAudio = "input_audio"
|
|
ContentItemTypeOutputText = "output_text"
|
|
)
|
|
|
|
const (
|
|
AgentMessageInputContentTypeInputText = "input_text"
|
|
AgentMessageInputContentTypeEncryptedContent = "encrypted_content"
|
|
)
|
|
|
|
const (
|
|
ReasoningItemContentTypeReasoningText = "reasoning_text"
|
|
ReasoningItemContentTypeText = "text"
|
|
)
|
|
|
|
const (
|
|
LocalShellStatusCompleted LocalShellStatus = "completed"
|
|
LocalShellStatusInProgress LocalShellStatus = "in_progress"
|
|
LocalShellStatusIncomplete LocalShellStatus = "incomplete"
|
|
)
|
|
|
|
const (
|
|
ResponseItemTypeAdditionalTools = "additional_tools"
|
|
ResponseItemTypeMessage = "message"
|
|
ResponseItemTypeAgentMessage = "agent_message"
|
|
ResponseItemTypeReasoning = "reasoning"
|
|
ResponseItemTypeLocalShellCall = "local_shell_call"
|
|
ResponseItemTypeFunctionCall = "function_call"
|
|
ResponseItemTypeToolSearchCall = "tool_search_call"
|
|
ResponseItemTypeFunctionCallOutput = "function_call_output"
|
|
ResponseItemTypeCustomToolCall = "custom_tool_call"
|
|
ResponseItemTypeCustomToolCallOutput = "custom_tool_call_output"
|
|
ResponseItemTypeToolSearchOutput = "tool_search_output"
|
|
ResponseItemTypeWebSearchCall = "web_search_call"
|
|
ResponseItemTypeImageGenerationCall = "image_generation_call"
|
|
ResponseItemTypeCompaction = "compaction"
|
|
ResponseItemTypeConfigurationUpdate = "configuration_update"
|
|
ResponseItemTypeCompactionTrigger = "compaction_trigger"
|
|
ResponseItemTypeContextCompaction = "context_compaction"
|
|
ResponseItemTypeOther = "other"
|
|
)
|
|
|
|
const (
|
|
SortDirectionAsc SortDirection = "asc"
|
|
SortDirectionDesc SortDirection = "desc"
|
|
)
|
|
|
|
const (
|
|
ModeKindPlan ModeKind = "plan"
|
|
ModeKindDefault ModeKind = "default"
|
|
)
|
|
|
|
const (
|
|
ThreadUnreadPositionTypeThreadStart = "threadStart"
|
|
ThreadUnreadPositionTypeTurn = "turn"
|
|
)
|
|
|
|
const (
|
|
AdditionalContextKindUntrusted AdditionalContextKind = "untrusted"
|
|
AdditionalContextKindApplication AdditionalContextKind = "application"
|
|
)
|
|
|
|
const (
|
|
CyberAccessProgramStandard CyberAccessProgram = "standard"
|
|
CyberAccessProgramDaybreakBlue CyberAccessProgram = "daybreakBlue"
|
|
CyberAccessProgramDaybreakRed CyberAccessProgram = "daybreakRed"
|
|
)
|
|
|
|
const (
|
|
ReasoningSummaryAuto ReasoningSummary = "auto"
|
|
ReasoningSummaryConcise ReasoningSummary = "concise"
|
|
ReasoningSummaryDetailed ReasoningSummary = "detailed"
|
|
ReasoningSummaryNone ReasoningSummary = "none"
|
|
)
|
|
|
|
const (
|
|
RateLimitResetTypeCodexRateLimits RateLimitResetType = "codexRateLimits"
|
|
RateLimitResetTypeUnknown RateLimitResetType = "unknown"
|
|
)
|
|
|
|
const (
|
|
RateLimitResetCreditStatusAvailable RateLimitResetCreditStatus = "available"
|
|
RateLimitResetCreditStatusRedeeming RateLimitResetCreditStatus = "redeeming"
|
|
RateLimitResetCreditStatusRedeemed RateLimitResetCreditStatus = "redeemed"
|
|
RateLimitResetCreditStatusUnknown RateLimitResetCreditStatus = "unknown"
|
|
)
|
|
|
|
const (
|
|
PlanTypeFree PlanType = "free"
|
|
PlanTypeGo PlanType = "go"
|
|
PlanTypePlus PlanType = "plus"
|
|
PlanTypePro PlanType = "pro"
|
|
PlanTypeProlite PlanType = "prolite"
|
|
PlanTypePromax PlanType = "promax"
|
|
PlanTypeTeam PlanType = "team"
|
|
PlanTypeSelfServeBusinessProlite PlanType = "self_serve_business_prolite"
|
|
PlanTypeSelfServeBusinessUsageBased PlanType = "self_serve_business_usage_based"
|
|
PlanTypeBusiness PlanType = "business"
|
|
PlanTypeEnt26 PlanType = "ent26"
|
|
PlanTypeEnterpriseCbpAutomation PlanType = "enterprise_cbp_automation"
|
|
PlanTypeEnterpriseCbpUsageBased PlanType = "enterprise_cbp_usage_based"
|
|
PlanTypeEnterprise PlanType = "enterprise"
|
|
PlanTypeEdu PlanType = "edu"
|
|
PlanTypeEduPlus PlanType = "edu_plus"
|
|
PlanTypeEduPro PlanType = "edu_pro"
|
|
PlanTypeUnknown PlanType = "unknown"
|
|
)
|
|
|
|
const (
|
|
RateLimitReachedTypeRateLimitReached RateLimitReachedType = "rate_limit_reached"
|
|
RateLimitReachedTypeWorkspaceOwnerCreditsDepleted RateLimitReachedType = "workspace_owner_credits_depleted"
|
|
RateLimitReachedTypeWorkspaceMemberCreditsDepleted RateLimitReachedType = "workspace_member_credits_depleted"
|
|
RateLimitReachedTypeWorkspaceOwnerUsageLimitReached RateLimitReachedType = "workspace_owner_usage_limit_reached"
|
|
RateLimitReachedTypeWorkspaceMemberUsageLimitReached RateLimitReachedType = "workspace_member_usage_limit_reached"
|
|
)
|
|
|
|
const (
|
|
ThreadAttachmentOperationCreated ThreadAttachmentOperation = "created"
|
|
ThreadAttachmentOperationDeleted ThreadAttachmentOperation = "deleted"
|
|
)
|
|
|
|
const (
|
|
ThreadGoalStatusActive ThreadGoalStatus = "active"
|
|
ThreadGoalStatusPaused ThreadGoalStatus = "paused"
|
|
ThreadGoalStatusBlocked ThreadGoalStatus = "blocked"
|
|
ThreadGoalStatusUsageLimited ThreadGoalStatus = "usageLimited"
|
|
ThreadGoalStatusBudgetLimited ThreadGoalStatus = "budgetLimited"
|
|
ThreadGoalStatusComplete ThreadGoalStatus = "complete"
|
|
)
|
|
|
|
const (
|
|
ThreadPredictionResultTypeCompleted = "completed"
|
|
ThreadPredictionResultTypeFailed = "failed"
|
|
)
|
|
|
|
const (
|
|
ProjectChangeTypeCreated ProjectChangeType = "created"
|
|
ProjectChangeTypeUpdated ProjectChangeType = "updated"
|
|
ProjectChangeTypeDeleted ProjectChangeType = "deleted"
|
|
)
|
|
|
|
const (
|
|
HookOutputEntryKindWarning HookOutputEntryKind = "warning"
|
|
HookOutputEntryKindStop HookOutputEntryKind = "stop"
|
|
HookOutputEntryKindFeedback HookOutputEntryKind = "feedback"
|
|
HookOutputEntryKindContext HookOutputEntryKind = "context"
|
|
HookOutputEntryKindError HookOutputEntryKind = "error"
|
|
)
|
|
|
|
const (
|
|
HookEventNamePreToolUse HookEventName = "preToolUse"
|
|
HookEventNamePermissionRequest HookEventName = "permissionRequest"
|
|
HookEventNamePostToolUse HookEventName = "postToolUse"
|
|
HookEventNamePreCompact HookEventName = "preCompact"
|
|
HookEventNamePostCompact HookEventName = "postCompact"
|
|
HookEventNameSessionStart HookEventName = "sessionStart"
|
|
HookEventNameSessionEnd HookEventName = "sessionEnd"
|
|
HookEventNameUserPromptSubmit HookEventName = "userPromptSubmit"
|
|
HookEventNameSubagentStart HookEventName = "subagentStart"
|
|
HookEventNameSubagentStop HookEventName = "subagentStop"
|
|
HookEventNameStop HookEventName = "stop"
|
|
HookEventNameInterrupt HookEventName = "interrupt"
|
|
)
|
|
|
|
const (
|
|
HookExecutionModeSync HookExecutionMode = "sync"
|
|
HookExecutionModeAsync HookExecutionMode = "async"
|
|
)
|
|
|
|
const (
|
|
HookHandlerTypeCommand HookHandlerType = "command"
|
|
HookHandlerTypeMcpTool HookHandlerType = "mcpTool"
|
|
HookHandlerTypePrompt HookHandlerType = "prompt"
|
|
HookHandlerTypeAgent HookHandlerType = "agent"
|
|
)
|
|
|
|
const (
|
|
HookScopeThread HookScope = "thread"
|
|
HookScopeTurn HookScope = "turn"
|
|
)
|
|
|
|
const (
|
|
HookSourceSystem HookSource = "system"
|
|
HookSourceUser HookSource = "user"
|
|
HookSourceProject HookSource = "project"
|
|
HookSourceMdm HookSource = "mdm"
|
|
HookSourceSessionFlags HookSource = "sessionFlags"
|
|
HookSourcePlugin HookSource = "plugin"
|
|
HookSourceCloudRequirements HookSource = "cloudRequirements"
|
|
HookSourceCloudManagedConfig HookSource = "cloudManagedConfig"
|
|
HookSourceLegacyManagedConfigFile HookSource = "legacyManagedConfigFile"
|
|
HookSourceLegacyManagedConfigMdm HookSource = "legacyManagedConfigMdm"
|
|
HookSourceUnknown HookSource = "unknown"
|
|
)
|
|
|
|
const (
|
|
HookRunStatusRunning HookRunStatus = "running"
|
|
HookRunStatusCompleted HookRunStatus = "completed"
|
|
HookRunStatusFailed HookRunStatus = "failed"
|
|
HookRunStatusBlocked HookRunStatus = "blocked"
|
|
HookRunStatusStopped HookRunStatus = "stopped"
|
|
)
|
|
|
|
const (
|
|
TurnPlanStepStatusPending TurnPlanStepStatus = "pending"
|
|
TurnPlanStepStatusInProgress TurnPlanStepStatus = "inProgress"
|
|
TurnPlanStepStatusCompleted TurnPlanStepStatus = "completed"
|
|
)
|
|
|
|
const (
|
|
FileSystemAccessModeRead FileSystemAccessMode = "read"
|
|
FileSystemAccessModeWrite FileSystemAccessMode = "write"
|
|
FileSystemAccessModeDeny FileSystemAccessMode = "deny"
|
|
)
|
|
|
|
const (
|
|
FileSystemPathTypePath = "path"
|
|
FileSystemPathTypeGlobPattern = "glob_pattern"
|
|
FileSystemPathTypeSpecial = "special"
|
|
)
|
|
|
|
const (
|
|
NetworkApprovalProtocolHttp NetworkApprovalProtocol = "http"
|
|
NetworkApprovalProtocolHttps NetworkApprovalProtocol = "https"
|
|
NetworkApprovalProtocolSocks5Tcp NetworkApprovalProtocol = "socks5Tcp"
|
|
NetworkApprovalProtocolSocks5Udp NetworkApprovalProtocol = "socks5Udp"
|
|
)
|
|
|
|
const (
|
|
GuardianCommandSourceShell GuardianCommandSource = "shell"
|
|
GuardianCommandSourceUnifiedExec GuardianCommandSource = "unifiedExec"
|
|
)
|
|
|
|
const (
|
|
GuardianApprovalReviewActionTypeCommand = "command"
|
|
GuardianApprovalReviewActionTypeExecve = "execve"
|
|
GuardianApprovalReviewActionTypeWriteStdin = "writeStdin"
|
|
GuardianApprovalReviewActionTypeApplyPatch = "applyPatch"
|
|
GuardianApprovalReviewActionTypeNetworkAccess = "networkAccess"
|
|
GuardianApprovalReviewActionTypeMcpToolCall = "mcpToolCall"
|
|
GuardianApprovalReviewActionTypeRequestPermissions = "requestPermissions"
|
|
)
|
|
|
|
const (
|
|
GuardianRiskLevelLow GuardianRiskLevel = "low"
|
|
GuardianRiskLevelMedium GuardianRiskLevel = "medium"
|
|
GuardianRiskLevelHigh GuardianRiskLevel = "high"
|
|
GuardianRiskLevelCritical GuardianRiskLevel = "critical"
|
|
)
|
|
|
|
const (
|
|
GuardianApprovalReviewStatusInProgress GuardianApprovalReviewStatus = "inProgress"
|
|
GuardianApprovalReviewStatusApproved GuardianApprovalReviewStatus = "approved"
|
|
GuardianApprovalReviewStatusDenied GuardianApprovalReviewStatus = "denied"
|
|
GuardianApprovalReviewStatusTimedOut GuardianApprovalReviewStatus = "timedOut"
|
|
GuardianApprovalReviewStatusAborted GuardianApprovalReviewStatus = "aborted"
|
|
)
|
|
|
|
const (
|
|
GuardianUserAuthorizationUnknown GuardianUserAuthorization = "unknown"
|
|
GuardianUserAuthorizationLow GuardianUserAuthorization = "low"
|
|
GuardianUserAuthorizationMedium GuardianUserAuthorization = "medium"
|
|
GuardianUserAuthorizationHigh GuardianUserAuthorization = "high"
|
|
)
|
|
|
|
const (
|
|
AutoReviewDecisionSourceAgent AutoReviewDecisionSource = "agent"
|
|
)
|
|
|
|
const (
|
|
CommandExecOutputStreamStdout CommandExecOutputStream = "stdout"
|
|
CommandExecOutputStreamStderr CommandExecOutputStream = "stderr"
|
|
)
|
|
|
|
const (
|
|
ProcessOutputStreamStdout ProcessOutputStream = "stdout"
|
|
ProcessOutputStreamStderr ProcessOutputStream = "stderr"
|
|
)
|
|
|
|
const (
|
|
McpServerStartupFailureReasonReauthenticationRequired McpServerStartupFailureReason = "reauthenticationRequired"
|
|
)
|
|
|
|
const (
|
|
McpServerStartupStateStarting McpServerStartupState = "starting"
|
|
McpServerStartupStateReady McpServerStartupState = "ready"
|
|
McpServerStartupStateFailed McpServerStartupState = "failed"
|
|
McpServerStartupStateCancelled McpServerStartupState = "cancelled"
|
|
)
|
|
|
|
const (
|
|
AuthModeApikey AuthMode = "apikey"
|
|
AuthModeChatgpt AuthMode = "chatgpt"
|
|
AuthModeChatgptAuthTokens AuthMode = "chatgptAuthTokens"
|
|
AuthModeHeaders AuthMode = "headers"
|
|
AuthModeAgentIdentity AuthMode = "agentIdentity"
|
|
AuthModePersonalAccessToken AuthMode = "personalAccessToken"
|
|
AuthModeBedrockApiKey AuthMode = "bedrockApiKey"
|
|
AuthModeBedrockAccessKeys AuthMode = "bedrockAccessKeys"
|
|
)
|
|
|
|
const (
|
|
GatewayOAuthStatusNotReady GatewayOAuthStatus = "notReady"
|
|
GatewayOAuthStatusStarted GatewayOAuthStatus = "started"
|
|
GatewayOAuthStatusSucceeded GatewayOAuthStatus = "succeeded"
|
|
GatewayOAuthStatusFailed GatewayOAuthStatus = "failed"
|
|
)
|
|
|
|
const (
|
|
RemoteControlConnectionStatusDisabled RemoteControlConnectionStatus = "disabled"
|
|
RemoteControlConnectionStatusConnecting RemoteControlConnectionStatus = "connecting"
|
|
RemoteControlConnectionStatusConnected RemoteControlConnectionStatus = "connected"
|
|
RemoteControlConnectionStatusErrored RemoteControlConnectionStatus = "errored"
|
|
)
|
|
|
|
const (
|
|
ExternalAgentConfigMigrationItemTypeAGENTSMD ExternalAgentConfigMigrationItemType = "AGENTS_MD"
|
|
ExternalAgentConfigMigrationItemTypeCONFIG ExternalAgentConfigMigrationItemType = "CONFIG"
|
|
ExternalAgentConfigMigrationItemTypeSKILLS ExternalAgentConfigMigrationItemType = "SKILLS"
|
|
ExternalAgentConfigMigrationItemTypePLUGINS ExternalAgentConfigMigrationItemType = "PLUGINS"
|
|
ExternalAgentConfigMigrationItemTypeMCPSERVERCONFIG ExternalAgentConfigMigrationItemType = "MCP_SERVER_CONFIG"
|
|
ExternalAgentConfigMigrationItemTypeSUBAGENTS ExternalAgentConfigMigrationItemType = "SUBAGENTS"
|
|
ExternalAgentConfigMigrationItemTypeHOOKS ExternalAgentConfigMigrationItemType = "HOOKS"
|
|
ExternalAgentConfigMigrationItemTypeCOMMANDS ExternalAgentConfigMigrationItemType = "COMMANDS"
|
|
ExternalAgentConfigMigrationItemTypeMEMORY ExternalAgentConfigMigrationItemType = "MEMORY"
|
|
ExternalAgentConfigMigrationItemTypeSESSIONS ExternalAgentConfigMigrationItemType = "SESSIONS"
|
|
)
|
|
|
|
const (
|
|
ModelRerouteReasonHighRiskCyberActivity ModelRerouteReason = "highRiskCyberActivity"
|
|
)
|
|
|
|
const (
|
|
ModelVerificationTrustedAccessForCyber ModelVerification = "trustedAccessForCyber"
|
|
)
|
|
|
|
const (
|
|
FuzzyFileSearchMatchTypeFile FuzzyFileSearchMatchType = "file"
|
|
FuzzyFileSearchMatchTypeDirectory FuzzyFileSearchMatchType = "directory"
|
|
)
|
|
|
|
const (
|
|
RealtimeConversationVersionV1 RealtimeConversationVersion = "v1"
|
|
RealtimeConversationVersionV2 RealtimeConversationVersion = "v2"
|
|
RealtimeConversationVersionV3 RealtimeConversationVersion = "v3"
|
|
)
|
|
|
|
const (
|
|
ThreadRealtimeSessionOutcomeEnded ThreadRealtimeSessionOutcome = "ended"
|
|
ThreadRealtimeSessionOutcomeFailed ThreadRealtimeSessionOutcome = "failed"
|
|
)
|
|
|
|
const (
|
|
ThreadRealtimeBemItemPresentationTypeWholeItem = "wholeItem"
|
|
ThreadRealtimeBemItemPresentationTypeInlineMarkdown = "inlineMarkdown"
|
|
ThreadRealtimeBemItemPresentationTypeInlineVisualization = "inlineVisualization"
|
|
)
|
|
|
|
const (
|
|
ThreadRealtimeTranscriptRoleUser ThreadRealtimeTranscriptRole = "user"
|
|
ThreadRealtimeTranscriptRoleAssistant ThreadRealtimeTranscriptRole = "assistant"
|
|
)
|
|
|
|
const (
|
|
ThreadRealtimeItemTypeRealtimeSessionStarted = "realtimeSessionStarted"
|
|
ThreadRealtimeItemTypeTranscriptSegment = "transcriptSegment"
|
|
ThreadRealtimeItemTypeBemItemPromoted = "bemItemPromoted"
|
|
ThreadRealtimeItemTypeRealtimeSessionClosed = "realtimeSessionClosed"
|
|
)
|
|
|
|
const (
|
|
WindowsSandboxSetupModeElevated WindowsSandboxSetupMode = "elevated"
|
|
WindowsSandboxSetupModeUnelevated WindowsSandboxSetupMode = "unelevated"
|
|
)
|
|
|
|
const (
|
|
DesktopOnboardingEntrypointLifeSciences DesktopOnboardingEntrypoint = "life_sciences"
|
|
)
|
|
|
|
const (
|
|
CommandExecutionApprovalKindCommand CommandExecutionApprovalKind = "command"
|
|
CommandExecutionApprovalKindWriteStdin CommandExecutionApprovalKind = "writeStdin"
|
|
)
|
|
|
|
const (
|
|
NetworkPolicyRuleActionAllow NetworkPolicyRuleAction = "allow"
|
|
NetworkPolicyRuleActionDeny NetworkPolicyRuleAction = "deny"
|
|
)
|
|
|
|
const (
|
|
FileChangeApprovalDecisionAccept FileChangeApprovalDecision = "accept"
|
|
FileChangeApprovalDecisionAcceptForSession FileChangeApprovalDecision = "acceptForSession"
|
|
FileChangeApprovalDecisionDecline FileChangeApprovalDecision = "decline"
|
|
FileChangeApprovalDecisionCancel FileChangeApprovalDecision = "cancel"
|
|
)
|
|
|
|
const (
|
|
McpElicitationStringFormatEmail McpElicitationStringFormat = "email"
|
|
McpElicitationStringFormatUri McpElicitationStringFormat = "uri"
|
|
McpElicitationStringFormatDate McpElicitationStringFormat = "date"
|
|
McpElicitationStringFormatDateTime McpElicitationStringFormat = "date-time"
|
|
)
|
|
|
|
const (
|
|
McpElicitationStringTypeString McpElicitationStringType = "string"
|
|
)
|
|
|
|
const (
|
|
McpElicitationArrayTypeArray McpElicitationArrayType = "array"
|
|
)
|
|
|
|
const (
|
|
McpElicitationNumberTypeNumber McpElicitationNumberType = "number"
|
|
McpElicitationNumberTypeInteger McpElicitationNumberType = "integer"
|
|
)
|
|
|
|
const (
|
|
McpElicitationBooleanTypeBoolean McpElicitationBooleanType = "boolean"
|
|
)
|
|
|
|
const (
|
|
McpElicitationObjectTypeObject McpElicitationObjectType = "object"
|
|
)
|
|
|
|
const (
|
|
McpServerElicitationActionAccept McpServerElicitationAction = "accept"
|
|
McpServerElicitationActionDecline McpServerElicitationAction = "decline"
|
|
McpServerElicitationActionCancel McpServerElicitationAction = "cancel"
|
|
)
|
|
|
|
const (
|
|
PermissionGrantScopeTurn PermissionGrantScope = "turn"
|
|
PermissionGrantScopeSession PermissionGrantScope = "session"
|
|
)
|
|
|
|
const (
|
|
ChatgptAuthTokensRefreshReasonUnauthorized ChatgptAuthTokensRefreshReason = "unauthorized"
|
|
)
|
|
|
|
const (
|
|
FileChangeTypeAdd = "add"
|
|
FileChangeTypeDelete = "delete"
|
|
FileChangeTypeUpdate = "update"
|
|
)
|
|
|
|
const (
|
|
ParsedCommandTypeRead = "read"
|
|
ParsedCommandTypeListFiles = "list_files"
|
|
ParsedCommandTypeSearch = "search"
|
|
ParsedCommandTypeUnknown = "unknown"
|
|
)
|
|
|
|
type InitializeCapabilities struct {
|
|
ExperimentalApi bool `json:"experimentalApi,omitempty"`
|
|
ExplicitGatewayOauth bool `json:"explicitGatewayOauth,omitempty"`
|
|
Extensions map[string]any `json:"extensions,omitempty"`
|
|
McpServerOpenaiFormElicitation bool `json:"mcpServerOpenaiFormElicitation,omitempty"`
|
|
OptOutNotificationMethods []string `json:"optOutNotificationMethods,omitempty"`
|
|
RequestAttestation bool `json:"requestAttestation,omitempty"`
|
|
}
|
|
|
|
type ClientInfo struct {
|
|
Name string `json:"name"`
|
|
Title string `json:"title,omitempty"`
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
type InitializeParams struct {
|
|
Capabilities *InitializeCapabilities `json:"capabilities,omitempty"`
|
|
ClientInfo ClientInfo `json:"clientInfo"`
|
|
}
|
|
|
|
type AbsolutePathBuf string
|
|
|
|
type InitializeResponse struct {
|
|
CodexHome AbsolutePathBuf `json:"codexHome"`
|
|
PlatformFamily string `json:"platformFamily"`
|
|
PlatformOs string `json:"platformOs"`
|
|
UserAgent string `json:"userAgent"`
|
|
}
|
|
|
|
type AskForApproval = json.RawMessage
|
|
|
|
type ApprovalsReviewer string
|
|
|
|
type DynamicToolNamespaceTool struct {
|
|
DeferLoading bool `json:"deferLoading,omitempty"`
|
|
Description string `json:"description"`
|
|
InputSchema json.RawMessage `json:"inputSchema"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type DynamicToolSpec struct {
|
|
DeferLoading bool `json:"deferLoading,omitempty"`
|
|
Description string `json:"description"`
|
|
InputSchema json.RawMessage `json:"inputSchema,omitempty"`
|
|
Name string `json:"name"`
|
|
Tools []DynamicToolNamespaceTool `json:"tools,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type LegacyAppPathString string
|
|
|
|
type TurnEnvironmentParams struct {
|
|
Cwd LegacyAppPathString `json:"cwd"`
|
|
EnvironmentID string `json:"environmentId"`
|
|
RuntimeWorkspaceRoots []LegacyAppPathString `json:"runtimeWorkspaceRoots,omitempty"`
|
|
}
|
|
|
|
type ThreadHistoryMode string
|
|
|
|
type MultiAgentMode = json.RawMessage
|
|
|
|
type Personality string
|
|
|
|
type SandboxMode string
|
|
|
|
type CapabilityRootLocation struct {
|
|
EnvironmentID string `json:"environmentId"`
|
|
Path string `json:"path"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type SelectedCapabilityRoot struct {
|
|
ID string `json:"id"`
|
|
Location CapabilityRootLocation `json:"location"`
|
|
}
|
|
|
|
type ThreadStartSource string
|
|
|
|
type ThreadSource string
|
|
|
|
type ThreadStartParams struct {
|
|
AllowProviderModelFallback bool `json:"allowProviderModelFallback,omitempty"`
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy,omitempty"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer,omitempty"`
|
|
BaseInstructions string `json:"baseInstructions,omitempty"`
|
|
Config map[string]any `json:"config,omitempty"`
|
|
Cwd string `json:"cwd,omitempty"`
|
|
DaybreakEnabled bool `json:"daybreakEnabled,omitempty"`
|
|
DeveloperInstructions string `json:"developerInstructions,omitempty"`
|
|
DynamicTools []DynamicToolSpec `json:"dynamicTools,omitempty"`
|
|
Environments []TurnEnvironmentParams `json:"environments,omitempty"`
|
|
Ephemeral bool `json:"ephemeral,omitempty"`
|
|
ExperimentalRawEvents bool `json:"experimentalRawEvents,omitempty"`
|
|
HistoryMode ThreadHistoryMode `json:"historyMode,omitempty"`
|
|
MockExperimentalField string `json:"mockExperimentalField,omitempty"`
|
|
Model string `json:"model,omitempty"`
|
|
ModelProvider string `json:"modelProvider,omitempty"`
|
|
MultiAgentMode MultiAgentMode `json:"multiAgentMode,omitempty"`
|
|
Permissions string `json:"permissions,omitempty"`
|
|
Personality Personality `json:"personality,omitempty"`
|
|
ProjectID string `json:"projectId,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
Sandbox SandboxMode `json:"sandbox,omitempty"`
|
|
SelectedCapabilityRoots []SelectedCapabilityRoot `json:"selectedCapabilityRoots,omitempty"`
|
|
ServiceName string `json:"serviceName,omitempty"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
SessionStartSource ThreadStartSource `json:"sessionStartSource,omitempty"`
|
|
ThreadSource ThreadSource `json:"threadSource,omitempty"`
|
|
}
|
|
|
|
type ActivePermissionProfile struct {
|
|
Extends string `json:"extends,omitempty"`
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
type ReasoningEffort string
|
|
|
|
type NetworkAccess string
|
|
|
|
type SandboxPolicy struct {
|
|
ExcludeSlashTmp bool `json:"excludeSlashTmp,omitempty"`
|
|
ExcludeTmpdirEnvVar bool `json:"excludeTmpdirEnvVar,omitempty"`
|
|
NetworkAccess json.RawMessage `json:"networkAccess,omitempty"`
|
|
Type string `json:"type"`
|
|
WritableRoots []AbsolutePathBuf `json:"writableRoots,omitempty"`
|
|
}
|
|
|
|
type ThreadEnvironment struct {
|
|
Cwd LegacyAppPathString `json:"cwd"`
|
|
EnvironmentID string `json:"environmentId"`
|
|
RuntimeWorkspaceRoots []LegacyAppPathString `json:"runtimeWorkspaceRoots"`
|
|
}
|
|
|
|
type ThreadExtra = map[string]any
|
|
|
|
type GitInfo struct {
|
|
Branch string `json:"branch,omitempty"`
|
|
OriginURL string `json:"originUrl,omitempty"`
|
|
Sha string `json:"sha,omitempty"`
|
|
}
|
|
|
|
type ThreadSectionAppearance struct {
|
|
Color string `json:"color,omitempty"`
|
|
Icon string `json:"icon,omitempty"`
|
|
}
|
|
|
|
type ThreadSection struct {
|
|
Appearance *ThreadSectionAppearance `json:"appearance,omitempty"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type SessionSource = json.RawMessage
|
|
|
|
type ThreadActiveFlag string
|
|
|
|
type ThreadStatus struct {
|
|
ActiveFlags []ThreadActiveFlag `json:"activeFlags,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type CodexErrorInfo = json.RawMessage
|
|
|
|
type MisalignmentSteer struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type MisalignmentErrorDetails struct {
|
|
DetailedExplanation string `json:"detailedExplanation,omitempty"`
|
|
ErrorType string `json:"errorType,omitempty"`
|
|
ReviewTarget string `json:"reviewTarget,omitempty"`
|
|
Steer *MisalignmentSteer `json:"steer,omitempty"`
|
|
}
|
|
|
|
type TurnError struct {
|
|
AdditionalDetails string `json:"additionalDetails,omitempty"`
|
|
CodexErrorInfo CodexErrorInfo `json:"codexErrorInfo,omitempty"`
|
|
Message string `json:"message"`
|
|
Misalignment *MisalignmentErrorDetails `json:"misalignment,omitempty"`
|
|
}
|
|
|
|
type WebSearchAction struct {
|
|
Pattern string `json:"pattern,omitempty"`
|
|
Queries []string `json:"queries,omitempty"`
|
|
Query string `json:"query,omitempty"`
|
|
Type string `json:"type"`
|
|
URL string `json:"url,omitempty"`
|
|
}
|
|
|
|
type CollabAgentStatus string
|
|
|
|
type CollabAgentState struct {
|
|
Message string `json:"message,omitempty"`
|
|
Status CollabAgentStatus `json:"status"`
|
|
}
|
|
|
|
type McpToolCallAppContext struct {
|
|
ActionName string `json:"actionName,omitempty"`
|
|
AppName string `json:"appName,omitempty"`
|
|
ConnectorID string `json:"connectorId"`
|
|
LinkID string `json:"linkId,omitempty"`
|
|
ResourceUri string `json:"resourceUri,omitempty"`
|
|
}
|
|
|
|
type PatchChangeKind struct {
|
|
MovePath string `json:"move_path,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type FileUpdateChange struct {
|
|
Diff string `json:"diff"`
|
|
Kind PatchChangeKind `json:"kind"`
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
type CommandAction struct {
|
|
Command string `json:"command"`
|
|
Name string `json:"name,omitempty"`
|
|
Path json.RawMessage `json:"path,omitempty"`
|
|
Query string `json:"query,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ImageDetail string
|
|
|
|
type ByteRange struct {
|
|
End int64 `json:"end"`
|
|
Start int64 `json:"start"`
|
|
}
|
|
|
|
type TextElement struct {
|
|
ByteRange ByteRange `json:"byteRange"`
|
|
Placeholder string `json:"placeholder,omitempty"`
|
|
}
|
|
|
|
type UserInput struct {
|
|
Detail ImageDetail `json:"detail,omitempty"`
|
|
FileID string `json:"fileId,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
TextElements []TextElement `json:"text_elements,omitempty"`
|
|
Type string `json:"type"`
|
|
URL string `json:"url,omitempty"`
|
|
}
|
|
|
|
type DynamicToolCallOutputContentItem struct {
|
|
AudioURL string `json:"audioUrl,omitempty"`
|
|
ImageURL string `json:"imageUrl,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type AgentMessageDelivery string
|
|
|
|
type McpToolCallError struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type ImageGenerationFailure struct {
|
|
LimitID string `json:"limitId"`
|
|
ResetsAt int64 `json:"resetsAt,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type HookPromptFragment struct {
|
|
HookRunID string `json:"hookRunId"`
|
|
Text string `json:"text"`
|
|
}
|
|
|
|
type SubAgentActivityKind string
|
|
|
|
type McpAppDisplayMode string
|
|
|
|
type McpAppUi struct {
|
|
PreferredModelDisplayMode McpAppDisplayMode `json:"preferredModelDisplayMode"`
|
|
ResourceUri string `json:"resourceUri"`
|
|
}
|
|
|
|
type MemoryCitationEntry struct {
|
|
LineEnd int64 `json:"lineEnd"`
|
|
LineStart int64 `json:"lineStart"`
|
|
Note string `json:"note"`
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
type MemoryCitation struct {
|
|
Entries []MemoryCitationEntry `json:"entries"`
|
|
ThreadIDs []string `json:"threadIds"`
|
|
}
|
|
|
|
type FunctionCallOutputBody = json.RawMessage
|
|
|
|
type MessagePhase string
|
|
|
|
type AsyncUserInputQuestion struct {
|
|
Options []string `json:"options,omitempty"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type McpToolCallResult struct {
|
|
Meta json.RawMessage `json:"_meta,omitempty"`
|
|
Content []json.RawMessage `json:"content"`
|
|
StructuredContent json.RawMessage `json:"structuredContent,omitempty"`
|
|
}
|
|
|
|
type CommandExecutionSource string
|
|
|
|
type CommandExecutionStatus string
|
|
|
|
type PatchApplyStatus string
|
|
|
|
type McpToolCallStatus string
|
|
|
|
type DynamicToolCallStatus string
|
|
|
|
type CollabAgentToolCallStatus string
|
|
|
|
type CollabAgentTool string
|
|
|
|
type ThreadItem struct {
|
|
Action *WebSearchAction `json:"action,omitempty"`
|
|
AgentPath string `json:"agentPath,omitempty"`
|
|
AgentThreadID string `json:"agentThreadId,omitempty"`
|
|
AgentsStates map[string]CollabAgentState `json:"agentsStates,omitempty"`
|
|
AggregatedOutput string `json:"aggregatedOutput,omitempty"`
|
|
AppContext *McpToolCallAppContext `json:"appContext,omitempty"`
|
|
Arguments json.RawMessage `json:"arguments,omitempty"`
|
|
Changes []FileUpdateChange `json:"changes,omitempty"`
|
|
ClientID string `json:"clientId,omitempty"`
|
|
Command string `json:"command,omitempty"`
|
|
CommandActions []CommandAction `json:"commandActions,omitempty"`
|
|
Content json.RawMessage `json:"content,omitempty"`
|
|
ContentItems []DynamicToolCallOutputContentItem `json:"contentItems,omitempty"`
|
|
Cwd LegacyAppPathString `json:"cwd,omitempty"`
|
|
Delivery AgentMessageDelivery `json:"delivery,omitempty"`
|
|
DurationMs int64 `json:"durationMs,omitempty"`
|
|
Error *McpToolCallError `json:"error,omitempty"`
|
|
ExitCode int64 `json:"exitCode,omitempty"`
|
|
Failure *ImageGenerationFailure `json:"failure,omitempty"`
|
|
Fragments []HookPromptFragment `json:"fragments,omitempty"`
|
|
ID string `json:"id"`
|
|
Kind SubAgentActivityKind `json:"kind,omitempty"`
|
|
McpAppResourceUri string `json:"mcpAppResourceUri,omitempty"`
|
|
McpAppUi *McpAppUi `json:"mcpAppUi,omitempty"`
|
|
MemoryCitation *MemoryCitation `json:"memoryCitation,omitempty"`
|
|
Model string `json:"model,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
Namespace string `json:"namespace,omitempty"`
|
|
Output FunctionCallOutputBody `json:"output,omitempty"`
|
|
Path LegacyAppPathString `json:"path,omitempty"`
|
|
Phase MessagePhase `json:"phase,omitempty"`
|
|
PluginID string `json:"pluginId,omitempty"`
|
|
ProcessID string `json:"processId,omitempty"`
|
|
Prompt string `json:"prompt,omitempty"`
|
|
Query string `json:"query,omitempty"`
|
|
Questions []AsyncUserInputQuestion `json:"questions,omitempty"`
|
|
ReadOnlyHint bool `json:"readOnlyHint,omitempty"`
|
|
ReasoningEffort ReasoningEffort `json:"reasoningEffort,omitempty"`
|
|
ReceiverThreadIDs []string `json:"receiverThreadIds,omitempty"`
|
|
Result json.RawMessage `json:"result,omitempty"`
|
|
Results []json.RawMessage `json:"results,omitempty"`
|
|
Review string `json:"review,omitempty"`
|
|
RevisedPrompt string `json:"revisedPrompt,omitempty"`
|
|
SavedPath AbsolutePathBuf `json:"savedPath,omitempty"`
|
|
ScriptPath string `json:"scriptPath,omitempty"`
|
|
SenderThreadID string `json:"senderThreadId,omitempty"`
|
|
Server string `json:"server,omitempty"`
|
|
Source CommandExecutionSource `json:"source,omitempty"`
|
|
Status json.RawMessage `json:"status,omitempty"`
|
|
Success bool `json:"success,omitempty"`
|
|
Summary []string `json:"summary,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
Tool json.RawMessage `json:"tool,omitempty"`
|
|
TransparentBackground bool `json:"transparentBackground,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type TurnItemsView string
|
|
|
|
type TurnStatus string
|
|
|
|
type Turn struct {
|
|
CompletedAt int64 `json:"completedAt,omitempty"`
|
|
DurationMs int64 `json:"durationMs,omitempty"`
|
|
Error *TurnError `json:"error,omitempty"`
|
|
ID string `json:"id"`
|
|
Items []ThreadItem `json:"items"`
|
|
ItemsView TurnItemsView `json:"itemsView,omitempty"`
|
|
RootTurnID string `json:"rootTurnId,omitempty"`
|
|
StartedAt int64 `json:"startedAt,omitempty"`
|
|
Status TurnStatus `json:"status"`
|
|
}
|
|
|
|
type Thread struct {
|
|
AgentNickname string `json:"agentNickname,omitempty"`
|
|
AgentRole string `json:"agentRole,omitempty"`
|
|
CanAcceptDirectInput bool `json:"canAcceptDirectInput,omitempty"`
|
|
CliVersion string `json:"cliVersion"`
|
|
CreatedAt int64 `json:"createdAt"`
|
|
Cwd AbsolutePathBuf `json:"cwd"`
|
|
DaybreakEnabled bool `json:"daybreakEnabled,omitempty"`
|
|
Environments []ThreadEnvironment `json:"environments,omitempty"`
|
|
Ephemeral bool `json:"ephemeral"`
|
|
Extra ThreadExtra `json:"extra,omitempty"`
|
|
ForkedFromID string `json:"forkedFromId,omitempty"`
|
|
GitInfo *GitInfo `json:"gitInfo,omitempty"`
|
|
HistoryMode ThreadHistoryMode `json:"historyMode,omitempty"`
|
|
ID string `json:"id"`
|
|
Model string `json:"model,omitempty"`
|
|
ModelProvider string `json:"modelProvider"`
|
|
Name string `json:"name,omitempty"`
|
|
Originator string `json:"originator,omitempty"`
|
|
ParentThreadID string `json:"parentThreadId,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Preview string `json:"preview"`
|
|
ProjectID string `json:"projectId,omitempty"`
|
|
ReasoningEffort ReasoningEffort `json:"reasoningEffort,omitempty"`
|
|
RecencyAt int64 `json:"recencyAt,omitempty"`
|
|
Section *ThreadSection `json:"section,omitempty"`
|
|
SectionEnteredAt int64 `json:"sectionEnteredAt,omitempty"`
|
|
SessionID string `json:"sessionId"`
|
|
Source SessionSource `json:"source"`
|
|
Status ThreadStatus `json:"status"`
|
|
ThreadSource ThreadSource `json:"threadSource,omitempty"`
|
|
Turns []Turn `json:"turns"`
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
}
|
|
|
|
type ThreadStartResponse struct {
|
|
ActivePermissionProfile *ActivePermissionProfile `json:"activePermissionProfile,omitempty"`
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer"`
|
|
Cwd AbsolutePathBuf `json:"cwd"`
|
|
DisabledPluginIDs []string `json:"disabledPluginIds,omitempty"`
|
|
InstructionSources []LegacyAppPathString `json:"instructionSources,omitempty"`
|
|
Model string `json:"model"`
|
|
ModelProvider string `json:"modelProvider"`
|
|
MultiAgentMode MultiAgentMode `json:"multiAgentMode,omitempty"`
|
|
ReasoningEffort ReasoningEffort `json:"reasoningEffort,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
Sandbox SandboxPolicy `json:"sandbox"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
Thread Thread `json:"thread"`
|
|
}
|
|
|
|
type LocalShellAction struct {
|
|
Command []string `json:"command"`
|
|
Env map[string]string `json:"env,omitempty"`
|
|
TimeoutMs int64 `json:"timeout_ms,omitempty"`
|
|
Type string `json:"type"`
|
|
User string `json:"user,omitempty"`
|
|
WorkingDirectory string `json:"working_directory,omitempty"`
|
|
}
|
|
|
|
type ResponsesApiWebSearchAction struct {
|
|
Pattern string `json:"pattern,omitempty"`
|
|
Queries []string `json:"queries,omitempty"`
|
|
Query string `json:"query,omitempty"`
|
|
Type string `json:"type"`
|
|
URL string `json:"url,omitempty"`
|
|
}
|
|
|
|
type ContentItem struct {
|
|
Annotations []json.RawMessage `json:"annotations,omitempty"`
|
|
AudioURL string `json:"audio_url,omitempty"`
|
|
Detail ImageDetail `json:"detail,omitempty"`
|
|
FileID string `json:"file_id,omitempty"`
|
|
ImageURL string `json:"image_url,omitempty"`
|
|
Logprobs []json.RawMessage `json:"logprobs,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type AgentMessageInputContent struct {
|
|
EncryptedContent string `json:"encrypted_content,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ReasoningItemContent struct {
|
|
Text string `json:"text"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type InternalChatMessageMetadataPassthrough struct {
|
|
TurnID string `json:"turn_id,omitempty"`
|
|
}
|
|
|
|
type ConfigurationReasoning struct {
|
|
Effort ReasoningEffort `json:"effort"`
|
|
}
|
|
|
|
type LocalShellStatus string
|
|
|
|
type ReasoningItemReasoningSummary struct {
|
|
Text string `json:"text"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ResponseItem struct {
|
|
Action json.RawMessage `json:"action,omitempty"`
|
|
Arguments json.RawMessage `json:"arguments,omitempty"`
|
|
Author string `json:"author,omitempty"`
|
|
CallID string `json:"call_id,omitempty"`
|
|
Content json.RawMessage `json:"content,omitempty"`
|
|
EncryptedContent string `json:"encrypted_content,omitempty"`
|
|
EncryptedFunctionArgs []string `json:"encrypted_function_args,omitempty"`
|
|
Execution string `json:"execution,omitempty"`
|
|
ID string `json:"id,omitempty"`
|
|
Input string `json:"input,omitempty"`
|
|
InternalChatMessageMetadataPassthrough *InternalChatMessageMetadataPassthrough `json:"internal_chat_message_metadata_passthrough,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
Namespace string `json:"namespace,omitempty"`
|
|
Output FunctionCallOutputBody `json:"output,omitempty"`
|
|
Phase MessagePhase `json:"phase,omitempty"`
|
|
Reasoning *ConfigurationReasoning `json:"reasoning,omitempty"`
|
|
Recipient string `json:"recipient,omitempty"`
|
|
Result string `json:"result,omitempty"`
|
|
RevisedPrompt string `json:"revised_prompt,omitempty"`
|
|
Role string `json:"role,omitempty"`
|
|
Status json.RawMessage `json:"status,omitempty"`
|
|
Summary []ReasoningItemReasoningSummary `json:"summary,omitempty"`
|
|
Tools []json.RawMessage `json:"tools,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type SortDirection string
|
|
|
|
type ThreadResumeInitialTurnsPageParams struct {
|
|
ItemsView TurnItemsView `json:"itemsView,omitempty"`
|
|
Limit int64 `json:"limit,omitempty"`
|
|
SortDirection SortDirection `json:"sortDirection,omitempty"`
|
|
}
|
|
|
|
type ThreadResumeParams struct {
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy,omitempty"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer,omitempty"`
|
|
BaseInstructions string `json:"baseInstructions,omitempty"`
|
|
Config map[string]any `json:"config,omitempty"`
|
|
Cwd string `json:"cwd,omitempty"`
|
|
DeveloperInstructions string `json:"developerInstructions,omitempty"`
|
|
ExcludeTurns bool `json:"excludeTurns,omitempty"`
|
|
History []ResponseItem `json:"history,omitempty"`
|
|
InitialTurnsPage *ThreadResumeInitialTurnsPageParams `json:"initialTurnsPage,omitempty"`
|
|
Model string `json:"model,omitempty"`
|
|
ModelProvider string `json:"modelProvider,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Permissions string `json:"permissions,omitempty"`
|
|
Personality Personality `json:"personality,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
Sandbox SandboxMode `json:"sandbox,omitempty"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ModeKind string
|
|
|
|
type Settings struct {
|
|
DeveloperInstructions string `json:"developer_instructions,omitempty"`
|
|
Model string `json:"model"`
|
|
ReasoningEffort ReasoningEffort `json:"reasoning_effort,omitempty"`
|
|
}
|
|
|
|
type CollaborationMode struct {
|
|
Mode ModeKind `json:"mode"`
|
|
Settings Settings `json:"settings"`
|
|
}
|
|
|
|
type TurnsPage struct {
|
|
BackwardsCursor string `json:"backwardsCursor,omitempty"`
|
|
Data []Turn `json:"data"`
|
|
NextCursor string `json:"nextCursor,omitempty"`
|
|
}
|
|
|
|
type ThreadResumeResponse struct {
|
|
ActivePermissionProfile *ActivePermissionProfile `json:"activePermissionProfile,omitempty"`
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer"`
|
|
CollaborationMode *CollaborationMode `json:"collaborationMode,omitempty"`
|
|
Cwd AbsolutePathBuf `json:"cwd"`
|
|
DisabledPluginIDs []string `json:"disabledPluginIds,omitempty"`
|
|
InitialTurnsPage *TurnsPage `json:"initialTurnsPage,omitempty"`
|
|
InstructionSources []LegacyAppPathString `json:"instructionSources,omitempty"`
|
|
ItemsBackwardsCursor string `json:"itemsBackwardsCursor,omitempty"`
|
|
Model string `json:"model"`
|
|
ModelProvider string `json:"modelProvider"`
|
|
MultiAgentMode MultiAgentMode `json:"multiAgentMode,omitempty"`
|
|
ReasoningEffort ReasoningEffort `json:"reasoningEffort,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
Sandbox SandboxPolicy `json:"sandbox"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
Thread Thread `json:"thread"`
|
|
TurnsBackwardsCursor string `json:"turnsBackwardsCursor,omitempty"`
|
|
}
|
|
|
|
type ThreadForkParams struct {
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy,omitempty"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer,omitempty"`
|
|
BaseInstructions string `json:"baseInstructions,omitempty"`
|
|
BeforeTurnID string `json:"beforeTurnId,omitempty"`
|
|
Config map[string]any `json:"config,omitempty"`
|
|
Cwd string `json:"cwd,omitempty"`
|
|
DeferGoalContinuation bool `json:"deferGoalContinuation,omitempty"`
|
|
DeveloperInstructions string `json:"developerInstructions,omitempty"`
|
|
Ephemeral bool `json:"ephemeral,omitempty"`
|
|
ExcludeTurns bool `json:"excludeTurns,omitempty"`
|
|
ExperimentalPredictionMode bool `json:"experimentalPredictionMode,omitempty"`
|
|
LastTurnID string `json:"lastTurnId,omitempty"`
|
|
Model string `json:"model,omitempty"`
|
|
ModelProvider string `json:"modelProvider,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Permissions string `json:"permissions,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
Sandbox SandboxMode `json:"sandbox,omitempty"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
ThreadSource ThreadSource `json:"threadSource,omitempty"`
|
|
}
|
|
|
|
type ThreadForkResponse struct {
|
|
ActivePermissionProfile *ActivePermissionProfile `json:"activePermissionProfile,omitempty"`
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer"`
|
|
Cwd AbsolutePathBuf `json:"cwd"`
|
|
DisabledPluginIDs []string `json:"disabledPluginIds,omitempty"`
|
|
InstructionSources []LegacyAppPathString `json:"instructionSources,omitempty"`
|
|
Model string `json:"model"`
|
|
ModelProvider string `json:"modelProvider"`
|
|
MultiAgentMode MultiAgentMode `json:"multiAgentMode,omitempty"`
|
|
ReasoningEffort ReasoningEffort `json:"reasoningEffort,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
Sandbox SandboxPolicy `json:"sandbox"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
Thread Thread `json:"thread"`
|
|
}
|
|
|
|
type ThreadCompactStartParams struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadCompactStartResponse = map[string]any
|
|
|
|
type ThreadReadParams struct {
|
|
IncludeTurns bool `json:"includeTurns,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadUnreadPosition struct {
|
|
TurnID string `json:"turnId,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ThreadReadState struct {
|
|
FirstUnread *ThreadUnreadPosition `json:"firstUnread,omitempty"`
|
|
Revision string `json:"revision"`
|
|
}
|
|
|
|
type ThreadReadResponse struct {
|
|
ReadState *ThreadReadState `json:"readState,omitempty"`
|
|
Thread Thread `json:"thread"`
|
|
}
|
|
|
|
type AdditionalContextKind string
|
|
|
|
type AdditionalContextEntry struct {
|
|
Kind AdditionalContextKind `json:"kind"`
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
type CyberAccessProgram string
|
|
|
|
type ReasoningSummary string
|
|
|
|
type TurnToolOutput struct {
|
|
Name string `json:"name"`
|
|
Namespace string `json:"namespace,omitempty"`
|
|
Output FunctionCallOutputBody `json:"output"`
|
|
Retain bool `json:"retain,omitempty"`
|
|
}
|
|
|
|
type TurnStartParams struct {
|
|
AdditionalContext map[string]AdditionalContextEntry `json:"additionalContext,omitempty"`
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy,omitempty"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer,omitempty"`
|
|
ClientUserMessageID string `json:"clientUserMessageId,omitempty"`
|
|
CollaborationMode *CollaborationMode `json:"collaborationMode,omitempty"`
|
|
Cwd string `json:"cwd,omitempty"`
|
|
CyberAccessProgram CyberAccessProgram `json:"cyberAccessProgram,omitempty"`
|
|
DisabledPluginIDs []string `json:"disabledPluginIds,omitempty"`
|
|
Effort ReasoningEffort `json:"effort,omitempty"`
|
|
Environments []TurnEnvironmentParams `json:"environments,omitempty"`
|
|
Input []UserInput `json:"input"`
|
|
Model string `json:"model,omitempty"`
|
|
MultiAgentMode MultiAgentMode `json:"multiAgentMode,omitempty"`
|
|
OutputSchema json.RawMessage `json:"outputSchema,omitempty"`
|
|
ParentTurnID string `json:"parentTurnId,omitempty"`
|
|
Permissions string `json:"permissions,omitempty"`
|
|
Personality Personality `json:"personality,omitempty"`
|
|
ResponsesapiClientMetadata map[string]string `json:"responsesapiClientMetadata,omitempty"`
|
|
RootTurnID string `json:"rootTurnId,omitempty"`
|
|
RuntimeWorkspaceRoots []AbsolutePathBuf `json:"runtimeWorkspaceRoots,omitempty"`
|
|
SandboxPolicy *SandboxPolicy `json:"sandboxPolicy,omitempty"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
ServiceTierForTurn string `json:"serviceTierForTurn,omitempty"`
|
|
Summary ReasoningSummary `json:"summary,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
ToolOutput *TurnToolOutput `json:"toolOutput,omitempty"`
|
|
TurnTrigger string `json:"turnTrigger,omitempty"`
|
|
}
|
|
|
|
type TurnStartResponse struct {
|
|
Turn Turn `json:"turn"`
|
|
}
|
|
|
|
type TurnSteerParams struct {
|
|
AdditionalContext map[string]AdditionalContextEntry `json:"additionalContext,omitempty"`
|
|
ClientUserMessageID string `json:"clientUserMessageId,omitempty"`
|
|
ExpectedTurnID string `json:"expectedTurnId"`
|
|
Input []UserInput `json:"input"`
|
|
ResponsesapiClientMetadata map[string]string `json:"responsesapiClientMetadata,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type TurnSteerResponse struct {
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type TurnInterruptParams struct {
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type TurnInterruptResponse = map[string]any
|
|
|
|
type GetAccountRateLimitsParams struct {
|
|
ExcludeResetCreditDetails bool `json:"excludeResetCreditDetails,omitempty"`
|
|
SupportsLunaReserve bool `json:"supportsLunaReserve,omitempty"`
|
|
}
|
|
|
|
type RateLimitResetType string
|
|
|
|
type RateLimitResetCreditStatus string
|
|
|
|
type RateLimitResetCredit struct {
|
|
Description string `json:"description,omitempty"`
|
|
ExpiresAt int64 `json:"expiresAt,omitempty"`
|
|
GrantedAt int64 `json:"grantedAt"`
|
|
ID string `json:"id"`
|
|
ResetType RateLimitResetType `json:"resetType"`
|
|
Status RateLimitResetCreditStatus `json:"status"`
|
|
Title string `json:"title,omitempty"`
|
|
}
|
|
|
|
type RateLimitResetCreditsSummary struct {
|
|
AvailableCount int64 `json:"availableCount"`
|
|
Credits []RateLimitResetCredit `json:"credits,omitempty"`
|
|
}
|
|
|
|
type CreditsSnapshot struct {
|
|
Balance string `json:"balance,omitempty"`
|
|
HasCredits bool `json:"hasCredits"`
|
|
Unlimited bool `json:"unlimited"`
|
|
}
|
|
|
|
type SpendControlLimitSnapshot struct {
|
|
Limit string `json:"limit"`
|
|
RemainingPercent int64 `json:"remainingPercent"`
|
|
ResetsAt int64 `json:"resetsAt"`
|
|
Used string `json:"used"`
|
|
}
|
|
|
|
type PlanType string
|
|
|
|
type RateLimitWindow struct {
|
|
ResetsAt int64 `json:"resetsAt,omitempty"`
|
|
UsedPercent int64 `json:"usedPercent"`
|
|
WindowDurationMins int64 `json:"windowDurationMins,omitempty"`
|
|
}
|
|
|
|
type RateLimitReachedType string
|
|
|
|
type RateLimitSnapshot struct {
|
|
Credits *CreditsSnapshot `json:"credits,omitempty"`
|
|
IndividualLimit *SpendControlLimitSnapshot `json:"individualLimit,omitempty"`
|
|
LimitID string `json:"limitId,omitempty"`
|
|
LimitName string `json:"limitName,omitempty"`
|
|
NormalModelSlug string `json:"normalModelSlug,omitempty"`
|
|
PlanType PlanType `json:"planType,omitempty"`
|
|
Primary *RateLimitWindow `json:"primary,omitempty"`
|
|
RateLimitReachedType RateLimitReachedType `json:"rateLimitReachedType,omitempty"`
|
|
Secondary *RateLimitWindow `json:"secondary,omitempty"`
|
|
SpendControlReached bool `json:"spendControlReached,omitempty"`
|
|
}
|
|
|
|
type GetAccountRateLimitsResponse struct {
|
|
AccountID string `json:"accountId,omitempty"`
|
|
OrdinaryUsageAllowed bool `json:"ordinaryUsageAllowed,omitempty"`
|
|
RateLimitResetCredits *RateLimitResetCreditsSummary `json:"rateLimitResetCredits,omitempty"`
|
|
RateLimitUpsell json.RawMessage `json:"rateLimitUpsell,omitempty"`
|
|
RateLimits RateLimitSnapshot `json:"rateLimits"`
|
|
RateLimitsByLimitID map[string]RateLimitSnapshot `json:"rateLimitsByLimitId,omitempty"`
|
|
}
|
|
|
|
type ErrorNotification struct {
|
|
Error TurnError `json:"error"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
WillRetry bool `json:"willRetry"`
|
|
}
|
|
|
|
type ThreadStartedNotification struct {
|
|
Thread Thread `json:"thread"`
|
|
}
|
|
|
|
type ThreadStatusChangedNotification struct {
|
|
Status ThreadStatus `json:"status"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadReadStateChangedNotification struct {
|
|
ReadState ThreadReadState `json:"readState"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadArchivedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadDeletedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadUnarchivedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadClosedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRevertedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type SkillsChangedNotification = map[string]any
|
|
|
|
type ThreadNameUpdatedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
ThreadName string `json:"threadName,omitempty"`
|
|
}
|
|
|
|
type ThreadAttachmentOperation string
|
|
|
|
type ThreadAttachmentUpdatedNotification struct {
|
|
AttachmentID string `json:"attachmentId"`
|
|
AttachmentType string `json:"attachmentType"`
|
|
IdentityKey string `json:"identityKey"`
|
|
Operation ThreadAttachmentOperation `json:"operation"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadGoalStatus string
|
|
|
|
type ThreadGoal struct {
|
|
CreatedAt int64 `json:"createdAt"`
|
|
Objective string `json:"objective"`
|
|
Status ThreadGoalStatus `json:"status"`
|
|
ThreadID string `json:"threadId"`
|
|
TimeUsedSeconds int64 `json:"timeUsedSeconds"`
|
|
TokenBudget int64 `json:"tokenBudget,omitempty"`
|
|
TokensUsed int64 `json:"tokensUsed"`
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
}
|
|
|
|
type ThreadGoalUpdatedNotification struct {
|
|
Goal ThreadGoal `json:"goal"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId,omitempty"`
|
|
}
|
|
|
|
type ThreadPredictionResult struct {
|
|
Text string `json:"text,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ThreadPredictionUpdatedNotification struct {
|
|
Result ThreadPredictionResult `json:"result"`
|
|
SourceTurnID string `json:"sourceTurnId"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadGoalClearedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadQueueChangedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ProjectChangeType string
|
|
|
|
type ProjectChangedNotification struct {
|
|
ChangeType ProjectChangeType `json:"changeType"`
|
|
ProjectID string `json:"projectId"`
|
|
}
|
|
|
|
type ThreadProjectUpdatedNotification struct {
|
|
ProjectID string `json:"projectId,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type EnvironmentConnectionNotification struct {
|
|
EnvironmentID string `json:"environmentId"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadSettings struct {
|
|
ActivePermissionProfile *ActivePermissionProfile `json:"activePermissionProfile,omitempty"`
|
|
ApprovalPolicy AskForApproval `json:"approvalPolicy"`
|
|
ApprovalsReviewer ApprovalsReviewer `json:"approvalsReviewer"`
|
|
CollaborationMode CollaborationMode `json:"collaborationMode"`
|
|
Cwd AbsolutePathBuf `json:"cwd"`
|
|
DisabledPluginIDs []string `json:"disabledPluginIds,omitempty"`
|
|
Effort ReasoningEffort `json:"effort,omitempty"`
|
|
Model string `json:"model"`
|
|
ModelProvider string `json:"modelProvider"`
|
|
MultiAgentMode MultiAgentMode `json:"multiAgentMode,omitempty"`
|
|
Personality Personality `json:"personality,omitempty"`
|
|
SandboxPolicy SandboxPolicy `json:"sandboxPolicy"`
|
|
ServiceTier string `json:"serviceTier,omitempty"`
|
|
Summary ReasoningSummary `json:"summary,omitempty"`
|
|
}
|
|
|
|
type ThreadSettingsUpdatedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
ThreadSettings ThreadSettings `json:"threadSettings"`
|
|
}
|
|
|
|
type TokenUsageBreakdown struct {
|
|
CacheWriteInputTokens int64 `json:"cacheWriteInputTokens,omitempty"`
|
|
CachedInputTokens int64 `json:"cachedInputTokens"`
|
|
InputTokens int64 `json:"inputTokens"`
|
|
OutputTokens int64 `json:"outputTokens"`
|
|
ReasoningOutputTokens int64 `json:"reasoningOutputTokens"`
|
|
TotalTokens int64 `json:"totalTokens"`
|
|
}
|
|
|
|
type ThreadTokenUsage struct {
|
|
Last TokenUsageBreakdown `json:"last"`
|
|
ModelContextWindow int64 `json:"modelContextWindow,omitempty"`
|
|
Total TokenUsageBreakdown `json:"total"`
|
|
}
|
|
|
|
type ThreadTokenUsageUpdatedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
TokenUsage ThreadTokenUsage `json:"tokenUsage"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type TurnStartedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
Turn Turn `json:"turn"`
|
|
}
|
|
|
|
type HookOutputEntryKind string
|
|
|
|
type HookOutputEntry struct {
|
|
Kind HookOutputEntryKind `json:"kind"`
|
|
Text string `json:"text"`
|
|
}
|
|
|
|
type HookEventName string
|
|
|
|
type HookExecutionMode string
|
|
|
|
type HookHandlerType string
|
|
|
|
type HookScope string
|
|
|
|
type HookSource string
|
|
|
|
type HookRunStatus string
|
|
|
|
type HookRunSummary struct {
|
|
CompletedAt int64 `json:"completedAt,omitempty"`
|
|
DisplayOrder int64 `json:"displayOrder"`
|
|
DurationMs int64 `json:"durationMs,omitempty"`
|
|
Entries []HookOutputEntry `json:"entries"`
|
|
EventName HookEventName `json:"eventName"`
|
|
ExecutionMode HookExecutionMode `json:"executionMode"`
|
|
HandlerType HookHandlerType `json:"handlerType"`
|
|
ID string `json:"id"`
|
|
Scope HookScope `json:"scope"`
|
|
Source HookSource `json:"source,omitempty"`
|
|
SourcePath AbsolutePathBuf `json:"sourcePath"`
|
|
StartedAt int64 `json:"startedAt"`
|
|
Status HookRunStatus `json:"status"`
|
|
StatusMessage string `json:"statusMessage,omitempty"`
|
|
}
|
|
|
|
type HookStartedNotification struct {
|
|
Run HookRunSummary `json:"run"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId,omitempty"`
|
|
}
|
|
|
|
type TurnCompletedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
Turn Turn `json:"turn"`
|
|
}
|
|
|
|
type HookCompletedNotification struct {
|
|
Run HookRunSummary `json:"run"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId,omitempty"`
|
|
}
|
|
|
|
type TurnDiffUpdatedNotification struct {
|
|
Diff string `json:"diff"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type TurnPlanStepStatus string
|
|
|
|
type TurnPlanStep struct {
|
|
Status TurnPlanStepStatus `json:"status"`
|
|
Step string `json:"step"`
|
|
}
|
|
|
|
type TurnPlanUpdatedNotification struct {
|
|
Explanation string `json:"explanation,omitempty"`
|
|
Plan []TurnPlanStep `json:"plan"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ItemStartedNotification struct {
|
|
Item ThreadItem `json:"item"`
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type FileSystemAccessMode string
|
|
|
|
type FileSystemSpecialPath struct {
|
|
Kind string `json:"kind"`
|
|
Path string `json:"path,omitempty"`
|
|
Subpath LegacyAppPathString `json:"subpath,omitempty"`
|
|
}
|
|
|
|
type FileSystemPath struct {
|
|
Path LegacyAppPathString `json:"path,omitempty"`
|
|
Pattern string `json:"pattern,omitempty"`
|
|
Type string `json:"type"`
|
|
Value *FileSystemSpecialPath `json:"value,omitempty"`
|
|
}
|
|
|
|
type FileSystemSandboxEntry struct {
|
|
Access FileSystemAccessMode `json:"access"`
|
|
Path FileSystemPath `json:"path"`
|
|
}
|
|
|
|
type AdditionalFileSystemPermissions struct {
|
|
Entries []FileSystemSandboxEntry `json:"entries,omitempty"`
|
|
GlobScanMaxDepth int64 `json:"globScanMaxDepth,omitempty"`
|
|
Read []LegacyAppPathString `json:"read,omitempty"`
|
|
Write []LegacyAppPathString `json:"write,omitempty"`
|
|
}
|
|
|
|
type AdditionalNetworkPermissions struct {
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
}
|
|
|
|
type RequestPermissionProfile struct {
|
|
FileSystem *AdditionalFileSystemPermissions `json:"fileSystem,omitempty"`
|
|
Network *AdditionalNetworkPermissions `json:"network,omitempty"`
|
|
}
|
|
|
|
type NetworkApprovalProtocol string
|
|
|
|
type GuardianCommandSource string
|
|
|
|
type GuardianApprovalReviewAction struct {
|
|
ApprovalID string `json:"approvalId,omitempty"`
|
|
Argv []string `json:"argv,omitempty"`
|
|
Command string `json:"command,omitempty"`
|
|
ConnectorID string `json:"connectorId,omitempty"`
|
|
ConnectorName string `json:"connectorName,omitempty"`
|
|
Cwd json.RawMessage `json:"cwd,omitempty"`
|
|
Files []LegacyAppPathString `json:"files,omitempty"`
|
|
Host string `json:"host,omitempty"`
|
|
Permissions *RequestPermissionProfile `json:"permissions,omitempty"`
|
|
Port int64 `json:"port,omitempty"`
|
|
ProcessID string `json:"processId,omitempty"`
|
|
Program string `json:"program,omitempty"`
|
|
Protocol NetworkApprovalProtocol `json:"protocol,omitempty"`
|
|
Reason string `json:"reason,omitempty"`
|
|
Server string `json:"server,omitempty"`
|
|
Source GuardianCommandSource `json:"source,omitempty"`
|
|
Stdin string `json:"stdin,omitempty"`
|
|
Target string `json:"target,omitempty"`
|
|
ToolName string `json:"toolName,omitempty"`
|
|
ToolTitle string `json:"toolTitle,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type GuardianRiskLevel string
|
|
|
|
type GuardianApprovalReviewStatus string
|
|
|
|
type GuardianUserAuthorization string
|
|
|
|
type GuardianApprovalReview struct {
|
|
Rationale string `json:"rationale,omitempty"`
|
|
RiskLevel GuardianRiskLevel `json:"riskLevel,omitempty"`
|
|
Status GuardianApprovalReviewStatus `json:"status"`
|
|
UserAuthorization GuardianUserAuthorization `json:"userAuthorization,omitempty"`
|
|
}
|
|
|
|
type ItemGuardianApprovalReviewStartedNotification struct {
|
|
Action GuardianApprovalReviewAction `json:"action"`
|
|
Review GuardianApprovalReview `json:"review"`
|
|
ReviewID string `json:"reviewId"`
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
TargetItemID string `json:"targetItemId,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type AutoReviewDecisionSource string
|
|
|
|
type ItemGuardianApprovalReviewCompletedNotification struct {
|
|
Action GuardianApprovalReviewAction `json:"action"`
|
|
CompletedAtMs int64 `json:"completedAtMs"`
|
|
DecisionSource AutoReviewDecisionSource `json:"decisionSource"`
|
|
Review GuardianApprovalReview `json:"review"`
|
|
ReviewID string `json:"reviewId"`
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
TargetItemID string `json:"targetItemId,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type StrictReviewRequiredNotification struct {
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ItemCompletedNotification struct {
|
|
CompletedAtMs int64 `json:"completedAtMs"`
|
|
Item ThreadItem `json:"item"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type AgentMessageDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type PlanDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type CommandExecOutputStream string
|
|
|
|
type CommandExecOutputDeltaNotification struct {
|
|
CapReached bool `json:"capReached"`
|
|
DeltaBase64 string `json:"deltaBase64"`
|
|
ProcessID string `json:"processId"`
|
|
Stream CommandExecOutputStream `json:"stream"`
|
|
}
|
|
|
|
type ProcessOutputStream string
|
|
|
|
type ProcessOutputDeltaNotification struct {
|
|
CapReached bool `json:"capReached"`
|
|
DeltaBase64 string `json:"deltaBase64"`
|
|
ProcessHandle string `json:"processHandle"`
|
|
Stream ProcessOutputStream `json:"stream"`
|
|
}
|
|
|
|
type ProcessExitedNotification struct {
|
|
ExitCode int64 `json:"exitCode"`
|
|
ProcessHandle string `json:"processHandle"`
|
|
Stderr string `json:"stderr"`
|
|
StderrCapReached bool `json:"stderrCapReached"`
|
|
Stdout string `json:"stdout"`
|
|
StdoutCapReached bool `json:"stdoutCapReached"`
|
|
}
|
|
|
|
type CommandExecutionOutputDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type TerminalInteractionNotification struct {
|
|
ItemID string `json:"itemId"`
|
|
ProcessID string `json:"processId"`
|
|
Stdin string `json:"stdin"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type FileChangeOutputDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type FileChangePatchUpdatedNotification struct {
|
|
Changes []FileUpdateChange `json:"changes"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type RequestId = json.RawMessage
|
|
|
|
type ServerRequestResolvedNotification struct {
|
|
RequestID RequestId `json:"requestId"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type McpToolCallProgressNotification struct {
|
|
ItemID string `json:"itemId"`
|
|
Message string `json:"message"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type McpServerOauthLoginCompletedNotification struct {
|
|
Error string `json:"error,omitempty"`
|
|
LoginID string `json:"loginId,omitempty"`
|
|
Name string `json:"name"`
|
|
Success bool `json:"success"`
|
|
ThreadID string `json:"threadId,omitempty"`
|
|
}
|
|
|
|
type McpServerStartupFailureReason string
|
|
|
|
type McpServerStartupState string
|
|
|
|
type McpServerStatusUpdatedNotification struct {
|
|
Error string `json:"error,omitempty"`
|
|
FailureReason McpServerStartupFailureReason `json:"failureReason,omitempty"`
|
|
Name string `json:"name"`
|
|
Status McpServerStartupState `json:"status"`
|
|
ThreadID string `json:"threadId,omitempty"`
|
|
}
|
|
|
|
type McpServerEventNotification struct {
|
|
Method string `json:"method"`
|
|
Params json.RawMessage `json:"params"`
|
|
}
|
|
|
|
type McpServerEventStreamNotification struct {
|
|
Notification McpServerEventNotification `json:"notification"`
|
|
SubscriptionID string `json:"subscriptionId"`
|
|
}
|
|
|
|
type AuthMode string
|
|
|
|
type AccountUpdatedNotification struct {
|
|
AuthMode AuthMode `json:"authMode,omitempty"`
|
|
PlanType PlanType `json:"planType,omitempty"`
|
|
}
|
|
|
|
type GatewayOAuthStatus string
|
|
|
|
type GatewayOAuthChangedNotification struct {
|
|
AuthURL string `json:"authUrl,omitempty"`
|
|
Error string `json:"error,omitempty"`
|
|
ProviderID string `json:"providerId"`
|
|
Status GatewayOAuthStatus `json:"status"`
|
|
}
|
|
|
|
type AccountRateLimitsUpdatedNotification struct {
|
|
RateLimits RateLimitSnapshot `json:"rateLimits"`
|
|
}
|
|
|
|
type AppReview struct {
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type AppScreenshot struct {
|
|
FileID string `json:"fileId,omitempty"`
|
|
URL string `json:"url,omitempty"`
|
|
UserPrompt string `json:"userPrompt"`
|
|
}
|
|
|
|
type AppMetadata struct {
|
|
Categories []string `json:"categories,omitempty"`
|
|
Developer string `json:"developer,omitempty"`
|
|
FirstPartyRequiresInstall bool `json:"firstPartyRequiresInstall,omitempty"`
|
|
Review *AppReview `json:"review,omitempty"`
|
|
Screenshots []AppScreenshot `json:"screenshots,omitempty"`
|
|
SeoDescription string `json:"seoDescription,omitempty"`
|
|
ShowInComposerWhenUnlinked bool `json:"showInComposerWhenUnlinked,omitempty"`
|
|
SubCategories []string `json:"subCategories,omitempty"`
|
|
Version string `json:"version,omitempty"`
|
|
VersionID string `json:"versionId,omitempty"`
|
|
VersionNotes string `json:"versionNotes,omitempty"`
|
|
}
|
|
|
|
type AppBranding struct {
|
|
Category string `json:"category,omitempty"`
|
|
Developer string `json:"developer,omitempty"`
|
|
IsDiscoverableApp bool `json:"isDiscoverableApp"`
|
|
PrivacyPolicy string `json:"privacyPolicy,omitempty"`
|
|
TermsOfService string `json:"termsOfService,omitempty"`
|
|
Website string `json:"website,omitempty"`
|
|
}
|
|
|
|
type AppInfo struct {
|
|
AppMetadata *AppMetadata `json:"appMetadata,omitempty"`
|
|
Branding *AppBranding `json:"branding,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
DistributionChannel string `json:"distributionChannel,omitempty"`
|
|
IconAssets map[string]string `json:"iconAssets,omitempty"`
|
|
IconDarkAssets map[string]string `json:"iconDarkAssets,omitempty"`
|
|
ID string `json:"id"`
|
|
InstallURL string `json:"installUrl,omitempty"`
|
|
IsAccessible bool `json:"isAccessible,omitempty"`
|
|
IsEnabled bool `json:"isEnabled,omitempty"`
|
|
Labels map[string]string `json:"labels,omitempty"`
|
|
LogoURL string `json:"logoUrl,omitempty"`
|
|
LogoURLDark string `json:"logoUrlDark,omitempty"`
|
|
Name string `json:"name"`
|
|
PluginDisplayNames []string `json:"pluginDisplayNames,omitempty"`
|
|
}
|
|
|
|
type AppListUpdatedNotification struct {
|
|
Data []AppInfo `json:"data"`
|
|
}
|
|
|
|
type RemoteControlConnectionStatus string
|
|
|
|
type RemoteControlStatusChangedNotification struct {
|
|
EnvironmentID string `json:"environmentId,omitempty"`
|
|
InstallationID string `json:"installationId"`
|
|
ServerName string `json:"serverName"`
|
|
Status RemoteControlConnectionStatus `json:"status"`
|
|
}
|
|
|
|
type ExternalAgentConfigMigrationItemType string
|
|
|
|
type ExternalAgentConfigImportItemTypeFailure struct {
|
|
Cwd string `json:"cwd,omitempty"`
|
|
ErrorType string `json:"errorType,omitempty"`
|
|
FailureStage string `json:"failureStage"`
|
|
ItemType ExternalAgentConfigMigrationItemType `json:"itemType"`
|
|
Message string `json:"message"`
|
|
Source string `json:"source,omitempty"`
|
|
SubErrorType string `json:"subErrorType,omitempty"`
|
|
}
|
|
|
|
type ExternalAgentConfigImportItemTypeSuccess struct {
|
|
Cwd string `json:"cwd,omitempty"`
|
|
ItemType ExternalAgentConfigMigrationItemType `json:"itemType"`
|
|
Source string `json:"source,omitempty"`
|
|
Target string `json:"target,omitempty"`
|
|
Title string `json:"title,omitempty"`
|
|
}
|
|
|
|
type ExternalAgentConfigImportTypeResult struct {
|
|
Failures []ExternalAgentConfigImportItemTypeFailure `json:"failures"`
|
|
ItemType ExternalAgentConfigMigrationItemType `json:"itemType"`
|
|
Successes []ExternalAgentConfigImportItemTypeSuccess `json:"successes"`
|
|
}
|
|
|
|
type ExternalAgentConfigImportProgressNotification struct {
|
|
ImportID string `json:"importId"`
|
|
ItemTypeResults []ExternalAgentConfigImportTypeResult `json:"itemTypeResults"`
|
|
}
|
|
|
|
type ExternalAgentConfigImportCompletedNotification struct {
|
|
ImportID string `json:"importId"`
|
|
ItemTypeResults []ExternalAgentConfigImportTypeResult `json:"itemTypeResults"`
|
|
}
|
|
|
|
type FsChangedNotification struct {
|
|
ChangedPaths []AbsolutePathBuf `json:"changedPaths"`
|
|
WatchID string `json:"watchId"`
|
|
}
|
|
|
|
type ReasoningSummaryTextDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
SummaryIndex int64 `json:"summaryIndex"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ReasoningSummaryPartAddedNotification struct {
|
|
ItemID string `json:"itemId"`
|
|
SummaryIndex int64 `json:"summaryIndex"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ReasoningTextDeltaNotification struct {
|
|
ContentIndex int64 `json:"contentIndex"`
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ContextCompactedNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ModelRerouteReason string
|
|
|
|
type ModelReroutedNotification struct {
|
|
FromModel string `json:"fromModel"`
|
|
Reason ModelRerouteReason `json:"reason"`
|
|
ThreadID string `json:"threadId"`
|
|
ToModel string `json:"toModel"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ModelVerification string
|
|
|
|
type ModelVerificationNotification struct {
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
Verifications []ModelVerification `json:"verifications"`
|
|
}
|
|
|
|
type AuthRecoveryNotification struct {
|
|
Message string `json:"message"`
|
|
Provider string `json:"provider"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type TurnModerationMetadataNotification struct {
|
|
Metadata json.RawMessage `json:"metadata"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ModelSafetyBufferingUpdatedNotification struct {
|
|
FasterModel string `json:"fasterModel,omitempty"`
|
|
Model string `json:"model"`
|
|
Reasons []string `json:"reasons"`
|
|
ShowBufferingUi bool `json:"showBufferingUi"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
UseCases []string `json:"useCases"`
|
|
}
|
|
|
|
type WarningNotification struct {
|
|
Message string `json:"message"`
|
|
ThreadID string `json:"threadId,omitempty"`
|
|
}
|
|
|
|
type GuardianWarningNotification struct {
|
|
Message string `json:"message"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type DeprecationNoticeNotification struct {
|
|
Details string `json:"details,omitempty"`
|
|
Summary string `json:"summary"`
|
|
}
|
|
|
|
type TextPosition struct {
|
|
Column int64 `json:"column"`
|
|
Line int64 `json:"line"`
|
|
}
|
|
|
|
type TextRange struct {
|
|
End TextPosition `json:"end"`
|
|
Start TextPosition `json:"start"`
|
|
}
|
|
|
|
type ConfigWarningNotification struct {
|
|
Details string `json:"details,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Range *TextRange `json:"range,omitempty"`
|
|
Summary string `json:"summary"`
|
|
}
|
|
|
|
type FuzzyFileSearchMatchType string
|
|
|
|
type FuzzyFileSearchResult struct {
|
|
FileName string `json:"file_name"`
|
|
Indices []int64 `json:"indices,omitempty"`
|
|
MatchType FuzzyFileSearchMatchType `json:"match_type"`
|
|
Path string `json:"path"`
|
|
Root string `json:"root"`
|
|
Score int64 `json:"score"`
|
|
}
|
|
|
|
type FuzzyFileSearchSessionUpdatedNotification struct {
|
|
Files []FuzzyFileSearchResult `json:"files"`
|
|
Query string `json:"query"`
|
|
SessionID string `json:"sessionId"`
|
|
}
|
|
|
|
type FuzzyFileSearchSessionCompletedNotification struct {
|
|
SessionID string `json:"sessionId"`
|
|
}
|
|
|
|
type RealtimeConversationVersion string
|
|
|
|
type ThreadRealtimeStartedNotification struct {
|
|
RealtimeSessionID string `json:"realtimeSessionId,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
Version RealtimeConversationVersion `json:"version"`
|
|
}
|
|
|
|
type ThreadRealtimeItemAddedNotification struct {
|
|
Item json.RawMessage `json:"item"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeSessionOutcome string
|
|
|
|
type ThreadRealtimeBemItemPresentation struct {
|
|
Index int64 `json:"index,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ThreadRealtimeTranscriptRole string
|
|
|
|
type ThreadRealtimeItem struct {
|
|
ID string `json:"id"`
|
|
ItemID string `json:"item_id,omitempty"`
|
|
Outcome ThreadRealtimeSessionOutcome `json:"outcome,omitempty"`
|
|
Presentation *ThreadRealtimeBemItemPresentation `json:"presentation,omitempty"`
|
|
RealtimeSessionID string `json:"realtimeSessionId"`
|
|
Role ThreadRealtimeTranscriptRole `json:"role,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
TurnID string `json:"turn_id,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ThreadRealtimeItemStartedNotification struct {
|
|
Item ThreadRealtimeItem `json:"item"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeItemTranscriptDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
ItemID string `json:"itemId"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeItemCompletedNotification struct {
|
|
Item ThreadRealtimeItem `json:"item"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeTranscriptDeltaNotification struct {
|
|
Delta string `json:"delta"`
|
|
Role string `json:"role"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeTranscriptDoneNotification struct {
|
|
Role string `json:"role"`
|
|
Text string `json:"text"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeAudioChunk struct {
|
|
Data string `json:"data"`
|
|
ItemID string `json:"itemId,omitempty"`
|
|
NumChannels int64 `json:"numChannels"`
|
|
SampleRate int64 `json:"sampleRate"`
|
|
SamplesPerChannel int64 `json:"samplesPerChannel,omitempty"`
|
|
}
|
|
|
|
type ThreadRealtimeOutputAudioDeltaNotification struct {
|
|
Audio ThreadRealtimeAudioChunk `json:"audio"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeSdpNotification struct {
|
|
Sdp string `json:"sdp"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeErrorNotification struct {
|
|
Message string `json:"message"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type ThreadRealtimeClosedNotification struct {
|
|
Reason string `json:"reason,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type WindowsWorldWritableWarningNotification struct {
|
|
ExtraCount int64 `json:"extraCount"`
|
|
FailedScan bool `json:"failedScan"`
|
|
SamplePaths []string `json:"samplePaths"`
|
|
}
|
|
|
|
type WindowsSandboxSetupMode string
|
|
|
|
type WindowsSandboxSetupCompletedNotification struct {
|
|
Error string `json:"error,omitempty"`
|
|
Mode WindowsSandboxSetupMode `json:"mode"`
|
|
Success bool `json:"success"`
|
|
}
|
|
|
|
type DesktopOnboardingEntrypoint string
|
|
|
|
type AccountLoginCompletedNotification struct {
|
|
Error string `json:"error,omitempty"`
|
|
LoginID string `json:"loginId,omitempty"`
|
|
OnboardingEntrypoint DesktopOnboardingEntrypoint `json:"onboardingEntrypoint,omitempty"`
|
|
Success bool `json:"success"`
|
|
}
|
|
|
|
type AdditionalPermissionProfile struct {
|
|
FileSystem *AdditionalFileSystemPermissions `json:"fileSystem,omitempty"`
|
|
Network *AdditionalNetworkPermissions `json:"network,omitempty"`
|
|
}
|
|
|
|
type CommandExecutionApprovalDecision = json.RawMessage
|
|
|
|
type CommandExecutionApprovalKind string
|
|
|
|
type NetworkApprovalContext struct {
|
|
Host string `json:"host"`
|
|
Protocol NetworkApprovalProtocol `json:"protocol"`
|
|
}
|
|
|
|
type NetworkPolicyRuleAction string
|
|
|
|
type NetworkPolicyAmendment struct {
|
|
Action NetworkPolicyRuleAction `json:"action"`
|
|
Host string `json:"host"`
|
|
}
|
|
|
|
type CommandExecutionRequestApprovalParams struct {
|
|
AdditionalPermissions *AdditionalPermissionProfile `json:"additionalPermissions,omitempty"`
|
|
ApprovalID string `json:"approvalId,omitempty"`
|
|
AvailableDecisions []CommandExecutionApprovalDecision `json:"availableDecisions,omitempty"`
|
|
Command string `json:"command,omitempty"`
|
|
CommandActions []CommandAction `json:"commandActions,omitempty"`
|
|
Cwd LegacyAppPathString `json:"cwd,omitempty"`
|
|
EnvironmentID string `json:"environmentId,omitempty"`
|
|
ItemID string `json:"itemId"`
|
|
Kind CommandExecutionApprovalKind `json:"kind,omitempty"`
|
|
NetworkApprovalContext *NetworkApprovalContext `json:"networkApprovalContext,omitempty"`
|
|
ProposedExecpolicyAmendment []string `json:"proposedExecpolicyAmendment,omitempty"`
|
|
ProposedNetworkPolicyAmendments []NetworkPolicyAmendment `json:"proposedNetworkPolicyAmendments,omitempty"`
|
|
Reason string `json:"reason,omitempty"`
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type CommandExecutionRequestApprovalResponse struct {
|
|
Decision CommandExecutionApprovalDecision `json:"decision"`
|
|
}
|
|
|
|
type FileChangeRequestApprovalParams struct {
|
|
GrantRoot string `json:"grantRoot,omitempty"`
|
|
ItemID string `json:"itemId"`
|
|
Reason string `json:"reason,omitempty"`
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type FileChangeApprovalDecision string
|
|
|
|
type FileChangeRequestApprovalResponse struct {
|
|
Decision FileChangeApprovalDecision `json:"decision"`
|
|
}
|
|
|
|
type ToolRequestUserInputOption struct {
|
|
Description string `json:"description"`
|
|
Label string `json:"label"`
|
|
}
|
|
|
|
type ToolRequestUserInputQuestion struct {
|
|
Header string `json:"header"`
|
|
ID string `json:"id"`
|
|
IsOther bool `json:"isOther,omitempty"`
|
|
IsSecret bool `json:"isSecret,omitempty"`
|
|
Options []ToolRequestUserInputOption `json:"options,omitempty"`
|
|
Question string `json:"question"`
|
|
}
|
|
|
|
type ToolRequestUserInputParams struct {
|
|
AutoResolutionMs int64 `json:"autoResolutionMs,omitempty"`
|
|
IsBlocking bool `json:"isBlocking"`
|
|
ItemID string `json:"itemId"`
|
|
Questions []ToolRequestUserInputQuestion `json:"questions"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type ToolRequestUserInputAnswer struct {
|
|
Answers []string `json:"answers"`
|
|
}
|
|
|
|
type ToolRequestUserInputResponse struct {
|
|
Answers map[string]ToolRequestUserInputAnswer `json:"answers"`
|
|
}
|
|
|
|
type McpElicitationStringFormat string
|
|
|
|
type McpElicitationStringType string
|
|
|
|
type McpElicitationUntitledEnumItems struct {
|
|
Enum []string `json:"enum"`
|
|
Type McpElicitationStringType `json:"type"`
|
|
}
|
|
|
|
type McpElicitationConstOption struct {
|
|
Const string `json:"const"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type McpElicitationTitledEnumItems struct {
|
|
AnyOf []McpElicitationConstOption `json:"anyOf"`
|
|
}
|
|
|
|
type McpElicitationArrayType string
|
|
|
|
type McpElicitationNumberType string
|
|
|
|
type McpElicitationBooleanType string
|
|
|
|
type McpElicitationPrimitiveSchema struct {
|
|
Default json.RawMessage `json:"default,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
Enum []string `json:"enum,omitempty"`
|
|
EnumNames []string `json:"enumNames,omitempty"`
|
|
Format McpElicitationStringFormat `json:"format,omitempty"`
|
|
Items json.RawMessage `json:"items,omitempty"`
|
|
MaxItems int64 `json:"maxItems,omitempty"`
|
|
MaxLength int64 `json:"maxLength,omitempty"`
|
|
Maximum float64 `json:"maximum,omitempty"`
|
|
MinItems int64 `json:"minItems,omitempty"`
|
|
MinLength int64 `json:"minLength,omitempty"`
|
|
Minimum float64 `json:"minimum,omitempty"`
|
|
OneOf []McpElicitationConstOption `json:"oneOf,omitempty"`
|
|
Title string `json:"title,omitempty"`
|
|
Type json.RawMessage `json:"type"`
|
|
}
|
|
|
|
type McpElicitationObjectType string
|
|
|
|
type McpElicitationSchema struct {
|
|
Schema string `json:"$schema,omitempty"`
|
|
Properties map[string]McpElicitationPrimitiveSchema `json:"properties"`
|
|
Required []string `json:"required,omitempty"`
|
|
Type McpElicitationObjectType `json:"type"`
|
|
}
|
|
|
|
type McpServerElicitationRequestParams struct {
|
|
Meta json.RawMessage `json:"_meta,omitempty"`
|
|
Challenge string `json:"challenge,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
ElicitationID string `json:"elicitationId,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
Mode string `json:"mode"`
|
|
RequestedSchema json.RawMessage `json:"requestedSchema,omitempty"`
|
|
ServerName string `json:"serverName"`
|
|
ThreadID string `json:"threadId"`
|
|
Title string `json:"title,omitempty"`
|
|
TurnID string `json:"turnId,omitempty"`
|
|
URL string `json:"url,omitempty"`
|
|
}
|
|
|
|
type McpServerElicitationAction string
|
|
|
|
type McpServerElicitationRequestResponse struct {
|
|
Meta json.RawMessage `json:"_meta,omitempty"`
|
|
Action McpServerElicitationAction `json:"action"`
|
|
Content json.RawMessage `json:"content,omitempty"`
|
|
}
|
|
|
|
type PermissionsRequestApprovalParams struct {
|
|
Cwd LegacyAppPathString `json:"cwd"`
|
|
EnvironmentID string `json:"environmentId,omitempty"`
|
|
ItemID string `json:"itemId"`
|
|
Permissions RequestPermissionProfile `json:"permissions"`
|
|
Reason string `json:"reason,omitempty"`
|
|
StartedAtMs int64 `json:"startedAtMs"`
|
|
ThreadID string `json:"threadId"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type GrantedPermissionProfile struct {
|
|
FileSystem *AdditionalFileSystemPermissions `json:"fileSystem,omitempty"`
|
|
Network *AdditionalNetworkPermissions `json:"network,omitempty"`
|
|
}
|
|
|
|
type PermissionGrantScope string
|
|
|
|
type PermissionsRequestApprovalResponse struct {
|
|
Permissions GrantedPermissionProfile `json:"permissions"`
|
|
Scope PermissionGrantScope `json:"scope,omitempty"`
|
|
StrictAutoReview bool `json:"strictAutoReview,omitempty"`
|
|
}
|
|
|
|
type DynamicToolCallParams struct {
|
|
Arguments json.RawMessage `json:"arguments"`
|
|
CallID string `json:"callId"`
|
|
Namespace string `json:"namespace,omitempty"`
|
|
ThreadID string `json:"threadId"`
|
|
Tool string `json:"tool"`
|
|
TurnID string `json:"turnId"`
|
|
}
|
|
|
|
type DynamicToolCallResponse struct {
|
|
ContentItems []DynamicToolCallOutputContentItem `json:"contentItems"`
|
|
Success bool `json:"success"`
|
|
}
|
|
|
|
type ChatgptAuthTokensRefreshReason string
|
|
|
|
type ChatgptAuthTokensRefreshParams struct {
|
|
PreviousAccountID string `json:"previousAccountId,omitempty"`
|
|
Reason ChatgptAuthTokensRefreshReason `json:"reason"`
|
|
}
|
|
|
|
type ChatgptAuthTokensRefreshResponse struct {
|
|
AccessToken string `json:"accessToken"`
|
|
ChatgptAccountID string `json:"chatgptAccountId"`
|
|
ChatgptPlanType string `json:"chatgptPlanType,omitempty"`
|
|
}
|
|
|
|
type AttestationGenerateParams = map[string]any
|
|
|
|
type AttestationGenerateResponse struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type CurrentTimeReadParams struct {
|
|
ThreadID string `json:"threadId"`
|
|
}
|
|
|
|
type CurrentTimeReadResponse struct {
|
|
CurrentTimeAt int64 `json:"currentTimeAt"`
|
|
}
|
|
|
|
type ThreadId string
|
|
|
|
type FileChange struct {
|
|
Content string `json:"content,omitempty"`
|
|
MovePath string `json:"move_path,omitempty"`
|
|
Type string `json:"type"`
|
|
UnifiedDiff string `json:"unified_diff,omitempty"`
|
|
}
|
|
|
|
type ApplyPatchApprovalParams struct {
|
|
CallID string `json:"callId"`
|
|
ConversationID ThreadId `json:"conversationId"`
|
|
FileChanges map[string]FileChange `json:"fileChanges"`
|
|
GrantRoot string `json:"grantRoot,omitempty"`
|
|
Reason string `json:"reason,omitempty"`
|
|
}
|
|
|
|
type ReviewDecision = json.RawMessage
|
|
|
|
type ApplyPatchApprovalResponse struct {
|
|
Decision ReviewDecision `json:"decision"`
|
|
}
|
|
|
|
type ParsedCommand struct {
|
|
Cmd string `json:"cmd"`
|
|
Name string `json:"name,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
Query string `json:"query,omitempty"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ExecCommandApprovalParams struct {
|
|
ApprovalID string `json:"approvalId,omitempty"`
|
|
CallID string `json:"callId"`
|
|
Command []string `json:"command"`
|
|
ConversationID ThreadId `json:"conversationId"`
|
|
Cwd string `json:"cwd"`
|
|
ParsedCmd []ParsedCommand `json:"parsedCmd"`
|
|
Reason string `json:"reason,omitempty"`
|
|
}
|
|
|
|
type ExecCommandApprovalResponse struct {
|
|
Decision ReviewDecision `json:"decision"`
|
|
}
|