@bodhiapp/ts-client 0.1.19 → 0.1.21

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.
@@ -70,11 +70,8 @@ export type AccessRequestStatusResponse = {
70
70
  /**
71
71
  * Role requested by the app
72
72
  */
73
- requested_role: string;
74
- /**
75
- * Role approved (present when approved)
76
- */
77
- approved_role?: string | null;
73
+ requested_role: UserScope;
74
+ approved_role?: null | UserScope;
78
75
  /**
79
76
  * Access request scope (present when user-approved with tools)
80
77
  */
@@ -120,6 +117,7 @@ export type ApiAliasResponse = {
120
117
  id: string;
121
118
  api_format: ApiFormat;
122
119
  base_url: string;
120
+ has_api_key: boolean;
123
121
  /**
124
122
  * Models available through this alias (merged from cache for forward_all)
125
123
  */
@@ -160,21 +158,6 @@ export type ApiKeyUpdate = {
160
158
  action: 'set';
161
159
  };
162
160
 
163
- /**
164
- * Output type for API model configuration.
165
- */
166
- export type ApiModelOutput = {
167
- id: string;
168
- api_format: ApiFormat;
169
- base_url: string;
170
- has_api_key: boolean;
171
- models: Array<string>;
172
- prefix?: string | null;
173
- forward_all_with_prefix: boolean;
174
- created_at: string;
175
- updated_at: string;
176
- };
177
-
178
161
  /**
179
162
  * Input request for creating or updating an API model configuration.
180
163
  */
@@ -2110,16 +2093,6 @@ export type PaginatedAliasResponse = {
2110
2093
  page_size: number;
2111
2094
  };
2112
2095
 
2113
- /**
2114
- * Paginated response for API model listings
2115
- */
2116
- export type PaginatedApiModelOutput = {
2117
- data: Array<ApiModelOutput>;
2118
- total: number;
2119
- page: number;
2120
- page_size: number;
2121
- };
2122
-
2123
2096
  /**
2124
2097
  * Paginated list of download requests
2125
2098
  */
@@ -3431,31 +3404,24 @@ export type GetAccessRequestReviewResponses = {
3431
3404
 
3432
3405
  export type GetAccessRequestReviewResponse = GetAccessRequestReviewResponses[keyof GetAccessRequestReviewResponses];
3433
3406
 
3434
- export type ListApiModelsData = {
3407
+ export type GetAccessRequestStatusData = {
3435
3408
  body?: never;
3436
- path?: never;
3437
- query?: {
3438
- /**
3439
- * Page number (1-based indexing)
3440
- */
3441
- page?: number;
3442
- /**
3443
- * Number of items to return per page (maximum 100)
3444
- */
3445
- page_size?: number;
3409
+ path: {
3446
3410
  /**
3447
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
3411
+ * Access request ID
3448
3412
  */
3449
- sort?: string;
3413
+ id: string;
3414
+ };
3415
+ query: {
3450
3416
  /**
3451
- * Sort order: 'asc' for ascending, 'desc' for descending
3417
+ * App client ID for verification
3452
3418
  */
3453
- sort_order?: string;
3419
+ app_client_id: string;
3454
3420
  };
3455
- url: '/bodhi/v1/api-models';
3421
+ url: '/bodhi/v1/apps/access-requests/{id}';
3456
3422
  };
3457
3423
 
3458
- export type ListApiModelsErrors = {
3424
+ export type GetAccessRequestStatusErrors = {
3459
3425
  /**
3460
3426
  * Invalid request parameters
3461
3427
  */
@@ -3468,31 +3434,35 @@ export type ListApiModelsErrors = {
3468
3434
  * Insufficient permissions
3469
3435
  */
3470
3436
  403: OpenAiApiError;
3437
+ /**
3438
+ * Not found or app_client_id mismatch
3439
+ */
3440
+ 404: OpenAiApiError;
3471
3441
  /**
3472
3442
  * Internal server error
3473
3443
  */
3474
3444
  500: OpenAiApiError;
3475
3445
  };
3476
3446
 
3477
- export type ListApiModelsError = ListApiModelsErrors[keyof ListApiModelsErrors];
3447
+ export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
3478
3448
 
3479
- export type ListApiModelsResponses = {
3449
+ export type GetAccessRequestStatusResponses = {
3480
3450
  /**
3481
- * API model configurations retrieved successfully
3451
+ * Status retrieved
3482
3452
  */
3483
- 200: PaginatedApiModelOutput;
3453
+ 200: AccessRequestStatusResponse;
3484
3454
  };
3485
3455
 
3486
- export type ListApiModelsResponse = ListApiModelsResponses[keyof ListApiModelsResponses];
3456
+ export type GetAccessRequestStatusResponse = GetAccessRequestStatusResponses[keyof GetAccessRequestStatusResponses];
3487
3457
 
3488
- export type CreateApiModelData = {
3489
- body: ApiModelRequest;
3458
+ export type AppsListMcpsData = {
3459
+ body?: never;
3490
3460
  path?: never;
3491
3461
  query?: never;
3492
- url: '/bodhi/v1/api-models';
3462
+ url: '/bodhi/v1/apps/mcps';
3493
3463
  };
3494
3464
 
3495
- export type CreateApiModelErrors = {
3465
+ export type AppsListMcpsErrors = {
3496
3466
  /**
3497
3467
  * Invalid request parameters
3498
3468
  */
@@ -3505,35 +3475,36 @@ export type CreateApiModelErrors = {
3505
3475
  * Insufficient permissions
3506
3476
  */
3507
3477
  403: OpenAiApiError;
3508
- /**
3509
- * Alias already exists
3510
- */
3511
- 409: OpenAiApiError;
3512
3478
  /**
3513
3479
  * Internal server error
3514
3480
  */
3515
3481
  500: OpenAiApiError;
3516
3482
  };
3517
3483
 
3518
- export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
3484
+ export type AppsListMcpsError = AppsListMcpsErrors[keyof AppsListMcpsErrors];
3519
3485
 
3520
- export type CreateApiModelResponses = {
3486
+ export type AppsListMcpsResponses = {
3521
3487
  /**
3522
- * API model created
3488
+ * List of MCP instances accessible to the external app
3523
3489
  */
3524
- 201: ApiModelOutput;
3490
+ 200: ListMcpsResponse;
3525
3491
  };
3526
3492
 
3527
- export type CreateApiModelResponse = CreateApiModelResponses[keyof CreateApiModelResponses];
3493
+ export type AppsListMcpsResponse = AppsListMcpsResponses[keyof AppsListMcpsResponses];
3528
3494
 
3529
- export type GetApiFormatsData = {
3495
+ export type AppsGetMcpData = {
3530
3496
  body?: never;
3531
- path?: never;
3497
+ path: {
3498
+ /**
3499
+ * MCP instance UUID
3500
+ */
3501
+ id: string;
3502
+ };
3532
3503
  query?: never;
3533
- url: '/bodhi/v1/api-models/api-formats';
3504
+ url: '/bodhi/v1/apps/mcps/{id}';
3534
3505
  };
3535
3506
 
3536
- export type GetApiFormatsErrors = {
3507
+ export type AppsGetMcpErrors = {
3537
3508
  /**
3538
3509
  * Invalid request parameters
3539
3510
  */
@@ -3546,31 +3517,40 @@ export type GetApiFormatsErrors = {
3546
3517
  * Insufficient permissions
3547
3518
  */
3548
3519
  403: OpenAiApiError;
3520
+ /**
3521
+ * MCP not found
3522
+ */
3523
+ 404: unknown;
3549
3524
  /**
3550
3525
  * Internal server error
3551
3526
  */
3552
3527
  500: OpenAiApiError;
3553
3528
  };
3554
3529
 
3555
- export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
3530
+ export type AppsGetMcpError = AppsGetMcpErrors[keyof AppsGetMcpErrors];
3556
3531
 
3557
- export type GetApiFormatsResponses = {
3532
+ export type AppsGetMcpResponses = {
3558
3533
  /**
3559
- * API formats retrieved successfully
3534
+ * MCP instance
3560
3535
  */
3561
- 200: ApiFormatsResponse;
3536
+ 200: Mcp;
3562
3537
  };
3563
3538
 
3564
- export type GetApiFormatsResponse = GetApiFormatsResponses[keyof GetApiFormatsResponses];
3539
+ export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
3565
3540
 
3566
- export type FetchApiModelsData = {
3567
- body: FetchModelsRequest;
3568
- path?: never;
3541
+ export type AppsRefreshMcpToolsData = {
3542
+ body?: never;
3543
+ path: {
3544
+ /**
3545
+ * MCP instance UUID
3546
+ */
3547
+ id: string;
3548
+ };
3569
3549
  query?: never;
3570
- url: '/bodhi/v1/api-models/fetch-models';
3550
+ url: '/bodhi/v1/apps/mcps/{id}/tools/refresh';
3571
3551
  };
3572
3552
 
3573
- export type FetchApiModelsErrors = {
3553
+ export type AppsRefreshMcpToolsErrors = {
3574
3554
  /**
3575
3555
  * Invalid request parameters
3576
3556
  */
@@ -3583,31 +3563,44 @@ export type FetchApiModelsErrors = {
3583
3563
  * Insufficient permissions
3584
3564
  */
3585
3565
  403: OpenAiApiError;
3566
+ /**
3567
+ * MCP not found
3568
+ */
3569
+ 404: unknown;
3586
3570
  /**
3587
3571
  * Internal server error
3588
3572
  */
3589
3573
  500: OpenAiApiError;
3590
3574
  };
3591
3575
 
3592
- export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
3576
+ export type AppsRefreshMcpToolsError = AppsRefreshMcpToolsErrors[keyof AppsRefreshMcpToolsErrors];
3593
3577
 
3594
- export type FetchApiModelsResponses = {
3578
+ export type AppsRefreshMcpToolsResponses = {
3595
3579
  /**
3596
- * Available models
3580
+ * Refreshed list of tools
3597
3581
  */
3598
- 200: FetchModelsResponse;
3582
+ 200: McpToolsResponse;
3599
3583
  };
3600
3584
 
3601
- export type FetchApiModelsResponse = FetchApiModelsResponses[keyof FetchApiModelsResponses];
3585
+ export type AppsRefreshMcpToolsResponse = AppsRefreshMcpToolsResponses[keyof AppsRefreshMcpToolsResponses];
3602
3586
 
3603
- export type TestApiModelData = {
3604
- body: TestPromptRequest;
3605
- path?: never;
3587
+ export type AppsExecuteMcpToolData = {
3588
+ body: McpExecuteRequest;
3589
+ path: {
3590
+ /**
3591
+ * MCP instance UUID
3592
+ */
3593
+ id: string;
3594
+ /**
3595
+ * Tool name to execute
3596
+ */
3597
+ tool_name: string;
3598
+ };
3606
3599
  query?: never;
3607
- url: '/bodhi/v1/api-models/test';
3600
+ url: '/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute';
3608
3601
  };
3609
3602
 
3610
- export type TestApiModelErrors = {
3603
+ export type AppsExecuteMcpToolErrors = {
3611
3604
  /**
3612
3605
  * Invalid request parameters
3613
3606
  */
@@ -3620,36 +3613,38 @@ export type TestApiModelErrors = {
3620
3613
  * Insufficient permissions
3621
3614
  */
3622
3615
  403: OpenAiApiError;
3616
+ /**
3617
+ * MCP or tool not found
3618
+ */
3619
+ 404: unknown;
3623
3620
  /**
3624
3621
  * Internal server error
3625
3622
  */
3626
3623
  500: OpenAiApiError;
3627
3624
  };
3628
3625
 
3629
- export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
3626
+ export type AppsExecuteMcpToolError = AppsExecuteMcpToolErrors[keyof AppsExecuteMcpToolErrors];
3630
3627
 
3631
- export type TestApiModelResponses = {
3628
+ export type AppsExecuteMcpToolResponses = {
3632
3629
  /**
3633
- * Test result
3630
+ * Tool execution result
3634
3631
  */
3635
- 200: TestPromptResponse;
3632
+ 200: McpExecuteResponse;
3636
3633
  };
3637
3634
 
3638
- export type TestApiModelResponse = TestApiModelResponses[keyof TestApiModelResponses];
3635
+ export type AppsExecuteMcpToolResponse = AppsExecuteMcpToolResponses[keyof AppsExecuteMcpToolResponses];
3639
3636
 
3640
- export type DeleteApiModelData = {
3641
- body?: never;
3642
- path: {
3643
- /**
3644
- * API model ID
3645
- */
3646
- id: string;
3647
- };
3637
+ export type CreateAccessRequestData = {
3638
+ /**
3639
+ * Access request details
3640
+ */
3641
+ body: CreateAccessRequest;
3642
+ path?: never;
3648
3643
  query?: never;
3649
- url: '/bodhi/v1/api-models/{id}';
3644
+ url: '/bodhi/v1/apps/request-access';
3650
3645
  };
3651
3646
 
3652
- export type DeleteApiModelErrors = {
3647
+ export type CreateAccessRequestErrors = {
3653
3648
  /**
3654
3649
  * Invalid request parameters
3655
3650
  */
@@ -3663,7 +3658,7 @@ export type DeleteApiModelErrors = {
3663
3658
  */
3664
3659
  403: OpenAiApiError;
3665
3660
  /**
3666
- * API model not found
3661
+ * App client not found
3667
3662
  */
3668
3663
  404: OpenAiApiError;
3669
3664
  /**
@@ -3672,30 +3667,25 @@ export type DeleteApiModelErrors = {
3672
3667
  500: OpenAiApiError;
3673
3668
  };
3674
3669
 
3675
- export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
3670
+ export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
3676
3671
 
3677
- export type DeleteApiModelResponses = {
3672
+ export type CreateAccessRequestResponses = {
3678
3673
  /**
3679
- * API model deleted
3674
+ * Access request created
3680
3675
  */
3681
- 204: void;
3676
+ 201: CreateAccessRequestResponse;
3682
3677
  };
3683
3678
 
3684
- export type DeleteApiModelResponse = DeleteApiModelResponses[keyof DeleteApiModelResponses];
3679
+ export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
3685
3680
 
3686
- export type GetApiModelData = {
3681
+ export type AppsListToolsetsData = {
3687
3682
  body?: never;
3688
- path: {
3689
- /**
3690
- * Unique identifier for the API model alias
3691
- */
3692
- id: string;
3693
- };
3683
+ path?: never;
3694
3684
  query?: never;
3695
- url: '/bodhi/v1/api-models/{id}';
3685
+ url: '/bodhi/v1/apps/toolsets';
3696
3686
  };
3697
3687
 
3698
- export type GetApiModelErrors = {
3688
+ export type AppsListToolsetsErrors = {
3699
3689
  /**
3700
3690
  * Invalid request parameters
3701
3691
  */
@@ -3708,40 +3698,40 @@ export type GetApiModelErrors = {
3708
3698
  * Insufficient permissions
3709
3699
  */
3710
3700
  403: OpenAiApiError;
3711
- /**
3712
- * API model with specified ID not found
3713
- */
3714
- 404: OpenAiApiError;
3715
3701
  /**
3716
3702
  * Internal server error
3717
3703
  */
3718
3704
  500: OpenAiApiError;
3719
3705
  };
3720
3706
 
3721
- export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
3707
+ export type AppsListToolsetsError = AppsListToolsetsErrors[keyof AppsListToolsetsErrors];
3722
3708
 
3723
- export type GetApiModelResponses = {
3709
+ export type AppsListToolsetsResponses = {
3724
3710
  /**
3725
- * API model configuration retrieved successfully
3711
+ * List of toolsets accessible to the external app
3726
3712
  */
3727
- 200: ApiModelOutput;
3713
+ 200: ListToolsetsResponse;
3728
3714
  };
3729
3715
 
3730
- export type GetApiModelResponse = GetApiModelResponses[keyof GetApiModelResponses];
3716
+ export type AppsListToolsetsResponse = AppsListToolsetsResponses[keyof AppsListToolsetsResponses];
3731
3717
 
3732
- export type UpdateApiModelData = {
3733
- body: ApiModelRequest;
3718
+ export type AppsExecuteToolsetToolData = {
3719
+ body: ExecuteToolsetRequest;
3734
3720
  path: {
3735
3721
  /**
3736
- * API model ID
3722
+ * Toolset instance UUID
3737
3723
  */
3738
3724
  id: string;
3725
+ /**
3726
+ * Tool name to execute
3727
+ */
3728
+ tool_name: string;
3739
3729
  };
3740
3730
  query?: never;
3741
- url: '/bodhi/v1/api-models/{id}';
3731
+ url: '/bodhi/v1/apps/toolsets/{id}/tools/{tool_name}/execute';
3742
3732
  };
3743
3733
 
3744
- export type UpdateApiModelErrors = {
3734
+ export type AppsExecuteToolsetToolErrors = {
3745
3735
  /**
3746
3736
  * Invalid request parameters
3747
3737
  */
@@ -3755,39 +3745,37 @@ export type UpdateApiModelErrors = {
3755
3745
  */
3756
3746
  403: OpenAiApiError;
3757
3747
  /**
3758
- * API model not found
3748
+ * Toolset or method not found
3759
3749
  */
3760
- 404: OpenAiApiError;
3750
+ 404: unknown;
3761
3751
  /**
3762
3752
  * Internal server error
3763
3753
  */
3764
3754
  500: OpenAiApiError;
3765
3755
  };
3766
3756
 
3767
- export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
3757
+ export type AppsExecuteToolsetToolError = AppsExecuteToolsetToolErrors[keyof AppsExecuteToolsetToolErrors];
3768
3758
 
3769
- export type UpdateApiModelResponses = {
3759
+ export type AppsExecuteToolsetToolResponses = {
3770
3760
  /**
3771
- * API model updated
3761
+ * Tool execution result
3772
3762
  */
3773
- 200: ApiModelOutput;
3763
+ 200: ToolsetExecutionResponse;
3774
3764
  };
3775
3765
 
3776
- export type UpdateApiModelResponse = UpdateApiModelResponses[keyof UpdateApiModelResponses];
3766
+ export type AppsExecuteToolsetToolResponse = AppsExecuteToolsetToolResponses[keyof AppsExecuteToolsetToolResponses];
3777
3767
 
3778
- export type SyncModelsData = {
3779
- body?: never;
3780
- path: {
3781
- /**
3782
- * Unique identifier for the API model alias
3783
- */
3784
- id: string;
3785
- };
3768
+ export type CompleteOAuthFlowData = {
3769
+ /**
3770
+ * OAuth callback parameters from authorization server
3771
+ */
3772
+ body: AuthCallbackRequest;
3773
+ path?: never;
3786
3774
  query?: never;
3787
- url: '/bodhi/v1/api-models/{id}/sync-models';
3775
+ url: '/bodhi/v1/auth/callback';
3788
3776
  };
3789
3777
 
3790
- export type SyncModelsErrors = {
3778
+ export type CompleteOAuthFlowErrors = {
3791
3779
  /**
3792
3780
  * Invalid request parameters
3793
3781
  */
@@ -3801,166 +3789,27 @@ export type SyncModelsErrors = {
3801
3789
  */
3802
3790
  403: OpenAiApiError;
3803
3791
  /**
3804
- * API model not found
3792
+ * OAuth error, invalid request parameters, or state mismatch
3805
3793
  */
3806
- 404: unknown;
3794
+ 422: OpenAiApiError;
3807
3795
  /**
3808
3796
  * Internal server error
3809
3797
  */
3810
3798
  500: OpenAiApiError;
3811
3799
  };
3812
3800
 
3813
- export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
3801
+ export type CompleteOAuthFlowError = CompleteOAuthFlowErrors[keyof CompleteOAuthFlowErrors];
3814
3802
 
3815
- export type SyncModelsResponses = {
3803
+ export type CompleteOAuthFlowResponses = {
3816
3804
  /**
3817
- * Models synced to cache successfully
3805
+ * OAuth flow completed successfully, user authenticated
3818
3806
  */
3819
- 200: ApiModelOutput;
3807
+ 200: RedirectResponse;
3820
3808
  };
3821
3809
 
3822
- export type SyncModelsResponse = SyncModelsResponses[keyof SyncModelsResponses];
3823
-
3824
- export type GetAccessRequestStatusData = {
3825
- body?: never;
3826
- path: {
3827
- /**
3828
- * Access request ID
3829
- */
3830
- id: string;
3831
- };
3832
- query: {
3833
- /**
3834
- * App client ID for verification
3835
- */
3836
- app_client_id: string;
3837
- };
3838
- url: '/bodhi/v1/apps/access-requests/{id}';
3839
- };
3810
+ export type CompleteOAuthFlowResponse = CompleteOAuthFlowResponses[keyof CompleteOAuthFlowResponses];
3840
3811
 
3841
- export type GetAccessRequestStatusErrors = {
3842
- /**
3843
- * Invalid request parameters
3844
- */
3845
- 400: OpenAiApiError;
3846
- /**
3847
- * Not authenticated
3848
- */
3849
- 401: OpenAiApiError;
3850
- /**
3851
- * Insufficient permissions
3852
- */
3853
- 403: OpenAiApiError;
3854
- /**
3855
- * Not found or app_client_id mismatch
3856
- */
3857
- 404: OpenAiApiError;
3858
- /**
3859
- * Internal server error
3860
- */
3861
- 500: OpenAiApiError;
3862
- };
3863
-
3864
- export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
3865
-
3866
- export type GetAccessRequestStatusResponses = {
3867
- /**
3868
- * Status retrieved
3869
- */
3870
- 200: AccessRequestStatusResponse;
3871
- };
3872
-
3873
- export type GetAccessRequestStatusResponse = GetAccessRequestStatusResponses[keyof GetAccessRequestStatusResponses];
3874
-
3875
- export type CreateAccessRequestData = {
3876
- /**
3877
- * Access request details
3878
- */
3879
- body: CreateAccessRequest;
3880
- path?: never;
3881
- query?: never;
3882
- url: '/bodhi/v1/apps/request-access';
3883
- };
3884
-
3885
- export type CreateAccessRequestErrors = {
3886
- /**
3887
- * Invalid request parameters
3888
- */
3889
- 400: OpenAiApiError;
3890
- /**
3891
- * Not authenticated
3892
- */
3893
- 401: OpenAiApiError;
3894
- /**
3895
- * Insufficient permissions
3896
- */
3897
- 403: OpenAiApiError;
3898
- /**
3899
- * App client not found
3900
- */
3901
- 404: OpenAiApiError;
3902
- /**
3903
- * Internal server error
3904
- */
3905
- 500: OpenAiApiError;
3906
- };
3907
-
3908
- export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
3909
-
3910
- export type CreateAccessRequestResponses = {
3911
- /**
3912
- * Access request created
3913
- */
3914
- 201: CreateAccessRequestResponse;
3915
- };
3916
-
3917
- export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
3918
-
3919
- export type CompleteOAuthFlowData = {
3920
- /**
3921
- * OAuth callback parameters from authorization server
3922
- */
3923
- body: AuthCallbackRequest;
3924
- path?: never;
3925
- query?: never;
3926
- url: '/bodhi/v1/auth/callback';
3927
- };
3928
-
3929
- export type CompleteOAuthFlowErrors = {
3930
- /**
3931
- * Invalid request parameters
3932
- */
3933
- 400: OpenAiApiError;
3934
- /**
3935
- * Not authenticated
3936
- */
3937
- 401: OpenAiApiError;
3938
- /**
3939
- * Insufficient permissions
3940
- */
3941
- 403: OpenAiApiError;
3942
- /**
3943
- * OAuth error, invalid request parameters, or state mismatch
3944
- */
3945
- 422: OpenAiApiError;
3946
- /**
3947
- * Internal server error
3948
- */
3949
- 500: OpenAiApiError;
3950
- };
3951
-
3952
- export type CompleteOAuthFlowError = CompleteOAuthFlowErrors[keyof CompleteOAuthFlowErrors];
3953
-
3954
- export type CompleteOAuthFlowResponses = {
3955
- /**
3956
- * OAuth flow completed successfully, user authenticated
3957
- */
3958
- 200: RedirectResponse;
3959
- };
3960
-
3961
- export type CompleteOAuthFlowResponse = CompleteOAuthFlowResponses[keyof CompleteOAuthFlowResponses];
3962
-
3963
- export type CompleteDashboardOAuthFlowData = {
3812
+ export type CompleteDashboardOAuthFlowData = {
3964
3813
  /**
3965
3814
  * OAuth callback parameters from authorization server
3966
3815
  */
@@ -5142,7 +4991,7 @@ export type ExecuteMcpToolResponses = {
5142
4991
 
5143
4992
  export type ExecuteMcpToolResponse = ExecuteMcpToolResponses[keyof ExecuteMcpToolResponses];
5144
4993
 
5145
- export type ListModelFilesData = {
4994
+ export type ListAllModelsData = {
5146
4995
  body?: never;
5147
4996
  path?: never;
5148
4997
  query?: {
@@ -5163,10 +5012,10 @@ export type ListModelFilesData = {
5163
5012
  */
5164
5013
  sort_order?: string;
5165
5014
  };
5166
- url: '/bodhi/v1/modelfiles';
5015
+ url: '/bodhi/v1/models';
5167
5016
  };
5168
5017
 
5169
- export type ListModelFilesErrors = {
5018
+ export type ListAllModelsErrors = {
5170
5019
  /**
5171
5020
  * Invalid request parameters
5172
5021
  */
@@ -5185,42 +5034,25 @@ export type ListModelFilesErrors = {
5185
5034
  500: OpenAiApiError;
5186
5035
  };
5187
5036
 
5188
- export type ListModelFilesError = ListModelFilesErrors[keyof ListModelFilesErrors];
5037
+ export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
5189
5038
 
5190
- export type ListModelFilesResponses = {
5039
+ export type ListAllModelsResponses = {
5191
5040
  /**
5192
- * Local model files retrieved successfully from cache
5041
+ * Paginated list of model aliases retrieved successfully
5193
5042
  */
5194
- 200: PaginatedLocalModelResponse;
5043
+ 200: PaginatedAliasResponse;
5195
5044
  };
5196
5045
 
5197
- export type ListModelFilesResponse = ListModelFilesResponses[keyof ListModelFilesResponses];
5046
+ export type ListAllModelsResponse = ListAllModelsResponses[keyof ListAllModelsResponses];
5198
5047
 
5199
- export type ListDownloadsData = {
5200
- body?: never;
5048
+ export type ModelsAliasCreateData = {
5049
+ body: UserAliasRequest;
5201
5050
  path?: never;
5202
- query?: {
5203
- /**
5204
- * Page number (1-based indexing)
5205
- */
5206
- page?: number;
5207
- /**
5208
- * Number of items to return per page (maximum 100)
5209
- */
5210
- page_size?: number;
5211
- /**
5212
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
5213
- */
5214
- sort?: string;
5215
- /**
5216
- * Sort order: 'asc' for ascending, 'desc' for descending
5217
- */
5218
- sort_order?: string;
5219
- };
5220
- url: '/bodhi/v1/modelfiles/pull';
5051
+ query?: never;
5052
+ url: '/bodhi/v1/models/alias';
5221
5053
  };
5222
5054
 
5223
- export type ListDownloadsErrors = {
5055
+ export type ModelsAliasCreateErrors = {
5224
5056
  /**
5225
5057
  * Invalid request parameters
5226
5058
  */
@@ -5239,28 +5071,30 @@ export type ListDownloadsErrors = {
5239
5071
  500: OpenAiApiError;
5240
5072
  };
5241
5073
 
5242
- export type ListDownloadsError = ListDownloadsErrors[keyof ListDownloadsErrors];
5074
+ export type ModelsAliasCreateError = ModelsAliasCreateErrors[keyof ModelsAliasCreateErrors];
5243
5075
 
5244
- export type ListDownloadsResponses = {
5076
+ export type ModelsAliasCreateResponses = {
5245
5077
  /**
5246
- * Model download requests retrieved successfully
5078
+ * Alias created succesfully
5247
5079
  */
5248
- 200: PaginatedDownloadResponse;
5080
+ 201: UserAliasResponse;
5249
5081
  };
5250
5082
 
5251
- export type ListDownloadsResponse = ListDownloadsResponses[keyof ListDownloadsResponses];
5083
+ export type ModelsAliasCreateResponse = ModelsAliasCreateResponses[keyof ModelsAliasCreateResponses];
5252
5084
 
5253
- export type PullModelFileData = {
5254
- /**
5255
- * Model file download specification with repository and filename
5256
- */
5257
- body: NewDownloadRequest;
5258
- path?: never;
5085
+ export type ModelsAliasDestroyData = {
5086
+ body?: never;
5087
+ path: {
5088
+ /**
5089
+ * UUID of the alias to delete
5090
+ */
5091
+ id: string;
5092
+ };
5259
5093
  query?: never;
5260
- url: '/bodhi/v1/modelfiles/pull';
5094
+ url: '/bodhi/v1/models/alias/{id}';
5261
5095
  };
5262
5096
 
5263
- export type PullModelFileErrors = {
5097
+ export type ModelsAliasDestroyErrors = {
5264
5098
  /**
5265
5099
  * Invalid request parameters
5266
5100
  */
@@ -5273,40 +5107,38 @@ export type PullModelFileErrors = {
5273
5107
  * Insufficient permissions
5274
5108
  */
5275
5109
  403: OpenAiApiError;
5110
+ /**
5111
+ * Alias not found
5112
+ */
5113
+ 404: unknown;
5276
5114
  /**
5277
5115
  * Internal server error
5278
5116
  */
5279
5117
  500: OpenAiApiError;
5280
5118
  };
5281
5119
 
5282
- export type PullModelFileError = PullModelFileErrors[keyof PullModelFileErrors];
5120
+ export type ModelsAliasDestroyError = ModelsAliasDestroyErrors[keyof ModelsAliasDestroyErrors];
5283
5121
 
5284
- export type PullModelFileResponses = {
5285
- /**
5286
- * Existing download request found
5287
- */
5288
- 200: DownloadRequest;
5122
+ export type ModelsAliasDestroyResponses = {
5289
5123
  /**
5290
- * Download request created
5124
+ * Alias deleted successfully
5291
5125
  */
5292
- 201: DownloadRequest;
5126
+ 200: unknown;
5293
5127
  };
5294
5128
 
5295
- export type PullModelFileResponse = PullModelFileResponses[keyof PullModelFileResponses];
5296
-
5297
- export type GetDownloadStatusData = {
5298
- body?: never;
5129
+ export type ModelsAliasUpdateData = {
5130
+ body: UserAliasRequest;
5299
5131
  path: {
5300
5132
  /**
5301
- * Unique identifier of the download request (UUID format)
5133
+ * UUID of the alias to update
5302
5134
  */
5303
5135
  id: string;
5304
5136
  };
5305
5137
  query?: never;
5306
- url: '/bodhi/v1/modelfiles/pull/{id}';
5138
+ url: '/bodhi/v1/models/alias/{id}';
5307
5139
  };
5308
5140
 
5309
- export type GetDownloadStatusErrors = {
5141
+ export type ModelsAliasUpdateErrors = {
5310
5142
  /**
5311
5143
  * Invalid request parameters
5312
5144
  */
@@ -5319,52 +5151,36 @@ export type GetDownloadStatusErrors = {
5319
5151
  * Insufficient permissions
5320
5152
  */
5321
5153
  403: OpenAiApiError;
5322
- /**
5323
- * Download request not found
5324
- */
5325
- 404: OpenAiApiError;
5326
5154
  /**
5327
5155
  * Internal server error
5328
5156
  */
5329
5157
  500: OpenAiApiError;
5330
5158
  };
5331
5159
 
5332
- export type GetDownloadStatusError = GetDownloadStatusErrors[keyof GetDownloadStatusErrors];
5160
+ export type ModelsAliasUpdateError = ModelsAliasUpdateErrors[keyof ModelsAliasUpdateErrors];
5333
5161
 
5334
- export type GetDownloadStatusResponses = {
5162
+ export type ModelsAliasUpdateResponses = {
5335
5163
  /**
5336
- * Download request found
5164
+ * Alias updated succesfully
5337
5165
  */
5338
- 200: DownloadRequest;
5166
+ 200: UserAliasResponse;
5339
5167
  };
5340
5168
 
5341
- export type GetDownloadStatusResponse = GetDownloadStatusResponses[keyof GetDownloadStatusResponses];
5169
+ export type ModelsAliasUpdateResponse = ModelsAliasUpdateResponses[keyof ModelsAliasUpdateResponses];
5342
5170
 
5343
- export type ListAllModelsData = {
5344
- body?: never;
5345
- path?: never;
5346
- query?: {
5347
- /**
5348
- * Page number (1-based indexing)
5349
- */
5350
- page?: number;
5351
- /**
5352
- * Number of items to return per page (maximum 100)
5353
- */
5354
- page_size?: number;
5355
- /**
5356
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
5357
- */
5358
- sort?: string;
5171
+ export type ModelsAliasCopyData = {
5172
+ body: CopyAliasRequest;
5173
+ path: {
5359
5174
  /**
5360
- * Sort order: 'asc' for ascending, 'desc' for descending
5175
+ * UUID of the alias to copy
5361
5176
  */
5362
- sort_order?: string;
5177
+ id: string;
5363
5178
  };
5364
- url: '/bodhi/v1/models';
5179
+ query?: never;
5180
+ url: '/bodhi/v1/models/alias/{id}/copy';
5365
5181
  };
5366
5182
 
5367
- export type ListAllModelsErrors = {
5183
+ export type ModelsAliasCopyErrors = {
5368
5184
  /**
5369
5185
  * Invalid request parameters
5370
5186
  */
@@ -5377,31 +5193,35 @@ export type ListAllModelsErrors = {
5377
5193
  * Insufficient permissions
5378
5194
  */
5379
5195
  403: OpenAiApiError;
5196
+ /**
5197
+ * Source alias not found
5198
+ */
5199
+ 404: unknown;
5380
5200
  /**
5381
5201
  * Internal server error
5382
5202
  */
5383
5203
  500: OpenAiApiError;
5384
5204
  };
5385
5205
 
5386
- export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
5206
+ export type ModelsAliasCopyError = ModelsAliasCopyErrors[keyof ModelsAliasCopyErrors];
5387
5207
 
5388
- export type ListAllModelsResponses = {
5208
+ export type ModelsAliasCopyResponses = {
5389
5209
  /**
5390
- * Paginated list of model aliases retrieved successfully
5210
+ * Alias copied successfully
5391
5211
  */
5392
- 200: PaginatedAliasResponse;
5212
+ 201: UserAliasResponse;
5393
5213
  };
5394
5214
 
5395
- export type ListAllModelsResponse = ListAllModelsResponses[keyof ListAllModelsResponses];
5215
+ export type ModelsAliasCopyResponse = ModelsAliasCopyResponses[keyof ModelsAliasCopyResponses];
5396
5216
 
5397
- export type CreateAliasData = {
5398
- body: UserAliasRequest;
5217
+ export type CreateApiModelData = {
5218
+ body: ApiModelRequest;
5399
5219
  path?: never;
5400
5220
  query?: never;
5401
- url: '/bodhi/v1/models';
5221
+ url: '/bodhi/v1/models/api';
5402
5222
  };
5403
5223
 
5404
- export type CreateAliasErrors = {
5224
+ export type CreateApiModelErrors = {
5405
5225
  /**
5406
5226
  * Invalid request parameters
5407
5227
  */
@@ -5415,33 +5235,71 @@ export type CreateAliasErrors = {
5415
5235
  */
5416
5236
  403: OpenAiApiError;
5417
5237
  /**
5418
- * Internal server error
5238
+ * Alias already exists
5239
+ */
5240
+ 409: OpenAiApiError;
5241
+ /**
5242
+ * Internal server error
5419
5243
  */
5420
5244
  500: OpenAiApiError;
5421
5245
  };
5422
5246
 
5423
- export type CreateAliasError = CreateAliasErrors[keyof CreateAliasErrors];
5247
+ export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
5424
5248
 
5425
- export type CreateAliasResponses = {
5249
+ export type CreateApiModelResponses = {
5426
5250
  /**
5427
- * Alias created succesfully
5251
+ * API model created
5428
5252
  */
5429
- 201: UserAliasResponse;
5253
+ 201: ApiAliasResponse;
5430
5254
  };
5431
5255
 
5432
- export type CreateAliasResponse = CreateAliasResponses[keyof CreateAliasResponses];
5256
+ export type CreateApiModelResponse = CreateApiModelResponses[keyof CreateApiModelResponses];
5433
5257
 
5434
- export type RefreshModelMetadataData = {
5258
+ export type FetchApiModelsData = {
5259
+ body: FetchModelsRequest;
5260
+ path?: never;
5261
+ query?: never;
5262
+ url: '/bodhi/v1/models/api/fetch-models';
5263
+ };
5264
+
5265
+ export type FetchApiModelsErrors = {
5435
5266
  /**
5436
- * Refresh request - either bulk (source='all') or single model (source='model' with identifiers)
5267
+ * Invalid request parameters
5437
5268
  */
5438
- body: RefreshRequest;
5269
+ 400: OpenAiApiError;
5270
+ /**
5271
+ * Not authenticated
5272
+ */
5273
+ 401: OpenAiApiError;
5274
+ /**
5275
+ * Insufficient permissions
5276
+ */
5277
+ 403: OpenAiApiError;
5278
+ /**
5279
+ * Internal server error
5280
+ */
5281
+ 500: OpenAiApiError;
5282
+ };
5283
+
5284
+ export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
5285
+
5286
+ export type FetchApiModelsResponses = {
5287
+ /**
5288
+ * Available models
5289
+ */
5290
+ 200: FetchModelsResponse;
5291
+ };
5292
+
5293
+ export type FetchApiModelsResponse = FetchApiModelsResponses[keyof FetchApiModelsResponses];
5294
+
5295
+ export type GetApiFormatsData = {
5296
+ body?: never;
5439
5297
  path?: never;
5440
5298
  query?: never;
5441
- url: '/bodhi/v1/models/refresh';
5299
+ url: '/bodhi/v1/models/api/formats';
5442
5300
  };
5443
5301
 
5444
- export type RefreshModelMetadataErrors = {
5302
+ export type GetApiFormatsErrors = {
5445
5303
  /**
5446
5304
  * Invalid request parameters
5447
5305
  */
@@ -5455,43 +5313,118 @@ export type RefreshModelMetadataErrors = {
5455
5313
  */
5456
5314
  403: OpenAiApiError;
5457
5315
  /**
5458
- * Model alias not found for specified repo/filename/snapshot
5316
+ * Internal server error
5459
5317
  */
5460
- 404: unknown;
5318
+ 500: OpenAiApiError;
5319
+ };
5320
+
5321
+ export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
5322
+
5323
+ export type GetApiFormatsResponses = {
5324
+ /**
5325
+ * API formats retrieved successfully
5326
+ */
5327
+ 200: ApiFormatsResponse;
5328
+ };
5329
+
5330
+ export type GetApiFormatsResponse = GetApiFormatsResponses[keyof GetApiFormatsResponses];
5331
+
5332
+ export type TestApiModelData = {
5333
+ body: TestPromptRequest;
5334
+ path?: never;
5335
+ query?: never;
5336
+ url: '/bodhi/v1/models/api/test';
5337
+ };
5338
+
5339
+ export type TestApiModelErrors = {
5340
+ /**
5341
+ * Invalid request parameters
5342
+ */
5343
+ 400: OpenAiApiError;
5344
+ /**
5345
+ * Not authenticated
5346
+ */
5347
+ 401: OpenAiApiError;
5348
+ /**
5349
+ * Insufficient permissions
5350
+ */
5351
+ 403: OpenAiApiError;
5461
5352
  /**
5462
5353
  * Internal server error
5463
5354
  */
5464
5355
  500: OpenAiApiError;
5465
5356
  };
5466
5357
 
5467
- export type RefreshModelMetadataError = RefreshModelMetadataErrors[keyof RefreshModelMetadataErrors];
5358
+ export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
5468
5359
 
5469
- export type RefreshModelMetadataResponses = {
5360
+ export type TestApiModelResponses = {
5470
5361
  /**
5471
- * Metadata refreshed successfully (sync mode)
5362
+ * Test result
5472
5363
  */
5473
- 200: ModelAliasResponse;
5364
+ 200: TestPromptResponse;
5365
+ };
5366
+
5367
+ export type TestApiModelResponse = TestApiModelResponses[keyof TestApiModelResponses];
5368
+
5369
+ export type DeleteApiModelData = {
5370
+ body?: never;
5371
+ path: {
5372
+ /**
5373
+ * API model ID
5374
+ */
5375
+ id: string;
5376
+ };
5377
+ query?: never;
5378
+ url: '/bodhi/v1/models/api/{id}';
5379
+ };
5380
+
5381
+ export type DeleteApiModelErrors = {
5474
5382
  /**
5475
- * Metadata refresh queued in background (bulk mode)
5383
+ * Invalid request parameters
5476
5384
  */
5477
- 202: RefreshResponse;
5385
+ 400: OpenAiApiError;
5386
+ /**
5387
+ * Not authenticated
5388
+ */
5389
+ 401: OpenAiApiError;
5390
+ /**
5391
+ * Insufficient permissions
5392
+ */
5393
+ 403: OpenAiApiError;
5394
+ /**
5395
+ * API model not found
5396
+ */
5397
+ 404: OpenAiApiError;
5398
+ /**
5399
+ * Internal server error
5400
+ */
5401
+ 500: OpenAiApiError;
5478
5402
  };
5479
5403
 
5480
- export type RefreshModelMetadataResponse = RefreshModelMetadataResponses[keyof RefreshModelMetadataResponses];
5404
+ export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
5405
+
5406
+ export type DeleteApiModelResponses = {
5407
+ /**
5408
+ * API model deleted
5409
+ */
5410
+ 204: void;
5411
+ };
5412
+
5413
+ export type DeleteApiModelResponse = DeleteApiModelResponses[keyof DeleteApiModelResponses];
5481
5414
 
5482
- export type DeleteAliasData = {
5415
+ export type GetApiModelData = {
5483
5416
  body?: never;
5484
5417
  path: {
5485
5418
  /**
5486
- * UUID of the alias to delete
5419
+ * Unique identifier for the API model alias
5487
5420
  */
5488
5421
  id: string;
5489
5422
  };
5490
5423
  query?: never;
5491
- url: '/bodhi/v1/models/{id}';
5424
+ url: '/bodhi/v1/models/api/{id}';
5492
5425
  };
5493
5426
 
5494
- export type DeleteAliasErrors = {
5427
+ export type GetApiModelErrors = {
5495
5428
  /**
5496
5429
  * Invalid request parameters
5497
5430
  */
@@ -5505,37 +5438,39 @@ export type DeleteAliasErrors = {
5505
5438
  */
5506
5439
  403: OpenAiApiError;
5507
5440
  /**
5508
- * Alias not found
5441
+ * API model with specified ID not found
5509
5442
  */
5510
- 404: unknown;
5443
+ 404: OpenAiApiError;
5511
5444
  /**
5512
5445
  * Internal server error
5513
5446
  */
5514
5447
  500: OpenAiApiError;
5515
5448
  };
5516
5449
 
5517
- export type DeleteAliasError = DeleteAliasErrors[keyof DeleteAliasErrors];
5450
+ export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
5518
5451
 
5519
- export type DeleteAliasResponses = {
5452
+ export type GetApiModelResponses = {
5520
5453
  /**
5521
- * Alias deleted successfully
5454
+ * API model configuration retrieved successfully
5522
5455
  */
5523
- 200: unknown;
5456
+ 200: ApiAliasResponse;
5524
5457
  };
5525
5458
 
5526
- export type GetAliasData = {
5527
- body?: never;
5459
+ export type GetApiModelResponse = GetApiModelResponses[keyof GetApiModelResponses];
5460
+
5461
+ export type UpdateApiModelData = {
5462
+ body: ApiModelRequest;
5528
5463
  path: {
5529
5464
  /**
5530
- * UUID of the alias
5465
+ * API model ID
5531
5466
  */
5532
5467
  id: string;
5533
5468
  };
5534
5469
  query?: never;
5535
- url: '/bodhi/v1/models/{id}';
5470
+ url: '/bodhi/v1/models/api/{id}';
5536
5471
  };
5537
5472
 
5538
- export type GetAliasErrors = {
5473
+ export type UpdateApiModelErrors = {
5539
5474
  /**
5540
5475
  * Invalid request parameters
5541
5476
  */
@@ -5549,7 +5484,7 @@ export type GetAliasErrors = {
5549
5484
  */
5550
5485
  403: OpenAiApiError;
5551
5486
  /**
5552
- * Alias not found
5487
+ * API model not found
5553
5488
  */
5554
5489
  404: OpenAiApiError;
5555
5490
  /**
@@ -5558,30 +5493,30 @@ export type GetAliasErrors = {
5558
5493
  500: OpenAiApiError;
5559
5494
  };
5560
5495
 
5561
- export type GetAliasError = GetAliasErrors[keyof GetAliasErrors];
5496
+ export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
5562
5497
 
5563
- export type GetAliasResponses = {
5498
+ export type UpdateApiModelResponses = {
5564
5499
  /**
5565
- * Model alias details
5500
+ * API model updated
5566
5501
  */
5567
- 200: UserAliasResponse;
5502
+ 200: ApiAliasResponse;
5568
5503
  };
5569
5504
 
5570
- export type GetAliasResponse = GetAliasResponses[keyof GetAliasResponses];
5505
+ export type UpdateApiModelResponse = UpdateApiModelResponses[keyof UpdateApiModelResponses];
5571
5506
 
5572
- export type UpdateAliasData = {
5573
- body: UserAliasRequest;
5507
+ export type SyncModelsData = {
5508
+ body?: never;
5574
5509
  path: {
5575
5510
  /**
5576
- * UUID of the alias to update
5511
+ * Unique identifier for the API model alias
5577
5512
  */
5578
5513
  id: string;
5579
5514
  };
5580
5515
  query?: never;
5581
- url: '/bodhi/v1/models/{id}';
5516
+ url: '/bodhi/v1/models/api/{id}/sync-models';
5582
5517
  };
5583
5518
 
5584
- export type UpdateAliasErrors = {
5519
+ export type SyncModelsErrors = {
5585
5520
  /**
5586
5521
  * Invalid request parameters
5587
5522
  */
@@ -5594,36 +5529,192 @@ export type UpdateAliasErrors = {
5594
5529
  * Insufficient permissions
5595
5530
  */
5596
5531
  403: OpenAiApiError;
5532
+ /**
5533
+ * API model not found
5534
+ */
5535
+ 404: unknown;
5597
5536
  /**
5598
5537
  * Internal server error
5599
5538
  */
5600
5539
  500: OpenAiApiError;
5601
5540
  };
5602
5541
 
5603
- export type UpdateAliasError = UpdateAliasErrors[keyof UpdateAliasErrors];
5542
+ export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
5604
5543
 
5605
- export type UpdateAliasResponses = {
5544
+ export type SyncModelsResponses = {
5606
5545
  /**
5607
- * Alias updated succesfully
5546
+ * Models synced to cache successfully
5608
5547
  */
5609
- 200: UserAliasResponse;
5548
+ 200: ApiAliasResponse;
5610
5549
  };
5611
5550
 
5612
- export type UpdateAliasResponse = UpdateAliasResponses[keyof UpdateAliasResponses];
5551
+ export type SyncModelsResponse = SyncModelsResponses[keyof SyncModelsResponses];
5613
5552
 
5614
- export type CopyAliasData = {
5615
- body: CopyAliasRequest;
5553
+ export type ListModelFilesData = {
5554
+ body?: never;
5555
+ path?: never;
5556
+ query?: {
5557
+ /**
5558
+ * Page number (1-based indexing)
5559
+ */
5560
+ page?: number;
5561
+ /**
5562
+ * Number of items to return per page (maximum 100)
5563
+ */
5564
+ page_size?: number;
5565
+ /**
5566
+ * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
5567
+ */
5568
+ sort?: string;
5569
+ /**
5570
+ * Sort order: 'asc' for ascending, 'desc' for descending
5571
+ */
5572
+ sort_order?: string;
5573
+ };
5574
+ url: '/bodhi/v1/models/files';
5575
+ };
5576
+
5577
+ export type ListModelFilesErrors = {
5578
+ /**
5579
+ * Invalid request parameters
5580
+ */
5581
+ 400: OpenAiApiError;
5582
+ /**
5583
+ * Not authenticated
5584
+ */
5585
+ 401: OpenAiApiError;
5586
+ /**
5587
+ * Insufficient permissions
5588
+ */
5589
+ 403: OpenAiApiError;
5590
+ /**
5591
+ * Internal server error
5592
+ */
5593
+ 500: OpenAiApiError;
5594
+ };
5595
+
5596
+ export type ListModelFilesError = ListModelFilesErrors[keyof ListModelFilesErrors];
5597
+
5598
+ export type ListModelFilesResponses = {
5599
+ /**
5600
+ * Local model files retrieved successfully from cache
5601
+ */
5602
+ 200: PaginatedLocalModelResponse;
5603
+ };
5604
+
5605
+ export type ListModelFilesResponse = ListModelFilesResponses[keyof ListModelFilesResponses];
5606
+
5607
+ export type ListDownloadsData = {
5608
+ body?: never;
5609
+ path?: never;
5610
+ query?: {
5611
+ /**
5612
+ * Page number (1-based indexing)
5613
+ */
5614
+ page?: number;
5615
+ /**
5616
+ * Number of items to return per page (maximum 100)
5617
+ */
5618
+ page_size?: number;
5619
+ /**
5620
+ * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
5621
+ */
5622
+ sort?: string;
5623
+ /**
5624
+ * Sort order: 'asc' for ascending, 'desc' for descending
5625
+ */
5626
+ sort_order?: string;
5627
+ };
5628
+ url: '/bodhi/v1/models/files/pull';
5629
+ };
5630
+
5631
+ export type ListDownloadsErrors = {
5632
+ /**
5633
+ * Invalid request parameters
5634
+ */
5635
+ 400: OpenAiApiError;
5636
+ /**
5637
+ * Not authenticated
5638
+ */
5639
+ 401: OpenAiApiError;
5640
+ /**
5641
+ * Insufficient permissions
5642
+ */
5643
+ 403: OpenAiApiError;
5644
+ /**
5645
+ * Internal server error
5646
+ */
5647
+ 500: OpenAiApiError;
5648
+ };
5649
+
5650
+ export type ListDownloadsError = ListDownloadsErrors[keyof ListDownloadsErrors];
5651
+
5652
+ export type ListDownloadsResponses = {
5653
+ /**
5654
+ * Model download requests retrieved successfully
5655
+ */
5656
+ 200: PaginatedDownloadResponse;
5657
+ };
5658
+
5659
+ export type ListDownloadsResponse = ListDownloadsResponses[keyof ListDownloadsResponses];
5660
+
5661
+ export type PullModelFileData = {
5662
+ /**
5663
+ * Model file download specification with repository and filename
5664
+ */
5665
+ body: NewDownloadRequest;
5666
+ path?: never;
5667
+ query?: never;
5668
+ url: '/bodhi/v1/models/files/pull';
5669
+ };
5670
+
5671
+ export type PullModelFileErrors = {
5672
+ /**
5673
+ * Invalid request parameters
5674
+ */
5675
+ 400: OpenAiApiError;
5676
+ /**
5677
+ * Not authenticated
5678
+ */
5679
+ 401: OpenAiApiError;
5680
+ /**
5681
+ * Insufficient permissions
5682
+ */
5683
+ 403: OpenAiApiError;
5684
+ /**
5685
+ * Internal server error
5686
+ */
5687
+ 500: OpenAiApiError;
5688
+ };
5689
+
5690
+ export type PullModelFileError = PullModelFileErrors[keyof PullModelFileErrors];
5691
+
5692
+ export type PullModelFileResponses = {
5693
+ /**
5694
+ * Existing download request found
5695
+ */
5696
+ 200: DownloadRequest;
5697
+ /**
5698
+ * Download request created
5699
+ */
5700
+ 201: DownloadRequest;
5701
+ };
5702
+
5703
+ export type PullModelFileResponse = PullModelFileResponses[keyof PullModelFileResponses];
5704
+
5705
+ export type GetDownloadStatusData = {
5706
+ body?: never;
5616
5707
  path: {
5617
5708
  /**
5618
- * UUID of the alias to copy
5709
+ * Unique identifier of the download request (UUID format)
5619
5710
  */
5620
5711
  id: string;
5621
5712
  };
5622
5713
  query?: never;
5623
- url: '/bodhi/v1/models/{id}/copy';
5714
+ url: '/bodhi/v1/models/files/pull/{id}';
5624
5715
  };
5625
5716
 
5626
- export type CopyAliasErrors = {
5717
+ export type GetDownloadStatusErrors = {
5627
5718
  /**
5628
5719
  * Invalid request parameters
5629
5720
  */
@@ -5637,7 +5728,51 @@ export type CopyAliasErrors = {
5637
5728
  */
5638
5729
  403: OpenAiApiError;
5639
5730
  /**
5640
- * Source alias not found
5731
+ * Download request not found
5732
+ */
5733
+ 404: OpenAiApiError;
5734
+ /**
5735
+ * Internal server error
5736
+ */
5737
+ 500: OpenAiApiError;
5738
+ };
5739
+
5740
+ export type GetDownloadStatusError = GetDownloadStatusErrors[keyof GetDownloadStatusErrors];
5741
+
5742
+ export type GetDownloadStatusResponses = {
5743
+ /**
5744
+ * Download request found
5745
+ */
5746
+ 200: DownloadRequest;
5747
+ };
5748
+
5749
+ export type GetDownloadStatusResponse = GetDownloadStatusResponses[keyof GetDownloadStatusResponses];
5750
+
5751
+ export type RefreshModelMetadataData = {
5752
+ /**
5753
+ * Refresh request - either bulk (source='all') or single model (source='model' with identifiers)
5754
+ */
5755
+ body: RefreshRequest;
5756
+ path?: never;
5757
+ query?: never;
5758
+ url: '/bodhi/v1/models/refresh';
5759
+ };
5760
+
5761
+ export type RefreshModelMetadataErrors = {
5762
+ /**
5763
+ * Invalid request parameters
5764
+ */
5765
+ 400: OpenAiApiError;
5766
+ /**
5767
+ * Not authenticated
5768
+ */
5769
+ 401: OpenAiApiError;
5770
+ /**
5771
+ * Insufficient permissions
5772
+ */
5773
+ 403: OpenAiApiError;
5774
+ /**
5775
+ * Model alias not found for specified repo/filename/snapshot
5641
5776
  */
5642
5777
  404: unknown;
5643
5778
  /**
@@ -5646,16 +5781,66 @@ export type CopyAliasErrors = {
5646
5781
  500: OpenAiApiError;
5647
5782
  };
5648
5783
 
5649
- export type CopyAliasError = CopyAliasErrors[keyof CopyAliasErrors];
5784
+ export type RefreshModelMetadataError = RefreshModelMetadataErrors[keyof RefreshModelMetadataErrors];
5650
5785
 
5651
- export type CopyAliasResponses = {
5786
+ export type RefreshModelMetadataResponses = {
5652
5787
  /**
5653
- * Alias copied successfully
5788
+ * Metadata refreshed successfully (sync mode)
5654
5789
  */
5655
- 201: UserAliasResponse;
5790
+ 200: ModelAliasResponse;
5791
+ /**
5792
+ * Metadata refresh queued in background (bulk mode)
5793
+ */
5794
+ 202: RefreshResponse;
5795
+ };
5796
+
5797
+ export type RefreshModelMetadataResponse = RefreshModelMetadataResponses[keyof RefreshModelMetadataResponses];
5798
+
5799
+ export type GetAliasData = {
5800
+ body?: never;
5801
+ path: {
5802
+ /**
5803
+ * UUID of the alias
5804
+ */
5805
+ id: string;
5806
+ };
5807
+ query?: never;
5808
+ url: '/bodhi/v1/models/{id}';
5809
+ };
5810
+
5811
+ export type GetAliasErrors = {
5812
+ /**
5813
+ * Invalid request parameters
5814
+ */
5815
+ 400: OpenAiApiError;
5816
+ /**
5817
+ * Not authenticated
5818
+ */
5819
+ 401: OpenAiApiError;
5820
+ /**
5821
+ * Insufficient permissions
5822
+ */
5823
+ 403: OpenAiApiError;
5824
+ /**
5825
+ * Alias not found
5826
+ */
5827
+ 404: OpenAiApiError;
5828
+ /**
5829
+ * Internal server error
5830
+ */
5831
+ 500: OpenAiApiError;
5832
+ };
5833
+
5834
+ export type GetAliasError = GetAliasErrors[keyof GetAliasErrors];
5835
+
5836
+ export type GetAliasResponses = {
5837
+ /**
5838
+ * Model alias details
5839
+ */
5840
+ 200: UserAliasResponse;
5656
5841
  };
5657
5842
 
5658
- export type CopyAliasResponse = CopyAliasResponses[keyof CopyAliasResponses];
5843
+ export type GetAliasResponse = GetAliasResponses[keyof GetAliasResponses];
5659
5844
 
5660
5845
  export type GetQueueStatusData = {
5661
5846
  body?: never;