Skip to content

Commit

Permalink
version 3.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 16, 2023
1 parent edc04aa commit ed02c65
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 2 deletions.
157 changes: 157 additions & 0 deletions docs/api-docs/slack_sdk/models/blocks/block_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,55 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
self.dispatch_action_config = dispatch_action_config


# -------------------------------------------------
# File Input Element
# -------------------------------------------------


class FileInputElement(InputInteractiveElement):
type = &#34;file_input&#34;

@property
def attributes(self) -&gt; Set[str]:
return super().attributes.union(
{
&#34;filetypes&#34;,
&#34;max_files&#34;,
}
)

def __init__(
self,
*,
action_id: Optional[str] = None,
filetypes: Optional[List[str]] = None,
max_files: Optional[int] = None,
**others: dict,
):
&#34;&#34;&#34;
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.
&#34;&#34;&#34;
super().__init__(
type=self.type,
action_id=action_id,
)
show_unknown_key_warning(self, others)

self.filetypes = filetypes
self.max_files = max_files


# -------------------------------------------------
# Radio Buttons Select
# -------------------------------------------------
Expand Down Expand Up @@ -3514,6 +3563,107 @@ <h3>Inherited members</h3>
</li>
</ul>
</dd>
<dt id="slack_sdk.models.blocks.block_elements.FileInputElement"><code class="flex name class">
<span>class <span class="ident">FileInputElement</span></span>
<span>(</span><span>*, action_id: Optional[str] = None, filetypes: Optional[List[str]] = None, max_files: Optional[int] = None, **others: dict)</span>
</code></dt>
<dd>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
<a href="https://api.slack.com/reference/block-kit/block-elements">https://api.slack.com/reference/block-kit/block-elements</a></p>
<p><a href="https://api.slack.com/reference/block-kit/block-elements#file_input">https://api.slack.com/reference/block-kit/block-elements#file_input</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>action_id</code></strong> :&ensp;<code>required</code></dt>
<dd>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.</dd>
<dt><strong><code>filetypes</code></strong></dt>
<dd>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.</dd>
<dt><strong><code>max_files</code></strong></dt>
<dd>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.</dd>
</dl></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class FileInputElement(InputInteractiveElement):
type = &#34;file_input&#34;

@property
def attributes(self) -&gt; Set[str]:
return super().attributes.union(
{
&#34;filetypes&#34;,
&#34;max_files&#34;,
}
)

def __init__(
self,
*,
action_id: Optional[str] = None,
filetypes: Optional[List[str]] = None,
max_files: Optional[int] = None,
**others: dict,
):
&#34;&#34;&#34;
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.
&#34;&#34;&#34;
super().__init__(
type=self.type,
action_id=action_id,
)
show_unknown_key_warning(self, others)

self.filetypes = filetypes
self.max_files = max_files</code></pre>
</details>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="slack_sdk.models.blocks.block_elements.InputInteractiveElement" href="#slack_sdk.models.blocks.block_elements.InputInteractiveElement">InputInteractiveElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.InteractiveElement" href="#slack_sdk.models.blocks.block_elements.InteractiveElement">InteractiveElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.BlockElement" href="#slack_sdk.models.blocks.block_elements.BlockElement">BlockElement</a></li>
<li><a title="slack_sdk.models.basic_objects.JsonObject" href="../basic_objects.html#slack_sdk.models.basic_objects.JsonObject">JsonObject</a></li>
<li><a title="slack_sdk.models.basic_objects.BaseObject" href="../basic_objects.html#slack_sdk.models.basic_objects.BaseObject">BaseObject</a></li>
</ul>
<h3>Class variables</h3>
<dl>
<dt id="slack_sdk.models.blocks.block_elements.FileInputElement.type"><code class="name">var <span class="ident">type</span></code></dt>
<dd>
<div class="desc"></div>
</dd>
</dl>
<h3>Inherited members</h3>
<ul class="hlist">
<li><code><b><a title="slack_sdk.models.blocks.block_elements.InputInteractiveElement" href="#slack_sdk.models.blocks.block_elements.InputInteractiveElement">InputInteractiveElement</a></b></code>:
<ul class="hlist">
<li><code><a title="slack_sdk.models.blocks.block_elements.InputInteractiveElement.get_non_null_attributes" href="../basic_objects.html#slack_sdk.models.basic_objects.JsonObject.get_non_null_attributes">get_non_null_attributes</a></code></li>
<li><code><a title="slack_sdk.models.blocks.block_elements.InputInteractiveElement.to_dict" href="../basic_objects.html#slack_sdk.models.basic_objects.JsonObject.to_dict">to_dict</a></code></li>
<li><code><a title="slack_sdk.models.blocks.block_elements.InputInteractiveElement.validate_json" href="../basic_objects.html#slack_sdk.models.basic_objects.JsonObject.validate_json">validate_json</a></code></li>
</ul>
</li>
<li><code><b><a title="slack_sdk.models.blocks.block_elements.InteractiveElement" href="#slack_sdk.models.blocks.block_elements.InteractiveElement">InteractiveElement</a></b></code>:
<ul class="hlist">
<li><code><a title="slack_sdk.models.blocks.block_elements.InteractiveElement.attributes" href="#slack_sdk.models.blocks.block_elements.InteractiveElement.attributes">attributes</a></code></li>
</ul>
</li>
</ul>
</dd>
<dt id="slack_sdk.models.blocks.block_elements.ImageElement"><code class="flex name class">
<span>class <span class="ident">ImageElement</span></span>
<span>(</span><span>*, image_url: Optional[str] = None, alt_text: Optional[str] = None, **others: dict)</span>
Expand Down Expand Up @@ -3700,6 +3850,7 @@ <h3>Subclasses</h3>
<li><a title="slack_sdk.models.blocks.block_elements.EmailInputElement" href="#slack_sdk.models.blocks.block_elements.EmailInputElement">EmailInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.ExternalDataMultiSelectElement" href="#slack_sdk.models.blocks.block_elements.ExternalDataMultiSelectElement">ExternalDataMultiSelectElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.ExternalDataSelectElement" href="#slack_sdk.models.blocks.block_elements.ExternalDataSelectElement">ExternalDataSelectElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.FileInputElement" href="#slack_sdk.models.blocks.block_elements.FileInputElement">FileInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.NumberInputElement" href="#slack_sdk.models.blocks.block_elements.NumberInputElement">NumberInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.PlainTextInputElement" href="#slack_sdk.models.blocks.block_elements.PlainTextInputElement">PlainTextInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.RadioButtonsElement" href="#slack_sdk.models.blocks.block_elements.RadioButtonsElement">RadioButtonsElement</a></li>
Expand Down Expand Up @@ -5675,6 +5826,12 @@ <h4><code><a title="slack_sdk.models.blocks.block_elements.ExternalDataSelectEle
</ul>
</li>
<li>
<h4><code><a title="slack_sdk.models.blocks.block_elements.FileInputElement" href="#slack_sdk.models.blocks.block_elements.FileInputElement">FileInputElement</a></code></h4>
<ul class="">
<li><code><a title="slack_sdk.models.blocks.block_elements.FileInputElement.type" href="#slack_sdk.models.blocks.block_elements.FileInputElement.type">type</a></code></li>
</ul>
</li>
<li>
<h4><code><a title="slack_sdk.models.blocks.block_elements.ImageElement" href="#slack_sdk.models.blocks.block_elements.ImageElement">ImageElement</a></code></h4>
<ul class="">
<li><code><a title="slack_sdk.models.blocks.block_elements.ImageElement.alt_text_max_length" href="#slack_sdk.models.blocks.block_elements.ImageElement.alt_text_max_length">alt_text_max_length</a></code></li>
Expand Down
1 change: 1 addition & 0 deletions docs/api-docs/slack_sdk/models/blocks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3361,6 +3361,7 @@ <h3>Subclasses</h3>
<li><a title="slack_sdk.models.blocks.block_elements.EmailInputElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.EmailInputElement">EmailInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.ExternalDataMultiSelectElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.ExternalDataMultiSelectElement">ExternalDataMultiSelectElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.ExternalDataSelectElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.ExternalDataSelectElement">ExternalDataSelectElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.FileInputElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.FileInputElement">FileInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.NumberInputElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.NumberInputElement">NumberInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.PlainTextInputElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.PlainTextInputElement">PlainTextInputElement</a></li>
<li><a title="slack_sdk.models.blocks.block_elements.RadioButtonsElement" href="block_elements.html#slack_sdk.models.blocks.block_elements.RadioButtonsElement">RadioButtonsElement</a></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_sdk/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-sdk/&#34;&#34;&#34;
__version__ = &#34;3.23.1&#34;</code></pre>
__version__ = &#34;3.24.0&#34;</code></pre>
</details>
</section>
<section>
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
__version__ = "3.23.1"
__version__ = "3.24.0"

0 comments on commit ed02c65

Please sign in to comment.