Skip to content

Commit 4b200f1

Browse files
committed
version 3.20.2
1 parent 6bf2399 commit 4b200f1

File tree

8 files changed

+40
-20
lines changed

8 files changed

+40
-20
lines changed

docs/api-docs/slack_sdk/oauth/authorize_url_generator/index.html

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h1 class="title">Module <code>slack_sdk.oauth.authorize_url_generator</code></h
4545
self.user_scopes = user_scopes
4646
self.authorization_url = authorization_url
4747

48-
def generate(self, state: str) -&gt; str:
48+
def generate(self, state: str, team: Optional[str] = None) -&gt; str:
4949
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
5050
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
5151
url = (
@@ -57,6 +57,8 @@ <h1 class="title">Module <code>slack_sdk.oauth.authorize_url_generator</code></h
5757
)
5858
if self.redirect_uri is not None:
5959
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
60+
if team is not None:
61+
url += f&#34;&amp;team={team}&#34;
6062
return url
6163

6264

@@ -76,7 +78,7 @@ <h1 class="title">Module <code>slack_sdk.oauth.authorize_url_generator</code></h
7678
self.scopes = scopes
7779
self.authorization_url = authorization_url
7880

79-
def generate(self, state: str, nonce: Optional[str] = None) -&gt; str:
81+
def generate(self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) -&gt; str:
8082
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
8183
url = (
8284
f&#34;{self.authorization_url}?&#34;
@@ -86,6 +88,8 @@ <h1 class="title">Module <code>slack_sdk.oauth.authorize_url_generator</code></h
8688
f&#34;scope={scopes}&amp;&#34;
8789
f&#34;redirect_uri={self.redirect_uri}&#34;
8890
)
91+
if team is not None:
92+
url += f&#34;&amp;team={team}&#34;
8993
if nonce is not None:
9094
url += f&#34;&amp;nonce={nonce}&#34;
9195
return url</code></pre>
@@ -126,7 +130,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
126130
self.user_scopes = user_scopes
127131
self.authorization_url = authorization_url
128132

129-
def generate(self, state: str) -&gt; str:
133+
def generate(self, state: str, team: Optional[str] = None) -&gt; str:
130134
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
131135
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
132136
url = (
@@ -138,20 +142,22 @@ <h2 class="section-title" id="header-classes">Classes</h2>
138142
)
139143
if self.redirect_uri is not None:
140144
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
145+
if team is not None:
146+
url += f&#34;&amp;team={team}&#34;
141147
return url</code></pre>
142148
</details>
143149
<h3>Methods</h3>
144150
<dl>
145151
<dt id="slack_sdk.oauth.authorize_url_generator.AuthorizeUrlGenerator.generate"><code class="name flex">
146-
<span>def <span class="ident">generate</span></span>(<span>self, state: str) ‑> str</span>
152+
<span>def <span class="ident">generate</span></span>(<span>self, state: str, team: Optional[str] = None) ‑> str</span>
147153
</code></dt>
148154
<dd>
149155
<div class="desc"></div>
150156
<details class="source">
151157
<summary>
152158
<span>Expand source code</span>
153159
</summary>
154-
<pre><code class="python">def generate(self, state: str) -&gt; str:
160+
<pre><code class="python">def generate(self, state: str, team: Optional[str] = None) -&gt; str:
155161
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
156162
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
157163
url = (
@@ -163,6 +169,8 @@ <h3>Methods</h3>
163169
)
164170
if self.redirect_uri is not None:
165171
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
172+
if team is not None:
173+
url += f&#34;&amp;team={team}&#34;
166174
return url</code></pre>
167175
</details>
168176
</dd>
@@ -194,7 +202,7 @@ <h3>Methods</h3>
194202
self.scopes = scopes
195203
self.authorization_url = authorization_url
196204

197-
def generate(self, state: str, nonce: Optional[str] = None) -&gt; str:
205+
def generate(self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) -&gt; str:
198206
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
199207
url = (
200208
f&#34;{self.authorization_url}?&#34;
@@ -204,22 +212,24 @@ <h3>Methods</h3>
204212
f&#34;scope={scopes}&amp;&#34;
205213
f&#34;redirect_uri={self.redirect_uri}&#34;
206214
)
215+
if team is not None:
216+
url += f&#34;&amp;team={team}&#34;
207217
if nonce is not None:
208218
url += f&#34;&amp;nonce={nonce}&#34;
209219
return url</code></pre>
210220
</details>
211221
<h3>Methods</h3>
212222
<dl>
213223
<dt id="slack_sdk.oauth.authorize_url_generator.OpenIDConnectAuthorizeUrlGenerator.generate"><code class="name flex">
214-
<span>def <span class="ident">generate</span></span>(<span>self, state: str, nonce: Optional[str] = None) ‑> str</span>
224+
<span>def <span class="ident">generate</span></span>(<span>self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) ‑> str</span>
215225
</code></dt>
216226
<dd>
217227
<div class="desc"></div>
218228
<details class="source">
219229
<summary>
220230
<span>Expand source code</span>
221231
</summary>
222-
<pre><code class="python">def generate(self, state: str, nonce: Optional[str] = None) -&gt; str:
232+
<pre><code class="python">def generate(self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) -&gt; str:
223233
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
224234
url = (
225235
f&#34;{self.authorization_url}?&#34;
@@ -229,6 +239,8 @@ <h3>Methods</h3>
229239
f&#34;scope={scopes}&amp;&#34;
230240
f&#34;redirect_uri={self.redirect_uri}&#34;
231241
)
242+
if team is not None:
243+
url += f&#34;&amp;team={team}&#34;
232244
if nonce is not None:
233245
url += f&#34;&amp;nonce={nonce}&#34;
234246
return url</code></pre>

docs/api-docs/slack_sdk/oauth/index.html

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
111111
self.user_scopes = user_scopes
112112
self.authorization_url = authorization_url
113113

114-
def generate(self, state: str) -&gt; str:
114+
def generate(self, state: str, team: Optional[str] = None) -&gt; str:
115115
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
116116
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
117117
url = (
@@ -123,20 +123,22 @@ <h2 class="section-title" id="header-classes">Classes</h2>
123123
)
124124
if self.redirect_uri is not None:
125125
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
126+
if team is not None:
127+
url += f&#34;&amp;team={team}&#34;
126128
return url</code></pre>
127129
</details>
128130
<h3>Methods</h3>
129131
<dl>
130132
<dt id="slack_sdk.oauth.AuthorizeUrlGenerator.generate"><code class="name flex">
131-
<span>def <span class="ident">generate</span></span>(<span>self, state: str) ‑> str</span>
133+
<span>def <span class="ident">generate</span></span>(<span>self, state: str, team: Optional[str] = None) ‑> str</span>
132134
</code></dt>
133135
<dd>
134136
<div class="desc"></div>
135137
<details class="source">
136138
<summary>
137139
<span>Expand source code</span>
138140
</summary>
139-
<pre><code class="python">def generate(self, state: str) -&gt; str:
141+
<pre><code class="python">def generate(self, state: str, team: Optional[str] = None) -&gt; str:
140142
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
141143
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
142144
url = (
@@ -148,6 +150,8 @@ <h3>Methods</h3>
148150
)
149151
if self.redirect_uri is not None:
150152
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
153+
if team is not None:
154+
url += f&#34;&amp;team={team}&#34;
151155
return url</code></pre>
152156
</details>
153157
</dd>
@@ -647,7 +651,7 @@ <h3>Methods</h3>
647651
self.scopes = scopes
648652
self.authorization_url = authorization_url
649653

650-
def generate(self, state: str, nonce: Optional[str] = None) -&gt; str:
654+
def generate(self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) -&gt; str:
651655
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
652656
url = (
653657
f&#34;{self.authorization_url}?&#34;
@@ -657,22 +661,24 @@ <h3>Methods</h3>
657661
f&#34;scope={scopes}&amp;&#34;
658662
f&#34;redirect_uri={self.redirect_uri}&#34;
659663
)
664+
if team is not None:
665+
url += f&#34;&amp;team={team}&#34;
660666
if nonce is not None:
661667
url += f&#34;&amp;nonce={nonce}&#34;
662668
return url</code></pre>
663669
</details>
664670
<h3>Methods</h3>
665671
<dl>
666672
<dt id="slack_sdk.oauth.OpenIDConnectAuthorizeUrlGenerator.generate"><code class="name flex">
667-
<span>def <span class="ident">generate</span></span>(<span>self, state: str, nonce: Optional[str] = None) ‑> str</span>
673+
<span>def <span class="ident">generate</span></span>(<span>self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) ‑> str</span>
668674
</code></dt>
669675
<dd>
670676
<div class="desc"></div>
671677
<details class="source">
672678
<summary>
673679
<span>Expand source code</span>
674680
</summary>
675-
<pre><code class="python">def generate(self, state: str, nonce: Optional[str] = None) -&gt; str:
681+
<pre><code class="python">def generate(self, state: str, nonce: Optional[str] = None, team: Optional[str] = None) -&gt; str:
676682
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
677683
url = (
678684
f&#34;{self.authorization_url}?&#34;
@@ -682,6 +688,8 @@ <h3>Methods</h3>
682688
f&#34;scope={scopes}&amp;&#34;
683689
f&#34;redirect_uri={self.redirect_uri}&#34;
684690
)
691+
if team is not None:
692+
url += f&#34;&amp;team={team}&#34;
685693
if nonce is not None:
686694
url += f&#34;&amp;nonce={nonce}&#34;
687695
return url</code></pre>

docs/api-docs/slack_sdk/oauth/installation_store/file/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
284284
<dl>
285285
<dt id="slack_sdk.oauth.installation_store.file.FileInstallationStore"><code class="flex name class">
286286
<span>class <span class="ident">FileInstallationStore</span></span>
287-
<span>(</span><span>*, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.installation_store.file (WARNING)&gt;)</span>
287+
<span>(</span><span>*, base_dir: str = '/Users/seratch/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.installation_store.file (WARNING)&gt;)</span>
288288
</code></dt>
289289
<dd>
290290
<div class="desc"><p>The installation store interface.</p>

docs/api-docs/slack_sdk/oauth/installation_store/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h3>Methods</h3>
340340
</dd>
341341
<dt id="slack_sdk.oauth.installation_store.FileInstallationStore"><code class="flex name class">
342342
<span>class <span class="ident">FileInstallationStore</span></span>
343-
<span>(</span><span>*, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.installation_store.file (WARNING)&gt;)</span>
343+
<span>(</span><span>*, base_dir: str = '/Users/seratch/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.installation_store.file (WARNING)&gt;)</span>
344344
</code></dt>
345345
<dd>
346346
<div class="desc"><p>The installation store interface.</p>

docs/api-docs/slack_sdk/oauth/state_store/file/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
110110
<dl>
111111
<dt id="slack_sdk.oauth.state_store.file.FileOAuthStateStore"><code class="flex name class">
112112
<span>class <span class="ident">FileOAuthStateStore</span></span>
113-
<span>(</span><span>*, expiration_seconds: int, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.state_store.file (WARNING)&gt;)</span>
113+
<span>(</span><span>*, expiration_seconds: int, base_dir: str = '/Users/seratch/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.state_store.file (WARNING)&gt;)</span>
114114
</code></dt>
115115
<dd>
116116
<div class="desc"></div>

docs/api-docs/slack_sdk/oauth/state_store/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
8080
<dl>
8181
<dt id="slack_sdk.oauth.state_store.FileOAuthStateStore"><code class="flex name class">
8282
<span>class <span class="ident">FileOAuthStateStore</span></span>
83-
<span>(</span><span>*, expiration_seconds: int, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.state_store.file (WARNING)&gt;)</span>
83+
<span>(</span><span>*, expiration_seconds: int, base_dir: str = '/Users/seratch/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = &lt;Logger slack_sdk.oauth.state_store.file (WARNING)&gt;)</span>
8484
</code></dt>
8585
<dd>
8686
<div class="desc"></div>

docs/api-docs/slack_sdk/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
2828
<span>Expand source code</span>
2929
</summary>
3030
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-sdk/&#34;&#34;&#34;
31-
__version__ = &#34;3.20.1&#34;</code></pre>
31+
__version__ = &#34;3.20.2&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

slack_sdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
2-
__version__ = "3.20.1"
2+
__version__ = "3.20.2"

0 commit comments

Comments
 (0)