@archboard/codex-realtime-voice 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -41
- package/dist/browser.d.mts +1 -3
- package/dist/browser.mjs +67 -66
- package/dist/{contract-CDS04znV.d.mts → contract-B2ILifH5.d.mts} +3 -3
- package/dist/{contract-qg6q9-vH.d.mts → contract-CkitFygd.d.mts} +97 -3054
- package/dist/{contract-DkiXnfc8.d.mts → contract-D9_WuSxD.d.mts} +3 -3
- package/dist/contract.d.mts +1 -1
- package/dist/controllers.d.mts +221 -6
- package/dist/controllers.mjs +3 -3
- package/dist/{gateway-envelope-DRBUhFx9.d.mts → gateway-envelope-O67wCRD7.d.mts} +3 -2
- package/dist/{realtime-state-CTBmCjt1.mjs → gateway-envelope-jUP82Pq1.mjs} +71 -3
- package/dist/identity-capabilities-3Q_2tJiT.d.mts +147 -0
- package/dist/instructions-B-6HVmoD.mjs +1024 -0
- package/dist/{contract-JI3xv17m.d.mts → instructions-C6TkBWcp.d.mts} +14 -998
- package/dist/{model-DnitkA24.mjs → model-MSyAviwx.mjs} +1652 -85
- package/dist/react.d.mts +1 -1
- package/dist/{realtime-contract-wHmSyUIe.d.mts → realtime-contract-C-1bMn-F.d.mts} +1 -22
- package/dist/realtime.d.mts +2 -3
- package/dist/realtime.mjs +1 -3
- package/dist/runtime.d.mts +3 -18
- package/dist/runtime.mjs +2 -2
- package/dist/schemas.d.mts +3 -13
- package/dist/schemas.mjs +1 -1
- package/dist/server.d.mts +977 -217
- package/dist/server.mjs +17771 -10076
- package/dist/{snapshot-BCrCORmt.d.mts → snapshot-DCl2vsJl.d.mts} +9 -154
- package/dist/{transport-Bqb8KE5T.mjs → transport-DVUz3EK0.mjs} +17 -13
- package/package.json +1 -1
- package/dist/app-server-contract-D4E5bibD.mjs +0 -177
- package/dist/gateway-envelope-DXTRMB3q.mjs +0 -45
- package/dist/instructions-8ACs49yJ.mjs +0 -8980
- package/dist/media-state-CNkFo93s.d.mts +0 -215
- package/dist/realtime-contract-DwkCluo2.mjs +0 -1167
- package/dist/realtime-state-DT4uvrIV.d.mts +0 -16
|
@@ -16,7 +16,6 @@ type AgentMessageInputContent = {
|
|
|
16
16
|
"type": "encrypted_content";
|
|
17
17
|
encrypted_content: string;
|
|
18
18
|
};
|
|
19
|
-
type AgentPath = string;
|
|
20
19
|
/**
|
|
21
20
|
* Identifier for a Codex thread.
|
|
22
21
|
*
|
|
@@ -55,15 +54,6 @@ type ReviewDecision = "approved" | {
|
|
|
55
54
|
type ApplyPatchApprovalResponse = {
|
|
56
55
|
decision: ReviewDecision;
|
|
57
56
|
};
|
|
58
|
-
/**
|
|
59
|
-
* Authentication mode for OpenAI-backed providers.
|
|
60
|
-
*/
|
|
61
|
-
type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "headers" | "agentIdentity" | "personalAccessToken" | "bedrockApiKey" | "bedrockAccessKeys";
|
|
62
|
-
/**
|
|
63
|
-
* Selects which part of the active context is charged against
|
|
64
|
-
* `model_auto_compact_token_limit`.
|
|
65
|
-
*/
|
|
66
|
-
type AutoCompactTokenLimitScope = "total" | "body_after_prefix";
|
|
67
57
|
type ClientInfo = {
|
|
68
58
|
name: string;
|
|
69
59
|
title: string | null;
|
|
@@ -2126,7 +2116,7 @@ type ReasoningItemReasoningSummary = {
|
|
|
2126
2116
|
* remains permissive so legacy rollouts can still be read.
|
|
2127
2117
|
*/
|
|
2128
2118
|
type ResponseItemId = string;
|
|
2129
|
-
type WebSearchAction
|
|
2119
|
+
type WebSearchAction = {
|
|
2130
2120
|
"type": "search";
|
|
2131
2121
|
query?: string;
|
|
2132
2122
|
queries?: Array<string>;
|
|
@@ -2240,7 +2230,7 @@ type ResponseItem = {
|
|
|
2240
2230
|
encrypted_content?: string;
|
|
2241
2231
|
id?: ResponseItemId;
|
|
2242
2232
|
status?: string;
|
|
2243
|
-
action?: WebSearchAction
|
|
2233
|
+
action?: WebSearchAction;
|
|
2244
2234
|
internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough;
|
|
2245
2235
|
} | {
|
|
2246
2236
|
"type": "image_generation_call";
|
|
@@ -3794,3051 +3784,141 @@ type ClientRequest = {
|
|
|
3794
3784
|
id: RequestId;
|
|
3795
3785
|
params: FuzzyFileSearchSessionStopParams;
|
|
3796
3786
|
};
|
|
3797
|
-
type SubAgentSource = "review" | "compact" | {
|
|
3798
|
-
"thread_spawn": {
|
|
3799
|
-
parent_thread_id: ThreadId;
|
|
3800
|
-
depth: number;
|
|
3801
|
-
agent_path: AgentPath | null;
|
|
3802
|
-
agent_nickname: string | null;
|
|
3803
|
-
agent_role: string | null;
|
|
3804
|
-
};
|
|
3805
|
-
} | "memory_consolidation" | {
|
|
3806
|
-
"other": string;
|
|
3807
|
-
};
|
|
3808
3787
|
type ExecCommandApprovalResponse = {
|
|
3809
3788
|
decision: ReviewDecision;
|
|
3810
3789
|
};
|
|
3811
|
-
type
|
|
3812
|
-
type
|
|
3813
|
-
|
|
3814
|
-
* Superset of [`codex_file_search::FileMatch`]
|
|
3815
|
-
*/
|
|
3816
|
-
type FuzzyFileSearchResult = {
|
|
3817
|
-
root: string;
|
|
3818
|
-
path: string;
|
|
3819
|
-
match_type: FuzzyFileSearchMatchType;
|
|
3820
|
-
file_name: string;
|
|
3821
|
-
score: number;
|
|
3822
|
-
indices: Array<number> | null;
|
|
3823
|
-
};
|
|
3824
|
-
type FuzzyFileSearchSessionCompletedNotification = {
|
|
3825
|
-
sessionId: string;
|
|
3826
|
-
};
|
|
3827
|
-
type FuzzyFileSearchSessionUpdatedNotification = {
|
|
3828
|
-
sessionId: string;
|
|
3829
|
-
query: string;
|
|
3830
|
-
files: Array<FuzzyFileSearchResult>;
|
|
3831
|
-
};
|
|
3832
|
-
type ImageGenerationFailure = {
|
|
3833
|
-
"type": "usageLimitExceeded";
|
|
3834
|
-
limitId: string;
|
|
3835
|
-
resetsAt: number | null;
|
|
3836
|
-
};
|
|
3837
|
-
/**
|
|
3838
|
-
* A local image file successfully read for this exact image-generation request.
|
|
3839
|
-
*/
|
|
3840
|
-
type ImageGenerationInputImage = {
|
|
3841
|
-
path: AbsolutePathBuf;
|
|
3842
|
-
/**
|
|
3843
|
-
* Lowercase SHA-256 of the file bytes read before image normalization.
|
|
3844
|
-
*/
|
|
3845
|
-
sha256: string;
|
|
3846
|
-
};
|
|
3847
|
-
type ImageGenerationItem = {
|
|
3848
|
-
id: string;
|
|
3849
|
-
status: string;
|
|
3850
|
-
revisedPrompt: string | null;
|
|
3851
|
-
transparentBackground?: boolean;
|
|
3852
|
-
failure: ImageGenerationFailure | null;
|
|
3853
|
-
savedPath?: AbsolutePathBuf;
|
|
3854
|
-
/**
|
|
3855
|
-
* Observed local inputs for a completed generation, absent on older items.
|
|
3856
|
-
*/
|
|
3857
|
-
inputImages?: Array<ImageGenerationInputImage>;
|
|
3858
|
-
/**
|
|
3859
|
-
* Image generation identifier for the generated image, when provided by the image backend.
|
|
3860
|
-
*/
|
|
3861
|
-
generationId: string | null;
|
|
3862
|
-
} & ({
|
|
3863
|
-
fileId: string;
|
|
3790
|
+
type DynamicToolCallOutputContentItem = {
|
|
3791
|
+
"type": "inputText";
|
|
3792
|
+
text: string;
|
|
3864
3793
|
} | {
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
* Absolute path to the server's $CODEX_HOME directory.
|
|
3871
|
-
*/
|
|
3872
|
-
codexHome: AbsolutePathBuf;
|
|
3873
|
-
/**
|
|
3874
|
-
* Platform family for the running app-server target, for example
|
|
3875
|
-
* `"unix"` or `"windows"`.
|
|
3876
|
-
*/
|
|
3877
|
-
platformFamily: string;
|
|
3878
|
-
/**
|
|
3879
|
-
* Operating system for the running app-server target, for example
|
|
3880
|
-
* `"macos"`, `"linux"`, or `"windows"`.
|
|
3881
|
-
*/
|
|
3882
|
-
platformOs: string;
|
|
3883
|
-
};
|
|
3884
|
-
/**
|
|
3885
|
-
* Canonical user-input modality tags advertised by a model.
|
|
3886
|
-
*/
|
|
3887
|
-
type InputModality = "text" | "image" | "audio";
|
|
3888
|
-
/**
|
|
3889
|
-
* An immutable, cross-platform representation of a `file:` URI.
|
|
3890
|
-
*
|
|
3891
|
-
* Only the `file:` scheme is currently accepted. Construction validates the
|
|
3892
|
-
* URL, and the URI cannot be mutated after construction. [`Self::basename`],
|
|
3893
|
-
* [`Self::parent`], and [`Self::join`] operate on URI path segments without
|
|
3894
|
-
* interpreting them using the operating system running Codex. Fallback URIs
|
|
3895
|
-
* created by [`Self::from_abs_path`] are opaque to these lexical operations.
|
|
3896
|
-
*
|
|
3897
|
-
* `file:` paths retain their URI spelling so they can be parsed independently
|
|
3898
|
-
* of the current host, except that Windows drive letters are canonicalized to
|
|
3899
|
-
* uppercase. A local POSIX `file:` URI can also retain percent-encoded non-UTF-8
|
|
3900
|
-
* bytes for lossless native round trips.
|
|
3901
|
-
*
|
|
3902
|
-
* Like [VS Code resources], path operations use `/` URI separators on every
|
|
3903
|
-
* host. Lexical path operations preserve a URL authority without interpreting
|
|
3904
|
-
* Windows drive or UNC roots from path text. Windows path equality and hashing
|
|
3905
|
-
* ignore ASCII case, while POSIX paths remain case-sensitive. Native path
|
|
3906
|
-
* normalization, filesystem aliases, symlinks, and Unicode normalization are
|
|
3907
|
-
* not resolved.
|
|
3908
|
-
*
|
|
3909
|
-
* Serde represents a `PathUri` as its canonical URI string. Deserialization
|
|
3910
|
-
* accepts only valid `file:` URI strings. These strings round-trip through
|
|
3911
|
-
* their canonical URL form, including encoded non-UTF-8 path bytes.
|
|
3912
|
-
*
|
|
3913
|
-
* [VS Code resources]: https://github.com/microsoft/vscode/blob/main/src/vs/base/common/resources.ts
|
|
3914
|
-
*/
|
|
3915
|
-
type PathUri = string;
|
|
3916
|
-
type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "promax" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "sci" | "sci_plus" | "unknown";
|
|
3917
|
-
type DesktopOnboardingEntrypoint = "life_sciences";
|
|
3918
|
-
type AccountLoginCompletedNotification = {
|
|
3919
|
-
loginId: string | null;
|
|
3920
|
-
success: boolean;
|
|
3921
|
-
error: string | null;
|
|
3922
|
-
onboardingEntrypoint: DesktopOnboardingEntrypoint | null;
|
|
3794
|
+
"type": "inputImage";
|
|
3795
|
+
imageUrl: string;
|
|
3796
|
+
} | {
|
|
3797
|
+
"type": "inputAudio";
|
|
3798
|
+
audioUrl: string;
|
|
3923
3799
|
};
|
|
3924
|
-
type
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3800
|
+
type FileSystemAccessMode = "read" | "write" | "deny";
|
|
3801
|
+
type FileSystemSpecialPath = {
|
|
3802
|
+
"kind": "root";
|
|
3803
|
+
} | {
|
|
3804
|
+
"kind": "minimal";
|
|
3805
|
+
} | {
|
|
3806
|
+
"kind": "project_roots";
|
|
3807
|
+
subpath: LegacyAppPathString | null;
|
|
3808
|
+
} | {
|
|
3809
|
+
"kind": "tmpdir";
|
|
3810
|
+
} | {
|
|
3811
|
+
"kind": "slash_tmp";
|
|
3812
|
+
} | {
|
|
3813
|
+
"kind": "unknown";
|
|
3814
|
+
path: string;
|
|
3815
|
+
subpath: LegacyAppPathString | null;
|
|
3928
3816
|
};
|
|
3929
|
-
type
|
|
3930
|
-
type
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3817
|
+
type FileSystemPath = {
|
|
3818
|
+
"type": "path";
|
|
3819
|
+
path: LegacyAppPathString;
|
|
3820
|
+
} | {
|
|
3821
|
+
"type": "glob_pattern";
|
|
3822
|
+
pattern: string;
|
|
3823
|
+
} | {
|
|
3824
|
+
"type": "special";
|
|
3825
|
+
value: FileSystemSpecialPath;
|
|
3934
3826
|
};
|
|
3935
|
-
type
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
remainingPercent: number;
|
|
3939
|
-
resetsAt: number;
|
|
3827
|
+
type FileSystemSandboxEntry = {
|
|
3828
|
+
path: FileSystemPath;
|
|
3829
|
+
access: FileSystemAccessMode;
|
|
3940
3830
|
};
|
|
3941
|
-
type
|
|
3942
|
-
limitId: string | null;
|
|
3943
|
-
limitName: string | null;
|
|
3831
|
+
type AdditionalFileSystemPermissions = {
|
|
3944
3832
|
/**
|
|
3945
|
-
*
|
|
3833
|
+
* This will be removed in favor of `entries`.
|
|
3946
3834
|
*/
|
|
3947
|
-
|
|
3948
|
-
primary: RateLimitWindow | null;
|
|
3949
|
-
secondary: RateLimitWindow | null;
|
|
3950
|
-
credits: CreditsSnapshot | null;
|
|
3951
|
-
individualLimit: SpendControlLimitSnapshot | null;
|
|
3835
|
+
read: Array<LegacyAppPathString> | null;
|
|
3952
3836
|
/**
|
|
3953
|
-
*
|
|
3837
|
+
* This will be removed in favor of `entries`.
|
|
3954
3838
|
*/
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
};
|
|
3959
|
-
/**
|
|
3960
|
-
* Sparse rolling rate-limit update.
|
|
3961
|
-
*
|
|
3962
|
-
* Clients should merge available values into the most recent `account/rateLimits/read` response
|
|
3963
|
-
* or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and
|
|
3964
|
-
* does not clear a previously observed value.
|
|
3965
|
-
*/
|
|
3966
|
-
type AccountRateLimitsUpdatedNotification = {
|
|
3967
|
-
rateLimits: RateLimitSnapshot;
|
|
3968
|
-
};
|
|
3969
|
-
type AccountUpdatedNotification = {
|
|
3970
|
-
authMode: AuthMode | null;
|
|
3971
|
-
planType: PlanType | null;
|
|
3972
|
-
};
|
|
3973
|
-
type AgentMessageDeltaNotification = {
|
|
3974
|
-
threadId: string;
|
|
3975
|
-
turnId: string;
|
|
3976
|
-
itemId: string;
|
|
3977
|
-
delta: string;
|
|
3978
|
-
};
|
|
3979
|
-
/**
|
|
3980
|
-
* EXPERIMENTAL - app metadata returned by app-list APIs.
|
|
3981
|
-
*/
|
|
3982
|
-
type AppBranding = {
|
|
3983
|
-
category: string | null;
|
|
3984
|
-
developer: string | null;
|
|
3985
|
-
website: string | null;
|
|
3986
|
-
privacyPolicy: string | null;
|
|
3987
|
-
termsOfService: string | null;
|
|
3988
|
-
isDiscoverableApp: boolean;
|
|
3989
|
-
};
|
|
3990
|
-
type AppReview = {
|
|
3991
|
-
status: string;
|
|
3992
|
-
};
|
|
3993
|
-
type AppScreenshot = {
|
|
3994
|
-
url: string | null;
|
|
3995
|
-
fileId: string | null;
|
|
3996
|
-
userPrompt: string;
|
|
3997
|
-
};
|
|
3998
|
-
type AppMetadata = {
|
|
3999
|
-
review: AppReview | null;
|
|
4000
|
-
categories: Array<string> | null;
|
|
4001
|
-
subCategories: Array<string> | null;
|
|
4002
|
-
seoDescription: string | null;
|
|
4003
|
-
screenshots: Array<AppScreenshot> | null;
|
|
4004
|
-
developer: string | null;
|
|
4005
|
-
version: string | null;
|
|
4006
|
-
versionId: string | null;
|
|
4007
|
-
versionNotes: string | null;
|
|
4008
|
-
firstPartyRequiresInstall: boolean | null;
|
|
4009
|
-
showInComposerWhenUnlinked: boolean | null;
|
|
3839
|
+
write: Array<LegacyAppPathString> | null;
|
|
3840
|
+
globScanMaxDepth?: number;
|
|
3841
|
+
entries?: Array<FileSystemSandboxEntry>;
|
|
4010
3842
|
};
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
*/
|
|
4014
|
-
type AppInfo = {
|
|
4015
|
-
id: string;
|
|
4016
|
-
name: string;
|
|
4017
|
-
description: string | null;
|
|
4018
|
-
logoUrl: string | null;
|
|
4019
|
-
logoUrlDark: string | null;
|
|
4020
|
-
iconAssets: { [key in string]?: string; } | null;
|
|
4021
|
-
iconDarkAssets: { [key in string]?: string; } | null;
|
|
4022
|
-
distributionChannel: string | null;
|
|
4023
|
-
branding: AppBranding | null;
|
|
4024
|
-
appMetadata: AppMetadata | null;
|
|
4025
|
-
labels: { [key in string]?: string; } | null;
|
|
4026
|
-
installUrl: string | null;
|
|
4027
|
-
isAccessible: boolean;
|
|
4028
|
-
/**
|
|
4029
|
-
* Whether this app is enabled in config.toml.
|
|
4030
|
-
* Example:
|
|
4031
|
-
* ```toml
|
|
4032
|
-
* [apps.bad_app]
|
|
4033
|
-
* enabled = false
|
|
4034
|
-
* ```
|
|
4035
|
-
*/
|
|
4036
|
-
isEnabled: boolean;
|
|
4037
|
-
pluginDisplayNames: Array<string>;
|
|
3843
|
+
type AdditionalNetworkPermissions = {
|
|
3844
|
+
enabled: boolean | null;
|
|
4038
3845
|
};
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
3846
|
+
type ExecPolicyAmendment = Array<string>;
|
|
3847
|
+
type NetworkPolicyRuleAction = "allow" | "deny";
|
|
3848
|
+
type NetworkPolicyAmendment = {
|
|
3849
|
+
host: string;
|
|
3850
|
+
action: NetworkPolicyRuleAction;
|
|
4044
3851
|
};
|
|
4045
|
-
type
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
3852
|
+
type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | {
|
|
3853
|
+
"acceptWithExecpolicyAmendment": {
|
|
3854
|
+
execpolicy_amendment: ExecPolicyAmendment;
|
|
3855
|
+
};
|
|
3856
|
+
} | {
|
|
3857
|
+
"applyNetworkPolicyAmendment": {
|
|
3858
|
+
network_policy_amendment: NetworkPolicyAmendment;
|
|
3859
|
+
};
|
|
3860
|
+
} | "decline" | "cancel";
|
|
3861
|
+
type CommandExecutionRequestApprovalResponse = {
|
|
3862
|
+
decision: CommandExecutionApprovalDecision;
|
|
4050
3863
|
};
|
|
4051
|
-
|
|
4052
|
-
* Stream label for `command/exec/outputDelta` notifications.
|
|
4053
|
-
*/
|
|
4054
|
-
type CommandExecOutputStream = "stdout" | "stderr";
|
|
4055
|
-
/**
|
|
4056
|
-
* Base64-encoded output chunk emitted for a streaming `command/exec` request.
|
|
4057
|
-
*
|
|
4058
|
-
* These notifications are connection-scoped. If the originating connection
|
|
4059
|
-
* closes, the server terminates the process.
|
|
4060
|
-
*/
|
|
4061
|
-
type CommandExecOutputDeltaNotification = {
|
|
4062
|
-
/**
|
|
4063
|
-
* Client-supplied, connection-scoped `processId` from the original
|
|
4064
|
-
* `command/exec` request.
|
|
4065
|
-
*/
|
|
4066
|
-
processId: string;
|
|
4067
|
-
/**
|
|
4068
|
-
* Output stream for this chunk.
|
|
4069
|
-
*/
|
|
4070
|
-
stream: CommandExecOutputStream;
|
|
4071
|
-
/**
|
|
4072
|
-
* Base64-encoded output bytes.
|
|
4073
|
-
*/
|
|
4074
|
-
deltaBase64: string;
|
|
3864
|
+
type CurrentTimeReadResponse = {
|
|
4075
3865
|
/**
|
|
4076
|
-
*
|
|
4077
|
-
* truncated later output on that stream.
|
|
3866
|
+
* Current time as whole Unix seconds.
|
|
4078
3867
|
*/
|
|
4079
|
-
|
|
3868
|
+
currentTimeAt: number;
|
|
4080
3869
|
};
|
|
4081
|
-
type
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
itemId: string;
|
|
4085
|
-
delta: string;
|
|
3870
|
+
type DynamicToolCallResponse = {
|
|
3871
|
+
contentItems: Array<DynamicToolCallOutputContentItem>;
|
|
3872
|
+
success: boolean;
|
|
4086
3873
|
};
|
|
4087
|
-
type
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
*/
|
|
4091
|
-
line: number;
|
|
4092
|
-
/**
|
|
4093
|
-
* 1-based column number (in Unicode scalar values).
|
|
4094
|
-
*/
|
|
4095
|
-
column: number;
|
|
3874
|
+
type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel";
|
|
3875
|
+
type FileChangeRequestApprovalResponse = {
|
|
3876
|
+
decision: FileChangeApprovalDecision;
|
|
4096
3877
|
};
|
|
4097
|
-
type
|
|
4098
|
-
|
|
4099
|
-
|
|
3878
|
+
type GrantedPermissionProfile = {
|
|
3879
|
+
network?: AdditionalNetworkPermissions;
|
|
3880
|
+
fileSystem?: AdditionalFileSystemPermissions;
|
|
4100
3881
|
};
|
|
4101
|
-
type
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
*/
|
|
4105
|
-
summary: string;
|
|
4106
|
-
/**
|
|
4107
|
-
* Optional extra guidance or error details.
|
|
4108
|
-
*/
|
|
4109
|
-
details: string | null;
|
|
3882
|
+
type McpServerElicitationAction = "accept" | "decline" | "cancel";
|
|
3883
|
+
type McpServerElicitationRequestResponse = {
|
|
3884
|
+
action: McpServerElicitationAction;
|
|
4110
3885
|
/**
|
|
4111
|
-
*
|
|
3886
|
+
* Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`.
|
|
3887
|
+
*
|
|
3888
|
+
* This is nullable because decline/cancel responses have no content.
|
|
4112
3889
|
*/
|
|
4113
|
-
|
|
3890
|
+
content: JsonValue | null;
|
|
4114
3891
|
/**
|
|
4115
|
-
* Optional
|
|
3892
|
+
* Optional client metadata for form-mode action handling.
|
|
4116
3893
|
*/
|
|
4117
|
-
|
|
4118
|
-
};
|
|
4119
|
-
/**
|
|
4120
|
-
* Deprecated: Use `ContextCompaction` item type instead.
|
|
4121
|
-
*/
|
|
4122
|
-
type ContextCompactedNotification = {
|
|
4123
|
-
threadId: string;
|
|
4124
|
-
turnId: string;
|
|
3894
|
+
_meta: JsonValue | null;
|
|
4125
3895
|
};
|
|
4126
|
-
type
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
summary: string;
|
|
3896
|
+
type PermissionGrantScope = "turn" | "session";
|
|
3897
|
+
type PermissionsRequestApprovalResponse = {
|
|
3898
|
+
permissions: GrantedPermissionProfile;
|
|
3899
|
+
scope: PermissionGrantScope;
|
|
4131
3900
|
/**
|
|
4132
|
-
*
|
|
3901
|
+
* Review every subsequent command in this turn before normal sandboxed execution.
|
|
4133
3902
|
*/
|
|
4134
|
-
|
|
4135
|
-
};
|
|
4136
|
-
type EnvironmentConnectionNotification = {
|
|
4137
|
-
threadId: string;
|
|
4138
|
-
environmentId: string;
|
|
3903
|
+
strictAutoReview?: boolean;
|
|
4139
3904
|
};
|
|
4140
|
-
type NonSteerableTurnKind = "review" | "compact";
|
|
4141
3905
|
/**
|
|
4142
|
-
*
|
|
4143
|
-
*
|
|
4144
|
-
* When an upstream HTTP status is available (for example, from the Responses API or a provider),
|
|
4145
|
-
* it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.
|
|
3906
|
+
* EXPERIMENTAL. Captures a user's answer to a request_user_input question.
|
|
4146
3907
|
*/
|
|
4147
|
-
type
|
|
4148
|
-
|
|
4149
|
-
httpStatusCode: number | null;
|
|
4150
|
-
};
|
|
4151
|
-
} | {
|
|
4152
|
-
"responseStreamConnectionFailed": {
|
|
4153
|
-
httpStatusCode: number | null;
|
|
4154
|
-
};
|
|
4155
|
-
} | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | {
|
|
4156
|
-
"responseStreamDisconnected": {
|
|
4157
|
-
httpStatusCode: number | null;
|
|
4158
|
-
};
|
|
4159
|
-
} | {
|
|
4160
|
-
"responseTooManyFailedAttempts": {
|
|
4161
|
-
httpStatusCode: number | null;
|
|
4162
|
-
};
|
|
4163
|
-
} | {
|
|
4164
|
-
"activeTurnNotSteerable": {
|
|
4165
|
-
turnKind: NonSteerableTurnKind;
|
|
4166
|
-
};
|
|
4167
|
-
} | "other" | string | {
|
|
4168
|
-
[key: string]: unknown;
|
|
4169
|
-
};
|
|
4170
|
-
type MisalignmentSteer = {
|
|
4171
|
-
message: string;
|
|
4172
|
-
};
|
|
4173
|
-
type MisalignmentErrorDetails = {
|
|
4174
|
-
/**
|
|
4175
|
-
* Open-ended classification; clients must accept categories added by Responses.
|
|
4176
|
-
*/
|
|
4177
|
-
errorType: string | null;
|
|
4178
|
-
/**
|
|
4179
|
-
* A substantive localized explanation is required before offering continuation.
|
|
4180
|
-
*/
|
|
4181
|
-
detailedExplanation: string | null;
|
|
4182
|
-
/**
|
|
4183
|
-
* Instruction to submit as the next turn's user input if continuation is confirmed.
|
|
4184
|
-
*/
|
|
4185
|
-
steer: MisalignmentSteer | null;
|
|
4186
|
-
/**
|
|
4187
|
-
* Opaque server-issued block target. Presence alone does not enable target-based continuation.
|
|
4188
|
-
*/
|
|
4189
|
-
reviewTarget?: string | null;
|
|
4190
|
-
};
|
|
4191
|
-
type TurnError = {
|
|
4192
|
-
message: string;
|
|
4193
|
-
codexErrorInfo: CodexErrorInfo | null;
|
|
4194
|
-
additionalDetails: string | null;
|
|
4195
|
-
/**
|
|
4196
|
-
* Optional public explanation and continuation instruction for a misalignment block.
|
|
4197
|
-
*/
|
|
4198
|
-
misalignment: MisalignmentErrorDetails | null;
|
|
4199
|
-
};
|
|
4200
|
-
type ErrorNotification = {
|
|
4201
|
-
error: TurnError;
|
|
4202
|
-
willRetry: boolean;
|
|
4203
|
-
threadId: string;
|
|
4204
|
-
turnId: string;
|
|
4205
|
-
};
|
|
4206
|
-
type ExternalAgentConfigImportItemTypeSuccess = {
|
|
4207
|
-
itemType: ExternalAgentConfigMigrationItemType;
|
|
4208
|
-
cwd: string | null;
|
|
4209
|
-
source: string | null;
|
|
4210
|
-
target: string | null;
|
|
4211
|
-
/**
|
|
4212
|
-
* Original title for an imported session; null for other item types.
|
|
4213
|
-
*/
|
|
4214
|
-
title: string | null;
|
|
4215
|
-
};
|
|
4216
|
-
type ExternalAgentConfigImportTypeResult = {
|
|
4217
|
-
itemType: ExternalAgentConfigMigrationItemType;
|
|
4218
|
-
successes: Array<ExternalAgentConfigImportItemTypeSuccess>;
|
|
4219
|
-
failures: Array<ExternalAgentConfigImportItemTypeFailure>;
|
|
4220
|
-
};
|
|
4221
|
-
type ExternalAgentConfigImportCompletedNotification = {
|
|
4222
|
-
importId: string;
|
|
4223
|
-
itemTypeResults: Array<ExternalAgentConfigImportTypeResult>;
|
|
4224
|
-
};
|
|
4225
|
-
type ExternalAgentConfigImportProgressNotification = {
|
|
4226
|
-
importId: string;
|
|
4227
|
-
itemTypeResults: Array<ExternalAgentConfigImportTypeResult>;
|
|
3908
|
+
type ToolRequestUserInputAnswer = {
|
|
3909
|
+
answers: Array<string>;
|
|
4228
3910
|
};
|
|
4229
3911
|
/**
|
|
4230
|
-
*
|
|
4231
|
-
*
|
|
4232
|
-
* The server no longer emits this notification.
|
|
3912
|
+
* EXPERIMENTAL. Response payload mapping question ids to answers.
|
|
4233
3913
|
*/
|
|
4234
|
-
type
|
|
4235
|
-
|
|
4236
|
-
turnId: string;
|
|
4237
|
-
itemId: string;
|
|
4238
|
-
delta: string;
|
|
4239
|
-
};
|
|
4240
|
-
type PatchChangeKind = {
|
|
4241
|
-
"type": "add";
|
|
4242
|
-
} | {
|
|
4243
|
-
"type": "delete";
|
|
4244
|
-
} | {
|
|
4245
|
-
"type": "update";
|
|
4246
|
-
move_path: string | null;
|
|
4247
|
-
};
|
|
4248
|
-
type FileUpdateChange = {
|
|
4249
|
-
path: string;
|
|
4250
|
-
kind: PatchChangeKind;
|
|
4251
|
-
diff: string;
|
|
4252
|
-
};
|
|
4253
|
-
type FileChangePatchUpdatedNotification = {
|
|
4254
|
-
threadId: string;
|
|
4255
|
-
turnId: string;
|
|
4256
|
-
itemId: string;
|
|
4257
|
-
changes: Array<FileUpdateChange>;
|
|
4258
|
-
};
|
|
4259
|
-
/**
|
|
4260
|
-
* Filesystem watch notification emitted for `fs/watch` subscribers.
|
|
4261
|
-
*/
|
|
4262
|
-
type FsChangedNotification = {
|
|
4263
|
-
/**
|
|
4264
|
-
* Watch identifier previously provided to `fs/watch`.
|
|
4265
|
-
*/
|
|
4266
|
-
watchId: string;
|
|
4267
|
-
/**
|
|
4268
|
-
* File or directory paths associated with this event.
|
|
4269
|
-
*/
|
|
4270
|
-
changedPaths: Array<AbsolutePathBuf>;
|
|
4271
|
-
};
|
|
4272
|
-
type GatewayOAuthStatus = "notReady" | "started" | "succeeded" | "failed";
|
|
4273
|
-
type GatewayOAuthChangedNotification = {
|
|
4274
|
-
/**
|
|
4275
|
-
* Authorization handoff, sent only to the connection that started login.
|
|
4276
|
-
*/
|
|
4277
|
-
authUrl: string | null;
|
|
4278
|
-
providerId: string;
|
|
4279
|
-
status: GatewayOAuthStatus;
|
|
4280
|
-
error: string | null;
|
|
4281
|
-
};
|
|
4282
|
-
type GuardianWarningNotification = {
|
|
4283
|
-
/**
|
|
4284
|
-
* Thread target for the guardian warning.
|
|
4285
|
-
*/
|
|
4286
|
-
threadId: string;
|
|
4287
|
-
/**
|
|
4288
|
-
* Concise guardian warning message for the user.
|
|
4289
|
-
*/
|
|
4290
|
-
message: string;
|
|
4291
|
-
};
|
|
4292
|
-
type HookEventName = "preModelRequest" | "postModelRequest" | "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "sessionEnd" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop" | "interrupt";
|
|
4293
|
-
type HookExecutionMode = "sync" | "async";
|
|
4294
|
-
type HookHandlerType = "command" | "mcpTool" | "prompt" | "agent";
|
|
4295
|
-
type HookOutputEntryKind = "warning" | "stop" | "feedback" | "context" | "error";
|
|
4296
|
-
type HookOutputEntry = {
|
|
4297
|
-
kind: HookOutputEntryKind;
|
|
4298
|
-
text: string;
|
|
4299
|
-
};
|
|
4300
|
-
type HookRunStatus = "running" | "completed" | "failed" | "blocked" | "stopped";
|
|
4301
|
-
type HookScope = "thread" | "turn";
|
|
4302
|
-
type HookSource = "system" | "user" | "project" | "mdm" | "sessionFlags" | "plugin" | "cloudRequirements" | "cloudManagedConfig" | "legacyManagedConfigFile" | "legacyManagedConfigMdm" | "unknown";
|
|
4303
|
-
type HookRunSummary = {
|
|
4304
|
-
id: string;
|
|
4305
|
-
eventName: HookEventName;
|
|
4306
|
-
handlerType: HookHandlerType;
|
|
4307
|
-
executionMode: HookExecutionMode;
|
|
4308
|
-
scope: HookScope;
|
|
4309
|
-
sourcePath: LegacyAppPathString;
|
|
4310
|
-
source: HookSource;
|
|
4311
|
-
displayOrder: bigint;
|
|
4312
|
-
status: HookRunStatus;
|
|
4313
|
-
statusMessage: string | null;
|
|
4314
|
-
startedAt: bigint;
|
|
4315
|
-
completedAt: bigint | null;
|
|
4316
|
-
durationMs: bigint | null;
|
|
4317
|
-
entries: Array<HookOutputEntry>;
|
|
4318
|
-
};
|
|
4319
|
-
type HookCompletedNotification = {
|
|
4320
|
-
threadId: string;
|
|
4321
|
-
turnId: string | null;
|
|
4322
|
-
run: HookRunSummary;
|
|
4323
|
-
};
|
|
4324
|
-
type HookStartedNotification = {
|
|
4325
|
-
threadId: string;
|
|
4326
|
-
turnId: string | null;
|
|
4327
|
-
run: HookRunSummary;
|
|
4328
|
-
};
|
|
4329
|
-
/**
|
|
4330
|
-
* Display item emitted by the interruptible `clock.sleep` tool.
|
|
4331
|
-
*/
|
|
4332
|
-
type SleepItem = {
|
|
4333
|
-
id: string;
|
|
4334
|
-
durationMs: number;
|
|
4335
|
-
};
|
|
4336
|
-
type WebSearchAction = {
|
|
4337
|
-
"type": "search";
|
|
4338
|
-
query: string | null;
|
|
4339
|
-
queries: Array<string> | null;
|
|
4340
|
-
} | {
|
|
4341
|
-
"type": "openPage";
|
|
4342
|
-
url: string | null;
|
|
4343
|
-
} | {
|
|
4344
|
-
"type": "findInPage";
|
|
4345
|
-
url: string | null;
|
|
4346
|
-
pattern: string | null;
|
|
4347
|
-
} | {
|
|
4348
|
-
"type": "other";
|
|
4349
|
-
};
|
|
4350
|
-
type WebSearchItem = {
|
|
4351
|
-
id: string;
|
|
4352
|
-
query: string;
|
|
4353
|
-
action: WebSearchAction | null;
|
|
4354
|
-
/**
|
|
4355
|
-
* Structured search results returned out-of-band by standalone web search.
|
|
4356
|
-
*
|
|
4357
|
-
* These stay as opaque JSON at the extension/app-server boundary so new
|
|
4358
|
-
* result fields and result types can pass through without a Codex release.
|
|
4359
|
-
*/
|
|
4360
|
-
results: Array<JsonValue> | null;
|
|
4361
|
-
};
|
|
4362
|
-
type AgentMessageDelivery = "async";
|
|
4363
|
-
type AsyncUserInputQuestion = {
|
|
4364
|
-
title: string;
|
|
4365
|
-
options: Array<string> | null;
|
|
4366
|
-
};
|
|
4367
|
-
type CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound";
|
|
4368
|
-
type CollabAgentState = {
|
|
4369
|
-
status: CollabAgentStatus;
|
|
4370
|
-
message: string | null;
|
|
4371
|
-
};
|
|
4372
|
-
type CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents";
|
|
4373
|
-
type CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted";
|
|
4374
|
-
type CommandAction = {
|
|
4375
|
-
"type": "read";
|
|
4376
|
-
command: string;
|
|
4377
|
-
name: string;
|
|
4378
|
-
path: LegacyAppPathString;
|
|
4379
|
-
} | {
|
|
4380
|
-
"type": "listFiles";
|
|
4381
|
-
command: string;
|
|
4382
|
-
path: string | null;
|
|
4383
|
-
} | {
|
|
4384
|
-
"type": "search";
|
|
4385
|
-
command: string;
|
|
4386
|
-
query: string | null;
|
|
4387
|
-
path: string | null;
|
|
4388
|
-
} | {
|
|
4389
|
-
"type": "unknown";
|
|
4390
|
-
command: string;
|
|
4391
|
-
};
|
|
4392
|
-
type CommandExecutionSource = "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
|
|
4393
|
-
type CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined";
|
|
4394
|
-
type DynamicToolCallOutputContentItem = {
|
|
4395
|
-
"type": "inputText";
|
|
4396
|
-
text: string;
|
|
4397
|
-
} | {
|
|
4398
|
-
"type": "inputImage";
|
|
4399
|
-
imageUrl: string;
|
|
4400
|
-
} | {
|
|
4401
|
-
"type": "inputAudio";
|
|
4402
|
-
audioUrl: string;
|
|
4403
|
-
};
|
|
4404
|
-
type DynamicToolCallStatus = "inProgress" | "completed" | "failed";
|
|
4405
|
-
type HookPromptFragment = {
|
|
4406
|
-
text: string;
|
|
4407
|
-
hookRunId: string;
|
|
4408
|
-
};
|
|
4409
|
-
type McpAppDisplayMode = "inline" | "fullscreen";
|
|
4410
|
-
/**
|
|
4411
|
-
* UI resource and display preference for model invocations, captured from the tool descriptor.
|
|
4412
|
-
*/
|
|
4413
|
-
type McpAppUi = {
|
|
4414
|
-
resourceUri: string;
|
|
4415
|
-
preferredModelDisplayMode: McpAppDisplayMode;
|
|
4416
|
-
};
|
|
4417
|
-
type McpToolCallAppContext = {
|
|
4418
|
-
connectorId: string;
|
|
4419
|
-
linkId: string | null;
|
|
4420
|
-
resourceUri: string | null;
|
|
4421
|
-
appName: string | null;
|
|
4422
|
-
actionName: string | null;
|
|
4423
|
-
};
|
|
4424
|
-
type McpToolCallError = {
|
|
4425
|
-
message: string;
|
|
4426
|
-
};
|
|
4427
|
-
type McpToolCallResult = {
|
|
4428
|
-
content: Array<JsonValue>;
|
|
4429
|
-
structuredContent: JsonValue | null;
|
|
4430
|
-
_meta: JsonValue | null;
|
|
4431
|
-
};
|
|
4432
|
-
type McpToolCallStatus = "inProgress" | "completed" | "failed";
|
|
4433
|
-
type MemoryCitationEntry = {
|
|
4434
|
-
path: string;
|
|
4435
|
-
lineStart: number;
|
|
4436
|
-
lineEnd: number;
|
|
4437
|
-
note: string;
|
|
4438
|
-
};
|
|
4439
|
-
type MemoryCitation = {
|
|
4440
|
-
entries: Array<MemoryCitationEntry>;
|
|
4441
|
-
threadIds: Array<string>;
|
|
4442
|
-
};
|
|
4443
|
-
type PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined";
|
|
4444
|
-
type SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed";
|
|
4445
|
-
/**
|
|
4446
|
-
* A thread item and its recorded lifecycle times. The payload stays flat on the wire.
|
|
4447
|
-
*/
|
|
4448
|
-
type ThreadItem = {
|
|
4449
|
-
/**
|
|
4450
|
-
* Unix timestamp in milliseconds when the item started, if recorded.
|
|
4451
|
-
*/
|
|
4452
|
-
startedAtMs?: number | null;
|
|
4453
|
-
/**
|
|
4454
|
-
* Unix timestamp in milliseconds when the item completed, if recorded.
|
|
4455
|
-
*/
|
|
4456
|
-
completedAtMs?: number | null;
|
|
4457
|
-
} & ({
|
|
4458
|
-
"type": "userMessage";
|
|
4459
|
-
id: string;
|
|
4460
|
-
clientId: string | null;
|
|
4461
|
-
content: Array<UserInput>;
|
|
4462
|
-
} | {
|
|
4463
|
-
"type": "hookPrompt";
|
|
4464
|
-
id: string;
|
|
4465
|
-
fragments: Array<HookPromptFragment>;
|
|
4466
|
-
} | {
|
|
4467
|
-
"type": "agentMessage";
|
|
4468
|
-
id: string;
|
|
4469
|
-
text: string;
|
|
4470
|
-
phase: MessagePhase | null;
|
|
4471
|
-
memoryCitation: MemoryCitation | null;
|
|
4472
|
-
delivery: AgentMessageDelivery | null;
|
|
4473
|
-
questions: Array<AsyncUserInputQuestion> | null;
|
|
4474
|
-
} | {
|
|
4475
|
-
"type": "functionCallOutput";
|
|
4476
|
-
id: string;
|
|
4477
|
-
name: string;
|
|
4478
|
-
namespace: string | null;
|
|
4479
|
-
output: FunctionCallOutputBody;
|
|
4480
|
-
} | {
|
|
4481
|
-
"type": "plan";
|
|
4482
|
-
id: string;
|
|
4483
|
-
text: string;
|
|
4484
|
-
} | {
|
|
4485
|
-
"type": "reasoning";
|
|
4486
|
-
id: string;
|
|
4487
|
-
summary: Array<string>;
|
|
4488
|
-
content: Array<string>;
|
|
4489
|
-
} | {
|
|
4490
|
-
"type": "commandExecution";
|
|
4491
|
-
id: string;
|
|
4492
|
-
/**
|
|
4493
|
-
* Trusted first-party plugin id when this command resolves to one plugin script.
|
|
4494
|
-
*/
|
|
4495
|
-
pluginId: string | null;
|
|
4496
|
-
/**
|
|
4497
|
-
* Safe plugin-relative path when this command resolves to one plugin script.
|
|
4498
|
-
*/
|
|
4499
|
-
scriptPath: string | null;
|
|
4500
|
-
/**
|
|
4501
|
-
* The command to be executed.
|
|
4502
|
-
*/
|
|
4503
|
-
command: string;
|
|
4504
|
-
/**
|
|
4505
|
-
* The command's working directory.
|
|
4506
|
-
*/
|
|
4507
|
-
cwd: LegacyAppPathString;
|
|
4508
|
-
/**
|
|
4509
|
-
* Identifier for the underlying PTY process (when available).
|
|
4510
|
-
*/
|
|
4511
|
-
processId: string | null;
|
|
4512
|
-
source: CommandExecutionSource;
|
|
4513
|
-
status: CommandExecutionStatus;
|
|
4514
|
-
/**
|
|
4515
|
-
* A best-effort parsing of the command to understand the action(s) it will perform.
|
|
4516
|
-
* This returns a list of CommandAction objects because a single shell command may
|
|
4517
|
-
* be composed of many commands piped together.
|
|
4518
|
-
*/
|
|
4519
|
-
commandActions: Array<CommandAction>;
|
|
4520
|
-
/**
|
|
4521
|
-
* The command's output, aggregated from stdout and stderr.
|
|
4522
|
-
*/
|
|
4523
|
-
aggregatedOutput: string | null;
|
|
4524
|
-
/**
|
|
4525
|
-
* The command's exit code.
|
|
4526
|
-
*/
|
|
4527
|
-
exitCode: number | null;
|
|
4528
|
-
/**
|
|
4529
|
-
* The duration of the command execution in milliseconds.
|
|
4530
|
-
*/
|
|
4531
|
-
durationMs: number | null;
|
|
4532
|
-
} | {
|
|
4533
|
-
"type": "fileChange";
|
|
4534
|
-
id: string;
|
|
4535
|
-
changes: Array<FileUpdateChange>;
|
|
4536
|
-
status: PatchApplyStatus;
|
|
4537
|
-
} | {
|
|
4538
|
-
"type": "mcpToolCall";
|
|
4539
|
-
id: string;
|
|
4540
|
-
server: string;
|
|
4541
|
-
tool: string;
|
|
4542
|
-
status: McpToolCallStatus;
|
|
4543
|
-
arguments: JsonValue;
|
|
4544
|
-
appContext: McpToolCallAppContext | null;
|
|
4545
|
-
/**
|
|
4546
|
-
* Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.
|
|
4547
|
-
*/
|
|
4548
|
-
mcpAppResourceUri?: string;
|
|
4549
|
-
/**
|
|
4550
|
-
* Presentation captured from the invoked descriptor; absent in older history.
|
|
4551
|
-
*/
|
|
4552
|
-
mcpAppUi: McpAppUi | null;
|
|
4553
|
-
pluginId: string | null;
|
|
4554
|
-
readOnlyHint: boolean | null;
|
|
4555
|
-
result: McpToolCallResult | null;
|
|
4556
|
-
error: McpToolCallError | null;
|
|
4557
|
-
/**
|
|
4558
|
-
* The duration of the MCP tool call in milliseconds.
|
|
4559
|
-
*/
|
|
4560
|
-
durationMs: number | null;
|
|
4561
|
-
} | {
|
|
4562
|
-
"type": "dynamicToolCall";
|
|
4563
|
-
id: string;
|
|
4564
|
-
namespace: string | null;
|
|
4565
|
-
tool: string;
|
|
4566
|
-
arguments: JsonValue;
|
|
4567
|
-
status: DynamicToolCallStatus;
|
|
4568
|
-
contentItems: Array<DynamicToolCallOutputContentItem> | null;
|
|
4569
|
-
success: boolean | null;
|
|
4570
|
-
/**
|
|
4571
|
-
* The duration of the dynamic tool call in milliseconds.
|
|
4572
|
-
*/
|
|
4573
|
-
durationMs: number | null;
|
|
4574
|
-
} | {
|
|
4575
|
-
"type": "collabAgentToolCall";
|
|
4576
|
-
/**
|
|
4577
|
-
* Unique identifier for this collab tool call.
|
|
4578
|
-
*/
|
|
4579
|
-
id: string;
|
|
4580
|
-
/**
|
|
4581
|
-
* Name of the collab tool that was invoked.
|
|
4582
|
-
*/
|
|
4583
|
-
tool: CollabAgentTool;
|
|
4584
|
-
/**
|
|
4585
|
-
* Current status of the collab tool call.
|
|
4586
|
-
*/
|
|
4587
|
-
status: CollabAgentToolCallStatus;
|
|
4588
|
-
/**
|
|
4589
|
-
* Thread ID of the agent issuing the collab request.
|
|
4590
|
-
*/
|
|
4591
|
-
senderThreadId: string;
|
|
4592
|
-
/**
|
|
4593
|
-
* Thread ID of the receiving agent, when applicable. In case of spawn operation,
|
|
4594
|
-
* this corresponds to the newly spawned agent.
|
|
4595
|
-
*/
|
|
4596
|
-
receiverThreadIds: Array<string>;
|
|
4597
|
-
/**
|
|
4598
|
-
* Prompt text sent as part of the collab tool call, when available.
|
|
4599
|
-
*/
|
|
4600
|
-
prompt: string | null;
|
|
4601
|
-
/**
|
|
4602
|
-
* Model requested for the spawned agent, when applicable.
|
|
4603
|
-
*/
|
|
4604
|
-
model: string | null;
|
|
4605
|
-
/**
|
|
4606
|
-
* Reasoning effort requested for the spawned agent, when applicable.
|
|
4607
|
-
*/
|
|
4608
|
-
reasoningEffort: ReasoningEffort | null;
|
|
4609
|
-
/**
|
|
4610
|
-
* Last known status of the target agents, when available.
|
|
4611
|
-
*/
|
|
4612
|
-
agentsStates: { [key in string]?: CollabAgentState; };
|
|
4613
|
-
} | {
|
|
4614
|
-
"type": "subAgentActivity";
|
|
4615
|
-
/**
|
|
4616
|
-
* Resolved model at sub-agent creation; absent from older records and other activities.
|
|
4617
|
-
*/
|
|
4618
|
-
model: string | null;
|
|
4619
|
-
/**
|
|
4620
|
-
* Resolved reasoning effort at sub-agent creation, when known.
|
|
4621
|
-
*/
|
|
4622
|
-
reasoningEffort: ReasoningEffort | null;
|
|
4623
|
-
id: string;
|
|
4624
|
-
kind: SubAgentActivityKind;
|
|
4625
|
-
agentThreadId: string;
|
|
4626
|
-
agentPath: string;
|
|
4627
|
-
} | ({
|
|
4628
|
-
"type": "webSearch";
|
|
4629
|
-
} & WebSearchItem) | {
|
|
4630
|
-
"type": "imageView";
|
|
4631
|
-
id: string;
|
|
4632
|
-
path: LegacyAppPathString;
|
|
4633
|
-
} | ({
|
|
4634
|
-
"type": "sleep";
|
|
4635
|
-
} & SleepItem) | ({
|
|
4636
|
-
"type": "imageGeneration";
|
|
4637
|
-
} & ImageGenerationItem) | {
|
|
4638
|
-
"type": "enteredReviewMode";
|
|
4639
|
-
id: string;
|
|
4640
|
-
review: string;
|
|
4641
|
-
} | {
|
|
4642
|
-
"type": "exitedReviewMode";
|
|
4643
|
-
id: string;
|
|
4644
|
-
review: string;
|
|
4645
|
-
} | {
|
|
4646
|
-
"type": "contextCompaction";
|
|
4647
|
-
id: string;
|
|
4648
|
-
});
|
|
4649
|
-
type ItemCompletedNotification = {
|
|
4650
|
-
item: ThreadItem;
|
|
4651
|
-
threadId: string;
|
|
4652
|
-
turnId: string;
|
|
4653
|
-
/**
|
|
4654
|
-
* Unix timestamp (in milliseconds) when this item lifecycle completed.
|
|
4655
|
-
*/
|
|
4656
|
-
completedAtMs: number;
|
|
4657
|
-
};
|
|
4658
|
-
/**
|
|
4659
|
-
* [UNSTABLE] Source that produced a terminal approval auto-review decision.
|
|
4660
|
-
*/
|
|
4661
|
-
type AutoReviewDecisionSource = "agent";
|
|
4662
|
-
/**
|
|
4663
|
-
* [UNSTABLE] Lifecycle state for an approval auto-review.
|
|
4664
|
-
*/
|
|
4665
|
-
type GuardianApprovalReviewStatus = "inProgress" | "approved" | "denied" | "timedOut" | "aborted";
|
|
4666
|
-
/**
|
|
4667
|
-
* [UNSTABLE] Risk level assigned by approval auto-review.
|
|
4668
|
-
*/
|
|
4669
|
-
type GuardianRiskLevel = "low" | "medium" | "high" | "critical";
|
|
4670
|
-
/**
|
|
4671
|
-
* [UNSTABLE] Authorization level assigned by approval auto-review.
|
|
4672
|
-
*/
|
|
4673
|
-
type GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";
|
|
4674
|
-
/**
|
|
4675
|
-
* [UNSTABLE] Temporary approval auto-review payload used by
|
|
4676
|
-
* `item/autoApprovalReview/*` notifications. This shape is expected to change
|
|
4677
|
-
* soon.
|
|
4678
|
-
*/
|
|
4679
|
-
type GuardianApprovalReview = {
|
|
4680
|
-
status: GuardianApprovalReviewStatus;
|
|
4681
|
-
riskLevel: GuardianRiskLevel | null;
|
|
4682
|
-
userAuthorization: GuardianUserAuthorization | null;
|
|
4683
|
-
rationale: string | null;
|
|
4684
|
-
};
|
|
4685
|
-
type GuardianCommandSource = "shell" | "unifiedExec";
|
|
4686
|
-
type NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp";
|
|
4687
|
-
type FileSystemAccessMode = "read" | "write" | "deny";
|
|
4688
|
-
type FileSystemSpecialPath = {
|
|
4689
|
-
"kind": "root";
|
|
4690
|
-
} | {
|
|
4691
|
-
"kind": "minimal";
|
|
4692
|
-
} | {
|
|
4693
|
-
"kind": "project_roots";
|
|
4694
|
-
subpath: LegacyAppPathString | null;
|
|
4695
|
-
} | {
|
|
4696
|
-
"kind": "tmpdir";
|
|
4697
|
-
} | {
|
|
4698
|
-
"kind": "slash_tmp";
|
|
4699
|
-
} | {
|
|
4700
|
-
"kind": "unknown";
|
|
4701
|
-
path: string;
|
|
4702
|
-
subpath: LegacyAppPathString | null;
|
|
4703
|
-
};
|
|
4704
|
-
type FileSystemPath = {
|
|
4705
|
-
"type": "path";
|
|
4706
|
-
path: LegacyAppPathString;
|
|
4707
|
-
} | {
|
|
4708
|
-
"type": "glob_pattern";
|
|
4709
|
-
pattern: string;
|
|
4710
|
-
} | {
|
|
4711
|
-
"type": "special";
|
|
4712
|
-
value: FileSystemSpecialPath;
|
|
4713
|
-
};
|
|
4714
|
-
type FileSystemSandboxEntry = {
|
|
4715
|
-
path: FileSystemPath;
|
|
4716
|
-
access: FileSystemAccessMode;
|
|
4717
|
-
};
|
|
4718
|
-
type AdditionalFileSystemPermissions = {
|
|
4719
|
-
/**
|
|
4720
|
-
* This will be removed in favor of `entries`.
|
|
4721
|
-
*/
|
|
4722
|
-
read: Array<LegacyAppPathString> | null;
|
|
4723
|
-
/**
|
|
4724
|
-
* This will be removed in favor of `entries`.
|
|
4725
|
-
*/
|
|
4726
|
-
write: Array<LegacyAppPathString> | null;
|
|
4727
|
-
globScanMaxDepth?: number;
|
|
4728
|
-
entries?: Array<FileSystemSandboxEntry>;
|
|
4729
|
-
};
|
|
4730
|
-
type AdditionalNetworkPermissions = {
|
|
4731
|
-
enabled: boolean | null;
|
|
4732
|
-
};
|
|
4733
|
-
type RequestPermissionProfile = {
|
|
4734
|
-
network: AdditionalNetworkPermissions | null;
|
|
4735
|
-
fileSystem: AdditionalFileSystemPermissions | null;
|
|
4736
|
-
};
|
|
4737
|
-
type GuardianApprovalReviewAction = {
|
|
4738
|
-
"type": "command";
|
|
4739
|
-
source: GuardianCommandSource;
|
|
4740
|
-
command: string;
|
|
4741
|
-
cwd: LegacyAppPathString;
|
|
4742
|
-
} | {
|
|
4743
|
-
"type": "execve";
|
|
4744
|
-
source: GuardianCommandSource;
|
|
4745
|
-
program: string;
|
|
4746
|
-
argv: Array<string>;
|
|
4747
|
-
cwd: AbsolutePathBuf;
|
|
4748
|
-
} | {
|
|
4749
|
-
"type": "writeStdin";
|
|
4750
|
-
approvalId: string;
|
|
4751
|
-
processId: string;
|
|
4752
|
-
stdin: string;
|
|
4753
|
-
cwd: LegacyAppPathString;
|
|
4754
|
-
} | {
|
|
4755
|
-
"type": "applyPatch";
|
|
4756
|
-
cwd: LegacyAppPathString;
|
|
4757
|
-
files: Array<LegacyAppPathString>;
|
|
4758
|
-
} | {
|
|
4759
|
-
"type": "networkAccess";
|
|
4760
|
-
target: string;
|
|
4761
|
-
host: string;
|
|
4762
|
-
protocol: NetworkApprovalProtocol;
|
|
4763
|
-
port: number;
|
|
4764
|
-
} | {
|
|
4765
|
-
"type": "mcpToolCall";
|
|
4766
|
-
server: string;
|
|
4767
|
-
toolName: string;
|
|
4768
|
-
connectorId: string | null;
|
|
4769
|
-
connectorName: string | null;
|
|
4770
|
-
toolTitle: string | null;
|
|
4771
|
-
} | {
|
|
4772
|
-
"type": "requestPermissions";
|
|
4773
|
-
reason: string | null;
|
|
4774
|
-
permissions: RequestPermissionProfile;
|
|
4775
|
-
};
|
|
4776
|
-
/**
|
|
4777
|
-
* [UNSTABLE] Temporary notification payload for approval auto-review. This
|
|
4778
|
-
* shape is expected to change soon.
|
|
4779
|
-
*/
|
|
4780
|
-
type ItemGuardianApprovalReviewCompletedNotification = {
|
|
4781
|
-
threadId: string;
|
|
4782
|
-
turnId: string;
|
|
4783
|
-
/**
|
|
4784
|
-
* Unix timestamp (in milliseconds) when this review started.
|
|
4785
|
-
*/
|
|
4786
|
-
startedAtMs: number;
|
|
4787
|
-
/**
|
|
4788
|
-
* Unix timestamp (in milliseconds) when this review completed.
|
|
4789
|
-
*/
|
|
4790
|
-
completedAtMs: number;
|
|
4791
|
-
/**
|
|
4792
|
-
* Stable identifier for this review.
|
|
4793
|
-
*/
|
|
4794
|
-
reviewId: string;
|
|
4795
|
-
/**
|
|
4796
|
-
* Identifier for the reviewed item or tool call when one exists.
|
|
4797
|
-
*
|
|
4798
|
-
* In most cases, one review maps to one target item. The exceptions are
|
|
4799
|
-
* - execve reviews, where a single command may contain multiple execve
|
|
4800
|
-
* calls to review (only possible when using the shell_zsh_fork feature)
|
|
4801
|
-
* - stdin reviews, which refer to the existing parent command item and
|
|
4802
|
-
* have a separate approval ID in the action payload
|
|
4803
|
-
* - network policy reviews, where there is no target item
|
|
4804
|
-
*
|
|
4805
|
-
* A network call is triggered by a CommandExecution item, so having a
|
|
4806
|
-
* target_item_id set to the CommandExecution item would be misleading
|
|
4807
|
-
* because the review is about the network call, not the command execution.
|
|
4808
|
-
* Therefore, target_item_id is set to None for network policy reviews.
|
|
4809
|
-
*/
|
|
4810
|
-
targetItemId: string | null;
|
|
4811
|
-
decisionSource: AutoReviewDecisionSource;
|
|
4812
|
-
review: GuardianApprovalReview;
|
|
4813
|
-
action: GuardianApprovalReviewAction;
|
|
4814
|
-
};
|
|
4815
|
-
/**
|
|
4816
|
-
* [UNSTABLE] Temporary notification payload for approval auto-review. This
|
|
4817
|
-
* shape is expected to change soon.
|
|
4818
|
-
*/
|
|
4819
|
-
type ItemGuardianApprovalReviewStartedNotification = {
|
|
4820
|
-
threadId: string;
|
|
4821
|
-
turnId: string;
|
|
4822
|
-
/**
|
|
4823
|
-
* Unix timestamp (in milliseconds) when this review started.
|
|
4824
|
-
*/
|
|
4825
|
-
startedAtMs: number;
|
|
4826
|
-
/**
|
|
4827
|
-
* Stable identifier for this review.
|
|
4828
|
-
*/
|
|
4829
|
-
reviewId: string;
|
|
4830
|
-
/**
|
|
4831
|
-
* Identifier for the reviewed item or tool call when one exists.
|
|
4832
|
-
*
|
|
4833
|
-
* In most cases, one review maps to one target item. The exceptions are
|
|
4834
|
-
* - execve reviews, where a single command may contain multiple execve
|
|
4835
|
-
* calls to review (only possible when using the shell_zsh_fork feature)
|
|
4836
|
-
* - stdin reviews, which refer to the existing parent command item and
|
|
4837
|
-
* have a separate approval ID in the action payload
|
|
4838
|
-
* - network policy reviews, where there is no target item
|
|
4839
|
-
*
|
|
4840
|
-
* A network call is triggered by a CommandExecution item, so having a
|
|
4841
|
-
* target_item_id set to the CommandExecution item would be misleading
|
|
4842
|
-
* because the review is about the network call, not the command execution.
|
|
4843
|
-
* Therefore, target_item_id is set to None for network policy reviews.
|
|
4844
|
-
*/
|
|
4845
|
-
targetItemId: string | null;
|
|
4846
|
-
review: GuardianApprovalReview;
|
|
4847
|
-
action: GuardianApprovalReviewAction;
|
|
4848
|
-
};
|
|
4849
|
-
type ItemStartedNotification = {
|
|
4850
|
-
item: ThreadItem;
|
|
4851
|
-
threadId: string;
|
|
4852
|
-
turnId: string;
|
|
4853
|
-
/**
|
|
4854
|
-
* Unix timestamp (in milliseconds) when this item lifecycle started.
|
|
4855
|
-
*/
|
|
4856
|
-
startedAtMs: number;
|
|
4857
|
-
};
|
|
4858
|
-
type McpServerEventNotification = {
|
|
4859
|
-
method: string;
|
|
4860
|
-
params: JsonValue;
|
|
4861
|
-
};
|
|
4862
|
-
type McpServerEventStreamNotification = {
|
|
4863
|
-
subscriptionId: string;
|
|
4864
|
-
notification: McpServerEventNotification;
|
|
4865
|
-
};
|
|
4866
|
-
type McpServerOauthLoginCompletedNotification = {
|
|
4867
|
-
name: string;
|
|
4868
|
-
threadId: string | null;
|
|
4869
|
-
/**
|
|
4870
|
-
* Identifies the explicit login attempt. Older servers omit this field.
|
|
4871
|
-
*/
|
|
4872
|
-
loginId?: string | null;
|
|
4873
|
-
success: boolean;
|
|
4874
|
-
error?: string;
|
|
4875
|
-
};
|
|
4876
|
-
type McpServerStartupFailureReason = "reauthenticationRequired";
|
|
4877
|
-
type McpServerStartupState = "starting" | "ready" | "failed" | "cancelled";
|
|
4878
|
-
type McpServerStatusUpdatedNotification = {
|
|
4879
|
-
threadId: string | null;
|
|
4880
|
-
name: string;
|
|
4881
|
-
status: McpServerStartupState;
|
|
4882
|
-
error: string | null;
|
|
4883
|
-
failureReason: McpServerStartupFailureReason | null;
|
|
4884
|
-
};
|
|
4885
|
-
type McpToolCallProgressNotification = {
|
|
4886
|
-
threadId: string;
|
|
4887
|
-
turnId: string;
|
|
4888
|
-
itemId: string;
|
|
4889
|
-
message: string;
|
|
4890
|
-
};
|
|
4891
|
-
type ModelRerouteReason = "highRiskCyberActivity";
|
|
4892
|
-
type ModelReroutedNotification = {
|
|
4893
|
-
threadId: string;
|
|
4894
|
-
turnId: string;
|
|
4895
|
-
fromModel: string;
|
|
4896
|
-
toModel: string;
|
|
4897
|
-
reason: ModelRerouteReason;
|
|
4898
|
-
};
|
|
4899
|
-
type ModelSafetyBufferingUpdatedNotification = {
|
|
4900
|
-
threadId: string;
|
|
4901
|
-
turnId: string;
|
|
4902
|
-
model: string;
|
|
4903
|
-
useCases: Array<string>;
|
|
4904
|
-
reasons: Array<string>;
|
|
4905
|
-
showBufferingUi: boolean;
|
|
4906
|
-
fasterModel: string | null;
|
|
4907
|
-
};
|
|
4908
|
-
type ModelVerification = "trustedAccessForCyber";
|
|
4909
|
-
type ModelVerificationNotification = {
|
|
4910
|
-
threadId: string;
|
|
4911
|
-
turnId: string;
|
|
4912
|
-
verifications: Array<ModelVerification>;
|
|
4913
|
-
};
|
|
4914
|
-
/**
|
|
4915
|
-
* EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should
|
|
4916
|
-
* not assume concatenated deltas match the completed plan item content.
|
|
4917
|
-
*/
|
|
4918
|
-
type PlanDeltaNotification = {
|
|
4919
|
-
threadId: string;
|
|
4920
|
-
turnId: string;
|
|
4921
|
-
itemId: string;
|
|
4922
|
-
delta: string;
|
|
4923
|
-
};
|
|
4924
|
-
/**
|
|
4925
|
-
* Final process exit notification for `process/spawn`.
|
|
4926
|
-
*/
|
|
4927
|
-
type ProcessExitedNotification = {
|
|
4928
|
-
/**
|
|
4929
|
-
* Client-supplied, connection-scoped `processHandle` from `process/spawn`.
|
|
4930
|
-
*/
|
|
4931
|
-
processHandle: string;
|
|
4932
|
-
/**
|
|
4933
|
-
* Process exit code.
|
|
4934
|
-
*/
|
|
4935
|
-
exitCode: number;
|
|
4936
|
-
/**
|
|
4937
|
-
* Whether output collection hit its post-exit deadline before seeing EOF or reaching the
|
|
4938
|
-
* requested byte cap on either stream. Older servers omit this field.
|
|
4939
|
-
*/
|
|
4940
|
-
outputDrainTimedOut?: boolean | null;
|
|
4941
|
-
/**
|
|
4942
|
-
* Buffered stdout capture.
|
|
4943
|
-
*
|
|
4944
|
-
* Empty when stdout was streamed via `process/outputDelta`.
|
|
4945
|
-
*/
|
|
4946
|
-
stdout: string;
|
|
4947
|
-
/**
|
|
4948
|
-
* Whether stdout reached `outputBytesCap`.
|
|
4949
|
-
*
|
|
4950
|
-
* In streaming mode, stdout is empty and cap state is also reported on the
|
|
4951
|
-
* final stdout `process/outputDelta` notification.
|
|
4952
|
-
*/
|
|
4953
|
-
stdoutCapReached: boolean;
|
|
4954
|
-
/**
|
|
4955
|
-
* Buffered stderr capture.
|
|
4956
|
-
*
|
|
4957
|
-
* Empty when stderr was streamed via `process/outputDelta`.
|
|
4958
|
-
*/
|
|
4959
|
-
stderr: string;
|
|
4960
|
-
/**
|
|
4961
|
-
* Whether stderr reached `outputBytesCap`.
|
|
4962
|
-
*
|
|
4963
|
-
* In streaming mode, stderr is empty and cap state is also reported on the
|
|
4964
|
-
* final stderr `process/outputDelta` notification.
|
|
4965
|
-
*/
|
|
4966
|
-
stderrCapReached: boolean;
|
|
4967
|
-
};
|
|
4968
|
-
/**
|
|
4969
|
-
* Stream label for `process/outputDelta` notifications.
|
|
4970
|
-
*/
|
|
4971
|
-
type ProcessOutputStream = "stdout" | "stderr";
|
|
4972
|
-
/**
|
|
4973
|
-
* Base64-encoded output chunk emitted for a streaming `process/spawn` request.
|
|
4974
|
-
*/
|
|
4975
|
-
type ProcessOutputDeltaNotification = {
|
|
4976
|
-
/**
|
|
4977
|
-
* Client-supplied, connection-scoped `processHandle` from `process/spawn`.
|
|
4978
|
-
*/
|
|
4979
|
-
processHandle: string;
|
|
4980
|
-
/**
|
|
4981
|
-
* Output stream this chunk belongs to.
|
|
4982
|
-
*/
|
|
4983
|
-
stream: ProcessOutputStream;
|
|
4984
|
-
/**
|
|
4985
|
-
* Base64-encoded output bytes.
|
|
4986
|
-
*/
|
|
4987
|
-
deltaBase64: string;
|
|
4988
|
-
/**
|
|
4989
|
-
* True on the final streamed chunk for this stream when output was
|
|
4990
|
-
* truncated by `outputBytesCap`.
|
|
4991
|
-
*/
|
|
4992
|
-
capReached: boolean;
|
|
4993
|
-
};
|
|
4994
|
-
type ProjectChangeType = "created" | "updated" | "deleted";
|
|
4995
|
-
type ProjectChangedNotification = {
|
|
4996
|
-
projectId: string;
|
|
4997
|
-
changeType: ProjectChangeType;
|
|
4998
|
-
};
|
|
4999
|
-
/**
|
|
5000
|
-
* Usage metadata reported for one upstream response.
|
|
5001
|
-
*/
|
|
5002
|
-
type ResponseUsageMetadata = {
|
|
5003
|
-
amount: string | null;
|
|
5004
|
-
metadata: JsonValue | null;
|
|
5005
|
-
};
|
|
5006
|
-
type TokenUsageBreakdown = {
|
|
5007
|
-
totalTokens: number;
|
|
5008
|
-
inputTokens: number;
|
|
5009
|
-
cachedInputTokens: number;
|
|
5010
|
-
cacheWriteInputTokens: number;
|
|
5011
|
-
outputTokens: number;
|
|
5012
|
-
reasoningOutputTokens: number;
|
|
5013
|
-
};
|
|
5014
|
-
/**
|
|
5015
|
-
* Internal-only notification containing the exact usage from one upstream
|
|
5016
|
-
* Responses API completion.
|
|
5017
|
-
*/
|
|
5018
|
-
type RawResponseCompletedNotification = {
|
|
5019
|
-
threadId: string;
|
|
5020
|
-
turnId: string;
|
|
5021
|
-
responseId: string;
|
|
5022
|
-
usage: TokenUsageBreakdown | null;
|
|
5023
|
-
usageMetadata: ResponseUsageMetadata | null;
|
|
5024
|
-
};
|
|
5025
|
-
type RawResponseItemCompletedNotification = {
|
|
5026
|
-
threadId: string;
|
|
5027
|
-
turnId: string;
|
|
5028
|
-
item: ResponseItem;
|
|
5029
|
-
};
|
|
5030
|
-
type ReasoningSummaryPartAddedNotification = {
|
|
5031
|
-
threadId: string;
|
|
5032
|
-
turnId: string;
|
|
5033
|
-
itemId: string;
|
|
5034
|
-
summaryIndex: number;
|
|
5035
|
-
};
|
|
5036
|
-
type ReasoningSummaryTextDeltaNotification = {
|
|
5037
|
-
threadId: string;
|
|
5038
|
-
turnId: string;
|
|
5039
|
-
itemId: string;
|
|
5040
|
-
delta: string;
|
|
5041
|
-
summaryIndex: number;
|
|
5042
|
-
};
|
|
5043
|
-
type ReasoningTextDeltaNotification = {
|
|
5044
|
-
threadId: string;
|
|
5045
|
-
turnId: string;
|
|
5046
|
-
itemId: string;
|
|
5047
|
-
delta: string;
|
|
5048
|
-
contentIndex: number;
|
|
5049
|
-
};
|
|
5050
|
-
type RemoteControlConnectionStatus = "disabled" | "connecting" | "connected" | "errored";
|
|
5051
|
-
/**
|
|
5052
|
-
* Current remote-control connection status and remote identity exposed to clients.
|
|
5053
|
-
*/
|
|
5054
|
-
type RemoteControlStatusChangedNotification = {
|
|
5055
|
-
status: RemoteControlConnectionStatus;
|
|
5056
|
-
serverName: string;
|
|
5057
|
-
installationId: string;
|
|
5058
|
-
environmentId: string | null;
|
|
5059
|
-
};
|
|
5060
|
-
type ServerRequestResolvedNotification = {
|
|
5061
|
-
threadId: string;
|
|
5062
|
-
requestId: RequestId;
|
|
5063
|
-
};
|
|
5064
|
-
/**
|
|
5065
|
-
* Notification emitted when watched local skill files change.
|
|
5066
|
-
*
|
|
5067
|
-
* Treat this as an invalidation signal and re-run `skills/list` with the
|
|
5068
|
-
* client's current parameters when refreshed skill metadata is needed.
|
|
5069
|
-
*/
|
|
5070
|
-
type SkillsChangedNotification = Record<string, never>;
|
|
5071
|
-
type StrictReviewRequiredNotification = {
|
|
5072
|
-
threadId: string;
|
|
5073
|
-
turnId: string;
|
|
5074
|
-
/**
|
|
5075
|
-
* Unix timestamp (in milliseconds) when this review started.
|
|
5076
|
-
*/
|
|
5077
|
-
startedAtMs: number;
|
|
5078
|
-
};
|
|
5079
|
-
type TerminalInteractionNotification = {
|
|
5080
|
-
threadId: string;
|
|
5081
|
-
turnId: string;
|
|
5082
|
-
itemId: string;
|
|
5083
|
-
processId: string;
|
|
5084
|
-
stdin: string;
|
|
5085
|
-
};
|
|
5086
|
-
type ThreadArchivedNotification = {
|
|
5087
|
-
threadId: string;
|
|
5088
|
-
};
|
|
5089
|
-
/**
|
|
5090
|
-
* The persisted attachment change represented by a notification.
|
|
5091
|
-
*/
|
|
5092
|
-
type ThreadAttachmentOperation = "created" | "deleted";
|
|
5093
|
-
/**
|
|
5094
|
-
* Notification published after a thread attachment is created or deleted.
|
|
5095
|
-
*/
|
|
5096
|
-
type ThreadAttachmentUpdatedNotification = {
|
|
5097
|
-
threadId: string;
|
|
5098
|
-
attachmentType: string;
|
|
5099
|
-
identityKey: string;
|
|
5100
|
-
attachmentId: string;
|
|
5101
|
-
operation: ThreadAttachmentOperation;
|
|
5102
|
-
};
|
|
5103
|
-
type ThreadClosedNotification = {
|
|
5104
|
-
threadId: string;
|
|
5105
|
-
};
|
|
5106
|
-
type ThreadDeletedNotification = {
|
|
5107
|
-
threadId: string;
|
|
5108
|
-
};
|
|
5109
|
-
type ThreadGoalClearedNotification = {
|
|
5110
|
-
threadId: string;
|
|
5111
|
-
};
|
|
5112
|
-
type ThreadGoal = {
|
|
5113
|
-
threadId: string;
|
|
5114
|
-
objective: string;
|
|
5115
|
-
status: ThreadGoalStatus;
|
|
5116
|
-
tokenBudget: number | null;
|
|
5117
|
-
tokensUsed: number;
|
|
5118
|
-
timeUsedSeconds: number;
|
|
5119
|
-
createdAt: number;
|
|
5120
|
-
updatedAt: number;
|
|
5121
|
-
};
|
|
5122
|
-
type ThreadGoalUpdatedNotification = {
|
|
5123
|
-
threadId: string;
|
|
5124
|
-
turnId: string | null;
|
|
5125
|
-
goal: ThreadGoal;
|
|
5126
|
-
};
|
|
5127
|
-
type ThreadNameUpdatedNotification = {
|
|
5128
|
-
threadId: string;
|
|
5129
|
-
threadName?: string;
|
|
5130
|
-
};
|
|
5131
|
-
type ThreadPredictionResult = {
|
|
5132
|
-
"type": "completed";
|
|
5133
|
-
text: string | null;
|
|
5134
|
-
} | {
|
|
5135
|
-
"type": "failed";
|
|
5136
|
-
};
|
|
5137
|
-
type ThreadPredictionUpdatedNotification = {
|
|
5138
|
-
threadId: string;
|
|
5139
|
-
sourceTurnId: string;
|
|
5140
|
-
result: ThreadPredictionResult;
|
|
5141
|
-
};
|
|
5142
|
-
type ThreadProjectUpdatedNotification = {
|
|
5143
|
-
threadId: string;
|
|
5144
|
-
projectId: string | null;
|
|
5145
|
-
};
|
|
5146
|
-
type ThreadQueueChangedNotification = {
|
|
5147
|
-
threadId: string;
|
|
5148
|
-
};
|
|
5149
|
-
type ThreadUnreadPosition = {
|
|
5150
|
-
"type": "threadStart";
|
|
5151
|
-
} | {
|
|
5152
|
-
"type": "turn";
|
|
5153
|
-
turnId: string;
|
|
5154
|
-
};
|
|
5155
|
-
/**
|
|
5156
|
-
* The first unread position in a durable local thread. A null position means read.
|
|
5157
|
-
* The opaque revision guards edits against activity or marks the caller has not seen.
|
|
5158
|
-
*/
|
|
5159
|
-
type ThreadReadState = {
|
|
5160
|
-
firstUnread: ThreadUnreadPosition | null;
|
|
5161
|
-
revision: string;
|
|
5162
|
-
};
|
|
5163
|
-
type ThreadReadStateChangedNotification = {
|
|
5164
|
-
threadId: string;
|
|
5165
|
-
readState: ThreadReadState;
|
|
5166
|
-
};
|
|
5167
|
-
/**
|
|
5168
|
-
* EXPERIMENTAL - emitted when thread realtime transport closes.
|
|
5169
|
-
*/
|
|
5170
|
-
type ThreadRealtimeClosedNotification = {
|
|
5171
|
-
threadId: string;
|
|
5172
|
-
reason: string | null;
|
|
5173
|
-
};
|
|
5174
|
-
/**
|
|
5175
|
-
* EXPERIMENTAL - emitted when thread realtime encounters an error.
|
|
5176
|
-
*/
|
|
5177
|
-
type ThreadRealtimeErrorNotification = {
|
|
5178
|
-
threadId: string;
|
|
5179
|
-
message: string;
|
|
5180
|
-
};
|
|
5181
|
-
/**
|
|
5182
|
-
* EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.
|
|
5183
|
-
*/
|
|
5184
|
-
type ThreadRealtimeItemAddedNotification = {
|
|
5185
|
-
threadId: string;
|
|
5186
|
-
item: JsonValue;
|
|
5187
|
-
};
|
|
5188
|
-
/**
|
|
5189
|
-
* EXPERIMENTAL - how an existing agent item appears in a realtime conversation.
|
|
5190
|
-
*/
|
|
5191
|
-
type ThreadRealtimeBemItemPresentation = {
|
|
5192
|
-
"type": "wholeItem";
|
|
5193
|
-
} | {
|
|
5194
|
-
"type": "inlineMarkdown";
|
|
5195
|
-
} | {
|
|
5196
|
-
"type": "inlineVisualization";
|
|
5197
|
-
index: number;
|
|
5198
|
-
};
|
|
5199
|
-
type ThreadRealtimeSessionOutcome = "ended" | "failed";
|
|
5200
|
-
type ThreadRealtimeTranscriptRole = "user" | "assistant";
|
|
5201
|
-
/**
|
|
5202
|
-
* EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.
|
|
5203
|
-
*/
|
|
5204
|
-
type ThreadRealtimeItem = {
|
|
5205
|
-
id: string;
|
|
5206
|
-
realtimeSessionId: string;
|
|
5207
|
-
} & ({
|
|
5208
|
-
"type": "realtimeSessionStarted";
|
|
5209
|
-
} | {
|
|
5210
|
-
"type": "transcriptSegment";
|
|
5211
|
-
role: ThreadRealtimeTranscriptRole;
|
|
5212
|
-
text: string;
|
|
5213
|
-
} | {
|
|
5214
|
-
"type": "bemItemPromoted";
|
|
5215
|
-
turnId: string;
|
|
5216
|
-
itemId: string;
|
|
5217
|
-
presentation: ThreadRealtimeBemItemPresentation;
|
|
5218
|
-
} | {
|
|
5219
|
-
"type": "realtimeSessionClosed";
|
|
5220
|
-
outcome: ThreadRealtimeSessionOutcome;
|
|
5221
|
-
});
|
|
5222
|
-
/**
|
|
5223
|
-
* EXPERIMENTAL - a realtime timeline item published after canonical commit.
|
|
5224
|
-
*/
|
|
5225
|
-
type ThreadRealtimeItemCompletedNotification = {
|
|
5226
|
-
threadId: string;
|
|
5227
|
-
item: ThreadRealtimeItem;
|
|
5228
|
-
};
|
|
5229
|
-
/**
|
|
5230
|
-
* EXPERIMENTAL - a realtime timeline item started before its content streams.
|
|
5231
|
-
*/
|
|
5232
|
-
type ThreadRealtimeItemStartedNotification = {
|
|
5233
|
-
threadId: string;
|
|
5234
|
-
item: ThreadRealtimeItem;
|
|
5235
|
-
};
|
|
5236
|
-
/**
|
|
5237
|
-
* EXPERIMENTAL - text appended to an active realtime transcript item.
|
|
5238
|
-
*/
|
|
5239
|
-
type ThreadRealtimeItemTranscriptDeltaNotification = {
|
|
5240
|
-
threadId: string;
|
|
5241
|
-
itemId: string;
|
|
5242
|
-
delta: string;
|
|
5243
|
-
};
|
|
5244
|
-
/**
|
|
5245
|
-
* EXPERIMENTAL - streamed output audio emitted by thread realtime.
|
|
5246
|
-
*/
|
|
5247
|
-
type ThreadRealtimeOutputAudioDeltaNotification = {
|
|
5248
|
-
threadId: string;
|
|
5249
|
-
audio: ThreadRealtimeAudioChunk;
|
|
5250
|
-
};
|
|
5251
|
-
/**
|
|
5252
|
-
* EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.
|
|
5253
|
-
*/
|
|
5254
|
-
type ThreadRealtimeSdpNotification = {
|
|
5255
|
-
threadId: string;
|
|
5256
|
-
sdp: string;
|
|
5257
|
-
};
|
|
5258
|
-
/**
|
|
5259
|
-
* EXPERIMENTAL - emitted when thread realtime startup is accepted.
|
|
5260
|
-
*/
|
|
5261
|
-
type ThreadRealtimeStartedNotification = {
|
|
5262
|
-
threadId: string;
|
|
5263
|
-
realtimeSessionId: string | null;
|
|
5264
|
-
version: RealtimeConversationVersion;
|
|
5265
|
-
};
|
|
5266
|
-
/**
|
|
5267
|
-
* EXPERIMENTAL - flat transcript delta emitted whenever realtime
|
|
5268
|
-
* transcript text changes.
|
|
5269
|
-
*/
|
|
5270
|
-
type ThreadRealtimeTranscriptDeltaNotification = {
|
|
5271
|
-
threadId: string;
|
|
5272
|
-
role: string;
|
|
5273
|
-
/**
|
|
5274
|
-
* Live transcript delta from the realtime event.
|
|
5275
|
-
*/
|
|
5276
|
-
delta: string;
|
|
5277
|
-
};
|
|
5278
|
-
/**
|
|
5279
|
-
* EXPERIMENTAL - final transcript text emitted when realtime completes
|
|
5280
|
-
* a transcript part.
|
|
5281
|
-
*/
|
|
5282
|
-
type ThreadRealtimeTranscriptDoneNotification = {
|
|
5283
|
-
threadId: string;
|
|
5284
|
-
role: string;
|
|
5285
|
-
/**
|
|
5286
|
-
* Final complete text for the transcript part.
|
|
5287
|
-
*/
|
|
5288
|
-
text: string;
|
|
5289
|
-
};
|
|
5290
|
-
type ThreadRevertedNotification = {
|
|
5291
|
-
threadId: string;
|
|
5292
|
-
};
|
|
5293
|
-
type ActivePermissionProfile = {
|
|
5294
|
-
/**
|
|
5295
|
-
* Identifier from `default_permissions` or the implicit built-in default,
|
|
5296
|
-
* such as `:workspace` or a user-defined `[permissions.<id>]` profile.
|
|
5297
|
-
*/
|
|
5298
|
-
id: string;
|
|
5299
|
-
/**
|
|
5300
|
-
* Parent profile identifier from the selected permissions profile's
|
|
5301
|
-
* `extends` setting, when present.
|
|
5302
|
-
*/
|
|
5303
|
-
extends: string | null;
|
|
5304
|
-
};
|
|
5305
|
-
type ThreadSettings = {
|
|
5306
|
-
/**
|
|
5307
|
-
* Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.
|
|
5308
|
-
*/
|
|
5309
|
-
disabledPluginIds: Array<string>;
|
|
5310
|
-
cwd: AbsolutePathBuf;
|
|
5311
|
-
approvalPolicy: AskForApproval;
|
|
5312
|
-
approvalsReviewer: ApprovalsReviewer;
|
|
5313
|
-
sandboxPolicy: SandboxPolicy;
|
|
5314
|
-
activePermissionProfile: ActivePermissionProfile | null;
|
|
5315
|
-
model: string;
|
|
5316
|
-
modelProvider: string;
|
|
5317
|
-
serviceTier: string | null;
|
|
5318
|
-
effort: ReasoningEffort | null;
|
|
5319
|
-
summary: ReasoningSummary | null;
|
|
5320
|
-
collaborationMode: CollaborationMode;
|
|
5321
|
-
/**
|
|
5322
|
-
* @deprecated Always `explicitRequestOnly`. Use `effort` for Ultra behavior.
|
|
5323
|
-
*/
|
|
5324
|
-
multiAgentMode: MultiAgentMode;
|
|
5325
|
-
/**
|
|
5326
|
-
* @deprecated Reports the saved setting; `friendly` and `pragmatic` no longer select a style.
|
|
5327
|
-
*/
|
|
5328
|
-
personality: Personality | null;
|
|
5329
|
-
};
|
|
5330
|
-
type ThreadSettingsUpdatedNotification = {
|
|
5331
|
-
threadId: string;
|
|
5332
|
-
threadSettings: ThreadSettings;
|
|
5333
|
-
};
|
|
5334
|
-
type GitInfo = {
|
|
5335
|
-
sha: string | null;
|
|
5336
|
-
branch: string | null;
|
|
5337
|
-
originUrl: string | null;
|
|
5338
|
-
};
|
|
5339
|
-
type SessionSource = "cli" | "vscode" | "exec" | "appServer" | {
|
|
5340
|
-
"custom": string;
|
|
5341
|
-
} | {
|
|
5342
|
-
"subAgent": SubAgentSource;
|
|
5343
|
-
} | "unknown";
|
|
5344
|
-
/**
|
|
5345
|
-
* An environment selected by a loaded thread, independent of connection status.
|
|
5346
|
-
*/
|
|
5347
|
-
type ThreadEnvironment = {
|
|
5348
|
-
environmentId: string;
|
|
5349
|
-
cwd: LegacyAppPathString;
|
|
5350
|
-
runtimeWorkspaceRoots: Array<LegacyAppPathString>;
|
|
5351
|
-
};
|
|
5352
|
-
/**
|
|
5353
|
-
* Extra app-server data for a thread.
|
|
5354
|
-
*/
|
|
5355
|
-
type ThreadExtra = Record<string, never>;
|
|
5356
|
-
/**
|
|
5357
|
-
* An independently persisted, user-visible thread section.
|
|
5358
|
-
*/
|
|
5359
|
-
type ThreadSection = {
|
|
5360
|
-
/**
|
|
5361
|
-
* Opaque UUIDv7 identity that remains stable when the section is renamed.
|
|
5362
|
-
*/
|
|
5363
|
-
id: string;
|
|
5364
|
-
/**
|
|
5365
|
-
* The current user-visible section name.
|
|
5366
|
-
*/
|
|
5367
|
-
name: string;
|
|
5368
|
-
/**
|
|
5369
|
-
* Optional appearance synchronized across clients.
|
|
5370
|
-
*/
|
|
5371
|
-
appearance: ThreadSectionAppearance | null;
|
|
5372
|
-
};
|
|
5373
|
-
type ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput";
|
|
5374
|
-
type ThreadStatus = {
|
|
5375
|
-
"type": "notLoaded";
|
|
5376
|
-
} | {
|
|
5377
|
-
"type": "idle";
|
|
5378
|
-
} | {
|
|
5379
|
-
"type": "systemError";
|
|
5380
|
-
} | {
|
|
5381
|
-
"type": "active";
|
|
5382
|
-
activeFlags: Array<ThreadActiveFlag>;
|
|
5383
|
-
};
|
|
5384
|
-
type TurnStatus = "completed" | "interrupted" | "failed" | "inProgress";
|
|
5385
|
-
type Turn = {
|
|
5386
|
-
/**
|
|
5387
|
-
* Identifier for this turn. Codex-generated turn IDs are UUIDv7.
|
|
5388
|
-
*/
|
|
5389
|
-
id: string;
|
|
5390
|
-
/**
|
|
5391
|
-
* ID of the first turn in the chain of work that led to this turn.
|
|
5392
|
-
* Pass this as `rootTurnId` when starting work on behalf of this turn.
|
|
5393
|
-
* May be null in older history or a `review/start` response.
|
|
5394
|
-
*/
|
|
5395
|
-
rootTurnId: string | null;
|
|
5396
|
-
/**
|
|
5397
|
-
* Thread items currently included in this turn payload.
|
|
5398
|
-
*/
|
|
5399
|
-
items: Array<ThreadItem>;
|
|
5400
|
-
/**
|
|
5401
|
-
* Describes how much of `items` has been loaded for this turn.
|
|
5402
|
-
*/
|
|
5403
|
-
itemsView: TurnItemsView;
|
|
5404
|
-
status: TurnStatus;
|
|
5405
|
-
/**
|
|
5406
|
-
* Error associated with a failed or interrupted turn.
|
|
5407
|
-
*/
|
|
5408
|
-
error: TurnError | null;
|
|
5409
|
-
/**
|
|
5410
|
-
* Unix timestamp (in seconds) when the turn started.
|
|
5411
|
-
*/
|
|
5412
|
-
startedAt: number | null;
|
|
5413
|
-
/**
|
|
5414
|
-
* Unix timestamp (in seconds) when the turn completed.
|
|
5415
|
-
*/
|
|
5416
|
-
completedAt: number | null;
|
|
5417
|
-
/**
|
|
5418
|
-
* Duration between turn start and completion in milliseconds, if known.
|
|
5419
|
-
*/
|
|
5420
|
-
durationMs: number | null;
|
|
5421
|
-
};
|
|
5422
|
-
type Thread = {
|
|
5423
|
-
/**
|
|
5424
|
-
* Identifier for this thread. Codex-generated thread IDs are UUIDv7.
|
|
5425
|
-
*/
|
|
5426
|
-
id: string;
|
|
5427
|
-
/**
|
|
5428
|
-
* Current environments for a loaded thread, in priority order, primary first.
|
|
5429
|
-
* `null` means the thread is not loaded or the server does not expose its selection.
|
|
5430
|
-
* An empty list means no environments are selected. This does not report connection status.
|
|
5431
|
-
*/
|
|
5432
|
-
environments: Array<ThreadEnvironment> | null;
|
|
5433
|
-
/**
|
|
5434
|
-
* Optional implementation-specific thread data.
|
|
5435
|
-
*/
|
|
5436
|
-
extra: ThreadExtra | null;
|
|
5437
|
-
/**
|
|
5438
|
-
* Session id shared by threads that belong to the same session tree.
|
|
5439
|
-
*/
|
|
5440
|
-
sessionId: string;
|
|
5441
|
-
/**
|
|
5442
|
-
* Source thread id when this thread was created by forking another thread.
|
|
5443
|
-
*/
|
|
5444
|
-
forkedFromId: string | null;
|
|
5445
|
-
/**
|
|
5446
|
-
* The ID of the parent thread. This will only be set if this thread is a subagent.
|
|
5447
|
-
*/
|
|
5448
|
-
parentThreadId: string | null;
|
|
5449
|
-
/**
|
|
5450
|
-
* Usually the first user message in the thread, if available.
|
|
5451
|
-
*/
|
|
5452
|
-
preview: string;
|
|
5453
|
-
/**
|
|
5454
|
-
* Whether the thread is ephemeral and should not be materialized on disk.
|
|
5455
|
-
*/
|
|
5456
|
-
ephemeral: boolean;
|
|
5457
|
-
/**
|
|
5458
|
-
* The independently persisted section selected for this thread, if any.
|
|
5459
|
-
*/
|
|
5460
|
-
section: ThreadSection | null;
|
|
5461
|
-
/**
|
|
5462
|
-
* Unix timestamp in seconds when the thread entered its current section.
|
|
5463
|
-
*/
|
|
5464
|
-
sectionEnteredAt: number | null;
|
|
5465
|
-
/**
|
|
5466
|
-
* Canonical project assignment owned by app-server, if any.
|
|
5467
|
-
*/
|
|
5468
|
-
projectId: string | null;
|
|
5469
|
-
/**
|
|
5470
|
-
* Persisted thread history contract selected when this thread was created.
|
|
5471
|
-
*/
|
|
5472
|
-
historyMode: ThreadHistoryMode;
|
|
5473
|
-
/**
|
|
5474
|
-
* Model provider used for this thread (for example, 'openai').
|
|
5475
|
-
*/
|
|
5476
|
-
modelProvider: string;
|
|
5477
|
-
/**
|
|
5478
|
-
* Current configured model when loaded, otherwise the latest persisted model.
|
|
5479
|
-
* Null when unavailable. This is not per-turn execution telemetry.
|
|
5480
|
-
*/
|
|
5481
|
-
model: string | null;
|
|
5482
|
-
/**
|
|
5483
|
-
* Current configured reasoning effort when loaded, otherwise the latest persisted effort.
|
|
5484
|
-
* Null when unset or unavailable. This is not per-turn execution telemetry.
|
|
5485
|
-
*/
|
|
5486
|
-
reasoningEffort: ReasoningEffort | null;
|
|
5487
|
-
/**
|
|
5488
|
-
* Unix timestamp (in seconds) when the thread was created.
|
|
5489
|
-
*/
|
|
5490
|
-
createdAt: number;
|
|
5491
|
-
/**
|
|
5492
|
-
* Unix timestamp (in seconds) when the thread was last updated.
|
|
5493
|
-
*/
|
|
5494
|
-
updatedAt: number;
|
|
5495
|
-
/**
|
|
5496
|
-
* Unix timestamp (in seconds) used for thread recency ordering.
|
|
5497
|
-
*/
|
|
5498
|
-
recencyAt: number | null;
|
|
5499
|
-
/**
|
|
5500
|
-
* Current runtime status for the thread.
|
|
5501
|
-
*/
|
|
5502
|
-
status: ThreadStatus;
|
|
5503
|
-
/**
|
|
5504
|
-
* [UNSTABLE] Path to the thread on disk.
|
|
5505
|
-
*/
|
|
5506
|
-
path: string | null;
|
|
5507
|
-
/**
|
|
5508
|
-
* Working directory captured for the thread.
|
|
5509
|
-
*/
|
|
5510
|
-
cwd: AbsolutePathBuf;
|
|
5511
|
-
/**
|
|
5512
|
-
* Version of the CLI that created the thread.
|
|
5513
|
-
*/
|
|
5514
|
-
cliVersion: string;
|
|
5515
|
-
/**
|
|
5516
|
-
* Originator recorded when the thread was created, independent of its current client or executor.
|
|
5517
|
-
* Null when the recorded originator is unavailable.
|
|
5518
|
-
*/
|
|
5519
|
-
originator: string | null;
|
|
5520
|
-
/**
|
|
5521
|
-
* Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).
|
|
5522
|
-
*/
|
|
5523
|
-
source: SessionSource;
|
|
5524
|
-
/**
|
|
5525
|
-
* Whether the app server accepts direct turn input for this loaded thread.
|
|
5526
|
-
* `None` means the capability is unavailable, such as for an unloaded stored thread.
|
|
5527
|
-
*/
|
|
5528
|
-
canAcceptDirectInput: boolean | null;
|
|
5529
|
-
/**
|
|
5530
|
-
* Optional analytics source classification for this thread.
|
|
5531
|
-
*/
|
|
5532
|
-
threadSource: ThreadSource | null;
|
|
5533
|
-
/**
|
|
5534
|
-
* Optional random unique nickname assigned to an AgentControl-spawned sub-agent.
|
|
5535
|
-
*/
|
|
5536
|
-
agentNickname: string | null;
|
|
5537
|
-
/**
|
|
5538
|
-
* Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.
|
|
5539
|
-
*/
|
|
5540
|
-
agentRole: string | null;
|
|
5541
|
-
/**
|
|
5542
|
-
* Optional Git metadata captured when the thread was created.
|
|
5543
|
-
*/
|
|
5544
|
-
gitInfo: GitInfo | null;
|
|
5545
|
-
/**
|
|
5546
|
-
* Optional user-facing thread title.
|
|
5547
|
-
*/
|
|
5548
|
-
name: string | null;
|
|
5549
|
-
/**
|
|
5550
|
-
* Saved Daybreak choice, independent of turn execution. Null if unset.
|
|
5551
|
-
*/
|
|
5552
|
-
daybreakEnabled: boolean | null;
|
|
5553
|
-
/**
|
|
5554
|
-
* Only populated on `thread/resume`, `thread/fork`, and `thread/read`
|
|
5555
|
-
* (when `includeTurns` is true) responses.
|
|
5556
|
-
* For all other responses and notifications returning a Thread,
|
|
5557
|
-
* the turns field will be an empty list.
|
|
5558
|
-
*/
|
|
5559
|
-
turns: Array<Turn>;
|
|
5560
|
-
};
|
|
5561
|
-
type ThreadStartedNotification = {
|
|
5562
|
-
thread: Thread;
|
|
5563
|
-
};
|
|
5564
|
-
type ThreadStatusChangedNotification = {
|
|
5565
|
-
threadId: string;
|
|
5566
|
-
status: ThreadStatus;
|
|
5567
|
-
};
|
|
5568
|
-
type ThreadTokenUsage = {
|
|
5569
|
-
total: TokenUsageBreakdown;
|
|
5570
|
-
last: TokenUsageBreakdown;
|
|
5571
|
-
modelContextWindow: number | null;
|
|
5572
|
-
};
|
|
5573
|
-
type ThreadTokenUsageUpdatedNotification = {
|
|
5574
|
-
threadId: string;
|
|
5575
|
-
turnId: string;
|
|
5576
|
-
tokenUsage: ThreadTokenUsage;
|
|
5577
|
-
};
|
|
5578
|
-
type ThreadUnarchivedNotification = {
|
|
5579
|
-
threadId: string;
|
|
5580
|
-
};
|
|
5581
|
-
type TurnCompletedNotification = {
|
|
5582
|
-
threadId: string;
|
|
5583
|
-
turn: Turn;
|
|
5584
|
-
};
|
|
5585
|
-
/**
|
|
5586
|
-
* Notification that the turn-level unified diff has changed.
|
|
5587
|
-
* Contains the latest aggregated diff across all file changes in the turn.
|
|
5588
|
-
*/
|
|
5589
|
-
type TurnDiffUpdatedNotification = {
|
|
5590
|
-
threadId: string;
|
|
5591
|
-
turnId: string;
|
|
5592
|
-
diff: string;
|
|
5593
|
-
};
|
|
5594
|
-
type TurnModerationMetadataNotification = {
|
|
5595
|
-
threadId: string;
|
|
5596
|
-
turnId: string;
|
|
5597
|
-
metadata: JsonValue;
|
|
5598
|
-
};
|
|
5599
|
-
type TurnPlanStepStatus = "pending" | "inProgress" | "completed";
|
|
5600
|
-
type TurnPlanStep = {
|
|
5601
|
-
step: string;
|
|
5602
|
-
status: TurnPlanStepStatus;
|
|
5603
|
-
};
|
|
5604
|
-
type TurnPlanUpdatedNotification = {
|
|
5605
|
-
threadId: string;
|
|
5606
|
-
turnId: string;
|
|
5607
|
-
explanation: string | null;
|
|
5608
|
-
plan: Array<TurnPlanStep>;
|
|
5609
|
-
};
|
|
5610
|
-
type TurnStartedNotification = {
|
|
5611
|
-
threadId: string;
|
|
5612
|
-
turn: Turn;
|
|
5613
|
-
};
|
|
5614
|
-
type WarningNotification = {
|
|
5615
|
-
/**
|
|
5616
|
-
* Optional thread target when the warning applies to a specific thread.
|
|
5617
|
-
*/
|
|
5618
|
-
threadId: string | null;
|
|
5619
|
-
/**
|
|
5620
|
-
* Concise warning message for the user.
|
|
5621
|
-
*/
|
|
5622
|
-
message: string;
|
|
5623
|
-
};
|
|
5624
|
-
type WindowsSandboxSetupCompletedNotification = {
|
|
5625
|
-
mode: WindowsSandboxSetupMode;
|
|
5626
|
-
success: boolean;
|
|
5627
|
-
error: string | null;
|
|
5628
|
-
};
|
|
5629
|
-
type WindowsWorldWritableWarningNotification = {
|
|
5630
|
-
samplePaths: Array<string>;
|
|
5631
|
-
extraCount: number;
|
|
5632
|
-
failedScan: boolean;
|
|
5633
|
-
};
|
|
5634
|
-
/**
|
|
5635
|
-
* Notification sent from the server to the client.
|
|
5636
|
-
*/
|
|
5637
|
-
type ServerNotification = {
|
|
5638
|
-
"method": "error";
|
|
5639
|
-
"params": ErrorNotification;
|
|
5640
|
-
} | {
|
|
5641
|
-
"method": "thread/started";
|
|
5642
|
-
"params": ThreadStartedNotification;
|
|
5643
|
-
} | {
|
|
5644
|
-
"method": "thread/status/changed";
|
|
5645
|
-
"params": ThreadStatusChangedNotification;
|
|
5646
|
-
} | {
|
|
5647
|
-
"method": "thread/readState/changed";
|
|
5648
|
-
"params": ThreadReadStateChangedNotification;
|
|
5649
|
-
} | {
|
|
5650
|
-
"method": "thread/archived";
|
|
5651
|
-
"params": ThreadArchivedNotification;
|
|
5652
|
-
} | {
|
|
5653
|
-
"method": "thread/deleted";
|
|
5654
|
-
"params": ThreadDeletedNotification;
|
|
5655
|
-
} | {
|
|
5656
|
-
"method": "thread/unarchived";
|
|
5657
|
-
"params": ThreadUnarchivedNotification;
|
|
5658
|
-
} | {
|
|
5659
|
-
"method": "thread/closed";
|
|
5660
|
-
"params": ThreadClosedNotification;
|
|
5661
|
-
} | {
|
|
5662
|
-
"method": "thread/reverted";
|
|
5663
|
-
"params": ThreadRevertedNotification;
|
|
5664
|
-
} | {
|
|
5665
|
-
"method": "skills/changed";
|
|
5666
|
-
"params": SkillsChangedNotification;
|
|
5667
|
-
} | {
|
|
5668
|
-
"method": "thread/name/updated";
|
|
5669
|
-
"params": ThreadNameUpdatedNotification;
|
|
5670
|
-
} | {
|
|
5671
|
-
"method": "thread/attachment/updated";
|
|
5672
|
-
"params": ThreadAttachmentUpdatedNotification;
|
|
5673
|
-
} | {
|
|
5674
|
-
"method": "thread/goal/updated";
|
|
5675
|
-
"params": ThreadGoalUpdatedNotification;
|
|
5676
|
-
} | {
|
|
5677
|
-
"method": "thread/prediction/updated";
|
|
5678
|
-
"params": ThreadPredictionUpdatedNotification;
|
|
5679
|
-
} | {
|
|
5680
|
-
"method": "thread/goal/cleared";
|
|
5681
|
-
"params": ThreadGoalClearedNotification;
|
|
5682
|
-
} | {
|
|
5683
|
-
"method": "thread/queue/changed";
|
|
5684
|
-
"params": ThreadQueueChangedNotification;
|
|
5685
|
-
} | {
|
|
5686
|
-
"method": "project/changed";
|
|
5687
|
-
"params": ProjectChangedNotification;
|
|
5688
|
-
} | {
|
|
5689
|
-
"method": "thread/project/updated";
|
|
5690
|
-
"params": ThreadProjectUpdatedNotification;
|
|
5691
|
-
} | {
|
|
5692
|
-
"method": "thread/environment/connected";
|
|
5693
|
-
"params": EnvironmentConnectionNotification;
|
|
5694
|
-
} | {
|
|
5695
|
-
"method": "thread/environment/disconnected";
|
|
5696
|
-
"params": EnvironmentConnectionNotification;
|
|
5697
|
-
} | {
|
|
5698
|
-
"method": "thread/settings/updated";
|
|
5699
|
-
"params": ThreadSettingsUpdatedNotification;
|
|
5700
|
-
} | {
|
|
5701
|
-
"method": "thread/tokenUsage/updated";
|
|
5702
|
-
"params": ThreadTokenUsageUpdatedNotification;
|
|
5703
|
-
} | {
|
|
5704
|
-
"method": "turn/started";
|
|
5705
|
-
"params": TurnStartedNotification;
|
|
5706
|
-
} | {
|
|
5707
|
-
"method": "hook/started";
|
|
5708
|
-
"params": HookStartedNotification;
|
|
5709
|
-
} | {
|
|
5710
|
-
"method": "turn/completed";
|
|
5711
|
-
"params": TurnCompletedNotification;
|
|
5712
|
-
} | {
|
|
5713
|
-
"method": "hook/completed";
|
|
5714
|
-
"params": HookCompletedNotification;
|
|
5715
|
-
} | {
|
|
5716
|
-
"method": "turn/diff/updated";
|
|
5717
|
-
"params": TurnDiffUpdatedNotification;
|
|
5718
|
-
} | {
|
|
5719
|
-
"method": "turn/plan/updated";
|
|
5720
|
-
"params": TurnPlanUpdatedNotification;
|
|
5721
|
-
} | {
|
|
5722
|
-
"method": "item/started";
|
|
5723
|
-
"params": ItemStartedNotification;
|
|
5724
|
-
} | {
|
|
5725
|
-
"method": "item/autoApprovalReview/started";
|
|
5726
|
-
"params": ItemGuardianApprovalReviewStartedNotification;
|
|
5727
|
-
} | {
|
|
5728
|
-
"method": "item/autoApprovalReview/completed";
|
|
5729
|
-
"params": ItemGuardianApprovalReviewCompletedNotification;
|
|
5730
|
-
} | {
|
|
5731
|
-
"method": "autoApprovalReview/strictReviewRequired";
|
|
5732
|
-
"params": StrictReviewRequiredNotification;
|
|
5733
|
-
} | {
|
|
5734
|
-
"method": "item/completed";
|
|
5735
|
-
"params": ItemCompletedNotification;
|
|
5736
|
-
} | {
|
|
5737
|
-
"method": "rawResponseItem/completed";
|
|
5738
|
-
"params": RawResponseItemCompletedNotification;
|
|
5739
|
-
} | {
|
|
5740
|
-
"method": "rawResponse/completed";
|
|
5741
|
-
"params": RawResponseCompletedNotification;
|
|
5742
|
-
} | {
|
|
5743
|
-
"method": "item/agentMessage/delta";
|
|
5744
|
-
"params": AgentMessageDeltaNotification;
|
|
5745
|
-
} | {
|
|
5746
|
-
"method": "item/plan/delta";
|
|
5747
|
-
"params": PlanDeltaNotification;
|
|
5748
|
-
} | {
|
|
5749
|
-
"method": "command/exec/outputDelta";
|
|
5750
|
-
"params": CommandExecOutputDeltaNotification;
|
|
5751
|
-
} | {
|
|
5752
|
-
"method": "process/outputDelta";
|
|
5753
|
-
"params": ProcessOutputDeltaNotification;
|
|
5754
|
-
} | {
|
|
5755
|
-
"method": "process/exited";
|
|
5756
|
-
"params": ProcessExitedNotification;
|
|
5757
|
-
} | {
|
|
5758
|
-
"method": "item/commandExecution/outputDelta";
|
|
5759
|
-
"params": CommandExecutionOutputDeltaNotification;
|
|
5760
|
-
} | {
|
|
5761
|
-
"method": "item/commandExecution/terminalInteraction";
|
|
5762
|
-
"params": TerminalInteractionNotification;
|
|
5763
|
-
} | {
|
|
5764
|
-
"method": "item/fileChange/outputDelta";
|
|
5765
|
-
"params": FileChangeOutputDeltaNotification;
|
|
5766
|
-
} | {
|
|
5767
|
-
"method": "item/fileChange/patchUpdated";
|
|
5768
|
-
"params": FileChangePatchUpdatedNotification;
|
|
5769
|
-
} | {
|
|
5770
|
-
"method": "serverRequest/resolved";
|
|
5771
|
-
"params": ServerRequestResolvedNotification;
|
|
5772
|
-
} | {
|
|
5773
|
-
"method": "item/mcpToolCall/progress";
|
|
5774
|
-
"params": McpToolCallProgressNotification;
|
|
5775
|
-
} | {
|
|
5776
|
-
"method": "mcpServer/oauthLogin/completed";
|
|
5777
|
-
"params": McpServerOauthLoginCompletedNotification;
|
|
5778
|
-
} | {
|
|
5779
|
-
"method": "mcpServer/startupStatus/updated";
|
|
5780
|
-
"params": McpServerStatusUpdatedNotification;
|
|
5781
|
-
} | {
|
|
5782
|
-
"method": "mcpServer/event/stream/notification";
|
|
5783
|
-
"params": McpServerEventStreamNotification;
|
|
5784
|
-
} | {
|
|
5785
|
-
"method": "account/updated";
|
|
5786
|
-
"params": AccountUpdatedNotification;
|
|
5787
|
-
} | {
|
|
5788
|
-
"method": "account/gatewayOAuth/changed";
|
|
5789
|
-
"params": GatewayOAuthChangedNotification;
|
|
5790
|
-
} | {
|
|
5791
|
-
"method": "account/rateLimits/updated";
|
|
5792
|
-
"params": AccountRateLimitsUpdatedNotification;
|
|
5793
|
-
} | {
|
|
5794
|
-
"method": "app/list/updated";
|
|
5795
|
-
"params": AppListUpdatedNotification;
|
|
5796
|
-
} | {
|
|
5797
|
-
"method": "remoteControl/status/changed";
|
|
5798
|
-
"params": RemoteControlStatusChangedNotification;
|
|
5799
|
-
} | {
|
|
5800
|
-
"method": "externalAgentConfig/import/progress";
|
|
5801
|
-
"params": ExternalAgentConfigImportProgressNotification;
|
|
5802
|
-
} | {
|
|
5803
|
-
"method": "externalAgentConfig/import/completed";
|
|
5804
|
-
"params": ExternalAgentConfigImportCompletedNotification;
|
|
5805
|
-
} | {
|
|
5806
|
-
"method": "fs/changed";
|
|
5807
|
-
"params": FsChangedNotification;
|
|
5808
|
-
} | {
|
|
5809
|
-
"method": "item/reasoning/summaryTextDelta";
|
|
5810
|
-
"params": ReasoningSummaryTextDeltaNotification;
|
|
5811
|
-
} | {
|
|
5812
|
-
"method": "item/reasoning/summaryPartAdded";
|
|
5813
|
-
"params": ReasoningSummaryPartAddedNotification;
|
|
5814
|
-
} | {
|
|
5815
|
-
"method": "item/reasoning/textDelta";
|
|
5816
|
-
"params": ReasoningTextDeltaNotification;
|
|
5817
|
-
} | {
|
|
5818
|
-
"method": "thread/compacted";
|
|
5819
|
-
"params": ContextCompactedNotification;
|
|
5820
|
-
} | {
|
|
5821
|
-
"method": "model/rerouted";
|
|
5822
|
-
"params": ModelReroutedNotification;
|
|
5823
|
-
} | {
|
|
5824
|
-
"method": "model/verification";
|
|
5825
|
-
"params": ModelVerificationNotification;
|
|
5826
|
-
} | {
|
|
5827
|
-
"method": "modelProvider/authRecoveryStarted";
|
|
5828
|
-
"params": AuthRecoveryNotification;
|
|
5829
|
-
} | {
|
|
5830
|
-
"method": "modelProvider/authRecoveryCompleted";
|
|
5831
|
-
"params": AuthRecoveryNotification;
|
|
5832
|
-
} | {
|
|
5833
|
-
"method": "turn/moderationMetadata";
|
|
5834
|
-
"params": TurnModerationMetadataNotification;
|
|
5835
|
-
} | {
|
|
5836
|
-
"method": "model/safetyBuffering/updated";
|
|
5837
|
-
"params": ModelSafetyBufferingUpdatedNotification;
|
|
5838
|
-
} | {
|
|
5839
|
-
"method": "warning";
|
|
5840
|
-
"params": WarningNotification;
|
|
5841
|
-
} | {
|
|
5842
|
-
"method": "guardianWarning";
|
|
5843
|
-
"params": GuardianWarningNotification;
|
|
5844
|
-
} | {
|
|
5845
|
-
"method": "deprecationNotice";
|
|
5846
|
-
"params": DeprecationNoticeNotification;
|
|
5847
|
-
} | {
|
|
5848
|
-
"method": "configWarning";
|
|
5849
|
-
"params": ConfigWarningNotification;
|
|
5850
|
-
} | {
|
|
5851
|
-
"method": "fuzzyFileSearch/sessionUpdated";
|
|
5852
|
-
"params": FuzzyFileSearchSessionUpdatedNotification;
|
|
5853
|
-
} | {
|
|
5854
|
-
"method": "fuzzyFileSearch/sessionCompleted";
|
|
5855
|
-
"params": FuzzyFileSearchSessionCompletedNotification;
|
|
5856
|
-
} | {
|
|
5857
|
-
"method": "thread/realtime/started";
|
|
5858
|
-
"params": ThreadRealtimeStartedNotification;
|
|
5859
|
-
} | {
|
|
5860
|
-
"method": "thread/realtime/itemAdded";
|
|
5861
|
-
"params": ThreadRealtimeItemAddedNotification;
|
|
5862
|
-
} | {
|
|
5863
|
-
"method": "thread/realtime/item/started";
|
|
5864
|
-
"params": ThreadRealtimeItemStartedNotification;
|
|
5865
|
-
} | {
|
|
5866
|
-
"method": "thread/realtime/item/transcript/delta";
|
|
5867
|
-
"params": ThreadRealtimeItemTranscriptDeltaNotification;
|
|
5868
|
-
} | {
|
|
5869
|
-
"method": "thread/realtime/item/completed";
|
|
5870
|
-
"params": ThreadRealtimeItemCompletedNotification;
|
|
5871
|
-
} | {
|
|
5872
|
-
"method": "thread/realtime/transcript/delta";
|
|
5873
|
-
"params": ThreadRealtimeTranscriptDeltaNotification;
|
|
5874
|
-
} | {
|
|
5875
|
-
"method": "thread/realtime/transcript/done";
|
|
5876
|
-
"params": ThreadRealtimeTranscriptDoneNotification;
|
|
5877
|
-
} | {
|
|
5878
|
-
"method": "thread/realtime/outputAudio/delta";
|
|
5879
|
-
"params": ThreadRealtimeOutputAudioDeltaNotification;
|
|
5880
|
-
} | {
|
|
5881
|
-
"method": "thread/realtime/sdp";
|
|
5882
|
-
"params": ThreadRealtimeSdpNotification;
|
|
5883
|
-
} | {
|
|
5884
|
-
"method": "thread/realtime/error";
|
|
5885
|
-
"params": ThreadRealtimeErrorNotification;
|
|
5886
|
-
} | {
|
|
5887
|
-
"method": "thread/realtime/closed";
|
|
5888
|
-
"params": ThreadRealtimeClosedNotification;
|
|
5889
|
-
} | {
|
|
5890
|
-
"method": "windows/worldWritableWarning";
|
|
5891
|
-
"params": WindowsWorldWritableWarningNotification;
|
|
5892
|
-
} | {
|
|
5893
|
-
"method": "windowsSandbox/setupCompleted";
|
|
5894
|
-
"params": WindowsSandboxSetupCompletedNotification;
|
|
5895
|
-
} | {
|
|
5896
|
-
"method": "account/login/completed";
|
|
5897
|
-
"params": AccountLoginCompletedNotification;
|
|
5898
|
-
};
|
|
5899
|
-
type ExecPolicyAmendment = Array<string>;
|
|
5900
|
-
type NetworkPolicyRuleAction = "allow" | "deny";
|
|
5901
|
-
type NetworkPolicyAmendment = {
|
|
5902
|
-
host: string;
|
|
5903
|
-
action: NetworkPolicyRuleAction;
|
|
5904
|
-
};
|
|
5905
|
-
type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | {
|
|
5906
|
-
"acceptWithExecpolicyAmendment": {
|
|
5907
|
-
execpolicy_amendment: ExecPolicyAmendment;
|
|
5908
|
-
};
|
|
5909
|
-
} | {
|
|
5910
|
-
"applyNetworkPolicyAmendment": {
|
|
5911
|
-
network_policy_amendment: NetworkPolicyAmendment;
|
|
5912
|
-
};
|
|
5913
|
-
} | "decline" | "cancel";
|
|
5914
|
-
/**
|
|
5915
|
-
* A model-facing surface on which a tool can be exposed.
|
|
5916
|
-
*/
|
|
5917
|
-
type ToolExposureSurface = "code_mode" | "deferred" | "direct";
|
|
5918
|
-
/**
|
|
5919
|
-
* Controls output length/detail on GPT-5 models via the Responses API.
|
|
5920
|
-
* Serialized with lowercase values to match the OpenAI API.
|
|
5921
|
-
*/
|
|
5922
|
-
type Verbosity = "low" | "medium" | "high";
|
|
5923
|
-
type WebSearchContextSize = "low" | "medium" | "high";
|
|
5924
|
-
type WebSearchLocation = {
|
|
5925
|
-
country: string | null;
|
|
5926
|
-
region: string | null;
|
|
5927
|
-
city: string | null;
|
|
5928
|
-
timezone: string | null;
|
|
5929
|
-
};
|
|
5930
|
-
type WebSearchMode = "disabled" | "cached" | "indexed" | "live";
|
|
5931
|
-
type WebSearchToolConfig = {
|
|
5932
|
-
context_size: WebSearchContextSize | null;
|
|
5933
|
-
allowed_domains: Array<string> | null;
|
|
5934
|
-
location: WebSearchLocation | null;
|
|
5935
|
-
};
|
|
5936
|
-
type Account = {
|
|
5937
|
-
"type": "apiKey";
|
|
5938
|
-
} | {
|
|
5939
|
-
"type": "chatgpt";
|
|
5940
|
-
email: string | null;
|
|
5941
|
-
planType: PlanType;
|
|
5942
|
-
/**
|
|
5943
|
-
* Display name of the selected ChatGPT workspace, when available.
|
|
5944
|
-
*/
|
|
5945
|
-
workspaceName: string | null;
|
|
5946
|
-
} | {
|
|
5947
|
-
"type": "amazonBedrock";
|
|
5948
|
-
usesCodexManagedCredentials: boolean;
|
|
5949
|
-
} | {
|
|
5950
|
-
"type": "gcp";
|
|
5951
|
-
};
|
|
5952
|
-
/**
|
|
5953
|
-
* Backend routing policy. Wire values match the accounts/check contract.
|
|
5954
|
-
*/
|
|
5955
|
-
type AccountRoutingOverride = "NO_CONSTRAINT" | "us" | "us_cr";
|
|
5956
|
-
type AllowDenyRequirement = "allow" | "deny";
|
|
5957
|
-
type AnalyticsConfig = {
|
|
5958
|
-
enabled: boolean | null;
|
|
5959
|
-
} & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue; } | null; });
|
|
5960
|
-
type AppToolApproval = "auto" | "prompt" | "writes" | "approve";
|
|
5961
|
-
/**
|
|
5962
|
-
* Account settings for a single app.
|
|
5963
|
-
*/
|
|
5964
|
-
type AppLinksConfig = { [key in string]?: {
|
|
5965
|
-
approvals_reviewer: ApprovalsReviewer | null;
|
|
5966
|
-
default_tools_approval_mode: AppToolApproval | null;
|
|
5967
|
-
}; };
|
|
5968
|
-
type AppToolsConfig = { [key in string]?: {
|
|
5969
|
-
enabled: boolean | null;
|
|
5970
|
-
approval_mode: AppToolApproval | null;
|
|
5971
|
-
}; };
|
|
5972
|
-
type NetworkDomainPermission = "allow" | "deny";
|
|
5973
|
-
type ApplicationNetworkRequirements = {
|
|
5974
|
-
/**
|
|
5975
|
-
* When enabled, only explicitly allowed exact domains may be contacted.
|
|
5976
|
-
*/
|
|
5977
|
-
enabled: boolean;
|
|
5978
|
-
domains: { [key in string]?: NetworkDomainPermission; };
|
|
5979
|
-
};
|
|
5980
|
-
/**
|
|
5981
|
-
* Managed storage settings for new Desktop workspaces, not filesystem access restrictions.
|
|
5982
|
-
*/
|
|
5983
|
-
type ApplicationStorageRequirements = {
|
|
5984
|
-
defaultProjectParent: LegacyAppPathString | null;
|
|
5985
|
-
projectlessWorkspaceRoot: LegacyAppPathString | null;
|
|
5986
|
-
};
|
|
5987
|
-
type ApplicationRequirements = {
|
|
5988
|
-
network: ApplicationNetworkRequirements | null;
|
|
5989
|
-
storage: ApplicationStorageRequirements | null;
|
|
5990
|
-
};
|
|
5991
|
-
type AppsDefaultConfig = {
|
|
5992
|
-
enabled: boolean;
|
|
5993
|
-
approvals_reviewer: ApprovalsReviewer | null;
|
|
5994
|
-
destructive_enabled: boolean;
|
|
5995
|
-
open_world_enabled: boolean;
|
|
5996
|
-
default_tools_approval_mode: AppToolApproval | null;
|
|
5997
|
-
};
|
|
5998
|
-
type AppsConfig = {
|
|
5999
|
-
_default: AppsDefaultConfig | null;
|
|
6000
|
-
} & ({ [key in string]?: {
|
|
6001
|
-
enabled: boolean;
|
|
6002
|
-
/**
|
|
6003
|
-
* Additional model-facing surfaces omitted for this connector's tools.
|
|
6004
|
-
*/
|
|
6005
|
-
omit_tools_from: Array<ToolExposureSurface> | null;
|
|
6006
|
-
approvals_reviewer: ApprovalsReviewer | null;
|
|
6007
|
-
destructive_enabled: boolean | null;
|
|
6008
|
-
open_world_enabled: boolean | null;
|
|
6009
|
-
default_tools_approval_mode: AppToolApproval | null;
|
|
6010
|
-
default_tools_enabled: boolean | null;
|
|
6011
|
-
tools: AppToolsConfig | null;
|
|
6012
|
-
/**
|
|
6013
|
-
* Per-account approval settings keyed by link ID.
|
|
6014
|
-
*/
|
|
6015
|
-
links: AppLinksConfig | null;
|
|
6016
|
-
}; });
|
|
6017
|
-
type AutoReviewRequirements = {
|
|
6018
|
-
requiredOnModels: Array<string> | null;
|
|
6019
|
-
ignoreRules: Array<string> | null;
|
|
6020
|
-
};
|
|
6021
|
-
type BrowserUseAccessApprovalLifetime = "turn" | "thread";
|
|
6022
|
-
type BrowserUseOriginPolicyConfig = {
|
|
6023
|
-
access: AllowDenyRequirement | null;
|
|
6024
|
-
downloads: AllowDenyRequirement | null;
|
|
6025
|
-
uploads: AllowDenyRequirement | null;
|
|
6026
|
-
full_cdp_access: AllowDenyRequirement | null;
|
|
6027
|
-
};
|
|
6028
|
-
type BrowserUseConfig = {
|
|
6029
|
-
allow_history_access: boolean | null;
|
|
6030
|
-
default_origin_policy: BrowserUseOriginPolicyConfig | null;
|
|
6031
|
-
origins: { [key in string]?: BrowserUseOriginPolicyConfig; } | null;
|
|
6032
|
-
};
|
|
6033
|
-
type RequestHeader = {
|
|
6034
|
-
name: string;
|
|
6035
|
-
value: string;
|
|
6036
|
-
};
|
|
6037
|
-
type BrowserUseExtensionRequirements = {
|
|
6038
|
-
requestHeaders: Array<RequestHeader> | null;
|
|
6039
|
-
};
|
|
6040
|
-
type BrowserUseOriginPolicy = {
|
|
6041
|
-
access: AllowDenyRequirement | null;
|
|
6042
|
-
downloads: AllowDenyRequirement | null;
|
|
6043
|
-
uploads: AllowDenyRequirement | null;
|
|
6044
|
-
fullCdpAccess: AllowDenyRequirement | null;
|
|
6045
|
-
autoReview: AllowDenyRequirement | null;
|
|
6046
|
-
persistentApproval: boolean | null;
|
|
6047
|
-
accessApprovalLifetime: BrowserUseAccessApprovalLifetime | null;
|
|
6048
|
-
};
|
|
6049
|
-
type BrowserUseRequirements = {
|
|
6050
|
-
extension: BrowserUseExtensionRequirements | null;
|
|
6051
|
-
allowWebmcp: boolean | null;
|
|
6052
|
-
allowHistoryAccess: boolean | null;
|
|
6053
|
-
disableAutoReview: boolean | null;
|
|
6054
|
-
allowGlobalPersistentApproval: boolean | null;
|
|
6055
|
-
defaultOriginPolicy: BrowserUseOriginPolicy | null;
|
|
6056
|
-
origins: { [key in string]?: BrowserUseOriginPolicy; } | null;
|
|
6057
|
-
};
|
|
6058
|
-
type CancelLoginAccountStatus = "canceled" | "notFound";
|
|
6059
|
-
type CancelLoginAccountResponse = {
|
|
6060
|
-
status: CancelLoginAccountStatus;
|
|
6061
|
-
};
|
|
6062
|
-
type CliAuthCredentialsStoreMode = "file" | "keyring" | "auto" | "ephemeral";
|
|
6063
|
-
type CommandExecutionRequestApprovalResponse = {
|
|
6064
|
-
decision: CommandExecutionApprovalDecision;
|
|
6065
|
-
};
|
|
6066
|
-
type ComputerUseMacosConfig = {
|
|
6067
|
-
bundle_ids: { [key in string]?: AllowDenyRequirement; } | null;
|
|
6068
|
-
};
|
|
6069
|
-
type ComputerUseWindowsExeConfig = {
|
|
6070
|
-
publisher_name: string;
|
|
6071
|
-
product_name: string;
|
|
6072
|
-
binary_name: string | null;
|
|
6073
|
-
access: AllowDenyRequirement;
|
|
6074
|
-
};
|
|
6075
|
-
type ComputerUseWindowsConfig = {
|
|
6076
|
-
aumids: { [key in string]?: AllowDenyRequirement; } | null;
|
|
6077
|
-
exes: Array<ComputerUseWindowsExeConfig> | null;
|
|
6078
|
-
};
|
|
6079
|
-
type ComputerUseConfig = {
|
|
6080
|
-
default_app_access: AllowDenyRequirement | null;
|
|
6081
|
-
macos: ComputerUseMacosConfig | null;
|
|
6082
|
-
windows: ComputerUseWindowsConfig | null;
|
|
6083
|
-
};
|
|
6084
|
-
type ComputerUseMacosRequirements = {
|
|
6085
|
-
bundleIds: { [key in string]?: AllowDenyRequirement; } | null;
|
|
6086
|
-
};
|
|
6087
|
-
type ComputerUseWindowsExeRequirement = {
|
|
6088
|
-
publisherName: string;
|
|
6089
|
-
productName: string;
|
|
6090
|
-
binaryName: string | null;
|
|
6091
|
-
access: AllowDenyRequirement;
|
|
6092
|
-
};
|
|
6093
|
-
type ComputerUseWindowsRequirements = {
|
|
6094
|
-
aumids: { [key in string]?: AllowDenyRequirement; } | null;
|
|
6095
|
-
exes: Array<ComputerUseWindowsExeRequirement> | null;
|
|
6096
|
-
};
|
|
6097
|
-
type ComputerUseRequirements = {
|
|
6098
|
-
allowLockedComputerUse: boolean | null;
|
|
6099
|
-
allowPersistentApproval: boolean | null;
|
|
6100
|
-
defaultAppAccess: AllowDenyRequirement | null;
|
|
6101
|
-
macos: ComputerUseMacosRequirements | null;
|
|
6102
|
-
windows: ComputerUseWindowsRequirements | null;
|
|
6103
|
-
};
|
|
6104
|
-
/**
|
|
6105
|
-
* Backward-compatible API shape for ChatGPT workspace login restrictions.
|
|
6106
|
-
*/
|
|
6107
|
-
type ForcedChatgptWorkspaceIds = string | Array<string>;
|
|
6108
|
-
type SandboxWorkspaceWrite = {
|
|
6109
|
-
writable_roots: Array<string>;
|
|
6110
|
-
network_access: boolean;
|
|
6111
|
-
exclude_tmpdir_env_var: boolean;
|
|
6112
|
-
exclude_slash_tmp: boolean;
|
|
6113
|
-
};
|
|
6114
|
-
type ToolsV2 = {
|
|
6115
|
-
web_search: WebSearchToolConfig | null;
|
|
6116
|
-
};
|
|
6117
|
-
type Config = {
|
|
6118
|
-
model: string | null;
|
|
6119
|
-
review_model: string | null;
|
|
6120
|
-
model_context_window: bigint | null;
|
|
6121
|
-
model_auto_compact_token_limit: bigint | null;
|
|
6122
|
-
model_auto_compact_token_limit_scope: AutoCompactTokenLimitScope | null;
|
|
6123
|
-
model_provider: string | null;
|
|
6124
|
-
approval_policy: AskForApproval | null;
|
|
6125
|
-
/**
|
|
6126
|
-
* [UNSTABLE] Optional default for where approval requests are routed for
|
|
6127
|
-
* review.
|
|
6128
|
-
*/
|
|
6129
|
-
approvals_reviewer: ApprovalsReviewer | null;
|
|
6130
|
-
sandbox_mode: SandboxMode | null;
|
|
6131
|
-
sandbox_workspace_write: SandboxWorkspaceWrite | null;
|
|
6132
|
-
forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null;
|
|
6133
|
-
forced_login_method: ForcedLoginMethod | null;
|
|
6134
|
-
web_search: WebSearchMode | null;
|
|
6135
|
-
tools: ToolsV2 | null;
|
|
6136
|
-
instructions: string | null;
|
|
6137
|
-
developer_instructions: string | null;
|
|
6138
|
-
compact_prompt: string | null;
|
|
6139
|
-
model_reasoning_effort: ReasoningEffort | null;
|
|
6140
|
-
model_reasoning_summary: ReasoningSummary | null;
|
|
6141
|
-
model_verbosity: Verbosity | null;
|
|
6142
|
-
service_tier: string | null;
|
|
6143
|
-
analytics: AnalyticsConfig | null;
|
|
6144
|
-
apps: AppsConfig | null;
|
|
6145
|
-
browser_use: BrowserUseConfig | null;
|
|
6146
|
-
computer_use: ComputerUseConfig | null;
|
|
6147
|
-
desktop: { [key in string]?: JsonValue; } | null;
|
|
6148
|
-
} & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue; } | null; });
|
|
6149
|
-
type ConfigLayerSource = {
|
|
6150
|
-
"type": "packagedDefaults";
|
|
6151
|
-
/**
|
|
6152
|
-
* Path to the packaged default configuration file.
|
|
6153
|
-
*/
|
|
6154
|
-
file: AbsolutePathBuf;
|
|
6155
|
-
} | {
|
|
6156
|
-
"type": "mdm";
|
|
6157
|
-
domain: string;
|
|
6158
|
-
key: string;
|
|
6159
|
-
} | {
|
|
6160
|
-
"type": "system";
|
|
6161
|
-
/**
|
|
6162
|
-
* This is the path to the system config.toml file, though it is not
|
|
6163
|
-
* guaranteed to exist.
|
|
6164
|
-
*/
|
|
6165
|
-
file: AbsolutePathBuf;
|
|
6166
|
-
} | {
|
|
6167
|
-
"type": "enterpriseManaged";
|
|
6168
|
-
/**
|
|
6169
|
-
* Stable identifier for the delivered layer.
|
|
6170
|
-
*/
|
|
6171
|
-
id: string;
|
|
6172
|
-
/**
|
|
6173
|
-
* Admin-facing name for the delivered layer. This is surfaced in
|
|
6174
|
-
* diagnostics so users know which cloud layer needs administrator
|
|
6175
|
-
* attention.
|
|
6176
|
-
*/
|
|
6177
|
-
name: string;
|
|
6178
|
-
} | {
|
|
6179
|
-
"type": "user";
|
|
6180
|
-
/**
|
|
6181
|
-
* This is the path to the user's config.toml file, though it is not
|
|
6182
|
-
* guaranteed to exist.
|
|
6183
|
-
*/
|
|
6184
|
-
file: AbsolutePathBuf;
|
|
6185
|
-
/**
|
|
6186
|
-
* Name of the selected profile-v2 config layered on top of the base
|
|
6187
|
-
* user config, when this layer represents one.
|
|
6188
|
-
*/
|
|
6189
|
-
profile: string | null;
|
|
6190
|
-
} | {
|
|
6191
|
-
"type": "project";
|
|
6192
|
-
dotCodexFolder: AbsolutePathBuf;
|
|
6193
|
-
} | {
|
|
6194
|
-
"type": "sessionFlags";
|
|
6195
|
-
} | {
|
|
6196
|
-
"type": "legacyManagedConfigTomlFromFile";
|
|
6197
|
-
file: AbsolutePathBuf;
|
|
6198
|
-
} | {
|
|
6199
|
-
"type": "legacyManagedConfigTomlFromMdm";
|
|
6200
|
-
};
|
|
6201
|
-
type ConfigLayer = {
|
|
6202
|
-
name: ConfigLayerSource;
|
|
6203
|
-
version: string;
|
|
6204
|
-
config: JsonValue;
|
|
6205
|
-
disabledReason: string | null;
|
|
6206
|
-
};
|
|
6207
|
-
type ConfigLayerMetadata = {
|
|
6208
|
-
name: ConfigLayerSource;
|
|
6209
|
-
version: string;
|
|
6210
|
-
};
|
|
6211
|
-
type ConfigReadResponse = {
|
|
6212
|
-
config: Config;
|
|
6213
|
-
origins: { [key in string]?: ConfigLayerMetadata; };
|
|
6214
|
-
layers: Array<ConfigLayer> | null;
|
|
6215
|
-
};
|
|
6216
|
-
type FeedbackRequirements = {
|
|
6217
|
-
enabled: boolean | null;
|
|
6218
|
-
};
|
|
6219
|
-
type InAppBrowserRequirements = {
|
|
6220
|
-
allowExternalBrowserSettingsImport: boolean | null;
|
|
6221
|
-
};
|
|
6222
|
-
type ConfiguredHookHandler = {
|
|
6223
|
-
"type": "command";
|
|
6224
|
-
command: string;
|
|
6225
|
-
commandWindows: string | null;
|
|
6226
|
-
timeoutSec: bigint | null;
|
|
6227
|
-
async: boolean;
|
|
6228
|
-
statusMessage: string | null;
|
|
6229
|
-
/**
|
|
6230
|
-
* Approximate token threshold for spilling this hook's `additionalContext` to disk.
|
|
6231
|
-
* `null` uses 2,500 tokens; `0` disables spilling for this hook. The threshold is
|
|
6232
|
-
* evaluated against the original context; a spilled preview also includes recovery
|
|
6233
|
-
* metadata.
|
|
6234
|
-
*/
|
|
6235
|
-
additionalContextLimit: number | null;
|
|
6236
|
-
} | {
|
|
6237
|
-
"type": "mcp_tool";
|
|
6238
|
-
server: string;
|
|
6239
|
-
tool: string;
|
|
6240
|
-
input: { [key in string]?: JsonValue; };
|
|
6241
|
-
timeoutSec: bigint | null;
|
|
6242
|
-
statusMessage: string | null;
|
|
6243
|
-
} | {
|
|
6244
|
-
"type": "prompt";
|
|
6245
|
-
} | {
|
|
6246
|
-
"type": "agent";
|
|
6247
|
-
};
|
|
6248
|
-
type ConfiguredHookMatcherGroup = {
|
|
6249
|
-
matcher: string | null;
|
|
6250
|
-
hooks: Array<ConfiguredHookHandler>;
|
|
6251
|
-
};
|
|
6252
|
-
type ManagedHooksRequirements = {
|
|
6253
|
-
PreModelRequest: Array<ConfiguredHookMatcherGroup>;
|
|
6254
|
-
PostModelRequest: Array<ConfiguredHookMatcherGroup>;
|
|
6255
|
-
managedDir: string | null;
|
|
6256
|
-
windowsManagedDir: string | null;
|
|
6257
|
-
PreToolUse: Array<ConfiguredHookMatcherGroup>;
|
|
6258
|
-
PermissionRequest: Array<ConfiguredHookMatcherGroup>;
|
|
6259
|
-
PostToolUse: Array<ConfiguredHookMatcherGroup>;
|
|
6260
|
-
PreCompact: Array<ConfiguredHookMatcherGroup>;
|
|
6261
|
-
PostCompact: Array<ConfiguredHookMatcherGroup>;
|
|
6262
|
-
SessionStart: Array<ConfiguredHookMatcherGroup>;
|
|
6263
|
-
SessionEnd: Array<ConfiguredHookMatcherGroup>;
|
|
6264
|
-
UserPromptSubmit: Array<ConfiguredHookMatcherGroup>;
|
|
6265
|
-
SubagentStart: Array<ConfiguredHookMatcherGroup>;
|
|
6266
|
-
SubagentStop: Array<ConfiguredHookMatcherGroup>;
|
|
6267
|
-
Stop: Array<ConfiguredHookMatcherGroup>;
|
|
6268
|
-
Interrupt: Array<ConfiguredHookMatcherGroup>;
|
|
6269
|
-
};
|
|
6270
|
-
type NewThreadModelDefaults = {
|
|
6271
|
-
model: string | null;
|
|
6272
|
-
modelReasoningEffort: ReasoningEffort | null;
|
|
6273
|
-
serviceTier: string | null;
|
|
6274
|
-
};
|
|
6275
|
-
type ModelsRequirements = {
|
|
6276
|
-
newThread: NewThreadModelDefaults | null;
|
|
6277
|
-
};
|
|
6278
|
-
type NetworkUnixSocketPermission = "allow" | "deny";
|
|
6279
|
-
type NetworkRequirements = {
|
|
6280
|
-
enabled: boolean | null;
|
|
6281
|
-
httpPort: number | null;
|
|
6282
|
-
socksPort: number | null;
|
|
6283
|
-
allowUpstreamProxy: boolean | null;
|
|
6284
|
-
dangerouslyAllowNonLoopbackProxy: boolean | null;
|
|
6285
|
-
dangerouslyAllowAllUnixSockets: boolean | null;
|
|
6286
|
-
/**
|
|
6287
|
-
* Canonical managed network permission map.
|
|
6288
|
-
*/
|
|
6289
|
-
domains: { [key in string]?: NetworkDomainPermission; } | null;
|
|
6290
|
-
/**
|
|
6291
|
-
* Host patterns routed to network approval before ordinary allow rules.
|
|
6292
|
-
*/
|
|
6293
|
-
reviewDomains: Array<string> | null;
|
|
6294
|
-
/**
|
|
6295
|
-
* When true, only managed allowlist entries are respected while managed
|
|
6296
|
-
* network enforcement is active.
|
|
6297
|
-
*/
|
|
6298
|
-
managedAllowedDomainsOnly: boolean | null;
|
|
6299
|
-
/**
|
|
6300
|
-
* Legacy compatibility view derived from `domains`.
|
|
6301
|
-
*/
|
|
6302
|
-
allowedDomains: Array<string> | null;
|
|
6303
|
-
/**
|
|
6304
|
-
* Legacy compatibility view derived from `domains`.
|
|
6305
|
-
*/
|
|
6306
|
-
deniedDomains: Array<string> | null;
|
|
6307
|
-
/**
|
|
6308
|
-
* Canonical managed unix socket permission map.
|
|
6309
|
-
*/
|
|
6310
|
-
unixSockets: { [key in string]?: NetworkUnixSocketPermission; } | null;
|
|
6311
|
-
/**
|
|
6312
|
-
* Legacy compatibility view derived from `unix_sockets`.
|
|
6313
|
-
*/
|
|
6314
|
-
allowUnixSockets: Array<string> | null;
|
|
6315
|
-
allowLocalBinding: boolean | null;
|
|
6316
|
-
};
|
|
6317
|
-
type OtelHttpProtocol = "binary" | "json";
|
|
6318
|
-
type OtelTlsConfig = {
|
|
6319
|
-
"ca-certificate": string | null;
|
|
6320
|
-
"client-certificate": string | null;
|
|
6321
|
-
"client-private-key": string | null;
|
|
6322
|
-
};
|
|
6323
|
-
type OtelExporter = "none" | "statsig" | {
|
|
6324
|
-
"otlp-http": {
|
|
6325
|
-
endpoint: string;
|
|
6326
|
-
/**
|
|
6327
|
-
* Header names are retained; values are redacted by the server.
|
|
6328
|
-
*/
|
|
6329
|
-
headers: { [key in string]?: string; };
|
|
6330
|
-
protocol: OtelHttpProtocol;
|
|
6331
|
-
tls: OtelTlsConfig | null;
|
|
6332
|
-
};
|
|
6333
|
-
} | {
|
|
6334
|
-
"otlp-grpc": {
|
|
6335
|
-
endpoint: string;
|
|
6336
|
-
/**
|
|
6337
|
-
* Header names are retained; values are redacted by the server.
|
|
6338
|
-
*/
|
|
6339
|
-
headers: { [key in string]?: string; };
|
|
6340
|
-
tls: OtelTlsConfig | null;
|
|
6341
|
-
};
|
|
6342
|
-
};
|
|
6343
|
-
type OtelToolResultLogConfig = {
|
|
6344
|
-
max_bytes: number;
|
|
6345
|
-
};
|
|
6346
|
-
type OtelRequirements = {
|
|
6347
|
-
tool_result: OtelToolResultLogConfig | null;
|
|
6348
|
-
log_user_prompt: boolean | null;
|
|
6349
|
-
log_agent_responses: boolean | null;
|
|
6350
|
-
log_guardian_assessments: boolean | null;
|
|
6351
|
-
environment: string | null;
|
|
6352
|
-
exporter: OtelExporter | null;
|
|
6353
|
-
trace_exporter: OtelExporter | null;
|
|
6354
|
-
metrics_exporter: OtelExporter | null;
|
|
6355
|
-
span_attributes: { [key in string]?: string; } | null;
|
|
6356
|
-
tracestate: { [key in string]?: { [key in string]?: string; }; } | null;
|
|
6357
|
-
};
|
|
6358
|
-
type ResidencyRequirement = "us";
|
|
6359
|
-
type WindowsSandboxImplementation = "elevated" | "unelevated" | "mxc";
|
|
6360
|
-
type ConfigRequirements = {
|
|
6361
|
-
/**
|
|
6362
|
-
* Exact provider selection required by managed policy.
|
|
6363
|
-
*/
|
|
6364
|
-
modelProvider: string | null;
|
|
6365
|
-
/**
|
|
6366
|
-
* Complete required provider definitions, using config.toml field names.
|
|
6367
|
-
*/
|
|
6368
|
-
modelProviders: { [key in string]?: JsonValue; } | null;
|
|
6369
|
-
/**
|
|
6370
|
-
* Effective login methods after managed, forced-login, and workspace restrictions.
|
|
6371
|
-
* An empty list permits no login method. Older servers may omit this field.
|
|
6372
|
-
*/
|
|
6373
|
-
allowedLoginMethods: Array<ForcedLoginMethod> | null;
|
|
6374
|
-
cliAuthCredentialsStore: CliAuthCredentialsStoreMode | null;
|
|
6375
|
-
chatgptBaseUrl: string | null;
|
|
6376
|
-
additionalDeveloperInstructions: string | null;
|
|
6377
|
-
allowedApprovalPolicies: Array<AskForApproval> | null;
|
|
6378
|
-
allowedApprovalsReviewers: Array<ApprovalsReviewer> | null;
|
|
6379
|
-
allowedSandboxModes: Array<SandboxMode> | null;
|
|
6380
|
-
allowedWindowsSandboxImplementations: Array<WindowsSandboxImplementation> | null;
|
|
6381
|
-
allowedPermissionProfiles: { [key in string]?: boolean; } | null;
|
|
6382
|
-
defaultPermissions: string | null;
|
|
6383
|
-
allowedWebSearchModes: Array<WebSearchMode> | null;
|
|
6384
|
-
allowManagedHooksOnly: boolean | null;
|
|
6385
|
-
allowBrowserAndComputerUse: boolean | null;
|
|
6386
|
-
allowAppshots: boolean | null;
|
|
6387
|
-
allowRemoteControl: boolean | null;
|
|
6388
|
-
computerUse: ComputerUseRequirements | null;
|
|
6389
|
-
browserUse: BrowserUseRequirements | null;
|
|
6390
|
-
inAppBrowser: InAppBrowserRequirements | null;
|
|
6391
|
-
featureRequirements: { [key in string]?: boolean; } | null;
|
|
6392
|
-
hooks: ManagedHooksRequirements | null;
|
|
6393
|
-
enforceResidency: ResidencyRequirement | null;
|
|
6394
|
-
network: NetworkRequirements | null;
|
|
6395
|
-
application: ApplicationRequirements | null;
|
|
6396
|
-
autoReview: AutoReviewRequirements | null;
|
|
6397
|
-
models: ModelsRequirements | null;
|
|
6398
|
-
sqliteHome: PathUri | null;
|
|
6399
|
-
logDir: PathUri | null;
|
|
6400
|
-
modelCatalogJson: PathUri | null;
|
|
6401
|
-
checkForUpdateOnStartup: boolean | null;
|
|
6402
|
-
allowLoginShell: boolean | null;
|
|
6403
|
-
feedback: FeedbackRequirements | null;
|
|
6404
|
-
otel: OtelRequirements | null;
|
|
6405
|
-
};
|
|
6406
|
-
type ConfigRequirementsReadResponse = {
|
|
6407
|
-
/**
|
|
6408
|
-
* Whether Fast and Ultra Fast requirements are enforced independently.
|
|
6409
|
-
* Older servers omit this field and use Fast mode as a shared speed gate.
|
|
6410
|
-
*/
|
|
6411
|
-
supportsIndependentSpeedModes: boolean | null;
|
|
6412
|
-
/**
|
|
6413
|
-
* Null if no requirements are configured (e.g. no requirements.toml/MDM entries).
|
|
6414
|
-
*/
|
|
6415
|
-
requirements: ConfigRequirements | null;
|
|
6416
|
-
};
|
|
6417
|
-
type CurrentTimeReadResponse = {
|
|
6418
|
-
/**
|
|
6419
|
-
* Current time as whole Unix seconds.
|
|
6420
|
-
*/
|
|
6421
|
-
currentTimeAt: number;
|
|
6422
|
-
};
|
|
6423
|
-
type DynamicToolCallResponse = {
|
|
6424
|
-
contentItems: Array<DynamicToolCallOutputContentItem>;
|
|
6425
|
-
success: boolean;
|
|
6426
|
-
};
|
|
6427
|
-
type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel";
|
|
6428
|
-
type FileChangeRequestApprovalResponse = {
|
|
6429
|
-
decision: FileChangeApprovalDecision;
|
|
6430
|
-
};
|
|
6431
|
-
type WorkspaceRouting = {
|
|
6432
|
-
chatgptAccountId: string;
|
|
6433
|
-
backendOrigin: string;
|
|
6434
|
-
accountRoutingOverride: AccountRoutingOverride;
|
|
6435
|
-
};
|
|
6436
|
-
type GetAccountResponse = {
|
|
6437
|
-
account: Account | null;
|
|
6438
|
-
requiresOpenaiAuth: boolean;
|
|
6439
|
-
workspaceRouting: WorkspaceRouting | null;
|
|
6440
|
-
};
|
|
6441
|
-
type GrantedPermissionProfile = {
|
|
6442
|
-
network?: AdditionalNetworkPermissions;
|
|
6443
|
-
fileSystem?: AdditionalFileSystemPermissions;
|
|
6444
|
-
};
|
|
6445
|
-
type LoginAccountResponse = {
|
|
6446
|
-
"type": "apiKey";
|
|
6447
|
-
} | {
|
|
6448
|
-
"type": "chatgpt";
|
|
6449
|
-
loginId: string;
|
|
6450
|
-
/**
|
|
6451
|
-
* URL the client should open in a browser to initiate the OAuth flow.
|
|
6452
|
-
*/
|
|
6453
|
-
authUrl: string;
|
|
6454
|
-
} | {
|
|
6455
|
-
"type": "chatgptDeviceCode";
|
|
6456
|
-
loginId: string;
|
|
6457
|
-
/**
|
|
6458
|
-
* URL the client should open in a browser to complete device code authorization.
|
|
6459
|
-
*/
|
|
6460
|
-
verificationUrl: string;
|
|
6461
|
-
/**
|
|
6462
|
-
* One-time code the user must enter after signing in.
|
|
6463
|
-
*/
|
|
6464
|
-
userCode: string;
|
|
6465
|
-
} | {
|
|
6466
|
-
"type": "chatgptAuthTokens";
|
|
6467
|
-
} | {
|
|
6468
|
-
"type": "amazonBedrock";
|
|
6469
|
-
};
|
|
6470
|
-
type LogoutAccountResponse = Record<string, never>;
|
|
6471
|
-
type McpServerElicitationAction = "accept" | "decline" | "cancel";
|
|
6472
|
-
type McpServerElicitationRequestResponse = {
|
|
6473
|
-
action: McpServerElicitationAction;
|
|
6474
|
-
/**
|
|
6475
|
-
* Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`.
|
|
6476
|
-
*
|
|
6477
|
-
* This is nullable because decline/cancel responses have no content.
|
|
6478
|
-
*/
|
|
6479
|
-
content: JsonValue | null;
|
|
6480
|
-
/**
|
|
6481
|
-
* Optional client metadata for form-mode action handling.
|
|
6482
|
-
*/
|
|
6483
|
-
_meta: JsonValue | null;
|
|
6484
|
-
};
|
|
6485
|
-
/**
|
|
6486
|
-
* Caller-specific explicit access programs advertised by model discovery.
|
|
6487
|
-
*/
|
|
6488
|
-
type ModelAccessPrograms = {
|
|
6489
|
-
/**
|
|
6490
|
-
* Accepted explicit selections.
|
|
6491
|
-
*/
|
|
6492
|
-
cyber: Array<CyberAccessProgram>;
|
|
6493
|
-
};
|
|
6494
|
-
type ModelAvailabilityNux = {
|
|
6495
|
-
message: string;
|
|
6496
|
-
};
|
|
6497
|
-
type ModelServiceTier = {
|
|
6498
|
-
id: string;
|
|
6499
|
-
name: string;
|
|
6500
|
-
description: string;
|
|
6501
|
-
};
|
|
6502
|
-
type ModelUpgradeInfo = {
|
|
6503
|
-
model: string;
|
|
6504
|
-
upgradeCopy: string | null;
|
|
6505
|
-
modelLink: string | null;
|
|
6506
|
-
migrationMarkdown: string | null;
|
|
6507
|
-
/**
|
|
6508
|
-
* Informational Unix timestamp for this upgrade's scheduled retirement, if known.
|
|
6509
|
-
*/
|
|
6510
|
-
retirementAt: number | null;
|
|
6511
|
-
};
|
|
6512
|
-
/**
|
|
6513
|
-
* Multi-agent runtime supported by a model.
|
|
6514
|
-
*/
|
|
6515
|
-
type MultiAgentVersion = "disabled" | "v1" | "v2";
|
|
6516
|
-
type ReasoningEffortOption = {
|
|
6517
|
-
reasoningEffort: ReasoningEffort;
|
|
6518
|
-
description: string;
|
|
6519
|
-
};
|
|
6520
|
-
type Model = {
|
|
6521
|
-
id: string;
|
|
6522
|
-
model: string;
|
|
6523
|
-
upgrade: string | null;
|
|
6524
|
-
upgradeInfo: ModelUpgradeInfo | null;
|
|
6525
|
-
availabilityNux: ModelAvailabilityNux | null;
|
|
6526
|
-
displayName: string;
|
|
6527
|
-
description: string;
|
|
6528
|
-
modelSpecialty: string | null;
|
|
6529
|
-
hidden: boolean;
|
|
6530
|
-
supportedReasoningEfforts: Array<ReasoningEffortOption>;
|
|
6531
|
-
defaultReasoningEffort: ReasoningEffort;
|
|
6532
|
-
inputModalities: Array<InputModality>;
|
|
6533
|
-
/**
|
|
6534
|
-
* @deprecated Always false; models no longer support personality selection.
|
|
6535
|
-
*/
|
|
6536
|
-
supportsPersonality: boolean;
|
|
6537
|
-
/**
|
|
6538
|
-
* Multi-agent runtime declared by this model, when available.
|
|
6539
|
-
*/
|
|
6540
|
-
multiAgentVersion: MultiAgentVersion | null;
|
|
6541
|
-
/**
|
|
6542
|
-
* Deprecated: use `serviceTiers` instead.
|
|
6543
|
-
*/
|
|
6544
|
-
additionalSpeedTiers: Array<string>;
|
|
6545
|
-
serviceTiers: Array<ModelServiceTier>;
|
|
6546
|
-
/**
|
|
6547
|
-
* Catalog default service tier id for this model, when one is configured.
|
|
6548
|
-
*/
|
|
6549
|
-
defaultServiceTier: string | null;
|
|
6550
|
-
/**
|
|
6551
|
-
* Null when the catalog does not provide access-program metadata.
|
|
6552
|
-
*/
|
|
6553
|
-
availableAccessPrograms: ModelAccessPrograms | null;
|
|
6554
|
-
isDefault: boolean;
|
|
6555
|
-
};
|
|
6556
|
-
type ModelListResponse = {
|
|
6557
|
-
data: Array<Model>;
|
|
6558
|
-
/**
|
|
6559
|
-
* Opaque cursor to pass to the next call to continue after the last item.
|
|
6560
|
-
* If None, there are no more items to return.
|
|
6561
|
-
*/
|
|
6562
|
-
nextCursor: string | null;
|
|
6563
|
-
};
|
|
6564
|
-
type PermissionGrantScope = "turn" | "session";
|
|
6565
|
-
type PermissionsRequestApprovalResponse = {
|
|
6566
|
-
permissions: GrantedPermissionProfile;
|
|
6567
|
-
scope: PermissionGrantScope;
|
|
6568
|
-
/**
|
|
6569
|
-
* Review every subsequent command in this turn before normal sandboxed execution.
|
|
6570
|
-
*/
|
|
6571
|
-
strictAutoReview?: boolean;
|
|
6572
|
-
};
|
|
6573
|
-
type QueuedSubmission = {
|
|
6574
|
-
id: string;
|
|
6575
|
-
input: Array<UserInput>;
|
|
6576
|
-
clientUserMessageId: string;
|
|
6577
|
-
};
|
|
6578
|
-
type ThreadDeleteResponse = Record<string, never>;
|
|
6579
|
-
type ThreadForkResponse = {
|
|
6580
|
-
thread: Thread;
|
|
6581
|
-
model: string;
|
|
6582
|
-
modelProvider: string;
|
|
6583
|
-
serviceTier: string | null;
|
|
6584
|
-
/**
|
|
6585
|
-
* Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.
|
|
6586
|
-
*/
|
|
6587
|
-
disabledPluginIds: Array<string>;
|
|
6588
|
-
cwd: AbsolutePathBuf;
|
|
6589
|
-
/**
|
|
6590
|
-
* Thread-scoped runtime workspace roots used to materialize
|
|
6591
|
-
* `:workspace_roots`.
|
|
6592
|
-
*/
|
|
6593
|
-
runtimeWorkspaceRoots: Array<AbsolutePathBuf>;
|
|
6594
|
-
/**
|
|
6595
|
-
* Environment-native paths to instruction source files currently loaded for this thread.
|
|
6596
|
-
*/
|
|
6597
|
-
instructionSources: Array<LegacyAppPathString>;
|
|
6598
|
-
approvalPolicy: AskForApproval;
|
|
6599
|
-
/**
|
|
6600
|
-
* Reviewer currently used for approval requests on this thread.
|
|
6601
|
-
*/
|
|
6602
|
-
approvalsReviewer: ApprovalsReviewer;
|
|
6603
|
-
/**
|
|
6604
|
-
* Legacy sandbox policy retained for compatibility. Experimental clients
|
|
6605
|
-
* should prefer `activePermissionProfile` for profile provenance.
|
|
6606
|
-
*/
|
|
6607
|
-
sandbox: SandboxPolicy;
|
|
6608
|
-
/**
|
|
6609
|
-
* Named or implicit built-in profile that produced the active
|
|
6610
|
-
* permissions, when known.
|
|
6611
|
-
*/
|
|
6612
|
-
activePermissionProfile: ActivePermissionProfile | null;
|
|
6613
|
-
reasoningEffort: ReasoningEffort | null;
|
|
6614
|
-
/**
|
|
6615
|
-
* @deprecated Always `explicitRequestOnly`. Use `reasoningEffort` for Ultra behavior.
|
|
6616
|
-
*/
|
|
6617
|
-
multiAgentMode: MultiAgentMode;
|
|
6618
|
-
};
|
|
6619
|
-
type ThreadInjectItemsResponse = Record<string, never>;
|
|
6620
|
-
type ThreadItemEntry = {
|
|
6621
|
-
/**
|
|
6622
|
-
* Turn containing this item.
|
|
6623
|
-
*/
|
|
6624
|
-
turnId: string;
|
|
6625
|
-
item: ThreadItem;
|
|
6626
|
-
/**
|
|
6627
|
-
* Unix timestamp (milliseconds) when the item started, if recorded by the producer.
|
|
6628
|
-
*/
|
|
6629
|
-
startedAtMs: number | null;
|
|
6630
|
-
/**
|
|
6631
|
-
* Unix timestamp (milliseconds) when the item completed, if recorded by the producer.
|
|
6632
|
-
*/
|
|
6633
|
-
completedAtMs: number | null;
|
|
6634
|
-
};
|
|
6635
|
-
type ThreadItemsListResponse = {
|
|
6636
|
-
data: Array<ThreadItemEntry>;
|
|
6637
|
-
/**
|
|
6638
|
-
* Opaque cursor to pass to the next call to continue after the last item.
|
|
6639
|
-
* if None, there are no more items to return.
|
|
6640
|
-
*/
|
|
6641
|
-
nextCursor: string | null;
|
|
6642
|
-
/**
|
|
6643
|
-
* Opaque cursor to pass as `cursor` when reversing `sortDirection`.
|
|
6644
|
-
* This is only populated when the page contains at least one item.
|
|
6645
|
-
*/
|
|
6646
|
-
backwardsCursor: string | null;
|
|
6647
|
-
};
|
|
6648
|
-
type ThreadListResponse = {
|
|
6649
|
-
data: Array<Thread>;
|
|
6650
|
-
/**
|
|
6651
|
-
* Local receipts for eligible threads on this page, keyed by thread ID.
|
|
6652
|
-
* Null means durable read state is unavailable; an absent key means that row is ineligible.
|
|
6653
|
-
*/
|
|
6654
|
-
readStates: { [key in string]?: ThreadReadState; } | null;
|
|
6655
|
-
/**
|
|
6656
|
-
* Opaque cursor to pass to the next call to continue after the last item.
|
|
6657
|
-
* if None, there are no more items to return.
|
|
6658
|
-
*/
|
|
6659
|
-
nextCursor: string | null;
|
|
6660
|
-
/**
|
|
6661
|
-
* Opaque cursor to pass as `cursor` when reversing `sortDirection`.
|
|
6662
|
-
* This is only populated when the page contains at least one thread.
|
|
6663
|
-
* Use it with the opposite `sortDirection`; for timestamp sorts it anchors
|
|
6664
|
-
* at the start of the page timestamp so same-second updates are not skipped.
|
|
6665
|
-
*/
|
|
6666
|
-
backwardsCursor: string | null;
|
|
6667
|
-
};
|
|
6668
|
-
type ThreadLoadedListResponse = {
|
|
6669
|
-
/**
|
|
6670
|
-
* Thread ids for sessions currently loaded in memory.
|
|
6671
|
-
*/
|
|
6672
|
-
data: Array<string>;
|
|
6673
|
-
/**
|
|
6674
|
-
* Opaque cursor to pass to the next call to continue after the last item.
|
|
6675
|
-
* if None, there are no more items to return.
|
|
6676
|
-
*/
|
|
6677
|
-
nextCursor: string | null;
|
|
6678
|
-
};
|
|
6679
|
-
type ThreadQueueAddResponse = {
|
|
6680
|
-
queuedSubmission: QueuedSubmission;
|
|
6681
|
-
};
|
|
6682
|
-
type ThreadQueueDeleteResponse = {
|
|
6683
|
-
deleted: boolean;
|
|
6684
|
-
};
|
|
6685
|
-
type ThreadQueueListResponse = {
|
|
6686
|
-
data: Array<QueuedSubmission>;
|
|
6687
|
-
/**
|
|
6688
|
-
* Opaque cursor for the next page, or `null` when no submissions remain.
|
|
6689
|
-
*/
|
|
6690
|
-
nextCursor: string | null;
|
|
6691
|
-
};
|
|
6692
|
-
type ThreadQueueReorderResponse = Record<string, never>;
|
|
6693
|
-
type ThreadQueueStartResponse = {
|
|
6694
|
-
turn: Turn;
|
|
6695
|
-
};
|
|
6696
|
-
type ThreadQueueUpdateResponse = {
|
|
6697
|
-
queuedSubmission: QueuedSubmission;
|
|
6698
|
-
};
|
|
6699
|
-
type ThreadReadResponse = {
|
|
6700
|
-
thread: Thread;
|
|
6701
|
-
/**
|
|
6702
|
-
* Local receipt. Null means this thread's durable read state is unavailable.
|
|
6703
|
-
*/
|
|
6704
|
-
readState: ThreadReadState | null;
|
|
6705
|
-
};
|
|
6706
|
-
/**
|
|
6707
|
-
* EXPERIMENTAL - response for appending realtime speech.
|
|
6708
|
-
*/
|
|
6709
|
-
type ThreadRealtimeAppendSpeechResponse = Record<string, never>;
|
|
6710
|
-
/**
|
|
6711
|
-
* EXPERIMENTAL - response for appending realtime text input.
|
|
6712
|
-
*/
|
|
6713
|
-
type ThreadRealtimeAppendTextResponse = Record<string, never>;
|
|
6714
|
-
/**
|
|
6715
|
-
* EXPERIMENTAL - response for starting thread realtime.
|
|
6716
|
-
*/
|
|
6717
|
-
type ThreadRealtimeStartResponse = Record<string, never>;
|
|
6718
|
-
/**
|
|
6719
|
-
* EXPERIMENTAL - response for stopping thread realtime.
|
|
6720
|
-
*/
|
|
6721
|
-
type ThreadRealtimeStopResponse = Record<string, never>;
|
|
6722
|
-
type ThreadSettingsUpdateResponse = Record<string, never>;
|
|
6723
|
-
type ThreadStartResponse = {
|
|
6724
|
-
thread: Thread;
|
|
6725
|
-
model: string;
|
|
6726
|
-
modelProvider: string;
|
|
6727
|
-
serviceTier: string | null;
|
|
6728
|
-
/**
|
|
6729
|
-
* Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.
|
|
6730
|
-
*/
|
|
6731
|
-
disabledPluginIds: Array<string>;
|
|
6732
|
-
cwd: AbsolutePathBuf;
|
|
6733
|
-
/**
|
|
6734
|
-
* Thread-scoped runtime workspace roots used to materialize
|
|
6735
|
-
* `:workspace_roots`.
|
|
6736
|
-
*/
|
|
6737
|
-
runtimeWorkspaceRoots: Array<AbsolutePathBuf>;
|
|
6738
|
-
/**
|
|
6739
|
-
* Environment-native paths to instruction source files currently loaded for this thread.
|
|
6740
|
-
*/
|
|
6741
|
-
instructionSources: Array<LegacyAppPathString>;
|
|
6742
|
-
approvalPolicy: AskForApproval;
|
|
6743
|
-
/**
|
|
6744
|
-
* Reviewer currently used for approval requests on this thread.
|
|
6745
|
-
*/
|
|
6746
|
-
approvalsReviewer: ApprovalsReviewer;
|
|
6747
|
-
/**
|
|
6748
|
-
* Legacy sandbox policy retained for compatibility. Experimental clients
|
|
6749
|
-
* should prefer `activePermissionProfile` for profile provenance.
|
|
6750
|
-
*/
|
|
6751
|
-
sandbox: SandboxPolicy;
|
|
6752
|
-
/**
|
|
6753
|
-
* Named or implicit built-in profile that produced the active
|
|
6754
|
-
* permissions, when known.
|
|
6755
|
-
*/
|
|
6756
|
-
activePermissionProfile: ActivePermissionProfile | null;
|
|
6757
|
-
reasoningEffort: ReasoningEffort | null;
|
|
6758
|
-
/**
|
|
6759
|
-
* @deprecated Always `explicitRequestOnly`. Use `reasoningEffort` for Ultra behavior.
|
|
6760
|
-
*/
|
|
6761
|
-
multiAgentMode: MultiAgentMode;
|
|
6762
|
-
};
|
|
6763
|
-
/**
|
|
6764
|
-
* EXPERIMENTAL - one item or turn boundary in canonical rollout order.
|
|
6765
|
-
*/
|
|
6766
|
-
type ThreadTimelineEntry = {
|
|
6767
|
-
"type": "item";
|
|
6768
|
-
position: number;
|
|
6769
|
-
turnId: string;
|
|
6770
|
-
item: ThreadItem;
|
|
6771
|
-
} | {
|
|
6772
|
-
"type": "realtime";
|
|
6773
|
-
position: number;
|
|
6774
|
-
item: ThreadRealtimeItem;
|
|
6775
|
-
} | {
|
|
6776
|
-
"type": "turnStarted";
|
|
6777
|
-
position: number;
|
|
6778
|
-
turnId: string;
|
|
6779
|
-
startedAt: number | null;
|
|
6780
|
-
} | {
|
|
6781
|
-
"type": "turnCompleted";
|
|
6782
|
-
position: number;
|
|
6783
|
-
turnId: string;
|
|
6784
|
-
status: TurnStatus;
|
|
6785
|
-
error: TurnError | null;
|
|
6786
|
-
startedAt: number | null;
|
|
6787
|
-
completedAt: number | null;
|
|
6788
|
-
durationMs: number | null;
|
|
6789
|
-
};
|
|
6790
|
-
/**
|
|
6791
|
-
* EXPERIMENTAL - a bounded timeline page with its resolved opening voice state.
|
|
6792
|
-
*/
|
|
6793
|
-
type ThreadTimelineListResponse = {
|
|
6794
|
-
data: Array<ThreadTimelineEntry>;
|
|
6795
|
-
nextCursor: string | null;
|
|
6796
|
-
activeRealtimeSessionAtPageStart: string | null;
|
|
6797
|
-
};
|
|
6798
|
-
type ThreadTurnsListResponse = {
|
|
6799
|
-
data: Array<Turn>;
|
|
6800
|
-
/**
|
|
6801
|
-
* Opaque cursor to pass to the next call to continue after the last turn.
|
|
6802
|
-
* if None, there are no more turns to return.
|
|
6803
|
-
*/
|
|
6804
|
-
nextCursor: string | null;
|
|
6805
|
-
/**
|
|
6806
|
-
* Opaque cursor to pass as `cursor` when reversing `sortDirection`.
|
|
6807
|
-
* This is only populated when the page contains at least one turn.
|
|
6808
|
-
* Use it with the opposite `sortDirection` to include the anchor turn again
|
|
6809
|
-
* and catch updates to that turn.
|
|
6810
|
-
*/
|
|
6811
|
-
backwardsCursor: string | null;
|
|
6812
|
-
};
|
|
6813
|
-
type ThreadUnsubscribeStatus = "notLoaded" | "notSubscribed" | "unsubscribed";
|
|
6814
|
-
type ThreadUnsubscribeResponse = {
|
|
6815
|
-
status: ThreadUnsubscribeStatus;
|
|
6816
|
-
};
|
|
6817
|
-
/**
|
|
6818
|
-
* EXPERIMENTAL. Captures a user's answer to a request_user_input question.
|
|
6819
|
-
*/
|
|
6820
|
-
type ToolRequestUserInputAnswer = {
|
|
6821
|
-
answers: Array<string>;
|
|
6822
|
-
};
|
|
6823
|
-
/**
|
|
6824
|
-
* EXPERIMENTAL. Response payload mapping question ids to answers.
|
|
6825
|
-
*/
|
|
6826
|
-
type ToolRequestUserInputResponse = {
|
|
6827
|
-
answers: { [key in string]?: ToolRequestUserInputAnswer; };
|
|
6828
|
-
};
|
|
6829
|
-
type TurnInterruptResponse = Record<string, never>;
|
|
6830
|
-
type TurnStartResponse = {
|
|
6831
|
-
turn: Turn;
|
|
6832
|
-
};
|
|
6833
|
-
type TurnSteerResponse = {
|
|
6834
|
-
turnId: string;
|
|
3914
|
+
type ToolRequestUserInputResponse = {
|
|
3915
|
+
answers: { [key in string]?: ToolRequestUserInputAnswer; };
|
|
6835
3916
|
};
|
|
6836
3917
|
/** JSON representation of one generated ts-rs bigint/i64 field. */
|
|
6837
3918
|
declare const CodexSafeI64Schema: z.core.$ZodBranded<z.ZodNumber, "CodexSafeI64", "out">;
|
|
6838
3919
|
type CodexSafeI64 = z.infer<typeof CodexSafeI64Schema>;
|
|
6839
3920
|
type CodexJsonWire<T> = unknown extends T ? keyof T extends never ? CodexJsonValue : T : T extends bigint ? CodexSafeI64 : T extends readonly (infer Item)[] ? CodexJsonWire<Item>[] : T extends object ? { [Key in keyof T]: CodexJsonWire<string extends keyof T ? Exclude<T[Key], undefined> : T[Key]>; } : T;
|
|
6840
3921
|
type CodexClientRequest = CodexJsonWire<ClientRequest>;
|
|
6841
|
-
type CodexServerNotification = CodexJsonWire<ServerNotification>;
|
|
6842
3922
|
type ParamsByMethod<Wire extends {
|
|
6843
3923
|
method: string;
|
|
6844
3924
|
}> = { [Method in Wire["method"]]: Extract<Wire, {
|
|
@@ -6847,47 +3927,10 @@ type ParamsByMethod<Wire extends {
|
|
|
6847
3927
|
params: infer Params;
|
|
6848
3928
|
} ? Params : undefined; };
|
|
6849
3929
|
type CodexClientRequestParamsByMethod = ParamsByMethod<CodexClientRequest>;
|
|
6850
|
-
type CodexServerNotificationParamsByMethod = ParamsByMethod<CodexServerNotification>;
|
|
6851
3930
|
type CodexLoginAccountParams = CodexClientRequestParamsByMethod["account/login/start"];
|
|
6852
3931
|
type CodexCommandExecutionApprovalDecision = CodexJsonWire<CommandExecutionApprovalDecision>;
|
|
6853
3932
|
declare const CODEX_THREAD_STATUS_TYPES: readonly ["notLoaded", "idle", "systemError", "active"];
|
|
6854
3933
|
type CodexThreadStatusType = (typeof CODEX_THREAD_STATUS_TYPES)[number];
|
|
6855
|
-
interface CodexResponseByMethod {
|
|
6856
|
-
readonly initialize: CodexJsonWire<InitializeResponse>;
|
|
6857
|
-
readonly "config/read": CodexJsonWire<ConfigReadResponse>;
|
|
6858
|
-
readonly "configRequirements/read": CodexJsonWire<ConfigRequirementsReadResponse>;
|
|
6859
|
-
readonly "account/read": CodexJsonWire<GetAccountResponse>;
|
|
6860
|
-
readonly "account/login/start": CodexJsonWire<LoginAccountResponse>;
|
|
6861
|
-
readonly "account/login/cancel": CodexJsonWire<CancelLoginAccountResponse>;
|
|
6862
|
-
readonly "account/logout": CodexJsonWire<LogoutAccountResponse>;
|
|
6863
|
-
readonly "model/list": CodexJsonWire<ModelListResponse>;
|
|
6864
|
-
readonly "thread/start": CodexJsonWire<ThreadStartResponse>;
|
|
6865
|
-
readonly "thread/fork": CodexJsonWire<ThreadForkResponse>;
|
|
6866
|
-
readonly "thread/list": CodexJsonWire<ThreadListResponse>;
|
|
6867
|
-
readonly "thread/loaded/list": CodexJsonWire<ThreadLoadedListResponse>;
|
|
6868
|
-
readonly "thread/read": CodexJsonWire<ThreadReadResponse>;
|
|
6869
|
-
readonly "thread/turns/list": CodexJsonWire<ThreadTurnsListResponse>;
|
|
6870
|
-
readonly "thread/items/list": CodexJsonWire<ThreadItemsListResponse>;
|
|
6871
|
-
readonly "thread/delete": CodexJsonWire<ThreadDeleteResponse>;
|
|
6872
|
-
readonly "thread/unsubscribe": CodexJsonWire<ThreadUnsubscribeResponse>;
|
|
6873
|
-
readonly "thread/settings/update": CodexJsonWire<ThreadSettingsUpdateResponse>;
|
|
6874
|
-
readonly "turn/start": CodexJsonWire<TurnStartResponse>;
|
|
6875
|
-
readonly "turn/steer": CodexJsonWire<TurnSteerResponse>;
|
|
6876
|
-
readonly "turn/interrupt": CodexJsonWire<TurnInterruptResponse>;
|
|
6877
|
-
readonly "thread/queue/add": CodexJsonWire<ThreadQueueAddResponse>;
|
|
6878
|
-
readonly "thread/queue/list": CodexJsonWire<ThreadQueueListResponse>;
|
|
6879
|
-
readonly "thread/queue/update": CodexJsonWire<ThreadQueueUpdateResponse>;
|
|
6880
|
-
readonly "thread/queue/delete": CodexJsonWire<ThreadQueueDeleteResponse>;
|
|
6881
|
-
readonly "thread/queue/reorder": CodexJsonWire<ThreadQueueReorderResponse>;
|
|
6882
|
-
readonly "thread/queue/start": CodexJsonWire<ThreadQueueStartResponse>;
|
|
6883
|
-
readonly "thread/inject_items": CodexJsonWire<ThreadInjectItemsResponse>;
|
|
6884
|
-
readonly "thread/realtime/start": CodexJsonWire<ThreadRealtimeStartResponse>;
|
|
6885
|
-
readonly "thread/realtime/appendText": CodexJsonWire<ThreadRealtimeAppendTextResponse>;
|
|
6886
|
-
readonly "thread/realtime/appendSpeech": CodexJsonWire<ThreadRealtimeAppendSpeechResponse>;
|
|
6887
|
-
readonly "thread/realtime/stop": CodexJsonWire<ThreadRealtimeStopResponse>;
|
|
6888
|
-
readonly "thread/timeline/list": CodexJsonWire<ThreadTimelineListResponse>;
|
|
6889
|
-
readonly "currentTime/read": CodexJsonWire<CurrentTimeReadResponse>;
|
|
6890
|
-
}
|
|
6891
3934
|
interface CodexServerResponseByMethod {
|
|
6892
3935
|
readonly "item/commandExecution/requestApproval": CodexJsonWire<CommandExecutionRequestApprovalResponse>;
|
|
6893
3936
|
readonly "item/fileChange/requestApproval": CodexJsonWire<FileChangeRequestApprovalResponse>;
|
|
@@ -6902,4 +3945,4 @@ interface CodexServerResponseByMethod {
|
|
|
6902
3945
|
type CodexJsonValue = null | boolean | number | string | CodexJsonValue[] | {
|
|
6903
3946
|
[key: string]: CodexJsonValue;
|
|
6904
3947
|
};
|
|
6905
|
-
export {
|
|
3948
|
+
export { CodexThreadStatusType as i, CodexLoginAccountParams as n, CodexServerResponseByMethod as r, CodexCommandExecutionApprovalDecision as t };
|