robosystems-client 0.1.16__py3-none-any.whl → 0.1.18__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 (109) hide show
  1. robosystems_client/__init__.py +15 -4
  2. robosystems_client/api/agent/auto_select_agent.py +24 -17
  3. robosystems_client/api/agent/batch_process_queries.py +24 -17
  4. robosystems_client/api/agent/execute_specific_agent.py +24 -17
  5. robosystems_client/api/agent/get_agent_metadata.py +24 -17
  6. robosystems_client/api/agent/list_agents.py +20 -18
  7. robosystems_client/api/agent/recommend_agent.py +24 -17
  8. robosystems_client/api/auth/forgot_password.py +191 -0
  9. robosystems_client/api/auth/generate_sso_token.py +18 -0
  10. robosystems_client/api/auth/get_current_auth_user.py +4 -22
  11. robosystems_client/api/auth/logout_user.py +17 -17
  12. robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
  13. robosystems_client/api/auth/resend_verification_email.py +222 -0
  14. robosystems_client/api/auth/reset_password.py +177 -0
  15. robosystems_client/api/auth/validate_reset_token.py +171 -0
  16. robosystems_client/api/auth/verify_email.py +177 -0
  17. robosystems_client/api/backup/create_backup.py +24 -17
  18. robosystems_client/api/backup/export_backup.py +24 -17
  19. robosystems_client/api/backup/get_backup_download_url.py +20 -18
  20. robosystems_client/api/backup/get_backup_stats.py +24 -17
  21. robosystems_client/api/backup/list_backups.py +20 -18
  22. robosystems_client/api/backup/restore_backup.py +24 -17
  23. robosystems_client/api/connections/create_connection.py +24 -17
  24. robosystems_client/api/connections/create_link_token.py +24 -17
  25. robosystems_client/api/connections/delete_connection.py +24 -17
  26. robosystems_client/api/connections/exchange_link_token.py +24 -17
  27. robosystems_client/api/connections/get_connection.py +24 -17
  28. robosystems_client/api/connections/get_connection_options.py +24 -17
  29. robosystems_client/api/connections/init_o_auth.py +24 -17
  30. robosystems_client/api/connections/list_connections.py +20 -18
  31. robosystems_client/api/connections/oauth_callback.py +28 -21
  32. robosystems_client/api/connections/sync_connection.py +24 -17
  33. robosystems_client/api/copy/copy_data_to_graph.py +24 -17
  34. robosystems_client/api/create/create_graph.py +24 -17
  35. robosystems_client/api/graph_analytics/get_graph_metrics.py +24 -17
  36. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -18
  37. robosystems_client/api/graph_billing/get_current_graph_bill.py +24 -17
  38. robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -18
  39. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +24 -17
  40. robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -18
  41. robosystems_client/api/graph_credits/check_credit_balance.py +20 -18
  42. robosystems_client/api/graph_credits/check_storage_limits.py +24 -17
  43. robosystems_client/api/graph_credits/get_credit_summary.py +24 -17
  44. robosystems_client/api/graph_credits/get_storage_usage.py +20 -18
  45. robosystems_client/api/graph_credits/list_credit_transactions.py +20 -18
  46. robosystems_client/api/graph_health/get_database_health.py +24 -17
  47. robosystems_client/api/graph_info/get_database_info.py +24 -17
  48. robosystems_client/api/graph_limits/get_graph_limits.py +24 -17
  49. robosystems_client/api/mcp/call_mcp_tool.py +20 -18
  50. robosystems_client/api/mcp/list_mcp_tools.py +24 -17
  51. robosystems_client/api/operations/cancel_operation.py +24 -17
  52. robosystems_client/api/operations/get_operation_status.py +24 -17
  53. robosystems_client/api/operations/stream_operation_events.py +20 -18
  54. robosystems_client/api/query/execute_cypher_query.py +20 -18
  55. robosystems_client/api/schema/export_graph_schema.py +20 -18
  56. robosystems_client/api/schema/get_graph_schema_info.py +24 -17
  57. robosystems_client/api/schema/list_schema_extensions.py +24 -17
  58. robosystems_client/api/schema/validate_schema.py +24 -17
  59. robosystems_client/api/subgraphs/create_subgraph.py +24 -17
  60. robosystems_client/api/subgraphs/delete_subgraph.py +24 -17
  61. robosystems_client/api/subgraphs/get_subgraph_info.py +24 -17
  62. robosystems_client/api/subgraphs/get_subgraph_quota.py +24 -17
  63. robosystems_client/api/subgraphs/list_subgraphs.py +24 -17
  64. robosystems_client/api/user/create_user_api_key.py +24 -17
  65. robosystems_client/api/user/get_all_credit_summaries.py +24 -17
  66. robosystems_client/api/user/get_current_user.py +24 -17
  67. robosystems_client/api/user/get_user_graphs.py +24 -17
  68. robosystems_client/api/user/list_user_api_keys.py +24 -17
  69. robosystems_client/api/user/revoke_user_api_key.py +24 -17
  70. robosystems_client/api/user/select_user_graph.py +24 -17
  71. robosystems_client/api/user/update_user.py +24 -17
  72. robosystems_client/api/user/update_user_api_key.py +24 -17
  73. robosystems_client/api/user/update_user_password.py +24 -17
  74. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -18
  75. robosystems_client/api/user_analytics/get_user_usage_overview.py +24 -17
  76. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +24 -17
  77. robosystems_client/api/user_limits/get_shared_repository_limits.py +24 -17
  78. robosystems_client/api/user_limits/get_user_limits.py +24 -17
  79. robosystems_client/api/user_limits/get_user_usage.py +24 -17
  80. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +24 -17
  81. robosystems_client/api/user_subscriptions/get_repository_credits.py +24 -17
  82. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +24 -17
  83. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -18
  84. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +24 -17
  85. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +24 -17
  86. robosystems_client/extensions/__init__.py +70 -0
  87. robosystems_client/extensions/auth_integration.py +14 -1
  88. robosystems_client/extensions/copy_client.py +32 -22
  89. robosystems_client/extensions/dataframe_utils.py +455 -0
  90. robosystems_client/extensions/extensions.py +16 -0
  91. robosystems_client/extensions/operation_client.py +43 -21
  92. robosystems_client/extensions/query_client.py +109 -12
  93. robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
  94. robosystems_client/extensions/tests/test_integration.py +1 -1
  95. robosystems_client/extensions/tests/test_token_utils.py +274 -0
  96. robosystems_client/extensions/token_utils.py +417 -0
  97. robosystems_client/extensions/utils.py +32 -2
  98. robosystems_client/models/__init__.py +16 -0
  99. robosystems_client/models/email_verification_request.py +60 -0
  100. robosystems_client/models/forgot_password_request.py +60 -0
  101. robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
  102. robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
  103. robosystems_client/models/reset_password_request.py +68 -0
  104. robosystems_client/models/reset_password_validate_response.py +82 -0
  105. robosystems_client-0.1.18.dist-info/METADATA +89 -0
  106. {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +108 -92
  107. robosystems_client-0.1.18.dist-info/licenses/LICENSE +21 -0
  108. robosystems_client-0.1.16.dist-info/METADATA +0 -302
  109. {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
@@ -0,0 +1,177 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.auth_response import AuthResponse
9
+ from ...models.error_response import ErrorResponse
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.reset_password_request import ResetPasswordRequest
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: ResetPasswordRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/v1/auth/password/reset",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
37
+ if response.status_code == 200:
38
+ response_200 = AuthResponse.from_dict(response.json())
39
+
40
+ return response_200
41
+ if response.status_code == 400:
42
+ response_400 = ErrorResponse.from_dict(response.json())
43
+
44
+ return response_400
45
+ if response.status_code == 422:
46
+ response_422 = HTTPValidationError.from_dict(response.json())
47
+
48
+ return response_422
49
+ if client.raise_on_unexpected_status:
50
+ raise errors.UnexpectedStatus(response.status_code, response.content)
51
+ else:
52
+ return None
53
+
54
+
55
+ def _build_response(
56
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
57
+ ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
58
+ return Response(
59
+ status_code=HTTPStatus(response.status_code),
60
+ content=response.content,
61
+ headers=response.headers,
62
+ parsed=_parse_response(client=client, response=response),
63
+ )
64
+
65
+
66
+ def sync_detailed(
67
+ *,
68
+ client: Union[AuthenticatedClient, Client],
69
+ body: ResetPasswordRequest,
70
+ ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
71
+ """Reset Password
72
+
73
+ Reset password with token from email. Returns JWT for auto-login.
74
+
75
+ Args:
76
+ body (ResetPasswordRequest): Reset password request model.
77
+
78
+ Raises:
79
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
80
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
81
+
82
+ Returns:
83
+ Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
84
+ """
85
+
86
+ kwargs = _get_kwargs(
87
+ body=body,
88
+ )
89
+
90
+ response = client.get_httpx_client().request(
91
+ **kwargs,
92
+ )
93
+
94
+ return _build_response(client=client, response=response)
95
+
96
+
97
+ def sync(
98
+ *,
99
+ client: Union[AuthenticatedClient, Client],
100
+ body: ResetPasswordRequest,
101
+ ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
102
+ """Reset Password
103
+
104
+ Reset password with token from email. Returns JWT for auto-login.
105
+
106
+ Args:
107
+ body (ResetPasswordRequest): Reset password request model.
108
+
109
+ Raises:
110
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
111
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
112
+
113
+ Returns:
114
+ Union[AuthResponse, ErrorResponse, HTTPValidationError]
115
+ """
116
+
117
+ return sync_detailed(
118
+ client=client,
119
+ body=body,
120
+ ).parsed
121
+
122
+
123
+ async def asyncio_detailed(
124
+ *,
125
+ client: Union[AuthenticatedClient, Client],
126
+ body: ResetPasswordRequest,
127
+ ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
128
+ """Reset Password
129
+
130
+ Reset password with token from email. Returns JWT for auto-login.
131
+
132
+ Args:
133
+ body (ResetPasswordRequest): Reset password request model.
134
+
135
+ Raises:
136
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
137
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
138
+
139
+ Returns:
140
+ Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
141
+ """
142
+
143
+ kwargs = _get_kwargs(
144
+ body=body,
145
+ )
146
+
147
+ response = await client.get_async_httpx_client().request(**kwargs)
148
+
149
+ return _build_response(client=client, response=response)
150
+
151
+
152
+ async def asyncio(
153
+ *,
154
+ client: Union[AuthenticatedClient, Client],
155
+ body: ResetPasswordRequest,
156
+ ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
157
+ """Reset Password
158
+
159
+ Reset password with token from email. Returns JWT for auto-login.
160
+
161
+ Args:
162
+ body (ResetPasswordRequest): Reset password request model.
163
+
164
+ Raises:
165
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
166
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
167
+
168
+ Returns:
169
+ Union[AuthResponse, ErrorResponse, HTTPValidationError]
170
+ """
171
+
172
+ return (
173
+ await asyncio_detailed(
174
+ client=client,
175
+ body=body,
176
+ )
177
+ ).parsed
@@ -0,0 +1,171 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.http_validation_error import HTTPValidationError
9
+ from ...models.reset_password_validate_response import ResetPasswordValidateResponse
10
+ from ...types import UNSET, Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ token: str,
16
+ ) -> dict[str, Any]:
17
+ params: dict[str, Any] = {}
18
+
19
+ params["token"] = token
20
+
21
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
+
23
+ _kwargs: dict[str, Any] = {
24
+ "method": "get",
25
+ "url": "/v1/auth/password/reset/validate",
26
+ "params": params,
27
+ }
28
+
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
+ ) -> Optional[Union[HTTPValidationError, ResetPasswordValidateResponse]]:
35
+ if response.status_code == 200:
36
+ response_200 = ResetPasswordValidateResponse.from_dict(response.json())
37
+
38
+ return response_200
39
+ if response.status_code == 422:
40
+ response_422 = HTTPValidationError.from_dict(response.json())
41
+
42
+ return response_422
43
+ if client.raise_on_unexpected_status:
44
+ raise errors.UnexpectedStatus(response.status_code, response.content)
45
+ else:
46
+ return None
47
+
48
+
49
+ def _build_response(
50
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
51
+ ) -> Response[Union[HTTPValidationError, ResetPasswordValidateResponse]]:
52
+ return Response(
53
+ status_code=HTTPStatus(response.status_code),
54
+ content=response.content,
55
+ headers=response.headers,
56
+ parsed=_parse_response(client=client, response=response),
57
+ )
58
+
59
+
60
+ def sync_detailed(
61
+ *,
62
+ client: Union[AuthenticatedClient, Client],
63
+ token: str,
64
+ ) -> Response[Union[HTTPValidationError, ResetPasswordValidateResponse]]:
65
+ """Validate Reset Token
66
+
67
+ Check if a password reset token is valid without consuming it.
68
+
69
+ Args:
70
+ token (str): Password reset token
71
+
72
+ Raises:
73
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
74
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
75
+
76
+ Returns:
77
+ Response[Union[HTTPValidationError, ResetPasswordValidateResponse]]
78
+ """
79
+
80
+ kwargs = _get_kwargs(
81
+ token=token,
82
+ )
83
+
84
+ response = client.get_httpx_client().request(
85
+ **kwargs,
86
+ )
87
+
88
+ return _build_response(client=client, response=response)
89
+
90
+
91
+ def sync(
92
+ *,
93
+ client: Union[AuthenticatedClient, Client],
94
+ token: str,
95
+ ) -> Optional[Union[HTTPValidationError, ResetPasswordValidateResponse]]:
96
+ """Validate Reset Token
97
+
98
+ Check if a password reset token is valid without consuming it.
99
+
100
+ Args:
101
+ token (str): Password reset token
102
+
103
+ Raises:
104
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
106
+
107
+ Returns:
108
+ Union[HTTPValidationError, ResetPasswordValidateResponse]
109
+ """
110
+
111
+ return sync_detailed(
112
+ client=client,
113
+ token=token,
114
+ ).parsed
115
+
116
+
117
+ async def asyncio_detailed(
118
+ *,
119
+ client: Union[AuthenticatedClient, Client],
120
+ token: str,
121
+ ) -> Response[Union[HTTPValidationError, ResetPasswordValidateResponse]]:
122
+ """Validate Reset Token
123
+
124
+ Check if a password reset token is valid without consuming it.
125
+
126
+ Args:
127
+ token (str): Password reset token
128
+
129
+ Raises:
130
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
131
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
132
+
133
+ Returns:
134
+ Response[Union[HTTPValidationError, ResetPasswordValidateResponse]]
135
+ """
136
+
137
+ kwargs = _get_kwargs(
138
+ token=token,
139
+ )
140
+
141
+ response = await client.get_async_httpx_client().request(**kwargs)
142
+
143
+ return _build_response(client=client, response=response)
144
+
145
+
146
+ async def asyncio(
147
+ *,
148
+ client: Union[AuthenticatedClient, Client],
149
+ token: str,
150
+ ) -> Optional[Union[HTTPValidationError, ResetPasswordValidateResponse]]:
151
+ """Validate Reset Token
152
+
153
+ Check if a password reset token is valid without consuming it.
154
+
155
+ Args:
156
+ token (str): Password reset token
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Union[HTTPValidationError, ResetPasswordValidateResponse]
164
+ """
165
+
166
+ return (
167
+ await asyncio_detailed(
168
+ client=client,
169
+ token=token,
170
+ )
171
+ ).parsed
@@ -0,0 +1,177 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.auth_response import AuthResponse
9
+ from ...models.email_verification_request import EmailVerificationRequest
10
+ from ...models.error_response import ErrorResponse
11
+ from ...models.http_validation_error import HTTPValidationError
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: EmailVerificationRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/v1/auth/email/verify",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
37
+ if response.status_code == 200:
38
+ response_200 = AuthResponse.from_dict(response.json())
39
+
40
+ return response_200
41
+ if response.status_code == 400:
42
+ response_400 = ErrorResponse.from_dict(response.json())
43
+
44
+ return response_400
45
+ if response.status_code == 422:
46
+ response_422 = HTTPValidationError.from_dict(response.json())
47
+
48
+ return response_422
49
+ if client.raise_on_unexpected_status:
50
+ raise errors.UnexpectedStatus(response.status_code, response.content)
51
+ else:
52
+ return None
53
+
54
+
55
+ def _build_response(
56
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
57
+ ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
58
+ return Response(
59
+ status_code=HTTPStatus(response.status_code),
60
+ content=response.content,
61
+ headers=response.headers,
62
+ parsed=_parse_response(client=client, response=response),
63
+ )
64
+
65
+
66
+ def sync_detailed(
67
+ *,
68
+ client: Union[AuthenticatedClient, Client],
69
+ body: EmailVerificationRequest,
70
+ ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
71
+ """Verify Email
72
+
73
+ Verify email address with token from email link. Returns JWT for auto-login.
74
+
75
+ Args:
76
+ body (EmailVerificationRequest): Email verification request model.
77
+
78
+ Raises:
79
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
80
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
81
+
82
+ Returns:
83
+ Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
84
+ """
85
+
86
+ kwargs = _get_kwargs(
87
+ body=body,
88
+ )
89
+
90
+ response = client.get_httpx_client().request(
91
+ **kwargs,
92
+ )
93
+
94
+ return _build_response(client=client, response=response)
95
+
96
+
97
+ def sync(
98
+ *,
99
+ client: Union[AuthenticatedClient, Client],
100
+ body: EmailVerificationRequest,
101
+ ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
102
+ """Verify Email
103
+
104
+ Verify email address with token from email link. Returns JWT for auto-login.
105
+
106
+ Args:
107
+ body (EmailVerificationRequest): Email verification request model.
108
+
109
+ Raises:
110
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
111
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
112
+
113
+ Returns:
114
+ Union[AuthResponse, ErrorResponse, HTTPValidationError]
115
+ """
116
+
117
+ return sync_detailed(
118
+ client=client,
119
+ body=body,
120
+ ).parsed
121
+
122
+
123
+ async def asyncio_detailed(
124
+ *,
125
+ client: Union[AuthenticatedClient, Client],
126
+ body: EmailVerificationRequest,
127
+ ) -> Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
128
+ """Verify Email
129
+
130
+ Verify email address with token from email link. Returns JWT for auto-login.
131
+
132
+ Args:
133
+ body (EmailVerificationRequest): Email verification request model.
134
+
135
+ Raises:
136
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
137
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
138
+
139
+ Returns:
140
+ Response[Union[AuthResponse, ErrorResponse, HTTPValidationError]]
141
+ """
142
+
143
+ kwargs = _get_kwargs(
144
+ body=body,
145
+ )
146
+
147
+ response = await client.get_async_httpx_client().request(**kwargs)
148
+
149
+ return _build_response(client=client, response=response)
150
+
151
+
152
+ async def asyncio(
153
+ *,
154
+ client: Union[AuthenticatedClient, Client],
155
+ body: EmailVerificationRequest,
156
+ ) -> Optional[Union[AuthResponse, ErrorResponse, HTTPValidationError]]:
157
+ """Verify Email
158
+
159
+ Verify email address with token from email link. Returns JWT for auto-login.
160
+
161
+ Args:
162
+ body (EmailVerificationRequest): Email verification request model.
163
+
164
+ Raises:
165
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
166
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
167
+
168
+ Returns:
169
+ Union[AuthResponse, ErrorResponse, HTTPValidationError]
170
+ """
171
+
172
+ return (
173
+ await asyncio_detailed(
174
+ client=client,
175
+ body=body,
176
+ )
177
+ ).parsed
@@ -15,21 +15,28 @@ def _get_kwargs(
15
15
  graph_id: str,
16
16
  *,
17
17
  body: BackupCreateRequest,
18
+ token: Union[None, Unset, str] = UNSET,
18
19
  authorization: Union[None, Unset, str] = UNSET,
19
- auth_token: Union[None, Unset, str] = UNSET,
20
20
  ) -> dict[str, Any]:
21
21
  headers: dict[str, Any] = {}
22
22
  if not isinstance(authorization, Unset):
23
23
  headers["authorization"] = authorization
24
24
 
25
- cookies = {}
26
- if auth_token is not UNSET:
27
- cookies["auth-token"] = auth_token
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}
28
35
 
29
36
  _kwargs: dict[str, Any] = {
30
37
  "method": "post",
31
38
  "url": f"/v1/{graph_id}/backups",
32
- "cookies": cookies,
39
+ "params": params,
33
40
  }
34
41
 
35
42
  _kwargs["json"] = body.to_dict()
@@ -88,8 +95,8 @@ def sync_detailed(
88
95
  *,
89
96
  client: AuthenticatedClient,
90
97
  body: BackupCreateRequest,
98
+ token: Union[None, Unset, str] = UNSET,
91
99
  authorization: Union[None, Unset, str] = UNSET,
92
- auth_token: Union[None, Unset, str] = UNSET,
93
100
  ) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
94
101
  """Create Backup
95
102
 
@@ -138,8 +145,8 @@ def sync_detailed(
138
145
 
139
146
  Args:
140
147
  graph_id (str): Graph database identifier
148
+ token (Union[None, Unset, str]): JWT token for SSE authentication
141
149
  authorization (Union[None, Unset, str]):
142
- auth_token (Union[None, Unset, str]):
143
150
  body (BackupCreateRequest): Request model for creating a backup.
144
151
 
145
152
  Raises:
@@ -153,8 +160,8 @@ def sync_detailed(
153
160
  kwargs = _get_kwargs(
154
161
  graph_id=graph_id,
155
162
  body=body,
163
+ token=token,
156
164
  authorization=authorization,
157
- auth_token=auth_token,
158
165
  )
159
166
 
160
167
  response = client.get_httpx_client().request(
@@ -169,8 +176,8 @@ def sync(
169
176
  *,
170
177
  client: AuthenticatedClient,
171
178
  body: BackupCreateRequest,
179
+ token: Union[None, Unset, str] = UNSET,
172
180
  authorization: Union[None, Unset, str] = UNSET,
173
- auth_token: Union[None, Unset, str] = UNSET,
174
181
  ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
175
182
  """Create Backup
176
183
 
@@ -219,8 +226,8 @@ def sync(
219
226
 
220
227
  Args:
221
228
  graph_id (str): Graph database identifier
229
+ token (Union[None, Unset, str]): JWT token for SSE authentication
222
230
  authorization (Union[None, Unset, str]):
223
- auth_token (Union[None, Unset, str]):
224
231
  body (BackupCreateRequest): Request model for creating a backup.
225
232
 
226
233
  Raises:
@@ -235,8 +242,8 @@ def sync(
235
242
  graph_id=graph_id,
236
243
  client=client,
237
244
  body=body,
245
+ token=token,
238
246
  authorization=authorization,
239
- auth_token=auth_token,
240
247
  ).parsed
241
248
 
242
249
 
@@ -245,8 +252,8 @@ async def asyncio_detailed(
245
252
  *,
246
253
  client: AuthenticatedClient,
247
254
  body: BackupCreateRequest,
255
+ token: Union[None, Unset, str] = UNSET,
248
256
  authorization: Union[None, Unset, str] = UNSET,
249
- auth_token: Union[None, Unset, str] = UNSET,
250
257
  ) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
251
258
  """Create Backup
252
259
 
@@ -295,8 +302,8 @@ async def asyncio_detailed(
295
302
 
296
303
  Args:
297
304
  graph_id (str): Graph database identifier
305
+ token (Union[None, Unset, str]): JWT token for SSE authentication
298
306
  authorization (Union[None, Unset, str]):
299
- auth_token (Union[None, Unset, str]):
300
307
  body (BackupCreateRequest): Request model for creating a backup.
301
308
 
302
309
  Raises:
@@ -310,8 +317,8 @@ async def asyncio_detailed(
310
317
  kwargs = _get_kwargs(
311
318
  graph_id=graph_id,
312
319
  body=body,
320
+ token=token,
313
321
  authorization=authorization,
314
- auth_token=auth_token,
315
322
  )
316
323
 
317
324
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -324,8 +331,8 @@ async def asyncio(
324
331
  *,
325
332
  client: AuthenticatedClient,
326
333
  body: BackupCreateRequest,
334
+ token: Union[None, Unset, str] = UNSET,
327
335
  authorization: Union[None, Unset, str] = UNSET,
328
- auth_token: Union[None, Unset, str] = UNSET,
329
336
  ) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
330
337
  """Create Backup
331
338
 
@@ -374,8 +381,8 @@ async def asyncio(
374
381
 
375
382
  Args:
376
383
  graph_id (str): Graph database identifier
384
+ token (Union[None, Unset, str]): JWT token for SSE authentication
377
385
  authorization (Union[None, Unset, str]):
378
- auth_token (Union[None, Unset, str]):
379
386
  body (BackupCreateRequest): Request model for creating a backup.
380
387
 
381
388
  Raises:
@@ -391,7 +398,7 @@ async def asyncio(
391
398
  graph_id=graph_id,
392
399
  client=client,
393
400
  body=body,
401
+ token=token,
394
402
  authorization=authorization,
395
- auth_token=auth_token,
396
403
  )
397
404
  ).parsed