@robosystems/client 0.2.10 → 0.2.12

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
@@ -734,17 +741,17 @@ export type BatchAgentResponse = {
734
741
 
735
742
  /**
736
743
  * BillingCustomer
737
- * Billing customer information.
744
+ * Billing customer information for an organization.
738
745
  */
739
746
  export type BillingCustomer = {
740
747
  /**
741
- * User Id
742
- * User ID
748
+ * Org Id
749
+ * Organization ID
743
750
  */
744
- user_id: string;
751
+ org_id: string;
745
752
  /**
746
753
  * Has Payment Method
747
- * Whether customer has a payment method on file
754
+ * Whether organization has a payment method on file
748
755
  */
749
756
  has_payment_method: boolean;
750
757
  /**
@@ -867,22 +874,27 @@ export type CheckoutResponse = {
867
874
  * Checkout Url
868
875
  * URL to redirect user to for payment
869
876
  */
870
- checkout_url: string;
877
+ checkout_url?: string | null;
871
878
  /**
872
879
  * Session Id
873
880
  * Checkout session ID for status polling
874
881
  */
875
- session_id: string;
882
+ session_id?: string | null;
876
883
  /**
877
884
  * Subscription Id
878
885
  * Internal subscription ID
879
886
  */
880
- subscription_id: string;
887
+ subscription_id?: string | null;
881
888
  /**
882
889
  * Requires Checkout
883
890
  * Whether checkout is required
884
891
  */
885
892
  requires_checkout?: boolean;
893
+ /**
894
+ * Billing Disabled
895
+ * Whether billing is disabled on this instance
896
+ */
897
+ billing_disabled?: boolean;
886
898
  };
887
899
 
888
900
  /**
@@ -902,7 +914,7 @@ export type CheckoutStatusResponse = {
902
914
  subscription_id: string;
903
915
  /**
904
916
  * Resource Id
905
- * Resource ID (graph_id or repository name) once provisioned
917
+ * Resource ID (graph_id for both graphs and repositories) once provisioned. For repositories, this is the repository slug (e.g., 'sec')
906
918
  */
907
919
  resource_id?: string | null;
908
920
  /**
@@ -1142,7 +1154,7 @@ export type CreateCheckoutRequest = {
1142
1154
  resource_type: string;
1143
1155
  /**
1144
1156
  * Resource Config
1145
- * Configuration for the resource to be provisioned
1157
+ * Configuration for the resource to be provisioned. For repositories: {'repository_name': 'graph_id'} where graph_id is the repository slug (e.g., 'sec')
1146
1158
  */
1147
1159
  resource_config: {
1148
1160
  [key: string]: unknown;
@@ -1207,6 +1219,18 @@ export type CreateGraphRequest = {
1207
1219
  tags?: Array<string>;
1208
1220
  };
1209
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
+
1210
1234
  /**
1211
1235
  * CreateRepositorySubscriptionRequest
1212
1236
  * Request to create a repository subscription.
@@ -2254,12 +2278,15 @@ export type GraphSubscriptionResponse = {
2254
2278
 
2255
2279
  /**
2256
2280
  * GraphSubscriptionTier
2257
- * 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.
2258
2285
  */
2259
2286
  export type GraphSubscriptionTier = {
2260
2287
  /**
2261
2288
  * Name
2262
- * Tier name
2289
+ * Infrastructure tier identifier (e.g., kuzu-standard)
2263
2290
  */
2264
2291
  name: string;
2265
2292
  /**
@@ -2273,15 +2300,15 @@ export type GraphSubscriptionTier = {
2273
2300
  */
2274
2301
  description: string;
2275
2302
  /**
2276
- * Monthly Price
2277
- * Monthly price in USD
2303
+ * Monthly Price Per Graph
2304
+ * Monthly price in USD per graph
2278
2305
  */
2279
- monthly_price: number;
2306
+ monthly_price_per_graph: number;
2280
2307
  /**
2281
- * Monthly Credits
2282
- * Monthly AI credits
2308
+ * Monthly Credits Per Graph
2309
+ * Monthly AI credits per graph
2283
2310
  */
2284
- monthly_credits: number;
2311
+ monthly_credits_per_graph: number;
2285
2312
  /**
2286
2313
  * Storage Included Gb
2287
2314
  * Storage included in GB
@@ -2293,10 +2320,10 @@ export type GraphSubscriptionTier = {
2293
2320
  */
2294
2321
  storage_overage_per_gb: number;
2295
2322
  /**
2296
- * Allowed Graph Tiers
2297
- * Allowed graph tier identifiers
2323
+ * Infrastructure
2324
+ * Infrastructure description
2298
2325
  */
2299
- allowed_graph_tiers: Array<string>;
2326
+ infrastructure: string;
2300
2327
  /**
2301
2328
  * Features
2302
2329
  * List of features
@@ -2319,9 +2346,9 @@ export type GraphSubscriptionTier = {
2319
2346
  max_queries_per_hour?: number | null;
2320
2347
  /**
2321
2348
  * Max Subgraphs
2322
- * Maximum subgraphs
2349
+ * Maximum subgraphs supported
2323
2350
  */
2324
- max_subgraphs?: number | null;
2351
+ max_subgraphs?: number;
2325
2352
  /**
2326
2353
  * Api Rate Multiplier
2327
2354
  * API rate multiplier
@@ -2342,6 +2369,10 @@ export type GraphSubscriptionTier = {
2342
2369
  /**
2343
2370
  * GraphSubscriptions
2344
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.
2345
2376
  */
2346
2377
  export type GraphSubscriptions = {
2347
2378
  /**
@@ -2349,9 +2380,14 @@ export type GraphSubscriptions = {
2349
2380
  * Description of graph subscriptions
2350
2381
  */
2351
2382
  description: string;
2383
+ /**
2384
+ * Pricing Model
2385
+ * Pricing model type (per_graph or per_organization)
2386
+ */
2387
+ pricing_model: string;
2352
2388
  /**
2353
2389
  * Tiers
2354
- * Available tiers
2390
+ * Available infrastructure tiers
2355
2391
  */
2356
2392
  tiers: Array<GraphSubscriptionTier>;
2357
2393
  /**
@@ -2676,6 +2712,18 @@ export type InitialEntityData = {
2676
2712
  ein?: string | null;
2677
2713
  };
2678
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
+
2679
2727
  /**
2680
2728
  * Invoice
2681
2729
  * Invoice information.
@@ -3117,6 +3165,270 @@ export type OperationCosts = {
3117
3165
  notes: Array<string>;
3118
3166
  };
3119
3167
 
3168
+ /**
3169
+ * OrgDetailResponse
3170
+ * Detailed organization response.
3171
+ */
3172
+ export type OrgDetailResponse = {
3173
+ /**
3174
+ * Id
3175
+ */
3176
+ id: string;
3177
+ /**
3178
+ * Name
3179
+ */
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;
3209
+ };
3210
+
3211
+ /**
3212
+ * OrgLimitsResponse
3213
+ * Organization limits response.
3214
+ */
3215
+ export type OrgLimitsResponse = {
3216
+ /**
3217
+ * Org Id
3218
+ */
3219
+ org_id: string;
3220
+ /**
3221
+ * Max Graphs
3222
+ */
3223
+ max_graphs: number;
3224
+ /**
3225
+ * Current Usage
3226
+ */
3227
+ current_usage: {
3228
+ [key: string]: unknown;
3229
+ };
3230
+ /**
3231
+ * Warnings
3232
+ */
3233
+ warnings: Array<string>;
3234
+ /**
3235
+ * Can Create Graph
3236
+ */
3237
+ can_create_graph: boolean;
3238
+ };
3239
+
3240
+ /**
3241
+ * OrgListResponse
3242
+ * List of organizations response.
3243
+ */
3244
+ export type OrgListResponse = {
3245
+ /**
3246
+ * Orgs
3247
+ */
3248
+ orgs: Array<OrgResponse>;
3249
+ /**
3250
+ * Total
3251
+ */
3252
+ total: number;
3253
+ };
3254
+
3255
+ /**
3256
+ * OrgMemberListResponse
3257
+ * List of organization members response.
3258
+ */
3259
+ export type OrgMemberListResponse = {
3260
+ /**
3261
+ * Members
3262
+ */
3263
+ members: Array<OrgMemberResponse>;
3264
+ /**
3265
+ * Total
3266
+ */
3267
+ total: number;
3268
+ /**
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
+
3120
3432
  /**
3121
3433
  * PasswordCheckRequest
3122
3434
  * Password strength check request model.
@@ -3434,6 +3746,9 @@ export type RepositoryInfo = {
3434
3746
  /**
3435
3747
  * RepositorySubscriptions
3436
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.
3437
3752
  */
3438
3753
  export type RepositorySubscriptions = {
3439
3754
  /**
@@ -3441,6 +3756,11 @@ export type RepositorySubscriptions = {
3441
3756
  * Description of repository subscriptions
3442
3757
  */
3443
3758
  description: string;
3759
+ /**
3760
+ * Pricing Model
3761
+ * Pricing model type (per_graph or per_organization)
3762
+ */
3763
+ pricing_model: string;
3444
3764
  /**
3445
3765
  * Repositories
3446
3766
  * Available repositories
@@ -3774,6 +4094,11 @@ export type ServiceOfferingSummary = {
3774
4094
  * Complete service offerings response.
3775
4095
  */
3776
4096
  export type ServiceOfferingsResponse = {
4097
+ /**
4098
+ * Billing Enabled
4099
+ * Whether billing and payments are enabled
4100
+ */
4101
+ billing_enabled: boolean;
3777
4102
  /**
3778
4103
  * Graph subscription offerings
3779
4104
  */
@@ -4357,6 +4682,26 @@ export type UpdateApiKeyRequest = {
4357
4682
  description?: string | null;
4358
4683
  };
4359
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
+
4360
4705
  /**
4361
4706
  * UpdatePasswordRequest
4362
4707
  * Request model for updating user password.
@@ -4453,41 +4798,6 @@ export type UserGraphsResponse = {
4453
4798
  selectedGraphId?: string | null;
4454
4799
  };
4455
4800
 
4456
- /**
4457
- * UserLimitsResponse
4458
- * Response model for user limits information.
4459
- *
4460
- * UserLimits is now a simple safety valve to prevent runaway graph creation.
4461
- * Subscription tiers and rate limits are handled at the graph level.
4462
- */
4463
- export type UserLimitsResponse = {
4464
- /**
4465
- * Id
4466
- * Unique limits identifier
4467
- */
4468
- id: string;
4469
- /**
4470
- * User Id
4471
- * Associated user ID
4472
- */
4473
- user_id: string;
4474
- /**
4475
- * Max User Graphs
4476
- * Maximum number of user graphs allowed (safety limit)
4477
- */
4478
- max_user_graphs: number;
4479
- /**
4480
- * Created At
4481
- * Limits creation timestamp
4482
- */
4483
- created_at: string;
4484
- /**
4485
- * Updated At
4486
- * Last update timestamp
4487
- */
4488
- updated_at: string;
4489
- };
4490
-
4491
4801
  /**
4492
4802
  * UserResponse
4493
4803
  * User information response model.
@@ -4516,37 +4826,11 @@ export type UserResponse = {
4516
4826
  };
4517
4827
 
4518
4828
  /**
4519
- * UserUsageResponse
4520
- * Response model for user usage statistics.
4521
- *
4522
- * Simplified to only show graph usage as UserLimits is now just a safety valve.
4523
- * Other usage tracking (MCP, Agent calls) happens at the graph level.
4829
+ * ValidationError
4524
4830
  */
4525
- export type UserUsageResponse = {
4831
+ export type ValidationError = {
4526
4832
  /**
4527
- * User Id
4528
- * User identifier
4529
- */
4530
- user_id: string;
4531
- /**
4532
- * Graphs
4533
- * Graph usage statistics (current/limit/remaining)
4534
- */
4535
- graphs: {
4536
- [key: string]: unknown;
4537
- };
4538
- /**
4539
- * Current user limits
4540
- */
4541
- limits: UserLimitsResponse;
4542
- };
4543
-
4544
- /**
4545
- * ValidationError
4546
- */
4547
- export type ValidationError = {
4548
- /**
4549
- * Location
4833
+ * Location
4550
4834
  */
4551
4835
  loc: Array<string | number>;
4552
4836
  /**
@@ -5207,21 +5491,332 @@ export type UpdateUserApiKeyResponses = {
5207
5491
 
5208
5492
  export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
5209
5493
 
5210
- export type GetUserLimitsData = {
5494
+ export type ListUserOrgsData = {
5211
5495
  body?: never;
5212
5496
  path?: never;
5213
5497
  query?: never;
5214
- url: '/v1/user/limits';
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}';
5702
+ };
5703
+
5704
+ export type RemoveOrgMemberErrors = {
5705
+ /**
5706
+ * Validation Error
5707
+ */
5708
+ 422: HttpValidationError;
5709
+ };
5710
+
5711
+ export type RemoveOrgMemberError = RemoveOrgMemberErrors[keyof RemoveOrgMemberErrors];
5712
+
5713
+ export type RemoveOrgMemberResponses = {
5714
+ /**
5715
+ * Successful Response
5716
+ */
5717
+ 204: void;
5718
+ };
5719
+
5720
+ export type RemoveOrgMemberResponse = RemoveOrgMemberResponses[keyof RemoveOrgMemberResponses];
5721
+
5722
+ export type UpdateOrgMemberRoleData = {
5723
+ body: UpdateMemberRoleRequest;
5724
+ path: {
5725
+ /**
5726
+ * Org Id
5727
+ */
5728
+ org_id: string;
5729
+ /**
5730
+ * User Id
5731
+ */
5732
+ user_id: string;
5733
+ };
5734
+ query?: never;
5735
+ url: '/v1/orgs/{org_id}/members/{user_id}';
5215
5736
  };
5216
5737
 
5217
- export type GetUserLimitsResponses = {
5738
+ export type UpdateOrgMemberRoleErrors = {
5218
5739
  /**
5219
- * User limits and usage retrieved successfully
5740
+ * Validation Error
5220
5741
  */
5221
- 200: UserUsageResponse;
5742
+ 422: HttpValidationError;
5222
5743
  };
5223
5744
 
5224
- export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
5745
+ export type UpdateOrgMemberRoleError = UpdateOrgMemberRoleErrors[keyof UpdateOrgMemberRoleErrors];
5746
+
5747
+ export type UpdateOrgMemberRoleResponses = {
5748
+ /**
5749
+ * Successful Response
5750
+ */
5751
+ 200: OrgMemberResponse;
5752
+ };
5753
+
5754
+ export type UpdateOrgMemberRoleResponse = UpdateOrgMemberRoleResponses[keyof UpdateOrgMemberRoleResponses];
5755
+
5756
+ export type GetOrgLimitsData = {
5757
+ body?: never;
5758
+ path: {
5759
+ /**
5760
+ * Org Id
5761
+ */
5762
+ org_id: string;
5763
+ };
5764
+ query?: never;
5765
+ url: '/v1/orgs/{org_id}/limits';
5766
+ };
5767
+
5768
+ export type GetOrgLimitsErrors = {
5769
+ /**
5770
+ * Validation Error
5771
+ */
5772
+ 422: HttpValidationError;
5773
+ };
5774
+
5775
+ export type GetOrgLimitsError = GetOrgLimitsErrors[keyof GetOrgLimitsErrors];
5776
+
5777
+ export type GetOrgLimitsResponses = {
5778
+ /**
5779
+ * Successful Response
5780
+ */
5781
+ 200: OrgLimitsResponse;
5782
+ };
5783
+
5784
+ export type GetOrgLimitsResponse = GetOrgLimitsResponses[keyof GetOrgLimitsResponses];
5785
+
5786
+ export type GetOrgUsageData = {
5787
+ body?: never;
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;
5808
+ };
5809
+
5810
+ export type GetOrgUsageError = GetOrgUsageErrors[keyof GetOrgUsageErrors];
5811
+
5812
+ export type GetOrgUsageResponses = {
5813
+ /**
5814
+ * Successful Response
5815
+ */
5816
+ 200: OrgUsageResponse;
5817
+ };
5818
+
5819
+ export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
5225
5820
 
5226
5821
  export type ListConnectionsData = {
5227
5822
  body?: never;
@@ -5660,51 +6255,140 @@ export type SyncConnectionResponses = {
5660
6255
 
5661
6256
  export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
5662
6257
 
5663
- export type AutoSelectAgentData = {
5664
- body: AgentRequest;
6258
+ export type ListAgentsData = {
6259
+ body?: never;
6260
+ path: {
6261
+ /**
6262
+ * Graph Id
6263
+ */
6264
+ graph_id: string;
6265
+ };
6266
+ query?: {
6267
+ /**
6268
+ * Capability
6269
+ * Filter by capability (e.g., 'financial_analysis', 'rag_search')
6270
+ */
6271
+ capability?: string | null;
6272
+ };
6273
+ url: '/v1/graphs/{graph_id}/agent';
6274
+ };
6275
+
6276
+ export type ListAgentsErrors = {
6277
+ /**
6278
+ * Unauthorized - Invalid or missing authentication
6279
+ */
6280
+ 401: unknown;
6281
+ /**
6282
+ * Validation Error
6283
+ */
6284
+ 422: HttpValidationError;
6285
+ };
6286
+
6287
+ export type ListAgentsError = ListAgentsErrors[keyof ListAgentsErrors];
6288
+
6289
+ export type ListAgentsResponses = {
6290
+ /**
6291
+ * List of agents retrieved successfully
6292
+ */
6293
+ 200: AgentListResponse;
6294
+ };
6295
+
6296
+ export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
6297
+
6298
+ export type AutoSelectAgentData = {
6299
+ body: AgentRequest;
6300
+ path: {
6301
+ /**
6302
+ * Graph Id
6303
+ */
6304
+ graph_id: string;
6305
+ };
6306
+ query?: {
6307
+ /**
6308
+ * Mode
6309
+ * Override execution mode: sync, async, stream, or auto
6310
+ */
6311
+ mode?: ResponseMode | null;
6312
+ };
6313
+ url: '/v1/graphs/{graph_id}/agent';
6314
+ };
6315
+
6316
+ export type AutoSelectAgentErrors = {
6317
+ /**
6318
+ * Invalid request parameters
6319
+ */
6320
+ 400: unknown;
6321
+ /**
6322
+ * Insufficient credits for selected agent
6323
+ */
6324
+ 402: unknown;
6325
+ /**
6326
+ * Validation Error
6327
+ */
6328
+ 422: HttpValidationError;
6329
+ /**
6330
+ * Rate limit exceeded
6331
+ */
6332
+ 429: unknown;
6333
+ /**
6334
+ * Internal server error
6335
+ */
6336
+ 500: ErrorResponse;
6337
+ };
6338
+
6339
+ export type AutoSelectAgentError = AutoSelectAgentErrors[keyof AutoSelectAgentErrors];
6340
+
6341
+ export type AutoSelectAgentResponses = {
6342
+ /**
6343
+ * Query successfully processed by selected agent
6344
+ */
6345
+ 200: AgentResponse;
6346
+ /**
6347
+ * Query queued for async processing with operation tracking
6348
+ */
6349
+ 202: unknown;
6350
+ };
6351
+
6352
+ export type AutoSelectAgentResponse = AutoSelectAgentResponses[keyof AutoSelectAgentResponses];
6353
+
6354
+ export type GetAgentMetadataData = {
6355
+ body?: never;
5665
6356
  path: {
5666
6357
  /**
5667
6358
  * Graph Id
5668
6359
  */
5669
6360
  graph_id: string;
6361
+ /**
6362
+ * Agent Type
6363
+ * Agent type identifier (e.g., 'financial', 'research', 'rag')
6364
+ */
6365
+ agent_type: string;
5670
6366
  };
5671
6367
  query?: never;
5672
- url: '/v1/graphs/{graph_id}/agent';
6368
+ url: '/v1/graphs/{graph_id}/agent/{agent_type}';
5673
6369
  };
5674
6370
 
5675
- export type AutoSelectAgentErrors = {
5676
- /**
5677
- * Invalid request parameters
5678
- */
5679
- 400: unknown;
6371
+ export type GetAgentMetadataErrors = {
5680
6372
  /**
5681
- * Insufficient credits for selected agent
6373
+ * Agent type not found
5682
6374
  */
5683
- 402: unknown;
6375
+ 404: unknown;
5684
6376
  /**
5685
6377
  * Validation Error
5686
6378
  */
5687
6379
  422: HttpValidationError;
5688
- /**
5689
- * Rate limit exceeded
5690
- */
5691
- 429: unknown;
5692
- /**
5693
- * Internal server error
5694
- */
5695
- 500: ErrorResponse;
5696
6380
  };
5697
6381
 
5698
- export type AutoSelectAgentError = AutoSelectAgentErrors[keyof AutoSelectAgentErrors];
6382
+ export type GetAgentMetadataError = GetAgentMetadataErrors[keyof GetAgentMetadataErrors];
5699
6383
 
5700
- export type AutoSelectAgentResponses = {
6384
+ export type GetAgentMetadataResponses = {
5701
6385
  /**
5702
- * Query successfully processed by selected agent
6386
+ * Agent metadata retrieved successfully
5703
6387
  */
5704
- 200: AgentResponse;
6388
+ 200: AgentMetadataResponse;
5705
6389
  };
5706
6390
 
5707
- export type AutoSelectAgentResponse = AutoSelectAgentResponses[keyof AutoSelectAgentResponses];
6391
+ export type GetAgentMetadataResponse = GetAgentMetadataResponses[keyof GetAgentMetadataResponses];
5708
6392
 
5709
6393
  export type ExecuteSpecificAgentData = {
5710
6394
  body: AgentRequest;
@@ -5718,7 +6402,13 @@ export type ExecuteSpecificAgentData = {
5718
6402
  */
5719
6403
  graph_id: string;
5720
6404
  };
5721
- query?: never;
6405
+ query?: {
6406
+ /**
6407
+ * Mode
6408
+ * Override execution mode: sync, async, stream, or auto
6409
+ */
6410
+ mode?: ResponseMode | null;
6411
+ };
5722
6412
  url: '/v1/graphs/{graph_id}/agent/{agent_type}';
5723
6413
  };
5724
6414
 
@@ -5756,6 +6446,10 @@ export type ExecuteSpecificAgentResponses = {
5756
6446
  * Query successfully processed by specified agent
5757
6447
  */
5758
6448
  200: AgentResponse;
6449
+ /**
6450
+ * Query queued for async processing with operation tracking
6451
+ */
6452
+ 202: unknown;
5759
6453
  };
5760
6454
 
5761
6455
  export type ExecuteSpecificAgentResponse = ExecuteSpecificAgentResponses[keyof ExecuteSpecificAgentResponses];
@@ -5802,85 +6496,6 @@ export type BatchProcessQueriesResponses = {
5802
6496
 
5803
6497
  export type BatchProcessQueriesResponse = BatchProcessQueriesResponses[keyof BatchProcessQueriesResponses];
5804
6498
 
5805
- export type ListAgentsData = {
5806
- body?: never;
5807
- path: {
5808
- /**
5809
- * Graph Id
5810
- */
5811
- graph_id: string;
5812
- };
5813
- query?: {
5814
- /**
5815
- * Capability
5816
- * Filter by capability (e.g., 'financial_analysis', 'rag_search')
5817
- */
5818
- capability?: string | null;
5819
- };
5820
- url: '/v1/graphs/{graph_id}/agent/list';
5821
- };
5822
-
5823
- export type ListAgentsErrors = {
5824
- /**
5825
- * Unauthorized - Invalid or missing authentication
5826
- */
5827
- 401: unknown;
5828
- /**
5829
- * Validation Error
5830
- */
5831
- 422: HttpValidationError;
5832
- };
5833
-
5834
- export type ListAgentsError = ListAgentsErrors[keyof ListAgentsErrors];
5835
-
5836
- export type ListAgentsResponses = {
5837
- /**
5838
- * List of agents retrieved successfully
5839
- */
5840
- 200: AgentListResponse;
5841
- };
5842
-
5843
- export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
5844
-
5845
- export type GetAgentMetadataData = {
5846
- body?: never;
5847
- path: {
5848
- /**
5849
- * Graph Id
5850
- */
5851
- graph_id: string;
5852
- /**
5853
- * Agent Type
5854
- * Agent type identifier (e.g., 'financial', 'research', 'rag')
5855
- */
5856
- agent_type: string;
5857
- };
5858
- query?: never;
5859
- url: '/v1/graphs/{graph_id}/agent/{agent_type}/metadata';
5860
- };
5861
-
5862
- export type GetAgentMetadataErrors = {
5863
- /**
5864
- * Agent type not found
5865
- */
5866
- 404: unknown;
5867
- /**
5868
- * Validation Error
5869
- */
5870
- 422: HttpValidationError;
5871
- };
5872
-
5873
- export type GetAgentMetadataError = GetAgentMetadataErrors[keyof GetAgentMetadataErrors];
5874
-
5875
- export type GetAgentMetadataResponses = {
5876
- /**
5877
- * Agent metadata retrieved successfully
5878
- */
5879
- 200: AgentMetadataResponse;
5880
- };
5881
-
5882
- export type GetAgentMetadataResponse = GetAgentMetadataResponses[keyof GetAgentMetadataResponses];
5883
-
5884
6499
  export type RecommendAgentData = {
5885
6500
  body: AgentRecommendationRequest;
5886
6501
  path: {
@@ -6619,6 +7234,7 @@ export type ListCreditTransactionsData = {
6619
7234
  path: {
6620
7235
  /**
6621
7236
  * Graph Id
7237
+ * Graph database identifier
6622
7238
  */
6623
7239
  graph_id: string;
6624
7240
  };
@@ -8081,105 +8697,173 @@ export type CancelOperationResponses = {
8081
8697
 
8082
8698
  export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
8083
8699
 
8084
- export type CreateCheckoutSessionData = {
8085
- body: CreateCheckoutRequest;
8086
- path?: never;
8700
+ export type GetOrgBillingCustomerData = {
8701
+ body?: never;
8702
+ path: {
8703
+ /**
8704
+ * Org Id
8705
+ */
8706
+ org_id: string;
8707
+ };
8087
8708
  query?: never;
8088
- url: '/v1/billing/checkout';
8709
+ url: '/v1/billing/customer/{org_id}';
8089
8710
  };
8090
8711
 
8091
- export type CreateCheckoutSessionErrors = {
8712
+ export type GetOrgBillingCustomerErrors = {
8092
8713
  /**
8093
8714
  * Validation Error
8094
8715
  */
8095
8716
  422: HttpValidationError;
8096
8717
  };
8097
8718
 
8098
- export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
8719
+ export type GetOrgBillingCustomerError = GetOrgBillingCustomerErrors[keyof GetOrgBillingCustomerErrors];
8099
8720
 
8100
- export type CreateCheckoutSessionResponses = {
8721
+ export type GetOrgBillingCustomerResponses = {
8101
8722
  /**
8102
8723
  * Successful Response
8103
8724
  */
8104
- 201: CheckoutResponse;
8725
+ 200: BillingCustomer;
8105
8726
  };
8106
8727
 
8107
- export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
8728
+ export type GetOrgBillingCustomerResponse = GetOrgBillingCustomerResponses[keyof GetOrgBillingCustomerResponses];
8108
8729
 
8109
- export type GetCheckoutStatusData = {
8730
+ export type UpdateOrgPaymentMethodData = {
8731
+ body: UpdatePaymentMethodRequest;
8732
+ path: {
8733
+ /**
8734
+ * Org Id
8735
+ */
8736
+ org_id: string;
8737
+ };
8738
+ query?: never;
8739
+ url: '/v1/billing/customer/{org_id}/payment-method';
8740
+ };
8741
+
8742
+ export type UpdateOrgPaymentMethodErrors = {
8743
+ /**
8744
+ * Validation Error
8745
+ */
8746
+ 422: HttpValidationError;
8747
+ };
8748
+
8749
+ export type UpdateOrgPaymentMethodError = UpdateOrgPaymentMethodErrors[keyof UpdateOrgPaymentMethodErrors];
8750
+
8751
+ export type UpdateOrgPaymentMethodResponses = {
8752
+ /**
8753
+ * Successful Response
8754
+ */
8755
+ 200: UpdatePaymentMethodResponse;
8756
+ };
8757
+
8758
+ export type UpdateOrgPaymentMethodResponse = UpdateOrgPaymentMethodResponses[keyof UpdateOrgPaymentMethodResponses];
8759
+
8760
+ export type ListOrgSubscriptionsData = {
8110
8761
  body?: never;
8111
8762
  path: {
8112
8763
  /**
8113
- * Session Id
8764
+ * Org Id
8114
8765
  */
8115
- session_id: string;
8766
+ org_id: string;
8116
8767
  };
8117
8768
  query?: never;
8118
- url: '/v1/billing/checkout/{session_id}/status';
8769
+ url: '/v1/billing/subscriptions/{org_id}';
8119
8770
  };
8120
8771
 
8121
- export type GetCheckoutStatusErrors = {
8772
+ export type ListOrgSubscriptionsErrors = {
8122
8773
  /**
8123
8774
  * Validation Error
8124
8775
  */
8125
8776
  422: HttpValidationError;
8126
8777
  };
8127
8778
 
8128
- export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
8779
+ export type ListOrgSubscriptionsError = ListOrgSubscriptionsErrors[keyof ListOrgSubscriptionsErrors];
8129
8780
 
8130
- export type GetCheckoutStatusResponses = {
8781
+ export type ListOrgSubscriptionsResponses = {
8131
8782
  /**
8783
+ * Response Listorgsubscriptions
8132
8784
  * Successful Response
8133
8785
  */
8134
- 200: CheckoutStatusResponse;
8786
+ 200: Array<GraphSubscriptionResponse>;
8135
8787
  };
8136
8788
 
8137
- export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
8789
+ export type ListOrgSubscriptionsResponse = ListOrgSubscriptionsResponses[keyof ListOrgSubscriptionsResponses];
8138
8790
 
8139
- export type GetBillingCustomerData = {
8791
+ export type GetOrgSubscriptionData = {
8140
8792
  body?: never;
8141
- path?: never;
8793
+ path: {
8794
+ /**
8795
+ * Org Id
8796
+ */
8797
+ org_id: string;
8798
+ /**
8799
+ * Subscription Id
8800
+ */
8801
+ subscription_id: string;
8802
+ };
8142
8803
  query?: never;
8143
- url: '/v1/billing/customer';
8804
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}';
8144
8805
  };
8145
8806
 
8146
- export type GetBillingCustomerResponses = {
8807
+ export type GetOrgSubscriptionErrors = {
8808
+ /**
8809
+ * Validation Error
8810
+ */
8811
+ 422: HttpValidationError;
8812
+ };
8813
+
8814
+ export type GetOrgSubscriptionError = GetOrgSubscriptionErrors[keyof GetOrgSubscriptionErrors];
8815
+
8816
+ export type GetOrgSubscriptionResponses = {
8147
8817
  /**
8148
8818
  * Successful Response
8149
8819
  */
8150
- 200: BillingCustomer;
8820
+ 200: GraphSubscriptionResponse;
8151
8821
  };
8152
8822
 
8153
- export type GetBillingCustomerResponse = GetBillingCustomerResponses[keyof GetBillingCustomerResponses];
8823
+ export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
8154
8824
 
8155
- export type UpdatePaymentMethodData = {
8156
- body: UpdatePaymentMethodRequest;
8157
- path?: never;
8825
+ export type CancelOrgSubscriptionData = {
8826
+ body?: never;
8827
+ path: {
8828
+ /**
8829
+ * Org Id
8830
+ */
8831
+ org_id: string;
8832
+ /**
8833
+ * Subscription Id
8834
+ */
8835
+ subscription_id: string;
8836
+ };
8158
8837
  query?: never;
8159
- url: '/v1/billing/customer/payment-method';
8838
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel';
8160
8839
  };
8161
8840
 
8162
- export type UpdatePaymentMethodErrors = {
8841
+ export type CancelOrgSubscriptionErrors = {
8163
8842
  /**
8164
8843
  * Validation Error
8165
8844
  */
8166
8845
  422: HttpValidationError;
8167
8846
  };
8168
8847
 
8169
- export type UpdatePaymentMethodError = UpdatePaymentMethodErrors[keyof UpdatePaymentMethodErrors];
8848
+ export type CancelOrgSubscriptionError = CancelOrgSubscriptionErrors[keyof CancelOrgSubscriptionErrors];
8170
8849
 
8171
- export type UpdatePaymentMethodResponses = {
8850
+ export type CancelOrgSubscriptionResponses = {
8172
8851
  /**
8173
8852
  * Successful Response
8174
8853
  */
8175
- 200: UpdatePaymentMethodResponse;
8854
+ 200: GraphSubscriptionResponse;
8176
8855
  };
8177
8856
 
8178
- export type UpdatePaymentMethodResponse2 = UpdatePaymentMethodResponses[keyof UpdatePaymentMethodResponses];
8857
+ export type CancelOrgSubscriptionResponse = CancelOrgSubscriptionResponses[keyof CancelOrgSubscriptionResponses];
8179
8858
 
8180
- export type ListInvoicesData = {
8859
+ export type ListOrgInvoicesData = {
8181
8860
  body?: never;
8182
- path?: never;
8861
+ path: {
8862
+ /**
8863
+ * Org Id
8864
+ */
8865
+ org_id: string;
8866
+ };
8183
8867
  query?: {
8184
8868
  /**
8185
8869
  * Limit
@@ -8187,120 +8871,112 @@ export type ListInvoicesData = {
8187
8871
  */
8188
8872
  limit?: number;
8189
8873
  };
8190
- url: '/v1/billing/invoices';
8874
+ url: '/v1/billing/invoices/{org_id}';
8191
8875
  };
8192
8876
 
8193
- export type ListInvoicesErrors = {
8877
+ export type ListOrgInvoicesErrors = {
8194
8878
  /**
8195
8879
  * Validation Error
8196
8880
  */
8197
8881
  422: HttpValidationError;
8198
8882
  };
8199
8883
 
8200
- export type ListInvoicesError = ListInvoicesErrors[keyof ListInvoicesErrors];
8884
+ export type ListOrgInvoicesError = ListOrgInvoicesErrors[keyof ListOrgInvoicesErrors];
8201
8885
 
8202
- export type ListInvoicesResponses = {
8886
+ export type ListOrgInvoicesResponses = {
8203
8887
  /**
8204
8888
  * Successful Response
8205
8889
  */
8206
8890
  200: InvoicesResponse;
8207
8891
  };
8208
8892
 
8209
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
8893
+ export type ListOrgInvoicesResponse = ListOrgInvoicesResponses[keyof ListOrgInvoicesResponses];
8210
8894
 
8211
- export type GetUpcomingInvoiceData = {
8895
+ export type GetOrgUpcomingInvoiceData = {
8212
8896
  body?: never;
8213
- path?: never;
8897
+ path: {
8898
+ /**
8899
+ * Org Id
8900
+ */
8901
+ org_id: string;
8902
+ };
8214
8903
  query?: never;
8215
- url: '/v1/billing/invoices/upcoming';
8904
+ url: '/v1/billing/invoices/{org_id}/upcoming';
8216
8905
  };
8217
8906
 
8218
- export type GetUpcomingInvoiceResponses = {
8907
+ export type GetOrgUpcomingInvoiceErrors = {
8219
8908
  /**
8220
- * Response Getupcominginvoice
8221
- * Successful Response
8909
+ * Validation Error
8222
8910
  */
8223
- 200: UpcomingInvoice | null;
8911
+ 422: HttpValidationError;
8224
8912
  };
8225
8913
 
8226
- export type GetUpcomingInvoiceResponse = GetUpcomingInvoiceResponses[keyof GetUpcomingInvoiceResponses];
8227
-
8228
- export type ListSubscriptionsData = {
8229
- body?: never;
8230
- path?: never;
8231
- query?: never;
8232
- url: '/v1/billing/subscriptions';
8233
- };
8914
+ export type GetOrgUpcomingInvoiceError = GetOrgUpcomingInvoiceErrors[keyof GetOrgUpcomingInvoiceErrors];
8234
8915
 
8235
- export type ListSubscriptionsResponses = {
8916
+ export type GetOrgUpcomingInvoiceResponses = {
8236
8917
  /**
8237
- * Response Listsubscriptions
8918
+ * Response Getorgupcominginvoice
8238
8919
  * Successful Response
8239
8920
  */
8240
- 200: Array<GraphSubscriptionResponse>;
8921
+ 200: UpcomingInvoice | null;
8241
8922
  };
8242
8923
 
8243
- export type ListSubscriptionsResponse = ListSubscriptionsResponses[keyof ListSubscriptionsResponses];
8924
+ export type GetOrgUpcomingInvoiceResponse = GetOrgUpcomingInvoiceResponses[keyof GetOrgUpcomingInvoiceResponses];
8244
8925
 
8245
- export type GetSubscriptionData = {
8246
- body?: never;
8247
- path: {
8248
- /**
8249
- * Subscription Id
8250
- */
8251
- subscription_id: string;
8252
- };
8926
+ export type CreateCheckoutSessionData = {
8927
+ body: CreateCheckoutRequest;
8928
+ path?: never;
8253
8929
  query?: never;
8254
- url: '/v1/billing/subscriptions/{subscription_id}';
8930
+ url: '/v1/billing/checkout';
8255
8931
  };
8256
8932
 
8257
- export type GetSubscriptionErrors = {
8933
+ export type CreateCheckoutSessionErrors = {
8258
8934
  /**
8259
8935
  * Validation Error
8260
8936
  */
8261
8937
  422: HttpValidationError;
8262
8938
  };
8263
8939
 
8264
- export type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
8940
+ export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
8265
8941
 
8266
- export type GetSubscriptionResponses = {
8942
+ export type CreateCheckoutSessionResponses = {
8267
8943
  /**
8268
8944
  * Successful Response
8269
8945
  */
8270
- 200: GraphSubscriptionResponse;
8946
+ 201: CheckoutResponse;
8271
8947
  };
8272
8948
 
8273
- export type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
8949
+ export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
8274
8950
 
8275
- export type CancelSubscription2Data = {
8951
+ export type GetCheckoutStatusData = {
8276
8952
  body?: never;
8277
8953
  path: {
8278
8954
  /**
8279
- * Subscription Id
8955
+ * Session Id
8280
8956
  */
8281
- subscription_id: string;
8957
+ session_id: string;
8282
8958
  };
8283
8959
  query?: never;
8284
- url: '/v1/billing/subscriptions/{subscription_id}/cancel';
8960
+ url: '/v1/billing/checkout/{session_id}/status';
8285
8961
  };
8286
8962
 
8287
- export type CancelSubscription2Errors = {
8963
+ export type GetCheckoutStatusErrors = {
8288
8964
  /**
8289
8965
  * Validation Error
8290
8966
  */
8291
8967
  422: HttpValidationError;
8292
8968
  };
8293
8969
 
8294
- export type CancelSubscription2Error = CancelSubscription2Errors[keyof CancelSubscription2Errors];
8970
+ export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
8295
8971
 
8296
- export type CancelSubscription2Responses = {
8972
+ export type GetCheckoutStatusResponses = {
8297
8973
  /**
8298
8974
  * Successful Response
8299
8975
  */
8300
- 200: GraphSubscriptionResponse;
8976
+ 200: CheckoutStatusResponse;
8301
8977
  };
8302
8978
 
8303
- export type CancelSubscription2Response = CancelSubscription2Responses[keyof CancelSubscription2Responses];
8979
+ export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
8304
8980
 
8305
8981
  export type ClientOptions = {
8306
8982
  baseUrl: 'http://localhost:8000';