From 7b19d3dccfb03f9bf4ebb62229053e6bc5c3ab65 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Wed, 3 Jul 2024 10:12:52 +0900 Subject: [PATCH] version 1.19.1 --- .../slack_bolt/adapter/aiohttp/index.html | 121 +- .../adapter/asgi/aiohttp/index.html | 86 +- .../adapter/asgi/async_handler.html | 36 +- .../slack_bolt/adapter/asgi/base_handler.html | 128 +- .../adapter/asgi/builtin/index.html | 99 +- .../slack_bolt/adapter/asgi/http_request.html | 91 +- .../adapter/asgi/http_response.html | 90 +- .../slack_bolt/adapter/asgi/index.html | 51 +- .../slack_bolt/adapter/asgi/utils.html | 40 +- .../adapter/aws_lambda/chalice_handler.html | 234 +- .../chalice_lazy_listener_runner.html | 82 +- .../adapter/aws_lambda/handler.html | 244 +- .../slack_bolt/adapter/aws_lambda/index.html | 96 +- .../adapter/aws_lambda/internals.html | 42 +- .../aws_lambda/lambda_s3_oauth_flow.html | 154 +- .../aws_lambda/lazy_listener_runner.html | 73 +- .../aws_lambda/local_lambda_client.html | 76 +- .../slack_bolt/adapter/bottle/handler.html | 130 +- .../slack_bolt/adapter/bottle/index.html | 62 +- .../slack_bolt/adapter/cherrypy/handler.html | 195 +- .../slack_bolt/adapter/cherrypy/index.html | 64 +- .../slack_bolt/adapter/django/handler.html | 296 +- .../slack_bolt/adapter/django/index.html | 58 +- .../adapter/falcon/async_resource.html | 137 +- .../slack_bolt/adapter/falcon/index.html | 67 +- .../slack_bolt/adapter/falcon/resource.html | 135 +- .../adapter/fastapi/async_handler.html | 66 +- .../slack_bolt/adapter/fastapi/index.html | 63 +- .../slack_bolt/adapter/flask/handler.html | 124 +- .../slack_bolt/adapter/flask/index.html | 58 +- .../google_cloud_functions/handler.html | 105 +- .../adapter/google_cloud_functions/index.html | 57 +- docs/api-docs/slack_bolt/adapter/index.html | 35 +- .../slack_bolt/adapter/pyramid/handler.html | 169 +- .../slack_bolt/adapter/pyramid/index.html | 61 +- .../adapter/sanic/async_handler.html | 156 +- .../slack_bolt/adapter/sanic/index.html | 62 +- .../adapter/socket_mode/aiohttp/index.html | 124 +- .../socket_mode/async_base_handler.html | 135 +- .../adapter/socket_mode/async_handler.html | 39 +- .../adapter/socket_mode/async_internals.html | 117 +- .../adapter/socket_mode/base_handler.html | 149 +- .../adapter/socket_mode/builtin/index.html | 109 +- .../slack_bolt/adapter/socket_mode/index.html | 47 +- .../adapter/socket_mode/internals.html | 113 +- .../socket_mode/websocket_client/index.html | 103 +- .../adapter/socket_mode/websockets/index.html | 123 +- .../adapter/starlette/async_handler.html | 178 +- .../slack_bolt/adapter/starlette/handler.html | 169 +- .../slack_bolt/adapter/starlette/index.html | 63 +- .../adapter/tornado/async_handler.html | 128 +- .../slack_bolt/adapter/tornado/handler.html | 174 +- .../slack_bolt/adapter/tornado/index.html | 80 +- .../slack_bolt/adapter/wsgi/handler.html | 147 +- .../slack_bolt/adapter/wsgi/http_request.html | 105 +- .../adapter/wsgi/http_response.html | 89 +- .../slack_bolt/adapter/wsgi/index.html | 65 +- .../slack_bolt/adapter/wsgi/internals.html | 34 +- docs/api-docs/slack_bolt/app/app.html | 2402 +---------------- docs/api-docs/slack_bolt/app/async_app.html | 2345 +--------------- .../api-docs/slack_bolt/app/async_server.html | 165 +- docs/api-docs/slack_bolt/app/index.html | 929 +------ docs/api-docs/slack_bolt/async_app.html | 1130 +------- .../authorization/async_authorize.html | 412 +-- .../authorization/async_authorize_args.html | 71 +- .../slack_bolt/authorization/authorize.html | 409 +-- .../authorization/authorize_args.html | 71 +- .../authorization/authorize_result.html | 185 +- .../slack_bolt/authorization/index.html | 84 +- docs/api-docs/slack_bolt/context/ack/ack.html | 79 +- .../slack_bolt/context/ack/async_ack.html | 79 +- .../slack_bolt/context/ack/index.html | 39 +- .../slack_bolt/context/ack/internals.html | 134 +- .../slack_bolt/context/async_context.html | 186 +- .../slack_bolt/context/base_context.html | 228 +- docs/api-docs/slack_bolt/context/context.html | 189 +- docs/api-docs/slack_bolt/context/index.html | 76 +- .../context/respond/async_respond.html | 101 +- .../slack_bolt/context/respond/index.html | 39 +- .../slack_bolt/context/respond/internals.html | 73 +- .../slack_bolt/context/respond/respond.html | 101 +- .../slack_bolt/context/say/async_say.html | 109 +- .../slack_bolt/context/say/index.html | 39 +- .../slack_bolt/context/say/internals.html | 38 +- docs/api-docs/slack_bolt/context/say/say.html | 109 +- docs/api-docs/slack_bolt/error/index.html | 61 +- docs/api-docs/slack_bolt/index.html | 1077 +------- .../slack_bolt/kwargs_injection/args.html | 170 +- .../kwargs_injection/async_args.html | 166 +- .../kwargs_injection/async_utils.html | 229 +- .../slack_bolt/kwargs_injection/index.html | 137 +- .../slack_bolt/kwargs_injection/utils.html | 229 +- .../lazy_listener/async_internals.html | 93 +- .../lazy_listener/async_runner.html | 99 +- .../lazy_listener/asyncio_runner.html | 59 +- .../slack_bolt/lazy_listener/index.html | 95 +- .../slack_bolt/lazy_listener/internals.html | 93 +- .../slack_bolt/lazy_listener/runner.html | 97 +- .../lazy_listener/thread_runner.html | 61 +- .../slack_bolt/listener/async_builtins.html | 98 +- .../slack_bolt/listener/async_listener.html | 252 +- .../async_listener_completion_handler.html | 108 +- .../async_listener_error_handler.html | 120 +- .../async_listener_start_handler.html | 108 +- .../slack_bolt/listener/asyncio_runner.html | 343 +-- .../slack_bolt/listener/builtins.html | 96 +- .../slack_bolt/listener/custom_listener.html | 91 +- docs/api-docs/slack_bolt/listener/index.html | 118 +- .../slack_bolt/listener/listener.html | 166 +- .../listener/listener_completion_handler.html | 108 +- .../listener/listener_error_handler.html | 120 +- .../listener/listener_start_handler.html | 116 +- .../slack_bolt/listener/thread_runner.html | 368 +-- .../listener_matcher/async_builtins.html | 52 +- .../async_listener_matcher.html | 125 +- .../slack_bolt/listener_matcher/builtins.html | 1007 +------ .../custom_listener_matcher.html | 66 +- .../slack_bolt/listener_matcher/index.html | 69 +- .../listener_matcher/listener_matcher.html | 69 +- docs/api-docs/slack_bolt/logger/index.html | 108 +- docs/api-docs/slack_bolt/logger/messages.html | 717 +---- .../slack_bolt/middleware/async_builtins.html | 67 +- .../middleware/async_custom_middleware.html | 91 +- .../middleware/async_middleware.html | 127 +- .../async_middleware_error_handler.html | 120 +- .../authorization/async_authorization.html | 40 +- .../authorization/async_internals.html | 55 +- .../async_multi_teams_authorization.html | 139 +- .../async_single_team_authorization.html | 106 +- .../authorization/authorization.html | 38 +- .../middleware/authorization/index.html | 43 +- .../middleware/authorization/internals.html | 112 +- .../multi_teams_authorization.html | 142 +- .../single_team_authorization.html | 118 +- .../middleware/custom_middleware.html | 80 +- .../async_ignoring_self_events.html | 57 +- .../ignoring_self_events.html | 93 +- .../ignoring_self_events/index.html | 38 +- .../api-docs/slack_bolt/middleware/index.html | 117 +- .../async_message_listener_matches.html | 69 +- .../message_listener_matches/index.html | 38 +- .../message_listener_matches.html | 69 +- .../slack_bolt/middleware/middleware.html | 127 +- .../middleware/middleware_error_handler.html | 120 +- .../async_request_verification.html | 69 +- .../request_verification/index.html | 38 +- .../request_verification.html | 94 +- .../middleware/ssl_check/async_ssl_check.html | 73 +- .../middleware/ssl_check/index.html | 38 +- .../middleware/ssl_check/ssl_check.html | 95 +- .../async_url_verification.html | 58 +- .../middleware/url_verification/index.html | 38 +- .../url_verification/url_verification.html | 77 +- .../oauth/async_callback_options.html | 147 +- .../slack_bolt/oauth/async_internals.html | 117 +- .../slack_bolt/oauth/async_oauth_flow.html | 702 +---- .../oauth/async_oauth_settings.html | 223 +- .../slack_bolt/oauth/callback_options.html | 151 +- docs/api-docs/slack_bolt/oauth/index.html | 349 +-- docs/api-docs/slack_bolt/oauth/internals.html | 237 +- .../api-docs/slack_bolt/oauth/oauth_flow.html | 703 +---- .../slack_bolt/oauth/oauth_settings.html | 216 +- .../slack_bolt/request/async_internals.html | 130 +- .../slack_bolt/request/async_request.html | 130 +- docs/api-docs/slack_bolt/request/index.html | 58 +- .../slack_bolt/request/internals.html | 629 +---- .../slack_bolt/request/payload_utils.html | 439 +-- docs/api-docs/slack_bolt/request/request.html | 129 +- docs/api-docs/slack_bolt/response/index.html | 68 +- .../slack_bolt/response/response.html | 114 +- .../api-docs/slack_bolt/util/async_utils.html | 58 +- docs/api-docs/slack_bolt/util/index.html | 34 +- docs/api-docs/slack_bolt/util/utils.html | 223 +- docs/api-docs/slack_bolt/version.html | 35 +- docs/api-docs/slack_bolt/workflows/index.html | 43 +- .../slack_bolt/workflows/step/async_step.html | 881 +----- .../workflows/step/async_step_middleware.html | 90 +- .../slack_bolt/workflows/step/index.html | 120 +- .../slack_bolt/workflows/step/internals.html | 43 +- .../slack_bolt/workflows/step/step.html | 929 +------ .../workflows/step/step_middleware.html | 93 +- .../step/utilities/async_complete.html | 69 +- .../step/utilities/async_configure.html | 88 +- .../workflows/step/utilities/async_fail.html | 70 +- .../step/utilities/async_update.html | 85 +- .../workflows/step/utilities/complete.html | 69 +- .../workflows/step/utilities/configure.html | 85 +- .../workflows/step/utilities/fail.html | 70 +- .../workflows/step/utilities/index.html | 52 +- .../workflows/step/utilities/update.html | 85 +- slack_bolt/version.py | 2 +- 191 files changed, 3108 insertions(+), 30291 deletions(-) diff --git a/docs/api-docs/slack_bolt/adapter/aiohttp/index.html b/docs/api-docs/slack_bolt/adapter/aiohttp/index.html index 693657840..54bee5e0f 100644 --- a/docs/api-docs/slack_bolt/adapter/aiohttp/index.html +++ b/docs/api-docs/slack_bolt/adapter/aiohttp/index.html @@ -2,18 +2,21 @@ - - + + slack_bolt.adapter.aiohttp API documentation - - - - - - + + + + + + - - + +
@@ -22,58 +25,6 @@

Module slack_bolt.adapter.aiohttp

-
- -Expand source code - -
import re
-
-from aiohttp import web
-
-from slack_bolt.request.async_request import AsyncBoltRequest
-from slack_bolt.response import BoltResponse
-
-
-async def to_bolt_request(request: web.Request) -> AsyncBoltRequest:
-    return AsyncBoltRequest(
-        body=await request.text(),
-        query=request.query_string,
-        headers=request.headers,
-    )
-
-
-async def to_aiohttp_response(bolt_resp: BoltResponse) -> web.Response:
-    content_type = bolt_resp.headers.pop(
-        "content-type",
-        ["application/json" if bolt_resp.body.startswith("{") else "text/plain"],
-    )[0]
-    content_type = re.sub(r";\s*charset=utf-8", "", content_type)
-    resp = web.Response(
-        status=bolt_resp.status,
-        body=bolt_resp.body,
-        headers=bolt_resp.first_headers_without_set_cookie(),
-        content_type=content_type,
-    )
-    for cookie in bolt_resp.cookies():
-        for name, c in cookie.items():
-            resp.set_cookie(
-                name=name,
-                value=c.value,
-                max_age=c.get("max-age"),
-                expires=c.get("expires"),
-                path=c.get("path"),
-                domain=c.get("domain"),
-                secure=True,
-                httponly=True,
-            )
-    return resp
-
-
-__all__ = [
-    "to_bolt_request",
-    "to_aiohttp_response",
-]
-
@@ -87,53 +38,12 @@

Functions

-
- -Expand source code - -
async def to_aiohttp_response(bolt_resp: BoltResponse) -> web.Response:
-    content_type = bolt_resp.headers.pop(
-        "content-type",
-        ["application/json" if bolt_resp.body.startswith("{") else "text/plain"],
-    )[0]
-    content_type = re.sub(r";\s*charset=utf-8", "", content_type)
-    resp = web.Response(
-        status=bolt_resp.status,
-        body=bolt_resp.body,
-        headers=bolt_resp.first_headers_without_set_cookie(),
-        content_type=content_type,
-    )
-    for cookie in bolt_resp.cookies():
-        for name, c in cookie.items():
-            resp.set_cookie(
-                name=name,
-                value=c.value,
-                max_age=c.get("max-age"),
-                expires=c.get("expires"),
-                path=c.get("path"),
-                domain=c.get("domain"),
-                secure=True,
-                httponly=True,
-            )
-    return resp
-
async def to_bolt_request(request: aiohttp.web_request.Request) ‑> AsyncBoltRequest
-
- -Expand source code - -
async def to_bolt_request(request: web.Request) -> AsyncBoltRequest:
-    return AsyncBoltRequest(
-        body=await request.text(),
-        query=request.query_string,
-        headers=request.headers,
-    )
-
@@ -141,7 +51,6 @@

Functions

- \ No newline at end of file + diff --git a/docs/api-docs/slack_bolt/adapter/asgi/aiohttp/index.html b/docs/api-docs/slack_bolt/adapter/asgi/aiohttp/index.html index 3bd13d292..6fa6de3a4 100644 --- a/docs/api-docs/slack_bolt/adapter/asgi/aiohttp/index.html +++ b/docs/api-docs/slack_bolt/adapter/asgi/aiohttp/index.html @@ -2,18 +2,21 @@ - - + + slack_bolt.adapter.asgi.aiohttp API documentation - - - - - - + + + + + + - - + +
@@ -22,64 +25,6 @@

Module slack_bolt.adapter.asgi.aiohttp

-
- -Expand source code - -
from slack_bolt.oauth.async_oauth_flow import AsyncOAuthFlow
-
-from slack_bolt.adapter.asgi.http_request import AsgiHttpRequest
-from slack_bolt.adapter.asgi.builtin import SlackRequestHandler
-
-from slack_bolt.async_app import AsyncApp
-
-from slack_bolt.async_app import AsyncBoltRequest
-from slack_bolt.response import BoltResponse
-
-
-class AsyncSlackRequestHandler(SlackRequestHandler):
-    app: AsyncApp
-
-    def __init__(self, app: AsyncApp, path: str = "/slack/events"):
-        """Setup Bolt as an ASGI web framework, this will make your application compatible with ASGI web servers.
-        This can be used for production deployment.
-
-        With the default settings, `http://localhost:3000/slack/events`
-        Run Bolt with [uvicron](https://www.uvicorn.org/)
-
-            # Python
-            app = AsyncApp()
-            api = SlackRequestHandler(app)
-
-            # bash
-            export SLACK_SIGNING_SECRET=***
-            export SLACK_BOT_TOKEN=xoxb-***
-            uvicorn app:api --port 3000 --log-level debug
-
-        Args:
-            app: Your bolt application
-            path: The path to handle request from Slack (Default: `/slack/events`)
-        """
-        self.path = path
-        self.app = app
-
-    async def dispatch(self, request: AsgiHttpRequest) -> BoltResponse:
-        return await self.app.async_dispatch(
-            AsyncBoltRequest(body=await request.get_raw_body(), query=request.query_string, headers=request.get_headers())
-        )
-
-    async def handle_installation(self, request: AsgiHttpRequest) -> BoltResponse:
-        oauth_flow: AsyncOAuthFlow = self.app.oauth_flow
-        return await oauth_flow.handle_installation(
-            AsyncBoltRequest(body=await request.get_raw_body(), query=request.query_string, headers=request.get_headers())
-        )
-
-    async def handle_callback(self, request: AsgiHttpRequest) -> BoltResponse:
-        oauth_flow: AsyncOAuthFlow = self.app.oauth_flow
-        return await oauth_flow.handle_callback(
-            AsyncBoltRequest(body=await request.get_raw_body(), query=request.query_string, headers=request.get_headers())
-        )
-
@@ -189,7 +134,6 @@

Inherited members

- \ No newline at end of file + diff --git a/docs/api-docs/slack_bolt/adapter/asgi/async_handler.html b/docs/api-docs/slack_bolt/adapter/asgi/async_handler.html index b93e472f9..f100b1161 100644 --- a/docs/api-docs/slack_bolt/adapter/asgi/async_handler.html +++ b/docs/api-docs/slack_bolt/adapter/asgi/async_handler.html @@ -2,18 +2,21 @@ - - + + slack_bolt.adapter.asgi.async_handler API documentation - - - - - - + + + + + + - - + +
@@ -22,14 +25,6 @@

Module slack_bolt.adapter.asgi.async_handler

-
- -Expand source code - -
from .aiohttp import AsyncSlackRequestHandler
-
-__all__ = ["AsyncSlackRequestHandler"]
-
@@ -139,7 +134,6 @@

Inherited members