@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.
package/types.gen.ts CHANGED
@@ -81,53 +81,6 @@ export type AccountInfo = {
81
81
  provider_account_id: string;
82
82
  };
83
83
 
84
- /**
85
- * AddOnCreditInfo
86
- * Credit information for a specific add-on.
87
- */
88
- export type AddOnCreditInfo = {
89
- /**
90
- * Subscription Id
91
- * Subscription ID
92
- */
93
- subscription_id: string;
94
- /**
95
- * Addon Type
96
- * Add-on type (e.g., sec_data)
97
- */
98
- addon_type: string;
99
- /**
100
- * Name
101
- * Display name of the add-on
102
- */
103
- name: string;
104
- /**
105
- * Tier
106
- * Subscription tier
107
- */
108
- tier: string;
109
- /**
110
- * Credits Remaining
111
- * Credits remaining
112
- */
113
- credits_remaining: number;
114
- /**
115
- * Credits Allocated
116
- * Monthly credit allocation
117
- */
118
- credits_allocated: number;
119
- /**
120
- * Credits Consumed
121
- * Credits consumed this month
122
- */
123
- credits_consumed: number;
124
- /**
125
- * Rollover Amount
126
- * Credits rolled over from previous month
127
- */
128
- rollover_amount?: number;
129
- };
130
-
131
84
  /**
132
85
  * AgentListResponse
133
86
  * Response for listing available agents.
@@ -1134,6 +1087,18 @@ export type CreateGraphRequest = {
1134
1087
  tags?: Array<string>;
1135
1088
  };
1136
1089
 
1090
+ /**
1091
+ * CreateRepositorySubscriptionRequest
1092
+ * Request to create a repository subscription.
1093
+ */
1094
+ export type CreateRepositorySubscriptionRequest = {
1095
+ /**
1096
+ * Plan Name
1097
+ * Plan name for the repository subscription
1098
+ */
1099
+ plan_name: string;
1100
+ };
1101
+
1137
1102
  /**
1138
1103
  * CreateSubgraphRequest
1139
1104
  * Request model for creating a subgraph.
@@ -1201,54 +1166,46 @@ export type CreditLimits = {
1201
1166
 
1202
1167
  /**
1203
1168
  * CreditSummary
1204
- * Credit balance summary.
1169
+ * Credit consumption summary.
1205
1170
  */
1206
1171
  export type CreditSummary = {
1207
1172
  /**
1208
- * Current Balance
1209
- * Current credit balance
1210
- */
1211
- current_balance: number;
1212
- /**
1213
- * Monthly Allocation
1214
- * Monthly credit allocation
1215
- */
1216
- monthly_allocation: number;
1217
- /**
1218
- * Consumed This Month
1219
- * Credits consumed this month
1173
+ * Graph Tier
1174
+ * Subscription tier
1220
1175
  */
1221
- consumed_this_month: number;
1176
+ graph_tier: string;
1222
1177
  /**
1223
- * Usage Percentage
1224
- * Usage percentage of monthly allocation
1178
+ * Total Credits Consumed
1179
+ * Total credits consumed
1225
1180
  */
1226
- usage_percentage: number;
1181
+ total_credits_consumed: number;
1227
1182
  /**
1228
- * Rollover Credits
1229
- * Credits rolled over from previous month
1183
+ * Total Base Cost
1184
+ * Total base cost before multipliers
1230
1185
  */
1231
- rollover_credits: number;
1186
+ total_base_cost: number;
1232
1187
  /**
1233
- * Allows Rollover
1234
- * Whether rollover is allowed
1188
+ * Operation Breakdown
1189
+ * Credit usage by operation type
1235
1190
  */
1236
- allows_rollover: boolean;
1191
+ operation_breakdown: {
1192
+ [key: string]: unknown;
1193
+ };
1237
1194
  /**
1238
- * Last Allocation Date
1239
- * Last allocation date (ISO format)
1195
+ * Cached Operations
1196
+ * Number of cached operations
1240
1197
  */
1241
- last_allocation_date?: string | null;
1198
+ cached_operations: number;
1242
1199
  /**
1243
- * Next Allocation Date
1244
- * Next allocation date (ISO format)
1200
+ * Billable Operations
1201
+ * Number of billable operations
1245
1202
  */
1246
- next_allocation_date?: string | null;
1203
+ billable_operations: number;
1247
1204
  /**
1248
- * Is Active
1249
- * Whether credit pool is active
1205
+ * Transaction Count
1206
+ * Total transaction count
1250
1207
  */
1251
- is_active: boolean;
1208
+ transaction_count: number;
1252
1209
  };
1253
1210
 
1254
1211
  /**
@@ -1290,36 +1247,6 @@ export type CreditSummaryResponse = {
1290
1247
  last_allocation_date?: string | null;
1291
1248
  };
1292
1249
 
1293
- /**
1294
- * CreditsSummaryResponse
1295
- * Response for credits summary.
1296
- */
1297
- export type CreditsSummaryResponse = {
1298
- /**
1299
- * Add Ons
1300
- * Credits breakdown by add-on
1301
- */
1302
- add_ons: Array<AddOnCreditInfo>;
1303
- /**
1304
- * Total Credits
1305
- * Total credits remaining across all subscriptions
1306
- */
1307
- total_credits: number;
1308
- /**
1309
- * Credits By Addon
1310
- * Legacy field - Credits breakdown by add-on
1311
- * @deprecated
1312
- */
1313
- credits_by_addon?: Array<{
1314
- [key: string]: unknown;
1315
- }> | null;
1316
- /**
1317
- * Addon Count
1318
- * Number of active add-ons
1319
- */
1320
- addon_count: number;
1321
- };
1322
-
1323
1250
  /**
1324
1251
  * CustomSchemaDefinition
1325
1252
  * Custom schema definition for generic graphs.
@@ -1970,7 +1897,7 @@ export type GraphInfo = {
1970
1897
  graphName: string;
1971
1898
  /**
1972
1899
  * Role
1973
- * User's role in this graph
1900
+ * User's role/access level
1974
1901
  */
1975
1902
  role: string;
1976
1903
  /**
@@ -1983,6 +1910,16 @@ export type GraphInfo = {
1983
1910
  * Creation timestamp
1984
1911
  */
1985
1912
  createdAt: string;
1913
+ /**
1914
+ * Isrepository
1915
+ * Whether this is a shared repository (vs user graph)
1916
+ */
1917
+ isRepository?: boolean;
1918
+ /**
1919
+ * Repositorytype
1920
+ * Repository type if isRepository=true
1921
+ */
1922
+ repositoryType?: string | null;
1986
1923
  };
1987
1924
 
1988
1925
  /**
@@ -2128,6 +2065,73 @@ export type GraphMetricsResponse = {
2128
2065
  };
2129
2066
  };
2130
2067
 
2068
+ /**
2069
+ * GraphSubscriptionResponse
2070
+ * Response for graph or repository subscription details.
2071
+ */
2072
+ export type GraphSubscriptionResponse = {
2073
+ /**
2074
+ * Id
2075
+ * Subscription ID
2076
+ */
2077
+ id: string;
2078
+ /**
2079
+ * Resource Type
2080
+ * Resource type (graph or repository)
2081
+ */
2082
+ resource_type: string;
2083
+ /**
2084
+ * Resource Id
2085
+ * Resource identifier
2086
+ */
2087
+ resource_id: string;
2088
+ /**
2089
+ * Plan Name
2090
+ * Current plan name
2091
+ */
2092
+ plan_name: string;
2093
+ /**
2094
+ * Billing Interval
2095
+ * Billing interval
2096
+ */
2097
+ billing_interval: string;
2098
+ /**
2099
+ * Status
2100
+ * Subscription status
2101
+ */
2102
+ status: string;
2103
+ /**
2104
+ * Base Price Cents
2105
+ * Base price in cents
2106
+ */
2107
+ base_price_cents: number;
2108
+ /**
2109
+ * Current Period Start
2110
+ * Current billing period start
2111
+ */
2112
+ current_period_start?: string | null;
2113
+ /**
2114
+ * Current Period End
2115
+ * Current billing period end
2116
+ */
2117
+ current_period_end?: string | null;
2118
+ /**
2119
+ * Started At
2120
+ * Subscription start date
2121
+ */
2122
+ started_at?: string | null;
2123
+ /**
2124
+ * Canceled At
2125
+ * Cancellation date
2126
+ */
2127
+ canceled_at?: string | null;
2128
+ /**
2129
+ * Created At
2130
+ * Creation timestamp
2131
+ */
2132
+ created_at: string;
2133
+ };
2134
+
2131
2135
  /**
2132
2136
  * GraphSubscriptionTier
2133
2137
  * Information about a graph subscription tier.
@@ -2382,14 +2386,14 @@ export type GraphTierInstance = {
2382
2386
  type: string;
2383
2387
  /**
2384
2388
  * Memory Mb
2385
- * Memory in megabytes
2389
+ * Memory allocated to your graph in megabytes
2386
2390
  */
2387
2391
  memory_mb: number;
2388
2392
  /**
2389
- * Databases Per Instance
2390
- * Databases per instance
2393
+ * Is Multitenant
2394
+ * Whether this tier shares infrastructure with other graphs
2391
2395
  */
2392
- databases_per_instance: number;
2396
+ is_multitenant: boolean;
2393
2397
  };
2394
2398
 
2395
2399
  /**
@@ -2433,26 +2437,29 @@ export type GraphUsageResponse = {
2433
2437
  */
2434
2438
  graph_id: string;
2435
2439
  /**
2436
- * Storage Usage
2437
- * Storage usage information
2440
+ * Time Range
2441
+ * Time range for usage data
2438
2442
  */
2439
- storage_usage: {
2440
- [key: string]: unknown;
2441
- };
2443
+ time_range: string;
2442
2444
  /**
2443
- * Query Statistics
2444
- * Query statistics
2445
+ * Storage usage summary
2445
2446
  */
2446
- query_statistics: {
2447
- [key: string]: unknown;
2448
- };
2447
+ storage_summary?: StorageSummary | null;
2448
+ /**
2449
+ * Credit consumption summary
2450
+ */
2451
+ credit_summary?: CreditSummary | null;
2452
+ /**
2453
+ * Performance analytics
2454
+ */
2455
+ performance_insights?: PerformanceInsights | null;
2449
2456
  /**
2450
- * Recent Activity
2451
- * Recent activity summary
2457
+ * Recent Events
2458
+ * Recent usage events
2452
2459
  */
2453
- recent_activity: {
2460
+ recent_events?: Array<{
2454
2461
  [key: string]: unknown;
2455
- };
2462
+ }>;
2456
2463
  /**
2457
2464
  * Timestamp
2458
2465
  * Usage collection timestamp
@@ -2934,6 +2941,42 @@ export type PasswordPolicyResponse = {
2934
2941
  };
2935
2942
  };
2936
2943
 
2944
+ /**
2945
+ * PerformanceInsights
2946
+ * Performance analytics.
2947
+ */
2948
+ export type PerformanceInsights = {
2949
+ /**
2950
+ * Analysis Period Days
2951
+ * Analysis period in days
2952
+ */
2953
+ analysis_period_days: number;
2954
+ /**
2955
+ * Total Operations
2956
+ * Total operations analyzed
2957
+ */
2958
+ total_operations: number;
2959
+ /**
2960
+ * Operation Stats
2961
+ * Performance stats by operation type
2962
+ */
2963
+ operation_stats: {
2964
+ [key: string]: unknown;
2965
+ };
2966
+ /**
2967
+ * Slow Queries
2968
+ * Top slow queries (over 5 seconds)
2969
+ */
2970
+ slow_queries: Array<{
2971
+ [key: string]: unknown;
2972
+ }>;
2973
+ /**
2974
+ * Performance Score
2975
+ * Performance score (0-100)
2976
+ */
2977
+ performance_score: number;
2978
+ };
2979
+
2937
2980
  /**
2938
2981
  * PlaidConnectionConfig
2939
2982
  * Plaid-specific connection configuration.
@@ -3063,32 +3106,6 @@ export type RegisterRequest = {
3063
3106
  captcha_token?: string | null;
3064
3107
  };
3065
3108
 
3066
- /**
3067
- * RepositoryCreditsResponse
3068
- * Response for repository-specific credits.
3069
- */
3070
- export type RepositoryCreditsResponse = {
3071
- /**
3072
- * Repository
3073
- * Repository identifier
3074
- */
3075
- repository: string;
3076
- /**
3077
- * Has Access
3078
- * Whether user has access
3079
- */
3080
- has_access: boolean;
3081
- /**
3082
- * Message
3083
- * Access message
3084
- */
3085
- message?: string | null;
3086
- /**
3087
- * Credit summary if access available
3088
- */
3089
- credits?: CreditSummary | null;
3090
- };
3091
-
3092
3109
  /**
3093
3110
  * RepositoryInfo
3094
3111
  * Information about a shared repository.
@@ -3126,12 +3143,6 @@ export type RepositoryInfo = {
3126
3143
  plans: Array<OfferingRepositoryPlan>;
3127
3144
  };
3128
3145
 
3129
- /**
3130
- * RepositoryPlan
3131
- * Repository access plans for shared data.
3132
- */
3133
- export type RepositoryPlan = 'starter' | 'advanced' | 'unlimited';
3134
-
3135
3146
  /**
3136
3147
  * RepositorySubscriptions
3137
3148
  * Repository subscription offerings.
@@ -3154,12 +3165,6 @@ export type RepositorySubscriptions = {
3154
3165
  notes: Array<string>;
3155
3166
  };
3156
3167
 
3157
- /**
3158
- * RepositoryType
3159
- * Types of shared repositories.
3160
- */
3161
- export type RepositoryType = 'sec' | 'industry' | 'economic';
3162
-
3163
3168
  /**
3164
3169
  * ResetPasswordRequest
3165
3170
  * Reset password request model.
@@ -3585,6 +3590,43 @@ export type StorageLimits = {
3585
3590
  approaching_limit: boolean;
3586
3591
  };
3587
3592
 
3593
+ /**
3594
+ * StorageSummary
3595
+ * Storage usage summary.
3596
+ */
3597
+ export type StorageSummary = {
3598
+ /**
3599
+ * Graph Tier
3600
+ * Subscription tier
3601
+ */
3602
+ graph_tier: string;
3603
+ /**
3604
+ * Avg Storage Gb
3605
+ * Average storage in GB
3606
+ */
3607
+ avg_storage_gb: number;
3608
+ /**
3609
+ * Max Storage Gb
3610
+ * Peak storage in GB
3611
+ */
3612
+ max_storage_gb: number;
3613
+ /**
3614
+ * Min Storage Gb
3615
+ * Minimum storage in GB
3616
+ */
3617
+ min_storage_gb: number;
3618
+ /**
3619
+ * Total Gb Hours
3620
+ * Total GB-hours for billing
3621
+ */
3622
+ total_gb_hours: number;
3623
+ /**
3624
+ * Measurement Count
3625
+ * Number of measurements taken
3626
+ */
3627
+ measurement_count: number;
3628
+ };
3629
+
3588
3630
  /**
3589
3631
  * SubgraphQuotaResponse
3590
3632
  * Response model for subgraph quota information.
@@ -3762,96 +3804,6 @@ export type SubgraphSummary = {
3762
3804
  */
3763
3805
  export type SubgraphType = 'static' | 'temporal' | 'versioned' | 'memory';
3764
3806
 
3765
- /**
3766
- * SubscriptionInfo
3767
- * User subscription information.
3768
- */
3769
- export type SubscriptionInfo = {
3770
- /**
3771
- * Id
3772
- * Subscription ID
3773
- */
3774
- id: string;
3775
- /**
3776
- * User Id
3777
- * User ID
3778
- */
3779
- user_id: string;
3780
- /**
3781
- * Addon Type
3782
- * Add-on type
3783
- */
3784
- addon_type: string;
3785
- /**
3786
- * Addon Tier
3787
- * Subscription tier
3788
- */
3789
- addon_tier: string;
3790
- /**
3791
- * Is Active
3792
- * Whether subscription is active
3793
- */
3794
- is_active: boolean;
3795
- /**
3796
- * Activated At
3797
- * Activation date (ISO format)
3798
- */
3799
- activated_at: string;
3800
- /**
3801
- * Expires At
3802
- * Expiration date (ISO format)
3803
- */
3804
- expires_at?: string | null;
3805
- /**
3806
- * Monthly Price Cents
3807
- * Monthly price in cents
3808
- */
3809
- monthly_price_cents: number;
3810
- /**
3811
- * Features
3812
- * List of features
3813
- */
3814
- features: Array<string>;
3815
- /**
3816
- * Metadata
3817
- * Additional metadata
3818
- */
3819
- metadata: {
3820
- [key: string]: unknown;
3821
- };
3822
- };
3823
-
3824
- /**
3825
- * SubscriptionRequest
3826
- * Request to create a new subscription.
3827
- */
3828
- export type SubscriptionRequest = {
3829
- /**
3830
- * Type of repository to subscribe to
3831
- */
3832
- repository_type: RepositoryType;
3833
- /**
3834
- * Repository plan
3835
- */
3836
- repository_plan?: RepositoryPlan;
3837
- };
3838
-
3839
- /**
3840
- * SubscriptionResponse
3841
- * Response for subscription creation.
3842
- */
3843
- export type SubscriptionResponse = {
3844
- /**
3845
- * Message
3846
- * Success message
3847
- */
3848
- message: string;
3849
- /**
3850
- * Created subscription details
3851
- */
3852
- subscription: SubscriptionInfo;
3853
- };
3854
-
3855
3807
  /**
3856
3808
  * SuccessResponse
3857
3809
  * Standard success response for operations without specific return data.
@@ -4015,17 +3967,6 @@ export type TableQueryResponse = {
4015
3967
  execution_time_ms: number;
4016
3968
  };
4017
3969
 
4018
- /**
4019
- * TierUpgradeRequest
4020
- * Request to upgrade subscription tier.
4021
- */
4022
- export type TierUpgradeRequest = {
4023
- /**
4024
- * New repository plan
4025
- */
4026
- new_plan: RepositoryPlan;
4027
- };
4028
-
4029
3970
  /**
4030
3971
  * TokenPricing
4031
3972
  * AI token pricing for a specific model.
@@ -4131,92 +4072,15 @@ export type UpdateUserRequest = {
4131
4072
  };
4132
4073
 
4133
4074
  /**
4134
- * UserAnalyticsResponse
4135
- * Response model for comprehensive user analytics.
4075
+ * UpgradeSubscriptionRequest
4076
+ * Request to upgrade a subscription.
4136
4077
  */
4137
- export type UserAnalyticsResponse = {
4138
- /**
4139
- * User Info
4140
- * User information
4141
- */
4142
- user_info: {
4143
- [key: string]: unknown;
4144
- };
4078
+ export type UpgradeSubscriptionRequest = {
4145
4079
  /**
4146
- * Graph Usage
4147
- * Graph usage statistics
4080
+ * New Plan Name
4081
+ * New plan name to upgrade to
4148
4082
  */
4149
- graph_usage: {
4150
- [key: string]: unknown;
4151
- };
4152
- /**
4153
- * Api Usage
4154
- * API usage statistics
4155
- */
4156
- api_usage: {
4157
- [key: string]: unknown;
4158
- };
4159
- /**
4160
- * Limits
4161
- * Current limits and restrictions
4162
- */
4163
- limits: {
4164
- [key: string]: unknown;
4165
- };
4166
- /**
4167
- * Recent Activity
4168
- * Recent user activity
4169
- */
4170
- recent_activity: Array<{
4171
- [key: string]: unknown;
4172
- }>;
4173
- /**
4174
- * Timestamp
4175
- * Analytics generation timestamp
4176
- */
4177
- timestamp: string;
4178
- };
4179
-
4180
- /**
4181
- * UserGraphSummary
4182
- * Summary of a single graph for user analytics.
4183
- */
4184
- export type UserGraphSummary = {
4185
- /**
4186
- * Graph Id
4187
- * Graph database identifier
4188
- */
4189
- graph_id: string;
4190
- /**
4191
- * Graph Name
4192
- * Display name for the graph
4193
- */
4194
- graph_name?: string | null;
4195
- /**
4196
- * Role
4197
- * User's role in this graph
4198
- */
4199
- role: string;
4200
- /**
4201
- * Total Nodes
4202
- * Total number of nodes
4203
- */
4204
- total_nodes: number;
4205
- /**
4206
- * Total Relationships
4207
- * Total number of relationships
4208
- */
4209
- total_relationships: number;
4210
- /**
4211
- * Estimated Size Mb
4212
- * Estimated database size in MB
4213
- */
4214
- estimated_size_mb: number;
4215
- /**
4216
- * Last Accessed
4217
- * Last access timestamp
4218
- */
4219
- last_accessed?: string | null;
4083
+ new_plan_name: string;
4220
4084
  };
4221
4085
 
4222
4086
  /**
@@ -4298,28 +4162,6 @@ export type UserResponse = {
4298
4162
  accounts?: Array<AccountInfo>;
4299
4163
  };
4300
4164
 
4301
- /**
4302
- * UserSubscriptionsResponse
4303
- * Response for user subscriptions.
4304
- */
4305
- export type UserSubscriptionsResponse = {
4306
- /**
4307
- * Subscriptions
4308
- * List of user subscriptions
4309
- */
4310
- subscriptions: Array<SubscriptionInfo>;
4311
- /**
4312
- * Total Count
4313
- * Total number of subscriptions
4314
- */
4315
- total_count: number;
4316
- /**
4317
- * Active Count
4318
- * Number of active subscriptions
4319
- */
4320
- active_count: number;
4321
- };
4322
-
4323
4165
  /**
4324
4166
  * UserUsageResponse
4325
4167
  * Response model for user usage statistics.
@@ -4346,50 +4188,6 @@ export type UserUsageResponse = {
4346
4188
  limits: UserLimitsResponse;
4347
4189
  };
4348
4190
 
4349
- /**
4350
- * UserUsageSummaryResponse
4351
- * Response model for user usage summary.
4352
- */
4353
- export type UserUsageSummaryResponse = {
4354
- /**
4355
- * User Id
4356
- * User identifier
4357
- */
4358
- user_id: string;
4359
- /**
4360
- * Graph Count
4361
- * Number of accessible graphs
4362
- */
4363
- graph_count: number;
4364
- /**
4365
- * Total Nodes
4366
- * Total nodes across all graphs
4367
- */
4368
- total_nodes: number;
4369
- /**
4370
- * Total Relationships
4371
- * Total relationships across all graphs
4372
- */
4373
- total_relationships: number;
4374
- /**
4375
- * Usage Vs Limits
4376
- * Usage compared to limits
4377
- */
4378
- usage_vs_limits: {
4379
- [key: string]: unknown;
4380
- };
4381
- /**
4382
- * Graphs
4383
- * Summary of each graph
4384
- */
4385
- graphs: Array<UserGraphSummary>;
4386
- /**
4387
- * Timestamp
4388
- * Summary generation timestamp
4389
- */
4390
- timestamp: string;
4391
- };
4392
-
4393
4191
  /**
4394
4192
  * ValidationError
4395
4193
  */
@@ -4910,34 +4708,6 @@ export type UpdateUserResponses = {
4910
4708
 
4911
4709
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
4912
4710
 
4913
- export type GetAllCreditSummariesData = {
4914
- body?: never;
4915
- path?: never;
4916
- query?: never;
4917
- url: '/v1/user/credits';
4918
- };
4919
-
4920
- export type GetAllCreditSummariesErrors = {
4921
- /**
4922
- * Failed to retrieve credit summaries
4923
- */
4924
- 500: ErrorResponse;
4925
- };
4926
-
4927
- export type GetAllCreditSummariesError = GetAllCreditSummariesErrors[keyof GetAllCreditSummariesErrors];
4928
-
4929
- export type GetAllCreditSummariesResponses = {
4930
- /**
4931
- * Response Getallcreditsummaries
4932
- * Credit summaries retrieved successfully
4933
- */
4934
- 200: {
4935
- [key: string]: unknown;
4936
- };
4937
- };
4938
-
4939
- export type GetAllCreditSummariesResponse = GetAllCreditSummariesResponses[keyof GetAllCreditSummariesResponses];
4940
-
4941
4711
  export type UpdateUserPasswordData = {
4942
4712
  body: UpdatePasswordRequest;
4943
4713
  path?: never;
@@ -5091,536 +4861,181 @@ export type GetUserLimitsData = {
5091
4861
  url: '/v1/user/limits';
5092
4862
  };
5093
4863
 
5094
- export type GetUserLimitsErrors = {
5095
- /**
5096
- * User limits not found
5097
- */
5098
- 404: unknown;
5099
- };
5100
-
5101
4864
  export type GetUserLimitsResponses = {
5102
4865
  /**
5103
- * User limits retrieved successfully
4866
+ * User limits and usage retrieved successfully
5104
4867
  */
5105
- 200: UserLimitsResponse;
4868
+ 200: UserUsageResponse;
5106
4869
  };
5107
4870
 
5108
4871
  export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
5109
4872
 
5110
- export type GetUserUsageData = {
4873
+ export type ListConnectionsData = {
5111
4874
  body?: never;
5112
- path?: never;
5113
- query?: never;
5114
- url: '/v1/user/limits/usage';
4875
+ path: {
4876
+ /**
4877
+ * Graph Id
4878
+ */
4879
+ graph_id: string;
4880
+ };
4881
+ query?: {
4882
+ /**
4883
+ * Entity Id
4884
+ * Filter by entity ID
4885
+ */
4886
+ entity_id?: string | null;
4887
+ /**
4888
+ * Provider
4889
+ * Filter by provider type
4890
+ */
4891
+ provider?: ('sec' | 'quickbooks' | 'plaid') | null;
4892
+ };
4893
+ url: '/v1/graphs/{graph_id}/connections';
5115
4894
  };
5116
4895
 
5117
- export type GetUserUsageResponses = {
4896
+ export type ListConnectionsErrors = {
4897
+ /**
4898
+ * Access denied to graph
4899
+ */
4900
+ 403: ErrorResponse;
5118
4901
  /**
5119
- * User usage statistics retrieved successfully
4902
+ * Validation Error
5120
4903
  */
5121
- 200: UserUsageResponse;
4904
+ 422: HttpValidationError;
4905
+ /**
4906
+ * Failed to list connections
4907
+ */
4908
+ 500: ErrorResponse;
5122
4909
  };
5123
4910
 
5124
- export type GetUserUsageResponse = GetUserUsageResponses[keyof GetUserUsageResponses];
5125
-
5126
- export type GetAllSharedRepositoryLimitsData = {
5127
- body?: never;
5128
- path?: never;
5129
- query?: never;
5130
- url: '/v1/user/limits/shared-repositories/summary';
5131
- };
4911
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
5132
4912
 
5133
- export type GetAllSharedRepositoryLimitsResponses = {
4913
+ export type ListConnectionsResponses = {
5134
4914
  /**
5135
- * Response Getallsharedrepositorylimits
5136
- * Successful Response
4915
+ * Response Listconnections
4916
+ * Connections retrieved successfully
5137
4917
  */
5138
- 200: {
5139
- [key: string]: unknown;
5140
- };
4918
+ 200: Array<ConnectionResponse>;
5141
4919
  };
5142
4920
 
5143
- export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
4921
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
5144
4922
 
5145
- export type GetSharedRepositoryLimitsData = {
5146
- body?: never;
4923
+ export type CreateConnectionData = {
4924
+ body: CreateConnectionRequest;
5147
4925
  path: {
5148
4926
  /**
5149
- * Repository
5150
- * Repository name (e.g., 'sec')
4927
+ * Graph Id
5151
4928
  */
5152
- repository: string;
4929
+ graph_id: string;
5153
4930
  };
5154
4931
  query?: never;
5155
- url: '/v1/user/limits/shared-repositories/{repository}';
4932
+ url: '/v1/graphs/{graph_id}/connections';
5156
4933
  };
5157
4934
 
5158
- export type GetSharedRepositoryLimitsErrors = {
4935
+ export type CreateConnectionErrors = {
4936
+ /**
4937
+ * Invalid connection configuration
4938
+ */
4939
+ 400: ErrorResponse;
4940
+ /**
4941
+ * Access denied - admin role required
4942
+ */
4943
+ 403: ErrorResponse;
4944
+ /**
4945
+ * Connection already exists
4946
+ */
4947
+ 409: ErrorResponse;
5159
4948
  /**
5160
4949
  * Validation Error
5161
4950
  */
5162
4951
  422: HttpValidationError;
5163
- };
5164
-
5165
- export type GetSharedRepositoryLimitsError = GetSharedRepositoryLimitsErrors[keyof GetSharedRepositoryLimitsErrors];
5166
-
5167
- export type GetSharedRepositoryLimitsResponses = {
5168
4952
  /**
5169
- * Response Getsharedrepositorylimits
5170
- * Successful Response
4953
+ * Failed to create connection
5171
4954
  */
5172
- 200: {
5173
- [key: string]: unknown;
5174
- };
4955
+ 500: ErrorResponse;
5175
4956
  };
5176
4957
 
5177
- export type GetSharedRepositoryLimitsResponse = GetSharedRepositoryLimitsResponses[keyof GetSharedRepositoryLimitsResponses];
5178
-
5179
- export type GetUserUsageOverviewData = {
5180
- body?: never;
5181
- path?: never;
5182
- query?: never;
5183
- url: '/v1/user/analytics/overview';
5184
- };
4958
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
5185
4959
 
5186
- export type GetUserUsageOverviewResponses = {
4960
+ export type CreateConnectionResponses = {
5187
4961
  /**
5188
- * Successful Response
4962
+ * Connection created successfully
5189
4963
  */
5190
- 200: UserUsageSummaryResponse;
4964
+ 201: ConnectionResponse;
5191
4965
  };
5192
4966
 
5193
- export type GetUserUsageOverviewResponse = GetUserUsageOverviewResponses[keyof GetUserUsageOverviewResponses];
4967
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
5194
4968
 
5195
- export type GetDetailedUserAnalyticsData = {
4969
+ export type GetConnectionOptionsData = {
5196
4970
  body?: never;
5197
- path?: never;
5198
- query?: {
5199
- /**
5200
- * Include Api Stats
5201
- * Include API usage statistics
5202
- */
5203
- include_api_stats?: boolean;
4971
+ path: {
5204
4972
  /**
5205
- * Include Recent Activity
5206
- * Include recent activity
4973
+ * Graph Id
5207
4974
  */
5208
- include_recent_activity?: boolean;
4975
+ graph_id: string;
5209
4976
  };
5210
- url: '/v1/user/analytics/detailed';
4977
+ query?: never;
4978
+ url: '/v1/graphs/{graph_id}/connections/options';
5211
4979
  };
5212
4980
 
5213
- export type GetDetailedUserAnalyticsErrors = {
4981
+ export type GetConnectionOptionsErrors = {
4982
+ /**
4983
+ * Access denied to graph
4984
+ */
4985
+ 403: ErrorResponse;
5214
4986
  /**
5215
4987
  * Validation Error
5216
4988
  */
5217
4989
  422: HttpValidationError;
4990
+ /**
4991
+ * Failed to retrieve options
4992
+ */
4993
+ 500: ErrorResponse;
5218
4994
  };
5219
4995
 
5220
- export type GetDetailedUserAnalyticsError = GetDetailedUserAnalyticsErrors[keyof GetDetailedUserAnalyticsErrors];
4996
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
5221
4997
 
5222
- export type GetDetailedUserAnalyticsResponses = {
4998
+ export type GetConnectionOptionsResponses = {
5223
4999
  /**
5224
- * Successful Response
5000
+ * Connection options retrieved successfully
5225
5001
  */
5226
- 200: UserAnalyticsResponse;
5002
+ 200: ConnectionOptionsResponse;
5227
5003
  };
5228
5004
 
5229
- export type GetDetailedUserAnalyticsResponse = GetDetailedUserAnalyticsResponses[keyof GetDetailedUserAnalyticsResponses];
5005
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
5230
5006
 
5231
- export type GetUserSharedSubscriptionsData = {
5232
- body?: never;
5233
- path?: never;
5234
- query?: {
5007
+ export type ExchangeLinkTokenData = {
5008
+ body: ExchangeTokenRequest;
5009
+ path: {
5235
5010
  /**
5236
- * Active Only
5237
- * Only return active subscriptions
5011
+ * Graph Id
5238
5012
  */
5239
- active_only?: boolean;
5013
+ graph_id: string;
5240
5014
  };
5241
- url: '/v1/user/subscriptions/shared-repositories';
5015
+ query?: never;
5016
+ url: '/v1/graphs/{graph_id}/connections/link/exchange';
5242
5017
  };
5243
5018
 
5244
- export type GetUserSharedSubscriptionsErrors = {
5019
+ export type ExchangeLinkTokenErrors = {
5245
5020
  /**
5246
- * Authentication required
5021
+ * Invalid token or provider
5247
5022
  */
5248
- 401: unknown;
5023
+ 400: ErrorResponse;
5024
+ /**
5025
+ * Connection not found
5026
+ */
5027
+ 404: ErrorResponse;
5249
5028
  /**
5250
5029
  * Validation Error
5251
5030
  */
5252
5031
  422: HttpValidationError;
5253
5032
  /**
5254
- * Internal server error
5033
+ * Token exchange failed
5255
5034
  */
5256
- 500: unknown;
5035
+ 500: ErrorResponse;
5257
5036
  };
5258
5037
 
5259
- export type GetUserSharedSubscriptionsError = GetUserSharedSubscriptionsErrors[keyof GetUserSharedSubscriptionsErrors];
5260
-
5261
- export type GetUserSharedSubscriptionsResponses = {
5262
- /**
5263
- * Successfully retrieved user subscriptions
5264
- */
5265
- 200: UserSubscriptionsResponse;
5266
- };
5267
-
5268
- export type GetUserSharedSubscriptionsResponse = GetUserSharedSubscriptionsResponses[keyof GetUserSharedSubscriptionsResponses];
5269
-
5270
- export type SubscribeToSharedRepositoryData = {
5271
- body: SubscriptionRequest;
5272
- path?: never;
5273
- query?: never;
5274
- url: '/v1/user/subscriptions/shared-repositories/subscribe';
5275
- };
5276
-
5277
- export type SubscribeToSharedRepositoryErrors = {
5278
- /**
5279
- * Invalid add-on type or tier, or user already has active subscription
5280
- */
5281
- 400: unknown;
5282
- /**
5283
- * Authentication required
5284
- */
5285
- 401: unknown;
5286
- /**
5287
- * Validation Error
5288
- */
5289
- 422: HttpValidationError;
5290
- /**
5291
- * Internal server error
5292
- */
5293
- 500: unknown;
5294
- };
5295
-
5296
- export type SubscribeToSharedRepositoryError = SubscribeToSharedRepositoryErrors[keyof SubscribeToSharedRepositoryErrors];
5297
-
5298
- export type SubscribeToSharedRepositoryResponses = {
5299
- /**
5300
- * Successfully subscribed to shared repository
5301
- */
5302
- 201: SubscriptionResponse;
5303
- };
5304
-
5305
- export type SubscribeToSharedRepositoryResponse = SubscribeToSharedRepositoryResponses[keyof SubscribeToSharedRepositoryResponses];
5306
-
5307
- export type UpgradeSharedRepositorySubscriptionData = {
5308
- body: TierUpgradeRequest;
5309
- path: {
5310
- /**
5311
- * Subscription Id
5312
- */
5313
- subscription_id: string;
5314
- };
5315
- query?: never;
5316
- url: '/v1/user/subscriptions/shared-repositories/{subscription_id}/upgrade';
5317
- };
5318
-
5319
- export type UpgradeSharedRepositorySubscriptionErrors = {
5320
- /**
5321
- * Invalid tier for add-on type
5322
- */
5323
- 400: unknown;
5324
- /**
5325
- * Authentication required
5326
- */
5327
- 401: unknown;
5328
- /**
5329
- * Subscription not found or not owned by user
5330
- */
5331
- 404: unknown;
5332
- /**
5333
- * Validation Error
5334
- */
5335
- 422: HttpValidationError;
5336
- /**
5337
- * Internal server error
5338
- */
5339
- 500: unknown;
5340
- };
5341
-
5342
- export type UpgradeSharedRepositorySubscriptionError = UpgradeSharedRepositorySubscriptionErrors[keyof UpgradeSharedRepositorySubscriptionErrors];
5343
-
5344
- export type UpgradeSharedRepositorySubscriptionResponses = {
5345
- /**
5346
- * Successfully upgraded subscription tier
5347
- */
5348
- 200: unknown;
5349
- };
5350
-
5351
- export type CancelSharedRepositorySubscriptionData = {
5352
- body?: never;
5353
- path: {
5354
- /**
5355
- * Subscription Id
5356
- */
5357
- subscription_id: string;
5358
- };
5359
- query?: never;
5360
- url: '/v1/user/subscriptions/shared-repositories/{subscription_id}';
5361
- };
5362
-
5363
- export type CancelSharedRepositorySubscriptionErrors = {
5364
- /**
5365
- * Authentication required
5366
- */
5367
- 401: unknown;
5368
- /**
5369
- * Subscription not found or not owned by user
5370
- */
5371
- 404: unknown;
5372
- /**
5373
- * Validation Error
5374
- */
5375
- 422: HttpValidationError;
5376
- /**
5377
- * Internal server error
5378
- */
5379
- 500: unknown;
5380
- };
5381
-
5382
- export type CancelSharedRepositorySubscriptionError = CancelSharedRepositorySubscriptionErrors[keyof CancelSharedRepositorySubscriptionErrors];
5383
-
5384
- export type CancelSharedRepositorySubscriptionResponses = {
5385
- /**
5386
- * Successfully cancelled subscription
5387
- */
5388
- 200: CancellationResponse;
5389
- };
5390
-
5391
- export type CancelSharedRepositorySubscriptionResponse = CancelSharedRepositorySubscriptionResponses[keyof CancelSharedRepositorySubscriptionResponses];
5392
-
5393
- export type GetSharedRepositoryCreditsData = {
5394
- body?: never;
5395
- path?: never;
5396
- query?: never;
5397
- url: '/v1/user/subscriptions/shared-repositories/credits';
5398
- };
5399
-
5400
- export type GetSharedRepositoryCreditsErrors = {
5401
- /**
5402
- * Authentication required
5403
- */
5404
- 401: unknown;
5405
- /**
5406
- * Internal server error
5407
- */
5408
- 500: unknown;
5409
- };
5410
-
5411
- export type GetSharedRepositoryCreditsResponses = {
5412
- /**
5413
- * Successfully retrieved credit balances
5414
- */
5415
- 200: CreditsSummaryResponse;
5416
- };
5417
-
5418
- export type GetSharedRepositoryCreditsResponse = GetSharedRepositoryCreditsResponses[keyof GetSharedRepositoryCreditsResponses];
5419
-
5420
- export type GetRepositoryCreditsData = {
5421
- body?: never;
5422
- path: {
5423
- /**
5424
- * Repository
5425
- */
5426
- repository: string;
5427
- };
5428
- query?: never;
5429
- url: '/v1/user/subscriptions/shared-repositories/credits/{repository}';
5430
- };
5431
-
5432
- export type GetRepositoryCreditsErrors = {
5433
- /**
5434
- * Authentication required
5435
- */
5436
- 401: unknown;
5437
- /**
5438
- * Validation Error
5439
- */
5440
- 422: HttpValidationError;
5441
- /**
5442
- * Internal server error
5443
- */
5444
- 500: unknown;
5445
- };
5446
-
5447
- export type GetRepositoryCreditsError = GetRepositoryCreditsErrors[keyof GetRepositoryCreditsErrors];
5448
-
5449
- export type GetRepositoryCreditsResponses = {
5450
- /**
5451
- * Successfully retrieved repository credits
5452
- */
5453
- 200: RepositoryCreditsResponse;
5454
- };
5455
-
5456
- export type GetRepositoryCreditsResponse = GetRepositoryCreditsResponses[keyof GetRepositoryCreditsResponses];
5457
-
5458
- export type ListConnectionsData = {
5459
- body?: never;
5460
- path: {
5461
- /**
5462
- * Graph Id
5463
- */
5464
- graph_id: string;
5465
- };
5466
- query?: {
5467
- /**
5468
- * Entity Id
5469
- * Filter by entity ID
5470
- */
5471
- entity_id?: string | null;
5472
- /**
5473
- * Provider
5474
- * Filter by provider type
5475
- */
5476
- provider?: ('sec' | 'quickbooks' | 'plaid') | null;
5477
- };
5478
- url: '/v1/graphs/{graph_id}/connections';
5479
- };
5480
-
5481
- export type ListConnectionsErrors = {
5482
- /**
5483
- * Access denied to graph
5484
- */
5485
- 403: ErrorResponse;
5486
- /**
5487
- * Validation Error
5488
- */
5489
- 422: HttpValidationError;
5490
- /**
5491
- * Failed to list connections
5492
- */
5493
- 500: ErrorResponse;
5494
- };
5495
-
5496
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
5497
-
5498
- export type ListConnectionsResponses = {
5499
- /**
5500
- * Response Listconnections
5501
- * Connections retrieved successfully
5502
- */
5503
- 200: Array<ConnectionResponse>;
5504
- };
5505
-
5506
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
5507
-
5508
- export type CreateConnectionData = {
5509
- body: CreateConnectionRequest;
5510
- path: {
5511
- /**
5512
- * Graph Id
5513
- */
5514
- graph_id: string;
5515
- };
5516
- query?: never;
5517
- url: '/v1/graphs/{graph_id}/connections';
5518
- };
5519
-
5520
- export type CreateConnectionErrors = {
5521
- /**
5522
- * Invalid connection configuration
5523
- */
5524
- 400: ErrorResponse;
5525
- /**
5526
- * Access denied - admin role required
5527
- */
5528
- 403: ErrorResponse;
5529
- /**
5530
- * Connection already exists
5531
- */
5532
- 409: ErrorResponse;
5533
- /**
5534
- * Validation Error
5535
- */
5536
- 422: HttpValidationError;
5537
- /**
5538
- * Failed to create connection
5539
- */
5540
- 500: ErrorResponse;
5541
- };
5542
-
5543
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
5544
-
5545
- export type CreateConnectionResponses = {
5546
- /**
5547
- * Connection created successfully
5548
- */
5549
- 201: ConnectionResponse;
5550
- };
5551
-
5552
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
5553
-
5554
- export type GetConnectionOptionsData = {
5555
- body?: never;
5556
- path: {
5557
- /**
5558
- * Graph Id
5559
- */
5560
- graph_id: string;
5561
- };
5562
- query?: never;
5563
- url: '/v1/graphs/{graph_id}/connections/options';
5564
- };
5565
-
5566
- export type GetConnectionOptionsErrors = {
5567
- /**
5568
- * Access denied to graph
5569
- */
5570
- 403: ErrorResponse;
5571
- /**
5572
- * Validation Error
5573
- */
5574
- 422: HttpValidationError;
5575
- /**
5576
- * Failed to retrieve options
5577
- */
5578
- 500: ErrorResponse;
5579
- };
5580
-
5581
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
5582
-
5583
- export type GetConnectionOptionsResponses = {
5584
- /**
5585
- * Connection options retrieved successfully
5586
- */
5587
- 200: ConnectionOptionsResponse;
5588
- };
5589
-
5590
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
5591
-
5592
- export type ExchangeLinkTokenData = {
5593
- body: ExchangeTokenRequest;
5594
- path: {
5595
- /**
5596
- * Graph Id
5597
- */
5598
- graph_id: string;
5599
- };
5600
- query?: never;
5601
- url: '/v1/graphs/{graph_id}/connections/link/exchange';
5602
- };
5603
-
5604
- export type ExchangeLinkTokenErrors = {
5605
- /**
5606
- * Invalid token or provider
5607
- */
5608
- 400: ErrorResponse;
5609
- /**
5610
- * Connection not found
5611
- */
5612
- 404: ErrorResponse;
5613
- /**
5614
- * Validation Error
5615
- */
5616
- 422: HttpValidationError;
5617
- /**
5618
- * Token exchange failed
5619
- */
5620
- 500: ErrorResponse;
5621
- };
5622
-
5623
- export type ExchangeLinkTokenError = ExchangeLinkTokenErrors[keyof ExchangeLinkTokenErrors];
5038
+ export type ExchangeLinkTokenError = ExchangeLinkTokenErrors[keyof ExchangeLinkTokenErrors];
5624
5039
 
5625
5040
  export type ExchangeLinkTokenResponses = {
5626
5041
  /**
@@ -6515,7 +5930,7 @@ export type GetGraphMetricsResponses = {
6515
5930
 
6516
5931
  export type GetGraphMetricsResponse = GetGraphMetricsResponses[keyof GetGraphMetricsResponses];
6517
5932
 
6518
- export type GetGraphUsageStatsData = {
5933
+ export type GetGraphUsageAnalyticsData = {
6519
5934
  body?: never;
6520
5935
  path: {
6521
5936
  /**
@@ -6525,310 +5940,145 @@ export type GetGraphUsageStatsData = {
6525
5940
  };
6526
5941
  query?: {
6527
5942
  /**
6528
- * Include Details
6529
- * Include detailed metrics (may be slower)
6530
- */
6531
- include_details?: boolean;
6532
- };
6533
- url: '/v1/graphs/{graph_id}/analytics/usage';
6534
- };
6535
-
6536
- export type GetGraphUsageStatsErrors = {
6537
- /**
6538
- * Access denied to graph
6539
- */
6540
- 403: ErrorResponse;
6541
- /**
6542
- * Validation Error
6543
- */
6544
- 422: HttpValidationError;
6545
- /**
6546
- * Failed to retrieve usage statistics
6547
- */
6548
- 500: ErrorResponse;
6549
- };
6550
-
6551
- export type GetGraphUsageStatsError = GetGraphUsageStatsErrors[keyof GetGraphUsageStatsErrors];
6552
-
6553
- export type GetGraphUsageStatsResponses = {
6554
- /**
6555
- * Usage statistics retrieved successfully
6556
- */
6557
- 200: GraphUsageResponse;
6558
- };
6559
-
6560
- export type GetGraphUsageStatsResponse = GetGraphUsageStatsResponses[keyof GetGraphUsageStatsResponses];
6561
-
6562
- export type ExecuteCypherQueryData = {
6563
- body: CypherQueryRequest;
6564
- path: {
6565
- /**
6566
- * Graph Id
6567
- */
6568
- graph_id: string;
6569
- };
6570
- query?: {
6571
- /**
6572
- * Mode
6573
- * Response mode override
6574
- */
6575
- mode?: ResponseMode | null;
6576
- /**
6577
- * Chunk Size
6578
- * Rows per chunk for streaming
6579
- */
6580
- chunk_size?: number | null;
6581
- /**
6582
- * Test Mode
6583
- * Enable test mode for better debugging
5943
+ * Time Range
5944
+ * Time range: 24h, 7d, 30d, current_month, last_month
6584
5945
  */
6585
- test_mode?: boolean;
6586
- };
6587
- url: '/v1/graphs/{graph_id}/query';
6588
- };
6589
-
6590
- export type ExecuteCypherQueryErrors = {
6591
- /**
6592
- * Invalid query or parameters
6593
- */
6594
- 400: unknown;
6595
- /**
6596
- * Access denied
6597
- */
6598
- 403: unknown;
6599
- /**
6600
- * Query timeout
6601
- */
6602
- 408: unknown;
6603
- /**
6604
- * Validation Error
6605
- */
6606
- 422: HttpValidationError;
6607
- /**
6608
- * Rate limit exceeded
6609
- */
6610
- 429: unknown;
6611
- /**
6612
- * Internal error
6613
- */
6614
- 500: unknown;
6615
- /**
6616
- * Service unavailable
6617
- */
6618
- 503: unknown;
6619
- };
6620
-
6621
- export type ExecuteCypherQueryError = ExecuteCypherQueryErrors[keyof ExecuteCypherQueryErrors];
6622
-
6623
- export type ExecuteCypherQueryResponses = {
6624
- /**
6625
- * Query executed successfully
6626
- */
6627
- 200: {
6628
- success?: boolean;
6629
- data?: Array<{
6630
- [key: string]: unknown;
6631
- }>;
6632
- columns?: Array<string>;
6633
- row_count?: number;
6634
- execution_time_ms?: number;
6635
- graph_id?: string;
6636
- timestamp?: string;
6637
- };
6638
- /**
6639
- * Query queued for execution
6640
- */
6641
- 202: unknown;
6642
- };
6643
-
6644
- export type ExecuteCypherQueryResponse = ExecuteCypherQueryResponses[keyof ExecuteCypherQueryResponses];
6645
-
6646
- export type GetGraphSchemaData = {
6647
- body?: never;
6648
- path: {
5946
+ time_range?: string;
6649
5947
  /**
6650
- * Graph Id
5948
+ * Include Storage
5949
+ * Include storage usage summary
6651
5950
  */
6652
- graph_id: string;
6653
- };
6654
- query?: never;
6655
- url: '/v1/graphs/{graph_id}/schema';
6656
- };
6657
-
6658
- export type GetGraphSchemaErrors = {
6659
- /**
6660
- * Access denied to graph
6661
- */
6662
- 403: unknown;
6663
- /**
6664
- * Validation Error
6665
- */
6666
- 422: HttpValidationError;
6667
- /**
6668
- * Failed to retrieve schema
6669
- */
6670
- 500: unknown;
6671
- /**
6672
- * Schema operation timed out
6673
- */
6674
- 504: unknown;
6675
- };
6676
-
6677
- export type GetGraphSchemaError = GetGraphSchemaErrors[keyof GetGraphSchemaErrors];
6678
-
6679
- export type GetGraphSchemaResponses = {
6680
- /**
6681
- * Schema information retrieved successfully
6682
- */
6683
- 200: SchemaInfoResponse;
6684
- };
6685
-
6686
- export type GetGraphSchemaResponse = GetGraphSchemaResponses[keyof GetGraphSchemaResponses];
6687
-
6688
- export type ExportGraphSchemaData = {
6689
- body?: never;
6690
- path: {
5951
+ include_storage?: boolean;
6691
5952
  /**
6692
- * Graph Id
5953
+ * Include Credits
5954
+ * Include credit consumption summary
6693
5955
  */
6694
- graph_id: string;
6695
- };
6696
- query?: {
5956
+ include_credits?: boolean;
6697
5957
  /**
6698
- * Format
6699
- * Export format: json, yaml, or cypher
5958
+ * Include Performance
5959
+ * Include performance insights (may be slower)
6700
5960
  */
6701
- format?: string;
5961
+ include_performance?: boolean;
6702
5962
  /**
6703
- * Include Data Stats
6704
- * Include statistics about actual data in the graph (node counts, relationship counts)
5963
+ * Include Events
5964
+ * Include recent usage events
6705
5965
  */
6706
- include_data_stats?: boolean;
5966
+ include_events?: boolean;
6707
5967
  };
6708
- url: '/v1/graphs/{graph_id}/schema/export';
5968
+ url: '/v1/graphs/{graph_id}/analytics/usage';
6709
5969
  };
6710
5970
 
6711
- export type ExportGraphSchemaErrors = {
5971
+ export type GetGraphUsageAnalyticsErrors = {
6712
5972
  /**
6713
5973
  * Access denied to graph
6714
5974
  */
6715
- 403: unknown;
6716
- /**
6717
- * Schema not found for graph
6718
- */
6719
- 404: unknown;
5975
+ 403: ErrorResponse;
6720
5976
  /**
6721
5977
  * Validation Error
6722
5978
  */
6723
5979
  422: HttpValidationError;
6724
5980
  /**
6725
- * Failed to export schema
5981
+ * Failed to retrieve usage analytics
6726
5982
  */
6727
- 500: unknown;
5983
+ 500: ErrorResponse;
6728
5984
  };
6729
5985
 
6730
- export type ExportGraphSchemaError = ExportGraphSchemaErrors[keyof ExportGraphSchemaErrors];
5986
+ export type GetGraphUsageAnalyticsError = GetGraphUsageAnalyticsErrors[keyof GetGraphUsageAnalyticsErrors];
6731
5987
 
6732
- export type ExportGraphSchemaResponses = {
5988
+ export type GetGraphUsageAnalyticsResponses = {
6733
5989
  /**
6734
- * Schema exported successfully
5990
+ * Usage analytics retrieved successfully
6735
5991
  */
6736
- 200: SchemaExportResponse;
5992
+ 200: GraphUsageResponse;
6737
5993
  };
6738
5994
 
6739
- export type ExportGraphSchemaResponse = ExportGraphSchemaResponses[keyof ExportGraphSchemaResponses];
5995
+ export type GetGraphUsageAnalyticsResponse = GetGraphUsageAnalyticsResponses[keyof GetGraphUsageAnalyticsResponses];
6740
5996
 
6741
- export type ValidateSchemaData = {
6742
- /**
6743
- * Schema definition to validate
6744
- */
6745
- body: SchemaValidationRequest;
5997
+ export type ExecuteCypherQueryData = {
5998
+ body: CypherQueryRequest;
6746
5999
  path: {
6747
6000
  /**
6748
6001
  * Graph Id
6749
6002
  */
6750
6003
  graph_id: string;
6751
6004
  };
6752
- query?: never;
6753
- url: '/v1/graphs/{graph_id}/schema/validate';
6754
- };
6755
-
6756
- export type ValidateSchemaErrors = {
6757
- /**
6758
- * Invalid schema format
6759
- */
6760
- 400: ErrorResponse;
6761
- /**
6762
- * Access denied to graph
6763
- */
6764
- 403: ErrorResponse;
6765
- /**
6766
- * Schema validation failed
6767
- */
6768
- 422: ErrorResponse;
6769
- /**
6770
- * Validation error
6771
- */
6772
- 500: ErrorResponse;
6773
- };
6774
-
6775
- export type ValidateSchemaError = ValidateSchemaErrors[keyof ValidateSchemaErrors];
6776
-
6777
- export type ValidateSchemaResponses = {
6778
- /**
6779
- * Schema validation completed
6780
- */
6781
- 200: SchemaValidationResponse;
6782
- };
6783
-
6784
- export type ValidateSchemaResponse = ValidateSchemaResponses[keyof ValidateSchemaResponses];
6785
-
6786
- export type GetCurrentGraphBillData = {
6787
- body?: never;
6788
- path: {
6005
+ query?: {
6789
6006
  /**
6790
- * Graph Id
6007
+ * Mode
6008
+ * Response mode override
6791
6009
  */
6792
- graph_id: string;
6010
+ mode?: ResponseMode | null;
6011
+ /**
6012
+ * Chunk Size
6013
+ * Rows per chunk for streaming
6014
+ */
6015
+ chunk_size?: number | null;
6016
+ /**
6017
+ * Test Mode
6018
+ * Enable test mode for better debugging
6019
+ */
6020
+ test_mode?: boolean;
6793
6021
  };
6794
- query?: never;
6795
- url: '/v1/graphs/{graph_id}/billing/current';
6022
+ url: '/v1/graphs/{graph_id}/query';
6796
6023
  };
6797
6024
 
6798
- export type GetCurrentGraphBillErrors = {
6025
+ export type ExecuteCypherQueryErrors = {
6799
6026
  /**
6800
- * Access denied to graph
6027
+ * Invalid query or parameters
6801
6028
  */
6802
- 403: ErrorResponse;
6029
+ 400: unknown;
6803
6030
  /**
6804
- * Graph not found
6031
+ * Access denied
6805
6032
  */
6806
- 404: ErrorResponse;
6033
+ 403: unknown;
6034
+ /**
6035
+ * Query timeout
6036
+ */
6037
+ 408: unknown;
6807
6038
  /**
6808
6039
  * Validation Error
6809
6040
  */
6810
6041
  422: HttpValidationError;
6811
6042
  /**
6812
- * Failed to calculate bill
6043
+ * Rate limit exceeded
6044
+ */
6045
+ 429: unknown;
6046
+ /**
6047
+ * Internal error
6813
6048
  */
6814
- 500: ErrorResponse;
6049
+ 500: unknown;
6050
+ /**
6051
+ * Service unavailable
6052
+ */
6053
+ 503: unknown;
6815
6054
  };
6816
6055
 
6817
- export type GetCurrentGraphBillError = GetCurrentGraphBillErrors[keyof GetCurrentGraphBillErrors];
6056
+ export type ExecuteCypherQueryError = ExecuteCypherQueryErrors[keyof ExecuteCypherQueryErrors];
6818
6057
 
6819
- export type GetCurrentGraphBillResponses = {
6058
+ export type ExecuteCypherQueryResponses = {
6820
6059
  /**
6821
- * Response Getcurrentgraphbill
6822
- * Current bill retrieved successfully
6060
+ * Query executed successfully
6823
6061
  */
6824
6062
  200: {
6825
- [key: string]: unknown;
6063
+ success?: boolean;
6064
+ data?: Array<{
6065
+ [key: string]: unknown;
6066
+ }>;
6067
+ columns?: Array<string>;
6068
+ row_count?: number;
6069
+ execution_time_ms?: number;
6070
+ graph_id?: string;
6071
+ timestamp?: string;
6826
6072
  };
6073
+ /**
6074
+ * Query queued for execution
6075
+ */
6076
+ 202: unknown;
6827
6077
  };
6828
6078
 
6829
- export type GetCurrentGraphBillResponse = GetCurrentGraphBillResponses[keyof GetCurrentGraphBillResponses];
6079
+ export type ExecuteCypherQueryResponse = ExecuteCypherQueryResponses[keyof ExecuteCypherQueryResponses];
6830
6080
 
6831
- export type GetGraphUsageDetailsData = {
6081
+ export type GetGraphSchemaData = {
6832
6082
  body?: never;
6833
6083
  path: {
6834
6084
  /**
@@ -6836,59 +6086,41 @@ export type GetGraphUsageDetailsData = {
6836
6086
  */
6837
6087
  graph_id: string;
6838
6088
  };
6839
- query?: {
6840
- /**
6841
- * Year
6842
- * Year (defaults to current)
6843
- */
6844
- year?: number | null;
6845
- /**
6846
- * Month
6847
- * Month (defaults to current)
6848
- */
6849
- month?: number | null;
6850
- };
6851
- url: '/v1/graphs/{graph_id}/billing/usage';
6089
+ query?: never;
6090
+ url: '/v1/graphs/{graph_id}/schema';
6852
6091
  };
6853
6092
 
6854
- export type GetGraphUsageDetailsErrors = {
6855
- /**
6856
- * Invalid year or month
6857
- */
6858
- 400: ErrorResponse;
6093
+ export type GetGraphSchemaErrors = {
6859
6094
  /**
6860
6095
  * Access denied to graph
6861
6096
  */
6862
- 403: ErrorResponse;
6863
- /**
6864
- * Graph not found
6865
- */
6866
- 404: ErrorResponse;
6097
+ 403: unknown;
6867
6098
  /**
6868
6099
  * Validation Error
6869
6100
  */
6870
6101
  422: HttpValidationError;
6871
6102
  /**
6872
- * Failed to retrieve usage
6103
+ * Failed to retrieve schema
6104
+ */
6105
+ 500: unknown;
6106
+ /**
6107
+ * Schema operation timed out
6873
6108
  */
6874
- 500: ErrorResponse;
6109
+ 504: unknown;
6875
6110
  };
6876
6111
 
6877
- export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
6112
+ export type GetGraphSchemaError = GetGraphSchemaErrors[keyof GetGraphSchemaErrors];
6878
6113
 
6879
- export type GetGraphUsageDetailsResponses = {
6114
+ export type GetGraphSchemaResponses = {
6880
6115
  /**
6881
- * Response Getgraphusagedetails
6882
- * Usage details retrieved successfully
6116
+ * Schema information retrieved successfully
6883
6117
  */
6884
- 200: {
6885
- [key: string]: unknown;
6886
- };
6118
+ 200: SchemaInfoResponse;
6887
6119
  };
6888
6120
 
6889
- export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
6121
+ export type GetGraphSchemaResponse = GetGraphSchemaResponses[keyof GetGraphSchemaResponses];
6890
6122
 
6891
- export type GetGraphBillingHistoryData = {
6123
+ export type ExportGraphSchemaData = {
6892
6124
  body?: never;
6893
6125
  path: {
6894
6126
  /**
@@ -6898,72 +6130,67 @@ export type GetGraphBillingHistoryData = {
6898
6130
  };
6899
6131
  query?: {
6900
6132
  /**
6901
- * Months
6902
- * Number of months to retrieve (1-24)
6133
+ * Format
6134
+ * Export format: json, yaml, or cypher
6135
+ */
6136
+ format?: string;
6137
+ /**
6138
+ * Include Data Stats
6139
+ * Include statistics about actual data in the graph (node counts, relationship counts)
6903
6140
  */
6904
- months?: number;
6141
+ include_data_stats?: boolean;
6905
6142
  };
6906
- url: '/v1/graphs/{graph_id}/billing/history';
6143
+ url: '/v1/graphs/{graph_id}/schema/export';
6907
6144
  };
6908
6145
 
6909
- export type GetGraphBillingHistoryErrors = {
6146
+ export type ExportGraphSchemaErrors = {
6910
6147
  /**
6911
6148
  * Access denied to graph
6912
6149
  */
6913
- 403: ErrorResponse;
6150
+ 403: unknown;
6914
6151
  /**
6915
- * Graph not found
6152
+ * Schema not found for graph
6916
6153
  */
6917
- 404: ErrorResponse;
6154
+ 404: unknown;
6918
6155
  /**
6919
6156
  * Validation Error
6920
6157
  */
6921
6158
  422: HttpValidationError;
6922
6159
  /**
6923
- * Failed to retrieve history
6160
+ * Failed to export schema
6924
6161
  */
6925
- 500: ErrorResponse;
6162
+ 500: unknown;
6926
6163
  };
6927
6164
 
6928
- export type GetGraphBillingHistoryError = GetGraphBillingHistoryErrors[keyof GetGraphBillingHistoryErrors];
6165
+ export type ExportGraphSchemaError = ExportGraphSchemaErrors[keyof ExportGraphSchemaErrors];
6929
6166
 
6930
- export type GetGraphBillingHistoryResponses = {
6167
+ export type ExportGraphSchemaResponses = {
6931
6168
  /**
6932
- * Response Getgraphbillinghistory
6933
- * Billing history retrieved successfully
6169
+ * Schema exported successfully
6934
6170
  */
6935
- 200: {
6936
- [key: string]: unknown;
6937
- };
6171
+ 200: SchemaExportResponse;
6938
6172
  };
6939
6173
 
6940
- export type GetGraphBillingHistoryResponse = GetGraphBillingHistoryResponses[keyof GetGraphBillingHistoryResponses];
6174
+ export type ExportGraphSchemaResponse = ExportGraphSchemaResponses[keyof ExportGraphSchemaResponses];
6941
6175
 
6942
- export type GetGraphMonthlyBillData = {
6943
- body?: never;
6176
+ export type ValidateSchemaData = {
6177
+ /**
6178
+ * Schema definition to validate
6179
+ */
6180
+ body: SchemaValidationRequest;
6944
6181
  path: {
6945
- /**
6946
- * Year
6947
- * Year (2024-2030)
6948
- */
6949
- year: number;
6950
- /**
6951
- * Month
6952
- * Month (1-12)
6953
- */
6954
- month: number;
6955
6182
  /**
6956
6183
  * Graph Id
6957
6184
  */
6958
6185
  graph_id: string;
6959
6186
  };
6960
6187
  query?: never;
6961
- url: '/v1/graphs/{graph_id}/billing/history/{year}/{month}';
6188
+ url: '/v1/graphs/{graph_id}/schema/validate';
6962
6189
  };
6963
6190
 
6964
- export type GetGraphMonthlyBillErrors = {
6191
+ export type ValidateSchemaErrors = {
6965
6192
  /**
6966
- * Invalid year or month
6193
+ * Invalid schema format
6967
6194
  */
6968
6195
  400: ErrorResponse;
6969
6196
  /**
@@ -6971,32 +6198,25 @@ export type GetGraphMonthlyBillErrors = {
6971
6198
  */
6972
6199
  403: ErrorResponse;
6973
6200
  /**
6974
- * Graph not found or no data for period
6975
- */
6976
- 404: ErrorResponse;
6977
- /**
6978
- * Validation Error
6201
+ * Schema validation failed
6979
6202
  */
6980
- 422: HttpValidationError;
6203
+ 422: ErrorResponse;
6981
6204
  /**
6982
- * Failed to calculate bill
6205
+ * Validation error
6983
6206
  */
6984
6207
  500: ErrorResponse;
6985
6208
  };
6986
6209
 
6987
- export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
6210
+ export type ValidateSchemaError = ValidateSchemaErrors[keyof ValidateSchemaErrors];
6988
6211
 
6989
- export type GetGraphMonthlyBillResponses = {
6212
+ export type ValidateSchemaResponses = {
6990
6213
  /**
6991
- * Response Getgraphmonthlybill
6992
- * Monthly bill retrieved successfully
6214
+ * Schema validation completed
6993
6215
  */
6994
- 200: {
6995
- [key: string]: unknown;
6996
- };
6216
+ 200: SchemaValidationResponse;
6997
6217
  };
6998
6218
 
6999
- export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
6219
+ export type ValidateSchemaResponse = ValidateSchemaResponses[keyof ValidateSchemaResponses];
7000
6220
 
7001
6221
  export type GetCreditSummaryData = {
7002
6222
  body?: never;
@@ -7608,6 +6828,154 @@ export type GetSubgraphQuotaResponses = {
7608
6828
 
7609
6829
  export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
7610
6830
 
6831
+ export type CancelSubscriptionData = {
6832
+ body?: never;
6833
+ path: {
6834
+ /**
6835
+ * Graph Id
6836
+ * Graph ID or repository name
6837
+ */
6838
+ graph_id: string;
6839
+ };
6840
+ query?: never;
6841
+ url: '/v1/graphs/{graph_id}/subscriptions';
6842
+ };
6843
+
6844
+ export type CancelSubscriptionErrors = {
6845
+ /**
6846
+ * Cannot cancel graph subscriptions directly
6847
+ */
6848
+ 400: unknown;
6849
+ /**
6850
+ * No subscription found
6851
+ */
6852
+ 404: unknown;
6853
+ /**
6854
+ * Validation Error
6855
+ */
6856
+ 422: HttpValidationError;
6857
+ };
6858
+
6859
+ export type CancelSubscriptionError = CancelSubscriptionErrors[keyof CancelSubscriptionErrors];
6860
+
6861
+ export type CancelSubscriptionResponses = {
6862
+ /**
6863
+ * Subscription canceled successfully
6864
+ */
6865
+ 200: CancellationResponse;
6866
+ };
6867
+
6868
+ export type CancelSubscriptionResponse = CancelSubscriptionResponses[keyof CancelSubscriptionResponses];
6869
+
6870
+ export type GetGraphSubscriptionData = {
6871
+ body?: never;
6872
+ path: {
6873
+ /**
6874
+ * Graph Id
6875
+ * Graph ID or repository name
6876
+ */
6877
+ graph_id: string;
6878
+ };
6879
+ query?: never;
6880
+ url: '/v1/graphs/{graph_id}/subscriptions';
6881
+ };
6882
+
6883
+ export type GetGraphSubscriptionErrors = {
6884
+ /**
6885
+ * No subscription found
6886
+ */
6887
+ 404: unknown;
6888
+ /**
6889
+ * Validation Error
6890
+ */
6891
+ 422: HttpValidationError;
6892
+ };
6893
+
6894
+ export type GetGraphSubscriptionError = GetGraphSubscriptionErrors[keyof GetGraphSubscriptionErrors];
6895
+
6896
+ export type GetGraphSubscriptionResponses = {
6897
+ /**
6898
+ * Subscription retrieved successfully
6899
+ */
6900
+ 200: GraphSubscriptionResponse;
6901
+ };
6902
+
6903
+ export type GetGraphSubscriptionResponse = GetGraphSubscriptionResponses[keyof GetGraphSubscriptionResponses];
6904
+
6905
+ export type CreateRepositorySubscriptionData = {
6906
+ body: CreateRepositorySubscriptionRequest;
6907
+ path: {
6908
+ /**
6909
+ * Graph Id
6910
+ * Repository name (e.g., 'sec', 'industry')
6911
+ */
6912
+ graph_id: string;
6913
+ };
6914
+ query?: never;
6915
+ url: '/v1/graphs/{graph_id}/subscriptions';
6916
+ };
6917
+
6918
+ export type CreateRepositorySubscriptionErrors = {
6919
+ /**
6920
+ * Invalid request - cannot create subscription for user graphs
6921
+ */
6922
+ 400: unknown;
6923
+ /**
6924
+ * User already has a subscription to this repository
6925
+ */
6926
+ 409: unknown;
6927
+ /**
6928
+ * Validation Error
6929
+ */
6930
+ 422: HttpValidationError;
6931
+ };
6932
+
6933
+ export type CreateRepositorySubscriptionError = CreateRepositorySubscriptionErrors[keyof CreateRepositorySubscriptionErrors];
6934
+
6935
+ export type CreateRepositorySubscriptionResponses = {
6936
+ /**
6937
+ * Repository subscription created successfully
6938
+ */
6939
+ 201: GraphSubscriptionResponse;
6940
+ };
6941
+
6942
+ export type CreateRepositorySubscriptionResponse = CreateRepositorySubscriptionResponses[keyof CreateRepositorySubscriptionResponses];
6943
+
6944
+ export type UpgradeSubscriptionData = {
6945
+ body: UpgradeSubscriptionRequest;
6946
+ path: {
6947
+ /**
6948
+ * Graph Id
6949
+ * Graph ID or repository name
6950
+ */
6951
+ graph_id: string;
6952
+ };
6953
+ query?: never;
6954
+ url: '/v1/graphs/{graph_id}/subscriptions/upgrade';
6955
+ };
6956
+
6957
+ export type UpgradeSubscriptionErrors = {
6958
+ /**
6959
+ * No subscription found
6960
+ */
6961
+ 404: unknown;
6962
+ /**
6963
+ * Validation Error
6964
+ */
6965
+ 422: HttpValidationError;
6966
+ };
6967
+
6968
+ export type UpgradeSubscriptionError = UpgradeSubscriptionErrors[keyof UpgradeSubscriptionErrors];
6969
+
6970
+ export type UpgradeSubscriptionResponses = {
6971
+ /**
6972
+ * Subscription upgraded successfully
6973
+ */
6974
+ 200: GraphSubscriptionResponse;
6975
+ };
6976
+
6977
+ export type UpgradeSubscriptionResponse = UpgradeSubscriptionResponses[keyof UpgradeSubscriptionResponses];
6978
+
7611
6979
  export type ListTablesData = {
7612
6980
  body?: never;
7613
6981
  path: {