@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.
@@ -66,11 +66,8 @@ export type AccessRequestStatusResponse = {
66
66
  /**
67
67
  * Role requested by the app
68
68
  */
69
- requested_role: string;
70
- /**
71
- * Role approved (present when approved)
72
- */
73
- approved_role?: string | null;
69
+ requested_role: UserScope;
70
+ approved_role?: null | UserScope;
74
71
  /**
75
72
  * Access request scope (present when user-approved with tools)
76
73
  */
@@ -112,6 +109,7 @@ export type ApiAliasResponse = {
112
109
  id: string;
113
110
  api_format: ApiFormat;
114
111
  base_url: string;
112
+ has_api_key: boolean;
115
113
  /**
116
114
  * Models available through this alias (merged from cache for forward_all)
117
115
  */
@@ -147,20 +145,6 @@ export type ApiKeyUpdate = {
147
145
  value: ApiKey;
148
146
  action: 'set';
149
147
  };
150
- /**
151
- * Output type for API model configuration.
152
- */
153
- export type ApiModelOutput = {
154
- id: string;
155
- api_format: ApiFormat;
156
- base_url: string;
157
- has_api_key: boolean;
158
- models: Array<string>;
159
- prefix?: string | null;
160
- forward_all_with_prefix: boolean;
161
- created_at: string;
162
- updated_at: string;
163
- };
164
148
  /**
165
149
  * Input request for creating or updating an API model configuration.
166
150
  */
@@ -1933,15 +1917,6 @@ export type PaginatedAliasResponse = {
1933
1917
  page: number;
1934
1918
  page_size: number;
1935
1919
  };
1936
- /**
1937
- * Paginated response for API model listings
1938
- */
1939
- export type PaginatedApiModelOutput = {
1940
- data: Array<ApiModelOutput>;
1941
- total: number;
1942
- page: number;
1943
- page_size: number;
1944
- };
1945
1920
  /**
1946
1921
  * Paginated list of download requests
1947
1922
  */
@@ -3129,62 +3104,23 @@ export type GetAccessRequestReviewResponses = {
3129
3104
  200: AccessRequestReviewResponse;
3130
3105
  };
3131
3106
  export type GetAccessRequestReviewResponse = GetAccessRequestReviewResponses[keyof GetAccessRequestReviewResponses];
3132
- export type ListApiModelsData = {
3107
+ export type GetAccessRequestStatusData = {
3133
3108
  body?: never;
3134
- path?: never;
3135
- query?: {
3136
- /**
3137
- * Page number (1-based indexing)
3138
- */
3139
- page?: number;
3140
- /**
3141
- * Number of items to return per page (maximum 100)
3142
- */
3143
- page_size?: number;
3109
+ path: {
3144
3110
  /**
3145
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
3111
+ * Access request ID
3146
3112
  */
3147
- sort?: string;
3113
+ id: string;
3114
+ };
3115
+ query: {
3148
3116
  /**
3149
- * Sort order: 'asc' for ascending, 'desc' for descending
3117
+ * App client ID for verification
3150
3118
  */
3151
- sort_order?: string;
3119
+ app_client_id: string;
3152
3120
  };
3153
- url: '/bodhi/v1/api-models';
3154
- };
3155
- export type ListApiModelsErrors = {
3156
- /**
3157
- * Invalid request parameters
3158
- */
3159
- 400: OpenAiApiError;
3160
- /**
3161
- * Not authenticated
3162
- */
3163
- 401: OpenAiApiError;
3164
- /**
3165
- * Insufficient permissions
3166
- */
3167
- 403: OpenAiApiError;
3168
- /**
3169
- * Internal server error
3170
- */
3171
- 500: OpenAiApiError;
3172
- };
3173
- export type ListApiModelsError = ListApiModelsErrors[keyof ListApiModelsErrors];
3174
- export type ListApiModelsResponses = {
3175
- /**
3176
- * API model configurations retrieved successfully
3177
- */
3178
- 200: PaginatedApiModelOutput;
3179
- };
3180
- export type ListApiModelsResponse = ListApiModelsResponses[keyof ListApiModelsResponses];
3181
- export type CreateApiModelData = {
3182
- body: ApiModelRequest;
3183
- path?: never;
3184
- query?: never;
3185
- url: '/bodhi/v1/api-models';
3121
+ url: '/bodhi/v1/apps/access-requests/{id}';
3186
3122
  };
3187
- export type CreateApiModelErrors = {
3123
+ export type GetAccessRequestStatusErrors = {
3188
3124
  /**
3189
3125
  * Invalid request parameters
3190
3126
  */
@@ -3198,29 +3134,29 @@ export type CreateApiModelErrors = {
3198
3134
  */
3199
3135
  403: OpenAiApiError;
3200
3136
  /**
3201
- * Alias already exists
3137
+ * Not found or app_client_id mismatch
3202
3138
  */
3203
- 409: OpenAiApiError;
3139
+ 404: OpenAiApiError;
3204
3140
  /**
3205
3141
  * Internal server error
3206
3142
  */
3207
3143
  500: OpenAiApiError;
3208
3144
  };
3209
- export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
3210
- export type CreateApiModelResponses = {
3145
+ export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
3146
+ export type GetAccessRequestStatusResponses = {
3211
3147
  /**
3212
- * API model created
3148
+ * Status retrieved
3213
3149
  */
3214
- 201: ApiModelOutput;
3150
+ 200: AccessRequestStatusResponse;
3215
3151
  };
3216
- export type CreateApiModelResponse = CreateApiModelResponses[keyof CreateApiModelResponses];
3217
- export type GetApiFormatsData = {
3152
+ export type GetAccessRequestStatusResponse = GetAccessRequestStatusResponses[keyof GetAccessRequestStatusResponses];
3153
+ export type AppsListMcpsData = {
3218
3154
  body?: never;
3219
3155
  path?: never;
3220
3156
  query?: never;
3221
- url: '/bodhi/v1/api-models/api-formats';
3157
+ url: '/bodhi/v1/apps/mcps';
3222
3158
  };
3223
- export type GetApiFormatsErrors = {
3159
+ export type AppsListMcpsErrors = {
3224
3160
  /**
3225
3161
  * Invalid request parameters
3226
3162
  */
@@ -3238,21 +3174,26 @@ export type GetApiFormatsErrors = {
3238
3174
  */
3239
3175
  500: OpenAiApiError;
3240
3176
  };
3241
- export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
3242
- export type GetApiFormatsResponses = {
3177
+ export type AppsListMcpsError = AppsListMcpsErrors[keyof AppsListMcpsErrors];
3178
+ export type AppsListMcpsResponses = {
3243
3179
  /**
3244
- * API formats retrieved successfully
3180
+ * List of MCP instances accessible to the external app
3245
3181
  */
3246
- 200: ApiFormatsResponse;
3182
+ 200: ListMcpsResponse;
3247
3183
  };
3248
- export type GetApiFormatsResponse = GetApiFormatsResponses[keyof GetApiFormatsResponses];
3249
- export type FetchApiModelsData = {
3250
- body: FetchModelsRequest;
3251
- path?: never;
3184
+ export type AppsListMcpsResponse = AppsListMcpsResponses[keyof AppsListMcpsResponses];
3185
+ export type AppsGetMcpData = {
3186
+ body?: never;
3187
+ path: {
3188
+ /**
3189
+ * MCP instance UUID
3190
+ */
3191
+ id: string;
3192
+ };
3252
3193
  query?: never;
3253
- url: '/bodhi/v1/api-models/fetch-models';
3194
+ url: '/bodhi/v1/apps/mcps/{id}';
3254
3195
  };
3255
- export type FetchApiModelsErrors = {
3196
+ export type AppsGetMcpErrors = {
3256
3197
  /**
3257
3198
  * Invalid request parameters
3258
3199
  */
@@ -3265,26 +3206,35 @@ export type FetchApiModelsErrors = {
3265
3206
  * Insufficient permissions
3266
3207
  */
3267
3208
  403: OpenAiApiError;
3209
+ /**
3210
+ * MCP not found
3211
+ */
3212
+ 404: unknown;
3268
3213
  /**
3269
3214
  * Internal server error
3270
3215
  */
3271
3216
  500: OpenAiApiError;
3272
3217
  };
3273
- export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
3274
- export type FetchApiModelsResponses = {
3218
+ export type AppsGetMcpError = AppsGetMcpErrors[keyof AppsGetMcpErrors];
3219
+ export type AppsGetMcpResponses = {
3275
3220
  /**
3276
- * Available models
3221
+ * MCP instance
3277
3222
  */
3278
- 200: FetchModelsResponse;
3223
+ 200: Mcp;
3279
3224
  };
3280
- export type FetchApiModelsResponse = FetchApiModelsResponses[keyof FetchApiModelsResponses];
3281
- export type TestApiModelData = {
3282
- body: TestPromptRequest;
3283
- path?: never;
3225
+ export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
3226
+ export type AppsRefreshMcpToolsData = {
3227
+ body?: never;
3228
+ path: {
3229
+ /**
3230
+ * MCP instance UUID
3231
+ */
3232
+ id: string;
3233
+ };
3284
3234
  query?: never;
3285
- url: '/bodhi/v1/api-models/test';
3235
+ url: '/bodhi/v1/apps/mcps/{id}/tools/refresh';
3286
3236
  };
3287
- export type TestApiModelErrors = {
3237
+ export type AppsRefreshMcpToolsErrors = {
3288
3238
  /**
3289
3239
  * Invalid request parameters
3290
3240
  */
@@ -3297,31 +3247,39 @@ export type TestApiModelErrors = {
3297
3247
  * Insufficient permissions
3298
3248
  */
3299
3249
  403: OpenAiApiError;
3250
+ /**
3251
+ * MCP not found
3252
+ */
3253
+ 404: unknown;
3300
3254
  /**
3301
3255
  * Internal server error
3302
3256
  */
3303
3257
  500: OpenAiApiError;
3304
3258
  };
3305
- export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
3306
- export type TestApiModelResponses = {
3259
+ export type AppsRefreshMcpToolsError = AppsRefreshMcpToolsErrors[keyof AppsRefreshMcpToolsErrors];
3260
+ export type AppsRefreshMcpToolsResponses = {
3307
3261
  /**
3308
- * Test result
3262
+ * Refreshed list of tools
3309
3263
  */
3310
- 200: TestPromptResponse;
3264
+ 200: McpToolsResponse;
3311
3265
  };
3312
- export type TestApiModelResponse = TestApiModelResponses[keyof TestApiModelResponses];
3313
- export type DeleteApiModelData = {
3314
- body?: never;
3266
+ export type AppsRefreshMcpToolsResponse = AppsRefreshMcpToolsResponses[keyof AppsRefreshMcpToolsResponses];
3267
+ export type AppsExecuteMcpToolData = {
3268
+ body: McpExecuteRequest;
3315
3269
  path: {
3316
3270
  /**
3317
- * API model ID
3271
+ * MCP instance UUID
3318
3272
  */
3319
3273
  id: string;
3274
+ /**
3275
+ * Tool name to execute
3276
+ */
3277
+ tool_name: string;
3320
3278
  };
3321
3279
  query?: never;
3322
- url: '/bodhi/v1/api-models/{id}';
3280
+ url: '/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute';
3323
3281
  };
3324
- export type DeleteApiModelErrors = {
3282
+ export type AppsExecuteMcpToolErrors = {
3325
3283
  /**
3326
3284
  * Invalid request parameters
3327
3285
  */
@@ -3335,34 +3293,32 @@ export type DeleteApiModelErrors = {
3335
3293
  */
3336
3294
  403: OpenAiApiError;
3337
3295
  /**
3338
- * API model not found
3296
+ * MCP or tool not found
3339
3297
  */
3340
- 404: OpenAiApiError;
3298
+ 404: unknown;
3341
3299
  /**
3342
3300
  * Internal server error
3343
3301
  */
3344
3302
  500: OpenAiApiError;
3345
3303
  };
3346
- export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
3347
- export type DeleteApiModelResponses = {
3304
+ export type AppsExecuteMcpToolError = AppsExecuteMcpToolErrors[keyof AppsExecuteMcpToolErrors];
3305
+ export type AppsExecuteMcpToolResponses = {
3348
3306
  /**
3349
- * API model deleted
3307
+ * Tool execution result
3350
3308
  */
3351
- 204: void;
3309
+ 200: McpExecuteResponse;
3352
3310
  };
3353
- export type DeleteApiModelResponse = DeleteApiModelResponses[keyof DeleteApiModelResponses];
3354
- export type GetApiModelData = {
3355
- body?: never;
3356
- path: {
3357
- /**
3358
- * Unique identifier for the API model alias
3359
- */
3360
- id: string;
3361
- };
3311
+ export type AppsExecuteMcpToolResponse = AppsExecuteMcpToolResponses[keyof AppsExecuteMcpToolResponses];
3312
+ export type CreateAccessRequestData = {
3313
+ /**
3314
+ * Access request details
3315
+ */
3316
+ body: CreateAccessRequest;
3317
+ path?: never;
3362
3318
  query?: never;
3363
- url: '/bodhi/v1/api-models/{id}';
3319
+ url: '/bodhi/v1/apps/request-access';
3364
3320
  };
3365
- export type GetApiModelErrors = {
3321
+ export type CreateAccessRequestErrors = {
3366
3322
  /**
3367
3323
  * Invalid request parameters
3368
3324
  */
@@ -3376,7 +3332,7 @@ export type GetApiModelErrors = {
3376
3332
  */
3377
3333
  403: OpenAiApiError;
3378
3334
  /**
3379
- * API model with specified ID not found
3335
+ * App client not found
3380
3336
  */
3381
3337
  404: OpenAiApiError;
3382
3338
  /**
@@ -3384,26 +3340,21 @@ export type GetApiModelErrors = {
3384
3340
  */
3385
3341
  500: OpenAiApiError;
3386
3342
  };
3387
- export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
3388
- export type GetApiModelResponses = {
3343
+ export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
3344
+ export type CreateAccessRequestResponses = {
3389
3345
  /**
3390
- * API model configuration retrieved successfully
3346
+ * Access request created
3391
3347
  */
3392
- 200: ApiModelOutput;
3348
+ 201: CreateAccessRequestResponse;
3393
3349
  };
3394
- export type GetApiModelResponse = GetApiModelResponses[keyof GetApiModelResponses];
3395
- export type UpdateApiModelData = {
3396
- body: ApiModelRequest;
3397
- path: {
3398
- /**
3399
- * API model ID
3400
- */
3401
- id: string;
3402
- };
3350
+ export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
3351
+ export type AppsListToolsetsData = {
3352
+ body?: never;
3353
+ path?: never;
3403
3354
  query?: never;
3404
- url: '/bodhi/v1/api-models/{id}';
3355
+ url: '/bodhi/v1/apps/toolsets';
3405
3356
  };
3406
- export type UpdateApiModelErrors = {
3357
+ export type AppsListToolsetsErrors = {
3407
3358
  /**
3408
3359
  * Invalid request parameters
3409
3360
  */
@@ -3416,35 +3367,35 @@ export type UpdateApiModelErrors = {
3416
3367
  * Insufficient permissions
3417
3368
  */
3418
3369
  403: OpenAiApiError;
3419
- /**
3420
- * API model not found
3421
- */
3422
- 404: OpenAiApiError;
3423
3370
  /**
3424
3371
  * Internal server error
3425
3372
  */
3426
3373
  500: OpenAiApiError;
3427
3374
  };
3428
- export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
3429
- export type UpdateApiModelResponses = {
3375
+ export type AppsListToolsetsError = AppsListToolsetsErrors[keyof AppsListToolsetsErrors];
3376
+ export type AppsListToolsetsResponses = {
3430
3377
  /**
3431
- * API model updated
3378
+ * List of toolsets accessible to the external app
3432
3379
  */
3433
- 200: ApiModelOutput;
3380
+ 200: ListToolsetsResponse;
3434
3381
  };
3435
- export type UpdateApiModelResponse = UpdateApiModelResponses[keyof UpdateApiModelResponses];
3436
- export type SyncModelsData = {
3437
- body?: never;
3382
+ export type AppsListToolsetsResponse = AppsListToolsetsResponses[keyof AppsListToolsetsResponses];
3383
+ export type AppsExecuteToolsetToolData = {
3384
+ body: ExecuteToolsetRequest;
3438
3385
  path: {
3439
3386
  /**
3440
- * Unique identifier for the API model alias
3387
+ * Toolset instance UUID
3441
3388
  */
3442
3389
  id: string;
3390
+ /**
3391
+ * Tool name to execute
3392
+ */
3393
+ tool_name: string;
3443
3394
  };
3444
3395
  query?: never;
3445
- url: '/bodhi/v1/api-models/{id}/sync-models';
3396
+ url: '/bodhi/v1/apps/toolsets/{id}/tools/{tool_name}/execute';
3446
3397
  };
3447
- export type SyncModelsErrors = {
3398
+ export type AppsExecuteToolsetToolErrors = {
3448
3399
  /**
3449
3400
  * Invalid request parameters
3450
3401
  */
@@ -3458,7 +3409,7 @@ export type SyncModelsErrors = {
3458
3409
  */
3459
3410
  403: OpenAiApiError;
3460
3411
  /**
3461
- * API model not found
3412
+ * Toolset or method not found
3462
3413
  */
3463
3414
  404: unknown;
3464
3415
  /**
@@ -3466,31 +3417,24 @@ export type SyncModelsErrors = {
3466
3417
  */
3467
3418
  500: OpenAiApiError;
3468
3419
  };
3469
- export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
3470
- export type SyncModelsResponses = {
3420
+ export type AppsExecuteToolsetToolError = AppsExecuteToolsetToolErrors[keyof AppsExecuteToolsetToolErrors];
3421
+ export type AppsExecuteToolsetToolResponses = {
3471
3422
  /**
3472
- * Models synced to cache successfully
3423
+ * Tool execution result
3473
3424
  */
3474
- 200: ApiModelOutput;
3425
+ 200: ToolsetExecutionResponse;
3475
3426
  };
3476
- export type SyncModelsResponse = SyncModelsResponses[keyof SyncModelsResponses];
3477
- export type GetAccessRequestStatusData = {
3478
- body?: never;
3479
- path: {
3480
- /**
3481
- * Access request ID
3482
- */
3483
- id: string;
3484
- };
3485
- query: {
3486
- /**
3487
- * App client ID for verification
3488
- */
3489
- app_client_id: string;
3490
- };
3491
- url: '/bodhi/v1/apps/access-requests/{id}';
3427
+ export type AppsExecuteToolsetToolResponse = AppsExecuteToolsetToolResponses[keyof AppsExecuteToolsetToolResponses];
3428
+ export type CompleteOAuthFlowData = {
3429
+ /**
3430
+ * OAuth callback parameters from authorization server
3431
+ */
3432
+ body: AuthCallbackRequest;
3433
+ path?: never;
3434
+ query?: never;
3435
+ url: '/bodhi/v1/auth/callback';
3492
3436
  };
3493
- export type GetAccessRequestStatusErrors = {
3437
+ export type CompleteOAuthFlowErrors = {
3494
3438
  /**
3495
3439
  * Invalid request parameters
3496
3440
  */
@@ -3504,87 +3448,9 @@ export type GetAccessRequestStatusErrors = {
3504
3448
  */
3505
3449
  403: OpenAiApiError;
3506
3450
  /**
3507
- * Not found or app_client_id mismatch
3451
+ * OAuth error, invalid request parameters, or state mismatch
3508
3452
  */
3509
- 404: OpenAiApiError;
3510
- /**
3511
- * Internal server error
3512
- */
3513
- 500: OpenAiApiError;
3514
- };
3515
- export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
3516
- export type GetAccessRequestStatusResponses = {
3517
- /**
3518
- * Status retrieved
3519
- */
3520
- 200: AccessRequestStatusResponse;
3521
- };
3522
- export type GetAccessRequestStatusResponse = GetAccessRequestStatusResponses[keyof GetAccessRequestStatusResponses];
3523
- export type CreateAccessRequestData = {
3524
- /**
3525
- * Access request details
3526
- */
3527
- body: CreateAccessRequest;
3528
- path?: never;
3529
- query?: never;
3530
- url: '/bodhi/v1/apps/request-access';
3531
- };
3532
- export type CreateAccessRequestErrors = {
3533
- /**
3534
- * Invalid request parameters
3535
- */
3536
- 400: OpenAiApiError;
3537
- /**
3538
- * Not authenticated
3539
- */
3540
- 401: OpenAiApiError;
3541
- /**
3542
- * Insufficient permissions
3543
- */
3544
- 403: OpenAiApiError;
3545
- /**
3546
- * App client not found
3547
- */
3548
- 404: OpenAiApiError;
3549
- /**
3550
- * Internal server error
3551
- */
3552
- 500: OpenAiApiError;
3553
- };
3554
- export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
3555
- export type CreateAccessRequestResponses = {
3556
- /**
3557
- * Access request created
3558
- */
3559
- 201: CreateAccessRequestResponse;
3560
- };
3561
- export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
3562
- export type CompleteOAuthFlowData = {
3563
- /**
3564
- * OAuth callback parameters from authorization server
3565
- */
3566
- body: AuthCallbackRequest;
3567
- path?: never;
3568
- query?: never;
3569
- url: '/bodhi/v1/auth/callback';
3570
- };
3571
- export type CompleteOAuthFlowErrors = {
3572
- /**
3573
- * Invalid request parameters
3574
- */
3575
- 400: OpenAiApiError;
3576
- /**
3577
- * Not authenticated
3578
- */
3579
- 401: OpenAiApiError;
3580
- /**
3581
- * Insufficient permissions
3582
- */
3583
- 403: OpenAiApiError;
3584
- /**
3585
- * OAuth error, invalid request parameters, or state mismatch
3586
- */
3587
- 422: OpenAiApiError;
3453
+ 422: OpenAiApiError;
3588
3454
  /**
3589
3455
  * Internal server error
3590
3456
  */
@@ -4640,7 +4506,7 @@ export type ExecuteMcpToolResponses = {
4640
4506
  200: McpExecuteResponse;
4641
4507
  };
4642
4508
  export type ExecuteMcpToolResponse = ExecuteMcpToolResponses[keyof ExecuteMcpToolResponses];
4643
- export type ListModelFilesData = {
4509
+ export type ListAllModelsData = {
4644
4510
  body?: never;
4645
4511
  path?: never;
4646
4512
  query?: {
@@ -4661,9 +4527,9 @@ export type ListModelFilesData = {
4661
4527
  */
4662
4528
  sort_order?: string;
4663
4529
  };
4664
- url: '/bodhi/v1/modelfiles';
4530
+ url: '/bodhi/v1/models';
4665
4531
  };
4666
- export type ListModelFilesErrors = {
4532
+ export type ListAllModelsErrors = {
4667
4533
  /**
4668
4534
  * Invalid request parameters
4669
4535
  */
@@ -4681,38 +4547,21 @@ export type ListModelFilesErrors = {
4681
4547
  */
4682
4548
  500: OpenAiApiError;
4683
4549
  };
4684
- export type ListModelFilesError = ListModelFilesErrors[keyof ListModelFilesErrors];
4685
- export type ListModelFilesResponses = {
4550
+ export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
4551
+ export type ListAllModelsResponses = {
4686
4552
  /**
4687
- * Local model files retrieved successfully from cache
4553
+ * Paginated list of model aliases retrieved successfully
4688
4554
  */
4689
- 200: PaginatedLocalModelResponse;
4555
+ 200: PaginatedAliasResponse;
4690
4556
  };
4691
- export type ListModelFilesResponse = ListModelFilesResponses[keyof ListModelFilesResponses];
4692
- export type ListDownloadsData = {
4693
- body?: never;
4557
+ export type ListAllModelsResponse = ListAllModelsResponses[keyof ListAllModelsResponses];
4558
+ export type ModelsAliasCreateData = {
4559
+ body: UserAliasRequest;
4694
4560
  path?: never;
4695
- query?: {
4696
- /**
4697
- * Page number (1-based indexing)
4698
- */
4699
- page?: number;
4700
- /**
4701
- * Number of items to return per page (maximum 100)
4702
- */
4703
- page_size?: number;
4704
- /**
4705
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
4706
- */
4707
- sort?: string;
4708
- /**
4709
- * Sort order: 'asc' for ascending, 'desc' for descending
4710
- */
4711
- sort_order?: string;
4712
- };
4713
- url: '/bodhi/v1/modelfiles/pull';
4561
+ query?: never;
4562
+ url: '/bodhi/v1/models/alias';
4714
4563
  };
4715
- export type ListDownloadsErrors = {
4564
+ export type ModelsAliasCreateErrors = {
4716
4565
  /**
4717
4566
  * Invalid request parameters
4718
4567
  */
@@ -4730,24 +4579,26 @@ export type ListDownloadsErrors = {
4730
4579
  */
4731
4580
  500: OpenAiApiError;
4732
4581
  };
4733
- export type ListDownloadsError = ListDownloadsErrors[keyof ListDownloadsErrors];
4734
- export type ListDownloadsResponses = {
4582
+ export type ModelsAliasCreateError = ModelsAliasCreateErrors[keyof ModelsAliasCreateErrors];
4583
+ export type ModelsAliasCreateResponses = {
4735
4584
  /**
4736
- * Model download requests retrieved successfully
4585
+ * Alias created succesfully
4737
4586
  */
4738
- 200: PaginatedDownloadResponse;
4587
+ 201: UserAliasResponse;
4739
4588
  };
4740
- export type ListDownloadsResponse = ListDownloadsResponses[keyof ListDownloadsResponses];
4741
- export type PullModelFileData = {
4742
- /**
4743
- * Model file download specification with repository and filename
4744
- */
4745
- body: NewDownloadRequest;
4746
- path?: never;
4589
+ export type ModelsAliasCreateResponse = ModelsAliasCreateResponses[keyof ModelsAliasCreateResponses];
4590
+ export type ModelsAliasDestroyData = {
4591
+ body?: never;
4592
+ path: {
4593
+ /**
4594
+ * UUID of the alias to delete
4595
+ */
4596
+ id: string;
4597
+ };
4747
4598
  query?: never;
4748
- url: '/bodhi/v1/modelfiles/pull';
4599
+ url: '/bodhi/v1/models/alias/{id}';
4749
4600
  };
4750
- export type PullModelFileErrors = {
4601
+ export type ModelsAliasDestroyErrors = {
4751
4602
  /**
4752
4603
  * Invalid request parameters
4753
4604
  */
@@ -4760,35 +4611,34 @@ export type PullModelFileErrors = {
4760
4611
  * Insufficient permissions
4761
4612
  */
4762
4613
  403: OpenAiApiError;
4614
+ /**
4615
+ * Alias not found
4616
+ */
4617
+ 404: unknown;
4763
4618
  /**
4764
4619
  * Internal server error
4765
4620
  */
4766
4621
  500: OpenAiApiError;
4767
4622
  };
4768
- export type PullModelFileError = PullModelFileErrors[keyof PullModelFileErrors];
4769
- export type PullModelFileResponses = {
4770
- /**
4771
- * Existing download request found
4772
- */
4773
- 200: DownloadRequest;
4623
+ export type ModelsAliasDestroyError = ModelsAliasDestroyErrors[keyof ModelsAliasDestroyErrors];
4624
+ export type ModelsAliasDestroyResponses = {
4774
4625
  /**
4775
- * Download request created
4626
+ * Alias deleted successfully
4776
4627
  */
4777
- 201: DownloadRequest;
4628
+ 200: unknown;
4778
4629
  };
4779
- export type PullModelFileResponse = PullModelFileResponses[keyof PullModelFileResponses];
4780
- export type GetDownloadStatusData = {
4781
- body?: never;
4630
+ export type ModelsAliasUpdateData = {
4631
+ body: UserAliasRequest;
4782
4632
  path: {
4783
4633
  /**
4784
- * Unique identifier of the download request (UUID format)
4634
+ * UUID of the alias to update
4785
4635
  */
4786
4636
  id: string;
4787
4637
  };
4788
4638
  query?: never;
4789
- url: '/bodhi/v1/modelfiles/pull/{id}';
4639
+ url: '/bodhi/v1/models/alias/{id}';
4790
4640
  };
4791
- export type GetDownloadStatusErrors = {
4641
+ export type ModelsAliasUpdateErrors = {
4792
4642
  /**
4793
4643
  * Invalid request parameters
4794
4644
  */
@@ -4801,47 +4651,31 @@ export type GetDownloadStatusErrors = {
4801
4651
  * Insufficient permissions
4802
4652
  */
4803
4653
  403: OpenAiApiError;
4804
- /**
4805
- * Download request not found
4806
- */
4807
- 404: OpenAiApiError;
4808
4654
  /**
4809
4655
  * Internal server error
4810
4656
  */
4811
4657
  500: OpenAiApiError;
4812
4658
  };
4813
- export type GetDownloadStatusError = GetDownloadStatusErrors[keyof GetDownloadStatusErrors];
4814
- export type GetDownloadStatusResponses = {
4659
+ export type ModelsAliasUpdateError = ModelsAliasUpdateErrors[keyof ModelsAliasUpdateErrors];
4660
+ export type ModelsAliasUpdateResponses = {
4815
4661
  /**
4816
- * Download request found
4662
+ * Alias updated succesfully
4817
4663
  */
4818
- 200: DownloadRequest;
4664
+ 200: UserAliasResponse;
4819
4665
  };
4820
- export type GetDownloadStatusResponse = GetDownloadStatusResponses[keyof GetDownloadStatusResponses];
4821
- export type ListAllModelsData = {
4822
- body?: never;
4823
- path?: never;
4824
- query?: {
4825
- /**
4826
- * Page number (1-based indexing)
4827
- */
4828
- page?: number;
4829
- /**
4830
- * Number of items to return per page (maximum 100)
4831
- */
4832
- page_size?: number;
4833
- /**
4834
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
4835
- */
4836
- sort?: string;
4666
+ export type ModelsAliasUpdateResponse = ModelsAliasUpdateResponses[keyof ModelsAliasUpdateResponses];
4667
+ export type ModelsAliasCopyData = {
4668
+ body: CopyAliasRequest;
4669
+ path: {
4837
4670
  /**
4838
- * Sort order: 'asc' for ascending, 'desc' for descending
4671
+ * UUID of the alias to copy
4839
4672
  */
4840
- sort_order?: string;
4673
+ id: string;
4841
4674
  };
4842
- url: '/bodhi/v1/models';
4675
+ query?: never;
4676
+ url: '/bodhi/v1/models/alias/{id}/copy';
4843
4677
  };
4844
- export type ListAllModelsErrors = {
4678
+ export type ModelsAliasCopyErrors = {
4845
4679
  /**
4846
4680
  * Invalid request parameters
4847
4681
  */
@@ -4854,26 +4688,30 @@ export type ListAllModelsErrors = {
4854
4688
  * Insufficient permissions
4855
4689
  */
4856
4690
  403: OpenAiApiError;
4691
+ /**
4692
+ * Source alias not found
4693
+ */
4694
+ 404: unknown;
4857
4695
  /**
4858
4696
  * Internal server error
4859
4697
  */
4860
4698
  500: OpenAiApiError;
4861
4699
  };
4862
- export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
4863
- export type ListAllModelsResponses = {
4700
+ export type ModelsAliasCopyError = ModelsAliasCopyErrors[keyof ModelsAliasCopyErrors];
4701
+ export type ModelsAliasCopyResponses = {
4864
4702
  /**
4865
- * Paginated list of model aliases retrieved successfully
4703
+ * Alias copied successfully
4866
4704
  */
4867
- 200: PaginatedAliasResponse;
4705
+ 201: UserAliasResponse;
4868
4706
  };
4869
- export type ListAllModelsResponse = ListAllModelsResponses[keyof ListAllModelsResponses];
4870
- export type CreateAliasData = {
4871
- body: UserAliasRequest;
4707
+ export type ModelsAliasCopyResponse = ModelsAliasCopyResponses[keyof ModelsAliasCopyResponses];
4708
+ export type CreateApiModelData = {
4709
+ body: ApiModelRequest;
4872
4710
  path?: never;
4873
4711
  query?: never;
4874
- url: '/bodhi/v1/models';
4712
+ url: '/bodhi/v1/models/api';
4875
4713
  };
4876
- export type CreateAliasErrors = {
4714
+ export type CreateApiModelErrors = {
4877
4715
  /**
4878
4716
  * Invalid request parameters
4879
4717
  */
@@ -4886,29 +4724,30 @@ export type CreateAliasErrors = {
4886
4724
  * Insufficient permissions
4887
4725
  */
4888
4726
  403: OpenAiApiError;
4727
+ /**
4728
+ * Alias already exists
4729
+ */
4730
+ 409: OpenAiApiError;
4889
4731
  /**
4890
4732
  * Internal server error
4891
4733
  */
4892
4734
  500: OpenAiApiError;
4893
4735
  };
4894
- export type CreateAliasError = CreateAliasErrors[keyof CreateAliasErrors];
4895
- export type CreateAliasResponses = {
4736
+ export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
4737
+ export type CreateApiModelResponses = {
4896
4738
  /**
4897
- * Alias created succesfully
4739
+ * API model created
4898
4740
  */
4899
- 201: UserAliasResponse;
4741
+ 201: ApiAliasResponse;
4900
4742
  };
4901
- export type CreateAliasResponse = CreateAliasResponses[keyof CreateAliasResponses];
4902
- export type RefreshModelMetadataData = {
4903
- /**
4904
- * Refresh request - either bulk (source='all') or single model (source='model' with identifiers)
4905
- */
4906
- body: RefreshRequest;
4743
+ export type CreateApiModelResponse = CreateApiModelResponses[keyof CreateApiModelResponses];
4744
+ export type FetchApiModelsData = {
4745
+ body: FetchModelsRequest;
4907
4746
  path?: never;
4908
4747
  query?: never;
4909
- url: '/bodhi/v1/models/refresh';
4748
+ url: '/bodhi/v1/models/api/fetch-models';
4910
4749
  };
4911
- export type RefreshModelMetadataErrors = {
4750
+ export type FetchApiModelsErrors = {
4912
4751
  /**
4913
4752
  * Invalid request parameters
4914
4753
  */
@@ -4921,39 +4760,26 @@ export type RefreshModelMetadataErrors = {
4921
4760
  * Insufficient permissions
4922
4761
  */
4923
4762
  403: OpenAiApiError;
4924
- /**
4925
- * Model alias not found for specified repo/filename/snapshot
4926
- */
4927
- 404: unknown;
4928
4763
  /**
4929
4764
  * Internal server error
4930
4765
  */
4931
4766
  500: OpenAiApiError;
4932
4767
  };
4933
- export type RefreshModelMetadataError = RefreshModelMetadataErrors[keyof RefreshModelMetadataErrors];
4934
- export type RefreshModelMetadataResponses = {
4935
- /**
4936
- * Metadata refreshed successfully (sync mode)
4937
- */
4938
- 200: ModelAliasResponse;
4768
+ export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
4769
+ export type FetchApiModelsResponses = {
4939
4770
  /**
4940
- * Metadata refresh queued in background (bulk mode)
4771
+ * Available models
4941
4772
  */
4942
- 202: RefreshResponse;
4773
+ 200: FetchModelsResponse;
4943
4774
  };
4944
- export type RefreshModelMetadataResponse = RefreshModelMetadataResponses[keyof RefreshModelMetadataResponses];
4945
- export type DeleteAliasData = {
4775
+ export type FetchApiModelsResponse = FetchApiModelsResponses[keyof FetchApiModelsResponses];
4776
+ export type GetApiFormatsData = {
4946
4777
  body?: never;
4947
- path: {
4948
- /**
4949
- * UUID of the alias to delete
4950
- */
4951
- id: string;
4952
- };
4778
+ path?: never;
4953
4779
  query?: never;
4954
- url: '/bodhi/v1/models/{id}';
4780
+ url: '/bodhi/v1/models/api/formats';
4955
4781
  };
4956
- export type DeleteAliasErrors = {
4782
+ export type GetApiFormatsErrors = {
4957
4783
  /**
4958
4784
  * Invalid request parameters
4959
4785
  */
@@ -4967,33 +4793,62 @@ export type DeleteAliasErrors = {
4967
4793
  */
4968
4794
  403: OpenAiApiError;
4969
4795
  /**
4970
- * Alias not found
4796
+ * Internal server error
4971
4797
  */
4972
- 404: unknown;
4798
+ 500: OpenAiApiError;
4799
+ };
4800
+ export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
4801
+ export type GetApiFormatsResponses = {
4802
+ /**
4803
+ * API formats retrieved successfully
4804
+ */
4805
+ 200: ApiFormatsResponse;
4806
+ };
4807
+ export type GetApiFormatsResponse = GetApiFormatsResponses[keyof GetApiFormatsResponses];
4808
+ export type TestApiModelData = {
4809
+ body: TestPromptRequest;
4810
+ path?: never;
4811
+ query?: never;
4812
+ url: '/bodhi/v1/models/api/test';
4813
+ };
4814
+ export type TestApiModelErrors = {
4815
+ /**
4816
+ * Invalid request parameters
4817
+ */
4818
+ 400: OpenAiApiError;
4819
+ /**
4820
+ * Not authenticated
4821
+ */
4822
+ 401: OpenAiApiError;
4823
+ /**
4824
+ * Insufficient permissions
4825
+ */
4826
+ 403: OpenAiApiError;
4973
4827
  /**
4974
4828
  * Internal server error
4975
4829
  */
4976
4830
  500: OpenAiApiError;
4977
4831
  };
4978
- export type DeleteAliasError = DeleteAliasErrors[keyof DeleteAliasErrors];
4979
- export type DeleteAliasResponses = {
4832
+ export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
4833
+ export type TestApiModelResponses = {
4980
4834
  /**
4981
- * Alias deleted successfully
4835
+ * Test result
4982
4836
  */
4983
- 200: unknown;
4837
+ 200: TestPromptResponse;
4984
4838
  };
4985
- export type GetAliasData = {
4839
+ export type TestApiModelResponse = TestApiModelResponses[keyof TestApiModelResponses];
4840
+ export type DeleteApiModelData = {
4986
4841
  body?: never;
4987
4842
  path: {
4988
4843
  /**
4989
- * UUID of the alias
4844
+ * API model ID
4990
4845
  */
4991
4846
  id: string;
4992
4847
  };
4993
4848
  query?: never;
4994
- url: '/bodhi/v1/models/{id}';
4849
+ url: '/bodhi/v1/models/api/{id}';
4995
4850
  };
4996
- export type GetAliasErrors = {
4851
+ export type DeleteApiModelErrors = {
4997
4852
  /**
4998
4853
  * Invalid request parameters
4999
4854
  */
@@ -5007,7 +4862,7 @@ export type GetAliasErrors = {
5007
4862
  */
5008
4863
  403: OpenAiApiError;
5009
4864
  /**
5010
- * Alias not found
4865
+ * API model not found
5011
4866
  */
5012
4867
  404: OpenAiApiError;
5013
4868
  /**
@@ -5015,26 +4870,26 @@ export type GetAliasErrors = {
5015
4870
  */
5016
4871
  500: OpenAiApiError;
5017
4872
  };
5018
- export type GetAliasError = GetAliasErrors[keyof GetAliasErrors];
5019
- export type GetAliasResponses = {
4873
+ export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
4874
+ export type DeleteApiModelResponses = {
5020
4875
  /**
5021
- * Model alias details
4876
+ * API model deleted
5022
4877
  */
5023
- 200: UserAliasResponse;
4878
+ 204: void;
5024
4879
  };
5025
- export type GetAliasResponse = GetAliasResponses[keyof GetAliasResponses];
5026
- export type UpdateAliasData = {
5027
- body: UserAliasRequest;
4880
+ export type DeleteApiModelResponse = DeleteApiModelResponses[keyof DeleteApiModelResponses];
4881
+ export type GetApiModelData = {
4882
+ body?: never;
5028
4883
  path: {
5029
4884
  /**
5030
- * UUID of the alias to update
4885
+ * Unique identifier for the API model alias
5031
4886
  */
5032
4887
  id: string;
5033
4888
  };
5034
4889
  query?: never;
5035
- url: '/bodhi/v1/models/{id}';
4890
+ url: '/bodhi/v1/models/api/{id}';
5036
4891
  };
5037
- export type UpdateAliasErrors = {
4892
+ export type GetApiModelErrors = {
5038
4893
  /**
5039
4894
  * Invalid request parameters
5040
4895
  */
@@ -5047,31 +4902,35 @@ export type UpdateAliasErrors = {
5047
4902
  * Insufficient permissions
5048
4903
  */
5049
4904
  403: OpenAiApiError;
4905
+ /**
4906
+ * API model with specified ID not found
4907
+ */
4908
+ 404: OpenAiApiError;
5050
4909
  /**
5051
4910
  * Internal server error
5052
4911
  */
5053
4912
  500: OpenAiApiError;
5054
4913
  };
5055
- export type UpdateAliasError = UpdateAliasErrors[keyof UpdateAliasErrors];
5056
- export type UpdateAliasResponses = {
4914
+ export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
4915
+ export type GetApiModelResponses = {
5057
4916
  /**
5058
- * Alias updated succesfully
4917
+ * API model configuration retrieved successfully
5059
4918
  */
5060
- 200: UserAliasResponse;
4919
+ 200: ApiAliasResponse;
5061
4920
  };
5062
- export type UpdateAliasResponse = UpdateAliasResponses[keyof UpdateAliasResponses];
5063
- export type CopyAliasData = {
5064
- body: CopyAliasRequest;
4921
+ export type GetApiModelResponse = GetApiModelResponses[keyof GetApiModelResponses];
4922
+ export type UpdateApiModelData = {
4923
+ body: ApiModelRequest;
5065
4924
  path: {
5066
4925
  /**
5067
- * UUID of the alias to copy
4926
+ * API model ID
5068
4927
  */
5069
4928
  id: string;
5070
4929
  };
5071
4930
  query?: never;
5072
- url: '/bodhi/v1/models/{id}/copy';
4931
+ url: '/bodhi/v1/models/api/{id}';
5073
4932
  };
5074
- export type CopyAliasErrors = {
4933
+ export type UpdateApiModelErrors = {
5075
4934
  /**
5076
4935
  * Invalid request parameters
5077
4936
  */
@@ -5085,7 +4944,48 @@ export type CopyAliasErrors = {
5085
4944
  */
5086
4945
  403: OpenAiApiError;
5087
4946
  /**
5088
- * Source alias not found
4947
+ * API model not found
4948
+ */
4949
+ 404: OpenAiApiError;
4950
+ /**
4951
+ * Internal server error
4952
+ */
4953
+ 500: OpenAiApiError;
4954
+ };
4955
+ export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
4956
+ export type UpdateApiModelResponses = {
4957
+ /**
4958
+ * API model updated
4959
+ */
4960
+ 200: ApiAliasResponse;
4961
+ };
4962
+ export type UpdateApiModelResponse = UpdateApiModelResponses[keyof UpdateApiModelResponses];
4963
+ export type SyncModelsData = {
4964
+ body?: never;
4965
+ path: {
4966
+ /**
4967
+ * Unique identifier for the API model alias
4968
+ */
4969
+ id: string;
4970
+ };
4971
+ query?: never;
4972
+ url: '/bodhi/v1/models/api/{id}/sync-models';
4973
+ };
4974
+ export type SyncModelsErrors = {
4975
+ /**
4976
+ * Invalid request parameters
4977
+ */
4978
+ 400: OpenAiApiError;
4979
+ /**
4980
+ * Not authenticated
4981
+ */
4982
+ 401: OpenAiApiError;
4983
+ /**
4984
+ * Insufficient permissions
4985
+ */
4986
+ 403: OpenAiApiError;
4987
+ /**
4988
+ * API model not found
5089
4989
  */
5090
4990
  404: unknown;
5091
4991
  /**
@@ -5093,14 +4993,276 @@ export type CopyAliasErrors = {
5093
4993
  */
5094
4994
  500: OpenAiApiError;
5095
4995
  };
5096
- export type CopyAliasError = CopyAliasErrors[keyof CopyAliasErrors];
5097
- export type CopyAliasResponses = {
4996
+ export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
4997
+ export type SyncModelsResponses = {
5098
4998
  /**
5099
- * Alias copied successfully
4999
+ * Models synced to cache successfully
5100
5000
  */
5101
- 201: UserAliasResponse;
5001
+ 200: ApiAliasResponse;
5002
+ };
5003
+ export type SyncModelsResponse = SyncModelsResponses[keyof SyncModelsResponses];
5004
+ export type ListModelFilesData = {
5005
+ body?: never;
5006
+ path?: never;
5007
+ query?: {
5008
+ /**
5009
+ * Page number (1-based indexing)
5010
+ */
5011
+ page?: number;
5012
+ /**
5013
+ * Number of items to return per page (maximum 100)
5014
+ */
5015
+ page_size?: number;
5016
+ /**
5017
+ * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
5018
+ */
5019
+ sort?: string;
5020
+ /**
5021
+ * Sort order: 'asc' for ascending, 'desc' for descending
5022
+ */
5023
+ sort_order?: string;
5024
+ };
5025
+ url: '/bodhi/v1/models/files';
5026
+ };
5027
+ export type ListModelFilesErrors = {
5028
+ /**
5029
+ * Invalid request parameters
5030
+ */
5031
+ 400: OpenAiApiError;
5032
+ /**
5033
+ * Not authenticated
5034
+ */
5035
+ 401: OpenAiApiError;
5036
+ /**
5037
+ * Insufficient permissions
5038
+ */
5039
+ 403: OpenAiApiError;
5040
+ /**
5041
+ * Internal server error
5042
+ */
5043
+ 500: OpenAiApiError;
5044
+ };
5045
+ export type ListModelFilesError = ListModelFilesErrors[keyof ListModelFilesErrors];
5046
+ export type ListModelFilesResponses = {
5047
+ /**
5048
+ * Local model files retrieved successfully from cache
5049
+ */
5050
+ 200: PaginatedLocalModelResponse;
5102
5051
  };
5103
- export type CopyAliasResponse = CopyAliasResponses[keyof CopyAliasResponses];
5052
+ export type ListModelFilesResponse = ListModelFilesResponses[keyof ListModelFilesResponses];
5053
+ export type ListDownloadsData = {
5054
+ body?: never;
5055
+ path?: never;
5056
+ query?: {
5057
+ /**
5058
+ * Page number (1-based indexing)
5059
+ */
5060
+ page?: number;
5061
+ /**
5062
+ * Number of items to return per page (maximum 100)
5063
+ */
5064
+ page_size?: number;
5065
+ /**
5066
+ * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
5067
+ */
5068
+ sort?: string;
5069
+ /**
5070
+ * Sort order: 'asc' for ascending, 'desc' for descending
5071
+ */
5072
+ sort_order?: string;
5073
+ };
5074
+ url: '/bodhi/v1/models/files/pull';
5075
+ };
5076
+ export type ListDownloadsErrors = {
5077
+ /**
5078
+ * Invalid request parameters
5079
+ */
5080
+ 400: OpenAiApiError;
5081
+ /**
5082
+ * Not authenticated
5083
+ */
5084
+ 401: OpenAiApiError;
5085
+ /**
5086
+ * Insufficient permissions
5087
+ */
5088
+ 403: OpenAiApiError;
5089
+ /**
5090
+ * Internal server error
5091
+ */
5092
+ 500: OpenAiApiError;
5093
+ };
5094
+ export type ListDownloadsError = ListDownloadsErrors[keyof ListDownloadsErrors];
5095
+ export type ListDownloadsResponses = {
5096
+ /**
5097
+ * Model download requests retrieved successfully
5098
+ */
5099
+ 200: PaginatedDownloadResponse;
5100
+ };
5101
+ export type ListDownloadsResponse = ListDownloadsResponses[keyof ListDownloadsResponses];
5102
+ export type PullModelFileData = {
5103
+ /**
5104
+ * Model file download specification with repository and filename
5105
+ */
5106
+ body: NewDownloadRequest;
5107
+ path?: never;
5108
+ query?: never;
5109
+ url: '/bodhi/v1/models/files/pull';
5110
+ };
5111
+ export type PullModelFileErrors = {
5112
+ /**
5113
+ * Invalid request parameters
5114
+ */
5115
+ 400: OpenAiApiError;
5116
+ /**
5117
+ * Not authenticated
5118
+ */
5119
+ 401: OpenAiApiError;
5120
+ /**
5121
+ * Insufficient permissions
5122
+ */
5123
+ 403: OpenAiApiError;
5124
+ /**
5125
+ * Internal server error
5126
+ */
5127
+ 500: OpenAiApiError;
5128
+ };
5129
+ export type PullModelFileError = PullModelFileErrors[keyof PullModelFileErrors];
5130
+ export type PullModelFileResponses = {
5131
+ /**
5132
+ * Existing download request found
5133
+ */
5134
+ 200: DownloadRequest;
5135
+ /**
5136
+ * Download request created
5137
+ */
5138
+ 201: DownloadRequest;
5139
+ };
5140
+ export type PullModelFileResponse = PullModelFileResponses[keyof PullModelFileResponses];
5141
+ export type GetDownloadStatusData = {
5142
+ body?: never;
5143
+ path: {
5144
+ /**
5145
+ * Unique identifier of the download request (UUID format)
5146
+ */
5147
+ id: string;
5148
+ };
5149
+ query?: never;
5150
+ url: '/bodhi/v1/models/files/pull/{id}';
5151
+ };
5152
+ export type GetDownloadStatusErrors = {
5153
+ /**
5154
+ * Invalid request parameters
5155
+ */
5156
+ 400: OpenAiApiError;
5157
+ /**
5158
+ * Not authenticated
5159
+ */
5160
+ 401: OpenAiApiError;
5161
+ /**
5162
+ * Insufficient permissions
5163
+ */
5164
+ 403: OpenAiApiError;
5165
+ /**
5166
+ * Download request not found
5167
+ */
5168
+ 404: OpenAiApiError;
5169
+ /**
5170
+ * Internal server error
5171
+ */
5172
+ 500: OpenAiApiError;
5173
+ };
5174
+ export type GetDownloadStatusError = GetDownloadStatusErrors[keyof GetDownloadStatusErrors];
5175
+ export type GetDownloadStatusResponses = {
5176
+ /**
5177
+ * Download request found
5178
+ */
5179
+ 200: DownloadRequest;
5180
+ };
5181
+ export type GetDownloadStatusResponse = GetDownloadStatusResponses[keyof GetDownloadStatusResponses];
5182
+ export type RefreshModelMetadataData = {
5183
+ /**
5184
+ * Refresh request - either bulk (source='all') or single model (source='model' with identifiers)
5185
+ */
5186
+ body: RefreshRequest;
5187
+ path?: never;
5188
+ query?: never;
5189
+ url: '/bodhi/v1/models/refresh';
5190
+ };
5191
+ export type RefreshModelMetadataErrors = {
5192
+ /**
5193
+ * Invalid request parameters
5194
+ */
5195
+ 400: OpenAiApiError;
5196
+ /**
5197
+ * Not authenticated
5198
+ */
5199
+ 401: OpenAiApiError;
5200
+ /**
5201
+ * Insufficient permissions
5202
+ */
5203
+ 403: OpenAiApiError;
5204
+ /**
5205
+ * Model alias not found for specified repo/filename/snapshot
5206
+ */
5207
+ 404: unknown;
5208
+ /**
5209
+ * Internal server error
5210
+ */
5211
+ 500: OpenAiApiError;
5212
+ };
5213
+ export type RefreshModelMetadataError = RefreshModelMetadataErrors[keyof RefreshModelMetadataErrors];
5214
+ export type RefreshModelMetadataResponses = {
5215
+ /**
5216
+ * Metadata refreshed successfully (sync mode)
5217
+ */
5218
+ 200: ModelAliasResponse;
5219
+ /**
5220
+ * Metadata refresh queued in background (bulk mode)
5221
+ */
5222
+ 202: RefreshResponse;
5223
+ };
5224
+ export type RefreshModelMetadataResponse = RefreshModelMetadataResponses[keyof RefreshModelMetadataResponses];
5225
+ export type GetAliasData = {
5226
+ body?: never;
5227
+ path: {
5228
+ /**
5229
+ * UUID of the alias
5230
+ */
5231
+ id: string;
5232
+ };
5233
+ query?: never;
5234
+ url: '/bodhi/v1/models/{id}';
5235
+ };
5236
+ export type GetAliasErrors = {
5237
+ /**
5238
+ * Invalid request parameters
5239
+ */
5240
+ 400: OpenAiApiError;
5241
+ /**
5242
+ * Not authenticated
5243
+ */
5244
+ 401: OpenAiApiError;
5245
+ /**
5246
+ * Insufficient permissions
5247
+ */
5248
+ 403: OpenAiApiError;
5249
+ /**
5250
+ * Alias not found
5251
+ */
5252
+ 404: OpenAiApiError;
5253
+ /**
5254
+ * Internal server error
5255
+ */
5256
+ 500: OpenAiApiError;
5257
+ };
5258
+ export type GetAliasError = GetAliasErrors[keyof GetAliasErrors];
5259
+ export type GetAliasResponses = {
5260
+ /**
5261
+ * Model alias details
5262
+ */
5263
+ 200: UserAliasResponse;
5264
+ };
5265
+ export type GetAliasResponse = GetAliasResponses[keyof GetAliasResponses];
5104
5266
  export type GetQueueStatusData = {
5105
5267
  body?: never;
5106
5268
  path?: never;