UNPKG

@osiris-ai/discord-sdk

Version:
18 lines 1.13 kB
import { OAuthAuthenticator } from '@osiris-ai/sdk'; import { ActionParams, ActionResponse, AuthenticationURLOptions } from '@osiris-ai/sdk'; import { DiscordAuthenticatorConfig, DiscordCallbackParams, DiscordTokenResponse, DiscordUserInfo } from './types'; /** * Discord OAuth authenticator for MCP servers * Supports Discord bot and user authentication with guild management capabilities */ export declare class DiscordAuthenticator extends OAuthAuthenticator<DiscordCallbackParams, DiscordTokenResponse> { protected config: DiscordAuthenticatorConfig; allowedScopes: string[]; constructor(allowedScopes: string[], config: DiscordAuthenticatorConfig); getAuthenticationURL(scopes: string[], options: AuthenticationURLOptions): string; callback(params: DiscordCallbackParams): Promise<DiscordTokenResponse>; refreshToken(refreshToken: string): Promise<DiscordTokenResponse>; getUserInfo(accessToken: string): Promise<DiscordUserInfo>; action(params: ActionParams, accessToken: string, refreshToken?: string, retry?: boolean): Promise<ActionResponse>; } //# sourceMappingURL=authenticator.d.ts.map