Class SessionConnectorsApi
connectors namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionInitiates an idempotent Connector connection request without opening a browser.Continues a pending Connector connection with caller-supplied attempt, interval, and deadline bounds.Disconnects one Connector for the pinned opaque account selection, refreshes the authoritative catalog, and removes its session-owned MCP projection.Returns the session account selection, or null.Returns feature availability and bounded polling limits for the EXPERIMENTAL session connector API.Returns authoritative session Connector state from current availability, pinned account selection, cached catalog, and live MCP projection without performing a Connector service request.list(SessionConnectorsListParams params) Returns the cached Connector catalog for the pinned opaque account selection, fetching it only when this session has no cached catalog.Reconciles the authoritative cached or freshly requested Connector catalog into the session Connector MCP projection and returns live status.Reconciles the authoritative cached or freshly requested Connector catalog into the session Connector MCP projection and returns live status.Re-initiates an idempotent Connector connection request without browser or UI effects, with the same typed outcomes as connect.Refreshes and validates the Connector catalog for the pinned opaque account selection.
-
Method Details
-
getCapabilities
@CopilotExperimental public CompletableFuture<SessionConnectorsGetCapabilitiesResult> getCapabilities()Returns feature availability and bounded polling limits for the EXPERIMENTAL session connector API. This method never performs a Connector service request.- Since:
- 1.0.0
-
getAccount
Returns the session account selection, or null.- Returns:
- a future that completes with the
ConnectorSessionAccountvalue, ornullwhen the result is absent. Callers must handle thenullcompletion value. - Since:
- 1.0.0
-
getStatus
Returns authoritative session Connector state from current availability, pinned account selection, cached catalog, and live MCP projection without performing a Connector service request.- Since:
- 1.0.0
-
list
@CopilotExperimental public CompletableFuture<SessionConnectorsListResult> list(SessionConnectorsListParams params) Returns the cached Connector catalog for the pinned opaque account selection, fetching it only when this session has no cached catalog.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
refresh
@CopilotExperimental public CompletableFuture<SessionConnectorsRefreshResult> refresh(SessionConnectorsRefreshParams params) Refreshes and validates the Connector catalog for the pinned opaque account selection.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
connect
@CopilotExperimental public CompletableFuture<ConnectorConnectResult> connect(SessionConnectorsConnectParams params) 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.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
reconnect
@CopilotExperimental public CompletableFuture<ConnectorConnectResult> reconnect(SessionConnectorsReconnectParams params) Re-initiates an idempotent Connector connection request without browser or UI effects, with the same typed outcomes as connect.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
continueConnection
@CopilotExperimental public CompletableFuture<ConnectorConnectResult> continueConnection(SessionConnectorsContinueConnectionParams params) Continues a pending Connector connection with caller-supplied attempt, interval, and deadline bounds. The runtime never opens the returned consent URL.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
disconnect
@CopilotExperimental public CompletableFuture<SessionConnectorsDisconnectResult> disconnect(SessionConnectorsDisconnectParams params) Disconnects one Connector for the pinned opaque account selection, refreshes the authoritative catalog, and removes its session-owned MCP projection.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
reconcile
@CopilotExperimental public CompletableFuture<SessionConnectorsReconcileResult> reconcile(SessionConnectorsReconcileParams params) Reconciles the authoritative cached or freshly requested Connector catalog into the session Connector MCP projection and returns live status.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
reconcile
@CopilotExperimental public CompletableFuture<SessionConnectorsReconcileResult> reconcile(SessionConnectorsReconcileRequest request) Reconciles the authoritative cached or freshly requested Connector catalog into the session Connector MCP projection and returns live status.Accepts the extensible request, including inputs added after the params record.
- Since:
- 1.0.0
-