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.
- robosystems_client/__init__.py +15 -4
- robosystems_client/api/agent/auto_select_agent.py +24 -17
- robosystems_client/api/agent/batch_process_queries.py +24 -17
- robosystems_client/api/agent/execute_specific_agent.py +24 -17
- robosystems_client/api/agent/get_agent_metadata.py +24 -17
- robosystems_client/api/agent/list_agents.py +20 -18
- robosystems_client/api/agent/recommend_agent.py +24 -17
- robosystems_client/api/auth/forgot_password.py +191 -0
- robosystems_client/api/auth/generate_sso_token.py +18 -0
- robosystems_client/api/auth/get_current_auth_user.py +4 -22
- robosystems_client/api/auth/logout_user.py +17 -17
- robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
- robosystems_client/api/auth/resend_verification_email.py +222 -0
- robosystems_client/api/auth/reset_password.py +177 -0
- robosystems_client/api/auth/validate_reset_token.py +171 -0
- robosystems_client/api/auth/verify_email.py +177 -0
- robosystems_client/api/backup/create_backup.py +24 -17
- robosystems_client/api/backup/export_backup.py +24 -17
- robosystems_client/api/backup/get_backup_download_url.py +20 -18
- robosystems_client/api/backup/get_backup_stats.py +24 -17
- robosystems_client/api/backup/list_backups.py +20 -18
- robosystems_client/api/backup/restore_backup.py +24 -17
- robosystems_client/api/connections/create_connection.py +24 -17
- robosystems_client/api/connections/create_link_token.py +24 -17
- robosystems_client/api/connections/delete_connection.py +24 -17
- robosystems_client/api/connections/exchange_link_token.py +24 -17
- robosystems_client/api/connections/get_connection.py +24 -17
- robosystems_client/api/connections/get_connection_options.py +24 -17
- robosystems_client/api/connections/init_o_auth.py +24 -17
- robosystems_client/api/connections/list_connections.py +20 -18
- robosystems_client/api/connections/oauth_callback.py +28 -21
- robosystems_client/api/connections/sync_connection.py +24 -17
- robosystems_client/api/copy/copy_data_to_graph.py +24 -17
- robosystems_client/api/create/create_graph.py +24 -17
- robosystems_client/api/graph_analytics/get_graph_metrics.py +24 -17
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -18
- robosystems_client/api/graph_billing/get_current_graph_bill.py +24 -17
- robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -18
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +24 -17
- robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -18
- robosystems_client/api/graph_credits/check_credit_balance.py +20 -18
- robosystems_client/api/graph_credits/check_storage_limits.py +24 -17
- robosystems_client/api/graph_credits/get_credit_summary.py +24 -17
- robosystems_client/api/graph_credits/get_storage_usage.py +20 -18
- robosystems_client/api/graph_credits/list_credit_transactions.py +20 -18
- robosystems_client/api/graph_health/get_database_health.py +24 -17
- robosystems_client/api/graph_info/get_database_info.py +24 -17
- robosystems_client/api/graph_limits/get_graph_limits.py +24 -17
- robosystems_client/api/mcp/call_mcp_tool.py +20 -18
- robosystems_client/api/mcp/list_mcp_tools.py +24 -17
- robosystems_client/api/operations/cancel_operation.py +24 -17
- robosystems_client/api/operations/get_operation_status.py +24 -17
- robosystems_client/api/operations/stream_operation_events.py +20 -18
- robosystems_client/api/query/execute_cypher_query.py +20 -18
- robosystems_client/api/schema/export_graph_schema.py +20 -18
- robosystems_client/api/schema/get_graph_schema_info.py +24 -17
- robosystems_client/api/schema/list_schema_extensions.py +24 -17
- robosystems_client/api/schema/validate_schema.py +24 -17
- robosystems_client/api/subgraphs/create_subgraph.py +24 -17
- robosystems_client/api/subgraphs/delete_subgraph.py +24 -17
- robosystems_client/api/subgraphs/get_subgraph_info.py +24 -17
- robosystems_client/api/subgraphs/get_subgraph_quota.py +24 -17
- robosystems_client/api/subgraphs/list_subgraphs.py +24 -17
- robosystems_client/api/user/create_user_api_key.py +24 -17
- robosystems_client/api/user/get_all_credit_summaries.py +24 -17
- robosystems_client/api/user/get_current_user.py +24 -17
- robosystems_client/api/user/get_user_graphs.py +24 -17
- robosystems_client/api/user/list_user_api_keys.py +24 -17
- robosystems_client/api/user/revoke_user_api_key.py +24 -17
- robosystems_client/api/user/select_user_graph.py +24 -17
- robosystems_client/api/user/update_user.py +24 -17
- robosystems_client/api/user/update_user_api_key.py +24 -17
- robosystems_client/api/user/update_user_password.py +24 -17
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -18
- robosystems_client/api/user_analytics/get_user_usage_overview.py +24 -17
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +24 -17
- robosystems_client/api/user_limits/get_shared_repository_limits.py +24 -17
- robosystems_client/api/user_limits/get_user_limits.py +24 -17
- robosystems_client/api/user_limits/get_user_usage.py +24 -17
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +24 -17
- robosystems_client/api/user_subscriptions/get_repository_credits.py +24 -17
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +24 -17
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -18
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +24 -17
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +24 -17
- robosystems_client/extensions/__init__.py +70 -0
- robosystems_client/extensions/auth_integration.py +14 -1
- robosystems_client/extensions/copy_client.py +32 -22
- robosystems_client/extensions/dataframe_utils.py +455 -0
- robosystems_client/extensions/extensions.py +16 -0
- robosystems_client/extensions/operation_client.py +43 -21
- robosystems_client/extensions/query_client.py +109 -12
- robosystems_client/extensions/tests/test_dataframe_utils.py +334 -0
- robosystems_client/extensions/tests/test_integration.py +1 -1
- robosystems_client/extensions/tests/test_token_utils.py +274 -0
- robosystems_client/extensions/token_utils.py +417 -0
- robosystems_client/extensions/utils.py +32 -2
- robosystems_client/models/__init__.py +16 -0
- robosystems_client/models/email_verification_request.py +60 -0
- robosystems_client/models/forgot_password_request.py +60 -0
- robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
- robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
- robosystems_client/models/reset_password_request.py +68 -0
- robosystems_client/models/reset_password_validate_response.py +82 -0
- robosystems_client-0.1.18.dist-info/METADATA +89 -0
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +108 -92
- robosystems_client-0.1.18.dist-info/licenses/LICENSE +21 -0
- robosystems_client-0.1.16.dist-info/METADATA +0 -302
- {robosystems_client-0.1.16.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
|
@@ -12,21 +12,28 @@ from ...types import UNSET, Response, Unset
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
+
token: Union[None, Unset, str] = UNSET,
|
|
15
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
16
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
if not isinstance(authorization, Unset):
|
|
20
20
|
headers["authorization"] = authorization
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
params: dict[str, Any] = {}
|
|
23
|
+
|
|
24
|
+
json_token: Union[None, Unset, str]
|
|
25
|
+
if isinstance(token, Unset):
|
|
26
|
+
json_token = UNSET
|
|
27
|
+
else:
|
|
28
|
+
json_token = token
|
|
29
|
+
params["token"] = json_token
|
|
30
|
+
|
|
31
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
25
32
|
|
|
26
33
|
_kwargs: dict[str, Any] = {
|
|
27
34
|
"method": "get",
|
|
28
35
|
"url": "/v1/user/subscriptions/shared-repositories/credits",
|
|
29
|
-
"
|
|
36
|
+
"params": params,
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
_kwargs["headers"] = headers
|
|
@@ -70,16 +77,16 @@ def _build_response(
|
|
|
70
77
|
def sync_detailed(
|
|
71
78
|
*,
|
|
72
79
|
client: AuthenticatedClient,
|
|
80
|
+
token: Union[None, Unset, str] = UNSET,
|
|
73
81
|
authorization: Union[None, Unset, str] = UNSET,
|
|
74
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
75
82
|
) -> Response[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
76
83
|
"""Get Credit Balances
|
|
77
84
|
|
|
78
85
|
Retrieve credit balances for all shared repository subscriptions
|
|
79
86
|
|
|
80
87
|
Args:
|
|
88
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
81
89
|
authorization (Union[None, Unset, str]):
|
|
82
|
-
auth_token (Union[None, Unset, str]):
|
|
83
90
|
|
|
84
91
|
Raises:
|
|
85
92
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -90,8 +97,8 @@ def sync_detailed(
|
|
|
90
97
|
"""
|
|
91
98
|
|
|
92
99
|
kwargs = _get_kwargs(
|
|
100
|
+
token=token,
|
|
93
101
|
authorization=authorization,
|
|
94
|
-
auth_token=auth_token,
|
|
95
102
|
)
|
|
96
103
|
|
|
97
104
|
response = client.get_httpx_client().request(
|
|
@@ -104,16 +111,16 @@ def sync_detailed(
|
|
|
104
111
|
def sync(
|
|
105
112
|
*,
|
|
106
113
|
client: AuthenticatedClient,
|
|
114
|
+
token: Union[None, Unset, str] = UNSET,
|
|
107
115
|
authorization: Union[None, Unset, str] = UNSET,
|
|
108
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
109
116
|
) -> Optional[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
110
117
|
"""Get Credit Balances
|
|
111
118
|
|
|
112
119
|
Retrieve credit balances for all shared repository subscriptions
|
|
113
120
|
|
|
114
121
|
Args:
|
|
122
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
115
123
|
authorization (Union[None, Unset, str]):
|
|
116
|
-
auth_token (Union[None, Unset, str]):
|
|
117
124
|
|
|
118
125
|
Raises:
|
|
119
126
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -125,24 +132,24 @@ def sync(
|
|
|
125
132
|
|
|
126
133
|
return sync_detailed(
|
|
127
134
|
client=client,
|
|
135
|
+
token=token,
|
|
128
136
|
authorization=authorization,
|
|
129
|
-
auth_token=auth_token,
|
|
130
137
|
).parsed
|
|
131
138
|
|
|
132
139
|
|
|
133
140
|
async def asyncio_detailed(
|
|
134
141
|
*,
|
|
135
142
|
client: AuthenticatedClient,
|
|
143
|
+
token: Union[None, Unset, str] = UNSET,
|
|
136
144
|
authorization: Union[None, Unset, str] = UNSET,
|
|
137
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
138
145
|
) -> Response[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
139
146
|
"""Get Credit Balances
|
|
140
147
|
|
|
141
148
|
Retrieve credit balances for all shared repository subscriptions
|
|
142
149
|
|
|
143
150
|
Args:
|
|
151
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
144
152
|
authorization (Union[None, Unset, str]):
|
|
145
|
-
auth_token (Union[None, Unset, str]):
|
|
146
153
|
|
|
147
154
|
Raises:
|
|
148
155
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -153,8 +160,8 @@ async def asyncio_detailed(
|
|
|
153
160
|
"""
|
|
154
161
|
|
|
155
162
|
kwargs = _get_kwargs(
|
|
163
|
+
token=token,
|
|
156
164
|
authorization=authorization,
|
|
157
|
-
auth_token=auth_token,
|
|
158
165
|
)
|
|
159
166
|
|
|
160
167
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -165,16 +172,16 @@ async def asyncio_detailed(
|
|
|
165
172
|
async def asyncio(
|
|
166
173
|
*,
|
|
167
174
|
client: AuthenticatedClient,
|
|
175
|
+
token: Union[None, Unset, str] = UNSET,
|
|
168
176
|
authorization: Union[None, Unset, str] = UNSET,
|
|
169
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
170
177
|
) -> Optional[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
171
178
|
"""Get Credit Balances
|
|
172
179
|
|
|
173
180
|
Retrieve credit balances for all shared repository subscriptions
|
|
174
181
|
|
|
175
182
|
Args:
|
|
183
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
176
184
|
authorization (Union[None, Unset, str]):
|
|
177
|
-
auth_token (Union[None, Unset, str]):
|
|
178
185
|
|
|
179
186
|
Raises:
|
|
180
187
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -187,7 +194,7 @@ async def asyncio(
|
|
|
187
194
|
return (
|
|
188
195
|
await asyncio_detailed(
|
|
189
196
|
client=client,
|
|
197
|
+
token=token,
|
|
190
198
|
authorization=authorization,
|
|
191
|
-
auth_token=auth_token,
|
|
192
199
|
)
|
|
193
200
|
).parsed
|
|
@@ -13,28 +13,30 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
15
|
active_only: Union[Unset, bool] = True,
|
|
16
|
+
token: Union[None, Unset, str] = UNSET,
|
|
16
17
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
18
18
|
) -> dict[str, Any]:
|
|
19
19
|
headers: dict[str, Any] = {}
|
|
20
20
|
if not isinstance(authorization, Unset):
|
|
21
21
|
headers["authorization"] = authorization
|
|
22
22
|
|
|
23
|
-
cookies = {}
|
|
24
|
-
if auth_token is not UNSET:
|
|
25
|
-
cookies["auth-token"] = auth_token
|
|
26
|
-
|
|
27
23
|
params: dict[str, Any] = {}
|
|
28
24
|
|
|
29
25
|
params["active_only"] = active_only
|
|
30
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
|
+
|
|
31
34
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
32
35
|
|
|
33
36
|
_kwargs: dict[str, Any] = {
|
|
34
37
|
"method": "get",
|
|
35
38
|
"url": "/v1/user/subscriptions/shared-repositories",
|
|
36
39
|
"params": params,
|
|
37
|
-
"cookies": cookies,
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
_kwargs["headers"] = headers
|
|
@@ -79,8 +81,8 @@ def sync_detailed(
|
|
|
79
81
|
*,
|
|
80
82
|
client: AuthenticatedClient,
|
|
81
83
|
active_only: Union[Unset, bool] = True,
|
|
84
|
+
token: Union[None, Unset, str] = UNSET,
|
|
82
85
|
authorization: Union[None, Unset, str] = UNSET,
|
|
83
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
84
86
|
) -> Response[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
85
87
|
"""Get User Subscriptions
|
|
86
88
|
|
|
@@ -88,8 +90,8 @@ def sync_detailed(
|
|
|
88
90
|
|
|
89
91
|
Args:
|
|
90
92
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
93
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
91
94
|
authorization (Union[None, Unset, str]):
|
|
92
|
-
auth_token (Union[None, Unset, str]):
|
|
93
95
|
|
|
94
96
|
Raises:
|
|
95
97
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -101,8 +103,8 @@ def sync_detailed(
|
|
|
101
103
|
|
|
102
104
|
kwargs = _get_kwargs(
|
|
103
105
|
active_only=active_only,
|
|
106
|
+
token=token,
|
|
104
107
|
authorization=authorization,
|
|
105
|
-
auth_token=auth_token,
|
|
106
108
|
)
|
|
107
109
|
|
|
108
110
|
response = client.get_httpx_client().request(
|
|
@@ -116,8 +118,8 @@ def sync(
|
|
|
116
118
|
*,
|
|
117
119
|
client: AuthenticatedClient,
|
|
118
120
|
active_only: Union[Unset, bool] = True,
|
|
121
|
+
token: Union[None, Unset, str] = UNSET,
|
|
119
122
|
authorization: Union[None, Unset, str] = UNSET,
|
|
120
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
121
123
|
) -> Optional[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
122
124
|
"""Get User Subscriptions
|
|
123
125
|
|
|
@@ -125,8 +127,8 @@ def sync(
|
|
|
125
127
|
|
|
126
128
|
Args:
|
|
127
129
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
130
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
128
131
|
authorization (Union[None, Unset, str]):
|
|
129
|
-
auth_token (Union[None, Unset, str]):
|
|
130
132
|
|
|
131
133
|
Raises:
|
|
132
134
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -139,8 +141,8 @@ def sync(
|
|
|
139
141
|
return sync_detailed(
|
|
140
142
|
client=client,
|
|
141
143
|
active_only=active_only,
|
|
144
|
+
token=token,
|
|
142
145
|
authorization=authorization,
|
|
143
|
-
auth_token=auth_token,
|
|
144
146
|
).parsed
|
|
145
147
|
|
|
146
148
|
|
|
@@ -148,8 +150,8 @@ async def asyncio_detailed(
|
|
|
148
150
|
*,
|
|
149
151
|
client: AuthenticatedClient,
|
|
150
152
|
active_only: Union[Unset, bool] = True,
|
|
153
|
+
token: Union[None, Unset, str] = UNSET,
|
|
151
154
|
authorization: Union[None, Unset, str] = UNSET,
|
|
152
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
153
155
|
) -> Response[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
154
156
|
"""Get User Subscriptions
|
|
155
157
|
|
|
@@ -157,8 +159,8 @@ async def asyncio_detailed(
|
|
|
157
159
|
|
|
158
160
|
Args:
|
|
159
161
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
162
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
163
|
authorization (Union[None, Unset, str]):
|
|
161
|
-
auth_token (Union[None, Unset, str]):
|
|
162
164
|
|
|
163
165
|
Raises:
|
|
164
166
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -170,8 +172,8 @@ async def asyncio_detailed(
|
|
|
170
172
|
|
|
171
173
|
kwargs = _get_kwargs(
|
|
172
174
|
active_only=active_only,
|
|
175
|
+
token=token,
|
|
173
176
|
authorization=authorization,
|
|
174
|
-
auth_token=auth_token,
|
|
175
177
|
)
|
|
176
178
|
|
|
177
179
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -183,8 +185,8 @@ async def asyncio(
|
|
|
183
185
|
*,
|
|
184
186
|
client: AuthenticatedClient,
|
|
185
187
|
active_only: Union[Unset, bool] = True,
|
|
188
|
+
token: Union[None, Unset, str] = UNSET,
|
|
186
189
|
authorization: Union[None, Unset, str] = UNSET,
|
|
187
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
188
190
|
) -> Optional[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
189
191
|
"""Get User Subscriptions
|
|
190
192
|
|
|
@@ -192,8 +194,8 @@ async def asyncio(
|
|
|
192
194
|
|
|
193
195
|
Args:
|
|
194
196
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
197
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
195
198
|
authorization (Union[None, Unset, str]):
|
|
196
|
-
auth_token (Union[None, Unset, str]):
|
|
197
199
|
|
|
198
200
|
Raises:
|
|
199
201
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -207,7 +209,7 @@ async def asyncio(
|
|
|
207
209
|
await asyncio_detailed(
|
|
208
210
|
client=client,
|
|
209
211
|
active_only=active_only,
|
|
212
|
+
token=token,
|
|
210
213
|
authorization=authorization,
|
|
211
|
-
auth_token=auth_token,
|
|
212
214
|
)
|
|
213
215
|
).parsed
|
|
@@ -14,21 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
16
|
body: SubscriptionRequest,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
19
|
) -> dict[str, Any]:
|
|
20
20
|
headers: dict[str, Any] = {}
|
|
21
21
|
if not isinstance(authorization, Unset):
|
|
22
22
|
headers["authorization"] = authorization
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
json_token: Union[None, Unset, str]
|
|
27
|
+
if isinstance(token, Unset):
|
|
28
|
+
json_token = UNSET
|
|
29
|
+
else:
|
|
30
|
+
json_token = token
|
|
31
|
+
params["token"] = json_token
|
|
32
|
+
|
|
33
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
27
34
|
|
|
28
35
|
_kwargs: dict[str, Any] = {
|
|
29
36
|
"method": "post",
|
|
30
37
|
"url": "/v1/user/subscriptions/shared-repositories/subscribe",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["json"] = body.to_dict()
|
|
@@ -80,16 +87,16 @@ def sync_detailed(
|
|
|
80
87
|
*,
|
|
81
88
|
client: AuthenticatedClient,
|
|
82
89
|
body: SubscriptionRequest,
|
|
90
|
+
token: Union[None, Unset, str] = UNSET,
|
|
83
91
|
authorization: Union[None, Unset, str] = UNSET,
|
|
84
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
85
92
|
) -> Response[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
86
93
|
"""Subscribe to Shared Repository
|
|
87
94
|
|
|
88
95
|
Create a new subscription to a shared repository add-on with specified tier
|
|
89
96
|
|
|
90
97
|
Args:
|
|
98
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
91
99
|
authorization (Union[None, Unset, str]):
|
|
92
|
-
auth_token (Union[None, Unset, str]):
|
|
93
100
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
94
101
|
|
|
95
102
|
Raises:
|
|
@@ -102,8 +109,8 @@ def sync_detailed(
|
|
|
102
109
|
|
|
103
110
|
kwargs = _get_kwargs(
|
|
104
111
|
body=body,
|
|
112
|
+
token=token,
|
|
105
113
|
authorization=authorization,
|
|
106
|
-
auth_token=auth_token,
|
|
107
114
|
)
|
|
108
115
|
|
|
109
116
|
response = client.get_httpx_client().request(
|
|
@@ -117,16 +124,16 @@ def sync(
|
|
|
117
124
|
*,
|
|
118
125
|
client: AuthenticatedClient,
|
|
119
126
|
body: SubscriptionRequest,
|
|
127
|
+
token: Union[None, Unset, str] = UNSET,
|
|
120
128
|
authorization: Union[None, Unset, str] = UNSET,
|
|
121
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
122
129
|
) -> Optional[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
123
130
|
"""Subscribe to Shared Repository
|
|
124
131
|
|
|
125
132
|
Create a new subscription to a shared repository add-on with specified tier
|
|
126
133
|
|
|
127
134
|
Args:
|
|
135
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
128
136
|
authorization (Union[None, Unset, str]):
|
|
129
|
-
auth_token (Union[None, Unset, str]):
|
|
130
137
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
131
138
|
|
|
132
139
|
Raises:
|
|
@@ -140,8 +147,8 @@ def sync(
|
|
|
140
147
|
return sync_detailed(
|
|
141
148
|
client=client,
|
|
142
149
|
body=body,
|
|
150
|
+
token=token,
|
|
143
151
|
authorization=authorization,
|
|
144
|
-
auth_token=auth_token,
|
|
145
152
|
).parsed
|
|
146
153
|
|
|
147
154
|
|
|
@@ -149,16 +156,16 @@ async def asyncio_detailed(
|
|
|
149
156
|
*,
|
|
150
157
|
client: AuthenticatedClient,
|
|
151
158
|
body: SubscriptionRequest,
|
|
159
|
+
token: Union[None, Unset, str] = UNSET,
|
|
152
160
|
authorization: Union[None, Unset, str] = UNSET,
|
|
153
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
154
161
|
) -> Response[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
155
162
|
"""Subscribe to Shared Repository
|
|
156
163
|
|
|
157
164
|
Create a new subscription to a shared repository add-on with specified tier
|
|
158
165
|
|
|
159
166
|
Args:
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
168
|
authorization (Union[None, Unset, str]):
|
|
161
|
-
auth_token (Union[None, Unset, str]):
|
|
162
169
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
163
170
|
|
|
164
171
|
Raises:
|
|
@@ -171,8 +178,8 @@ async def asyncio_detailed(
|
|
|
171
178
|
|
|
172
179
|
kwargs = _get_kwargs(
|
|
173
180
|
body=body,
|
|
181
|
+
token=token,
|
|
174
182
|
authorization=authorization,
|
|
175
|
-
auth_token=auth_token,
|
|
176
183
|
)
|
|
177
184
|
|
|
178
185
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -184,16 +191,16 @@ async def asyncio(
|
|
|
184
191
|
*,
|
|
185
192
|
client: AuthenticatedClient,
|
|
186
193
|
body: SubscriptionRequest,
|
|
194
|
+
token: Union[None, Unset, str] = UNSET,
|
|
187
195
|
authorization: Union[None, Unset, str] = UNSET,
|
|
188
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
189
196
|
) -> Optional[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
190
197
|
"""Subscribe to Shared Repository
|
|
191
198
|
|
|
192
199
|
Create a new subscription to a shared repository add-on with specified tier
|
|
193
200
|
|
|
194
201
|
Args:
|
|
202
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
195
203
|
authorization (Union[None, Unset, str]):
|
|
196
|
-
auth_token (Union[None, Unset, str]):
|
|
197
204
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
198
205
|
|
|
199
206
|
Raises:
|
|
@@ -208,7 +215,7 @@ async def asyncio(
|
|
|
208
215
|
await asyncio_detailed(
|
|
209
216
|
client=client,
|
|
210
217
|
body=body,
|
|
218
|
+
token=token,
|
|
211
219
|
authorization=authorization,
|
|
212
|
-
auth_token=auth_token,
|
|
213
220
|
)
|
|
214
221
|
).parsed
|
|
@@ -14,21 +14,28 @@ def _get_kwargs(
|
|
|
14
14
|
subscription_id: str,
|
|
15
15
|
*,
|
|
16
16
|
body: TierUpgradeRequest,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
19
|
) -> dict[str, Any]:
|
|
20
20
|
headers: dict[str, Any] = {}
|
|
21
21
|
if not isinstance(authorization, Unset):
|
|
22
22
|
headers["authorization"] = authorization
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
json_token: Union[None, Unset, str]
|
|
27
|
+
if isinstance(token, Unset):
|
|
28
|
+
json_token = UNSET
|
|
29
|
+
else:
|
|
30
|
+
json_token = token
|
|
31
|
+
params["token"] = json_token
|
|
32
|
+
|
|
33
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
27
34
|
|
|
28
35
|
_kwargs: dict[str, Any] = {
|
|
29
36
|
"method": "put",
|
|
30
37
|
"url": f"/v1/user/subscriptions/shared-repositories/{subscription_id}/upgrade",
|
|
31
|
-
"
|
|
38
|
+
"params": params,
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
_kwargs["json"] = body.to_dict()
|
|
@@ -83,8 +90,8 @@ def sync_detailed(
|
|
|
83
90
|
*,
|
|
84
91
|
client: AuthenticatedClient,
|
|
85
92
|
body: TierUpgradeRequest,
|
|
93
|
+
token: Union[None, Unset, str] = UNSET,
|
|
86
94
|
authorization: Union[None, Unset, str] = UNSET,
|
|
87
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
88
95
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
89
96
|
"""Upgrade Subscription Tier
|
|
90
97
|
|
|
@@ -92,8 +99,8 @@ def sync_detailed(
|
|
|
92
99
|
|
|
93
100
|
Args:
|
|
94
101
|
subscription_id (str):
|
|
102
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
95
103
|
authorization (Union[None, Unset, str]):
|
|
96
|
-
auth_token (Union[None, Unset, str]):
|
|
97
104
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
98
105
|
|
|
99
106
|
Raises:
|
|
@@ -107,8 +114,8 @@ def sync_detailed(
|
|
|
107
114
|
kwargs = _get_kwargs(
|
|
108
115
|
subscription_id=subscription_id,
|
|
109
116
|
body=body,
|
|
117
|
+
token=token,
|
|
110
118
|
authorization=authorization,
|
|
111
|
-
auth_token=auth_token,
|
|
112
119
|
)
|
|
113
120
|
|
|
114
121
|
response = client.get_httpx_client().request(
|
|
@@ -123,8 +130,8 @@ def sync(
|
|
|
123
130
|
*,
|
|
124
131
|
client: AuthenticatedClient,
|
|
125
132
|
body: TierUpgradeRequest,
|
|
133
|
+
token: Union[None, Unset, str] = UNSET,
|
|
126
134
|
authorization: Union[None, Unset, str] = UNSET,
|
|
127
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
128
135
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
129
136
|
"""Upgrade Subscription Tier
|
|
130
137
|
|
|
@@ -132,8 +139,8 @@ def sync(
|
|
|
132
139
|
|
|
133
140
|
Args:
|
|
134
141
|
subscription_id (str):
|
|
142
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
135
143
|
authorization (Union[None, Unset, str]):
|
|
136
|
-
auth_token (Union[None, Unset, str]):
|
|
137
144
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
138
145
|
|
|
139
146
|
Raises:
|
|
@@ -148,8 +155,8 @@ def sync(
|
|
|
148
155
|
subscription_id=subscription_id,
|
|
149
156
|
client=client,
|
|
150
157
|
body=body,
|
|
158
|
+
token=token,
|
|
151
159
|
authorization=authorization,
|
|
152
|
-
auth_token=auth_token,
|
|
153
160
|
).parsed
|
|
154
161
|
|
|
155
162
|
|
|
@@ -158,8 +165,8 @@ async def asyncio_detailed(
|
|
|
158
165
|
*,
|
|
159
166
|
client: AuthenticatedClient,
|
|
160
167
|
body: TierUpgradeRequest,
|
|
168
|
+
token: Union[None, Unset, str] = UNSET,
|
|
161
169
|
authorization: Union[None, Unset, str] = UNSET,
|
|
162
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
163
170
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
164
171
|
"""Upgrade Subscription Tier
|
|
165
172
|
|
|
@@ -167,8 +174,8 @@ async def asyncio_detailed(
|
|
|
167
174
|
|
|
168
175
|
Args:
|
|
169
176
|
subscription_id (str):
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
170
178
|
authorization (Union[None, Unset, str]):
|
|
171
|
-
auth_token (Union[None, Unset, str]):
|
|
172
179
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
173
180
|
|
|
174
181
|
Raises:
|
|
@@ -182,8 +189,8 @@ async def asyncio_detailed(
|
|
|
182
189
|
kwargs = _get_kwargs(
|
|
183
190
|
subscription_id=subscription_id,
|
|
184
191
|
body=body,
|
|
192
|
+
token=token,
|
|
185
193
|
authorization=authorization,
|
|
186
|
-
auth_token=auth_token,
|
|
187
194
|
)
|
|
188
195
|
|
|
189
196
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -196,8 +203,8 @@ async def asyncio(
|
|
|
196
203
|
*,
|
|
197
204
|
client: AuthenticatedClient,
|
|
198
205
|
body: TierUpgradeRequest,
|
|
206
|
+
token: Union[None, Unset, str] = UNSET,
|
|
199
207
|
authorization: Union[None, Unset, str] = UNSET,
|
|
200
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
201
208
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
202
209
|
"""Upgrade Subscription Tier
|
|
203
210
|
|
|
@@ -205,8 +212,8 @@ async def asyncio(
|
|
|
205
212
|
|
|
206
213
|
Args:
|
|
207
214
|
subscription_id (str):
|
|
215
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
208
216
|
authorization (Union[None, Unset, str]):
|
|
209
|
-
auth_token (Union[None, Unset, str]):
|
|
210
217
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
211
218
|
|
|
212
219
|
Raises:
|
|
@@ -222,7 +229,7 @@ async def asyncio(
|
|
|
222
229
|
subscription_id=subscription_id,
|
|
223
230
|
client=client,
|
|
224
231
|
body=body,
|
|
232
|
+
token=token,
|
|
225
233
|
authorization=authorization,
|
|
226
|
-
auth_token=auth_token,
|
|
227
234
|
)
|
|
228
235
|
).parsed
|
|
@@ -54,6 +54,47 @@ from .auth_integration import (
|
|
|
54
54
|
create_development_extensions,
|
|
55
55
|
)
|
|
56
56
|
|
|
57
|
+
# JWT Token utilities
|
|
58
|
+
from .token_utils import (
|
|
59
|
+
validate_jwt_format,
|
|
60
|
+
extract_jwt_from_header,
|
|
61
|
+
decode_jwt_payload,
|
|
62
|
+
is_jwt_expired,
|
|
63
|
+
get_jwt_claims,
|
|
64
|
+
get_jwt_expiration,
|
|
65
|
+
extract_token_from_environment,
|
|
66
|
+
extract_token_from_cookie,
|
|
67
|
+
find_valid_token,
|
|
68
|
+
TokenManager,
|
|
69
|
+
TokenSource,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
# DataFrame utilities (optional - requires pandas)
|
|
73
|
+
try:
|
|
74
|
+
from .dataframe_utils import (
|
|
75
|
+
query_result_to_dataframe,
|
|
76
|
+
DataFrameQueryClient,
|
|
77
|
+
HAS_PANDAS,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
# Re-export the imported functions for module API
|
|
81
|
+
from .dataframe_utils import (
|
|
82
|
+
parse_datetime_columns,
|
|
83
|
+
stream_to_dataframe as _stream_to_dataframe,
|
|
84
|
+
dataframe_to_cypher_params,
|
|
85
|
+
export_query_to_csv,
|
|
86
|
+
compare_dataframes,
|
|
87
|
+
)
|
|
88
|
+
except ImportError:
|
|
89
|
+
HAS_PANDAS = False
|
|
90
|
+
DataFrameQueryClient = None
|
|
91
|
+
# Set placeholders for optional functions
|
|
92
|
+
parse_datetime_columns = None
|
|
93
|
+
_stream_to_dataframe = None
|
|
94
|
+
dataframe_to_cypher_params = None
|
|
95
|
+
export_query_to_csv = None
|
|
96
|
+
compare_dataframes = None
|
|
97
|
+
|
|
57
98
|
__all__ = [
|
|
58
99
|
# Core extension classes
|
|
59
100
|
"RoboSystemsExtensions",
|
|
@@ -101,6 +142,21 @@ __all__ = [
|
|
|
101
142
|
"create_extensions",
|
|
102
143
|
"create_production_extensions",
|
|
103
144
|
"create_development_extensions",
|
|
145
|
+
# JWT Token utilities
|
|
146
|
+
"validate_jwt_format",
|
|
147
|
+
"extract_jwt_from_header",
|
|
148
|
+
"decode_jwt_payload",
|
|
149
|
+
"is_jwt_expired",
|
|
150
|
+
"get_jwt_claims",
|
|
151
|
+
"get_jwt_expiration",
|
|
152
|
+
"extract_token_from_environment",
|
|
153
|
+
"extract_token_from_cookie",
|
|
154
|
+
"find_valid_token",
|
|
155
|
+
"TokenManager",
|
|
156
|
+
"TokenSource",
|
|
157
|
+
# DataFrame utilities (optional)
|
|
158
|
+
"HAS_PANDAS",
|
|
159
|
+
"DataFrameQueryClient",
|
|
104
160
|
]
|
|
105
161
|
|
|
106
162
|
# Create a default extensions instance
|
|
@@ -135,3 +191,17 @@ def copy_from_s3(
|
|
|
135
191
|
return extensions.copy_from_s3(
|
|
136
192
|
graph_id, table_name, s3_path, access_key_id, secret_access_key, **kwargs
|
|
137
193
|
)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# DataFrame convenience functions (if pandas is available)
|
|
197
|
+
if HAS_PANDAS:
|
|
198
|
+
|
|
199
|
+
def query_to_dataframe(graph_id: str, query: str, parameters=None, **kwargs):
|
|
200
|
+
"""Execute query and return results as pandas DataFrame"""
|
|
201
|
+
result = execute_query(graph_id, query, parameters)
|
|
202
|
+
return query_result_to_dataframe(result, **kwargs)
|
|
203
|
+
|
|
204
|
+
def stream_to_dataframe(graph_id: str, query: str, parameters=None, chunk_size=10000):
|
|
205
|
+
"""Stream query results and return as pandas DataFrame"""
|
|
206
|
+
stream = stream_query(graph_id, query, parameters, chunk_size)
|
|
207
|
+
return _stream_to_dataframe(stream, chunk_size)
|