robosystems-client 0.1.10__py3-none-any.whl → 0.1.11__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/query_financial_agent.py +16 -16
- robosystems_client/api/backup/create_backup.py +0 -4
- robosystems_client/api/backup/export_backup.py +0 -3
- robosystems_client/api/backup/get_backup_download_url.py +1 -1
- robosystems_client/api/backup/restore_backup.py +0 -4
- robosystems_client/api/connections/create_connection.py +8 -20
- robosystems_client/api/connections/delete_connection.py +8 -16
- robosystems_client/api/connections/sync_connection.py +8 -20
- robosystems_client/api/create/get_available_extensions.py +1 -1
- robosystems_client/api/graph_analytics/get_graph_metrics.py +8 -16
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +8 -16
- robosystems_client/api/mcp/call_mcp_tool.py +8 -20
- robosystems_client/api/query/execute_cypher_query.py +28 -31
- robosystems_client/api/schema/get_graph_schema_info.py +4 -19
- robosystems_client/api/schema/validate_schema.py +4 -16
- robosystems_client/api/service_offerings/get_service_offerings.py +4 -4
- robosystems_client/api/user/select_user_graph.py +1 -1
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +223 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +248 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +18 -18
- robosystems_client/extensions/README.md +1 -1
- robosystems_client/extensions/__init__.py +1 -1
- robosystems_client/extensions/auth_integration.py +2 -2
- robosystems_client/extensions/extensions.py +1 -1
- robosystems_client/extensions/tests/__init__.py +1 -1
- robosystems_client/extensions/tests/test_integration.py +3 -3
- robosystems_client/extensions/tests/test_unit.py +5 -3
- robosystems_client/extensions/utils.py +1 -1
- robosystems_client/models/__init__.py +8 -2
- robosystems_client/models/create_graph_request.py +5 -25
- robosystems_client/models/database_health_response.py +1 -1
- robosystems_client/models/database_info_response.py +2 -2
- robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +46 -0
- robosystems_client/models/{get_mcp_health_response_getmcphealth.py → get_shared_repository_limits_response_getsharedrepositorylimits.py} +5 -5
- robosystems_client/models/repository_credits_response.py +6 -6
- robosystems_client/models/schema_export_response.py +2 -2
- robosystems_client/models/subscription_info.py +0 -28
- robosystems_client/models/subscription_request.py +0 -9
- robosystems_client/models/subscription_response.py +0 -8
- robosystems_client/sdk-config.yaml +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.11.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.11.dist-info}/RECORD +43 -41
- robosystems_client/api/status/get_mcp_health.py +0 -136
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.11.dist-info}/WHEEL +0 -0
|
@@ -11,7 +11,7 @@ from ...types import UNSET, Response, Unset
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
|
-
|
|
14
|
+
repository: str,
|
|
15
15
|
*,
|
|
16
16
|
authorization: Union[None, Unset, str] = UNSET,
|
|
17
17
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
@@ -26,7 +26,7 @@ def _get_kwargs(
|
|
|
26
26
|
|
|
27
27
|
_kwargs: dict[str, Any] = {
|
|
28
28
|
"method": "get",
|
|
29
|
-
"url": f"/v1/user/subscriptions/shared-repositories/credits/{
|
|
29
|
+
"url": f"/v1/user/subscriptions/shared-repositories/credits/{repository}",
|
|
30
30
|
"cookies": cookies,
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -69,7 +69,7 @@ def _build_response(
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def sync_detailed(
|
|
72
|
-
|
|
72
|
+
repository: str,
|
|
73
73
|
*,
|
|
74
74
|
client: AuthenticatedClient,
|
|
75
75
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -77,10 +77,10 @@ def sync_detailed(
|
|
|
77
77
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
78
78
|
"""Get Repository Credits
|
|
79
79
|
|
|
80
|
-
Get credit balance for a specific shared repository
|
|
80
|
+
Get credit balance for a specific shared repository
|
|
81
81
|
|
|
82
82
|
Args:
|
|
83
|
-
|
|
83
|
+
repository (str):
|
|
84
84
|
authorization (Union[None, Unset, str]):
|
|
85
85
|
auth_token (Union[None, Unset, str]):
|
|
86
86
|
|
|
@@ -93,7 +93,7 @@ def sync_detailed(
|
|
|
93
93
|
"""
|
|
94
94
|
|
|
95
95
|
kwargs = _get_kwargs(
|
|
96
|
-
|
|
96
|
+
repository=repository,
|
|
97
97
|
authorization=authorization,
|
|
98
98
|
auth_token=auth_token,
|
|
99
99
|
)
|
|
@@ -106,7 +106,7 @@ def sync_detailed(
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
def sync(
|
|
109
|
-
|
|
109
|
+
repository: str,
|
|
110
110
|
*,
|
|
111
111
|
client: AuthenticatedClient,
|
|
112
112
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -114,10 +114,10 @@ def sync(
|
|
|
114
114
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
115
115
|
"""Get Repository Credits
|
|
116
116
|
|
|
117
|
-
Get credit balance for a specific shared repository
|
|
117
|
+
Get credit balance for a specific shared repository
|
|
118
118
|
|
|
119
119
|
Args:
|
|
120
|
-
|
|
120
|
+
repository (str):
|
|
121
121
|
authorization (Union[None, Unset, str]):
|
|
122
122
|
auth_token (Union[None, Unset, str]):
|
|
123
123
|
|
|
@@ -130,7 +130,7 @@ def sync(
|
|
|
130
130
|
"""
|
|
131
131
|
|
|
132
132
|
return sync_detailed(
|
|
133
|
-
|
|
133
|
+
repository=repository,
|
|
134
134
|
client=client,
|
|
135
135
|
authorization=authorization,
|
|
136
136
|
auth_token=auth_token,
|
|
@@ -138,7 +138,7 @@ def sync(
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
async def asyncio_detailed(
|
|
141
|
-
|
|
141
|
+
repository: str,
|
|
142
142
|
*,
|
|
143
143
|
client: AuthenticatedClient,
|
|
144
144
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -146,10 +146,10 @@ async def asyncio_detailed(
|
|
|
146
146
|
) -> Response[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
147
147
|
"""Get Repository Credits
|
|
148
148
|
|
|
149
|
-
Get credit balance for a specific shared repository
|
|
149
|
+
Get credit balance for a specific shared repository
|
|
150
150
|
|
|
151
151
|
Args:
|
|
152
|
-
|
|
152
|
+
repository (str):
|
|
153
153
|
authorization (Union[None, Unset, str]):
|
|
154
154
|
auth_token (Union[None, Unset, str]):
|
|
155
155
|
|
|
@@ -162,7 +162,7 @@ async def asyncio_detailed(
|
|
|
162
162
|
"""
|
|
163
163
|
|
|
164
164
|
kwargs = _get_kwargs(
|
|
165
|
-
|
|
165
|
+
repository=repository,
|
|
166
166
|
authorization=authorization,
|
|
167
167
|
auth_token=auth_token,
|
|
168
168
|
)
|
|
@@ -173,7 +173,7 @@ async def asyncio_detailed(
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
async def asyncio(
|
|
176
|
-
|
|
176
|
+
repository: str,
|
|
177
177
|
*,
|
|
178
178
|
client: AuthenticatedClient,
|
|
179
179
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -181,10 +181,10 @@ async def asyncio(
|
|
|
181
181
|
) -> Optional[Union[Any, HTTPValidationError, RepositoryCreditsResponse]]:
|
|
182
182
|
"""Get Repository Credits
|
|
183
183
|
|
|
184
|
-
Get credit balance for a specific shared repository
|
|
184
|
+
Get credit balance for a specific shared repository
|
|
185
185
|
|
|
186
186
|
Args:
|
|
187
|
-
|
|
187
|
+
repository (str):
|
|
188
188
|
authorization (Union[None, Unset, str]):
|
|
189
189
|
auth_token (Union[None, Unset, str]):
|
|
190
190
|
|
|
@@ -198,7 +198,7 @@ async def asyncio(
|
|
|
198
198
|
|
|
199
199
|
return (
|
|
200
200
|
await asyncio_detailed(
|
|
201
|
-
|
|
201
|
+
repository=repository,
|
|
202
202
|
client=client,
|
|
203
203
|
authorization=authorization,
|
|
204
204
|
auth_token=auth_token,
|
|
@@ -602,7 +602,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
602
602
|
- **Documentation**: [docs.robosystems.ai](https://docs.robosystems.ai)
|
|
603
603
|
- **API Reference**: [api.robosystems.ai/docs](https://api.robosystems.ai/docs)
|
|
604
604
|
- **Issues**: [GitHub Issues](https://github.com/robosystems/python-sdk/issues)
|
|
605
|
-
- **Email**:
|
|
605
|
+
- **Email**: hello@robosystems.ai
|
|
606
606
|
|
|
607
607
|
---
|
|
608
608
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"""Authentication Integration for RoboSystems
|
|
1
|
+
"""Authentication Integration for RoboSystems Client Extensions
|
|
2
2
|
|
|
3
|
-
Provides proper integration with the generated
|
|
3
|
+
Provides proper integration with the generated Client authentication system.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
from typing import Dict, Any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"""Tests for RoboSystems
|
|
1
|
+
"""Tests for RoboSystems Client Extensions"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"""Integration Tests for RoboSystems
|
|
1
|
+
"""Integration Tests for RoboSystems Client Extensions
|
|
2
2
|
|
|
3
3
|
These tests demonstrate real usage patterns and verify the extensions work correctly
|
|
4
|
-
with the generated
|
|
4
|
+
with the generated Client.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import pytest
|
|
@@ -438,7 +438,7 @@ class TestUtilityIntegration:
|
|
|
438
438
|
# Integration test runner
|
|
439
439
|
def run_integration_tests():
|
|
440
440
|
"""Run all integration tests manually (for environments without pytest)"""
|
|
441
|
-
print("Running RoboSystems
|
|
441
|
+
print("Running RoboSystems Client Extensions Integration Tests...")
|
|
442
442
|
|
|
443
443
|
# Test classes to run
|
|
444
444
|
test_classes = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Unit Tests for RoboSystems
|
|
1
|
+
"""Unit Tests for RoboSystems Client Extensions
|
|
2
2
|
|
|
3
3
|
Focused unit tests for individual components.
|
|
4
4
|
"""
|
|
@@ -14,8 +14,10 @@ import os
|
|
|
14
14
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../.."))
|
|
15
15
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
|
16
16
|
|
|
17
|
-
from
|
|
18
|
-
|
|
17
|
+
from robosystems_client.extensions import (
|
|
18
|
+
SSEClient,
|
|
19
|
+
SSEConfig,
|
|
20
|
+
SSEEvent,
|
|
19
21
|
QueryBuilder,
|
|
20
22
|
CacheManager,
|
|
21
23
|
ProgressTracker,
|
|
@@ -71,6 +71,9 @@ from .exchange_token_request_metadata_type_0 import ExchangeTokenRequestMetadata
|
|
|
71
71
|
from .get_all_credit_summaries_response_getallcreditsummaries import (
|
|
72
72
|
GetAllCreditSummariesResponseGetallcreditsummaries,
|
|
73
73
|
)
|
|
74
|
+
from .get_all_shared_repository_limits_response_getallsharedrepositorylimits import (
|
|
75
|
+
GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
|
|
76
|
+
)
|
|
74
77
|
from .get_backup_download_url_response_getbackupdownloadurl import (
|
|
75
78
|
GetBackupDownloadUrlResponseGetbackupdownloadurl,
|
|
76
79
|
)
|
|
@@ -92,10 +95,12 @@ from .get_graph_schema_info_response_getgraphschemainfo import (
|
|
|
92
95
|
from .get_graph_usage_details_response_getgraphusagedetails import (
|
|
93
96
|
GetGraphUsageDetailsResponseGetgraphusagedetails,
|
|
94
97
|
)
|
|
95
|
-
from .get_mcp_health_response_getmcphealth import GetMCPHealthResponseGetmcphealth
|
|
96
98
|
from .get_operation_status_response_getoperationstatus import (
|
|
97
99
|
GetOperationStatusResponseGetoperationstatus,
|
|
98
100
|
)
|
|
101
|
+
from .get_shared_repository_limits_response_getsharedrepositorylimits import (
|
|
102
|
+
GetSharedRepositoryLimitsResponseGetsharedrepositorylimits,
|
|
103
|
+
)
|
|
99
104
|
from .get_storage_usage_response_getstorageusage import (
|
|
100
105
|
GetStorageUsageResponseGetstorageusage,
|
|
101
106
|
)
|
|
@@ -275,6 +280,7 @@ __all__ = (
|
|
|
275
280
|
"ExchangeTokenRequest",
|
|
276
281
|
"ExchangeTokenRequestMetadataType0",
|
|
277
282
|
"GetAllCreditSummariesResponseGetallcreditsummaries",
|
|
283
|
+
"GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits",
|
|
278
284
|
"GetBackupDownloadUrlResponseGetbackupdownloadurl",
|
|
279
285
|
"GetCurrentAuthUserResponseGetcurrentauthuser",
|
|
280
286
|
"GetCurrentGraphBillResponseGetcurrentgraphbill",
|
|
@@ -282,8 +288,8 @@ __all__ = (
|
|
|
282
288
|
"GetGraphMonthlyBillResponseGetgraphmonthlybill",
|
|
283
289
|
"GetGraphSchemaInfoResponseGetgraphschemainfo",
|
|
284
290
|
"GetGraphUsageDetailsResponseGetgraphusagedetails",
|
|
285
|
-
"GetMCPHealthResponseGetmcphealth",
|
|
286
291
|
"GetOperationStatusResponseGetoperationstatus",
|
|
292
|
+
"GetSharedRepositoryLimitsResponseGetsharedrepositorylimits",
|
|
287
293
|
"GetStorageUsageResponseGetstorageusage",
|
|
288
294
|
"GraphInfo",
|
|
289
295
|
"GraphMetadata",
|
|
@@ -30,14 +30,14 @@ class CreateGraphRequest:
|
|
|
30
30
|
custom_schema (Union['CustomSchemaDefinition', None, Unset]): Custom schema definition to apply
|
|
31
31
|
initial_entity (Union['InitialEntityData', None, Unset]): Optional initial entity to create in the graph. If
|
|
32
32
|
provided, creates a entity-focused graph.
|
|
33
|
-
tags (Union[
|
|
33
|
+
tags (Union[Unset, list[str]]): Optional tags for organization
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
metadata: "GraphMetadata"
|
|
37
37
|
instance_tier: Union[Unset, str] = "standard"
|
|
38
38
|
custom_schema: Union["CustomSchemaDefinition", None, Unset] = UNSET
|
|
39
39
|
initial_entity: Union["InitialEntityData", None, Unset] = UNSET
|
|
40
|
-
tags: Union[
|
|
40
|
+
tags: Union[Unset, list[str]] = UNSET
|
|
41
41
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
42
42
|
|
|
43
43
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -64,13 +64,8 @@ class CreateGraphRequest:
|
|
|
64
64
|
else:
|
|
65
65
|
initial_entity = self.initial_entity
|
|
66
66
|
|
|
67
|
-
tags: Union[
|
|
68
|
-
if isinstance(self.tags, Unset):
|
|
69
|
-
tags = UNSET
|
|
70
|
-
elif isinstance(self.tags, list):
|
|
71
|
-
tags = self.tags
|
|
72
|
-
|
|
73
|
-
else:
|
|
67
|
+
tags: Union[Unset, list[str]] = UNSET
|
|
68
|
+
if not isinstance(self.tags, Unset):
|
|
74
69
|
tags = self.tags
|
|
75
70
|
|
|
76
71
|
field_dict: dict[str, Any] = {}
|
|
@@ -138,22 +133,7 @@ class CreateGraphRequest:
|
|
|
138
133
|
|
|
139
134
|
initial_entity = _parse_initial_entity(d.pop("initial_entity", UNSET))
|
|
140
135
|
|
|
141
|
-
|
|
142
|
-
if data is None:
|
|
143
|
-
return data
|
|
144
|
-
if isinstance(data, Unset):
|
|
145
|
-
return data
|
|
146
|
-
try:
|
|
147
|
-
if not isinstance(data, list):
|
|
148
|
-
raise TypeError()
|
|
149
|
-
tags_type_0 = cast(list[str], data)
|
|
150
|
-
|
|
151
|
-
return tags_type_0
|
|
152
|
-
except: # noqa: E722
|
|
153
|
-
pass
|
|
154
|
-
return cast(Union[None, Unset, list[str]], data)
|
|
155
|
-
|
|
156
|
-
tags = _parse_tags(d.pop("tags", UNSET))
|
|
136
|
+
tags = cast(list[str], d.pop("tags", UNSET))
|
|
157
137
|
|
|
158
138
|
create_graph_request = cls(
|
|
159
139
|
metadata=metadata,
|
|
@@ -14,7 +14,7 @@ class DatabaseHealthResponse:
|
|
|
14
14
|
"""Response model for database health check.
|
|
15
15
|
|
|
16
16
|
Attributes:
|
|
17
|
-
graph_id (str): Graph database identifier Example:
|
|
17
|
+
graph_id (str): Graph database identifier Example: kg1a2b3c4d5.
|
|
18
18
|
status (str): Overall health status Example: healthy.
|
|
19
19
|
connection_status (str): Database connection status Example: connected.
|
|
20
20
|
uptime_seconds (float): Database uptime in seconds Example: 3600.5.
|
|
@@ -14,8 +14,8 @@ class DatabaseInfoResponse:
|
|
|
14
14
|
"""Response model for database information and statistics.
|
|
15
15
|
|
|
16
16
|
Attributes:
|
|
17
|
-
graph_id (str): Graph database identifier Example:
|
|
18
|
-
database_name (str): Database name Example:
|
|
17
|
+
graph_id (str): Graph database identifier Example: kg1a2b3c4d5.
|
|
18
|
+
database_name (str): Database name Example: kg1a2b3c4d5.
|
|
19
19
|
database_size_bytes (int): Database size in bytes Example: 1048576.
|
|
20
20
|
database_size_mb (float): Database size in MB Example: 1.0.
|
|
21
21
|
node_count (int): Total number of nodes Example: 1250.
|
robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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(
|
|
8
|
+
"T", bound="GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits"
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits:
|
|
14
|
+
""" """
|
|
15
|
+
|
|
16
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
17
|
+
|
|
18
|
+
def to_dict(self) -> dict[str, Any]:
|
|
19
|
+
field_dict: dict[str, Any] = {}
|
|
20
|
+
field_dict.update(self.additional_properties)
|
|
21
|
+
|
|
22
|
+
return field_dict
|
|
23
|
+
|
|
24
|
+
@classmethod
|
|
25
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
26
|
+
d = dict(src_dict)
|
|
27
|
+
get_all_shared_repository_limits_response_getallsharedrepositorylimits = cls()
|
|
28
|
+
|
|
29
|
+
get_all_shared_repository_limits_response_getallsharedrepositorylimits.additional_properties = d
|
|
30
|
+
return get_all_shared_repository_limits_response_getallsharedrepositorylimits
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def additional_keys(self) -> list[str]:
|
|
34
|
+
return list(self.additional_properties.keys())
|
|
35
|
+
|
|
36
|
+
def __getitem__(self, key: str) -> Any:
|
|
37
|
+
return self.additional_properties[key]
|
|
38
|
+
|
|
39
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
40
|
+
self.additional_properties[key] = value
|
|
41
|
+
|
|
42
|
+
def __delitem__(self, key: str) -> None:
|
|
43
|
+
del self.additional_properties[key]
|
|
44
|
+
|
|
45
|
+
def __contains__(self, key: str) -> bool:
|
|
46
|
+
return key in self.additional_properties
|
|
@@ -4,11 +4,11 @@ from typing import Any, TypeVar
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
T = TypeVar("T", bound="
|
|
7
|
+
T = TypeVar("T", bound="GetSharedRepositoryLimitsResponseGetsharedrepositorylimits")
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@_attrs_define
|
|
11
|
-
class
|
|
11
|
+
class GetSharedRepositoryLimitsResponseGetsharedrepositorylimits:
|
|
12
12
|
""" """
|
|
13
13
|
|
|
14
14
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -22,10 +22,10 @@ class GetMCPHealthResponseGetmcphealth:
|
|
|
22
22
|
@classmethod
|
|
23
23
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
24
|
d = dict(src_dict)
|
|
25
|
-
|
|
25
|
+
get_shared_repository_limits_response_getsharedrepositorylimits = cls()
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
get_shared_repository_limits_response_getsharedrepositorylimits.additional_properties = d
|
|
28
|
+
return get_shared_repository_limits_response_getsharedrepositorylimits
|
|
29
29
|
|
|
30
30
|
@property
|
|
31
31
|
def additional_keys(self) -> list[str]:
|
|
@@ -18,20 +18,20 @@ class RepositoryCreditsResponse:
|
|
|
18
18
|
"""Response for repository-specific credits.
|
|
19
19
|
|
|
20
20
|
Attributes:
|
|
21
|
-
|
|
21
|
+
repository (str): Repository identifier
|
|
22
22
|
has_access (bool): Whether user has access
|
|
23
23
|
message (Union[Unset, str]): Access message
|
|
24
24
|
credits_ (Union[Unset, CreditSummary]): Credit balance summary.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
repository: str
|
|
28
28
|
has_access: bool
|
|
29
29
|
message: Union[Unset, str] = UNSET
|
|
30
30
|
credits_: Union[Unset, "CreditSummary"] = UNSET
|
|
31
31
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
32
|
|
|
33
33
|
def to_dict(self) -> dict[str, Any]:
|
|
34
|
-
|
|
34
|
+
repository = self.repository
|
|
35
35
|
|
|
36
36
|
has_access = self.has_access
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ class RepositoryCreditsResponse:
|
|
|
45
45
|
field_dict.update(self.additional_properties)
|
|
46
46
|
field_dict.update(
|
|
47
47
|
{
|
|
48
|
-
"
|
|
48
|
+
"repository": repository,
|
|
49
49
|
"has_access": has_access,
|
|
50
50
|
}
|
|
51
51
|
)
|
|
@@ -61,7 +61,7 @@ class RepositoryCreditsResponse:
|
|
|
61
61
|
from ..models.credit_summary import CreditSummary
|
|
62
62
|
|
|
63
63
|
d = dict(src_dict)
|
|
64
|
-
|
|
64
|
+
repository = d.pop("repository")
|
|
65
65
|
|
|
66
66
|
has_access = d.pop("has_access")
|
|
67
67
|
|
|
@@ -75,7 +75,7 @@ class RepositoryCreditsResponse:
|
|
|
75
75
|
credits_ = CreditSummary.from_dict(_credits_)
|
|
76
76
|
|
|
77
77
|
repository_credits_response = cls(
|
|
78
|
-
|
|
78
|
+
repository=repository,
|
|
79
79
|
has_access=has_access,
|
|
80
80
|
message=message,
|
|
81
81
|
credits_=credits_,
|
|
@@ -23,9 +23,9 @@ class SchemaExportResponse:
|
|
|
23
23
|
"""Response model for schema export.
|
|
24
24
|
|
|
25
25
|
Attributes:
|
|
26
|
-
graph_id (str): Graph ID Example:
|
|
26
|
+
graph_id (str): Graph ID Example: kg1a2b3c4d5.
|
|
27
27
|
schema_definition (Union['SchemaExportResponseSchemaDefinitionType0', str]): Exported schema definition Example:
|
|
28
|
-
{'name': '
|
|
28
|
+
{'name': 'kg1a2b3c4d5_schema', 'nodes': [{'name': 'Entity', 'properties': []}], 'relationships': [], 'version':
|
|
29
29
|
'1.0.0'}.
|
|
30
30
|
format_ (str): Export format used Example: json.
|
|
31
31
|
exported_at (str): Export timestamp Example: 2024-01-15T10:30:00Z.
|
|
@@ -23,12 +23,10 @@ class SubscriptionInfo:
|
|
|
23
23
|
addon_type (str): Add-on type
|
|
24
24
|
addon_tier (str): Subscription tier
|
|
25
25
|
is_active (bool): Whether subscription is active
|
|
26
|
-
is_trial (bool): Whether this is a trial subscription
|
|
27
26
|
activated_at (str): Activation date (ISO format)
|
|
28
27
|
monthly_price_cents (int): Monthly price in cents
|
|
29
28
|
features (list[str]): List of features
|
|
30
29
|
metadata (SubscriptionInfoMetadata): Additional metadata
|
|
31
|
-
trial_ends_at (Union[None, Unset, str]): Trial expiration date (ISO format)
|
|
32
30
|
expires_at (Union[None, Unset, str]): Expiration date (ISO format)
|
|
33
31
|
"""
|
|
34
32
|
|
|
@@ -37,12 +35,10 @@ class SubscriptionInfo:
|
|
|
37
35
|
addon_type: str
|
|
38
36
|
addon_tier: str
|
|
39
37
|
is_active: bool
|
|
40
|
-
is_trial: bool
|
|
41
38
|
activated_at: str
|
|
42
39
|
monthly_price_cents: int
|
|
43
40
|
features: list[str]
|
|
44
41
|
metadata: "SubscriptionInfoMetadata"
|
|
45
|
-
trial_ends_at: Union[None, Unset, str] = UNSET
|
|
46
42
|
expires_at: Union[None, Unset, str] = UNSET
|
|
47
43
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
44
|
|
|
@@ -57,8 +53,6 @@ class SubscriptionInfo:
|
|
|
57
53
|
|
|
58
54
|
is_active = self.is_active
|
|
59
55
|
|
|
60
|
-
is_trial = self.is_trial
|
|
61
|
-
|
|
62
56
|
activated_at = self.activated_at
|
|
63
57
|
|
|
64
58
|
monthly_price_cents = self.monthly_price_cents
|
|
@@ -67,12 +61,6 @@ class SubscriptionInfo:
|
|
|
67
61
|
|
|
68
62
|
metadata = self.metadata.to_dict()
|
|
69
63
|
|
|
70
|
-
trial_ends_at: Union[None, Unset, str]
|
|
71
|
-
if isinstance(self.trial_ends_at, Unset):
|
|
72
|
-
trial_ends_at = UNSET
|
|
73
|
-
else:
|
|
74
|
-
trial_ends_at = self.trial_ends_at
|
|
75
|
-
|
|
76
64
|
expires_at: Union[None, Unset, str]
|
|
77
65
|
if isinstance(self.expires_at, Unset):
|
|
78
66
|
expires_at = UNSET
|
|
@@ -88,15 +76,12 @@ class SubscriptionInfo:
|
|
|
88
76
|
"addon_type": addon_type,
|
|
89
77
|
"addon_tier": addon_tier,
|
|
90
78
|
"is_active": is_active,
|
|
91
|
-
"is_trial": is_trial,
|
|
92
79
|
"activated_at": activated_at,
|
|
93
80
|
"monthly_price_cents": monthly_price_cents,
|
|
94
81
|
"features": features,
|
|
95
82
|
"metadata": metadata,
|
|
96
83
|
}
|
|
97
84
|
)
|
|
98
|
-
if trial_ends_at is not UNSET:
|
|
99
|
-
field_dict["trial_ends_at"] = trial_ends_at
|
|
100
85
|
if expires_at is not UNSET:
|
|
101
86
|
field_dict["expires_at"] = expires_at
|
|
102
87
|
|
|
@@ -117,8 +102,6 @@ class SubscriptionInfo:
|
|
|
117
102
|
|
|
118
103
|
is_active = d.pop("is_active")
|
|
119
104
|
|
|
120
|
-
is_trial = d.pop("is_trial")
|
|
121
|
-
|
|
122
105
|
activated_at = d.pop("activated_at")
|
|
123
106
|
|
|
124
107
|
monthly_price_cents = d.pop("monthly_price_cents")
|
|
@@ -127,15 +110,6 @@ class SubscriptionInfo:
|
|
|
127
110
|
|
|
128
111
|
metadata = SubscriptionInfoMetadata.from_dict(d.pop("metadata"))
|
|
129
112
|
|
|
130
|
-
def _parse_trial_ends_at(data: object) -> Union[None, Unset, str]:
|
|
131
|
-
if data is None:
|
|
132
|
-
return data
|
|
133
|
-
if isinstance(data, Unset):
|
|
134
|
-
return data
|
|
135
|
-
return cast(Union[None, Unset, str], data)
|
|
136
|
-
|
|
137
|
-
trial_ends_at = _parse_trial_ends_at(d.pop("trial_ends_at", UNSET))
|
|
138
|
-
|
|
139
113
|
def _parse_expires_at(data: object) -> Union[None, Unset, str]:
|
|
140
114
|
if data is None:
|
|
141
115
|
return data
|
|
@@ -151,12 +125,10 @@ class SubscriptionInfo:
|
|
|
151
125
|
addon_type=addon_type,
|
|
152
126
|
addon_tier=addon_tier,
|
|
153
127
|
is_active=is_active,
|
|
154
|
-
is_trial=is_trial,
|
|
155
128
|
activated_at=activated_at,
|
|
156
129
|
monthly_price_cents=monthly_price_cents,
|
|
157
130
|
features=features,
|
|
158
131
|
metadata=metadata,
|
|
159
|
-
trial_ends_at=trial_ends_at,
|
|
160
132
|
expires_at=expires_at,
|
|
161
133
|
)
|
|
162
134
|
|
|
@@ -18,12 +18,10 @@ class SubscriptionRequest:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
repository_type (RepositoryType): Types of shared repositories.
|
|
20
20
|
repository_plan (Union[Unset, RepositoryPlan]): Repository access plans for shared data.
|
|
21
|
-
is_trial (Union[Unset, bool]): Start with trial period Default: False.
|
|
22
21
|
"""
|
|
23
22
|
|
|
24
23
|
repository_type: RepositoryType
|
|
25
24
|
repository_plan: Union[Unset, RepositoryPlan] = UNSET
|
|
26
|
-
is_trial: Union[Unset, bool] = False
|
|
27
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
26
|
|
|
29
27
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -33,8 +31,6 @@ class SubscriptionRequest:
|
|
|
33
31
|
if not isinstance(self.repository_plan, Unset):
|
|
34
32
|
repository_plan = self.repository_plan.value
|
|
35
33
|
|
|
36
|
-
is_trial = self.is_trial
|
|
37
|
-
|
|
38
34
|
field_dict: dict[str, Any] = {}
|
|
39
35
|
field_dict.update(self.additional_properties)
|
|
40
36
|
field_dict.update(
|
|
@@ -44,8 +40,6 @@ class SubscriptionRequest:
|
|
|
44
40
|
)
|
|
45
41
|
if repository_plan is not UNSET:
|
|
46
42
|
field_dict["repository_plan"] = repository_plan
|
|
47
|
-
if is_trial is not UNSET:
|
|
48
|
-
field_dict["is_trial"] = is_trial
|
|
49
43
|
|
|
50
44
|
return field_dict
|
|
51
45
|
|
|
@@ -61,12 +55,9 @@ class SubscriptionRequest:
|
|
|
61
55
|
else:
|
|
62
56
|
repository_plan = RepositoryPlan(_repository_plan)
|
|
63
57
|
|
|
64
|
-
is_trial = d.pop("is_trial", UNSET)
|
|
65
|
-
|
|
66
58
|
subscription_request = cls(
|
|
67
59
|
repository_type=repository_type,
|
|
68
60
|
repository_plan=repository_plan,
|
|
69
|
-
is_trial=is_trial,
|
|
70
61
|
)
|
|
71
62
|
|
|
72
63
|
subscription_request.additional_properties = d
|
|
@@ -18,12 +18,10 @@ class SubscriptionResponse:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
message (str): Success message
|
|
20
20
|
subscription (SubscriptionInfo): User subscription information.
|
|
21
|
-
trial_period (int): Trial period in days
|
|
22
21
|
"""
|
|
23
22
|
|
|
24
23
|
message: str
|
|
25
24
|
subscription: "SubscriptionInfo"
|
|
26
|
-
trial_period: int
|
|
27
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
26
|
|
|
29
27
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -31,15 +29,12 @@ class SubscriptionResponse:
|
|
|
31
29
|
|
|
32
30
|
subscription = self.subscription.to_dict()
|
|
33
31
|
|
|
34
|
-
trial_period = self.trial_period
|
|
35
|
-
|
|
36
32
|
field_dict: dict[str, Any] = {}
|
|
37
33
|
field_dict.update(self.additional_properties)
|
|
38
34
|
field_dict.update(
|
|
39
35
|
{
|
|
40
36
|
"message": message,
|
|
41
37
|
"subscription": subscription,
|
|
42
|
-
"trial_period": trial_period,
|
|
43
38
|
}
|
|
44
39
|
)
|
|
45
40
|
|
|
@@ -54,12 +49,9 @@ class SubscriptionResponse:
|
|
|
54
49
|
|
|
55
50
|
subscription = SubscriptionInfo.from_dict(d.pop("subscription"))
|
|
56
51
|
|
|
57
|
-
trial_period = d.pop("trial_period")
|
|
58
|
-
|
|
59
52
|
subscription_response = cls(
|
|
60
53
|
message=message,
|
|
61
54
|
subscription=subscription,
|
|
62
|
-
trial_period=trial_period,
|
|
63
55
|
)
|
|
64
56
|
|
|
65
57
|
subscription_response.additional_properties = d
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class_name: RoboSystemsClient
|
|
2
2
|
package_name: robosystems_client
|
|
3
3
|
project_name: robosystems-sdk
|
|
4
|
-
package_description: "Python
|
|
4
|
+
package_description: "Python Client for RoboSystems financial graph database API"
|
|
5
5
|
package_version: "0.1.0"
|