Skip to content

Commit

Permalink
adding dev-v0.25.0 tag to this commit to ensure building
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 6, 2024
1 parent ee4e448 commit 5410c8a
Show file tree
Hide file tree
Showing 18 changed files with 315 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
# License for the specific language governing permissions and limitations
# under the License.

from typing import Any, Dict, List, Union
from typing import Any, Dict, List, Union, Optional
from typing_extensions import Literal

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


from typing import List, Optional


class ThirdPartyProvider:
def __init__(self, third_party_id: str, name: str):
self.third_party_id = third_party_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,17 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
after_override = provider.override(before_override)

if (
before_override.get_authorisation_redirect_url
before_override.get_authorisation_redirect_url # pylint: disable=W0143
!= after_override.get_authorisation_redirect_url
):
is_get_authorisation_redirect_url_overridden = True
if (
before_override.exchange_auth_code_for_oauth_tokens
before_override.exchange_auth_code_for_oauth_tokens # pylint: disable=W0143
!= after_override.exchange_auth_code_for_oauth_tokens
):
is_exchange_auth_code_for_oauth_tokens_overridden = True
if (
before_override.get_user_info
before_override.get_user_info # pylint: disable=W0143
!= after_override.get_user_info
):
is_get_user_info_overridden = True
Expand Down Expand Up @@ -624,17 +624,17 @@ <h2 class="section-title" id="header-functions">Functions</h2>
after_override = provider.override(before_override)

if (
before_override.get_authorisation_redirect_url
before_override.get_authorisation_redirect_url # pylint: disable=W0143
!= after_override.get_authorisation_redirect_url
):
is_get_authorisation_redirect_url_overridden = True
if (
before_override.exchange_auth_code_for_oauth_tokens
before_override.exchange_auth_code_for_oauth_tokens # pylint: disable=W0143
!= after_override.exchange_auth_code_for_oauth_tokens
):
is_exchange_auth_code_for_oauth_tokens_overridden = True
if (
before_override.get_user_info
before_override.get_user_info # pylint: disable=W0143
!= after_override.get_user_info
):
is_get_user_info_overridden = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<main>
<article id="content">
<header>
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.multitenancy</code></h1>
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitenancy</code></h1>
</header>
<section id="section-intro">
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
_: APIInterface,
tenant_id: str,
api_options: APIOptions,
user_context: Dict[str, Any],
__: Dict[str, Any],
) -&gt; Union[
CreateEmailPasswordUserOkResponse,
CreateEmailPasswordUserFeatureNotEnabledResponse,
Expand Down Expand Up @@ -164,7 +164,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="supertokens_python.recipe.dashboard.api.user.create.emailpassword_user.create_email_password_user"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<div class="desc"></div>
Expand All @@ -176,7 +176,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
_: APIInterface,
tenant_id: str,
api_options: APIOptions,
user_context: Dict[str, Any],
__: Dict[str, Any],
) -&gt; Union[
CreateEmailPasswordUserOkResponse,
CreateEmailPasswordUserFeatureNotEnabledResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<main>
<article id="content">
<header>
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.user.create</code></h1>
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.create</code></h1>
</header>
<section id="section-intro">
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
raise BadInputError(&#34;Please provide exactly one of email or phoneNumber&#34;)

if email is not None and (
isinstance(passwordless_recipe.config.contact_config, ContactEmailOnlyConfig)
or isinstance(
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
isinstance(
passwordless_recipe.config.contact_config,
(ContactEmailOnlyConfig, ContactEmailOrPhoneConfig),
)
):
email = email.strip()
Expand All @@ -148,9 +148,9 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user.crea
return CreatePasswordlessUserEmailValidationErrorResponse(validation_error)

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

if email is not None and (
isinstance(passwordless_recipe.config.contact_config, ContactEmailOnlyConfig)
or isinstance(
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
isinstance(
passwordless_recipe.config.contact_config,
(ContactEmailOnlyConfig, ContactEmailOrPhoneConfig),
)
):
email = email.strip()
Expand All @@ -239,9 +239,9 @@ <h2 class="section-title" id="header-functions">Functions</h2>
return CreatePasswordlessUserEmailValidationErrorResponse(validation_error)

if phone_number is not None and (
isinstance(passwordless_recipe.config.contact_config, ContactPhoneOnlyConfig)
or isinstance(
passwordless_recipe.config.contact_config, ContactEmailOrPhoneConfig
isinstance(
passwordless_recipe.config.contact_config,
(ContactPhoneOnlyConfig, ContactEmailOrPhoneConfig),
)
):
validation_error = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<main>
<article id="content">
<header>
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.user</code></h1>
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.user</code></h1>
</header>
<section id="section-intro">
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<main>
<article id="content">
<header>
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.userroles</code></h1>
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles</code></h1>
</header>
<section id="section-intro">
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
GetPermissionsForRoleOkResult,
)

from supertokens_python.recipe.userroles.recipe import UserRolesRecipe
from supertokens_python.recipe.userroles.recipe import UserRolesRecipe
from supertokens_python.types import APIResponse

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


async def get_permissions_for_role_api(
_api_interface: APIInterface,
_tenant_id: str,
_: APIInterface,
__: str,
api_options: APIOptions,
user_context: Dict[str, Any],
___: Dict[str, Any],
) -&gt; Union[
OkPermissionsForRoleResponse,
FeatureNotEnabledErrorResponse,
Expand Down Expand Up @@ -100,7 +99,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="supertokens_python.recipe.dashboard.api.userroles.permissions.get_permissions_for_role.get_permissions_for_role_api"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<div class="desc"></div>
Expand All @@ -109,10 +108,10 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<span>Expand source code</span>
</summary>
<pre><code class="python">async def get_permissions_for_role_api(
_api_interface: APIInterface,
_tenant_id: str,
_: APIInterface,
__: str,
api_options: APIOptions,
user_context: Dict[str, Any],
___: Dict[str, Any],
) -&gt; Union[
OkPermissionsForRoleResponse,
FeatureNotEnabledErrorResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<main>
<article id="content">
<header>
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.userroles.permissions</code></h1>
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles.permissions</code></h1>
</header>
<section id="section-intro">
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles


async def get_all_roles_api(
_: APIInterface, __: str, api_options: APIOptions, ___: Any
_: APIInterface, __: str, ___: APIOptions, ____: Any
) -&gt; Union[OkResponse, FeatureNotEnabledErrorResponse]:
try:
UserRolesRecipe.get_instance()
Expand All @@ -71,7 +71,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="supertokens_python.recipe.dashboard.api.userroles.roles.get_all_roles.get_all_roles_api"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<div class="desc"></div>
Expand All @@ -80,7 +80,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<span>Expand source code</span>
</summary>
<pre><code class="python">async def get_all_roles_api(
_: APIInterface, __: str, api_options: APIOptions, ___: Any
_: APIInterface, __: str, ___: APIOptions, ____: Any
) -&gt; Union[OkResponse, FeatureNotEnabledErrorResponse]:
try:
UserRolesRecipe.get_instance()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<main>
<article id="content">
<header>
<h1 class="title">Namespace <code>supertokens_python.recipe.dashboard.api.userroles.roles</code></h1>
<h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.userroles.roles</code></h1>
</header>
<section id="section-intro">
</section>
Expand Down
Loading

0 comments on commit 5410c8a

Please sign in to comment.