Skip to content
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dotnet/src/Generated/Rpc.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions go/rpc/zrpc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions nodejs/src/generated/rpc.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions python/copilot/generated/rpc.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions rust/src/generated/api_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ pub mod rpc_methods {
pub const USER_SETTINGS_SET: &str = "user.settings.set";
/// `managedSettings.read`
pub const MANAGEDSETTINGS_READ: &str = "managedSettings.read";
/// `managedSettings.clearCache`
pub const MANAGEDSETTINGS_CLEARCACHE: &str = "managedSettings.clearCache";
/// `runtime.shutdown`
pub const RUNTIME_SHUTDOWN: &str = "runtime.shutdown";
/// `sessionFs.setProvider`
Expand Down
20 changes: 20 additions & 0 deletions rust/src/generated/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,26 @@ impl<'a> ClientRpcManagedSettings<'a> {
.await?;
Ok(serde_json::from_value(_value)?)
}

/// Wipes the persistent enterprise managed-settings cache for every account (the whole `<cacheHome>/managed-settings` directory) and drops this runtime process's in-memory retained server policy, so the next managed-settings read for any account re-fetches from the network instead of serving a cached response. Mirrors the cache invalidation a sign-out performs, but across all accounts rather than just the one signing out — the primitive behind a host "sync account policy" / "force refresh policy" action. Device/MDM-scoped layers describe the machine, not the account, so they are left untouched. Best-effort: a disabled or already-absent cache is a no-op.
///
/// Wire method: `managedSettings.clearCache`.
///
/// <div class="warning">
///
/// **Experimental.** This API is part of an experimental wire-protocol surface
/// and may change or be removed in future SDK or CLI releases. Pin both the
/// SDK and CLI versions if your code depends on it.
///
/// </div>
pub async fn clear_cache(&self) -> Result<(), Error> {
let wire_params = serde_json::json!({});
let _value = self
.client
.call(rpc_methods::MANAGEDSETTINGS_CLEARCACHE, Some(wire_params))
.await?;
Ok(())
}
}

/// `mcp.*` RPCs.
Expand Down
Loading