@github/copilot-sdk 1.0.6-preview.1 → 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 +34 -17
- package/dist/client.js +5 -3
- package/dist/generated/rpc.d.ts +760 -156
- package/dist/generated/rpc.js +34 -17
- package/dist/generated/session-events.d.ts +299 -84
- package/package.json +2 -2
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Generated from: api.schema.json
|
|
4
4
|
*/
|
|
5
5
|
import type { MessageConnection } from "vscode-jsonrpc/node.js";
|
|
6
|
-
import type { AbortReason, Attachment, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpServerSource, McpServerStatus, PermissionPromptRequest, PermissionRule, ReasoningSummary, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, UserToolSessionApproval } from "./session-events.js";
|
|
6
|
+
import type { AbortReason, Attachment, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpServerSource, McpServerStatus, PermissionPromptRequest, PermissionRule, ReasoningSummary, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, UserToolSessionApproval, Verbosity } from "./session-events.js";
|
|
7
7
|
/**
|
|
8
8
|
* Initial authentication info for the session.
|
|
9
9
|
*
|
|
@@ -188,6 +188,20 @@ export type AgentRegistrySpawnValidationErrorField =
|
|
|
188
188
|
| "model"
|
|
189
189
|
/** The permissionMode parameter */
|
|
190
190
|
| "permissionMode";
|
|
191
|
+
/**
|
|
192
|
+
* Current or requested allow-all mode.
|
|
193
|
+
*
|
|
194
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
195
|
+
* via the `definition` "PermissionsAllowAllMode".
|
|
196
|
+
*/
|
|
197
|
+
/** @experimental */
|
|
198
|
+
export type PermissionsAllowAllMode =
|
|
199
|
+
/** Permission requests follow the normal approval flow. */
|
|
200
|
+
"off"
|
|
201
|
+
/** Tool, path, and URL permission requests are automatically approved. */
|
|
202
|
+
| "on"
|
|
203
|
+
/** 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. */
|
|
204
|
+
| "auto";
|
|
191
205
|
/**
|
|
192
206
|
* Authentication type
|
|
193
207
|
*
|
|
@@ -266,6 +280,82 @@ export type ContentFilterMode =
|
|
|
266
280
|
| "markdown"
|
|
267
281
|
/** Remove characters that can hide directives. */
|
|
268
282
|
| "hidden_characters";
|
|
283
|
+
/**
|
|
284
|
+
* Source category for a collected debug bundle entry.
|
|
285
|
+
*
|
|
286
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
287
|
+
* via the `definition` "DebugCollectLogsSource".
|
|
288
|
+
*/
|
|
289
|
+
/** @experimental */
|
|
290
|
+
export type DebugCollectLogsSource =
|
|
291
|
+
/** Session event log. */
|
|
292
|
+
"events"
|
|
293
|
+
/** Process log for the session. */
|
|
294
|
+
| "process-log"
|
|
295
|
+
/** Interactive shell log for the session. */
|
|
296
|
+
| "shell-log"
|
|
297
|
+
/** Caller-provided diagnostic entry. */
|
|
298
|
+
| "additional";
|
|
299
|
+
/**
|
|
300
|
+
* Destination for the redacted debug bundle.
|
|
301
|
+
*
|
|
302
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
303
|
+
* via the `definition` "DebugCollectLogsDestination".
|
|
304
|
+
*/
|
|
305
|
+
/** @experimental */
|
|
306
|
+
export type DebugCollectLogsDestination = {
|
|
307
|
+
/**
|
|
308
|
+
* Absolute or server-relative path for the .tgz archive to create.
|
|
309
|
+
*/
|
|
310
|
+
outputPath: string;
|
|
311
|
+
/**
|
|
312
|
+
* When true, create the archive atomically without overwriting an existing file by appending ` (N)` before the extension as needed. Defaults to false.
|
|
313
|
+
*/
|
|
314
|
+
noOverwrite?: boolean;
|
|
315
|
+
kind: "archive";
|
|
316
|
+
} | {
|
|
317
|
+
/**
|
|
318
|
+
* Directory where redacted files should be staged. The directory is created if needed.
|
|
319
|
+
*/
|
|
320
|
+
outputDirectory: string;
|
|
321
|
+
kind: "directory";
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Kind of caller-provided debug log entry.
|
|
325
|
+
*
|
|
326
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
327
|
+
* via the `definition` "DebugCollectLogsEntryKind".
|
|
328
|
+
*/
|
|
329
|
+
/** @experimental */
|
|
330
|
+
export type DebugCollectLogsEntryKind =
|
|
331
|
+
/** Include a single server-local file. */
|
|
332
|
+
"file"
|
|
333
|
+
/** Include files from a server-local directory recursively. */
|
|
334
|
+
| "directory";
|
|
335
|
+
/**
|
|
336
|
+
* How a collected debug entry should be redacted before being staged.
|
|
337
|
+
*
|
|
338
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
339
|
+
* via the `definition` "DebugCollectLogsRedaction".
|
|
340
|
+
*/
|
|
341
|
+
/** @experimental */
|
|
342
|
+
export type DebugCollectLogsRedaction =
|
|
343
|
+
/** Redact the file as plain UTF-8 log text. */
|
|
344
|
+
"plain-text"
|
|
345
|
+
/** Redact each non-empty line as a session event JSON object, falling back to plain-text redaction for malformed lines. */
|
|
346
|
+
| "events-jsonl";
|
|
347
|
+
/**
|
|
348
|
+
* Destination kind that was written.
|
|
349
|
+
*
|
|
350
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
351
|
+
* via the `definition` "DebugCollectLogsResultKind".
|
|
352
|
+
*/
|
|
353
|
+
/** @experimental */
|
|
354
|
+
export type DebugCollectLogsResultKind =
|
|
355
|
+
/** A .tgz archive was written. */
|
|
356
|
+
"archive"
|
|
357
|
+
/** A directory containing redacted files was written. */
|
|
358
|
+
| "directory";
|
|
269
359
|
/**
|
|
270
360
|
* Server transport type: stdio, http, sse (deprecated), or memory
|
|
271
361
|
*
|
|
@@ -1179,7 +1269,7 @@ export type ProviderEndpointTransport =
|
|
|
1179
1269
|
/** WebSocket transport. */
|
|
1180
1270
|
| "websockets";
|
|
1181
1271
|
/**
|
|
1182
|
-
*
|
|
1272
|
+
* Attachment union accepted by push input, covering files, directories, GitHub objects, blobs, snippets, and extension context.
|
|
1183
1273
|
*
|
|
1184
1274
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1185
1275
|
* via the `definition` "PushAttachment".
|
|
@@ -1536,6 +1626,52 @@ export type SessionsOpenProgressStatus =
|
|
|
1536
1626
|
"in-progress"
|
|
1537
1627
|
/** The step has completed successfully. */
|
|
1538
1628
|
| "complete";
|
|
1629
|
+
/**
|
|
1630
|
+
* Rust-owned settings predicates exposed across the SDK boundary. Raw feature-flag names are intentionally not part of the contract.
|
|
1631
|
+
*
|
|
1632
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1633
|
+
* via the `definition` "SessionSettingsPredicateName".
|
|
1634
|
+
*/
|
|
1635
|
+
/** @experimental */
|
|
1636
|
+
export type SessionSettingsPredicateName =
|
|
1637
|
+
/** Whether the security-tools feature flag enables security tool wiring. */
|
|
1638
|
+
"securityToolsEnabled"
|
|
1639
|
+
/** Whether third-party security tools should receive the security prompt. */
|
|
1640
|
+
| "thirdPartySecurityPromptEnabled"
|
|
1641
|
+
/** Whether validation may run in parallel. */
|
|
1642
|
+
| "parallelValidationEnabled"
|
|
1643
|
+
/** Whether runtime timing telemetry is enabled. */
|
|
1644
|
+
| "runtimeTimingTelemetryEnabled"
|
|
1645
|
+
/** Whether the co-author hook is enabled. */
|
|
1646
|
+
| "coAuthorHookEnabled"
|
|
1647
|
+
/** Whether Chronicle integration is enabled. */
|
|
1648
|
+
| "chronicleEnabled"
|
|
1649
|
+
/** Whether content-exclusion policy may self-fetch data. */
|
|
1650
|
+
| "contentExclusionSelfFetchEnabled"
|
|
1651
|
+
/** Whether Claude Opus token-limit caps should be applied. */
|
|
1652
|
+
| "capClaudeOpusTokenLimitsEnabled"
|
|
1653
|
+
/** Whether code-review behavior is enabled. */
|
|
1654
|
+
| "codeReviewFeatureEnabled"
|
|
1655
|
+
/** Whether CCA should use the TypeScript autofind behavior. */
|
|
1656
|
+
| "ccaUseTsAutofindEnabled"
|
|
1657
|
+
/** Whether the dependency checker is enabled. */
|
|
1658
|
+
| "dependencyCheckerEnabled"
|
|
1659
|
+
/** Whether the Dependabot checker is enabled. */
|
|
1660
|
+
| "dependabotCheckerEnabled"
|
|
1661
|
+
/** Whether the CodeQL checker is enabled. */
|
|
1662
|
+
| "codeqlCheckerEnabled"
|
|
1663
|
+
/** Whether trivial-change handling is enabled. */
|
|
1664
|
+
| "trivialChangeEnabled"
|
|
1665
|
+
/** Whether trivial-change skip behavior is enabled. */
|
|
1666
|
+
| "trivialChangeSkipEnabled"
|
|
1667
|
+
/** Whether trivial-change handling is enabled for code review. */
|
|
1668
|
+
| "trivialChangeEnabledForCodeReview"
|
|
1669
|
+
/** Whether trivial-change skip behavior is enabled for code review. */
|
|
1670
|
+
| "trivialChangeSkipEnabledForCodeReview"
|
|
1671
|
+
/** Whether trivial-change handling is enabled for a specific tool. */
|
|
1672
|
+
| "trivialChangeEnabledForTool"
|
|
1673
|
+
/** Whether trivial-change skip behavior is enabled for a specific tool. */
|
|
1674
|
+
| "trivialChangeSkipEnabledForTool";
|
|
1539
1675
|
/**
|
|
1540
1676
|
* Which session sources to include. Defaults to `local` for backward compatibility.
|
|
1541
1677
|
*
|
|
@@ -1672,7 +1808,7 @@ export type TaskExecutionMode =
|
|
|
1672
1808
|
/** The task is managed in the background. */
|
|
1673
1809
|
| "background";
|
|
1674
1810
|
/**
|
|
1675
|
-
*
|
|
1811
|
+
* Tracked task union returned by task APIs, containing either an agent task or a shell task.
|
|
1676
1812
|
*
|
|
1677
1813
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1678
1814
|
* via the `definition` "TaskInfo".
|
|
@@ -1714,7 +1850,7 @@ export type UIAutoModeSwitchResponse =
|
|
|
1714
1850
|
/** Decline the automatic mode switch. */
|
|
1715
1851
|
| "no";
|
|
1716
1852
|
/**
|
|
1717
|
-
*
|
|
1853
|
+
* Submitted UI elicitation field value: string, number, boolean, or an array of strings.
|
|
1718
1854
|
*
|
|
1719
1855
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1720
1856
|
* via the `definition` "UIElicitationFieldValue".
|
|
@@ -1881,7 +2017,7 @@ export interface AbortResult {
|
|
|
1881
2017
|
error?: string;
|
|
1882
2018
|
}
|
|
1883
2019
|
/**
|
|
1884
|
-
*
|
|
2020
|
+
* Authenticated account entry returned by `account.getAllUsers`, with auth info and an optional associated token.
|
|
1885
2021
|
*
|
|
1886
2022
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1887
2023
|
* via the `definition` "AccountAllUsers".
|
|
@@ -1895,7 +2031,7 @@ export interface AccountAllUsers {
|
|
|
1895
2031
|
token?: string;
|
|
1896
2032
|
}
|
|
1897
2033
|
/**
|
|
1898
|
-
*
|
|
2034
|
+
* Authentication-info variant for GitHub-internal HMAC auth, carrying the public GitHub host and HMAC secret.
|
|
1899
2035
|
*
|
|
1900
2036
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1901
2037
|
* via the `definition` "HMACAuthInfo".
|
|
@@ -1924,18 +2060,48 @@ export interface HMACAuthInfo {
|
|
|
1924
2060
|
*/
|
|
1925
2061
|
/** @experimental */
|
|
1926
2062
|
export interface CopilotUserResponse {
|
|
2063
|
+
/**
|
|
2064
|
+
* GitHub login of the authenticated user.
|
|
2065
|
+
*/
|
|
1927
2066
|
login?: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Copilot access SKU identifier (e.g. `free_limited_copilot`, `copilot_for_business_seat_quota`) used to gate model and feature access.
|
|
2069
|
+
*/
|
|
1928
2070
|
access_type_sku?: string;
|
|
2071
|
+
/**
|
|
2072
|
+
* Opaque analytics tracking identifier for the user, forwarded from the Copilot API.
|
|
2073
|
+
*/
|
|
1929
2074
|
analytics_tracking_id?: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* Date the Copilot seat was assigned to the user, if applicable.
|
|
2077
|
+
*/
|
|
1930
2078
|
assigned_date?: ({
|
|
1931
2079
|
[k: string]: unknown | undefined;
|
|
1932
2080
|
} | string) | null;
|
|
2081
|
+
/**
|
|
2082
|
+
* Whether the user is eligible to sign up for the free/limited Copilot tier.
|
|
2083
|
+
*/
|
|
1933
2084
|
can_signup_for_limited?: boolean;
|
|
2085
|
+
/**
|
|
2086
|
+
* Whether Copilot chat is enabled for the user.
|
|
2087
|
+
*/
|
|
1934
2088
|
chat_enabled?: boolean;
|
|
2089
|
+
/**
|
|
2090
|
+
* Copilot plan name for the user (e.g. `individual`, `business`, `enterprise`).
|
|
2091
|
+
*/
|
|
1935
2092
|
copilot_plan?: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* Whether `.copilotignore` content-exclusion support is enabled for the user.
|
|
2095
|
+
*/
|
|
1936
2096
|
copilotignore_enabled?: boolean;
|
|
1937
2097
|
endpoints?: CopilotUserResponseEndpoints;
|
|
2098
|
+
/**
|
|
2099
|
+
* Logins of the organizations the user belongs to.
|
|
2100
|
+
*/
|
|
1938
2101
|
organization_login_list?: string[];
|
|
2102
|
+
/**
|
|
2103
|
+
* Organizations the user belongs to, each with an optional login and display name.
|
|
2104
|
+
*/
|
|
1939
2105
|
organization_list?: ({
|
|
1940
2106
|
[k: string]: unknown | undefined;
|
|
1941
2107
|
} | ({
|
|
@@ -1946,30 +2112,72 @@ export interface CopilotUserResponse {
|
|
|
1946
2112
|
[k: string]: unknown | undefined;
|
|
1947
2113
|
} | string) | null;
|
|
1948
2114
|
} | null)[]) | null;
|
|
2115
|
+
/**
|
|
2116
|
+
* Whether the Codex agent is enabled for the user.
|
|
2117
|
+
*/
|
|
1949
2118
|
codex_agent_enabled?: boolean;
|
|
2119
|
+
/**
|
|
2120
|
+
* Whether MCP (Model Context Protocol) support is enabled for the user.
|
|
2121
|
+
*/
|
|
1950
2122
|
is_mcp_enabled?: ({
|
|
1951
2123
|
[k: string]: unknown | undefined;
|
|
1952
2124
|
} | boolean) | null;
|
|
2125
|
+
/**
|
|
2126
|
+
* Date the user's usage quota next resets, as a raw string from the Copilot API; see `quota_reset_date_utc` for the UTC-normalized value.
|
|
2127
|
+
*/
|
|
1953
2128
|
quota_reset_date?: string;
|
|
1954
2129
|
quota_snapshots?: CopilotUserResponseQuotaSnapshots;
|
|
2130
|
+
/**
|
|
2131
|
+
* Whether the user's telemetry is subject to restricted-data handling.
|
|
2132
|
+
*/
|
|
1955
2133
|
restricted_telemetry?: boolean;
|
|
2134
|
+
/**
|
|
2135
|
+
* Whether the user is a GitHub/Microsoft staff member.
|
|
2136
|
+
*/
|
|
1956
2137
|
is_staff?: boolean;
|
|
2138
|
+
/**
|
|
2139
|
+
* Raw passthrough of the Copilot API `te` flag for the user (an opaque server-side eligibility signal surfaced in telemetry); not otherwise interpreted by the runtime.
|
|
2140
|
+
*/
|
|
1957
2141
|
te?: boolean;
|
|
2142
|
+
/**
|
|
2143
|
+
* Whether the account is on usage-based (token/AI-credit) billing rather than a fixed premium-request quota.
|
|
2144
|
+
*/
|
|
1958
2145
|
token_based_billing?: boolean;
|
|
2146
|
+
/**
|
|
2147
|
+
* Whether the user is able to upgrade their Copilot plan.
|
|
2148
|
+
*/
|
|
1959
2149
|
can_upgrade_plan?: boolean;
|
|
2150
|
+
/**
|
|
2151
|
+
* UTC-normalized form of `quota_reset_date` (the date the user's usage quota next resets).
|
|
2152
|
+
*/
|
|
1960
2153
|
quota_reset_date_utc?: string;
|
|
2154
|
+
/**
|
|
2155
|
+
* Per-category quota allotments for free/limited-tier users, keyed by quota category.
|
|
2156
|
+
*/
|
|
1961
2157
|
limited_user_quotas?: {
|
|
1962
2158
|
[k: string]: number | undefined;
|
|
1963
2159
|
};
|
|
2160
|
+
/**
|
|
2161
|
+
* Date the free/limited-tier user's quotas next reset, as a raw string from the Copilot API.
|
|
2162
|
+
*/
|
|
1964
2163
|
limited_user_reset_date?: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* Per-category monthly quota allotments, keyed by quota category.
|
|
2166
|
+
*/
|
|
1965
2167
|
monthly_quotas?: {
|
|
1966
2168
|
[k: string]: number | undefined;
|
|
1967
2169
|
};
|
|
2170
|
+
/**
|
|
2171
|
+
* Whether cloud session storage is enabled for the user.
|
|
2172
|
+
*/
|
|
1968
2173
|
cloud_session_storage_enabled?: boolean;
|
|
2174
|
+
/**
|
|
2175
|
+
* Whether CLI remote control is enabled for the user.
|
|
2176
|
+
*/
|
|
1969
2177
|
cli_remote_control_enabled?: boolean;
|
|
1970
2178
|
}
|
|
1971
2179
|
/**
|
|
1972
|
-
*
|
|
2180
|
+
* Endpoint URLs from the raw Copilot `/copilot_internal/v2/token` user-response passthrough.
|
|
1973
2181
|
*
|
|
1974
2182
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1975
2183
|
* via the `definition` "CopilotUserResponseEndpoints".
|
|
@@ -1982,7 +2190,7 @@ export interface CopilotUserResponseEndpoints {
|
|
|
1982
2190
|
telemetry?: string;
|
|
1983
2191
|
}
|
|
1984
2192
|
/**
|
|
1985
|
-
*
|
|
2193
|
+
* Quota snapshot map from the raw Copilot user-response passthrough, with chat, completions, premium-interactions, and other entries.
|
|
1986
2194
|
*
|
|
1987
2195
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1988
2196
|
* via the `definition` "CopilotUserResponseQuotaSnapshots".
|
|
@@ -2008,70 +2216,178 @@ export interface CopilotUserResponseQuotaSnapshots {
|
|
|
2008
2216
|
} | null) | undefined;
|
|
2009
2217
|
}
|
|
2010
2218
|
/**
|
|
2011
|
-
*
|
|
2219
|
+
* Chat quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
|
|
2012
2220
|
*
|
|
2013
2221
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2014
2222
|
* via the `definition` "CopilotUserResponseQuotaSnapshotsChat".
|
|
2015
2223
|
*/
|
|
2016
2224
|
/** @experimental */
|
|
2017
2225
|
export interface CopilotUserResponseQuotaSnapshotsChat {
|
|
2226
|
+
/**
|
|
2227
|
+
* Number of requests/units included in the entitlement for this period; `-1` denotes an unlimited entitlement.
|
|
2228
|
+
*/
|
|
2018
2229
|
entitlement?: number;
|
|
2230
|
+
/**
|
|
2231
|
+
* Count of additional pay-per-request usage consumed this period beyond the entitlement.
|
|
2232
|
+
*/
|
|
2019
2233
|
overage_count?: number;
|
|
2234
|
+
/**
|
|
2235
|
+
* Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
|
|
2236
|
+
*/
|
|
2020
2237
|
overage_permitted?: boolean;
|
|
2238
|
+
/**
|
|
2239
|
+
* Percentage of the entitlement remaining at the snapshot timestamp.
|
|
2240
|
+
*/
|
|
2021
2241
|
percent_remaining?: number;
|
|
2242
|
+
/**
|
|
2243
|
+
* Identifier of the quota bucket this snapshot describes.
|
|
2244
|
+
*/
|
|
2022
2245
|
quota_id?: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* Amount of quota remaining at the snapshot timestamp.
|
|
2248
|
+
*/
|
|
2023
2249
|
quota_remaining?: number;
|
|
2250
|
+
/**
|
|
2251
|
+
* Remaining entitlement/quota amount at the snapshot timestamp.
|
|
2252
|
+
*/
|
|
2024
2253
|
remaining?: number;
|
|
2254
|
+
/**
|
|
2255
|
+
* Whether the entitlement for this category is unlimited.
|
|
2256
|
+
*/
|
|
2025
2257
|
unlimited?: boolean;
|
|
2258
|
+
/**
|
|
2259
|
+
* UTC timestamp when this snapshot was captured.
|
|
2260
|
+
*/
|
|
2026
2261
|
timestamp_utc?: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* Whether the user currently has quota available; when `false` and not unlimited, further requests are blocked until the quota resets.
|
|
2264
|
+
*/
|
|
2027
2265
|
has_quota?: boolean;
|
|
2266
|
+
/**
|
|
2267
|
+
* Unix epoch time, in seconds, when this quota next resets.
|
|
2268
|
+
*/
|
|
2028
2269
|
quota_reset_at?: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
|
|
2272
|
+
*/
|
|
2029
2273
|
token_based_billing?: boolean;
|
|
2030
2274
|
}
|
|
2031
2275
|
/**
|
|
2032
|
-
*
|
|
2276
|
+
* Completions quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
|
|
2033
2277
|
*
|
|
2034
2278
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2035
2279
|
* via the `definition` "CopilotUserResponseQuotaSnapshotsCompletions".
|
|
2036
2280
|
*/
|
|
2037
2281
|
/** @experimental */
|
|
2038
2282
|
export interface CopilotUserResponseQuotaSnapshotsCompletions {
|
|
2283
|
+
/**
|
|
2284
|
+
* Number of requests/units included in the entitlement for this period; `-1` denotes an unlimited entitlement.
|
|
2285
|
+
*/
|
|
2039
2286
|
entitlement?: number;
|
|
2287
|
+
/**
|
|
2288
|
+
* Count of additional pay-per-request usage consumed this period beyond the entitlement.
|
|
2289
|
+
*/
|
|
2040
2290
|
overage_count?: number;
|
|
2291
|
+
/**
|
|
2292
|
+
* Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
|
|
2293
|
+
*/
|
|
2041
2294
|
overage_permitted?: boolean;
|
|
2295
|
+
/**
|
|
2296
|
+
* Percentage of the entitlement remaining at the snapshot timestamp.
|
|
2297
|
+
*/
|
|
2042
2298
|
percent_remaining?: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* Identifier of the quota bucket this snapshot describes.
|
|
2301
|
+
*/
|
|
2043
2302
|
quota_id?: string;
|
|
2303
|
+
/**
|
|
2304
|
+
* Amount of quota remaining at the snapshot timestamp.
|
|
2305
|
+
*/
|
|
2044
2306
|
quota_remaining?: number;
|
|
2307
|
+
/**
|
|
2308
|
+
* Remaining entitlement/quota amount at the snapshot timestamp.
|
|
2309
|
+
*/
|
|
2045
2310
|
remaining?: number;
|
|
2311
|
+
/**
|
|
2312
|
+
* Whether the entitlement for this category is unlimited.
|
|
2313
|
+
*/
|
|
2046
2314
|
unlimited?: boolean;
|
|
2315
|
+
/**
|
|
2316
|
+
* UTC timestamp when this snapshot was captured.
|
|
2317
|
+
*/
|
|
2047
2318
|
timestamp_utc?: string;
|
|
2319
|
+
/**
|
|
2320
|
+
* Whether the user currently has quota available; when `false` and not unlimited, further requests are blocked until the quota resets.
|
|
2321
|
+
*/
|
|
2048
2322
|
has_quota?: boolean;
|
|
2323
|
+
/**
|
|
2324
|
+
* Unix epoch time, in seconds, when this quota next resets.
|
|
2325
|
+
*/
|
|
2049
2326
|
quota_reset_at?: number;
|
|
2327
|
+
/**
|
|
2328
|
+
* Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
|
|
2329
|
+
*/
|
|
2050
2330
|
token_based_billing?: boolean;
|
|
2051
2331
|
}
|
|
2052
2332
|
/**
|
|
2053
|
-
*
|
|
2333
|
+
* Premium-interactions quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
|
|
2054
2334
|
*
|
|
2055
2335
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2056
2336
|
* via the `definition` "CopilotUserResponseQuotaSnapshotsPremiumInteractions".
|
|
2057
2337
|
*/
|
|
2058
2338
|
/** @experimental */
|
|
2059
2339
|
export interface CopilotUserResponseQuotaSnapshotsPremiumInteractions {
|
|
2340
|
+
/**
|
|
2341
|
+
* Number of requests/units included in the entitlement for this period; `-1` denotes an unlimited entitlement.
|
|
2342
|
+
*/
|
|
2060
2343
|
entitlement?: number;
|
|
2344
|
+
/**
|
|
2345
|
+
* Count of additional pay-per-request usage consumed this period beyond the entitlement.
|
|
2346
|
+
*/
|
|
2061
2347
|
overage_count?: number;
|
|
2348
|
+
/**
|
|
2349
|
+
* Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
|
|
2350
|
+
*/
|
|
2062
2351
|
overage_permitted?: boolean;
|
|
2352
|
+
/**
|
|
2353
|
+
* Percentage of the entitlement remaining at the snapshot timestamp.
|
|
2354
|
+
*/
|
|
2063
2355
|
percent_remaining?: number;
|
|
2356
|
+
/**
|
|
2357
|
+
* Identifier of the quota bucket this snapshot describes.
|
|
2358
|
+
*/
|
|
2064
2359
|
quota_id?: string;
|
|
2360
|
+
/**
|
|
2361
|
+
* Amount of quota remaining at the snapshot timestamp.
|
|
2362
|
+
*/
|
|
2065
2363
|
quota_remaining?: number;
|
|
2364
|
+
/**
|
|
2365
|
+
* Remaining entitlement/quota amount at the snapshot timestamp.
|
|
2366
|
+
*/
|
|
2066
2367
|
remaining?: number;
|
|
2368
|
+
/**
|
|
2369
|
+
* Whether the entitlement for this category is unlimited.
|
|
2370
|
+
*/
|
|
2067
2371
|
unlimited?: boolean;
|
|
2372
|
+
/**
|
|
2373
|
+
* UTC timestamp when this snapshot was captured.
|
|
2374
|
+
*/
|
|
2068
2375
|
timestamp_utc?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Whether the user currently has quota available; when `false` and not unlimited, further requests are blocked until the quota resets.
|
|
2378
|
+
*/
|
|
2069
2379
|
has_quota?: boolean;
|
|
2380
|
+
/**
|
|
2381
|
+
* Unix epoch time, in seconds, when this quota next resets.
|
|
2382
|
+
*/
|
|
2070
2383
|
quota_reset_at?: number;
|
|
2384
|
+
/**
|
|
2385
|
+
* Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
|
|
2386
|
+
*/
|
|
2071
2387
|
token_based_billing?: boolean;
|
|
2072
2388
|
}
|
|
2073
2389
|
/**
|
|
2074
|
-
*
|
|
2390
|
+
* Authentication-info variant for a token sourced from an environment variable, with host, optional login, token, and env var name.
|
|
2075
2391
|
*
|
|
2076
2392
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2077
2393
|
* via the `definition` "EnvAuthInfo".
|
|
@@ -2101,7 +2417,7 @@ export interface EnvAuthInfo {
|
|
|
2101
2417
|
copilotUser?: CopilotUserResponse;
|
|
2102
2418
|
}
|
|
2103
2419
|
/**
|
|
2104
|
-
*
|
|
2420
|
+
* Authentication-info variant for SDK-configured token authentication, carrying host and the secret token value.
|
|
2105
2421
|
*
|
|
2106
2422
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2107
2423
|
* via the `definition` "TokenAuthInfo".
|
|
@@ -2123,7 +2439,7 @@ export interface TokenAuthInfo {
|
|
|
2123
2439
|
copilotUser?: CopilotUserResponse;
|
|
2124
2440
|
}
|
|
2125
2441
|
/**
|
|
2126
|
-
*
|
|
2442
|
+
* Authentication-info variant for direct Copilot API token auth sourced from environment variables, with public GitHub host.
|
|
2127
2443
|
*
|
|
2128
2444
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2129
2445
|
* via the `definition` "CopilotApiTokenAuthInfo".
|
|
@@ -2141,7 +2457,7 @@ export interface CopilotApiTokenAuthInfo {
|
|
|
2141
2457
|
copilotUser?: CopilotUserResponse;
|
|
2142
2458
|
}
|
|
2143
2459
|
/**
|
|
2144
|
-
*
|
|
2460
|
+
* Authentication-info variant for OAuth user auth, with host and login; the token remains in the runtime secret store.
|
|
2145
2461
|
*
|
|
2146
2462
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2147
2463
|
* via the `definition` "UserAuthInfo".
|
|
@@ -2163,7 +2479,7 @@ export interface UserAuthInfo {
|
|
|
2163
2479
|
copilotUser?: CopilotUserResponse;
|
|
2164
2480
|
}
|
|
2165
2481
|
/**
|
|
2166
|
-
*
|
|
2482
|
+
* Authentication-info variant for GitHub CLI credentials, carrying host, login, and the `gh auth token` value.
|
|
2167
2483
|
*
|
|
2168
2484
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2169
2485
|
* via the `definition` "GhCliAuthInfo".
|
|
@@ -2189,7 +2505,7 @@ export interface GhCliAuthInfo {
|
|
|
2189
2505
|
copilotUser?: CopilotUserResponse;
|
|
2190
2506
|
}
|
|
2191
2507
|
/**
|
|
2192
|
-
*
|
|
2508
|
+
* Authentication-info variant for API-key authentication to a non-GitHub LLM provider, carrying the secret `apiKey` and host.
|
|
2193
2509
|
*
|
|
2194
2510
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2195
2511
|
* via the `definition` "ApiKeyAuthInfo".
|
|
@@ -2247,7 +2563,7 @@ export interface AccountGetQuotaResult {
|
|
|
2247
2563
|
};
|
|
2248
2564
|
}
|
|
2249
2565
|
/**
|
|
2250
|
-
*
|
|
2566
|
+
* Quota usage snapshot for a Copilot quota type, including entitlement, used requests, overage, reset date, and remaining percentage.
|
|
2251
2567
|
*
|
|
2252
2568
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2253
2569
|
* via the `definition` "AccountQuotaSnapshot".
|
|
@@ -2345,7 +2661,7 @@ export interface AccountLogoutResult {
|
|
|
2345
2661
|
hasMoreUsers: boolean;
|
|
2346
2662
|
}
|
|
2347
2663
|
/**
|
|
2348
|
-
*
|
|
2664
|
+
* Canonical directory where custom agents can be discovered or created, with scope, preference, and optional project path.
|
|
2349
2665
|
*
|
|
2350
2666
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2351
2667
|
* via the `definition` "AgentDiscoveryPath".
|
|
@@ -2393,7 +2709,7 @@ export interface AgentGetCurrentResult {
|
|
|
2393
2709
|
agent?: AgentInfo | null;
|
|
2394
2710
|
}
|
|
2395
2711
|
/**
|
|
2396
|
-
*
|
|
2712
|
+
* Custom agent metadata, including identifiers, display details, source, tools, model, MCP servers, skills, and file path.
|
|
2397
2713
|
*
|
|
2398
2714
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2399
2715
|
* via the `definition` "AgentInfo".
|
|
@@ -2740,12 +3056,13 @@ export interface AllowAllPermissionSetResult {
|
|
|
2740
3056
|
*/
|
|
2741
3057
|
success: boolean;
|
|
2742
3058
|
/**
|
|
2743
|
-
* Authoritative allow-all state after the mutation
|
|
3059
|
+
* Authoritative full allow-all state after the mutation
|
|
2744
3060
|
*/
|
|
2745
3061
|
enabled: boolean;
|
|
3062
|
+
mode?: PermissionsAllowAllMode;
|
|
2746
3063
|
}
|
|
2747
3064
|
/**
|
|
2748
|
-
* Current
|
|
3065
|
+
* Current allow-all permission mode.
|
|
2749
3066
|
*
|
|
2750
3067
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2751
3068
|
* via the `definition` "AllowAllPermissionState".
|
|
@@ -2756,6 +3073,7 @@ export interface AllowAllPermissionState {
|
|
|
2756
3073
|
* Whether full allow-all permissions are currently active
|
|
2757
3074
|
*/
|
|
2758
3075
|
enabled: boolean;
|
|
3076
|
+
mode?: PermissionsAllowAllMode;
|
|
2759
3077
|
}
|
|
2760
3078
|
/**
|
|
2761
3079
|
* Cancellation result for a user-requested shell command.
|
|
@@ -3155,7 +3473,7 @@ export interface CommandList {
|
|
|
3155
3473
|
commands: SlashCommandInfo[];
|
|
3156
3474
|
}
|
|
3157
3475
|
/**
|
|
3158
|
-
*
|
|
3476
|
+
* Slash-command metadata with name, aliases, description, kind, input hint, execution allowance, and schedulability.
|
|
3159
3477
|
*
|
|
3160
3478
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3161
3479
|
* via the `definition` "SlashCommandInfo".
|
|
@@ -3315,7 +3633,7 @@ export interface CommandsRespondToQueuedCommandRequest {
|
|
|
3315
3633
|
result: QueuedCommandResult;
|
|
3316
3634
|
}
|
|
3317
3635
|
/**
|
|
3318
|
-
*
|
|
3636
|
+
* Queued-command response indicating the host executed the command, with an optional flag to stop queue processing.
|
|
3319
3637
|
*
|
|
3320
3638
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3321
3639
|
* via the `definition` "QueuedCommandHandled".
|
|
@@ -3332,7 +3650,7 @@ export interface QueuedCommandHandled {
|
|
|
3332
3650
|
stopProcessingQueue?: boolean;
|
|
3333
3651
|
}
|
|
3334
3652
|
/**
|
|
3335
|
-
*
|
|
3653
|
+
* Queued-command response indicating the host did not execute the command and the queue may continue.
|
|
3336
3654
|
*
|
|
3337
3655
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3338
3656
|
* via the `definition` "QueuedCommandNotHandled".
|
|
@@ -3593,7 +3911,143 @@ export interface CurrentToolMetadata {
|
|
|
3593
3911
|
deferLoading?: boolean;
|
|
3594
3912
|
}
|
|
3595
3913
|
/**
|
|
3596
|
-
*
|
|
3914
|
+
* A file included in the redacted debug bundle.
|
|
3915
|
+
*
|
|
3916
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3917
|
+
* via the `definition` "DebugCollectLogsCollectedEntry".
|
|
3918
|
+
*/
|
|
3919
|
+
/** @experimental */
|
|
3920
|
+
export interface DebugCollectLogsCollectedEntry {
|
|
3921
|
+
/**
|
|
3922
|
+
* Relative path of the file in the staged bundle/archive.
|
|
3923
|
+
*/
|
|
3924
|
+
bundlePath: string;
|
|
3925
|
+
source: DebugCollectLogsSource;
|
|
3926
|
+
/**
|
|
3927
|
+
* Redacted output size in bytes.
|
|
3928
|
+
*/
|
|
3929
|
+
sizeBytes: number;
|
|
3930
|
+
}
|
|
3931
|
+
/**
|
|
3932
|
+
* A caller-provided server-local file or directory to include in the debug bundle.
|
|
3933
|
+
*
|
|
3934
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3935
|
+
* via the `definition` "DebugCollectLogsEntry".
|
|
3936
|
+
*/
|
|
3937
|
+
/** @experimental */
|
|
3938
|
+
export interface DebugCollectLogsEntry {
|
|
3939
|
+
kind: DebugCollectLogsEntryKind;
|
|
3940
|
+
/**
|
|
3941
|
+
* Server-local source path to read.
|
|
3942
|
+
*/
|
|
3943
|
+
path: string;
|
|
3944
|
+
/**
|
|
3945
|
+
* Relative path to use inside the staged bundle/archive.
|
|
3946
|
+
*/
|
|
3947
|
+
bundlePath: string;
|
|
3948
|
+
redaction?: DebugCollectLogsRedaction;
|
|
3949
|
+
/**
|
|
3950
|
+
* When true, collection fails if this entry cannot be read. Defaults to false, which records the entry in `skippedEntries`.
|
|
3951
|
+
*/
|
|
3952
|
+
required?: boolean;
|
|
3953
|
+
}
|
|
3954
|
+
/**
|
|
3955
|
+
* Built-in session diagnostics to include in the bundle. Omitted fields default to true.
|
|
3956
|
+
*
|
|
3957
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3958
|
+
* via the `definition` "DebugCollectLogsInclude".
|
|
3959
|
+
*/
|
|
3960
|
+
/** @experimental */
|
|
3961
|
+
export interface DebugCollectLogsInclude {
|
|
3962
|
+
/**
|
|
3963
|
+
* Include the session event log (`events.jsonl`). Defaults to true.
|
|
3964
|
+
*/
|
|
3965
|
+
events?: boolean;
|
|
3966
|
+
/**
|
|
3967
|
+
* Include process logs for the session. Defaults to true.
|
|
3968
|
+
*/
|
|
3969
|
+
processLogs?: boolean;
|
|
3970
|
+
/**
|
|
3971
|
+
* Include interactive shell logs written under the session's `shell-logs` directory. Defaults to true.
|
|
3972
|
+
*/
|
|
3973
|
+
shellLogs?: boolean;
|
|
3974
|
+
/**
|
|
3975
|
+
* Server-local path to the session's events.jsonl file. Internal callers normally omit this and let the runtime derive it from the session.
|
|
3976
|
+
*/
|
|
3977
|
+
eventsPath?: string;
|
|
3978
|
+
/**
|
|
3979
|
+
* Server-local path to the current process log. When set, it is included as `process.log` and its directory is searched for prior logs from the same session.
|
|
3980
|
+
*/
|
|
3981
|
+
currentProcessLogPath?: string;
|
|
3982
|
+
/**
|
|
3983
|
+
* Server-local process log directory to search when `currentProcessLogPath` is unavailable, useful for collecting logs for inactive sessions.
|
|
3984
|
+
*/
|
|
3985
|
+
processLogDirectory?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* Maximum number of previous process logs to include. Defaults to 5.
|
|
3988
|
+
*/
|
|
3989
|
+
previousProcessLogLimit?: number;
|
|
3990
|
+
}
|
|
3991
|
+
/**
|
|
3992
|
+
* Options for collecting a redacted session debug bundle.
|
|
3993
|
+
*
|
|
3994
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3995
|
+
* via the `definition` "DebugCollectLogsRequest".
|
|
3996
|
+
*/
|
|
3997
|
+
/** @experimental */
|
|
3998
|
+
export interface DebugCollectLogsRequest {
|
|
3999
|
+
destination: DebugCollectLogsDestination;
|
|
4000
|
+
include?: DebugCollectLogsInclude;
|
|
4001
|
+
/**
|
|
4002
|
+
* Caller-provided server-local files or directories to include in addition to the runtime's built-in session diagnostics. This lets host applications add their own diagnostics without changing the API shape.
|
|
4003
|
+
*/
|
|
4004
|
+
additionalEntries?: DebugCollectLogsEntry[];
|
|
4005
|
+
}
|
|
4006
|
+
/**
|
|
4007
|
+
* Result of collecting a redacted debug bundle.
|
|
4008
|
+
*
|
|
4009
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4010
|
+
* via the `definition` "DebugCollectLogsResult".
|
|
4011
|
+
*/
|
|
4012
|
+
/** @experimental */
|
|
4013
|
+
export interface DebugCollectLogsResult {
|
|
4014
|
+
kind: DebugCollectLogsResultKind;
|
|
4015
|
+
/**
|
|
4016
|
+
* Actual archive path or staging directory path written. This may differ from the requested path when no-overwrite suffixing or fallback-to-temp-directory was needed.
|
|
4017
|
+
*/
|
|
4018
|
+
path: string;
|
|
4019
|
+
/**
|
|
4020
|
+
* Files included in the redacted bundle.
|
|
4021
|
+
*/
|
|
4022
|
+
entries: DebugCollectLogsCollectedEntry[];
|
|
4023
|
+
/**
|
|
4024
|
+
* Optional files or directories that could not be included.
|
|
4025
|
+
*/
|
|
4026
|
+
skippedEntries?: DebugCollectLogsSkippedEntry[];
|
|
4027
|
+
}
|
|
4028
|
+
/**
|
|
4029
|
+
* An optional debug bundle entry that could not be included.
|
|
4030
|
+
*
|
|
4031
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4032
|
+
* via the `definition` "DebugCollectLogsSkippedEntry".
|
|
4033
|
+
*/
|
|
4034
|
+
/** @experimental */
|
|
4035
|
+
export interface DebugCollectLogsSkippedEntry {
|
|
4036
|
+
/**
|
|
4037
|
+
* Relative path requested for this bundle entry.
|
|
4038
|
+
*/
|
|
4039
|
+
bundlePath: string;
|
|
4040
|
+
/**
|
|
4041
|
+
* Server-local source path that could not be read.
|
|
4042
|
+
*/
|
|
4043
|
+
path?: string;
|
|
4044
|
+
/**
|
|
4045
|
+
* Reason the entry was skipped.
|
|
4046
|
+
*/
|
|
4047
|
+
reason: string;
|
|
4048
|
+
}
|
|
4049
|
+
/**
|
|
4050
|
+
* MCP server discovered by `mcp.discover`, with config source, optional plugin source, transport type, and enabled state.
|
|
3597
4051
|
*
|
|
3598
4052
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3599
4053
|
* via the `definition` "DiscoveredMcpServer".
|
|
@@ -3747,7 +4201,7 @@ export interface ExecuteCommandResult {
|
|
|
3747
4201
|
error?: string;
|
|
3748
4202
|
}
|
|
3749
4203
|
/**
|
|
3750
|
-
*
|
|
4204
|
+
* Discovered extension metadata, including source-qualified ID, name, discovery source, status, and optional process ID.
|
|
3751
4205
|
*
|
|
3752
4206
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3753
4207
|
* via the `definition` "Extension".
|
|
@@ -4263,7 +4717,7 @@ export interface GitHubTelemetryEvent {
|
|
|
4263
4717
|
client?: GitHubTelemetryClientInfo;
|
|
4264
4718
|
}
|
|
4265
4719
|
/**
|
|
4266
|
-
* Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding
|
|
4720
|
+
* Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding during the `server.connect` handshake.
|
|
4267
4721
|
*
|
|
4268
4722
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4269
4723
|
* via the `definition` "GitHubTelemetryNotification".
|
|
@@ -4271,9 +4725,9 @@ export interface GitHubTelemetryEvent {
|
|
|
4271
4725
|
/** @experimental */
|
|
4272
4726
|
export interface GitHubTelemetryNotification {
|
|
4273
4727
|
/**
|
|
4274
|
-
* Session the telemetry event belongs to.
|
|
4728
|
+
* Session the telemetry event belongs to, when it is session-scoped. Omitted for sessionless events (for example, `server.sendTelemetry` calls with no session id), which are still forwarded to opted-in connections.
|
|
4275
4729
|
*/
|
|
4276
|
-
sessionId
|
|
4730
|
+
sessionId?: string;
|
|
4277
4731
|
/**
|
|
4278
4732
|
* Whether this is a restricted telemetry event (cli.restricted_telemetry). Hosts must route restricted events to first-party Microsoft stores only.
|
|
4279
4733
|
*/
|
|
@@ -4449,7 +4903,7 @@ export interface HistoryTruncateResult {
|
|
|
4449
4903
|
eventsRemoved: number;
|
|
4450
4904
|
}
|
|
4451
4905
|
/**
|
|
4452
|
-
*
|
|
4906
|
+
* Installed plugin record from global state, with marketplace, version, install time, enabled state, cache path, and source.
|
|
4453
4907
|
*
|
|
4454
4908
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4455
4909
|
* via the `definition` "InstalledPlugin".
|
|
@@ -4483,7 +4937,7 @@ export interface InstalledPlugin {
|
|
|
4483
4937
|
source?: InstalledPluginSource;
|
|
4484
4938
|
}
|
|
4485
4939
|
/**
|
|
4486
|
-
*
|
|
4940
|
+
* Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref, and optional subpath.
|
|
4487
4941
|
*
|
|
4488
4942
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4489
4943
|
* via the `definition` "InstalledPluginSourceGitHub".
|
|
@@ -4499,7 +4953,7 @@ export interface InstalledPluginSourceGitHub {
|
|
|
4499
4953
|
path?: string;
|
|
4500
4954
|
}
|
|
4501
4955
|
/**
|
|
4502
|
-
*
|
|
4956
|
+
* Source descriptor for a direct URL plugin install, with URL, optional ref, and optional subpath.
|
|
4503
4957
|
*
|
|
4504
4958
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4505
4959
|
* via the `definition` "InstalledPluginSourceUrl".
|
|
@@ -4515,7 +4969,7 @@ export interface InstalledPluginSourceUrl {
|
|
|
4515
4969
|
path?: string;
|
|
4516
4970
|
}
|
|
4517
4971
|
/**
|
|
4518
|
-
*
|
|
4972
|
+
* Source descriptor for a direct local plugin install, with a local filesystem path.
|
|
4519
4973
|
*
|
|
4520
4974
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4521
4975
|
* via the `definition` "InstalledPluginSourceLocal".
|
|
@@ -4558,7 +5012,7 @@ export interface InstalledPluginInfo {
|
|
|
4558
5012
|
enabled: boolean;
|
|
4559
5013
|
}
|
|
4560
5014
|
/**
|
|
4561
|
-
*
|
|
5015
|
+
* Canonical file or directory where custom instructions can be discovered or created, with location, kind, preference, and project path.
|
|
4562
5016
|
*
|
|
4563
5017
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4564
5018
|
* via the `definition` "InstructionDiscoveryPath".
|
|
@@ -4641,7 +5095,7 @@ export interface InstructionsGetSourcesResult {
|
|
|
4641
5095
|
sources: InstructionSource[];
|
|
4642
5096
|
}
|
|
4643
5097
|
/**
|
|
4644
|
-
*
|
|
5098
|
+
* Loaded instruction source for a session, including path, content, category, location, applicability, and optional description.
|
|
4645
5099
|
*
|
|
4646
5100
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4647
5101
|
* via the `definition` "InstructionSource".
|
|
@@ -4761,6 +5215,18 @@ export interface LlmInferenceHttpRequestStartRequest {
|
|
|
4761
5215
|
url: string;
|
|
4762
5216
|
headers: LlmInferenceHeaders;
|
|
4763
5217
|
transport?: LlmInferenceHttpRequestStartTransport;
|
|
5218
|
+
/**
|
|
5219
|
+
* Stable per-agent-instance id attributing this request to a specific agent trajectory. Present when the request originates from an agent turn; absent for requests issued outside any agent context (e.g. some SDK callers). A request with an `agentId` but no `parentAgentId` is a root-agent request; one carrying both is a subagent request. Sourced from the runtime's per-request agent context and surfaced on the envelope independently of transport, so it is available for both first-party (CAPI) and BYOK/custom-provider requests; on the CAPI transport the runtime derives the upstream `X-Agent-Task-Id` header from this same context. Consumers routing each provider call to a training trajectory should key on this rather than on lifecycle events, since it is available on the request path before sampling.
|
|
5220
|
+
*/
|
|
5221
|
+
agentId?: string;
|
|
5222
|
+
/**
|
|
5223
|
+
* Id of the parent agent that spawned the agent issuing this request. Present only for subagent requests; absent for root-agent requests and non-agent requests. Combined with `agentId`, this lets consumers attribute a call to a child trajectory versus the root. Like `agentId`, it comes from the runtime's per-request agent context independently of transport; on the CAPI transport the runtime derives the upstream `X-Parent-Agent-Id` header from this same context.
|
|
5224
|
+
*/
|
|
5225
|
+
parentAgentId?: string;
|
|
5226
|
+
/**
|
|
5227
|
+
* Coarse classification of the interaction that produced this request. Open string for forward-compatibility; known values include `conversation-agent`, `conversation-subagent`, `conversation-sampling`, `conversation-background`, `conversation-compaction`, and `conversation-user`. Absent when the runtime did not classify the request. Comes from the runtime's per-request agent context independently of transport; on the CAPI transport the runtime derives the upstream `X-Interaction-Type` header from this same context.
|
|
5228
|
+
*/
|
|
5229
|
+
interactionType?: string;
|
|
4764
5230
|
}
|
|
4765
5231
|
/**
|
|
4766
5232
|
* Acknowledgement. Returning successfully simply means the SDK accepted the start frame; it does not imply the request will succeed.
|
|
@@ -4876,7 +5342,7 @@ export interface LlmInferenceSetProviderResult {
|
|
|
4876
5342
|
success: boolean;
|
|
4877
5343
|
}
|
|
4878
5344
|
/**
|
|
4879
|
-
*
|
|
5345
|
+
* Persisted local session metadata, including identifiers, timestamps, summary/name, client, context, detached state, and task ID.
|
|
4880
5346
|
*
|
|
4881
5347
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4882
5348
|
* via the `definition` "LocalSessionMetadataValue".
|
|
@@ -5089,7 +5555,7 @@ export interface MarketplaceListResult {
|
|
|
5089
5555
|
marketplaces: MarketplaceInfo[];
|
|
5090
5556
|
}
|
|
5091
5557
|
/**
|
|
5092
|
-
*
|
|
5558
|
+
* Per-marketplace refresh result, including marketplace name, success flag, and optional failure error.
|
|
5093
5559
|
*
|
|
5094
5560
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5095
5561
|
* via the `definition` "MarketplaceRefreshEntry".
|
|
@@ -5140,7 +5606,7 @@ export interface MarketplaceRemoveResult {
|
|
|
5140
5606
|
dependentPlugins?: string[];
|
|
5141
5607
|
}
|
|
5142
5608
|
/**
|
|
5143
|
-
*
|
|
5609
|
+
* MCP server allowed by policy, with server name and optional PII-free explanatory note.
|
|
5144
5610
|
*
|
|
5145
5611
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5146
5612
|
* via the `definition` "McpAllowedServer".
|
|
@@ -5355,7 +5821,7 @@ export interface McpAppsReadResourceResult {
|
|
|
5355
5821
|
contents: McpAppsResourceContent[];
|
|
5356
5822
|
}
|
|
5357
5823
|
/**
|
|
5358
|
-
*
|
|
5824
|
+
* MCP Apps resource content with URI, optional MIME type, text or base64 blob, and resource metadata.
|
|
5359
5825
|
*
|
|
5360
5826
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5361
5827
|
* via the `definition` "McpAppsResourceContent".
|
|
@@ -5743,7 +6209,7 @@ export interface McpExecuteSamplingResult {
|
|
|
5743
6209
|
[k: string]: unknown | undefined;
|
|
5744
6210
|
}
|
|
5745
6211
|
/**
|
|
5746
|
-
*
|
|
6212
|
+
* MCP server filtered by policy, with name, reason, optional redacted reason, and enterprise login.
|
|
5747
6213
|
*
|
|
5748
6214
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5749
6215
|
* via the `definition` "McpFilteredServer".
|
|
@@ -5918,7 +6384,7 @@ export interface McpListToolsResult {
|
|
|
5918
6384
|
tools: McpTools[];
|
|
5919
6385
|
}
|
|
5920
6386
|
/**
|
|
5921
|
-
*
|
|
6387
|
+
* MCP tool metadata with tool name and optional description.
|
|
5922
6388
|
*
|
|
5923
6389
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5924
6390
|
* via the `definition` "McpTools".
|
|
@@ -6012,15 +6478,6 @@ export interface McpOauthLoginResult {
|
|
|
6012
6478
|
*/
|
|
6013
6479
|
authorizationUrl?: string;
|
|
6014
6480
|
}
|
|
6015
|
-
/**
|
|
6016
|
-
* Empty result after recording the MCP OAuth response.
|
|
6017
|
-
*
|
|
6018
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6019
|
-
* via the `definition` "McpOauthRespondResult".
|
|
6020
|
-
*/
|
|
6021
|
-
/** @experimental */
|
|
6022
|
-
export interface McpOauthRespondResult {
|
|
6023
|
-
}
|
|
6024
6481
|
/**
|
|
6025
6482
|
* Indicates whether the auto-managed `github` MCP server was removed (false when nothing to remove).
|
|
6026
6483
|
*
|
|
@@ -6050,7 +6507,7 @@ export interface McpSamplingExecutionResult {
|
|
|
6050
6507
|
error?: string;
|
|
6051
6508
|
}
|
|
6052
6509
|
/**
|
|
6053
|
-
*
|
|
6510
|
+
* MCP server status entry, including config source/plugin source and any connection error.
|
|
6054
6511
|
*
|
|
6055
6512
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6056
6513
|
* via the `definition` "McpServer".
|
|
@@ -6401,7 +6858,7 @@ export interface MetadataSnapshotRemoteMetadataRepository {
|
|
|
6401
6858
|
branch: string;
|
|
6402
6859
|
}
|
|
6403
6860
|
/**
|
|
6404
|
-
*
|
|
6861
|
+
* Copilot model metadata, including identifier, display name, capabilities, policy, billing, reasoning efforts, and picker categories.
|
|
6405
6862
|
*
|
|
6406
6863
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6407
6864
|
* via the `definition` "Model".
|
|
@@ -6765,6 +7222,7 @@ export interface ModelSwitchToRequest {
|
|
|
6765
7222
|
*/
|
|
6766
7223
|
reasoningEffort?: string;
|
|
6767
7224
|
reasoningSummary?: ReasoningSummary;
|
|
7225
|
+
verbosity?: Verbosity;
|
|
6768
7226
|
modelCapabilities?: ModelCapabilitiesOverride;
|
|
6769
7227
|
contextTier?: ContextTier;
|
|
6770
7228
|
}
|
|
@@ -6896,7 +7354,7 @@ export interface NameSetRequest {
|
|
|
6896
7354
|
name: string;
|
|
6897
7355
|
}
|
|
6898
7356
|
/**
|
|
6899
|
-
*
|
|
7357
|
+
* Content-exclusion policy supplied to `session.options.update`, with rules, last-updated data, and scope.
|
|
6900
7358
|
*
|
|
6901
7359
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6902
7360
|
* via the `definition` "OptionsUpdateAdditionalContentExclusionPolicy".
|
|
@@ -6908,7 +7366,7 @@ export interface OptionsUpdateAdditionalContentExclusionPolicy {
|
|
|
6908
7366
|
scope: OptionsUpdateAdditionalContentExclusionPolicyScope;
|
|
6909
7367
|
}
|
|
6910
7368
|
/**
|
|
6911
|
-
*
|
|
7369
|
+
* Single content-exclusion rule supplied to `session.options.update`, with paths, match conditions, and source.
|
|
6912
7370
|
*
|
|
6913
7371
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6914
7372
|
* via the `definition` "OptionsUpdateAdditionalContentExclusionPolicyRule".
|
|
@@ -6921,7 +7379,7 @@ export interface OptionsUpdateAdditionalContentExclusionPolicyRule {
|
|
|
6921
7379
|
source: OptionsUpdateAdditionalContentExclusionPolicyRuleSource;
|
|
6922
7380
|
}
|
|
6923
7381
|
/**
|
|
6924
|
-
*
|
|
7382
|
+
* Source descriptor for a `session.options.update` content-exclusion rule, with source name and type.
|
|
6925
7383
|
*
|
|
6926
7384
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6927
7385
|
* via the `definition` "OptionsUpdateAdditionalContentExclusionPolicyRuleSource".
|
|
@@ -6932,7 +7390,7 @@ export interface OptionsUpdateAdditionalContentExclusionPolicyRuleSource {
|
|
|
6932
7390
|
type: string;
|
|
6933
7391
|
}
|
|
6934
7392
|
/**
|
|
6935
|
-
*
|
|
7393
|
+
* Pending permission prompt reconstructed from event history, with request ID and user-facing prompt details.
|
|
6936
7394
|
*
|
|
6937
7395
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6938
7396
|
* via the `definition` "PendingPermissionRequest".
|
|
@@ -6959,7 +7417,7 @@ export interface PendingPermissionRequestList {
|
|
|
6959
7417
|
items: PendingPermissionRequest[];
|
|
6960
7418
|
}
|
|
6961
7419
|
/**
|
|
6962
|
-
*
|
|
7420
|
+
* Permission-decision request variant to approve only the current permission request.
|
|
6963
7421
|
*
|
|
6964
7422
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6965
7423
|
* via the `definition` "PermissionDecisionApproveOnce".
|
|
@@ -6972,7 +7430,7 @@ export interface PermissionDecisionApproveOnce {
|
|
|
6972
7430
|
kind: "approve-once";
|
|
6973
7431
|
}
|
|
6974
7432
|
/**
|
|
6975
|
-
*
|
|
7433
|
+
* Permission-decision request variant to approve for the rest of the session, with optional tool approval or URL domain.
|
|
6976
7434
|
*
|
|
6977
7435
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6978
7436
|
* via the `definition` "PermissionDecisionApproveForSession".
|
|
@@ -6990,7 +7448,7 @@ export interface PermissionDecisionApproveForSession {
|
|
|
6990
7448
|
domain?: string;
|
|
6991
7449
|
}
|
|
6992
7450
|
/**
|
|
6993
|
-
*
|
|
7451
|
+
* Session-scoped approval details for specific command identifiers.
|
|
6994
7452
|
*
|
|
6995
7453
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6996
7454
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalCommands".
|
|
@@ -7007,7 +7465,7 @@ export interface PermissionDecisionApproveForSessionApprovalCommands {
|
|
|
7007
7465
|
commandIdentifiers: string[];
|
|
7008
7466
|
}
|
|
7009
7467
|
/**
|
|
7010
|
-
*
|
|
7468
|
+
* Session-scoped approval details for read-only filesystem operations.
|
|
7011
7469
|
*
|
|
7012
7470
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7013
7471
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalRead".
|
|
@@ -7020,7 +7478,7 @@ export interface PermissionDecisionApproveForSessionApprovalRead {
|
|
|
7020
7478
|
kind: "read";
|
|
7021
7479
|
}
|
|
7022
7480
|
/**
|
|
7023
|
-
*
|
|
7481
|
+
* Session-scoped approval details for filesystem write operations.
|
|
7024
7482
|
*
|
|
7025
7483
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7026
7484
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalWrite".
|
|
@@ -7033,7 +7491,7 @@ export interface PermissionDecisionApproveForSessionApprovalWrite {
|
|
|
7033
7491
|
kind: "write";
|
|
7034
7492
|
}
|
|
7035
7493
|
/**
|
|
7036
|
-
*
|
|
7494
|
+
* Session-scoped approval details for an MCP server tool, or all tools on the server when `toolName` is null.
|
|
7037
7495
|
*
|
|
7038
7496
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7039
7497
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalMcp".
|
|
@@ -7054,7 +7512,7 @@ export interface PermissionDecisionApproveForSessionApprovalMcp {
|
|
|
7054
7512
|
toolName: string | null;
|
|
7055
7513
|
}
|
|
7056
7514
|
/**
|
|
7057
|
-
*
|
|
7515
|
+
* Session-scoped approval details for MCP sampling requests from a server.
|
|
7058
7516
|
*
|
|
7059
7517
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7060
7518
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalMcpSampling".
|
|
@@ -7071,7 +7529,7 @@ export interface PermissionDecisionApproveForSessionApprovalMcpSampling {
|
|
|
7071
7529
|
serverName: string;
|
|
7072
7530
|
}
|
|
7073
7531
|
/**
|
|
7074
|
-
*
|
|
7532
|
+
* Session-scoped approval details for writes to long-term memory.
|
|
7075
7533
|
*
|
|
7076
7534
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7077
7535
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalMemory".
|
|
@@ -7084,7 +7542,7 @@ export interface PermissionDecisionApproveForSessionApprovalMemory {
|
|
|
7084
7542
|
kind: "memory";
|
|
7085
7543
|
}
|
|
7086
7544
|
/**
|
|
7087
|
-
*
|
|
7545
|
+
* Session-scoped approval details for a custom tool, keyed by tool name.
|
|
7088
7546
|
*
|
|
7089
7547
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7090
7548
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalCustomTool".
|
|
@@ -7101,7 +7559,7 @@ export interface PermissionDecisionApproveForSessionApprovalCustomTool {
|
|
|
7101
7559
|
toolName: string;
|
|
7102
7560
|
}
|
|
7103
7561
|
/**
|
|
7104
|
-
*
|
|
7562
|
+
* Session-scoped approval details for extension-management operations, optionally narrowed by operation.
|
|
7105
7563
|
*
|
|
7106
7564
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7107
7565
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalExtensionManagement".
|
|
@@ -7118,7 +7576,7 @@ export interface PermissionDecisionApproveForSessionApprovalExtensionManagement
|
|
|
7118
7576
|
operation?: string;
|
|
7119
7577
|
}
|
|
7120
7578
|
/**
|
|
7121
|
-
*
|
|
7579
|
+
* Session-scoped approval details for an extension's permission-gated capability access, keyed by extension name.
|
|
7122
7580
|
*
|
|
7123
7581
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7124
7582
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess".
|
|
@@ -7135,7 +7593,7 @@ export interface PermissionDecisionApproveForSessionApprovalExtensionPermissionA
|
|
|
7135
7593
|
extensionName: string;
|
|
7136
7594
|
}
|
|
7137
7595
|
/**
|
|
7138
|
-
*
|
|
7596
|
+
* Permission-decision request variant to approve and persist a permission for a project location, with approval details and location key.
|
|
7139
7597
|
*
|
|
7140
7598
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7141
7599
|
* via the `definition` "PermissionDecisionApproveForLocation".
|
|
@@ -7153,7 +7611,7 @@ export interface PermissionDecisionApproveForLocation {
|
|
|
7153
7611
|
locationKey: string;
|
|
7154
7612
|
}
|
|
7155
7613
|
/**
|
|
7156
|
-
*
|
|
7614
|
+
* Location-scoped approval details for specific command identifiers.
|
|
7157
7615
|
*
|
|
7158
7616
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7159
7617
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalCommands".
|
|
@@ -7170,7 +7628,7 @@ export interface PermissionDecisionApproveForLocationApprovalCommands {
|
|
|
7170
7628
|
commandIdentifiers: string[];
|
|
7171
7629
|
}
|
|
7172
7630
|
/**
|
|
7173
|
-
*
|
|
7631
|
+
* Location-scoped approval details for read-only filesystem operations.
|
|
7174
7632
|
*
|
|
7175
7633
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7176
7634
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalRead".
|
|
@@ -7183,7 +7641,7 @@ export interface PermissionDecisionApproveForLocationApprovalRead {
|
|
|
7183
7641
|
kind: "read";
|
|
7184
7642
|
}
|
|
7185
7643
|
/**
|
|
7186
|
-
*
|
|
7644
|
+
* Location-scoped approval details for filesystem write operations.
|
|
7187
7645
|
*
|
|
7188
7646
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7189
7647
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalWrite".
|
|
@@ -7196,7 +7654,7 @@ export interface PermissionDecisionApproveForLocationApprovalWrite {
|
|
|
7196
7654
|
kind: "write";
|
|
7197
7655
|
}
|
|
7198
7656
|
/**
|
|
7199
|
-
*
|
|
7657
|
+
* Location-scoped approval details for an MCP server tool, or all tools on the server when `toolName` is null.
|
|
7200
7658
|
*
|
|
7201
7659
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7202
7660
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalMcp".
|
|
@@ -7217,7 +7675,7 @@ export interface PermissionDecisionApproveForLocationApprovalMcp {
|
|
|
7217
7675
|
toolName: string | null;
|
|
7218
7676
|
}
|
|
7219
7677
|
/**
|
|
7220
|
-
*
|
|
7678
|
+
* Location-scoped approval details for MCP sampling requests from a server.
|
|
7221
7679
|
*
|
|
7222
7680
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7223
7681
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalMcpSampling".
|
|
@@ -7234,7 +7692,7 @@ export interface PermissionDecisionApproveForLocationApprovalMcpSampling {
|
|
|
7234
7692
|
serverName: string;
|
|
7235
7693
|
}
|
|
7236
7694
|
/**
|
|
7237
|
-
*
|
|
7695
|
+
* Location-scoped approval details for writes to long-term memory.
|
|
7238
7696
|
*
|
|
7239
7697
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7240
7698
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalMemory".
|
|
@@ -7247,7 +7705,7 @@ export interface PermissionDecisionApproveForLocationApprovalMemory {
|
|
|
7247
7705
|
kind: "memory";
|
|
7248
7706
|
}
|
|
7249
7707
|
/**
|
|
7250
|
-
*
|
|
7708
|
+
* Location-scoped approval details for a custom tool, keyed by tool name.
|
|
7251
7709
|
*
|
|
7252
7710
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7253
7711
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalCustomTool".
|
|
@@ -7264,7 +7722,7 @@ export interface PermissionDecisionApproveForLocationApprovalCustomTool {
|
|
|
7264
7722
|
toolName: string;
|
|
7265
7723
|
}
|
|
7266
7724
|
/**
|
|
7267
|
-
*
|
|
7725
|
+
* Location-scoped approval details for extension-management operations, optionally narrowed by operation.
|
|
7268
7726
|
*
|
|
7269
7727
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7270
7728
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalExtensionManagement".
|
|
@@ -7281,7 +7739,7 @@ export interface PermissionDecisionApproveForLocationApprovalExtensionManagement
|
|
|
7281
7739
|
operation?: string;
|
|
7282
7740
|
}
|
|
7283
7741
|
/**
|
|
7284
|
-
*
|
|
7742
|
+
* Location-scoped approval details for an extension's permission-gated capability access, keyed by extension name.
|
|
7285
7743
|
*
|
|
7286
7744
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7287
7745
|
* via the `definition` "PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess".
|
|
@@ -7298,7 +7756,7 @@ export interface PermissionDecisionApproveForLocationApprovalExtensionPermission
|
|
|
7298
7756
|
extensionName: string;
|
|
7299
7757
|
}
|
|
7300
7758
|
/**
|
|
7301
|
-
*
|
|
7759
|
+
* Permission-decision request variant to permanently approve a URL domain across sessions.
|
|
7302
7760
|
*
|
|
7303
7761
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7304
7762
|
* via the `definition` "PermissionDecisionApprovePermanently".
|
|
@@ -7315,7 +7773,7 @@ export interface PermissionDecisionApprovePermanently {
|
|
|
7315
7773
|
domain: string;
|
|
7316
7774
|
}
|
|
7317
7775
|
/**
|
|
7318
|
-
*
|
|
7776
|
+
* Permission-decision request variant to reject a pending permission request, with optional feedback.
|
|
7319
7777
|
*
|
|
7320
7778
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7321
7779
|
* via the `definition` "PermissionDecisionReject".
|
|
@@ -7332,7 +7790,7 @@ export interface PermissionDecisionReject {
|
|
|
7332
7790
|
feedback?: string;
|
|
7333
7791
|
}
|
|
7334
7792
|
/**
|
|
7335
|
-
*
|
|
7793
|
+
* Permission-decision variant indicating no user was available to confirm the request.
|
|
7336
7794
|
*
|
|
7337
7795
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7338
7796
|
* via the `definition` "PermissionDecisionUserNotAvailable".
|
|
@@ -7345,7 +7803,7 @@ export interface PermissionDecisionUserNotAvailable {
|
|
|
7345
7803
|
kind: "user-not-available";
|
|
7346
7804
|
}
|
|
7347
7805
|
/**
|
|
7348
|
-
*
|
|
7806
|
+
* Permission-decision variant indicating the request was approved.
|
|
7349
7807
|
*
|
|
7350
7808
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7351
7809
|
* via the `definition` "PermissionDecisionApproved".
|
|
@@ -7358,7 +7816,7 @@ export interface PermissionDecisionApproved {
|
|
|
7358
7816
|
kind: "approved";
|
|
7359
7817
|
}
|
|
7360
7818
|
/**
|
|
7361
|
-
*
|
|
7819
|
+
* Permission-decision variant indicating approval was remembered for the session, with approval details.
|
|
7362
7820
|
*
|
|
7363
7821
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7364
7822
|
* via the `definition` "PermissionDecisionApprovedForSession".
|
|
@@ -7372,7 +7830,7 @@ export interface PermissionDecisionApprovedForSession {
|
|
|
7372
7830
|
approval: UserToolSessionApproval;
|
|
7373
7831
|
}
|
|
7374
7832
|
/**
|
|
7375
|
-
*
|
|
7833
|
+
* Permission-decision variant indicating approval was persisted for a project location, with approval details and location key.
|
|
7376
7834
|
*
|
|
7377
7835
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7378
7836
|
* via the `definition` "PermissionDecisionApprovedForLocation".
|
|
@@ -7390,7 +7848,7 @@ export interface PermissionDecisionApprovedForLocation {
|
|
|
7390
7848
|
locationKey: string;
|
|
7391
7849
|
}
|
|
7392
7850
|
/**
|
|
7393
|
-
*
|
|
7851
|
+
* Permission-decision variant indicating the request was cancelled before use, with an optional reason.
|
|
7394
7852
|
*
|
|
7395
7853
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7396
7854
|
* via the `definition` "PermissionDecisionCancelled".
|
|
@@ -7407,7 +7865,7 @@ export interface PermissionDecisionCancelled {
|
|
|
7407
7865
|
reason?: string;
|
|
7408
7866
|
}
|
|
7409
7867
|
/**
|
|
7410
|
-
*
|
|
7868
|
+
* Permission-decision variant indicating explicit denial by permission rules, with the matching rules.
|
|
7411
7869
|
*
|
|
7412
7870
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7413
7871
|
* via the `definition` "PermissionDecisionDeniedByRules".
|
|
@@ -7424,7 +7882,7 @@ export interface PermissionDecisionDeniedByRules {
|
|
|
7424
7882
|
rules: PermissionRule[];
|
|
7425
7883
|
}
|
|
7426
7884
|
/**
|
|
7427
|
-
*
|
|
7885
|
+
* Permission-decision variant indicating no approval rule matched and user confirmation was unavailable.
|
|
7428
7886
|
*
|
|
7429
7887
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7430
7888
|
* via the `definition` "PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser".
|
|
@@ -7437,7 +7895,7 @@ export interface PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUse
|
|
|
7437
7895
|
kind: "denied-no-approval-rule-and-could-not-request-from-user";
|
|
7438
7896
|
}
|
|
7439
7897
|
/**
|
|
7440
|
-
*
|
|
7898
|
+
* Permission-decision variant indicating the user denied an interactive prompt, with optional feedback and force-reject flag.
|
|
7441
7899
|
*
|
|
7442
7900
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7443
7901
|
* via the `definition` "PermissionDecisionDeniedInteractivelyByUser".
|
|
@@ -7458,7 +7916,7 @@ export interface PermissionDecisionDeniedInteractivelyByUser {
|
|
|
7458
7916
|
forceReject?: boolean;
|
|
7459
7917
|
}
|
|
7460
7918
|
/**
|
|
7461
|
-
*
|
|
7919
|
+
* Permission-decision variant indicating denial by content-exclusion policy, with path and message.
|
|
7462
7920
|
*
|
|
7463
7921
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7464
7922
|
* via the `definition` "PermissionDecisionDeniedByContentExclusionPolicy".
|
|
@@ -7479,7 +7937,7 @@ export interface PermissionDecisionDeniedByContentExclusionPolicy {
|
|
|
7479
7937
|
message: string;
|
|
7480
7938
|
}
|
|
7481
7939
|
/**
|
|
7482
|
-
*
|
|
7940
|
+
* Permission-decision variant indicating denial by a permission request hook, with optional message and interrupt flag.
|
|
7483
7941
|
*
|
|
7484
7942
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7485
7943
|
* via the `definition` "PermissionDecisionDeniedByPermissionRequestHook".
|
|
@@ -7528,7 +7986,7 @@ export interface PermissionLocationAddToolApprovalParams {
|
|
|
7528
7986
|
approval: PermissionsLocationsAddToolApprovalDetails;
|
|
7529
7987
|
}
|
|
7530
7988
|
/**
|
|
7531
|
-
*
|
|
7989
|
+
* Location-persisted tool approval details for specific command identifiers.
|
|
7532
7990
|
*
|
|
7533
7991
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7534
7992
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsCommands".
|
|
@@ -7545,7 +8003,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsCommands {
|
|
|
7545
8003
|
commandIdentifiers: string[];
|
|
7546
8004
|
}
|
|
7547
8005
|
/**
|
|
7548
|
-
*
|
|
8006
|
+
* Location-persisted tool approval details for read-only filesystem operations.
|
|
7549
8007
|
*
|
|
7550
8008
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7551
8009
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsRead".
|
|
@@ -7558,7 +8016,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsRead {
|
|
|
7558
8016
|
kind: "read";
|
|
7559
8017
|
}
|
|
7560
8018
|
/**
|
|
7561
|
-
*
|
|
8019
|
+
* Location-persisted tool approval details for filesystem write operations.
|
|
7562
8020
|
*
|
|
7563
8021
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7564
8022
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsWrite".
|
|
@@ -7571,7 +8029,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsWrite {
|
|
|
7571
8029
|
kind: "write";
|
|
7572
8030
|
}
|
|
7573
8031
|
/**
|
|
7574
|
-
*
|
|
8032
|
+
* Location-persisted tool approval details for an MCP server tool, or all tools when `toolName` is null.
|
|
7575
8033
|
*
|
|
7576
8034
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7577
8035
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsMcp".
|
|
@@ -7592,7 +8050,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsMcp {
|
|
|
7592
8050
|
toolName: string | null;
|
|
7593
8051
|
}
|
|
7594
8052
|
/**
|
|
7595
|
-
*
|
|
8053
|
+
* Location-persisted tool approval details for MCP sampling requests from a server.
|
|
7596
8054
|
*
|
|
7597
8055
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7598
8056
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsMcpSampling".
|
|
@@ -7609,7 +8067,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsMcpSampling {
|
|
|
7609
8067
|
serverName: string;
|
|
7610
8068
|
}
|
|
7611
8069
|
/**
|
|
7612
|
-
*
|
|
8070
|
+
* Location-persisted tool approval details for writes to long-term memory.
|
|
7613
8071
|
*
|
|
7614
8072
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7615
8073
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsMemory".
|
|
@@ -7622,7 +8080,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsMemory {
|
|
|
7622
8080
|
kind: "memory";
|
|
7623
8081
|
}
|
|
7624
8082
|
/**
|
|
7625
|
-
*
|
|
8083
|
+
* Location-persisted tool approval details for a custom tool, keyed by tool name.
|
|
7626
8084
|
*
|
|
7627
8085
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7628
8086
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsCustomTool".
|
|
@@ -7639,7 +8097,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsCustomTool {
|
|
|
7639
8097
|
toolName: string;
|
|
7640
8098
|
}
|
|
7641
8099
|
/**
|
|
7642
|
-
*
|
|
8100
|
+
* Location-persisted tool approval details for extension-management operations, optionally narrowed by operation.
|
|
7643
8101
|
*
|
|
7644
8102
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7645
8103
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsExtensionManagement".
|
|
@@ -7656,7 +8114,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsExtensionManagement {
|
|
|
7656
8114
|
operation?: string;
|
|
7657
8115
|
}
|
|
7658
8116
|
/**
|
|
7659
|
-
*
|
|
8117
|
+
* Location-persisted tool approval details for an extension's permission-gated capability access, keyed by extension name.
|
|
7660
8118
|
*
|
|
7661
8119
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7662
8120
|
* via the `definition` "PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess".
|
|
@@ -7906,7 +8364,7 @@ export interface PermissionRulesSet {
|
|
|
7906
8364
|
denied: PermissionRule[];
|
|
7907
8365
|
}
|
|
7908
8366
|
/**
|
|
7909
|
-
*
|
|
8367
|
+
* Content-exclusion policy supplied to `session.permissions.configure`, with rules, last-updated data, and scope.
|
|
7910
8368
|
*
|
|
7911
8369
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7912
8370
|
* via the `definition` "PermissionsConfigureAdditionalContentExclusionPolicy".
|
|
@@ -7918,7 +8376,7 @@ export interface PermissionsConfigureAdditionalContentExclusionPolicy {
|
|
|
7918
8376
|
scope: PermissionsConfigureAdditionalContentExclusionPolicyScope;
|
|
7919
8377
|
}
|
|
7920
8378
|
/**
|
|
7921
|
-
*
|
|
8379
|
+
* Single content-exclusion rule supplied to `session.permissions.configure`, with paths, match conditions, and source.
|
|
7922
8380
|
*
|
|
7923
8381
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7924
8382
|
* via the `definition` "PermissionsConfigureAdditionalContentExclusionPolicyRule".
|
|
@@ -7931,7 +8389,7 @@ export interface PermissionsConfigureAdditionalContentExclusionPolicyRule {
|
|
|
7931
8389
|
source: PermissionsConfigureAdditionalContentExclusionPolicyRuleSource;
|
|
7932
8390
|
}
|
|
7933
8391
|
/**
|
|
7934
|
-
*
|
|
8392
|
+
* Source descriptor for a `session.permissions.configure` content-exclusion rule, with source name and type.
|
|
7935
8393
|
*
|
|
7936
8394
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7937
8395
|
* via the `definition` "PermissionsConfigureAdditionalContentExclusionPolicyRuleSource".
|
|
@@ -8145,17 +8603,22 @@ export interface PermissionsResetSessionApprovalsResult {
|
|
|
8145
8603
|
success: boolean;
|
|
8146
8604
|
}
|
|
8147
8605
|
/**
|
|
8148
|
-
*
|
|
8606
|
+
* Allow-all mode to apply for the session.
|
|
8149
8607
|
*
|
|
8150
8608
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8151
8609
|
* via the `definition` "PermissionsSetAllowAllRequest".
|
|
8152
8610
|
*/
|
|
8153
8611
|
/** @experimental */
|
|
8154
8612
|
export interface PermissionsSetAllowAllRequest {
|
|
8613
|
+
mode?: PermissionsAllowAllMode;
|
|
8155
8614
|
/**
|
|
8156
|
-
*
|
|
8615
|
+
* Legacy full allow-all toggle. Prefer `mode`; when `mode` is omitted, `enabled: true` is treated as `mode: "on"` and any other value is treated as `mode: "off"`.
|
|
8157
8616
|
*/
|
|
8158
|
-
enabled
|
|
8617
|
+
enabled?: boolean;
|
|
8618
|
+
/**
|
|
8619
|
+
* Optional model id for the `auto` mode auto-approval LLM judging. Only meaningful when `mode` is `auto`; ignored otherwise. When omitted, the session's active model is used.
|
|
8620
|
+
*/
|
|
8621
|
+
model?: string;
|
|
8159
8622
|
source?: PermissionsSetAllowAllSource;
|
|
8160
8623
|
}
|
|
8161
8624
|
/**
|
|
@@ -8378,7 +8841,7 @@ export interface PlanUpdateRequest {
|
|
|
8378
8841
|
content: string;
|
|
8379
8842
|
}
|
|
8380
8843
|
/**
|
|
8381
|
-
*
|
|
8844
|
+
* Session plugin metadata, with name, marketplace, optional version, and enabled state.
|
|
8382
8845
|
*
|
|
8383
8846
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8384
8847
|
* via the `definition` "Plugin".
|
|
@@ -8563,6 +9026,10 @@ export interface PluginsReloadRequest {
|
|
|
8563
9026
|
* Re-load user, plugin, and (subject to `deferRepoHooks`) repo hooks. Defaults to true. Has no effect when the host has not registered a hook reloader (e.g. remote sessions).
|
|
8564
9027
|
*/
|
|
8565
9028
|
reloadHooks?: boolean;
|
|
9029
|
+
/**
|
|
9030
|
+
* Re-discover and relaunch subprocess extensions (including plugin-shipped extensions) after refreshing plugins. Defaults to true. Has no effect when the session has no active extension controller (e.g. extensions were not requested for the session).
|
|
9031
|
+
*/
|
|
9032
|
+
reloadExtensions?: boolean;
|
|
8566
9033
|
/**
|
|
8567
9034
|
* When true, skip repo-level hooks during the hook reload. Use before folder trust is confirmed; load them post-trust via `sessions.loadDeferredRepoHooks`.
|
|
8568
9035
|
*/
|
|
@@ -8599,7 +9066,7 @@ export interface PluginsUpdateRequest {
|
|
|
8599
9066
|
name: string;
|
|
8600
9067
|
}
|
|
8601
9068
|
/**
|
|
8602
|
-
*
|
|
9069
|
+
* Per-plugin result from updating all plugins, with versions, skills installed, success flag, and optional error.
|
|
8603
9070
|
*
|
|
8604
9071
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8605
9072
|
* via the `definition` "PluginUpdateAllEntry".
|
|
@@ -9351,7 +9818,7 @@ export interface PushAttachmentBlob {
|
|
|
9351
9818
|
displayName?: string;
|
|
9352
9819
|
}
|
|
9353
9820
|
/**
|
|
9354
|
-
*
|
|
9821
|
+
* User-facing pending queue entry, with kind and display text for a queued message, slash command, or model change.
|
|
9355
9822
|
*
|
|
9356
9823
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9357
9824
|
* via the `definition` "QueuePendingItems".
|
|
@@ -9403,7 +9870,7 @@ export interface QueueRemoveMostRecentResult {
|
|
|
9403
9870
|
/** @experimental */
|
|
9404
9871
|
export interface RegisterEventInterestParams {
|
|
9405
9872
|
/**
|
|
9406
|
-
* The event type the consumer wants the runtime to treat as 'observed' for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. `mcp.oauth_required`: when interest is registered the runtime delegates
|
|
9873
|
+
* The event type the consumer wants the runtime to treat as 'observed' for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. `mcp.oauth_required`: when interest is registered the runtime delegates OAuth token acquisition to the consumer; when no interest is registered OAuth-required servers become needs-auth). SDK clients that long-poll events do NOT automatically appear as listeners to these gating checks — they must explicitly call `registerInterest` for each event type they want the runtime to count as having a consumer. Multiple registrations for the same event type from the same or different consumers are tracked independently and must each be released. See: `mcp.oauth_required`, `sampling.requested`, `auto_mode_switch.requested`, `session_limits_exhausted.requested`, `user_input.requested`, `elicitation.requested`, `command.queued`, `exit_plan_mode.requested`.
|
|
9407
9874
|
*/
|
|
9408
9875
|
eventType: string;
|
|
9409
9876
|
}
|
|
@@ -9836,14 +10303,6 @@ export interface SandboxConfigUserPolicyNetwork {
|
|
|
9836
10303
|
* Whether traffic to local/loopback addresses is allowed.
|
|
9837
10304
|
*/
|
|
9838
10305
|
allowLocalNetwork?: boolean;
|
|
9839
|
-
/**
|
|
9840
|
-
* Hosts allowed in addition to the base policy.
|
|
9841
|
-
*/
|
|
9842
|
-
allowedHosts?: string[];
|
|
9843
|
-
/**
|
|
9844
|
-
* Hosts explicitly blocked.
|
|
9845
|
-
*/
|
|
9846
|
-
blockedHosts?: string[];
|
|
9847
10306
|
}
|
|
9848
10307
|
/**
|
|
9849
10308
|
* macOS seatbelt-specific options.
|
|
@@ -9882,7 +10341,7 @@ export interface SandboxConfigUserPolicyExperimentalSeatbelt {
|
|
|
9882
10341
|
keychainAccess?: boolean;
|
|
9883
10342
|
}
|
|
9884
10343
|
/**
|
|
9885
|
-
*
|
|
10344
|
+
* Scheduled prompt entry with ID, timing (`intervalMs`, `cron`, or `at`), prompt text, recurrence, and next run time.
|
|
9886
10345
|
*
|
|
9887
10346
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9888
10347
|
* via the `definition` "ScheduleEntry".
|
|
@@ -10102,7 +10561,7 @@ export interface ServerInstructionSourceList {
|
|
|
10102
10561
|
sources: InstructionSource[];
|
|
10103
10562
|
}
|
|
10104
10563
|
/**
|
|
10105
|
-
*
|
|
10564
|
+
* Server-side skill metadata, including name, description, source, enabled/invocable state, path, project path, and argument hint.
|
|
10106
10565
|
*
|
|
10107
10566
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10108
10567
|
* via the `definition` "ServerSkill".
|
|
@@ -10353,7 +10812,7 @@ export interface SessionFsReaddirResult {
|
|
|
10353
10812
|
error?: SessionFsError;
|
|
10354
10813
|
}
|
|
10355
10814
|
/**
|
|
10356
|
-
*
|
|
10815
|
+
* Directory entry returned by session filesystem `readdirWithTypes`, with name and entry type.
|
|
10357
10816
|
*
|
|
10358
10817
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10359
10818
|
* via the `definition` "SessionFsReaddirWithTypesEntry".
|
|
@@ -10657,7 +11116,7 @@ export interface SessionFsWriteFileRequest {
|
|
|
10657
11116
|
mode?: number;
|
|
10658
11117
|
}
|
|
10659
11118
|
/**
|
|
10660
|
-
*
|
|
11119
|
+
* Installed plugin record for a session, with marketplace, version, install time, enabled state, cache path, and source.
|
|
10661
11120
|
*
|
|
10662
11121
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10663
11122
|
* via the `definition` "SessionInstalledPlugin".
|
|
@@ -10691,7 +11150,7 @@ export interface SessionInstalledPlugin {
|
|
|
10691
11150
|
source?: SessionInstalledPluginSource;
|
|
10692
11151
|
}
|
|
10693
11152
|
/**
|
|
10694
|
-
*
|
|
11153
|
+
* Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref, and optional subpath.
|
|
10695
11154
|
*
|
|
10696
11155
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10697
11156
|
* via the `definition` "SessionInstalledPluginSourceGitHub".
|
|
@@ -10707,7 +11166,7 @@ export interface SessionInstalledPluginSourceGitHub {
|
|
|
10707
11166
|
path?: string;
|
|
10708
11167
|
}
|
|
10709
11168
|
/**
|
|
10710
|
-
*
|
|
11169
|
+
* Source descriptor for a direct URL plugin install, with URL, optional ref, and optional subpath.
|
|
10711
11170
|
*
|
|
10712
11171
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10713
11172
|
* via the `definition` "SessionInstalledPluginSourceUrl".
|
|
@@ -10723,7 +11182,7 @@ export interface SessionInstalledPluginSourceUrl {
|
|
|
10723
11182
|
path?: string;
|
|
10724
11183
|
}
|
|
10725
11184
|
/**
|
|
10726
|
-
*
|
|
11185
|
+
* Source descriptor for a direct local plugin install, with a local filesystem path.
|
|
10727
11186
|
*
|
|
10728
11187
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10729
11188
|
* via the `definition` "SessionInstalledPluginSourceLocal".
|
|
@@ -10898,6 +11357,7 @@ export interface SessionOpenOptions {
|
|
|
10898
11357
|
*/
|
|
10899
11358
|
reasoningEffort?: string;
|
|
10900
11359
|
reasoningSummary?: SessionOpenOptionsReasoningSummary;
|
|
11360
|
+
verbosity?: Verbosity;
|
|
10901
11361
|
/**
|
|
10902
11362
|
* Identifier of the client driving the session.
|
|
10903
11363
|
*/
|
|
@@ -10914,6 +11374,10 @@ export interface SessionOpenOptions {
|
|
|
10914
11374
|
* Stable integration identifier for analytics.
|
|
10915
11375
|
*/
|
|
10916
11376
|
integrationId?: string;
|
|
11377
|
+
/**
|
|
11378
|
+
* Opt-in: self-fetch and enforce enterprise managed settings at session bootstrap.
|
|
11379
|
+
*/
|
|
11380
|
+
enableManagedSettings?: boolean;
|
|
10917
11381
|
/**
|
|
10918
11382
|
* Feature-flag values resolved by the host.
|
|
10919
11383
|
*/
|
|
@@ -11091,7 +11555,7 @@ export interface SessionOpenOptions {
|
|
|
11091
11555
|
sessionCapabilities?: SessionCapability[];
|
|
11092
11556
|
}
|
|
11093
11557
|
/**
|
|
11094
|
-
*
|
|
11558
|
+
* Content-exclusion policy supplied to `sessions.open` options, with rules, last-updated data, and scope.
|
|
11095
11559
|
*
|
|
11096
11560
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11097
11561
|
* via the `definition` "SessionOpenOptionsAdditionalContentExclusionPolicy".
|
|
@@ -11103,7 +11567,7 @@ export interface SessionOpenOptionsAdditionalContentExclusionPolicy {
|
|
|
11103
11567
|
scope: SessionOpenOptionsAdditionalContentExclusionPolicyScope;
|
|
11104
11568
|
}
|
|
11105
11569
|
/**
|
|
11106
|
-
*
|
|
11570
|
+
* Single content-exclusion rule supplied to `sessions.open` options, with paths, match conditions, and source.
|
|
11107
11571
|
*
|
|
11108
11572
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11109
11573
|
* via the `definition` "SessionOpenOptionsAdditionalContentExclusionPolicyRule".
|
|
@@ -11116,7 +11580,7 @@ export interface SessionOpenOptionsAdditionalContentExclusionPolicyRule {
|
|
|
11116
11580
|
source: SessionOpenOptionsAdditionalContentExclusionPolicyRuleSource;
|
|
11117
11581
|
}
|
|
11118
11582
|
/**
|
|
11119
|
-
*
|
|
11583
|
+
* Source descriptor for a `sessions.open` content-exclusion rule, with source name and type.
|
|
11120
11584
|
*
|
|
11121
11585
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11122
11586
|
* via the `definition` "SessionOpenOptionsAdditionalContentExclusionPolicyRuleSource".
|
|
@@ -11288,7 +11752,7 @@ export interface SessionOpenResult {
|
|
|
11288
11752
|
progress?: SessionsOpenProgress[];
|
|
11289
11753
|
}
|
|
11290
11754
|
/**
|
|
11291
|
-
*
|
|
11755
|
+
* `sessions.open` handoff progress update with step, status, and optional message.
|
|
11292
11756
|
*
|
|
11293
11757
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11294
11758
|
* via the `definition` "SessionsOpenProgress".
|
|
@@ -11432,6 +11896,134 @@ export interface SessionSetCredentialsResult {
|
|
|
11432
11896
|
*/
|
|
11433
11897
|
copilotUserResolved?: boolean;
|
|
11434
11898
|
}
|
|
11899
|
+
/**
|
|
11900
|
+
* Availability of built-in job tools surfaced to boundary consumers.
|
|
11901
|
+
*
|
|
11902
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11903
|
+
* via the `definition` "SessionSettingsBuiltInToolAvailabilitySnapshot".
|
|
11904
|
+
*/
|
|
11905
|
+
/** @experimental */
|
|
11906
|
+
export interface SessionSettingsBuiltInToolAvailabilitySnapshot {
|
|
11907
|
+
reportProgress?: boolean;
|
|
11908
|
+
createPullRequest?: boolean;
|
|
11909
|
+
}
|
|
11910
|
+
/**
|
|
11911
|
+
* Named Rust-owned settings predicate to evaluate for this session.
|
|
11912
|
+
*
|
|
11913
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11914
|
+
* via the `definition` "SessionSettingsEvaluatePredicateRequest".
|
|
11915
|
+
*/
|
|
11916
|
+
/** @experimental */
|
|
11917
|
+
export interface SessionSettingsEvaluatePredicateRequest {
|
|
11918
|
+
name: SessionSettingsPredicateName;
|
|
11919
|
+
/**
|
|
11920
|
+
* Tool name for tool-scoped predicates such as trivial-change handling.
|
|
11921
|
+
*/
|
|
11922
|
+
toolName?: string;
|
|
11923
|
+
}
|
|
11924
|
+
/**
|
|
11925
|
+
* Result of evaluating a Rust-owned settings predicate.
|
|
11926
|
+
*
|
|
11927
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11928
|
+
* via the `definition` "SessionSettingsEvaluatePredicateResult".
|
|
11929
|
+
*/
|
|
11930
|
+
/** @experimental */
|
|
11931
|
+
export interface SessionSettingsEvaluatePredicateResult {
|
|
11932
|
+
enabled: boolean;
|
|
11933
|
+
}
|
|
11934
|
+
/**
|
|
11935
|
+
* Redacted job settings for a session. The job nonce is excluded.
|
|
11936
|
+
*
|
|
11937
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11938
|
+
* via the `definition` "SessionSettingsJobSnapshot".
|
|
11939
|
+
*/
|
|
11940
|
+
/** @experimental */
|
|
11941
|
+
export interface SessionSettingsJobSnapshot {
|
|
11942
|
+
eventType?: string;
|
|
11943
|
+
isTriggerJob?: boolean;
|
|
11944
|
+
builtInToolAvailability?: SessionSettingsBuiltInToolAvailabilitySnapshot;
|
|
11945
|
+
}
|
|
11946
|
+
/**
|
|
11947
|
+
* Redacted model routing settings for a session.
|
|
11948
|
+
*
|
|
11949
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11950
|
+
* via the `definition` "SessionSettingsModelSnapshot".
|
|
11951
|
+
*/
|
|
11952
|
+
/** @experimental */
|
|
11953
|
+
export interface SessionSettingsModelSnapshot {
|
|
11954
|
+
model?: string;
|
|
11955
|
+
defaultReasoningEffort?: string;
|
|
11956
|
+
instanceId?: string;
|
|
11957
|
+
callbackUrl?: string;
|
|
11958
|
+
}
|
|
11959
|
+
/**
|
|
11960
|
+
* Online-evaluation settings safe to expose across the SDK boundary.
|
|
11961
|
+
*
|
|
11962
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11963
|
+
* via the `definition` "SessionSettingsOnlineEvaluationSnapshot".
|
|
11964
|
+
*/
|
|
11965
|
+
/** @experimental */
|
|
11966
|
+
export interface SessionSettingsOnlineEvaluationSnapshot {
|
|
11967
|
+
disableOnlineEvaluation?: boolean;
|
|
11968
|
+
enableOnlineEvaluationOutputFile?: boolean;
|
|
11969
|
+
}
|
|
11970
|
+
/**
|
|
11971
|
+
* Redacted repository and GitHub host settings for a session.
|
|
11972
|
+
*
|
|
11973
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11974
|
+
* via the `definition` "SessionSettingsRepoSnapshot".
|
|
11975
|
+
*/
|
|
11976
|
+
/** @experimental */
|
|
11977
|
+
export interface SessionSettingsRepoSnapshot {
|
|
11978
|
+
name?: string;
|
|
11979
|
+
id?: number;
|
|
11980
|
+
branch?: string;
|
|
11981
|
+
commit?: string;
|
|
11982
|
+
readWrite?: boolean;
|
|
11983
|
+
ownerName?: string;
|
|
11984
|
+
ownerId?: number;
|
|
11985
|
+
serverUrl?: string;
|
|
11986
|
+
host?: string;
|
|
11987
|
+
hostProtocol?: string;
|
|
11988
|
+
secretScanningUrl?: string;
|
|
11989
|
+
prCommitCount?: number;
|
|
11990
|
+
}
|
|
11991
|
+
/**
|
|
11992
|
+
* Redacted, serializable view of session runtime settings for SDK boundary consumers. Secrets and raw feature flags are intentionally excluded.
|
|
11993
|
+
*
|
|
11994
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11995
|
+
* via the `definition` "SessionSettingsSnapshot".
|
|
11996
|
+
*/
|
|
11997
|
+
/** @experimental */
|
|
11998
|
+
export interface SessionSettingsSnapshot {
|
|
11999
|
+
version?: string;
|
|
12000
|
+
clientName?: string;
|
|
12001
|
+
timeoutMs?: number;
|
|
12002
|
+
startTimeMs?: number;
|
|
12003
|
+
repo: SessionSettingsRepoSnapshot;
|
|
12004
|
+
model: SessionSettingsModelSnapshot;
|
|
12005
|
+
validation: SessionSettingsValidationSnapshot;
|
|
12006
|
+
job: SessionSettingsJobSnapshot;
|
|
12007
|
+
onlineEvaluation: SessionSettingsOnlineEvaluationSnapshot;
|
|
12008
|
+
}
|
|
12009
|
+
/**
|
|
12010
|
+
* Redacted validation and memory-tool settings for a session.
|
|
12011
|
+
*
|
|
12012
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12013
|
+
* via the `definition` "SessionSettingsValidationSnapshot".
|
|
12014
|
+
*/
|
|
12015
|
+
/** @experimental */
|
|
12016
|
+
export interface SessionSettingsValidationSnapshot {
|
|
12017
|
+
timeout?: number;
|
|
12018
|
+
dependabotTimeout?: number;
|
|
12019
|
+
codeqlEnabled?: boolean;
|
|
12020
|
+
codeReviewEnabled?: boolean;
|
|
12021
|
+
codeReviewModel?: string;
|
|
12022
|
+
advisoryEnabled?: boolean;
|
|
12023
|
+
secretScanningEnabled?: boolean;
|
|
12024
|
+
memoryStoreEnabled?: boolean;
|
|
12025
|
+
memoryVoteEnabled?: boolean;
|
|
12026
|
+
}
|
|
11435
12027
|
/**
|
|
11436
12028
|
* UUID prefix to resolve to a unique session ID.
|
|
11437
12029
|
*
|
|
@@ -11877,6 +12469,7 @@ export interface SessionUpdateOptionsParams {
|
|
|
11877
12469
|
*/
|
|
11878
12470
|
reasoningEffort?: string;
|
|
11879
12471
|
reasoningSummary?: OptionsUpdateReasoningSummary;
|
|
12472
|
+
verbosity?: Verbosity;
|
|
11880
12473
|
/**
|
|
11881
12474
|
* Identifier of the client driving the session.
|
|
11882
12475
|
*/
|
|
@@ -12179,7 +12772,7 @@ export interface ShutdownRequest {
|
|
|
12179
12772
|
reason?: string;
|
|
12180
12773
|
}
|
|
12181
12774
|
/**
|
|
12182
|
-
*
|
|
12775
|
+
* Skill metadata available to a session, with name, description, source, enabled/invocable state, path, plugin, and argument hint.
|
|
12183
12776
|
*
|
|
12184
12777
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12185
12778
|
* via the `definition` "Skill".
|
|
@@ -12217,7 +12810,7 @@ export interface Skill {
|
|
|
12217
12810
|
argumentHint?: string;
|
|
12218
12811
|
}
|
|
12219
12812
|
/**
|
|
12220
|
-
*
|
|
12813
|
+
* Canonical directory where skills can be discovered or created, with scope, preference, and optional project path.
|
|
12221
12814
|
*
|
|
12222
12815
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12223
12816
|
* via the `definition` "SkillDiscoveryPath".
|
|
@@ -12355,7 +12948,7 @@ export interface SkillsGetInvokedResult {
|
|
|
12355
12948
|
skills: SkillsInvokedSkill[];
|
|
12356
12949
|
}
|
|
12357
12950
|
/**
|
|
12358
|
-
*
|
|
12951
|
+
* Skill invocation record with name, path, content, allowed tools, and turn number.
|
|
12359
12952
|
*
|
|
12360
12953
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12361
12954
|
* via the `definition` "SkillsInvokedSkill".
|
|
@@ -12401,7 +12994,7 @@ export interface SkillsLoadDiagnostics {
|
|
|
12401
12994
|
errors: string[];
|
|
12402
12995
|
}
|
|
12403
12996
|
/**
|
|
12404
|
-
*
|
|
12997
|
+
* Slash-command invocation result that submits an agent prompt, with display prompt, optional mode, and settings-change flag.
|
|
12405
12998
|
*
|
|
12406
12999
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12407
13000
|
* via the `definition` "SlashCommandAgentPromptResult".
|
|
@@ -12427,7 +13020,7 @@ export interface SlashCommandAgentPromptResult {
|
|
|
12427
13020
|
runtimeSettingsChanged?: boolean;
|
|
12428
13021
|
}
|
|
12429
13022
|
/**
|
|
12430
|
-
*
|
|
13023
|
+
* Slash-command invocation result indicating completion, with optional message and settings-change flag.
|
|
12431
13024
|
*
|
|
12432
13025
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12433
13026
|
* via the `definition` "SlashCommandCompletedResult".
|
|
@@ -12448,7 +13041,7 @@ export interface SlashCommandCompletedResult {
|
|
|
12448
13041
|
runtimeSettingsChanged?: boolean;
|
|
12449
13042
|
}
|
|
12450
13043
|
/**
|
|
12451
|
-
*
|
|
13044
|
+
* Slash-command invocation result containing text output plus Markdown/ANSI rendering flags.
|
|
12452
13045
|
*
|
|
12453
13046
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12454
13047
|
* via the `definition` "SlashCommandTextResult".
|
|
@@ -12477,7 +13070,7 @@ export interface SlashCommandTextResult {
|
|
|
12477
13070
|
runtimeSettingsChanged?: boolean;
|
|
12478
13071
|
}
|
|
12479
13072
|
/**
|
|
12480
|
-
*
|
|
13073
|
+
* Slash-command invocation result asking the client to present subcommand options for a parent command.
|
|
12481
13074
|
*
|
|
12482
13075
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12483
13076
|
* via the `definition` "SlashCommandSelectSubcommandResult".
|
|
@@ -12506,7 +13099,7 @@ export interface SlashCommandSelectSubcommandResult {
|
|
|
12506
13099
|
runtimeSettingsChanged?: boolean;
|
|
12507
13100
|
}
|
|
12508
13101
|
/**
|
|
12509
|
-
*
|
|
13102
|
+
* Selectable slash-command subcommand option with name, description, and optional group label.
|
|
12510
13103
|
*
|
|
12511
13104
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12512
13105
|
* via the `definition` "SlashCommandSelectSubcommandOption".
|
|
@@ -12545,7 +13138,7 @@ export interface SubagentSettingsEntry {
|
|
|
12545
13138
|
contextTier?: SubagentSettingsEntryContextTier;
|
|
12546
13139
|
}
|
|
12547
13140
|
/**
|
|
12548
|
-
*
|
|
13141
|
+
* Tracked background agent task metadata, including IDs, status, timing, agent type, prompt, model, result, and latest response.
|
|
12549
13142
|
*
|
|
12550
13143
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12551
13144
|
* via the `definition` "TaskAgentInfo".
|
|
@@ -12624,7 +13217,7 @@ export interface TaskAgentInfo {
|
|
|
12624
13217
|
idleSince?: string;
|
|
12625
13218
|
}
|
|
12626
13219
|
/**
|
|
12627
|
-
*
|
|
13220
|
+
* Progress snapshot for an agent task, with recent activity lines and optional latest intent.
|
|
12628
13221
|
*
|
|
12629
13222
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12630
13223
|
* via the `definition` "TaskAgentProgress".
|
|
@@ -12645,7 +13238,7 @@ export interface TaskAgentProgress {
|
|
|
12645
13238
|
latestIntent?: string;
|
|
12646
13239
|
}
|
|
12647
13240
|
/**
|
|
12648
|
-
*
|
|
13241
|
+
* Timestamped display line for task progress output or recent agent activity.
|
|
12649
13242
|
*
|
|
12650
13243
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12651
13244
|
* via the `definition` "TaskProgressLine".
|
|
@@ -12662,7 +13255,7 @@ export interface TaskProgressLine {
|
|
|
12662
13255
|
timestamp: string;
|
|
12663
13256
|
}
|
|
12664
13257
|
/**
|
|
12665
|
-
*
|
|
13258
|
+
* Tracked shell task metadata, including ID, command, status, timing, attachment/execution mode, log path, and PID.
|
|
12666
13259
|
*
|
|
12667
13260
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12668
13261
|
* via the `definition` "TaskShellInfo".
|
|
@@ -12723,7 +13316,7 @@ export interface TaskList {
|
|
|
12723
13316
|
tasks: TaskInfo[];
|
|
12724
13317
|
}
|
|
12725
13318
|
/**
|
|
12726
|
-
*
|
|
13319
|
+
* Progress snapshot for a shell task, with recent stdout/stderr output and optional process ID.
|
|
12727
13320
|
*
|
|
12728
13321
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12729
13322
|
* via the `definition` "TaskShellProgress".
|
|
@@ -12981,7 +13574,7 @@ export interface TelemetrySetFeatureOverridesRequest {
|
|
|
12981
13574
|
};
|
|
12982
13575
|
}
|
|
12983
13576
|
/**
|
|
12984
|
-
*
|
|
13577
|
+
* Built-in tool metadata with identifier, optional namespaced name, description, input-parameter schema, and usage instructions.
|
|
12985
13578
|
*
|
|
12986
13579
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12987
13580
|
* via the `definition` "Tool".
|
|
@@ -13116,7 +13709,7 @@ export interface UIElicitationArrayAnyOfFieldItems {
|
|
|
13116
13709
|
anyOf: UIElicitationArrayAnyOfFieldItemsAnyOf[];
|
|
13117
13710
|
}
|
|
13118
13711
|
/**
|
|
13119
|
-
*
|
|
13712
|
+
* Selectable option for a UI elicitation multi-select array item, with submitted value and display label.
|
|
13120
13713
|
*
|
|
13121
13714
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13122
13715
|
* via the `definition` "UIElicitationArrayAnyOfFieldItemsAnyOf".
|
|
@@ -13283,7 +13876,7 @@ export interface UIElicitationStringOneOfField {
|
|
|
13283
13876
|
default?: string;
|
|
13284
13877
|
}
|
|
13285
13878
|
/**
|
|
13286
|
-
*
|
|
13879
|
+
* Selectable option for a UI elicitation single-select string field, with submitted value and display label.
|
|
13287
13880
|
*
|
|
13288
13881
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13289
13882
|
* via the `definition` "UIElicitationStringOneOfFieldOneOf".
|
|
@@ -13449,7 +14042,7 @@ export interface UIEphemeralQueryResult {
|
|
|
13449
14042
|
answer: string;
|
|
13450
14043
|
}
|
|
13451
14044
|
/**
|
|
13452
|
-
*
|
|
14045
|
+
* User response for a pending exit-plan-mode request, with approval state, selected action, auto-approve flag, and feedback.
|
|
13453
14046
|
*
|
|
13454
14047
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13455
14048
|
* via the `definition` "UIExitPlanModeResponse".
|
|
@@ -13596,7 +14189,7 @@ export interface UIHandlePendingUserInputRequest {
|
|
|
13596
14189
|
response: UIUserInputResponse;
|
|
13597
14190
|
}
|
|
13598
14191
|
/**
|
|
13599
|
-
*
|
|
14192
|
+
* User response for a pending user-input request, with answer text and whether it was typed freeform.
|
|
13600
14193
|
*
|
|
13601
14194
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13602
14195
|
* via the `definition` "UIUserInputResponse".
|
|
@@ -13719,7 +14312,7 @@ export interface UsageGetMetricsResult {
|
|
|
13719
14312
|
lastCallOutputTokens: number;
|
|
13720
14313
|
}
|
|
13721
14314
|
/**
|
|
13722
|
-
*
|
|
14315
|
+
* Session-wide token-detail entry containing the accumulated token count for one token type.
|
|
13723
14316
|
*
|
|
13724
14317
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13725
14318
|
* via the `definition` "UsageMetricsTokenDetail".
|
|
@@ -13757,7 +14350,7 @@ export interface UsageMetricsCodeChanges {
|
|
|
13757
14350
|
filesModified: string[];
|
|
13758
14351
|
}
|
|
13759
14352
|
/**
|
|
13760
|
-
*
|
|
14353
|
+
* Per-model usage metrics, including request counts/costs, token usage, nano-AI units, and per-token-type details.
|
|
13761
14354
|
*
|
|
13762
14355
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13763
14356
|
* via the `definition` "UsageMetricsModelMetric".
|
|
@@ -13824,7 +14417,7 @@ export interface UsageMetricsModelMetricUsage {
|
|
|
13824
14417
|
reasoningTokens?: number;
|
|
13825
14418
|
}
|
|
13826
14419
|
/**
|
|
13827
|
-
*
|
|
14420
|
+
* Per-model token-detail entry containing the accumulated token count for one token type.
|
|
13828
14421
|
*
|
|
13829
14422
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13830
14423
|
* via the `definition` "UsageMetricsModelMetricTokenDetail".
|
|
@@ -14029,7 +14622,7 @@ export interface WorkspaceDiffResult {
|
|
|
14029
14622
|
isFallback: boolean;
|
|
14030
14623
|
}
|
|
14031
14624
|
/**
|
|
14032
|
-
*
|
|
14625
|
+
* Workspace checkpoint metadata with assigned number, human-readable title, and checkpoint filename.
|
|
14033
14626
|
*
|
|
14034
14627
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14035
14628
|
* via the `definition` "WorkspacesCheckpoints".
|
|
@@ -14865,6 +15458,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
14865
15458
|
setCredentials: (params: SessionSetCredentialsParams) => Promise<SessionSetCredentialsResult>;
|
|
14866
15459
|
};
|
|
14867
15460
|
/** @experimental */
|
|
15461
|
+
debug: {
|
|
15462
|
+
/**
|
|
15463
|
+
* Collects a redacted session debug log bundle into a local archive or staging directory. The runtime includes session-owned logs by default and accepts caller-provided diagnostic entries so host applications can add their own files without changing this API shape.
|
|
15464
|
+
*
|
|
15465
|
+
* @param params Options for collecting a redacted session debug bundle.
|
|
15466
|
+
*
|
|
15467
|
+
* @returns Result of collecting a redacted debug bundle.
|
|
15468
|
+
*/
|
|
15469
|
+
collectLogs: (params: DebugCollectLogsRequest) => Promise<DebugCollectLogsResult>;
|
|
15470
|
+
};
|
|
15471
|
+
/** @experimental */
|
|
14868
15472
|
canvas: {
|
|
14869
15473
|
/**
|
|
14870
15474
|
* Lists canvases declared for the session.
|
|
@@ -15703,17 +16307,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
15703
16307
|
*/
|
|
15704
16308
|
setApproveAll: (params: PermissionsSetApproveAllRequest) => Promise<PermissionsSetApproveAllResult>;
|
|
15705
16309
|
/**
|
|
15706
|
-
*
|
|
16310
|
+
* Sets the allow-all permission mode for the session. Used by attach-mode clients (e.g. LocalRpcSession's `/allow-all` forwarder) to flip the target session's permission state. The `on` mode swaps in unrestricted path and URL managers and emits `session.permissions_changed` on transition; the `auto` mode keeps normal prompt paths active while attaching LLM safety recommendations. The result returns the authoritative post-mutation state so callers can update their local mirrors without racing the `session.permissions_changed` notification on the same wire.
|
|
15707
16311
|
*
|
|
15708
|
-
* @param params
|
|
16312
|
+
* @param params Allow-all mode to apply for the session.
|
|
15709
16313
|
*
|
|
15710
16314
|
* @returns Indicates whether the operation succeeded and reports the post-mutation state.
|
|
15711
16315
|
*/
|
|
15712
16316
|
setAllowAll: (params: PermissionsSetAllowAllRequest) => Promise<AllowAllPermissionSetResult>;
|
|
15713
16317
|
/**
|
|
15714
|
-
* Returns
|
|
16318
|
+
* Returns the current allow-all permission mode for the session.
|
|
15715
16319
|
*
|
|
15716
|
-
* @returns Current
|
|
16320
|
+
* @returns Current allow-all permission mode.
|
|
15717
16321
|
*/
|
|
15718
16322
|
getAllowAll: () => Promise<AllowAllPermissionState>;
|
|
15719
16323
|
/**
|
|
@@ -16288,9 +16892,9 @@ export interface LlmInferenceHandler {
|
|
|
16288
16892
|
/** @experimental */
|
|
16289
16893
|
export interface GitHubTelemetryHandler {
|
|
16290
16894
|
/**
|
|
16291
|
-
* Forwards a single GitHub telemetry event to a host connection that opted into telemetry forwarding
|
|
16895
|
+
* Forwards a single GitHub telemetry event to a host connection that opted into telemetry forwarding during the `server.connect` handshake. Opted-in connections receive every event the runtime emits after the handshake — across all sessions, plus sessionless events (for example, `server.sendTelemetry` calls with no session id).
|
|
16292
16896
|
*
|
|
16293
|
-
* @param params Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding
|
|
16897
|
+
* @param params Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding during the `server.connect` handshake.
|
|
16294
16898
|
*/
|
|
16295
16899
|
event(params: GitHubTelemetryNotification): Promise<void>;
|
|
16296
16900
|
}
|