Skip to content

Commit 9cba291

Browse files
chore(release): version 1.27.0 (#1399)
1 parent 87e3425 commit 9cba291

File tree

15 files changed

+324
-20
lines changed

15 files changed

+324
-20
lines changed

docs/reference/authorization/authorize_result.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
4848
<dl>
4949
<dt id="slack_bolt.authorization.authorize_result.AuthorizeResult"><code class="flex name class">
5050
<span>class <span class="ident">AuthorizeResult</span></span>
51-
<span>(</span><span>*,<br>enterprise_id: str | None,<br>team_id: str | None,<br>team: str | None = None,<br>url: str | None = None,<br>bot_user_id: str | None = None,<br>bot_id: str | None = None,<br>bot_token: str | None = None,<br>bot_scopes: str | Sequence[str] | None = None,<br>user_id: str | None = None,<br>user: str | None = None,<br>user_token: str | None = None,<br>user_scopes: str | Sequence[str] | None = None)</span>
51+
<span>(</span><span>*,<br>enterprise_id: str | None,<br>team_id: str | None,<br>team: str | None = None,<br>url: str | None = None,<br>bot_user_id: str | None = None,<br>bot_id: str | None = None,<br>bot_token: str | None = None,<br>bot_scopes: Sequence[str] | str | None = None,<br>user_id: str | None = None,<br>user: str | None = None,<br>user_token: str | None = None,<br>user_scopes: Sequence[str] | str | None = None)</span>
5252
</code></dt>
5353
<dd>
5454
<details class="source">
@@ -246,7 +246,7 @@ <h3>Class variables</h3>
246246
<h3>Static methods</h3>
247247
<dl>
248248
<dt id="slack_bolt.authorization.authorize_result.AuthorizeResult.from_auth_test_response"><code class="name flex">
249-
<span>def <span class="ident">from_auth_test_response</span></span>(<span>*,<br>bot_token: str | None = None,<br>user_token: str | None = None,<br>bot_scopes: str | Sequence[str] | None = None,<br>user_scopes: str | Sequence[str] | None = None,<br>auth_test_response: slack_sdk.web.slack_response.SlackResponse | ForwardRef('AsyncSlackResponse'),<br>user_auth_test_response: slack_sdk.web.slack_response.SlackResponse | ForwardRef('AsyncSlackResponse') | None = None)</span>
249+
<span>def <span class="ident">from_auth_test_response</span></span>(<span>*,<br>bot_token: str | None = None,<br>user_token: str | None = None,<br>bot_scopes: Sequence[str] | str | None = None,<br>user_scopes: Sequence[str] | str | None = None,<br>auth_test_response: slack_sdk.web.slack_response.SlackResponse | AsyncSlackResponse,<br>user_auth_test_response: slack_sdk.web.slack_response.SlackResponse | AsyncSlackResponse | None = None)</span>
250250
</code></dt>
251251
<dd>
252252
<div class="desc"></div>

docs/reference/authorization/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
7575
<dl>
7676
<dt id="slack_bolt.authorization.AuthorizeResult"><code class="flex name class">
7777
<span>class <span class="ident">AuthorizeResult</span></span>
78-
<span>(</span><span>*,<br>enterprise_id: str | None,<br>team_id: str | None,<br>team: str | None = None,<br>url: str | None = None,<br>bot_user_id: str | None = None,<br>bot_id: str | None = None,<br>bot_token: str | None = None,<br>bot_scopes: str | Sequence[str] | None = None,<br>user_id: str | None = None,<br>user: str | None = None,<br>user_token: str | None = None,<br>user_scopes: str | Sequence[str] | None = None)</span>
78+
<span>(</span><span>*,<br>enterprise_id: str | None,<br>team_id: str | None,<br>team: str | None = None,<br>url: str | None = None,<br>bot_user_id: str | None = None,<br>bot_id: str | None = None,<br>bot_token: str | None = None,<br>bot_scopes: Sequence[str] | str | None = None,<br>user_id: str | None = None,<br>user: str | None = None,<br>user_token: str | None = None,<br>user_scopes: Sequence[str] | str | None = None)</span>
7979
</code></dt>
8080
<dd>
8181
<details class="source">
@@ -273,7 +273,7 @@ <h3>Class variables</h3>
273273
<h3>Static methods</h3>
274274
<dl>
275275
<dt id="slack_bolt.authorization.AuthorizeResult.from_auth_test_response"><code class="name flex">
276-
<span>def <span class="ident">from_auth_test_response</span></span>(<span>*,<br>bot_token: str | None = None,<br>user_token: str | None = None,<br>bot_scopes: str | Sequence[str] | None = None,<br>user_scopes: str | Sequence[str] | None = None,<br>auth_test_response: slack_sdk.web.slack_response.SlackResponse | ForwardRef('AsyncSlackResponse'),<br>user_auth_test_response: slack_sdk.web.slack_response.SlackResponse | ForwardRef('AsyncSlackResponse') | None = None)</span>
276+
<span>def <span class="ident">from_auth_test_response</span></span>(<span>*,<br>bot_token: str | None = None,<br>user_token: str | None = None,<br>bot_scopes: Sequence[str] | str | None = None,<br>user_scopes: Sequence[str] | str | None = None,<br>auth_test_response: slack_sdk.web.slack_response.SlackResponse | AsyncSlackResponse,<br>user_auth_test_response: slack_sdk.web.slack_response.SlackResponse | AsyncSlackResponse | None = None)</span>
277277
</code></dt>
278278
<dd>
279279
<div class="desc"></div>

docs/reference/context/assistant/thread_context_store/file/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
4848
<dl>
4949
<dt id="slack_bolt.context.assistant.thread_context_store.file.FileAssistantThreadContextStore"><code class="flex name class">
5050
<span>class <span class="ident">FileAssistantThreadContextStore</span></span>
51-
<span>(</span><span>base_dir: str = '/Users/eden.zimbelman/.bolt-app-assistant-thread-contexts')</span>
51+
<span>(</span><span>base_dir: str = '/Users/wbergamin/.bolt-app-assistant-thread-contexts')</span>
5252
</code></dt>
5353
<dd>
5454
<details class="source">

docs/reference/context/complete/async_complete.html

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
5858
<pre><code class="python">class AsyncComplete:
5959
client: AsyncWebClient
6060
function_execution_id: Optional[str]
61+
_called: bool
6162

6263
def __init__(
6364
self,
@@ -66,6 +67,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
6667
):
6768
self.client = client
6869
self.function_execution_id = function_execution_id
70+
self._called = False
6971

7072
async def __call__(self, outputs: Optional[Dict[str, Any]] = None) -&gt; AsyncSlackResponse:
7173
&#34;&#34;&#34;Signal the successful completion of the custom function.
@@ -82,9 +84,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
8284
if self.function_execution_id is None:
8385
raise ValueError(&#34;complete is unsupported here as there is no function_execution_id&#34;)
8486

87+
self._called = True
8588
return await self.client.functions_completeSuccess(
8689
function_execution_id=self.function_execution_id, outputs=outputs or {}
87-
)</code></pre>
90+
)
91+
92+
def has_been_called(self) -&gt; bool:
93+
&#34;&#34;&#34;Check if this complete function has been called.
94+
95+
Returns:
96+
bool: True if the complete function has been called, False otherwise.
97+
&#34;&#34;&#34;
98+
return self._called</code></pre>
8899
</details>
89100
<div class="desc"></div>
90101
<h3>Class variables</h3>
@@ -98,6 +109,32 @@ <h3>Class variables</h3>
98109
<div class="desc"><p>The type of the None singleton.</p></div>
99110
</dd>
100111
</dl>
112+
<h3>Methods</h3>
113+
<dl>
114+
<dt id="slack_bolt.context.complete.async_complete.AsyncComplete.has_been_called"><code class="name flex">
115+
<span>def <span class="ident">has_been_called</span></span>(<span>self) ‑> bool</span>
116+
</code></dt>
117+
<dd>
118+
<details class="source">
119+
<summary>
120+
<span>Expand source code</span>
121+
</summary>
122+
<pre><code class="python">def has_been_called(self) -&gt; bool:
123+
&#34;&#34;&#34;Check if this complete function has been called.
124+
125+
Returns:
126+
bool: True if the complete function has been called, False otherwise.
127+
&#34;&#34;&#34;
128+
return self._called</code></pre>
129+
</details>
130+
<div class="desc"><p>Check if this complete function has been called.</p>
131+
<h2 id="returns">Returns</h2>
132+
<dl>
133+
<dt><code>bool</code></dt>
134+
<dd>True if the complete function has been called, False otherwise.</dd>
135+
</dl></div>
136+
</dd>
137+
</dl>
101138
</dd>
102139
</dl>
103140
</section>
@@ -119,6 +156,7 @@ <h4><code><a title="slack_bolt.context.complete.async_complete.AsyncComplete" hr
119156
<ul class="">
120157
<li><code><a title="slack_bolt.context.complete.async_complete.AsyncComplete.client" href="#slack_bolt.context.complete.async_complete.AsyncComplete.client">client</a></code></li>
121158
<li><code><a title="slack_bolt.context.complete.async_complete.AsyncComplete.function_execution_id" href="#slack_bolt.context.complete.async_complete.AsyncComplete.function_execution_id">function_execution_id</a></code></li>
159+
<li><code><a title="slack_bolt.context.complete.async_complete.AsyncComplete.has_been_called" href="#slack_bolt.context.complete.async_complete.AsyncComplete.has_been_called">has_been_called</a></code></li>
122160
</ul>
123161
</li>
124162
</ul>

docs/reference/context/complete/complete.html

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
5858
<pre><code class="python">class Complete:
5959
client: WebClient
6060
function_execution_id: Optional[str]
61+
_called: bool
6162

6263
def __init__(
6364
self,
@@ -66,6 +67,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
6667
):
6768
self.client = client
6869
self.function_execution_id = function_execution_id
70+
self._called = False
6971

7072
def __call__(self, outputs: Optional[Dict[str, Any]] = None) -&gt; SlackResponse:
7173
&#34;&#34;&#34;Signal the successful completion of the custom function.
@@ -82,7 +84,16 @@ <h2 class="section-title" id="header-classes">Classes</h2>
8284
if self.function_execution_id is None:
8385
raise ValueError(&#34;complete is unsupported here as there is no function_execution_id&#34;)
8486

85-
return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})</code></pre>
87+
self._called = True
88+
return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
89+
90+
def has_been_called(self) -&gt; bool:
91+
&#34;&#34;&#34;Check if this complete function has been called.
92+
93+
Returns:
94+
bool: True if the complete function has been called, False otherwise.
95+
&#34;&#34;&#34;
96+
return self._called</code></pre>
8697
</details>
8798
<div class="desc"></div>
8899
<h3>Class variables</h3>
@@ -96,6 +107,32 @@ <h3>Class variables</h3>
96107
<div class="desc"><p>The type of the None singleton.</p></div>
97108
</dd>
98109
</dl>
110+
<h3>Methods</h3>
111+
<dl>
112+
<dt id="slack_bolt.context.complete.complete.Complete.has_been_called"><code class="name flex">
113+
<span>def <span class="ident">has_been_called</span></span>(<span>self) ‑> bool</span>
114+
</code></dt>
115+
<dd>
116+
<details class="source">
117+
<summary>
118+
<span>Expand source code</span>
119+
</summary>
120+
<pre><code class="python">def has_been_called(self) -&gt; bool:
121+
&#34;&#34;&#34;Check if this complete function has been called.
122+
123+
Returns:
124+
bool: True if the complete function has been called, False otherwise.
125+
&#34;&#34;&#34;
126+
return self._called</code></pre>
127+
</details>
128+
<div class="desc"><p>Check if this complete function has been called.</p>
129+
<h2 id="returns">Returns</h2>
130+
<dl>
131+
<dt><code>bool</code></dt>
132+
<dd>True if the complete function has been called, False otherwise.</dd>
133+
</dl></div>
134+
</dd>
135+
</dl>
99136
</dd>
100137
</dl>
101138
</section>
@@ -117,6 +154,7 @@ <h4><code><a title="slack_bolt.context.complete.complete.Complete" href="#slack_
117154
<ul class="">
118155
<li><code><a title="slack_bolt.context.complete.complete.Complete.client" href="#slack_bolt.context.complete.complete.Complete.client">client</a></code></li>
119156
<li><code><a title="slack_bolt.context.complete.complete.Complete.function_execution_id" href="#slack_bolt.context.complete.complete.Complete.function_execution_id">function_execution_id</a></code></li>
157+
<li><code><a title="slack_bolt.context.complete.complete.Complete.has_been_called" href="#slack_bolt.context.complete.complete.Complete.has_been_called">has_been_called</a></code></li>
120158
</ul>
121159
</li>
122160
</ul>

docs/reference/context/complete/index.html

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
6969
<pre><code class="python">class Complete:
7070
client: WebClient
7171
function_execution_id: Optional[str]
72+
_called: bool
7273

7374
def __init__(
7475
self,
@@ -77,6 +78,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
7778
):
7879
self.client = client
7980
self.function_execution_id = function_execution_id
81+
self._called = False
8082

8183
def __call__(self, outputs: Optional[Dict[str, Any]] = None) -&gt; SlackResponse:
8284
&#34;&#34;&#34;Signal the successful completion of the custom function.
@@ -93,7 +95,16 @@ <h2 class="section-title" id="header-classes">Classes</h2>
9395
if self.function_execution_id is None:
9496
raise ValueError(&#34;complete is unsupported here as there is no function_execution_id&#34;)
9597

96-
return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})</code></pre>
98+
self._called = True
99+
return self.client.functions_completeSuccess(function_execution_id=self.function_execution_id, outputs=outputs or {})
100+
101+
def has_been_called(self) -&gt; bool:
102+
&#34;&#34;&#34;Check if this complete function has been called.
103+
104+
Returns:
105+
bool: True if the complete function has been called, False otherwise.
106+
&#34;&#34;&#34;
107+
return self._called</code></pre>
97108
</details>
98109
<div class="desc"></div>
99110
<h3>Class variables</h3>
@@ -107,6 +118,32 @@ <h3>Class variables</h3>
107118
<div class="desc"><p>The type of the None singleton.</p></div>
108119
</dd>
109120
</dl>
121+
<h3>Methods</h3>
122+
<dl>
123+
<dt id="slack_bolt.context.complete.Complete.has_been_called"><code class="name flex">
124+
<span>def <span class="ident">has_been_called</span></span>(<span>self) ‑> bool</span>
125+
</code></dt>
126+
<dd>
127+
<details class="source">
128+
<summary>
129+
<span>Expand source code</span>
130+
</summary>
131+
<pre><code class="python">def has_been_called(self) -&gt; bool:
132+
&#34;&#34;&#34;Check if this complete function has been called.
133+
134+
Returns:
135+
bool: True if the complete function has been called, False otherwise.
136+
&#34;&#34;&#34;
137+
return self._called</code></pre>
138+
</details>
139+
<div class="desc"><p>Check if this complete function has been called.</p>
140+
<h2 id="returns">Returns</h2>
141+
<dl>
142+
<dt><code>bool</code></dt>
143+
<dd>True if the complete function has been called, False otherwise.</dd>
144+
</dl></div>
145+
</dd>
146+
</dl>
110147
</dd>
111148
</dl>
112149
</section>
@@ -134,6 +171,7 @@ <h4><code><a title="slack_bolt.context.complete.Complete" href="#slack_bolt.cont
134171
<ul class="">
135172
<li><code><a title="slack_bolt.context.complete.Complete.client" href="#slack_bolt.context.complete.Complete.client">client</a></code></li>
136173
<li><code><a title="slack_bolt.context.complete.Complete.function_execution_id" href="#slack_bolt.context.complete.Complete.function_execution_id">function_execution_id</a></code></li>
174+
<li><code><a title="slack_bolt.context.complete.Complete.has_been_called" href="#slack_bolt.context.complete.Complete.has_been_called">has_been_called</a></code></li>
137175
</ul>
138176
</li>
139177
</ul>

docs/reference/context/fail/async_fail.html

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
5858
<pre><code class="python">class AsyncFail:
5959
client: AsyncWebClient
6060
function_execution_id: Optional[str]
61+
_called: bool
6162

6263
def __init__(
6364
self,
@@ -66,6 +67,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
6667
):
6768
self.client = client
6869
self.function_execution_id = function_execution_id
70+
self._called = False
6971

7072
async def __call__(self, error: str) -&gt; AsyncSlackResponse:
7173
&#34;&#34;&#34;Signal that the custom function failed to complete.
@@ -82,7 +84,16 @@ <h2 class="section-title" id="header-classes">Classes</h2>
8284
if self.function_execution_id is None:
8385
raise ValueError(&#34;fail is unsupported here as there is no function_execution_id&#34;)
8486

85-
return await self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)</code></pre>
87+
self._called = True
88+
return await self.client.functions_completeError(function_execution_id=self.function_execution_id, error=error)
89+
90+
def has_been_called(self) -&gt; bool:
91+
&#34;&#34;&#34;Check if this fail function has been called.
92+
93+
Returns:
94+
bool: True if the fail function has been called, False otherwise.
95+
&#34;&#34;&#34;
96+
return self._called</code></pre>
8697
</details>
8798
<div class="desc"></div>
8899
<h3>Class variables</h3>
@@ -96,6 +107,32 @@ <h3>Class variables</h3>
96107
<div class="desc"><p>The type of the None singleton.</p></div>
97108
</dd>
98109
</dl>
110+
<h3>Methods</h3>
111+
<dl>
112+
<dt id="slack_bolt.context.fail.async_fail.AsyncFail.has_been_called"><code class="name flex">
113+
<span>def <span class="ident">has_been_called</span></span>(<span>self) ‑> bool</span>
114+
</code></dt>
115+
<dd>
116+
<details class="source">
117+
<summary>
118+
<span>Expand source code</span>
119+
</summary>
120+
<pre><code class="python">def has_been_called(self) -&gt; bool:
121+
&#34;&#34;&#34;Check if this fail function has been called.
122+
123+
Returns:
124+
bool: True if the fail function has been called, False otherwise.
125+
&#34;&#34;&#34;
126+
return self._called</code></pre>
127+
</details>
128+
<div class="desc"><p>Check if this fail function has been called.</p>
129+
<h2 id="returns">Returns</h2>
130+
<dl>
131+
<dt><code>bool</code></dt>
132+
<dd>True if the fail function has been called, False otherwise.</dd>
133+
</dl></div>
134+
</dd>
135+
</dl>
99136
</dd>
100137
</dl>
101138
</section>
@@ -117,6 +154,7 @@ <h4><code><a title="slack_bolt.context.fail.async_fail.AsyncFail" href="#slack_b
117154
<ul class="">
118155
<li><code><a title="slack_bolt.context.fail.async_fail.AsyncFail.client" href="#slack_bolt.context.fail.async_fail.AsyncFail.client">client</a></code></li>
119156
<li><code><a title="slack_bolt.context.fail.async_fail.AsyncFail.function_execution_id" href="#slack_bolt.context.fail.async_fail.AsyncFail.function_execution_id">function_execution_id</a></code></li>
157+
<li><code><a title="slack_bolt.context.fail.async_fail.AsyncFail.has_been_called" href="#slack_bolt.context.fail.async_fail.AsyncFail.has_been_called">has_been_called</a></code></li>
120158
</ul>
121159
</li>
122160
</ul>

0 commit comments

Comments
 (0)