UNPKG

@microfox/slack

Version:

This package provides a lightweight, proxy interface to the official Slack Web API, offering a curated set of the most commonly used functions for building Slack integrations. It is designed to be simple, efficient, and easy to integrate into your project

54 lines (47 loc) 1.12 kB
service: public-slack-api package: excludeDevDependencies: true include: - 'openapi.json' plugins: - serverless-plugin-typescript - serverless-api-gateway-throttling - serverless-offline provider: name: aws runtime: nodejs20.x region: us-east-1 stage: ${opt:stage, env:ENVIRONMENT, 'dev'} environment: ${file(env.json)} custom: stage: ${opt:stage, env:ENVIRONMENT, 'dev'} apiGatewayThrottling: maxRequestsPerSecond: 50 maxConcurrentRequests: 20 serverless-offline: printOutput: true httpPort: 4000 lambdaPort: 4002 environment: ${file(env.json)} disableCookieValidation: true timeout: 6000 functions: unifiedHandler: handler: dist/index.handler events: - http: path: /{functionName} method: any cors: true resources: Outputs: ApiEndpoints: Description: 'API Endpoints' Value: Fn::Join: - '' - - 'API: https://' - Ref: 'ApiGatewayRestApi' - '.execute-api.' - Ref: 'AWS::Region' - "/${env:ENVIRONMENT, 'dev'}"