Skip to content

Commit 36814a6

Browse files
committed
[auth0-python] Add async functions to AsyncAuth0
1 parent 1c17cd4 commit 36814a6

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

stubs/auth0-python/@tests/stubtest_allowlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ auth0\.test.*
33

44
# Omit _async functions because they aren't present in the code
55
auth0\..*_async
6+
auth0\.management\.async_auth0\..*
67

78
# Inconsistently implemented, ommitted
89
auth0.asyncify.AsyncRestClient.file_post

stubs/auth0-python/auth0/management/async_auth0.pyi

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,73 @@
1+
from _typeshed import Incomplete
12
from types import TracebackType
23
from typing_extensions import Self
34

45
from auth0.rest import RestClientOptions as RestClientOptions
56

67
from ..asyncify import asyncify as asyncify
8+
from .actions import Actions as Actions
9+
from .attack_protection import AttackProtection as AttackProtection
710
from .auth0 import Auth0 as Auth0
11+
from .blacklists import Blacklists as Blacklists
12+
from .branding import Branding as Branding
13+
from .client_credentials import ClientCredentials as ClientCredentials
14+
from .client_grants import ClientGrants as ClientGrants
15+
from .clients import Clients as Clients
16+
from .connections import Connections as Connections
17+
from .custom_domains import CustomDomains as CustomDomains
18+
from .device_credentials import DeviceCredentials as DeviceCredentials
19+
from .email_templates import EmailTemplates as EmailTemplates
20+
from .emails import Emails as Emails
21+
from .grants import Grants as Grants
22+
from .guardian import Guardian as Guardian
23+
from .hooks import Hooks as Hooks
24+
from .jobs import Jobs as Jobs
25+
from .log_streams import LogStreams as LogStreams
26+
from .logs import Logs as Logs
27+
from .organizations import Organizations as Organizations
28+
from .prompts import Prompts as Prompts
29+
from .resource_servers import ResourceServers as ResourceServers
30+
from .roles import Roles as Roles
31+
from .rules import Rules as Rules
32+
from .rules_configs import RulesConfigs as RulesConfigs
33+
from .stats import Stats as Stats
34+
from .tenants import Tenants as Tenants
35+
from .tickets import Tickets as Tickets
36+
from .user_blocks import UserBlocks as UserBlocks
37+
from .users import Users as Users
38+
from .users_by_email import UsersByEmail as UsersByEmail
839

940
class AsyncAuth0:
41+
actions: Incomplete
42+
attack_protection: Incomplete
43+
blacklists: Incomplete
44+
branding: Incomplete
45+
client_credentials: Incomplete
46+
client_grants: Incomplete
47+
clients: Incomplete
48+
connections: Incomplete
49+
custom_domains: Incomplete
50+
device_credentials: Incomplete
51+
email_templates: Incomplete
52+
emails: Incomplete
53+
grants: Incomplete
54+
guardian: Incomplete
55+
hooks: Incomplete
56+
jobs: Incomplete
57+
log_streams: Incomplete
58+
logs: Incomplete
59+
organizations: Incomplete
60+
prompts: Incomplete
61+
resource_servers: Incomplete
62+
roles: Incomplete
63+
rules_configs: Incomplete
64+
rules: Incomplete
65+
stats: Incomplete
66+
tenants: Incomplete
67+
tickets: Incomplete
68+
user_blocks: Incomplete
69+
users_by_email: Incomplete
70+
users: Incomplete
1071
def __init__(self, domain: str, token: str, rest_options: RestClientOptions | None = None) -> None: ...
1172
def set_session(self, session) -> None: ...
1273
async def __aenter__(self) -> Self: ...

0 commit comments

Comments
 (0)