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/limits",
|
|
29
|
-
"
|
|
36
|
+
"params": params,
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
_kwargs["headers"] = headers
|
|
@@ -67,16 +74,16 @@ def _build_response(
|
|
|
67
74
|
def sync_detailed(
|
|
68
75
|
*,
|
|
69
76
|
client: AuthenticatedClient,
|
|
77
|
+
token: Union[None, Unset, str] = UNSET,
|
|
70
78
|
authorization: Union[None, Unset, str] = UNSET,
|
|
71
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
72
79
|
) -> Response[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
73
80
|
"""Get user limits
|
|
74
81
|
|
|
75
82
|
Retrieve current limits and restrictions for the authenticated user
|
|
76
83
|
|
|
77
84
|
Args:
|
|
85
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
78
86
|
authorization (Union[None, Unset, str]):
|
|
79
|
-
auth_token (Union[None, Unset, str]):
|
|
80
87
|
|
|
81
88
|
Raises:
|
|
82
89
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -87,8 +94,8 @@ def sync_detailed(
|
|
|
87
94
|
"""
|
|
88
95
|
|
|
89
96
|
kwargs = _get_kwargs(
|
|
97
|
+
token=token,
|
|
90
98
|
authorization=authorization,
|
|
91
|
-
auth_token=auth_token,
|
|
92
99
|
)
|
|
93
100
|
|
|
94
101
|
response = client.get_httpx_client().request(
|
|
@@ -101,16 +108,16 @@ def sync_detailed(
|
|
|
101
108
|
def sync(
|
|
102
109
|
*,
|
|
103
110
|
client: AuthenticatedClient,
|
|
111
|
+
token: Union[None, Unset, str] = UNSET,
|
|
104
112
|
authorization: Union[None, Unset, str] = UNSET,
|
|
105
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
106
113
|
) -> Optional[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
107
114
|
"""Get user limits
|
|
108
115
|
|
|
109
116
|
Retrieve current limits and restrictions for the authenticated user
|
|
110
117
|
|
|
111
118
|
Args:
|
|
119
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
112
120
|
authorization (Union[None, Unset, str]):
|
|
113
|
-
auth_token (Union[None, Unset, str]):
|
|
114
121
|
|
|
115
122
|
Raises:
|
|
116
123
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -122,24 +129,24 @@ def sync(
|
|
|
122
129
|
|
|
123
130
|
return sync_detailed(
|
|
124
131
|
client=client,
|
|
132
|
+
token=token,
|
|
125
133
|
authorization=authorization,
|
|
126
|
-
auth_token=auth_token,
|
|
127
134
|
).parsed
|
|
128
135
|
|
|
129
136
|
|
|
130
137
|
async def asyncio_detailed(
|
|
131
138
|
*,
|
|
132
139
|
client: AuthenticatedClient,
|
|
140
|
+
token: Union[None, Unset, str] = UNSET,
|
|
133
141
|
authorization: Union[None, Unset, str] = UNSET,
|
|
134
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
135
142
|
) -> Response[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
136
143
|
"""Get user limits
|
|
137
144
|
|
|
138
145
|
Retrieve current limits and restrictions for the authenticated user
|
|
139
146
|
|
|
140
147
|
Args:
|
|
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
|
|
|
144
151
|
Raises:
|
|
145
152
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -150,8 +157,8 @@ async def asyncio_detailed(
|
|
|
150
157
|
"""
|
|
151
158
|
|
|
152
159
|
kwargs = _get_kwargs(
|
|
160
|
+
token=token,
|
|
153
161
|
authorization=authorization,
|
|
154
|
-
auth_token=auth_token,
|
|
155
162
|
)
|
|
156
163
|
|
|
157
164
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -162,16 +169,16 @@ async def asyncio_detailed(
|
|
|
162
169
|
async def asyncio(
|
|
163
170
|
*,
|
|
164
171
|
client: AuthenticatedClient,
|
|
172
|
+
token: Union[None, Unset, str] = UNSET,
|
|
165
173
|
authorization: Union[None, Unset, str] = UNSET,
|
|
166
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
167
174
|
) -> Optional[Union[Any, HTTPValidationError, UserLimitsResponse]]:
|
|
168
175
|
"""Get user limits
|
|
169
176
|
|
|
170
177
|
Retrieve current limits and restrictions for the authenticated user
|
|
171
178
|
|
|
172
179
|
Args:
|
|
180
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
173
181
|
authorization (Union[None, Unset, str]):
|
|
174
|
-
auth_token (Union[None, Unset, str]):
|
|
175
182
|
|
|
176
183
|
Raises:
|
|
177
184
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -184,7 +191,7 @@ async def asyncio(
|
|
|
184
191
|
return (
|
|
185
192
|
await asyncio_detailed(
|
|
186
193
|
client=client,
|
|
194
|
+
token=token,
|
|
187
195
|
authorization=authorization,
|
|
188
|
-
auth_token=auth_token,
|
|
189
196
|
)
|
|
190
197
|
).parsed
|
|
@@ -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/limits/usage",
|
|
29
|
-
"
|
|
36
|
+
"params": params,
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
_kwargs["headers"] = headers
|
|
@@ -64,16 +71,16 @@ def _build_response(
|
|
|
64
71
|
def sync_detailed(
|
|
65
72
|
*,
|
|
66
73
|
client: AuthenticatedClient,
|
|
74
|
+
token: Union[None, Unset, str] = UNSET,
|
|
67
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
68
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
69
76
|
) -> Response[Union[HTTPValidationError, UserUsageResponse]]:
|
|
70
77
|
"""Get user usage statistics
|
|
71
78
|
|
|
72
79
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
73
80
|
|
|
74
81
|
Args:
|
|
82
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
75
83
|
authorization (Union[None, Unset, str]):
|
|
76
|
-
auth_token (Union[None, Unset, str]):
|
|
77
84
|
|
|
78
85
|
Raises:
|
|
79
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -84,8 +91,8 @@ def sync_detailed(
|
|
|
84
91
|
"""
|
|
85
92
|
|
|
86
93
|
kwargs = _get_kwargs(
|
|
94
|
+
token=token,
|
|
87
95
|
authorization=authorization,
|
|
88
|
-
auth_token=auth_token,
|
|
89
96
|
)
|
|
90
97
|
|
|
91
98
|
response = client.get_httpx_client().request(
|
|
@@ -98,16 +105,16 @@ def sync_detailed(
|
|
|
98
105
|
def sync(
|
|
99
106
|
*,
|
|
100
107
|
client: AuthenticatedClient,
|
|
108
|
+
token: Union[None, Unset, str] = UNSET,
|
|
101
109
|
authorization: Union[None, Unset, str] = UNSET,
|
|
102
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
103
110
|
) -> Optional[Union[HTTPValidationError, UserUsageResponse]]:
|
|
104
111
|
"""Get user usage statistics
|
|
105
112
|
|
|
106
113
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
107
114
|
|
|
108
115
|
Args:
|
|
116
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
109
117
|
authorization (Union[None, Unset, str]):
|
|
110
|
-
auth_token (Union[None, Unset, str]):
|
|
111
118
|
|
|
112
119
|
Raises:
|
|
113
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -119,24 +126,24 @@ def sync(
|
|
|
119
126
|
|
|
120
127
|
return sync_detailed(
|
|
121
128
|
client=client,
|
|
129
|
+
token=token,
|
|
122
130
|
authorization=authorization,
|
|
123
|
-
auth_token=auth_token,
|
|
124
131
|
).parsed
|
|
125
132
|
|
|
126
133
|
|
|
127
134
|
async def asyncio_detailed(
|
|
128
135
|
*,
|
|
129
136
|
client: AuthenticatedClient,
|
|
137
|
+
token: Union[None, Unset, str] = UNSET,
|
|
130
138
|
authorization: Union[None, Unset, str] = UNSET,
|
|
131
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
132
139
|
) -> Response[Union[HTTPValidationError, UserUsageResponse]]:
|
|
133
140
|
"""Get user usage statistics
|
|
134
141
|
|
|
135
142
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
136
143
|
|
|
137
144
|
Args:
|
|
145
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
138
146
|
authorization (Union[None, Unset, str]):
|
|
139
|
-
auth_token (Union[None, Unset, str]):
|
|
140
147
|
|
|
141
148
|
Raises:
|
|
142
149
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -147,8 +154,8 @@ async def asyncio_detailed(
|
|
|
147
154
|
"""
|
|
148
155
|
|
|
149
156
|
kwargs = _get_kwargs(
|
|
157
|
+
token=token,
|
|
150
158
|
authorization=authorization,
|
|
151
|
-
auth_token=auth_token,
|
|
152
159
|
)
|
|
153
160
|
|
|
154
161
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -159,16 +166,16 @@ async def asyncio_detailed(
|
|
|
159
166
|
async def asyncio(
|
|
160
167
|
*,
|
|
161
168
|
client: AuthenticatedClient,
|
|
169
|
+
token: Union[None, Unset, str] = UNSET,
|
|
162
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
163
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
164
171
|
) -> Optional[Union[HTTPValidationError, UserUsageResponse]]:
|
|
165
172
|
"""Get user usage statistics
|
|
166
173
|
|
|
167
174
|
Retrieve current usage statistics and remaining limits for the authenticated user
|
|
168
175
|
|
|
169
176
|
Args:
|
|
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
|
|
|
173
180
|
Raises:
|
|
174
181
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -181,7 +188,7 @@ async def asyncio(
|
|
|
181
188
|
return (
|
|
182
189
|
await asyncio_detailed(
|
|
183
190
|
client=client,
|
|
191
|
+
token=token,
|
|
184
192
|
authorization=authorization,
|
|
185
|
-
auth_token=auth_token,
|
|
186
193
|
)
|
|
187
194
|
).parsed
|
|
@@ -13,21 +13,28 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
subscription_id: str,
|
|
15
15
|
*,
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
params: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
json_token: Union[None, Unset, str]
|
|
26
|
+
if isinstance(token, Unset):
|
|
27
|
+
json_token = UNSET
|
|
28
|
+
else:
|
|
29
|
+
json_token = token
|
|
30
|
+
params["token"] = json_token
|
|
31
|
+
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
26
33
|
|
|
27
34
|
_kwargs: dict[str, Any] = {
|
|
28
35
|
"method": "delete",
|
|
29
36
|
"url": f"/v1/user/subscriptions/shared-repositories/{subscription_id}",
|
|
30
|
-
"
|
|
37
|
+
"params": params,
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
_kwargs["headers"] = headers
|
|
@@ -75,8 +82,8 @@ def sync_detailed(
|
|
|
75
82
|
subscription_id: str,
|
|
76
83
|
*,
|
|
77
84
|
client: AuthenticatedClient,
|
|
85
|
+
token: Union[None, Unset, str] = UNSET,
|
|
78
86
|
authorization: Union[None, Unset, str] = UNSET,
|
|
79
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
80
87
|
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
81
88
|
"""Cancel Subscription
|
|
82
89
|
|
|
@@ -84,8 +91,8 @@ def sync_detailed(
|
|
|
84
91
|
|
|
85
92
|
Args:
|
|
86
93
|
subscription_id (str):
|
|
94
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
87
95
|
authorization (Union[None, Unset, str]):
|
|
88
|
-
auth_token (Union[None, Unset, str]):
|
|
89
96
|
|
|
90
97
|
Raises:
|
|
91
98
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -97,8 +104,8 @@ def sync_detailed(
|
|
|
97
104
|
|
|
98
105
|
kwargs = _get_kwargs(
|
|
99
106
|
subscription_id=subscription_id,
|
|
107
|
+
token=token,
|
|
100
108
|
authorization=authorization,
|
|
101
|
-
auth_token=auth_token,
|
|
102
109
|
)
|
|
103
110
|
|
|
104
111
|
response = client.get_httpx_client().request(
|
|
@@ -112,8 +119,8 @@ def sync(
|
|
|
112
119
|
subscription_id: str,
|
|
113
120
|
*,
|
|
114
121
|
client: AuthenticatedClient,
|
|
122
|
+
token: Union[None, Unset, str] = UNSET,
|
|
115
123
|
authorization: Union[None, Unset, str] = UNSET,
|
|
116
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
117
124
|
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
118
125
|
"""Cancel Subscription
|
|
119
126
|
|
|
@@ -121,8 +128,8 @@ def sync(
|
|
|
121
128
|
|
|
122
129
|
Args:
|
|
123
130
|
subscription_id (str):
|
|
131
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
124
132
|
authorization (Union[None, Unset, str]):
|
|
125
|
-
auth_token (Union[None, Unset, str]):
|
|
126
133
|
|
|
127
134
|
Raises:
|
|
128
135
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -135,8 +142,8 @@ def sync(
|
|
|
135
142
|
return sync_detailed(
|
|
136
143
|
subscription_id=subscription_id,
|
|
137
144
|
client=client,
|
|
145
|
+
token=token,
|
|
138
146
|
authorization=authorization,
|
|
139
|
-
auth_token=auth_token,
|
|
140
147
|
).parsed
|
|
141
148
|
|
|
142
149
|
|
|
@@ -144,8 +151,8 @@ async def asyncio_detailed(
|
|
|
144
151
|
subscription_id: str,
|
|
145
152
|
*,
|
|
146
153
|
client: AuthenticatedClient,
|
|
154
|
+
token: Union[None, Unset, str] = UNSET,
|
|
147
155
|
authorization: Union[None, Unset, str] = UNSET,
|
|
148
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
149
156
|
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
150
157
|
"""Cancel Subscription
|
|
151
158
|
|
|
@@ -153,8 +160,8 @@ async def asyncio_detailed(
|
|
|
153
160
|
|
|
154
161
|
Args:
|
|
155
162
|
subscription_id (str):
|
|
163
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
156
164
|
authorization (Union[None, Unset, str]):
|
|
157
|
-
auth_token (Union[None, Unset, str]):
|
|
158
165
|
|
|
159
166
|
Raises:
|
|
160
167
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -166,8 +173,8 @@ async def asyncio_detailed(
|
|
|
166
173
|
|
|
167
174
|
kwargs = _get_kwargs(
|
|
168
175
|
subscription_id=subscription_id,
|
|
176
|
+
token=token,
|
|
169
177
|
authorization=authorization,
|
|
170
|
-
auth_token=auth_token,
|
|
171
178
|
)
|
|
172
179
|
|
|
173
180
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -179,8 +186,8 @@ async def asyncio(
|
|
|
179
186
|
subscription_id: str,
|
|
180
187
|
*,
|
|
181
188
|
client: AuthenticatedClient,
|
|
189
|
+
token: Union[None, Unset, str] = UNSET,
|
|
182
190
|
authorization: Union[None, Unset, str] = UNSET,
|
|
183
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
184
191
|
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
185
192
|
"""Cancel Subscription
|
|
186
193
|
|
|
@@ -188,8 +195,8 @@ async def asyncio(
|
|
|
188
195
|
|
|
189
196
|
Args:
|
|
190
197
|
subscription_id (str):
|
|
198
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
191
199
|
authorization (Union[None, Unset, str]):
|
|
192
|
-
auth_token (Union[None, Unset, str]):
|
|
193
200
|
|
|
194
201
|
Raises:
|
|
195
202
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -203,7 +210,7 @@ async def asyncio(
|
|
|
203
210
|
await asyncio_detailed(
|
|
204
211
|
subscription_id=subscription_id,
|
|
205
212
|
client=client,
|
|
213
|
+
token=token,
|
|
206
214
|
authorization=authorization,
|
|
207
|
-
auth_token=auth_token,
|
|
208
215
|
)
|
|
209
216
|
).parsed
|
|
@@ -13,21 +13,28 @@ from ...types import UNSET, Response, Unset
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
repository: str,
|
|
15
15
|
*,
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
params: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
json_token: Union[None, Unset, str]
|
|
26
|
+
if isinstance(token, Unset):
|
|
27
|
+
json_token = UNSET
|
|
28
|
+
else:
|
|
29
|
+
json_token = token
|
|
30
|
+
params["token"] = json_token
|
|
31
|
+
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
26
33
|
|
|
27
34
|
_kwargs: dict[str, Any] = {
|
|
28
35
|
"method": "get",
|
|
29
36
|
"url": f"/v1/user/subscriptions/shared-repositories/credits/{repository}",
|
|
30
|
-
"
|
|
37
|
+
"params": params,
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
_kwargs["headers"] = headers
|
|
@@ -72,8 +79,8 @@ def sync_detailed(
|
|
|
72
79
|
repository: str,
|
|
73
80
|
*,
|
|
74
81
|
client: AuthenticatedClient,
|
|
82
|
+
token: Union[None, Unset, str] = UNSET,
|
|
75
83
|
authorization: Union[None, Unset, str] = UNSET,
|
|
76
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
77
84
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
78
85
|
"""Get Repository Credits
|
|
79
86
|
|
|
@@ -81,8 +88,8 @@ def sync_detailed(
|
|
|
81
88
|
|
|
82
89
|
Args:
|
|
83
90
|
repository (str):
|
|
91
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
84
92
|
authorization (Union[None, Unset, str]):
|
|
85
|
-
auth_token (Union[None, Unset, str]):
|
|
86
93
|
|
|
87
94
|
Raises:
|
|
88
95
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -94,8 +101,8 @@ def sync_detailed(
|
|
|
94
101
|
|
|
95
102
|
kwargs = _get_kwargs(
|
|
96
103
|
repository=repository,
|
|
104
|
+
token=token,
|
|
97
105
|
authorization=authorization,
|
|
98
|
-
auth_token=auth_token,
|
|
99
106
|
)
|
|
100
107
|
|
|
101
108
|
response = client.get_httpx_client().request(
|
|
@@ -109,8 +116,8 @@ def sync(
|
|
|
109
116
|
repository: str,
|
|
110
117
|
*,
|
|
111
118
|
client: AuthenticatedClient,
|
|
119
|
+
token: Union[None, Unset, str] = UNSET,
|
|
112
120
|
authorization: Union[None, Unset, str] = UNSET,
|
|
113
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
114
121
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
115
122
|
"""Get Repository Credits
|
|
116
123
|
|
|
@@ -118,8 +125,8 @@ def sync(
|
|
|
118
125
|
|
|
119
126
|
Args:
|
|
120
127
|
repository (str):
|
|
128
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
121
129
|
authorization (Union[None, Unset, str]):
|
|
122
|
-
auth_token (Union[None, Unset, str]):
|
|
123
130
|
|
|
124
131
|
Raises:
|
|
125
132
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -132,8 +139,8 @@ def sync(
|
|
|
132
139
|
return sync_detailed(
|
|
133
140
|
repository=repository,
|
|
134
141
|
client=client,
|
|
142
|
+
token=token,
|
|
135
143
|
authorization=authorization,
|
|
136
|
-
auth_token=auth_token,
|
|
137
144
|
).parsed
|
|
138
145
|
|
|
139
146
|
|
|
@@ -141,8 +148,8 @@ async def asyncio_detailed(
|
|
|
141
148
|
repository: str,
|
|
142
149
|
*,
|
|
143
150
|
client: AuthenticatedClient,
|
|
151
|
+
token: Union[None, Unset, str] = UNSET,
|
|
144
152
|
authorization: Union[None, Unset, str] = UNSET,
|
|
145
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
146
153
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
147
154
|
"""Get Repository Credits
|
|
148
155
|
|
|
@@ -150,8 +157,8 @@ async def asyncio_detailed(
|
|
|
150
157
|
|
|
151
158
|
Args:
|
|
152
159
|
repository (str):
|
|
160
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
153
161
|
authorization (Union[None, Unset, str]):
|
|
154
|
-
auth_token (Union[None, Unset, str]):
|
|
155
162
|
|
|
156
163
|
Raises:
|
|
157
164
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -163,8 +170,8 @@ async def asyncio_detailed(
|
|
|
163
170
|
|
|
164
171
|
kwargs = _get_kwargs(
|
|
165
172
|
repository=repository,
|
|
173
|
+
token=token,
|
|
166
174
|
authorization=authorization,
|
|
167
|
-
auth_token=auth_token,
|
|
168
175
|
)
|
|
169
176
|
|
|
170
177
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -176,8 +183,8 @@ async def asyncio(
|
|
|
176
183
|
repository: str,
|
|
177
184
|
*,
|
|
178
185
|
client: AuthenticatedClient,
|
|
186
|
+
token: Union[None, Unset, str] = UNSET,
|
|
179
187
|
authorization: Union[None, Unset, str] = UNSET,
|
|
180
|
-
auth_token: Union[None, Unset, str] = UNSET,
|
|
181
188
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
182
189
|
"""Get Repository Credits
|
|
183
190
|
|
|
@@ -185,8 +192,8 @@ async def asyncio(
|
|
|
185
192
|
|
|
186
193
|
Args:
|
|
187
194
|
repository (str):
|
|
195
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
188
196
|
authorization (Union[None, Unset, str]):
|
|
189
|
-
auth_token (Union[None, Unset, str]):
|
|
190
197
|
|
|
191
198
|
Raises:
|
|
192
199
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -200,7 +207,7 @@ async def asyncio(
|
|
|
200
207
|
await asyncio_detailed(
|
|
201
208
|
repository=repository,
|
|
202
209
|
client=client,
|
|
210
|
+
token=token,
|
|
203
211
|
authorization=authorization,
|
|
204
|
-
auth_token=auth_token,
|
|
205
212
|
)
|
|
206
213
|
).parsed
|