robosystems-client 0.2.8__py3-none-any.whl → 0.2.10__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.
Files changed (77) hide show
  1. robosystems_client/api/graphs/get_graphs.py +120 -92
  2. robosystems_client/api/{user_subscriptions/cancel_shared_repository_subscription.py → subscriptions/cancel_subscription.py} +41 -25
  3. robosystems_client/api/subscriptions/create_repository_subscription.py +217 -0
  4. robosystems_client/api/subscriptions/get_graph_subscription.py +197 -0
  5. robosystems_client/api/{user_subscriptions/upgrade_shared_repository_subscription.py → subscriptions/upgrade_subscription.py} +57 -55
  6. robosystems_client/api/usage/get_graph_usage_analytics.py +377 -0
  7. robosystems_client/api/{user_limits/get_user_usage.py → user/get_user_limits.py} +13 -9
  8. robosystems_client/models/__init__.py +18 -82
  9. robosystems_client/models/{credits_summary_response_credits_by_addon_type_0_item.py → create_repository_subscription_request.py} +22 -6
  10. robosystems_client/models/credit_summary.py +55 -89
  11. robosystems_client/models/{graph_usage_response_storage_usage.py → credit_summary_operation_breakdown.py} +6 -6
  12. robosystems_client/models/graph_info.py +33 -2
  13. robosystems_client/models/graph_subscription_response.py +200 -0
  14. robosystems_client/models/graph_tier_instance.py +7 -7
  15. robosystems_client/models/graph_usage_response.py +136 -39
  16. robosystems_client/models/{user_analytics_response_limits.py → graph_usage_response_recent_events_item.py} +6 -6
  17. robosystems_client/models/performance_insights.py +120 -0
  18. robosystems_client/models/{graph_usage_response_recent_activity.py → performance_insights_operation_stats.py} +6 -6
  19. robosystems_client/models/{user_analytics_response_api_usage.py → performance_insights_slow_queries_item.py} +6 -6
  20. robosystems_client/models/storage_summary.py +100 -0
  21. robosystems_client/models/{tier_upgrade_request.py → upgrade_subscription_request.py} +12 -14
  22. {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/METADATA +1 -1
  23. {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/RECORD +34 -71
  24. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -289
  25. robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -253
  26. robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -298
  27. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -284
  28. robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -320
  29. robosystems_client/api/user/get_all_credit_summaries.py +0 -169
  30. robosystems_client/api/user_analytics/__init__.py +0 -1
  31. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -188
  32. robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -135
  33. robosystems_client/api/user_limits/__init__.py +0 -1
  34. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -141
  35. robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -213
  36. robosystems_client/api/user_limits/get_user_limits.py +0 -139
  37. robosystems_client/api/user_subscriptions/__init__.py +0 -1
  38. robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -173
  39. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -143
  40. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -181
  41. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -186
  42. robosystems_client/models/add_on_credit_info.py +0 -119
  43. robosystems_client/models/credits_summary_response.py +0 -148
  44. robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +0 -44
  45. robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +0 -46
  46. robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +0 -44
  47. robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +0 -44
  48. robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +0 -44
  49. robosystems_client/models/get_graph_usage_details_response_getgraphusagedetails.py +0 -44
  50. robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +0 -44
  51. robosystems_client/models/graph_usage_response_query_statistics.py +0 -44
  52. robosystems_client/models/repository_credits_response.py +0 -128
  53. robosystems_client/models/repository_plan.py +0 -10
  54. robosystems_client/models/repository_type.py +0 -10
  55. robosystems_client/models/subscription_info.py +0 -152
  56. robosystems_client/models/subscription_info_metadata.py +0 -44
  57. robosystems_client/models/subscription_request.py +0 -80
  58. robosystems_client/models/subscription_response.py +0 -74
  59. robosystems_client/models/user_analytics_response.py +0 -132
  60. robosystems_client/models/user_analytics_response_graph_usage.py +0 -44
  61. robosystems_client/models/user_analytics_response_recent_activity_item.py +0 -44
  62. robosystems_client/models/user_analytics_response_user_info.py +0 -44
  63. robosystems_client/models/user_graph_summary.py +0 -134
  64. robosystems_client/models/user_subscriptions_response.py +0 -90
  65. robosystems_client/models/user_usage_summary_response.py +0 -130
  66. robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +0 -44
  67. /robosystems_client/api/{graph_analytics → credits_}/__init__.py +0 -0
  68. /robosystems_client/api/{graph_credits → credits_}/check_credit_balance.py +0 -0
  69. /robosystems_client/api/{graph_credits → credits_}/check_storage_limits.py +0 -0
  70. /robosystems_client/api/{graph_credits → credits_}/get_credit_summary.py +0 -0
  71. /robosystems_client/api/{graph_credits → credits_}/get_storage_usage.py +0 -0
  72. /robosystems_client/api/{graph_credits → credits_}/list_credit_transactions.py +0 -0
  73. /robosystems_client/api/{graph_billing → subscriptions}/__init__.py +0 -0
  74. /robosystems_client/api/{graph_credits → usage}/__init__.py +0 -0
  75. /robosystems_client/api/{graph_analytics → usage}/get_graph_metrics.py +0 -0
  76. {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/WHEEL +0 -0
  77. {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/licenses/LICENSE +0 -0
@@ -1,135 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.user_usage_summary_response import UserUsageSummaryResponse
9
- from ...types import Response
10
-
11
-
12
- def _get_kwargs() -> dict[str, Any]:
13
- _kwargs: dict[str, Any] = {
14
- "method": "get",
15
- "url": "/v1/user/analytics/overview",
16
- }
17
-
18
- return _kwargs
19
-
20
-
21
- def _parse_response(
22
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
23
- ) -> Optional[UserUsageSummaryResponse]:
24
- if response.status_code == 200:
25
- response_200 = UserUsageSummaryResponse.from_dict(response.json())
26
-
27
- return response_200
28
-
29
- if client.raise_on_unexpected_status:
30
- raise errors.UnexpectedStatus(response.status_code, response.content)
31
- else:
32
- return None
33
-
34
-
35
- def _build_response(
36
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
37
- ) -> Response[UserUsageSummaryResponse]:
38
- return Response(
39
- status_code=HTTPStatus(response.status_code),
40
- content=response.content,
41
- headers=response.headers,
42
- parsed=_parse_response(client=client, response=response),
43
- )
44
-
45
-
46
- def sync_detailed(
47
- *,
48
- client: AuthenticatedClient,
49
- ) -> Response[UserUsageSummaryResponse]:
50
- """Get User Usage Overview
51
-
52
- Get a high-level overview of usage statistics for the current user.
53
-
54
- Raises:
55
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
56
- httpx.TimeoutException: If the request takes longer than Client.timeout.
57
-
58
- Returns:
59
- Response[UserUsageSummaryResponse]
60
- """
61
-
62
- kwargs = _get_kwargs()
63
-
64
- response = client.get_httpx_client().request(
65
- **kwargs,
66
- )
67
-
68
- return _build_response(client=client, response=response)
69
-
70
-
71
- def sync(
72
- *,
73
- client: AuthenticatedClient,
74
- ) -> Optional[UserUsageSummaryResponse]:
75
- """Get User Usage Overview
76
-
77
- Get a high-level overview of usage statistics for the current user.
78
-
79
- Raises:
80
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
81
- httpx.TimeoutException: If the request takes longer than Client.timeout.
82
-
83
- Returns:
84
- UserUsageSummaryResponse
85
- """
86
-
87
- return sync_detailed(
88
- client=client,
89
- ).parsed
90
-
91
-
92
- async def asyncio_detailed(
93
- *,
94
- client: AuthenticatedClient,
95
- ) -> Response[UserUsageSummaryResponse]:
96
- """Get User Usage Overview
97
-
98
- Get a high-level overview of usage statistics for the current user.
99
-
100
- Raises:
101
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102
- httpx.TimeoutException: If the request takes longer than Client.timeout.
103
-
104
- Returns:
105
- Response[UserUsageSummaryResponse]
106
- """
107
-
108
- kwargs = _get_kwargs()
109
-
110
- response = await client.get_async_httpx_client().request(**kwargs)
111
-
112
- return _build_response(client=client, response=response)
113
-
114
-
115
- async def asyncio(
116
- *,
117
- client: AuthenticatedClient,
118
- ) -> Optional[UserUsageSummaryResponse]:
119
- """Get User Usage Overview
120
-
121
- Get a high-level overview of usage statistics for the current user.
122
-
123
- Raises:
124
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
125
- httpx.TimeoutException: If the request takes longer than Client.timeout.
126
-
127
- Returns:
128
- UserUsageSummaryResponse
129
- """
130
-
131
- return (
132
- await asyncio_detailed(
133
- client=client,
134
- )
135
- ).parsed
@@ -1 +0,0 @@
1
- """Contains endpoint functions for accessing the API"""
@@ -1,141 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.get_all_shared_repository_limits_response_getallsharedrepositorylimits import (
9
- GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
10
- )
11
- from ...types import Response
12
-
13
-
14
- def _get_kwargs() -> dict[str, Any]:
15
- _kwargs: dict[str, Any] = {
16
- "method": "get",
17
- "url": "/v1/user/limits/shared-repositories/summary",
18
- }
19
-
20
- return _kwargs
21
-
22
-
23
- def _parse_response(
24
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
25
- ) -> Optional[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
26
- if response.status_code == 200:
27
- response_200 = (
28
- GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits.from_dict(
29
- response.json()
30
- )
31
- )
32
-
33
- return response_200
34
-
35
- if client.raise_on_unexpected_status:
36
- raise errors.UnexpectedStatus(response.status_code, response.content)
37
- else:
38
- return None
39
-
40
-
41
- def _build_response(
42
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
43
- ) -> Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
44
- return Response(
45
- status_code=HTTPStatus(response.status_code),
46
- content=response.content,
47
- headers=response.headers,
48
- parsed=_parse_response(client=client, response=response),
49
- )
50
-
51
-
52
- def sync_detailed(
53
- *,
54
- client: AuthenticatedClient,
55
- ) -> Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
56
- """Get all shared repository limits
57
-
58
- Get rate limit status for all shared repositories the user has access to.
59
-
60
- Raises:
61
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
62
- httpx.TimeoutException: If the request takes longer than Client.timeout.
63
-
64
- Returns:
65
- Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]
66
- """
67
-
68
- kwargs = _get_kwargs()
69
-
70
- response = client.get_httpx_client().request(
71
- **kwargs,
72
- )
73
-
74
- return _build_response(client=client, response=response)
75
-
76
-
77
- def sync(
78
- *,
79
- client: AuthenticatedClient,
80
- ) -> Optional[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
81
- """Get all shared repository limits
82
-
83
- Get rate limit status for all shared repositories the user has access to.
84
-
85
- Raises:
86
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
87
- httpx.TimeoutException: If the request takes longer than Client.timeout.
88
-
89
- Returns:
90
- GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits
91
- """
92
-
93
- return sync_detailed(
94
- client=client,
95
- ).parsed
96
-
97
-
98
- async def asyncio_detailed(
99
- *,
100
- client: AuthenticatedClient,
101
- ) -> Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
102
- """Get all shared repository limits
103
-
104
- Get rate limit status for all shared repositories the user has access to.
105
-
106
- Raises:
107
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
108
- httpx.TimeoutException: If the request takes longer than Client.timeout.
109
-
110
- Returns:
111
- Response[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]
112
- """
113
-
114
- kwargs = _get_kwargs()
115
-
116
- response = await client.get_async_httpx_client().request(**kwargs)
117
-
118
- return _build_response(client=client, response=response)
119
-
120
-
121
- async def asyncio(
122
- *,
123
- client: AuthenticatedClient,
124
- ) -> Optional[GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits]:
125
- """Get all shared repository limits
126
-
127
- Get rate limit status for all shared repositories the user has access to.
128
-
129
- Raises:
130
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
131
- httpx.TimeoutException: If the request takes longer than Client.timeout.
132
-
133
- Returns:
134
- GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits
135
- """
136
-
137
- return (
138
- await asyncio_detailed(
139
- client=client,
140
- )
141
- ).parsed
@@ -1,213 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.get_shared_repository_limits_response_getsharedrepositorylimits import (
9
- GetSharedRepositoryLimitsResponseGetsharedrepositorylimits,
10
- )
11
- from ...models.http_validation_error import HTTPValidationError
12
- from ...types import Response
13
-
14
-
15
- def _get_kwargs(
16
- repository: str,
17
- ) -> dict[str, Any]:
18
- _kwargs: dict[str, Any] = {
19
- "method": "get",
20
- "url": f"/v1/user/limits/shared-repositories/{repository}",
21
- }
22
-
23
- return _kwargs
24
-
25
-
26
- def _parse_response(
27
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
28
- ) -> Optional[
29
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
30
- ]:
31
- if response.status_code == 200:
32
- response_200 = GetSharedRepositoryLimitsResponseGetsharedrepositorylimits.from_dict(
33
- response.json()
34
- )
35
-
36
- return response_200
37
-
38
- if response.status_code == 422:
39
- response_422 = HTTPValidationError.from_dict(response.json())
40
-
41
- return response_422
42
-
43
- if client.raise_on_unexpected_status:
44
- raise errors.UnexpectedStatus(response.status_code, response.content)
45
- else:
46
- return None
47
-
48
-
49
- def _build_response(
50
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
51
- ) -> Response[
52
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
53
- ]:
54
- return Response(
55
- status_code=HTTPStatus(response.status_code),
56
- content=response.content,
57
- headers=response.headers,
58
- parsed=_parse_response(client=client, response=response),
59
- )
60
-
61
-
62
- def sync_detailed(
63
- repository: str,
64
- *,
65
- client: AuthenticatedClient,
66
- ) -> Response[
67
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
68
- ]:
69
- """Get shared repository rate limit status
70
-
71
- Get current rate limit status and usage for a shared repository.
72
-
73
- Returns:
74
- - Current usage across different time windows
75
- - Rate limits based on subscription tier
76
- - Remaining quota
77
- - Reset times
78
-
79
- Note: All queries are included - this only shows rate limit status.
80
-
81
- Args:
82
- repository (str): Repository name (e.g., 'sec')
83
-
84
- Raises:
85
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
86
- httpx.TimeoutException: If the request takes longer than Client.timeout.
87
-
88
- Returns:
89
- Response[Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]]
90
- """
91
-
92
- kwargs = _get_kwargs(
93
- repository=repository,
94
- )
95
-
96
- response = client.get_httpx_client().request(
97
- **kwargs,
98
- )
99
-
100
- return _build_response(client=client, response=response)
101
-
102
-
103
- def sync(
104
- repository: str,
105
- *,
106
- client: AuthenticatedClient,
107
- ) -> Optional[
108
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
109
- ]:
110
- """Get shared repository rate limit status
111
-
112
- Get current rate limit status and usage for a shared repository.
113
-
114
- Returns:
115
- - Current usage across different time windows
116
- - Rate limits based on subscription tier
117
- - Remaining quota
118
- - Reset times
119
-
120
- Note: All queries are included - this only shows rate limit status.
121
-
122
- Args:
123
- repository (str): Repository name (e.g., 'sec')
124
-
125
- Raises:
126
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
127
- httpx.TimeoutException: If the request takes longer than Client.timeout.
128
-
129
- Returns:
130
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
131
- """
132
-
133
- return sync_detailed(
134
- repository=repository,
135
- client=client,
136
- ).parsed
137
-
138
-
139
- async def asyncio_detailed(
140
- repository: str,
141
- *,
142
- client: AuthenticatedClient,
143
- ) -> Response[
144
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
145
- ]:
146
- """Get shared repository rate limit status
147
-
148
- Get current rate limit status and usage for a shared repository.
149
-
150
- Returns:
151
- - Current usage across different time windows
152
- - Rate limits based on subscription tier
153
- - Remaining quota
154
- - Reset times
155
-
156
- Note: All queries are included - this only shows rate limit status.
157
-
158
- Args:
159
- repository (str): Repository name (e.g., 'sec')
160
-
161
- Raises:
162
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
163
- httpx.TimeoutException: If the request takes longer than Client.timeout.
164
-
165
- Returns:
166
- Response[Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]]
167
- """
168
-
169
- kwargs = _get_kwargs(
170
- repository=repository,
171
- )
172
-
173
- response = await client.get_async_httpx_client().request(**kwargs)
174
-
175
- return _build_response(client=client, response=response)
176
-
177
-
178
- async def asyncio(
179
- repository: str,
180
- *,
181
- client: AuthenticatedClient,
182
- ) -> Optional[
183
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
184
- ]:
185
- """Get shared repository rate limit status
186
-
187
- Get current rate limit status and usage for a shared repository.
188
-
189
- Returns:
190
- - Current usage across different time windows
191
- - Rate limits based on subscription tier
192
- - Remaining quota
193
- - Reset times
194
-
195
- Note: All queries are included - this only shows rate limit status.
196
-
197
- Args:
198
- repository (str): Repository name (e.g., 'sec')
199
-
200
- Raises:
201
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
202
- httpx.TimeoutException: If the request takes longer than Client.timeout.
203
-
204
- Returns:
205
- Union[GetSharedRepositoryLimitsResponseGetsharedrepositorylimits, HTTPValidationError]
206
- """
207
-
208
- return (
209
- await asyncio_detailed(
210
- repository=repository,
211
- client=client,
212
- )
213
- ).parsed
@@ -1,139 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union, cast
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.user_limits_response import UserLimitsResponse
9
- from ...types import Response
10
-
11
-
12
- def _get_kwargs() -> dict[str, Any]:
13
- _kwargs: dict[str, Any] = {
14
- "method": "get",
15
- "url": "/v1/user/limits",
16
- }
17
-
18
- return _kwargs
19
-
20
-
21
- def _parse_response(
22
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
23
- ) -> Optional[Union[Any, UserLimitsResponse]]:
24
- if response.status_code == 200:
25
- response_200 = UserLimitsResponse.from_dict(response.json())
26
-
27
- return response_200
28
-
29
- if response.status_code == 404:
30
- response_404 = cast(Any, None)
31
- return response_404
32
-
33
- if client.raise_on_unexpected_status:
34
- raise errors.UnexpectedStatus(response.status_code, response.content)
35
- else:
36
- return None
37
-
38
-
39
- def _build_response(
40
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
41
- ) -> Response[Union[Any, UserLimitsResponse]]:
42
- return Response(
43
- status_code=HTTPStatus(response.status_code),
44
- content=response.content,
45
- headers=response.headers,
46
- parsed=_parse_response(client=client, response=response),
47
- )
48
-
49
-
50
- def sync_detailed(
51
- *,
52
- client: AuthenticatedClient,
53
- ) -> Response[Union[Any, UserLimitsResponse]]:
54
- """Get user limits
55
-
56
- Retrieve current limits and restrictions for the authenticated user
57
-
58
- Raises:
59
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
- httpx.TimeoutException: If the request takes longer than Client.timeout.
61
-
62
- Returns:
63
- Response[Union[Any, UserLimitsResponse]]
64
- """
65
-
66
- kwargs = _get_kwargs()
67
-
68
- response = client.get_httpx_client().request(
69
- **kwargs,
70
- )
71
-
72
- return _build_response(client=client, response=response)
73
-
74
-
75
- def sync(
76
- *,
77
- client: AuthenticatedClient,
78
- ) -> Optional[Union[Any, UserLimitsResponse]]:
79
- """Get user limits
80
-
81
- Retrieve current limits and restrictions for the authenticated user
82
-
83
- Raises:
84
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
85
- httpx.TimeoutException: If the request takes longer than Client.timeout.
86
-
87
- Returns:
88
- Union[Any, UserLimitsResponse]
89
- """
90
-
91
- return sync_detailed(
92
- client=client,
93
- ).parsed
94
-
95
-
96
- async def asyncio_detailed(
97
- *,
98
- client: AuthenticatedClient,
99
- ) -> Response[Union[Any, UserLimitsResponse]]:
100
- """Get user limits
101
-
102
- Retrieve current limits and restrictions for the authenticated user
103
-
104
- Raises:
105
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
- httpx.TimeoutException: If the request takes longer than Client.timeout.
107
-
108
- Returns:
109
- Response[Union[Any, UserLimitsResponse]]
110
- """
111
-
112
- kwargs = _get_kwargs()
113
-
114
- response = await client.get_async_httpx_client().request(**kwargs)
115
-
116
- return _build_response(client=client, response=response)
117
-
118
-
119
- async def asyncio(
120
- *,
121
- client: AuthenticatedClient,
122
- ) -> Optional[Union[Any, UserLimitsResponse]]:
123
- """Get user limits
124
-
125
- Retrieve current limits and restrictions for the authenticated user
126
-
127
- Raises:
128
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
- httpx.TimeoutException: If the request takes longer than Client.timeout.
130
-
131
- Returns:
132
- Union[Any, UserLimitsResponse]
133
- """
134
-
135
- return (
136
- await asyncio_detailed(
137
- client=client,
138
- )
139
- ).parsed
@@ -1 +0,0 @@
1
- """Contains endpoint functions for accessing the API"""