slack-edge
Version:
Slack app development framework for edge functions with streamlined TypeScript support
39 lines • 879 B
TypeScript
/**
* The whole payload data.
*/
export interface SlackRequestBody {
type?: string;
command?: string;
event?: {
type: string;
subtype?: string;
text?: string;
};
event_id?: string;
event_time?: number;
api_app_id?: string;
enterprise_id?: string;
team_id?: string;
is_ext_shared_channel?: boolean;
authorizations?: EventApiAuthorization[];
token?: string;
callback_id?: string;
actions: {
type: string;
block_id: string;
action_id: string;
}[];
block_id?: string;
action_id?: string;
view?: {
callback_id: string;
};
}
export interface EventApiAuthorization {
enterprise_id: string | null;
team_id: string | null;
user_id: string;
is_bot: boolean;
is_enterprise_install?: boolean;
}
//# sourceMappingURL=request-body.d.ts.map