diff --git a/docs/api-docs/slack_sdk/index.html b/docs/api-docs/slack_sdk/index.html index c047a6407..abfe55bc3 100644 --- a/docs/api-docs/slack_sdk/index.html +++ b/docs/api-docs/slack_sdk/index.html @@ -3888,6 +3888,32 @@
+def functions_completeError(self, *, function_execution_id: str, error: str, **kwargs) ‑> SlackResponse
+
Signal the failure to execute a function +https://api.slack.com/methods/functions.completeError
def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+) -> SlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
+def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> SlackResponse
+
Signal the successful completion of a function +https://api.slack.com/methods/functions.completeSuccess
def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+) -> SlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
def groups_archive(self, *, channel: str, **kwargs) ‑> SlackResponse
WebClient
files_sharedPublicURL
files_upload
files_upload_v2
+functions_completeError
+functions_completeSuccess
groups_archive
groups_create
groups_createChild
diff --git a/docs/api-docs/slack_sdk/models/blocks/blocks.html b/docs/api-docs/slack_sdk/models/blocks/blocks.html
index 9876d253f..801605683 100644
--- a/docs/api-docs/slack_sdk/models/blocks/blocks.html
+++ b/docs/api-docs/slack_sdk/models/blocks/blocks.html
@@ -117,6 +117,8 @@ Module slack_sdk.models.blocks.blocks
return HeaderBlock(**block)
elif type == VideoBlock.type:
return VideoBlock(**block)
+ elif type == RichTextBlock.type:
+ return RichTextBlock(**block)
else:
cls.logger.warning(f"Unknown block detected and skipped ({block})")
return None
@@ -861,6 +863,8 @@ Inherited members
return HeaderBlock(**block)
elif type == VideoBlock.type:
return VideoBlock(**block)
+ elif type == RichTextBlock.type:
+ return RichTextBlock(**block)
else:
cls.logger.warning(f"Unknown block detected and skipped ({block})")
return None
@@ -942,6 +946,8 @@ Static methods
return HeaderBlock(**block)
elif type == VideoBlock.type:
return VideoBlock(**block)
+ elif type == RichTextBlock.type:
+ return RichTextBlock(**block)
else:
cls.logger.warning(f"Unknown block detected and skipped ({block})")
return None
diff --git a/docs/api-docs/slack_sdk/models/blocks/index.html b/docs/api-docs/slack_sdk/models/blocks/index.html
index 39d33b193..c68d81943 100644
--- a/docs/api-docs/slack_sdk/models/blocks/index.html
+++ b/docs/api-docs/slack_sdk/models/blocks/index.html
@@ -367,6 +367,8 @@ Inherited members
return HeaderBlock(**block)
elif type == VideoBlock.type:
return VideoBlock(**block)
+ elif type == RichTextBlock.type:
+ return RichTextBlock(**block)
else:
cls.logger.warning(f"Unknown block detected and skipped ({block})")
return None
@@ -448,6 +450,8 @@ Static methods
return HeaderBlock(**block)
elif type == VideoBlock.type:
return VideoBlock(**block)
+ elif type == RichTextBlock.type:
+ return RichTextBlock(**block)
else:
cls.logger.warning(f"Unknown block detected and skipped ({block})")
return None
diff --git a/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html b/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html
index 5d206b026..8de95633e 100644
--- a/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html
+++ b/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html
@@ -284,7 +284,7 @@ Classes
class FileInstallationStore
-(*, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
+(*, base_dir: str = '/Users/seratch/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
-
The installation store interface.
diff --git a/docs/api-docs/slack_sdk/oauth/installation_store/index.html b/docs/api-docs/slack_sdk/oauth/installation_store/index.html
index 7b06b98ed..e73f9cc59 100644
--- a/docs/api-docs/slack_sdk/oauth/installation_store/index.html
+++ b/docs/api-docs/slack_sdk/oauth/installation_store/index.html
@@ -340,7 +340,7 @@ Methods
class FileInstallationStore
-(*, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
+(*, base_dir: str = '/Users/seratch/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
-
The installation store interface.
diff --git a/docs/api-docs/slack_sdk/oauth/state_store/file/index.html b/docs/api-docs/slack_sdk/oauth/state_store/file/index.html
index 416e6d781..d9cf53bd5 100644
--- a/docs/api-docs/slack_sdk/oauth/state_store/file/index.html
+++ b/docs/api-docs/slack_sdk/oauth/state_store/file/index.html
@@ -110,7 +110,7 @@ Classes
class FileOAuthStateStore
-(*, expiration_seconds: int, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
+(*, expiration_seconds: int, base_dir: str = '/Users/seratch/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
-
diff --git a/docs/api-docs/slack_sdk/oauth/state_store/index.html b/docs/api-docs/slack_sdk/oauth/state_store/index.html
index a07fae3c7..3a9a7bc6e 100644
--- a/docs/api-docs/slack_sdk/oauth/state_store/index.html
+++ b/docs/api-docs/slack_sdk/oauth/state_store/index.html
@@ -80,7 +80,7 @@
Classes
class FileOAuthStateStore
-(*, expiration_seconds: int, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
+(*, expiration_seconds: int, base_dir: str = '/Users/seratch/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
-
diff --git a/docs/api-docs/slack_sdk/version.html b/docs/api-docs/slack_sdk/version.html
index f738ed0bc..a437d5e81 100644
--- a/docs/api-docs/slack_sdk/version.html
+++ b/docs/api-docs/slack_sdk/version.html
@@ -28,7 +28,7 @@
Module slack_sdk.version
Expand source code
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
-__version__ = "3.25.0"
+__version__ = "3.26.0"
diff --git a/docs/api-docs/slack_sdk/web/async_client.html b/docs/api-docs/slack_sdk/web/async_client.html
index 76e49fc86..9c4770384 100644
--- a/docs/api-docs/slack_sdk/web/async_client.html
+++ b/docs/api-docs/slack_sdk/web/async_client.html
@@ -3687,6 +3687,32 @@ Module slack_sdk.web.async_client
)
return await self.api_call("files.completeUploadExternal", params=kwargs)
+ async def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return await self.api_call("functions.completeSuccess", params=kwargs)
+
+ async def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return await self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -8823,6 +8849,32 @@ Note
)
return await self.api_call("files.completeUploadExternal", params=kwargs)
+ async def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return await self.api_call("functions.completeSuccess", params=kwargs)
+
+ async def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return await self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -15896,6 +15948,54 @@ Methods
return completion
+
+async def functions_completeError(self, *, function_execution_id: str, error: str, **kwargs) ‑> AsyncSlackResponse
+
+-
+
Signal the failure to execute a function
+https://api.slack.com/methods/functions.completeError
+
+
+Expand source code
+
+async def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+) -> AsyncSlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return await self.api_call("functions.completeError", params=kwargs)
+
+
+
+async def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> AsyncSlackResponse
+
+-
+
Signal the successful completion of a function
+https://api.slack.com/methods/functions.completeSuccess
+
+
+Expand source code
+
+async def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+) -> AsyncSlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return await self.api_call("functions.completeSuccess", params=kwargs)
+
+
async def groups_archive(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse
@@ -18487,6 +18587,8 @@ files_sharedPublicURL
files_upload
files_upload_v2
+functions_completeError
+functions_completeSuccess
groups_archive
groups_create
groups_createChild
diff --git a/docs/api-docs/slack_sdk/web/client.html b/docs/api-docs/slack_sdk/web/client.html
index ea8df8911..a79b1e66d 100644
--- a/docs/api-docs/slack_sdk/web/client.html
+++ b/docs/api-docs/slack_sdk/web/client.html
@@ -3678,6 +3678,32 @@ Module slack_sdk.web.client
)
return self.api_call("files.completeUploadExternal", params=kwargs)
+ def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> SlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+ def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -8814,6 +8840,32 @@ Note
)
return self.api_call("files.completeUploadExternal", params=kwargs)
+ def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> SlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+ def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -15887,6 +15939,54 @@ Methods
return completion
+
+def functions_completeError(self, *, function_execution_id: str, error: str, **kwargs) ‑> SlackResponse
+
+-
+
Signal the failure to execute a function
+https://api.slack.com/methods/functions.completeError
+
+
+Expand source code
+
+def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+) -> SlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
+
+
+def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> SlackResponse
+
+-
+
Signal the successful completion of a function
+https://api.slack.com/methods/functions.completeSuccess
+
+
+Expand source code
+
+def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+) -> SlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+
def groups_archive(self, *, channel: str, **kwargs) ‑> SlackResponse
@@ -18477,6 +18577,8 @@ files_sharedPublicURL
files_upload
files_upload_v2
+functions_completeError
+functions_completeSuccess
groups_archive
groups_create
groups_createChild
diff --git a/docs/api-docs/slack_sdk/web/index.html b/docs/api-docs/slack_sdk/web/index.html
index 037adcf42..94363d148 100644
--- a/docs/api-docs/slack_sdk/web/index.html
+++ b/docs/api-docs/slack_sdk/web/index.html
@@ -4099,6 +4099,32 @@ Note
)
return self.api_call("files.completeUploadExternal", params=kwargs)
+ def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> SlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+ def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -11172,6 +11198,54 @@ Methods
return completion
+
+def functions_completeError(self, *, function_execution_id: str, error: str, **kwargs) ‑> SlackResponse
+
+-
+
Signal the failure to execute a function
+https://api.slack.com/methods/functions.completeError
+
+
+Expand source code
+
+def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+) -> SlackResponse:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
+
+
+def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> SlackResponse
+
+-
+
Signal the successful completion of a function
+https://api.slack.com/methods/functions.completeSuccess
+
+
+Expand source code
+
+def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+) -> SlackResponse:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+
def groups_archive(self, *, channel: str, **kwargs) ‑> SlackResponse
@@ -13785,6 +13859,8 @@ Web
files_sharedPublicURL
files_upload
files_upload_v2
+functions_completeError
+functions_completeSuccess
groups_archive
groups_create
groups_createChild
diff --git a/docs/api-docs/slack_sdk/web/legacy_client.html b/docs/api-docs/slack_sdk/web/legacy_client.html
index c643976d3..a6b2d11bc 100644
--- a/docs/api-docs/slack_sdk/web/legacy_client.html
+++ b/docs/api-docs/slack_sdk/web/legacy_client.html
@@ -3688,6 +3688,32 @@ Module slack_sdk.web.legacy_client
)
return self.api_call("files.completeUploadExternal", params=kwargs)
+ def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+ def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -8824,6 +8850,32 @@ Note
)
return self.api_call("files.completeUploadExternal", params=kwargs)
+ def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+ def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
# --------------------------
# Deprecated: groups.*
# You can use conversations.* APIs instead.
@@ -15897,6 +15949,54 @@ Methods
return completion
+
+def functions_completeError(self, *, function_execution_id: str, error: str, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
+
+-
+
Signal the failure to execute a function
+https://api.slack.com/methods/functions.completeError
+
+
+Expand source code
+
+def functions_completeError(
+ self,
+ *,
+ function_execution_id: str,
+ error: str,
+ **kwargs,
+) -> Union[Future, SlackResponse]:
+ """Signal the failure to execute a function
+ https://api.slack.com/methods/functions.completeError
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "error": error})
+ return self.api_call("functions.completeError", params=kwargs)
+
+
+
+def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
+
+-
+
Signal the successful completion of a function
+https://api.slack.com/methods/functions.completeSuccess
+
+
+Expand source code
+
+def functions_completeSuccess(
+ self,
+ *,
+ function_execution_id: str,
+ outputs: Dict[str, Any],
+ **kwargs,
+) -> Union[Future, SlackResponse]:
+ """Signal the successful completion of a function
+ https://api.slack.com/methods/functions.completeSuccess
+ """
+ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)})
+ return self.api_call("functions.completeSuccess", params=kwargs)
+
+
def groups_archive(self, *, channel: str, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
@@ -18487,6 +18587,8 @@ files_sharedPublicURL
files_upload
files_upload_v2
+functions_completeError
+functions_completeSuccess
groups_archive
groups_create
groups_createChild
diff --git a/slack_sdk/version.py b/slack_sdk/version.py
index 10e4696ad..dc5491ff4 100644
--- a/slack_sdk/version.py
+++ b/slack_sdk/version.py
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
-__version__ = "3.25.0"
+__version__ = "3.26.0"