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,7 +1,6 @@
1
1
  """Contains all the data models used in inputs/outputs"""
2
2
 
3
3
  from .account_info import AccountInfo
4
- from .add_on_credit_info import AddOnCreditInfo
5
4
  from .agent_list_response import AgentListResponse
6
5
  from .agent_list_response_agents import AgentListResponseAgents
7
6
  from .agent_list_response_agents_additional_property import (
@@ -61,15 +60,13 @@ from .create_api_key_response import CreateAPIKeyResponse
61
60
  from .create_connection_request import CreateConnectionRequest
62
61
  from .create_connection_request_provider import CreateConnectionRequestProvider
63
62
  from .create_graph_request import CreateGraphRequest
63
+ from .create_repository_subscription_request import CreateRepositorySubscriptionRequest
64
64
  from .create_subgraph_request import CreateSubgraphRequest
65
65
  from .create_subgraph_request_metadata_type_0 import CreateSubgraphRequestMetadataType0
66
66
  from .credit_limits import CreditLimits
67
67
  from .credit_summary import CreditSummary
68
+ from .credit_summary_operation_breakdown import CreditSummaryOperationBreakdown
68
69
  from .credit_summary_response import CreditSummaryResponse
69
- from .credits_summary_response import CreditsSummaryResponse
70
- from .credits_summary_response_credits_by_addon_type_0_item import (
71
- CreditsSummaryResponseCreditsByAddonType0Item,
72
- )
73
70
  from .custom_schema_definition import CustomSchemaDefinition
74
71
  from .custom_schema_definition_metadata import CustomSchemaDefinitionMetadata
75
72
  from .custom_schema_definition_nodes_item import CustomSchemaDefinitionNodesItem
@@ -108,34 +105,13 @@ from .forgot_password_request import ForgotPasswordRequest
108
105
  from .forgot_password_response_forgotpassword import (
109
106
  ForgotPasswordResponseForgotpassword,
110
107
  )
111
- from .get_all_credit_summaries_response_getallcreditsummaries import (
112
- GetAllCreditSummariesResponseGetallcreditsummaries,
113
- )
114
- from .get_all_shared_repository_limits_response_getallsharedrepositorylimits import (
115
- GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits,
116
- )
117
108
  from .get_current_auth_user_response_getcurrentauthuser import (
118
109
  GetCurrentAuthUserResponseGetcurrentauthuser,
119
110
  )
120
- from .get_current_graph_bill_response_getcurrentgraphbill import (
121
- GetCurrentGraphBillResponseGetcurrentgraphbill,
122
- )
123
111
  from .get_file_info_response import GetFileInfoResponse
124
- from .get_graph_billing_history_response_getgraphbillinghistory import (
125
- GetGraphBillingHistoryResponseGetgraphbillinghistory,
126
- )
127
- from .get_graph_monthly_bill_response_getgraphmonthlybill import (
128
- GetGraphMonthlyBillResponseGetgraphmonthlybill,
129
- )
130
- from .get_graph_usage_details_response_getgraphusagedetails import (
131
- GetGraphUsageDetailsResponseGetgraphusagedetails,
132
- )
133
112
  from .get_operation_status_response_getoperationstatus import (
134
113
  GetOperationStatusResponseGetoperationstatus,
135
114
  )
136
- from .get_shared_repository_limits_response_getsharedrepositorylimits import (
137
- GetSharedRepositoryLimitsResponseGetsharedrepositorylimits,
138
- )
139
115
  from .get_storage_usage_response_getstorageusage import (
140
116
  GetStorageUsageResponseGetstorageusage,
141
117
  )
@@ -149,6 +125,7 @@ from .graph_metrics_response_node_counts import GraphMetricsResponseNodeCounts
149
125
  from .graph_metrics_response_relationship_counts import (
150
126
  GraphMetricsResponseRelationshipCounts,
151
127
  )
128
+ from .graph_subscription_response import GraphSubscriptionResponse
152
129
  from .graph_subscription_tier import GraphSubscriptionTier
153
130
  from .graph_subscriptions import GraphSubscriptions
154
131
  from .graph_tier_backup import GraphTierBackup
@@ -157,9 +134,7 @@ from .graph_tier_info import GraphTierInfo
157
134
  from .graph_tier_instance import GraphTierInstance
158
135
  from .graph_tier_limits import GraphTierLimits
159
136
  from .graph_usage_response import GraphUsageResponse
160
- from .graph_usage_response_query_statistics import GraphUsageResponseQueryStatistics
161
- from .graph_usage_response_recent_activity import GraphUsageResponseRecentActivity
162
- from .graph_usage_response_storage_usage import GraphUsageResponseStorageUsage
137
+ from .graph_usage_response_recent_events_item import GraphUsageResponseRecentEventsItem
163
138
  from .health_status import HealthStatus
164
139
  from .health_status_details_type_0 import HealthStatusDetailsType0
165
140
  from .http_validation_error import HTTPValidationError
@@ -194,6 +169,9 @@ from .password_check_response import PasswordCheckResponse
194
169
  from .password_check_response_character_types import PasswordCheckResponseCharacterTypes
195
170
  from .password_policy_response import PasswordPolicyResponse
196
171
  from .password_policy_response_policy import PasswordPolicyResponsePolicy
172
+ from .performance_insights import PerformanceInsights
173
+ from .performance_insights_operation_stats import PerformanceInsightsOperationStats
174
+ from .performance_insights_slow_queries_item import PerformanceInsightsSlowQueriesItem
197
175
  from .plaid_connection_config import PlaidConnectionConfig
198
176
  from .plaid_connection_config_accounts_type_0_item import (
199
177
  PlaidConnectionConfigAccountsType0Item,
@@ -205,11 +183,8 @@ from .query_limits import QueryLimits
205
183
  from .quick_books_connection_config import QuickBooksConnectionConfig
206
184
  from .rate_limits import RateLimits
207
185
  from .register_request import RegisterRequest
208
- from .repository_credits_response import RepositoryCreditsResponse
209
186
  from .repository_info import RepositoryInfo
210
- from .repository_plan import RepositoryPlan
211
187
  from .repository_subscriptions import RepositorySubscriptions
212
- from .repository_type import RepositoryType
213
188
  from .resend_verification_email_response_resendverificationemail import (
214
189
  ResendVerificationEmailResponseResendverificationemail,
215
190
  )
@@ -245,15 +220,12 @@ from .storage_info_included_per_tier import StorageInfoIncludedPerTier
245
220
  from .storage_info_overage_pricing import StorageInfoOveragePricing
246
221
  from .storage_limit_response import StorageLimitResponse
247
222
  from .storage_limits import StorageLimits
223
+ from .storage_summary import StorageSummary
248
224
  from .subgraph_quota_response import SubgraphQuotaResponse
249
225
  from .subgraph_response import SubgraphResponse
250
226
  from .subgraph_response_metadata_type_0 import SubgraphResponseMetadataType0
251
227
  from .subgraph_summary import SubgraphSummary
252
228
  from .subgraph_type import SubgraphType
253
- from .subscription_info import SubscriptionInfo
254
- from .subscription_info_metadata import SubscriptionInfoMetadata
255
- from .subscription_request import SubscriptionRequest
256
- from .subscription_response import SubscriptionResponse
257
229
  from .success_response import SuccessResponse
258
230
  from .success_response_data_type_0 import SuccessResponseDataType0
259
231
  from .sync_connection_request import SyncConnectionRequest
@@ -268,7 +240,6 @@ from .table_ingest_result import TableIngestResult
268
240
  from .table_list_response import TableListResponse
269
241
  from .table_query_request import TableQueryRequest
270
242
  from .table_query_response import TableQueryResponse
271
- from .tier_upgrade_request import TierUpgradeRequest
272
243
  from .token_pricing import TokenPricing
273
244
  from .transaction_summary_response import TransactionSummaryResponse
274
245
  from .update_api_key_request import UpdateAPIKeyRequest
@@ -277,30 +248,16 @@ from .update_file_status_response_updatefilestatus import (
277
248
  )
278
249
  from .update_password_request import UpdatePasswordRequest
279
250
  from .update_user_request import UpdateUserRequest
280
- from .user_analytics_response import UserAnalyticsResponse
281
- from .user_analytics_response_api_usage import UserAnalyticsResponseApiUsage
282
- from .user_analytics_response_graph_usage import UserAnalyticsResponseGraphUsage
283
- from .user_analytics_response_limits import UserAnalyticsResponseLimits
284
- from .user_analytics_response_recent_activity_item import (
285
- UserAnalyticsResponseRecentActivityItem,
286
- )
287
- from .user_analytics_response_user_info import UserAnalyticsResponseUserInfo
288
- from .user_graph_summary import UserGraphSummary
251
+ from .upgrade_subscription_request import UpgradeSubscriptionRequest
289
252
  from .user_graphs_response import UserGraphsResponse
290
253
  from .user_limits_response import UserLimitsResponse
291
254
  from .user_response import UserResponse
292
- from .user_subscriptions_response import UserSubscriptionsResponse
293
255
  from .user_usage_response import UserUsageResponse
294
256
  from .user_usage_response_graphs import UserUsageResponseGraphs
295
- from .user_usage_summary_response import UserUsageSummaryResponse
296
- from .user_usage_summary_response_usage_vs_limits import (
297
- UserUsageSummaryResponseUsageVsLimits,
298
- )
299
257
  from .validation_error import ValidationError
300
258
 
301
259
  __all__ = (
302
260
  "AccountInfo",
303
- "AddOnCreditInfo",
304
261
  "AgentListResponse",
305
262
  "AgentListResponseAgents",
306
263
  "AgentListResponseAgentsAdditionalProperty",
@@ -352,12 +309,12 @@ __all__ = (
352
309
  "CreateConnectionRequest",
353
310
  "CreateConnectionRequestProvider",
354
311
  "CreateGraphRequest",
312
+ "CreateRepositorySubscriptionRequest",
355
313
  "CreateSubgraphRequest",
356
314
  "CreateSubgraphRequestMetadataType0",
357
315
  "CreditLimits",
358
- "CreditsSummaryResponse",
359
- "CreditsSummaryResponseCreditsByAddonType0Item",
360
316
  "CreditSummary",
317
+ "CreditSummaryOperationBreakdown",
361
318
  "CreditSummaryResponse",
362
319
  "CustomSchemaDefinition",
363
320
  "CustomSchemaDefinitionMetadata",
@@ -387,16 +344,9 @@ __all__ = (
387
344
  "FileUploadResponse",
388
345
  "ForgotPasswordRequest",
389
346
  "ForgotPasswordResponseForgotpassword",
390
- "GetAllCreditSummariesResponseGetallcreditsummaries",
391
- "GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits",
392
347
  "GetCurrentAuthUserResponseGetcurrentauthuser",
393
- "GetCurrentGraphBillResponseGetcurrentgraphbill",
394
348
  "GetFileInfoResponse",
395
- "GetGraphBillingHistoryResponseGetgraphbillinghistory",
396
- "GetGraphMonthlyBillResponseGetgraphmonthlybill",
397
- "GetGraphUsageDetailsResponseGetgraphusagedetails",
398
349
  "GetOperationStatusResponseGetoperationstatus",
399
- "GetSharedRepositoryLimitsResponseGetsharedrepositorylimits",
400
350
  "GetStorageUsageResponseGetstorageusage",
401
351
  "GraphInfo",
402
352
  "GraphLimitsResponse",
@@ -406,6 +356,7 @@ __all__ = (
406
356
  "GraphMetricsResponseHealthStatus",
407
357
  "GraphMetricsResponseNodeCounts",
408
358
  "GraphMetricsResponseRelationshipCounts",
359
+ "GraphSubscriptionResponse",
409
360
  "GraphSubscriptions",
410
361
  "GraphSubscriptionTier",
411
362
  "GraphTierBackup",
@@ -414,9 +365,7 @@ __all__ = (
414
365
  "GraphTierInstance",
415
366
  "GraphTierLimits",
416
367
  "GraphUsageResponse",
417
- "GraphUsageResponseQueryStatistics",
418
- "GraphUsageResponseRecentActivity",
419
- "GraphUsageResponseStorageUsage",
368
+ "GraphUsageResponseRecentEventsItem",
420
369
  "HealthStatus",
421
370
  "HealthStatusDetailsType0",
422
371
  "HTTPValidationError",
@@ -447,6 +396,9 @@ __all__ = (
447
396
  "PasswordCheckResponseCharacterTypes",
448
397
  "PasswordPolicyResponse",
449
398
  "PasswordPolicyResponsePolicy",
399
+ "PerformanceInsights",
400
+ "PerformanceInsightsOperationStats",
401
+ "PerformanceInsightsSlowQueriesItem",
450
402
  "PlaidConnectionConfig",
451
403
  "PlaidConnectionConfigAccountsType0Item",
452
404
  "PlaidConnectionConfigInstitutionType0",
@@ -454,11 +406,8 @@ __all__ = (
454
406
  "QuickBooksConnectionConfig",
455
407
  "RateLimits",
456
408
  "RegisterRequest",
457
- "RepositoryCreditsResponse",
458
409
  "RepositoryInfo",
459
- "RepositoryPlan",
460
410
  "RepositorySubscriptions",
461
- "RepositoryType",
462
411
  "ResendVerificationEmailResponseResendverificationemail",
463
412
  "ResetPasswordRequest",
464
413
  "ResetPasswordValidateResponse",
@@ -486,15 +435,12 @@ __all__ = (
486
435
  "StorageInfoOveragePricing",
487
436
  "StorageLimitResponse",
488
437
  "StorageLimits",
438
+ "StorageSummary",
489
439
  "SubgraphQuotaResponse",
490
440
  "SubgraphResponse",
491
441
  "SubgraphResponseMetadataType0",
492
442
  "SubgraphSummary",
493
443
  "SubgraphType",
494
- "SubscriptionInfo",
495
- "SubscriptionInfoMetadata",
496
- "SubscriptionRequest",
497
- "SubscriptionResponse",
498
444
  "SuccessResponse",
499
445
  "SuccessResponseDataType0",
500
446
  "SyncConnectionRequest",
@@ -505,27 +451,17 @@ __all__ = (
505
451
  "TableListResponse",
506
452
  "TableQueryRequest",
507
453
  "TableQueryResponse",
508
- "TierUpgradeRequest",
509
454
  "TokenPricing",
510
455
  "TransactionSummaryResponse",
511
456
  "UpdateAPIKeyRequest",
512
457
  "UpdateFileStatusResponseUpdatefilestatus",
513
458
  "UpdatePasswordRequest",
514
459
  "UpdateUserRequest",
515
- "UserAnalyticsResponse",
516
- "UserAnalyticsResponseApiUsage",
517
- "UserAnalyticsResponseGraphUsage",
518
- "UserAnalyticsResponseLimits",
519
- "UserAnalyticsResponseRecentActivityItem",
520
- "UserAnalyticsResponseUserInfo",
460
+ "UpgradeSubscriptionRequest",
521
461
  "UserGraphsResponse",
522
- "UserGraphSummary",
523
462
  "UserLimitsResponse",
524
463
  "UserResponse",
525
- "UserSubscriptionsResponse",
526
464
  "UserUsageResponse",
527
465
  "UserUsageResponseGraphs",
528
- "UserUsageSummaryResponse",
529
- "UserUsageSummaryResponseUsageVsLimits",
530
466
  "ValidationError",
531
467
  )
@@ -4,28 +4,44 @@ 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="CreditsSummaryResponseCreditsByAddonType0Item")
7
+ T = TypeVar("T", bound="CreateRepositorySubscriptionRequest")
8
8
 
9
9
 
10
10
  @_attrs_define
11
- class CreditsSummaryResponseCreditsByAddonType0Item:
12
- """ """
11
+ class CreateRepositorySubscriptionRequest:
12
+ """Request to create a repository subscription.
13
13
 
14
+ Attributes:
15
+ plan_name (str): Plan name for the repository subscription
16
+ """
17
+
18
+ plan_name: str
14
19
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
20
 
16
21
  def to_dict(self) -> dict[str, Any]:
22
+ plan_name = self.plan_name
23
+
17
24
  field_dict: dict[str, Any] = {}
18
25
  field_dict.update(self.additional_properties)
26
+ field_dict.update(
27
+ {
28
+ "plan_name": plan_name,
29
+ }
30
+ )
19
31
 
20
32
  return field_dict
21
33
 
22
34
  @classmethod
23
35
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
36
  d = dict(src_dict)
25
- credits_summary_response_credits_by_addon_type_0_item = cls()
37
+ plan_name = d.pop("plan_name")
38
+
39
+ create_repository_subscription_request = cls(
40
+ plan_name=plan_name,
41
+ )
26
42
 
27
- credits_summary_response_credits_by_addon_type_0_item.additional_properties = d
28
- return credits_summary_response_credits_by_addon_type_0_item
43
+ create_repository_subscription_request.additional_properties = d
44
+ return create_repository_subscription_request
29
45
 
30
46
  @property
31
47
  def additional_keys(self) -> list[str]:
@@ -1,137 +1,103 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
2
+ from typing import TYPE_CHECKING, Any, TypeVar
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
 
7
- from ..types import UNSET, Unset
7
+ if TYPE_CHECKING:
8
+ from ..models.credit_summary_operation_breakdown import (
9
+ CreditSummaryOperationBreakdown,
10
+ )
11
+
8
12
 
9
13
  T = TypeVar("T", bound="CreditSummary")
10
14
 
11
15
 
12
16
  @_attrs_define
13
17
  class CreditSummary:
14
- """Credit balance summary.
18
+ """Credit consumption summary.
15
19
 
16
20
  Attributes:
17
- current_balance (float): Current credit balance
18
- monthly_allocation (float): Monthly credit allocation
19
- consumed_this_month (float): Credits consumed this month
20
- usage_percentage (float): Usage percentage of monthly allocation
21
- rollover_credits (float): Credits rolled over from previous month
22
- allows_rollover (bool): Whether rollover is allowed
23
- is_active (bool): Whether credit pool is active
24
- last_allocation_date (Union[None, Unset, str]): Last allocation date (ISO format)
25
- next_allocation_date (Union[None, Unset, str]): Next allocation date (ISO format)
21
+ graph_tier (str): Subscription tier
22
+ total_credits_consumed (float): Total credits consumed
23
+ total_base_cost (float): Total base cost before multipliers
24
+ operation_breakdown (CreditSummaryOperationBreakdown): Credit usage by operation type
25
+ cached_operations (int): Number of cached operations
26
+ billable_operations (int): Number of billable operations
27
+ transaction_count (int): Total transaction count
26
28
  """
27
29
 
28
- current_balance: float
29
- monthly_allocation: float
30
- consumed_this_month: float
31
- usage_percentage: float
32
- rollover_credits: float
33
- allows_rollover: bool
34
- is_active: bool
35
- last_allocation_date: Union[None, Unset, str] = UNSET
36
- next_allocation_date: Union[None, Unset, str] = UNSET
30
+ graph_tier: str
31
+ total_credits_consumed: float
32
+ total_base_cost: float
33
+ operation_breakdown: "CreditSummaryOperationBreakdown"
34
+ cached_operations: int
35
+ billable_operations: int
36
+ transaction_count: int
37
37
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
38
38
 
39
39
  def to_dict(self) -> dict[str, Any]:
40
- current_balance = self.current_balance
41
-
42
- monthly_allocation = self.monthly_allocation
43
-
44
- consumed_this_month = self.consumed_this_month
40
+ graph_tier = self.graph_tier
45
41
 
46
- usage_percentage = self.usage_percentage
42
+ total_credits_consumed = self.total_credits_consumed
47
43
 
48
- rollover_credits = self.rollover_credits
44
+ total_base_cost = self.total_base_cost
49
45
 
50
- allows_rollover = self.allows_rollover
46
+ operation_breakdown = self.operation_breakdown.to_dict()
51
47
 
52
- is_active = self.is_active
48
+ cached_operations = self.cached_operations
53
49
 
54
- last_allocation_date: Union[None, Unset, str]
55
- if isinstance(self.last_allocation_date, Unset):
56
- last_allocation_date = UNSET
57
- else:
58
- last_allocation_date = self.last_allocation_date
50
+ billable_operations = self.billable_operations
59
51
 
60
- next_allocation_date: Union[None, Unset, str]
61
- if isinstance(self.next_allocation_date, Unset):
62
- next_allocation_date = UNSET
63
- else:
64
- next_allocation_date = self.next_allocation_date
52
+ transaction_count = self.transaction_count
65
53
 
66
54
  field_dict: dict[str, Any] = {}
67
55
  field_dict.update(self.additional_properties)
68
56
  field_dict.update(
69
57
  {
70
- "current_balance": current_balance,
71
- "monthly_allocation": monthly_allocation,
72
- "consumed_this_month": consumed_this_month,
73
- "usage_percentage": usage_percentage,
74
- "rollover_credits": rollover_credits,
75
- "allows_rollover": allows_rollover,
76
- "is_active": is_active,
58
+ "graph_tier": graph_tier,
59
+ "total_credits_consumed": total_credits_consumed,
60
+ "total_base_cost": total_base_cost,
61
+ "operation_breakdown": operation_breakdown,
62
+ "cached_operations": cached_operations,
63
+ "billable_operations": billable_operations,
64
+ "transaction_count": transaction_count,
77
65
  }
78
66
  )
79
- if last_allocation_date is not UNSET:
80
- field_dict["last_allocation_date"] = last_allocation_date
81
- if next_allocation_date is not UNSET:
82
- field_dict["next_allocation_date"] = next_allocation_date
83
67
 
84
68
  return field_dict
85
69
 
86
70
  @classmethod
87
71
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
88
- d = dict(src_dict)
89
- current_balance = d.pop("current_balance")
90
-
91
- monthly_allocation = d.pop("monthly_allocation")
92
-
93
- consumed_this_month = d.pop("consumed_this_month")
94
-
95
- usage_percentage = d.pop("usage_percentage")
96
-
97
- rollover_credits = d.pop("rollover_credits")
72
+ from ..models.credit_summary_operation_breakdown import (
73
+ CreditSummaryOperationBreakdown,
74
+ )
98
75
 
99
- allows_rollover = d.pop("allows_rollover")
76
+ d = dict(src_dict)
77
+ graph_tier = d.pop("graph_tier")
100
78
 
101
- is_active = d.pop("is_active")
79
+ total_credits_consumed = d.pop("total_credits_consumed")
102
80
 
103
- def _parse_last_allocation_date(data: object) -> Union[None, Unset, str]:
104
- if data is None:
105
- return data
106
- if isinstance(data, Unset):
107
- return data
108
- return cast(Union[None, Unset, str], data)
81
+ total_base_cost = d.pop("total_base_cost")
109
82
 
110
- last_allocation_date = _parse_last_allocation_date(
111
- d.pop("last_allocation_date", UNSET)
83
+ operation_breakdown = CreditSummaryOperationBreakdown.from_dict(
84
+ d.pop("operation_breakdown")
112
85
  )
113
86
 
114
- def _parse_next_allocation_date(data: object) -> Union[None, Unset, str]:
115
- if data is None:
116
- return data
117
- if isinstance(data, Unset):
118
- return data
119
- return cast(Union[None, Unset, str], data)
87
+ cached_operations = d.pop("cached_operations")
120
88
 
121
- next_allocation_date = _parse_next_allocation_date(
122
- d.pop("next_allocation_date", UNSET)
123
- )
89
+ billable_operations = d.pop("billable_operations")
90
+
91
+ transaction_count = d.pop("transaction_count")
124
92
 
125
93
  credit_summary = cls(
126
- current_balance=current_balance,
127
- monthly_allocation=monthly_allocation,
128
- consumed_this_month=consumed_this_month,
129
- usage_percentage=usage_percentage,
130
- rollover_credits=rollover_credits,
131
- allows_rollover=allows_rollover,
132
- is_active=is_active,
133
- last_allocation_date=last_allocation_date,
134
- next_allocation_date=next_allocation_date,
94
+ graph_tier=graph_tier,
95
+ total_credits_consumed=total_credits_consumed,
96
+ total_base_cost=total_base_cost,
97
+ operation_breakdown=operation_breakdown,
98
+ cached_operations=cached_operations,
99
+ billable_operations=billable_operations,
100
+ transaction_count=transaction_count,
135
101
  )
136
102
 
137
103
  credit_summary.additional_properties = d
@@ -4,12 +4,12 @@ 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="GraphUsageResponseStorageUsage")
7
+ T = TypeVar("T", bound="CreditSummaryOperationBreakdown")
8
8
 
9
9
 
10
10
  @_attrs_define
11
- class GraphUsageResponseStorageUsage:
12
- """Storage usage information"""
11
+ class CreditSummaryOperationBreakdown:
12
+ """Credit usage by operation type"""
13
13
 
14
14
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
15
 
@@ -22,10 +22,10 @@ class GraphUsageResponseStorageUsage:
22
22
  @classmethod
23
23
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
24
  d = dict(src_dict)
25
- graph_usage_response_storage_usage = cls()
25
+ credit_summary_operation_breakdown = cls()
26
26
 
27
- graph_usage_response_storage_usage.additional_properties = d
28
- return graph_usage_response_storage_usage
27
+ credit_summary_operation_breakdown.additional_properties = d
28
+ return credit_summary_operation_breakdown
29
29
 
30
30
  @property
31
31
  def additional_keys(self) -> list[str]:
@@ -1,9 +1,11 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar
2
+ from typing import Any, TypeVar, Union, cast
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
 
7
+ from ..types import UNSET, Unset
8
+
7
9
  T = TypeVar("T", bound="GraphInfo")
8
10
 
9
11
 
@@ -14,9 +16,11 @@ class GraphInfo:
14
16
  Attributes:
15
17
  graph_id (str): Graph database identifier
16
18
  graph_name (str): Display name for the graph
17
- role (str): User's role in this graph
19
+ role (str): User's role/access level
18
20
  is_selected (bool): Whether this is the currently selected graph
19
21
  created_at (str): Creation timestamp
22
+ is_repository (Union[Unset, bool]): Whether this is a shared repository (vs user graph) Default: False.
23
+ repository_type (Union[None, Unset, str]): Repository type if isRepository=true
20
24
  """
21
25
 
22
26
  graph_id: str
@@ -24,6 +28,8 @@ class GraphInfo:
24
28
  role: str
25
29
  is_selected: bool
26
30
  created_at: str
31
+ is_repository: Union[Unset, bool] = False
32
+ repository_type: Union[None, Unset, str] = UNSET
27
33
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
34
 
29
35
  def to_dict(self) -> dict[str, Any]:
@@ -37,6 +43,14 @@ class GraphInfo:
37
43
 
38
44
  created_at = self.created_at
39
45
 
46
+ is_repository = self.is_repository
47
+
48
+ repository_type: Union[None, Unset, str]
49
+ if isinstance(self.repository_type, Unset):
50
+ repository_type = UNSET
51
+ else:
52
+ repository_type = self.repository_type
53
+
40
54
  field_dict: dict[str, Any] = {}
41
55
  field_dict.update(self.additional_properties)
42
56
  field_dict.update(
@@ -48,6 +62,10 @@ class GraphInfo:
48
62
  "createdAt": created_at,
49
63
  }
50
64
  )
65
+ if is_repository is not UNSET:
66
+ field_dict["isRepository"] = is_repository
67
+ if repository_type is not UNSET:
68
+ field_dict["repositoryType"] = repository_type
51
69
 
52
70
  return field_dict
53
71
 
@@ -64,12 +82,25 @@ class GraphInfo:
64
82
 
65
83
  created_at = d.pop("createdAt")
66
84
 
85
+ is_repository = d.pop("isRepository", UNSET)
86
+
87
+ def _parse_repository_type(data: object) -> Union[None, Unset, str]:
88
+ if data is None:
89
+ return data
90
+ if isinstance(data, Unset):
91
+ return data
92
+ return cast(Union[None, Unset, str], data)
93
+
94
+ repository_type = _parse_repository_type(d.pop("repositoryType", UNSET))
95
+
67
96
  graph_info = cls(
68
97
  graph_id=graph_id,
69
98
  graph_name=graph_name,
70
99
  role=role,
71
100
  is_selected=is_selected,
72
101
  created_at=created_at,
102
+ is_repository=is_repository,
103
+ repository_type=repository_type,
73
104
  )
74
105
 
75
106
  graph_info.additional_properties = d