@robosystems/client 0.2.7 → 0.2.9

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.
@@ -76,52 +76,6 @@ export type AccountInfo = {
76
76
  */
77
77
  provider_account_id: string;
78
78
  };
79
- /**
80
- * AddOnCreditInfo
81
- * Credit information for a specific add-on.
82
- */
83
- export type AddOnCreditInfo = {
84
- /**
85
- * Subscription Id
86
- * Subscription ID
87
- */
88
- subscription_id: string;
89
- /**
90
- * Addon Type
91
- * Add-on type (e.g., sec_data)
92
- */
93
- addon_type: string;
94
- /**
95
- * Name
96
- * Display name of the add-on
97
- */
98
- name: string;
99
- /**
100
- * Tier
101
- * Subscription tier
102
- */
103
- tier: string;
104
- /**
105
- * Credits Remaining
106
- * Credits remaining
107
- */
108
- credits_remaining: number;
109
- /**
110
- * Credits Allocated
111
- * Monthly credit allocation
112
- */
113
- credits_allocated: number;
114
- /**
115
- * Credits Consumed
116
- * Credits consumed this month
117
- */
118
- credits_consumed: number;
119
- /**
120
- * Rollover Amount
121
- * Credits rolled over from previous month
122
- */
123
- rollover_amount?: number;
124
- };
125
79
  /**
126
80
  * AgentListResponse
127
81
  * Response for listing available agents.
@@ -1095,6 +1049,17 @@ export type CreateGraphRequest = {
1095
1049
  */
1096
1050
  tags?: Array<string>;
1097
1051
  };
1052
+ /**
1053
+ * CreateRepositorySubscriptionRequest
1054
+ * Request to create a repository subscription.
1055
+ */
1056
+ export type CreateRepositorySubscriptionRequest = {
1057
+ /**
1058
+ * Plan Name
1059
+ * Plan name for the repository subscription
1060
+ */
1061
+ plan_name: string;
1062
+ };
1098
1063
  /**
1099
1064
  * CreateSubgraphRequest
1100
1065
  * Request model for creating a subgraph.
@@ -1160,54 +1125,46 @@ export type CreditLimits = {
1160
1125
  };
1161
1126
  /**
1162
1127
  * CreditSummary
1163
- * Credit balance summary.
1128
+ * Credit consumption summary.
1164
1129
  */
1165
1130
  export type CreditSummary = {
1166
1131
  /**
1167
- * Current Balance
1168
- * Current credit balance
1169
- */
1170
- current_balance: number;
1171
- /**
1172
- * Monthly Allocation
1173
- * Monthly credit allocation
1174
- */
1175
- monthly_allocation: number;
1176
- /**
1177
- * Consumed This Month
1178
- * Credits consumed this month
1132
+ * Graph Tier
1133
+ * Subscription tier
1179
1134
  */
1180
- consumed_this_month: number;
1135
+ graph_tier: string;
1181
1136
  /**
1182
- * Usage Percentage
1183
- * Usage percentage of monthly allocation
1137
+ * Total Credits Consumed
1138
+ * Total credits consumed
1184
1139
  */
1185
- usage_percentage: number;
1140
+ total_credits_consumed: number;
1186
1141
  /**
1187
- * Rollover Credits
1188
- * Credits rolled over from previous month
1142
+ * Total Base Cost
1143
+ * Total base cost before multipliers
1189
1144
  */
1190
- rollover_credits: number;
1145
+ total_base_cost: number;
1191
1146
  /**
1192
- * Allows Rollover
1193
- * Whether rollover is allowed
1147
+ * Operation Breakdown
1148
+ * Credit usage by operation type
1194
1149
  */
1195
- allows_rollover: boolean;
1150
+ operation_breakdown: {
1151
+ [key: string]: unknown;
1152
+ };
1196
1153
  /**
1197
- * Last Allocation Date
1198
- * Last allocation date (ISO format)
1154
+ * Cached Operations
1155
+ * Number of cached operations
1199
1156
  */
1200
- last_allocation_date?: string | null;
1157
+ cached_operations: number;
1201
1158
  /**
1202
- * Next Allocation Date
1203
- * Next allocation date (ISO format)
1159
+ * Billable Operations
1160
+ * Number of billable operations
1204
1161
  */
1205
- next_allocation_date?: string | null;
1162
+ billable_operations: number;
1206
1163
  /**
1207
- * Is Active
1208
- * Whether credit pool is active
1164
+ * Transaction Count
1165
+ * Total transaction count
1209
1166
  */
1210
- is_active: boolean;
1167
+ transaction_count: number;
1211
1168
  };
1212
1169
  /**
1213
1170
  * CreditSummaryResponse
@@ -1247,35 +1204,6 @@ export type CreditSummaryResponse = {
1247
1204
  */
1248
1205
  last_allocation_date?: string | null;
1249
1206
  };
1250
- /**
1251
- * CreditsSummaryResponse
1252
- * Response for credits summary.
1253
- */
1254
- export type CreditsSummaryResponse = {
1255
- /**
1256
- * Add Ons
1257
- * Credits breakdown by add-on
1258
- */
1259
- add_ons: Array<AddOnCreditInfo>;
1260
- /**
1261
- * Total Credits
1262
- * Total credits remaining across all subscriptions
1263
- */
1264
- total_credits: number;
1265
- /**
1266
- * Credits By Addon
1267
- * Legacy field - Credits breakdown by add-on
1268
- * @deprecated
1269
- */
1270
- credits_by_addon?: Array<{
1271
- [key: string]: unknown;
1272
- }> | null;
1273
- /**
1274
- * Addon Count
1275
- * Number of active add-ons
1276
- */
1277
- addon_count: number;
1278
- };
1279
1207
  /**
1280
1208
  * CustomSchemaDefinition
1281
1209
  * Custom schema definition for generic graphs.
@@ -1908,7 +1836,7 @@ export type GraphInfo = {
1908
1836
  graphName: string;
1909
1837
  /**
1910
1838
  * Role
1911
- * User's role in this graph
1839
+ * User's role/access level
1912
1840
  */
1913
1841
  role: string;
1914
1842
  /**
@@ -1921,6 +1849,16 @@ export type GraphInfo = {
1921
1849
  * Creation timestamp
1922
1850
  */
1923
1851
  createdAt: string;
1852
+ /**
1853
+ * Isrepository
1854
+ * Whether this is a shared repository (vs user graph)
1855
+ */
1856
+ isRepository?: boolean;
1857
+ /**
1858
+ * Repositorytype
1859
+ * Repository type if isRepository=true
1860
+ */
1861
+ repositoryType?: string | null;
1924
1862
  };
1925
1863
  /**
1926
1864
  * GraphLimitsResponse
@@ -2062,6 +2000,72 @@ export type GraphMetricsResponse = {
2062
2000
  [key: string]: unknown;
2063
2001
  };
2064
2002
  };
2003
+ /**
2004
+ * GraphSubscriptionResponse
2005
+ * Response for graph or repository subscription details.
2006
+ */
2007
+ export type GraphSubscriptionResponse = {
2008
+ /**
2009
+ * Id
2010
+ * Subscription ID
2011
+ */
2012
+ id: string;
2013
+ /**
2014
+ * Resource Type
2015
+ * Resource type (graph or repository)
2016
+ */
2017
+ resource_type: string;
2018
+ /**
2019
+ * Resource Id
2020
+ * Resource identifier
2021
+ */
2022
+ resource_id: string;
2023
+ /**
2024
+ * Plan Name
2025
+ * Current plan name
2026
+ */
2027
+ plan_name: string;
2028
+ /**
2029
+ * Billing Interval
2030
+ * Billing interval
2031
+ */
2032
+ billing_interval: string;
2033
+ /**
2034
+ * Status
2035
+ * Subscription status
2036
+ */
2037
+ status: string;
2038
+ /**
2039
+ * Base Price Cents
2040
+ * Base price in cents
2041
+ */
2042
+ base_price_cents: number;
2043
+ /**
2044
+ * Current Period Start
2045
+ * Current billing period start
2046
+ */
2047
+ current_period_start?: string | null;
2048
+ /**
2049
+ * Current Period End
2050
+ * Current billing period end
2051
+ */
2052
+ current_period_end?: string | null;
2053
+ /**
2054
+ * Started At
2055
+ * Subscription start date
2056
+ */
2057
+ started_at?: string | null;
2058
+ /**
2059
+ * Canceled At
2060
+ * Cancellation date
2061
+ */
2062
+ canceled_at?: string | null;
2063
+ /**
2064
+ * Created At
2065
+ * Creation timestamp
2066
+ */
2067
+ created_at: string;
2068
+ };
2065
2069
  /**
2066
2070
  * GraphSubscriptionTier
2067
2071
  * Information about a graph subscription tier.
@@ -2311,14 +2315,14 @@ export type GraphTierInstance = {
2311
2315
  type: string;
2312
2316
  /**
2313
2317
  * Memory Mb
2314
- * Memory in megabytes
2318
+ * Memory allocated to your graph in megabytes
2315
2319
  */
2316
2320
  memory_mb: number;
2317
2321
  /**
2318
- * Databases Per Instance
2319
- * Databases per instance
2322
+ * Is Multitenant
2323
+ * Whether this tier shares infrastructure with other graphs
2320
2324
  */
2321
- databases_per_instance: number;
2325
+ is_multitenant: boolean;
2322
2326
  };
2323
2327
  /**
2324
2328
  * GraphTierLimits
@@ -2360,26 +2364,29 @@ export type GraphUsageResponse = {
2360
2364
  */
2361
2365
  graph_id: string;
2362
2366
  /**
2363
- * Storage Usage
2364
- * Storage usage information
2367
+ * Time Range
2368
+ * Time range for usage data
2365
2369
  */
2366
- storage_usage: {
2367
- [key: string]: unknown;
2368
- };
2370
+ time_range: string;
2369
2371
  /**
2370
- * Query Statistics
2371
- * Query statistics
2372
+ * Storage usage summary
2372
2373
  */
2373
- query_statistics: {
2374
- [key: string]: unknown;
2375
- };
2374
+ storage_summary?: StorageSummary | null;
2375
+ /**
2376
+ * Credit consumption summary
2377
+ */
2378
+ credit_summary?: CreditSummary | null;
2379
+ /**
2380
+ * Performance analytics
2381
+ */
2382
+ performance_insights?: PerformanceInsights | null;
2376
2383
  /**
2377
- * Recent Activity
2378
- * Recent activity summary
2384
+ * Recent Events
2385
+ * Recent usage events
2379
2386
  */
2380
- recent_activity: {
2387
+ recent_events?: Array<{
2381
2388
  [key: string]: unknown;
2382
- };
2389
+ }>;
2383
2390
  /**
2384
2391
  * Timestamp
2385
2392
  * Usage collection timestamp
@@ -2843,6 +2850,41 @@ export type PasswordPolicyResponse = {
2843
2850
  [key: string]: unknown;
2844
2851
  };
2845
2852
  };
2853
+ /**
2854
+ * PerformanceInsights
2855
+ * Performance analytics.
2856
+ */
2857
+ export type PerformanceInsights = {
2858
+ /**
2859
+ * Analysis Period Days
2860
+ * Analysis period in days
2861
+ */
2862
+ analysis_period_days: number;
2863
+ /**
2864
+ * Total Operations
2865
+ * Total operations analyzed
2866
+ */
2867
+ total_operations: number;
2868
+ /**
2869
+ * Operation Stats
2870
+ * Performance stats by operation type
2871
+ */
2872
+ operation_stats: {
2873
+ [key: string]: unknown;
2874
+ };
2875
+ /**
2876
+ * Slow Queries
2877
+ * Top slow queries (over 5 seconds)
2878
+ */
2879
+ slow_queries: Array<{
2880
+ [key: string]: unknown;
2881
+ }>;
2882
+ /**
2883
+ * Performance Score
2884
+ * Performance score (0-100)
2885
+ */
2886
+ performance_score: number;
2887
+ };
2846
2888
  /**
2847
2889
  * PlaidConnectionConfig
2848
2890
  * Plaid-specific connection configuration.
@@ -2967,31 +3009,6 @@ export type RegisterRequest = {
2967
3009
  */
2968
3010
  captcha_token?: string | null;
2969
3011
  };
2970
- /**
2971
- * RepositoryCreditsResponse
2972
- * Response for repository-specific credits.
2973
- */
2974
- export type RepositoryCreditsResponse = {
2975
- /**
2976
- * Repository
2977
- * Repository identifier
2978
- */
2979
- repository: string;
2980
- /**
2981
- * Has Access
2982
- * Whether user has access
2983
- */
2984
- has_access: boolean;
2985
- /**
2986
- * Message
2987
- * Access message
2988
- */
2989
- message?: string | null;
2990
- /**
2991
- * Credit summary if access available
2992
- */
2993
- credits?: CreditSummary | null;
2994
- };
2995
3012
  /**
2996
3013
  * RepositoryInfo
2997
3014
  * Information about a shared repository.
@@ -3028,11 +3045,6 @@ export type RepositoryInfo = {
3028
3045
  */
3029
3046
  plans: Array<OfferingRepositoryPlan>;
3030
3047
  };
3031
- /**
3032
- * RepositoryPlan
3033
- * Repository access plans for shared data.
3034
- */
3035
- export type RepositoryPlan = 'starter' | 'advanced' | 'unlimited';
3036
3048
  /**
3037
3049
  * RepositorySubscriptions
3038
3050
  * Repository subscription offerings.
@@ -3054,11 +3066,6 @@ export type RepositorySubscriptions = {
3054
3066
  */
3055
3067
  notes: Array<string>;
3056
3068
  };
3057
- /**
3058
- * RepositoryType
3059
- * Types of shared repositories.
3060
- */
3061
- export type RepositoryType = 'sec' | 'industry' | 'economic';
3062
3069
  /**
3063
3070
  * ResetPasswordRequest
3064
3071
  * Reset password request model.
@@ -3466,6 +3473,42 @@ export type StorageLimits = {
3466
3473
  */
3467
3474
  approaching_limit: boolean;
3468
3475
  };
3476
+ /**
3477
+ * StorageSummary
3478
+ * Storage usage summary.
3479
+ */
3480
+ export type StorageSummary = {
3481
+ /**
3482
+ * Graph Tier
3483
+ * Subscription tier
3484
+ */
3485
+ graph_tier: string;
3486
+ /**
3487
+ * Avg Storage Gb
3488
+ * Average storage in GB
3489
+ */
3490
+ avg_storage_gb: number;
3491
+ /**
3492
+ * Max Storage Gb
3493
+ * Peak storage in GB
3494
+ */
3495
+ max_storage_gb: number;
3496
+ /**
3497
+ * Min Storage Gb
3498
+ * Minimum storage in GB
3499
+ */
3500
+ min_storage_gb: number;
3501
+ /**
3502
+ * Total Gb Hours
3503
+ * Total GB-hours for billing
3504
+ */
3505
+ total_gb_hours: number;
3506
+ /**
3507
+ * Measurement Count
3508
+ * Number of measurements taken
3509
+ */
3510
+ measurement_count: number;
3511
+ };
3469
3512
  /**
3470
3513
  * SubgraphQuotaResponse
3471
3514
  * Response model for subgraph quota information.
@@ -3639,93 +3682,6 @@ export type SubgraphSummary = {
3639
3682
  * Types of subgraphs.
3640
3683
  */
3641
3684
  export type SubgraphType = 'static' | 'temporal' | 'versioned' | 'memory';
3642
- /**
3643
- * SubscriptionInfo
3644
- * User subscription information.
3645
- */
3646
- export type SubscriptionInfo = {
3647
- /**
3648
- * Id
3649
- * Subscription ID
3650
- */
3651
- id: string;
3652
- /**
3653
- * User Id
3654
- * User ID
3655
- */
3656
- user_id: string;
3657
- /**
3658
- * Addon Type
3659
- * Add-on type
3660
- */
3661
- addon_type: string;
3662
- /**
3663
- * Addon Tier
3664
- * Subscription tier
3665
- */
3666
- addon_tier: string;
3667
- /**
3668
- * Is Active
3669
- * Whether subscription is active
3670
- */
3671
- is_active: boolean;
3672
- /**
3673
- * Activated At
3674
- * Activation date (ISO format)
3675
- */
3676
- activated_at: string;
3677
- /**
3678
- * Expires At
3679
- * Expiration date (ISO format)
3680
- */
3681
- expires_at?: string | null;
3682
- /**
3683
- * Monthly Price Cents
3684
- * Monthly price in cents
3685
- */
3686
- monthly_price_cents: number;
3687
- /**
3688
- * Features
3689
- * List of features
3690
- */
3691
- features: Array<string>;
3692
- /**
3693
- * Metadata
3694
- * Additional metadata
3695
- */
3696
- metadata: {
3697
- [key: string]: unknown;
3698
- };
3699
- };
3700
- /**
3701
- * SubscriptionRequest
3702
- * Request to create a new subscription.
3703
- */
3704
- export type SubscriptionRequest = {
3705
- /**
3706
- * Type of repository to subscribe to
3707
- */
3708
- repository_type: RepositoryType;
3709
- /**
3710
- * Repository plan
3711
- */
3712
- repository_plan?: RepositoryPlan;
3713
- };
3714
- /**
3715
- * SubscriptionResponse
3716
- * Response for subscription creation.
3717
- */
3718
- export type SubscriptionResponse = {
3719
- /**
3720
- * Message
3721
- * Success message
3722
- */
3723
- message: string;
3724
- /**
3725
- * Created subscription details
3726
- */
3727
- subscription: SubscriptionInfo;
3728
- };
3729
3685
  /**
3730
3686
  * SuccessResponse
3731
3687
  * Standard success response for operations without specific return data.
@@ -3882,16 +3838,6 @@ export type TableQueryResponse = {
3882
3838
  */
3883
3839
  execution_time_ms: number;
3884
3840
  };
3885
- /**
3886
- * TierUpgradeRequest
3887
- * Request to upgrade subscription tier.
3888
- */
3889
- export type TierUpgradeRequest = {
3890
- /**
3891
- * New repository plan
3892
- */
3893
- new_plan: RepositoryPlan;
3894
- };
3895
3841
  /**
3896
3842
  * TokenPricing
3897
3843
  * AI token pricing for a specific model.
@@ -3992,105 +3938,29 @@ export type UpdateUserRequest = {
3992
3938
  email?: string | null;
3993
3939
  };
3994
3940
  /**
3995
- * UserAnalyticsResponse
3996
- * Response model for comprehensive user analytics.
3941
+ * UpgradeSubscriptionRequest
3942
+ * Request to upgrade a subscription.
3997
3943
  */
3998
- export type UserAnalyticsResponse = {
3944
+ export type UpgradeSubscriptionRequest = {
3999
3945
  /**
4000
- * User Info
4001
- * User information
3946
+ * New Plan Name
3947
+ * New plan name to upgrade to
4002
3948
  */
4003
- user_info: {
4004
- [key: string]: unknown;
4005
- };
3949
+ new_plan_name: string;
3950
+ };
3951
+ /**
3952
+ * UserGraphsResponse
3953
+ * User graphs response model.
3954
+ */
3955
+ export type UserGraphsResponse = {
4006
3956
  /**
4007
- * Graph Usage
4008
- * Graph usage statistics
3957
+ * Graphs
3958
+ * List of accessible graphs
4009
3959
  */
4010
- graph_usage: {
4011
- [key: string]: unknown;
4012
- };
3960
+ graphs: Array<GraphInfo>;
4013
3961
  /**
4014
- * Api Usage
4015
- * API usage statistics
4016
- */
4017
- api_usage: {
4018
- [key: string]: unknown;
4019
- };
4020
- /**
4021
- * Limits
4022
- * Current limits and restrictions
4023
- */
4024
- limits: {
4025
- [key: string]: unknown;
4026
- };
4027
- /**
4028
- * Recent Activity
4029
- * Recent user activity
4030
- */
4031
- recent_activity: Array<{
4032
- [key: string]: unknown;
4033
- }>;
4034
- /**
4035
- * Timestamp
4036
- * Analytics generation timestamp
4037
- */
4038
- timestamp: string;
4039
- };
4040
- /**
4041
- * UserGraphSummary
4042
- * Summary of a single graph for user analytics.
4043
- */
4044
- export type UserGraphSummary = {
4045
- /**
4046
- * Graph Id
4047
- * Graph database identifier
4048
- */
4049
- graph_id: string;
4050
- /**
4051
- * Graph Name
4052
- * Display name for the graph
4053
- */
4054
- graph_name?: string | null;
4055
- /**
4056
- * Role
4057
- * User's role in this graph
4058
- */
4059
- role: string;
4060
- /**
4061
- * Total Nodes
4062
- * Total number of nodes
4063
- */
4064
- total_nodes: number;
4065
- /**
4066
- * Total Relationships
4067
- * Total number of relationships
4068
- */
4069
- total_relationships: number;
4070
- /**
4071
- * Estimated Size Mb
4072
- * Estimated database size in MB
4073
- */
4074
- estimated_size_mb: number;
4075
- /**
4076
- * Last Accessed
4077
- * Last access timestamp
4078
- */
4079
- last_accessed?: string | null;
4080
- };
4081
- /**
4082
- * UserGraphsResponse
4083
- * User graphs response model.
4084
- */
4085
- export type UserGraphsResponse = {
4086
- /**
4087
- * Graphs
4088
- * List of accessible graphs
4089
- */
4090
- graphs: Array<GraphInfo>;
4091
- /**
4092
- * Selectedgraphid
4093
- * Currently selected graph ID
3962
+ * Selectedgraphid
3963
+ * Currently selected graph ID
4094
3964
  */
4095
3965
  selectedGraphId?: string | null;
4096
3966
  };
@@ -4154,27 +4024,6 @@ export type UserResponse = {
4154
4024
  */
4155
4025
  accounts?: Array<AccountInfo>;
4156
4026
  };
4157
- /**
4158
- * UserSubscriptionsResponse
4159
- * Response for user subscriptions.
4160
- */
4161
- export type UserSubscriptionsResponse = {
4162
- /**
4163
- * Subscriptions
4164
- * List of user subscriptions
4165
- */
4166
- subscriptions: Array<SubscriptionInfo>;
4167
- /**
4168
- * Total Count
4169
- * Total number of subscriptions
4170
- */
4171
- total_count: number;
4172
- /**
4173
- * Active Count
4174
- * Number of active subscriptions
4175
- */
4176
- active_count: number;
4177
- };
4178
4027
  /**
4179
4028
  * UserUsageResponse
4180
4029
  * Response model for user usage statistics.
@@ -4200,49 +4049,6 @@ export type UserUsageResponse = {
4200
4049
  */
4201
4050
  limits: UserLimitsResponse;
4202
4051
  };
4203
- /**
4204
- * UserUsageSummaryResponse
4205
- * Response model for user usage summary.
4206
- */
4207
- export type UserUsageSummaryResponse = {
4208
- /**
4209
- * User Id
4210
- * User identifier
4211
- */
4212
- user_id: string;
4213
- /**
4214
- * Graph Count
4215
- * Number of accessible graphs
4216
- */
4217
- graph_count: number;
4218
- /**
4219
- * Total Nodes
4220
- * Total nodes across all graphs
4221
- */
4222
- total_nodes: number;
4223
- /**
4224
- * Total Relationships
4225
- * Total relationships across all graphs
4226
- */
4227
- total_relationships: number;
4228
- /**
4229
- * Usage Vs Limits
4230
- * Usage compared to limits
4231
- */
4232
- usage_vs_limits: {
4233
- [key: string]: unknown;
4234
- };
4235
- /**
4236
- * Graphs
4237
- * Summary of each graph
4238
- */
4239
- graphs: Array<UserGraphSummary>;
4240
- /**
4241
- * Timestamp
4242
- * Summary generation timestamp
4243
- */
4244
- timestamp: string;
4245
- };
4246
4052
  /**
4247
4053
  * ValidationError
4248
4054
  */
@@ -4678,29 +4484,6 @@ export type UpdateUserResponses = {
4678
4484
  200: UserResponse;
4679
4485
  };
4680
4486
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
4681
- export type GetAllCreditSummariesData = {
4682
- body?: never;
4683
- path?: never;
4684
- query?: never;
4685
- url: '/v1/user/credits';
4686
- };
4687
- export type GetAllCreditSummariesErrors = {
4688
- /**
4689
- * Failed to retrieve credit summaries
4690
- */
4691
- 500: ErrorResponse;
4692
- };
4693
- export type GetAllCreditSummariesError = GetAllCreditSummariesErrors[keyof GetAllCreditSummariesErrors];
4694
- export type GetAllCreditSummariesResponses = {
4695
- /**
4696
- * Response Getallcreditsummaries
4697
- * Credit summaries retrieved successfully
4698
- */
4699
- 200: {
4700
- [key: string]: unknown;
4701
- };
4702
- };
4703
- export type GetAllCreditSummariesResponse = GetAllCreditSummariesResponses[keyof GetAllCreditSummariesResponses];
4704
4487
  export type UpdateUserPasswordData = {
4705
4488
  body: UpdatePasswordRequest;
4706
4489
  path?: never;
@@ -4808,342 +4591,35 @@ export type UpdateUserApiKeyData = {
4808
4591
  api_key_id: string;
4809
4592
  };
4810
4593
  query?: never;
4811
- url: '/v1/user/api-keys/{api_key_id}';
4812
- };
4813
- export type UpdateUserApiKeyErrors = {
4814
- /**
4815
- * Validation Error
4816
- */
4817
- 422: HttpValidationError;
4818
- };
4819
- export type UpdateUserApiKeyError = UpdateUserApiKeyErrors[keyof UpdateUserApiKeyErrors];
4820
- export type UpdateUserApiKeyResponses = {
4821
- /**
4822
- * Successful Response
4823
- */
4824
- 200: ApiKeyInfo;
4825
- };
4826
- export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
4827
- export type GetUserLimitsData = {
4828
- body?: never;
4829
- path?: never;
4830
- query?: never;
4831
- url: '/v1/user/limits';
4832
- };
4833
- export type GetUserLimitsErrors = {
4834
- /**
4835
- * User limits not found
4836
- */
4837
- 404: unknown;
4838
- };
4839
- export type GetUserLimitsResponses = {
4840
- /**
4841
- * User limits retrieved successfully
4842
- */
4843
- 200: UserLimitsResponse;
4844
- };
4845
- export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
4846
- export type GetUserUsageData = {
4847
- body?: never;
4848
- path?: never;
4849
- query?: never;
4850
- url: '/v1/user/limits/usage';
4851
- };
4852
- export type GetUserUsageResponses = {
4853
- /**
4854
- * User usage statistics retrieved successfully
4855
- */
4856
- 200: UserUsageResponse;
4857
- };
4858
- export type GetUserUsageResponse = GetUserUsageResponses[keyof GetUserUsageResponses];
4859
- export type GetAllSharedRepositoryLimitsData = {
4860
- body?: never;
4861
- path?: never;
4862
- query?: never;
4863
- url: '/v1/user/limits/shared-repositories/summary';
4864
- };
4865
- export type GetAllSharedRepositoryLimitsResponses = {
4866
- /**
4867
- * Response Getallsharedrepositorylimits
4868
- * Successful Response
4869
- */
4870
- 200: {
4871
- [key: string]: unknown;
4872
- };
4873
- };
4874
- export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
4875
- export type GetSharedRepositoryLimitsData = {
4876
- body?: never;
4877
- path: {
4878
- /**
4879
- * Repository
4880
- * Repository name (e.g., 'sec')
4881
- */
4882
- repository: string;
4883
- };
4884
- query?: never;
4885
- url: '/v1/user/limits/shared-repositories/{repository}';
4886
- };
4887
- export type GetSharedRepositoryLimitsErrors = {
4888
- /**
4889
- * Validation Error
4890
- */
4891
- 422: HttpValidationError;
4892
- };
4893
- export type GetSharedRepositoryLimitsError = GetSharedRepositoryLimitsErrors[keyof GetSharedRepositoryLimitsErrors];
4894
- export type GetSharedRepositoryLimitsResponses = {
4895
- /**
4896
- * Response Getsharedrepositorylimits
4897
- * Successful Response
4898
- */
4899
- 200: {
4900
- [key: string]: unknown;
4901
- };
4902
- };
4903
- export type GetSharedRepositoryLimitsResponse = GetSharedRepositoryLimitsResponses[keyof GetSharedRepositoryLimitsResponses];
4904
- export type GetUserUsageOverviewData = {
4905
- body?: never;
4906
- path?: never;
4907
- query?: never;
4908
- url: '/v1/user/analytics/overview';
4909
- };
4910
- export type GetUserUsageOverviewResponses = {
4911
- /**
4912
- * Successful Response
4913
- */
4914
- 200: UserUsageSummaryResponse;
4915
- };
4916
- export type GetUserUsageOverviewResponse = GetUserUsageOverviewResponses[keyof GetUserUsageOverviewResponses];
4917
- export type GetDetailedUserAnalyticsData = {
4918
- body?: never;
4919
- path?: never;
4920
- query?: {
4921
- /**
4922
- * Include Api Stats
4923
- * Include API usage statistics
4924
- */
4925
- include_api_stats?: boolean;
4926
- /**
4927
- * Include Recent Activity
4928
- * Include recent activity
4929
- */
4930
- include_recent_activity?: boolean;
4931
- };
4932
- url: '/v1/user/analytics/detailed';
4933
- };
4934
- export type GetDetailedUserAnalyticsErrors = {
4935
- /**
4936
- * Validation Error
4937
- */
4938
- 422: HttpValidationError;
4939
- };
4940
- export type GetDetailedUserAnalyticsError = GetDetailedUserAnalyticsErrors[keyof GetDetailedUserAnalyticsErrors];
4941
- export type GetDetailedUserAnalyticsResponses = {
4942
- /**
4943
- * Successful Response
4944
- */
4945
- 200: UserAnalyticsResponse;
4946
- };
4947
- export type GetDetailedUserAnalyticsResponse = GetDetailedUserAnalyticsResponses[keyof GetDetailedUserAnalyticsResponses];
4948
- export type GetUserSharedSubscriptionsData = {
4949
- body?: never;
4950
- path?: never;
4951
- query?: {
4952
- /**
4953
- * Active Only
4954
- * Only return active subscriptions
4955
- */
4956
- active_only?: boolean;
4957
- };
4958
- url: '/v1/user/subscriptions/shared-repositories';
4959
- };
4960
- export type GetUserSharedSubscriptionsErrors = {
4961
- /**
4962
- * Authentication required
4963
- */
4964
- 401: unknown;
4965
- /**
4966
- * Validation Error
4967
- */
4968
- 422: HttpValidationError;
4969
- /**
4970
- * Internal server error
4971
- */
4972
- 500: unknown;
4973
- };
4974
- export type GetUserSharedSubscriptionsError = GetUserSharedSubscriptionsErrors[keyof GetUserSharedSubscriptionsErrors];
4975
- export type GetUserSharedSubscriptionsResponses = {
4976
- /**
4977
- * Successfully retrieved user subscriptions
4978
- */
4979
- 200: UserSubscriptionsResponse;
4980
- };
4981
- export type GetUserSharedSubscriptionsResponse = GetUserSharedSubscriptionsResponses[keyof GetUserSharedSubscriptionsResponses];
4982
- export type SubscribeToSharedRepositoryData = {
4983
- body: SubscriptionRequest;
4984
- path?: never;
4985
- query?: never;
4986
- url: '/v1/user/subscriptions/shared-repositories/subscribe';
4987
- };
4988
- export type SubscribeToSharedRepositoryErrors = {
4989
- /**
4990
- * Invalid add-on type or tier, or user already has active subscription
4991
- */
4992
- 400: unknown;
4993
- /**
4994
- * Authentication required
4995
- */
4996
- 401: unknown;
4997
- /**
4998
- * Validation Error
4999
- */
5000
- 422: HttpValidationError;
5001
- /**
5002
- * Internal server error
5003
- */
5004
- 500: unknown;
5005
- };
5006
- export type SubscribeToSharedRepositoryError = SubscribeToSharedRepositoryErrors[keyof SubscribeToSharedRepositoryErrors];
5007
- export type SubscribeToSharedRepositoryResponses = {
5008
- /**
5009
- * Successfully subscribed to shared repository
5010
- */
5011
- 201: SubscriptionResponse;
5012
- };
5013
- export type SubscribeToSharedRepositoryResponse = SubscribeToSharedRepositoryResponses[keyof SubscribeToSharedRepositoryResponses];
5014
- export type UpgradeSharedRepositorySubscriptionData = {
5015
- body: TierUpgradeRequest;
5016
- path: {
5017
- /**
5018
- * Subscription Id
5019
- */
5020
- subscription_id: string;
5021
- };
5022
- query?: never;
5023
- url: '/v1/user/subscriptions/shared-repositories/{subscription_id}/upgrade';
5024
- };
5025
- export type UpgradeSharedRepositorySubscriptionErrors = {
5026
- /**
5027
- * Invalid tier for add-on type
5028
- */
5029
- 400: unknown;
5030
- /**
5031
- * Authentication required
5032
- */
5033
- 401: unknown;
5034
- /**
5035
- * Subscription not found or not owned by user
5036
- */
5037
- 404: unknown;
5038
- /**
5039
- * Validation Error
5040
- */
5041
- 422: HttpValidationError;
5042
- /**
5043
- * Internal server error
5044
- */
5045
- 500: unknown;
5046
- };
5047
- export type UpgradeSharedRepositorySubscriptionError = UpgradeSharedRepositorySubscriptionErrors[keyof UpgradeSharedRepositorySubscriptionErrors];
5048
- export type UpgradeSharedRepositorySubscriptionResponses = {
5049
- /**
5050
- * Successfully upgraded subscription tier
5051
- */
5052
- 200: unknown;
5053
- };
5054
- export type CancelSharedRepositorySubscriptionData = {
5055
- body?: never;
5056
- path: {
5057
- /**
5058
- * Subscription Id
5059
- */
5060
- subscription_id: string;
5061
- };
5062
- query?: never;
5063
- url: '/v1/user/subscriptions/shared-repositories/{subscription_id}';
5064
- };
5065
- export type CancelSharedRepositorySubscriptionErrors = {
5066
- /**
5067
- * Authentication required
5068
- */
5069
- 401: unknown;
5070
- /**
5071
- * Subscription not found or not owned by user
5072
- */
5073
- 404: unknown;
5074
- /**
5075
- * Validation Error
5076
- */
5077
- 422: HttpValidationError;
5078
- /**
5079
- * Internal server error
5080
- */
5081
- 500: unknown;
5082
- };
5083
- export type CancelSharedRepositorySubscriptionError = CancelSharedRepositorySubscriptionErrors[keyof CancelSharedRepositorySubscriptionErrors];
5084
- export type CancelSharedRepositorySubscriptionResponses = {
5085
- /**
5086
- * Successfully cancelled subscription
5087
- */
5088
- 200: CancellationResponse;
5089
- };
5090
- export type CancelSharedRepositorySubscriptionResponse = CancelSharedRepositorySubscriptionResponses[keyof CancelSharedRepositorySubscriptionResponses];
5091
- export type GetSharedRepositoryCreditsData = {
5092
- body?: never;
5093
- path?: never;
5094
- query?: never;
5095
- url: '/v1/user/subscriptions/shared-repositories/credits';
5096
- };
5097
- export type GetSharedRepositoryCreditsErrors = {
5098
- /**
5099
- * Authentication required
5100
- */
5101
- 401: unknown;
5102
- /**
5103
- * Internal server error
5104
- */
5105
- 500: unknown;
5106
- };
5107
- export type GetSharedRepositoryCreditsResponses = {
5108
- /**
5109
- * Successfully retrieved credit balances
5110
- */
5111
- 200: CreditsSummaryResponse;
5112
- };
5113
- export type GetSharedRepositoryCreditsResponse = GetSharedRepositoryCreditsResponses[keyof GetSharedRepositoryCreditsResponses];
5114
- export type GetRepositoryCreditsData = {
5115
- body?: never;
5116
- path: {
5117
- /**
5118
- * Repository
5119
- */
5120
- repository: string;
5121
- };
5122
- query?: never;
5123
- url: '/v1/user/subscriptions/shared-repositories/credits/{repository}';
4594
+ url: '/v1/user/api-keys/{api_key_id}';
5124
4595
  };
5125
- export type GetRepositoryCreditsErrors = {
5126
- /**
5127
- * Authentication required
5128
- */
5129
- 401: unknown;
4596
+ export type UpdateUserApiKeyErrors = {
5130
4597
  /**
5131
4598
  * Validation Error
5132
4599
  */
5133
4600
  422: HttpValidationError;
4601
+ };
4602
+ export type UpdateUserApiKeyError = UpdateUserApiKeyErrors[keyof UpdateUserApiKeyErrors];
4603
+ export type UpdateUserApiKeyResponses = {
5134
4604
  /**
5135
- * Internal server error
4605
+ * Successful Response
5136
4606
  */
5137
- 500: unknown;
4607
+ 200: ApiKeyInfo;
4608
+ };
4609
+ export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
4610
+ export type GetUserLimitsData = {
4611
+ body?: never;
4612
+ path?: never;
4613
+ query?: never;
4614
+ url: '/v1/user/limits';
5138
4615
  };
5139
- export type GetRepositoryCreditsError = GetRepositoryCreditsErrors[keyof GetRepositoryCreditsErrors];
5140
- export type GetRepositoryCreditsResponses = {
4616
+ export type GetUserLimitsResponses = {
5141
4617
  /**
5142
- * Successfully retrieved repository credits
4618
+ * User limits and usage retrieved successfully
5143
4619
  */
5144
- 200: RepositoryCreditsResponse;
4620
+ 200: UserUsageResponse;
5145
4621
  };
5146
- export type GetRepositoryCreditsResponse = GetRepositoryCreditsResponses[keyof GetRepositoryCreditsResponses];
4622
+ export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
5147
4623
  export type ListConnectionsData = {
5148
4624
  body?: never;
5149
4625
  path: {
@@ -6090,7 +5566,7 @@ export type GetGraphMetricsResponses = {
6090
5566
  200: GraphMetricsResponse;
6091
5567
  };
6092
5568
  export type GetGraphMetricsResponse = GetGraphMetricsResponses[keyof GetGraphMetricsResponses];
6093
- export type GetGraphUsageStatsData = {
5569
+ export type GetGraphUsageAnalyticsData = {
6094
5570
  body?: never;
6095
5571
  path: {
6096
5572
  /**
@@ -6100,14 +5576,34 @@ export type GetGraphUsageStatsData = {
6100
5576
  };
6101
5577
  query?: {
6102
5578
  /**
6103
- * Include Details
6104
- * Include detailed metrics (may be slower)
5579
+ * Time Range
5580
+ * Time range: 24h, 7d, 30d, current_month, last_month
5581
+ */
5582
+ time_range?: string;
5583
+ /**
5584
+ * Include Storage
5585
+ * Include storage usage summary
6105
5586
  */
6106
- include_details?: boolean;
5587
+ include_storage?: boolean;
5588
+ /**
5589
+ * Include Credits
5590
+ * Include credit consumption summary
5591
+ */
5592
+ include_credits?: boolean;
5593
+ /**
5594
+ * Include Performance
5595
+ * Include performance insights (may be slower)
5596
+ */
5597
+ include_performance?: boolean;
5598
+ /**
5599
+ * Include Events
5600
+ * Include recent usage events
5601
+ */
5602
+ include_events?: boolean;
6107
5603
  };
6108
5604
  url: '/v1/graphs/{graph_id}/analytics/usage';
6109
5605
  };
6110
- export type GetGraphUsageStatsErrors = {
5606
+ export type GetGraphUsageAnalyticsErrors = {
6111
5607
  /**
6112
5608
  * Access denied to graph
6113
5609
  */
@@ -6117,18 +5613,18 @@ export type GetGraphUsageStatsErrors = {
6117
5613
  */
6118
5614
  422: HttpValidationError;
6119
5615
  /**
6120
- * Failed to retrieve usage statistics
5616
+ * Failed to retrieve usage analytics
6121
5617
  */
6122
5618
  500: ErrorResponse;
6123
5619
  };
6124
- export type GetGraphUsageStatsError = GetGraphUsageStatsErrors[keyof GetGraphUsageStatsErrors];
6125
- export type GetGraphUsageStatsResponses = {
5620
+ export type GetGraphUsageAnalyticsError = GetGraphUsageAnalyticsErrors[keyof GetGraphUsageAnalyticsErrors];
5621
+ export type GetGraphUsageAnalyticsResponses = {
6126
5622
  /**
6127
- * Usage statistics retrieved successfully
5623
+ * Usage analytics retrieved successfully
6128
5624
  */
6129
5625
  200: GraphUsageResponse;
6130
5626
  };
6131
- export type GetGraphUsageStatsResponse = GetGraphUsageStatsResponses[keyof GetGraphUsageStatsResponses];
5627
+ export type GetGraphUsageAnalyticsResponse = GetGraphUsageAnalyticsResponses[keyof GetGraphUsageAnalyticsResponses];
6132
5628
  export type ExecuteCypherQueryData = {
6133
5629
  body: CypherQueryRequest;
6134
5630
  path: {
@@ -6333,201 +5829,6 @@ export type ValidateSchemaResponses = {
6333
5829
  200: SchemaValidationResponse;
6334
5830
  };
6335
5831
  export type ValidateSchemaResponse = ValidateSchemaResponses[keyof ValidateSchemaResponses];
6336
- export type GetCurrentGraphBillData = {
6337
- body?: never;
6338
- path: {
6339
- /**
6340
- * Graph Id
6341
- */
6342
- graph_id: string;
6343
- };
6344
- query?: never;
6345
- url: '/v1/graphs/{graph_id}/billing/current';
6346
- };
6347
- export type GetCurrentGraphBillErrors = {
6348
- /**
6349
- * Access denied to graph
6350
- */
6351
- 403: ErrorResponse;
6352
- /**
6353
- * Graph not found
6354
- */
6355
- 404: ErrorResponse;
6356
- /**
6357
- * Validation Error
6358
- */
6359
- 422: HttpValidationError;
6360
- /**
6361
- * Failed to calculate bill
6362
- */
6363
- 500: ErrorResponse;
6364
- };
6365
- export type GetCurrentGraphBillError = GetCurrentGraphBillErrors[keyof GetCurrentGraphBillErrors];
6366
- export type GetCurrentGraphBillResponses = {
6367
- /**
6368
- * Response Getcurrentgraphbill
6369
- * Current bill retrieved successfully
6370
- */
6371
- 200: {
6372
- [key: string]: unknown;
6373
- };
6374
- };
6375
- export type GetCurrentGraphBillResponse = GetCurrentGraphBillResponses[keyof GetCurrentGraphBillResponses];
6376
- export type GetGraphUsageDetailsData = {
6377
- body?: never;
6378
- path: {
6379
- /**
6380
- * Graph Id
6381
- */
6382
- graph_id: string;
6383
- };
6384
- query?: {
6385
- /**
6386
- * Year
6387
- * Year (defaults to current)
6388
- */
6389
- year?: number | null;
6390
- /**
6391
- * Month
6392
- * Month (defaults to current)
6393
- */
6394
- month?: number | null;
6395
- };
6396
- url: '/v1/graphs/{graph_id}/billing/usage';
6397
- };
6398
- export type GetGraphUsageDetailsErrors = {
6399
- /**
6400
- * Invalid year or month
6401
- */
6402
- 400: ErrorResponse;
6403
- /**
6404
- * Access denied to graph
6405
- */
6406
- 403: ErrorResponse;
6407
- /**
6408
- * Graph not found
6409
- */
6410
- 404: ErrorResponse;
6411
- /**
6412
- * Validation Error
6413
- */
6414
- 422: HttpValidationError;
6415
- /**
6416
- * Failed to retrieve usage
6417
- */
6418
- 500: ErrorResponse;
6419
- };
6420
- export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
6421
- export type GetGraphUsageDetailsResponses = {
6422
- /**
6423
- * Response Getgraphusagedetails
6424
- * Usage details retrieved successfully
6425
- */
6426
- 200: {
6427
- [key: string]: unknown;
6428
- };
6429
- };
6430
- export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
6431
- export type GetGraphBillingHistoryData = {
6432
- body?: never;
6433
- path: {
6434
- /**
6435
- * Graph Id
6436
- */
6437
- graph_id: string;
6438
- };
6439
- query?: {
6440
- /**
6441
- * Months
6442
- * Number of months to retrieve (1-24)
6443
- */
6444
- months?: number;
6445
- };
6446
- url: '/v1/graphs/{graph_id}/billing/history';
6447
- };
6448
- export type GetGraphBillingHistoryErrors = {
6449
- /**
6450
- * Access denied to graph
6451
- */
6452
- 403: ErrorResponse;
6453
- /**
6454
- * Graph not found
6455
- */
6456
- 404: ErrorResponse;
6457
- /**
6458
- * Validation Error
6459
- */
6460
- 422: HttpValidationError;
6461
- /**
6462
- * Failed to retrieve history
6463
- */
6464
- 500: ErrorResponse;
6465
- };
6466
- export type GetGraphBillingHistoryError = GetGraphBillingHistoryErrors[keyof GetGraphBillingHistoryErrors];
6467
- export type GetGraphBillingHistoryResponses = {
6468
- /**
6469
- * Response Getgraphbillinghistory
6470
- * Billing history retrieved successfully
6471
- */
6472
- 200: {
6473
- [key: string]: unknown;
6474
- };
6475
- };
6476
- export type GetGraphBillingHistoryResponse = GetGraphBillingHistoryResponses[keyof GetGraphBillingHistoryResponses];
6477
- export type GetGraphMonthlyBillData = {
6478
- body?: never;
6479
- path: {
6480
- /**
6481
- * Year
6482
- * Year (2024-2030)
6483
- */
6484
- year: number;
6485
- /**
6486
- * Month
6487
- * Month (1-12)
6488
- */
6489
- month: number;
6490
- /**
6491
- * Graph Id
6492
- */
6493
- graph_id: string;
6494
- };
6495
- query?: never;
6496
- url: '/v1/graphs/{graph_id}/billing/history/{year}/{month}';
6497
- };
6498
- export type GetGraphMonthlyBillErrors = {
6499
- /**
6500
- * Invalid year or month
6501
- */
6502
- 400: ErrorResponse;
6503
- /**
6504
- * Access denied to graph
6505
- */
6506
- 403: ErrorResponse;
6507
- /**
6508
- * Graph not found or no data for period
6509
- */
6510
- 404: ErrorResponse;
6511
- /**
6512
- * Validation Error
6513
- */
6514
- 422: HttpValidationError;
6515
- /**
6516
- * Failed to calculate bill
6517
- */
6518
- 500: ErrorResponse;
6519
- };
6520
- export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
6521
- export type GetGraphMonthlyBillResponses = {
6522
- /**
6523
- * Response Getgraphmonthlybill
6524
- * Monthly bill retrieved successfully
6525
- */
6526
- 200: {
6527
- [key: string]: unknown;
6528
- };
6529
- };
6530
- export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
6531
5832
  export type GetCreditSummaryData = {
6532
5833
  body?: never;
6533
5834
  path: {
@@ -7073,6 +6374,134 @@ export type GetSubgraphQuotaResponses = {
7073
6374
  200: SubgraphQuotaResponse;
7074
6375
  };
7075
6376
  export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
6377
+ export type CancelSubscriptionData = {
6378
+ body?: never;
6379
+ path: {
6380
+ /**
6381
+ * Graph Id
6382
+ * Graph ID or repository name
6383
+ */
6384
+ graph_id: string;
6385
+ };
6386
+ query?: never;
6387
+ url: '/v1/graphs/{graph_id}/subscriptions';
6388
+ };
6389
+ export type CancelSubscriptionErrors = {
6390
+ /**
6391
+ * Cannot cancel graph subscriptions directly
6392
+ */
6393
+ 400: unknown;
6394
+ /**
6395
+ * No subscription found
6396
+ */
6397
+ 404: unknown;
6398
+ /**
6399
+ * Validation Error
6400
+ */
6401
+ 422: HttpValidationError;
6402
+ };
6403
+ export type CancelSubscriptionError = CancelSubscriptionErrors[keyof CancelSubscriptionErrors];
6404
+ export type CancelSubscriptionResponses = {
6405
+ /**
6406
+ * Subscription canceled successfully
6407
+ */
6408
+ 200: CancellationResponse;
6409
+ };
6410
+ export type CancelSubscriptionResponse = CancelSubscriptionResponses[keyof CancelSubscriptionResponses];
6411
+ export type GetGraphSubscriptionData = {
6412
+ body?: never;
6413
+ path: {
6414
+ /**
6415
+ * Graph Id
6416
+ * Graph ID or repository name
6417
+ */
6418
+ graph_id: string;
6419
+ };
6420
+ query?: never;
6421
+ url: '/v1/graphs/{graph_id}/subscriptions';
6422
+ };
6423
+ export type GetGraphSubscriptionErrors = {
6424
+ /**
6425
+ * No subscription found
6426
+ */
6427
+ 404: unknown;
6428
+ /**
6429
+ * Validation Error
6430
+ */
6431
+ 422: HttpValidationError;
6432
+ };
6433
+ export type GetGraphSubscriptionError = GetGraphSubscriptionErrors[keyof GetGraphSubscriptionErrors];
6434
+ export type GetGraphSubscriptionResponses = {
6435
+ /**
6436
+ * Subscription retrieved successfully
6437
+ */
6438
+ 200: GraphSubscriptionResponse;
6439
+ };
6440
+ export type GetGraphSubscriptionResponse = GetGraphSubscriptionResponses[keyof GetGraphSubscriptionResponses];
6441
+ export type CreateRepositorySubscriptionData = {
6442
+ body: CreateRepositorySubscriptionRequest;
6443
+ path: {
6444
+ /**
6445
+ * Graph Id
6446
+ * Repository name (e.g., 'sec', 'industry')
6447
+ */
6448
+ graph_id: string;
6449
+ };
6450
+ query?: never;
6451
+ url: '/v1/graphs/{graph_id}/subscriptions';
6452
+ };
6453
+ export type CreateRepositorySubscriptionErrors = {
6454
+ /**
6455
+ * Invalid request - cannot create subscription for user graphs
6456
+ */
6457
+ 400: unknown;
6458
+ /**
6459
+ * User already has a subscription to this repository
6460
+ */
6461
+ 409: unknown;
6462
+ /**
6463
+ * Validation Error
6464
+ */
6465
+ 422: HttpValidationError;
6466
+ };
6467
+ export type CreateRepositorySubscriptionError = CreateRepositorySubscriptionErrors[keyof CreateRepositorySubscriptionErrors];
6468
+ export type CreateRepositorySubscriptionResponses = {
6469
+ /**
6470
+ * Repository subscription created successfully
6471
+ */
6472
+ 201: GraphSubscriptionResponse;
6473
+ };
6474
+ export type CreateRepositorySubscriptionResponse = CreateRepositorySubscriptionResponses[keyof CreateRepositorySubscriptionResponses];
6475
+ export type UpgradeSubscriptionData = {
6476
+ body: UpgradeSubscriptionRequest;
6477
+ path: {
6478
+ /**
6479
+ * Graph Id
6480
+ * Graph ID or repository name
6481
+ */
6482
+ graph_id: string;
6483
+ };
6484
+ query?: never;
6485
+ url: '/v1/graphs/{graph_id}/subscriptions/upgrade';
6486
+ };
6487
+ export type UpgradeSubscriptionErrors = {
6488
+ /**
6489
+ * No subscription found
6490
+ */
6491
+ 404: unknown;
6492
+ /**
6493
+ * Validation Error
6494
+ */
6495
+ 422: HttpValidationError;
6496
+ };
6497
+ export type UpgradeSubscriptionError = UpgradeSubscriptionErrors[keyof UpgradeSubscriptionErrors];
6498
+ export type UpgradeSubscriptionResponses = {
6499
+ /**
6500
+ * Subscription upgraded successfully
6501
+ */
6502
+ 200: GraphSubscriptionResponse;
6503
+ };
6504
+ export type UpgradeSubscriptionResponse = UpgradeSubscriptionResponses[keyof UpgradeSubscriptionResponses];
7076
6505
  export type ListTablesData = {
7077
6506
  body?: never;
7078
6507
  path: {