import type { AuthorizeToolProviderParams, AuthorizeToolProviderResponse, ClientOptions, DisconnectToolProviderConnectionParams, DisconnectToolProviderConnectionResponse, GetToolProviderConnectionUsageParams, GetToolProviderConnectionUsageResponse, GetToolProviderToolSchemaResponse, ListToolProviderConnectionFieldsParams, ListToolProviderConnectionFieldsResponse, ListToolProviderConnectionsParams, ListToolProviderConnectionsResponse, ListToolProviderToolkitsResponse, ListToolProviderToolsParams, ListToolProviderToolsResponse, ToolProviderAuthStatusResponse, ToolProviderConnectionStatusParams, ToolProviderConnectionStatusResponse, ToolProviderHealthResponse, UpdateToolProviderConnectionParams, UpdateToolProviderConnectionResponse } from '../types.js'; import { BaseResource } from './base.js'; /** * Resource for interacting with a specific tool provider. * * Exposes the catalog (toolkits + tools), the OAuth surface (authorize + * auth-status + connection-status), the lifecycle surface (connections list / * disconnect / usage / fields), and a provider-level health check. */ export declare class ToolProvider extends BaseResource { private providerId; constructor(options: ClientOptions, providerId: string); /** * Lists available toolkits from this provider. */ listToolkits(): Promise; /** * Lists available tools from this provider, with optional filtering. */ listTools(params?: ListToolProviderToolsParams): Promise; /** * Gets the input schema for a specific tool. */ getToolSchema(toolSlug: string): Promise; /** * Starts an OAuth flow for a (toolkit, connectionId) pair. Returns a * redirect URL and an opaque auth handle to poll with `getAuthStatus`. */ authorize(params: AuthorizeToolProviderParams): Promise; /** * Polls the OAuth flow status for an outstanding authorize call. */ getAuthStatus(authId: string): Promise; /** * Batch-checks whether a set of (connectionId, toolkit) tuples are * currently connected. */ getConnectionStatus(params: ToolProviderConnectionStatusParams): Promise; /** * Lists existing provider connections, scoped to a toolkit. * * Default: the connection owner is resolved server-side from the request's * auth context. Admin callers (with `tool-providers:admin` permission) may * pass `authorId` to target a specific author, or omit it to receive * connections across all authors known to `tool_provider_connections` for * this provider/toolkit. Pagination is page-based via `page` (1-indexed) * and `perPage` (default 50, max 200). */ listConnections(params: ListToolProviderConnectionsParams): Promise; /** * Lists provider-specific fields the picker should collect before * initiating a new connection (e.g. Confluence subdomain). Most toolkits * return an empty array. */ listConnectionFields(params: ListToolProviderConnectionFieldsParams): Promise; /** * Disconnects (revokes + deletes) a persisted connection. * * Without `force: true` the server refuses if any agent still pins the * connection. With `force: true` the provider-side revoke is best-effort * (errors are tolerated) and the local row is always removed. */ disconnectConnection(connectionId: string, params?: DisconnectToolProviderConnectionParams): Promise; /** * Updates the persisted display label on a connection row. Pass `label: null` * (or an empty string) to clear the existing label. Only the connection owner * or an admin may rename, unless the row is `scope: 'shared'`. */ updateConnection(connectionId: string, params: UpdateToolProviderConnectionParams): Promise; /** * Lists the agents that currently pin a given connection. Used by the * picker to warn the user before disconnecting a shared account. */ getConnectionUsage(connectionId: string, params?: GetToolProviderConnectionUsageParams): Promise; /** * Returns provider-level health (config, reachability, etc.). */ getHealth(): Promise; } //# sourceMappingURL=tool-provider.d.ts.map