daytona_api_client_async 0.0.0.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. daytona_api_client_async/__init__.py +195 -0
  2. daytona_api_client_async/api/__init__.py +21 -0
  3. daytona_api_client_async/api/api_keys_api.py +1673 -0
  4. daytona_api_client_async/api/audit_api.py +750 -0
  5. daytona_api_client_async/api/config_api.py +279 -0
  6. daytona_api_client_async/api/default_api.py +1884 -0
  7. daytona_api_client_async/api/docker_registry_api.py +1965 -0
  8. daytona_api_client_async/api/health_api.py +282 -0
  9. daytona_api_client_async/api/object_storage_api.py +299 -0
  10. daytona_api_client_async/api/organizations_api.py +7836 -0
  11. daytona_api_client_async/api/preview_api.py +826 -0
  12. daytona_api_client_async/api/regions_api.py +316 -0
  13. daytona_api_client_async/api/runners_api.py +1560 -0
  14. daytona_api_client_async/api/sandbox_api.py +6927 -0
  15. daytona_api_client_async/api/snapshots_api.py +2630 -0
  16. daytona_api_client_async/api/toolbox_api.py +20759 -0
  17. daytona_api_client_async/api/users_api.py +2319 -0
  18. daytona_api_client_async/api/volumes_api.py +1419 -0
  19. daytona_api_client_async/api/webhooks_api.py +1704 -0
  20. daytona_api_client_async/api/workspace_api.py +4036 -0
  21. daytona_api_client_async/api_client.py +801 -0
  22. daytona_api_client_async/api_response.py +21 -0
  23. daytona_api_client_async/configuration.py +579 -0
  24. daytona_api_client_async/exceptions.py +217 -0
  25. daytona_api_client_async/models/__init__.py +162 -0
  26. daytona_api_client_async/models/account_provider.py +103 -0
  27. daytona_api_client_async/models/announcement.py +103 -0
  28. daytona_api_client_async/models/api_key_list.py +132 -0
  29. daytona_api_client_async/models/api_key_response.py +123 -0
  30. daytona_api_client_async/models/audit_log.py +128 -0
  31. daytona_api_client_async/models/build_info.py +108 -0
  32. daytona_api_client_async/models/command.py +105 -0
  33. daytona_api_client_async/models/completion_context.py +103 -0
  34. daytona_api_client_async/models/completion_item.py +113 -0
  35. daytona_api_client_async/models/completion_list.py +111 -0
  36. daytona_api_client_async/models/compressed_screenshot_response.py +105 -0
  37. daytona_api_client_async/models/computer_use_start_response.py +103 -0
  38. daytona_api_client_async/models/computer_use_status_response.py +108 -0
  39. daytona_api_client_async/models/computer_use_stop_response.py +103 -0
  40. daytona_api_client_async/models/configuration.py +145 -0
  41. daytona_api_client_async/models/create_api_key.py +119 -0
  42. daytona_api_client_async/models/create_audit_log.py +128 -0
  43. daytona_api_client_async/models/create_build_info.py +103 -0
  44. daytona_api_client_async/models/create_docker_registry.py +120 -0
  45. daytona_api_client_async/models/create_linked_account.py +103 -0
  46. daytona_api_client_async/models/create_organization.py +103 -0
  47. daytona_api_client_async/models/create_organization_invitation.py +115 -0
  48. daytona_api_client_async/models/create_organization_quota.py +117 -0
  49. daytona_api_client_async/models/create_organization_role.py +113 -0
  50. daytona_api_client_async/models/create_runner.py +130 -0
  51. daytona_api_client_async/models/create_sandbox.py +159 -0
  52. daytona_api_client_async/models/create_session_request.py +101 -0
  53. daytona_api_client_async/models/create_snapshot.py +121 -0
  54. daytona_api_client_async/models/create_user.py +127 -0
  55. daytona_api_client_async/models/create_volume.py +101 -0
  56. daytona_api_client_async/models/create_workspace.py +161 -0
  57. daytona_api_client_async/models/daytona_configuration.py +158 -0
  58. daytona_api_client_async/models/display_info_response.py +101 -0
  59. daytona_api_client_async/models/docker_registry.py +123 -0
  60. daytona_api_client_async/models/download_files.py +101 -0
  61. daytona_api_client_async/models/empty_response.py +101 -0
  62. daytona_api_client_async/models/execute_request.py +105 -0
  63. daytona_api_client_async/models/execute_response.py +103 -0
  64. daytona_api_client_async/models/file_info.py +115 -0
  65. daytona_api_client_async/models/file_status.py +107 -0
  66. daytona_api_client_async/models/git_add_request.py +103 -0
  67. daytona_api_client_async/models/git_branch_request.py +103 -0
  68. daytona_api_client_async/models/git_checkout_request.py +103 -0
  69. daytona_api_client_async/models/git_clone_request.py +111 -0
  70. daytona_api_client_async/models/git_commit_info.py +109 -0
  71. daytona_api_client_async/models/git_commit_request.py +109 -0
  72. daytona_api_client_async/models/git_commit_response.py +101 -0
  73. daytona_api_client_async/models/git_delete_branch_request.py +103 -0
  74. daytona_api_client_async/models/git_repo_request.py +105 -0
  75. daytona_api_client_async/models/git_status.py +117 -0
  76. daytona_api_client_async/models/health_controller_check200_response.py +154 -0
  77. daytona_api_client_async/models/health_controller_check200_response_info_value.py +101 -0
  78. daytona_api_client_async/models/health_controller_check503_response.py +154 -0
  79. daytona_api_client_async/models/keyboard_hotkey_request.py +101 -0
  80. daytona_api_client_async/models/keyboard_hotkey_response.py +103 -0
  81. daytona_api_client_async/models/keyboard_press_request.py +103 -0
  82. daytona_api_client_async/models/keyboard_press_response.py +105 -0
  83. daytona_api_client_async/models/keyboard_type_request.py +103 -0
  84. daytona_api_client_async/models/keyboard_type_response.py +103 -0
  85. daytona_api_client_async/models/list_branch_response.py +101 -0
  86. daytona_api_client_async/models/lsp_completion_params.py +117 -0
  87. daytona_api_client_async/models/lsp_document_request.py +105 -0
  88. daytona_api_client_async/models/lsp_location.py +107 -0
  89. daytona_api_client_async/models/lsp_server_request.py +103 -0
  90. daytona_api_client_async/models/lsp_symbol.py +109 -0
  91. daytona_api_client_async/models/match.py +105 -0
  92. daytona_api_client_async/models/mouse_click_request.py +107 -0
  93. daytona_api_client_async/models/mouse_click_response.py +103 -0
  94. daytona_api_client_async/models/mouse_drag_request.py +109 -0
  95. daytona_api_client_async/models/mouse_drag_response.py +103 -0
  96. daytona_api_client_async/models/mouse_move_request.py +103 -0
  97. daytona_api_client_async/models/mouse_move_response.py +103 -0
  98. daytona_api_client_async/models/mouse_position.py +103 -0
  99. daytona_api_client_async/models/mouse_scroll_request.py +107 -0
  100. daytona_api_client_async/models/mouse_scroll_response.py +101 -0
  101. daytona_api_client_async/models/oidc_config.py +105 -0
  102. daytona_api_client_async/models/organization.py +153 -0
  103. daytona_api_client_async/models/organization_invitation.py +144 -0
  104. daytona_api_client_async/models/organization_role.py +122 -0
  105. daytona_api_client_async/models/organization_sandbox_default_limited_network_egress.py +101 -0
  106. daytona_api_client_async/models/organization_sandbox_default_network_block_all.py +101 -0
  107. daytona_api_client_async/models/organization_suspension.py +106 -0
  108. daytona_api_client_async/models/organization_usage_overview.py +117 -0
  109. daytona_api_client_async/models/organization_user.py +131 -0
  110. daytona_api_client_async/models/paginated_audit_logs.py +117 -0
  111. daytona_api_client_async/models/paginated_sandboxes.py +115 -0
  112. daytona_api_client_async/models/paginated_snapshots.py +115 -0
  113. daytona_api_client_async/models/paginated_snapshots_dto.py +115 -0
  114. daytona_api_client_async/models/paginated_workspaces.py +115 -0
  115. daytona_api_client_async/models/port_preview_url.py +105 -0
  116. daytona_api_client_async/models/position.py +103 -0
  117. daytona_api_client_async/models/posthog_config.py +103 -0
  118. daytona_api_client_async/models/process_errors_response.py +103 -0
  119. daytona_api_client_async/models/process_logs_response.py +103 -0
  120. daytona_api_client_async/models/process_restart_response.py +103 -0
  121. daytona_api_client_async/models/process_status_response.py +103 -0
  122. daytona_api_client_async/models/project_dir_response.py +101 -0
  123. daytona_api_client_async/models/pty_create_request.py +111 -0
  124. daytona_api_client_async/models/pty_create_response.py +101 -0
  125. daytona_api_client_async/models/pty_list_response.py +109 -0
  126. daytona_api_client_async/models/pty_resize_request.py +103 -0
  127. daytona_api_client_async/models/pty_session_info.py +115 -0
  128. daytona_api_client_async/models/range.py +110 -0
  129. daytona_api_client_async/models/rate_limit_config.py +120 -0
  130. daytona_api_client_async/models/rate_limit_entry.py +103 -0
  131. daytona_api_client_async/models/region.py +114 -0
  132. daytona_api_client_async/models/region_quota.py +109 -0
  133. daytona_api_client_async/models/region_screenshot_response.py +105 -0
  134. daytona_api_client_async/models/region_usage_overview.py +113 -0
  135. daytona_api_client_async/models/registry_push_access_dto.py +111 -0
  136. daytona_api_client_async/models/replace_request.py +105 -0
  137. daytona_api_client_async/models/replace_result.py +105 -0
  138. daytona_api_client_async/models/runner.py +153 -0
  139. daytona_api_client_async/models/runner_region.py +39 -0
  140. daytona_api_client_async/models/runner_snapshot_dto.py +105 -0
  141. daytona_api_client_async/models/runner_state.py +41 -0
  142. daytona_api_client_async/models/sandbox.py +193 -0
  143. daytona_api_client_async/models/sandbox_class.py +39 -0
  144. daytona_api_client_async/models/sandbox_created_post_request.py +110 -0
  145. daytona_api_client_async/models/sandbox_created_post_request_data.py +152 -0
  146. daytona_api_client_async/models/sandbox_desired_state.py +41 -0
  147. daytona_api_client_async/models/sandbox_info.py +105 -0
  148. daytona_api_client_async/models/sandbox_labels.py +101 -0
  149. daytona_api_client_async/models/sandbox_state.py +52 -0
  150. daytona_api_client_async/models/sandbox_state_updated_post_request.py +110 -0
  151. daytona_api_client_async/models/sandbox_state_updated_post_request_data.py +129 -0
  152. daytona_api_client_async/models/sandbox_state_updated_post_request_data_sandbox.py +115 -0
  153. daytona_api_client_async/models/sandbox_volume.py +105 -0
  154. daytona_api_client_async/models/screenshot_response.py +105 -0
  155. daytona_api_client_async/models/search_files_response.py +101 -0
  156. daytona_api_client_async/models/send_webhook_dto.py +105 -0
  157. daytona_api_client_async/models/session.py +116 -0
  158. daytona_api_client_async/models/session_command_logs_response.py +103 -0
  159. daytona_api_client_async/models/session_execute_request.py +105 -0
  160. daytona_api_client_async/models/session_execute_response.py +105 -0
  161. daytona_api_client_async/models/set_snapshot_general_status_dto.py +101 -0
  162. daytona_api_client_async/models/snapshot_created_post_request.py +110 -0
  163. daytona_api_client_async/models/snapshot_created_post_request_data.py +136 -0
  164. daytona_api_client_async/models/snapshot_dto.py +159 -0
  165. daytona_api_client_async/models/snapshot_removed_post_request.py +106 -0
  166. daytona_api_client_async/models/snapshot_state.py +44 -0
  167. daytona_api_client_async/models/snapshot_state_updated_post_request.py +110 -0
  168. daytona_api_client_async/models/snapshot_state_updated_post_request_data.py +129 -0
  169. daytona_api_client_async/models/snapshot_state_updated_post_request_data_snapshot.py +115 -0
  170. daytona_api_client_async/models/ssh_access_dto.py +112 -0
  171. daytona_api_client_async/models/ssh_access_validation_dto.py +103 -0
  172. daytona_api_client_async/models/storage_access_dto.py +111 -0
  173. daytona_api_client_async/models/update_assigned_organization_roles.py +101 -0
  174. daytona_api_client_async/models/update_docker_registry.py +109 -0
  175. daytona_api_client_async/models/update_organization_default_region.py +101 -0
  176. daytona_api_client_async/models/update_organization_invitation.py +113 -0
  177. daytona_api_client_async/models/update_organization_member_access.py +110 -0
  178. daytona_api_client_async/models/update_organization_member_role.py +108 -0
  179. daytona_api_client_async/models/update_organization_quota.py +162 -0
  180. daytona_api_client_async/models/update_organization_region_quota.py +120 -0
  181. daytona_api_client_async/models/update_organization_role.py +113 -0
  182. daytona_api_client_async/models/update_sandbox_state_dto.py +110 -0
  183. daytona_api_client_async/models/user.py +118 -0
  184. daytona_api_client_async/models/user_home_dir_response.py +101 -0
  185. daytona_api_client_async/models/user_public_key.py +103 -0
  186. daytona_api_client_async/models/volume_created_post_request.py +110 -0
  187. daytona_api_client_async/models/volume_created_post_request_data.py +126 -0
  188. daytona_api_client_async/models/volume_dto.py +126 -0
  189. daytona_api_client_async/models/volume_state.py +43 -0
  190. daytona_api_client_async/models/volume_state_updated_post_request.py +110 -0
  191. daytona_api_client_async/models/volume_state_updated_post_request_data.py +129 -0
  192. daytona_api_client_async/models/volume_state_updated_post_request_data_volume.py +115 -0
  193. daytona_api_client_async/models/webhook_app_portal_access.py +101 -0
  194. daytona_api_client_async/models/webhook_controller_get_app_portal_access200_response.py +101 -0
  195. daytona_api_client_async/models/webhook_controller_get_initialization_status200_response.py +118 -0
  196. daytona_api_client_async/models/webhook_controller_get_status200_response.py +101 -0
  197. daytona_api_client_async/models/webhook_initialization_status.py +121 -0
  198. daytona_api_client_async/models/windows_response.py +103 -0
  199. daytona_api_client_async/models/work_dir_response.py +101 -0
  200. daytona_api_client_async/models/workdir_response.py +101 -0
  201. daytona_api_client_async/models/workspace.py +215 -0
  202. daytona_api_client_async/models/workspace_port_preview_url.py +103 -0
  203. daytona_api_client_async/py.typed +0 -0
  204. daytona_api_client_async/rest.py +214 -0
  205. daytona_api_client_async-0.0.0.dev0.dist-info/METADATA +27 -0
  206. daytona_api_client_async-0.0.0.dev0.dist-info/RECORD +209 -0
  207. daytona_api_client_async-0.0.0.dev0.dist-info/WHEEL +5 -0
  208. daytona_api_client_async-0.0.0.dev0.dist-info/licenses/LICENSE +190 -0
  209. daytona_api_client_async-0.0.0.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2319 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Daytona
5
+
6
+ Daytona AI platform API Docs
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: support@daytona.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import StrictStr
21
+ from typing import List
22
+ from daytona_api_client_async.models.account_provider import AccountProvider
23
+ from daytona_api_client_async.models.create_linked_account import CreateLinkedAccount
24
+ from daytona_api_client_async.models.create_user import CreateUser
25
+ from daytona_api_client_async.models.user import User
26
+
27
+ from daytona_api_client_async.api_client import ApiClient, RequestSerialized
28
+ from daytona_api_client_async.api_response import ApiResponse
29
+ from daytona_api_client_async.rest import RESTResponseType
30
+
31
+
32
+ class UsersApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ async def create_user(
47
+ self,
48
+ create_user: CreateUser,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> None:
62
+ """Create user
63
+
64
+
65
+ :param create_user: (required)
66
+ :type create_user: CreateUser
67
+ :param _request_timeout: timeout setting for this request. If one
68
+ number provided, it will be total request
69
+ timeout. It can also be a pair (tuple) of
70
+ (connection, read) timeouts.
71
+ :type _request_timeout: int, tuple(int, int), optional
72
+ :param _request_auth: set to override the auth_settings for an a single
73
+ request; this effectively ignores the
74
+ authentication in the spec for a single request.
75
+ :type _request_auth: dict, optional
76
+ :param _content_type: force content-type for the request.
77
+ :type _content_type: str, Optional
78
+ :param _headers: set to override the headers for a single
79
+ request; this effectively ignores the headers
80
+ in the spec for a single request.
81
+ :type _headers: dict, optional
82
+ :param _host_index: set to override the host_index for a single
83
+ request; this effectively ignores the host_index
84
+ in the spec for a single request.
85
+ :type _host_index: int, optional
86
+ :return: Returns the result object.
87
+ """ # noqa: E501
88
+
89
+ _param = self._create_user_serialize(
90
+ create_user=create_user,
91
+ _request_auth=_request_auth,
92
+ _content_type=_content_type,
93
+ _headers=_headers,
94
+ _host_index=_host_index
95
+ )
96
+
97
+ _response_types_map: Dict[str, Optional[str]] = {
98
+ '201': None,
99
+ }
100
+ response_data = await self.api_client.call_api(
101
+ *_param,
102
+ _request_timeout=_request_timeout
103
+ )
104
+ await response_data.read()
105
+ return self.api_client.response_deserialize(
106
+ response_data=response_data,
107
+ response_types_map=_response_types_map,
108
+ ).data
109
+
110
+
111
+ @validate_call
112
+ async def create_user_with_http_info(
113
+ self,
114
+ create_user: CreateUser,
115
+ _request_timeout: Union[
116
+ None,
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Tuple[
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Annotated[StrictFloat, Field(gt=0)]
121
+ ]
122
+ ] = None,
123
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
+ _content_type: Optional[StrictStr] = None,
125
+ _headers: Optional[Dict[StrictStr, Any]] = None,
126
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
+ ) -> ApiResponse[None]:
128
+ """Create user
129
+
130
+
131
+ :param create_user: (required)
132
+ :type create_user: CreateUser
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ :type _request_timeout: int, tuple(int, int), optional
138
+ :param _request_auth: set to override the auth_settings for an a single
139
+ request; this effectively ignores the
140
+ authentication in the spec for a single request.
141
+ :type _request_auth: dict, optional
142
+ :param _content_type: force content-type for the request.
143
+ :type _content_type: str, Optional
144
+ :param _headers: set to override the headers for a single
145
+ request; this effectively ignores the headers
146
+ in the spec for a single request.
147
+ :type _headers: dict, optional
148
+ :param _host_index: set to override the host_index for a single
149
+ request; this effectively ignores the host_index
150
+ in the spec for a single request.
151
+ :type _host_index: int, optional
152
+ :return: Returns the result object.
153
+ """ # noqa: E501
154
+
155
+ _param = self._create_user_serialize(
156
+ create_user=create_user,
157
+ _request_auth=_request_auth,
158
+ _content_type=_content_type,
159
+ _headers=_headers,
160
+ _host_index=_host_index
161
+ )
162
+
163
+ _response_types_map: Dict[str, Optional[str]] = {
164
+ '201': None,
165
+ }
166
+ response_data = await self.api_client.call_api(
167
+ *_param,
168
+ _request_timeout=_request_timeout
169
+ )
170
+ await response_data.read()
171
+ return self.api_client.response_deserialize(
172
+ response_data=response_data,
173
+ response_types_map=_response_types_map,
174
+ )
175
+
176
+
177
+ @validate_call
178
+ async def create_user_without_preload_content(
179
+ self,
180
+ create_user: CreateUser,
181
+ _request_timeout: Union[
182
+ None,
183
+ Annotated[StrictFloat, Field(gt=0)],
184
+ Tuple[
185
+ Annotated[StrictFloat, Field(gt=0)],
186
+ Annotated[StrictFloat, Field(gt=0)]
187
+ ]
188
+ ] = None,
189
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
190
+ _content_type: Optional[StrictStr] = None,
191
+ _headers: Optional[Dict[StrictStr, Any]] = None,
192
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
193
+ ) -> RESTResponseType:
194
+ """Create user
195
+
196
+
197
+ :param create_user: (required)
198
+ :type create_user: CreateUser
199
+ :param _request_timeout: timeout setting for this request. If one
200
+ number provided, it will be total request
201
+ timeout. It can also be a pair (tuple) of
202
+ (connection, read) timeouts.
203
+ :type _request_timeout: int, tuple(int, int), optional
204
+ :param _request_auth: set to override the auth_settings for an a single
205
+ request; this effectively ignores the
206
+ authentication in the spec for a single request.
207
+ :type _request_auth: dict, optional
208
+ :param _content_type: force content-type for the request.
209
+ :type _content_type: str, Optional
210
+ :param _headers: set to override the headers for a single
211
+ request; this effectively ignores the headers
212
+ in the spec for a single request.
213
+ :type _headers: dict, optional
214
+ :param _host_index: set to override the host_index for a single
215
+ request; this effectively ignores the host_index
216
+ in the spec for a single request.
217
+ :type _host_index: int, optional
218
+ :return: Returns the result object.
219
+ """ # noqa: E501
220
+
221
+ _param = self._create_user_serialize(
222
+ create_user=create_user,
223
+ _request_auth=_request_auth,
224
+ _content_type=_content_type,
225
+ _headers=_headers,
226
+ _host_index=_host_index
227
+ )
228
+
229
+ _response_types_map: Dict[str, Optional[str]] = {
230
+ '201': None,
231
+ }
232
+ response_data = await self.api_client.call_api(
233
+ *_param,
234
+ _request_timeout=_request_timeout
235
+ )
236
+ return response_data.response
237
+
238
+
239
+ def _create_user_serialize(
240
+ self,
241
+ create_user,
242
+ _request_auth,
243
+ _content_type,
244
+ _headers,
245
+ _host_index,
246
+ ) -> RequestSerialized:
247
+
248
+ _host = None
249
+
250
+ _collection_formats: Dict[str, str] = {
251
+ }
252
+
253
+ _path_params: Dict[str, str] = {}
254
+ _query_params: List[Tuple[str, str]] = []
255
+ _header_params: Dict[str, Optional[str]] = _headers or {}
256
+ _form_params: List[Tuple[str, str]] = []
257
+ _files: Dict[
258
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
259
+ ] = {}
260
+ _body_params: Optional[bytes] = None
261
+
262
+ # process the path parameters
263
+ # process the query parameters
264
+ # process the header parameters
265
+ # process the form parameters
266
+ # process the body parameter
267
+ if create_user is not None:
268
+ _body_params = create_user
269
+
270
+
271
+
272
+ # set the HTTP header `Content-Type`
273
+ if _content_type:
274
+ _header_params['Content-Type'] = _content_type
275
+ else:
276
+ _default_content_type = (
277
+ self.api_client.select_header_content_type(
278
+ [
279
+ 'application/json'
280
+ ]
281
+ )
282
+ )
283
+ if _default_content_type is not None:
284
+ _header_params['Content-Type'] = _default_content_type
285
+
286
+ # authentication setting
287
+ _auth_settings: List[str] = [
288
+ 'bearer',
289
+ 'oauth2'
290
+ ]
291
+
292
+ return self.api_client.param_serialize(
293
+ method='POST',
294
+ resource_path='/users',
295
+ path_params=_path_params,
296
+ query_params=_query_params,
297
+ header_params=_header_params,
298
+ body=_body_params,
299
+ post_params=_form_params,
300
+ files=_files,
301
+ auth_settings=_auth_settings,
302
+ collection_formats=_collection_formats,
303
+ _host=_host,
304
+ _request_auth=_request_auth
305
+ )
306
+
307
+
308
+
309
+
310
+ @validate_call
311
+ async def enroll_in_sms_mfa(
312
+ self,
313
+ _request_timeout: Union[
314
+ None,
315
+ Annotated[StrictFloat, Field(gt=0)],
316
+ Tuple[
317
+ Annotated[StrictFloat, Field(gt=0)],
318
+ Annotated[StrictFloat, Field(gt=0)]
319
+ ]
320
+ ] = None,
321
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
322
+ _content_type: Optional[StrictStr] = None,
323
+ _headers: Optional[Dict[StrictStr, Any]] = None,
324
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
325
+ ) -> str:
326
+ """Enroll in SMS MFA
327
+
328
+
329
+ :param _request_timeout: timeout setting for this request. If one
330
+ number provided, it will be total request
331
+ timeout. It can also be a pair (tuple) of
332
+ (connection, read) timeouts.
333
+ :type _request_timeout: int, tuple(int, int), optional
334
+ :param _request_auth: set to override the auth_settings for an a single
335
+ request; this effectively ignores the
336
+ authentication in the spec for a single request.
337
+ :type _request_auth: dict, optional
338
+ :param _content_type: force content-type for the request.
339
+ :type _content_type: str, Optional
340
+ :param _headers: set to override the headers for a single
341
+ request; this effectively ignores the headers
342
+ in the spec for a single request.
343
+ :type _headers: dict, optional
344
+ :param _host_index: set to override the host_index for a single
345
+ request; this effectively ignores the host_index
346
+ in the spec for a single request.
347
+ :type _host_index: int, optional
348
+ :return: Returns the result object.
349
+ """ # noqa: E501
350
+
351
+ _param = self._enroll_in_sms_mfa_serialize(
352
+ _request_auth=_request_auth,
353
+ _content_type=_content_type,
354
+ _headers=_headers,
355
+ _host_index=_host_index
356
+ )
357
+
358
+ _response_types_map: Dict[str, Optional[str]] = {
359
+ '200': "str",
360
+ }
361
+ response_data = await self.api_client.call_api(
362
+ *_param,
363
+ _request_timeout=_request_timeout
364
+ )
365
+ await response_data.read()
366
+ return self.api_client.response_deserialize(
367
+ response_data=response_data,
368
+ response_types_map=_response_types_map,
369
+ ).data
370
+
371
+
372
+ @validate_call
373
+ async def enroll_in_sms_mfa_with_http_info(
374
+ self,
375
+ _request_timeout: Union[
376
+ None,
377
+ Annotated[StrictFloat, Field(gt=0)],
378
+ Tuple[
379
+ Annotated[StrictFloat, Field(gt=0)],
380
+ Annotated[StrictFloat, Field(gt=0)]
381
+ ]
382
+ ] = None,
383
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
384
+ _content_type: Optional[StrictStr] = None,
385
+ _headers: Optional[Dict[StrictStr, Any]] = None,
386
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
387
+ ) -> ApiResponse[str]:
388
+ """Enroll in SMS MFA
389
+
390
+
391
+ :param _request_timeout: timeout setting for this request. If one
392
+ number provided, it will be total request
393
+ timeout. It can also be a pair (tuple) of
394
+ (connection, read) timeouts.
395
+ :type _request_timeout: int, tuple(int, int), optional
396
+ :param _request_auth: set to override the auth_settings for an a single
397
+ request; this effectively ignores the
398
+ authentication in the spec for a single request.
399
+ :type _request_auth: dict, optional
400
+ :param _content_type: force content-type for the request.
401
+ :type _content_type: str, Optional
402
+ :param _headers: set to override the headers for a single
403
+ request; this effectively ignores the headers
404
+ in the spec for a single request.
405
+ :type _headers: dict, optional
406
+ :param _host_index: set to override the host_index for a single
407
+ request; this effectively ignores the host_index
408
+ in the spec for a single request.
409
+ :type _host_index: int, optional
410
+ :return: Returns the result object.
411
+ """ # noqa: E501
412
+
413
+ _param = self._enroll_in_sms_mfa_serialize(
414
+ _request_auth=_request_auth,
415
+ _content_type=_content_type,
416
+ _headers=_headers,
417
+ _host_index=_host_index
418
+ )
419
+
420
+ _response_types_map: Dict[str, Optional[str]] = {
421
+ '200': "str",
422
+ }
423
+ response_data = await self.api_client.call_api(
424
+ *_param,
425
+ _request_timeout=_request_timeout
426
+ )
427
+ await response_data.read()
428
+ return self.api_client.response_deserialize(
429
+ response_data=response_data,
430
+ response_types_map=_response_types_map,
431
+ )
432
+
433
+
434
+ @validate_call
435
+ async def enroll_in_sms_mfa_without_preload_content(
436
+ self,
437
+ _request_timeout: Union[
438
+ None,
439
+ Annotated[StrictFloat, Field(gt=0)],
440
+ Tuple[
441
+ Annotated[StrictFloat, Field(gt=0)],
442
+ Annotated[StrictFloat, Field(gt=0)]
443
+ ]
444
+ ] = None,
445
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
446
+ _content_type: Optional[StrictStr] = None,
447
+ _headers: Optional[Dict[StrictStr, Any]] = None,
448
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
449
+ ) -> RESTResponseType:
450
+ """Enroll in SMS MFA
451
+
452
+
453
+ :param _request_timeout: timeout setting for this request. If one
454
+ number provided, it will be total request
455
+ timeout. It can also be a pair (tuple) of
456
+ (connection, read) timeouts.
457
+ :type _request_timeout: int, tuple(int, int), optional
458
+ :param _request_auth: set to override the auth_settings for an a single
459
+ request; this effectively ignores the
460
+ authentication in the spec for a single request.
461
+ :type _request_auth: dict, optional
462
+ :param _content_type: force content-type for the request.
463
+ :type _content_type: str, Optional
464
+ :param _headers: set to override the headers for a single
465
+ request; this effectively ignores the headers
466
+ in the spec for a single request.
467
+ :type _headers: dict, optional
468
+ :param _host_index: set to override the host_index for a single
469
+ request; this effectively ignores the host_index
470
+ in the spec for a single request.
471
+ :type _host_index: int, optional
472
+ :return: Returns the result object.
473
+ """ # noqa: E501
474
+
475
+ _param = self._enroll_in_sms_mfa_serialize(
476
+ _request_auth=_request_auth,
477
+ _content_type=_content_type,
478
+ _headers=_headers,
479
+ _host_index=_host_index
480
+ )
481
+
482
+ _response_types_map: Dict[str, Optional[str]] = {
483
+ '200': "str",
484
+ }
485
+ response_data = await self.api_client.call_api(
486
+ *_param,
487
+ _request_timeout=_request_timeout
488
+ )
489
+ return response_data.response
490
+
491
+
492
+ def _enroll_in_sms_mfa_serialize(
493
+ self,
494
+ _request_auth,
495
+ _content_type,
496
+ _headers,
497
+ _host_index,
498
+ ) -> RequestSerialized:
499
+
500
+ _host = None
501
+
502
+ _collection_formats: Dict[str, str] = {
503
+ }
504
+
505
+ _path_params: Dict[str, str] = {}
506
+ _query_params: List[Tuple[str, str]] = []
507
+ _header_params: Dict[str, Optional[str]] = _headers or {}
508
+ _form_params: List[Tuple[str, str]] = []
509
+ _files: Dict[
510
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
511
+ ] = {}
512
+ _body_params: Optional[bytes] = None
513
+
514
+ # process the path parameters
515
+ # process the query parameters
516
+ # process the header parameters
517
+ # process the form parameters
518
+ # process the body parameter
519
+
520
+
521
+ # set the HTTP header `Accept`
522
+ if 'Accept' not in _header_params:
523
+ _header_params['Accept'] = self.api_client.select_header_accept(
524
+ [
525
+ 'application/json'
526
+ ]
527
+ )
528
+
529
+
530
+ # authentication setting
531
+ _auth_settings: List[str] = [
532
+ 'bearer',
533
+ 'oauth2'
534
+ ]
535
+
536
+ return self.api_client.param_serialize(
537
+ method='POST',
538
+ resource_path='/users/mfa/sms/enroll',
539
+ path_params=_path_params,
540
+ query_params=_query_params,
541
+ header_params=_header_params,
542
+ body=_body_params,
543
+ post_params=_form_params,
544
+ files=_files,
545
+ auth_settings=_auth_settings,
546
+ collection_formats=_collection_formats,
547
+ _host=_host,
548
+ _request_auth=_request_auth
549
+ )
550
+
551
+
552
+
553
+
554
+ @validate_call
555
+ async def get_authenticated_user(
556
+ self,
557
+ _request_timeout: Union[
558
+ None,
559
+ Annotated[StrictFloat, Field(gt=0)],
560
+ Tuple[
561
+ Annotated[StrictFloat, Field(gt=0)],
562
+ Annotated[StrictFloat, Field(gt=0)]
563
+ ]
564
+ ] = None,
565
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
566
+ _content_type: Optional[StrictStr] = None,
567
+ _headers: Optional[Dict[StrictStr, Any]] = None,
568
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
569
+ ) -> User:
570
+ """Get authenticated user
571
+
572
+
573
+ :param _request_timeout: timeout setting for this request. If one
574
+ number provided, it will be total request
575
+ timeout. It can also be a pair (tuple) of
576
+ (connection, read) timeouts.
577
+ :type _request_timeout: int, tuple(int, int), optional
578
+ :param _request_auth: set to override the auth_settings for an a single
579
+ request; this effectively ignores the
580
+ authentication in the spec for a single request.
581
+ :type _request_auth: dict, optional
582
+ :param _content_type: force content-type for the request.
583
+ :type _content_type: str, Optional
584
+ :param _headers: set to override the headers for a single
585
+ request; this effectively ignores the headers
586
+ in the spec for a single request.
587
+ :type _headers: dict, optional
588
+ :param _host_index: set to override the host_index for a single
589
+ request; this effectively ignores the host_index
590
+ in the spec for a single request.
591
+ :type _host_index: int, optional
592
+ :return: Returns the result object.
593
+ """ # noqa: E501
594
+
595
+ _param = self._get_authenticated_user_serialize(
596
+ _request_auth=_request_auth,
597
+ _content_type=_content_type,
598
+ _headers=_headers,
599
+ _host_index=_host_index
600
+ )
601
+
602
+ _response_types_map: Dict[str, Optional[str]] = {
603
+ '200': "User",
604
+ }
605
+ response_data = await self.api_client.call_api(
606
+ *_param,
607
+ _request_timeout=_request_timeout
608
+ )
609
+ await response_data.read()
610
+ return self.api_client.response_deserialize(
611
+ response_data=response_data,
612
+ response_types_map=_response_types_map,
613
+ ).data
614
+
615
+
616
+ @validate_call
617
+ async def get_authenticated_user_with_http_info(
618
+ self,
619
+ _request_timeout: Union[
620
+ None,
621
+ Annotated[StrictFloat, Field(gt=0)],
622
+ Tuple[
623
+ Annotated[StrictFloat, Field(gt=0)],
624
+ Annotated[StrictFloat, Field(gt=0)]
625
+ ]
626
+ ] = None,
627
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
628
+ _content_type: Optional[StrictStr] = None,
629
+ _headers: Optional[Dict[StrictStr, Any]] = None,
630
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
631
+ ) -> ApiResponse[User]:
632
+ """Get authenticated user
633
+
634
+
635
+ :param _request_timeout: timeout setting for this request. If one
636
+ number provided, it will be total request
637
+ timeout. It can also be a pair (tuple) of
638
+ (connection, read) timeouts.
639
+ :type _request_timeout: int, tuple(int, int), optional
640
+ :param _request_auth: set to override the auth_settings for an a single
641
+ request; this effectively ignores the
642
+ authentication in the spec for a single request.
643
+ :type _request_auth: dict, optional
644
+ :param _content_type: force content-type for the request.
645
+ :type _content_type: str, Optional
646
+ :param _headers: set to override the headers for a single
647
+ request; this effectively ignores the headers
648
+ in the spec for a single request.
649
+ :type _headers: dict, optional
650
+ :param _host_index: set to override the host_index for a single
651
+ request; this effectively ignores the host_index
652
+ in the spec for a single request.
653
+ :type _host_index: int, optional
654
+ :return: Returns the result object.
655
+ """ # noqa: E501
656
+
657
+ _param = self._get_authenticated_user_serialize(
658
+ _request_auth=_request_auth,
659
+ _content_type=_content_type,
660
+ _headers=_headers,
661
+ _host_index=_host_index
662
+ )
663
+
664
+ _response_types_map: Dict[str, Optional[str]] = {
665
+ '200': "User",
666
+ }
667
+ response_data = await self.api_client.call_api(
668
+ *_param,
669
+ _request_timeout=_request_timeout
670
+ )
671
+ await response_data.read()
672
+ return self.api_client.response_deserialize(
673
+ response_data=response_data,
674
+ response_types_map=_response_types_map,
675
+ )
676
+
677
+
678
+ @validate_call
679
+ async def get_authenticated_user_without_preload_content(
680
+ self,
681
+ _request_timeout: Union[
682
+ None,
683
+ Annotated[StrictFloat, Field(gt=0)],
684
+ Tuple[
685
+ Annotated[StrictFloat, Field(gt=0)],
686
+ Annotated[StrictFloat, Field(gt=0)]
687
+ ]
688
+ ] = None,
689
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
690
+ _content_type: Optional[StrictStr] = None,
691
+ _headers: Optional[Dict[StrictStr, Any]] = None,
692
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
693
+ ) -> RESTResponseType:
694
+ """Get authenticated user
695
+
696
+
697
+ :param _request_timeout: timeout setting for this request. If one
698
+ number provided, it will be total request
699
+ timeout. It can also be a pair (tuple) of
700
+ (connection, read) timeouts.
701
+ :type _request_timeout: int, tuple(int, int), optional
702
+ :param _request_auth: set to override the auth_settings for an a single
703
+ request; this effectively ignores the
704
+ authentication in the spec for a single request.
705
+ :type _request_auth: dict, optional
706
+ :param _content_type: force content-type for the request.
707
+ :type _content_type: str, Optional
708
+ :param _headers: set to override the headers for a single
709
+ request; this effectively ignores the headers
710
+ in the spec for a single request.
711
+ :type _headers: dict, optional
712
+ :param _host_index: set to override the host_index for a single
713
+ request; this effectively ignores the host_index
714
+ in the spec for a single request.
715
+ :type _host_index: int, optional
716
+ :return: Returns the result object.
717
+ """ # noqa: E501
718
+
719
+ _param = self._get_authenticated_user_serialize(
720
+ _request_auth=_request_auth,
721
+ _content_type=_content_type,
722
+ _headers=_headers,
723
+ _host_index=_host_index
724
+ )
725
+
726
+ _response_types_map: Dict[str, Optional[str]] = {
727
+ '200': "User",
728
+ }
729
+ response_data = await self.api_client.call_api(
730
+ *_param,
731
+ _request_timeout=_request_timeout
732
+ )
733
+ return response_data.response
734
+
735
+
736
+ def _get_authenticated_user_serialize(
737
+ self,
738
+ _request_auth,
739
+ _content_type,
740
+ _headers,
741
+ _host_index,
742
+ ) -> RequestSerialized:
743
+
744
+ _host = None
745
+
746
+ _collection_formats: Dict[str, str] = {
747
+ }
748
+
749
+ _path_params: Dict[str, str] = {}
750
+ _query_params: List[Tuple[str, str]] = []
751
+ _header_params: Dict[str, Optional[str]] = _headers or {}
752
+ _form_params: List[Tuple[str, str]] = []
753
+ _files: Dict[
754
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
755
+ ] = {}
756
+ _body_params: Optional[bytes] = None
757
+
758
+ # process the path parameters
759
+ # process the query parameters
760
+ # process the header parameters
761
+ # process the form parameters
762
+ # process the body parameter
763
+
764
+
765
+ # set the HTTP header `Accept`
766
+ if 'Accept' not in _header_params:
767
+ _header_params['Accept'] = self.api_client.select_header_accept(
768
+ [
769
+ 'application/json'
770
+ ]
771
+ )
772
+
773
+
774
+ # authentication setting
775
+ _auth_settings: List[str] = [
776
+ 'bearer',
777
+ 'oauth2'
778
+ ]
779
+
780
+ return self.api_client.param_serialize(
781
+ method='GET',
782
+ resource_path='/users/me',
783
+ path_params=_path_params,
784
+ query_params=_query_params,
785
+ header_params=_header_params,
786
+ body=_body_params,
787
+ post_params=_form_params,
788
+ files=_files,
789
+ auth_settings=_auth_settings,
790
+ collection_formats=_collection_formats,
791
+ _host=_host,
792
+ _request_auth=_request_auth
793
+ )
794
+
795
+
796
+
797
+
798
+ @validate_call
799
+ async def get_available_account_providers(
800
+ self,
801
+ _request_timeout: Union[
802
+ None,
803
+ Annotated[StrictFloat, Field(gt=0)],
804
+ Tuple[
805
+ Annotated[StrictFloat, Field(gt=0)],
806
+ Annotated[StrictFloat, Field(gt=0)]
807
+ ]
808
+ ] = None,
809
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
810
+ _content_type: Optional[StrictStr] = None,
811
+ _headers: Optional[Dict[StrictStr, Any]] = None,
812
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
813
+ ) -> List[AccountProvider]:
814
+ """Get available account providers
815
+
816
+
817
+ :param _request_timeout: timeout setting for this request. If one
818
+ number provided, it will be total request
819
+ timeout. It can also be a pair (tuple) of
820
+ (connection, read) timeouts.
821
+ :type _request_timeout: int, tuple(int, int), optional
822
+ :param _request_auth: set to override the auth_settings for an a single
823
+ request; this effectively ignores the
824
+ authentication in the spec for a single request.
825
+ :type _request_auth: dict, optional
826
+ :param _content_type: force content-type for the request.
827
+ :type _content_type: str, Optional
828
+ :param _headers: set to override the headers for a single
829
+ request; this effectively ignores the headers
830
+ in the spec for a single request.
831
+ :type _headers: dict, optional
832
+ :param _host_index: set to override the host_index for a single
833
+ request; this effectively ignores the host_index
834
+ in the spec for a single request.
835
+ :type _host_index: int, optional
836
+ :return: Returns the result object.
837
+ """ # noqa: E501
838
+
839
+ _param = self._get_available_account_providers_serialize(
840
+ _request_auth=_request_auth,
841
+ _content_type=_content_type,
842
+ _headers=_headers,
843
+ _host_index=_host_index
844
+ )
845
+
846
+ _response_types_map: Dict[str, Optional[str]] = {
847
+ '200': "List[AccountProvider]",
848
+ }
849
+ response_data = await self.api_client.call_api(
850
+ *_param,
851
+ _request_timeout=_request_timeout
852
+ )
853
+ await response_data.read()
854
+ return self.api_client.response_deserialize(
855
+ response_data=response_data,
856
+ response_types_map=_response_types_map,
857
+ ).data
858
+
859
+
860
+ @validate_call
861
+ async def get_available_account_providers_with_http_info(
862
+ self,
863
+ _request_timeout: Union[
864
+ None,
865
+ Annotated[StrictFloat, Field(gt=0)],
866
+ Tuple[
867
+ Annotated[StrictFloat, Field(gt=0)],
868
+ Annotated[StrictFloat, Field(gt=0)]
869
+ ]
870
+ ] = None,
871
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
872
+ _content_type: Optional[StrictStr] = None,
873
+ _headers: Optional[Dict[StrictStr, Any]] = None,
874
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
875
+ ) -> ApiResponse[List[AccountProvider]]:
876
+ """Get available account providers
877
+
878
+
879
+ :param _request_timeout: timeout setting for this request. If one
880
+ number provided, it will be total request
881
+ timeout. It can also be a pair (tuple) of
882
+ (connection, read) timeouts.
883
+ :type _request_timeout: int, tuple(int, int), optional
884
+ :param _request_auth: set to override the auth_settings for an a single
885
+ request; this effectively ignores the
886
+ authentication in the spec for a single request.
887
+ :type _request_auth: dict, optional
888
+ :param _content_type: force content-type for the request.
889
+ :type _content_type: str, Optional
890
+ :param _headers: set to override the headers for a single
891
+ request; this effectively ignores the headers
892
+ in the spec for a single request.
893
+ :type _headers: dict, optional
894
+ :param _host_index: set to override the host_index for a single
895
+ request; this effectively ignores the host_index
896
+ in the spec for a single request.
897
+ :type _host_index: int, optional
898
+ :return: Returns the result object.
899
+ """ # noqa: E501
900
+
901
+ _param = self._get_available_account_providers_serialize(
902
+ _request_auth=_request_auth,
903
+ _content_type=_content_type,
904
+ _headers=_headers,
905
+ _host_index=_host_index
906
+ )
907
+
908
+ _response_types_map: Dict[str, Optional[str]] = {
909
+ '200': "List[AccountProvider]",
910
+ }
911
+ response_data = await self.api_client.call_api(
912
+ *_param,
913
+ _request_timeout=_request_timeout
914
+ )
915
+ await response_data.read()
916
+ return self.api_client.response_deserialize(
917
+ response_data=response_data,
918
+ response_types_map=_response_types_map,
919
+ )
920
+
921
+
922
+ @validate_call
923
+ async def get_available_account_providers_without_preload_content(
924
+ self,
925
+ _request_timeout: Union[
926
+ None,
927
+ Annotated[StrictFloat, Field(gt=0)],
928
+ Tuple[
929
+ Annotated[StrictFloat, Field(gt=0)],
930
+ Annotated[StrictFloat, Field(gt=0)]
931
+ ]
932
+ ] = None,
933
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
934
+ _content_type: Optional[StrictStr] = None,
935
+ _headers: Optional[Dict[StrictStr, Any]] = None,
936
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
937
+ ) -> RESTResponseType:
938
+ """Get available account providers
939
+
940
+
941
+ :param _request_timeout: timeout setting for this request. If one
942
+ number provided, it will be total request
943
+ timeout. It can also be a pair (tuple) of
944
+ (connection, read) timeouts.
945
+ :type _request_timeout: int, tuple(int, int), optional
946
+ :param _request_auth: set to override the auth_settings for an a single
947
+ request; this effectively ignores the
948
+ authentication in the spec for a single request.
949
+ :type _request_auth: dict, optional
950
+ :param _content_type: force content-type for the request.
951
+ :type _content_type: str, Optional
952
+ :param _headers: set to override the headers for a single
953
+ request; this effectively ignores the headers
954
+ in the spec for a single request.
955
+ :type _headers: dict, optional
956
+ :param _host_index: set to override the host_index for a single
957
+ request; this effectively ignores the host_index
958
+ in the spec for a single request.
959
+ :type _host_index: int, optional
960
+ :return: Returns the result object.
961
+ """ # noqa: E501
962
+
963
+ _param = self._get_available_account_providers_serialize(
964
+ _request_auth=_request_auth,
965
+ _content_type=_content_type,
966
+ _headers=_headers,
967
+ _host_index=_host_index
968
+ )
969
+
970
+ _response_types_map: Dict[str, Optional[str]] = {
971
+ '200': "List[AccountProvider]",
972
+ }
973
+ response_data = await self.api_client.call_api(
974
+ *_param,
975
+ _request_timeout=_request_timeout
976
+ )
977
+ return response_data.response
978
+
979
+
980
+ def _get_available_account_providers_serialize(
981
+ self,
982
+ _request_auth,
983
+ _content_type,
984
+ _headers,
985
+ _host_index,
986
+ ) -> RequestSerialized:
987
+
988
+ _host = None
989
+
990
+ _collection_formats: Dict[str, str] = {
991
+ }
992
+
993
+ _path_params: Dict[str, str] = {}
994
+ _query_params: List[Tuple[str, str]] = []
995
+ _header_params: Dict[str, Optional[str]] = _headers or {}
996
+ _form_params: List[Tuple[str, str]] = []
997
+ _files: Dict[
998
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
999
+ ] = {}
1000
+ _body_params: Optional[bytes] = None
1001
+
1002
+ # process the path parameters
1003
+ # process the query parameters
1004
+ # process the header parameters
1005
+ # process the form parameters
1006
+ # process the body parameter
1007
+
1008
+
1009
+ # set the HTTP header `Accept`
1010
+ if 'Accept' not in _header_params:
1011
+ _header_params['Accept'] = self.api_client.select_header_accept(
1012
+ [
1013
+ 'application/json'
1014
+ ]
1015
+ )
1016
+
1017
+
1018
+ # authentication setting
1019
+ _auth_settings: List[str] = [
1020
+ 'bearer',
1021
+ 'oauth2'
1022
+ ]
1023
+
1024
+ return self.api_client.param_serialize(
1025
+ method='GET',
1026
+ resource_path='/users/account-providers',
1027
+ path_params=_path_params,
1028
+ query_params=_query_params,
1029
+ header_params=_header_params,
1030
+ body=_body_params,
1031
+ post_params=_form_params,
1032
+ files=_files,
1033
+ auth_settings=_auth_settings,
1034
+ collection_formats=_collection_formats,
1035
+ _host=_host,
1036
+ _request_auth=_request_auth
1037
+ )
1038
+
1039
+
1040
+
1041
+
1042
+ @validate_call
1043
+ async def get_user(
1044
+ self,
1045
+ id: StrictStr,
1046
+ _request_timeout: Union[
1047
+ None,
1048
+ Annotated[StrictFloat, Field(gt=0)],
1049
+ Tuple[
1050
+ Annotated[StrictFloat, Field(gt=0)],
1051
+ Annotated[StrictFloat, Field(gt=0)]
1052
+ ]
1053
+ ] = None,
1054
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1055
+ _content_type: Optional[StrictStr] = None,
1056
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1057
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1058
+ ) -> User:
1059
+ """Get user by ID
1060
+
1061
+
1062
+ :param id: (required)
1063
+ :type id: str
1064
+ :param _request_timeout: timeout setting for this request. If one
1065
+ number provided, it will be total request
1066
+ timeout. It can also be a pair (tuple) of
1067
+ (connection, read) timeouts.
1068
+ :type _request_timeout: int, tuple(int, int), optional
1069
+ :param _request_auth: set to override the auth_settings for an a single
1070
+ request; this effectively ignores the
1071
+ authentication in the spec for a single request.
1072
+ :type _request_auth: dict, optional
1073
+ :param _content_type: force content-type for the request.
1074
+ :type _content_type: str, Optional
1075
+ :param _headers: set to override the headers for a single
1076
+ request; this effectively ignores the headers
1077
+ in the spec for a single request.
1078
+ :type _headers: dict, optional
1079
+ :param _host_index: set to override the host_index for a single
1080
+ request; this effectively ignores the host_index
1081
+ in the spec for a single request.
1082
+ :type _host_index: int, optional
1083
+ :return: Returns the result object.
1084
+ """ # noqa: E501
1085
+
1086
+ _param = self._get_user_serialize(
1087
+ id=id,
1088
+ _request_auth=_request_auth,
1089
+ _content_type=_content_type,
1090
+ _headers=_headers,
1091
+ _host_index=_host_index
1092
+ )
1093
+
1094
+ _response_types_map: Dict[str, Optional[str]] = {
1095
+ '200': "User",
1096
+ }
1097
+ response_data = await self.api_client.call_api(
1098
+ *_param,
1099
+ _request_timeout=_request_timeout
1100
+ )
1101
+ await response_data.read()
1102
+ return self.api_client.response_deserialize(
1103
+ response_data=response_data,
1104
+ response_types_map=_response_types_map,
1105
+ ).data
1106
+
1107
+
1108
+ @validate_call
1109
+ async def get_user_with_http_info(
1110
+ self,
1111
+ id: StrictStr,
1112
+ _request_timeout: Union[
1113
+ None,
1114
+ Annotated[StrictFloat, Field(gt=0)],
1115
+ Tuple[
1116
+ Annotated[StrictFloat, Field(gt=0)],
1117
+ Annotated[StrictFloat, Field(gt=0)]
1118
+ ]
1119
+ ] = None,
1120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1121
+ _content_type: Optional[StrictStr] = None,
1122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1124
+ ) -> ApiResponse[User]:
1125
+ """Get user by ID
1126
+
1127
+
1128
+ :param id: (required)
1129
+ :type id: str
1130
+ :param _request_timeout: timeout setting for this request. If one
1131
+ number provided, it will be total request
1132
+ timeout. It can also be a pair (tuple) of
1133
+ (connection, read) timeouts.
1134
+ :type _request_timeout: int, tuple(int, int), optional
1135
+ :param _request_auth: set to override the auth_settings for an a single
1136
+ request; this effectively ignores the
1137
+ authentication in the spec for a single request.
1138
+ :type _request_auth: dict, optional
1139
+ :param _content_type: force content-type for the request.
1140
+ :type _content_type: str, Optional
1141
+ :param _headers: set to override the headers for a single
1142
+ request; this effectively ignores the headers
1143
+ in the spec for a single request.
1144
+ :type _headers: dict, optional
1145
+ :param _host_index: set to override the host_index for a single
1146
+ request; this effectively ignores the host_index
1147
+ in the spec for a single request.
1148
+ :type _host_index: int, optional
1149
+ :return: Returns the result object.
1150
+ """ # noqa: E501
1151
+
1152
+ _param = self._get_user_serialize(
1153
+ id=id,
1154
+ _request_auth=_request_auth,
1155
+ _content_type=_content_type,
1156
+ _headers=_headers,
1157
+ _host_index=_host_index
1158
+ )
1159
+
1160
+ _response_types_map: Dict[str, Optional[str]] = {
1161
+ '200': "User",
1162
+ }
1163
+ response_data = await self.api_client.call_api(
1164
+ *_param,
1165
+ _request_timeout=_request_timeout
1166
+ )
1167
+ await response_data.read()
1168
+ return self.api_client.response_deserialize(
1169
+ response_data=response_data,
1170
+ response_types_map=_response_types_map,
1171
+ )
1172
+
1173
+
1174
+ @validate_call
1175
+ async def get_user_without_preload_content(
1176
+ self,
1177
+ id: StrictStr,
1178
+ _request_timeout: Union[
1179
+ None,
1180
+ Annotated[StrictFloat, Field(gt=0)],
1181
+ Tuple[
1182
+ Annotated[StrictFloat, Field(gt=0)],
1183
+ Annotated[StrictFloat, Field(gt=0)]
1184
+ ]
1185
+ ] = None,
1186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1187
+ _content_type: Optional[StrictStr] = None,
1188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1190
+ ) -> RESTResponseType:
1191
+ """Get user by ID
1192
+
1193
+
1194
+ :param id: (required)
1195
+ :type id: str
1196
+ :param _request_timeout: timeout setting for this request. If one
1197
+ number provided, it will be total request
1198
+ timeout. It can also be a pair (tuple) of
1199
+ (connection, read) timeouts.
1200
+ :type _request_timeout: int, tuple(int, int), optional
1201
+ :param _request_auth: set to override the auth_settings for an a single
1202
+ request; this effectively ignores the
1203
+ authentication in the spec for a single request.
1204
+ :type _request_auth: dict, optional
1205
+ :param _content_type: force content-type for the request.
1206
+ :type _content_type: str, Optional
1207
+ :param _headers: set to override the headers for a single
1208
+ request; this effectively ignores the headers
1209
+ in the spec for a single request.
1210
+ :type _headers: dict, optional
1211
+ :param _host_index: set to override the host_index for a single
1212
+ request; this effectively ignores the host_index
1213
+ in the spec for a single request.
1214
+ :type _host_index: int, optional
1215
+ :return: Returns the result object.
1216
+ """ # noqa: E501
1217
+
1218
+ _param = self._get_user_serialize(
1219
+ id=id,
1220
+ _request_auth=_request_auth,
1221
+ _content_type=_content_type,
1222
+ _headers=_headers,
1223
+ _host_index=_host_index
1224
+ )
1225
+
1226
+ _response_types_map: Dict[str, Optional[str]] = {
1227
+ '200': "User",
1228
+ }
1229
+ response_data = await self.api_client.call_api(
1230
+ *_param,
1231
+ _request_timeout=_request_timeout
1232
+ )
1233
+ return response_data.response
1234
+
1235
+
1236
+ def _get_user_serialize(
1237
+ self,
1238
+ id,
1239
+ _request_auth,
1240
+ _content_type,
1241
+ _headers,
1242
+ _host_index,
1243
+ ) -> RequestSerialized:
1244
+
1245
+ _host = None
1246
+
1247
+ _collection_formats: Dict[str, str] = {
1248
+ }
1249
+
1250
+ _path_params: Dict[str, str] = {}
1251
+ _query_params: List[Tuple[str, str]] = []
1252
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1253
+ _form_params: List[Tuple[str, str]] = []
1254
+ _files: Dict[
1255
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1256
+ ] = {}
1257
+ _body_params: Optional[bytes] = None
1258
+
1259
+ # process the path parameters
1260
+ if id is not None:
1261
+ _path_params['id'] = id
1262
+ # process the query parameters
1263
+ # process the header parameters
1264
+ # process the form parameters
1265
+ # process the body parameter
1266
+
1267
+
1268
+ # set the HTTP header `Accept`
1269
+ if 'Accept' not in _header_params:
1270
+ _header_params['Accept'] = self.api_client.select_header_accept(
1271
+ [
1272
+ 'application/json'
1273
+ ]
1274
+ )
1275
+
1276
+
1277
+ # authentication setting
1278
+ _auth_settings: List[str] = [
1279
+ 'bearer',
1280
+ 'oauth2'
1281
+ ]
1282
+
1283
+ return self.api_client.param_serialize(
1284
+ method='GET',
1285
+ resource_path='/users/{id}',
1286
+ path_params=_path_params,
1287
+ query_params=_query_params,
1288
+ header_params=_header_params,
1289
+ body=_body_params,
1290
+ post_params=_form_params,
1291
+ files=_files,
1292
+ auth_settings=_auth_settings,
1293
+ collection_formats=_collection_formats,
1294
+ _host=_host,
1295
+ _request_auth=_request_auth
1296
+ )
1297
+
1298
+
1299
+
1300
+
1301
+ @validate_call
1302
+ async def link_account(
1303
+ self,
1304
+ create_linked_account: CreateLinkedAccount,
1305
+ _request_timeout: Union[
1306
+ None,
1307
+ Annotated[StrictFloat, Field(gt=0)],
1308
+ Tuple[
1309
+ Annotated[StrictFloat, Field(gt=0)],
1310
+ Annotated[StrictFloat, Field(gt=0)]
1311
+ ]
1312
+ ] = None,
1313
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1314
+ _content_type: Optional[StrictStr] = None,
1315
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1316
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1317
+ ) -> None:
1318
+ """Link account
1319
+
1320
+
1321
+ :param create_linked_account: (required)
1322
+ :type create_linked_account: CreateLinkedAccount
1323
+ :param _request_timeout: timeout setting for this request. If one
1324
+ number provided, it will be total request
1325
+ timeout. It can also be a pair (tuple) of
1326
+ (connection, read) timeouts.
1327
+ :type _request_timeout: int, tuple(int, int), optional
1328
+ :param _request_auth: set to override the auth_settings for an a single
1329
+ request; this effectively ignores the
1330
+ authentication in the spec for a single request.
1331
+ :type _request_auth: dict, optional
1332
+ :param _content_type: force content-type for the request.
1333
+ :type _content_type: str, Optional
1334
+ :param _headers: set to override the headers for a single
1335
+ request; this effectively ignores the headers
1336
+ in the spec for a single request.
1337
+ :type _headers: dict, optional
1338
+ :param _host_index: set to override the host_index for a single
1339
+ request; this effectively ignores the host_index
1340
+ in the spec for a single request.
1341
+ :type _host_index: int, optional
1342
+ :return: Returns the result object.
1343
+ """ # noqa: E501
1344
+
1345
+ _param = self._link_account_serialize(
1346
+ create_linked_account=create_linked_account,
1347
+ _request_auth=_request_auth,
1348
+ _content_type=_content_type,
1349
+ _headers=_headers,
1350
+ _host_index=_host_index
1351
+ )
1352
+
1353
+ _response_types_map: Dict[str, Optional[str]] = {
1354
+ '204': None,
1355
+ }
1356
+ response_data = await self.api_client.call_api(
1357
+ *_param,
1358
+ _request_timeout=_request_timeout
1359
+ )
1360
+ await response_data.read()
1361
+ return self.api_client.response_deserialize(
1362
+ response_data=response_data,
1363
+ response_types_map=_response_types_map,
1364
+ ).data
1365
+
1366
+
1367
+ @validate_call
1368
+ async def link_account_with_http_info(
1369
+ self,
1370
+ create_linked_account: CreateLinkedAccount,
1371
+ _request_timeout: Union[
1372
+ None,
1373
+ Annotated[StrictFloat, Field(gt=0)],
1374
+ Tuple[
1375
+ Annotated[StrictFloat, Field(gt=0)],
1376
+ Annotated[StrictFloat, Field(gt=0)]
1377
+ ]
1378
+ ] = None,
1379
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1380
+ _content_type: Optional[StrictStr] = None,
1381
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1382
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1383
+ ) -> ApiResponse[None]:
1384
+ """Link account
1385
+
1386
+
1387
+ :param create_linked_account: (required)
1388
+ :type create_linked_account: CreateLinkedAccount
1389
+ :param _request_timeout: timeout setting for this request. If one
1390
+ number provided, it will be total request
1391
+ timeout. It can also be a pair (tuple) of
1392
+ (connection, read) timeouts.
1393
+ :type _request_timeout: int, tuple(int, int), optional
1394
+ :param _request_auth: set to override the auth_settings for an a single
1395
+ request; this effectively ignores the
1396
+ authentication in the spec for a single request.
1397
+ :type _request_auth: dict, optional
1398
+ :param _content_type: force content-type for the request.
1399
+ :type _content_type: str, Optional
1400
+ :param _headers: set to override the headers for a single
1401
+ request; this effectively ignores the headers
1402
+ in the spec for a single request.
1403
+ :type _headers: dict, optional
1404
+ :param _host_index: set to override the host_index for a single
1405
+ request; this effectively ignores the host_index
1406
+ in the spec for a single request.
1407
+ :type _host_index: int, optional
1408
+ :return: Returns the result object.
1409
+ """ # noqa: E501
1410
+
1411
+ _param = self._link_account_serialize(
1412
+ create_linked_account=create_linked_account,
1413
+ _request_auth=_request_auth,
1414
+ _content_type=_content_type,
1415
+ _headers=_headers,
1416
+ _host_index=_host_index
1417
+ )
1418
+
1419
+ _response_types_map: Dict[str, Optional[str]] = {
1420
+ '204': None,
1421
+ }
1422
+ response_data = await self.api_client.call_api(
1423
+ *_param,
1424
+ _request_timeout=_request_timeout
1425
+ )
1426
+ await response_data.read()
1427
+ return self.api_client.response_deserialize(
1428
+ response_data=response_data,
1429
+ response_types_map=_response_types_map,
1430
+ )
1431
+
1432
+
1433
+ @validate_call
1434
+ async def link_account_without_preload_content(
1435
+ self,
1436
+ create_linked_account: CreateLinkedAccount,
1437
+ _request_timeout: Union[
1438
+ None,
1439
+ Annotated[StrictFloat, Field(gt=0)],
1440
+ Tuple[
1441
+ Annotated[StrictFloat, Field(gt=0)],
1442
+ Annotated[StrictFloat, Field(gt=0)]
1443
+ ]
1444
+ ] = None,
1445
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1446
+ _content_type: Optional[StrictStr] = None,
1447
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1448
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1449
+ ) -> RESTResponseType:
1450
+ """Link account
1451
+
1452
+
1453
+ :param create_linked_account: (required)
1454
+ :type create_linked_account: CreateLinkedAccount
1455
+ :param _request_timeout: timeout setting for this request. If one
1456
+ number provided, it will be total request
1457
+ timeout. It can also be a pair (tuple) of
1458
+ (connection, read) timeouts.
1459
+ :type _request_timeout: int, tuple(int, int), optional
1460
+ :param _request_auth: set to override the auth_settings for an a single
1461
+ request; this effectively ignores the
1462
+ authentication in the spec for a single request.
1463
+ :type _request_auth: dict, optional
1464
+ :param _content_type: force content-type for the request.
1465
+ :type _content_type: str, Optional
1466
+ :param _headers: set to override the headers for a single
1467
+ request; this effectively ignores the headers
1468
+ in the spec for a single request.
1469
+ :type _headers: dict, optional
1470
+ :param _host_index: set to override the host_index for a single
1471
+ request; this effectively ignores the host_index
1472
+ in the spec for a single request.
1473
+ :type _host_index: int, optional
1474
+ :return: Returns the result object.
1475
+ """ # noqa: E501
1476
+
1477
+ _param = self._link_account_serialize(
1478
+ create_linked_account=create_linked_account,
1479
+ _request_auth=_request_auth,
1480
+ _content_type=_content_type,
1481
+ _headers=_headers,
1482
+ _host_index=_host_index
1483
+ )
1484
+
1485
+ _response_types_map: Dict[str, Optional[str]] = {
1486
+ '204': None,
1487
+ }
1488
+ response_data = await self.api_client.call_api(
1489
+ *_param,
1490
+ _request_timeout=_request_timeout
1491
+ )
1492
+ return response_data.response
1493
+
1494
+
1495
+ def _link_account_serialize(
1496
+ self,
1497
+ create_linked_account,
1498
+ _request_auth,
1499
+ _content_type,
1500
+ _headers,
1501
+ _host_index,
1502
+ ) -> RequestSerialized:
1503
+
1504
+ _host = None
1505
+
1506
+ _collection_formats: Dict[str, str] = {
1507
+ }
1508
+
1509
+ _path_params: Dict[str, str] = {}
1510
+ _query_params: List[Tuple[str, str]] = []
1511
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1512
+ _form_params: List[Tuple[str, str]] = []
1513
+ _files: Dict[
1514
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1515
+ ] = {}
1516
+ _body_params: Optional[bytes] = None
1517
+
1518
+ # process the path parameters
1519
+ # process the query parameters
1520
+ # process the header parameters
1521
+ # process the form parameters
1522
+ # process the body parameter
1523
+ if create_linked_account is not None:
1524
+ _body_params = create_linked_account
1525
+
1526
+
1527
+
1528
+ # set the HTTP header `Content-Type`
1529
+ if _content_type:
1530
+ _header_params['Content-Type'] = _content_type
1531
+ else:
1532
+ _default_content_type = (
1533
+ self.api_client.select_header_content_type(
1534
+ [
1535
+ 'application/json'
1536
+ ]
1537
+ )
1538
+ )
1539
+ if _default_content_type is not None:
1540
+ _header_params['Content-Type'] = _default_content_type
1541
+
1542
+ # authentication setting
1543
+ _auth_settings: List[str] = [
1544
+ 'bearer',
1545
+ 'oauth2'
1546
+ ]
1547
+
1548
+ return self.api_client.param_serialize(
1549
+ method='POST',
1550
+ resource_path='/users/linked-accounts',
1551
+ path_params=_path_params,
1552
+ query_params=_query_params,
1553
+ header_params=_header_params,
1554
+ body=_body_params,
1555
+ post_params=_form_params,
1556
+ files=_files,
1557
+ auth_settings=_auth_settings,
1558
+ collection_formats=_collection_formats,
1559
+ _host=_host,
1560
+ _request_auth=_request_auth
1561
+ )
1562
+
1563
+
1564
+
1565
+
1566
+ @validate_call
1567
+ async def list_users(
1568
+ self,
1569
+ _request_timeout: Union[
1570
+ None,
1571
+ Annotated[StrictFloat, Field(gt=0)],
1572
+ Tuple[
1573
+ Annotated[StrictFloat, Field(gt=0)],
1574
+ Annotated[StrictFloat, Field(gt=0)]
1575
+ ]
1576
+ ] = None,
1577
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1578
+ _content_type: Optional[StrictStr] = None,
1579
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1580
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1581
+ ) -> None:
1582
+ """List all users
1583
+
1584
+
1585
+ :param _request_timeout: timeout setting for this request. If one
1586
+ number provided, it will be total request
1587
+ timeout. It can also be a pair (tuple) of
1588
+ (connection, read) timeouts.
1589
+ :type _request_timeout: int, tuple(int, int), optional
1590
+ :param _request_auth: set to override the auth_settings for an a single
1591
+ request; this effectively ignores the
1592
+ authentication in the spec for a single request.
1593
+ :type _request_auth: dict, optional
1594
+ :param _content_type: force content-type for the request.
1595
+ :type _content_type: str, Optional
1596
+ :param _headers: set to override the headers for a single
1597
+ request; this effectively ignores the headers
1598
+ in the spec for a single request.
1599
+ :type _headers: dict, optional
1600
+ :param _host_index: set to override the host_index for a single
1601
+ request; this effectively ignores the host_index
1602
+ in the spec for a single request.
1603
+ :type _host_index: int, optional
1604
+ :return: Returns the result object.
1605
+ """ # noqa: E501
1606
+
1607
+ _param = self._list_users_serialize(
1608
+ _request_auth=_request_auth,
1609
+ _content_type=_content_type,
1610
+ _headers=_headers,
1611
+ _host_index=_host_index
1612
+ )
1613
+
1614
+ _response_types_map: Dict[str, Optional[str]] = {
1615
+ '200': None,
1616
+ }
1617
+ response_data = await self.api_client.call_api(
1618
+ *_param,
1619
+ _request_timeout=_request_timeout
1620
+ )
1621
+ await response_data.read()
1622
+ return self.api_client.response_deserialize(
1623
+ response_data=response_data,
1624
+ response_types_map=_response_types_map,
1625
+ ).data
1626
+
1627
+
1628
+ @validate_call
1629
+ async def list_users_with_http_info(
1630
+ self,
1631
+ _request_timeout: Union[
1632
+ None,
1633
+ Annotated[StrictFloat, Field(gt=0)],
1634
+ Tuple[
1635
+ Annotated[StrictFloat, Field(gt=0)],
1636
+ Annotated[StrictFloat, Field(gt=0)]
1637
+ ]
1638
+ ] = None,
1639
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1640
+ _content_type: Optional[StrictStr] = None,
1641
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1642
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1643
+ ) -> ApiResponse[None]:
1644
+ """List all users
1645
+
1646
+
1647
+ :param _request_timeout: timeout setting for this request. If one
1648
+ number provided, it will be total request
1649
+ timeout. It can also be a pair (tuple) of
1650
+ (connection, read) timeouts.
1651
+ :type _request_timeout: int, tuple(int, int), optional
1652
+ :param _request_auth: set to override the auth_settings for an a single
1653
+ request; this effectively ignores the
1654
+ authentication in the spec for a single request.
1655
+ :type _request_auth: dict, optional
1656
+ :param _content_type: force content-type for the request.
1657
+ :type _content_type: str, Optional
1658
+ :param _headers: set to override the headers for a single
1659
+ request; this effectively ignores the headers
1660
+ in the spec for a single request.
1661
+ :type _headers: dict, optional
1662
+ :param _host_index: set to override the host_index for a single
1663
+ request; this effectively ignores the host_index
1664
+ in the spec for a single request.
1665
+ :type _host_index: int, optional
1666
+ :return: Returns the result object.
1667
+ """ # noqa: E501
1668
+
1669
+ _param = self._list_users_serialize(
1670
+ _request_auth=_request_auth,
1671
+ _content_type=_content_type,
1672
+ _headers=_headers,
1673
+ _host_index=_host_index
1674
+ )
1675
+
1676
+ _response_types_map: Dict[str, Optional[str]] = {
1677
+ '200': None,
1678
+ }
1679
+ response_data = await self.api_client.call_api(
1680
+ *_param,
1681
+ _request_timeout=_request_timeout
1682
+ )
1683
+ await response_data.read()
1684
+ return self.api_client.response_deserialize(
1685
+ response_data=response_data,
1686
+ response_types_map=_response_types_map,
1687
+ )
1688
+
1689
+
1690
+ @validate_call
1691
+ async def list_users_without_preload_content(
1692
+ self,
1693
+ _request_timeout: Union[
1694
+ None,
1695
+ Annotated[StrictFloat, Field(gt=0)],
1696
+ Tuple[
1697
+ Annotated[StrictFloat, Field(gt=0)],
1698
+ Annotated[StrictFloat, Field(gt=0)]
1699
+ ]
1700
+ ] = None,
1701
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1702
+ _content_type: Optional[StrictStr] = None,
1703
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1704
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1705
+ ) -> RESTResponseType:
1706
+ """List all users
1707
+
1708
+
1709
+ :param _request_timeout: timeout setting for this request. If one
1710
+ number provided, it will be total request
1711
+ timeout. It can also be a pair (tuple) of
1712
+ (connection, read) timeouts.
1713
+ :type _request_timeout: int, tuple(int, int), optional
1714
+ :param _request_auth: set to override the auth_settings for an a single
1715
+ request; this effectively ignores the
1716
+ authentication in the spec for a single request.
1717
+ :type _request_auth: dict, optional
1718
+ :param _content_type: force content-type for the request.
1719
+ :type _content_type: str, Optional
1720
+ :param _headers: set to override the headers for a single
1721
+ request; this effectively ignores the headers
1722
+ in the spec for a single request.
1723
+ :type _headers: dict, optional
1724
+ :param _host_index: set to override the host_index for a single
1725
+ request; this effectively ignores the host_index
1726
+ in the spec for a single request.
1727
+ :type _host_index: int, optional
1728
+ :return: Returns the result object.
1729
+ """ # noqa: E501
1730
+
1731
+ _param = self._list_users_serialize(
1732
+ _request_auth=_request_auth,
1733
+ _content_type=_content_type,
1734
+ _headers=_headers,
1735
+ _host_index=_host_index
1736
+ )
1737
+
1738
+ _response_types_map: Dict[str, Optional[str]] = {
1739
+ '200': None,
1740
+ }
1741
+ response_data = await self.api_client.call_api(
1742
+ *_param,
1743
+ _request_timeout=_request_timeout
1744
+ )
1745
+ return response_data.response
1746
+
1747
+
1748
+ def _list_users_serialize(
1749
+ self,
1750
+ _request_auth,
1751
+ _content_type,
1752
+ _headers,
1753
+ _host_index,
1754
+ ) -> RequestSerialized:
1755
+
1756
+ _host = None
1757
+
1758
+ _collection_formats: Dict[str, str] = {
1759
+ }
1760
+
1761
+ _path_params: Dict[str, str] = {}
1762
+ _query_params: List[Tuple[str, str]] = []
1763
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1764
+ _form_params: List[Tuple[str, str]] = []
1765
+ _files: Dict[
1766
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1767
+ ] = {}
1768
+ _body_params: Optional[bytes] = None
1769
+
1770
+ # process the path parameters
1771
+ # process the query parameters
1772
+ # process the header parameters
1773
+ # process the form parameters
1774
+ # process the body parameter
1775
+
1776
+
1777
+
1778
+
1779
+ # authentication setting
1780
+ _auth_settings: List[str] = [
1781
+ 'bearer',
1782
+ 'oauth2'
1783
+ ]
1784
+
1785
+ return self.api_client.param_serialize(
1786
+ method='GET',
1787
+ resource_path='/users',
1788
+ path_params=_path_params,
1789
+ query_params=_query_params,
1790
+ header_params=_header_params,
1791
+ body=_body_params,
1792
+ post_params=_form_params,
1793
+ files=_files,
1794
+ auth_settings=_auth_settings,
1795
+ collection_formats=_collection_formats,
1796
+ _host=_host,
1797
+ _request_auth=_request_auth
1798
+ )
1799
+
1800
+
1801
+
1802
+
1803
+ @validate_call
1804
+ async def regenerate_key_pair(
1805
+ self,
1806
+ id: StrictStr,
1807
+ _request_timeout: Union[
1808
+ None,
1809
+ Annotated[StrictFloat, Field(gt=0)],
1810
+ Tuple[
1811
+ Annotated[StrictFloat, Field(gt=0)],
1812
+ Annotated[StrictFloat, Field(gt=0)]
1813
+ ]
1814
+ ] = None,
1815
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1816
+ _content_type: Optional[StrictStr] = None,
1817
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1818
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1819
+ ) -> None:
1820
+ """Regenerate user key pair
1821
+
1822
+
1823
+ :param id: (required)
1824
+ :type id: str
1825
+ :param _request_timeout: timeout setting for this request. If one
1826
+ number provided, it will be total request
1827
+ timeout. It can also be a pair (tuple) of
1828
+ (connection, read) timeouts.
1829
+ :type _request_timeout: int, tuple(int, int), optional
1830
+ :param _request_auth: set to override the auth_settings for an a single
1831
+ request; this effectively ignores the
1832
+ authentication in the spec for a single request.
1833
+ :type _request_auth: dict, optional
1834
+ :param _content_type: force content-type for the request.
1835
+ :type _content_type: str, Optional
1836
+ :param _headers: set to override the headers for a single
1837
+ request; this effectively ignores the headers
1838
+ in the spec for a single request.
1839
+ :type _headers: dict, optional
1840
+ :param _host_index: set to override the host_index for a single
1841
+ request; this effectively ignores the host_index
1842
+ in the spec for a single request.
1843
+ :type _host_index: int, optional
1844
+ :return: Returns the result object.
1845
+ """ # noqa: E501
1846
+
1847
+ _param = self._regenerate_key_pair_serialize(
1848
+ id=id,
1849
+ _request_auth=_request_auth,
1850
+ _content_type=_content_type,
1851
+ _headers=_headers,
1852
+ _host_index=_host_index
1853
+ )
1854
+
1855
+ _response_types_map: Dict[str, Optional[str]] = {
1856
+ '201': None,
1857
+ }
1858
+ response_data = await self.api_client.call_api(
1859
+ *_param,
1860
+ _request_timeout=_request_timeout
1861
+ )
1862
+ await response_data.read()
1863
+ return self.api_client.response_deserialize(
1864
+ response_data=response_data,
1865
+ response_types_map=_response_types_map,
1866
+ ).data
1867
+
1868
+
1869
+ @validate_call
1870
+ async def regenerate_key_pair_with_http_info(
1871
+ self,
1872
+ id: StrictStr,
1873
+ _request_timeout: Union[
1874
+ None,
1875
+ Annotated[StrictFloat, Field(gt=0)],
1876
+ Tuple[
1877
+ Annotated[StrictFloat, Field(gt=0)],
1878
+ Annotated[StrictFloat, Field(gt=0)]
1879
+ ]
1880
+ ] = None,
1881
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1882
+ _content_type: Optional[StrictStr] = None,
1883
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1884
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1885
+ ) -> ApiResponse[None]:
1886
+ """Regenerate user key pair
1887
+
1888
+
1889
+ :param id: (required)
1890
+ :type id: str
1891
+ :param _request_timeout: timeout setting for this request. If one
1892
+ number provided, it will be total request
1893
+ timeout. It can also be a pair (tuple) of
1894
+ (connection, read) timeouts.
1895
+ :type _request_timeout: int, tuple(int, int), optional
1896
+ :param _request_auth: set to override the auth_settings for an a single
1897
+ request; this effectively ignores the
1898
+ authentication in the spec for a single request.
1899
+ :type _request_auth: dict, optional
1900
+ :param _content_type: force content-type for the request.
1901
+ :type _content_type: str, Optional
1902
+ :param _headers: set to override the headers for a single
1903
+ request; this effectively ignores the headers
1904
+ in the spec for a single request.
1905
+ :type _headers: dict, optional
1906
+ :param _host_index: set to override the host_index for a single
1907
+ request; this effectively ignores the host_index
1908
+ in the spec for a single request.
1909
+ :type _host_index: int, optional
1910
+ :return: Returns the result object.
1911
+ """ # noqa: E501
1912
+
1913
+ _param = self._regenerate_key_pair_serialize(
1914
+ id=id,
1915
+ _request_auth=_request_auth,
1916
+ _content_type=_content_type,
1917
+ _headers=_headers,
1918
+ _host_index=_host_index
1919
+ )
1920
+
1921
+ _response_types_map: Dict[str, Optional[str]] = {
1922
+ '201': None,
1923
+ }
1924
+ response_data = await self.api_client.call_api(
1925
+ *_param,
1926
+ _request_timeout=_request_timeout
1927
+ )
1928
+ await response_data.read()
1929
+ return self.api_client.response_deserialize(
1930
+ response_data=response_data,
1931
+ response_types_map=_response_types_map,
1932
+ )
1933
+
1934
+
1935
+ @validate_call
1936
+ async def regenerate_key_pair_without_preload_content(
1937
+ self,
1938
+ id: StrictStr,
1939
+ _request_timeout: Union[
1940
+ None,
1941
+ Annotated[StrictFloat, Field(gt=0)],
1942
+ Tuple[
1943
+ Annotated[StrictFloat, Field(gt=0)],
1944
+ Annotated[StrictFloat, Field(gt=0)]
1945
+ ]
1946
+ ] = None,
1947
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1948
+ _content_type: Optional[StrictStr] = None,
1949
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1950
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1951
+ ) -> RESTResponseType:
1952
+ """Regenerate user key pair
1953
+
1954
+
1955
+ :param id: (required)
1956
+ :type id: str
1957
+ :param _request_timeout: timeout setting for this request. If one
1958
+ number provided, it will be total request
1959
+ timeout. It can also be a pair (tuple) of
1960
+ (connection, read) timeouts.
1961
+ :type _request_timeout: int, tuple(int, int), optional
1962
+ :param _request_auth: set to override the auth_settings for an a single
1963
+ request; this effectively ignores the
1964
+ authentication in the spec for a single request.
1965
+ :type _request_auth: dict, optional
1966
+ :param _content_type: force content-type for the request.
1967
+ :type _content_type: str, Optional
1968
+ :param _headers: set to override the headers for a single
1969
+ request; this effectively ignores the headers
1970
+ in the spec for a single request.
1971
+ :type _headers: dict, optional
1972
+ :param _host_index: set to override the host_index for a single
1973
+ request; this effectively ignores the host_index
1974
+ in the spec for a single request.
1975
+ :type _host_index: int, optional
1976
+ :return: Returns the result object.
1977
+ """ # noqa: E501
1978
+
1979
+ _param = self._regenerate_key_pair_serialize(
1980
+ id=id,
1981
+ _request_auth=_request_auth,
1982
+ _content_type=_content_type,
1983
+ _headers=_headers,
1984
+ _host_index=_host_index
1985
+ )
1986
+
1987
+ _response_types_map: Dict[str, Optional[str]] = {
1988
+ '201': None,
1989
+ }
1990
+ response_data = await self.api_client.call_api(
1991
+ *_param,
1992
+ _request_timeout=_request_timeout
1993
+ )
1994
+ return response_data.response
1995
+
1996
+
1997
+ def _regenerate_key_pair_serialize(
1998
+ self,
1999
+ id,
2000
+ _request_auth,
2001
+ _content_type,
2002
+ _headers,
2003
+ _host_index,
2004
+ ) -> RequestSerialized:
2005
+
2006
+ _host = None
2007
+
2008
+ _collection_formats: Dict[str, str] = {
2009
+ }
2010
+
2011
+ _path_params: Dict[str, str] = {}
2012
+ _query_params: List[Tuple[str, str]] = []
2013
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2014
+ _form_params: List[Tuple[str, str]] = []
2015
+ _files: Dict[
2016
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2017
+ ] = {}
2018
+ _body_params: Optional[bytes] = None
2019
+
2020
+ # process the path parameters
2021
+ if id is not None:
2022
+ _path_params['id'] = id
2023
+ # process the query parameters
2024
+ # process the header parameters
2025
+ # process the form parameters
2026
+ # process the body parameter
2027
+
2028
+
2029
+
2030
+
2031
+ # authentication setting
2032
+ _auth_settings: List[str] = [
2033
+ 'bearer',
2034
+ 'oauth2'
2035
+ ]
2036
+
2037
+ return self.api_client.param_serialize(
2038
+ method='POST',
2039
+ resource_path='/users/{id}/regenerate-key-pair',
2040
+ path_params=_path_params,
2041
+ query_params=_query_params,
2042
+ header_params=_header_params,
2043
+ body=_body_params,
2044
+ post_params=_form_params,
2045
+ files=_files,
2046
+ auth_settings=_auth_settings,
2047
+ collection_formats=_collection_formats,
2048
+ _host=_host,
2049
+ _request_auth=_request_auth
2050
+ )
2051
+
2052
+
2053
+
2054
+
2055
+ @validate_call
2056
+ async def unlink_account(
2057
+ self,
2058
+ provider: StrictStr,
2059
+ provider_user_id: StrictStr,
2060
+ _request_timeout: Union[
2061
+ None,
2062
+ Annotated[StrictFloat, Field(gt=0)],
2063
+ Tuple[
2064
+ Annotated[StrictFloat, Field(gt=0)],
2065
+ Annotated[StrictFloat, Field(gt=0)]
2066
+ ]
2067
+ ] = None,
2068
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2069
+ _content_type: Optional[StrictStr] = None,
2070
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2071
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2072
+ ) -> None:
2073
+ """Unlink account
2074
+
2075
+
2076
+ :param provider: (required)
2077
+ :type provider: str
2078
+ :param provider_user_id: (required)
2079
+ :type provider_user_id: str
2080
+ :param _request_timeout: timeout setting for this request. If one
2081
+ number provided, it will be total request
2082
+ timeout. It can also be a pair (tuple) of
2083
+ (connection, read) timeouts.
2084
+ :type _request_timeout: int, tuple(int, int), optional
2085
+ :param _request_auth: set to override the auth_settings for an a single
2086
+ request; this effectively ignores the
2087
+ authentication in the spec for a single request.
2088
+ :type _request_auth: dict, optional
2089
+ :param _content_type: force content-type for the request.
2090
+ :type _content_type: str, Optional
2091
+ :param _headers: set to override the headers for a single
2092
+ request; this effectively ignores the headers
2093
+ in the spec for a single request.
2094
+ :type _headers: dict, optional
2095
+ :param _host_index: set to override the host_index for a single
2096
+ request; this effectively ignores the host_index
2097
+ in the spec for a single request.
2098
+ :type _host_index: int, optional
2099
+ :return: Returns the result object.
2100
+ """ # noqa: E501
2101
+
2102
+ _param = self._unlink_account_serialize(
2103
+ provider=provider,
2104
+ provider_user_id=provider_user_id,
2105
+ _request_auth=_request_auth,
2106
+ _content_type=_content_type,
2107
+ _headers=_headers,
2108
+ _host_index=_host_index
2109
+ )
2110
+
2111
+ _response_types_map: Dict[str, Optional[str]] = {
2112
+ '204': None,
2113
+ }
2114
+ response_data = await self.api_client.call_api(
2115
+ *_param,
2116
+ _request_timeout=_request_timeout
2117
+ )
2118
+ await response_data.read()
2119
+ return self.api_client.response_deserialize(
2120
+ response_data=response_data,
2121
+ response_types_map=_response_types_map,
2122
+ ).data
2123
+
2124
+
2125
+ @validate_call
2126
+ async def unlink_account_with_http_info(
2127
+ self,
2128
+ provider: StrictStr,
2129
+ provider_user_id: StrictStr,
2130
+ _request_timeout: Union[
2131
+ None,
2132
+ Annotated[StrictFloat, Field(gt=0)],
2133
+ Tuple[
2134
+ Annotated[StrictFloat, Field(gt=0)],
2135
+ Annotated[StrictFloat, Field(gt=0)]
2136
+ ]
2137
+ ] = None,
2138
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2139
+ _content_type: Optional[StrictStr] = None,
2140
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2141
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2142
+ ) -> ApiResponse[None]:
2143
+ """Unlink account
2144
+
2145
+
2146
+ :param provider: (required)
2147
+ :type provider: str
2148
+ :param provider_user_id: (required)
2149
+ :type provider_user_id: str
2150
+ :param _request_timeout: timeout setting for this request. If one
2151
+ number provided, it will be total request
2152
+ timeout. It can also be a pair (tuple) of
2153
+ (connection, read) timeouts.
2154
+ :type _request_timeout: int, tuple(int, int), optional
2155
+ :param _request_auth: set to override the auth_settings for an a single
2156
+ request; this effectively ignores the
2157
+ authentication in the spec for a single request.
2158
+ :type _request_auth: dict, optional
2159
+ :param _content_type: force content-type for the request.
2160
+ :type _content_type: str, Optional
2161
+ :param _headers: set to override the headers for a single
2162
+ request; this effectively ignores the headers
2163
+ in the spec for a single request.
2164
+ :type _headers: dict, optional
2165
+ :param _host_index: set to override the host_index for a single
2166
+ request; this effectively ignores the host_index
2167
+ in the spec for a single request.
2168
+ :type _host_index: int, optional
2169
+ :return: Returns the result object.
2170
+ """ # noqa: E501
2171
+
2172
+ _param = self._unlink_account_serialize(
2173
+ provider=provider,
2174
+ provider_user_id=provider_user_id,
2175
+ _request_auth=_request_auth,
2176
+ _content_type=_content_type,
2177
+ _headers=_headers,
2178
+ _host_index=_host_index
2179
+ )
2180
+
2181
+ _response_types_map: Dict[str, Optional[str]] = {
2182
+ '204': None,
2183
+ }
2184
+ response_data = await self.api_client.call_api(
2185
+ *_param,
2186
+ _request_timeout=_request_timeout
2187
+ )
2188
+ await response_data.read()
2189
+ return self.api_client.response_deserialize(
2190
+ response_data=response_data,
2191
+ response_types_map=_response_types_map,
2192
+ )
2193
+
2194
+
2195
+ @validate_call
2196
+ async def unlink_account_without_preload_content(
2197
+ self,
2198
+ provider: StrictStr,
2199
+ provider_user_id: StrictStr,
2200
+ _request_timeout: Union[
2201
+ None,
2202
+ Annotated[StrictFloat, Field(gt=0)],
2203
+ Tuple[
2204
+ Annotated[StrictFloat, Field(gt=0)],
2205
+ Annotated[StrictFloat, Field(gt=0)]
2206
+ ]
2207
+ ] = None,
2208
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2209
+ _content_type: Optional[StrictStr] = None,
2210
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2211
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2212
+ ) -> RESTResponseType:
2213
+ """Unlink account
2214
+
2215
+
2216
+ :param provider: (required)
2217
+ :type provider: str
2218
+ :param provider_user_id: (required)
2219
+ :type provider_user_id: str
2220
+ :param _request_timeout: timeout setting for this request. If one
2221
+ number provided, it will be total request
2222
+ timeout. It can also be a pair (tuple) of
2223
+ (connection, read) timeouts.
2224
+ :type _request_timeout: int, tuple(int, int), optional
2225
+ :param _request_auth: set to override the auth_settings for an a single
2226
+ request; this effectively ignores the
2227
+ authentication in the spec for a single request.
2228
+ :type _request_auth: dict, optional
2229
+ :param _content_type: force content-type for the request.
2230
+ :type _content_type: str, Optional
2231
+ :param _headers: set to override the headers for a single
2232
+ request; this effectively ignores the headers
2233
+ in the spec for a single request.
2234
+ :type _headers: dict, optional
2235
+ :param _host_index: set to override the host_index for a single
2236
+ request; this effectively ignores the host_index
2237
+ in the spec for a single request.
2238
+ :type _host_index: int, optional
2239
+ :return: Returns the result object.
2240
+ """ # noqa: E501
2241
+
2242
+ _param = self._unlink_account_serialize(
2243
+ provider=provider,
2244
+ provider_user_id=provider_user_id,
2245
+ _request_auth=_request_auth,
2246
+ _content_type=_content_type,
2247
+ _headers=_headers,
2248
+ _host_index=_host_index
2249
+ )
2250
+
2251
+ _response_types_map: Dict[str, Optional[str]] = {
2252
+ '204': None,
2253
+ }
2254
+ response_data = await self.api_client.call_api(
2255
+ *_param,
2256
+ _request_timeout=_request_timeout
2257
+ )
2258
+ return response_data.response
2259
+
2260
+
2261
+ def _unlink_account_serialize(
2262
+ self,
2263
+ provider,
2264
+ provider_user_id,
2265
+ _request_auth,
2266
+ _content_type,
2267
+ _headers,
2268
+ _host_index,
2269
+ ) -> RequestSerialized:
2270
+
2271
+ _host = None
2272
+
2273
+ _collection_formats: Dict[str, str] = {
2274
+ }
2275
+
2276
+ _path_params: Dict[str, str] = {}
2277
+ _query_params: List[Tuple[str, str]] = []
2278
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2279
+ _form_params: List[Tuple[str, str]] = []
2280
+ _files: Dict[
2281
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2282
+ ] = {}
2283
+ _body_params: Optional[bytes] = None
2284
+
2285
+ # process the path parameters
2286
+ if provider is not None:
2287
+ _path_params['provider'] = provider
2288
+ if provider_user_id is not None:
2289
+ _path_params['providerUserId'] = provider_user_id
2290
+ # process the query parameters
2291
+ # process the header parameters
2292
+ # process the form parameters
2293
+ # process the body parameter
2294
+
2295
+
2296
+
2297
+
2298
+ # authentication setting
2299
+ _auth_settings: List[str] = [
2300
+ 'bearer',
2301
+ 'oauth2'
2302
+ ]
2303
+
2304
+ return self.api_client.param_serialize(
2305
+ method='DELETE',
2306
+ resource_path='/users/linked-accounts/{provider}/{providerUserId}',
2307
+ path_params=_path_params,
2308
+ query_params=_query_params,
2309
+ header_params=_header_params,
2310
+ body=_body_params,
2311
+ post_params=_form_params,
2312
+ files=_files,
2313
+ auth_settings=_auth_settings,
2314
+ collection_formats=_collection_formats,
2315
+ _host=_host,
2316
+ _request_auth=_request_auth
2317
+ )
2318
+
2319
+