@seratch_/bolt-fastify
Version:
Bolt for JavaScript Extension - Fastify
26 lines • 1.39 kB
TypeScript
import { InstallProviderOptions, InstallURLOptions, BufferedIncomingMessage, ReceiverDispatchErrorHandlerArgs, ReceiverProcessEventErrorHandlerArgs, ReceiverUnhandledRequestHandlerArgs } from '@slack/bolt';
import { Logger, LogLevel } from '@slack/logger';
import { FastifyInstance } from 'fastify';
import FastifyInstallerOptions from './FastifyInstallerOptions';
export default interface FastifyReceiverOptions {
signingSecret: string | (() => PromiseLike<string>);
logger?: Logger;
logLevel?: LogLevel;
path?: string;
signatureVerification?: boolean;
processBeforeResponse?: boolean;
clientId?: string;
clientSecret?: string;
stateSecret?: InstallProviderOptions['stateSecret'];
redirectUri?: string;
installationStore?: InstallProviderOptions['installationStore'];
scopes?: InstallURLOptions['scopes'];
installerOptions?: FastifyInstallerOptions;
fastify?: FastifyInstance;
customPropertiesExtractor?: (request: BufferedIncomingMessage) => Record<string, any>;
dispatchErrorHandler?: (args: ReceiverDispatchErrorHandlerArgs) => Promise<void>;
processEventErrorHandler?: (args: ReceiverProcessEventErrorHandlerArgs) => Promise<boolean>;
unhandledRequestHandler?: (args: ReceiverUnhandledRequestHandlerArgs) => void;
unhandledRequestTimeoutMillis?: number;
}
//# sourceMappingURL=FastifyReceiverOptions.d.ts.map