|
| 1 | +from gotrue.errors import ( |
| 2 | + AuthApiError, |
| 3 | + AuthError, |
| 4 | + AuthImplicitGrantRedirectError, |
| 5 | + AuthInvalidCredentialsError, |
| 6 | + AuthRetryableError, |
| 7 | + AuthSessionMissingError, |
| 8 | + AuthUnknownError, |
| 9 | + AuthWeakPasswordError, |
| 10 | +) |
1 | 11 | from postgrest import APIError as PostgrestAPIError
|
2 | 12 | from postgrest import APIResponse as PostgrestAPIResponse
|
| 13 | +from realtime import AuthorizationError, NotConnectedError |
3 | 14 | from storage3.utils import StorageException
|
| 15 | +from supafunc.errors import FunctionsError, FunctionsHttpError, FunctionsRelayError |
4 | 16 |
|
5 | 17 | # Async Client
|
6 | 18 | from ._async.auth_client import AsyncSupabaseAuthClient as ASupabaseAuthClient
|
7 | 19 | from ._async.client import AsyncClient as AClient
|
8 | 20 | from ._async.client import AsyncStorageClient as ASupabaseStorageClient
|
9 | 21 | from ._async.client import ClientOptions as AClientOptions
|
10 | 22 | from ._async.client import create_client as acreate_client
|
| 23 | +from ._async.client import create_client as create_async_client |
11 | 24 |
|
12 | 25 | # Sync Client
|
13 | 26 | from ._sync.auth_client import SyncSupabaseAuthClient as SupabaseAuthClient
|
14 |
| -from ._sync.client import ClientOptions |
15 | 27 | from ._sync.client import SyncClient as Client
|
16 | 28 | from ._sync.client import SyncStorageClient as SupabaseStorageClient
|
17 | 29 | from ._sync.client import create_client
|
18 | 30 |
|
| 31 | +# Lib |
| 32 | +from .lib.client_options import ClientOptions |
| 33 | + |
19 | 34 | # Version
|
20 | 35 | from .version import __version__
|
21 | 36 |
|
22 | 37 | __all__ = [
|
23 | 38 | "acreate_client",
|
| 39 | + "create_async_client", |
24 | 40 | "AClient",
|
25 | 41 | "ASupabaseAuthClient",
|
26 | 42 | "ASupabaseStorageClient",
|
| 43 | + "AClientOptions", |
27 | 44 | "create_client",
|
28 | 45 | "Client",
|
29 | 46 | "SupabaseAuthClient",
|
30 | 47 | "SupabaseStorageClient",
|
| 48 | + "ClientOptions", |
31 | 49 | "PostgrestAPIError",
|
32 | 50 | "PostgrestAPIResponse",
|
33 | 51 | "StorageException",
|
34 |
| - "version", |
| 52 | + "__version__", |
| 53 | + "AuthApiError", |
| 54 | + "AuthError", |
| 55 | + "AuthImplicitGrantRedirectError", |
| 56 | + "AuthInvalidCredentialsError", |
| 57 | + "AuthRetryableError", |
| 58 | + "AuthSessionMissingError", |
| 59 | + "AuthWeakPasswordError", |
| 60 | + "AuthUnknownError", |
| 61 | + "FunctionsHttpError", |
| 62 | + "FunctionsRelayError", |
| 63 | + "FunctionsError", |
| 64 | + "AuthorizationError", |
| 65 | + "NotConnectedError", |
35 | 66 | ]
|
0 commit comments