slack-web-api-client
Version:
Streamlined Slack Web API client for TypeScript
43 lines • 1.08 kB
TypeScript
import type { SlackAPIResponse } from "../response";
export type OAuthV2ExchangeResponse = SlackAPIResponse & {
access_token?: string;
app_id?: string;
authed_user?: AuthedUser;
bot_user_id?: string;
enterprise?: Enterprise;
error?: string;
expires_in?: number;
incoming_webhook?: IncomingWebhook;
is_enterprise_install?: boolean;
needed?: string;
ok: boolean;
provided?: string;
refresh_token?: string;
response_metadata?: ResponseMetadata;
scope?: string;
team?: Enterprise;
token_type?: string;
warning?: string;
};
export interface AuthedUser {
access_token?: string;
expires_in?: number;
id?: string;
refresh_token?: string;
scope?: string;
token_type?: string;
}
export interface Enterprise {
id?: string;
name?: string;
}
export interface IncomingWebhook {
channel?: string;
channel_id?: string;
configuration_url?: string;
url?: string;
}
export interface ResponseMetadata {
messages?: string[];
}
//# sourceMappingURL=OAuthV2ExchangeResponse.d.ts.map