robosystems-client 0.2.2__py3-none-any.whl → 0.2.4__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.

Potentially problematic release.


This version of robosystems-client might be problematic. Click here for more details.

Files changed (121) hide show
  1. robosystems_client/api/agent/auto_select_agent.py +1 -41
  2. robosystems_client/api/agent/batch_process_queries.py +1 -41
  3. robosystems_client/api/agent/execute_specific_agent.py +1 -41
  4. robosystems_client/api/agent/get_agent_metadata.py +5 -49
  5. robosystems_client/api/agent/list_agents.py +4 -42
  6. robosystems_client/api/agent/recommend_agent.py +5 -45
  7. robosystems_client/api/auth/generate_sso_token.py +0 -18
  8. robosystems_client/api/auth/get_current_auth_user.py +14 -74
  9. robosystems_client/api/auth/logout_user.py +14 -50
  10. robosystems_client/api/auth/refresh_auth_session.py +14 -50
  11. robosystems_client/api/auth/resend_verification_email.py +14 -74
  12. robosystems_client/api/backup/create_backup.py +5 -45
  13. robosystems_client/api/backup/get_backup_download_url.py +4 -42
  14. robosystems_client/api/backup/get_backup_stats.py +5 -49
  15. robosystems_client/api/backup/list_backups.py +4 -42
  16. robosystems_client/api/backup/restore_backup.py +5 -45
  17. robosystems_client/api/connections/create_connection.py +5 -45
  18. robosystems_client/api/connections/create_link_token.py +5 -45
  19. robosystems_client/api/connections/delete_connection.py +5 -49
  20. robosystems_client/api/connections/exchange_link_token.py +5 -45
  21. robosystems_client/api/connections/get_connection.py +5 -49
  22. robosystems_client/api/connections/get_connection_options.py +5 -49
  23. robosystems_client/api/connections/init_o_auth.py +5 -45
  24. robosystems_client/api/connections/list_connections.py +4 -42
  25. robosystems_client/api/connections/oauth_callback.py +5 -45
  26. robosystems_client/api/connections/sync_connection.py +5 -45
  27. robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
  28. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
  29. robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
  30. robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
  31. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
  32. robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
  33. robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
  34. robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
  35. robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
  36. robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
  37. robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
  38. robosystems_client/api/graph_health/get_database_health.py +5 -49
  39. robosystems_client/api/graph_info/get_database_info.py +5 -49
  40. robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
  41. robosystems_client/api/graphs/create_graph.py +21 -57
  42. robosystems_client/api/graphs/get_available_extensions.py +131 -15
  43. robosystems_client/api/graphs/get_graphs.py +154 -79
  44. robosystems_client/api/graphs/select_graph.py +117 -49
  45. robosystems_client/api/mcp/call_mcp_tool.py +24 -47
  46. robosystems_client/api/mcp/list_mcp_tools.py +13 -61
  47. robosystems_client/api/operations/cancel_operation.py +1 -45
  48. robosystems_client/api/operations/get_operation_status.py +1 -45
  49. robosystems_client/api/query/execute_cypher_query.py +68 -57
  50. robosystems_client/api/schema/export_graph_schema.py +223 -65
  51. robosystems_client/api/schema/get_graph_schema.py +137 -79
  52. robosystems_client/api/schema/validate_schema.py +5 -45
  53. robosystems_client/api/subgraphs/create_subgraph.py +5 -45
  54. robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
  55. robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
  56. robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
  57. robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
  58. robosystems_client/api/tables/delete_file.py +317 -0
  59. robosystems_client/api/tables/get_file_info.py +249 -0
  60. robosystems_client/api/tables/get_upload_url.py +352 -0
  61. robosystems_client/api/tables/ingest_tables.py +428 -0
  62. robosystems_client/api/tables/list_table_files.py +329 -0
  63. robosystems_client/api/tables/list_tables.py +316 -0
  64. robosystems_client/api/tables/query_tables.py +431 -0
  65. robosystems_client/api/tables/update_file_status.py +395 -0
  66. robosystems_client/api/user/create_user_api_key.py +1 -41
  67. robosystems_client/api/user/get_all_credit_summaries.py +14 -111
  68. robosystems_client/api/user/get_current_user.py +14 -75
  69. robosystems_client/api/user/list_user_api_keys.py +14 -75
  70. robosystems_client/api/user/revoke_user_api_key.py +1 -45
  71. robosystems_client/api/user/update_user.py +1 -41
  72. robosystems_client/api/user/update_user_api_key.py +1 -41
  73. robosystems_client/api/user/update_user_password.py +1 -41
  74. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
  75. robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
  76. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
  77. robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
  78. robosystems_client/api/user_limits/get_user_limits.py +14 -75
  79. robosystems_client/api/user_limits/get_user_usage.py +14 -75
  80. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
  81. robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
  82. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
  83. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
  84. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
  85. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
  86. robosystems_client/extensions/__init__.py +8 -1
  87. robosystems_client/extensions/auth_integration.py +1 -2
  88. robosystems_client/extensions/graph_client.py +5 -0
  89. robosystems_client/extensions/query_client.py +3 -2
  90. robosystems_client/extensions/sse_client.py +1 -1
  91. robosystems_client/extensions/table_ingest_client.py +36 -40
  92. robosystems_client/extensions/utils.py +2 -2
  93. robosystems_client/models/__init__.py +17 -21
  94. robosystems_client/models/create_graph_request.py +15 -3
  95. robosystems_client/models/cypher_query_request.py +5 -22
  96. robosystems_client/models/{delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py → delete_file_response.py} +45 -9
  97. robosystems_client/models/file_info.py +169 -0
  98. robosystems_client/models/file_status_update.py +41 -0
  99. robosystems_client/models/get_file_info_response.py +205 -0
  100. robosystems_client/models/list_table_files_response.py +105 -0
  101. robosystems_client/models/schema_export_response.py +4 -2
  102. robosystems_client/models/schema_info_response.py +77 -0
  103. robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
  104. robosystems_client/models/schema_validation_response.py +7 -6
  105. robosystems_client/models/table_query_request.py +37 -2
  106. robosystems_client/models/{get_file_info_v1_graphs_graph_id_tables_files_file_id_get_response_get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py → update_file_status_response_updatefilestatus.py} +5 -8
  107. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
  108. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +110 -108
  109. robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
  110. robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
  111. robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
  112. robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
  113. robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
  114. robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
  115. robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
  116. robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
  117. robosystems_client/models/file_update_request.py +0 -62
  118. robosystems_client/models/list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -47
  119. robosystems_client/models/update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -47
  120. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
  121. {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
@@ -5,41 +5,27 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.http_validation_error import HTTPValidationError
9
8
  from ...models.logout_user_response_logoutuser import LogoutUserResponseLogoutuser
10
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
11
10
 
12
11
 
13
- def _get_kwargs(
14
- *,
15
- authorization: Union[None, Unset, str] = UNSET,
16
- ) -> dict[str, Any]:
17
- headers: dict[str, Any] = {}
18
- if not isinstance(authorization, Unset):
19
- headers["authorization"] = authorization
20
-
12
+ def _get_kwargs() -> dict[str, Any]:
21
13
  _kwargs: dict[str, Any] = {
22
14
  "method": "post",
23
15
  "url": "/v1/auth/logout",
24
16
  }
25
17
 
26
- _kwargs["headers"] = headers
27
18
  return _kwargs
28
19
 
29
20
 
30
21
  def _parse_response(
31
22
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
32
- ) -> Optional[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
23
+ ) -> Optional[LogoutUserResponseLogoutuser]:
33
24
  if response.status_code == 200:
34
25
  response_200 = LogoutUserResponseLogoutuser.from_dict(response.json())
35
26
 
36
27
  return response_200
37
28
 
38
- if response.status_code == 422:
39
- response_422 = HTTPValidationError.from_dict(response.json())
40
-
41
- return response_422
42
-
43
29
  if client.raise_on_unexpected_status:
44
30
  raise errors.UnexpectedStatus(response.status_code, response.content)
45
31
  else:
@@ -48,7 +34,7 @@ def _parse_response(
48
34
 
49
35
  def _build_response(
50
36
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
51
- ) -> Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
37
+ ) -> Response[LogoutUserResponseLogoutuser]:
52
38
  return Response(
53
39
  status_code=HTTPStatus(response.status_code),
54
40
  content=response.content,
@@ -60,26 +46,20 @@ def _build_response(
60
46
  def sync_detailed(
61
47
  *,
62
48
  client: Union[AuthenticatedClient, Client],
63
- authorization: Union[None, Unset, str] = UNSET,
64
- ) -> Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
49
+ ) -> Response[LogoutUserResponseLogoutuser]:
65
50
  """User Logout
66
51
 
67
52
  Logout user and invalidate session.
68
53
 
69
- Args:
70
- authorization (Union[None, Unset, str]):
71
-
72
54
  Raises:
73
55
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
74
56
  httpx.TimeoutException: If the request takes longer than Client.timeout.
75
57
 
76
58
  Returns:
77
- Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]
59
+ Response[LogoutUserResponseLogoutuser]
78
60
  """
79
61
 
80
- kwargs = _get_kwargs(
81
- authorization=authorization,
82
- )
62
+ kwargs = _get_kwargs()
83
63
 
84
64
  response = client.get_httpx_client().request(
85
65
  **kwargs,
@@ -91,52 +71,41 @@ def sync_detailed(
91
71
  def sync(
92
72
  *,
93
73
  client: Union[AuthenticatedClient, Client],
94
- authorization: Union[None, Unset, str] = UNSET,
95
- ) -> Optional[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
74
+ ) -> Optional[LogoutUserResponseLogoutuser]:
96
75
  """User Logout
97
76
 
98
77
  Logout user and invalidate session.
99
78
 
100
- Args:
101
- authorization (Union[None, Unset, str]):
102
-
103
79
  Raises:
104
80
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
81
  httpx.TimeoutException: If the request takes longer than Client.timeout.
106
82
 
107
83
  Returns:
108
- Union[HTTPValidationError, LogoutUserResponseLogoutuser]
84
+ LogoutUserResponseLogoutuser
109
85
  """
110
86
 
111
87
  return sync_detailed(
112
88
  client=client,
113
- authorization=authorization,
114
89
  ).parsed
115
90
 
116
91
 
117
92
  async def asyncio_detailed(
118
93
  *,
119
94
  client: Union[AuthenticatedClient, Client],
120
- authorization: Union[None, Unset, str] = UNSET,
121
- ) -> Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
95
+ ) -> Response[LogoutUserResponseLogoutuser]:
122
96
  """User Logout
123
97
 
124
98
  Logout user and invalidate session.
125
99
 
126
- Args:
127
- authorization (Union[None, Unset, str]):
128
-
129
100
  Raises:
130
101
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
131
102
  httpx.TimeoutException: If the request takes longer than Client.timeout.
132
103
 
133
104
  Returns:
134
- Response[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]
105
+ Response[LogoutUserResponseLogoutuser]
135
106
  """
136
107
 
137
- kwargs = _get_kwargs(
138
- authorization=authorization,
139
- )
108
+ kwargs = _get_kwargs()
140
109
 
141
110
  response = await client.get_async_httpx_client().request(**kwargs)
142
111
 
@@ -146,26 +115,21 @@ async def asyncio_detailed(
146
115
  async def asyncio(
147
116
  *,
148
117
  client: Union[AuthenticatedClient, Client],
149
- authorization: Union[None, Unset, str] = UNSET,
150
- ) -> Optional[Union[HTTPValidationError, LogoutUserResponseLogoutuser]]:
118
+ ) -> Optional[LogoutUserResponseLogoutuser]:
151
119
  """User Logout
152
120
 
153
121
  Logout user and invalidate session.
154
122
 
155
- Args:
156
- authorization (Union[None, Unset, str]):
157
-
158
123
  Raises:
159
124
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
161
126
 
162
127
  Returns:
163
- Union[HTTPValidationError, LogoutUserResponseLogoutuser]
128
+ LogoutUserResponseLogoutuser
164
129
  """
165
130
 
166
131
  return (
167
132
  await asyncio_detailed(
168
133
  client=client,
169
- authorization=authorization,
170
134
  )
171
135
  ).parsed
@@ -7,30 +7,21 @@ from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.auth_response import AuthResponse
9
9
  from ...models.error_response import ErrorResponse
10
- from ...models.http_validation_error import HTTPValidationError
11
- from ...types import UNSET, Response, Unset
10
+ from ...types import Response
12
11
 
13
12
 
14
- def _get_kwargs(
15
- *,
16
- authorization: Union[None, Unset, str] = UNSET,
17
- ) -> dict[str, Any]:
18
- headers: dict[str, Any] = {}
19
- if not isinstance(authorization, Unset):
20
- headers["authorization"] = authorization
21
-
13
+ def _get_kwargs() -> dict[str, Any]:
22
14
  _kwargs: dict[str, Any] = {
23
15
  "method": "post",
24
16
  "url": "/v1/auth/refresh",
25
17
  }
26
18
 
27
- _kwargs["headers"] = headers
28
19
  return _kwargs
29
20
 
30
21
 
31
22
  def _parse_response(
32
23
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
33
- ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
24
+ ) -> Optional[Union[AuthResponse, ErrorResponse]]:
34
25
  if response.status_code == 200:
35
26
  response_200 = AuthResponse.from_dict(response.json())
36
27
 
@@ -41,11 +32,6 @@ def _parse_response(
41
32
 
42
33
  return response_401
43
34
 
44
- if response.status_code == 422:
45
- response_422 = HTTPValidationError.from_dict(response.json())
46
-
47
- return response_422
48
-
49
35
  if client.raise_on_unexpected_status:
50
36
  raise errors.UnexpectedStatus(response.status_code, response.content)
51
37
  else:
@@ -54,7 +40,7 @@ def _parse_response(
54
40
 
55
41
  def _build_response(
56
42
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
57
- ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
43
+ ) -> Response[Union[AuthResponse, ErrorResponse]]:
58
44
  return Response(
59
45
  status_code=HTTPStatus(response.status_code),
60
46
  content=response.content,
@@ -66,26 +52,20 @@ def _build_response(
66
52
  def sync_detailed(
67
53
  *,
68
54
  client: Union[AuthenticatedClient, Client],
69
- authorization: Union[None, Unset, str] = UNSET,
70
- ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
55
+ ) -> Response[Union[AuthResponse, ErrorResponse]]:
71
56
  """Refresh Session
72
57
 
73
58
  Refresh authentication session with a new JWT token.
74
59
 
75
- Args:
76
- authorization (Union[None, Unset, str]):
77
-
78
60
  Raises:
79
61
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
80
62
  httpx.TimeoutException: If the request takes longer than Client.timeout.
81
63
 
82
64
  Returns:
83
- Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
65
+ Response[Union[AuthResponse, ErrorResponse]]
84
66
  """
85
67
 
86
- kwargs = _get_kwargs(
87
- authorization=authorization,
88
- )
68
+ kwargs = _get_kwargs()
89
69
 
90
70
  response = client.get_httpx_client().request(
91
71
  **kwargs,
@@ -97,52 +77,41 @@ def sync_detailed(
97
77
  def sync(
98
78
  *,
99
79
  client: Union[AuthenticatedClient, Client],
100
- authorization: Union[None, Unset, str] = UNSET,
101
- ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
80
+ ) -> Optional[Union[AuthResponse, ErrorResponse]]:
102
81
  """Refresh Session
103
82
 
104
83
  Refresh authentication session with a new JWT token.
105
84
 
106
- Args:
107
- authorization (Union[None, Unset, str]):
108
-
109
85
  Raises:
110
86
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
111
87
  httpx.TimeoutException: If the request takes longer than Client.timeout.
112
88
 
113
89
  Returns:
114
- Union[AuthResponse, ErrorResponse, HTTPValidationError]
90
+ Union[AuthResponse, ErrorResponse]
115
91
  """
116
92
 
117
93
  return sync_detailed(
118
94
  client=client,
119
- authorization=authorization,
120
95
  ).parsed
121
96
 
122
97
 
123
98
  async def asyncio_detailed(
124
99
  *,
125
100
  client: Union[AuthenticatedClient, Client],
126
- authorization: Union[None, Unset, str] = UNSET,
127
- ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
101
+ ) -> Response[Union[AuthResponse, ErrorResponse]]:
128
102
  """Refresh Session
129
103
 
130
104
  Refresh authentication session with a new JWT token.
131
105
 
132
- Args:
133
- authorization (Union[None, Unset, str]):
134
-
135
106
  Raises:
136
107
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
137
108
  httpx.TimeoutException: If the request takes longer than Client.timeout.
138
109
 
139
110
  Returns:
140
- Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
111
+ Response[Union[AuthResponse, ErrorResponse]]
141
112
  """
142
113
 
143
- kwargs = _get_kwargs(
144
- authorization=authorization,
145
- )
114
+ kwargs = _get_kwargs()
146
115
 
147
116
  response = await client.get_async_httpx_client().request(**kwargs)
148
117
 
@@ -152,26 +121,21 @@ async def asyncio_detailed(
152
121
  async def asyncio(
153
122
  *,
154
123
  client: Union[AuthenticatedClient, Client],
155
- authorization: Union[None, Unset, str] = UNSET,
156
- ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
124
+ ) -> Optional[Union[AuthResponse, ErrorResponse]]:
157
125
  """Refresh Session
158
126
 
159
127
  Refresh authentication session with a new JWT token.
160
128
 
161
- Args:
162
- authorization (Union[None, Unset, str]):
163
-
164
129
  Raises:
165
130
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
166
131
  httpx.TimeoutException: If the request takes longer than Client.timeout.
167
132
 
168
133
  Returns:
169
- Union[AuthResponse, ErrorResponse, HTTPValidationError]
134
+ Union[AuthResponse, ErrorResponse]
170
135
  """
171
136
 
172
137
  return (
173
138
  await asyncio_detailed(
174
139
  client=client,
175
- authorization=authorization,
176
140
  )
177
141
  ).parsed
@@ -6,38 +6,25 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.error_response import ErrorResponse
9
- from ...models.http_validation_error import HTTPValidationError
10
9
  from ...models.resend_verification_email_response_resendverificationemail import (
11
10
  ResendVerificationEmailResponseResendverificationemail,
12
11
  )
13
- from ...types import UNSET, Response, Unset
12
+ from ...types import Response
14
13
 
15
14
 
16
- def _get_kwargs(
17
- *,
18
- authorization: Union[None, Unset, str] = UNSET,
19
- ) -> dict[str, Any]:
20
- headers: dict[str, Any] = {}
21
- if not isinstance(authorization, Unset):
22
- headers["authorization"] = authorization
23
-
15
+ def _get_kwargs() -> dict[str, Any]:
24
16
  _kwargs: dict[str, Any] = {
25
17
  "method": "post",
26
18
  "url": "/v1/auth/email/resend",
27
19
  }
28
20
 
29
- _kwargs["headers"] = headers
30
21
  return _kwargs
31
22
 
32
23
 
33
24
  def _parse_response(
34
25
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
35
26
  ) -> Optional[
36
- Union[
37
- ErrorResponse,
38
- HTTPValidationError,
39
- ResendVerificationEmailResponseResendverificationemail,
40
- ]
27
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
41
28
  ]:
42
29
  if response.status_code == 200:
43
30
  response_200 = ResendVerificationEmailResponseResendverificationemail.from_dict(
@@ -51,11 +38,6 @@ def _parse_response(
51
38
 
52
39
  return response_400
53
40
 
54
- if response.status_code == 422:
55
- response_422 = HTTPValidationError.from_dict(response.json())
56
-
57
- return response_422
58
-
59
41
  if response.status_code == 429:
60
42
  response_429 = ErrorResponse.from_dict(response.json())
61
43
 
@@ -75,11 +57,7 @@ def _parse_response(
75
57
  def _build_response(
76
58
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
77
59
  ) -> Response[
78
- Union[
79
- ErrorResponse,
80
- HTTPValidationError,
81
- ResendVerificationEmailResponseResendverificationemail,
82
- ]
60
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
83
61
  ]:
84
62
  return Response(
85
63
  status_code=HTTPStatus(response.status_code),
@@ -92,32 +70,22 @@ def _build_response(
92
70
  def sync_detailed(
93
71
  *,
94
72
  client: Union[AuthenticatedClient, Client],
95
- authorization: Union[None, Unset, str] = UNSET,
96
73
  ) -> Response[
97
- Union[
98
- ErrorResponse,
99
- HTTPValidationError,
100
- ResendVerificationEmailResponseResendverificationemail,
101
- ]
74
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
102
75
  ]:
103
76
  """Resend Email Verification
104
77
 
105
78
  Resend verification email to the authenticated user. Rate limited to 3 per hour.
106
79
 
107
- Args:
108
- authorization (Union[None, Unset, str]):
109
-
110
80
  Raises:
111
81
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
112
82
  httpx.TimeoutException: If the request takes longer than Client.timeout.
113
83
 
114
84
  Returns:
115
- Response[Union[ErrorResponse, HTTPValidationError, ResendVerificationEmailResponseResendverificationemail]]
85
+ Response[Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]]
116
86
  """
117
87
 
118
- kwargs = _get_kwargs(
119
- authorization=authorization,
120
- )
88
+ kwargs = _get_kwargs()
121
89
 
122
90
  response = client.get_httpx_client().request(
123
91
  **kwargs,
@@ -129,64 +97,45 @@ def sync_detailed(
129
97
  def sync(
130
98
  *,
131
99
  client: Union[AuthenticatedClient, Client],
132
- authorization: Union[None, Unset, str] = UNSET,
133
100
  ) -> Optional[
134
- Union[
135
- ErrorResponse,
136
- HTTPValidationError,
137
- ResendVerificationEmailResponseResendverificationemail,
138
- ]
101
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
139
102
  ]:
140
103
  """Resend Email Verification
141
104
 
142
105
  Resend verification email to the authenticated user. Rate limited to 3 per hour.
143
106
 
144
- Args:
145
- authorization (Union[None, Unset, str]):
146
-
147
107
  Raises:
148
108
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
149
109
  httpx.TimeoutException: If the request takes longer than Client.timeout.
150
110
 
151
111
  Returns:
152
- Union[ErrorResponse, HTTPValidationError, ResendVerificationEmailResponseResendverificationemail]
112
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
153
113
  """
154
114
 
155
115
  return sync_detailed(
156
116
  client=client,
157
- authorization=authorization,
158
117
  ).parsed
159
118
 
160
119
 
161
120
  async def asyncio_detailed(
162
121
  *,
163
122
  client: Union[AuthenticatedClient, Client],
164
- authorization: Union[None, Unset, str] = UNSET,
165
123
  ) -> Response[
166
- Union[
167
- ErrorResponse,
168
- HTTPValidationError,
169
- ResendVerificationEmailResponseResendverificationemail,
170
- ]
124
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
171
125
  ]:
172
126
  """Resend Email Verification
173
127
 
174
128
  Resend verification email to the authenticated user. Rate limited to 3 per hour.
175
129
 
176
- Args:
177
- authorization (Union[None, Unset, str]):
178
-
179
130
  Raises:
180
131
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
181
132
  httpx.TimeoutException: If the request takes longer than Client.timeout.
182
133
 
183
134
  Returns:
184
- Response[Union[ErrorResponse, HTTPValidationError, ResendVerificationEmailResponseResendverificationemail]]
135
+ Response[Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]]
185
136
  """
186
137
 
187
- kwargs = _get_kwargs(
188
- authorization=authorization,
189
- )
138
+ kwargs = _get_kwargs()
190
139
 
191
140
  response = await client.get_async_httpx_client().request(**kwargs)
192
141
 
@@ -196,32 +145,23 @@ async def asyncio_detailed(
196
145
  async def asyncio(
197
146
  *,
198
147
  client: Union[AuthenticatedClient, Client],
199
- authorization: Union[None, Unset, str] = UNSET,
200
148
  ) -> Optional[
201
- Union[
202
- ErrorResponse,
203
- HTTPValidationError,
204
- ResendVerificationEmailResponseResendverificationemail,
205
- ]
149
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
206
150
  ]:
207
151
  """Resend Email Verification
208
152
 
209
153
  Resend verification email to the authenticated user. Rate limited to 3 per hour.
210
154
 
211
- Args:
212
- authorization (Union[None, Unset, str]):
213
-
214
155
  Raises:
215
156
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
216
157
  httpx.TimeoutException: If the request takes longer than Client.timeout.
217
158
 
218
159
  Returns:
219
- Union[ErrorResponse, HTTPValidationError, ResendVerificationEmailResponseResendverificationemail]
160
+ Union[ErrorResponse, ResendVerificationEmailResponseResendverificationemail]
220
161
  """
221
162
 
222
163
  return (
223
164
  await asyncio_detailed(
224
165
  client=client,
225
- authorization=authorization,
226
166
  )
227
167
  ).parsed
@@ -8,35 +8,19 @@ from ...client import AuthenticatedClient, Client
8
8
  from ...models.backup_create_request import BackupCreateRequest
9
9
  from ...models.error_response import ErrorResponse
10
10
  from ...models.http_validation_error import HTTPValidationError
11
- from ...types import UNSET, Response, Unset
11
+ from ...types import Response
12
12
 
13
13
 
14
14
  def _get_kwargs(
15
15
  graph_id: str,
16
16
  *,
17
17
  body: BackupCreateRequest,
18
- token: Union[None, Unset, str] = UNSET,
19
- authorization: Union[None, Unset, str] = UNSET,
20
18
  ) -> dict[str, Any]:
21
19
  headers: dict[str, Any] = {}
22
- if not isinstance(authorization, Unset):
23
- headers["authorization"] = authorization
24
-
25
- params: dict[str, Any] = {}
26
-
27
- json_token: Union[None, Unset, str]
28
- if isinstance(token, Unset):
29
- json_token = UNSET
30
- else:
31
- json_token = token
32
- params["token"] = json_token
33
-
34
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
35
20
 
36
21
  _kwargs: dict[str, Any] = {
37
22
  "method": "post",
38
23
  "url": f"/v1/graphs/{graph_id}/backups",
39
- "params": params,
40
24
  }
41
25
 
42
26
  _kwargs["json"] = body.to_dict()
@@ -101,8 +85,6 @@ def sync_detailed(
101
85
  *,
102
86
  client: AuthenticatedClient,
103
87
  body: BackupCreateRequest,
104
- token: Union[None, Unset, str] = UNSET,
105
- authorization: Union[None, Unset, str] = UNSET,
106
88
  ) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
107
89
  """Create Backup
108
90
 
@@ -150,9 +132,7 @@ def sync_detailed(
150
132
  Returns operation details for SSE monitoring.
151
133
 
152
134
  Args:
153
- graph_id (str): Graph database identifier
154
- token (Union[None, Unset, str]): JWT token for SSE authentication
155
- authorization (Union[None, Unset, str]):
135
+ graph_id (str):
156
136
  body (BackupCreateRequest): Request model for creating a backup.
157
137
 
158
138
  Raises:
@@ -166,8 +146,6 @@ def sync_detailed(
166
146
  kwargs = _get_kwargs(
167
147
  graph_id=graph_id,
168
148
  body=body,
169
- token=token,
170
- authorization=authorization,
171
149
  )
172
150
 
173
151
  response = client.get_httpx_client().request(
@@ -182,8 +160,6 @@ def sync(
182
160
  *,
183
161
  client: AuthenticatedClient,
184
162
  body: BackupCreateRequest,
185
- token: Union[None, Unset, str] = UNSET,
186
- authorization: Union[None, Unset, str] = UNSET,
187
163
  ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
188
164
  """Create Backup
189
165
 
@@ -231,9 +207,7 @@ def sync(
231
207
  Returns operation details for SSE monitoring.
232
208
 
233
209
  Args:
234
- graph_id (str): Graph database identifier
235
- token (Union[None, Unset, str]): JWT token for SSE authentication
236
- authorization (Union[None, Unset, str]):
210
+ graph_id (str):
237
211
  body (BackupCreateRequest): Request model for creating a backup.
238
212
 
239
213
  Raises:
@@ -248,8 +222,6 @@ def sync(
248
222
  graph_id=graph_id,
249
223
  client=client,
250
224
  body=body,
251
- token=token,
252
- authorization=authorization,
253
225
  ).parsed
254
226
 
255
227
 
@@ -258,8 +230,6 @@ async def asyncio_detailed(
258
230
  *,
259
231
  client: AuthenticatedClient,
260
232
  body: BackupCreateRequest,
261
- token: Union[None, Unset, str] = UNSET,
262
- authorization: Union[None, Unset, str] = UNSET,
263
233
  ) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
264
234
  """Create Backup
265
235
 
@@ -307,9 +277,7 @@ async def asyncio_detailed(
307
277
  Returns operation details for SSE monitoring.
308
278
 
309
279
  Args:
310
- graph_id (str): Graph database identifier
311
- token (Union[None, Unset, str]): JWT token for SSE authentication
312
- authorization (Union[None, Unset, str]):
280
+ graph_id (str):
313
281
  body (BackupCreateRequest): Request model for creating a backup.
314
282
 
315
283
  Raises:
@@ -323,8 +291,6 @@ async def asyncio_detailed(
323
291
  kwargs = _get_kwargs(
324
292
  graph_id=graph_id,
325
293
  body=body,
326
- token=token,
327
- authorization=authorization,
328
294
  )
329
295
 
330
296
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -337,8 +303,6 @@ async def asyncio(
337
303
  *,
338
304
  client: AuthenticatedClient,
339
305
  body: BackupCreateRequest,
340
- token: Union[None, Unset, str] = UNSET,
341
- authorization: Union[None, Unset, str] = UNSET,
342
306
  ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
343
307
  """Create Backup
344
308
 
@@ -386,9 +350,7 @@ async def asyncio(
386
350
  Returns operation details for SSE monitoring.
387
351
 
388
352
  Args:
389
- graph_id (str): Graph database identifier
390
- token (Union[None, Unset, str]): JWT token for SSE authentication
391
- authorization (Union[None, Unset, str]):
353
+ graph_id (str):
392
354
  body (BackupCreateRequest): Request model for creating a backup.
393
355
 
394
356
  Raises:
@@ -404,7 +366,5 @@ async def asyncio(
404
366
  graph_id=graph_id,
405
367
  client=client,
406
368
  body=body,
407
- token=token,
408
- authorization=authorization,
409
369
  )
410
370
  ).parsed