@github/copilot-sdk 1.0.6-preview.0 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client.js +5 -3
- package/dist/cjs/generated/rpc.js +48 -25
- package/dist/client.js +5 -3
- package/dist/generated/rpc.d.ts +920 -197
- package/dist/generated/rpc.js +48 -25
- package/dist/generated/session-events.d.ts +299 -84
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Union of all session event variants emitted by the Copilot CLI runtime.
|
|
7
7
|
*/
|
|
8
|
-
export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | ModeChangedEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
8
|
+
export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | ModeChangedEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
9
9
|
/**
|
|
10
10
|
* Hosting platform type of the repository (github or ado)
|
|
11
11
|
*/
|
|
@@ -32,6 +32,16 @@ export type ReasoningSummary =
|
|
|
32
32
|
| "concise"
|
|
33
33
|
/** Request a detailed summary of the model's reasoning. */
|
|
34
34
|
| "detailed";
|
|
35
|
+
/**
|
|
36
|
+
* Output verbosity level used for supported model calls (e.g. "low", "medium", "high")
|
|
37
|
+
*/
|
|
38
|
+
export type Verbosity =
|
|
39
|
+
/** A terse response was requested. */
|
|
40
|
+
"low"
|
|
41
|
+
/** A medium amount of response detail was requested. */
|
|
42
|
+
| "medium"
|
|
43
|
+
/** A more detailed response was requested. */
|
|
44
|
+
| "high";
|
|
35
45
|
/**
|
|
36
46
|
* The type of operation performed on the autopilot objective state file
|
|
37
47
|
*/
|
|
@@ -64,6 +74,17 @@ export type SessionMode =
|
|
|
64
74
|
| "plan"
|
|
65
75
|
/** The agent is working autonomously toward task completion. */
|
|
66
76
|
| "autopilot";
|
|
77
|
+
/**
|
|
78
|
+
* Allow-all mode for the session.
|
|
79
|
+
*/
|
|
80
|
+
/** @experimental */
|
|
81
|
+
export type PermissionAllowAllMode =
|
|
82
|
+
/** Permission requests follow the normal approval flow. */
|
|
83
|
+
"off"
|
|
84
|
+
/** Tool, path, and URL permission requests are automatically approved. */
|
|
85
|
+
| "on"
|
|
86
|
+
/** Permission requests follow the normal approval flow with an LLM advisory recommendation attached; clients may choose to auto-approve requests the judge evaluated as acceptable. */
|
|
87
|
+
| "auto";
|
|
67
88
|
/**
|
|
68
89
|
* The type of operation performed on the plan file
|
|
69
90
|
*/
|
|
@@ -142,6 +163,14 @@ export type UserMessageDelivery =
|
|
|
142
163
|
| "steering"
|
|
143
164
|
/** Enqueued while the agent was busy; processed as its own run afterward. */
|
|
144
165
|
| "queued";
|
|
166
|
+
/**
|
|
167
|
+
* Tool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. Defaults to "function" when absent.
|
|
168
|
+
*/
|
|
169
|
+
export type AssistantMessageToolRequestType =
|
|
170
|
+
/** Standard function-style tool call. */
|
|
171
|
+
"function"
|
|
172
|
+
/** Custom grammar-based tool call. */
|
|
173
|
+
| "custom";
|
|
145
174
|
/**
|
|
146
175
|
* The system that produced a citation.
|
|
147
176
|
*/
|
|
@@ -158,14 +187,6 @@ export type CitationProvider =
|
|
|
158
187
|
*/
|
|
159
188
|
/** @experimental */
|
|
160
189
|
export type CitationLocation = CitationLocationChar | CitationLocationPage | CitationLocationBlock;
|
|
161
|
-
/**
|
|
162
|
-
* Tool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. Defaults to "function" when absent.
|
|
163
|
-
*/
|
|
164
|
-
export type AssistantMessageToolRequestType =
|
|
165
|
-
/** Standard function-style tool call. */
|
|
166
|
-
"function"
|
|
167
|
-
/** Custom grammar-based tool call. */
|
|
168
|
-
| "custom";
|
|
169
190
|
/**
|
|
170
191
|
* API endpoint used for this model call, matching CAPI supported_endpoints vocabulary
|
|
171
192
|
*/
|
|
@@ -329,6 +350,19 @@ export type PermissionRequestMemoryDirection =
|
|
|
329
350
|
* Derived user-facing permission prompt details for UI consumers
|
|
330
351
|
*/
|
|
331
352
|
export type PermissionPromptRequest = PermissionPromptRequestCommands | PermissionPromptRequestWrite | PermissionPromptRequestRead | PermissionPromptRequestMcp | PermissionPromptRequestUrl | PermissionPromptRequestMemory | PermissionPromptRequestCustomTool | PermissionPromptRequestPath | PermissionPromptRequestHook | PermissionPromptRequestExtensionManagement | PermissionPromptRequestExtensionPermissionAccess;
|
|
353
|
+
/**
|
|
354
|
+
* Outcome of the auto-approval safety judge for a permission request. Present only when auto mode is enabled; its absence means the judge did not evaluate the request (auto mode was off).
|
|
355
|
+
*/
|
|
356
|
+
/** @experimental */
|
|
357
|
+
export type AutoApprovalRecommendation =
|
|
358
|
+
/** The judge evaluated the request and recommends automatically approving it. */
|
|
359
|
+
"approve"
|
|
360
|
+
/** The judge evaluated the request and does not recommend auto-approving it; explicit approval is required. Whether that means prompting, denying, or something else is the consumer's decision. */
|
|
361
|
+
| "requireApproval"
|
|
362
|
+
/** Auto mode is enabled, but this request category is never auto-approvable (for example, sandbox-bypass requests), so the judge was not consulted. */
|
|
363
|
+
| "excluded"
|
|
364
|
+
/** The judge was consulted but did not return a usable recommendation, so the request requires explicit approval. */
|
|
365
|
+
| "error";
|
|
332
366
|
/**
|
|
333
367
|
* Underlying permission kind that needs path approval
|
|
334
368
|
*/
|
|
@@ -598,6 +632,7 @@ export interface StartData {
|
|
|
598
632
|
* ISO 8601 timestamp when the session was created
|
|
599
633
|
*/
|
|
600
634
|
startTime: string;
|
|
635
|
+
verbosity?: Verbosity;
|
|
601
636
|
/**
|
|
602
637
|
* Schema version number for the session event format
|
|
603
638
|
*/
|
|
@@ -726,6 +761,7 @@ export interface ResumeData {
|
|
|
726
761
|
* True when this resume attached to a session that the runtime already had running in-memory (for example, an extension joining a session another client was actively driving). False (or omitted) for cold resumes — the runtime had to reconstitute the session from its persisted event log.
|
|
727
762
|
*/
|
|
728
763
|
sessionWasActive?: boolean;
|
|
764
|
+
verbosity?: Verbosity;
|
|
729
765
|
}
|
|
730
766
|
/**
|
|
731
767
|
* Session event "session.remote_steerable_changed". Notifies that the session's remote steering capability has changed
|
|
@@ -1262,11 +1298,13 @@ export interface ModelChangeData {
|
|
|
1262
1298
|
*/
|
|
1263
1299
|
previousReasoningEffort?: string;
|
|
1264
1300
|
previousReasoningSummary?: ReasoningSummary;
|
|
1301
|
+
previousVerbosity?: Verbosity;
|
|
1265
1302
|
/**
|
|
1266
1303
|
* Reasoning effort level after the model change, if applicable
|
|
1267
1304
|
*/
|
|
1268
1305
|
reasoningEffort?: string | null;
|
|
1269
1306
|
reasoningSummary?: ReasoningSummary;
|
|
1307
|
+
verbosity?: Verbosity;
|
|
1270
1308
|
}
|
|
1271
1309
|
/**
|
|
1272
1310
|
* Session event "session.mode_changed". Agent mode change details including previous and new modes
|
|
@@ -1345,7 +1383,7 @@ export interface SessionLimitsChangedData {
|
|
|
1345
1383
|
sessionLimits: SessionLimitsConfig | null;
|
|
1346
1384
|
}
|
|
1347
1385
|
/**
|
|
1348
|
-
* Session event "session.permissions_changed". Permissions change details carrying the aggregate allow-all
|
|
1386
|
+
* Session event "session.permissions_changed". Permissions change details carrying the aggregate allow-all transition.
|
|
1349
1387
|
*/
|
|
1350
1388
|
export interface PermissionsChangedEvent {
|
|
1351
1389
|
/**
|
|
@@ -1375,13 +1413,25 @@ export interface PermissionsChangedEvent {
|
|
|
1375
1413
|
type: "session.permissions_changed";
|
|
1376
1414
|
}
|
|
1377
1415
|
/**
|
|
1378
|
-
* Permissions change details carrying the aggregate allow-all
|
|
1416
|
+
* Permissions change details carrying the aggregate allow-all transition.
|
|
1379
1417
|
*/
|
|
1380
1418
|
export interface PermissionsChangedData {
|
|
1419
|
+
/**
|
|
1420
|
+
* Allow-all mode after the change
|
|
1421
|
+
*
|
|
1422
|
+
* @experimental
|
|
1423
|
+
*/
|
|
1424
|
+
allowAllPermissionMode?: PermissionAllowAllMode;
|
|
1381
1425
|
/**
|
|
1382
1426
|
* Aggregate allow-all flag after the change
|
|
1383
1427
|
*/
|
|
1384
1428
|
allowAllPermissions: boolean;
|
|
1429
|
+
/**
|
|
1430
|
+
* Allow-all mode before the change
|
|
1431
|
+
*
|
|
1432
|
+
* @experimental
|
|
1433
|
+
*/
|
|
1434
|
+
previousAllowAllPermissionMode?: PermissionAllowAllMode;
|
|
1385
1435
|
/**
|
|
1386
1436
|
* Aggregate allow-all flag before the change
|
|
1387
1437
|
*/
|
|
@@ -1791,7 +1841,7 @@ export interface ShutdownCodeChanges {
|
|
|
1791
1841
|
linesRemoved: number;
|
|
1792
1842
|
}
|
|
1793
1843
|
/**
|
|
1794
|
-
*
|
|
1844
|
+
* Per-model shutdown metrics with request counts, token usage, nano-AI units, and token details.
|
|
1795
1845
|
*/
|
|
1796
1846
|
export interface ShutdownModelMetric {
|
|
1797
1847
|
requests: ShutdownModelMetricRequests;
|
|
@@ -1827,7 +1877,7 @@ export interface ShutdownModelMetricRequests {
|
|
|
1827
1877
|
count?: number;
|
|
1828
1878
|
}
|
|
1829
1879
|
/**
|
|
1830
|
-
*
|
|
1880
|
+
* A token-type entry in a shutdown model metric, storing the accumulated token count.
|
|
1831
1881
|
*/
|
|
1832
1882
|
export interface ShutdownModelMetricTokenDetail {
|
|
1833
1883
|
/**
|
|
@@ -1861,7 +1911,7 @@ export interface ShutdownModelMetricUsage {
|
|
|
1861
1911
|
reasoningTokens?: number;
|
|
1862
1912
|
}
|
|
1863
1913
|
/**
|
|
1864
|
-
*
|
|
1914
|
+
* A session-wide shutdown token-type entry storing the accumulated token count.
|
|
1865
1915
|
*/
|
|
1866
1916
|
export interface ShutdownTokenDetail {
|
|
1867
1917
|
/**
|
|
@@ -2039,6 +2089,10 @@ export interface CompactionStartData {
|
|
|
2039
2089
|
* Token count from non-system messages (user, assistant, tool) at compaction start
|
|
2040
2090
|
*/
|
|
2041
2091
|
conversationTokens?: number;
|
|
2092
|
+
/**
|
|
2093
|
+
* Model identifier used for compaction, when known
|
|
2094
|
+
*/
|
|
2095
|
+
model?: string;
|
|
2042
2096
|
/**
|
|
2043
2097
|
* Token count from system message(s) at compaction start
|
|
2044
2098
|
*/
|
|
@@ -2246,7 +2300,7 @@ export interface TaskCompleteData {
|
|
|
2246
2300
|
summary?: string;
|
|
2247
2301
|
}
|
|
2248
2302
|
/**
|
|
2249
|
-
* Session event "user.message".
|
|
2303
|
+
* Session event "user.message". Payload of `user.message` with displayed and model-transformed content, attachments, source/delivery metadata, mode, and telemetry IDs.
|
|
2250
2304
|
*/
|
|
2251
2305
|
export interface UserMessageEvent {
|
|
2252
2306
|
/**
|
|
@@ -2276,7 +2330,7 @@ export interface UserMessageEvent {
|
|
|
2276
2330
|
type: "user.message";
|
|
2277
2331
|
}
|
|
2278
2332
|
/**
|
|
2279
|
-
*
|
|
2333
|
+
* Payload of `user.message` with displayed and model-transformed content, attachments, source/delivery metadata, mode, and telemetry IDs.
|
|
2280
2334
|
*/
|
|
2281
2335
|
export interface UserMessageData {
|
|
2282
2336
|
agentMode?: UserMessageAgentMode;
|
|
@@ -2831,6 +2885,10 @@ export interface AssistantTurnStartData {
|
|
|
2831
2885
|
* CAPI interaction ID for correlating this turn with upstream telemetry
|
|
2832
2886
|
*/
|
|
2833
2887
|
interactionId?: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Model identifier used for this turn, when known
|
|
2890
|
+
*/
|
|
2891
|
+
model?: string;
|
|
2834
2892
|
/**
|
|
2835
2893
|
* Identifier for this turn within the agentic loop, typically a stringified turn number
|
|
2836
2894
|
*/
|
|
@@ -2961,6 +3019,54 @@ export interface AssistantReasoningDeltaData {
|
|
|
2961
3019
|
*/
|
|
2962
3020
|
reasoningId: string;
|
|
2963
3021
|
}
|
|
3022
|
+
/**
|
|
3023
|
+
* Session event "assistant.tool_call_delta". Streaming tool-call input delta for incremental tool-call updates
|
|
3024
|
+
*/
|
|
3025
|
+
export interface AssistantToolCallDeltaEvent {
|
|
3026
|
+
/**
|
|
3027
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
3028
|
+
*/
|
|
3029
|
+
agentId?: string;
|
|
3030
|
+
data: AssistantToolCallDeltaData;
|
|
3031
|
+
/**
|
|
3032
|
+
* Always true for events that are transient and not persisted to the session event log on disk.
|
|
3033
|
+
*/
|
|
3034
|
+
ephemeral: true;
|
|
3035
|
+
/**
|
|
3036
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
3037
|
+
*/
|
|
3038
|
+
id: string;
|
|
3039
|
+
/**
|
|
3040
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
3041
|
+
*/
|
|
3042
|
+
parentId: string | null;
|
|
3043
|
+
/**
|
|
3044
|
+
* ISO 8601 timestamp when the event was created
|
|
3045
|
+
*/
|
|
3046
|
+
timestamp: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* Type discriminator. Always "assistant.tool_call_delta".
|
|
3049
|
+
*/
|
|
3050
|
+
type: "assistant.tool_call_delta";
|
|
3051
|
+
}
|
|
3052
|
+
/**
|
|
3053
|
+
* Streaming tool-call input delta for incremental tool-call updates
|
|
3054
|
+
*/
|
|
3055
|
+
export interface AssistantToolCallDeltaData {
|
|
3056
|
+
/**
|
|
3057
|
+
* Raw provider tool input fragment to append for this tool call. Function/tool-use providers stream serialized JSON argument text (so newlines inside JSON string values may appear as escaped `\n` until the accumulated JSON is parsed); custom tool calls stream raw custom input.
|
|
3058
|
+
*/
|
|
3059
|
+
inputDelta: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* Tool call ID this delta belongs to, matching the corresponding assistant.message tool request
|
|
3062
|
+
*/
|
|
3063
|
+
toolCallId: string;
|
|
3064
|
+
/**
|
|
3065
|
+
* Name of the tool being invoked, when known from the stream
|
|
3066
|
+
*/
|
|
3067
|
+
toolName?: string;
|
|
3068
|
+
toolType?: AssistantMessageToolRequestType;
|
|
3069
|
+
}
|
|
2964
3070
|
/**
|
|
2965
3071
|
* Session event "assistant.streaming_delta". Streaming response progress with cumulative byte count
|
|
2966
3072
|
*/
|
|
@@ -3411,6 +3517,10 @@ export interface AssistantTurnEndEvent {
|
|
|
3411
3517
|
* Turn completion metadata including the turn identifier
|
|
3412
3518
|
*/
|
|
3413
3519
|
export interface AssistantTurnEndData {
|
|
3520
|
+
/**
|
|
3521
|
+
* Model identifier used for this turn, when known
|
|
3522
|
+
*/
|
|
3523
|
+
model?: string;
|
|
3414
3524
|
/**
|
|
3415
3525
|
* Identifier of the turn that has ended, matching the corresponding assistant.turn_start event
|
|
3416
3526
|
*/
|
|
@@ -3903,7 +4013,7 @@ export interface ToolExecutionStartToolDescriptionMeta {
|
|
|
3903
4013
|
ui?: ToolExecutionStartToolDescriptionMetaUI;
|
|
3904
4014
|
}
|
|
3905
4015
|
/**
|
|
3906
|
-
*
|
|
4016
|
+
* MCP Apps tool `_meta.ui` resource URI and visibility captured on `tool.execution_start`.
|
|
3907
4017
|
*/
|
|
3908
4018
|
export interface ToolExecutionStartToolDescriptionMetaUI {
|
|
3909
4019
|
/**
|
|
@@ -4396,7 +4506,7 @@ export interface ToolExecutionCompleteContentResource {
|
|
|
4396
4506
|
type: "resource";
|
|
4397
4507
|
}
|
|
4398
4508
|
/**
|
|
4399
|
-
*
|
|
4509
|
+
* Embedded text resource contents identified by a URI, with an optional MIME type and a text payload.
|
|
4400
4510
|
*/
|
|
4401
4511
|
export interface EmbeddedTextResourceContents {
|
|
4402
4512
|
/**
|
|
@@ -4413,7 +4523,7 @@ export interface EmbeddedTextResourceContents {
|
|
|
4413
4523
|
uri: string;
|
|
4414
4524
|
}
|
|
4415
4525
|
/**
|
|
4416
|
-
*
|
|
4526
|
+
* Embedded binary resource contents identified by a URI, with an optional MIME type and a base64-encoded blob.
|
|
4417
4527
|
*/
|
|
4418
4528
|
export interface EmbeddedBlobResourceContents {
|
|
4419
4529
|
/**
|
|
@@ -4458,7 +4568,7 @@ export interface ToolExecutionCompleteUIResourceMeta {
|
|
|
4458
4568
|
ui?: ToolExecutionCompleteUIResourceMetaUI;
|
|
4459
4569
|
}
|
|
4460
4570
|
/**
|
|
4461
|
-
*
|
|
4571
|
+
* MCP Apps UI resource metadata for a completed tool result, including CSP, permissions, domain, and border preference.
|
|
4462
4572
|
*/
|
|
4463
4573
|
export interface ToolExecutionCompleteUIResourceMetaUI {
|
|
4464
4574
|
csp?: ToolExecutionCompleteUIResourceMetaUICsp;
|
|
@@ -4467,7 +4577,7 @@ export interface ToolExecutionCompleteUIResourceMetaUI {
|
|
|
4467
4577
|
prefersBorder?: boolean;
|
|
4468
4578
|
}
|
|
4469
4579
|
/**
|
|
4470
|
-
*
|
|
4580
|
+
* CSP domain allowlists for an MCP Apps UI resource, including connect, resource, frame, and base URI domains.
|
|
4471
4581
|
*/
|
|
4472
4582
|
export interface ToolExecutionCompleteUIResourceMetaUICsp {
|
|
4473
4583
|
baseUriDomains?: string[];
|
|
@@ -4476,7 +4586,7 @@ export interface ToolExecutionCompleteUIResourceMetaUICsp {
|
|
|
4476
4586
|
resourceDomains?: string[];
|
|
4477
4587
|
}
|
|
4478
4588
|
/**
|
|
4479
|
-
*
|
|
4589
|
+
* Browser permission metadata for an MCP Apps UI resource, including camera, microphone, geolocation, and clipboard-write.
|
|
4480
4590
|
*/
|
|
4481
4591
|
export interface ToolExecutionCompleteUIResourceMetaUIPermissions {
|
|
4482
4592
|
camera?: ToolExecutionCompleteUIResourceMetaUIPermissionsCamera;
|
|
@@ -4485,22 +4595,22 @@ export interface ToolExecutionCompleteUIResourceMetaUIPermissions {
|
|
|
4485
4595
|
microphone?: ToolExecutionCompleteUIResourceMetaUIPermissionsMicrophone;
|
|
4486
4596
|
}
|
|
4487
4597
|
/**
|
|
4488
|
-
*
|
|
4598
|
+
* Marker object for camera permission on an MCP Apps UI resource.
|
|
4489
4599
|
*/
|
|
4490
4600
|
export interface ToolExecutionCompleteUIResourceMetaUIPermissionsCamera {
|
|
4491
4601
|
}
|
|
4492
4602
|
/**
|
|
4493
|
-
*
|
|
4603
|
+
* Marker object for clipboard-write permission on an MCP Apps UI resource.
|
|
4494
4604
|
*/
|
|
4495
4605
|
export interface ToolExecutionCompleteUIResourceMetaUIPermissionsClipboardWrite {
|
|
4496
4606
|
}
|
|
4497
4607
|
/**
|
|
4498
|
-
*
|
|
4608
|
+
* Marker object for geolocation permission on an MCP Apps UI resource.
|
|
4499
4609
|
*/
|
|
4500
4610
|
export interface ToolExecutionCompleteUIResourceMetaUIPermissionsGeolocation {
|
|
4501
4611
|
}
|
|
4502
4612
|
/**
|
|
4503
|
-
*
|
|
4613
|
+
* Marker object for microphone permission on an MCP Apps UI resource.
|
|
4504
4614
|
*/
|
|
4505
4615
|
export interface ToolExecutionCompleteUIResourceMetaUIPermissionsMicrophone {
|
|
4506
4616
|
}
|
|
@@ -4525,7 +4635,7 @@ export interface ToolExecutionCompleteToolDescriptionMeta {
|
|
|
4525
4635
|
ui?: ToolExecutionCompleteToolDescriptionMetaUI;
|
|
4526
4636
|
}
|
|
4527
4637
|
/**
|
|
4528
|
-
*
|
|
4638
|
+
* MCP Apps tool `_meta.ui` resource URI and visibility captured on `tool.execution_complete`.
|
|
4529
4639
|
*/
|
|
4530
4640
|
export interface ToolExecutionCompleteToolDescriptionMetaUI {
|
|
4531
4641
|
/**
|
|
@@ -4583,6 +4693,10 @@ export interface SkillInvokedData {
|
|
|
4583
4693
|
* Description of the skill from its SKILL.md frontmatter
|
|
4584
4694
|
*/
|
|
4585
4695
|
description?: string;
|
|
4696
|
+
/**
|
|
4697
|
+
* Model identifier active when the skill was invoked, when known
|
|
4698
|
+
*/
|
|
4699
|
+
model?: string;
|
|
4586
4700
|
/**
|
|
4587
4701
|
* Name of the invoked skill
|
|
4588
4702
|
*/
|
|
@@ -5199,7 +5313,7 @@ export interface SystemNotificationData {
|
|
|
5199
5313
|
kind: SystemNotification;
|
|
5200
5314
|
}
|
|
5201
5315
|
/**
|
|
5202
|
-
*
|
|
5316
|
+
* System notification metadata for a background agent that completed or failed, including agent ID, type, status, description, and prompt.
|
|
5203
5317
|
*/
|
|
5204
5318
|
export interface SystemNotificationAgentCompleted {
|
|
5205
5319
|
/**
|
|
@@ -5225,7 +5339,7 @@ export interface SystemNotificationAgentCompleted {
|
|
|
5225
5339
|
type: "agent_completed";
|
|
5226
5340
|
}
|
|
5227
5341
|
/**
|
|
5228
|
-
*
|
|
5342
|
+
* System notification metadata for a background agent that became idle, including agent ID, type, and description.
|
|
5229
5343
|
*/
|
|
5230
5344
|
export interface SystemNotificationAgentIdle {
|
|
5231
5345
|
/**
|
|
@@ -5246,7 +5360,7 @@ export interface SystemNotificationAgentIdle {
|
|
|
5246
5360
|
type: "agent_idle";
|
|
5247
5361
|
}
|
|
5248
5362
|
/**
|
|
5249
|
-
*
|
|
5363
|
+
* System notification metadata for a new inbox message, including entry ID, sender details, and summary.
|
|
5250
5364
|
*/
|
|
5251
5365
|
export interface SystemNotificationNewInboxMessage {
|
|
5252
5366
|
/**
|
|
@@ -5271,7 +5385,7 @@ export interface SystemNotificationNewInboxMessage {
|
|
|
5271
5385
|
type: "new_inbox_message";
|
|
5272
5386
|
}
|
|
5273
5387
|
/**
|
|
5274
|
-
*
|
|
5388
|
+
* System notification metadata for a shell session that completed, including shell ID, optional exit code, and description.
|
|
5275
5389
|
*/
|
|
5276
5390
|
export interface SystemNotificationShellCompleted {
|
|
5277
5391
|
/**
|
|
@@ -5292,7 +5406,7 @@ export interface SystemNotificationShellCompleted {
|
|
|
5292
5406
|
type: "shell_completed";
|
|
5293
5407
|
}
|
|
5294
5408
|
/**
|
|
5295
|
-
*
|
|
5409
|
+
* System notification metadata for a detached shell session that completed, including shell ID and description.
|
|
5296
5410
|
*/
|
|
5297
5411
|
export interface SystemNotificationShellDetachedCompleted {
|
|
5298
5412
|
/**
|
|
@@ -5309,7 +5423,7 @@ export interface SystemNotificationShellDetachedCompleted {
|
|
|
5309
5423
|
type: "shell_detached_completed";
|
|
5310
5424
|
}
|
|
5311
5425
|
/**
|
|
5312
|
-
*
|
|
5426
|
+
* System notification metadata for an instruction file discovered during tool access, including source, trigger file, and tool.
|
|
5313
5427
|
*/
|
|
5314
5428
|
export interface SystemNotificationInstructionDiscovered {
|
|
5315
5429
|
/**
|
|
@@ -5432,7 +5546,7 @@ export interface PermissionRequestShell {
|
|
|
5432
5546
|
warning?: string;
|
|
5433
5547
|
}
|
|
5434
5548
|
/**
|
|
5435
|
-
*
|
|
5549
|
+
* A parsed command identifier in a shell permission request, including whether it is read-only.
|
|
5436
5550
|
*/
|
|
5437
5551
|
export interface PermissionRequestShellCommand {
|
|
5438
5552
|
/**
|
|
@@ -5445,7 +5559,7 @@ export interface PermissionRequestShellCommand {
|
|
|
5445
5559
|
readOnly: boolean;
|
|
5446
5560
|
}
|
|
5447
5561
|
/**
|
|
5448
|
-
*
|
|
5562
|
+
* A URL that may be accessed by a command in a shell permission request.
|
|
5449
5563
|
*/
|
|
5450
5564
|
export interface PermissionRequestShellPossibleUrl {
|
|
5451
5565
|
/**
|
|
@@ -5481,6 +5595,14 @@ export interface PermissionRequestWrite {
|
|
|
5481
5595
|
* Complete new file contents for newly created files
|
|
5482
5596
|
*/
|
|
5483
5597
|
newFileContents?: string;
|
|
5598
|
+
/**
|
|
5599
|
+
* True when a built-in file tool (apply_patch / str_replace_editor) asked to write a path the sandbox filesystem policy would block, and the host opted in via sandbox.allowBypass. This is a request, not a grant: the write happens unsandboxed only if the user approves this permission request. Hosts should highlight the elevated risk in the approval UI.
|
|
5600
|
+
*/
|
|
5601
|
+
requestSandboxBypass?: boolean;
|
|
5602
|
+
/**
|
|
5603
|
+
* Justification for the sandbox-bypass request. Only meaningful when requestSandboxBypass is true.
|
|
5604
|
+
*/
|
|
5605
|
+
requestSandboxBypassReason?: string;
|
|
5484
5606
|
/**
|
|
5485
5607
|
* Tool call ID that triggered this permission request
|
|
5486
5608
|
*/
|
|
@@ -5562,6 +5684,14 @@ export interface PermissionRequestUrl {
|
|
|
5562
5684
|
* Permission kind discriminator
|
|
5563
5685
|
*/
|
|
5564
5686
|
kind: "url";
|
|
5687
|
+
/**
|
|
5688
|
+
* True when this URL fetch is requesting to bypass the sandbox network policy: either the model set requestSandboxBypass: true, or the tool re-issued the request as an interactive bypass after the network policy denied the approved URL (host opted in via sandbox.allowBypass). This is a request, not a grant: the fetch runs only if the user approves this permission request. Hosts should highlight the elevated risk in the approval UI.
|
|
5689
|
+
*/
|
|
5690
|
+
requestSandboxBypass?: boolean;
|
|
5691
|
+
/**
|
|
5692
|
+
* Model-provided justification for the sandbox-bypass request. Only meaningful when requestSandboxBypass is true.
|
|
5693
|
+
*/
|
|
5694
|
+
requestSandboxBypassReason?: string;
|
|
5565
5695
|
/**
|
|
5566
5696
|
* Tool call ID that triggered this permission request
|
|
5567
5697
|
*/
|
|
@@ -5702,6 +5832,12 @@ export interface PermissionRequestExtensionPermissionAccess {
|
|
|
5702
5832
|
* Shell command permission prompt
|
|
5703
5833
|
*/
|
|
5704
5834
|
export interface PermissionPromptRequestCommands {
|
|
5835
|
+
/**
|
|
5836
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
5837
|
+
*
|
|
5838
|
+
* @experimental
|
|
5839
|
+
*/
|
|
5840
|
+
autoApproval?: PermissionAutoApproval;
|
|
5705
5841
|
/**
|
|
5706
5842
|
* Whether the UI can offer session-wide approval for this command pattern
|
|
5707
5843
|
*/
|
|
@@ -5731,10 +5867,27 @@ export interface PermissionPromptRequestCommands {
|
|
|
5731
5867
|
*/
|
|
5732
5868
|
warning?: string;
|
|
5733
5869
|
}
|
|
5870
|
+
/**
|
|
5871
|
+
* Auto-approval judge information attached to a permission request. Present (non-null) only when the session's allow-all mode is "auto"; its absence means auto mode was off and the judge did not evaluate the request. The `recommendation` conveys the judge's disposition for this request.
|
|
5872
|
+
*/
|
|
5873
|
+
/** @experimental */
|
|
5874
|
+
export interface PermissionAutoApproval {
|
|
5875
|
+
/**
|
|
5876
|
+
* Human-readable reason for the judge's recommendation, when available.
|
|
5877
|
+
*/
|
|
5878
|
+
reason?: string;
|
|
5879
|
+
recommendation: AutoApprovalRecommendation;
|
|
5880
|
+
}
|
|
5734
5881
|
/**
|
|
5735
5882
|
* File write permission prompt
|
|
5736
5883
|
*/
|
|
5737
5884
|
export interface PermissionPromptRequestWrite {
|
|
5885
|
+
/**
|
|
5886
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
5887
|
+
*
|
|
5888
|
+
* @experimental
|
|
5889
|
+
*/
|
|
5890
|
+
autoApproval?: PermissionAutoApproval;
|
|
5738
5891
|
/**
|
|
5739
5892
|
* Whether the UI can offer session-wide approval for file write operations
|
|
5740
5893
|
*/
|
|
@@ -5768,6 +5921,12 @@ export interface PermissionPromptRequestWrite {
|
|
|
5768
5921
|
* File read permission prompt
|
|
5769
5922
|
*/
|
|
5770
5923
|
export interface PermissionPromptRequestRead {
|
|
5924
|
+
/**
|
|
5925
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
5926
|
+
*
|
|
5927
|
+
* @experimental
|
|
5928
|
+
*/
|
|
5929
|
+
autoApproval?: PermissionAutoApproval;
|
|
5771
5930
|
/**
|
|
5772
5931
|
* Human-readable description of why the file is being read
|
|
5773
5932
|
*/
|
|
@@ -5795,6 +5954,12 @@ export interface PermissionPromptRequestMcp {
|
|
|
5795
5954
|
args?: {
|
|
5796
5955
|
[k: string]: unknown | undefined;
|
|
5797
5956
|
};
|
|
5957
|
+
/**
|
|
5958
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
5959
|
+
*
|
|
5960
|
+
* @experimental
|
|
5961
|
+
*/
|
|
5962
|
+
autoApproval?: PermissionAutoApproval;
|
|
5798
5963
|
/**
|
|
5799
5964
|
* Prompt kind discriminator
|
|
5800
5965
|
*/
|
|
@@ -5820,6 +5985,12 @@ export interface PermissionPromptRequestMcp {
|
|
|
5820
5985
|
* URL access permission prompt
|
|
5821
5986
|
*/
|
|
5822
5987
|
export interface PermissionPromptRequestUrl {
|
|
5988
|
+
/**
|
|
5989
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
5990
|
+
*
|
|
5991
|
+
* @experimental
|
|
5992
|
+
*/
|
|
5993
|
+
autoApproval?: PermissionAutoApproval;
|
|
5823
5994
|
/**
|
|
5824
5995
|
* Human-readable description of why the URL is being accessed
|
|
5825
5996
|
*/
|
|
@@ -5828,6 +5999,14 @@ export interface PermissionPromptRequestUrl {
|
|
|
5828
5999
|
* Prompt kind discriminator
|
|
5829
6000
|
*/
|
|
5830
6001
|
kind: "url";
|
|
6002
|
+
/**
|
|
6003
|
+
* True when this URL fetch is requesting to bypass the sandbox network policy: either the model set requestSandboxBypass: true, or the tool re-issued the request as an interactive bypass after the network policy denied the approved URL (host opted in via sandbox.allowBypass). This is a request, not a grant: the fetch runs only if the user approves this permission request. Hosts should highlight the elevated risk in the approval UI.
|
|
6004
|
+
*/
|
|
6005
|
+
requestSandboxBypass?: boolean;
|
|
6006
|
+
/**
|
|
6007
|
+
* Model-provided justification for the sandbox-bypass request. Only meaningful when requestSandboxBypass is true.
|
|
6008
|
+
*/
|
|
6009
|
+
requestSandboxBypassReason?: string;
|
|
5831
6010
|
/**
|
|
5832
6011
|
* Tool call ID that triggered this permission request
|
|
5833
6012
|
*/
|
|
@@ -5842,6 +6021,12 @@ export interface PermissionPromptRequestUrl {
|
|
|
5842
6021
|
*/
|
|
5843
6022
|
export interface PermissionPromptRequestMemory {
|
|
5844
6023
|
action?: PermissionRequestMemoryAction;
|
|
6024
|
+
/**
|
|
6025
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
6026
|
+
*
|
|
6027
|
+
* @experimental
|
|
6028
|
+
*/
|
|
6029
|
+
autoApproval?: PermissionAutoApproval;
|
|
5845
6030
|
/**
|
|
5846
6031
|
* Source references for the stored fact (store only)
|
|
5847
6032
|
*/
|
|
@@ -5878,6 +6063,12 @@ export interface PermissionPromptRequestCustomTool {
|
|
|
5878
6063
|
args?: {
|
|
5879
6064
|
[k: string]: unknown | undefined;
|
|
5880
6065
|
};
|
|
6066
|
+
/**
|
|
6067
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
6068
|
+
*
|
|
6069
|
+
* @experimental
|
|
6070
|
+
*/
|
|
6071
|
+
autoApproval?: PermissionAutoApproval;
|
|
5881
6072
|
/**
|
|
5882
6073
|
* Prompt kind discriminator
|
|
5883
6074
|
*/
|
|
@@ -5900,6 +6091,12 @@ export interface PermissionPromptRequestCustomTool {
|
|
|
5900
6091
|
*/
|
|
5901
6092
|
export interface PermissionPromptRequestPath {
|
|
5902
6093
|
accessKind: PermissionPromptRequestPathAccessKind;
|
|
6094
|
+
/**
|
|
6095
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
6096
|
+
*
|
|
6097
|
+
* @experimental
|
|
6098
|
+
*/
|
|
6099
|
+
autoApproval?: PermissionAutoApproval;
|
|
5903
6100
|
/**
|
|
5904
6101
|
* Prompt kind discriminator
|
|
5905
6102
|
*/
|
|
@@ -5917,6 +6114,12 @@ export interface PermissionPromptRequestPath {
|
|
|
5917
6114
|
* Hook confirmation permission prompt
|
|
5918
6115
|
*/
|
|
5919
6116
|
export interface PermissionPromptRequestHook {
|
|
6117
|
+
/**
|
|
6118
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
6119
|
+
*
|
|
6120
|
+
* @experimental
|
|
6121
|
+
*/
|
|
6122
|
+
autoApproval?: PermissionAutoApproval;
|
|
5920
6123
|
/**
|
|
5921
6124
|
* Optional message from the hook explaining why confirmation is needed
|
|
5922
6125
|
*/
|
|
@@ -5944,6 +6147,12 @@ export interface PermissionPromptRequestHook {
|
|
|
5944
6147
|
* Extension management permission prompt
|
|
5945
6148
|
*/
|
|
5946
6149
|
export interface PermissionPromptRequestExtensionManagement {
|
|
6150
|
+
/**
|
|
6151
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
6152
|
+
*
|
|
6153
|
+
* @experimental
|
|
6154
|
+
*/
|
|
6155
|
+
autoApproval?: PermissionAutoApproval;
|
|
5947
6156
|
/**
|
|
5948
6157
|
* Name of the extension being managed
|
|
5949
6158
|
*/
|
|
@@ -5965,6 +6174,12 @@ export interface PermissionPromptRequestExtensionManagement {
|
|
|
5965
6174
|
* Extension permission access prompt
|
|
5966
6175
|
*/
|
|
5967
6176
|
export interface PermissionPromptRequestExtensionPermissionAccess {
|
|
6177
|
+
/**
|
|
6178
|
+
* Auto-approval judge information for this request; present only when auto mode is enabled.
|
|
6179
|
+
*
|
|
6180
|
+
* @experimental
|
|
6181
|
+
*/
|
|
6182
|
+
autoApproval?: PermissionAutoApproval;
|
|
5968
6183
|
/**
|
|
5969
6184
|
* Capabilities the extension is requesting
|
|
5970
6185
|
*/
|
|
@@ -6027,7 +6242,7 @@ export interface PermissionCompletedData {
|
|
|
6027
6242
|
toolCallId?: string;
|
|
6028
6243
|
}
|
|
6029
6244
|
/**
|
|
6030
|
-
*
|
|
6245
|
+
* Permission response variant indicating the request was approved without persisting an approval rule.
|
|
6031
6246
|
*/
|
|
6032
6247
|
export interface PermissionApproved {
|
|
6033
6248
|
/**
|
|
@@ -6036,7 +6251,7 @@ export interface PermissionApproved {
|
|
|
6036
6251
|
kind: "approved";
|
|
6037
6252
|
}
|
|
6038
6253
|
/**
|
|
6039
|
-
*
|
|
6254
|
+
* Permission response variant that approves a request and remembers the provided approval for the rest of the session.
|
|
6040
6255
|
*/
|
|
6041
6256
|
export interface PermissionApprovedForSession {
|
|
6042
6257
|
approval: UserToolSessionApproval;
|
|
@@ -6046,7 +6261,7 @@ export interface PermissionApprovedForSession {
|
|
|
6046
6261
|
kind: "approved-for-session";
|
|
6047
6262
|
}
|
|
6048
6263
|
/**
|
|
6049
|
-
*
|
|
6264
|
+
* Session-scoped tool-approval rule for specific shell command identifiers.
|
|
6050
6265
|
*/
|
|
6051
6266
|
export interface UserToolSessionApprovalCommands {
|
|
6052
6267
|
/**
|
|
@@ -6059,7 +6274,7 @@ export interface UserToolSessionApprovalCommands {
|
|
|
6059
6274
|
kind: "commands";
|
|
6060
6275
|
}
|
|
6061
6276
|
/**
|
|
6062
|
-
*
|
|
6277
|
+
* Session-scoped tool-approval rule for read-only filesystem operations.
|
|
6063
6278
|
*/
|
|
6064
6279
|
export interface UserToolSessionApprovalRead {
|
|
6065
6280
|
/**
|
|
@@ -6068,7 +6283,7 @@ export interface UserToolSessionApprovalRead {
|
|
|
6068
6283
|
kind: "read";
|
|
6069
6284
|
}
|
|
6070
6285
|
/**
|
|
6071
|
-
*
|
|
6286
|
+
* Session-scoped tool-approval rule for filesystem write operations.
|
|
6072
6287
|
*/
|
|
6073
6288
|
export interface UserToolSessionApprovalWrite {
|
|
6074
6289
|
/**
|
|
@@ -6077,7 +6292,7 @@ export interface UserToolSessionApprovalWrite {
|
|
|
6077
6292
|
kind: "write";
|
|
6078
6293
|
}
|
|
6079
6294
|
/**
|
|
6080
|
-
*
|
|
6295
|
+
* Session-scoped tool-approval rule for an MCP server tool, or all tools on the server when `toolName` is null.
|
|
6081
6296
|
*/
|
|
6082
6297
|
export interface UserToolSessionApprovalMcp {
|
|
6083
6298
|
/**
|
|
@@ -6094,7 +6309,7 @@ export interface UserToolSessionApprovalMcp {
|
|
|
6094
6309
|
toolName: string | null;
|
|
6095
6310
|
}
|
|
6096
6311
|
/**
|
|
6097
|
-
*
|
|
6312
|
+
* Session-scoped tool-approval rule for writes to long-term memory.
|
|
6098
6313
|
*/
|
|
6099
6314
|
export interface UserToolSessionApprovalMemory {
|
|
6100
6315
|
/**
|
|
@@ -6103,7 +6318,7 @@ export interface UserToolSessionApprovalMemory {
|
|
|
6103
6318
|
kind: "memory";
|
|
6104
6319
|
}
|
|
6105
6320
|
/**
|
|
6106
|
-
*
|
|
6321
|
+
* Session-scoped tool-approval rule for a custom tool, keyed by tool name.
|
|
6107
6322
|
*/
|
|
6108
6323
|
export interface UserToolSessionApprovalCustomTool {
|
|
6109
6324
|
/**
|
|
@@ -6116,7 +6331,7 @@ export interface UserToolSessionApprovalCustomTool {
|
|
|
6116
6331
|
toolName: string;
|
|
6117
6332
|
}
|
|
6118
6333
|
/**
|
|
6119
|
-
*
|
|
6334
|
+
* Session-scoped tool-approval rule for extension-management operations, optionally narrowed by operation.
|
|
6120
6335
|
*/
|
|
6121
6336
|
export interface UserToolSessionApprovalExtensionManagement {
|
|
6122
6337
|
/**
|
|
@@ -6129,7 +6344,7 @@ export interface UserToolSessionApprovalExtensionManagement {
|
|
|
6129
6344
|
operation?: string;
|
|
6130
6345
|
}
|
|
6131
6346
|
/**
|
|
6132
|
-
*
|
|
6347
|
+
* Session-scoped tool-approval rule for an extension's permission-gated capability access, keyed by extension name.
|
|
6133
6348
|
*/
|
|
6134
6349
|
export interface UserToolSessionApprovalExtensionPermissionAccess {
|
|
6135
6350
|
/**
|
|
@@ -6142,7 +6357,7 @@ export interface UserToolSessionApprovalExtensionPermissionAccess {
|
|
|
6142
6357
|
kind: "extension-permission-access";
|
|
6143
6358
|
}
|
|
6144
6359
|
/**
|
|
6145
|
-
*
|
|
6360
|
+
* Permission response variant that approves a request and persists the provided approval to a project location key.
|
|
6146
6361
|
*/
|
|
6147
6362
|
export interface PermissionApprovedForLocation {
|
|
6148
6363
|
approval: UserToolSessionApproval;
|
|
@@ -6156,7 +6371,7 @@ export interface PermissionApprovedForLocation {
|
|
|
6156
6371
|
locationKey: string;
|
|
6157
6372
|
}
|
|
6158
6373
|
/**
|
|
6159
|
-
*
|
|
6374
|
+
* Permission response variant indicating the request was cancelled before use, with an optional reason.
|
|
6160
6375
|
*/
|
|
6161
6376
|
export interface PermissionCancelled {
|
|
6162
6377
|
/**
|
|
@@ -6169,7 +6384,7 @@ export interface PermissionCancelled {
|
|
|
6169
6384
|
reason?: string;
|
|
6170
6385
|
}
|
|
6171
6386
|
/**
|
|
6172
|
-
*
|
|
6387
|
+
* Permission response variant denied because matching approval rules explicitly blocked the request.
|
|
6173
6388
|
*/
|
|
6174
6389
|
export interface PermissionDeniedByRules {
|
|
6175
6390
|
/**
|
|
@@ -6182,7 +6397,7 @@ export interface PermissionDeniedByRules {
|
|
|
6182
6397
|
rules: PermissionRule[];
|
|
6183
6398
|
}
|
|
6184
6399
|
/**
|
|
6185
|
-
*
|
|
6400
|
+
* A permission approval or denial rule matched against a tool request, identified by a rule kind with an optional argument value.
|
|
6186
6401
|
*/
|
|
6187
6402
|
export interface PermissionRule {
|
|
6188
6403
|
/**
|
|
@@ -6195,7 +6410,7 @@ export interface PermissionRule {
|
|
|
6195
6410
|
kind: string;
|
|
6196
6411
|
}
|
|
6197
6412
|
/**
|
|
6198
|
-
*
|
|
6413
|
+
* Permission response variant denied because no approval rule matched and user confirmation was unavailable.
|
|
6199
6414
|
*/
|
|
6200
6415
|
export interface PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser {
|
|
6201
6416
|
/**
|
|
@@ -6204,7 +6419,7 @@ export interface PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser {
|
|
|
6204
6419
|
kind: "denied-no-approval-rule-and-could-not-request-from-user";
|
|
6205
6420
|
}
|
|
6206
6421
|
/**
|
|
6207
|
-
*
|
|
6422
|
+
* Permission response variant denied in an interactive user prompt, with optional feedback and force-reject flag.
|
|
6208
6423
|
*/
|
|
6209
6424
|
export interface PermissionDeniedInteractivelyByUser {
|
|
6210
6425
|
/**
|
|
@@ -6221,7 +6436,7 @@ export interface PermissionDeniedInteractivelyByUser {
|
|
|
6221
6436
|
kind: "denied-interactively-by-user";
|
|
6222
6437
|
}
|
|
6223
6438
|
/**
|
|
6224
|
-
*
|
|
6439
|
+
* Permission response variant denying a path under content exclusion policy, with the path and message.
|
|
6225
6440
|
*/
|
|
6226
6441
|
export interface PermissionDeniedByContentExclusionPolicy {
|
|
6227
6442
|
/**
|
|
@@ -6238,7 +6453,7 @@ export interface PermissionDeniedByContentExclusionPolicy {
|
|
|
6238
6453
|
path: string;
|
|
6239
6454
|
}
|
|
6240
6455
|
/**
|
|
6241
|
-
*
|
|
6456
|
+
* Permission response variant denied by a permission-request hook, with optional message and interrupt flag.
|
|
6242
6457
|
*/
|
|
6243
6458
|
export interface PermissionDeniedByPermissionRequestHook {
|
|
6244
6459
|
/**
|
|
@@ -6479,7 +6694,7 @@ export interface ElicitationCompletedData {
|
|
|
6479
6694
|
requestId: string;
|
|
6480
6695
|
}
|
|
6481
6696
|
/**
|
|
6482
|
-
*
|
|
6697
|
+
* Opaque JSON value submitted for one field in accepted `elicitation.completed` form content.
|
|
6483
6698
|
*/
|
|
6484
6699
|
export interface ElicitationCompletedContent {
|
|
6485
6700
|
[k: string]: unknown | undefined;
|
|
@@ -7322,7 +7537,7 @@ export interface CommandsChangedData {
|
|
|
7322
7537
|
commands: CommandsChangedCommand[];
|
|
7323
7538
|
}
|
|
7324
7539
|
/**
|
|
7325
|
-
*
|
|
7540
|
+
* A single slash command available in the session, as listed by the `commands.changed` event.
|
|
7326
7541
|
*/
|
|
7327
7542
|
export interface CommandsChangedCommand {
|
|
7328
7543
|
/**
|
|
@@ -7492,7 +7707,7 @@ export interface ExitPlanModeCompletedData {
|
|
|
7492
7707
|
selectedAction?: ExitPlanModeAction;
|
|
7493
7708
|
}
|
|
7494
7709
|
/**
|
|
7495
|
-
* Session event "session.tools_updated".
|
|
7710
|
+
* Session event "session.tools_updated". Payload of `session.tools_updated` identifying the model whose resolved tools were updated.
|
|
7496
7711
|
*/
|
|
7497
7712
|
export interface ToolsUpdatedEvent {
|
|
7498
7713
|
/**
|
|
@@ -7522,7 +7737,7 @@ export interface ToolsUpdatedEvent {
|
|
|
7522
7737
|
type: "session.tools_updated";
|
|
7523
7738
|
}
|
|
7524
7739
|
/**
|
|
7525
|
-
*
|
|
7740
|
+
* Payload of `session.tools_updated` identifying the model whose resolved tools were updated.
|
|
7526
7741
|
*/
|
|
7527
7742
|
export interface ToolsUpdatedData {
|
|
7528
7743
|
/**
|
|
@@ -7531,7 +7746,7 @@ export interface ToolsUpdatedData {
|
|
|
7531
7746
|
model: string;
|
|
7532
7747
|
}
|
|
7533
7748
|
/**
|
|
7534
|
-
* Session event "session.background_tasks_changed".
|
|
7749
|
+
* Session event "session.background_tasks_changed". Empty payload for `session.background_tasks_changed`, indicating background task state changed.
|
|
7535
7750
|
*/
|
|
7536
7751
|
export interface BackgroundTasksChangedEvent {
|
|
7537
7752
|
/**
|
|
@@ -7561,12 +7776,12 @@ export interface BackgroundTasksChangedEvent {
|
|
|
7561
7776
|
type: "session.background_tasks_changed";
|
|
7562
7777
|
}
|
|
7563
7778
|
/**
|
|
7564
|
-
*
|
|
7779
|
+
* Empty payload for `session.background_tasks_changed`, indicating background task state changed.
|
|
7565
7780
|
*/
|
|
7566
7781
|
export interface BackgroundTasksChangedData {
|
|
7567
7782
|
}
|
|
7568
7783
|
/**
|
|
7569
|
-
* Session event "session.skills_loaded".
|
|
7784
|
+
* Session event "session.skills_loaded". Payload of `session.skills_loaded` listing resolved skill metadata.
|
|
7570
7785
|
*/
|
|
7571
7786
|
export interface SkillsLoadedEvent {
|
|
7572
7787
|
/**
|
|
@@ -7596,7 +7811,7 @@ export interface SkillsLoadedEvent {
|
|
|
7596
7811
|
type: "session.skills_loaded";
|
|
7597
7812
|
}
|
|
7598
7813
|
/**
|
|
7599
|
-
*
|
|
7814
|
+
* Payload of `session.skills_loaded` listing resolved skill metadata.
|
|
7600
7815
|
*/
|
|
7601
7816
|
export interface SkillsLoadedData {
|
|
7602
7817
|
/**
|
|
@@ -7605,7 +7820,7 @@ export interface SkillsLoadedData {
|
|
|
7605
7820
|
skills: SkillsLoadedSkill[];
|
|
7606
7821
|
}
|
|
7607
7822
|
/**
|
|
7608
|
-
*
|
|
7823
|
+
* A single resolved skill in `session.skills_loaded`, including source, invocability, enabled state, path, and argument hint.
|
|
7609
7824
|
*/
|
|
7610
7825
|
export interface SkillsLoadedSkill {
|
|
7611
7826
|
/**
|
|
@@ -7635,7 +7850,7 @@ export interface SkillsLoadedSkill {
|
|
|
7635
7850
|
userInvocable: boolean;
|
|
7636
7851
|
}
|
|
7637
7852
|
/**
|
|
7638
|
-
* Session event "session.custom_agents_updated".
|
|
7853
|
+
* Session event "session.custom_agents_updated". Payload of `session.custom_agents_updated` with loaded custom agents plus non-fatal warnings and fatal errors.
|
|
7639
7854
|
*/
|
|
7640
7855
|
export interface CustomAgentsUpdatedEvent {
|
|
7641
7856
|
/**
|
|
@@ -7665,7 +7880,7 @@ export interface CustomAgentsUpdatedEvent {
|
|
|
7665
7880
|
type: "session.custom_agents_updated";
|
|
7666
7881
|
}
|
|
7667
7882
|
/**
|
|
7668
|
-
*
|
|
7883
|
+
* Payload of `session.custom_agents_updated` with loaded custom agents plus non-fatal warnings and fatal errors.
|
|
7669
7884
|
*/
|
|
7670
7885
|
export interface CustomAgentsUpdatedData {
|
|
7671
7886
|
/**
|
|
@@ -7682,7 +7897,7 @@ export interface CustomAgentsUpdatedData {
|
|
|
7682
7897
|
warnings: string[];
|
|
7683
7898
|
}
|
|
7684
7899
|
/**
|
|
7685
|
-
*
|
|
7900
|
+
* A single loaded custom agent in `session.custom_agents_updated`, with identity, source, tools, invocability, and model override.
|
|
7686
7901
|
*/
|
|
7687
7902
|
export interface CustomAgentsUpdatedAgent {
|
|
7688
7903
|
/**
|
|
@@ -7719,7 +7934,7 @@ export interface CustomAgentsUpdatedAgent {
|
|
|
7719
7934
|
userInvocable: boolean;
|
|
7720
7935
|
}
|
|
7721
7936
|
/**
|
|
7722
|
-
* Session event "session.mcp_servers_loaded".
|
|
7937
|
+
* Session event "session.mcp_servers_loaded". Payload of `session.mcp_servers_loaded` listing MCP server status summaries.
|
|
7723
7938
|
*/
|
|
7724
7939
|
export interface McpServersLoadedEvent {
|
|
7725
7940
|
/**
|
|
@@ -7749,7 +7964,7 @@ export interface McpServersLoadedEvent {
|
|
|
7749
7964
|
type: "session.mcp_servers_loaded";
|
|
7750
7965
|
}
|
|
7751
7966
|
/**
|
|
7752
|
-
*
|
|
7967
|
+
* Payload of `session.mcp_servers_loaded` listing MCP server status summaries.
|
|
7753
7968
|
*/
|
|
7754
7969
|
export interface McpServersLoadedData {
|
|
7755
7970
|
/**
|
|
@@ -7758,7 +7973,7 @@ export interface McpServersLoadedData {
|
|
|
7758
7973
|
servers: McpServersLoadedServer[];
|
|
7759
7974
|
}
|
|
7760
7975
|
/**
|
|
7761
|
-
*
|
|
7976
|
+
* A single MCP server status summary in `session.mcp_servers_loaded`, including name, status, source, transport, and plugin metadata.
|
|
7762
7977
|
*/
|
|
7763
7978
|
export interface McpServersLoadedServer {
|
|
7764
7979
|
/**
|
|
@@ -7782,7 +7997,7 @@ export interface McpServersLoadedServer {
|
|
|
7782
7997
|
transport?: McpServerTransport;
|
|
7783
7998
|
}
|
|
7784
7999
|
/**
|
|
7785
|
-
* Session event "session.mcp_server_status_changed".
|
|
8000
|
+
* Session event "session.mcp_server_status_changed". Payload of `session.mcp_server_status_changed` for one MCP server's status and optional failure error.
|
|
7786
8001
|
*/
|
|
7787
8002
|
export interface McpServerStatusChangedEvent {
|
|
7788
8003
|
/**
|
|
@@ -7812,7 +8027,7 @@ export interface McpServerStatusChangedEvent {
|
|
|
7812
8027
|
type: "session.mcp_server_status_changed";
|
|
7813
8028
|
}
|
|
7814
8029
|
/**
|
|
7815
|
-
*
|
|
8030
|
+
* Payload of `session.mcp_server_status_changed` for one MCP server's status and optional failure error.
|
|
7816
8031
|
*/
|
|
7817
8032
|
export interface McpServerStatusChangedData {
|
|
7818
8033
|
/**
|
|
@@ -7826,7 +8041,7 @@ export interface McpServerStatusChangedData {
|
|
|
7826
8041
|
status: McpServerStatus;
|
|
7827
8042
|
}
|
|
7828
8043
|
/**
|
|
7829
|
-
* Session event "session.extensions_loaded".
|
|
8044
|
+
* Session event "session.extensions_loaded". Payload of `session.extensions_loaded` listing discovered extensions and their statuses.
|
|
7830
8045
|
*/
|
|
7831
8046
|
export interface ExtensionsLoadedEvent {
|
|
7832
8047
|
/**
|
|
@@ -7856,7 +8071,7 @@ export interface ExtensionsLoadedEvent {
|
|
|
7856
8071
|
type: "session.extensions_loaded";
|
|
7857
8072
|
}
|
|
7858
8073
|
/**
|
|
7859
|
-
*
|
|
8074
|
+
* Payload of `session.extensions_loaded` listing discovered extensions and their statuses.
|
|
7860
8075
|
*/
|
|
7861
8076
|
export interface ExtensionsLoadedData {
|
|
7862
8077
|
/**
|
|
@@ -7865,7 +8080,7 @@ export interface ExtensionsLoadedData {
|
|
|
7865
8080
|
extensions: ExtensionsLoadedExtension[];
|
|
7866
8081
|
}
|
|
7867
8082
|
/**
|
|
7868
|
-
*
|
|
8083
|
+
* A single extension discovered by `session.extensions_loaded`, including qualified ID, source, and current status.
|
|
7869
8084
|
*/
|
|
7870
8085
|
export interface ExtensionsLoadedExtension {
|
|
7871
8086
|
/**
|
|
@@ -7880,7 +8095,7 @@ export interface ExtensionsLoadedExtension {
|
|
|
7880
8095
|
status: ExtensionsLoadedExtensionStatus;
|
|
7881
8096
|
}
|
|
7882
8097
|
/**
|
|
7883
|
-
* Session event "session.canvas.opened".
|
|
8098
|
+
* Session event "session.canvas.opened". Payload of `session.canvas.opened` with canvas instance and provider IDs plus optional title, status, URL, and input.
|
|
7884
8099
|
*/
|
|
7885
8100
|
/** @experimental */
|
|
7886
8101
|
export interface CanvasOpenedEvent {
|
|
@@ -7911,7 +8126,7 @@ export interface CanvasOpenedEvent {
|
|
|
7911
8126
|
type: "session.canvas.opened";
|
|
7912
8127
|
}
|
|
7913
8128
|
/**
|
|
7914
|
-
*
|
|
8129
|
+
* Payload of `session.canvas.opened` with canvas instance and provider IDs plus optional title, status, URL, and input.
|
|
7915
8130
|
*/
|
|
7916
8131
|
/** @experimental */
|
|
7917
8132
|
export interface CanvasOpenedData {
|
|
@@ -7951,7 +8166,7 @@ export interface CanvasOpenedData {
|
|
|
7951
8166
|
url?: string;
|
|
7952
8167
|
}
|
|
7953
8168
|
/**
|
|
7954
|
-
* Session event "session.canvas.registry_changed".
|
|
8169
|
+
* Session event "session.canvas.registry_changed". Payload of `session.canvas.registry_changed` listing the canvas declarations currently available.
|
|
7955
8170
|
*/
|
|
7956
8171
|
/** @experimental */
|
|
7957
8172
|
export interface CanvasRegistryChangedEvent {
|
|
@@ -7982,7 +8197,7 @@ export interface CanvasRegistryChangedEvent {
|
|
|
7982
8197
|
type: "session.canvas.registry_changed";
|
|
7983
8198
|
}
|
|
7984
8199
|
/**
|
|
7985
|
-
*
|
|
8200
|
+
* Payload of `session.canvas.registry_changed` listing the canvas declarations currently available.
|
|
7986
8201
|
*/
|
|
7987
8202
|
/** @experimental */
|
|
7988
8203
|
export interface CanvasRegistryChangedData {
|
|
@@ -7992,7 +8207,7 @@ export interface CanvasRegistryChangedData {
|
|
|
7992
8207
|
canvases: CanvasRegistryChangedCanvas[];
|
|
7993
8208
|
}
|
|
7994
8209
|
/**
|
|
7995
|
-
*
|
|
8210
|
+
* A single canvas declaration in `session.canvas.registry_changed`, including provider IDs, display metadata, input schema, and actions.
|
|
7996
8211
|
*/
|
|
7997
8212
|
/** @experimental */
|
|
7998
8213
|
export interface CanvasRegistryChangedCanvas {
|
|
@@ -8028,7 +8243,7 @@ export interface CanvasRegistryChangedCanvas {
|
|
|
8028
8243
|
};
|
|
8029
8244
|
}
|
|
8030
8245
|
/**
|
|
8031
|
-
*
|
|
8246
|
+
* A single action within a canvas declaration, with its name, optional description, and optional input schema.
|
|
8032
8247
|
*/
|
|
8033
8248
|
/** @experimental */
|
|
8034
8249
|
export interface CanvasRegistryChangedCanvasAction {
|
|
@@ -8048,7 +8263,7 @@ export interface CanvasRegistryChangedCanvasAction {
|
|
|
8048
8263
|
name: string;
|
|
8049
8264
|
}
|
|
8050
8265
|
/**
|
|
8051
|
-
* Session event "session.canvas.closed".
|
|
8266
|
+
* Session event "session.canvas.closed". Payload of `session.canvas.closed` with the closed canvas instance ID, provider ID, and canvas ID.
|
|
8052
8267
|
*/
|
|
8053
8268
|
/** @experimental */
|
|
8054
8269
|
export interface CanvasClosedEvent {
|
|
@@ -8079,7 +8294,7 @@ export interface CanvasClosedEvent {
|
|
|
8079
8294
|
type: "session.canvas.closed";
|
|
8080
8295
|
}
|
|
8081
8296
|
/**
|
|
8082
|
-
*
|
|
8297
|
+
* Payload of `session.canvas.closed` with the closed canvas instance ID, provider ID, and canvas ID.
|
|
8083
8298
|
*/
|
|
8084
8299
|
/** @experimental */
|
|
8085
8300
|
export interface CanvasClosedData {
|
|
@@ -8254,7 +8469,7 @@ export interface CanvasRemovedData {
|
|
|
8254
8469
|
instanceId: string;
|
|
8255
8470
|
}
|
|
8256
8471
|
/**
|
|
8257
|
-
* Session event "session.extensions.attachments_pushed".
|
|
8472
|
+
* Session event "session.extensions.attachments_pushed". Payload of `session.extensions.attachments_pushed` with extension-contributed attachments for the next send.
|
|
8258
8473
|
*/
|
|
8259
8474
|
export interface ExtensionsAttachmentsPushedEvent {
|
|
8260
8475
|
/**
|
|
@@ -8284,7 +8499,7 @@ export interface ExtensionsAttachmentsPushedEvent {
|
|
|
8284
8499
|
type: "session.extensions.attachments_pushed";
|
|
8285
8500
|
}
|
|
8286
8501
|
/**
|
|
8287
|
-
*
|
|
8502
|
+
* Payload of `session.extensions.attachments_pushed` with extension-contributed attachments for the next send.
|
|
8288
8503
|
*/
|
|
8289
8504
|
export interface ExtensionsAttachmentsPushedData {
|
|
8290
8505
|
/**
|
|
@@ -8373,7 +8588,7 @@ export interface McpAppToolCallCompleteToolMeta {
|
|
|
8373
8588
|
ui?: McpAppToolCallCompleteToolMetaUI;
|
|
8374
8589
|
}
|
|
8375
8590
|
/**
|
|
8376
|
-
*
|
|
8591
|
+
* MCP App tool `_meta.ui` resource URI and SEP-1865 visibility captured with an `mcp_app.tool_call_complete` result.
|
|
8377
8592
|
*/
|
|
8378
8593
|
export interface McpAppToolCallCompleteToolMetaUI {
|
|
8379
8594
|
/**
|