robosystems-client 0.2.13__py3-none-any.whl → 0.2.15__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/api/agent/auto_select_agent.py +28 -0
- robosystems_client/api/billing/{update_org_payment_method.py → create_portal_session.py} +57 -47
- robosystems_client/api/graph_health/get_database_health.py +28 -0
- robosystems_client/api/graph_info/get_database_info.py +28 -0
- robosystems_client/api/graph_limits/get_graph_limits.py +4 -4
- robosystems_client/api/mcp/call_mcp_tool.py +28 -0
- robosystems_client/api/mcp/list_mcp_tools.py +28 -0
- robosystems_client/api/query/execute_cypher_query.py +24 -0
- robosystems_client/api/schema/get_graph_schema.py +32 -0
- robosystems_client/api/schema/validate_schema.py +28 -0
- robosystems_client/api/subgraphs/create_subgraph.py +28 -4
- robosystems_client/api/subgraphs/delete_subgraph.py +46 -22
- robosystems_client/api/subgraphs/get_subgraph_info.py +34 -14
- robosystems_client/api/tables/get_upload_url.py +28 -0
- robosystems_client/api/tables/ingest_tables.py +32 -4
- robosystems_client/api/tables/query_tables.py +24 -0
- robosystems_client/models/__init__.py +2 -6
- robosystems_client/models/create_subgraph_request.py +5 -26
- robosystems_client/models/graph_subscription_response.py +21 -0
- robosystems_client/models/list_subgraphs_response.py +9 -0
- robosystems_client/models/payment_method.py +3 -3
- robosystems_client/models/{update_payment_method_request.py → portal_session_response.py} +12 -12
- {robosystems_client-0.2.13.dist-info → robosystems_client-0.2.15.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.13.dist-info → robosystems_client-0.2.15.dist-info}/RECORD +26 -29
- robosystems_client/api/subscriptions/cancel_subscription.py +0 -193
- robosystems_client/models/cancellation_response.py +0 -76
- robosystems_client/models/update_payment_method_response.py +0 -74
- {robosystems_client-0.2.13.dist-info → robosystems_client-0.2.15.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.13.dist-info → robosystems_client-0.2.15.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,193 +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.cancellation_response import CancellationResponse
|
|
9
|
-
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
-
from ...types import Response
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def _get_kwargs(
|
|
14
|
-
graph_id: str,
|
|
15
|
-
) -> dict[str, Any]:
|
|
16
|
-
_kwargs: dict[str, Any] = {
|
|
17
|
-
"method": "delete",
|
|
18
|
-
"url": f"/v1/graphs/{graph_id}/subscriptions",
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return _kwargs
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def _parse_response(
|
|
25
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
-
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
27
|
-
if response.status_code == 200:
|
|
28
|
-
response_200 = CancellationResponse.from_dict(response.json())
|
|
29
|
-
|
|
30
|
-
return response_200
|
|
31
|
-
|
|
32
|
-
if response.status_code == 400:
|
|
33
|
-
response_400 = cast(Any, None)
|
|
34
|
-
return response_400
|
|
35
|
-
|
|
36
|
-
if response.status_code == 404:
|
|
37
|
-
response_404 = cast(Any, None)
|
|
38
|
-
return response_404
|
|
39
|
-
|
|
40
|
-
if response.status_code == 422:
|
|
41
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
42
|
-
|
|
43
|
-
return response_422
|
|
44
|
-
|
|
45
|
-
if client.raise_on_unexpected_status:
|
|
46
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
-
else:
|
|
48
|
-
return None
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def _build_response(
|
|
52
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
53
|
-
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
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
|
-
graph_id: str,
|
|
64
|
-
*,
|
|
65
|
-
client: AuthenticatedClient,
|
|
66
|
-
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
67
|
-
"""Cancel Subscription
|
|
68
|
-
|
|
69
|
-
Cancel a subscription.
|
|
70
|
-
|
|
71
|
-
For shared repositories: Cancels the user's personal subscription
|
|
72
|
-
For user graphs: Not allowed - delete the graph instead
|
|
73
|
-
|
|
74
|
-
The subscription will be marked as canceled and will end at the current period end date.
|
|
75
|
-
|
|
76
|
-
Args:
|
|
77
|
-
graph_id (str): Graph ID or repository name
|
|
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
|
-
Response[Union[Any, CancellationResponse, HTTPValidationError]]
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
kwargs = _get_kwargs(
|
|
88
|
-
graph_id=graph_id,
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
response = client.get_httpx_client().request(
|
|
92
|
-
**kwargs,
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
return _build_response(client=client, response=response)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
def sync(
|
|
99
|
-
graph_id: str,
|
|
100
|
-
*,
|
|
101
|
-
client: AuthenticatedClient,
|
|
102
|
-
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
103
|
-
"""Cancel Subscription
|
|
104
|
-
|
|
105
|
-
Cancel a subscription.
|
|
106
|
-
|
|
107
|
-
For shared repositories: Cancels the user's personal subscription
|
|
108
|
-
For user graphs: Not allowed - delete the graph instead
|
|
109
|
-
|
|
110
|
-
The subscription will be marked as canceled and will end at the current period end date.
|
|
111
|
-
|
|
112
|
-
Args:
|
|
113
|
-
graph_id (str): Graph ID or repository name
|
|
114
|
-
|
|
115
|
-
Raises:
|
|
116
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
117
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
118
|
-
|
|
119
|
-
Returns:
|
|
120
|
-
Union[Any, CancellationResponse, HTTPValidationError]
|
|
121
|
-
"""
|
|
122
|
-
|
|
123
|
-
return sync_detailed(
|
|
124
|
-
graph_id=graph_id,
|
|
125
|
-
client=client,
|
|
126
|
-
).parsed
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
async def asyncio_detailed(
|
|
130
|
-
graph_id: str,
|
|
131
|
-
*,
|
|
132
|
-
client: AuthenticatedClient,
|
|
133
|
-
) -> Response[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
134
|
-
"""Cancel Subscription
|
|
135
|
-
|
|
136
|
-
Cancel a subscription.
|
|
137
|
-
|
|
138
|
-
For shared repositories: Cancels the user's personal subscription
|
|
139
|
-
For user graphs: Not allowed - delete the graph instead
|
|
140
|
-
|
|
141
|
-
The subscription will be marked as canceled and will end at the current period end date.
|
|
142
|
-
|
|
143
|
-
Args:
|
|
144
|
-
graph_id (str): Graph ID or repository name
|
|
145
|
-
|
|
146
|
-
Raises:
|
|
147
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
-
|
|
150
|
-
Returns:
|
|
151
|
-
Response[Union[Any, CancellationResponse, HTTPValidationError]]
|
|
152
|
-
"""
|
|
153
|
-
|
|
154
|
-
kwargs = _get_kwargs(
|
|
155
|
-
graph_id=graph_id,
|
|
156
|
-
)
|
|
157
|
-
|
|
158
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
159
|
-
|
|
160
|
-
return _build_response(client=client, response=response)
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
async def asyncio(
|
|
164
|
-
graph_id: str,
|
|
165
|
-
*,
|
|
166
|
-
client: AuthenticatedClient,
|
|
167
|
-
) -> Optional[Union[Any, CancellationResponse, HTTPValidationError]]:
|
|
168
|
-
"""Cancel Subscription
|
|
169
|
-
|
|
170
|
-
Cancel a subscription.
|
|
171
|
-
|
|
172
|
-
For shared repositories: Cancels the user's personal subscription
|
|
173
|
-
For user graphs: Not allowed - delete the graph instead
|
|
174
|
-
|
|
175
|
-
The subscription will be marked as canceled and will end at the current period end date.
|
|
176
|
-
|
|
177
|
-
Args:
|
|
178
|
-
graph_id (str): Graph ID or repository name
|
|
179
|
-
|
|
180
|
-
Raises:
|
|
181
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
182
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
183
|
-
|
|
184
|
-
Returns:
|
|
185
|
-
Union[Any, CancellationResponse, HTTPValidationError]
|
|
186
|
-
"""
|
|
187
|
-
|
|
188
|
-
return (
|
|
189
|
-
await asyncio_detailed(
|
|
190
|
-
graph_id=graph_id,
|
|
191
|
-
client=client,
|
|
192
|
-
)
|
|
193
|
-
).parsed
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
T = TypeVar("T", bound="CancellationResponse")
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@_attrs_define
|
|
11
|
-
class CancellationResponse:
|
|
12
|
-
"""Response for subscription cancellation.
|
|
13
|
-
|
|
14
|
-
Attributes:
|
|
15
|
-
message (str): Cancellation confirmation message
|
|
16
|
-
subscription_id (str): ID of the cancelled subscription
|
|
17
|
-
cancelled_at (str): Cancellation timestamp (ISO format)
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
message: str
|
|
21
|
-
subscription_id: str
|
|
22
|
-
cancelled_at: str
|
|
23
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
-
|
|
25
|
-
def to_dict(self) -> dict[str, Any]:
|
|
26
|
-
message = self.message
|
|
27
|
-
|
|
28
|
-
subscription_id = self.subscription_id
|
|
29
|
-
|
|
30
|
-
cancelled_at = self.cancelled_at
|
|
31
|
-
|
|
32
|
-
field_dict: dict[str, Any] = {}
|
|
33
|
-
field_dict.update(self.additional_properties)
|
|
34
|
-
field_dict.update(
|
|
35
|
-
{
|
|
36
|
-
"message": message,
|
|
37
|
-
"subscription_id": subscription_id,
|
|
38
|
-
"cancelled_at": cancelled_at,
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
return field_dict
|
|
43
|
-
|
|
44
|
-
@classmethod
|
|
45
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
46
|
-
d = dict(src_dict)
|
|
47
|
-
message = d.pop("message")
|
|
48
|
-
|
|
49
|
-
subscription_id = d.pop("subscription_id")
|
|
50
|
-
|
|
51
|
-
cancelled_at = d.pop("cancelled_at")
|
|
52
|
-
|
|
53
|
-
cancellation_response = cls(
|
|
54
|
-
message=message,
|
|
55
|
-
subscription_id=subscription_id,
|
|
56
|
-
cancelled_at=cancelled_at,
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
cancellation_response.additional_properties = d
|
|
60
|
-
return cancellation_response
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
def additional_keys(self) -> list[str]:
|
|
64
|
-
return list(self.additional_properties.keys())
|
|
65
|
-
|
|
66
|
-
def __getitem__(self, key: str) -> Any:
|
|
67
|
-
return self.additional_properties[key]
|
|
68
|
-
|
|
69
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
70
|
-
self.additional_properties[key] = value
|
|
71
|
-
|
|
72
|
-
def __delitem__(self, key: str) -> None:
|
|
73
|
-
del self.additional_properties[key]
|
|
74
|
-
|
|
75
|
-
def __contains__(self, key: str) -> bool:
|
|
76
|
-
return key in self.additional_properties
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from ..models.payment_method import PaymentMethod
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
T = TypeVar("T", bound="UpdatePaymentMethodResponse")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@_attrs_define
|
|
15
|
-
class UpdatePaymentMethodResponse:
|
|
16
|
-
"""Response for payment method update.
|
|
17
|
-
|
|
18
|
-
Attributes:
|
|
19
|
-
message (str): Success message
|
|
20
|
-
payment_method (PaymentMethod): Payment method information.
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
message: str
|
|
24
|
-
payment_method: "PaymentMethod"
|
|
25
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
-
|
|
27
|
-
def to_dict(self) -> dict[str, Any]:
|
|
28
|
-
message = self.message
|
|
29
|
-
|
|
30
|
-
payment_method = self.payment_method.to_dict()
|
|
31
|
-
|
|
32
|
-
field_dict: dict[str, Any] = {}
|
|
33
|
-
field_dict.update(self.additional_properties)
|
|
34
|
-
field_dict.update(
|
|
35
|
-
{
|
|
36
|
-
"message": message,
|
|
37
|
-
"payment_method": payment_method,
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
return field_dict
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
-
from ..models.payment_method import PaymentMethod
|
|
46
|
-
|
|
47
|
-
d = dict(src_dict)
|
|
48
|
-
message = d.pop("message")
|
|
49
|
-
|
|
50
|
-
payment_method = PaymentMethod.from_dict(d.pop("payment_method"))
|
|
51
|
-
|
|
52
|
-
update_payment_method_response = cls(
|
|
53
|
-
message=message,
|
|
54
|
-
payment_method=payment_method,
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
update_payment_method_response.additional_properties = d
|
|
58
|
-
return update_payment_method_response
|
|
59
|
-
|
|
60
|
-
@property
|
|
61
|
-
def additional_keys(self) -> list[str]:
|
|
62
|
-
return list(self.additional_properties.keys())
|
|
63
|
-
|
|
64
|
-
def __getitem__(self, key: str) -> Any:
|
|
65
|
-
return self.additional_properties[key]
|
|
66
|
-
|
|
67
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
-
self.additional_properties[key] = value
|
|
69
|
-
|
|
70
|
-
def __delitem__(self, key: str) -> None:
|
|
71
|
-
del self.additional_properties[key]
|
|
72
|
-
|
|
73
|
-
def __contains__(self, key: str) -> bool:
|
|
74
|
-
return key in self.additional_properties
|
|
File without changes
|
{robosystems_client-0.2.13.dist-info → robosystems_client-0.2.15.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|