Skip to content

Add stubs for async #678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions auth0/management/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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']
18 changes: 18 additions & 0 deletions auth0/management/actions.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
11 changes: 11 additions & 0 deletions auth0/management/attack_protection.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
6 changes: 6 additions & 0 deletions auth0/management/blacklists.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
15 changes: 15 additions & 0 deletions auth0/management/branding.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
9 changes: 9 additions & 0 deletions auth0/management/client_credentials.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
10 changes: 10 additions & 0 deletions auth0/management/client_grants.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
11 changes: 11 additions & 0 deletions auth0/management/clients.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
11 changes: 11 additions & 0 deletions auth0/management/connections.pyi
Original file line number Diff line number Diff line change
@@ -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: ...
10 changes: 10 additions & 0 deletions auth0/management/custom_domains.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
8 changes: 8 additions & 0 deletions auth0/management/device_credentials.pyi
Original file line number Diff line number Diff line change
@@ -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: ...
8 changes: 8 additions & 0 deletions auth0/management/email_templates.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
9 changes: 9 additions & 0 deletions auth0/management/emails.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
7 changes: 7 additions & 0 deletions auth0/management/grants.pyi
Original file line number Diff line number Diff line change
@@ -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: ...
14 changes: 14 additions & 0 deletions auth0/management/guardian.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
14 changes: 14 additions & 0 deletions auth0/management/hooks.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
10 changes: 10 additions & 0 deletions auth0/management/jobs.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
10 changes: 10 additions & 0 deletions auth0/management/log_streams.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
7 changes: 7 additions & 0 deletions auth0/management/logs.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
29 changes: 29 additions & 0 deletions auth0/management/organizations.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
9 changes: 9 additions & 0 deletions auth0/management/prompts.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
10 changes: 10 additions & 0 deletions auth0/management/resource_servers.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
15 changes: 15 additions & 0 deletions auth0/management/roles.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
10 changes: 10 additions & 0 deletions auth0/management/rules.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
Loading