@bodhiapp/ts-client 0.1.18 → 0.1.20

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
  */
@@ -215,6 +199,10 @@ export type AppInfo = {
215
199
  * Active tenant's OAuth client_id (present when authenticated with an active tenant)
216
200
  */
217
201
  client_id?: string | null;
202
+ /**
203
+ * Public URL of the server
204
+ */
205
+ url: string;
218
206
  };
219
207
  export type AppRole = ResourceRole | TokenScope | UserScope;
220
208
  export type AppStatus = 'setup' | 'ready' | 'resource_admin' | 'tenant_selection';
@@ -1929,15 +1917,6 @@ export type PaginatedAliasResponse = {
1929
1917
  page: number;
1930
1918
  page_size: number;
1931
1919
  };
1932
- /**
1933
- * Paginated response for API model listings
1934
- */
1935
- export type PaginatedApiModelOutput = {
1936
- data: Array<ApiModelOutput>;
1937
- total: number;
1938
- page: number;
1939
- page_size: number;
1940
- };
1941
1920
  /**
1942
1921
  * Paginated list of download requests
1943
1922
  */
@@ -2217,6 +2196,7 @@ export type TenantListItem = {
2217
2196
  client_id: string;
2218
2197
  name: string;
2219
2198
  description?: string | null;
2199
+ status: AppStatus;
2220
2200
  is_active: boolean;
2221
2201
  logged_in: boolean;
2222
2202
  };
@@ -3124,30 +3104,23 @@ export type GetAccessRequestReviewResponses = {
3124
3104
  200: AccessRequestReviewResponse;
3125
3105
  };
3126
3106
  export type GetAccessRequestReviewResponse = GetAccessRequestReviewResponses[keyof GetAccessRequestReviewResponses];
3127
- export type ListApiModelsData = {
3107
+ export type GetAccessRequestStatusData = {
3128
3108
  body?: never;
3129
- path?: never;
3130
- query?: {
3131
- /**
3132
- * Page number (1-based indexing)
3133
- */
3134
- page?: number;
3135
- /**
3136
- * Number of items to return per page (maximum 100)
3137
- */
3138
- page_size?: number;
3109
+ path: {
3139
3110
  /**
3140
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
3111
+ * Access request ID
3141
3112
  */
3142
- sort?: string;
3113
+ id: string;
3114
+ };
3115
+ query: {
3143
3116
  /**
3144
- * Sort order: 'asc' for ascending, 'desc' for descending
3117
+ * App client ID for verification
3145
3118
  */
3146
- sort_order?: string;
3119
+ app_client_id: string;
3147
3120
  };
3148
- url: '/bodhi/v1/api-models';
3121
+ url: '/bodhi/v1/apps/access-requests/{id}';
3149
3122
  };
3150
- export type ListApiModelsErrors = {
3123
+ export type GetAccessRequestStatusErrors = {
3151
3124
  /**
3152
3125
  * Invalid request parameters
3153
3126
  */
@@ -3160,26 +3133,30 @@ export type ListApiModelsErrors = {
3160
3133
  * Insufficient permissions
3161
3134
  */
3162
3135
  403: OpenAiApiError;
3136
+ /**
3137
+ * Not found or app_client_id mismatch
3138
+ */
3139
+ 404: OpenAiApiError;
3163
3140
  /**
3164
3141
  * Internal server error
3165
3142
  */
3166
3143
  500: OpenAiApiError;
3167
3144
  };
3168
- export type ListApiModelsError = ListApiModelsErrors[keyof ListApiModelsErrors];
3169
- export type ListApiModelsResponses = {
3145
+ export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
3146
+ export type GetAccessRequestStatusResponses = {
3170
3147
  /**
3171
- * API model configurations retrieved successfully
3148
+ * Status retrieved
3172
3149
  */
3173
- 200: PaginatedApiModelOutput;
3150
+ 200: AccessRequestStatusResponse;
3174
3151
  };
3175
- export type ListApiModelsResponse = ListApiModelsResponses[keyof ListApiModelsResponses];
3176
- export type CreateApiModelData = {
3177
- body: ApiModelRequest;
3152
+ export type GetAccessRequestStatusResponse = GetAccessRequestStatusResponses[keyof GetAccessRequestStatusResponses];
3153
+ export type AppsListMcpsData = {
3154
+ body?: never;
3178
3155
  path?: never;
3179
3156
  query?: never;
3180
- url: '/bodhi/v1/api-models';
3157
+ url: '/bodhi/v1/apps/mcps';
3181
3158
  };
3182
- export type CreateApiModelErrors = {
3159
+ export type AppsListMcpsErrors = {
3183
3160
  /**
3184
3161
  * Invalid request parameters
3185
3162
  */
@@ -3192,30 +3169,31 @@ export type CreateApiModelErrors = {
3192
3169
  * Insufficient permissions
3193
3170
  */
3194
3171
  403: OpenAiApiError;
3195
- /**
3196
- * Alias already exists
3197
- */
3198
- 409: OpenAiApiError;
3199
3172
  /**
3200
3173
  * Internal server error
3201
3174
  */
3202
3175
  500: OpenAiApiError;
3203
3176
  };
3204
- export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
3205
- export type CreateApiModelResponses = {
3177
+ export type AppsListMcpsError = AppsListMcpsErrors[keyof AppsListMcpsErrors];
3178
+ export type AppsListMcpsResponses = {
3206
3179
  /**
3207
- * API model created
3180
+ * List of MCP instances accessible to the external app
3208
3181
  */
3209
- 201: ApiModelOutput;
3182
+ 200: ListMcpsResponse;
3210
3183
  };
3211
- export type CreateApiModelResponse = CreateApiModelResponses[keyof CreateApiModelResponses];
3212
- export type GetApiFormatsData = {
3184
+ export type AppsListMcpsResponse = AppsListMcpsResponses[keyof AppsListMcpsResponses];
3185
+ export type AppsGetMcpData = {
3213
3186
  body?: never;
3214
- path?: never;
3187
+ path: {
3188
+ /**
3189
+ * MCP instance UUID
3190
+ */
3191
+ id: string;
3192
+ };
3215
3193
  query?: never;
3216
- url: '/bodhi/v1/api-models/api-formats';
3194
+ url: '/bodhi/v1/apps/mcps/{id}';
3217
3195
  };
3218
- export type GetApiFormatsErrors = {
3196
+ export type AppsGetMcpErrors = {
3219
3197
  /**
3220
3198
  * Invalid request parameters
3221
3199
  */
@@ -3228,26 +3206,35 @@ export type GetApiFormatsErrors = {
3228
3206
  * Insufficient permissions
3229
3207
  */
3230
3208
  403: OpenAiApiError;
3209
+ /**
3210
+ * MCP not found
3211
+ */
3212
+ 404: unknown;
3231
3213
  /**
3232
3214
  * Internal server error
3233
3215
  */
3234
3216
  500: OpenAiApiError;
3235
3217
  };
3236
- export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
3237
- export type GetApiFormatsResponses = {
3218
+ export type AppsGetMcpError = AppsGetMcpErrors[keyof AppsGetMcpErrors];
3219
+ export type AppsGetMcpResponses = {
3238
3220
  /**
3239
- * API formats retrieved successfully
3221
+ * MCP instance
3240
3222
  */
3241
- 200: ApiFormatsResponse;
3223
+ 200: Mcp;
3242
3224
  };
3243
- export type GetApiFormatsResponse = GetApiFormatsResponses[keyof GetApiFormatsResponses];
3244
- export type FetchApiModelsData = {
3245
- body: FetchModelsRequest;
3246
- 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
+ };
3247
3234
  query?: never;
3248
- url: '/bodhi/v1/api-models/fetch-models';
3235
+ url: '/bodhi/v1/apps/mcps/{id}/tools/refresh';
3249
3236
  };
3250
- export type FetchApiModelsErrors = {
3237
+ export type AppsRefreshMcpToolsErrors = {
3251
3238
  /**
3252
3239
  * Invalid request parameters
3253
3240
  */
@@ -3260,26 +3247,39 @@ export type FetchApiModelsErrors = {
3260
3247
  * Insufficient permissions
3261
3248
  */
3262
3249
  403: OpenAiApiError;
3250
+ /**
3251
+ * MCP not found
3252
+ */
3253
+ 404: unknown;
3263
3254
  /**
3264
3255
  * Internal server error
3265
3256
  */
3266
3257
  500: OpenAiApiError;
3267
3258
  };
3268
- export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
3269
- export type FetchApiModelsResponses = {
3259
+ export type AppsRefreshMcpToolsError = AppsRefreshMcpToolsErrors[keyof AppsRefreshMcpToolsErrors];
3260
+ export type AppsRefreshMcpToolsResponses = {
3270
3261
  /**
3271
- * Available models
3262
+ * Refreshed list of tools
3272
3263
  */
3273
- 200: FetchModelsResponse;
3264
+ 200: McpToolsResponse;
3274
3265
  };
3275
- export type FetchApiModelsResponse = FetchApiModelsResponses[keyof FetchApiModelsResponses];
3276
- export type TestApiModelData = {
3277
- body: TestPromptRequest;
3278
- path?: never;
3266
+ export type AppsRefreshMcpToolsResponse = AppsRefreshMcpToolsResponses[keyof AppsRefreshMcpToolsResponses];
3267
+ export type AppsExecuteMcpToolData = {
3268
+ body: McpExecuteRequest;
3269
+ path: {
3270
+ /**
3271
+ * MCP instance UUID
3272
+ */
3273
+ id: string;
3274
+ /**
3275
+ * Tool name to execute
3276
+ */
3277
+ tool_name: string;
3278
+ };
3279
3279
  query?: never;
3280
- url: '/bodhi/v1/api-models/test';
3280
+ url: '/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute';
3281
3281
  };
3282
- export type TestApiModelErrors = {
3282
+ export type AppsExecuteMcpToolErrors = {
3283
3283
  /**
3284
3284
  * Invalid request parameters
3285
3285
  */
@@ -3292,31 +3292,33 @@ export type TestApiModelErrors = {
3292
3292
  * Insufficient permissions
3293
3293
  */
3294
3294
  403: OpenAiApiError;
3295
+ /**
3296
+ * MCP or tool not found
3297
+ */
3298
+ 404: unknown;
3295
3299
  /**
3296
3300
  * Internal server error
3297
3301
  */
3298
3302
  500: OpenAiApiError;
3299
3303
  };
3300
- export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
3301
- export type TestApiModelResponses = {
3304
+ export type AppsExecuteMcpToolError = AppsExecuteMcpToolErrors[keyof AppsExecuteMcpToolErrors];
3305
+ export type AppsExecuteMcpToolResponses = {
3302
3306
  /**
3303
- * Test result
3307
+ * Tool execution result
3304
3308
  */
3305
- 200: TestPromptResponse;
3309
+ 200: McpExecuteResponse;
3306
3310
  };
3307
- export type TestApiModelResponse = TestApiModelResponses[keyof TestApiModelResponses];
3308
- export type DeleteApiModelData = {
3309
- body?: never;
3310
- path: {
3311
- /**
3312
- * API model ID
3313
- */
3314
- id: string;
3315
- };
3311
+ export type AppsExecuteMcpToolResponse = AppsExecuteMcpToolResponses[keyof AppsExecuteMcpToolResponses];
3312
+ export type CreateAccessRequestData = {
3313
+ /**
3314
+ * Access request details
3315
+ */
3316
+ body: CreateAccessRequest;
3317
+ path?: never;
3316
3318
  query?: never;
3317
- url: '/bodhi/v1/api-models/{id}';
3319
+ url: '/bodhi/v1/apps/request-access';
3318
3320
  };
3319
- export type DeleteApiModelErrors = {
3321
+ export type CreateAccessRequestErrors = {
3320
3322
  /**
3321
3323
  * Invalid request parameters
3322
3324
  */
@@ -3330,7 +3332,7 @@ export type DeleteApiModelErrors = {
3330
3332
  */
3331
3333
  403: OpenAiApiError;
3332
3334
  /**
3333
- * API model not found
3335
+ * App client not found
3334
3336
  */
3335
3337
  404: OpenAiApiError;
3336
3338
  /**
@@ -3338,26 +3340,21 @@ export type DeleteApiModelErrors = {
3338
3340
  */
3339
3341
  500: OpenAiApiError;
3340
3342
  };
3341
- export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
3342
- export type DeleteApiModelResponses = {
3343
+ export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
3344
+ export type CreateAccessRequestResponses = {
3343
3345
  /**
3344
- * API model deleted
3346
+ * Access request created
3345
3347
  */
3346
- 204: void;
3348
+ 201: CreateAccessRequestResponse;
3347
3349
  };
3348
- export type DeleteApiModelResponse = DeleteApiModelResponses[keyof DeleteApiModelResponses];
3349
- export type GetApiModelData = {
3350
+ export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
3351
+ export type AppsListToolsetsData = {
3350
3352
  body?: never;
3351
- path: {
3352
- /**
3353
- * Unique identifier for the API model alias
3354
- */
3355
- id: string;
3356
- };
3353
+ path?: never;
3357
3354
  query?: never;
3358
- url: '/bodhi/v1/api-models/{id}';
3355
+ url: '/bodhi/v1/apps/toolsets';
3359
3356
  };
3360
- export type GetApiModelErrors = {
3357
+ export type AppsListToolsetsErrors = {
3361
3358
  /**
3362
3359
  * Invalid request parameters
3363
3360
  */
@@ -3370,35 +3367,35 @@ export type GetApiModelErrors = {
3370
3367
  * Insufficient permissions
3371
3368
  */
3372
3369
  403: OpenAiApiError;
3373
- /**
3374
- * API model with specified ID not found
3375
- */
3376
- 404: OpenAiApiError;
3377
3370
  /**
3378
3371
  * Internal server error
3379
3372
  */
3380
3373
  500: OpenAiApiError;
3381
3374
  };
3382
- export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
3383
- export type GetApiModelResponses = {
3375
+ export type AppsListToolsetsError = AppsListToolsetsErrors[keyof AppsListToolsetsErrors];
3376
+ export type AppsListToolsetsResponses = {
3384
3377
  /**
3385
- * API model configuration retrieved successfully
3378
+ * List of toolsets accessible to the external app
3386
3379
  */
3387
- 200: ApiModelOutput;
3380
+ 200: ListToolsetsResponse;
3388
3381
  };
3389
- export type GetApiModelResponse = GetApiModelResponses[keyof GetApiModelResponses];
3390
- export type UpdateApiModelData = {
3391
- body: ApiModelRequest;
3382
+ export type AppsListToolsetsResponse = AppsListToolsetsResponses[keyof AppsListToolsetsResponses];
3383
+ export type AppsExecuteToolsetToolData = {
3384
+ body: ExecuteToolsetRequest;
3392
3385
  path: {
3393
3386
  /**
3394
- * API model ID
3387
+ * Toolset instance UUID
3395
3388
  */
3396
3389
  id: string;
3390
+ /**
3391
+ * Tool name to execute
3392
+ */
3393
+ tool_name: string;
3397
3394
  };
3398
3395
  query?: never;
3399
- url: '/bodhi/v1/api-models/{id}';
3396
+ url: '/bodhi/v1/apps/toolsets/{id}/tools/{tool_name}/execute';
3400
3397
  };
3401
- export type UpdateApiModelErrors = {
3398
+ export type AppsExecuteToolsetToolErrors = {
3402
3399
  /**
3403
3400
  * Invalid request parameters
3404
3401
  */
@@ -3412,34 +3409,32 @@ export type UpdateApiModelErrors = {
3412
3409
  */
3413
3410
  403: OpenAiApiError;
3414
3411
  /**
3415
- * API model not found
3412
+ * Toolset or method not found
3416
3413
  */
3417
- 404: OpenAiApiError;
3414
+ 404: unknown;
3418
3415
  /**
3419
3416
  * Internal server error
3420
3417
  */
3421
3418
  500: OpenAiApiError;
3422
3419
  };
3423
- export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
3424
- export type UpdateApiModelResponses = {
3420
+ export type AppsExecuteToolsetToolError = AppsExecuteToolsetToolErrors[keyof AppsExecuteToolsetToolErrors];
3421
+ export type AppsExecuteToolsetToolResponses = {
3425
3422
  /**
3426
- * API model updated
3423
+ * Tool execution result
3427
3424
  */
3428
- 200: ApiModelOutput;
3425
+ 200: ToolsetExecutionResponse;
3429
3426
  };
3430
- export type UpdateApiModelResponse = UpdateApiModelResponses[keyof UpdateApiModelResponses];
3431
- export type SyncModelsData = {
3432
- body?: never;
3433
- path: {
3434
- /**
3435
- * Unique identifier for the API model alias
3436
- */
3437
- id: string;
3438
- };
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;
3439
3434
  query?: never;
3440
- url: '/bodhi/v1/api-models/{id}/sync-models';
3435
+ url: '/bodhi/v1/auth/callback';
3441
3436
  };
3442
- export type SyncModelsErrors = {
3437
+ export type CompleteOAuthFlowErrors = {
3443
3438
  /**
3444
3439
  * Invalid request parameters
3445
3440
  */
@@ -3453,147 +3448,23 @@ export type SyncModelsErrors = {
3453
3448
  */
3454
3449
  403: OpenAiApiError;
3455
3450
  /**
3456
- * API model not found
3451
+ * OAuth error, invalid request parameters, or state mismatch
3457
3452
  */
3458
- 404: unknown;
3453
+ 422: OpenAiApiError;
3459
3454
  /**
3460
3455
  * Internal server error
3461
3456
  */
3462
3457
  500: OpenAiApiError;
3463
3458
  };
3464
- export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
3465
- export type SyncModelsResponses = {
3459
+ export type CompleteOAuthFlowError = CompleteOAuthFlowErrors[keyof CompleteOAuthFlowErrors];
3460
+ export type CompleteOAuthFlowResponses = {
3466
3461
  /**
3467
- * Models synced to cache successfully
3462
+ * OAuth flow completed successfully, user authenticated
3468
3463
  */
3469
- 200: ApiModelOutput;
3470
- };
3471
- export type SyncModelsResponse = SyncModelsResponses[keyof SyncModelsResponses];
3472
- export type GetAccessRequestStatusData = {
3473
- body?: never;
3474
- path: {
3475
- /**
3476
- * Access request ID
3477
- */
3478
- id: string;
3479
- };
3480
- query: {
3481
- /**
3482
- * App client ID for verification
3483
- */
3484
- app_client_id: string;
3485
- };
3486
- url: '/bodhi/v1/apps/access-requests/{id}';
3464
+ 200: RedirectResponse;
3487
3465
  };
3488
- export type GetAccessRequestStatusErrors = {
3489
- /**
3490
- * Invalid request parameters
3491
- */
3492
- 400: OpenAiApiError;
3493
- /**
3494
- * Not authenticated
3495
- */
3496
- 401: OpenAiApiError;
3497
- /**
3498
- * Insufficient permissions
3499
- */
3500
- 403: OpenAiApiError;
3501
- /**
3502
- * Not found or app_client_id mismatch
3503
- */
3504
- 404: OpenAiApiError;
3505
- /**
3506
- * Internal server error
3507
- */
3508
- 500: OpenAiApiError;
3509
- };
3510
- export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
3511
- export type GetAccessRequestStatusResponses = {
3512
- /**
3513
- * Status retrieved
3514
- */
3515
- 200: AccessRequestStatusResponse;
3516
- };
3517
- export type GetAccessRequestStatusResponse = GetAccessRequestStatusResponses[keyof GetAccessRequestStatusResponses];
3518
- export type CreateAccessRequestData = {
3519
- /**
3520
- * Access request details
3521
- */
3522
- body: CreateAccessRequest;
3523
- path?: never;
3524
- query?: never;
3525
- url: '/bodhi/v1/apps/request-access';
3526
- };
3527
- export type CreateAccessRequestErrors = {
3528
- /**
3529
- * Invalid request parameters
3530
- */
3531
- 400: OpenAiApiError;
3532
- /**
3533
- * Not authenticated
3534
- */
3535
- 401: OpenAiApiError;
3536
- /**
3537
- * Insufficient permissions
3538
- */
3539
- 403: OpenAiApiError;
3540
- /**
3541
- * App client not found
3542
- */
3543
- 404: OpenAiApiError;
3544
- /**
3545
- * Internal server error
3546
- */
3547
- 500: OpenAiApiError;
3548
- };
3549
- export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
3550
- export type CreateAccessRequestResponses = {
3551
- /**
3552
- * Access request created
3553
- */
3554
- 201: CreateAccessRequestResponse;
3555
- };
3556
- export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
3557
- export type CompleteOAuthFlowData = {
3558
- /**
3559
- * OAuth callback parameters from authorization server
3560
- */
3561
- body: AuthCallbackRequest;
3562
- path?: never;
3563
- query?: never;
3564
- url: '/bodhi/v1/auth/callback';
3565
- };
3566
- export type CompleteOAuthFlowErrors = {
3567
- /**
3568
- * Invalid request parameters
3569
- */
3570
- 400: OpenAiApiError;
3571
- /**
3572
- * Not authenticated
3573
- */
3574
- 401: OpenAiApiError;
3575
- /**
3576
- * Insufficient permissions
3577
- */
3578
- 403: OpenAiApiError;
3579
- /**
3580
- * OAuth error, invalid request parameters, or state mismatch
3581
- */
3582
- 422: OpenAiApiError;
3583
- /**
3584
- * Internal server error
3585
- */
3586
- 500: OpenAiApiError;
3587
- };
3588
- export type CompleteOAuthFlowError = CompleteOAuthFlowErrors[keyof CompleteOAuthFlowErrors];
3589
- export type CompleteOAuthFlowResponses = {
3590
- /**
3591
- * OAuth flow completed successfully, user authenticated
3592
- */
3593
- 200: RedirectResponse;
3594
- };
3595
- export type CompleteOAuthFlowResponse = CompleteOAuthFlowResponses[keyof CompleteOAuthFlowResponses];
3596
- export type CompleteDashboardOAuthFlowData = {
3466
+ export type CompleteOAuthFlowResponse = CompleteOAuthFlowResponses[keyof CompleteOAuthFlowResponses];
3467
+ export type CompleteDashboardOAuthFlowData = {
3597
3468
  /**
3598
3469
  * OAuth callback parameters from authorization server
3599
3470
  */
@@ -4635,7 +4506,7 @@ export type ExecuteMcpToolResponses = {
4635
4506
  200: McpExecuteResponse;
4636
4507
  };
4637
4508
  export type ExecuteMcpToolResponse = ExecuteMcpToolResponses[keyof ExecuteMcpToolResponses];
4638
- export type ListModelFilesData = {
4509
+ export type ListAllModelsData = {
4639
4510
  body?: never;
4640
4511
  path?: never;
4641
4512
  query?: {
@@ -4656,9 +4527,9 @@ export type ListModelFilesData = {
4656
4527
  */
4657
4528
  sort_order?: string;
4658
4529
  };
4659
- url: '/bodhi/v1/modelfiles';
4530
+ url: '/bodhi/v1/models';
4660
4531
  };
4661
- export type ListModelFilesErrors = {
4532
+ export type ListAllModelsErrors = {
4662
4533
  /**
4663
4534
  * Invalid request parameters
4664
4535
  */
@@ -4676,38 +4547,21 @@ export type ListModelFilesErrors = {
4676
4547
  */
4677
4548
  500: OpenAiApiError;
4678
4549
  };
4679
- export type ListModelFilesError = ListModelFilesErrors[keyof ListModelFilesErrors];
4680
- export type ListModelFilesResponses = {
4550
+ export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
4551
+ export type ListAllModelsResponses = {
4681
4552
  /**
4682
- * Local model files retrieved successfully from cache
4553
+ * Paginated list of model aliases retrieved successfully
4683
4554
  */
4684
- 200: PaginatedLocalModelResponse;
4555
+ 200: PaginatedAliasResponse;
4685
4556
  };
4686
- export type ListModelFilesResponse = ListModelFilesResponses[keyof ListModelFilesResponses];
4687
- export type ListDownloadsData = {
4688
- body?: never;
4557
+ export type ListAllModelsResponse = ListAllModelsResponses[keyof ListAllModelsResponses];
4558
+ export type ModelsAliasCreateData = {
4559
+ body: UserAliasRequest;
4689
4560
  path?: never;
4690
- query?: {
4691
- /**
4692
- * Page number (1-based indexing)
4693
- */
4694
- page?: number;
4695
- /**
4696
- * Number of items to return per page (maximum 100)
4697
- */
4698
- page_size?: number;
4699
- /**
4700
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
4701
- */
4702
- sort?: string;
4703
- /**
4704
- * Sort order: 'asc' for ascending, 'desc' for descending
4705
- */
4706
- sort_order?: string;
4707
- };
4708
- url: '/bodhi/v1/modelfiles/pull';
4561
+ query?: never;
4562
+ url: '/bodhi/v1/models/alias';
4709
4563
  };
4710
- export type ListDownloadsErrors = {
4564
+ export type ModelsAliasCreateErrors = {
4711
4565
  /**
4712
4566
  * Invalid request parameters
4713
4567
  */
@@ -4725,24 +4579,26 @@ export type ListDownloadsErrors = {
4725
4579
  */
4726
4580
  500: OpenAiApiError;
4727
4581
  };
4728
- export type ListDownloadsError = ListDownloadsErrors[keyof ListDownloadsErrors];
4729
- export type ListDownloadsResponses = {
4582
+ export type ModelsAliasCreateError = ModelsAliasCreateErrors[keyof ModelsAliasCreateErrors];
4583
+ export type ModelsAliasCreateResponses = {
4730
4584
  /**
4731
- * Model download requests retrieved successfully
4585
+ * Alias created succesfully
4732
4586
  */
4733
- 200: PaginatedDownloadResponse;
4587
+ 201: UserAliasResponse;
4734
4588
  };
4735
- export type ListDownloadsResponse = ListDownloadsResponses[keyof ListDownloadsResponses];
4736
- export type PullModelFileData = {
4737
- /**
4738
- * Model file download specification with repository and filename
4739
- */
4740
- body: NewDownloadRequest;
4741
- 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
+ };
4742
4598
  query?: never;
4743
- url: '/bodhi/v1/modelfiles/pull';
4599
+ url: '/bodhi/v1/models/alias/{id}';
4744
4600
  };
4745
- export type PullModelFileErrors = {
4601
+ export type ModelsAliasDestroyErrors = {
4746
4602
  /**
4747
4603
  * Invalid request parameters
4748
4604
  */
@@ -4755,35 +4611,34 @@ export type PullModelFileErrors = {
4755
4611
  * Insufficient permissions
4756
4612
  */
4757
4613
  403: OpenAiApiError;
4614
+ /**
4615
+ * Alias not found
4616
+ */
4617
+ 404: unknown;
4758
4618
  /**
4759
4619
  * Internal server error
4760
4620
  */
4761
4621
  500: OpenAiApiError;
4762
4622
  };
4763
- export type PullModelFileError = PullModelFileErrors[keyof PullModelFileErrors];
4764
- export type PullModelFileResponses = {
4765
- /**
4766
- * Existing download request found
4767
- */
4768
- 200: DownloadRequest;
4623
+ export type ModelsAliasDestroyError = ModelsAliasDestroyErrors[keyof ModelsAliasDestroyErrors];
4624
+ export type ModelsAliasDestroyResponses = {
4769
4625
  /**
4770
- * Download request created
4626
+ * Alias deleted successfully
4771
4627
  */
4772
- 201: DownloadRequest;
4628
+ 200: unknown;
4773
4629
  };
4774
- export type PullModelFileResponse = PullModelFileResponses[keyof PullModelFileResponses];
4775
- export type GetDownloadStatusData = {
4776
- body?: never;
4630
+ export type ModelsAliasUpdateData = {
4631
+ body: UserAliasRequest;
4777
4632
  path: {
4778
4633
  /**
4779
- * Unique identifier of the download request (UUID format)
4634
+ * UUID of the alias to update
4780
4635
  */
4781
4636
  id: string;
4782
4637
  };
4783
4638
  query?: never;
4784
- url: '/bodhi/v1/modelfiles/pull/{id}';
4639
+ url: '/bodhi/v1/models/alias/{id}';
4785
4640
  };
4786
- export type GetDownloadStatusErrors = {
4641
+ export type ModelsAliasUpdateErrors = {
4787
4642
  /**
4788
4643
  * Invalid request parameters
4789
4644
  */
@@ -4796,47 +4651,31 @@ export type GetDownloadStatusErrors = {
4796
4651
  * Insufficient permissions
4797
4652
  */
4798
4653
  403: OpenAiApiError;
4799
- /**
4800
- * Download request not found
4801
- */
4802
- 404: OpenAiApiError;
4803
4654
  /**
4804
4655
  * Internal server error
4805
4656
  */
4806
4657
  500: OpenAiApiError;
4807
4658
  };
4808
- export type GetDownloadStatusError = GetDownloadStatusErrors[keyof GetDownloadStatusErrors];
4809
- export type GetDownloadStatusResponses = {
4659
+ export type ModelsAliasUpdateError = ModelsAliasUpdateErrors[keyof ModelsAliasUpdateErrors];
4660
+ export type ModelsAliasUpdateResponses = {
4810
4661
  /**
4811
- * Download request found
4662
+ * Alias updated succesfully
4812
4663
  */
4813
- 200: DownloadRequest;
4664
+ 200: UserAliasResponse;
4814
4665
  };
4815
- export type GetDownloadStatusResponse = GetDownloadStatusResponses[keyof GetDownloadStatusResponses];
4816
- export type ListAllModelsData = {
4817
- body?: never;
4818
- path?: never;
4819
- query?: {
4820
- /**
4821
- * Page number (1-based indexing)
4822
- */
4823
- page?: number;
4824
- /**
4825
- * Number of items to return per page (maximum 100)
4826
- */
4827
- page_size?: number;
4828
- /**
4829
- * Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at
4830
- */
4831
- sort?: string;
4666
+ export type ModelsAliasUpdateResponse = ModelsAliasUpdateResponses[keyof ModelsAliasUpdateResponses];
4667
+ export type ModelsAliasCopyData = {
4668
+ body: CopyAliasRequest;
4669
+ path: {
4832
4670
  /**
4833
- * Sort order: 'asc' for ascending, 'desc' for descending
4671
+ * UUID of the alias to copy
4834
4672
  */
4835
- sort_order?: string;
4673
+ id: string;
4836
4674
  };
4837
- url: '/bodhi/v1/models';
4675
+ query?: never;
4676
+ url: '/bodhi/v1/models/alias/{id}/copy';
4838
4677
  };
4839
- export type ListAllModelsErrors = {
4678
+ export type ModelsAliasCopyErrors = {
4840
4679
  /**
4841
4680
  * Invalid request parameters
4842
4681
  */
@@ -4849,26 +4688,30 @@ export type ListAllModelsErrors = {
4849
4688
  * Insufficient permissions
4850
4689
  */
4851
4690
  403: OpenAiApiError;
4691
+ /**
4692
+ * Source alias not found
4693
+ */
4694
+ 404: unknown;
4852
4695
  /**
4853
4696
  * Internal server error
4854
4697
  */
4855
4698
  500: OpenAiApiError;
4856
4699
  };
4857
- export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
4858
- export type ListAllModelsResponses = {
4700
+ export type ModelsAliasCopyError = ModelsAliasCopyErrors[keyof ModelsAliasCopyErrors];
4701
+ export type ModelsAliasCopyResponses = {
4859
4702
  /**
4860
- * Paginated list of model aliases retrieved successfully
4703
+ * Alias copied successfully
4861
4704
  */
4862
- 200: PaginatedAliasResponse;
4705
+ 201: UserAliasResponse;
4863
4706
  };
4864
- export type ListAllModelsResponse = ListAllModelsResponses[keyof ListAllModelsResponses];
4865
- export type CreateAliasData = {
4866
- body: UserAliasRequest;
4707
+ export type ModelsAliasCopyResponse = ModelsAliasCopyResponses[keyof ModelsAliasCopyResponses];
4708
+ export type CreateApiModelData = {
4709
+ body: ApiModelRequest;
4867
4710
  path?: never;
4868
4711
  query?: never;
4869
- url: '/bodhi/v1/models';
4712
+ url: '/bodhi/v1/models/api';
4870
4713
  };
4871
- export type CreateAliasErrors = {
4714
+ export type CreateApiModelErrors = {
4872
4715
  /**
4873
4716
  * Invalid request parameters
4874
4717
  */
@@ -4881,29 +4724,30 @@ export type CreateAliasErrors = {
4881
4724
  * Insufficient permissions
4882
4725
  */
4883
4726
  403: OpenAiApiError;
4727
+ /**
4728
+ * Alias already exists
4729
+ */
4730
+ 409: OpenAiApiError;
4884
4731
  /**
4885
4732
  * Internal server error
4886
4733
  */
4887
4734
  500: OpenAiApiError;
4888
4735
  };
4889
- export type CreateAliasError = CreateAliasErrors[keyof CreateAliasErrors];
4890
- export type CreateAliasResponses = {
4736
+ export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
4737
+ export type CreateApiModelResponses = {
4891
4738
  /**
4892
- * Alias created succesfully
4739
+ * API model created
4893
4740
  */
4894
- 201: UserAliasResponse;
4741
+ 201: ApiAliasResponse;
4895
4742
  };
4896
- export type CreateAliasResponse = CreateAliasResponses[keyof CreateAliasResponses];
4897
- export type RefreshModelMetadataData = {
4898
- /**
4899
- * Refresh request - either bulk (source='all') or single model (source='model' with identifiers)
4900
- */
4901
- body: RefreshRequest;
4902
- path?: never;
4903
- query?: never;
4904
- url: '/bodhi/v1/models/refresh';
4743
+ export type CreateApiModelResponse = CreateApiModelResponses[keyof CreateApiModelResponses];
4744
+ export type FetchApiModelsData = {
4745
+ body: FetchModelsRequest;
4746
+ path?: never;
4747
+ query?: never;
4748
+ url: '/bodhi/v1/models/api/fetch-models';
4905
4749
  };
4906
- export type RefreshModelMetadataErrors = {
4750
+ export type FetchApiModelsErrors = {
4907
4751
  /**
4908
4752
  * Invalid request parameters
4909
4753
  */
@@ -4917,38 +4761,94 @@ export type RefreshModelMetadataErrors = {
4917
4761
  */
4918
4762
  403: OpenAiApiError;
4919
4763
  /**
4920
- * Model alias not found for specified repo/filename/snapshot
4764
+ * Internal server error
4921
4765
  */
4922
- 404: unknown;
4766
+ 500: OpenAiApiError;
4767
+ };
4768
+ export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
4769
+ export type FetchApiModelsResponses = {
4770
+ /**
4771
+ * Available models
4772
+ */
4773
+ 200: FetchModelsResponse;
4774
+ };
4775
+ export type FetchApiModelsResponse = FetchApiModelsResponses[keyof FetchApiModelsResponses];
4776
+ export type GetApiFormatsData = {
4777
+ body?: never;
4778
+ path?: never;
4779
+ query?: never;
4780
+ url: '/bodhi/v1/models/api/formats';
4781
+ };
4782
+ export type GetApiFormatsErrors = {
4783
+ /**
4784
+ * Invalid request parameters
4785
+ */
4786
+ 400: OpenAiApiError;
4787
+ /**
4788
+ * Not authenticated
4789
+ */
4790
+ 401: OpenAiApiError;
4791
+ /**
4792
+ * Insufficient permissions
4793
+ */
4794
+ 403: OpenAiApiError;
4923
4795
  /**
4924
4796
  * Internal server error
4925
4797
  */
4926
4798
  500: OpenAiApiError;
4927
4799
  };
4928
- export type RefreshModelMetadataError = RefreshModelMetadataErrors[keyof RefreshModelMetadataErrors];
4929
- export type RefreshModelMetadataResponses = {
4800
+ export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
4801
+ export type GetApiFormatsResponses = {
4930
4802
  /**
4931
- * Metadata refreshed successfully (sync mode)
4803
+ * API formats retrieved successfully
4932
4804
  */
4933
- 200: ModelAliasResponse;
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 = {
4934
4815
  /**
4935
- * Metadata refresh queued in background (bulk mode)
4816
+ * Invalid request parameters
4936
4817
  */
4937
- 202: RefreshResponse;
4818
+ 400: OpenAiApiError;
4819
+ /**
4820
+ * Not authenticated
4821
+ */
4822
+ 401: OpenAiApiError;
4823
+ /**
4824
+ * Insufficient permissions
4825
+ */
4826
+ 403: OpenAiApiError;
4827
+ /**
4828
+ * Internal server error
4829
+ */
4830
+ 500: OpenAiApiError;
4938
4831
  };
4939
- export type RefreshModelMetadataResponse = RefreshModelMetadataResponses[keyof RefreshModelMetadataResponses];
4940
- export type DeleteAliasData = {
4832
+ export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
4833
+ export type TestApiModelResponses = {
4834
+ /**
4835
+ * Test result
4836
+ */
4837
+ 200: TestPromptResponse;
4838
+ };
4839
+ export type TestApiModelResponse = TestApiModelResponses[keyof TestApiModelResponses];
4840
+ export type DeleteApiModelData = {
4941
4841
  body?: never;
4942
4842
  path: {
4943
4843
  /**
4944
- * UUID of the alias to delete
4844
+ * API model ID
4945
4845
  */
4946
4846
  id: string;
4947
4847
  };
4948
4848
  query?: never;
4949
- url: '/bodhi/v1/models/{id}';
4849
+ url: '/bodhi/v1/models/api/{id}';
4950
4850
  };
4951
- export type DeleteAliasErrors = {
4851
+ export type DeleteApiModelErrors = {
4952
4852
  /**
4953
4853
  * Invalid request parameters
4954
4854
  */
@@ -4962,33 +4862,34 @@ export type DeleteAliasErrors = {
4962
4862
  */
4963
4863
  403: OpenAiApiError;
4964
4864
  /**
4965
- * Alias not found
4865
+ * API model not found
4966
4866
  */
4967
- 404: unknown;
4867
+ 404: OpenAiApiError;
4968
4868
  /**
4969
4869
  * Internal server error
4970
4870
  */
4971
4871
  500: OpenAiApiError;
4972
4872
  };
4973
- export type DeleteAliasError = DeleteAliasErrors[keyof DeleteAliasErrors];
4974
- export type DeleteAliasResponses = {
4873
+ export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
4874
+ export type DeleteApiModelResponses = {
4975
4875
  /**
4976
- * Alias deleted successfully
4876
+ * API model deleted
4977
4877
  */
4978
- 200: unknown;
4878
+ 204: void;
4979
4879
  };
4980
- export type GetAliasData = {
4880
+ export type DeleteApiModelResponse = DeleteApiModelResponses[keyof DeleteApiModelResponses];
4881
+ export type GetApiModelData = {
4981
4882
  body?: never;
4982
4883
  path: {
4983
4884
  /**
4984
- * UUID of the alias
4885
+ * Unique identifier for the API model alias
4985
4886
  */
4986
4887
  id: string;
4987
4888
  };
4988
4889
  query?: never;
4989
- url: '/bodhi/v1/models/{id}';
4890
+ url: '/bodhi/v1/models/api/{id}';
4990
4891
  };
4991
- export type GetAliasErrors = {
4892
+ export type GetApiModelErrors = {
4992
4893
  /**
4993
4894
  * Invalid request parameters
4994
4895
  */
@@ -5002,7 +4903,7 @@ export type GetAliasErrors = {
5002
4903
  */
5003
4904
  403: OpenAiApiError;
5004
4905
  /**
5005
- * Alias not found
4906
+ * API model with specified ID not found
5006
4907
  */
5007
4908
  404: OpenAiApiError;
5008
4909
  /**
@@ -5010,26 +4911,26 @@ export type GetAliasErrors = {
5010
4911
  */
5011
4912
  500: OpenAiApiError;
5012
4913
  };
5013
- export type GetAliasError = GetAliasErrors[keyof GetAliasErrors];
5014
- export type GetAliasResponses = {
4914
+ export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
4915
+ export type GetApiModelResponses = {
5015
4916
  /**
5016
- * Model alias details
4917
+ * API model configuration retrieved successfully
5017
4918
  */
5018
- 200: UserAliasResponse;
4919
+ 200: ApiAliasResponse;
5019
4920
  };
5020
- export type GetAliasResponse = GetAliasResponses[keyof GetAliasResponses];
5021
- export type UpdateAliasData = {
5022
- body: UserAliasRequest;
4921
+ export type GetApiModelResponse = GetApiModelResponses[keyof GetApiModelResponses];
4922
+ export type UpdateApiModelData = {
4923
+ body: ApiModelRequest;
5023
4924
  path: {
5024
4925
  /**
5025
- * UUID of the alias to update
4926
+ * API model ID
5026
4927
  */
5027
4928
  id: string;
5028
4929
  };
5029
4930
  query?: never;
5030
- url: '/bodhi/v1/models/{id}';
4931
+ url: '/bodhi/v1/models/api/{id}';
5031
4932
  };
5032
- export type UpdateAliasErrors = {
4933
+ export type UpdateApiModelErrors = {
5033
4934
  /**
5034
4935
  * Invalid request parameters
5035
4936
  */
@@ -5042,31 +4943,35 @@ export type UpdateAliasErrors = {
5042
4943
  * Insufficient permissions
5043
4944
  */
5044
4945
  403: OpenAiApiError;
4946
+ /**
4947
+ * API model not found
4948
+ */
4949
+ 404: OpenAiApiError;
5045
4950
  /**
5046
4951
  * Internal server error
5047
4952
  */
5048
4953
  500: OpenAiApiError;
5049
4954
  };
5050
- export type UpdateAliasError = UpdateAliasErrors[keyof UpdateAliasErrors];
5051
- export type UpdateAliasResponses = {
4955
+ export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
4956
+ export type UpdateApiModelResponses = {
5052
4957
  /**
5053
- * Alias updated succesfully
4958
+ * API model updated
5054
4959
  */
5055
- 200: UserAliasResponse;
4960
+ 200: ApiAliasResponse;
5056
4961
  };
5057
- export type UpdateAliasResponse = UpdateAliasResponses[keyof UpdateAliasResponses];
5058
- export type CopyAliasData = {
5059
- body: CopyAliasRequest;
4962
+ export type UpdateApiModelResponse = UpdateApiModelResponses[keyof UpdateApiModelResponses];
4963
+ export type SyncModelsData = {
4964
+ body?: never;
5060
4965
  path: {
5061
4966
  /**
5062
- * UUID of the alias to copy
4967
+ * Unique identifier for the API model alias
5063
4968
  */
5064
4969
  id: string;
5065
4970
  };
5066
4971
  query?: never;
5067
- url: '/bodhi/v1/models/{id}/copy';
4972
+ url: '/bodhi/v1/models/api/{id}/sync-models';
5068
4973
  };
5069
- export type CopyAliasErrors = {
4974
+ export type SyncModelsErrors = {
5070
4975
  /**
5071
4976
  * Invalid request parameters
5072
4977
  */
@@ -5080,7 +4985,7 @@ export type CopyAliasErrors = {
5080
4985
  */
5081
4986
  403: OpenAiApiError;
5082
4987
  /**
5083
- * Source alias not found
4988
+ * API model not found
5084
4989
  */
5085
4990
  404: unknown;
5086
4991
  /**
@@ -5088,14 +4993,276 @@ export type CopyAliasErrors = {
5088
4993
  */
5089
4994
  500: OpenAiApiError;
5090
4995
  };
5091
- export type CopyAliasError = CopyAliasErrors[keyof CopyAliasErrors];
5092
- export type CopyAliasResponses = {
4996
+ export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
4997
+ export type SyncModelsResponses = {
5093
4998
  /**
5094
- * Alias copied successfully
4999
+ * Models synced to cache successfully
5095
5000
  */
5096
- 201: UserAliasResponse;
5001
+ 200: ApiAliasResponse;
5097
5002
  };
5098
- export type CopyAliasResponse = CopyAliasResponses[keyof CopyAliasResponses];
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;
5051
+ };
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];
5099
5266
  export type GetQueueStatusData = {
5100
5267
  body?: never;
5101
5268
  path?: never;