|
1 | 1 | from typing import Awaitable, Optional, Protocol, Sequence, Type, Union, cast |
2 | 2 | from urllib.parse import urlencode |
| 3 | + |
3 | 4 | from workos._client_configuration import ClientConfiguration |
4 | 5 | from workos.session import AsyncSession, Session |
5 | 6 | from workos.types.list_resource import ( |
|
36 | 37 | AuthenticateWithTotpParameters, |
37 | 38 | ) |
38 | 39 | from workos.types.user_management.authentication_response import ( |
39 | | - AuthKitAuthenticationResponse, |
40 | 40 | AuthenticationResponseType, |
| 41 | + AuthKitAuthenticationResponse, |
41 | 42 | ) |
42 | 43 | from workos.types.user_management.list_filters import ( |
43 | 44 | AuthenticationFactorsListFilters, |
44 | 45 | InvitationsListFilters, |
45 | 46 | OrganizationMembershipsListFilters, |
| 47 | + SessionsListFilters, |
46 | 48 | UsersListFilters, |
47 | 49 | ) |
48 | 50 | from workos.types.user_management.password_hash_type import PasswordHashType |
49 | 51 | from workos.types.user_management.screen_hint import ScreenHintType |
50 | | -from workos.types.user_management.session import SessionConfig |
51 | 52 | from workos.types.user_management.session import Session as UserManagementSession |
| 53 | +from workos.types.user_management.session import SessionConfig |
52 | 54 | from workos.types.user_management.user_management_provider_type import ( |
53 | 55 | UserManagementProviderType, |
54 | 56 | ) |
|
57 | 59 | from workos.utils.pagination_order import PaginationOrder |
58 | 60 | from workos.utils.request_helper import ( |
59 | 61 | DEFAULT_LIST_RESPONSE_LIMIT, |
60 | | - RESPONSE_TYPE_CODE, |
61 | | - REQUEST_METHOD_POST, |
62 | | - REQUEST_METHOD_GET, |
63 | 62 | REQUEST_METHOD_DELETE, |
| 63 | + REQUEST_METHOD_GET, |
| 64 | + REQUEST_METHOD_POST, |
64 | 65 | REQUEST_METHOD_PUT, |
| 66 | + RESPONSE_TYPE_CODE, |
65 | 67 | QueryParameters, |
66 | 68 | RequestHelper, |
67 | 69 | ) |
|
113 | 115 | Invitation, InvitationsListFilters, ListMetadata |
114 | 116 | ] |
115 | 117 |
|
116 | | -from workos.types.user_management.list_filters import SessionsListFilters |
117 | | - |
118 | 118 | SessionsListResource = WorkOSListResource[ |
119 | 119 | UserManagementSession, SessionsListFilters, ListMetadata |
120 | 120 | ] |
|
0 commit comments