robosystems-client 0.1.17__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 +25 -0
- robosystems_client/api/agent/batch_process_queries.py +25 -0
- robosystems_client/api/agent/execute_specific_agent.py +25 -0
- robosystems_client/api/agent/get_agent_metadata.py +25 -0
- robosystems_client/api/agent/list_agents.py +20 -0
- robosystems_client/api/agent/recommend_agent.py +25 -0
- robosystems_client/api/backup/create_backup.py +25 -0
- robosystems_client/api/backup/export_backup.py +25 -0
- robosystems_client/api/backup/get_backup_download_url.py +20 -0
- robosystems_client/api/backup/get_backup_stats.py +25 -0
- robosystems_client/api/backup/list_backups.py +20 -0
- robosystems_client/api/backup/restore_backup.py +25 -0
- robosystems_client/api/connections/create_connection.py +25 -0
- robosystems_client/api/connections/create_link_token.py +25 -0
- robosystems_client/api/connections/delete_connection.py +25 -0
- robosystems_client/api/connections/exchange_link_token.py +25 -0
- robosystems_client/api/connections/get_connection.py +25 -0
- robosystems_client/api/connections/get_connection_options.py +25 -0
- robosystems_client/api/connections/init_o_auth.py +25 -0
- robosystems_client/api/connections/list_connections.py +20 -0
- robosystems_client/api/connections/oauth_callback.py +25 -0
- robosystems_client/api/connections/sync_connection.py +25 -0
- robosystems_client/api/copy/copy_data_to_graph.py +25 -0
- robosystems_client/api/create/create_graph.py +25 -0
- robosystems_client/api/graph_analytics/get_graph_metrics.py +25 -0
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +20 -0
- robosystems_client/api/graph_billing/get_current_graph_bill.py +25 -0
- robosystems_client/api/graph_billing/get_graph_billing_history.py +20 -0
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +25 -0
- robosystems_client/api/graph_billing/get_graph_usage_details.py +20 -0
- robosystems_client/api/graph_credits/check_credit_balance.py +20 -0
- robosystems_client/api/graph_credits/check_storage_limits.py +25 -0
- robosystems_client/api/graph_credits/get_credit_summary.py +25 -0
- robosystems_client/api/graph_credits/get_storage_usage.py +20 -0
- robosystems_client/api/graph_credits/list_credit_transactions.py +20 -0
- robosystems_client/api/graph_health/get_database_health.py +25 -0
- robosystems_client/api/graph_info/get_database_info.py +25 -0
- robosystems_client/api/graph_limits/get_graph_limits.py +25 -0
- robosystems_client/api/mcp/call_mcp_tool.py +20 -0
- robosystems_client/api/mcp/list_mcp_tools.py +25 -0
- robosystems_client/api/operations/cancel_operation.py +25 -0
- robosystems_client/api/operations/get_operation_status.py +25 -0
- robosystems_client/api/operations/stream_operation_events.py +20 -0
- robosystems_client/api/query/execute_cypher_query.py +20 -0
- robosystems_client/api/schema/export_graph_schema.py +20 -0
- robosystems_client/api/schema/get_graph_schema_info.py +25 -0
- robosystems_client/api/schema/list_schema_extensions.py +25 -0
- robosystems_client/api/schema/validate_schema.py +25 -0
- robosystems_client/api/subgraphs/create_subgraph.py +25 -0
- robosystems_client/api/subgraphs/delete_subgraph.py +25 -0
- robosystems_client/api/subgraphs/get_subgraph_info.py +25 -0
- robosystems_client/api/subgraphs/get_subgraph_quota.py +25 -0
- robosystems_client/api/subgraphs/list_subgraphs.py +25 -0
- robosystems_client/api/user/create_user_api_key.py +25 -0
- robosystems_client/api/user/get_all_credit_summaries.py +25 -0
- robosystems_client/api/user/get_current_user.py +25 -0
- robosystems_client/api/user/get_user_graphs.py +25 -0
- robosystems_client/api/user/list_user_api_keys.py +25 -0
- robosystems_client/api/user/revoke_user_api_key.py +25 -0
- robosystems_client/api/user/select_user_graph.py +25 -0
- robosystems_client/api/user/update_user.py +25 -0
- robosystems_client/api/user/update_user_api_key.py +25 -0
- robosystems_client/api/user/update_user_password.py +25 -0
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +20 -0
- robosystems_client/api/user_analytics/get_user_usage_overview.py +25 -0
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +25 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +25 -0
- robosystems_client/api/user_limits/get_user_limits.py +25 -0
- robosystems_client/api/user_limits/get_user_usage.py +25 -0
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +25 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +25 -0
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +25 -0
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +20 -0
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +25 -0
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +25 -0
- 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-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/RECORD +92 -88
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/WHEEL +0 -0
- {robosystems_client-0.1.17.dist-info → robosystems_client-0.1.18.dist-info}/licenses/LICENSE +0 -0
|
@@ -12,15 +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
17
|
) -> dict[str, Any]:
|
|
17
18
|
headers: dict[str, Any] = {}
|
|
18
19
|
if not isinstance(authorization, Unset):
|
|
19
20
|
headers["authorization"] = authorization
|
|
20
21
|
|
|
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}
|
|
32
|
+
|
|
21
33
|
_kwargs: dict[str, Any] = {
|
|
22
34
|
"method": "get",
|
|
23
35
|
"url": "/v1/user/analytics/overview",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -58,6 +71,7 @@ def _build_response(
|
|
|
58
71
|
def sync_detailed(
|
|
59
72
|
*,
|
|
60
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
61
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
62
76
|
) -> Response[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
63
77
|
"""Get User Usage Overview
|
|
@@ -65,6 +79,7 @@ def sync_detailed(
|
|
|
65
79
|
Get a high-level overview of usage statistics for the current user.
|
|
66
80
|
|
|
67
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
68
83
|
authorization (Union[None, Unset, str]):
|
|
69
84
|
|
|
70
85
|
Raises:
|
|
@@ -76,6 +91,7 @@ def sync_detailed(
|
|
|
76
91
|
"""
|
|
77
92
|
|
|
78
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
79
95
|
authorization=authorization,
|
|
80
96
|
)
|
|
81
97
|
|
|
@@ -89,6 +105,7 @@ def sync_detailed(
|
|
|
89
105
|
def sync(
|
|
90
106
|
*,
|
|
91
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
92
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
93
110
|
) -> Optional[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
94
111
|
"""Get User Usage Overview
|
|
@@ -96,6 +113,7 @@ def sync(
|
|
|
96
113
|
Get a high-level overview of usage statistics for the current user.
|
|
97
114
|
|
|
98
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
117
|
authorization (Union[None, Unset, str]):
|
|
100
118
|
|
|
101
119
|
Raises:
|
|
@@ -108,6 +126,7 @@ def sync(
|
|
|
108
126
|
|
|
109
127
|
return sync_detailed(
|
|
110
128
|
client=client,
|
|
129
|
+
token=token,
|
|
111
130
|
authorization=authorization,
|
|
112
131
|
).parsed
|
|
113
132
|
|
|
@@ -115,6 +134,7 @@ def sync(
|
|
|
115
134
|
async def asyncio_detailed(
|
|
116
135
|
*,
|
|
117
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
118
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
119
139
|
) -> Response[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
120
140
|
"""Get User Usage Overview
|
|
@@ -122,6 +142,7 @@ async def asyncio_detailed(
|
|
|
122
142
|
Get a high-level overview of usage statistics for the current user.
|
|
123
143
|
|
|
124
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
146
|
authorization (Union[None, Unset, str]):
|
|
126
147
|
|
|
127
148
|
Raises:
|
|
@@ -133,6 +154,7 @@ async def asyncio_detailed(
|
|
|
133
154
|
"""
|
|
134
155
|
|
|
135
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
136
158
|
authorization=authorization,
|
|
137
159
|
)
|
|
138
160
|
|
|
@@ -144,6 +166,7 @@ async def asyncio_detailed(
|
|
|
144
166
|
async def asyncio(
|
|
145
167
|
*,
|
|
146
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
171
|
) -> Optional[Union[HTTPValidationError, UserUsageSummaryResponse]]:
|
|
149
172
|
"""Get User Usage Overview
|
|
@@ -151,6 +174,7 @@ async def asyncio(
|
|
|
151
174
|
Get a high-level overview of usage statistics for the current user.
|
|
152
175
|
|
|
153
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
178
|
authorization (Union[None, Unset, str]):
|
|
155
179
|
|
|
156
180
|
Raises:
|
|
@@ -164,6 +188,7 @@ async def asyncio(
|
|
|
164
188
|
return (
|
|
165
189
|
await asyncio_detailed(
|
|
166
190
|
client=client,
|
|
191
|
+
token=token,
|
|
167
192
|
authorization=authorization,
|
|
168
193
|
)
|
|
169
194
|
).parsed
|
|
@@ -14,15 +14,28 @@ from ...types import UNSET, Response, Unset
|
|
|
14
14
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
*,
|
|
17
|
+
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
18
19
|
) -> dict[str, Any]:
|
|
19
20
|
headers: dict[str, Any] = {}
|
|
20
21
|
if not isinstance(authorization, Unset):
|
|
21
22
|
headers["authorization"] = authorization
|
|
22
23
|
|
|
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}
|
|
34
|
+
|
|
23
35
|
_kwargs: dict[str, Any] = {
|
|
24
36
|
"method": "get",
|
|
25
37
|
"url": "/v1/user/limits/shared-repositories/summary",
|
|
38
|
+
"params": params,
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
@@ -74,6 +87,7 @@ def _build_response(
|
|
|
74
87
|
def sync_detailed(
|
|
75
88
|
*,
|
|
76
89
|
client: AuthenticatedClient,
|
|
90
|
+
token: Union[None, Unset, str] = UNSET,
|
|
77
91
|
authorization: Union[None, Unset, str] = UNSET,
|
|
78
92
|
) -> Response[
|
|
79
93
|
Union[
|
|
@@ -86,6 +100,7 @@ def sync_detailed(
|
|
|
86
100
|
Get rate limit status for all shared repositories the user has access to.
|
|
87
101
|
|
|
88
102
|
Args:
|
|
103
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
89
104
|
authorization (Union[None, Unset, str]):
|
|
90
105
|
|
|
91
106
|
Raises:
|
|
@@ -97,6 +112,7 @@ def sync_detailed(
|
|
|
97
112
|
"""
|
|
98
113
|
|
|
99
114
|
kwargs = _get_kwargs(
|
|
115
|
+
token=token,
|
|
100
116
|
authorization=authorization,
|
|
101
117
|
)
|
|
102
118
|
|
|
@@ -110,6 +126,7 @@ def sync_detailed(
|
|
|
110
126
|
def sync(
|
|
111
127
|
*,
|
|
112
128
|
client: AuthenticatedClient,
|
|
129
|
+
token: Union[None, Unset, str] = UNSET,
|
|
113
130
|
authorization: Union[None, Unset, str] = UNSET,
|
|
114
131
|
) -> Optional[
|
|
115
132
|
Union[
|
|
@@ -122,6 +139,7 @@ def sync(
|
|
|
122
139
|
Get rate limit status for all shared repositories the user has access to.
|
|
123
140
|
|
|
124
141
|
Args:
|
|
142
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
143
|
authorization (Union[None, Unset, str]):
|
|
126
144
|
|
|
127
145
|
Raises:
|
|
@@ -134,6 +152,7 @@ def sync(
|
|
|
134
152
|
|
|
135
153
|
return sync_detailed(
|
|
136
154
|
client=client,
|
|
155
|
+
token=token,
|
|
137
156
|
authorization=authorization,
|
|
138
157
|
).parsed
|
|
139
158
|
|
|
@@ -141,6 +160,7 @@ def sync(
|
|
|
141
160
|
async def asyncio_detailed(
|
|
142
161
|
*,
|
|
143
162
|
client: AuthenticatedClient,
|
|
163
|
+
token: Union[None, Unset, str] = UNSET,
|
|
144
164
|
authorization: Union[None, Unset, str] = UNSET,
|
|
145
165
|
) -> Response[
|
|
146
166
|
Union[
|
|
@@ -153,6 +173,7 @@ async def asyncio_detailed(
|
|
|
153
173
|
Get rate limit status for all shared repositories the user has access to.
|
|
154
174
|
|
|
155
175
|
Args:
|
|
176
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
156
177
|
authorization (Union[None, Unset, str]):
|
|
157
178
|
|
|
158
179
|
Raises:
|
|
@@ -164,6 +185,7 @@ async def asyncio_detailed(
|
|
|
164
185
|
"""
|
|
165
186
|
|
|
166
187
|
kwargs = _get_kwargs(
|
|
188
|
+
token=token,
|
|
167
189
|
authorization=authorization,
|
|
168
190
|
)
|
|
169
191
|
|
|
@@ -175,6 +197,7 @@ async def asyncio_detailed(
|
|
|
175
197
|
async def asyncio(
|
|
176
198
|
*,
|
|
177
199
|
client: AuthenticatedClient,
|
|
200
|
+
token: Union[None, Unset, str] = UNSET,
|
|
178
201
|
authorization: Union[None, Unset, str] = UNSET,
|
|
179
202
|
) -> Optional[
|
|
180
203
|
Union[
|
|
@@ -187,6 +210,7 @@ async def asyncio(
|
|
|
187
210
|
Get rate limit status for all shared repositories the user has access to.
|
|
188
211
|
|
|
189
212
|
Args:
|
|
213
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
190
214
|
authorization (Union[None, Unset, str]):
|
|
191
215
|
|
|
192
216
|
Raises:
|
|
@@ -200,6 +224,7 @@ async def asyncio(
|
|
|
200
224
|
return (
|
|
201
225
|
await asyncio_detailed(
|
|
202
226
|
client=client,
|
|
227
|
+
token=token,
|
|
203
228
|
authorization=authorization,
|
|
204
229
|
)
|
|
205
230
|
).parsed
|
|
@@ -15,15 +15,28 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
repository: str,
|
|
17
17
|
*,
|
|
18
|
+
token: Union[None, Unset, str] = UNSET,
|
|
18
19
|
authorization: Union[None, Unset, str] = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
headers: dict[str, Any] = {}
|
|
21
22
|
if not isinstance(authorization, Unset):
|
|
22
23
|
headers["authorization"] = authorization
|
|
23
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
|
+
|
|
24
36
|
_kwargs: dict[str, Any] = {
|
|
25
37
|
"method": "get",
|
|
26
38
|
"url": f"/v1/user/limits/shared-repositories/{repository}",
|
|
39
|
+
"params": params,
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
_kwargs["headers"] = headers
|
|
@@ -68,6 +81,7 @@ def sync_detailed(
|
|
|
68
81
|
repository: str,
|
|
69
82
|
*,
|
|
70
83
|
client: AuthenticatedClient,
|
|
84
|
+
token: Union[None, Unset, str] = UNSET,
|
|
71
85
|
authorization: Union[None, Unset, str] = UNSET,
|
|
72
86
|
) -> Response[
|
|
73
87
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
@@ -86,6 +100,7 @@ def sync_detailed(
|
|
|
86
100
|
|
|
87
101
|
Args:
|
|
88
102
|
repository (str): Repository name (e.g., 'sec')
|
|
103
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
89
104
|
authorization (Union[None, Unset, str]):
|
|
90
105
|
|
|
91
106
|
Raises:
|
|
@@ -98,6 +113,7 @@ def sync_detailed(
|
|
|
98
113
|
|
|
99
114
|
kwargs = _get_kwargs(
|
|
100
115
|
repository=repository,
|
|
116
|
+
token=token,
|
|
101
117
|
authorization=authorization,
|
|
102
118
|
)
|
|
103
119
|
|
|
@@ -112,6 +128,7 @@ def sync(
|
|
|
112
128
|
repository: str,
|
|
113
129
|
*,
|
|
114
130
|
client: AuthenticatedClient,
|
|
131
|
+
token: Union[None, Unset, str] = UNSET,
|
|
115
132
|
authorization: Union[None, Unset, str] = UNSET,
|
|
116
133
|
) -> Optional[
|
|
117
134
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
@@ -130,6 +147,7 @@ def sync(
|
|
|
130
147
|
|
|
131
148
|
Args:
|
|
132
149
|
repository (str): Repository name (e.g., 'sec')
|
|
150
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
133
151
|
authorization (Union[None, Unset, str]):
|
|
134
152
|
|
|
135
153
|
Raises:
|
|
@@ -143,6 +161,7 @@ def sync(
|
|
|
143
161
|
return sync_detailed(
|
|
144
162
|
repository=repository,
|
|
145
163
|
client=client,
|
|
164
|
+
token=token,
|
|
146
165
|
authorization=authorization,
|
|
147
166
|
).parsed
|
|
148
167
|
|
|
@@ -151,6 +170,7 @@ async def asyncio_detailed(
|
|
|
151
170
|
repository: str,
|
|
152
171
|
*,
|
|
153
172
|
client: AuthenticatedClient,
|
|
173
|
+
token: Union[None, Unset, str] = UNSET,
|
|
154
174
|
authorization: Union[None, Unset, str] = UNSET,
|
|
155
175
|
) -> Response[
|
|
156
176
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
@@ -169,6 +189,7 @@ async def asyncio_detailed(
|
|
|
169
189
|
|
|
170
190
|
Args:
|
|
171
191
|
repository (str): Repository name (e.g., 'sec')
|
|
192
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
193
|
authorization (Union[None, Unset, str]):
|
|
173
194
|
|
|
174
195
|
Raises:
|
|
@@ -181,6 +202,7 @@ async def asyncio_detailed(
|
|
|
181
202
|
|
|
182
203
|
kwargs = _get_kwargs(
|
|
183
204
|
repository=repository,
|
|
205
|
+
token=token,
|
|
184
206
|
authorization=authorization,
|
|
185
207
|
)
|
|
186
208
|
|
|
@@ -193,6 +215,7 @@ async def asyncio(
|
|
|
193
215
|
repository: str,
|
|
194
216
|
*,
|
|
195
217
|
client: AuthenticatedClient,
|
|
218
|
+
token: Union[None, Unset, str] = UNSET,
|
|
196
219
|
authorization: Union[None, Unset, str] = UNSET,
|
|
197
220
|
) -> Optional[
|
|
198
221
|
Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
|
|
@@ -211,6 +234,7 @@ async def asyncio(
|
|
|
211
234
|
|
|
212
235
|
Args:
|
|
213
236
|
repository (str): Repository name (e.g., 'sec')
|
|
237
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
214
238
|
authorization (Union[None, Unset, str]):
|
|
215
239
|
|
|
216
240
|
Raises:
|
|
@@ -225,6 +249,7 @@ async def asyncio(
|
|
|
225
249
|
await asyncio_detailed(
|
|
226
250
|
repository=repository,
|
|
227
251
|
client=client,
|
|
252
|
+
token=token,
|
|
228
253
|
authorization=authorization,
|
|
229
254
|
)
|
|
230
255
|
).parsed
|
|
@@ -12,15 +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
17
|
) -> dict[str, Any]:
|
|
17
18
|
headers: dict[str, Any] = {}
|
|
18
19
|
if not isinstance(authorization, Unset):
|
|
19
20
|
headers["authorization"] = authorization
|
|
20
21
|
|
|
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}
|
|
32
|
+
|
|
21
33
|
_kwargs: dict[str, Any] = {
|
|
22
34
|
"method": "get",
|
|
23
35
|
"url": "/v1/user/limits",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -61,6 +74,7 @@ def _build_response(
|
|
|
61
74
|
def sync_detailed(
|
|
62
75
|
*,
|
|
63
76
|
client: AuthenticatedClient,
|
|
77
|
+
token: Union[None, Unset, str] = UNSET,
|
|
64
78
|
authorization: Union[None, Unset, str] = UNSET,
|
|
65
79
|
) -> Response[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
66
80
|
"""Get user limits
|
|
@@ -68,6 +82,7 @@ def sync_detailed(
|
|
|
68
82
|
Retrieve current limits and restrictions for the authenticated user
|
|
69
83
|
|
|
70
84
|
Args:
|
|
85
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
71
86
|
authorization (Union[None, Unset, str]):
|
|
72
87
|
|
|
73
88
|
Raises:
|
|
@@ -79,6 +94,7 @@ def sync_detailed(
|
|
|
79
94
|
"""
|
|
80
95
|
|
|
81
96
|
kwargs = _get_kwargs(
|
|
97
|
+
token=token,
|
|
82
98
|
authorization=authorization,
|
|
83
99
|
)
|
|
84
100
|
|
|
@@ -92,6 +108,7 @@ def sync_detailed(
|
|
|
92
108
|
def sync(
|
|
93
109
|
*,
|
|
94
110
|
client: AuthenticatedClient,
|
|
111
|
+
token: Union[None, Unset, str] = UNSET,
|
|
95
112
|
authorization: Union[None, Unset, str] = UNSET,
|
|
96
113
|
) -> Optional[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
97
114
|
"""Get user limits
|
|
@@ -99,6 +116,7 @@ def sync(
|
|
|
99
116
|
Retrieve current limits and restrictions for the authenticated user
|
|
100
117
|
|
|
101
118
|
Args:
|
|
119
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
102
120
|
authorization (Union[None, Unset, str]):
|
|
103
121
|
|
|
104
122
|
Raises:
|
|
@@ -111,6 +129,7 @@ def sync(
|
|
|
111
129
|
|
|
112
130
|
return sync_detailed(
|
|
113
131
|
client=client,
|
|
132
|
+
token=token,
|
|
114
133
|
authorization=authorization,
|
|
115
134
|
).parsed
|
|
116
135
|
|
|
@@ -118,6 +137,7 @@ def sync(
|
|
|
118
137
|
async def asyncio_detailed(
|
|
119
138
|
*,
|
|
120
139
|
client: AuthenticatedClient,
|
|
140
|
+
token: Union[None, Unset, str] = UNSET,
|
|
121
141
|
authorization: Union[None, Unset, str] = UNSET,
|
|
122
142
|
) -> Response[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
123
143
|
"""Get user limits
|
|
@@ -125,6 +145,7 @@ async def asyncio_detailed(
|
|
|
125
145
|
Retrieve current limits and restrictions for the authenticated user
|
|
126
146
|
|
|
127
147
|
Args:
|
|
148
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
128
149
|
authorization (Union[None, Unset, str]):
|
|
129
150
|
|
|
130
151
|
Raises:
|
|
@@ -136,6 +157,7 @@ async def asyncio_detailed(
|
|
|
136
157
|
"""
|
|
137
158
|
|
|
138
159
|
kwargs = _get_kwargs(
|
|
160
|
+
token=token,
|
|
139
161
|
authorization=authorization,
|
|
140
162
|
)
|
|
141
163
|
|
|
@@ -147,6 +169,7 @@ async def asyncio_detailed(
|
|
|
147
169
|
async def asyncio(
|
|
148
170
|
*,
|
|
149
171
|
client: AuthenticatedClient,
|
|
172
|
+
token: Union[None, Unset, str] = UNSET,
|
|
150
173
|
authorization: Union[None, Unset, str] = UNSET,
|
|
151
174
|
) -> Optional[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
152
175
|
"""Get user limits
|
|
@@ -154,6 +177,7 @@ async def asyncio(
|
|
|
154
177
|
Retrieve current limits and restrictions for the authenticated user
|
|
155
178
|
|
|
156
179
|
Args:
|
|
180
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
157
181
|
authorization (Union[None, Unset, str]):
|
|
158
182
|
|
|
159
183
|
Raises:
|
|
@@ -167,6 +191,7 @@ async def asyncio(
|
|
|
167
191
|
return (
|
|
168
192
|
await asyncio_detailed(
|
|
169
193
|
client=client,
|
|
194
|
+
token=token,
|
|
170
195
|
authorization=authorization,
|
|
171
196
|
)
|
|
172
197
|
).parsed
|
|
@@ -12,15 +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
17
|
) -> dict[str, Any]:
|
|
17
18
|
headers: dict[str, Any] = {}
|
|
18
19
|
if not isinstance(authorization, Unset):
|
|
19
20
|
headers["authorization"] = authorization
|
|
20
21
|
|
|
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}
|
|
32
|
+
|
|
21
33
|
_kwargs: dict[str, Any] = {
|
|
22
34
|
"method": "get",
|
|
23
35
|
"url": "/v1/user/limits/usage",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -58,6 +71,7 @@ def _build_response(
|
|
|
58
71
|
def sync_detailed(
|
|
59
72
|
*,
|
|
60
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
61
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
62
76
|
) -> Response[Union[HTTPValidationError, UserUsageResponse]]:
|
|
63
77
|
"""Get user usage statistics
|
|
@@ -65,6 +79,7 @@ def sync_detailed(
|
|
|
65
79
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
66
80
|
|
|
67
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
68
83
|
authorization (Union[None, Unset, str]):
|
|
69
84
|
|
|
70
85
|
Raises:
|
|
@@ -76,6 +91,7 @@ def sync_detailed(
|
|
|
76
91
|
"""
|
|
77
92
|
|
|
78
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
79
95
|
authorization=authorization,
|
|
80
96
|
)
|
|
81
97
|
|
|
@@ -89,6 +105,7 @@ def sync_detailed(
|
|
|
89
105
|
def sync(
|
|
90
106
|
*,
|
|
91
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
92
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
93
110
|
) -> Optional[Union[HTTPValidationError, UserUsageResponse]]:
|
|
94
111
|
"""Get user usage statistics
|
|
@@ -96,6 +113,7 @@ def sync(
|
|
|
96
113
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
97
114
|
|
|
98
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
99
117
|
authorization (Union[None, Unset, str]):
|
|
100
118
|
|
|
101
119
|
Raises:
|
|
@@ -108,6 +126,7 @@ def sync(
|
|
|
108
126
|
|
|
109
127
|
return sync_detailed(
|
|
110
128
|
client=client,
|
|
129
|
+
token=token,
|
|
111
130
|
authorization=authorization,
|
|
112
131
|
).parsed
|
|
113
132
|
|
|
@@ -115,6 +134,7 @@ def sync(
|
|
|
115
134
|
async def asyncio_detailed(
|
|
116
135
|
*,
|
|
117
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
118
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
119
139
|
) -> Response[Union[HTTPValidationError, UserUsageResponse]]:
|
|
120
140
|
"""Get user usage statistics
|
|
@@ -122,6 +142,7 @@ async def asyncio_detailed(
|
|
|
122
142
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
123
143
|
|
|
124
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
146
|
authorization (Union[None, Unset, str]):
|
|
126
147
|
|
|
127
148
|
Raises:
|
|
@@ -133,6 +154,7 @@ async def asyncio_detailed(
|
|
|
133
154
|
"""
|
|
134
155
|
|
|
135
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
136
158
|
authorization=authorization,
|
|
137
159
|
)
|
|
138
160
|
|
|
@@ -144,6 +166,7 @@ async def asyncio_detailed(
|
|
|
144
166
|
async def asyncio(
|
|
145
167
|
*,
|
|
146
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
171
|
) -> Optional[Union[HTTPValidationError, UserUsageResponse]]:
|
|
149
172
|
"""Get user usage statistics
|
|
@@ -151,6 +174,7 @@ async def asyncio(
|
|
|
151
174
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
152
175
|
|
|
153
176
|
Args:
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
154
178
|
authorization (Union[None, Unset, str]):
|
|
155
179
|
|
|
156
180
|
Raises:
|
|
@@ -164,6 +188,7 @@ async def asyncio(
|
|
|
164
188
|
return (
|
|
165
189
|
await asyncio_detailed(
|
|
166
190
|
client=client,
|
|
191
|
+
token=token,
|
|
167
192
|
authorization=authorization,
|
|
168
193
|
)
|
|
169
194
|
).parsed
|