@robosystems/client 0.2.9 → 0.2.11

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
@@ -376,6 +376,13 @@ export type AuthResponse = {
376
376
  user: {
377
377
  [key: string]: unknown;
378
378
  };
379
+ /**
380
+ * Org
381
+ * Organization information (personal org created automatically on registration)
382
+ */
383
+ org?: {
384
+ [key: string]: unknown;
385
+ } | null;
379
386
  /**
380
387
  * Message
381
388
  * Success message
@@ -732,6 +739,43 @@ export type BatchAgentResponse = {
732
739
  parallel_processed: boolean;
733
740
  };
734
741
 
742
+ /**
743
+ * BillingCustomer
744
+ * Billing customer information for an organization.
745
+ */
746
+ export type BillingCustomer = {
747
+ /**
748
+ * Org Id
749
+ * Organization ID
750
+ */
751
+ org_id: string;
752
+ /**
753
+ * Has Payment Method
754
+ * Whether organization has a payment method on file
755
+ */
756
+ has_payment_method: boolean;
757
+ /**
758
+ * Invoice Billing Enabled
759
+ * Whether invoice billing is enabled (enterprise customers)
760
+ */
761
+ invoice_billing_enabled: boolean;
762
+ /**
763
+ * Payment Methods
764
+ * List of payment methods on file
765
+ */
766
+ payment_methods: Array<PaymentMethod>;
767
+ /**
768
+ * Stripe Customer Id
769
+ * Stripe customer ID if applicable
770
+ */
771
+ stripe_customer_id?: string | null;
772
+ /**
773
+ * Created At
774
+ * Customer creation timestamp (ISO format)
775
+ */
776
+ created_at: string;
777
+ };
778
+
735
779
  /**
736
780
  * BulkIngestRequest
737
781
  */
@@ -821,6 +865,70 @@ export type CancellationResponse = {
821
865
  cancelled_at: string;
822
866
  };
823
867
 
868
+ /**
869
+ * CheckoutResponse
870
+ * Response from checkout session creation.
871
+ */
872
+ export type CheckoutResponse = {
873
+ /**
874
+ * Checkout Url
875
+ * URL to redirect user to for payment
876
+ */
877
+ checkout_url?: string | null;
878
+ /**
879
+ * Session Id
880
+ * Checkout session ID for status polling
881
+ */
882
+ session_id?: string | null;
883
+ /**
884
+ * Subscription Id
885
+ * Internal subscription ID
886
+ */
887
+ subscription_id?: string | null;
888
+ /**
889
+ * Requires Checkout
890
+ * Whether checkout is required
891
+ */
892
+ requires_checkout?: boolean;
893
+ /**
894
+ * Billing Disabled
895
+ * Whether billing is disabled on this instance
896
+ */
897
+ billing_disabled?: boolean;
898
+ };
899
+
900
+ /**
901
+ * CheckoutStatusResponse
902
+ * Status of a checkout session.
903
+ */
904
+ export type CheckoutStatusResponse = {
905
+ /**
906
+ * Status
907
+ * Checkout status: 'pending_payment', 'provisioning', 'completed', 'failed'
908
+ */
909
+ status: string;
910
+ /**
911
+ * Subscription Id
912
+ * Internal subscription ID
913
+ */
914
+ subscription_id: string;
915
+ /**
916
+ * Resource Id
917
+ * Resource ID (graph_id or repository name) once provisioned
918
+ */
919
+ resource_id?: string | null;
920
+ /**
921
+ * Operation Id
922
+ * SSE operation ID for monitoring provisioning progress
923
+ */
924
+ operation_id?: string | null;
925
+ /**
926
+ * Error
927
+ * Error message if checkout failed
928
+ */
929
+ error?: string | null;
930
+ };
931
+
824
932
  /**
825
933
  * ConnectionOptionsResponse
826
934
  * Response with all available connection options.
@@ -1029,6 +1137,30 @@ export type CreateApiKeyResponse = {
1029
1137
  key: string;
1030
1138
  };
1031
1139
 
1140
+ /**
1141
+ * CreateCheckoutRequest
1142
+ * Request to create a checkout session for payment collection.
1143
+ */
1144
+ export type CreateCheckoutRequest = {
1145
+ /**
1146
+ * Plan Name
1147
+ * Billing plan name (e.g., 'kuzu-standard')
1148
+ */
1149
+ plan_name: string;
1150
+ /**
1151
+ * Resource Type
1152
+ * Resource type ('graph' or 'repository')
1153
+ */
1154
+ resource_type: string;
1155
+ /**
1156
+ * Resource Config
1157
+ * Configuration for the resource to be provisioned
1158
+ */
1159
+ resource_config: {
1160
+ [key: string]: unknown;
1161
+ };
1162
+ };
1163
+
1032
1164
  /**
1033
1165
  * CreateConnectionRequest
1034
1166
  * Request to create a new connection.
@@ -1087,6 +1219,18 @@ export type CreateGraphRequest = {
1087
1219
  tags?: Array<string>;
1088
1220
  };
1089
1221
 
1222
+ /**
1223
+ * CreateOrgRequest
1224
+ * Request to create an organization.
1225
+ */
1226
+ export type CreateOrgRequest = {
1227
+ /**
1228
+ * Name
1229
+ */
1230
+ name: string;
1231
+ org_type?: OrgType;
1232
+ };
1233
+
1090
1234
  /**
1091
1235
  * CreateRepositorySubscriptionRequest
1092
1236
  * Request to create a repository subscription.
@@ -2134,12 +2278,15 @@ export type GraphSubscriptionResponse = {
2134
2278
 
2135
2279
  /**
2136
2280
  * GraphSubscriptionTier
2137
- * Information about a graph subscription tier.
2281
+ * Information about a graph infrastructure tier.
2282
+ *
2283
+ * Each tier represents a per-graph subscription option with specific
2284
+ * infrastructure, performance, and pricing characteristics.
2138
2285
  */
2139
2286
  export type GraphSubscriptionTier = {
2140
2287
  /**
2141
2288
  * Name
2142
- * Tier name
2289
+ * Infrastructure tier identifier (e.g., kuzu-standard)
2143
2290
  */
2144
2291
  name: string;
2145
2292
  /**
@@ -2153,15 +2300,15 @@ export type GraphSubscriptionTier = {
2153
2300
  */
2154
2301
  description: string;
2155
2302
  /**
2156
- * Monthly Price
2157
- * Monthly price in USD
2303
+ * Monthly Price Per Graph
2304
+ * Monthly price in USD per graph
2158
2305
  */
2159
- monthly_price: number;
2306
+ monthly_price_per_graph: number;
2160
2307
  /**
2161
- * Monthly Credits
2162
- * Monthly AI credits
2308
+ * Monthly Credits Per Graph
2309
+ * Monthly AI credits per graph
2163
2310
  */
2164
- monthly_credits: number;
2311
+ monthly_credits_per_graph: number;
2165
2312
  /**
2166
2313
  * Storage Included Gb
2167
2314
  * Storage included in GB
@@ -2173,10 +2320,10 @@ export type GraphSubscriptionTier = {
2173
2320
  */
2174
2321
  storage_overage_per_gb: number;
2175
2322
  /**
2176
- * Allowed Graph Tiers
2177
- * Allowed graph tier identifiers
2323
+ * Infrastructure
2324
+ * Infrastructure description
2178
2325
  */
2179
- allowed_graph_tiers: Array<string>;
2326
+ infrastructure: string;
2180
2327
  /**
2181
2328
  * Features
2182
2329
  * List of features
@@ -2199,9 +2346,9 @@ export type GraphSubscriptionTier = {
2199
2346
  max_queries_per_hour?: number | null;
2200
2347
  /**
2201
2348
  * Max Subgraphs
2202
- * Maximum subgraphs
2349
+ * Maximum subgraphs supported
2203
2350
  */
2204
- max_subgraphs?: number | null;
2351
+ max_subgraphs?: number;
2205
2352
  /**
2206
2353
  * Api Rate Multiplier
2207
2354
  * API rate multiplier
@@ -2222,6 +2369,10 @@ export type GraphSubscriptionTier = {
2222
2369
  /**
2223
2370
  * GraphSubscriptions
2224
2371
  * Graph subscription offerings.
2372
+ *
2373
+ * Graph subscriptions are per-graph, not per-organization. Each graph
2374
+ * created by an organization has its own subscription with its own
2375
+ * infrastructure tier, pricing, and credit allocation.
2225
2376
  */
2226
2377
  export type GraphSubscriptions = {
2227
2378
  /**
@@ -2229,9 +2380,14 @@ export type GraphSubscriptions = {
2229
2380
  * Description of graph subscriptions
2230
2381
  */
2231
2382
  description: string;
2383
+ /**
2384
+ * Pricing Model
2385
+ * Pricing model type (per_graph or per_organization)
2386
+ */
2387
+ pricing_model: string;
2232
2388
  /**
2233
2389
  * Tiers
2234
- * Available tiers
2390
+ * Available infrastructure tiers
2235
2391
  */
2236
2392
  tiers: Array<GraphSubscriptionTier>;
2237
2393
  /**
@@ -2556,6 +2712,144 @@ export type InitialEntityData = {
2556
2712
  ein?: string | null;
2557
2713
  };
2558
2714
 
2715
+ /**
2716
+ * InviteMemberRequest
2717
+ * Request to invite a member to an organization.
2718
+ */
2719
+ export type InviteMemberRequest = {
2720
+ /**
2721
+ * Email
2722
+ */
2723
+ email: string;
2724
+ role?: OrgRole | null;
2725
+ };
2726
+
2727
+ /**
2728
+ * Invoice
2729
+ * Invoice information.
2730
+ */
2731
+ export type Invoice = {
2732
+ /**
2733
+ * Id
2734
+ * Invoice ID
2735
+ */
2736
+ id: string;
2737
+ /**
2738
+ * Number
2739
+ * Invoice number
2740
+ */
2741
+ number?: string | null;
2742
+ /**
2743
+ * Status
2744
+ * Invoice status (paid, open, void, uncollectible)
2745
+ */
2746
+ status: string;
2747
+ /**
2748
+ * Amount Due
2749
+ * Amount due in cents
2750
+ */
2751
+ amount_due: number;
2752
+ /**
2753
+ * Amount Paid
2754
+ * Amount paid in cents
2755
+ */
2756
+ amount_paid: number;
2757
+ /**
2758
+ * Currency
2759
+ * Currency code (usd)
2760
+ */
2761
+ currency: string;
2762
+ /**
2763
+ * Created
2764
+ * Invoice creation date (ISO format)
2765
+ */
2766
+ created: string;
2767
+ /**
2768
+ * Due Date
2769
+ * Invoice due date (ISO format)
2770
+ */
2771
+ due_date?: string | null;
2772
+ /**
2773
+ * Paid At
2774
+ * Payment date (ISO format)
2775
+ */
2776
+ paid_at?: string | null;
2777
+ /**
2778
+ * Invoice Pdf
2779
+ * PDF download URL
2780
+ */
2781
+ invoice_pdf?: string | null;
2782
+ /**
2783
+ * Hosted Invoice Url
2784
+ * Hosted invoice URL
2785
+ */
2786
+ hosted_invoice_url?: string | null;
2787
+ /**
2788
+ * Line Items
2789
+ * Invoice line items
2790
+ */
2791
+ line_items: Array<InvoiceLineItem>;
2792
+ /**
2793
+ * Subscription Id
2794
+ * Associated subscription ID
2795
+ */
2796
+ subscription_id?: string | null;
2797
+ };
2798
+
2799
+ /**
2800
+ * InvoiceLineItem
2801
+ * Invoice line item.
2802
+ */
2803
+ export type InvoiceLineItem = {
2804
+ /**
2805
+ * Description
2806
+ * Line item description
2807
+ */
2808
+ description: string;
2809
+ /**
2810
+ * Amount
2811
+ * Amount in cents
2812
+ */
2813
+ amount: number;
2814
+ /**
2815
+ * Quantity
2816
+ * Quantity
2817
+ */
2818
+ quantity: number;
2819
+ /**
2820
+ * Period Start
2821
+ * Billing period start
2822
+ */
2823
+ period_start?: string | null;
2824
+ /**
2825
+ * Period End
2826
+ * Billing period end
2827
+ */
2828
+ period_end?: string | null;
2829
+ };
2830
+
2831
+ /**
2832
+ * InvoicesResponse
2833
+ * Response for invoice list.
2834
+ */
2835
+ export type InvoicesResponse = {
2836
+ /**
2837
+ * Invoices
2838
+ * List of invoices
2839
+ */
2840
+ invoices: Array<Invoice>;
2841
+ /**
2842
+ * Total Count
2843
+ * Total number of invoices
2844
+ */
2845
+ total_count: number;
2846
+ /**
2847
+ * Has More
2848
+ * Whether more invoices are available
2849
+ */
2850
+ has_more: boolean;
2851
+ };
2852
+
2559
2853
  /**
2560
2854
  * LinkTokenRequest
2561
2855
  * Request to create a link token for embedded authentication.
@@ -2872,92 +3166,398 @@ export type OperationCosts = {
2872
3166
  };
2873
3167
 
2874
3168
  /**
2875
- * PasswordCheckRequest
2876
- * Password strength check request model.
3169
+ * OrgDetailResponse
3170
+ * Detailed organization response.
2877
3171
  */
2878
- export type PasswordCheckRequest = {
3172
+ export type OrgDetailResponse = {
2879
3173
  /**
2880
- * Password
2881
- * Password to check
3174
+ * Id
2882
3175
  */
2883
- password: string;
3176
+ id: string;
2884
3177
  /**
2885
- * Email
2886
- * User email for personalization checks
3178
+ * Name
2887
3179
  */
2888
- email?: string | null;
3180
+ name: string;
3181
+ org_type: OrgType;
3182
+ user_role: OrgRole;
3183
+ /**
3184
+ * Members
3185
+ */
3186
+ members: Array<{
3187
+ [key: string]: unknown;
3188
+ }>;
3189
+ /**
3190
+ * Graphs
3191
+ */
3192
+ graphs: Array<{
3193
+ [key: string]: unknown;
3194
+ }>;
3195
+ /**
3196
+ * Limits
3197
+ */
3198
+ limits: {
3199
+ [key: string]: unknown;
3200
+ } | null;
3201
+ /**
3202
+ * Created At
3203
+ */
3204
+ created_at: string;
3205
+ /**
3206
+ * Updated At
3207
+ */
3208
+ updated_at: string;
2889
3209
  };
2890
3210
 
2891
3211
  /**
2892
- * PasswordCheckResponse
2893
- * Password strength check response model.
3212
+ * OrgLimitsResponse
3213
+ * Organization limits response.
2894
3214
  */
2895
- export type PasswordCheckResponse = {
2896
- /**
2897
- * Is Valid
2898
- * Whether password meets requirements
2899
- */
2900
- is_valid: boolean;
3215
+ export type OrgLimitsResponse = {
2901
3216
  /**
2902
- * Strength
2903
- * Password strength level
3217
+ * Org Id
2904
3218
  */
2905
- strength: string;
3219
+ org_id: string;
2906
3220
  /**
2907
- * Score
2908
- * Password strength score (0-100)
3221
+ * Max Graphs
2909
3222
  */
2910
- score: number;
3223
+ max_graphs: number;
2911
3224
  /**
2912
- * Errors
2913
- * Validation errors
3225
+ * Current Usage
2914
3226
  */
2915
- errors: Array<string>;
3227
+ current_usage: {
3228
+ [key: string]: unknown;
3229
+ };
2916
3230
  /**
2917
- * Suggestions
2918
- * Improvement suggestions
3231
+ * Warnings
2919
3232
  */
2920
- suggestions: Array<string>;
3233
+ warnings: Array<string>;
2921
3234
  /**
2922
- * Character Types
2923
- * Character type analysis
3235
+ * Can Create Graph
2924
3236
  */
2925
- character_types: {
2926
- [key: string]: boolean;
2927
- };
3237
+ can_create_graph: boolean;
2928
3238
  };
2929
3239
 
2930
3240
  /**
2931
- * PasswordPolicyResponse
2932
- * Password policy response model.
3241
+ * OrgListResponse
3242
+ * List of organizations response.
2933
3243
  */
2934
- export type PasswordPolicyResponse = {
3244
+ export type OrgListResponse = {
2935
3245
  /**
2936
- * Policy
2937
- * Current password policy requirements
3246
+ * Orgs
2938
3247
  */
2939
- policy: {
2940
- [key: string]: unknown;
2941
- };
3248
+ orgs: Array<OrgResponse>;
3249
+ /**
3250
+ * Total
3251
+ */
3252
+ total: number;
2942
3253
  };
2943
3254
 
2944
3255
  /**
2945
- * PerformanceInsights
2946
- * Performance analytics.
3256
+ * OrgMemberListResponse
3257
+ * List of organization members response.
2947
3258
  */
2948
- export type PerformanceInsights = {
3259
+ export type OrgMemberListResponse = {
2949
3260
  /**
2950
- * Analysis Period Days
2951
- * Analysis period in days
3261
+ * Members
2952
3262
  */
2953
- analysis_period_days: number;
3263
+ members: Array<OrgMemberResponse>;
2954
3264
  /**
2955
- * Total Operations
2956
- * Total operations analyzed
3265
+ * Total
2957
3266
  */
2958
- total_operations: number;
3267
+ total: number;
2959
3268
  /**
2960
- * Operation Stats
3269
+ * Org Id
3270
+ */
3271
+ org_id: string;
3272
+ };
3273
+
3274
+ /**
3275
+ * OrgMemberResponse
3276
+ * Organization member response.
3277
+ */
3278
+ export type OrgMemberResponse = {
3279
+ /**
3280
+ * User Id
3281
+ */
3282
+ user_id: string;
3283
+ /**
3284
+ * Name
3285
+ */
3286
+ name: string;
3287
+ /**
3288
+ * Email
3289
+ */
3290
+ email: string;
3291
+ role: OrgRole;
3292
+ /**
3293
+ * Joined At
3294
+ */
3295
+ joined_at: string;
3296
+ /**
3297
+ * Is Active
3298
+ */
3299
+ is_active: boolean;
3300
+ };
3301
+
3302
+ /**
3303
+ * OrgResponse
3304
+ * Organization summary response.
3305
+ */
3306
+ export type OrgResponse = {
3307
+ /**
3308
+ * Id
3309
+ */
3310
+ id: string;
3311
+ /**
3312
+ * Name
3313
+ */
3314
+ name: string;
3315
+ org_type: OrgType;
3316
+ role: OrgRole;
3317
+ /**
3318
+ * Member Count
3319
+ */
3320
+ member_count: number;
3321
+ /**
3322
+ * Graph Count
3323
+ */
3324
+ graph_count: number;
3325
+ /**
3326
+ * Created At
3327
+ */
3328
+ created_at: string;
3329
+ /**
3330
+ * Joined At
3331
+ */
3332
+ joined_at: string;
3333
+ };
3334
+
3335
+ /**
3336
+ * OrgRole
3337
+ */
3338
+ export type OrgRole = 'owner' | 'admin' | 'member';
3339
+
3340
+ /**
3341
+ * OrgType
3342
+ */
3343
+ export type OrgType = 'personal' | 'team' | 'enterprise';
3344
+
3345
+ /**
3346
+ * OrgUsageResponse
3347
+ * Organization usage response.
3348
+ */
3349
+ export type OrgUsageResponse = {
3350
+ /**
3351
+ * Org Id
3352
+ */
3353
+ org_id: string;
3354
+ /**
3355
+ * Period Days
3356
+ */
3357
+ period_days: number;
3358
+ /**
3359
+ * Start Date
3360
+ */
3361
+ start_date: string;
3362
+ /**
3363
+ * End Date
3364
+ */
3365
+ end_date: string;
3366
+ summary: OrgUsageSummary;
3367
+ /**
3368
+ * Graph Details
3369
+ */
3370
+ graph_details: Array<{
3371
+ [key: string]: unknown;
3372
+ }>;
3373
+ /**
3374
+ * Daily Trend
3375
+ */
3376
+ daily_trend: Array<{
3377
+ [key: string]: unknown;
3378
+ }>;
3379
+ };
3380
+
3381
+ /**
3382
+ * OrgUsageSummary
3383
+ * Organization usage summary.
3384
+ */
3385
+ export type OrgUsageSummary = {
3386
+ /**
3387
+ * Total Credits Used
3388
+ */
3389
+ total_credits_used: number;
3390
+ /**
3391
+ * Total Ai Operations
3392
+ */
3393
+ total_ai_operations: number;
3394
+ /**
3395
+ * Total Storage Gb
3396
+ */
3397
+ total_storage_gb: number;
3398
+ /**
3399
+ * Total Api Calls
3400
+ */
3401
+ total_api_calls: number;
3402
+ /**
3403
+ * Daily Avg Credits
3404
+ */
3405
+ daily_avg_credits: number;
3406
+ /**
3407
+ * Daily Avg Api Calls
3408
+ */
3409
+ daily_avg_api_calls: number;
3410
+ /**
3411
+ * Projected Monthly Credits
3412
+ */
3413
+ projected_monthly_credits: number;
3414
+ /**
3415
+ * Projected Monthly Api Calls
3416
+ */
3417
+ projected_monthly_api_calls: number;
3418
+ /**
3419
+ * Credits Limit
3420
+ */
3421
+ credits_limit: number | null;
3422
+ /**
3423
+ * Api Calls Limit
3424
+ */
3425
+ api_calls_limit: number | null;
3426
+ /**
3427
+ * Storage Limit Gb
3428
+ */
3429
+ storage_limit_gb: number | null;
3430
+ };
3431
+
3432
+ /**
3433
+ * PasswordCheckRequest
3434
+ * Password strength check request model.
3435
+ */
3436
+ export type PasswordCheckRequest = {
3437
+ /**
3438
+ * Password
3439
+ * Password to check
3440
+ */
3441
+ password: string;
3442
+ /**
3443
+ * Email
3444
+ * User email for personalization checks
3445
+ */
3446
+ email?: string | null;
3447
+ };
3448
+
3449
+ /**
3450
+ * PasswordCheckResponse
3451
+ * Password strength check response model.
3452
+ */
3453
+ export type PasswordCheckResponse = {
3454
+ /**
3455
+ * Is Valid
3456
+ * Whether password meets requirements
3457
+ */
3458
+ is_valid: boolean;
3459
+ /**
3460
+ * Strength
3461
+ * Password strength level
3462
+ */
3463
+ strength: string;
3464
+ /**
3465
+ * Score
3466
+ * Password strength score (0-100)
3467
+ */
3468
+ score: number;
3469
+ /**
3470
+ * Errors
3471
+ * Validation errors
3472
+ */
3473
+ errors: Array<string>;
3474
+ /**
3475
+ * Suggestions
3476
+ * Improvement suggestions
3477
+ */
3478
+ suggestions: Array<string>;
3479
+ /**
3480
+ * Character Types
3481
+ * Character type analysis
3482
+ */
3483
+ character_types: {
3484
+ [key: string]: boolean;
3485
+ };
3486
+ };
3487
+
3488
+ /**
3489
+ * PasswordPolicyResponse
3490
+ * Password policy response model.
3491
+ */
3492
+ export type PasswordPolicyResponse = {
3493
+ /**
3494
+ * Policy
3495
+ * Current password policy requirements
3496
+ */
3497
+ policy: {
3498
+ [key: string]: unknown;
3499
+ };
3500
+ };
3501
+
3502
+ /**
3503
+ * PaymentMethod
3504
+ * Payment method information.
3505
+ */
3506
+ export type PaymentMethod = {
3507
+ /**
3508
+ * Id
3509
+ * Payment method ID
3510
+ */
3511
+ id: string;
3512
+ /**
3513
+ * Type
3514
+ * Payment method type (card, bank_account, etc.)
3515
+ */
3516
+ type: string;
3517
+ /**
3518
+ * Brand
3519
+ * Card brand (visa, mastercard, etc.)
3520
+ */
3521
+ brand?: string | null;
3522
+ /**
3523
+ * Last4
3524
+ * Last 4 digits
3525
+ */
3526
+ last4?: string | null;
3527
+ /**
3528
+ * Exp Month
3529
+ * Expiration month
3530
+ */
3531
+ exp_month?: number | null;
3532
+ /**
3533
+ * Exp Year
3534
+ * Expiration year
3535
+ */
3536
+ exp_year?: number | null;
3537
+ /**
3538
+ * Is Default
3539
+ * Whether this is the default payment method
3540
+ */
3541
+ is_default: boolean;
3542
+ };
3543
+
3544
+ /**
3545
+ * PerformanceInsights
3546
+ * Performance analytics.
3547
+ */
3548
+ export type PerformanceInsights = {
3549
+ /**
3550
+ * Analysis Period Days
3551
+ * Analysis period in days
3552
+ */
3553
+ analysis_period_days: number;
3554
+ /**
3555
+ * Total Operations
3556
+ * Total operations analyzed
3557
+ */
3558
+ total_operations: number;
3559
+ /**
3560
+ * Operation Stats
2961
3561
  * Performance stats by operation type
2962
3562
  */
2963
3563
  operation_stats: {
@@ -3146,6 +3746,9 @@ export type RepositoryInfo = {
3146
3746
  /**
3147
3747
  * RepositorySubscriptions
3148
3748
  * Repository subscription offerings.
3749
+ *
3750
+ * Repository subscriptions are per-organization, not per-graph. All members
3751
+ * of an organization share access to subscribed repositories.
3149
3752
  */
3150
3753
  export type RepositorySubscriptions = {
3151
3754
  /**
@@ -3153,6 +3756,11 @@ export type RepositorySubscriptions = {
3153
3756
  * Description of repository subscriptions
3154
3757
  */
3155
3758
  description: string;
3759
+ /**
3760
+ * Pricing Model
3761
+ * Pricing model type (per_graph or per_organization)
3762
+ */
3763
+ pricing_model: string;
3156
3764
  /**
3157
3765
  * Repositories
3158
3766
  * Available repositories
@@ -3486,6 +4094,11 @@ export type ServiceOfferingSummary = {
3486
4094
  * Complete service offerings response.
3487
4095
  */
3488
4096
  export type ServiceOfferingsResponse = {
4097
+ /**
4098
+ * Billing Enabled
4099
+ * Whether billing and payments are enabled
4100
+ */
4101
+ billing_enabled: boolean;
3489
4102
  /**
3490
4103
  * Graph subscription offerings
3491
4104
  */
@@ -4015,6 +4628,43 @@ export type TransactionSummaryResponse = {
4015
4628
  last_transaction?: string | null;
4016
4629
  };
4017
4630
 
4631
+ /**
4632
+ * UpcomingInvoice
4633
+ * Upcoming invoice preview.
4634
+ */
4635
+ export type UpcomingInvoice = {
4636
+ /**
4637
+ * Amount Due
4638
+ * Estimated amount due in cents
4639
+ */
4640
+ amount_due: number;
4641
+ /**
4642
+ * Currency
4643
+ * Currency code
4644
+ */
4645
+ currency: string;
4646
+ /**
4647
+ * Period Start
4648
+ * Billing period start
4649
+ */
4650
+ period_start: string;
4651
+ /**
4652
+ * Period End
4653
+ * Billing period end
4654
+ */
4655
+ period_end: string;
4656
+ /**
4657
+ * Line Items
4658
+ * Estimated line items
4659
+ */
4660
+ line_items: Array<InvoiceLineItem>;
4661
+ /**
4662
+ * Subscription Id
4663
+ * Associated subscription ID
4664
+ */
4665
+ subscription_id?: string | null;
4666
+ };
4667
+
4018
4668
  /**
4019
4669
  * UpdateAPIKeyRequest
4020
4670
  * Request model for updating an API key.
@@ -4032,6 +4682,26 @@ export type UpdateApiKeyRequest = {
4032
4682
  description?: string | null;
4033
4683
  };
4034
4684
 
4685
+ /**
4686
+ * UpdateMemberRoleRequest
4687
+ * Request to update a member's role.
4688
+ */
4689
+ export type UpdateMemberRoleRequest = {
4690
+ role: OrgRole;
4691
+ };
4692
+
4693
+ /**
4694
+ * UpdateOrgRequest
4695
+ * Request to update organization details.
4696
+ */
4697
+ export type UpdateOrgRequest = {
4698
+ /**
4699
+ * Name
4700
+ */
4701
+ name?: string | null;
4702
+ org_type?: OrgType | null;
4703
+ };
4704
+
4035
4705
  /**
4036
4706
  * UpdatePasswordRequest
4037
4707
  * Request model for updating user password.
@@ -4055,25 +4725,53 @@ export type UpdatePasswordRequest = {
4055
4725
  };
4056
4726
 
4057
4727
  /**
4058
- * UpdateUserRequest
4059
- * Request model for updating user profile.
4728
+ * UpdatePaymentMethodRequest
4729
+ * Request to update default payment method.
4060
4730
  */
4061
- export type UpdateUserRequest = {
4062
- /**
4063
- * Name
4064
- * User's display name
4065
- */
4066
- name?: string | null;
4731
+ export type UpdatePaymentMethodRequest = {
4067
4732
  /**
4068
- * Email
4069
- * User's email address
4733
+ * Payment Method Id
4734
+ * Payment method ID to set as default
4070
4735
  */
4071
- email?: string | null;
4736
+ payment_method_id: string;
4072
4737
  };
4073
4738
 
4074
4739
  /**
4075
- * UpgradeSubscriptionRequest
4076
- * Request to upgrade a subscription.
4740
+ * UpdatePaymentMethodResponse
4741
+ * Response for payment method update.
4742
+ */
4743
+ export type UpdatePaymentMethodResponse = {
4744
+ /**
4745
+ * Message
4746
+ * Success message
4747
+ */
4748
+ message: string;
4749
+ /**
4750
+ * Updated payment method
4751
+ */
4752
+ payment_method: PaymentMethod;
4753
+ };
4754
+
4755
+ /**
4756
+ * UpdateUserRequest
4757
+ * Request model for updating user profile.
4758
+ */
4759
+ export type UpdateUserRequest = {
4760
+ /**
4761
+ * Name
4762
+ * User's display name
4763
+ */
4764
+ name?: string | null;
4765
+ /**
4766
+ * Email
4767
+ * User's email address
4768
+ */
4769
+ email?: string | null;
4770
+ };
4771
+
4772
+ /**
4773
+ * UpgradeSubscriptionRequest
4774
+ * Request to upgrade a subscription.
4077
4775
  */
4078
4776
  export type UpgradeSubscriptionRequest = {
4079
4777
  /**
@@ -4100,41 +4798,6 @@ export type UserGraphsResponse = {
4100
4798
  selectedGraphId?: string | null;
4101
4799
  };
4102
4800
 
4103
- /**
4104
- * UserLimitsResponse
4105
- * Response model for user limits information.
4106
- *
4107
- * UserLimits is now a simple safety valve to prevent runaway graph creation.
4108
- * Subscription tiers and rate limits are handled at the graph level.
4109
- */
4110
- export type UserLimitsResponse = {
4111
- /**
4112
- * Id
4113
- * Unique limits identifier
4114
- */
4115
- id: string;
4116
- /**
4117
- * User Id
4118
- * Associated user ID
4119
- */
4120
- user_id: string;
4121
- /**
4122
- * Max User Graphs
4123
- * Maximum number of user graphs allowed (safety limit)
4124
- */
4125
- max_user_graphs: number;
4126
- /**
4127
- * Created At
4128
- * Limits creation timestamp
4129
- */
4130
- created_at: string;
4131
- /**
4132
- * Updated At
4133
- * Last update timestamp
4134
- */
4135
- updated_at: string;
4136
- };
4137
-
4138
4801
  /**
4139
4802
  * UserResponse
4140
4803
  * User information response model.
@@ -4162,32 +4825,6 @@ export type UserResponse = {
4162
4825
  accounts?: Array<AccountInfo>;
4163
4826
  };
4164
4827
 
4165
- /**
4166
- * UserUsageResponse
4167
- * Response model for user usage statistics.
4168
- *
4169
- * Simplified to only show graph usage as UserLimits is now just a safety valve.
4170
- * Other usage tracking (MCP, Agent calls) happens at the graph level.
4171
- */
4172
- export type UserUsageResponse = {
4173
- /**
4174
- * User Id
4175
- * User identifier
4176
- */
4177
- user_id: string;
4178
- /**
4179
- * Graphs
4180
- * Graph usage statistics (current/limit/remaining)
4181
- */
4182
- graphs: {
4183
- [key: string]: unknown;
4184
- };
4185
- /**
4186
- * Current user limits
4187
- */
4188
- limits: UserLimitsResponse;
4189
- };
4190
-
4191
4828
  /**
4192
4829
  * ValidationError
4193
4830
  */
@@ -4765,110 +5402,421 @@ export type CreateUserApiKeyData = {
4765
5402
  body: CreateApiKeyRequest;
4766
5403
  path?: never;
4767
5404
  query?: never;
4768
- url: '/v1/user/api-keys';
5405
+ url: '/v1/user/api-keys';
5406
+ };
5407
+
5408
+ export type CreateUserApiKeyErrors = {
5409
+ /**
5410
+ * Validation Error
5411
+ */
5412
+ 422: HttpValidationError;
5413
+ };
5414
+
5415
+ export type CreateUserApiKeyError = CreateUserApiKeyErrors[keyof CreateUserApiKeyErrors];
5416
+
5417
+ export type CreateUserApiKeyResponses = {
5418
+ /**
5419
+ * Successful Response
5420
+ */
5421
+ 201: CreateApiKeyResponse;
5422
+ };
5423
+
5424
+ export type CreateUserApiKeyResponse = CreateUserApiKeyResponses[keyof CreateUserApiKeyResponses];
5425
+
5426
+ export type RevokeUserApiKeyData = {
5427
+ body?: never;
5428
+ path: {
5429
+ /**
5430
+ * Api Key Id
5431
+ */
5432
+ api_key_id: string;
5433
+ };
5434
+ query?: never;
5435
+ url: '/v1/user/api-keys/{api_key_id}';
5436
+ };
5437
+
5438
+ export type RevokeUserApiKeyErrors = {
5439
+ /**
5440
+ * API key not found
5441
+ */
5442
+ 404: ErrorResponse;
5443
+ /**
5444
+ * Validation Error
5445
+ */
5446
+ 422: HttpValidationError;
5447
+ /**
5448
+ * Error revoking API key
5449
+ */
5450
+ 500: ErrorResponse;
5451
+ };
5452
+
5453
+ export type RevokeUserApiKeyError = RevokeUserApiKeyErrors[keyof RevokeUserApiKeyErrors];
5454
+
5455
+ export type RevokeUserApiKeyResponses = {
5456
+ /**
5457
+ * API key revoked successfully
5458
+ */
5459
+ 200: SuccessResponse;
5460
+ };
5461
+
5462
+ export type RevokeUserApiKeyResponse = RevokeUserApiKeyResponses[keyof RevokeUserApiKeyResponses];
5463
+
5464
+ export type UpdateUserApiKeyData = {
5465
+ body: UpdateApiKeyRequest;
5466
+ path: {
5467
+ /**
5468
+ * Api Key Id
5469
+ */
5470
+ api_key_id: string;
5471
+ };
5472
+ query?: never;
5473
+ url: '/v1/user/api-keys/{api_key_id}';
5474
+ };
5475
+
5476
+ export type UpdateUserApiKeyErrors = {
5477
+ /**
5478
+ * Validation Error
5479
+ */
5480
+ 422: HttpValidationError;
5481
+ };
5482
+
5483
+ export type UpdateUserApiKeyError = UpdateUserApiKeyErrors[keyof UpdateUserApiKeyErrors];
5484
+
5485
+ export type UpdateUserApiKeyResponses = {
5486
+ /**
5487
+ * Successful Response
5488
+ */
5489
+ 200: ApiKeyInfo;
5490
+ };
5491
+
5492
+ export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
5493
+
5494
+ export type ListUserOrgsData = {
5495
+ body?: never;
5496
+ path?: never;
5497
+ query?: never;
5498
+ url: '/v1/orgs';
5499
+ };
5500
+
5501
+ export type ListUserOrgsResponses = {
5502
+ /**
5503
+ * Successful Response
5504
+ */
5505
+ 200: OrgListResponse;
5506
+ };
5507
+
5508
+ export type ListUserOrgsResponse = ListUserOrgsResponses[keyof ListUserOrgsResponses];
5509
+
5510
+ export type CreateOrgData = {
5511
+ body: CreateOrgRequest;
5512
+ path?: never;
5513
+ query?: never;
5514
+ url: '/v1/orgs';
5515
+ };
5516
+
5517
+ export type CreateOrgErrors = {
5518
+ /**
5519
+ * Validation Error
5520
+ */
5521
+ 422: HttpValidationError;
5522
+ };
5523
+
5524
+ export type CreateOrgError = CreateOrgErrors[keyof CreateOrgErrors];
5525
+
5526
+ export type CreateOrgResponses = {
5527
+ /**
5528
+ * Successful Response
5529
+ */
5530
+ 201: OrgDetailResponse;
5531
+ };
5532
+
5533
+ export type CreateOrgResponse = CreateOrgResponses[keyof CreateOrgResponses];
5534
+
5535
+ export type GetOrgData = {
5536
+ body?: never;
5537
+ path: {
5538
+ /**
5539
+ * Org Id
5540
+ */
5541
+ org_id: string;
5542
+ };
5543
+ query?: never;
5544
+ url: '/v1/orgs/{org_id}';
5545
+ };
5546
+
5547
+ export type GetOrgErrors = {
5548
+ /**
5549
+ * Validation Error
5550
+ */
5551
+ 422: HttpValidationError;
5552
+ };
5553
+
5554
+ export type GetOrgError = GetOrgErrors[keyof GetOrgErrors];
5555
+
5556
+ export type GetOrgResponses = {
5557
+ /**
5558
+ * Successful Response
5559
+ */
5560
+ 200: OrgDetailResponse;
5561
+ };
5562
+
5563
+ export type GetOrgResponse = GetOrgResponses[keyof GetOrgResponses];
5564
+
5565
+ export type UpdateOrgData = {
5566
+ body: UpdateOrgRequest;
5567
+ path: {
5568
+ /**
5569
+ * Org Id
5570
+ */
5571
+ org_id: string;
5572
+ };
5573
+ query?: never;
5574
+ url: '/v1/orgs/{org_id}';
5575
+ };
5576
+
5577
+ export type UpdateOrgErrors = {
5578
+ /**
5579
+ * Validation Error
5580
+ */
5581
+ 422: HttpValidationError;
5582
+ };
5583
+
5584
+ export type UpdateOrgError = UpdateOrgErrors[keyof UpdateOrgErrors];
5585
+
5586
+ export type UpdateOrgResponses = {
5587
+ /**
5588
+ * Successful Response
5589
+ */
5590
+ 200: OrgDetailResponse;
5591
+ };
5592
+
5593
+ export type UpdateOrgResponse = UpdateOrgResponses[keyof UpdateOrgResponses];
5594
+
5595
+ export type ListOrgGraphsData = {
5596
+ body?: never;
5597
+ path: {
5598
+ /**
5599
+ * Org Id
5600
+ */
5601
+ org_id: string;
5602
+ };
5603
+ query?: never;
5604
+ url: '/v1/orgs/{org_id}/graphs';
5605
+ };
5606
+
5607
+ export type ListOrgGraphsErrors = {
5608
+ /**
5609
+ * Validation Error
5610
+ */
5611
+ 422: HttpValidationError;
5612
+ };
5613
+
5614
+ export type ListOrgGraphsError = ListOrgGraphsErrors[keyof ListOrgGraphsErrors];
5615
+
5616
+ export type ListOrgGraphsResponses = {
5617
+ /**
5618
+ * Response Listorggraphs
5619
+ * Successful Response
5620
+ */
5621
+ 200: Array<{
5622
+ [key: string]: unknown;
5623
+ }>;
5624
+ };
5625
+
5626
+ export type ListOrgGraphsResponse = ListOrgGraphsResponses[keyof ListOrgGraphsResponses];
5627
+
5628
+ export type ListOrgMembersData = {
5629
+ body?: never;
5630
+ path: {
5631
+ /**
5632
+ * Org Id
5633
+ */
5634
+ org_id: string;
5635
+ };
5636
+ query?: never;
5637
+ url: '/v1/orgs/{org_id}/members';
5638
+ };
5639
+
5640
+ export type ListOrgMembersErrors = {
5641
+ /**
5642
+ * Validation Error
5643
+ */
5644
+ 422: HttpValidationError;
5645
+ };
5646
+
5647
+ export type ListOrgMembersError = ListOrgMembersErrors[keyof ListOrgMembersErrors];
5648
+
5649
+ export type ListOrgMembersResponses = {
5650
+ /**
5651
+ * Successful Response
5652
+ */
5653
+ 200: OrgMemberListResponse;
5654
+ };
5655
+
5656
+ export type ListOrgMembersResponse = ListOrgMembersResponses[keyof ListOrgMembersResponses];
5657
+
5658
+ export type InviteOrgMemberData = {
5659
+ body: InviteMemberRequest;
5660
+ path: {
5661
+ /**
5662
+ * Org Id
5663
+ */
5664
+ org_id: string;
5665
+ };
5666
+ query?: never;
5667
+ url: '/v1/orgs/{org_id}/members';
5668
+ };
5669
+
5670
+ export type InviteOrgMemberErrors = {
5671
+ /**
5672
+ * Validation Error
5673
+ */
5674
+ 422: HttpValidationError;
5675
+ };
5676
+
5677
+ export type InviteOrgMemberError = InviteOrgMemberErrors[keyof InviteOrgMemberErrors];
5678
+
5679
+ export type InviteOrgMemberResponses = {
5680
+ /**
5681
+ * Successful Response
5682
+ */
5683
+ 201: OrgMemberResponse;
5684
+ };
5685
+
5686
+ export type InviteOrgMemberResponse = InviteOrgMemberResponses[keyof InviteOrgMemberResponses];
5687
+
5688
+ export type RemoveOrgMemberData = {
5689
+ body?: never;
5690
+ path: {
5691
+ /**
5692
+ * Org Id
5693
+ */
5694
+ org_id: string;
5695
+ /**
5696
+ * User Id
5697
+ */
5698
+ user_id: string;
5699
+ };
5700
+ query?: never;
5701
+ url: '/v1/orgs/{org_id}/members/{user_id}';
4769
5702
  };
4770
5703
 
4771
- export type CreateUserApiKeyErrors = {
5704
+ export type RemoveOrgMemberErrors = {
4772
5705
  /**
4773
5706
  * Validation Error
4774
5707
  */
4775
5708
  422: HttpValidationError;
4776
5709
  };
4777
5710
 
4778
- export type CreateUserApiKeyError = CreateUserApiKeyErrors[keyof CreateUserApiKeyErrors];
5711
+ export type RemoveOrgMemberError = RemoveOrgMemberErrors[keyof RemoveOrgMemberErrors];
4779
5712
 
4780
- export type CreateUserApiKeyResponses = {
5713
+ export type RemoveOrgMemberResponses = {
4781
5714
  /**
4782
5715
  * Successful Response
4783
5716
  */
4784
- 201: CreateApiKeyResponse;
5717
+ 204: void;
4785
5718
  };
4786
5719
 
4787
- export type CreateUserApiKeyResponse = CreateUserApiKeyResponses[keyof CreateUserApiKeyResponses];
5720
+ export type RemoveOrgMemberResponse = RemoveOrgMemberResponses[keyof RemoveOrgMemberResponses];
4788
5721
 
4789
- export type RevokeUserApiKeyData = {
4790
- body?: never;
5722
+ export type UpdateOrgMemberRoleData = {
5723
+ body: UpdateMemberRoleRequest;
4791
5724
  path: {
4792
5725
  /**
4793
- * Api Key Id
5726
+ * Org Id
4794
5727
  */
4795
- api_key_id: string;
5728
+ org_id: string;
5729
+ /**
5730
+ * User Id
5731
+ */
5732
+ user_id: string;
4796
5733
  };
4797
5734
  query?: never;
4798
- url: '/v1/user/api-keys/{api_key_id}';
5735
+ url: '/v1/orgs/{org_id}/members/{user_id}';
4799
5736
  };
4800
5737
 
4801
- export type RevokeUserApiKeyErrors = {
4802
- /**
4803
- * API key not found
4804
- */
4805
- 404: ErrorResponse;
5738
+ export type UpdateOrgMemberRoleErrors = {
4806
5739
  /**
4807
5740
  * Validation Error
4808
5741
  */
4809
5742
  422: HttpValidationError;
4810
- /**
4811
- * Error revoking API key
4812
- */
4813
- 500: ErrorResponse;
4814
5743
  };
4815
5744
 
4816
- export type RevokeUserApiKeyError = RevokeUserApiKeyErrors[keyof RevokeUserApiKeyErrors];
5745
+ export type UpdateOrgMemberRoleError = UpdateOrgMemberRoleErrors[keyof UpdateOrgMemberRoleErrors];
4817
5746
 
4818
- export type RevokeUserApiKeyResponses = {
5747
+ export type UpdateOrgMemberRoleResponses = {
4819
5748
  /**
4820
- * API key revoked successfully
5749
+ * Successful Response
4821
5750
  */
4822
- 200: SuccessResponse;
5751
+ 200: OrgMemberResponse;
4823
5752
  };
4824
5753
 
4825
- export type RevokeUserApiKeyResponse = RevokeUserApiKeyResponses[keyof RevokeUserApiKeyResponses];
5754
+ export type UpdateOrgMemberRoleResponse = UpdateOrgMemberRoleResponses[keyof UpdateOrgMemberRoleResponses];
4826
5755
 
4827
- export type UpdateUserApiKeyData = {
4828
- body: UpdateApiKeyRequest;
5756
+ export type GetOrgLimitsData = {
5757
+ body?: never;
4829
5758
  path: {
4830
5759
  /**
4831
- * Api Key Id
5760
+ * Org Id
4832
5761
  */
4833
- api_key_id: string;
5762
+ org_id: string;
4834
5763
  };
4835
5764
  query?: never;
4836
- url: '/v1/user/api-keys/{api_key_id}';
5765
+ url: '/v1/orgs/{org_id}/limits';
4837
5766
  };
4838
5767
 
4839
- export type UpdateUserApiKeyErrors = {
5768
+ export type GetOrgLimitsErrors = {
4840
5769
  /**
4841
5770
  * Validation Error
4842
5771
  */
4843
5772
  422: HttpValidationError;
4844
5773
  };
4845
5774
 
4846
- export type UpdateUserApiKeyError = UpdateUserApiKeyErrors[keyof UpdateUserApiKeyErrors];
5775
+ export type GetOrgLimitsError = GetOrgLimitsErrors[keyof GetOrgLimitsErrors];
4847
5776
 
4848
- export type UpdateUserApiKeyResponses = {
5777
+ export type GetOrgLimitsResponses = {
4849
5778
  /**
4850
5779
  * Successful Response
4851
5780
  */
4852
- 200: ApiKeyInfo;
5781
+ 200: OrgLimitsResponse;
4853
5782
  };
4854
5783
 
4855
- export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
5784
+ export type GetOrgLimitsResponse = GetOrgLimitsResponses[keyof GetOrgLimitsResponses];
4856
5785
 
4857
- export type GetUserLimitsData = {
5786
+ export type GetOrgUsageData = {
4858
5787
  body?: never;
4859
- path?: never;
4860
- query?: never;
4861
- url: '/v1/user/limits';
5788
+ path: {
5789
+ /**
5790
+ * Org Id
5791
+ */
5792
+ org_id: string;
5793
+ };
5794
+ query?: {
5795
+ /**
5796
+ * Days
5797
+ */
5798
+ days?: number;
5799
+ };
5800
+ url: '/v1/orgs/{org_id}/usage';
5801
+ };
5802
+
5803
+ export type GetOrgUsageErrors = {
5804
+ /**
5805
+ * Validation Error
5806
+ */
5807
+ 422: HttpValidationError;
4862
5808
  };
4863
5809
 
4864
- export type GetUserLimitsResponses = {
5810
+ export type GetOrgUsageError = GetOrgUsageErrors[keyof GetOrgUsageErrors];
5811
+
5812
+ export type GetOrgUsageResponses = {
4865
5813
  /**
4866
- * User limits and usage retrieved successfully
5814
+ * Successful Response
4867
5815
  */
4868
- 200: UserUsageResponse;
5816
+ 200: OrgUsageResponse;
4869
5817
  };
4870
5818
 
4871
- export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
5819
+ export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
4872
5820
 
4873
5821
  export type ListConnectionsData = {
4874
5822
  body?: never;
@@ -7728,6 +8676,287 @@ export type CancelOperationResponses = {
7728
8676
 
7729
8677
  export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
7730
8678
 
8679
+ export type GetOrgBillingCustomerData = {
8680
+ body?: never;
8681
+ path: {
8682
+ /**
8683
+ * Org Id
8684
+ */
8685
+ org_id: string;
8686
+ };
8687
+ query?: never;
8688
+ url: '/v1/billing/customer/{org_id}';
8689
+ };
8690
+
8691
+ export type GetOrgBillingCustomerErrors = {
8692
+ /**
8693
+ * Validation Error
8694
+ */
8695
+ 422: HttpValidationError;
8696
+ };
8697
+
8698
+ export type GetOrgBillingCustomerError = GetOrgBillingCustomerErrors[keyof GetOrgBillingCustomerErrors];
8699
+
8700
+ export type GetOrgBillingCustomerResponses = {
8701
+ /**
8702
+ * Successful Response
8703
+ */
8704
+ 200: BillingCustomer;
8705
+ };
8706
+
8707
+ export type GetOrgBillingCustomerResponse = GetOrgBillingCustomerResponses[keyof GetOrgBillingCustomerResponses];
8708
+
8709
+ export type UpdateOrgPaymentMethodData = {
8710
+ body: UpdatePaymentMethodRequest;
8711
+ path: {
8712
+ /**
8713
+ * Org Id
8714
+ */
8715
+ org_id: string;
8716
+ };
8717
+ query?: never;
8718
+ url: '/v1/billing/customer/{org_id}/payment-method';
8719
+ };
8720
+
8721
+ export type UpdateOrgPaymentMethodErrors = {
8722
+ /**
8723
+ * Validation Error
8724
+ */
8725
+ 422: HttpValidationError;
8726
+ };
8727
+
8728
+ export type UpdateOrgPaymentMethodError = UpdateOrgPaymentMethodErrors[keyof UpdateOrgPaymentMethodErrors];
8729
+
8730
+ export type UpdateOrgPaymentMethodResponses = {
8731
+ /**
8732
+ * Successful Response
8733
+ */
8734
+ 200: UpdatePaymentMethodResponse;
8735
+ };
8736
+
8737
+ export type UpdateOrgPaymentMethodResponse = UpdateOrgPaymentMethodResponses[keyof UpdateOrgPaymentMethodResponses];
8738
+
8739
+ export type ListOrgSubscriptionsData = {
8740
+ body?: never;
8741
+ path: {
8742
+ /**
8743
+ * Org Id
8744
+ */
8745
+ org_id: string;
8746
+ };
8747
+ query?: never;
8748
+ url: '/v1/billing/subscriptions/{org_id}';
8749
+ };
8750
+
8751
+ export type ListOrgSubscriptionsErrors = {
8752
+ /**
8753
+ * Validation Error
8754
+ */
8755
+ 422: HttpValidationError;
8756
+ };
8757
+
8758
+ export type ListOrgSubscriptionsError = ListOrgSubscriptionsErrors[keyof ListOrgSubscriptionsErrors];
8759
+
8760
+ export type ListOrgSubscriptionsResponses = {
8761
+ /**
8762
+ * Response Listorgsubscriptions
8763
+ * Successful Response
8764
+ */
8765
+ 200: Array<GraphSubscriptionResponse>;
8766
+ };
8767
+
8768
+ export type ListOrgSubscriptionsResponse = ListOrgSubscriptionsResponses[keyof ListOrgSubscriptionsResponses];
8769
+
8770
+ export type GetOrgSubscriptionData = {
8771
+ body?: never;
8772
+ path: {
8773
+ /**
8774
+ * Org Id
8775
+ */
8776
+ org_id: string;
8777
+ /**
8778
+ * Subscription Id
8779
+ */
8780
+ subscription_id: string;
8781
+ };
8782
+ query?: never;
8783
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}';
8784
+ };
8785
+
8786
+ export type GetOrgSubscriptionErrors = {
8787
+ /**
8788
+ * Validation Error
8789
+ */
8790
+ 422: HttpValidationError;
8791
+ };
8792
+
8793
+ export type GetOrgSubscriptionError = GetOrgSubscriptionErrors[keyof GetOrgSubscriptionErrors];
8794
+
8795
+ export type GetOrgSubscriptionResponses = {
8796
+ /**
8797
+ * Successful Response
8798
+ */
8799
+ 200: GraphSubscriptionResponse;
8800
+ };
8801
+
8802
+ export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
8803
+
8804
+ export type CancelOrgSubscriptionData = {
8805
+ body?: never;
8806
+ path: {
8807
+ /**
8808
+ * Org Id
8809
+ */
8810
+ org_id: string;
8811
+ /**
8812
+ * Subscription Id
8813
+ */
8814
+ subscription_id: string;
8815
+ };
8816
+ query?: never;
8817
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel';
8818
+ };
8819
+
8820
+ export type CancelOrgSubscriptionErrors = {
8821
+ /**
8822
+ * Validation Error
8823
+ */
8824
+ 422: HttpValidationError;
8825
+ };
8826
+
8827
+ export type CancelOrgSubscriptionError = CancelOrgSubscriptionErrors[keyof CancelOrgSubscriptionErrors];
8828
+
8829
+ export type CancelOrgSubscriptionResponses = {
8830
+ /**
8831
+ * Successful Response
8832
+ */
8833
+ 200: GraphSubscriptionResponse;
8834
+ };
8835
+
8836
+ export type CancelOrgSubscriptionResponse = CancelOrgSubscriptionResponses[keyof CancelOrgSubscriptionResponses];
8837
+
8838
+ export type ListOrgInvoicesData = {
8839
+ body?: never;
8840
+ path: {
8841
+ /**
8842
+ * Org Id
8843
+ */
8844
+ org_id: string;
8845
+ };
8846
+ query?: {
8847
+ /**
8848
+ * Limit
8849
+ * Number of invoices to return
8850
+ */
8851
+ limit?: number;
8852
+ };
8853
+ url: '/v1/billing/invoices/{org_id}';
8854
+ };
8855
+
8856
+ export type ListOrgInvoicesErrors = {
8857
+ /**
8858
+ * Validation Error
8859
+ */
8860
+ 422: HttpValidationError;
8861
+ };
8862
+
8863
+ export type ListOrgInvoicesError = ListOrgInvoicesErrors[keyof ListOrgInvoicesErrors];
8864
+
8865
+ export type ListOrgInvoicesResponses = {
8866
+ /**
8867
+ * Successful Response
8868
+ */
8869
+ 200: InvoicesResponse;
8870
+ };
8871
+
8872
+ export type ListOrgInvoicesResponse = ListOrgInvoicesResponses[keyof ListOrgInvoicesResponses];
8873
+
8874
+ export type GetOrgUpcomingInvoiceData = {
8875
+ body?: never;
8876
+ path: {
8877
+ /**
8878
+ * Org Id
8879
+ */
8880
+ org_id: string;
8881
+ };
8882
+ query?: never;
8883
+ url: '/v1/billing/invoices/{org_id}/upcoming';
8884
+ };
8885
+
8886
+ export type GetOrgUpcomingInvoiceErrors = {
8887
+ /**
8888
+ * Validation Error
8889
+ */
8890
+ 422: HttpValidationError;
8891
+ };
8892
+
8893
+ export type GetOrgUpcomingInvoiceError = GetOrgUpcomingInvoiceErrors[keyof GetOrgUpcomingInvoiceErrors];
8894
+
8895
+ export type GetOrgUpcomingInvoiceResponses = {
8896
+ /**
8897
+ * Response Getorgupcominginvoice
8898
+ * Successful Response
8899
+ */
8900
+ 200: UpcomingInvoice | null;
8901
+ };
8902
+
8903
+ export type GetOrgUpcomingInvoiceResponse = GetOrgUpcomingInvoiceResponses[keyof GetOrgUpcomingInvoiceResponses];
8904
+
8905
+ export type CreateCheckoutSessionData = {
8906
+ body: CreateCheckoutRequest;
8907
+ path?: never;
8908
+ query?: never;
8909
+ url: '/v1/billing/checkout';
8910
+ };
8911
+
8912
+ export type CreateCheckoutSessionErrors = {
8913
+ /**
8914
+ * Validation Error
8915
+ */
8916
+ 422: HttpValidationError;
8917
+ };
8918
+
8919
+ export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
8920
+
8921
+ export type CreateCheckoutSessionResponses = {
8922
+ /**
8923
+ * Successful Response
8924
+ */
8925
+ 201: CheckoutResponse;
8926
+ };
8927
+
8928
+ export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
8929
+
8930
+ export type GetCheckoutStatusData = {
8931
+ body?: never;
8932
+ path: {
8933
+ /**
8934
+ * Session Id
8935
+ */
8936
+ session_id: string;
8937
+ };
8938
+ query?: never;
8939
+ url: '/v1/billing/checkout/{session_id}/status';
8940
+ };
8941
+
8942
+ export type GetCheckoutStatusErrors = {
8943
+ /**
8944
+ * Validation Error
8945
+ */
8946
+ 422: HttpValidationError;
8947
+ };
8948
+
8949
+ export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
8950
+
8951
+ export type GetCheckoutStatusResponses = {
8952
+ /**
8953
+ * Successful Response
8954
+ */
8955
+ 200: CheckoutStatusResponse;
8956
+ };
8957
+
8958
+ export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
8959
+
7731
8960
  export type ClientOptions = {
7732
8961
  baseUrl: 'http://localhost:8000';
7733
8962
  };