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
|
@@ -13,15 +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
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
19
20
|
if not isinstance(authorization, Unset):
|
|
20
21
|
headers["authorization"] = authorization
|
|
21
22
|
|
|
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}
|
|
33
|
+
|
|
22
34
|
_kwargs: dict[str, Any] = {
|
|
23
35
|
"method": "delete",
|
|
24
36
|
"url": f"/v1/user/subscriptions/shared-repositories/{subscription_id}",
|
|
37
|
+
"params": params,
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
_kwargs["headers"] = headers
|
|
@@ -69,6 +82,7 @@ def sync_detailed(
|
|
|
69
82
|
subscription_id: str,
|
|
70
83
|
*,
|
|
71
84
|
client: AuthenticatedClient,
|
|
85
|
+
token: Union[None, Unset, str] = UNSET,
|
|
72
86
|
authorization: Union[None, Unset, str] = UNSET,
|
|
73
87
|
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
74
88
|
"""Cancel Subscription
|
|
@@ -77,6 +91,7 @@ def sync_detailed(
|
|
|
77
91
|
|
|
78
92
|
Args:
|
|
79
93
|
subscription_id (str):
|
|
94
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
80
95
|
authorization (Union[None, Unset, str]):
|
|
81
96
|
|
|
82
97
|
Raises:
|
|
@@ -89,6 +104,7 @@ def sync_detailed(
|
|
|
89
104
|
|
|
90
105
|
kwargs = _get_kwargs(
|
|
91
106
|
subscription_id=subscription_id,
|
|
107
|
+
token=token,
|
|
92
108
|
authorization=authorization,
|
|
93
109
|
)
|
|
94
110
|
|
|
@@ -103,6 +119,7 @@ def sync(
|
|
|
103
119
|
subscription_id: str,
|
|
104
120
|
*,
|
|
105
121
|
client: AuthenticatedClient,
|
|
122
|
+
token: Union[None, Unset, str] = UNSET,
|
|
106
123
|
authorization: Union[None, Unset, str] = UNSET,
|
|
107
124
|
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
108
125
|
"""Cancel Subscription
|
|
@@ -111,6 +128,7 @@ def sync(
|
|
|
111
128
|
|
|
112
129
|
Args:
|
|
113
130
|
subscription_id (str):
|
|
131
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
114
132
|
authorization (Union[None, Unset, str]):
|
|
115
133
|
|
|
116
134
|
Raises:
|
|
@@ -124,6 +142,7 @@ def sync(
|
|
|
124
142
|
return sync_detailed(
|
|
125
143
|
subscription_id=subscription_id,
|
|
126
144
|
client=client,
|
|
145
|
+
token=token,
|
|
127
146
|
authorization=authorization,
|
|
128
147
|
).parsed
|
|
129
148
|
|
|
@@ -132,6 +151,7 @@ async def asyncio_detailed(
|
|
|
132
151
|
subscription_id: str,
|
|
133
152
|
*,
|
|
134
153
|
client: AuthenticatedClient,
|
|
154
|
+
token: Union[None, Unset, str] = UNSET,
|
|
135
155
|
authorization: Union[None, Unset, str] = UNSET,
|
|
136
156
|
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
137
157
|
"""Cancel Subscription
|
|
@@ -140,6 +160,7 @@ async def asyncio_detailed(
|
|
|
140
160
|
|
|
141
161
|
Args:
|
|
142
162
|
subscription_id (str):
|
|
163
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
143
164
|
authorization (Union[None, Unset, str]):
|
|
144
165
|
|
|
145
166
|
Raises:
|
|
@@ -152,6 +173,7 @@ async def asyncio_detailed(
|
|
|
152
173
|
|
|
153
174
|
kwargs = _get_kwargs(
|
|
154
175
|
subscription_id=subscription_id,
|
|
176
|
+
token=token,
|
|
155
177
|
authorization=authorization,
|
|
156
178
|
)
|
|
157
179
|
|
|
@@ -164,6 +186,7 @@ async def asyncio(
|
|
|
164
186
|
subscription_id: str,
|
|
165
187
|
*,
|
|
166
188
|
client: AuthenticatedClient,
|
|
189
|
+
token: Union[None, Unset, str] = UNSET,
|
|
167
190
|
authorization: Union[None, Unset, str] = UNSET,
|
|
168
191
|
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
169
192
|
"""Cancel Subscription
|
|
@@ -172,6 +195,7 @@ async def asyncio(
|
|
|
172
195
|
|
|
173
196
|
Args:
|
|
174
197
|
subscription_id (str):
|
|
198
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
175
199
|
authorization (Union[None, Unset, str]):
|
|
176
200
|
|
|
177
201
|
Raises:
|
|
@@ -186,6 +210,7 @@ async def asyncio(
|
|
|
186
210
|
await asyncio_detailed(
|
|
187
211
|
subscription_id=subscription_id,
|
|
188
212
|
client=client,
|
|
213
|
+
token=token,
|
|
189
214
|
authorization=authorization,
|
|
190
215
|
)
|
|
191
216
|
).parsed
|
|
@@ -13,15 +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
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
19
20
|
if not isinstance(authorization, Unset):
|
|
20
21
|
headers["authorization"] = authorization
|
|
21
22
|
|
|
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}
|
|
33
|
+
|
|
22
34
|
_kwargs: dict[str, Any] = {
|
|
23
35
|
"method": "get",
|
|
24
36
|
"url": f"/v1/user/subscriptions/shared-repositories/credits/{repository}",
|
|
37
|
+
"params": params,
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
_kwargs["headers"] = headers
|
|
@@ -66,6 +79,7 @@ def sync_detailed(
|
|
|
66
79
|
repository: str,
|
|
67
80
|
*,
|
|
68
81
|
client: AuthenticatedClient,
|
|
82
|
+
token: Union[None, Unset, str] = UNSET,
|
|
69
83
|
authorization: Union[None, Unset, str] = UNSET,
|
|
70
84
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
71
85
|
"""Get Repository Credits
|
|
@@ -74,6 +88,7 @@ def sync_detailed(
|
|
|
74
88
|
|
|
75
89
|
Args:
|
|
76
90
|
repository (str):
|
|
91
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
77
92
|
authorization (Union[None, Unset, str]):
|
|
78
93
|
|
|
79
94
|
Raises:
|
|
@@ -86,6 +101,7 @@ def sync_detailed(
|
|
|
86
101
|
|
|
87
102
|
kwargs = _get_kwargs(
|
|
88
103
|
repository=repository,
|
|
104
|
+
token=token,
|
|
89
105
|
authorization=authorization,
|
|
90
106
|
)
|
|
91
107
|
|
|
@@ -100,6 +116,7 @@ def sync(
|
|
|
100
116
|
repository: str,
|
|
101
117
|
*,
|
|
102
118
|
client: AuthenticatedClient,
|
|
119
|
+
token: Union[None, Unset, str] = UNSET,
|
|
103
120
|
authorization: Union[None, Unset, str] = UNSET,
|
|
104
121
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
105
122
|
"""Get Repository Credits
|
|
@@ -108,6 +125,7 @@ def sync(
|
|
|
108
125
|
|
|
109
126
|
Args:
|
|
110
127
|
repository (str):
|
|
128
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
111
129
|
authorization (Union[None, Unset, str]):
|
|
112
130
|
|
|
113
131
|
Raises:
|
|
@@ -121,6 +139,7 @@ def sync(
|
|
|
121
139
|
return sync_detailed(
|
|
122
140
|
repository=repository,
|
|
123
141
|
client=client,
|
|
142
|
+
token=token,
|
|
124
143
|
authorization=authorization,
|
|
125
144
|
).parsed
|
|
126
145
|
|
|
@@ -129,6 +148,7 @@ async def asyncio_detailed(
|
|
|
129
148
|
repository: str,
|
|
130
149
|
*,
|
|
131
150
|
client: AuthenticatedClient,
|
|
151
|
+
token: Union[None, Unset, str] = UNSET,
|
|
132
152
|
authorization: Union[None, Unset, str] = UNSET,
|
|
133
153
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
134
154
|
"""Get Repository Credits
|
|
@@ -137,6 +157,7 @@ async def asyncio_detailed(
|
|
|
137
157
|
|
|
138
158
|
Args:
|
|
139
159
|
repository (str):
|
|
160
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
140
161
|
authorization (Union[None, Unset, str]):
|
|
141
162
|
|
|
142
163
|
Raises:
|
|
@@ -149,6 +170,7 @@ async def asyncio_detailed(
|
|
|
149
170
|
|
|
150
171
|
kwargs = _get_kwargs(
|
|
151
172
|
repository=repository,
|
|
173
|
+
token=token,
|
|
152
174
|
authorization=authorization,
|
|
153
175
|
)
|
|
154
176
|
|
|
@@ -161,6 +183,7 @@ async def asyncio(
|
|
|
161
183
|
repository: str,
|
|
162
184
|
*,
|
|
163
185
|
client: AuthenticatedClient,
|
|
186
|
+
token: Union[None, Unset, str] = UNSET,
|
|
164
187
|
authorization: Union[None, Unset, str] = UNSET,
|
|
165
188
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
166
189
|
"""Get Repository Credits
|
|
@@ -169,6 +192,7 @@ async def asyncio(
|
|
|
169
192
|
|
|
170
193
|
Args:
|
|
171
194
|
repository (str):
|
|
195
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
172
196
|
authorization (Union[None, Unset, str]):
|
|
173
197
|
|
|
174
198
|
Raises:
|
|
@@ -183,6 +207,7 @@ async def asyncio(
|
|
|
183
207
|
await asyncio_detailed(
|
|
184
208
|
repository=repository,
|
|
185
209
|
client=client,
|
|
210
|
+
token=token,
|
|
186
211
|
authorization=authorization,
|
|
187
212
|
)
|
|
188
213
|
).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/subscriptions/shared-repositories/credits",
|
|
36
|
+
"params": params,
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
_kwargs["headers"] = headers
|
|
@@ -64,6 +77,7 @@ def _build_response(
|
|
|
64
77
|
def sync_detailed(
|
|
65
78
|
*,
|
|
66
79
|
client: AuthenticatedClient,
|
|
80
|
+
token: Union[None, Unset, str] = UNSET,
|
|
67
81
|
authorization: Union[None, Unset, str] = UNSET,
|
|
68
82
|
) -> Response[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
69
83
|
"""Get Credit Balances
|
|
@@ -71,6 +85,7 @@ def sync_detailed(
|
|
|
71
85
|
Retrieve credit balances for all shared repository subscriptions
|
|
72
86
|
|
|
73
87
|
Args:
|
|
88
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
74
89
|
authorization (Union[None, Unset, str]):
|
|
75
90
|
|
|
76
91
|
Raises:
|
|
@@ -82,6 +97,7 @@ def sync_detailed(
|
|
|
82
97
|
"""
|
|
83
98
|
|
|
84
99
|
kwargs = _get_kwargs(
|
|
100
|
+
token=token,
|
|
85
101
|
authorization=authorization,
|
|
86
102
|
)
|
|
87
103
|
|
|
@@ -95,6 +111,7 @@ def sync_detailed(
|
|
|
95
111
|
def sync(
|
|
96
112
|
*,
|
|
97
113
|
client: AuthenticatedClient,
|
|
114
|
+
token: Union[None, Unset, str] = UNSET,
|
|
98
115
|
authorization: Union[None, Unset, str] = UNSET,
|
|
99
116
|
) -> Optional[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
100
117
|
"""Get Credit Balances
|
|
@@ -102,6 +119,7 @@ def sync(
|
|
|
102
119
|
Retrieve credit balances for all shared repository subscriptions
|
|
103
120
|
|
|
104
121
|
Args:
|
|
122
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
105
123
|
authorization (Union[None, Unset, str]):
|
|
106
124
|
|
|
107
125
|
Raises:
|
|
@@ -114,6 +132,7 @@ def sync(
|
|
|
114
132
|
|
|
115
133
|
return sync_detailed(
|
|
116
134
|
client=client,
|
|
135
|
+
token=token,
|
|
117
136
|
authorization=authorization,
|
|
118
137
|
).parsed
|
|
119
138
|
|
|
@@ -121,6 +140,7 @@ def sync(
|
|
|
121
140
|
async def asyncio_detailed(
|
|
122
141
|
*,
|
|
123
142
|
client: AuthenticatedClient,
|
|
143
|
+
token: Union[None, Unset, str] = UNSET,
|
|
124
144
|
authorization: Union[None, Unset, str] = UNSET,
|
|
125
145
|
) -> Response[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
126
146
|
"""Get Credit Balances
|
|
@@ -128,6 +148,7 @@ async def asyncio_detailed(
|
|
|
128
148
|
Retrieve credit balances for all shared repository subscriptions
|
|
129
149
|
|
|
130
150
|
Args:
|
|
151
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
131
152
|
authorization (Union[None, Unset, str]):
|
|
132
153
|
|
|
133
154
|
Raises:
|
|
@@ -139,6 +160,7 @@ async def asyncio_detailed(
|
|
|
139
160
|
"""
|
|
140
161
|
|
|
141
162
|
kwargs = _get_kwargs(
|
|
163
|
+
token=token,
|
|
142
164
|
authorization=authorization,
|
|
143
165
|
)
|
|
144
166
|
|
|
@@ -150,6 +172,7 @@ async def asyncio_detailed(
|
|
|
150
172
|
async def asyncio(
|
|
151
173
|
*,
|
|
152
174
|
client: AuthenticatedClient,
|
|
175
|
+
token: Union[None, Unset, str] = UNSET,
|
|
153
176
|
authorization: Union[None, Unset, str] = UNSET,
|
|
154
177
|
) -> Optional[Union[Any, CreditsSummaryResponse, HTTPValidationError]]:
|
|
155
178
|
"""Get Credit Balances
|
|
@@ -157,6 +180,7 @@ async def asyncio(
|
|
|
157
180
|
Retrieve credit balances for all shared repository subscriptions
|
|
158
181
|
|
|
159
182
|
Args:
|
|
183
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
160
184
|
authorization (Union[None, Unset, str]):
|
|
161
185
|
|
|
162
186
|
Raises:
|
|
@@ -170,6 +194,7 @@ async def asyncio(
|
|
|
170
194
|
return (
|
|
171
195
|
await asyncio_detailed(
|
|
172
196
|
client=client,
|
|
197
|
+
token=token,
|
|
173
198
|
authorization=authorization,
|
|
174
199
|
)
|
|
175
200
|
).parsed
|
|
@@ -13,6 +13,7 @@ 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
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
@@ -23,6 +24,13 @@ def _get_kwargs(
|
|
|
23
24
|
|
|
24
25
|
params["active_only"] = active_only
|
|
25
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
|
+
|
|
26
34
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
27
35
|
|
|
28
36
|
_kwargs: dict[str, Any] = {
|
|
@@ -73,6 +81,7 @@ def sync_detailed(
|
|
|
73
81
|
*,
|
|
74
82
|
client: AuthenticatedClient,
|
|
75
83
|
active_only: Union[Unset, bool] = True,
|
|
84
|
+
token: Union[None, Unset, str] = UNSET,
|
|
76
85
|
authorization: Union[None, Unset, str] = UNSET,
|
|
77
86
|
) -> Response[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
78
87
|
"""Get User Subscriptions
|
|
@@ -81,6 +90,7 @@ def sync_detailed(
|
|
|
81
90
|
|
|
82
91
|
Args:
|
|
83
92
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
93
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
84
94
|
authorization (Union[None, Unset, str]):
|
|
85
95
|
|
|
86
96
|
Raises:
|
|
@@ -93,6 +103,7 @@ def sync_detailed(
|
|
|
93
103
|
|
|
94
104
|
kwargs = _get_kwargs(
|
|
95
105
|
active_only=active_only,
|
|
106
|
+
token=token,
|
|
96
107
|
authorization=authorization,
|
|
97
108
|
)
|
|
98
109
|
|
|
@@ -107,6 +118,7 @@ def sync(
|
|
|
107
118
|
*,
|
|
108
119
|
client: AuthenticatedClient,
|
|
109
120
|
active_only: Union[Unset, bool] = True,
|
|
121
|
+
token: Union[None, Unset, str] = UNSET,
|
|
110
122
|
authorization: Union[None, Unset, str] = UNSET,
|
|
111
123
|
) -> Optional[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
112
124
|
"""Get User Subscriptions
|
|
@@ -115,6 +127,7 @@ def sync(
|
|
|
115
127
|
|
|
116
128
|
Args:
|
|
117
129
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
130
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
118
131
|
authorization (Union[None, Unset, str]):
|
|
119
132
|
|
|
120
133
|
Raises:
|
|
@@ -128,6 +141,7 @@ def sync(
|
|
|
128
141
|
return sync_detailed(
|
|
129
142
|
client=client,
|
|
130
143
|
active_only=active_only,
|
|
144
|
+
token=token,
|
|
131
145
|
authorization=authorization,
|
|
132
146
|
).parsed
|
|
133
147
|
|
|
@@ -136,6 +150,7 @@ async def asyncio_detailed(
|
|
|
136
150
|
*,
|
|
137
151
|
client: AuthenticatedClient,
|
|
138
152
|
active_only: Union[Unset, bool] = True,
|
|
153
|
+
token: Union[None, Unset, str] = UNSET,
|
|
139
154
|
authorization: Union[None, Unset, str] = UNSET,
|
|
140
155
|
) -> Response[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
141
156
|
"""Get User Subscriptions
|
|
@@ -144,6 +159,7 @@ async def asyncio_detailed(
|
|
|
144
159
|
|
|
145
160
|
Args:
|
|
146
161
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
162
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
147
163
|
authorization (Union[None, Unset, str]):
|
|
148
164
|
|
|
149
165
|
Raises:
|
|
@@ -156,6 +172,7 @@ async def asyncio_detailed(
|
|
|
156
172
|
|
|
157
173
|
kwargs = _get_kwargs(
|
|
158
174
|
active_only=active_only,
|
|
175
|
+
token=token,
|
|
159
176
|
authorization=authorization,
|
|
160
177
|
)
|
|
161
178
|
|
|
@@ -168,6 +185,7 @@ async def asyncio(
|
|
|
168
185
|
*,
|
|
169
186
|
client: AuthenticatedClient,
|
|
170
187
|
active_only: Union[Unset, bool] = True,
|
|
188
|
+
token: Union[None, Unset, str] = UNSET,
|
|
171
189
|
authorization: Union[None, Unset, str] = UNSET,
|
|
172
190
|
) -> Optional[Union[Any, HTTPValidationError, UserSubscriptionsResponse]]:
|
|
173
191
|
"""Get User Subscriptions
|
|
@@ -176,6 +194,7 @@ async def asyncio(
|
|
|
176
194
|
|
|
177
195
|
Args:
|
|
178
196
|
active_only (Union[Unset, bool]): Only return active subscriptions Default: True.
|
|
197
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
198
|
authorization (Union[None, Unset, str]):
|
|
180
199
|
|
|
181
200
|
Raises:
|
|
@@ -190,6 +209,7 @@ async def asyncio(
|
|
|
190
209
|
await asyncio_detailed(
|
|
191
210
|
client=client,
|
|
192
211
|
active_only=active_only,
|
|
212
|
+
token=token,
|
|
193
213
|
authorization=authorization,
|
|
194
214
|
)
|
|
195
215
|
).parsed
|
|
@@ -14,15 +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
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": "post",
|
|
25
37
|
"url": "/v1/user/subscriptions/shared-repositories/subscribe",
|
|
38
|
+
"params": params,
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
_kwargs["json"] = body.to_dict()
|
|
@@ -74,6 +87,7 @@ def sync_detailed(
|
|
|
74
87
|
*,
|
|
75
88
|
client: AuthenticatedClient,
|
|
76
89
|
body: SubscriptionRequest,
|
|
90
|
+
token: Union[None, Unset, str] = UNSET,
|
|
77
91
|
authorization: Union[None, Unset, str] = UNSET,
|
|
78
92
|
) -> Response[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
79
93
|
"""Subscribe to Shared Repository
|
|
@@ -81,6 +95,7 @@ def sync_detailed(
|
|
|
81
95
|
Create a new subscription to a shared repository add-on with specified tier
|
|
82
96
|
|
|
83
97
|
Args:
|
|
98
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
84
99
|
authorization (Union[None, Unset, str]):
|
|
85
100
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
86
101
|
|
|
@@ -94,6 +109,7 @@ def sync_detailed(
|
|
|
94
109
|
|
|
95
110
|
kwargs = _get_kwargs(
|
|
96
111
|
body=body,
|
|
112
|
+
token=token,
|
|
97
113
|
authorization=authorization,
|
|
98
114
|
)
|
|
99
115
|
|
|
@@ -108,6 +124,7 @@ def sync(
|
|
|
108
124
|
*,
|
|
109
125
|
client: AuthenticatedClient,
|
|
110
126
|
body: SubscriptionRequest,
|
|
127
|
+
token: Union[None, Unset, str] = UNSET,
|
|
111
128
|
authorization: Union[None, Unset, str] = UNSET,
|
|
112
129
|
) -> Optional[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
113
130
|
"""Subscribe to Shared Repository
|
|
@@ -115,6 +132,7 @@ def sync(
|
|
|
115
132
|
Create a new subscription to a shared repository add-on with specified tier
|
|
116
133
|
|
|
117
134
|
Args:
|
|
135
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
118
136
|
authorization (Union[None, Unset, str]):
|
|
119
137
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
120
138
|
|
|
@@ -129,6 +147,7 @@ def sync(
|
|
|
129
147
|
return sync_detailed(
|
|
130
148
|
client=client,
|
|
131
149
|
body=body,
|
|
150
|
+
token=token,
|
|
132
151
|
authorization=authorization,
|
|
133
152
|
).parsed
|
|
134
153
|
|
|
@@ -137,6 +156,7 @@ async def asyncio_detailed(
|
|
|
137
156
|
*,
|
|
138
157
|
client: AuthenticatedClient,
|
|
139
158
|
body: SubscriptionRequest,
|
|
159
|
+
token: Union[None, Unset, str] = UNSET,
|
|
140
160
|
authorization: Union[None, Unset, str] = UNSET,
|
|
141
161
|
) -> Response[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
142
162
|
"""Subscribe to Shared Repository
|
|
@@ -144,6 +164,7 @@ async def asyncio_detailed(
|
|
|
144
164
|
Create a new subscription to a shared repository add-on with specified tier
|
|
145
165
|
|
|
146
166
|
Args:
|
|
167
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
147
168
|
authorization (Union[None, Unset, str]):
|
|
148
169
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
149
170
|
|
|
@@ -157,6 +178,7 @@ async def asyncio_detailed(
|
|
|
157
178
|
|
|
158
179
|
kwargs = _get_kwargs(
|
|
159
180
|
body=body,
|
|
181
|
+
token=token,
|
|
160
182
|
authorization=authorization,
|
|
161
183
|
)
|
|
162
184
|
|
|
@@ -169,6 +191,7 @@ async def asyncio(
|
|
|
169
191
|
*,
|
|
170
192
|
client: AuthenticatedClient,
|
|
171
193
|
body: SubscriptionRequest,
|
|
194
|
+
token: Union[None, Unset, str] = UNSET,
|
|
172
195
|
authorization: Union[None, Unset, str] = UNSET,
|
|
173
196
|
) -> Optional[Union[Any, HTTPValidationError, SubscriptionResponse]]:
|
|
174
197
|
"""Subscribe to Shared Repository
|
|
@@ -176,6 +199,7 @@ async def asyncio(
|
|
|
176
199
|
Create a new subscription to a shared repository add-on with specified tier
|
|
177
200
|
|
|
178
201
|
Args:
|
|
202
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
203
|
authorization (Union[None, Unset, str]):
|
|
180
204
|
body (SubscriptionRequest): Request to create a new subscription.
|
|
181
205
|
|
|
@@ -191,6 +215,7 @@ async def asyncio(
|
|
|
191
215
|
await asyncio_detailed(
|
|
192
216
|
client=client,
|
|
193
217
|
body=body,
|
|
218
|
+
token=token,
|
|
194
219
|
authorization=authorization,
|
|
195
220
|
)
|
|
196
221
|
).parsed
|
|
@@ -14,15 +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
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": "put",
|
|
25
37
|
"url": f"/v1/user/subscriptions/shared-repositories/{subscription_id}/upgrade",
|
|
38
|
+
"params": params,
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
_kwargs["json"] = body.to_dict()
|
|
@@ -77,6 +90,7 @@ def sync_detailed(
|
|
|
77
90
|
*,
|
|
78
91
|
client: AuthenticatedClient,
|
|
79
92
|
body: TierUpgradeRequest,
|
|
93
|
+
token: Union[None, Unset, str] = UNSET,
|
|
80
94
|
authorization: Union[None, Unset, str] = UNSET,
|
|
81
95
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
82
96
|
"""Upgrade Subscription Tier
|
|
@@ -85,6 +99,7 @@ def sync_detailed(
|
|
|
85
99
|
|
|
86
100
|
Args:
|
|
87
101
|
subscription_id (str):
|
|
102
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
88
103
|
authorization (Union[None, Unset, str]):
|
|
89
104
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
90
105
|
|
|
@@ -99,6 +114,7 @@ def sync_detailed(
|
|
|
99
114
|
kwargs = _get_kwargs(
|
|
100
115
|
subscription_id=subscription_id,
|
|
101
116
|
body=body,
|
|
117
|
+
token=token,
|
|
102
118
|
authorization=authorization,
|
|
103
119
|
)
|
|
104
120
|
|
|
@@ -114,6 +130,7 @@ def sync(
|
|
|
114
130
|
*,
|
|
115
131
|
client: AuthenticatedClient,
|
|
116
132
|
body: TierUpgradeRequest,
|
|
133
|
+
token: Union[None, Unset, str] = UNSET,
|
|
117
134
|
authorization: Union[None, Unset, str] = UNSET,
|
|
118
135
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
119
136
|
"""Upgrade Subscription Tier
|
|
@@ -122,6 +139,7 @@ def sync(
|
|
|
122
139
|
|
|
123
140
|
Args:
|
|
124
141
|
subscription_id (str):
|
|
142
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
143
|
authorization (Union[None, Unset, str]):
|
|
126
144
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
127
145
|
|
|
@@ -137,6 +155,7 @@ def sync(
|
|
|
137
155
|
subscription_id=subscription_id,
|
|
138
156
|
client=client,
|
|
139
157
|
body=body,
|
|
158
|
+
token=token,
|
|
140
159
|
authorization=authorization,
|
|
141
160
|
).parsed
|
|
142
161
|
|
|
@@ -146,6 +165,7 @@ async def asyncio_detailed(
|
|
|
146
165
|
*,
|
|
147
166
|
client: AuthenticatedClient,
|
|
148
167
|
body: TierUpgradeRequest,
|
|
168
|
+
token: Union[None, Unset, str] = UNSET,
|
|
149
169
|
authorization: Union[None, Unset, str] = UNSET,
|
|
150
170
|
) -> Response[Union[Any, HTTPValidationError]]:
|
|
151
171
|
"""Upgrade Subscription Tier
|
|
@@ -154,6 +174,7 @@ async def asyncio_detailed(
|
|
|
154
174
|
|
|
155
175
|
Args:
|
|
156
176
|
subscription_id (str):
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
157
178
|
authorization (Union[None, Unset, str]):
|
|
158
179
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
159
180
|
|
|
@@ -168,6 +189,7 @@ async def asyncio_detailed(
|
|
|
168
189
|
kwargs = _get_kwargs(
|
|
169
190
|
subscription_id=subscription_id,
|
|
170
191
|
body=body,
|
|
192
|
+
token=token,
|
|
171
193
|
authorization=authorization,
|
|
172
194
|
)
|
|
173
195
|
|
|
@@ -181,6 +203,7 @@ async def asyncio(
|
|
|
181
203
|
*,
|
|
182
204
|
client: AuthenticatedClient,
|
|
183
205
|
body: TierUpgradeRequest,
|
|
206
|
+
token: Union[None, Unset, str] = UNSET,
|
|
184
207
|
authorization: Union[None, Unset, str] = UNSET,
|
|
185
208
|
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
186
209
|
"""Upgrade Subscription Tier
|
|
@@ -189,6 +212,7 @@ async def asyncio(
|
|
|
189
212
|
|
|
190
213
|
Args:
|
|
191
214
|
subscription_id (str):
|
|
215
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
192
216
|
authorization (Union[None, Unset, str]):
|
|
193
217
|
body (TierUpgradeRequest): Request to upgrade subscription tier.
|
|
194
218
|
|
|
@@ -205,6 +229,7 @@ async def asyncio(
|
|
|
205
229
|
subscription_id=subscription_id,
|
|
206
230
|
client=client,
|
|
207
231
|
body=body,
|
|
232
|
+
token=token,
|
|
208
233
|
authorization=authorization,
|
|
209
234
|
)
|
|
210
235
|
).parsed
|