From ed02c65b535b5c447650978b9a66826cdf8a8c72 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Thu, 16 Nov 2023 15:55:17 +0900 Subject: [PATCH] version 3.24.0 --- .../models/blocks/block_elements.html | 157 ++++++++++++++++++ .../slack_sdk/models/blocks/index.html | 1 + docs/api-docs/slack_sdk/version.html | 2 +- slack_sdk/version.py | 2 +- 4 files changed, 160 insertions(+), 2 deletions(-) diff --git a/docs/api-docs/slack_sdk/models/blocks/block_elements.html b/docs/api-docs/slack_sdk/models/blocks/block_elements.html index 57e31939..61dc1335 100644 --- a/docs/api-docs/slack_sdk/models/blocks/block_elements.html +++ b/docs/api-docs/slack_sdk/models/blocks/block_elements.html @@ -1652,6 +1652,55 @@

Module slack_sdk.models.blocks.block_elements

Inherited members +
+class FileInputElement +(*, action_id: Optional[str] = None, filetypes: Optional[List[str]] = None, max_files: Optional[int] = None, **others: dict) +
+
+

Block Elements are things that exists inside of your Blocks. +https://api.slack.com/reference/block-kit/block-elements

+

https://api.slack.com/reference/block-kit/block-elements#file_input

+

Args

+
+
action_id : required
+
An identifier for the input value when the parent modal is submitted. +You can use this when you receive a view_submission payload to identify the value of the input element. +Should be unique among all other action_ids in the containing block. Maximum length is 255 characters.
+
filetypes
+
An array of valid file extensions that will be accepted for this element. +All file extensions will be accepted if filetypes is not specified. +This validation is provided for convenience only, +and you should perform your own file type validation based on what you expect to receive.
+
max_files
+
Maximum number of files that can be uploaded for this file_input element. +Minimum of 1, maximum of 10. Defaults to 10 if not specified.
+
+
+ +Expand source code + +
class FileInputElement(InputInteractiveElement):
+    type = "file_input"
+
+    @property
+    def attributes(self) -> Set[str]:
+        return super().attributes.union(
+            {
+                "filetypes",
+                "max_files",
+            }
+        )
+
+    def __init__(
+        self,
+        *,
+        action_id: Optional[str] = None,
+        filetypes: Optional[List[str]] = None,
+        max_files: Optional[int] = None,
+        **others: dict,
+    ):
+        """
+        https://api.slack.com/reference/block-kit/block-elements#file_input
+
+        Args:
+            action_id (required): An identifier for the input value when the parent modal is submitted.
+                You can use this when you receive a view_submission payload to identify the value of the input element.
+                Should be unique among all other action_ids in the containing block. Maximum length is 255 characters.
+            filetypes: An array of valid file extensions that will be accepted for this element.
+                All file extensions will be accepted if filetypes is not specified.
+                This validation is provided for convenience only,
+                and you should perform your own file type validation based on what you expect to receive.
+            max_files: Maximum number of files that can be uploaded for this file_input element.
+                Minimum of 1, maximum of 10. Defaults to 10 if not specified.
+        """
+        super().__init__(
+            type=self.type,
+            action_id=action_id,
+        )
+        show_unknown_key_warning(self, others)
+
+        self.filetypes = filetypes
+        self.max_files = max_files
+
+

Ancestors

+ +

Class variables

+
+
var type
+
+
+
+
+

Inherited members

+ +
class ImageElement (*, image_url: Optional[str] = None, alt_text: Optional[str] = None, **others: dict) @@ -3700,6 +3850,7 @@

Subclasses

  • EmailInputElement
  • ExternalDataMultiSelectElement
  • ExternalDataSelectElement
  • +
  • FileInputElement
  • NumberInputElement
  • PlainTextInputElement
  • RadioButtonsElement
  • @@ -5675,6 +5826,12 @@

    FileInputElement

    + + +
  • ImageElement

    • alt_text_max_length
    • diff --git a/docs/api-docs/slack_sdk/models/blocks/index.html b/docs/api-docs/slack_sdk/models/blocks/index.html index 7cb16559..01140707 100644 --- a/docs/api-docs/slack_sdk/models/blocks/index.html +++ b/docs/api-docs/slack_sdk/models/blocks/index.html @@ -3361,6 +3361,7 @@

      Subclasses

    • EmailInputElement
    • ExternalDataMultiSelectElement
    • ExternalDataSelectElement
    • +
    • FileInputElement
    • NumberInputElement
    • PlainTextInputElement
    • RadioButtonsElement
    • diff --git a/docs/api-docs/slack_sdk/version.html b/docs/api-docs/slack_sdk/version.html index 37196fbc..da6a2368 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.23.1"
      +__version__ = "3.24.0"
      diff --git a/slack_sdk/version.py b/slack_sdk/version.py index 457fcb91..5ddd7a10 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.23.1" +__version__ = "3.24.0"