@robosystems/client 0.2.8 → 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.d.ts CHANGED
@@ -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.
@@ -2072,6 +2000,72 @@ export type GraphMetricsResponse = {
2072
2000
  [key: string]: unknown;
2073
2001
  };
2074
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
+ };
2075
2069
  /**
2076
2070
  * GraphSubscriptionTier
2077
2071
  * Information about a graph subscription tier.
@@ -2370,26 +2364,29 @@ export type GraphUsageResponse = {
2370
2364
  */
2371
2365
  graph_id: string;
2372
2366
  /**
2373
- * Storage Usage
2374
- * Storage usage information
2367
+ * Time Range
2368
+ * Time range for usage data
2375
2369
  */
2376
- storage_usage: {
2377
- [key: string]: unknown;
2378
- };
2370
+ time_range: string;
2379
2371
  /**
2380
- * Query Statistics
2381
- * Query statistics
2372
+ * Storage usage summary
2382
2373
  */
2383
- query_statistics: {
2384
- [key: string]: unknown;
2385
- };
2374
+ storage_summary?: StorageSummary | null;
2375
+ /**
2376
+ * Credit consumption summary
2377
+ */
2378
+ credit_summary?: CreditSummary | null;
2386
2379
  /**
2387
- * Recent Activity
2388
- * Recent activity summary
2380
+ * Performance analytics
2389
2381
  */
2390
- recent_activity: {
2382
+ performance_insights?: PerformanceInsights | null;
2383
+ /**
2384
+ * Recent Events
2385
+ * Recent usage events
2386
+ */
2387
+ recent_events?: Array<{
2391
2388
  [key: string]: unknown;
2392
- };
2389
+ }>;
2393
2390
  /**
2394
2391
  * Timestamp
2395
2392
  * Usage collection timestamp
@@ -2853,6 +2850,41 @@ export type PasswordPolicyResponse = {
2853
2850
  [key: string]: unknown;
2854
2851
  };
2855
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
+ };
2856
2888
  /**
2857
2889
  * PlaidConnectionConfig
2858
2890
  * Plaid-specific connection configuration.
@@ -2977,31 +3009,6 @@ export type RegisterRequest = {
2977
3009
  */
2978
3010
  captcha_token?: string | null;
2979
3011
  };
2980
- /**
2981
- * RepositoryCreditsResponse
2982
- * Response for repository-specific credits.
2983
- */
2984
- export type RepositoryCreditsResponse = {
2985
- /**
2986
- * Repository
2987
- * Repository identifier
2988
- */
2989
- repository: string;
2990
- /**
2991
- * Has Access
2992
- * Whether user has access
2993
- */
2994
- has_access: boolean;
2995
- /**
2996
- * Message
2997
- * Access message
2998
- */
2999
- message?: string | null;
3000
- /**
3001
- * Credit summary if access available
3002
- */
3003
- credits?: CreditSummary | null;
3004
- };
3005
3012
  /**
3006
3013
  * RepositoryInfo
3007
3014
  * Information about a shared repository.
@@ -3038,11 +3045,6 @@ export type RepositoryInfo = {
3038
3045
  */
3039
3046
  plans: Array<OfferingRepositoryPlan>;
3040
3047
  };
3041
- /**
3042
- * RepositoryPlan
3043
- * Repository access plans for shared data.
3044
- */
3045
- export type RepositoryPlan = 'starter' | 'advanced' | 'unlimited';
3046
3048
  /**
3047
3049
  * RepositorySubscriptions
3048
3050
  * Repository subscription offerings.
@@ -3064,11 +3066,6 @@ export type RepositorySubscriptions = {
3064
3066
  */
3065
3067
  notes: Array<string>;
3066
3068
  };
3067
- /**
3068
- * RepositoryType
3069
- * Types of shared repositories.
3070
- */
3071
- export type RepositoryType = 'sec' | 'industry' | 'economic';
3072
3069
  /**
3073
3070
  * ResetPasswordRequest
3074
3071
  * Reset password request model.
@@ -3476,6 +3473,42 @@ export type StorageLimits = {
3476
3473
  */
3477
3474
  approaching_limit: boolean;
3478
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
+ };
3479
3512
  /**
3480
3513
  * SubgraphQuotaResponse
3481
3514
  * Response model for subgraph quota information.
@@ -3649,93 +3682,6 @@ export type SubgraphSummary = {
3649
3682
  * Types of subgraphs.
3650
3683
  */
3651
3684
  export type SubgraphType = 'static' | 'temporal' | 'versioned' | 'memory';
3652
- /**
3653
- * SubscriptionInfo
3654
- * User subscription information.
3655
- */
3656
- export type SubscriptionInfo = {
3657
- /**
3658
- * Id
3659
- * Subscription ID
3660
- */
3661
- id: string;
3662
- /**
3663
- * User Id
3664
- * User ID
3665
- */
3666
- user_id: string;
3667
- /**
3668
- * Addon Type
3669
- * Add-on type
3670
- */
3671
- addon_type: string;
3672
- /**
3673
- * Addon Tier
3674
- * Subscription tier
3675
- */
3676
- addon_tier: string;
3677
- /**
3678
- * Is Active
3679
- * Whether subscription is active
3680
- */
3681
- is_active: boolean;
3682
- /**
3683
- * Activated At
3684
- * Activation date (ISO format)
3685
- */
3686
- activated_at: string;
3687
- /**
3688
- * Expires At
3689
- * Expiration date (ISO format)
3690
- */
3691
- expires_at?: string | null;
3692
- /**
3693
- * Monthly Price Cents
3694
- * Monthly price in cents
3695
- */
3696
- monthly_price_cents: number;
3697
- /**
3698
- * Features
3699
- * List of features
3700
- */
3701
- features: Array<string>;
3702
- /**
3703
- * Metadata
3704
- * Additional metadata
3705
- */
3706
- metadata: {
3707
- [key: string]: unknown;
3708
- };
3709
- };
3710
- /**
3711
- * SubscriptionRequest
3712
- * Request to create a new subscription.
3713
- */
3714
- export type SubscriptionRequest = {
3715
- /**
3716
- * Type of repository to subscribe to
3717
- */
3718
- repository_type: RepositoryType;
3719
- /**
3720
- * Repository plan
3721
- */
3722
- repository_plan?: RepositoryPlan;
3723
- };
3724
- /**
3725
- * SubscriptionResponse
3726
- * Response for subscription creation.
3727
- */
3728
- export type SubscriptionResponse = {
3729
- /**
3730
- * Message
3731
- * Success message
3732
- */
3733
- message: string;
3734
- /**
3735
- * Created subscription details
3736
- */
3737
- subscription: SubscriptionInfo;
3738
- };
3739
3685
  /**
3740
3686
  * SuccessResponse
3741
3687
  * Standard success response for operations without specific return data.
@@ -3892,16 +3838,6 @@ export type TableQueryResponse = {
3892
3838
  */
3893
3839
  execution_time_ms: number;
3894
3840
  };
3895
- /**
3896
- * TierUpgradeRequest
3897
- * Request to upgrade subscription tier.
3898
- */
3899
- export type TierUpgradeRequest = {
3900
- /**
3901
- * New repository plan
3902
- */
3903
- new_plan: RepositoryPlan;
3904
- };
3905
3841
  /**
3906
3842
  * TokenPricing
3907
3843
  * AI token pricing for a specific model.
@@ -4002,105 +3938,29 @@ export type UpdateUserRequest = {
4002
3938
  email?: string | null;
4003
3939
  };
4004
3940
  /**
4005
- * UserAnalyticsResponse
4006
- * Response model for comprehensive user analytics.
3941
+ * UpgradeSubscriptionRequest
3942
+ * Request to upgrade a subscription.
4007
3943
  */
4008
- export type UserAnalyticsResponse = {
4009
- /**
4010
- * User Info
4011
- * User information
4012
- */
4013
- user_info: {
4014
- [key: string]: unknown;
4015
- };
4016
- /**
4017
- * Graph Usage
4018
- * Graph usage statistics
4019
- */
4020
- graph_usage: {
4021
- [key: string]: unknown;
4022
- };
3944
+ export type UpgradeSubscriptionRequest = {
4023
3945
  /**
4024
- * Api Usage
4025
- * API usage statistics
3946
+ * New Plan Name
3947
+ * New plan name to upgrade to
4026
3948
  */
4027
- api_usage: {
4028
- [key: string]: unknown;
4029
- };
3949
+ new_plan_name: string;
3950
+ };
3951
+ /**
3952
+ * UserGraphsResponse
3953
+ * User graphs response model.
3954
+ */
3955
+ export type UserGraphsResponse = {
4030
3956
  /**
4031
- * Limits
4032
- * Current limits and restrictions
3957
+ * Graphs
3958
+ * List of accessible graphs
4033
3959
  */
4034
- limits: {
4035
- [key: string]: unknown;
4036
- };
3960
+ graphs: Array<GraphInfo>;
4037
3961
  /**
4038
- * Recent Activity
4039
- * Recent user activity
4040
- */
4041
- recent_activity: Array<{
4042
- [key: string]: unknown;
4043
- }>;
4044
- /**
4045
- * Timestamp
4046
- * Analytics generation timestamp
4047
- */
4048
- timestamp: string;
4049
- };
4050
- /**
4051
- * UserGraphSummary
4052
- * Summary of a single graph for user analytics.
4053
- */
4054
- export type UserGraphSummary = {
4055
- /**
4056
- * Graph Id
4057
- * Graph database identifier
4058
- */
4059
- graph_id: string;
4060
- /**
4061
- * Graph Name
4062
- * Display name for the graph
4063
- */
4064
- graph_name?: string | null;
4065
- /**
4066
- * Role
4067
- * User's role in this graph
4068
- */
4069
- role: string;
4070
- /**
4071
- * Total Nodes
4072
- * Total number of nodes
4073
- */
4074
- total_nodes: number;
4075
- /**
4076
- * Total Relationships
4077
- * Total number of relationships
4078
- */
4079
- total_relationships: number;
4080
- /**
4081
- * Estimated Size Mb
4082
- * Estimated database size in MB
4083
- */
4084
- estimated_size_mb: number;
4085
- /**
4086
- * Last Accessed
4087
- * Last access timestamp
4088
- */
4089
- last_accessed?: string | null;
4090
- };
4091
- /**
4092
- * UserGraphsResponse
4093
- * User graphs response model.
4094
- */
4095
- export type UserGraphsResponse = {
4096
- /**
4097
- * Graphs
4098
- * List of accessible graphs
4099
- */
4100
- graphs: Array<GraphInfo>;
4101
- /**
4102
- * Selectedgraphid
4103
- * Currently selected graph ID
3962
+ * Selectedgraphid
3963
+ * Currently selected graph ID
4104
3964
  */
4105
3965
  selectedGraphId?: string | null;
4106
3966
  };
@@ -4164,27 +4024,6 @@ export type UserResponse = {
4164
4024
  */
4165
4025
  accounts?: Array<AccountInfo>;
4166
4026
  };
4167
- /**
4168
- * UserSubscriptionsResponse
4169
- * Response for user subscriptions.
4170
- */
4171
- export type UserSubscriptionsResponse = {
4172
- /**
4173
- * Subscriptions
4174
- * List of user subscriptions
4175
- */
4176
- subscriptions: Array<SubscriptionInfo>;
4177
- /**
4178
- * Total Count
4179
- * Total number of subscriptions
4180
- */
4181
- total_count: number;
4182
- /**
4183
- * Active Count
4184
- * Number of active subscriptions
4185
- */
4186
- active_count: number;
4187
- };
4188
4027
  /**
4189
4028
  * UserUsageResponse
4190
4029
  * Response model for user usage statistics.
@@ -4210,49 +4049,6 @@ export type UserUsageResponse = {
4210
4049
  */
4211
4050
  limits: UserLimitsResponse;
4212
4051
  };
4213
- /**
4214
- * UserUsageSummaryResponse
4215
- * Response model for user usage summary.
4216
- */
4217
- export type UserUsageSummaryResponse = {
4218
- /**
4219
- * User Id
4220
- * User identifier
4221
- */
4222
- user_id: string;
4223
- /**
4224
- * Graph Count
4225
- * Number of accessible graphs
4226
- */
4227
- graph_count: number;
4228
- /**
4229
- * Total Nodes
4230
- * Total nodes across all graphs
4231
- */
4232
- total_nodes: number;
4233
- /**
4234
- * Total Relationships
4235
- * Total relationships across all graphs
4236
- */
4237
- total_relationships: number;
4238
- /**
4239
- * Usage Vs Limits
4240
- * Usage compared to limits
4241
- */
4242
- usage_vs_limits: {
4243
- [key: string]: unknown;
4244
- };
4245
- /**
4246
- * Graphs
4247
- * Summary of each graph
4248
- */
4249
- graphs: Array<UserGraphSummary>;
4250
- /**
4251
- * Timestamp
4252
- * Summary generation timestamp
4253
- */
4254
- timestamp: string;
4255
- };
4256
4052
  /**
4257
4053
  * ValidationError
4258
4054
  */
@@ -4688,29 +4484,6 @@ export type UpdateUserResponses = {
4688
4484
  200: UserResponse;
4689
4485
  };
4690
4486
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
4691
- export type GetAllCreditSummariesData = {
4692
- body?: never;
4693
- path?: never;
4694
- query?: never;
4695
- url: '/v1/user/credits';
4696
- };
4697
- export type GetAllCreditSummariesErrors = {
4698
- /**
4699
- * Failed to retrieve credit summaries
4700
- */
4701
- 500: ErrorResponse;
4702
- };
4703
- export type GetAllCreditSummariesError = GetAllCreditSummariesErrors[keyof GetAllCreditSummariesErrors];
4704
- export type GetAllCreditSummariesResponses = {
4705
- /**
4706
- * Response Getallcreditsummaries
4707
- * Credit summaries retrieved successfully
4708
- */
4709
- 200: {
4710
- [key: string]: unknown;
4711
- };
4712
- };
4713
- export type GetAllCreditSummariesResponse = GetAllCreditSummariesResponses[keyof GetAllCreditSummariesResponses];
4714
4487
  export type UpdateUserPasswordData = {
4715
4488
  body: UpdatePasswordRequest;
4716
4489
  path?: never;
@@ -4818,342 +4591,35 @@ export type UpdateUserApiKeyData = {
4818
4591
  api_key_id: string;
4819
4592
  };
4820
4593
  query?: never;
4821
- url: '/v1/user/api-keys/{api_key_id}';
4822
- };
4823
- export type UpdateUserApiKeyErrors = {
4824
- /**
4825
- * Validation Error
4826
- */
4827
- 422: HttpValidationError;
4828
- };
4829
- export type UpdateUserApiKeyError = UpdateUserApiKeyErrors[keyof UpdateUserApiKeyErrors];
4830
- export type UpdateUserApiKeyResponses = {
4831
- /**
4832
- * Successful Response
4833
- */
4834
- 200: ApiKeyInfo;
4835
- };
4836
- export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
4837
- export type GetUserLimitsData = {
4838
- body?: never;
4839
- path?: never;
4840
- query?: never;
4841
- url: '/v1/user/limits';
4842
- };
4843
- export type GetUserLimitsErrors = {
4844
- /**
4845
- * User limits not found
4846
- */
4847
- 404: unknown;
4848
- };
4849
- export type GetUserLimitsResponses = {
4850
- /**
4851
- * User limits retrieved successfully
4852
- */
4853
- 200: UserLimitsResponse;
4854
- };
4855
- export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
4856
- export type GetUserUsageData = {
4857
- body?: never;
4858
- path?: never;
4859
- query?: never;
4860
- url: '/v1/user/limits/usage';
4861
- };
4862
- export type GetUserUsageResponses = {
4863
- /**
4864
- * User usage statistics retrieved successfully
4865
- */
4866
- 200: UserUsageResponse;
4867
- };
4868
- export type GetUserUsageResponse = GetUserUsageResponses[keyof GetUserUsageResponses];
4869
- export type GetAllSharedRepositoryLimitsData = {
4870
- body?: never;
4871
- path?: never;
4872
- query?: never;
4873
- url: '/v1/user/limits/shared-repositories/summary';
4874
- };
4875
- export type GetAllSharedRepositoryLimitsResponses = {
4876
- /**
4877
- * Response Getallsharedrepositorylimits
4878
- * Successful Response
4879
- */
4880
- 200: {
4881
- [key: string]: unknown;
4882
- };
4883
- };
4884
- export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
4885
- export type GetSharedRepositoryLimitsData = {
4886
- body?: never;
4887
- path: {
4888
- /**
4889
- * Repository
4890
- * Repository name (e.g., 'sec')
4891
- */
4892
- repository: string;
4893
- };
4894
- query?: never;
4895
- url: '/v1/user/limits/shared-repositories/{repository}';
4896
- };
4897
- export type GetSharedRepositoryLimitsErrors = {
4898
- /**
4899
- * Validation Error
4900
- */
4901
- 422: HttpValidationError;
4902
- };
4903
- export type GetSharedRepositoryLimitsError = GetSharedRepositoryLimitsErrors[keyof GetSharedRepositoryLimitsErrors];
4904
- export type GetSharedRepositoryLimitsResponses = {
4905
- /**
4906
- * Response Getsharedrepositorylimits
4907
- * Successful Response
4908
- */
4909
- 200: {
4910
- [key: string]: unknown;
4911
- };
4912
- };
4913
- export type GetSharedRepositoryLimitsResponse = GetSharedRepositoryLimitsResponses[keyof GetSharedRepositoryLimitsResponses];
4914
- export type GetUserUsageOverviewData = {
4915
- body?: never;
4916
- path?: never;
4917
- query?: never;
4918
- url: '/v1/user/analytics/overview';
4919
- };
4920
- export type GetUserUsageOverviewResponses = {
4921
- /**
4922
- * Successful Response
4923
- */
4924
- 200: UserUsageSummaryResponse;
4925
- };
4926
- export type GetUserUsageOverviewResponse = GetUserUsageOverviewResponses[keyof GetUserUsageOverviewResponses];
4927
- export type GetDetailedUserAnalyticsData = {
4928
- body?: never;
4929
- path?: never;
4930
- query?: {
4931
- /**
4932
- * Include Api Stats
4933
- * Include API usage statistics
4934
- */
4935
- include_api_stats?: boolean;
4936
- /**
4937
- * Include Recent Activity
4938
- * Include recent activity
4939
- */
4940
- include_recent_activity?: boolean;
4941
- };
4942
- url: '/v1/user/analytics/detailed';
4943
- };
4944
- export type GetDetailedUserAnalyticsErrors = {
4945
- /**
4946
- * Validation Error
4947
- */
4948
- 422: HttpValidationError;
4949
- };
4950
- export type GetDetailedUserAnalyticsError = GetDetailedUserAnalyticsErrors[keyof GetDetailedUserAnalyticsErrors];
4951
- export type GetDetailedUserAnalyticsResponses = {
4952
- /**
4953
- * Successful Response
4954
- */
4955
- 200: UserAnalyticsResponse;
4956
- };
4957
- export type GetDetailedUserAnalyticsResponse = GetDetailedUserAnalyticsResponses[keyof GetDetailedUserAnalyticsResponses];
4958
- export type GetUserSharedSubscriptionsData = {
4959
- body?: never;
4960
- path?: never;
4961
- query?: {
4962
- /**
4963
- * Active Only
4964
- * Only return active subscriptions
4965
- */
4966
- active_only?: boolean;
4967
- };
4968
- url: '/v1/user/subscriptions/shared-repositories';
4969
- };
4970
- export type GetUserSharedSubscriptionsErrors = {
4971
- /**
4972
- * Authentication required
4973
- */
4974
- 401: unknown;
4975
- /**
4976
- * Validation Error
4977
- */
4978
- 422: HttpValidationError;
4979
- /**
4980
- * Internal server error
4981
- */
4982
- 500: unknown;
4983
- };
4984
- export type GetUserSharedSubscriptionsError = GetUserSharedSubscriptionsErrors[keyof GetUserSharedSubscriptionsErrors];
4985
- export type GetUserSharedSubscriptionsResponses = {
4986
- /**
4987
- * Successfully retrieved user subscriptions
4988
- */
4989
- 200: UserSubscriptionsResponse;
4990
- };
4991
- export type GetUserSharedSubscriptionsResponse = GetUserSharedSubscriptionsResponses[keyof GetUserSharedSubscriptionsResponses];
4992
- export type SubscribeToSharedRepositoryData = {
4993
- body: SubscriptionRequest;
4994
- path?: never;
4995
- query?: never;
4996
- url: '/v1/user/subscriptions/shared-repositories/subscribe';
4997
- };
4998
- export type SubscribeToSharedRepositoryErrors = {
4999
- /**
5000
- * Invalid add-on type or tier, or user already has active subscription
5001
- */
5002
- 400: unknown;
5003
- /**
5004
- * Authentication required
5005
- */
5006
- 401: unknown;
5007
- /**
5008
- * Validation Error
5009
- */
5010
- 422: HttpValidationError;
5011
- /**
5012
- * Internal server error
5013
- */
5014
- 500: unknown;
5015
- };
5016
- export type SubscribeToSharedRepositoryError = SubscribeToSharedRepositoryErrors[keyof SubscribeToSharedRepositoryErrors];
5017
- export type SubscribeToSharedRepositoryResponses = {
5018
- /**
5019
- * Successfully subscribed to shared repository
5020
- */
5021
- 201: SubscriptionResponse;
5022
- };
5023
- export type SubscribeToSharedRepositoryResponse = SubscribeToSharedRepositoryResponses[keyof SubscribeToSharedRepositoryResponses];
5024
- export type UpgradeSharedRepositorySubscriptionData = {
5025
- body: TierUpgradeRequest;
5026
- path: {
5027
- /**
5028
- * Subscription Id
5029
- */
5030
- subscription_id: string;
5031
- };
5032
- query?: never;
5033
- url: '/v1/user/subscriptions/shared-repositories/{subscription_id}/upgrade';
5034
- };
5035
- export type UpgradeSharedRepositorySubscriptionErrors = {
5036
- /**
5037
- * Invalid tier for add-on type
5038
- */
5039
- 400: unknown;
5040
- /**
5041
- * Authentication required
5042
- */
5043
- 401: unknown;
5044
- /**
5045
- * Subscription not found or not owned by user
5046
- */
5047
- 404: unknown;
5048
- /**
5049
- * Validation Error
5050
- */
5051
- 422: HttpValidationError;
5052
- /**
5053
- * Internal server error
5054
- */
5055
- 500: unknown;
5056
- };
5057
- export type UpgradeSharedRepositorySubscriptionError = UpgradeSharedRepositorySubscriptionErrors[keyof UpgradeSharedRepositorySubscriptionErrors];
5058
- export type UpgradeSharedRepositorySubscriptionResponses = {
5059
- /**
5060
- * Successfully upgraded subscription tier
5061
- */
5062
- 200: unknown;
5063
- };
5064
- export type CancelSharedRepositorySubscriptionData = {
5065
- body?: never;
5066
- path: {
5067
- /**
5068
- * Subscription Id
5069
- */
5070
- subscription_id: string;
5071
- };
5072
- query?: never;
5073
- url: '/v1/user/subscriptions/shared-repositories/{subscription_id}';
5074
- };
5075
- export type CancelSharedRepositorySubscriptionErrors = {
5076
- /**
5077
- * Authentication required
5078
- */
5079
- 401: unknown;
5080
- /**
5081
- * Subscription not found or not owned by user
5082
- */
5083
- 404: unknown;
5084
- /**
5085
- * Validation Error
5086
- */
5087
- 422: HttpValidationError;
5088
- /**
5089
- * Internal server error
5090
- */
5091
- 500: unknown;
5092
- };
5093
- export type CancelSharedRepositorySubscriptionError = CancelSharedRepositorySubscriptionErrors[keyof CancelSharedRepositorySubscriptionErrors];
5094
- export type CancelSharedRepositorySubscriptionResponses = {
5095
- /**
5096
- * Successfully cancelled subscription
5097
- */
5098
- 200: CancellationResponse;
5099
- };
5100
- export type CancelSharedRepositorySubscriptionResponse = CancelSharedRepositorySubscriptionResponses[keyof CancelSharedRepositorySubscriptionResponses];
5101
- export type GetSharedRepositoryCreditsData = {
5102
- body?: never;
5103
- path?: never;
5104
- query?: never;
5105
- url: '/v1/user/subscriptions/shared-repositories/credits';
5106
- };
5107
- export type GetSharedRepositoryCreditsErrors = {
5108
- /**
5109
- * Authentication required
5110
- */
5111
- 401: unknown;
5112
- /**
5113
- * Internal server error
5114
- */
5115
- 500: unknown;
5116
- };
5117
- export type GetSharedRepositoryCreditsResponses = {
5118
- /**
5119
- * Successfully retrieved credit balances
5120
- */
5121
- 200: CreditsSummaryResponse;
5122
- };
5123
- export type GetSharedRepositoryCreditsResponse = GetSharedRepositoryCreditsResponses[keyof GetSharedRepositoryCreditsResponses];
5124
- export type GetRepositoryCreditsData = {
5125
- body?: never;
5126
- path: {
5127
- /**
5128
- * Repository
5129
- */
5130
- repository: string;
5131
- };
5132
- query?: never;
5133
- url: '/v1/user/subscriptions/shared-repositories/credits/{repository}';
4594
+ url: '/v1/user/api-keys/{api_key_id}';
5134
4595
  };
5135
- export type GetRepositoryCreditsErrors = {
5136
- /**
5137
- * Authentication required
5138
- */
5139
- 401: unknown;
4596
+ export type UpdateUserApiKeyErrors = {
5140
4597
  /**
5141
4598
  * Validation Error
5142
4599
  */
5143
4600
  422: HttpValidationError;
4601
+ };
4602
+ export type UpdateUserApiKeyError = UpdateUserApiKeyErrors[keyof UpdateUserApiKeyErrors];
4603
+ export type UpdateUserApiKeyResponses = {
5144
4604
  /**
5145
- * Internal server error
4605
+ * Successful Response
5146
4606
  */
5147
- 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';
5148
4615
  };
5149
- export type GetRepositoryCreditsError = GetRepositoryCreditsErrors[keyof GetRepositoryCreditsErrors];
5150
- export type GetRepositoryCreditsResponses = {
4616
+ export type GetUserLimitsResponses = {
5151
4617
  /**
5152
- * Successfully retrieved repository credits
4618
+ * User limits and usage retrieved successfully
5153
4619
  */
5154
- 200: RepositoryCreditsResponse;
4620
+ 200: UserUsageResponse;
5155
4621
  };
5156
- export type GetRepositoryCreditsResponse = GetRepositoryCreditsResponses[keyof GetRepositoryCreditsResponses];
4622
+ export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
5157
4623
  export type ListConnectionsData = {
5158
4624
  body?: never;
5159
4625
  path: {
@@ -6100,7 +5566,7 @@ export type GetGraphMetricsResponses = {
6100
5566
  200: GraphMetricsResponse;
6101
5567
  };
6102
5568
  export type GetGraphMetricsResponse = GetGraphMetricsResponses[keyof GetGraphMetricsResponses];
6103
- export type GetGraphUsageStatsData = {
5569
+ export type GetGraphUsageAnalyticsData = {
6104
5570
  body?: never;
6105
5571
  path: {
6106
5572
  /**
@@ -6110,14 +5576,34 @@ export type GetGraphUsageStatsData = {
6110
5576
  };
6111
5577
  query?: {
6112
5578
  /**
6113
- * Include Details
6114
- * 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
6115
5586
  */
6116
- 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;
6117
5603
  };
6118
5604
  url: '/v1/graphs/{graph_id}/analytics/usage';
6119
5605
  };
6120
- export type GetGraphUsageStatsErrors = {
5606
+ export type GetGraphUsageAnalyticsErrors = {
6121
5607
  /**
6122
5608
  * Access denied to graph
6123
5609
  */
@@ -6127,18 +5613,18 @@ export type GetGraphUsageStatsErrors = {
6127
5613
  */
6128
5614
  422: HttpValidationError;
6129
5615
  /**
6130
- * Failed to retrieve usage statistics
5616
+ * Failed to retrieve usage analytics
6131
5617
  */
6132
5618
  500: ErrorResponse;
6133
5619
  };
6134
- export type GetGraphUsageStatsError = GetGraphUsageStatsErrors[keyof GetGraphUsageStatsErrors];
6135
- export type GetGraphUsageStatsResponses = {
5620
+ export type GetGraphUsageAnalyticsError = GetGraphUsageAnalyticsErrors[keyof GetGraphUsageAnalyticsErrors];
5621
+ export type GetGraphUsageAnalyticsResponses = {
6136
5622
  /**
6137
- * Usage statistics retrieved successfully
5623
+ * Usage analytics retrieved successfully
6138
5624
  */
6139
5625
  200: GraphUsageResponse;
6140
5626
  };
6141
- export type GetGraphUsageStatsResponse = GetGraphUsageStatsResponses[keyof GetGraphUsageStatsResponses];
5627
+ export type GetGraphUsageAnalyticsResponse = GetGraphUsageAnalyticsResponses[keyof GetGraphUsageAnalyticsResponses];
6142
5628
  export type ExecuteCypherQueryData = {
6143
5629
  body: CypherQueryRequest;
6144
5630
  path: {
@@ -6343,201 +5829,6 @@ export type ValidateSchemaResponses = {
6343
5829
  200: SchemaValidationResponse;
6344
5830
  };
6345
5831
  export type ValidateSchemaResponse = ValidateSchemaResponses[keyof ValidateSchemaResponses];
6346
- export type GetCurrentGraphBillData = {
6347
- body?: never;
6348
- path: {
6349
- /**
6350
- * Graph Id
6351
- */
6352
- graph_id: string;
6353
- };
6354
- query?: never;
6355
- url: '/v1/graphs/{graph_id}/billing/current';
6356
- };
6357
- export type GetCurrentGraphBillErrors = {
6358
- /**
6359
- * Access denied to graph
6360
- */
6361
- 403: ErrorResponse;
6362
- /**
6363
- * Graph not found
6364
- */
6365
- 404: ErrorResponse;
6366
- /**
6367
- * Validation Error
6368
- */
6369
- 422: HttpValidationError;
6370
- /**
6371
- * Failed to calculate bill
6372
- */
6373
- 500: ErrorResponse;
6374
- };
6375
- export type GetCurrentGraphBillError = GetCurrentGraphBillErrors[keyof GetCurrentGraphBillErrors];
6376
- export type GetCurrentGraphBillResponses = {
6377
- /**
6378
- * Response Getcurrentgraphbill
6379
- * Current bill retrieved successfully
6380
- */
6381
- 200: {
6382
- [key: string]: unknown;
6383
- };
6384
- };
6385
- export type GetCurrentGraphBillResponse = GetCurrentGraphBillResponses[keyof GetCurrentGraphBillResponses];
6386
- export type GetGraphUsageDetailsData = {
6387
- body?: never;
6388
- path: {
6389
- /**
6390
- * Graph Id
6391
- */
6392
- graph_id: string;
6393
- };
6394
- query?: {
6395
- /**
6396
- * Year
6397
- * Year (defaults to current)
6398
- */
6399
- year?: number | null;
6400
- /**
6401
- * Month
6402
- * Month (defaults to current)
6403
- */
6404
- month?: number | null;
6405
- };
6406
- url: '/v1/graphs/{graph_id}/billing/usage';
6407
- };
6408
- export type GetGraphUsageDetailsErrors = {
6409
- /**
6410
- * Invalid year or month
6411
- */
6412
- 400: ErrorResponse;
6413
- /**
6414
- * Access denied to graph
6415
- */
6416
- 403: ErrorResponse;
6417
- /**
6418
- * Graph not found
6419
- */
6420
- 404: ErrorResponse;
6421
- /**
6422
- * Validation Error
6423
- */
6424
- 422: HttpValidationError;
6425
- /**
6426
- * Failed to retrieve usage
6427
- */
6428
- 500: ErrorResponse;
6429
- };
6430
- export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
6431
- export type GetGraphUsageDetailsResponses = {
6432
- /**
6433
- * Response Getgraphusagedetails
6434
- * Usage details retrieved successfully
6435
- */
6436
- 200: {
6437
- [key: string]: unknown;
6438
- };
6439
- };
6440
- export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
6441
- export type GetGraphBillingHistoryData = {
6442
- body?: never;
6443
- path: {
6444
- /**
6445
- * Graph Id
6446
- */
6447
- graph_id: string;
6448
- };
6449
- query?: {
6450
- /**
6451
- * Months
6452
- * Number of months to retrieve (1-24)
6453
- */
6454
- months?: number;
6455
- };
6456
- url: '/v1/graphs/{graph_id}/billing/history';
6457
- };
6458
- export type GetGraphBillingHistoryErrors = {
6459
- /**
6460
- * Access denied to graph
6461
- */
6462
- 403: ErrorResponse;
6463
- /**
6464
- * Graph not found
6465
- */
6466
- 404: ErrorResponse;
6467
- /**
6468
- * Validation Error
6469
- */
6470
- 422: HttpValidationError;
6471
- /**
6472
- * Failed to retrieve history
6473
- */
6474
- 500: ErrorResponse;
6475
- };
6476
- export type GetGraphBillingHistoryError = GetGraphBillingHistoryErrors[keyof GetGraphBillingHistoryErrors];
6477
- export type GetGraphBillingHistoryResponses = {
6478
- /**
6479
- * Response Getgraphbillinghistory
6480
- * Billing history retrieved successfully
6481
- */
6482
- 200: {
6483
- [key: string]: unknown;
6484
- };
6485
- };
6486
- export type GetGraphBillingHistoryResponse = GetGraphBillingHistoryResponses[keyof GetGraphBillingHistoryResponses];
6487
- export type GetGraphMonthlyBillData = {
6488
- body?: never;
6489
- path: {
6490
- /**
6491
- * Year
6492
- * Year (2024-2030)
6493
- */
6494
- year: number;
6495
- /**
6496
- * Month
6497
- * Month (1-12)
6498
- */
6499
- month: number;
6500
- /**
6501
- * Graph Id
6502
- */
6503
- graph_id: string;
6504
- };
6505
- query?: never;
6506
- url: '/v1/graphs/{graph_id}/billing/history/{year}/{month}';
6507
- };
6508
- export type GetGraphMonthlyBillErrors = {
6509
- /**
6510
- * Invalid year or month
6511
- */
6512
- 400: ErrorResponse;
6513
- /**
6514
- * Access denied to graph
6515
- */
6516
- 403: ErrorResponse;
6517
- /**
6518
- * Graph not found or no data for period
6519
- */
6520
- 404: ErrorResponse;
6521
- /**
6522
- * Validation Error
6523
- */
6524
- 422: HttpValidationError;
6525
- /**
6526
- * Failed to calculate bill
6527
- */
6528
- 500: ErrorResponse;
6529
- };
6530
- export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
6531
- export type GetGraphMonthlyBillResponses = {
6532
- /**
6533
- * Response Getgraphmonthlybill
6534
- * Monthly bill retrieved successfully
6535
- */
6536
- 200: {
6537
- [key: string]: unknown;
6538
- };
6539
- };
6540
- export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
6541
5832
  export type GetCreditSummaryData = {
6542
5833
  body?: never;
6543
5834
  path: {
@@ -7083,6 +6374,134 @@ export type GetSubgraphQuotaResponses = {
7083
6374
  200: SubgraphQuotaResponse;
7084
6375
  };
7085
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];
7086
6505
  export type ListTablesData = {
7087
6506
  body?: never;
7088
6507
  path: {