diff --git a/docs/reference/authorization/authorize_result.html b/docs/reference/authorization/authorize_result.html index 6eac3724d..d53c5cd5c 100644 --- a/docs/reference/authorization/authorize_result.html +++ b/docs/reference/authorization/authorize_result.html @@ -48,7 +48,7 @@
class FileAssistantThreadContextStore
-(base_dir: str = '/Users/eden.zimbelman/.bolt-app-assistant-thread-contexts')
+(base_dir: str = '/Users/wbergamin/.bolt-app-assistant-thread-contexts')
class AsyncComplete:
client: AsyncWebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -66,6 +67,7 @@ Classes
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
async def __call__(self, outputs: Optional[Dict[str, Any]] = None) -> AsyncSlackResponse:
"""Signal the successful completion of the custom function.
@@ -82,9 +84,18 @@ Classes
if self.function_execution_id is None:
raise ValueError("complete is unsupported here as there is no function_execution_id")
+ self._called = True
return await self.client.functions_completeSuccess(
function_execution_id=self.function_execution_id, outputs=outputs or {}
- )
+ )
+
+ def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
+Check if this complete function has been called.
+bool
client
function_execution_id
+has_been_called
diff --git a/docs/reference/context/complete/complete.html b/docs/reference/context/complete/complete.html
index b1f01ea1a..b8c1b083b 100644
--- a/docs/reference/context/complete/complete.html
+++ b/docs/reference/context/complete/complete.html
@@ -58,6 +58,7 @@ Classes
class Complete:
client: WebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -66,6 +67,7 @@ Classes
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
def __call__(self, outputs: Optional[Dict[str, Any]] = None) -> SlackResponse:
"""Signal the successful completion of the custom function.
@@ -82,7 +84,16 @@ Classes
if self.function_execution_id is None:
raise ValueError("complete is unsupported here as there is no function_execution_id")
- return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
+ self._called = True
+ return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
+
+ def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
+Check if this complete function has been called.
+bool
client
function_execution_id
+has_been_called
diff --git a/docs/reference/context/complete/index.html b/docs/reference/context/complete/index.html
index 7665622b6..dddd26a84 100644
--- a/docs/reference/context/complete/index.html
+++ b/docs/reference/context/complete/index.html
@@ -69,6 +69,7 @@ Classes
class Complete:
client: WebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -77,6 +78,7 @@ Classes
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
def __call__(self, outputs: Optional[Dict[str, Any]] = None) -> SlackResponse:
"""Signal the successful completion of the custom function.
@@ -93,7 +95,16 @@ Classes
if self.function_execution_id is None:
raise ValueError("complete is unsupported here as there is no function_execution_id")
- return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
+ self._called = True
+ return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
+
+ def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
+Check if this complete function has been called.
+bool
client
function_execution_id
+has_been_called
diff --git a/docs/reference/context/fail/async_fail.html b/docs/reference/context/fail/async_fail.html
index 6b3e4f1df..80f19d18c 100644
--- a/docs/reference/context/fail/async_fail.html
+++ b/docs/reference/context/fail/async_fail.html
@@ -58,6 +58,7 @@ Classes
class AsyncFail:
client: AsyncWebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -66,6 +67,7 @@ Classes
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
async def __call__(self, error: str) -> AsyncSlackResponse:
"""Signal that the custom function failed to complete.
@@ -82,7 +84,16 @@ Classes
if self.function_execution_id is None:
raise ValueError("fail is unsupported here as there is no function_execution_id")
- return await self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+ self._called = True
+ return await self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+
+ def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
+Check if this fail function has been called.
+bool
client
function_execution_id
+has_been_called
diff --git a/docs/reference/context/fail/fail.html b/docs/reference/context/fail/fail.html
index 0152561d8..51f4896a4 100644
--- a/docs/reference/context/fail/fail.html
+++ b/docs/reference/context/fail/fail.html
@@ -58,6 +58,7 @@ Classes
class Fail:
client: WebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -66,6 +67,7 @@ Classes
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
def __call__(self, error: str) -> SlackResponse:
"""Signal that the custom function failed to complete.
@@ -82,7 +84,16 @@ Classes
if self.function_execution_id is None:
raise ValueError("fail is unsupported here as there is no function_execution_id")
- return self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+ self._called = True
+ return self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+
+ def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
+Check if this fail function has been called.
+bool
client
function_execution_id
+has_been_called
diff --git a/docs/reference/context/fail/index.html b/docs/reference/context/fail/index.html
index eb2653106..3b35dd6aa 100644
--- a/docs/reference/context/fail/index.html
+++ b/docs/reference/context/fail/index.html
@@ -69,6 +69,7 @@ Classes
class Fail:
client: WebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -77,6 +78,7 @@ Classes
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
def __call__(self, error: str) -> SlackResponse:
"""Signal that the custom function failed to complete.
@@ -93,7 +95,16 @@ Classes
if self.function_execution_id is None:
raise ValueError("fail is unsupported here as there is no function_execution_id")
- return self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+ self._called = True
+ return self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+
+ def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
+Check if this fail function has been called.
+bool
client
function_execution_id
+has_been_called
diff --git a/docs/reference/error/index.html b/docs/reference/error/index.html
index f57d690e9..9a9998e63 100644
--- a/docs/reference/error/index.html
+++ b/docs/reference/error/index.html
@@ -72,7 +72,7 @@ Subclasses
class BoltUnhandledRequestError
-(*,
request: ForwardRef('BoltRequest') | ForwardRef('AsyncBoltRequest'),
current_response: ForwardRef('BoltResponse') | None,
last_global_middleware_name: str | None = None)
+(*,
request: BoltRequest | AsyncBoltRequest,
current_response: BoltResponse | None,
last_global_middleware_name: str | None = None)
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 7bd6d117e..1c02a8aeb 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -5073,6 +5073,7 @@ Methods
class Complete:
client: WebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -5081,6 +5082,7 @@ Methods
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
def __call__(self, outputs: Optional[Dict[str, Any]] = None) -> SlackResponse:
"""Signal the successful completion of the custom function.
@@ -5097,7 +5099,16 @@ Methods
if self.function_execution_id is None:
raise ValueError("complete is unsupported here as there is no function_execution_id")
- return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
+ self._called = True
+ return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
+
+ def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this complete function has been called.
+
+ Returns:
+ bool: True if the complete function has been called, False otherwise.
+ """
+ return self._called
+Check if this complete function has been called.
+bool
class CustomListenerMatcher
@@ -5189,6 +5226,7 @@ Inherited members
class Fail:
client: WebClient
function_execution_id: Optional[str]
+ _called: bool
def __init__(
self,
@@ -5197,6 +5235,7 @@ Inherited members
):
self.client = client
self.function_execution_id = function_execution_id
+ self._called = False
def __call__(self, error: str) -> SlackResponse:
"""Signal that the custom function failed to complete.
@@ -5213,7 +5252,16 @@ Inherited members
if self.function_execution_id is None:
raise ValueError("fail is unsupported here as there is no function_execution_id")
- return self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+ self._called = True
+ return self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
+
+ def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
The type of the None singleton.
+def has_been_called(self) ‑> bool
+def has_been_called(self) -> bool:
+ """Check if this fail function has been called.
+
+ Returns:
+ bool: True if the fail function has been called, False otherwise.
+ """
+ return self._called
+Check if this fail function has been called.
+bool
class FileAssistantThreadContextStore
-(base_dir: str = '/Users/eden.zimbelman/.bolt-app-assistant-thread-contexts')
+(base_dir: str = '/Users/wbergamin/.bolt-app-assistant-thread-contexts')
Complete
client
function_execution_id
+has_been_called
@@ -6136,6 +6211,7 @@ Fail
client
function_execution_id
+has_been_called
diff --git a/docs/reference/logger/messages.html b/docs/reference/logger/messages.html
index 1072e6479..e69b45fc9 100644
--- a/docs/reference/logger/messages.html
+++ b/docs/reference/logger/messages.html
@@ -409,7 +409,7 @@ Functions
-def warning_unhandled_by_global_middleware(name: str,
req: BoltRequest | ForwardRef('AsyncBoltRequest')) ‑> str
+def warning_unhandled_by_global_middleware(name: str,
req: BoltRequest | AsyncBoltRequest) ‑> str
-def warning_unhandled_request(req: BoltRequest | ForwardRef('AsyncBoltRequest')) ‑> str
+def warning_unhandled_request(req: BoltRequest | AsyncBoltRequest) ‑> str
class AsyncOAuthSettings
-(*,
client_id: str | None = None,
client_secret: str | None = None,
scopes: str | Sequence[str] | None = None,
user_scopes: str | Sequence[str] | None = None,
redirect_uri: str | None = None,
install_path: str = '/slack/install',
install_page_rendering_enabled: bool = True,
redirect_uri_path: str = '/slack/oauth_redirect',
callback_options: AsyncCallbackOptions | None = None,
success_url: str | None = None,
failure_url: str | None = None,
authorization_url: str | None = None,
installation_store: slack_sdk.oauth.installation_store.async_installation_store.AsyncInstallationStore | None = None,
installation_store_bot_only: bool = False,
token_rotation_expiration_minutes: int = 120,
user_token_resolution: str = 'authed_user',
state_validation_enabled: bool = True,
state_store: slack_sdk.oauth.state_store.async_state_store.AsyncOAuthStateStore | None = None,
state_cookie_name: str = 'slack-app-oauth-state',
state_expiration_seconds: int = 600,
logger: logging.Logger = <Logger slack_bolt.oauth.async_oauth_settings (WARNING)>)
+(*,
client_id: str | None = None,
client_secret: str | None = None,
scopes: Sequence[str] | str | None = None,
user_scopes: Sequence[str] | str | None = None,
redirect_uri: str | None = None,
install_path: str = '/slack/install',
install_page_rendering_enabled: bool = True,
redirect_uri_path: str = '/slack/oauth_redirect',
callback_options: AsyncCallbackOptions | None = None,
success_url: str | None = None,
failure_url: str | None = None,
authorization_url: str | None = None,
installation_store: slack_sdk.oauth.installation_store.async_installation_store.AsyncInstallationStore | None = None,
installation_store_bot_only: bool = False,
token_rotation_expiration_minutes: int = 120,
user_token_resolution: str = 'authed_user',
state_validation_enabled: bool = True,
state_store: slack_sdk.oauth.state_store.async_state_store.AsyncOAuthStateStore | None = None,
state_cookie_name: str = 'slack-app-oauth-state',
state_expiration_seconds: int = 600,
logger: logging.Logger = <Logger slack_bolt.oauth.async_oauth_settings (WARNING)>)
class OAuthSettings
-(*,
client_id: str | None = None,
client_secret: str | None = None,
scopes: str | Sequence[str] | None = None,
user_scopes: str | Sequence[str] | None = None,
redirect_uri: str | None = None,
install_path: str = '/slack/install',
install_page_rendering_enabled: bool = True,
redirect_uri_path: str = '/slack/oauth_redirect',
callback_options: CallbackOptions | None = None,
success_url: str | None = None,
failure_url: str | None = None,
authorization_url: str | None = None,
installation_store: slack_sdk.oauth.installation_store.installation_store.InstallationStore | None = None,
installation_store_bot_only: bool = False,
token_rotation_expiration_minutes: int = 120,
user_token_resolution: str = 'authed_user',
state_validation_enabled: bool = True,
state_store: slack_sdk.oauth.state_store.state_store.OAuthStateStore | None = None,
state_cookie_name: str = 'slack-app-oauth-state',
state_expiration_seconds: int = 600,
logger: logging.Logger = <Logger slack_bolt.oauth.oauth_settings (WARNING)>)
+(*,
client_id: str | None = None,
client_secret: str | None = None,
scopes: Sequence[str] | str | None = None,
user_scopes: Sequence[str] | str | None = None,
redirect_uri: str | None = None,
install_path: str = '/slack/install',
install_page_rendering_enabled: bool = True,
redirect_uri_path: str = '/slack/oauth_redirect',
callback_options: CallbackOptions | None = None,
success_url: str | None = None,
failure_url: str | None = None,
authorization_url: str | None = None,
installation_store: slack_sdk.oauth.installation_store.installation_store.InstallationStore | None = None,
installation_store_bot_only: bool = False,
token_rotation_expiration_minutes: int = 120,
user_token_resolution: str = 'authed_user',
state_validation_enabled: bool = True,
state_store: slack_sdk.oauth.state_store.state_store.OAuthStateStore | None = None,
state_cookie_name: str = 'slack-app-oauth-state',
state_expiration_seconds: int = 600,
logger: logging.Logger = <Logger slack_bolt.oauth.oauth_settings (WARNING)>)