From e510e795a5006955603fb06fedfeb8067c79ac49 Mon Sep 17 00:00:00 2001 From: donBarbos Date: Fri, 12 Sep 2025 21:12:54 +0400 Subject: [PATCH] [auth0-python] Update to 4.11.* Closes: #14697 --- .../@tests/stubtest_allowlist.txt | 3 +++ stubs/auth0-python/METADATA.toml | 2 +- .../auth0/management/__init__.pyi | 2 ++ stubs/auth0-python/auth0/management/auth0.pyi | 2 ++ .../auth0/management/network_acls.pyi | 24 +++++++++++++++++++ 5 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 stubs/auth0-python/auth0/management/network_acls.pyi diff --git a/stubs/auth0-python/@tests/stubtest_allowlist.txt b/stubs/auth0-python/@tests/stubtest_allowlist.txt index 374bc1d561b6..47e8a9513f57 100644 --- a/stubs/auth0-python/@tests/stubtest_allowlist.txt +++ b/stubs/auth0-python/@tests/stubtest_allowlist.txt @@ -8,3 +8,6 @@ auth0\..*_async # Inconsistently implemented, ommitted auth0\.management\.Auth0\..* + +# See https://github.com/auth0/auth0-python/issues/732 +auth0.management.__all__ diff --git a/stubs/auth0-python/METADATA.toml b/stubs/auth0-python/METADATA.toml index 4e1606df7422..ed6ada464e09 100644 --- a/stubs/auth0-python/METADATA.toml +++ b/stubs/auth0-python/METADATA.toml @@ -1,3 +1,3 @@ -version = "4.10.*" +version = "4.11.*" upstream_repository = "https://github.com/auth0/auth0-python" requires = ["cryptography", "types-requests"] diff --git a/stubs/auth0-python/auth0/management/__init__.pyi b/stubs/auth0-python/auth0/management/__init__.pyi index ef02c99b9d43..be2dd2015318 100644 --- a/stubs/auth0-python/auth0/management/__init__.pyi +++ b/stubs/auth0-python/auth0/management/__init__.pyi @@ -17,6 +17,7 @@ from .hooks import Hooks from .jobs import Jobs from .log_streams import LogStreams from .logs import Logs +from .network_acls import NetworkAcls from .organizations import Organizations from .resource_servers import ResourceServers from .roles import Roles @@ -50,6 +51,7 @@ __all__ = ( "Jobs", "LogStreams", "Logs", + "NetworkAcls", "Organizations", "ResourceServers", "Roles", diff --git a/stubs/auth0-python/auth0/management/auth0.pyi b/stubs/auth0-python/auth0/management/auth0.pyi index 817d1700cc93..042d21a28c93 100644 --- a/stubs/auth0-python/auth0/management/auth0.pyi +++ b/stubs/auth0-python/auth0/management/auth0.pyi @@ -18,6 +18,7 @@ from .hooks import Hooks from .jobs import Jobs from .log_streams import LogStreams from .logs import Logs +from .network_acls import NetworkAcls from .organizations import Organizations from .prompts import Prompts from .resource_servers import ResourceServers @@ -51,6 +52,7 @@ class Auth0: jobs: Jobs log_streams: LogStreams logs: Logs + network_acls: NetworkAcls organizations: Organizations prompts: Prompts resource_servers: ResourceServers diff --git a/stubs/auth0-python/auth0/management/network_acls.pyi b/stubs/auth0-python/auth0/management/network_acls.pyi new file mode 100644 index 000000000000..cfaaf31b6c92 --- /dev/null +++ b/stubs/auth0-python/auth0/management/network_acls.pyi @@ -0,0 +1,24 @@ +from _typeshed import Incomplete + +from ..rest import RestClient, RestClientOptions +from ..types import TimeoutType + +class NetworkAcls: + domain: str + protocol: str + client: RestClient + def __init__( + self, + domain: str, + token: str, + telemetry: bool = True, + timeout: TimeoutType = 5.0, + protocol: str = "https", + rest_options: RestClientOptions | None = None, + ) -> None: ... + def all(self, page: int = 0, per_page: int = 25, include_totals: bool = True) -> list[dict[str, Incomplete]]: ... + def create(self, body: dict[str, Incomplete]) -> dict[str, Incomplete]: ... + def get(self, id: str) -> dict[str, Incomplete]: ... + def delete(self, id: str) -> None: ... + def update(self, id: str, body: dict[str, Incomplete]) -> dict[str, Incomplete]: ... + def update_partial(self, id: str, body: dict[str, Incomplete]) -> dict[str, Incomplete]: ...