Compare commits

...

1 Commits

Author SHA1 Message Date
Ruslan Nigmatullin
d3f80a005d app-server-protocol: Add new lines to union types for merge safety 2026-03-12 17:09:01 -07:00
107 changed files with 888 additions and 305 deletions

View File

@@ -5,4 +5,7 @@
/**
* Authentication mode for OpenAI-backed providers.
*/
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
export type AuthMode =
| "apikey"
| "chatgpt"
| "chatgptAuthTokens";

View File

@@ -55,4 +55,57 @@ import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupSta
/**
* Request from the client to the server.
*/
export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "skills/remote/list", id: RequestId, params: SkillsRemoteReadParams, } | { "method": "skills/remote/export", id: RequestId, params: SkillsRemoteWriteParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, };
export type ClientRequest =
| { "method": "initialize", id: RequestId, params: InitializeParams, }
| { "method": "thread/start", id: RequestId, params: ThreadStartParams, }
| { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, }
| { "method": "thread/fork", id: RequestId, params: ThreadForkParams, }
| { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, }
| { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, }
| { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, }
| { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, }
| { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, }
| { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, }
| { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, }
| { "method": "thread/list", id: RequestId, params: ThreadListParams, }
| { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, }
| { "method": "thread/read", id: RequestId, params: ThreadReadParams, }
| { "method": "skills/list", id: RequestId, params: SkillsListParams, }
| { "method": "plugin/list", id: RequestId, params: PluginListParams, }
| { "method": "plugin/read", id: RequestId, params: PluginReadParams, }
| { "method": "skills/remote/list", id: RequestId, params: SkillsRemoteReadParams, }
| { "method": "skills/remote/export", id: RequestId, params: SkillsRemoteWriteParams, }
| { "method": "app/list", id: RequestId, params: AppsListParams, }
| { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, }
| { "method": "plugin/install", id: RequestId, params: PluginInstallParams, }
| { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, }
| { "method": "turn/start", id: RequestId, params: TurnStartParams, }
| { "method": "turn/steer", id: RequestId, params: TurnSteerParams, }
| { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, }
| { "method": "review/start", id: RequestId, params: ReviewStartParams, }
| { "method": "model/list", id: RequestId, params: ModelListParams, }
| { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, }
| { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, }
| { "method": "config/mcpServer/reload", id: RequestId, params: undefined, }
| { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, }
| { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, }
| { "method": "account/login/start", id: RequestId, params: LoginAccountParams, }
| { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, }
| { "method": "account/logout", id: RequestId, params: undefined, }
| { "method": "account/rateLimits/read", id: RequestId, params: undefined, }
| { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, }
| { "method": "command/exec", id: RequestId, params: CommandExecParams, }
| { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, }
| { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, }
| { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, }
| { "method": "config/read", id: RequestId, params: ConfigReadParams, }
| { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, }
| { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, }
| { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, }
| { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, }
| { "method": "configRequirements/read", id: RequestId, params: undefined, }
| { "method": "account/read", id: RequestId, params: GetAccountParams, }
| { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, }
| { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, }
| { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, }
| { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, } | { "type": "output_text", text: string, };
export type ContentItem =
| { "type": "input_text", text: string, }
| { "type": "input_image", image_url: string, }
| { "type": "output_text", text: string, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type FileChange = { "type": "add", content: string, } | { "type": "delete", content: string, } | { "type": "update", unified_diff: string, move_path: string | null, };
export type FileChange =
| { "type": "add", content: string, }
| { "type": "delete", content: string, }
| { "type": "update", unified_diff: string, move_path: string | null, };

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ForcedLoginMethod = "chatgpt" | "api";
export type ForcedLoginMethod =
| "chatgpt"
| "api";

View File

@@ -3,4 +3,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem";
export type FunctionCallOutputBody = string | Array<FunctionCallOutputContentItem>;
export type FunctionCallOutputBody =
| string
| Array<FunctionCallOutputContentItem>;

View File

@@ -7,4 +7,6 @@ import type { ImageDetail } from "./ImageDetail";
* Responses API compatible content items that can be returned by a tool call.
* This is a subset of ContentItem with the types we support as function call outputs.
*/
export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, };
export type FunctionCallOutputContentItem =
| { "type": "input_text", text: string, }
| { "type": "input_image", image_url: string, detail?: ImageDetail, };

View File

@@ -3,4 +3,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadId } from "./ThreadId";
export type GetConversationSummaryParams = { rolloutPath: string, } | { conversationId: ThreadId, };
export type GetConversationSummaryParams =
| { rolloutPath: string, }
| { conversationId: ThreadId, };

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ImageDetail = "auto" | "low" | "high" | "original";
export type ImageDetail =
| "auto"
| "low"
| "high"
| "original";

View File

@@ -5,4 +5,6 @@
/**
* Canonical user-input modality tags advertised by a model.
*/
export type InputModality = "text" | "image";
export type InputModality =
| "text"
| "image";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type LocalShellStatus = "completed" | "in_progress" | "incomplete";
export type LocalShellStatus =
| "completed"
| "in_progress"
| "incomplete";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type MacOsAutomationPermission = "none" | "all" | { "bundle_ids": Array<string> };
export type MacOsAutomationPermission =
| "none"
| "all"
| { "bundle_ids": Array<string> };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type MacOsContactsPermission = "none" | "read_only" | "read_write";
export type MacOsContactsPermission =
| "none"
| "read_only"
| "read_write";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type MacOsPreferencesPermission = "none" | "read_only" | "read_write";
export type MacOsPreferencesPermission =
| "none"
| "read_only"
| "read_write";

View File

@@ -8,4 +8,6 @@
* Providers do not emit this consistently, so callers must treat `None` as
* "phase unknown" and keep compatibility behavior for legacy models.
*/
export type MessagePhase = "commentary" | "final_answer";
export type MessagePhase =
| "commentary"
| "final_answer";

View File

@@ -5,4 +5,6 @@
/**
* Initial collaboration mode to use when the TUI starts.
*/
export type ModeKind = "plan" | "default";
export type ModeKind =
| "plan"
| "default";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type NetworkPolicyRuleAction = "allow" | "deny";
export type NetworkPolicyRuleAction =
| "allow"
| "deny";

View File

@@ -2,11 +2,15 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ParsedCommand = { "type": "read", cmd: string, name: string,
/**
* (Best effort) Path to the file being read by the command. When
* possible, this is an absolute path, though when relative, it should
* be resolved against the `cwd`` that will be used to run the command
* to derive the absolute path.
*/
path: string, } | { "type": "list_files", cmd: string, path: string | null, } | { "type": "search", cmd: string, query: string | null, path: string | null, } | { "type": "unknown", cmd: string, };
export type ParsedCommand =
| { "type": "read", cmd: string, name: string,
/**
* (Best effort) Path to the file being read by the command. When
* possible, this is an absolute path, though when relative, it should
* be resolved against the `cwd`` that will be used to run the command
* to derive the absolute path.
*/
path: string, }
| { "type": "list_files", cmd: string, path: string | null, }
| { "type": "search", cmd: string, query: string | null, path: string | null, }
| { "type": "unknown", cmd: string, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type Personality = "none" | "friendly" | "pragmatic";
export type Personality =
| "none"
| "friendly"
| "pragmatic";

View File

@@ -2,4 +2,13 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type PlanType = "free" | "go" | "plus" | "pro" | "team" | "business" | "enterprise" | "edu" | "unknown";
export type PlanType =
| "free"
| "go"
| "plus"
| "pro"
| "team"
| "business"
| "enterprise"
| "edu"
| "unknown";

View File

@@ -3,6 +3,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
/**
* See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning
*/
export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
* See https://platform.openai.com/docs/guides/reasoning?api-mode=
| responses#get-started-with-reasoning
*/
export type ReasoningEffort = "none"
| "minimal"
| "low"
| "medium"
| "high"
| "xhigh";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReasoningItemContent = { "type": "reasoning_text", text: string, } | { "type": "text", text: string, };
export type ReasoningItemContent =
| { "type": "reasoning_text", text: string, }
| { "type": "text", text: string, };

View File

@@ -5,6 +5,10 @@
/**
* A summary of the reasoning performed by the model. This can be useful for
* debugging and understanding the model's reasoning process.
* See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries
*/
export type ReasoningSummary = "auto" | "concise" | "detailed" | "none";
* See https://platform.openai.com/docs/guides/reasoning?api-mode=
| responses#reasoning-summaries
*/
export type ReasoningSummary = "auto"
| "concise"
| "detailed"
| "none";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type RequestId = string | number;
export type RequestId =
| string
| number;

View File

@@ -11,8 +11,22 @@ import type { ReasoningItemContent } from "./ReasoningItemContent";
import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary";
import type { WebSearchAction } from "./WebSearchAction";
export type ResponseItem = { "type": "message", role: string, content: Array<ContentItem>, end_turn?: boolean, phase?: MessagePhase, } | { "type": "reasoning", summary: Array<ReasoningItemReasoningSummary>, content?: Array<ReasoningItemContent>, encrypted_content: string | null, } | { "type": "local_shell_call",
/**
* Set when using the Responses API.
*/
call_id: string | null, status: LocalShellStatus, action: LocalShellAction, } | { "type": "function_call", name: string, namespace?: string, arguments: string, call_id: string, } | { "type": "tool_search_call", call_id: string | null, status?: string, execution: string, arguments: unknown, } | { "type": "function_call_output", call_id: string, output: FunctionCallOutputPayload, } | { "type": "custom_tool_call", status?: string, call_id: string, name: string, input: string, } | { "type": "custom_tool_call_output", call_id: string, output: FunctionCallOutputPayload, } | { "type": "tool_search_output", call_id: string | null, status: string, execution: string, tools: unknown[], } | { "type": "web_search_call", status?: string, action?: WebSearchAction, } | { "type": "image_generation_call", id: string, status: string, revised_prompt?: string, result: string, } | { "type": "ghost_snapshot", ghost_commit: GhostCommit, } | { "type": "compaction", encrypted_content: string, } | { "type": "other" };
export type ResponseItem =
| { "type": "message", role: string, content: Array<ContentItem>, end_turn?: boolean, phase?: MessagePhase, }
| { "type": "reasoning", summary: Array<ReasoningItemReasoningSummary>, content?: Array<ReasoningItemContent>, encrypted_content: string | null, }
| { "type": "local_shell_call",
/**
* Set when using the Responses API.
*/
call_id: string | null, status: LocalShellStatus, action: LocalShellAction, }
| { "type": "function_call", name: string, namespace?: string, arguments: string, call_id: string, }
| { "type": "tool_search_call", call_id: string | null, status?: string, execution: string, arguments: unknown, }
| { "type": "function_call_output", call_id: string, output: FunctionCallOutputPayload, }
| { "type": "custom_tool_call", status?: string, call_id: string, name: string, input: string, }
| { "type": "custom_tool_call_output", call_id: string, output: FunctionCallOutputPayload, }
| { "type": "tool_search_output", call_id: string | null, status: string, execution: string, tools: unknown[], }
| { "type": "web_search_call", status?: string, action?: WebSearchAction, }
| { "type": "image_generation_call", id: string, status: string, revised_prompt?: string, result: string, }
| { "type": "ghost_snapshot", ghost_commit: GhostCommit, }
| { "type": "compaction", encrypted_content: string, }
| { "type": "other" };

View File

@@ -7,4 +7,10 @@ import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";
/**
* User's decision in response to an ExecApprovalRequest.
*/
export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } } | "denied" | "abort";
export type ReviewDecision =
| "approved"
| { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } }
| "approved_for_session"
| { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } }
| "denied"
| "abort";

View File

@@ -52,4 +52,51 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW
/**
* Notification sent from the server to the client.
*/
export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification };
export type ServerNotification =
| { "method": "error", "params": ErrorNotification }
| { "method": "thread/started", "params": ThreadStartedNotification }
| { "method": "thread/status/changed", "params": ThreadStatusChangedNotification }
| { "method": "thread/archived", "params": ThreadArchivedNotification }
| { "method": "thread/unarchived", "params": ThreadUnarchivedNotification }
| { "method": "thread/closed", "params": ThreadClosedNotification }
| { "method": "skills/changed", "params": SkillsChangedNotification }
| { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification }
| { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification }
| { "method": "turn/started", "params": TurnStartedNotification }
| { "method": "hook/started", "params": HookStartedNotification }
| { "method": "turn/completed", "params": TurnCompletedNotification }
| { "method": "hook/completed", "params": HookCompletedNotification }
| { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification }
| { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification }
| { "method": "item/started", "params": ItemStartedNotification }
| { "method": "item/completed", "params": ItemCompletedNotification }
| { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification }
| { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification }
| { "method": "item/plan/delta", "params": PlanDeltaNotification }
| { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification }
| { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification }
| { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification }
| { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification }
| { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification }
| { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification }
| { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification }
| { "method": "account/updated", "params": AccountUpdatedNotification }
| { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification }
| { "method": "app/list/updated", "params": AppListUpdatedNotification }
| { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification }
| { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification }
| { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification }
| { "method": "thread/compacted", "params": ContextCompactedNotification }
| { "method": "model/rerouted", "params": ModelReroutedNotification }
| { "method": "deprecationNotice", "params": DeprecationNoticeNotification }
| { "method": "configWarning", "params": ConfigWarningNotification }
| { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification }
| { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification }
| { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification }
| { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification }
| { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification }
| { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification }
| { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification }
| { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification }
| { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification }
| { "method": "account/login/completed", "params": AccountLoginCompletedNotification };

View File

@@ -15,4 +15,13 @@ import type { ToolRequestUserInputParams } from "./v2/ToolRequestUserInputParams
/**
* Request initiated from the server and sent to the client.
*/
export type ServerRequest = { "method": "item/commandExecution/requestApproval", id: RequestId, params: CommandExecutionRequestApprovalParams, } | { "method": "item/fileChange/requestApproval", id: RequestId, params: FileChangeRequestApprovalParams, } | { "method": "item/tool/requestUserInput", id: RequestId, params: ToolRequestUserInputParams, } | { "method": "mcpServer/elicitation/request", id: RequestId, params: McpServerElicitationRequestParams, } | { "method": "item/permissions/requestApproval", id: RequestId, params: PermissionsRequestApprovalParams, } | { "method": "item/tool/call", id: RequestId, params: DynamicToolCallParams, } | { "method": "account/chatgptAuthTokens/refresh", id: RequestId, params: ChatgptAuthTokensRefreshParams, } | { "method": "applyPatchApproval", id: RequestId, params: ApplyPatchApprovalParams, } | { "method": "execCommandApproval", id: RequestId, params: ExecCommandApprovalParams, };
export type ServerRequest =
| { "method": "item/commandExecution/requestApproval", id: RequestId, params: CommandExecutionRequestApprovalParams, }
| { "method": "item/fileChange/requestApproval", id: RequestId, params: FileChangeRequestApprovalParams, }
| { "method": "item/tool/requestUserInput", id: RequestId, params: ToolRequestUserInputParams, }
| { "method": "mcpServer/elicitation/request", id: RequestId, params: McpServerElicitationRequestParams, }
| { "method": "item/permissions/requestApproval", id: RequestId, params: PermissionsRequestApprovalParams, }
| { "method": "item/tool/call", id: RequestId, params: DynamicToolCallParams, }
| { "method": "account/chatgptAuthTokens/refresh", id: RequestId, params: ChatgptAuthTokensRefreshParams, }
| { "method": "applyPatchApproval", id: RequestId, params: ApplyPatchApprovalParams, }
| { "method": "execCommandApproval", id: RequestId, params: ExecCommandApprovalParams, };

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ServiceTier = "fast" | "flex";
export type ServiceTier =
| "fast"
| "flex";

View File

@@ -3,4 +3,10 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { SubAgentSource } from "./SubAgentSource";
export type SessionSource = "cli" | "vscode" | "exec" | "mcp" | { "subagent": SubAgentSource } | "unknown";
export type SessionSource =
| "cli"
| "vscode"
| "exec"
| "mcp"
| { "subagent": SubAgentSource }
| "unknown";

View File

@@ -3,4 +3,9 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadId } from "./ThreadId";
export type SubAgentSource = "review" | "compact" | { "thread_spawn": { parent_thread_id: ThreadId, depth: number, agent_nickname: string | null, agent_role: string | null, } } | "memory_consolidation" | { "other": string };
export type SubAgentSource =
| "review"
| "compact"
| { "thread_spawn": { parent_thread_id: ThreadId, depth: number, agent_nickname: string | null, agent_role: string | null, } }
| "memory_consolidation"
| { "other": string };

View File

@@ -6,4 +6,7 @@
* Controls output length/detail on GPT-5 models via the Responses API.
* Serialized with lowercase values to match the OpenAI API.
*/
export type Verbosity = "low" | "medium" | "high";
export type Verbosity =
| "low"
| "medium"
| "high";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type WebSearchAction = { "type": "search", query?: string, queries?: Array<string>, } | { "type": "open_page", url?: string, } | { "type": "find_in_page", url?: string, pattern?: string, } | { "type": "other" };
export type WebSearchAction =
| { "type": "search", query?: string, queries?: Array<string>, }
| { "type": "open_page", url?: string, }
| { "type": "find_in_page", url?: string, pattern?: string, }
| { "type": "other" };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type WebSearchContextSize = "low" | "medium" | "high";
export type WebSearchContextSize =
| "low"
| "medium"
| "high";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type WebSearchMode = "disabled" | "cached" | "live";
export type WebSearchMode =
| "disabled"
| "cached"
| "live";

View File

@@ -2,4 +2,10 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type JsonValue = number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null;
export type JsonValue =
| number
| string
| boolean
| Array<JsonValue>
| { [key in string]?: JsonValue }
| null;

View File

@@ -3,4 +3,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PlanType } from "../PlanType";
export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string, planType: PlanType, };
export type Account =
| { "type": "apiKey", }
| { "type": "chatgpt", email: string, planType: PlanType, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type AppToolApproval = "auto" | "prompt" | "approve";
export type AppToolApproval =
| "auto"
| "prompt"
| "approve";

View File

@@ -2,4 +2,9 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "granular": { sandbox_approval: boolean, rules: boolean, skill_approval: boolean, request_permissions: boolean, mcp_elicitations: boolean, } } | "never";
export type AskForApproval =
| "untrusted"
| "on-failure"
| "on-request"
| { "granular": { sandbox_approval: boolean, rules: boolean, skill_approval: boolean, request_permissions: boolean, mcp_elicitations: boolean, } }
| "never";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CancelLoginAccountStatus = "canceled" | "notFound";
export type CancelLoginAccountStatus =
| "canceled"
| "notFound";

View File

@@ -8,4 +8,17 @@
* When an upstream HTTP status is available (for example, from the Responses API or a provider),
* it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.
*/
export type CodexErrorInfo = "contextWindowExceeded" | "usageLimitExceeded" | "serverOverloaded" | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | "other";
export type CodexErrorInfo =
| "contextWindowExceeded"
| "usageLimitExceeded"
| "serverOverloaded"
| { "httpConnectionFailed": { httpStatusCode: number | null, } }
| { "responseStreamConnectionFailed": { httpStatusCode: number | null, } }
| "internalServerError"
| "unauthorized"
| "badRequest"
| "threadRollbackFailed"
| "sandboxError"
| { "responseStreamDisconnected": { httpStatusCode: number | null, } }
| { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } }
| "other";

View File

@@ -2,4 +2,10 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CollabAgentStatus = "pendingInit" | "running" | "completed" | "errored" | "shutdown" | "notFound";
export type CollabAgentStatus =
| "pendingInit"
| "running"
| "completed"
| "errored"
| "shutdown"
| "notFound";

View File

@@ -2,4 +2,9 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
export type CollabAgentTool =
| "spawnAgent"
| "sendInput"
| "resumeAgent"
| "wait"
| "closeAgent";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
export type CollabAgentToolCallStatus =
| "inProgress"
| "completed"
| "failed";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CommandAction = { "type": "read", command: string, name: string, path: string, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, };
export type CommandAction =
| { "type": "read", command: string, name: string, path: string, }
| { "type": "listFiles", command: string, path: string | null, }
| { "type": "search", command: string, query: string | null, path: string | null, }
| { "type": "unknown", command: string, };

View File

@@ -5,4 +5,6 @@
/**
* Stream label for `command/exec/outputDelta` notifications.
*/
export type CommandExecOutputStream = "stdout" | "stderr";
export type CommandExecOutputStream =
| "stdout"
| "stderr";

View File

@@ -4,4 +4,10 @@
import type { ExecPolicyAmendment } from "./ExecPolicyAmendment";
import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";
export type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | { "acceptWithExecpolicyAmendment": { execpolicy_amendment: ExecPolicyAmendment, } } | { "applyNetworkPolicyAmendment": { network_policy_amendment: NetworkPolicyAmendment, } } | "decline" | "cancel";
export type CommandExecutionApprovalDecision =
| "accept"
| "acceptForSession"
| { "acceptWithExecpolicyAmendment": { execpolicy_amendment: ExecPolicyAmendment, } }
| { "applyNetworkPolicyAmendment": { network_policy_amendment: NetworkPolicyAmendment, } }
| "decline"
| "cancel";

View File

@@ -1,16 +1,12 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile";
import type { CommandAction } from "./CommandAction";
import type { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision";
import type { CommandExecutionRequestApprovalSkillMetadata } from "./CommandExecutionRequestApprovalSkillMetadata";
import type { ExecPolicyAmendment } from "./ExecPolicyAmendment";
import type { NetworkApprovalContext } from "./NetworkApprovalContext";
import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";
export type CommandExecutionRequestApprovalParams = { threadId: string, turnId: string, itemId: string,
/**
export type CommandExecutionRequestApprovalParams = {threadId: string, turnId: string, itemId: string, /**
* Unique identifier for this specific approval callback.
*
* For regular shell/unified_exec approvals, this is null.
@@ -19,44 +15,25 @@ export type CommandExecutionRequestApprovalParams = { threadId: string, turnId:
* one parent `itemId`, so `approvalId` is a distinct opaque callback id
* (a UUID) used to disambiguate routing.
*/
approvalId?: string | null,
/**
approvalId?: string | null, /**
* Optional explanatory reason (e.g. request for network access).
*/
reason?: string | null,
/**
reason?: string | null, /**
* Optional context for a managed-network approval prompt.
*/
networkApprovalContext?: NetworkApprovalContext | null,
/**
networkApprovalContext?: NetworkApprovalContext | null, /**
* The command to be executed.
*/
command?: string | null,
/**
command?: string | null, /**
* The command's working directory.
*/
cwd?: string | null,
/**
cwd?: string | null, /**
* Best-effort parsed command actions for friendly display.
*/
commandActions?: Array<CommandAction> | null,
/**
* Optional additional permissions requested for this command.
*/
additionalPermissions?: AdditionalPermissionProfile | null,
/**
* Optional skill metadata when the approval was triggered by a skill script.
*/
skillMetadata?: CommandExecutionRequestApprovalSkillMetadata | null,
/**
commandActions?: Array<CommandAction> | null, /**
* Optional proposed execpolicy amendment to allow similar commands without prompting.
*/
proposedExecpolicyAmendment?: ExecPolicyAmendment | null,
/**
proposedExecpolicyAmendment?: ExecPolicyAmendment | null, /**
* Optional proposed network policy amendments (allow/deny host) for future requests.
*/
proposedNetworkPolicyAmendments?: Array<NetworkPolicyAmendment> | null,
/**
* Ordered list of decisions the client may present for this prompt.
*/
availableDecisions?: Array<CommandExecutionApprovalDecision> | null, };
proposedNetworkPolicyAmendments?: Array<NetworkPolicyAmendment> | null};

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined";
export type CommandExecutionStatus =
| "inProgress"
| "completed"
| "failed"
| "declined";

View File

@@ -3,14 +3,21 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AbsolutePathBuf } from "../AbsolutePathBuf";
export type ConfigLayerSource = { "type": "mdm", domain: string, key: string, } | { "type": "system",
/**
* This is the path to the system config.toml file, though it is not
* guaranteed to exist.
*/
file: AbsolutePathBuf, } | { "type": "user",
/**
* This is the path to the user's config.toml file, though it is not
* guaranteed to exist.
*/
file: AbsolutePathBuf, } | { "type": "project", dotCodexFolder: AbsolutePathBuf, } | { "type": "sessionFlags" } | { "type": "legacyManagedConfigTomlFromFile", file: AbsolutePathBuf, } | { "type": "legacyManagedConfigTomlFromMdm" };
export type ConfigLayerSource =
| { "type": "mdm", domain: string, key: string, }
| { "type": "system",
/**
* This is the path to the system config.toml file, though it is not
* guaranteed to exist.
*/
file: AbsolutePathBuf, }
| { "type": "user",
/**
* This is the path to the user's config.toml file, though it is not
* guaranteed to exist.
*/
file: AbsolutePathBuf, }
| { "type": "project", dotCodexFolder: AbsolutePathBuf, }
| { "type": "sessionFlags" }
| { "type": "legacyManagedConfigTomlFromFile", file: AbsolutePathBuf, }
| { "type": "legacyManagedConfigTomlFromMdm" };

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type DynamicToolCallOutputContentItem = { "type": "inputText", text: string, } | { "type": "inputImage", imageUrl: string, };
export type DynamicToolCallOutputContentItem =
| { "type": "inputText", text: string, }
| { "type": "inputImage", imageUrl: string, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type DynamicToolCallStatus = "inProgress" | "completed" | "failed";
export type DynamicToolCallStatus =
| "inProgress"
| "completed"
| "failed";

View File

@@ -2,4 +2,9 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ExperimentalFeatureStage = "beta" | "underDevelopment" | "stable" | "deprecated" | "removed";
export type ExperimentalFeatureStage =
| "beta"
| "underDevelopment"
| "stable"
| "deprecated"
| "removed";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "MCP_SERVER_CONFIG";
export type ExternalAgentConfigMigrationItemType =
| "AGENTS_MD"
| "CONFIG"
| "SKILLS"
| "MCP_SERVER_CONFIG";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel";
export type FileChangeApprovalDecision =
| "accept"
| "acceptForSession"
| "decline"
| "cancel";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HazelnutScope = "example" | "workspace-shared" | "all-shared" | "personal";
export type HazelnutScope =
| "example"
| "workspace-shared"
| "all-shared"
| "personal";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookEventName = "sessionStart" | "stop";
export type HookEventName =
| "sessionStart"
| "stop";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookExecutionMode = "sync" | "async";
export type HookExecutionMode =
| "sync"
| "async";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookHandlerType = "command" | "prompt" | "agent";
export type HookHandlerType =
| "command"
| "prompt"
| "agent";

View File

@@ -2,4 +2,9 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookOutputEntryKind = "warning" | "stop" | "feedback" | "context" | "error";
export type HookOutputEntryKind =
| "warning"
| "stop"
| "feedback"
| "context"
| "error";

View File

@@ -2,4 +2,9 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookRunStatus = "running" | "completed" | "failed" | "blocked" | "stopped";
export type HookRunStatus =
| "running"
| "completed"
| "failed"
| "blocked"
| "stopped";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookScope = "thread" | "turn";
export type HookScope =
| "thread"
| "turn";

View File

@@ -2,20 +2,23 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt" } | { "type": "chatgptAuthTokens",
/**
* Access token (JWT) supplied by the client.
* This token is used for backend API requests and email extraction.
*/
accessToken: string,
/**
* Workspace/account identifier supplied by the client.
*/
chatgptAccountId: string,
/**
* Optional plan type supplied by the client.
*
* When `null`, Codex attempts to derive the plan type from access-token
* claims. If unavailable, the plan defaults to `unknown`.
*/
chatgptPlanType?: string | null, };
export type LoginAccountParams =
| { "type": "apiKey", apiKey: string, }
| { "type": "chatgpt" }
| { "type": "chatgptAuthTokens",
/**
* Access token (JWT) supplied by the client.
* This token is used for backend API requests and email extraction.
*/
accessToken: string,
/**
* Workspace/account identifier supplied by the client.
*/
chatgptAccountId: string,
/**
* Optional plan type supplied by the client.
*
* When `null`, Codex attempts to derive the plan type from access-token
* claims. If unavailable, the plan defaults to `unknown`.
*/
chatgptPlanType?: string | null, };

View File

@@ -2,8 +2,11 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type LoginAccountResponse = { "type": "apiKey", } | { "type": "chatgpt", loginId: string,
/**
* URL the client should open in a browser to initiate the OAuth flow.
*/
authUrl: string, } | { "type": "chatgptAuthTokens", };
export type LoginAccountResponse =
| { "type": "apiKey", }
| { "type": "chatgpt", loginId: string,
/**
* URL the client should open in a browser to initiate the OAuth flow.
*/
authUrl: string, }
| { "type": "chatgptAuthTokens", };

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type McpAuthStatus = "unsupported" | "notLoggedIn" | "bearerToken" | "oAuth";
export type McpAuthStatus =
| "unsupported"
| "notLoggedIn"
| "bearerToken"
| "oAuth";

View File

@@ -5,4 +5,7 @@ import type { McpElicitationLegacyTitledEnumSchema } from "./McpElicitationLegac
import type { McpElicitationMultiSelectEnumSchema } from "./McpElicitationMultiSelectEnumSchema";
import type { McpElicitationSingleSelectEnumSchema } from "./McpElicitationSingleSelectEnumSchema";
export type McpElicitationEnumSchema = McpElicitationSingleSelectEnumSchema | McpElicitationMultiSelectEnumSchema | McpElicitationLegacyTitledEnumSchema;
export type McpElicitationEnumSchema =
| McpElicitationSingleSelectEnumSchema
| McpElicitationMultiSelectEnumSchema
| McpElicitationLegacyTitledEnumSchema;

View File

@@ -4,4 +4,6 @@
import type { McpElicitationTitledMultiSelectEnumSchema } from "./McpElicitationTitledMultiSelectEnumSchema";
import type { McpElicitationUntitledMultiSelectEnumSchema } from "./McpElicitationUntitledMultiSelectEnumSchema";
export type McpElicitationMultiSelectEnumSchema = McpElicitationUntitledMultiSelectEnumSchema | McpElicitationTitledMultiSelectEnumSchema;
export type McpElicitationMultiSelectEnumSchema =
| McpElicitationUntitledMultiSelectEnumSchema
| McpElicitationTitledMultiSelectEnumSchema;

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type McpElicitationNumberType = "number" | "integer";
export type McpElicitationNumberType =
| "number"
| "integer";

View File

@@ -6,4 +6,8 @@ import type { McpElicitationEnumSchema } from "./McpElicitationEnumSchema";
import type { McpElicitationNumberSchema } from "./McpElicitationNumberSchema";
import type { McpElicitationStringSchema } from "./McpElicitationStringSchema";
export type McpElicitationPrimitiveSchema = McpElicitationEnumSchema | McpElicitationStringSchema | McpElicitationNumberSchema | McpElicitationBooleanSchema;
export type McpElicitationPrimitiveSchema =
| McpElicitationEnumSchema
| McpElicitationStringSchema
| McpElicitationNumberSchema
| McpElicitationBooleanSchema;

View File

@@ -4,4 +4,6 @@
import type { McpElicitationTitledSingleSelectEnumSchema } from "./McpElicitationTitledSingleSelectEnumSchema";
import type { McpElicitationUntitledSingleSelectEnumSchema } from "./McpElicitationUntitledSingleSelectEnumSchema";
export type McpElicitationSingleSelectEnumSchema = McpElicitationUntitledSingleSelectEnumSchema | McpElicitationTitledSingleSelectEnumSchema;
export type McpElicitationSingleSelectEnumSchema =
| McpElicitationUntitledSingleSelectEnumSchema
| McpElicitationTitledSingleSelectEnumSchema;

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type McpElicitationStringFormat = "email" | "uri" | "date" | "date-time";
export type McpElicitationStringFormat =
| "email"
| "uri"
| "date"
| "date-time";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type McpServerElicitationAction = "accept" | "decline" | "cancel";
export type McpServerElicitationAction =
| "accept"
| "decline"
| "cancel";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type McpToolCallStatus = "inProgress" | "completed" | "failed";
export type McpToolCallStatus =
| "inProgress"
| "completed"
| "failed";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type MergeStrategy = "replace" | "upsert";
export type MergeStrategy =
| "replace"
| "upsert";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type NetworkAccess = "restricted" | "enabled";
export type NetworkAccess =
| "restricted"
| "enabled";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp";
export type NetworkApprovalProtocol =
| "http"
| "https"
| "socks5Tcp"
| "socks5Udp";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type NetworkPolicyRuleAction = "allow" | "deny";
export type NetworkPolicyRuleAction =
| "allow"
| "deny";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined";
export type PatchApplyStatus =
| "inProgress"
| "completed"
| "failed"
| "declined";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type PatchChangeKind = { "type": "add" } | { "type": "delete" } | { "type": "update", move_path: string | null, };
export type PatchChangeKind =
| { "type": "add" }
| { "type": "delete" }
| { "type": "update", move_path: string | null, };

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type PermissionGrantScope = "turn" | "session";
export type PermissionGrantScope =
| "turn"
| "session";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
export type PluginAuthPolicy =
| "ON_INSTALL"
| "ON_USE";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type PluginInstallPolicy = "NOT_AVAILABLE" | "AVAILABLE" | "INSTALLED_BY_DEFAULT";
export type PluginInstallPolicy =
| "NOT_AVAILABLE"
| "AVAILABLE"
| "INSTALLED_BY_DEFAULT";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ProductSurface = "chatgpt" | "codex" | "api" | "atlas";
export type ProductSurface =
| "chatgpt"
| "codex"
| "api"
| "atlas";

View File

@@ -3,4 +3,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AbsolutePathBuf } from "../AbsolutePathBuf";
export type ReadOnlyAccess = { "type": "restricted", includePlatformDefaults: boolean, readableRoots: Array<AbsolutePathBuf>, } | { "type": "fullAccess" };
export type ReadOnlyAccess =
| { "type": "restricted", includePlatformDefaults: boolean, readableRoots: Array<AbsolutePathBuf>, }
| { "type": "fullAccess" };

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewDelivery = "inline" | "detached";
export type ReviewDelivery =
| "inline"
| "detached";

View File

@@ -2,8 +2,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string,
/**
* Optional human-readable label (e.g., commit subject) for UIs.
*/
title: string | null, } | { "type": "custom", instructions: string, };
export type ReviewTarget =
| { "type": "uncommittedChanges" }
| { "type": "baseBranch", branch: string, }
| { "type": "commit", sha: string,
/**
* Optional human-readable label (e.g., commit subject) for UIs.
*/
title: string | null, }
| { "type": "custom", instructions: string, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type SandboxMode = "read-only" | "workspace-write" | "danger-full-access";
export type SandboxMode =
| "read-only"
| "workspace-write"
| "danger-full-access";

View File

@@ -5,4 +5,8 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf";
import type { NetworkAccess } from "./NetworkAccess";
import type { ReadOnlyAccess } from "./ReadOnlyAccess";
export type SandboxPolicy = { "type": "dangerFullAccess" } | { "type": "readOnly", access: ReadOnlyAccess, networkAccess: boolean, } | { "type": "externalSandbox", networkAccess: NetworkAccess, } | { "type": "workspaceWrite", writableRoots: Array<AbsolutePathBuf>, readOnlyAccess: ReadOnlyAccess, networkAccess: boolean, excludeTmpdirEnvVar: boolean, excludeSlashTmp: boolean, };
export type SandboxPolicy =
| { "type": "dangerFullAccess" }
| { "type": "readOnly", access: ReadOnlyAccess, networkAccess: boolean, }
| { "type": "externalSandbox", networkAccess: NetworkAccess, }
| { "type": "workspaceWrite", writableRoots: Array<AbsolutePathBuf>, readOnlyAccess: ReadOnlyAccess, networkAccess: boolean, excludeTmpdirEnvVar: boolean, excludeSlashTmp: boolean, };

View File

@@ -3,4 +3,10 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { SubAgentSource } from "../SubAgentSource";
export type SessionSource = "cli" | "vscode" | "exec" | "appServer" | { "subAgent": SubAgentSource } | "unknown";
export type SessionSource =
| "cli"
| "vscode"
| "exec"
| "appServer"
| { "subAgent": SubAgentSource }
| "unknown";

View File

@@ -2,4 +2,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type SkillScope = "user" | "repo" | "system" | "admin";
export type SkillScope =
| "user"
| "repo"
| "system"
| "admin";

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput";
export type ThreadActiveFlag =
| "waitingOnApproval"
| "waitingOnUserInput";

View File

@@ -16,14 +16,6 @@ import type { SandboxMode } from "./SandboxMode";
* Prefer using thread_id whenever possible.
*/
export type ThreadForkParams = {threadId: string, /**
* [UNSTABLE] Specify the rollout path to fork from.
* If specified, the thread_id param will be ignored.
*/
path?: string | null, /**
* Configuration overrides for the forked thread, if any.
*/
model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, ephemeral?: boolean, /**
* If true, persist additional rollout EventMsg variants required to
* reconstruct a richer thread history on subsequent resume/fork/read.
*/
persistExtendedHistory: boolean};
model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, ephemeral?: boolean};

View File

@@ -19,79 +19,94 @@ import type { PatchApplyStatus } from "./PatchApplyStatus";
import type { UserInput } from "./UserInput";
import type { WebSearchAction } from "./WebSearchAction";
export type ThreadItem = { "type": "userMessage", id: string, content: Array<UserInput>, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array<string>, content: Array<string>, } | { "type": "commandExecution", id: string,
/**
* The command to be executed.
*/
command: string,
/**
* The command's working directory.
*/
cwd: string,
/**
* Identifier for the underlying PTY process (when available).
*/
processId: string | null, status: CommandExecutionStatus,
/**
* A best-effort parsing of the command to understand the action(s) it will perform.
* This returns a list of CommandAction objects because a single shell command may
* be composed of many commands piped together.
*/
commandActions: Array<CommandAction>,
/**
* The command's output, aggregated from stdout and stderr.
*/
aggregatedOutput: string | null,
/**
* The command's exit code.
*/
exitCode: number | null,
/**
* The duration of the command execution in milliseconds.
*/
durationMs: number | null, } | { "type": "fileChange", id: string, changes: Array<FileUpdateChange>, status: PatchApplyStatus, } | { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, result: McpToolCallResult | null, error: McpToolCallError | null,
/**
* The duration of the MCP tool call in milliseconds.
*/
durationMs: number | null, } | { "type": "dynamicToolCall", id: string, tool: string, arguments: JsonValue, status: DynamicToolCallStatus, contentItems: Array<DynamicToolCallOutputContentItem> | null, success: boolean | null,
/**
* The duration of the dynamic tool call in milliseconds.
*/
durationMs: number | null, } | { "type": "collabAgentToolCall",
/**
* Unique identifier for this collab tool call.
*/
id: string,
/**
* Name of the collab tool that was invoked.
*/
tool: CollabAgentTool,
/**
* Current status of the collab tool call.
*/
status: CollabAgentToolCallStatus,
/**
* Thread ID of the agent issuing the collab request.
*/
senderThreadId: string,
/**
* Thread ID of the receiving agent, when applicable. In case of spawn operation,
* this corresponds to the newly spawned agent.
*/
receiverThreadIds: Array<string>,
/**
* Prompt text sent as part of the collab tool call, when available.
*/
prompt: string | null,
/**
* Model requested for the spawned agent, when applicable.
*/
model: string | null,
/**
* Reasoning effort requested for the spawned agent, when applicable.
*/
reasoningEffort: ReasoningEffort | null,
/**
* Last known status of the target agents, when available.
*/
agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, } | { "type": "imageView", id: string, path: string, } | { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, };
export type ThreadItem =
| { "type": "userMessage", id: string, content: Array<UserInput>, }
| { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, }
| { "type": "plan", id: string, text: string, }
| { "type": "reasoning", id: string, summary: Array<string>, content: Array<string>, }
| { "type": "commandExecution", id: string,
/**
* The command to be executed.
*/
command: string,
/**
* The command's working directory.
*/
cwd: string,
/**
* Identifier for the underlying PTY process (when available).
*/
processId: string | null, status: CommandExecutionStatus,
/**
* A best-effort parsing of the command to understand the action(s) it will perform.
* This returns a list of CommandAction objects because a single shell command may
* be composed of many commands piped together.
*/
commandActions: Array<CommandAction>,
/**
* The command's output, aggregated from stdout and stderr.
*/
aggregatedOutput: string | null,
/**
* The command's exit code.
*/
exitCode: number | null,
/**
* The duration of the command execution in milliseconds.
*/
durationMs: number | null, }
| { "type": "fileChange", id: string, changes: Array<FileUpdateChange>, status: PatchApplyStatus, }
| { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, result: McpToolCallResult | null, error: McpToolCallError | null,
/**
* The duration of the MCP tool call in milliseconds.
*/
durationMs: number | null, }
| { "type": "dynamicToolCall", id: string, tool: string, arguments: JsonValue, status: DynamicToolCallStatus, contentItems: Array<DynamicToolCallOutputContentItem> | null, success: boolean | null,
/**
* The duration of the dynamic tool call in milliseconds.
*/
durationMs: number | null, }
| { "type": "collabAgentToolCall",
/**
* Unique identifier for this collab tool call.
*/
id: string,
/**
* Name of the collab tool that was invoked.
*/
tool: CollabAgentTool,
/**
* Current status of the collab tool call.
*/
status: CollabAgentToolCallStatus,
/**
* Thread ID of the agent issuing the collab request.
*/
senderThreadId: string,
/**
* Thread ID of the receiving agent, when applicable. In case of spawn operation,
* this corresponds to the newly spawned agent.
*/
receiverThreadIds: Array<string>,
/**
* Prompt text sent as part of the collab tool call, when available.
*/
prompt: string | null,
/**
* Model requested for the spawned agent, when applicable.
*/
model: string | null,
/**
* Reasoning effort requested for the spawned agent, when applicable.
*/
reasoningEffort: ReasoningEffort | null,
/**
* Last known status of the target agents, when available.
*/
agentsStates: { [key in string]?: CollabAgentState }, }
| { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, }
| { "type": "imageView", id: string, path: string, }
| { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, }
| { "type": "enteredReviewMode", id: string, review: string, }
| { "type": "exitedReviewMode", id: string, review: string, }
| { "type": "contextCompaction", id: string, };

View File

@@ -2,7 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Personality } from "../Personality";
import type { ResponseItem } from "../ResponseItem";
import type { ServiceTier } from "../ServiceTier";
import type { JsonValue } from "../serde_json/JsonValue";
import type { AskForApproval } from "./AskForApproval";
@@ -20,19 +19,6 @@ import type { SandboxMode } from "./SandboxMode";
* Prefer using thread_id whenever possible.
*/
export type ThreadResumeParams = {threadId: string, /**
* [UNSTABLE] FOR CODEX CLOUD - DO NOT USE.
* If specified, the thread will be resumed with the provided history
* instead of loaded from disk.
*/
history?: Array<ResponseItem> | null, /**
* [UNSTABLE] Specify the rollout path to resume from.
* If specified, the thread_id param will be ignored.
*/
path?: string | null, /**
* Configuration overrides for the resumed thread, if any.
*/
model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, /**
* If true, persist additional rollout EventMsg variants required to
* reconstruct a richer thread history on subsequent resume/fork/read.
*/
persistExtendedHistory: boolean};
model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null};

View File

@@ -2,4 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadSortKey = "created_at" | "updated_at";
export type ThreadSortKey =
| "created_at"
| "updated_at";

View File

@@ -2,4 +2,14 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown";
export type ThreadSourceKind =
| "cli"
| "vscode"
| "exec"
| "appServer"
| "subAgent"
| "subAgentReview"
| "subAgentCompact"
| "subAgentThreadSpawn"
| "subAgentOther"
| "unknown";

View File

@@ -7,12 +7,4 @@ import type { JsonValue } from "../serde_json/JsonValue";
import type { AskForApproval } from "./AskForApproval";
import type { SandboxMode } from "./SandboxMode";
export type ThreadStartParams = {model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, serviceName?: string | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, ephemeral?: boolean | null, /**
* If true, opt into emitting raw Responses API items on the event stream.
* This is for internal use only (e.g. Codex Cloud).
*/
experimentalRawEvents: boolean, /**
* If true, persist additional rollout EventMsg variants required to
* reconstruct a richer thread history on resume/fork/read.
*/
persistExtendedHistory: boolean};
export type ThreadStartParams = {model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, serviceName?: string | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, ephemeral?: boolean | null};

View File

@@ -3,4 +3,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadActiveFlag } from "./ThreadActiveFlag";
export type ThreadStatus = { "type": "notLoaded" } | { "type": "idle" } | { "type": "systemError" } | { "type": "active", activeFlags: Array<ThreadActiveFlag>, };
export type ThreadStatus =
| { "type": "notLoaded" }
| { "type": "idle" }
| { "type": "systemError" }
| { "type": "active", activeFlags: Array<ThreadActiveFlag>, };

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadUnsubscribeStatus = "notLoaded" | "notSubscribed" | "unsubscribed";
export type ThreadUnsubscribeStatus =
| "notLoaded"
| "notSubscribed"
| "unsubscribed";

View File

@@ -2,4 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type TurnPlanStepStatus = "pending" | "inProgress" | "completed";
export type TurnPlanStepStatus =
| "pending"
| "inProgress"
| "completed";

Some files were not shown because too many files have changed in this diff Show More