@robosystems/client 0.2.10 → 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
@@ -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
  /**
@@ -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}';
5215
5702
  };
5216
5703
 
5217
- export type GetUserLimitsResponses = {
5704
+ export type RemoveOrgMemberErrors = {
5218
5705
  /**
5219
- * User limits and usage retrieved successfully
5706
+ * Validation Error
5220
5707
  */
5221
- 200: UserUsageResponse;
5708
+ 422: HttpValidationError;
5222
5709
  };
5223
5710
 
5224
- export type GetUserLimitsResponse = GetUserLimitsResponses[keyof GetUserLimitsResponses];
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}';
5736
+ };
5737
+
5738
+ export type UpdateOrgMemberRoleErrors = {
5739
+ /**
5740
+ * Validation Error
5741
+ */
5742
+ 422: HttpValidationError;
5743
+ };
5744
+
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;
@@ -8081,105 +8676,173 @@ export type CancelOperationResponses = {
8081
8676
 
8082
8677
  export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
8083
8678
 
8084
- export type CreateCheckoutSessionData = {
8085
- body: CreateCheckoutRequest;
8086
- path?: never;
8679
+ export type GetOrgBillingCustomerData = {
8680
+ body?: never;
8681
+ path: {
8682
+ /**
8683
+ * Org Id
8684
+ */
8685
+ org_id: string;
8686
+ };
8087
8687
  query?: never;
8088
- url: '/v1/billing/checkout';
8688
+ url: '/v1/billing/customer/{org_id}';
8089
8689
  };
8090
8690
 
8091
- export type CreateCheckoutSessionErrors = {
8691
+ export type GetOrgBillingCustomerErrors = {
8092
8692
  /**
8093
8693
  * Validation Error
8094
8694
  */
8095
8695
  422: HttpValidationError;
8096
8696
  };
8097
8697
 
8098
- export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
8698
+ export type GetOrgBillingCustomerError = GetOrgBillingCustomerErrors[keyof GetOrgBillingCustomerErrors];
8099
8699
 
8100
- export type CreateCheckoutSessionResponses = {
8700
+ export type GetOrgBillingCustomerResponses = {
8101
8701
  /**
8102
8702
  * Successful Response
8103
8703
  */
8104
- 201: CheckoutResponse;
8704
+ 200: BillingCustomer;
8105
8705
  };
8106
8706
 
8107
- export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
8707
+ export type GetOrgBillingCustomerResponse = GetOrgBillingCustomerResponses[keyof GetOrgBillingCustomerResponses];
8108
8708
 
8109
- export type GetCheckoutStatusData = {
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 = {
8110
8740
  body?: never;
8111
8741
  path: {
8112
8742
  /**
8113
- * Session Id
8743
+ * Org Id
8114
8744
  */
8115
- session_id: string;
8745
+ org_id: string;
8116
8746
  };
8117
8747
  query?: never;
8118
- url: '/v1/billing/checkout/{session_id}/status';
8748
+ url: '/v1/billing/subscriptions/{org_id}';
8119
8749
  };
8120
8750
 
8121
- export type GetCheckoutStatusErrors = {
8751
+ export type ListOrgSubscriptionsErrors = {
8122
8752
  /**
8123
8753
  * Validation Error
8124
8754
  */
8125
8755
  422: HttpValidationError;
8126
8756
  };
8127
8757
 
8128
- export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
8758
+ export type ListOrgSubscriptionsError = ListOrgSubscriptionsErrors[keyof ListOrgSubscriptionsErrors];
8129
8759
 
8130
- export type GetCheckoutStatusResponses = {
8760
+ export type ListOrgSubscriptionsResponses = {
8131
8761
  /**
8762
+ * Response Listorgsubscriptions
8132
8763
  * Successful Response
8133
8764
  */
8134
- 200: CheckoutStatusResponse;
8765
+ 200: Array<GraphSubscriptionResponse>;
8135
8766
  };
8136
8767
 
8137
- export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
8768
+ export type ListOrgSubscriptionsResponse = ListOrgSubscriptionsResponses[keyof ListOrgSubscriptionsResponses];
8138
8769
 
8139
- export type GetBillingCustomerData = {
8770
+ export type GetOrgSubscriptionData = {
8140
8771
  body?: never;
8141
- path?: never;
8772
+ path: {
8773
+ /**
8774
+ * Org Id
8775
+ */
8776
+ org_id: string;
8777
+ /**
8778
+ * Subscription Id
8779
+ */
8780
+ subscription_id: string;
8781
+ };
8142
8782
  query?: never;
8143
- url: '/v1/billing/customer';
8783
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}';
8144
8784
  };
8145
8785
 
8146
- export type GetBillingCustomerResponses = {
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 = {
8147
8796
  /**
8148
8797
  * Successful Response
8149
8798
  */
8150
- 200: BillingCustomer;
8799
+ 200: GraphSubscriptionResponse;
8151
8800
  };
8152
8801
 
8153
- export type GetBillingCustomerResponse = GetBillingCustomerResponses[keyof GetBillingCustomerResponses];
8802
+ export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
8154
8803
 
8155
- export type UpdatePaymentMethodData = {
8156
- body: UpdatePaymentMethodRequest;
8157
- path?: never;
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
+ };
8158
8816
  query?: never;
8159
- url: '/v1/billing/customer/payment-method';
8817
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel';
8160
8818
  };
8161
8819
 
8162
- export type UpdatePaymentMethodErrors = {
8820
+ export type CancelOrgSubscriptionErrors = {
8163
8821
  /**
8164
8822
  * Validation Error
8165
8823
  */
8166
8824
  422: HttpValidationError;
8167
8825
  };
8168
8826
 
8169
- export type UpdatePaymentMethodError = UpdatePaymentMethodErrors[keyof UpdatePaymentMethodErrors];
8827
+ export type CancelOrgSubscriptionError = CancelOrgSubscriptionErrors[keyof CancelOrgSubscriptionErrors];
8170
8828
 
8171
- export type UpdatePaymentMethodResponses = {
8829
+ export type CancelOrgSubscriptionResponses = {
8172
8830
  /**
8173
8831
  * Successful Response
8174
8832
  */
8175
- 200: UpdatePaymentMethodResponse;
8833
+ 200: GraphSubscriptionResponse;
8176
8834
  };
8177
8835
 
8178
- export type UpdatePaymentMethodResponse2 = UpdatePaymentMethodResponses[keyof UpdatePaymentMethodResponses];
8836
+ export type CancelOrgSubscriptionResponse = CancelOrgSubscriptionResponses[keyof CancelOrgSubscriptionResponses];
8179
8837
 
8180
- export type ListInvoicesData = {
8838
+ export type ListOrgInvoicesData = {
8181
8839
  body?: never;
8182
- path?: never;
8840
+ path: {
8841
+ /**
8842
+ * Org Id
8843
+ */
8844
+ org_id: string;
8845
+ };
8183
8846
  query?: {
8184
8847
  /**
8185
8848
  * Limit
@@ -8187,120 +8850,112 @@ export type ListInvoicesData = {
8187
8850
  */
8188
8851
  limit?: number;
8189
8852
  };
8190
- url: '/v1/billing/invoices';
8853
+ url: '/v1/billing/invoices/{org_id}';
8191
8854
  };
8192
8855
 
8193
- export type ListInvoicesErrors = {
8856
+ export type ListOrgInvoicesErrors = {
8194
8857
  /**
8195
8858
  * Validation Error
8196
8859
  */
8197
8860
  422: HttpValidationError;
8198
8861
  };
8199
8862
 
8200
- export type ListInvoicesError = ListInvoicesErrors[keyof ListInvoicesErrors];
8863
+ export type ListOrgInvoicesError = ListOrgInvoicesErrors[keyof ListOrgInvoicesErrors];
8201
8864
 
8202
- export type ListInvoicesResponses = {
8865
+ export type ListOrgInvoicesResponses = {
8203
8866
  /**
8204
8867
  * Successful Response
8205
8868
  */
8206
8869
  200: InvoicesResponse;
8207
8870
  };
8208
8871
 
8209
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
8872
+ export type ListOrgInvoicesResponse = ListOrgInvoicesResponses[keyof ListOrgInvoicesResponses];
8210
8873
 
8211
- export type GetUpcomingInvoiceData = {
8874
+ export type GetOrgUpcomingInvoiceData = {
8212
8875
  body?: never;
8213
- path?: never;
8876
+ path: {
8877
+ /**
8878
+ * Org Id
8879
+ */
8880
+ org_id: string;
8881
+ };
8214
8882
  query?: never;
8215
- url: '/v1/billing/invoices/upcoming';
8883
+ url: '/v1/billing/invoices/{org_id}/upcoming';
8216
8884
  };
8217
8885
 
8218
- export type GetUpcomingInvoiceResponses = {
8886
+ export type GetOrgUpcomingInvoiceErrors = {
8219
8887
  /**
8220
- * Response Getupcominginvoice
8221
- * Successful Response
8888
+ * Validation Error
8222
8889
  */
8223
- 200: UpcomingInvoice | null;
8890
+ 422: HttpValidationError;
8224
8891
  };
8225
8892
 
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
- };
8893
+ export type GetOrgUpcomingInvoiceError = GetOrgUpcomingInvoiceErrors[keyof GetOrgUpcomingInvoiceErrors];
8234
8894
 
8235
- export type ListSubscriptionsResponses = {
8895
+ export type GetOrgUpcomingInvoiceResponses = {
8236
8896
  /**
8237
- * Response Listsubscriptions
8897
+ * Response Getorgupcominginvoice
8238
8898
  * Successful Response
8239
8899
  */
8240
- 200: Array<GraphSubscriptionResponse>;
8900
+ 200: UpcomingInvoice | null;
8241
8901
  };
8242
8902
 
8243
- export type ListSubscriptionsResponse = ListSubscriptionsResponses[keyof ListSubscriptionsResponses];
8903
+ export type GetOrgUpcomingInvoiceResponse = GetOrgUpcomingInvoiceResponses[keyof GetOrgUpcomingInvoiceResponses];
8244
8904
 
8245
- export type GetSubscriptionData = {
8246
- body?: never;
8247
- path: {
8248
- /**
8249
- * Subscription Id
8250
- */
8251
- subscription_id: string;
8252
- };
8905
+ export type CreateCheckoutSessionData = {
8906
+ body: CreateCheckoutRequest;
8907
+ path?: never;
8253
8908
  query?: never;
8254
- url: '/v1/billing/subscriptions/{subscription_id}';
8909
+ url: '/v1/billing/checkout';
8255
8910
  };
8256
8911
 
8257
- export type GetSubscriptionErrors = {
8912
+ export type CreateCheckoutSessionErrors = {
8258
8913
  /**
8259
8914
  * Validation Error
8260
8915
  */
8261
8916
  422: HttpValidationError;
8262
8917
  };
8263
8918
 
8264
- export type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
8919
+ export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
8265
8920
 
8266
- export type GetSubscriptionResponses = {
8921
+ export type CreateCheckoutSessionResponses = {
8267
8922
  /**
8268
8923
  * Successful Response
8269
8924
  */
8270
- 200: GraphSubscriptionResponse;
8925
+ 201: CheckoutResponse;
8271
8926
  };
8272
8927
 
8273
- export type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
8928
+ export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
8274
8929
 
8275
- export type CancelSubscription2Data = {
8930
+ export type GetCheckoutStatusData = {
8276
8931
  body?: never;
8277
8932
  path: {
8278
8933
  /**
8279
- * Subscription Id
8934
+ * Session Id
8280
8935
  */
8281
- subscription_id: string;
8936
+ session_id: string;
8282
8937
  };
8283
8938
  query?: never;
8284
- url: '/v1/billing/subscriptions/{subscription_id}/cancel';
8939
+ url: '/v1/billing/checkout/{session_id}/status';
8285
8940
  };
8286
8941
 
8287
- export type CancelSubscription2Errors = {
8942
+ export type GetCheckoutStatusErrors = {
8288
8943
  /**
8289
8944
  * Validation Error
8290
8945
  */
8291
8946
  422: HttpValidationError;
8292
8947
  };
8293
8948
 
8294
- export type CancelSubscription2Error = CancelSubscription2Errors[keyof CancelSubscription2Errors];
8949
+ export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
8295
8950
 
8296
- export type CancelSubscription2Responses = {
8951
+ export type GetCheckoutStatusResponses = {
8297
8952
  /**
8298
8953
  * Successful Response
8299
8954
  */
8300
- 200: GraphSubscriptionResponse;
8955
+ 200: CheckoutStatusResponse;
8301
8956
  };
8302
8957
 
8303
- export type CancelSubscription2Response = CancelSubscription2Responses[keyof CancelSubscription2Responses];
8958
+ export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
8304
8959
 
8305
8960
  export type ClientOptions = {
8306
8961
  baseUrl: 'http://localhost:8000';