robosystems-client 0.2.11__py3-none-any.whl → 0.2.12__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.

Files changed (61) hide show
  1. robosystems_client/api/auth/register_user.py +36 -8
  2. robosystems_client/api/billing/{cancel_subscription.py → cancel_org_subscription.py} +34 -9
  3. robosystems_client/api/billing/create_checkout_session.py +28 -20
  4. robosystems_client/api/billing/get_org_billing_customer.py +189 -0
  5. robosystems_client/api/billing/{get_subscription.py → get_org_subscription.py} +30 -5
  6. robosystems_client/api/billing/{get_upcoming_invoice.py → get_org_upcoming_invoice.py} +68 -22
  7. robosystems_client/api/billing/{list_invoices.py → list_org_invoices.py} +38 -9
  8. robosystems_client/api/billing/{list_subscriptions.py → list_org_subscriptions.py} +64 -22
  9. robosystems_client/api/billing/{update_payment_method.py → update_org_payment_method.py} +34 -9
  10. robosystems_client/api/org/__init__.py +1 -0
  11. robosystems_client/api/org/create_org.py +174 -0
  12. robosystems_client/api/{billing/get_billing_customer.py → org/get_org.py} +50 -28
  13. robosystems_client/api/org/list_org_graphs.py +170 -0
  14. robosystems_client/api/{user/get_user_limits.py → org/list_user_orgs.py} +21 -25
  15. robosystems_client/api/org/update_org.py +187 -0
  16. robosystems_client/api/org_members/__init__.py +1 -0
  17. robosystems_client/api/org_members/invite_org_member.py +207 -0
  18. robosystems_client/api/org_members/list_org_members.py +165 -0
  19. robosystems_client/api/org_members/remove_org_member.py +176 -0
  20. robosystems_client/api/org_members/update_org_member_role.py +200 -0
  21. robosystems_client/api/org_usage/__init__.py +1 -0
  22. robosystems_client/api/org_usage/get_org_limits.py +165 -0
  23. robosystems_client/api/org_usage/get_org_usage.py +186 -0
  24. robosystems_client/api/service_offerings/get_service_offerings.py +32 -8
  25. robosystems_client/api/usage/get_graph_usage_analytics.py +4 -4
  26. robosystems_client/models/__init__.py +44 -6
  27. robosystems_client/models/auth_response.py +35 -0
  28. robosystems_client/models/{user_usage_response_graphs.py → auth_response_org_type_0.py} +6 -6
  29. robosystems_client/models/billing_customer.py +8 -8
  30. robosystems_client/models/checkout_response.py +65 -22
  31. robosystems_client/models/create_org_request.py +79 -0
  32. robosystems_client/models/graph_subscription_tier.py +40 -48
  33. robosystems_client/models/graph_subscriptions.py +17 -5
  34. robosystems_client/models/invite_member_request.py +93 -0
  35. robosystems_client/models/list_org_graphs_response_200_item.py +44 -0
  36. robosystems_client/models/org_detail_response.py +174 -0
  37. robosystems_client/models/org_detail_response_graphs_item.py +44 -0
  38. robosystems_client/models/org_detail_response_limits_type_0.py +44 -0
  39. robosystems_client/models/org_detail_response_members_item.py +44 -0
  40. robosystems_client/models/org_limits_response.py +98 -0
  41. robosystems_client/models/org_limits_response_current_usage.py +44 -0
  42. robosystems_client/models/org_list_response.py +82 -0
  43. robosystems_client/models/org_member_list_response.py +90 -0
  44. robosystems_client/models/org_member_response.py +104 -0
  45. robosystems_client/models/org_response.py +121 -0
  46. robosystems_client/models/org_role.py +10 -0
  47. robosystems_client/models/org_type.py +10 -0
  48. robosystems_client/models/org_usage_response.py +146 -0
  49. robosystems_client/models/org_usage_response_daily_trend_item.py +44 -0
  50. robosystems_client/models/org_usage_response_graph_details_item.py +44 -0
  51. robosystems_client/models/org_usage_summary.py +158 -0
  52. robosystems_client/models/repository_subscriptions.py +15 -4
  53. robosystems_client/models/service_offerings_response.py +15 -0
  54. robosystems_client/models/update_member_role_request.py +62 -0
  55. robosystems_client/models/update_org_request.py +103 -0
  56. {robosystems_client-0.2.11.dist-info → robosystems_client-0.2.12.dist-info}/METADATA +1 -1
  57. {robosystems_client-0.2.11.dist-info → robosystems_client-0.2.12.dist-info}/RECORD +59 -27
  58. robosystems_client/models/user_limits_response.py +0 -95
  59. robosystems_client/models/user_usage_response.py +0 -90
  60. {robosystems_client-0.2.11.dist-info → robosystems_client-0.2.12.dist-info}/WHEEL +0 -0
  61. {robosystems_client-0.2.11.dist-info → robosystems_client-0.2.12.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,174 @@
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.create_org_request import CreateOrgRequest
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...models.org_detail_response import OrgDetailResponse
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ body: CreateOrgRequest,
17
+ ) -> dict[str, Any]:
18
+ headers: dict[str, Any] = {}
19
+
20
+ _kwargs: dict[str, Any] = {
21
+ "method": "post",
22
+ "url": "/v1/orgs",
23
+ }
24
+
25
+ _kwargs["json"] = body.to_dict()
26
+
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
35
+ ) -> Optional[Union[HTTPValidationError, OrgDetailResponse]]:
36
+ if response.status_code == 201:
37
+ response_201 = OrgDetailResponse.from_dict(response.json())
38
+
39
+ return response_201
40
+
41
+ if response.status_code == 422:
42
+ response_422 = HTTPValidationError.from_dict(response.json())
43
+
44
+ return response_422
45
+
46
+ if client.raise_on_unexpected_status:
47
+ raise errors.UnexpectedStatus(response.status_code, response.content)
48
+ else:
49
+ return None
50
+
51
+
52
+ def _build_response(
53
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
54
+ ) -> Response[Union[HTTPValidationError, OrgDetailResponse]]:
55
+ return Response(
56
+ status_code=HTTPStatus(response.status_code),
57
+ content=response.content,
58
+ headers=response.headers,
59
+ parsed=_parse_response(client=client, response=response),
60
+ )
61
+
62
+
63
+ def sync_detailed(
64
+ *,
65
+ client: AuthenticatedClient,
66
+ body: CreateOrgRequest,
67
+ ) -> Response[Union[HTTPValidationError, OrgDetailResponse]]:
68
+ """Create Organization
69
+
70
+ Create a new organization. The creating user becomes the owner.
71
+
72
+ Args:
73
+ body (CreateOrgRequest): Request to create an organization.
74
+
75
+ Raises:
76
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
77
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
78
+
79
+ Returns:
80
+ Response[Union[HTTPValidationError, OrgDetailResponse]]
81
+ """
82
+
83
+ kwargs = _get_kwargs(
84
+ body=body,
85
+ )
86
+
87
+ response = client.get_httpx_client().request(
88
+ **kwargs,
89
+ )
90
+
91
+ return _build_response(client=client, response=response)
92
+
93
+
94
+ def sync(
95
+ *,
96
+ client: AuthenticatedClient,
97
+ body: CreateOrgRequest,
98
+ ) -> Optional[Union[HTTPValidationError, OrgDetailResponse]]:
99
+ """Create Organization
100
+
101
+ Create a new organization. The creating user becomes the owner.
102
+
103
+ Args:
104
+ body (CreateOrgRequest): Request to create an organization.
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
+ Union[HTTPValidationError, OrgDetailResponse]
112
+ """
113
+
114
+ return sync_detailed(
115
+ client=client,
116
+ body=body,
117
+ ).parsed
118
+
119
+
120
+ async def asyncio_detailed(
121
+ *,
122
+ client: AuthenticatedClient,
123
+ body: CreateOrgRequest,
124
+ ) -> Response[Union[HTTPValidationError, OrgDetailResponse]]:
125
+ """Create Organization
126
+
127
+ Create a new organization. The creating user becomes the owner.
128
+
129
+ Args:
130
+ body (CreateOrgRequest): Request to create an organization.
131
+
132
+ Raises:
133
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
134
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
135
+
136
+ Returns:
137
+ Response[Union[HTTPValidationError, OrgDetailResponse]]
138
+ """
139
+
140
+ kwargs = _get_kwargs(
141
+ body=body,
142
+ )
143
+
144
+ response = await client.get_async_httpx_client().request(**kwargs)
145
+
146
+ return _build_response(client=client, response=response)
147
+
148
+
149
+ async def asyncio(
150
+ *,
151
+ client: AuthenticatedClient,
152
+ body: CreateOrgRequest,
153
+ ) -> Optional[Union[HTTPValidationError, OrgDetailResponse]]:
154
+ """Create Organization
155
+
156
+ Create a new organization. The creating user becomes the owner.
157
+
158
+ Args:
159
+ body (CreateOrgRequest): Request to create an organization.
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
+ Union[HTTPValidationError, OrgDetailResponse]
167
+ """
168
+
169
+ return (
170
+ await asyncio_detailed(
171
+ client=client,
172
+ body=body,
173
+ )
174
+ ).parsed
@@ -5,14 +5,17 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.billing_customer import BillingCustomer
8
+ from ...models.http_validation_error import HTTPValidationError
9
+ from ...models.org_detail_response import OrgDetailResponse
9
10
  from ...types import Response
10
11
 
11
12
 
12
- def _get_kwargs() -> dict[str, Any]:
13
+ def _get_kwargs(
14
+ org_id: str,
15
+ ) -> dict[str, Any]:
13
16
  _kwargs: dict[str, Any] = {
14
17
  "method": "get",
15
- "url": "/v1/billing/customer",
18
+ "url": f"/v1/orgs/{org_id}",
16
19
  }
17
20
 
18
21
  return _kwargs
@@ -20,12 +23,17 @@ def _get_kwargs() -> dict[str, Any]:
20
23
 
21
24
  def _parse_response(
22
25
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
23
- ) -> Optional[BillingCustomer]:
26
+ ) -> Optional[Union[HTTPValidationError, OrgDetailResponse]]:
24
27
  if response.status_code == 200:
25
- response_200 = BillingCustomer.from_dict(response.json())
28
+ response_200 = OrgDetailResponse.from_dict(response.json())
26
29
 
27
30
  return response_200
28
31
 
32
+ if response.status_code == 422:
33
+ response_422 = HTTPValidationError.from_dict(response.json())
34
+
35
+ return response_422
36
+
29
37
  if client.raise_on_unexpected_status:
30
38
  raise errors.UnexpectedStatus(response.status_code, response.content)
31
39
  else:
@@ -34,7 +42,7 @@ def _parse_response(
34
42
 
35
43
  def _build_response(
36
44
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
37
- ) -> Response[BillingCustomer]:
45
+ ) -> Response[Union[HTTPValidationError, OrgDetailResponse]]:
38
46
  return Response(
39
47
  status_code=HTTPStatus(response.status_code),
40
48
  content=response.content,
@@ -44,24 +52,28 @@ def _build_response(
44
52
 
45
53
 
46
54
  def sync_detailed(
55
+ org_id: str,
47
56
  *,
48
57
  client: AuthenticatedClient,
49
- ) -> Response[BillingCustomer]:
50
- """Get Customer Info
58
+ ) -> Response[Union[HTTPValidationError, OrgDetailResponse]]:
59
+ """Get Organization
51
60
 
52
- Get billing customer information including payment methods on file.
61
+ Get detailed information about an organization.
53
62
 
54
- Returns customer details, payment methods, and whether invoice billing is enabled.
63
+ Args:
64
+ org_id (str):
55
65
 
56
66
  Raises:
57
67
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
58
68
  httpx.TimeoutException: If the request takes longer than Client.timeout.
59
69
 
60
70
  Returns:
61
- Response[BillingCustomer]
71
+ Response[Union[HTTPValidationError, OrgDetailResponse]]
62
72
  """
63
73
 
64
- kwargs = _get_kwargs()
74
+ kwargs = _get_kwargs(
75
+ org_id=org_id,
76
+ )
65
77
 
66
78
  response = client.get_httpx_client().request(
67
79
  **kwargs,
@@ -71,47 +83,54 @@ def sync_detailed(
71
83
 
72
84
 
73
85
  def sync(
86
+ org_id: str,
74
87
  *,
75
88
  client: AuthenticatedClient,
76
- ) -> Optional[BillingCustomer]:
77
- """Get Customer Info
89
+ ) -> Optional[Union[HTTPValidationError, OrgDetailResponse]]:
90
+ """Get Organization
78
91
 
79
- Get billing customer information including payment methods on file.
92
+ Get detailed information about an organization.
80
93
 
81
- Returns customer details, payment methods, and whether invoice billing is enabled.
94
+ Args:
95
+ org_id (str):
82
96
 
83
97
  Raises:
84
98
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
85
99
  httpx.TimeoutException: If the request takes longer than Client.timeout.
86
100
 
87
101
  Returns:
88
- BillingCustomer
102
+ Union[HTTPValidationError, OrgDetailResponse]
89
103
  """
90
104
 
91
105
  return sync_detailed(
106
+ org_id=org_id,
92
107
  client=client,
93
108
  ).parsed
94
109
 
95
110
 
96
111
  async def asyncio_detailed(
112
+ org_id: str,
97
113
  *,
98
114
  client: AuthenticatedClient,
99
- ) -> Response[BillingCustomer]:
100
- """Get Customer Info
115
+ ) -> Response[Union[HTTPValidationError, OrgDetailResponse]]:
116
+ """Get Organization
101
117
 
102
- Get billing customer information including payment methods on file.
118
+ Get detailed information about an organization.
103
119
 
104
- Returns customer details, payment methods, and whether invoice billing is enabled.
120
+ Args:
121
+ org_id (str):
105
122
 
106
123
  Raises:
107
124
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
108
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
109
126
 
110
127
  Returns:
111
- Response[BillingCustomer]
128
+ Response[Union[HTTPValidationError, OrgDetailResponse]]
112
129
  """
113
130
 
114
- kwargs = _get_kwargs()
131
+ kwargs = _get_kwargs(
132
+ org_id=org_id,
133
+ )
115
134
 
116
135
  response = await client.get_async_httpx_client().request(**kwargs)
117
136
 
@@ -119,25 +138,28 @@ async def asyncio_detailed(
119
138
 
120
139
 
121
140
  async def asyncio(
141
+ org_id: str,
122
142
  *,
123
143
  client: AuthenticatedClient,
124
- ) -> Optional[BillingCustomer]:
125
- """Get Customer Info
144
+ ) -> Optional[Union[HTTPValidationError, OrgDetailResponse]]:
145
+ """Get Organization
126
146
 
127
- Get billing customer information including payment methods on file.
147
+ Get detailed information about an organization.
128
148
 
129
- Returns customer details, payment methods, and whether invoice billing is enabled.
149
+ Args:
150
+ org_id (str):
130
151
 
131
152
  Raises:
132
153
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
133
154
  httpx.TimeoutException: If the request takes longer than Client.timeout.
134
155
 
135
156
  Returns:
136
- BillingCustomer
157
+ Union[HTTPValidationError, OrgDetailResponse]
137
158
  """
138
159
 
139
160
  return (
140
161
  await asyncio_detailed(
162
+ org_id=org_id,
141
163
  client=client,
142
164
  )
143
165
  ).parsed
@@ -0,0 +1,170 @@
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.http_validation_error import HTTPValidationError
9
+ from ...models.list_org_graphs_response_200_item import ListOrgGraphsResponse200Item
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ org_id: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "get",
18
+ "url": f"/v1/orgs/{org_id}/graphs",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> Optional[Union[HTTPValidationError, list["ListOrgGraphsResponse200Item"]]]:
27
+ if response.status_code == 200:
28
+ response_200 = []
29
+ _response_200 = response.json()
30
+ for response_200_item_data in _response_200:
31
+ response_200_item = ListOrgGraphsResponse200Item.from_dict(response_200_item_data)
32
+
33
+ response_200.append(response_200_item)
34
+
35
+ return response_200
36
+
37
+ if response.status_code == 422:
38
+ response_422 = HTTPValidationError.from_dict(response.json())
39
+
40
+ return response_422
41
+
42
+ if client.raise_on_unexpected_status:
43
+ raise errors.UnexpectedStatus(response.status_code, response.content)
44
+ else:
45
+ return None
46
+
47
+
48
+ def _build_response(
49
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
50
+ ) -> Response[Union[HTTPValidationError, list["ListOrgGraphsResponse200Item"]]]:
51
+ return Response(
52
+ status_code=HTTPStatus(response.status_code),
53
+ content=response.content,
54
+ headers=response.headers,
55
+ parsed=_parse_response(client=client, response=response),
56
+ )
57
+
58
+
59
+ def sync_detailed(
60
+ org_id: str,
61
+ *,
62
+ client: AuthenticatedClient,
63
+ ) -> Response[Union[HTTPValidationError, list["ListOrgGraphsResponse200Item"]]]:
64
+ """List Organization Graphs
65
+
66
+ Get all graphs belonging to an organization.
67
+
68
+ Args:
69
+ org_id (str):
70
+
71
+ Raises:
72
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
73
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
74
+
75
+ Returns:
76
+ Response[Union[HTTPValidationError, list['ListOrgGraphsResponse200Item']]]
77
+ """
78
+
79
+ kwargs = _get_kwargs(
80
+ org_id=org_id,
81
+ )
82
+
83
+ response = client.get_httpx_client().request(
84
+ **kwargs,
85
+ )
86
+
87
+ return _build_response(client=client, response=response)
88
+
89
+
90
+ def sync(
91
+ org_id: str,
92
+ *,
93
+ client: AuthenticatedClient,
94
+ ) -> Optional[Union[HTTPValidationError, list["ListOrgGraphsResponse200Item"]]]:
95
+ """List Organization Graphs
96
+
97
+ Get all graphs belonging to an organization.
98
+
99
+ Args:
100
+ org_id (str):
101
+
102
+ Raises:
103
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
104
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
105
+
106
+ Returns:
107
+ Union[HTTPValidationError, list['ListOrgGraphsResponse200Item']]
108
+ """
109
+
110
+ return sync_detailed(
111
+ org_id=org_id,
112
+ client=client,
113
+ ).parsed
114
+
115
+
116
+ async def asyncio_detailed(
117
+ org_id: str,
118
+ *,
119
+ client: AuthenticatedClient,
120
+ ) -> Response[Union[HTTPValidationError, list["ListOrgGraphsResponse200Item"]]]:
121
+ """List Organization Graphs
122
+
123
+ Get all graphs belonging to an organization.
124
+
125
+ Args:
126
+ org_id (str):
127
+
128
+ Raises:
129
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
130
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
131
+
132
+ Returns:
133
+ Response[Union[HTTPValidationError, list['ListOrgGraphsResponse200Item']]]
134
+ """
135
+
136
+ kwargs = _get_kwargs(
137
+ org_id=org_id,
138
+ )
139
+
140
+ response = await client.get_async_httpx_client().request(**kwargs)
141
+
142
+ return _build_response(client=client, response=response)
143
+
144
+
145
+ async def asyncio(
146
+ org_id: str,
147
+ *,
148
+ client: AuthenticatedClient,
149
+ ) -> Optional[Union[HTTPValidationError, list["ListOrgGraphsResponse200Item"]]]:
150
+ """List Organization Graphs
151
+
152
+ Get all graphs belonging to an organization.
153
+
154
+ Args:
155
+ org_id (str):
156
+
157
+ Raises:
158
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
159
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
160
+
161
+ Returns:
162
+ Union[HTTPValidationError, list['ListOrgGraphsResponse200Item']]
163
+ """
164
+
165
+ return (
166
+ await asyncio_detailed(
167
+ org_id=org_id,
168
+ client=client,
169
+ )
170
+ ).parsed
@@ -5,14 +5,14 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.user_usage_response import UserUsageResponse
8
+ from ...models.org_list_response import OrgListResponse
9
9
  from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs() -> dict[str, Any]:
13
13
  _kwargs: dict[str, Any] = {
14
14
  "method": "get",
15
- "url": "/v1/user/limits",
15
+ "url": "/v1/orgs",
16
16
  }
17
17
 
18
18
  return _kwargs
@@ -20,9 +20,9 @@ def _get_kwargs() -> dict[str, Any]:
20
20
 
21
21
  def _parse_response(
22
22
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
23
- ) -> Optional[UserUsageResponse]:
23
+ ) -> Optional[OrgListResponse]:
24
24
  if response.status_code == 200:
25
- response_200 = UserUsageResponse.from_dict(response.json())
25
+ response_200 = OrgListResponse.from_dict(response.json())
26
26
 
27
27
  return response_200
28
28
 
@@ -34,7 +34,7 @@ def _parse_response(
34
34
 
35
35
  def _build_response(
36
36
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
37
- ) -> Response[UserUsageResponse]:
37
+ ) -> Response[OrgListResponse]:
38
38
  return Response(
39
39
  status_code=HTTPStatus(response.status_code),
40
40
  content=response.content,
@@ -46,18 +46,17 @@ def _build_response(
46
46
  def sync_detailed(
47
47
  *,
48
48
  client: AuthenticatedClient,
49
- ) -> Response[UserUsageResponse]:
50
- """Get user limits and usage
49
+ ) -> Response[OrgListResponse]:
50
+ """List User's Organizations
51
51
 
52
- Retrieve current limits and usage statistics for the authenticated user (simple safety valve for
53
- graph creation)
52
+ Get all organizations the current user belongs to, with their role in each.
54
53
 
55
54
  Raises:
56
55
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
57
56
  httpx.TimeoutException: If the request takes longer than Client.timeout.
58
57
 
59
58
  Returns:
60
- Response[UserUsageResponse]
59
+ Response[OrgListResponse]
61
60
  """
62
61
 
63
62
  kwargs = _get_kwargs()
@@ -72,18 +71,17 @@ def sync_detailed(
72
71
  def sync(
73
72
  *,
74
73
  client: AuthenticatedClient,
75
- ) -> Optional[UserUsageResponse]:
76
- """Get user limits and usage
74
+ ) -> Optional[OrgListResponse]:
75
+ """List User's Organizations
77
76
 
78
- Retrieve current limits and usage statistics for the authenticated user (simple safety valve for
79
- graph creation)
77
+ Get all organizations the current user belongs to, with their role in each.
80
78
 
81
79
  Raises:
82
80
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
83
81
  httpx.TimeoutException: If the request takes longer than Client.timeout.
84
82
 
85
83
  Returns:
86
- UserUsageResponse
84
+ OrgListResponse
87
85
  """
88
86
 
89
87
  return sync_detailed(
@@ -94,18 +92,17 @@ def sync(
94
92
  async def asyncio_detailed(
95
93
  *,
96
94
  client: AuthenticatedClient,
97
- ) -> Response[UserUsageResponse]:
98
- """Get user limits and usage
95
+ ) -> Response[OrgListResponse]:
96
+ """List User's Organizations
99
97
 
100
- Retrieve current limits and usage statistics for the authenticated user (simple safety valve for
101
- graph creation)
98
+ Get all organizations the current user belongs to, with their role in each.
102
99
 
103
100
  Raises:
104
101
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
102
  httpx.TimeoutException: If the request takes longer than Client.timeout.
106
103
 
107
104
  Returns:
108
- Response[UserUsageResponse]
105
+ Response[OrgListResponse]
109
106
  """
110
107
 
111
108
  kwargs = _get_kwargs()
@@ -118,18 +115,17 @@ async def asyncio_detailed(
118
115
  async def asyncio(
119
116
  *,
120
117
  client: AuthenticatedClient,
121
- ) -> Optional[UserUsageResponse]:
122
- """Get user limits and usage
118
+ ) -> Optional[OrgListResponse]:
119
+ """List User's Organizations
123
120
 
124
- Retrieve current limits and usage statistics for the authenticated user (simple safety valve for
125
- graph creation)
121
+ Get all organizations the current user belongs to, with their role in each.
126
122
 
127
123
  Raises:
128
124
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
130
126
 
131
127
  Returns:
132
- UserUsageResponse
128
+ OrgListResponse
133
129
  """
134
130
 
135
131
  return (