pub struct SessionRpcConnectors<'a> { /* private fields */ }Expand description
session.connectors.* RPCs.
Implementations§
Source§impl<'a> SessionRpcConnectors<'a>
impl<'a> SessionRpcConnectors<'a>
Sourcepub async fn get_capabilities(&self) -> Result<ConnectorCapabilities, Error>
pub async fn get_capabilities(&self) -> Result<ConnectorCapabilities, Error>
Returns feature availability and bounded polling limits for the EXPERIMENTAL session connector API. This method never performs a Connector service request.
Wire method: session.connectors.getCapabilities.
§Returns
Feature detection and hard polling limits for the EXPERIMENTAL session connector API.
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 get_status(&self) -> Result<ConnectorStatus, Error>
pub async fn get_status(&self) -> Result<ConnectorStatus, Error>
Returns authoritative session Connector state from current availability, pinned account selection, cached catalog, and live MCP projection without performing a Connector service request.
Wire method: session.connectors.getStatus.
§Returns
Authoritative session connector state. Account IDs are opaque routing identifiers and credentials are never included.
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 list(
&self,
params: ConnectorAccountRequest,
) -> Result<ConnectorCatalogResult, Error>
pub async fn list( &self, params: ConnectorAccountRequest, ) -> Result<ConnectorCatalogResult, Error>
Returns the cached Connector catalog for the pinned opaque account selection, fetching it only when this session has no cached catalog.
Wire method: session.connectors.list.
§Parameters
params- Pins a Connector operation to one host-owned GitHub account through its opaque selection ID. Provider tokens are never accepted.
§Returns
Validated Connector catalog snapshot cached by the session.
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,
params: ConnectorAccountRequest,
) -> Result<ConnectorCatalogResult, Error>
pub async fn refresh( &self, params: ConnectorAccountRequest, ) -> Result<ConnectorCatalogResult, Error>
Refreshes and validates the Connector catalog for the pinned opaque account selection.
Wire method: session.connectors.refresh.
§Parameters
params- Pins a Connector operation to one host-owned GitHub account through its opaque selection ID. Provider tokens are never accepted.
§Returns
Validated Connector catalog snapshot cached by the session.
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 connect(
&self,
params: ConnectorConnectRequest,
) -> Result<ConnectorConnectResult, Error>
pub async fn connect( &self, params: ConnectorConnectRequest, ) -> Result<ConnectorConnectResult, Error>
Initiates an idempotent Connector connection request without opening a browser. Returns connected when the service is immediately authoritative, consent_required with a validated URL, or pending with an opaque continuation ID.
Wire method: session.connectors.connect.
§Parameters
params- Selects one Connector and the pinned host-owned account used for its service and MCP authorization.
§Returns
Typed result of initiating or continuing a Connector connection.
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 reconnect(
&self,
params: ConnectorConnectRequest,
) -> Result<ConnectorConnectResult, Error>
pub async fn reconnect( &self, params: ConnectorConnectRequest, ) -> Result<ConnectorConnectResult, Error>
Re-initiates an idempotent Connector connection request without browser or UI effects, with the same typed outcomes as connect.
Wire method: session.connectors.reconnect.
§Parameters
params- Selects one Connector and the pinned host-owned account used for its service and MCP authorization.
§Returns
Typed result of initiating or continuing a Connector connection.
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 continue_connection(
&self,
params: ConnectorContinueRequest,
) -> Result<ConnectorConnectResult, Error>
pub async fn continue_connection( &self, params: ConnectorContinueRequest, ) -> Result<ConnectorConnectResult, Error>
Continues a pending Connector connection with caller-supplied attempt, interval, and deadline bounds. The runtime never opens the returned consent URL.
Wire method: session.connectors.continueConnection.
§Parameters
params- Explicitly bounded continuation of a pending Connector connection.
§Returns
Typed result of initiating or continuing a Connector connection.
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 disconnect(
&self,
params: ConnectorConnectRequest,
) -> Result<ConnectorDisconnectResult, Error>
pub async fn disconnect( &self, params: ConnectorConnectRequest, ) -> Result<ConnectorDisconnectResult, Error>
Disconnects one Connector for the pinned opaque account selection, refreshes the authoritative catalog, and removes its session-owned MCP projection.
Wire method: session.connectors.disconnect.
§Parameters
params- Selects one Connector and the pinned host-owned account used for its service and MCP authorization.
§Returns
Authoritative result after disconnect and MCP reconciliation.
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 reconcile(
&self,
params: ConnectorReconcileRequest,
) -> Result<ConnectorStatus, Error>
pub async fn reconcile( &self, params: ConnectorReconcileRequest, ) -> Result<ConnectorStatus, Error>
Reconciles the authoritative cached or freshly requested Connector catalog into the session Connector MCP projection and returns live status.
Wire method: session.connectors.reconcile.
§Parameters
params- Requests authoritative Connector-to-MCP reconciliation for the pinned account.
§Returns
Authoritative session connector state. Account IDs are opaque routing identifiers and credentials are never included.
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.