robosystems-client 0.2.9__py3-none-any.whl → 0.2.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.
Files changed (86) hide show
  1. robosystems_client/api/{user_subscriptions/upgrade_shared_repository_subscription.py → billing/cancel_subscription.py} +32 -60
  2. robosystems_client/api/billing/create_checkout_session.py +230 -0
  3. robosystems_client/api/{user_analytics/get_user_usage_overview.py → billing/get_billing_customer.py} +29 -21
  4. robosystems_client/api/billing/get_checkout_status.py +221 -0
  5. robosystems_client/api/{user_subscriptions/get_repository_credits.py → billing/get_subscription.py} +35 -43
  6. robosystems_client/api/{user_subscriptions/get_shared_repository_credits.py → billing/get_upcoming_invoice.py} +42 -28
  7. robosystems_client/api/{user_subscriptions/get_user_shared_subscriptions.py → billing/list_invoices.py} +44 -44
  8. robosystems_client/api/{user_limits/get_all_shared_repository_limits.py → billing/list_subscriptions.py} +38 -27
  9. robosystems_client/api/{user_subscriptions/subscribe_to_shared_repository.py → billing/update_payment_method.py} +42 -46
  10. robosystems_client/api/{user_subscriptions/cancel_shared_repository_subscription.py → subscriptions/cancel_subscription.py} +41 -25
  11. robosystems_client/api/subscriptions/create_repository_subscription.py +217 -0
  12. robosystems_client/api/subscriptions/get_graph_subscription.py +197 -0
  13. robosystems_client/api/subscriptions/upgrade_subscription.py +203 -0
  14. robosystems_client/api/usage/get_graph_usage_analytics.py +377 -0
  15. robosystems_client/api/{user_limits/get_user_usage.py → user/get_user_limits.py} +13 -9
  16. robosystems_client/models/__init__.py +42 -82
  17. robosystems_client/models/billing_customer.py +128 -0
  18. robosystems_client/models/checkout_response.py +87 -0
  19. robosystems_client/models/checkout_status_response.py +130 -0
  20. robosystems_client/models/create_checkout_request.py +88 -0
  21. robosystems_client/models/{graph_usage_response_query_statistics.py → create_checkout_request_resource_config.py} +6 -6
  22. robosystems_client/models/{credits_summary_response_credits_by_addon_type_0_item.py → create_repository_subscription_request.py} +22 -6
  23. robosystems_client/models/credit_summary.py +55 -89
  24. robosystems_client/models/{graph_usage_response_storage_usage.py → credit_summary_operation_breakdown.py} +6 -6
  25. robosystems_client/models/graph_subscription_response.py +200 -0
  26. robosystems_client/models/graph_usage_response.py +136 -39
  27. robosystems_client/models/{user_analytics_response_limits.py → graph_usage_response_recent_events_item.py} +6 -6
  28. robosystems_client/models/invoice.py +244 -0
  29. robosystems_client/models/invoice_line_item.py +118 -0
  30. robosystems_client/models/invoices_response.py +90 -0
  31. robosystems_client/models/payment_method.py +158 -0
  32. robosystems_client/models/performance_insights.py +120 -0
  33. robosystems_client/models/{graph_usage_response_recent_activity.py → performance_insights_operation_stats.py} +6 -6
  34. robosystems_client/models/{user_analytics_response_api_usage.py → performance_insights_slow_queries_item.py} +6 -6
  35. robosystems_client/models/storage_summary.py +100 -0
  36. robosystems_client/models/upcoming_invoice.py +128 -0
  37. robosystems_client/models/{get_graph_usage_details_response_getgraphusagedetails.py → update_payment_method_request.py} +22 -6
  38. robosystems_client/models/{subscription_response.py → update_payment_method_response.py} +14 -14
  39. robosystems_client/models/{tier_upgrade_request.py → upgrade_subscription_request.py} +12 -14
  40. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.11.dist-info}/METADATA +1 -1
  41. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.11.dist-info}/RECORD +53 -68
  42. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -289
  43. robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -253
  44. robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -298
  45. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -284
  46. robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -320
  47. robosystems_client/api/user/get_all_credit_summaries.py +0 -169
  48. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -188
  49. robosystems_client/api/user_limits/__init__.py +0 -1
  50. robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -213
  51. robosystems_client/api/user_limits/get_user_limits.py +0 -139
  52. robosystems_client/api/user_subscriptions/__init__.py +0 -1
  53. robosystems_client/models/add_on_credit_info.py +0 -119
  54. robosystems_client/models/credits_summary_response.py +0 -148
  55. robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +0 -44
  56. robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +0 -46
  57. robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +0 -44
  58. robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +0 -44
  59. robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +0 -44
  60. robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +0 -44
  61. robosystems_client/models/repository_credits_response.py +0 -128
  62. robosystems_client/models/repository_plan.py +0 -10
  63. robosystems_client/models/repository_type.py +0 -10
  64. robosystems_client/models/subscription_info.py +0 -152
  65. robosystems_client/models/subscription_info_metadata.py +0 -44
  66. robosystems_client/models/subscription_request.py +0 -80
  67. robosystems_client/models/user_analytics_response.py +0 -132
  68. robosystems_client/models/user_analytics_response_graph_usage.py +0 -44
  69. robosystems_client/models/user_analytics_response_recent_activity_item.py +0 -44
  70. robosystems_client/models/user_analytics_response_user_info.py +0 -44
  71. robosystems_client/models/user_graph_summary.py +0 -134
  72. robosystems_client/models/user_subscriptions_response.py +0 -90
  73. robosystems_client/models/user_usage_summary_response.py +0 -130
  74. robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +0 -44
  75. /robosystems_client/api/{graph_analytics → billing}/__init__.py +0 -0
  76. /robosystems_client/api/{graph_billing → credits_}/__init__.py +0 -0
  77. /robosystems_client/api/{graph_credits → credits_}/check_credit_balance.py +0 -0
  78. /robosystems_client/api/{graph_credits → credits_}/check_storage_limits.py +0 -0
  79. /robosystems_client/api/{graph_credits → credits_}/get_credit_summary.py +0 -0
  80. /robosystems_client/api/{graph_credits → credits_}/get_storage_usage.py +0 -0
  81. /robosystems_client/api/{graph_credits → credits_}/list_credit_transactions.py +0 -0
  82. /robosystems_client/api/{graph_credits → subscriptions}/__init__.py +0 -0
  83. /robosystems_client/api/{user_analytics → usage}/__init__.py +0 -0
  84. /robosystems_client/api/{graph_analytics → usage}/get_graph_metrics.py +0 -0
  85. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.11.dist-info}/WHEEL +0 -0
  86. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.11.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 (
@@ -39,6 +38,7 @@ from .backup_stats_response import BackupStatsResponse
39
38
  from .backup_stats_response_backup_formats import BackupStatsResponseBackupFormats
40
39
  from .batch_agent_request import BatchAgentRequest
41
40
  from .batch_agent_response import BatchAgentResponse
41
+ from .billing_customer import BillingCustomer
42
42
  from .bulk_ingest_request import BulkIngestRequest
43
43
  from .bulk_ingest_response import BulkIngestResponse
44
44
  from .cancel_operation_response_canceloperation import (
@@ -48,6 +48,8 @@ from .cancellation_response import CancellationResponse
48
48
  from .check_credit_balance_response_checkcreditbalance import (
49
49
  CheckCreditBalanceResponseCheckcreditbalance,
50
50
  )
51
+ from .checkout_response import CheckoutResponse
52
+ from .checkout_status_response import CheckoutStatusResponse
51
53
  from .connection_options_response import ConnectionOptionsResponse
52
54
  from .connection_provider_info import ConnectionProviderInfo
53
55
  from .connection_provider_info_auth_type import ConnectionProviderInfoAuthType
@@ -58,18 +60,18 @@ from .connection_response_provider import ConnectionResponseProvider
58
60
  from .copy_operation_limits import CopyOperationLimits
59
61
  from .create_api_key_request import CreateAPIKeyRequest
60
62
  from .create_api_key_response import CreateAPIKeyResponse
63
+ from .create_checkout_request import CreateCheckoutRequest
64
+ from .create_checkout_request_resource_config import CreateCheckoutRequestResourceConfig
61
65
  from .create_connection_request import CreateConnectionRequest
62
66
  from .create_connection_request_provider import CreateConnectionRequestProvider
63
67
  from .create_graph_request import CreateGraphRequest
68
+ from .create_repository_subscription_request import CreateRepositorySubscriptionRequest
64
69
  from .create_subgraph_request import CreateSubgraphRequest
65
70
  from .create_subgraph_request_metadata_type_0 import CreateSubgraphRequestMetadataType0
66
71
  from .credit_limits import CreditLimits
67
72
  from .credit_summary import CreditSummary
73
+ from .credit_summary_operation_breakdown import CreditSummaryOperationBreakdown
68
74
  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
75
  from .custom_schema_definition import CustomSchemaDefinition
74
76
  from .custom_schema_definition_metadata import CustomSchemaDefinitionMetadata
75
77
  from .custom_schema_definition_nodes_item import CustomSchemaDefinitionNodesItem
@@ -108,34 +110,13 @@ from .forgot_password_request import ForgotPasswordRequest
108
110
  from .forgot_password_response_forgotpassword import (
109
111
  ForgotPasswordResponseForgotpassword,
110
112
  )
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
113
  from .get_current_auth_user_response_getcurrentauthuser import (
118
114
  GetCurrentAuthUserResponseGetcurrentauthuser,
119
115
  )
120
- from .get_current_graph_bill_response_getcurrentgraphbill import (
121
- GetCurrentGraphBillResponseGetcurrentgraphbill,
122
- )
123
116
  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
117
  from .get_operation_status_response_getoperationstatus import (
134
118
  GetOperationStatusResponseGetoperationstatus,
135
119
  )
136
- from .get_shared_repository_limits_response_getsharedrepositorylimits import (
137
- GetSharedRepositoryLimitsResponseGetsharedrepositorylimits,
138
- )
139
120
  from .get_storage_usage_response_getstorageusage import (
140
121
  GetStorageUsageResponseGetstorageusage,
141
122
  )
@@ -149,6 +130,7 @@ from .graph_metrics_response_node_counts import GraphMetricsResponseNodeCounts
149
130
  from .graph_metrics_response_relationship_counts import (
150
131
  GraphMetricsResponseRelationshipCounts,
151
132
  )
133
+ from .graph_subscription_response import GraphSubscriptionResponse
152
134
  from .graph_subscription_tier import GraphSubscriptionTier
153
135
  from .graph_subscriptions import GraphSubscriptions
154
136
  from .graph_tier_backup import GraphTierBackup
@@ -157,13 +139,14 @@ from .graph_tier_info import GraphTierInfo
157
139
  from .graph_tier_instance import GraphTierInstance
158
140
  from .graph_tier_limits import GraphTierLimits
159
141
  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
142
+ from .graph_usage_response_recent_events_item import GraphUsageResponseRecentEventsItem
163
143
  from .health_status import HealthStatus
164
144
  from .health_status_details_type_0 import HealthStatusDetailsType0
165
145
  from .http_validation_error import HTTPValidationError
166
146
  from .initial_entity_data import InitialEntityData
147
+ from .invoice import Invoice
148
+ from .invoice_line_item import InvoiceLineItem
149
+ from .invoices_response import InvoicesResponse
167
150
  from .link_token_request import LinkTokenRequest
168
151
  from .link_token_request_options_type_0 import LinkTokenRequestOptionsType0
169
152
  from .link_token_request_provider_type_0 import LinkTokenRequestProviderType0
@@ -194,6 +177,10 @@ from .password_check_response import PasswordCheckResponse
194
177
  from .password_check_response_character_types import PasswordCheckResponseCharacterTypes
195
178
  from .password_policy_response import PasswordPolicyResponse
196
179
  from .password_policy_response_policy import PasswordPolicyResponsePolicy
180
+ from .payment_method import PaymentMethod
181
+ from .performance_insights import PerformanceInsights
182
+ from .performance_insights_operation_stats import PerformanceInsightsOperationStats
183
+ from .performance_insights_slow_queries_item import PerformanceInsightsSlowQueriesItem
197
184
  from .plaid_connection_config import PlaidConnectionConfig
198
185
  from .plaid_connection_config_accounts_type_0_item import (
199
186
  PlaidConnectionConfigAccountsType0Item,
@@ -205,11 +192,8 @@ from .query_limits import QueryLimits
205
192
  from .quick_books_connection_config import QuickBooksConnectionConfig
206
193
  from .rate_limits import RateLimits
207
194
  from .register_request import RegisterRequest
208
- from .repository_credits_response import RepositoryCreditsResponse
209
195
  from .repository_info import RepositoryInfo
210
- from .repository_plan import RepositoryPlan
211
196
  from .repository_subscriptions import RepositorySubscriptions
212
- from .repository_type import RepositoryType
213
197
  from .resend_verification_email_response_resendverificationemail import (
214
198
  ResendVerificationEmailResponseResendverificationemail,
215
199
  )
@@ -245,15 +229,12 @@ from .storage_info_included_per_tier import StorageInfoIncludedPerTier
245
229
  from .storage_info_overage_pricing import StorageInfoOveragePricing
246
230
  from .storage_limit_response import StorageLimitResponse
247
231
  from .storage_limits import StorageLimits
232
+ from .storage_summary import StorageSummary
248
233
  from .subgraph_quota_response import SubgraphQuotaResponse
249
234
  from .subgraph_response import SubgraphResponse
250
235
  from .subgraph_response_metadata_type_0 import SubgraphResponseMetadataType0
251
236
  from .subgraph_summary import SubgraphSummary
252
237
  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
238
  from .success_response import SuccessResponse
258
239
  from .success_response_data_type_0 import SuccessResponseDataType0
259
240
  from .sync_connection_request import SyncConnectionRequest
@@ -268,39 +249,27 @@ from .table_ingest_result import TableIngestResult
268
249
  from .table_list_response import TableListResponse
269
250
  from .table_query_request import TableQueryRequest
270
251
  from .table_query_response import TableQueryResponse
271
- from .tier_upgrade_request import TierUpgradeRequest
272
252
  from .token_pricing import TokenPricing
273
253
  from .transaction_summary_response import TransactionSummaryResponse
254
+ from .upcoming_invoice import UpcomingInvoice
274
255
  from .update_api_key_request import UpdateAPIKeyRequest
275
256
  from .update_file_status_response_updatefilestatus import (
276
257
  UpdateFileStatusResponseUpdatefilestatus,
277
258
  )
278
259
  from .update_password_request import UpdatePasswordRequest
260
+ from .update_payment_method_request import UpdatePaymentMethodRequest
261
+ from .update_payment_method_response import UpdatePaymentMethodResponse
279
262
  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
263
+ from .upgrade_subscription_request import UpgradeSubscriptionRequest
289
264
  from .user_graphs_response import UserGraphsResponse
290
265
  from .user_limits_response import UserLimitsResponse
291
266
  from .user_response import UserResponse
292
- from .user_subscriptions_response import UserSubscriptionsResponse
293
267
  from .user_usage_response import UserUsageResponse
294
268
  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
269
  from .validation_error import ValidationError
300
270
 
301
271
  __all__ = (
302
272
  "AccountInfo",
303
- "AddOnCreditInfo",
304
273
  "AgentListResponse",
305
274
  "AgentListResponseAgents",
306
275
  "AgentListResponseAgentsAdditionalProperty",
@@ -334,11 +303,14 @@ __all__ = (
334
303
  "BackupStatsResponseBackupFormats",
335
304
  "BatchAgentRequest",
336
305
  "BatchAgentResponse",
306
+ "BillingCustomer",
337
307
  "BulkIngestRequest",
338
308
  "BulkIngestResponse",
339
309
  "CancellationResponse",
340
310
  "CancelOperationResponseCanceloperation",
341
311
  "CheckCreditBalanceResponseCheckcreditbalance",
312
+ "CheckoutResponse",
313
+ "CheckoutStatusResponse",
342
314
  "ConnectionOptionsResponse",
343
315
  "ConnectionProviderInfo",
344
316
  "ConnectionProviderInfoAuthType",
@@ -349,15 +321,17 @@ __all__ = (
349
321
  "CopyOperationLimits",
350
322
  "CreateAPIKeyRequest",
351
323
  "CreateAPIKeyResponse",
324
+ "CreateCheckoutRequest",
325
+ "CreateCheckoutRequestResourceConfig",
352
326
  "CreateConnectionRequest",
353
327
  "CreateConnectionRequestProvider",
354
328
  "CreateGraphRequest",
329
+ "CreateRepositorySubscriptionRequest",
355
330
  "CreateSubgraphRequest",
356
331
  "CreateSubgraphRequestMetadataType0",
357
332
  "CreditLimits",
358
- "CreditsSummaryResponse",
359
- "CreditsSummaryResponseCreditsByAddonType0Item",
360
333
  "CreditSummary",
334
+ "CreditSummaryOperationBreakdown",
361
335
  "CreditSummaryResponse",
362
336
  "CustomSchemaDefinition",
363
337
  "CustomSchemaDefinitionMetadata",
@@ -387,16 +361,9 @@ __all__ = (
387
361
  "FileUploadResponse",
388
362
  "ForgotPasswordRequest",
389
363
  "ForgotPasswordResponseForgotpassword",
390
- "GetAllCreditSummariesResponseGetallcreditsummaries",
391
- "GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits",
392
364
  "GetCurrentAuthUserResponseGetcurrentauthuser",
393
- "GetCurrentGraphBillResponseGetcurrentgraphbill",
394
365
  "GetFileInfoResponse",
395
- "GetGraphBillingHistoryResponseGetgraphbillinghistory",
396
- "GetGraphMonthlyBillResponseGetgraphmonthlybill",
397
- "GetGraphUsageDetailsResponseGetgraphusagedetails",
398
366
  "GetOperationStatusResponseGetoperationstatus",
399
- "GetSharedRepositoryLimitsResponseGetsharedrepositorylimits",
400
367
  "GetStorageUsageResponseGetstorageusage",
401
368
  "GraphInfo",
402
369
  "GraphLimitsResponse",
@@ -406,6 +373,7 @@ __all__ = (
406
373
  "GraphMetricsResponseHealthStatus",
407
374
  "GraphMetricsResponseNodeCounts",
408
375
  "GraphMetricsResponseRelationshipCounts",
376
+ "GraphSubscriptionResponse",
409
377
  "GraphSubscriptions",
410
378
  "GraphSubscriptionTier",
411
379
  "GraphTierBackup",
@@ -414,13 +382,14 @@ __all__ = (
414
382
  "GraphTierInstance",
415
383
  "GraphTierLimits",
416
384
  "GraphUsageResponse",
417
- "GraphUsageResponseQueryStatistics",
418
- "GraphUsageResponseRecentActivity",
419
- "GraphUsageResponseStorageUsage",
385
+ "GraphUsageResponseRecentEventsItem",
420
386
  "HealthStatus",
421
387
  "HealthStatusDetailsType0",
422
388
  "HTTPValidationError",
423
389
  "InitialEntityData",
390
+ "Invoice",
391
+ "InvoiceLineItem",
392
+ "InvoicesResponse",
424
393
  "LinkTokenRequest",
425
394
  "LinkTokenRequestOptionsType0",
426
395
  "LinkTokenRequestProviderType0",
@@ -447,6 +416,10 @@ __all__ = (
447
416
  "PasswordCheckResponseCharacterTypes",
448
417
  "PasswordPolicyResponse",
449
418
  "PasswordPolicyResponsePolicy",
419
+ "PaymentMethod",
420
+ "PerformanceInsights",
421
+ "PerformanceInsightsOperationStats",
422
+ "PerformanceInsightsSlowQueriesItem",
450
423
  "PlaidConnectionConfig",
451
424
  "PlaidConnectionConfigAccountsType0Item",
452
425
  "PlaidConnectionConfigInstitutionType0",
@@ -454,11 +427,8 @@ __all__ = (
454
427
  "QuickBooksConnectionConfig",
455
428
  "RateLimits",
456
429
  "RegisterRequest",
457
- "RepositoryCreditsResponse",
458
430
  "RepositoryInfo",
459
- "RepositoryPlan",
460
431
  "RepositorySubscriptions",
461
- "RepositoryType",
462
432
  "ResendVerificationEmailResponseResendverificationemail",
463
433
  "ResetPasswordRequest",
464
434
  "ResetPasswordValidateResponse",
@@ -486,15 +456,12 @@ __all__ = (
486
456
  "StorageInfoOveragePricing",
487
457
  "StorageLimitResponse",
488
458
  "StorageLimits",
459
+ "StorageSummary",
489
460
  "SubgraphQuotaResponse",
490
461
  "SubgraphResponse",
491
462
  "SubgraphResponseMetadataType0",
492
463
  "SubgraphSummary",
493
464
  "SubgraphType",
494
- "SubscriptionInfo",
495
- "SubscriptionInfoMetadata",
496
- "SubscriptionRequest",
497
- "SubscriptionResponse",
498
465
  "SuccessResponse",
499
466
  "SuccessResponseDataType0",
500
467
  "SyncConnectionRequest",
@@ -505,27 +472,20 @@ __all__ = (
505
472
  "TableListResponse",
506
473
  "TableQueryRequest",
507
474
  "TableQueryResponse",
508
- "TierUpgradeRequest",
509
475
  "TokenPricing",
510
476
  "TransactionSummaryResponse",
477
+ "UpcomingInvoice",
511
478
  "UpdateAPIKeyRequest",
512
479
  "UpdateFileStatusResponseUpdatefilestatus",
513
480
  "UpdatePasswordRequest",
481
+ "UpdatePaymentMethodRequest",
482
+ "UpdatePaymentMethodResponse",
514
483
  "UpdateUserRequest",
515
- "UserAnalyticsResponse",
516
- "UserAnalyticsResponseApiUsage",
517
- "UserAnalyticsResponseGraphUsage",
518
- "UserAnalyticsResponseLimits",
519
- "UserAnalyticsResponseRecentActivityItem",
520
- "UserAnalyticsResponseUserInfo",
484
+ "UpgradeSubscriptionRequest",
521
485
  "UserGraphsResponse",
522
- "UserGraphSummary",
523
486
  "UserLimitsResponse",
524
487
  "UserResponse",
525
- "UserSubscriptionsResponse",
526
488
  "UserUsageResponse",
527
489
  "UserUsageResponseGraphs",
528
- "UserUsageSummaryResponse",
529
- "UserUsageSummaryResponseUsageVsLimits",
530
490
  "ValidationError",
531
491
  )
@@ -0,0 +1,128 @@
1
+ from collections.abc import Mapping
2
+ from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ if TYPE_CHECKING:
10
+ from ..models.payment_method import PaymentMethod
11
+
12
+
13
+ T = TypeVar("T", bound="BillingCustomer")
14
+
15
+
16
+ @_attrs_define
17
+ class BillingCustomer:
18
+ """Billing customer information.
19
+
20
+ Attributes:
21
+ user_id (str): User ID
22
+ has_payment_method (bool): Whether customer has a payment method on file
23
+ invoice_billing_enabled (bool): Whether invoice billing is enabled (enterprise customers)
24
+ payment_methods (list['PaymentMethod']): List of payment methods on file
25
+ created_at (str): Customer creation timestamp (ISO format)
26
+ stripe_customer_id (Union[None, Unset, str]): Stripe customer ID if applicable
27
+ """
28
+
29
+ user_id: str
30
+ has_payment_method: bool
31
+ invoice_billing_enabled: bool
32
+ payment_methods: list["PaymentMethod"]
33
+ created_at: str
34
+ stripe_customer_id: Union[None, Unset, str] = UNSET
35
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
36
+
37
+ def to_dict(self) -> dict[str, Any]:
38
+ user_id = self.user_id
39
+
40
+ has_payment_method = self.has_payment_method
41
+
42
+ invoice_billing_enabled = self.invoice_billing_enabled
43
+
44
+ payment_methods = []
45
+ for payment_methods_item_data in self.payment_methods:
46
+ payment_methods_item = payment_methods_item_data.to_dict()
47
+ payment_methods.append(payment_methods_item)
48
+
49
+ created_at = self.created_at
50
+
51
+ stripe_customer_id: Union[None, Unset, str]
52
+ if isinstance(self.stripe_customer_id, Unset):
53
+ stripe_customer_id = UNSET
54
+ else:
55
+ stripe_customer_id = self.stripe_customer_id
56
+
57
+ field_dict: dict[str, Any] = {}
58
+ field_dict.update(self.additional_properties)
59
+ field_dict.update(
60
+ {
61
+ "user_id": user_id,
62
+ "has_payment_method": has_payment_method,
63
+ "invoice_billing_enabled": invoice_billing_enabled,
64
+ "payment_methods": payment_methods,
65
+ "created_at": created_at,
66
+ }
67
+ )
68
+ if stripe_customer_id is not UNSET:
69
+ field_dict["stripe_customer_id"] = stripe_customer_id
70
+
71
+ return field_dict
72
+
73
+ @classmethod
74
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
75
+ from ..models.payment_method import PaymentMethod
76
+
77
+ d = dict(src_dict)
78
+ user_id = d.pop("user_id")
79
+
80
+ has_payment_method = d.pop("has_payment_method")
81
+
82
+ invoice_billing_enabled = d.pop("invoice_billing_enabled")
83
+
84
+ payment_methods = []
85
+ _payment_methods = d.pop("payment_methods")
86
+ for payment_methods_item_data in _payment_methods:
87
+ payment_methods_item = PaymentMethod.from_dict(payment_methods_item_data)
88
+
89
+ payment_methods.append(payment_methods_item)
90
+
91
+ created_at = d.pop("created_at")
92
+
93
+ def _parse_stripe_customer_id(data: object) -> Union[None, Unset, str]:
94
+ if data is None:
95
+ return data
96
+ if isinstance(data, Unset):
97
+ return data
98
+ return cast(Union[None, Unset, str], data)
99
+
100
+ stripe_customer_id = _parse_stripe_customer_id(d.pop("stripe_customer_id", UNSET))
101
+
102
+ billing_customer = cls(
103
+ user_id=user_id,
104
+ has_payment_method=has_payment_method,
105
+ invoice_billing_enabled=invoice_billing_enabled,
106
+ payment_methods=payment_methods,
107
+ created_at=created_at,
108
+ stripe_customer_id=stripe_customer_id,
109
+ )
110
+
111
+ billing_customer.additional_properties = d
112
+ return billing_customer
113
+
114
+ @property
115
+ def additional_keys(self) -> list[str]:
116
+ return list(self.additional_properties.keys())
117
+
118
+ def __getitem__(self, key: str) -> Any:
119
+ return self.additional_properties[key]
120
+
121
+ def __setitem__(self, key: str, value: Any) -> None:
122
+ self.additional_properties[key] = value
123
+
124
+ def __delitem__(self, key: str) -> None:
125
+ del self.additional_properties[key]
126
+
127
+ def __contains__(self, key: str) -> bool:
128
+ return key in self.additional_properties
@@ -0,0 +1,87 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ T = TypeVar("T", bound="CheckoutResponse")
10
+
11
+
12
+ @_attrs_define
13
+ class CheckoutResponse:
14
+ """Response from checkout session creation.
15
+
16
+ Attributes:
17
+ checkout_url (str): URL to redirect user to for payment
18
+ session_id (str): Checkout session ID for status polling
19
+ subscription_id (str): Internal subscription ID
20
+ requires_checkout (Union[Unset, bool]): Whether checkout is required Default: True.
21
+ """
22
+
23
+ checkout_url: str
24
+ session_id: str
25
+ subscription_id: str
26
+ requires_checkout: Union[Unset, bool] = True
27
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
+
29
+ def to_dict(self) -> dict[str, Any]:
30
+ checkout_url = self.checkout_url
31
+
32
+ session_id = self.session_id
33
+
34
+ subscription_id = self.subscription_id
35
+
36
+ requires_checkout = self.requires_checkout
37
+
38
+ field_dict: dict[str, Any] = {}
39
+ field_dict.update(self.additional_properties)
40
+ field_dict.update(
41
+ {
42
+ "checkout_url": checkout_url,
43
+ "session_id": session_id,
44
+ "subscription_id": subscription_id,
45
+ }
46
+ )
47
+ if requires_checkout is not UNSET:
48
+ field_dict["requires_checkout"] = requires_checkout
49
+
50
+ return field_dict
51
+
52
+ @classmethod
53
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
54
+ d = dict(src_dict)
55
+ checkout_url = d.pop("checkout_url")
56
+
57
+ session_id = d.pop("session_id")
58
+
59
+ subscription_id = d.pop("subscription_id")
60
+
61
+ requires_checkout = d.pop("requires_checkout", UNSET)
62
+
63
+ checkout_response = cls(
64
+ checkout_url=checkout_url,
65
+ session_id=session_id,
66
+ subscription_id=subscription_id,
67
+ requires_checkout=requires_checkout,
68
+ )
69
+
70
+ checkout_response.additional_properties = d
71
+ return checkout_response
72
+
73
+ @property
74
+ def additional_keys(self) -> list[str]:
75
+ return list(self.additional_properties.keys())
76
+
77
+ def __getitem__(self, key: str) -> Any:
78
+ return self.additional_properties[key]
79
+
80
+ def __setitem__(self, key: str, value: Any) -> None:
81
+ self.additional_properties[key] = value
82
+
83
+ def __delitem__(self, key: str) -> None:
84
+ del self.additional_properties[key]
85
+
86
+ def __contains__(self, key: str) -> bool:
87
+ return key in self.additional_properties
@@ -0,0 +1,130 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union, cast
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ T = TypeVar("T", bound="CheckoutStatusResponse")
10
+
11
+
12
+ @_attrs_define
13
+ class CheckoutStatusResponse:
14
+ """Status of a checkout session.
15
+
16
+ Attributes:
17
+ status (str): Checkout status: 'pending_payment', 'provisioning', 'completed', 'failed'
18
+ subscription_id (str): Internal subscription ID
19
+ resource_id (Union[None, Unset, str]): Resource ID (graph_id or repository name) once provisioned
20
+ operation_id (Union[None, Unset, str]): SSE operation ID for monitoring provisioning progress
21
+ error (Union[None, Unset, str]): Error message if checkout failed
22
+ """
23
+
24
+ status: str
25
+ subscription_id: str
26
+ resource_id: Union[None, Unset, str] = UNSET
27
+ operation_id: Union[None, Unset, str] = UNSET
28
+ error: Union[None, Unset, str] = UNSET
29
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
30
+
31
+ def to_dict(self) -> dict[str, Any]:
32
+ status = self.status
33
+
34
+ subscription_id = self.subscription_id
35
+
36
+ resource_id: Union[None, Unset, str]
37
+ if isinstance(self.resource_id, Unset):
38
+ resource_id = UNSET
39
+ else:
40
+ resource_id = self.resource_id
41
+
42
+ operation_id: Union[None, Unset, str]
43
+ if isinstance(self.operation_id, Unset):
44
+ operation_id = UNSET
45
+ else:
46
+ operation_id = self.operation_id
47
+
48
+ error: Union[None, Unset, str]
49
+ if isinstance(self.error, Unset):
50
+ error = UNSET
51
+ else:
52
+ error = self.error
53
+
54
+ field_dict: dict[str, Any] = {}
55
+ field_dict.update(self.additional_properties)
56
+ field_dict.update(
57
+ {
58
+ "status": status,
59
+ "subscription_id": subscription_id,
60
+ }
61
+ )
62
+ if resource_id is not UNSET:
63
+ field_dict["resource_id"] = resource_id
64
+ if operation_id is not UNSET:
65
+ field_dict["operation_id"] = operation_id
66
+ if error is not UNSET:
67
+ field_dict["error"] = error
68
+
69
+ return field_dict
70
+
71
+ @classmethod
72
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
73
+ d = dict(src_dict)
74
+ status = d.pop("status")
75
+
76
+ subscription_id = d.pop("subscription_id")
77
+
78
+ def _parse_resource_id(data: object) -> Union[None, Unset, str]:
79
+ if data is None:
80
+ return data
81
+ if isinstance(data, Unset):
82
+ return data
83
+ return cast(Union[None, Unset, str], data)
84
+
85
+ resource_id = _parse_resource_id(d.pop("resource_id", UNSET))
86
+
87
+ def _parse_operation_id(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
+ operation_id = _parse_operation_id(d.pop("operation_id", UNSET))
95
+
96
+ def _parse_error(data: object) -> Union[None, Unset, str]:
97
+ if data is None:
98
+ return data
99
+ if isinstance(data, Unset):
100
+ return data
101
+ return cast(Union[None, Unset, str], data)
102
+
103
+ error = _parse_error(d.pop("error", UNSET))
104
+
105
+ checkout_status_response = cls(
106
+ status=status,
107
+ subscription_id=subscription_id,
108
+ resource_id=resource_id,
109
+ operation_id=operation_id,
110
+ error=error,
111
+ )
112
+
113
+ checkout_status_response.additional_properties = d
114
+ return checkout_status_response
115
+
116
+ @property
117
+ def additional_keys(self) -> list[str]:
118
+ return list(self.additional_properties.keys())
119
+
120
+ def __getitem__(self, key: str) -> Any:
121
+ return self.additional_properties[key]
122
+
123
+ def __setitem__(self, key: str, value: Any) -> None:
124
+ self.additional_properties[key] = value
125
+
126
+ def __delitem__(self, key: str) -> None:
127
+ del self.additional_properties[key]
128
+
129
+ def __contains__(self, key: str) -> bool:
130
+ return key in self.additional_properties