From 732821dfe47d3d39ba5f0fde8d41788d87781c99 Mon Sep 17 00:00:00 2001 From: David Gilman Date: Thu, 27 Feb 2025 21:54:41 -0800 Subject: [PATCH] Add stubs for async --- auth0/management/__init__.pyi | 32 +++++++++++++++++++++++++ auth0/management/actions.pyi | 18 ++++++++++++++ auth0/management/attack_protection.pyi | 11 +++++++++ auth0/management/blacklists.pyi | 6 +++++ auth0/management/branding.pyi | 15 ++++++++++++ auth0/management/client_credentials.pyi | 9 +++++++ auth0/management/client_grants.pyi | 10 ++++++++ auth0/management/clients.pyi | 11 +++++++++ auth0/management/connections.pyi | 11 +++++++++ auth0/management/custom_domains.pyi | 10 ++++++++ auth0/management/device_credentials.pyi | 8 +++++++ auth0/management/email_templates.pyi | 8 +++++++ auth0/management/emails.pyi | 9 +++++++ auth0/management/grants.pyi | 7 ++++++ auth0/management/guardian.pyi | 14 +++++++++++ auth0/management/hooks.pyi | 14 +++++++++++ auth0/management/jobs.pyi | 10 ++++++++ auth0/management/log_streams.pyi | 10 ++++++++ auth0/management/logs.pyi | 7 ++++++ auth0/management/organizations.pyi | 29 ++++++++++++++++++++++ auth0/management/prompts.pyi | 9 +++++++ auth0/management/resource_servers.pyi | 10 ++++++++ auth0/management/roles.pyi | 15 ++++++++++++ auth0/management/rules.pyi | 10 ++++++++ auth0/management/rules_configs.pyi | 8 +++++++ auth0/management/stats.pyi | 7 ++++++ auth0/management/tenants.pyi | 7 ++++++ auth0/management/tickets.pyi | 7 ++++++ auth0/management/user_blocks.pyi | 9 +++++++ auth0/management/users.pyi | 32 +++++++++++++++++++++++++ auth0/management/users_by_email.pyi | 6 +++++ 31 files changed, 369 insertions(+) create mode 100644 auth0/management/__init__.pyi create mode 100644 auth0/management/actions.pyi create mode 100644 auth0/management/attack_protection.pyi create mode 100644 auth0/management/blacklists.pyi create mode 100644 auth0/management/branding.pyi create mode 100644 auth0/management/client_credentials.pyi create mode 100644 auth0/management/client_grants.pyi create mode 100644 auth0/management/clients.pyi create mode 100644 auth0/management/connections.pyi create mode 100644 auth0/management/custom_domains.pyi create mode 100644 auth0/management/device_credentials.pyi create mode 100644 auth0/management/email_templates.pyi create mode 100644 auth0/management/emails.pyi create mode 100644 auth0/management/grants.pyi create mode 100644 auth0/management/guardian.pyi create mode 100644 auth0/management/hooks.pyi create mode 100644 auth0/management/jobs.pyi create mode 100644 auth0/management/log_streams.pyi create mode 100644 auth0/management/logs.pyi create mode 100644 auth0/management/organizations.pyi create mode 100644 auth0/management/prompts.pyi create mode 100644 auth0/management/resource_servers.pyi create mode 100644 auth0/management/roles.pyi create mode 100644 auth0/management/rules.pyi create mode 100644 auth0/management/rules_configs.pyi create mode 100644 auth0/management/stats.pyi create mode 100644 auth0/management/tenants.pyi create mode 100644 auth0/management/tickets.pyi create mode 100644 auth0/management/user_blocks.pyi create mode 100644 auth0/management/users.pyi create mode 100644 auth0/management/users_by_email.pyi diff --git a/auth0/management/__init__.pyi b/auth0/management/__init__.pyi new file mode 100644 index 00000000..c433a9b3 --- /dev/null +++ b/auth0/management/__init__.pyi @@ -0,0 +1,32 @@ +from .actions import Actions as Actions +from .attack_protection import AttackProtection as AttackProtection +from .auth0 import Auth0 as Auth0 +from .blacklists import Blacklists as Blacklists +from .branding import Branding as Branding +from .client_credentials import ClientCredentials as ClientCredentials +from .client_grants import ClientGrants as ClientGrants +from .clients import Clients as Clients +from .connections import Connections as Connections +from .custom_domains import CustomDomains as CustomDomains +from .device_credentials import DeviceCredentials as DeviceCredentials +from .email_templates import EmailTemplates as EmailTemplates +from .emails import Emails as Emails +from .grants import Grants as Grants +from .guardian import Guardian as Guardian +from .hooks import Hooks as Hooks +from .jobs import Jobs as Jobs +from .log_streams import LogStreams as LogStreams +from .logs import Logs as Logs +from .organizations import Organizations as Organizations +from .resource_servers import ResourceServers as ResourceServers +from .roles import Roles as Roles +from .rules import Rules as Rules +from .rules_configs import RulesConfigs as RulesConfigs +from .stats import Stats as Stats +from .tenants import Tenants as Tenants +from .tickets import Tickets as Tickets +from .user_blocks import UserBlocks as UserBlocks +from .users import Users as Users +from .users_by_email import UsersByEmail as UsersByEmail + +__all__ = ['Auth0', 'Actions', 'AttackProtection', 'Blacklists', 'Branding', 'ClientCredentials', 'ClientGrants', 'Clients', 'Connections', 'CustomDomains', 'DeviceCredentials', 'EmailTemplates', 'Emails', 'Grants', 'Guardian', 'Hooks', 'Jobs', 'LogStreams', 'Logs', 'Organizations', 'ResourceServers', 'Roles', 'RulesConfigs', 'Rules', 'Stats', 'Tenants', 'Tickets', 'UserBlocks', 'UsersByEmail', 'Users'] diff --git a/auth0/management/actions.pyi b/auth0/management/actions.pyi new file mode 100644 index 00000000..2f046fbd --- /dev/null +++ b/auth0/management/actions.pyi @@ -0,0 +1,18 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Actions: + def get_actions_async(self, trigger_id: str | None = None, action_name: str | None = None, deployed: bool | None = None, installed: bool = False, page: int | None = None, per_page: int | None = None) -> Any: ... + def create_action_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def update_action_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def get_action_async(self, id: str) -> dict[str, Any]: ... + def delete_action_async(self, id: str, force: bool = False) -> Any: ... + def get_triggers(self) -> dict[str, Any]: ... + def get_execution_async(self, id: str) -> dict[str, Any]: ... + def get_action_versions_async(self, id: str, page: int | None = None, per_page: int | None = None) -> dict[str, Any]: ... + def get_trigger_bindings_async(self, id: str, page: int | None = None, per_page: int | None = None) -> dict[str, Any]: ... + def get_action_version_async(self, action_id: str, version_id: str) -> dict[str, Any]: ... + def deploy_action_async(self, id: str) -> dict[str, Any]: ... + def rollback_action_version_async(self, action_id: str, version_id: str) -> dict[str, Any]: ... + def update_trigger_bindings_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/attack_protection.pyi b/auth0/management/attack_protection.pyi new file mode 100644 index 00000000..eaaef9ea --- /dev/null +++ b/auth0/management/attack_protection.pyi @@ -0,0 +1,11 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class AttackProtection: + def get_breached_password_detection(self) -> dict[str, Any]: ... + def update_breached_password_detection_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_brute_force_protection(self) -> dict[str, Any]: ... + def update_brute_force_protection_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_suspicious_ip_throttling(self) -> dict[str, Any]: ... + def update_suspicious_ip_throttling_async(self, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/blacklists.pyi b/auth0/management/blacklists.pyi new file mode 100644 index 00000000..ead53060 --- /dev/null +++ b/auth0/management/blacklists.pyi @@ -0,0 +1,6 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType + +class Blacklists: + def get_async(self, aud: str | None = None) -> list[dict[str, str]]: ... + def create_async(self, jti: str, aud: str | None = None) -> dict[str, str]: ... diff --git a/auth0/management/branding.pyi b/auth0/management/branding.pyi new file mode 100644 index 00000000..03a3aa34 --- /dev/null +++ b/auth0/management/branding.pyi @@ -0,0 +1,15 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Branding: + def get(self) -> dict[str, Any]: ... + def update_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_template_universal_login(self) -> dict[str, Any]: ... + def delete_template_universal_login(self) -> Any: ... + def update_template_universal_login_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_default_branding_theme(self) -> dict[str, Any]: ... + def get_branding_theme_async(self, theme_id: str) -> dict[str, Any]: ... + def delete_branding_theme_async(self, theme_id: str) -> Any: ... + def update_branding_theme_async(self, theme_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def create_branding_theme_async(self, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/client_credentials.pyi b/auth0/management/client_credentials.pyi new file mode 100644 index 00000000..12fbd1b5 --- /dev/null +++ b/auth0/management/client_credentials.pyi @@ -0,0 +1,9 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class ClientCredentials: + def all_async(self, client_id: str) -> list[dict[str, Any]]: ... + def get_async(self, client_id: str, id: str) -> dict[str, Any]: ... + def create_async(self, client_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_async(self, client_id: str, id: str) -> dict[str, Any]: ... diff --git a/auth0/management/client_grants.pyi b/auth0/management/client_grants.pyi new file mode 100644 index 00000000..9445a7ff --- /dev/null +++ b/auth0/management/client_grants.pyi @@ -0,0 +1,10 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class ClientGrants: + def all_async(self, audience: str | None = None, page: int | None = None, per_page: int | None = None, include_totals: bool = False, client_id: str | None = None, allow_any_organization: bool | None = None): ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def get_organizations_async(self, id: str, page: int | None = None, per_page: int | None = None, include_totals: bool = False, from_param: str | None = None, take: int | None = None): ... diff --git a/auth0/management/clients.pyi b/auth0/management/clients.pyi new file mode 100644 index 00000000..5130991a --- /dev/null +++ b/auth0/management/clients.pyi @@ -0,0 +1,11 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Clients: + def all_async(self, fields: list[str] | None = None, include_fields: bool = True, page: int | None = None, per_page: int | None = None, extra_params: dict[str, Any] | None = None) -> list[dict[str, Any]]: ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_async(self, id: str, fields: list[str] | None = None, include_fields: bool = True) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def rotate_secret_async(self, id: str) -> dict[str, Any]: ... diff --git a/auth0/management/connections.pyi b/auth0/management/connections.pyi new file mode 100644 index 00000000..d5e77435 --- /dev/null +++ b/auth0/management/connections.pyi @@ -0,0 +1,11 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Connections: + def all_async(self, strategy: str | None = None, fields: list[str] | None = None, include_fields: bool = True, page: int | None = None, per_page: int | None = None, extra_params: dict[str, Any] | None = None, name: str | None = None) -> list[dict[str, Any]]: ... + def get_async(self, id: str, fields: list[str] | None = None, include_fields: bool = True) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_user_by_email_async(self, id: str, email: str) -> Any: ... diff --git a/auth0/management/custom_domains.pyi b/auth0/management/custom_domains.pyi new file mode 100644 index 00000000..ae5dda40 --- /dev/null +++ b/auth0/management/custom_domains.pyi @@ -0,0 +1,10 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class CustomDomains: + def all(self) -> list[dict[str, Any]]: ... + def get_async(self, id: str) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def create_new_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def verify_async(self, id: str) -> dict[str, Any]: ... diff --git a/auth0/management/device_credentials.pyi b/auth0/management/device_credentials.pyi new file mode 100644 index 00000000..b87b3717 --- /dev/null +++ b/auth0/management/device_credentials.pyi @@ -0,0 +1,8 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class DeviceCredentials: + def get_async(self, user_id: str, client_id: str, type: str, fields: list[str] | None = None, include_fields: bool = True, page: int | None = None, per_page: int | None = None, include_totals: bool = False): ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... diff --git a/auth0/management/email_templates.pyi b/auth0/management/email_templates.pyi new file mode 100644 index 00000000..28d49041 --- /dev/null +++ b/auth0/management/email_templates.pyi @@ -0,0 +1,8 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class EmailTemplates: + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_async(self, template_name: str) -> dict[str, Any]: ... + def update_async(self, template_name: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/emails.pyi b/auth0/management/emails.pyi new file mode 100644 index 00000000..42889994 --- /dev/null +++ b/auth0/management/emails.pyi @@ -0,0 +1,9 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Emails: + def get_async(self, fields: list[str] | None = None, include_fields: bool = True) -> dict[str, Any]: ... + def config_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def delete(self) -> Any: ... + def update_async(self, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/grants.pyi b/auth0/management/grants.pyi new file mode 100644 index 00000000..7da00e55 --- /dev/null +++ b/auth0/management/grants.pyi @@ -0,0 +1,7 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Grants: + def all_async(self, page: int | None = None, per_page: int | None = None, include_totals: bool = False, extra_params: dict[str, Any] | None = None): ... + def delete_async(self, id: str) -> Any: ... diff --git a/auth0/management/guardian.pyi b/auth0/management/guardian.pyi new file mode 100644 index 00000000..2881d8ff --- /dev/null +++ b/auth0/management/guardian.pyi @@ -0,0 +1,14 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Guardian: + def all_factors(self) -> list[dict[str, Any]]: ... + def update_factor_async(self, name: str, body: dict[str, Any]) -> dict[str, Any]: ... + def update_templates_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_templates(self) -> dict[str, Any]: ... + def get_enrollment_async(self, id: str) -> dict[str, Any]: ... + def delete_enrollment_async(self, id: str) -> Any: ... + def create_enrollment_ticket_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_factor_providers_async(self, factor_name: str, name: str) -> dict[str, Any]: ... + def update_factor_providers_async(self, factor_name: str, name: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/hooks.pyi b/auth0/management/hooks.pyi new file mode 100644 index 00000000..58db44d4 --- /dev/null +++ b/auth0/management/hooks.pyi @@ -0,0 +1,14 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Hooks: + def all_async(self, enabled: bool = True, fields: list[str] | None = None, include_fields: bool = True, page: int | None = None, per_page: int | None = None, include_totals: bool = False): ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_async(self, id: str, fields: list[str] | None = None) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def get_secrets_async(self, id: str) -> dict[str, Any]: ... + def add_secrets_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_secrets_async(self, id: str, body: list[str]) -> Any: ... + def update_secrets_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/jobs.pyi b/auth0/management/jobs.pyi new file mode 100644 index 00000000..1db461c4 --- /dev/null +++ b/auth0/management/jobs.pyi @@ -0,0 +1,10 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Jobs: + def get_async(self, id: str) -> dict[str, Any]: ... + def get_failed_job_async(self, id: str) -> dict[str, Any]: ... + def export_users_async(self, body: dict[str, Any]): ... + def import_users_async(self, connection_id: str, file_obj: Any, upsert: bool = False, send_completion_email: bool = True, external_id: str | None = None) -> dict[str, Any]: ... + def send_verification_email_async(self, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/log_streams.pyi b/auth0/management/log_streams.pyi new file mode 100644 index 00000000..5a7c3f99 --- /dev/null +++ b/auth0/management/log_streams.pyi @@ -0,0 +1,10 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class LogStreams: + def list(self) -> list[dict[str, Any]]: ... + def get_async(self, id: str) -> dict[str, Any]: ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_async(self, id: str) -> dict[str, Any]: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/logs.pyi b/auth0/management/logs.pyi new file mode 100644 index 00000000..5c1f0430 --- /dev/null +++ b/auth0/management/logs.pyi @@ -0,0 +1,7 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Logs: + def search_async(self, page: int = 0, per_page: int = 50, sort: str | None = None, q: str | None = None, include_totals: bool = True, fields: list[str] | None = None, from_param: str | None = None, take: int | None = None, include_fields: bool = True): ... + def get_async(self, id: str) -> dict[str, Any]: ... diff --git a/auth0/management/organizations.pyi b/auth0/management/organizations.pyi new file mode 100644 index 00000000..f9dde030 --- /dev/null +++ b/auth0/management/organizations.pyi @@ -0,0 +1,29 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Organizations: + def all_organizations_async(self, page: int | None = None, per_page: int | None = None, include_totals: bool = True, from_param: str | None = None, take: int | None = None): ... + def get_organization_by_name_async(self, name: str | None = None) -> dict[str, Any]: ... + def get_organization_async(self, id: str) -> dict[str, Any]: ... + def create_organization_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def update_organization_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_organization_async(self, id: str) -> Any: ... + def all_organization_connections_async(self, id: str, page: int | None = None, per_page: int | None = None) -> list[dict[str, Any]]: ... + def get_organization_connection_async(self, id: str, connection_id: str) -> dict[str, Any]: ... + def create_organization_connection_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def update_organization_connection_async(self, id: str, connection_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_organization_connection_async(self, id: str, connection_id: str) -> Any: ... + def all_organization_members_async(self, id: str, page: int | None = None, per_page: int | None = None, include_totals: bool = True, from_param: str | None = None, take: int | None = None, fields: list[str] | None = None, include_fields: bool = True): ... + def create_organization_members_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_organization_members_async(self, id: str, body: dict[str, Any]) -> Any: ... + def all_organization_member_roles_async(self, id: str, user_id: str, page: int | None = None, per_page: int | None = None, include_totals: bool = False) -> list[dict[str, Any]]: ... + def create_organization_member_roles_async(self, id: str, user_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_organization_member_roles_async(self, id: str, user_id: str, body: dict[str, Any]) -> Any: ... + def all_organization_invitations_async(self, id: str, page: int | None = None, per_page: int | None = None, include_totals: bool = False): ... + def get_organization_invitation_async(self, id: str, invitaton_id: str) -> dict[str, Any]: ... + def create_organization_invitation_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_organization_invitation_async(self, id: str, invitation_id: str) -> Any: ... + def get_client_grants_async(self, id: str, audience: str | None = None, client_id: str | None = None, page: int | None = None, per_page: int | None = None, include_totals: bool = False): ... + def add_client_grant_async(self, id: str, grant_id: str) -> dict[str, Any]: ... + def delete_client_grant_async(self, id: str, grant_id: str) -> dict[str, Any]: ... diff --git a/auth0/management/prompts.pyi b/auth0/management/prompts.pyi new file mode 100644 index 00000000..07768e9e --- /dev/null +++ b/auth0/management/prompts.pyi @@ -0,0 +1,9 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Prompts: + def get(self) -> dict[str, Any]: ... + def update_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_custom_text_async(self, prompt: str, language: str): ... + def update_custom_text_async(self, prompt: str, language: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/resource_servers.pyi b/auth0/management/resource_servers.pyi new file mode 100644 index 00000000..1b6b3069 --- /dev/null +++ b/auth0/management/resource_servers.pyi @@ -0,0 +1,10 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class ResourceServers: + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_all_async(self, page: int | None = None, per_page: int | None = None, include_totals: bool = False): ... + def get_async(self, id: str) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/roles.pyi b/auth0/management/roles.pyi new file mode 100644 index 00000000..f896adf3 --- /dev/null +++ b/auth0/management/roles.pyi @@ -0,0 +1,15 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Roles: + def list_async(self, page: int = 0, per_page: int = 25, include_totals: bool = True, name_filter: str | None = None): ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_async(self, id: str) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def list_users_async(self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True, from_param: str | None = None, take: int | None = None): ... + def add_users_async(self, id: str, users: list[str]) -> dict[str, Any]: ... + def list_permissions_async(self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True): ... + def remove_permissions_async(self, id: str, permissions: list[dict[str, str]]) -> Any: ... + def add_permissions_async(self, id: str, permissions: list[dict[str, str]]) -> dict[str, Any]: ... diff --git a/auth0/management/rules.pyi b/auth0/management/rules.pyi new file mode 100644 index 00000000..a0c54aaf --- /dev/null +++ b/auth0/management/rules.pyi @@ -0,0 +1,10 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Rules: + def all_async(self, stage: str = 'login_success', enabled: bool = True, fields: list[str] | None = None, include_fields: bool = True, page: int | None = None, per_page: int | None = None, include_totals: bool = False): ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_async(self, id: str, fields: list[str] | None = None, include_fields: bool = True) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/rules_configs.pyi b/auth0/management/rules_configs.pyi new file mode 100644 index 00000000..c1bbb3dc --- /dev/null +++ b/auth0/management/rules_configs.pyi @@ -0,0 +1,8 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class RulesConfigs: + def all(self) -> list[dict[str, Any]]: ... + def unset_async(self, key: str) -> Any: ... + def set_async(self, key: str, value: str) -> dict[str, Any]: ... diff --git a/auth0/management/stats.pyi b/auth0/management/stats.pyi new file mode 100644 index 00000000..c12a8764 --- /dev/null +++ b/auth0/management/stats.pyi @@ -0,0 +1,7 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Stats: + def active_users(self) -> int: ... + def daily_stats_async(self, from_date: str | None = None, to_date: str | None = None) -> list[dict[str, Any]]: ... diff --git a/auth0/management/tenants.pyi b/auth0/management/tenants.pyi new file mode 100644 index 00000000..8126aeab --- /dev/null +++ b/auth0/management/tenants.pyi @@ -0,0 +1,7 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Tenants: + def get_async(self, fields: list[str] | None = None, include_fields: bool = True) -> dict[str, Any]: ... + def update_async(self, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/tickets.pyi b/auth0/management/tickets.pyi new file mode 100644 index 00000000..5ba7e794 --- /dev/null +++ b/auth0/management/tickets.pyi @@ -0,0 +1,7 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Tickets: + def create_email_verification_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def create_pswd_change_async(self, body: dict[str, Any]) -> dict[str, Any]: ... diff --git a/auth0/management/user_blocks.pyi b/auth0/management/user_blocks.pyi new file mode 100644 index 00000000..6febf02f --- /dev/null +++ b/auth0/management/user_blocks.pyi @@ -0,0 +1,9 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class UserBlocks: + def get_by_identifier_async(self, identifier: str) -> dict[str, Any]: ... + def unblock_by_identifier_async(self, identifier: dict[str, Any]) -> Any: ... + def get_async(self, id: str) -> dict[str, Any]: ... + def unblock_async(self, id: str) -> Any: ... diff --git a/auth0/management/users.pyi b/auth0/management/users.pyi new file mode 100644 index 00000000..c11a415d --- /dev/null +++ b/auth0/management/users.pyi @@ -0,0 +1,32 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class Users: + def list_async(self, page: int = 0, per_page: int = 25, sort: str | None = None, connection: str | None = None, q: str | None = None, search_engine: str | None = None, include_totals: bool = True, fields: list[str] | None = None, include_fields: bool = True): ... + def create_async(self, body: dict[str, Any]) -> dict[str, Any]: ... + def get_async_async(self, id: str, fields: list[str] | None = None, include_fields: bool = True) -> dict[str, Any]: ... + def delete_async(self, id: str) -> Any: ... + def update_async(self, id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def list_organizations_async(self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True): ... + def list_roles_async(self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True): ... + def remove_roles_async(self, id: str, roles: list[str]) -> Any: ... + def add_roles_async(self, id: str, roles: list[str]) -> dict[str, Any]: ... + def list_permissions_async(self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True): ... + def remove_permissions_async(self, id: str, permissions: list[str]) -> Any: ... + def add_permissions_async(self, id: str, permissions: list[str]) -> dict[str, Any]: ... + def delete_multifactor_async(self, id: str, provider: str) -> Any: ... + def delete_authenticators_async(self, id: str) -> Any: ... + def unlink_user_account_async(self, id: str, provider: str, user_id: str) -> Any: ... + def link_user_account_async(self, user_id: str, body: dict[str, Any]) -> list[dict[str, Any]]: ... + def regenerate_recovery_code_async(self, user_id: str) -> dict[str, Any]: ... + def get_guardian_enrollments_async(self, user_id: str) -> dict[str, Any]: ... + def get_log_events_async(self, user_id: str, page: int = 0, per_page: int = 50, sort: str | None = None, include_totals: bool = False): ... + def invalidate_remembered_browsers_async(self, user_id: str) -> dict[str, Any]: ... + def get_authentication_methods_async(self, user_id: str) -> dict[str, Any]: ... + def get_authentication_method_by_id_async(self, user_id: str, authentication_method_id: str) -> dict[str, Any]: ... + def create_authentication_method_async(self, user_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def update_authentication_methods_async(self, user_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def update_authentication_method_by_id_async(self, user_id: str, authentication_method_id: str, body: dict[str, Any]) -> dict[str, Any]: ... + def delete_authentication_methods_async(self, user_id: str) -> Any: ... + def delete_authentication_method_by_id_async(self, user_id: str, authentication_method_id: str) -> Any: ... diff --git a/auth0/management/users_by_email.pyi b/auth0/management/users_by_email.pyi new file mode 100644 index 00000000..fcc9b4a8 --- /dev/null +++ b/auth0/management/users_by_email.pyi @@ -0,0 +1,6 @@ +from ..rest import RestClient as RestClient, RestClientOptions as RestClientOptions +from ..types import TimeoutType as TimeoutType +from typing import Any + +class UsersByEmail: + def search_users_by_email_async(self, email: str, fields: list[str] | None = None, include_fields: bool = True) -> list[dict[str, Any]]: ...