pub struct SessionRpcPluginsMarketplaces<'a> { /* private fields */ }Expand description
session.plugins.marketplaces.* RPCs.
Implementations§
Source§impl<'a> SessionRpcPluginsMarketplaces<'a>
impl<'a> SessionRpcPluginsMarketplaces<'a>
Sourcepub async fn list(&self) -> Result<MarketplaceListResult, Error>
pub async fn list(&self) -> Result<MarketplaceListResult, Error>
Lists registered and enterprise-managed desired marketplaces using the live session’s retained policy.
Wire method: session.plugins.marketplaces.list.
§Returns
All registered marketplaces, including built-in defaults.
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.
Sourcepub async fn add(
&self,
params: PluginsMarketplacesAddRequest,
) -> Result<MarketplaceAddResult, Error>
pub async fn add( &self, params: PluginsMarketplacesAddRequest, ) -> Result<MarketplaceAddResult, Error>
Adds a marketplace when permitted by the live session’s retained managed policy.
Wire method: session.plugins.marketplaces.add.
§Parameters
params- Marketplace source and optional working directory for relative-path resolution.
§Returns
Result of registering a new marketplace.
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.
Sourcepub async fn remove(
&self,
params: PluginsMarketplacesRemoveRequest,
) -> Result<MarketplaceRemoveResult, Error>
pub async fn remove( &self, params: PluginsMarketplacesRemoveRequest, ) -> Result<MarketplaceRemoveResult, Error>
Removes a marketplace when permitted by the live session’s retained managed policy.
Wire method: session.plugins.marketplaces.remove.
§Parameters
params- Name of the marketplace to remove and an optional force flag.
§Returns
Outcome of the remove attempt, including dependent-plugin info when applicable.
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.
Sourcepub async fn browse(
&self,
params: PluginsMarketplacesBrowseRequest,
) -> Result<MarketplaceBrowseResult, Error>
pub async fn browse( &self, params: PluginsMarketplacesBrowseRequest, ) -> Result<MarketplaceBrowseResult, Error>
Browses a marketplace resolved through the live session’s working directory and retained managed policy.
Wire method: session.plugins.marketplaces.browse.
§Parameters
params- Name of the marketplace whose plugin catalog to fetch.
§Returns
Plugins advertised by the marketplace.
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.
Sourcepub async fn refresh(&self) -> Result<MarketplaceRefreshResult, Error>
pub async fn refresh(&self) -> Result<MarketplaceRefreshResult, Error>
Refreshes marketplaces resolved through the live session’s working directory and retained managed policy.
Wire method: session.plugins.marketplaces.refresh.
§Returns
Result of refreshing one or more marketplace catalogs.
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.
Sourcepub async fn refresh_with_params(
&self,
params: PluginsMarketplacesRefreshRequest,
) -> Result<MarketplaceRefreshResult, Error>
pub async fn refresh_with_params( &self, params: PluginsMarketplacesRefreshRequest, ) -> Result<MarketplaceRefreshResult, Error>
Refreshes marketplaces resolved through the live session’s working directory and retained managed policy.
Wire method: session.plugins.marketplaces.refresh.
§Parameters
params- Optional marketplace name; omit to refresh all.
§Returns
Result of refreshing one or more marketplace catalogs.
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.