@github/copilot-sdk 1.0.21-preview.0 → 1.0.21-preview.2

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.
@@ -5276,6 +5276,38 @@ export type SkillInstallationResult = {
5276
5276
  */
5277
5277
  /** @experimental */
5278
5278
  export type SlashCommandInvocationResult = SlashCommandTextResult | SlashCommandAgentPromptResult | SlashCommandCompletedResult | SlashCommandSelectSubcommandResult | SlashCommandAddTimelineEntryResult | SlashCommandShowDialogResult | SlashCommandSetModelResult | SlashCommandSetPlanModelResult;
5279
+ /**
5280
+ * What the one-time staff log-level migration did.
5281
+ *
5282
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5283
+ * via the `definition` "StaffLogLevelMigrationStatus".
5284
+ */
5285
+ /** @experimental */
5286
+ export type StaffLogLevelMigrationStatus =
5287
+ /** The account is not a staff account, so the migration does not apply and nothing was recorded. */
5288
+ "ineligible"
5289
+ /** The migration already ran; the stored completion timestamp is returned unchanged. */
5290
+ | "current"
5291
+ /** The migration ran now. The persisted settings may have changed, so the host should adopt the returned settings when they are present. */
5292
+ | "refreshed";
5293
+ /**
5294
+ * What the one-time staff update-channel migration did.
5295
+ *
5296
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5297
+ * via the `definition` "StaffUpdateChannelMigrationStatus".
5298
+ */
5299
+ /** @experimental */
5300
+ export type StaffUpdateChannelMigrationStatus =
5301
+ /** The account is not a staff account, so the migration does not apply and nothing was recorded. */
5302
+ "ineligible"
5303
+ /** The migration already ran within the cutoff window; the stored completion timestamp is returned unchanged. */
5304
+ | "current"
5305
+ /** The persisted update channel was changed to stable. Only this outcome requires the host to reload its configuration. */
5306
+ | "migrated"
5307
+ /** The persisted channel was already stable, so nothing changed, but the migration is now recorded as done. */
5308
+ | "completed"
5309
+ /** The account is on the experimental channel, which the migration deliberately leaves alone, and the migration is recorded as done. */
5310
+ | "excluded-experimental";
5279
5311
  /**
5280
5312
  * Subagent settings to apply, or null to clear the live session override
5281
5313
  *
@@ -5891,6 +5923,62 @@ export type WorkspacesWorkspaceDetailsHostType =
5891
5923
  "github"
5892
5924
  /** Workspace repository is hosted on Azure DevOps. */
5893
5925
  | "ado";
5926
+ /**
5927
+ * True when this process can offer installing the sandbox credential-proxy certificate authority into OS trust.
5928
+ *
5929
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5930
+ * via the `definition` "SandboxProxyCaCheckInstallationSupportResult".
5931
+ */
5932
+ /** @experimental */
5933
+ export type SandboxProxyCaCheckInstallationSupportResult = boolean;
5934
+ /**
5935
+ * True when the sandbox configuration uses the credential proxy and can need certificate-authority setup.
5936
+ *
5937
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5938
+ * via the `definition` "SandboxProxyCaCheckRelevanceResult".
5939
+ */
5940
+ /** @experimental */
5941
+ export type SandboxProxyCaCheckRelevanceResult = boolean;
5942
+ /**
5943
+ * True when an OS-level sandbox can run on this host.
5944
+ *
5945
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5946
+ * via the `definition` "SandboxCheckPlatformSupportResult".
5947
+ */
5948
+ /** @experimental */
5949
+ export type SandboxCheckPlatformSupportResult = boolean;
5950
+ /**
5951
+ * True when the sandbox on this host can reach host loopback directly.
5952
+ *
5953
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5954
+ * via the `definition` "SandboxCheckWindowsHostLoopbackSupportResult".
5955
+ */
5956
+ /** @experimental */
5957
+ export type SandboxCheckWindowsHostLoopbackSupportResult = boolean;
5958
+ /**
5959
+ * The user-facing refusal, including the platform remedy and the documentation link.
5960
+ *
5961
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5962
+ * via the `definition` "SandboxGetUnsupportedMessageResult".
5963
+ */
5964
+ /** @experimental */
5965
+ export type SandboxGetUnsupportedMessageResult = string;
5966
+ /**
5967
+ * The user-facing notice that a saved sandbox setting is inert for this session.
5968
+ *
5969
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5970
+ * via the `definition` "SandboxGetUnsupportedSettingDisabledNoticeResult".
5971
+ */
5972
+ /** @experimental */
5973
+ export type SandboxGetUnsupportedSettingDisabledNoticeResult = string;
5974
+ /**
5975
+ * True when the command stays available while enforcement is blocked.
5976
+ *
5977
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5978
+ * via the `definition` "SandboxCheckEnforcementCommandResult".
5979
+ */
5980
+ /** @experimental */
5981
+ export type SandboxCheckEnforcementCommandResult = boolean;
5894
5982
  /**
5895
5983
  * List of all authenticated users
5896
5984
  *
@@ -19425,6 +19513,27 @@ export interface PermissionsConfigureResult {
19425
19513
  */
19426
19514
  success: boolean;
19427
19515
  }
19516
+ /**
19517
+ * The policy questions a host asks before granting elevated permissions.
19518
+ *
19519
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
19520
+ * via the `definition` "PermissionsEvaluateManagedPolicyResult".
19521
+ */
19522
+ /** @experimental */
19523
+ export interface PermissionsEvaluateManagedPolicyResult {
19524
+ /**
19525
+ * True when managed policy forbids bypass-permissions mode, so allow-all style flags must not take effect.
19526
+ */
19527
+ bypassPermissionsDisabled: boolean;
19528
+ /**
19529
+ * True when a managed policy exists but this build could not determine its meaning. Hosts fail closed on it rather than assuming permission was granted.
19530
+ */
19531
+ policyUndetermined: boolean;
19532
+ /**
19533
+ * True when the managed layer supplies permission rules that the session must enforce.
19534
+ */
19535
+ permissionRulesActive: boolean;
19536
+ }
19428
19537
  /**
19429
19538
  * Indicates whether the operation succeeded.
19430
19539
  *
@@ -19696,6 +19805,44 @@ export interface PermissionUrlsSetUnrestrictedModeParams {
19696
19805
  */
19697
19806
  enabled: boolean;
19698
19807
  }
19808
+ /**
19809
+ * A complete JSON snapshot to write under the runtime's per-path file lock.
19810
+ *
19811
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
19812
+ * via the `definition` "PersistenceWriteRawJsonLockedRequest".
19813
+ */
19814
+ /** @experimental */
19815
+ export interface PersistenceWriteRawJsonLockedRequest {
19816
+ /**
19817
+ * Absolute path of the file to replace. Parent directories are created when missing.
19818
+ */
19819
+ path: string;
19820
+ /**
19821
+ * The serialized JSON document to write. It replaces the file's contents entirely; nothing is merged.
19822
+ */
19823
+ dataJson: string;
19824
+ /**
19825
+ * Comment lines to emit above the document, for a format that tolerates them. Omit for strict JSON.
19826
+ */
19827
+ fileHeader?: string | null;
19828
+ }
19829
+ /**
19830
+ * The outcome of a locked snapshot write.
19831
+ *
19832
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
19833
+ * via the `definition` "PersistenceWriteRawJsonLockedResult".
19834
+ */
19835
+ /** @experimental */
19836
+ export interface PersistenceWriteRawJsonLockedResult {
19837
+ /**
19838
+ * Whether the file now holds the requested contents.
19839
+ */
19840
+ success: boolean;
19841
+ /**
19842
+ * Why the write failed. Absent when `success` is true. A lock the runtime could not acquire in time reports here rather than raising.
19843
+ */
19844
+ error?: string | null;
19845
+ }
19699
19846
  /**
19700
19847
  * Optional message to echo back to the caller.
19701
19848
  *
@@ -21801,6 +21948,19 @@ export interface RemoteSessionRepository {
21801
21948
  */
21802
21949
  branch?: string;
21803
21950
  }
21951
+ /**
21952
+ * The stored sandbox settings to resolve against the defaults.
21953
+ *
21954
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
21955
+ * via the `definition` "SandboxApplyDefaultsRequest".
21956
+ */
21957
+ /** @experimental */
21958
+ export interface SandboxApplyDefaultsRequest {
21959
+ /**
21960
+ * The sandbox settings as stored in the settings file. An empty object resolves to the defaults alone.
21961
+ */
21962
+ stored: JsonValue;
21963
+ }
21804
21964
  /**
21805
21965
  * Resolved sandbox configuration.
21806
21966
  *
@@ -22064,6 +22224,19 @@ export interface SandboxDisableForSessionResult {
22064
22224
  */
22065
22225
  enabled: boolean;
22066
22226
  }
22227
+ /**
22228
+ * The documentation URL a host cites when it declines or downgrades a sandbox setting.
22229
+ *
22230
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
22231
+ * via the `definition` "SandboxDocsUrlResult".
22232
+ */
22233
+ /** @experimental */
22234
+ export interface SandboxDocsUrlResult {
22235
+ /**
22236
+ * Documentation URL describing the sandbox and the settings that control it.
22237
+ */
22238
+ url: string;
22239
+ }
22067
22240
  /**
22068
22241
  * Managed sandbox enforcement state for a session.
22069
22242
  *
@@ -22192,6 +22365,75 @@ export interface SandboxProxyCaStatus {
22192
22365
  */
22193
22366
  canInstall: boolean;
22194
22367
  }
22368
+ /**
22369
+ * The stored sandbox proxy password, if one is present.
22370
+ *
22371
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
22372
+ * via the `definition` "SandboxProxySecretGetResult".
22373
+ */
22374
+ /** @experimental */
22375
+ export interface SandboxProxySecretGetResult {
22376
+ /**
22377
+ * The stored password. Absent when no entry exists in either the keychain or the on-disk fallback store.
22378
+ */
22379
+ value?: string;
22380
+ }
22381
+ /**
22382
+ * Where this runtime keeps the sandbox proxy password.
22383
+ *
22384
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
22385
+ * via the `definition` "SandboxProxySecretLocation".
22386
+ */
22387
+ /** @experimental */
22388
+ export interface SandboxProxySecretLocation {
22389
+ /**
22390
+ * Absolute path of the credential store holding the sandbox proxy password. The proxy password belongs to no MCP server, so it is kept in its own directory rather than in the MCP secret store.
22391
+ */
22392
+ configDir: string;
22393
+ /**
22394
+ * Identifier of the proxy password entry within that store. Derived from the configuration directory, so two Copilot homes on one machine never share an entry. Use it to recognize a `${secret:…}` reference in stored settings as this runtime's own proxy password.
22395
+ */
22396
+ secretId: string;
22397
+ }
22398
+ /**
22399
+ * The sandbox proxy password to store.
22400
+ *
22401
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
22402
+ * via the `definition` "SandboxProxySecretSaveRequest".
22403
+ */
22404
+ /** @experimental */
22405
+ export interface SandboxProxySecretSaveRequest {
22406
+ /**
22407
+ * The password to store for the sandbox proxy.
22408
+ */
22409
+ value: string;
22410
+ }
22411
+ /**
22412
+ * Where the sandbox proxy password was stored.
22413
+ *
22414
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
22415
+ * via the `definition` "SandboxProxySecretSaveResult".
22416
+ */
22417
+ /** @experimental */
22418
+ export interface SandboxProxySecretSaveResult {
22419
+ /**
22420
+ * Whether the OS keychain accepted the value. False means it was written to the on-disk fallback store instead, which is still readable by `sandbox.proxySecret.get`.
22421
+ */
22422
+ storedInKeychain: boolean;
22423
+ }
22424
+ /**
22425
+ * The user's sandbox settings raised to the managed floor.
22426
+ *
22427
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
22428
+ * via the `definition` "SandboxResolveFlooredConfigResult".
22429
+ */
22430
+ /** @experimental */
22431
+ export interface SandboxResolveFlooredConfigResult {
22432
+ /**
22433
+ * The floored sandbox config, normalized through the declared sandbox shape so only declared fields in a fixed order are present.
22434
+ */
22435
+ sandboxJson: JsonValue;
22436
+ }
22195
22437
  /**
22196
22438
  * Register an absolute-time scheduled prompt.
22197
22439
  *
@@ -28612,6 +28854,27 @@ export interface UserSettingsGovernanceKeysResult {
28612
28854
  */
28613
28855
  managed: string[];
28614
28856
  }
28857
+ /**
28858
+ * The filesystem and environment facts a user-settings file is resolved from. Passed explicitly rather than read from the runtime's own process, so a host whose configuration directory differs from its process environment resolves the file it means.
28859
+ *
28860
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
28861
+ * via the `definition` "UserSettingsHostContext".
28862
+ */
28863
+ /** @experimental */
28864
+ export interface UserSettingsHostContext {
28865
+ /**
28866
+ * The Copilot configuration directory, when the host set one. Takes precedence over `COPILOT_HOME` and the home directory.
28867
+ */
28868
+ configDir?: string;
28869
+ /**
28870
+ * The user's home directory, used when neither a configuration directory nor `COPILOT_HOME` is set.
28871
+ */
28872
+ homeDirectory: string;
28873
+ /**
28874
+ * The host's environment variables. `COPILOT_HOME` is read from here, as are the variables a settings hook may expand.
28875
+ */
28876
+ environment: {};
28877
+ }
28615
28878
  /**
28616
28879
  * Contents of settings.json as stored, for a caller about to rewrite it.
28617
28880
  *
@@ -28629,6 +28892,83 @@ export interface UserSettingsLoadForEditResult {
28629
28892
  */
28630
28893
  settings?: JsonValue;
28631
28894
  }
28895
+ /**
28896
+ * Selects the repository whose checked-in settings to read.
28897
+ *
28898
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
28899
+ * via the `definition` "UserSettingsLoadRepoRequest".
28900
+ */
28901
+ /** @experimental */
28902
+ export interface UserSettingsLoadRepoRequest {
28903
+ /**
28904
+ * Absolute path of the repository root whose settings to read. When this is the user's home directory, the Claude-compatible configuration is skipped, so a home-directory session does not inherit a personal config as if it were repository policy.
28905
+ */
28906
+ repoRoot: string;
28907
+ }
28908
+ /**
28909
+ * A repository's settings as stored, together with any diagnostic raised while reading them.
28910
+ *
28911
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
28912
+ * via the `definition` "UserSettingsLoadRepoResult".
28913
+ */
28914
+ /** @experimental */
28915
+ export interface UserSettingsLoadRepoResult {
28916
+ /**
28917
+ * The repository's settings document, keyed by setting name, with each value carried verbatim. Null when the repository declares no settings.
28918
+ */
28919
+ settings?: {
28920
+ [k: string]: JsonValue | undefined;
28921
+ } | null;
28922
+ /**
28923
+ * Why part of the document was ignored, as a single human-readable string joining every diagnostic with `; `. Null when the document loaded cleanly. The settings that did load are still reported, so a consumer should surface this and continue rather than treat it as a failure.
28924
+ */
28925
+ warning?: string | null;
28926
+ }
28927
+ /**
28928
+ * The user's stored settings, together with any diagnostic raised while reading them.
28929
+ *
28930
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
28931
+ * via the `definition` "UserSettingsLoadWithWarningResult".
28932
+ */
28933
+ /** @experimental */
28934
+ export interface UserSettingsLoadWithWarningResult {
28935
+ /**
28936
+ * The stored user settings document, keyed by setting name, with each value carried verbatim. Empty when the file could not be read at all.
28937
+ */
28938
+ settings: {
28939
+ [k: string]: JsonValue | undefined;
28940
+ };
28941
+ /**
28942
+ * Why part of the document was ignored, phrased for display to the user. Null when the document loaded cleanly. The settings that did load are still reported, so a consumer may surface this and continue rather than treat it as a failure.
28943
+ */
28944
+ warning?: string | null;
28945
+ }
28946
+ /**
28947
+ * The user layer folded over the managed layer.
28948
+ *
28949
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
28950
+ * via the `definition` "UserSettingsMergeManagedAndUserResult".
28951
+ */
28952
+ /** @experimental */
28953
+ export interface UserSettingsMergeManagedAndUserResult {
28954
+ /**
28955
+ * The merged settings. An empty object when neither layer was supplied, so an unmanaged host with no user settings governs nothing.
28956
+ */
28957
+ settingsJson: JsonValue;
28958
+ }
28959
+ /**
28960
+ * The repository layer folded into the user layer.
28961
+ *
28962
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
28963
+ * via the `definition` "UserSettingsMergeRepoValueResult".
28964
+ */
28965
+ /** @experimental */
28966
+ export interface UserSettingsMergeRepoValueResult {
28967
+ /**
28968
+ * The merged settings, with the per-entry managed control maps re-stamped from the runtime's ambient managed policy.
28969
+ */
28970
+ settingsJson: JsonValue;
28971
+ }
28632
28972
  /**
28633
28973
  * Settings object whose key names should be canonicalized.
28634
28974
  *
@@ -28655,6 +28995,19 @@ export interface UserSettingsNormalizeResult {
28655
28995
  */
28656
28996
  settings: JsonValue;
28657
28997
  }
28998
+ /**
28999
+ * The on-disk location of the user's settings document.
29000
+ *
29001
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
29002
+ * via the `definition` "UserSettingsPathResult".
29003
+ */
29004
+ /** @experimental */
29005
+ export interface UserSettingsPathResult {
29006
+ /**
29007
+ * Absolute path to the settings file this runtime reads and writes. Normally `settings.json` under the Copilot configuration directory; an extensionless legacy `settings` file is reported instead when it exists and `settings.json` does not.
29008
+ */
29009
+ path: string;
29010
+ }
28658
29011
  /**
28659
29012
  * One setting that will not take effect, and why.
28660
29013
  *
@@ -30401,173 +30754,225 @@ export interface WorkspacesWriteAutopilotObjectiveResult {
30401
30754
  operation: string;
30402
30755
  }
30403
30756
  /**
30404
- * The resident session the application has materialized on its own connection.
30757
+ * The effective sandbox settings, with every unset value resolved to its default.
30405
30758
  *
30406
30759
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30407
- * via the `definition` "HostCreateSessionResult".
30760
+ * via the `definition` "SandboxSettingsApplyDefaultsResult".
30408
30761
  */
30409
30762
  /** @experimental */
30410
- export interface HostCreateSessionResult {
30763
+ export interface SandboxSettingsApplyDefaultsResult {
30411
30764
  /**
30412
- * Runtime session UUID materialized on the application's SDK connection.
30765
+ * One resolved sandbox setting's value, carried verbatim.
30413
30766
  */
30414
- sessionId: string;
30767
+ [k: string]: JsonValue | undefined;
30415
30768
  }
30416
30769
  /**
30417
- * One application-owned session handoff, requested by the supervised hosting participant.
30770
+ * The stored user settings document, keyed by setting name.
30418
30771
  *
30419
30772
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30420
- * via the `definition` "HostCreateSessionRequest".
30773
+ * via the `definition` "UserSettingsLoadForConfigDirResult".
30421
30774
  */
30422
30775
  /** @experimental */
30423
- export interface HostCreateSessionRequest {
30424
- /**
30425
- * Unique identity for this participation, independent of the session lifetime.
30426
- */
30427
- handoffId: string;
30428
- /**
30429
- * Resume an app-owned durable session instead of creating a new session.
30430
- */
30431
- resume?: boolean;
30432
- /**
30433
- * For an explicit publication, borrow an existing owning-connection resident
30434
- * instead of invoking the resume factory. Cold sessions still use the factory.
30435
- */
30436
- preferResident?: boolean;
30776
+ export interface UserSettingsLoadForConfigDirResult {
30437
30777
  /**
30438
- * Host-selected SDK creation or resume settings, without executable callbacks or tools.
30778
+ * One setting's stored value, carried verbatim.
30439
30779
  */
30440
- config: {
30441
- [k: string]: unknown | undefined;
30442
- };
30780
+ [k: string]: JsonValue | undefined;
30443
30781
  }
30444
30782
  /**
30445
- * Empty acknowledgement for a completed host lifecycle operation.
30783
+ * The effective runtime settings, keyed by setting name. Keys this runtime does not recognize are preserved rather than dropped, so a caller reading a document written by a newer runtime keeps every value.
30446
30784
  *
30447
30785
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30448
- * via the `definition` "HostReleaseSessionResult".
30786
+ * via the `definition` "UserSettingsBuildRuntimeResult".
30449
30787
  */
30450
30788
  /** @experimental */
30451
- export interface HostReleaseSessionResult {
30789
+ export interface UserSettingsBuildRuntimeResult {
30790
+ /**
30791
+ * One resolved setting's effective value, carried verbatim.
30792
+ */
30793
+ [k: string]: JsonValue | undefined;
30452
30794
  }
30453
30795
  /**
30454
- * Ends one participation, not the application's session lifetime.
30796
+ * The resolved gates, keyed by flag name.
30455
30797
  *
30456
30798
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30457
- * via the `definition` "HostReleaseSessionRequest".
30799
+ * via the `definition` "FeatureFlagsResolveStartupGatesResult".
30458
30800
  */
30459
30801
  /** @experimental */
30460
- export interface HostReleaseSessionRequest {
30802
+ export interface FeatureFlagsResolveStartupGatesResult {
30461
30803
  /**
30462
- * Identity of the participation to release without destroying the session.
30804
+ * Whether the gate is on for this installation.
30463
30805
  */
30464
- handoffId: string;
30806
+ [k: string]: boolean | undefined;
30465
30807
  }
30466
30808
  /**
30467
- * Empty acknowledgement for a completed host lifecycle operation.
30809
+ * The resolved feature flags, keyed by flag name.
30468
30810
  *
30469
30811
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30470
- * via the `definition` "HostDisposeResult".
30812
+ * via the `definition` "FeatureFlagsResolveResult".
30471
30813
  */
30472
30814
  /** @experimental */
30473
- export interface HostDisposeResult {
30815
+ export interface FeatureFlagsResolveResult {
30816
+ /**
30817
+ * Whether the flag is enabled for this population.
30818
+ */
30819
+ [k: string]: boolean | undefined;
30474
30820
  }
30475
30821
  /**
30476
- * Private credentials delivered only to a runtime-owned Mission Control hosting participant.
30822
+ * Ordered managed permission verdicts and the supplied policy's fail-closed posture.
30477
30823
  *
30478
30824
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30479
- * via the `definition` "HostGetEnvironmentCredentialsResult".
30825
+ * via the `definition` "ManagedSettingsPermissionsEvaluateResult".
30480
30826
  */
30481
30827
  /** @experimental */
30482
- export interface HostGetEnvironmentCredentialsResult {
30828
+ export interface ManagedSettingsPermissionsEvaluateResult {
30483
30829
  /**
30484
- * Current bearer token for the authenticated GitHub identity.
30830
+ * One verdict per input operation, in the same order, including duplicates.
30485
30831
  */
30486
- token: string;
30832
+ results: ManagedPermissionEvaluation[];
30487
30833
  /**
30488
- * Hostname of the authenticated GitHub service.
30834
+ * Managed permission policy could not be determined; every operation is denied.
30489
30835
  */
30490
- githubHost: string;
30836
+ failClosed: boolean;
30837
+ }
30838
+ /**
30839
+ * Managed policy context and ordered operations for pure, sessionless evaluation.
30840
+ *
30841
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30842
+ * via the `definition` "ManagedSettingsPermissionsEvaluateRequest".
30843
+ */
30844
+ /** @experimental */
30845
+ export interface ManagedSettingsPermissionsEvaluateRequest {
30846
+ context: ManagedPermissionsContext;
30491
30847
  /**
30492
- * GitHub API base URL for the authenticated service.
30848
+ * Operations to evaluate, preserving input order and duplicates. An empty batch is valid.
30493
30849
  */
30494
- githubApiUrl: string;
30850
+ operations: ManagedPermissionOperation[];
30851
+ }
30852
+ /**
30853
+ * The resident session the application has materialized on its own connection.
30854
+ *
30855
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30856
+ * via the `definition` "HostCreateSessionResult".
30857
+ */
30858
+ /** @experimental */
30859
+ export interface HostCreateSessionResult {
30495
30860
  /**
30496
- * Mission Control API origin for environment registration and management.
30861
+ * Runtime session UUID materialized on the application's SDK connection.
30497
30862
  */
30498
- missionControlUrl: string;
30863
+ sessionId: string;
30499
30864
  }
30500
30865
  /**
30501
- * Normalized listener settings delivered only to the supervised hosting participant.
30866
+ * One application-owned session handoff, requested by the supervised hosting participant.
30502
30867
  *
30503
30868
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30504
- * via the `definition` "HostGetConfigurationResult".
30869
+ * via the `definition` "HostCreateSessionRequest".
30505
30870
  */
30506
30871
  /** @experimental */
30507
- export interface HostGetConfigurationResult {
30508
- localServer?: HostLocalServerConfiguration;
30509
- githubEnvironment?: HostGitHubEnvironmentOptions;
30872
+ export interface HostCreateSessionRequest {
30510
30873
  /**
30511
- * Whether session materialization is delegated to the owning application.
30874
+ * Unique identity for this participation, independent of the session lifetime.
30512
30875
  */
30513
- sessionFactory: boolean;
30876
+ handoffId: string;
30514
30877
  /**
30515
- * Whether app-owned durable sessions are resumed by the owning application.
30878
+ * Resume an app-owned durable session instead of creating a new session.
30516
30879
  */
30517
- resumeFactory: boolean;
30880
+ resume?: boolean;
30881
+ /**
30882
+ * For an explicit publication, borrow an existing owning-connection resident
30883
+ * instead of invoking the resume factory. Cold sessions still use the factory.
30884
+ */
30885
+ preferResident?: boolean;
30886
+ /**
30887
+ * Host-selected SDK creation or resume settings, without executable callbacks or tools.
30888
+ */
30889
+ config: {
30890
+ [k: string]: unknown | undefined;
30891
+ };
30518
30892
  }
30519
30893
  /**
30520
30894
  * Empty acknowledgement for a completed host lifecycle operation.
30521
30895
  *
30522
30896
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30523
- * via the `definition` "HostReadyResult".
30897
+ * via the `definition` "HostReleaseSessionResult".
30524
30898
  */
30525
30899
  /** @experimental */
30526
- export interface HostReadyResult {
30900
+ export interface HostReleaseSessionResult {
30527
30901
  }
30528
30902
  /**
30529
- * The resolved feature flags, keyed by flag name.
30903
+ * Ends one participation, not the application's session lifetime.
30530
30904
  *
30531
30905
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30532
- * via the `definition` "FeatureFlagsResolveResult".
30906
+ * via the `definition` "HostReleaseSessionRequest".
30533
30907
  */
30534
30908
  /** @experimental */
30535
- export interface FeatureFlagsResolveResult {
30909
+ export interface HostReleaseSessionRequest {
30536
30910
  /**
30537
- * Whether the flag is enabled for this population.
30911
+ * Identity of the participation to release without destroying the session.
30538
30912
  */
30539
- [k: string]: boolean | undefined;
30913
+ handoffId: string;
30540
30914
  }
30541
30915
  /**
30542
- * Ordered managed permission verdicts and the supplied policy's fail-closed posture.
30916
+ * Empty acknowledgement for a completed host lifecycle operation.
30543
30917
  *
30544
30918
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30545
- * via the `definition` "ManagedSettingsPermissionsEvaluateResult".
30919
+ * via the `definition` "HostDisposeResult".
30546
30920
  */
30547
30921
  /** @experimental */
30548
- export interface ManagedSettingsPermissionsEvaluateResult {
30922
+ export interface HostDisposeResult {
30923
+ }
30924
+ /**
30925
+ * Private credentials delivered only to a runtime-owned Mission Control hosting participant.
30926
+ *
30927
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30928
+ * via the `definition` "HostGetEnvironmentCredentialsResult".
30929
+ */
30930
+ /** @experimental */
30931
+ export interface HostGetEnvironmentCredentialsResult {
30549
30932
  /**
30550
- * One verdict per input operation, in the same order, including duplicates.
30933
+ * Current bearer token for the authenticated GitHub identity.
30551
30934
  */
30552
- results: ManagedPermissionEvaluation[];
30935
+ token: string;
30553
30936
  /**
30554
- * Managed permission policy could not be determined; every operation is denied.
30937
+ * Hostname of the authenticated GitHub service.
30555
30938
  */
30556
- failClosed: boolean;
30939
+ githubHost: string;
30940
+ /**
30941
+ * GitHub API base URL for the authenticated service.
30942
+ */
30943
+ githubApiUrl: string;
30944
+ /**
30945
+ * Mission Control API origin for environment registration and management.
30946
+ */
30947
+ missionControlUrl: string;
30557
30948
  }
30558
30949
  /**
30559
- * Managed policy context and ordered operations for pure, sessionless evaluation.
30950
+ * Normalized listener settings delivered only to the supervised hosting participant.
30560
30951
  *
30561
30952
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30562
- * via the `definition` "ManagedSettingsPermissionsEvaluateRequest".
30953
+ * via the `definition` "HostGetConfigurationResult".
30563
30954
  */
30564
30955
  /** @experimental */
30565
- export interface ManagedSettingsPermissionsEvaluateRequest {
30566
- context: ManagedPermissionsContext;
30956
+ export interface HostGetConfigurationResult {
30957
+ localServer?: HostLocalServerConfiguration;
30958
+ githubEnvironment?: HostGitHubEnvironmentOptions;
30567
30959
  /**
30568
- * Operations to evaluate, preserving input order and duplicates. An empty batch is valid.
30960
+ * Whether session materialization is delegated to the owning application.
30569
30961
  */
30570
- operations: ManagedPermissionOperation[];
30962
+ sessionFactory: boolean;
30963
+ /**
30964
+ * Whether app-owned durable sessions are resumed by the owning application.
30965
+ */
30966
+ resumeFactory: boolean;
30967
+ }
30968
+ /**
30969
+ * Empty acknowledgement for a completed host lifecycle operation.
30970
+ *
30971
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
30972
+ * via the `definition` "HostReadyResult".
30973
+ */
30974
+ /** @experimental */
30975
+ export interface HostReadyResult {
30571
30976
  }
30572
30977
  /** @experimental */
30573
30978
  export interface SessionWorkflowPauseAtCheckpointResult {
@@ -31083,6 +31488,142 @@ export interface InstallationsConfirmRequest {
31083
31488
  }
31084
31489
  /** Create typed server-scoped RPC methods (no session required). */
31085
31490
  export declare function createServerRpc(connection: MessageConnection): {
31491
+ /** @experimental */
31492
+ sandbox: {
31493
+ /** @experimental */
31494
+ proxyCa: {
31495
+ /**
31496
+ * Reports whether this runtime process can offer installing the sandbox credential-proxy certificate authority into OS trust.
31497
+ *
31498
+ * @returns True when this process can offer installing the sandbox credential-proxy certificate authority into OS trust.
31499
+ */
31500
+ checkInstallationSupport: () => Promise<SandboxProxyCaCheckInstallationSupportResult>;
31501
+ /**
31502
+ * Reports whether this sandbox configuration uses the credential proxy and can need certificate-authority setup.
31503
+ *
31504
+ * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31505
+ *
31506
+ * @returns True when the sandbox configuration uses the credential proxy and can need certificate-authority setup.
31507
+ */
31508
+ checkRelevance: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaCheckRelevanceResult>;
31509
+ /**
31510
+ * Reports whether the persistent certificate authority of the sandbox credential proxy exists, whether OS trust includes it, and whether it must be rotated. Changes nothing.
31511
+ *
31512
+ * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31513
+ *
31514
+ * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31515
+ */
31516
+ getStatus: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaStatus>;
31517
+ /**
31518
+ * Creates the persistent certificate authority of the sandbox credential proxy if none is stored, without changing OS trust, and returns the path of its public certificate. Keeps an existing certificate authority, even one that must be rotated. Fails where OS trust is unsupported. Trust it with sandbox.proxyCa.trust: the CLI trusts only the hosts in the saved user settings, so it refuses a certificate authority that also covers hosts from sandboxConfig.
31519
+ *
31520
+ * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31521
+ *
31522
+ * @returns Result of creating the persistent certificate authority of the sandbox credential proxy.
31523
+ */
31524
+ create: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaCreateResult>;
31525
+ /**
31526
+ * Replaces the persistent certificate authority of the sandbox credential proxy with a new one for the current credential hosts. If OS trust included the old one, removes it and trusts the new one, which can show an OS authentication prompt. Running sandboxed tools keep the old certificate authority until they restart.
31527
+ *
31528
+ * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31529
+ *
31530
+ * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31531
+ */
31532
+ rotate: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaStatus>;
31533
+ /**
31534
+ * Adds the persistent certificate authority of the sandbox credential proxy to OS trust, so sandboxed clients that read only OS trust accept the proxy. Call create first. Refuses a certificate authority that is not constrained to the current credential hosts. Can show an OS authentication prompt.
31535
+ *
31536
+ * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31537
+ *
31538
+ * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31539
+ */
31540
+ trust: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaStatus>;
31541
+ /**
31542
+ * Removes the persistent certificate authority of the sandbox credential proxy from OS trust. Keeps the stored certificate authority. Can show an OS authentication prompt. Sandboxed clients that read only OS trust then reject the proxy; clients that read the per-process certificate bundle continue to work.
31543
+ *
31544
+ * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31545
+ */
31546
+ remove: () => Promise<SandboxProxyCaStatus>;
31547
+ };
31548
+ /**
31549
+ * Reports whether the host running this runtime can run the command sandbox, without starting a session or spawning a sandboxed command.
31550
+ *
31551
+ * @returns Whether the host running this runtime can run the command sandbox. The runtime checks `supported` once per process. A capability answer can change while the process runs, for example after the user installs a missing package.
31552
+ */
31553
+ getHostSupport: () => Promise<SandboxHostSupport>;
31554
+ };
31555
+ /** @experimental */
31556
+ user: {
31557
+ /** @experimental */
31558
+ settings: {
31559
+ /**
31560
+ * Lists every known user setting from settings.json, each with its effective value, its default, and whether it is at the default — so settings the user has never set still appear with their default value. Does not include repository- or enterprise-managed overrides that the runtime layers on top at session time.
31561
+ *
31562
+ * @returns Per-key metadata for every known user setting in settings.json, including settings left at their default. Excludes repository- and enterprise-managed overrides.
31563
+ */
31564
+ get: () => Promise<UserSettingsGetResult>;
31565
+ /**
31566
+ * Writes one or more user settings to settings.json, replacing each provided top-level key. A key whose value is null is removed.
31567
+ *
31568
+ * @param params Partial user settings to write to settings.json. Each top-level key is written individually, replacing the existing value; a key whose value is null is removed.
31569
+ */
31570
+ set: (params: UserSettingsSetRequest) => Promise<void>;
31571
+ };
31572
+ };
31573
+ /** @experimental */
31574
+ managedSettings: {
31575
+ /**
31576
+ * Discovers device-managed settings from production MDM and managed-file sources, validates them against the runtime-owned managed-settings schema, and returns the canonical JSON without requiring a session. `managedSettings.resolve` returns the same device settings together with the account's server policy.
31577
+ *
31578
+ * @returns Validated device-managed settings discovered before a session exists.
31579
+ */
31580
+ read: () => Promise<ManagedSettingsReadResult>;
31581
+ /**
31582
+ * Force-refreshes enterprise managed settings for every account: wipes the persistent server-policy cache (the whole `<cacheHome>/managed-settings` directory) and drops this runtime process's in-memory retained server policy. It does not itself fetch policy — the effect is that the next time a session resolves managed settings for an account, that resolution re-fetches the account's org policy from the network instead of serving a cached response. Note that `managedSettings.read` returns only device/MDM settings and never triggers the account server-policy fetch, so a host implementing "sync account policy" should call `managedSettings.resolve` or start a fresh session resolution rather than treat a subsequent `managedSettings.read` as the refreshed org policy. Mirrors the invalidation a sign-out performs, broadened from the one signing-out account to all of them; device/MDM layers describe the machine, not the account, and are left untouched. Rejects if the on-disk cache cannot be removed.
31583
+ */
31584
+ clearCache: () => Promise<void>;
31585
+ /**
31586
+ * Resolves the effective enterprise managed settings without a session, from the device channel and, when an account is available, the account's server policy through the same per-account cache sessions use. A cached server policy less than an hour old is used without a fetch; otherwise the policy is fetched, and when the fetch fails a cached policy up to 24 hours old is used instead, unless `forceRemoteSettingsRefresh` requires a live fetch. With no account requested or signed in, it reports device policy only; signing out removes the account's cached policy. It can fetch server policy over the network when the cache is stale, so call it off latency-critical paths such as startup rather than before listing models. The policy helper is not run. `layers` lists each channel's document before merging, and `values` and `meta` carry typed effective values and their lock state for the keys typed so far.
31587
+ *
31588
+ * @param params Optional opaque account selection or GitHub token whose managed settings are resolved.
31589
+ *
31590
+ * @returns Effective enterprise managed settings for an account, resolved without a session.
31591
+ */
31592
+ resolve: (params: ManagedSettingsResolveRequest) => Promise<ManagedSettingsResolveResult>;
31593
+ /** @experimental */
31594
+ permissions: {
31595
+ /**
31596
+ * Pure, sessionless evaluation of operations against a supplied permissionsContext. Performs no policy discovery, I/O, prompting, navigation, permission grants, or sandbox changes. Obtain the context from managedSettings.resolve or session.managedSettings.get, or reuse an in-memory context. Results preserve input order and duplicates. Consumers must block deny, obtain approval for ask, and use their normal permission flow for unmanaged. Unknown policy returns failClosed with every operation denied. This is not a substitute for user permissions or other security controls.
31597
+ *
31598
+ * @param params Managed policy context and ordered operations for pure, sessionless evaluation.
31599
+ *
31600
+ * @returns Ordered managed permission verdicts and the supplied policy's fail-closed posture.
31601
+ */
31602
+ evaluate: (params: ManagedSettingsPermissionsEvaluateRequest) => Promise<ManagedSettingsPermissionsEvaluateResult>;
31603
+ };
31604
+ /**
31605
+ * Returns the managed-settings authoring JSON schema with descriptive `x-composition` annotations aligned with the shared settings-engine vocabulary. These annotations are not a complete runtime composition contract: model, effortLevel, and contextTier remain coupled. Use `managedSettings.compose` for the runtime's effective result. Performs no I/O.
31606
+ *
31607
+ * @returns The authoring JSON schema for managed settings recognized by this runtime.
31608
+ */
31609
+ schema: () => Promise<ManagedSettingsSchemaResult>;
31610
+ /**
31611
+ * Validates a candidate managed-settings document the way the runtime validates delivered policy, without applying it. Reports errors that would reject the document, warnings for content the runtime ignores, and the canonical document it would apply. Document text nested more than 64 levels deep is rejected. Performs no I/O.
31612
+ *
31613
+ * @param params A candidate managed-settings document to validate without applying it.
31614
+ *
31615
+ * @returns Result of validating a managed-settings document.
31616
+ */
31617
+ validate: (params: ManagedSettingsValidateRequest) => Promise<ManagedSettingsValidateResult>;
31618
+ /**
31619
+ * Merges candidate managed-settings documents for the device, server, and policy-helper channels into the effective settings the runtime would enforce on this host, using the same precedence and composition rules as live resolution, without applying them. Like live resolution, a server's advisory sandbox force-enable is declined on a host that cannot run the sandbox. Does not fetch policy or read policy files, but may perform blocking OS or subprocess probes for sandbox support. Preview documents are limited to 1 MiB and 64 levels of nesting.
31620
+ *
31621
+ * @param params Candidate managed-settings documents to merge without applying them.
31622
+ *
31623
+ * @returns The effective managed settings the runtime would enforce for the given documents, in the same shape `managedSettings.resolve` returns.
31624
+ */
31625
+ compose: (params: ManagedSettingsComposeRequest) => Promise<ManagedSettingsComposeResult>;
31626
+ };
31086
31627
  /** @experimental */
31087
31628
  environments: {
31088
31629
  /**
@@ -31184,56 +31725,6 @@ export declare function createServerRpc(connection: MessageConnection): {
31184
31725
  getBuiltInCatalog: () => Promise<BuiltInModelCatalog>;
31185
31726
  };
31186
31727
  /** @experimental */
31187
- sandbox: {
31188
- /**
31189
- * Reports whether the host running this runtime can run the command sandbox, without starting a session or spawning a sandboxed command.
31190
- *
31191
- * @returns Whether the host running this runtime can run the command sandbox. The runtime checks `supported` once per process. A capability answer can change while the process runs, for example after the user installs a missing package.
31192
- */
31193
- getHostSupport: () => Promise<SandboxHostSupport>;
31194
- /** @experimental */
31195
- proxyCa: {
31196
- /**
31197
- * Reports whether the persistent certificate authority of the sandbox credential proxy exists, whether OS trust includes it, and whether it must be rotated. Changes nothing.
31198
- *
31199
- * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31200
- *
31201
- * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31202
- */
31203
- getStatus: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaStatus>;
31204
- /**
31205
- * Creates the persistent certificate authority of the sandbox credential proxy if none is stored, without changing OS trust, and returns the path of its public certificate. Keeps an existing certificate authority, even one that must be rotated. Fails where OS trust is unsupported. Trust it with sandbox.proxyCa.trust: the CLI trusts only the hosts in the saved user settings, so it refuses a certificate authority that also covers hosts from sandboxConfig.
31206
- *
31207
- * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31208
- *
31209
- * @returns Result of creating the persistent certificate authority of the sandbox credential proxy.
31210
- */
31211
- create: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaCreateResult>;
31212
- /**
31213
- * Replaces the persistent certificate authority of the sandbox credential proxy with a new one for the current credential hosts. If OS trust included the old one, removes it and trusts the new one, which can show an OS authentication prompt. Running sandboxed tools keep the old certificate authority until they restart.
31214
- *
31215
- * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31216
- *
31217
- * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31218
- */
31219
- rotate: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaStatus>;
31220
- /**
31221
- * Adds the persistent certificate authority of the sandbox credential proxy to OS trust, so sandboxed clients that read only OS trust accept the proxy. Call create first. Refuses a certificate authority that is not constrained to the current credential hosts. Can show an OS authentication prompt.
31222
- *
31223
- * @param params Identifies the credential hosts that the persistent certificate authority of the sandbox credential proxy must cover. The runtime always adds the hosts from the saved user settings.
31224
- *
31225
- * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31226
- */
31227
- trust: (params: SandboxProxyCaRequest) => Promise<SandboxProxyCaStatus>;
31228
- /**
31229
- * Removes the persistent certificate authority of the sandbox credential proxy from OS trust. Keeps the stored certificate authority. Can show an OS authentication prompt. Sandboxed clients that read only OS trust then reject the proxy; clients that read the per-process certificate bundle continue to work.
31230
- *
31231
- * @returns Status of the persistent certificate authority of the sandbox credential proxy.
31232
- */
31233
- remove: () => Promise<SandboxProxyCaStatus>;
31234
- };
31235
- };
31236
- /** @experimental */
31237
31728
  tools: {
31238
31729
  /**
31239
31730
  * Lists built-in tools available for a model.
@@ -31725,78 +32216,6 @@ export declare function createServerRpc(connection: MessageConnection): {
31725
32216
  list: () => Promise<CommandList>;
31726
32217
  };
31727
32218
  /** @experimental */
31728
- user: {
31729
- /** @experimental */
31730
- settings: {
31731
- /**
31732
- * Lists every known user setting from settings.json, each with its effective value, its default, and whether it is at the default — so settings the user has never set still appear with their default value. Does not include repository- or enterprise-managed overrides that the runtime layers on top at session time.
31733
- *
31734
- * @returns Per-key metadata for every known user setting in settings.json, including settings left at their default. Excludes repository- and enterprise-managed overrides.
31735
- */
31736
- get: () => Promise<UserSettingsGetResult>;
31737
- /**
31738
- * Writes one or more user settings to settings.json, replacing each provided top-level key. A key whose value is null is removed.
31739
- *
31740
- * @param params Partial user settings to write to settings.json. Each top-level key is written individually, replacing the existing value; a key whose value is null is removed.
31741
- */
31742
- set: (params: UserSettingsSetRequest) => Promise<void>;
31743
- };
31744
- };
31745
- /** @experimental */
31746
- managedSettings: {
31747
- /**
31748
- * Discovers device-managed settings from production MDM and managed-file sources, validates them against the runtime-owned managed-settings schema, and returns the canonical JSON without requiring a session. `managedSettings.resolve` returns the same device settings together with the account's server policy.
31749
- *
31750
- * @returns Validated device-managed settings discovered before a session exists.
31751
- */
31752
- read: () => Promise<ManagedSettingsReadResult>;
31753
- /**
31754
- * Force-refreshes enterprise managed settings for every account: wipes the persistent server-policy cache (the whole `<cacheHome>/managed-settings` directory) and drops this runtime process's in-memory retained server policy. It does not itself fetch policy — the effect is that the next time a session resolves managed settings for an account, that resolution re-fetches the account's org policy from the network instead of serving a cached response. Note that `managedSettings.read` returns only device/MDM settings and never triggers the account server-policy fetch, so a host implementing "sync account policy" should call `managedSettings.resolve` or start a fresh session resolution rather than treat a subsequent `managedSettings.read` as the refreshed org policy. Mirrors the invalidation a sign-out performs, broadened from the one signing-out account to all of them; device/MDM layers describe the machine, not the account, and are left untouched. Rejects if the on-disk cache cannot be removed.
31755
- */
31756
- clearCache: () => Promise<void>;
31757
- /**
31758
- * Resolves the effective enterprise managed settings without a session, from the device channel and, when an account is available, the account's server policy through the same per-account cache sessions use. A cached server policy less than an hour old is used without a fetch; otherwise the policy is fetched, and when the fetch fails a cached policy up to 24 hours old is used instead, unless `forceRemoteSettingsRefresh` requires a live fetch. With no account requested or signed in, it reports device policy only; signing out removes the account's cached policy. It can fetch server policy over the network when the cache is stale, so call it off latency-critical paths such as startup rather than before listing models. The policy helper is not run. `layers` lists each channel's document before merging, and `values` and `meta` carry typed effective values and their lock state for the keys typed so far.
31759
- *
31760
- * @param params Optional opaque account selection or GitHub token whose managed settings are resolved.
31761
- *
31762
- * @returns Effective enterprise managed settings for an account, resolved without a session.
31763
- */
31764
- resolve: (params: ManagedSettingsResolveRequest) => Promise<ManagedSettingsResolveResult>;
31765
- /** @experimental */
31766
- permissions: {
31767
- /**
31768
- * Pure, sessionless evaluation of operations against a supplied permissionsContext. Performs no policy discovery, I/O, prompting, navigation, permission grants, or sandbox changes. Obtain the context from managedSettings.resolve or session.managedSettings.get, or reuse an in-memory context. Results preserve input order and duplicates. Consumers must block deny, obtain approval for ask, and use their normal permission flow for unmanaged. Unknown policy returns failClosed with every operation denied. This is not a substitute for user permissions or other security controls.
31769
- *
31770
- * @param params Managed policy context and ordered operations for pure, sessionless evaluation.
31771
- *
31772
- * @returns Ordered managed permission verdicts and the supplied policy's fail-closed posture.
31773
- */
31774
- evaluate: (params: ManagedSettingsPermissionsEvaluateRequest) => Promise<ManagedSettingsPermissionsEvaluateResult>;
31775
- };
31776
- /**
31777
- * Returns the managed-settings authoring JSON schema with descriptive `x-composition` annotations aligned with the shared settings-engine vocabulary. These annotations are not a complete runtime composition contract: model, effortLevel, and contextTier remain coupled. Use `managedSettings.compose` for the runtime's effective result. Performs no I/O.
31778
- *
31779
- * @returns The authoring JSON schema for managed settings recognized by this runtime.
31780
- */
31781
- schema: () => Promise<ManagedSettingsSchemaResult>;
31782
- /**
31783
- * Validates a candidate managed-settings document the way the runtime validates delivered policy, without applying it. Reports errors that would reject the document, warnings for content the runtime ignores, and the canonical document it would apply. Document text nested more than 64 levels deep is rejected. Performs no I/O.
31784
- *
31785
- * @param params A candidate managed-settings document to validate without applying it.
31786
- *
31787
- * @returns Result of validating a managed-settings document.
31788
- */
31789
- validate: (params: ManagedSettingsValidateRequest) => Promise<ManagedSettingsValidateResult>;
31790
- /**
31791
- * Merges candidate managed-settings documents for the device, server, and policy-helper channels into the effective settings the runtime would enforce on this host, using the same precedence and composition rules as live resolution, without applying them. Like live resolution, a server's advisory sandbox force-enable is declined on a host that cannot run the sandbox. Does not fetch policy or read policy files, but may perform blocking OS or subprocess probes for sandbox support. Preview documents are limited to 1 MiB and 64 levels of nesting.
31792
- *
31793
- * @param params Candidate managed-settings documents to merge without applying them.
31794
- *
31795
- * @returns The effective managed settings the runtime would enforce for the given documents, in the same shape `managedSettings.resolve` returns.
31796
- */
31797
- compose: (params: ManagedSettingsComposeRequest) => Promise<ManagedSettingsComposeResult>;
31798
- };
31799
- /** @experimental */
31800
32219
  runtime: {
31801
32220
  /**
31802
32221
  * Gracefully shuts down an SDK-owned runtime. The response is sent only after cleanup completes; callers may then terminate the owned runtime process.