Skip to content

Commit 5410c8a

Browse files
committed
adding dev-v0.25.0 tag to this commit to ensure building
1 parent ee4e448 commit 5410c8a

18 files changed

+315
-58
lines changed

html/supertokens_python/recipe/dashboard/api/multitenancy/get_tenant_info.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
4040
# License for the specific language governing permissions and limitations
4141
# under the License.
4242

43-
from typing import Any, Dict, List, Union
43+
from typing import Any, Dict, List, Union, Optional
4444
from typing_extensions import Literal
4545

4646
from supertokens_python.recipe.multitenancy.asyncio import get_tenant
@@ -60,9 +60,6 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
6060
from ...interfaces import APIInterface, APIOptions, CoreConfigFieldInfo
6161

6262

63-
from typing import List, Optional
64-
65-
6663
class ThirdPartyProvider:
6764
def __init__(self, third_party_id: str, name: str):
6865
self.third_party_id = third_party_id

html/supertokens_python/recipe/dashboard/api/multitenancy/get_third_party_config.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,17 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
303303
after_override = provider.override(before_override)
304304

305305
if (
306-
before_override.get_authorisation_redirect_url
306+
before_override.get_authorisation_redirect_url # pylint: disable=W0143
307307
!= after_override.get_authorisation_redirect_url
308308
):
309309
is_get_authorisation_redirect_url_overridden = True
310310
if (
311-
before_override.exchange_auth_code_for_oauth_tokens
311+
before_override.exchange_auth_code_for_oauth_tokens # pylint: disable=W0143
312312
!= after_override.exchange_auth_code_for_oauth_tokens
313313
):
314314
is_exchange_auth_code_for_oauth_tokens_overridden = True
315315
if (
316-
before_override.get_user_info
316+
before_override.get_user_info # pylint: disable=W0143
317317
!= after_override.get_user_info
318318
):
319319
is_get_user_info_overridden = True
@@ -624,17 +624,17 @@ <h2 class="section-title" id="header-functions">Functions</h2>
624624
after_override = provider.override(before_override)
625625

626626
if (
627-
before_override.get_authorisation_redirect_url
627+
before_override.get_authorisation_redirect_url # pylint: disable=W0143
628628
!= after_override.get_authorisation_redirect_url
629629
):
630630
is_get_authorisation_redirect_url_overridden = True
631631
if (
632-
before_override.exchange_auth_code_for_oauth_tokens
632+
before_override.exchange_auth_code_for_oauth_tokens # pylint: disable=W0143
633633
!= after_override.exchange_auth_code_for_oauth_tokens
634634
):
635635
is_exchange_auth_code_for_oauth_tokens_overridden = True
636636
if (
637-
before_override.get_user_info
637+
before_override.get_user_info # pylint: disable=W0143
638638
!= after_override.get_user_info
639639
):
640640
is_get_user_info_overridden = True

html/supertokens_python/recipe/dashboard/api/multitenancy/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<main>
2020
<article id="content">
2121
<header>
22-
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.multitenancy</code></h1>
22+
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitenancy</code></h1>
2323
</header>
2424
<section id="section-intro">
2525
</section>

html/supertokens_python/recipe/dashboard/api/user/create/emailpassword_user.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
9191
_: APIInterface,
9292
tenant_id: str,
9393
api_options: APIOptions,
94-
user_context: Dict[str, Any],
94+
__: Dict[str, Any],
9595
) -&gt; Union[
9696
CreateEmailPasswordUserOkResponse,
9797
CreateEmailPasswordUserFeatureNotEnabledResponse,
@@ -164,7 +164,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
164164
<h2 class="section-title" id="header-functions">Functions</h2>
165165
<dl>
166166
<dt id="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.create_email_password_user"><code class="name flex">
167-
<span>async def <span class="ident">create_email_password_user</span></span>(<span>_: <a title="supertokens_python.recipe.dashboard.interfaces.APIInterface" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIInterface">APIInterface</a>, tenant_id: str, api_options: <a title="supertokens_python.recipe.dashboard.interfaces.APIOptions" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIOptions">APIOptions</a>, user_context: Dict[str, Any]) ‑> Union[<a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserOkResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserOkResponse">CreateEmailPasswordUserOkResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserFeatureNotEnabledResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserFeatureNotEnabledResponse">CreateEmailPasswordUserFeatureNotEnabledResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailAlreadyExistsResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailAlreadyExistsResponse">CreateEmailPasswordUserEmailAlreadyExistsResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailValidationErrorResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailValidationErrorResponse">CreateEmailPasswordUserEmailValidationErrorResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserPasswordValidationErrorResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserPasswordValidationErrorResponse">CreateEmailPasswordUserPasswordValidationErrorResponse</a>]</span>
167+
<span>async def <span class="ident">create_email_password_user</span></span>(<span>_: <a title="supertokens_python.recipe.dashboard.interfaces.APIInterface" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIInterface">APIInterface</a>, tenant_id: str, api_options: <a title="supertokens_python.recipe.dashboard.interfaces.APIOptions" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIOptions">APIOptions</a>, __: Dict[str, Any]) ‑> Union[<a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserOkResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserOkResponse">CreateEmailPasswordUserOkResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserFeatureNotEnabledResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserFeatureNotEnabledResponse">CreateEmailPasswordUserFeatureNotEnabledResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailAlreadyExistsResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailAlreadyExistsResponse">CreateEmailPasswordUserEmailAlreadyExistsResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailValidationErrorResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserEmailValidationErrorResponse">CreateEmailPasswordUserEmailValidationErrorResponse</a><a title="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserPasswordValidationErrorResponse" href="#supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.CreateEmailPasswordUserPasswordValidationErrorResponse">CreateEmailPasswordUserPasswordValidationErrorResponse</a>]</span>
168168
</code></dt>
169169
<dd>
170170
<div class="desc"></div>
@@ -176,7 +176,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
176176
_: APIInterface,
177177
tenant_id: str,
178178
api_options: APIOptions,
179-
user_context: Dict[str, Any],
179+
__: Dict[str, Any],
180180
) -&gt; Union[
181181
CreateEmailPasswordUserOkResponse,
182182
CreateEmailPasswordUserFeatureNotEnabledResponse,

html/supertokens_python/recipe/dashboard/api/user/create/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<main>
2020
<article id="content">
2121
<header>
22-
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.user.create</code></h1>
22+
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.create</code></h1>
2323
</header>
2424
<section id="section-intro">
2525
</section>

html/supertokens_python/recipe/dashboard/api/user/create/passwordless_user.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
133133
raise BadInputError(&#34;Please provide exactly one of email or phoneNumber&#34;)
134134

135135
if email is not None and (
136-
isinstance(passwordless_recipe.config.contact_config, ContactEmailOnlyConfig)
137-
or isinstance(
138-
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
136+
isinstance(
137+
passwordless_recipe.config.contact_config,
138+
(ContactEmailOnlyConfig, ContactEmailOrPhoneConfig),
139139
)
140140
):
141141
email = email.strip()
@@ -148,9 +148,9 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
148148
return CreatePasswordlessUserEmailValidationErrorResponse(validation_error)
149149

150150
if phone_number is not None and (
151-
isinstance(passwordless_recipe.config.contact_config, ContactPhoneOnlyConfig)
152-
or isinstance(
153-
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
151+
isinstance(
152+
passwordless_recipe.config.contact_config,
153+
(ContactPhoneOnlyConfig, ContactEmailOrPhoneConfig),
154154
)
155155
):
156156
validation_error = (
@@ -224,9 +224,9 @@ <h2 class="section-title" id="header-functions">Functions</h2>
224224
raise BadInputError(&#34;Please provide exactly one of email or phoneNumber&#34;)
225225

226226
if email is not None and (
227-
isinstance(passwordless_recipe.config.contact_config, ContactEmailOnlyConfig)
228-
or isinstance(
229-
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
227+
isinstance(
228+
passwordless_recipe.config.contact_config,
229+
(ContactEmailOnlyConfig, ContactEmailOrPhoneConfig),
230230
)
231231
):
232232
email = email.strip()
@@ -239,9 +239,9 @@ <h2 class="section-title" id="header-functions">Functions</h2>
239239
return CreatePasswordlessUserEmailValidationErrorResponse(validation_error)
240240

241241
if phone_number is not None and (
242-
isinstance(passwordless_recipe.config.contact_config, ContactPhoneOnlyConfig)
243-
or isinstance(
244-
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
242+
isinstance(
243+
passwordless_recipe.config.contact_config,
244+
(ContactPhoneOnlyConfig, ContactEmailOrPhoneConfig),
245245
)
246246
):
247247
validation_error = (

html/supertokens_python/recipe/dashboard/api/user/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<main>
2020
<article id="content">
2121
<header>
22-
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.user</code></h1>
22+
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user</code></h1>
2323
</header>
2424
<section id="section-intro">
2525
</section>

html/supertokens_python/recipe/dashboard/api/userroles/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<main>
2020
<article id="content">
2121
<header>
22-
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.userroles</code></h1>
22+
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles</code></h1>
2323
</header>
2424
<section id="section-intro">
2525
</section>

html/supertokens_python/recipe/dashboard/api/userroles/permissions/get_permissions_for_role.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
3434
GetPermissionsForRoleOkResult,
3535
)
3636

37-
from supertokens_python.recipe.userroles.recipe import UserRolesRecipe
3837
from supertokens_python.recipe.userroles.recipe import UserRolesRecipe
3938
from supertokens_python.types import APIResponse
4039

@@ -65,10 +64,10 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
6564

6665

6766
async def get_permissions_for_role_api(
68-
_api_interface: APIInterface,
69-
_tenant_id: str,
67+
_: APIInterface,
68+
__: str,
7069
api_options: APIOptions,
71-
user_context: Dict[str, Any],
70+
___: Dict[str, Any],
7271
) -&gt; Union[
7372
OkPermissionsForRoleResponse,
7473
FeatureNotEnabledErrorResponse,
@@ -100,7 +99,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
10099
<h2 class="section-title" id="header-functions">Functions</h2>
101100
<dl>
102101
<dt id="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.get_permissions_for_role_api"><code class="name flex">
103-
<span>async def <span class="ident">get_permissions_for_role_api</span></span>(<span>_api_interface: <a title="supertokens_python.recipe.dashboard.interfaces.APIInterface" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIInterface">APIInterface</a>, _tenant_id: str, api_options: <a title="supertokens_python.recipe.dashboard.interfaces.APIOptions" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIOptions">APIOptions</a>, user_context: Dict[str, Any]) ‑> Union[<a title="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.OkPermissionsForRoleResponse" href="#supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.OkPermissionsForRoleResponse">OkPermissionsForRoleResponse</a><a title="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.FeatureNotEnabledErrorResponse" href="#supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.FeatureNotEnabledErrorResponse">FeatureNotEnabledErrorResponse</a><a title="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.UnknownRoleErrorResponse" href="#supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.UnknownRoleErrorResponse">UnknownRoleErrorResponse</a>]</span>
102+
<span>async def <span class="ident">get_permissions_for_role_api</span></span>(<span>_: <a title="supertokens_python.recipe.dashboard.interfaces.APIInterface" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIInterface">APIInterface</a>, __: str, api_options: <a title="supertokens_python.recipe.dashboard.interfaces.APIOptions" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIOptions">APIOptions</a>, ___: Dict[str, Any]) ‑> Union[<a title="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.OkPermissionsForRoleResponse" href="#supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.OkPermissionsForRoleResponse">OkPermissionsForRoleResponse</a><a title="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.FeatureNotEnabledErrorResponse" href="#supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.FeatureNotEnabledErrorResponse">FeatureNotEnabledErrorResponse</a><a title="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.UnknownRoleErrorResponse" href="#supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.UnknownRoleErrorResponse">UnknownRoleErrorResponse</a>]</span>
104103
</code></dt>
105104
<dd>
106105
<div class="desc"></div>
@@ -109,10 +108,10 @@ <h2 class="section-title" id="header-functions">Functions</h2>
109108
<span>Expand source code</span>
110109
</summary>
111110
<pre><code class="python">async def get_permissions_for_role_api(
112-
_api_interface: APIInterface,
113-
_tenant_id: str,
111+
_: APIInterface,
112+
__: str,
114113
api_options: APIOptions,
115-
user_context: Dict[str, Any],
114+
___: Dict[str, Any],
116115
) -&gt; Union[
117116
OkPermissionsForRoleResponse,
118117
FeatureNotEnabledErrorResponse,

html/supertokens_python/recipe/dashboard/api/userroles/permissions/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<main>
2020
<article id="content">
2121
<header>
22-
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.userroles.permissions</code></h1>
22+
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles.permissions</code></h1>
2323
</header>
2424
<section id="section-intro">
2525
</section>

html/supertokens_python/recipe/dashboard/api/userroles/roles/get_all_roles.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
5252

5353

5454
async def get_all_roles_api(
55-
_: APIInterface, __: str, api_options: APIOptions, ___: Any
55+
_: APIInterface, __: str, ___: APIOptions, ____: Any
5656
) -&gt; Union[OkResponse, FeatureNotEnabledErrorResponse]:
5757
try:
5858
UserRolesRecipe.get_instance()
@@ -71,7 +71,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
7171
<h2 class="section-title" id="header-functions">Functions</h2>
7272
<dl>
7373
<dt id="supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.get_all_roles_api"><code class="name flex">
74-
<span>async def <span class="ident">get_all_roles_api</span></span>(<span>_: <a title="supertokens_python.recipe.dashboard.interfaces.APIInterface" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIInterface">APIInterface</a>, __: str, api_options<a title="supertokens_python.recipe.dashboard.interfaces.APIOptions" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIOptions">APIOptions</a>, ___: Any) ‑> Union[<a title="supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.OkResponse" href="#supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.OkResponse">OkResponse</a><a title="supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.FeatureNotEnabledErrorResponse" href="#supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.FeatureNotEnabledErrorResponse">FeatureNotEnabledErrorResponse</a>]</span>
74+
<span>async def <span class="ident">get_all_roles_api</span></span>(<span>_: <a title="supertokens_python.recipe.dashboard.interfaces.APIInterface" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIInterface">APIInterface</a>, __: str, ___<a title="supertokens_python.recipe.dashboard.interfaces.APIOptions" href="../../../interfaces.html#supertokens_python.recipe.dashboard.interfaces.APIOptions">APIOptions</a>, ____: Any) ‑> Union[<a title="supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.OkResponse" href="#supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.OkResponse">OkResponse</a><a title="supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.FeatureNotEnabledErrorResponse" href="#supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.FeatureNotEnabledErrorResponse">FeatureNotEnabledErrorResponse</a>]</span>
7575
</code></dt>
7676
<dd>
7777
<div class="desc"></div>
@@ -80,7 +80,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
8080
<span>Expand source code</span>
8181
</summary>
8282
<pre><code class="python">async def get_all_roles_api(
83-
_: APIInterface, __: str, api_options: APIOptions, ___: Any
83+
_: APIInterface, __: str, ___: APIOptions, ____: Any
8484
) -&gt; Union[OkResponse, FeatureNotEnabledErrorResponse]:
8585
try:
8686
UserRolesRecipe.get_instance()

html/supertokens_python/recipe/dashboard/api/userroles/roles/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<main>
2020
<article id="content">
2121
<header>
22-
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.userroles.roles</code></h1>
22+
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles.roles</code></h1>
2323
</header>
2424
<section id="section-intro">
2525
</section>

0 commit comments

Comments
 (0)