@bodhiapp/ts-client 0.1.25 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/openai.d.ts +1 -0
- package/dist/openai.js +20 -0
- package/dist/openai.mjs +2 -0
- package/dist/openapi-typescript/openapi-schema-oai.d.ts +4371 -0
- package/dist/openapi-typescript/openapi-schema-oai.ts +4372 -0
- package/dist/openapi-typescript/openapi-schema.d.ts +389 -2172
- package/dist/openapi-typescript/openapi-schema.ts +389 -2172
- package/dist/types/types.gen.d.ts +363 -1772
- package/dist/types/types.gen.ts +389 -1942
- package/dist/types-oai/index.d.ts +1 -0
- package/dist/types-oai/index.ts +2 -0
- package/dist/types-oai/types.gen.d.ts +4428 -0
- package/dist/types-oai/types.gen.ts +4810 -0
- package/package.json +23 -7
|
@@ -118,7 +118,7 @@ export type ApiAliasResponse = {
|
|
|
118
118
|
/**
|
|
119
119
|
* API format/protocol specification
|
|
120
120
|
*/
|
|
121
|
-
export type ApiFormat = 'openai' | 'placeholder';
|
|
121
|
+
export type ApiFormat = 'openai' | 'openai_responses' | 'placeholder';
|
|
122
122
|
/**
|
|
123
123
|
* Response containing available API formats
|
|
124
124
|
*/
|
|
@@ -263,468 +263,40 @@ export type AuthInitiateRequest = {
|
|
|
263
263
|
*/
|
|
264
264
|
client_id: string;
|
|
265
265
|
};
|
|
266
|
-
|
|
267
|
-
* Change user role request
|
|
268
|
-
*/
|
|
269
|
-
export type ChangeRoleRequest = {
|
|
270
|
-
/**
|
|
271
|
-
* Role to assign to the user
|
|
272
|
-
*/
|
|
273
|
-
role: ResourceRole;
|
|
274
|
-
};
|
|
275
|
-
export type ChatChoice = {
|
|
276
|
-
/**
|
|
277
|
-
* The index of the choice in the list of choices.
|
|
278
|
-
*/
|
|
279
|
-
index: number;
|
|
280
|
-
message: ChatCompletionResponseMessage;
|
|
281
|
-
finish_reason?: null | FinishReason;
|
|
282
|
-
logprobs?: null | ChatChoiceLogprobs;
|
|
283
|
-
};
|
|
284
|
-
export type ChatChoiceLogprobs = {
|
|
285
|
-
/**
|
|
286
|
-
* A list of message content tokens with log probability information.
|
|
287
|
-
*/
|
|
288
|
-
content?: Array<ChatCompletionTokenLogprob> | null;
|
|
289
|
-
refusal?: Array<ChatCompletionTokenLogprob> | null;
|
|
290
|
-
};
|
|
291
|
-
export type ChatChoiceStream = {
|
|
292
|
-
/**
|
|
293
|
-
* The index of the choice in the list of choices.
|
|
294
|
-
*/
|
|
295
|
-
index: number;
|
|
296
|
-
delta: ChatCompletionStreamResponseDelta;
|
|
297
|
-
finish_reason?: null | FinishReason;
|
|
298
|
-
logprobs?: null | ChatChoiceLogprobs;
|
|
299
|
-
};
|
|
300
|
-
export type ChatCompletionAllowedTools = {
|
|
301
|
-
/**
|
|
302
|
-
* Constrains the tools available to the model to a pre-defined set.
|
|
303
|
-
*
|
|
304
|
-
* `auto` allows the model to pick from among the allowed tools and generate a
|
|
305
|
-
* message.
|
|
306
|
-
*
|
|
307
|
-
* `required` requires the model to call one or more of the allowed tools.
|
|
308
|
-
*/
|
|
309
|
-
mode: ToolChoiceAllowedMode;
|
|
310
|
-
/**
|
|
311
|
-
* A list of tool definitions that the model should be allowed to call.
|
|
312
|
-
*
|
|
313
|
-
* For the Chat Completions API, the list of tool definitions might look like:
|
|
314
|
-
* ```json
|
|
315
|
-
* [
|
|
316
|
-
* { "type": "function", "function": { "name": "get_weather" } },
|
|
317
|
-
* { "type": "function", "function": { "name": "get_time" } }
|
|
318
|
-
* ]
|
|
319
|
-
* ```
|
|
320
|
-
*/
|
|
321
|
-
tools: Array<unknown>;
|
|
322
|
-
};
|
|
323
|
-
export type ChatCompletionAllowedToolsChoice = {
|
|
324
|
-
allowed_tools: Array<ChatCompletionAllowedTools>;
|
|
325
|
-
};
|
|
326
|
-
export type ChatCompletionAudio = {
|
|
327
|
-
/**
|
|
328
|
-
* The voice the model uses to respond. Supported built-in voices are `alloy`, `ash`,
|
|
329
|
-
* `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`, `marin`, and `cedar`.
|
|
330
|
-
*/
|
|
331
|
-
voice: ChatCompletionAudioVoice;
|
|
332
|
-
/**
|
|
333
|
-
* Specifies the output audio format. Must be one of `wav`, `aac`, `mp3`, `flac`, `opus`, or `pcm16`.
|
|
334
|
-
*/
|
|
335
|
-
format: ChatCompletionAudioFormat;
|
|
336
|
-
};
|
|
337
|
-
export type ChatCompletionAudioFormat = 'wav' | 'aac' | 'mp3' | 'flac' | 'opus' | 'pcm16';
|
|
338
|
-
export type ChatCompletionAudioVoice = 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'fable' | 'nova' | 'onyx' | 'sage' | 'shimmer' | {
|
|
339
|
-
other: string;
|
|
340
|
-
};
|
|
341
|
-
export type ChatCompletionFunctionCall = 'none' | 'auto' | {
|
|
342
|
-
/**
|
|
343
|
-
* Forces the model to call the specified function.
|
|
344
|
-
*/
|
|
345
|
-
Function: {
|
|
346
|
-
name: string;
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
export type ChatCompletionFunctions = {
|
|
350
|
-
/**
|
|
351
|
-
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
352
|
-
*/
|
|
353
|
-
name: string;
|
|
354
|
-
/**
|
|
355
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
356
|
-
*/
|
|
357
|
-
description?: string | null;
|
|
358
|
-
/**
|
|
359
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/text-generation/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
360
|
-
*
|
|
361
|
-
* Omitting `parameters` defines a function with an empty parameter list.
|
|
362
|
-
*/
|
|
363
|
-
parameters: unknown;
|
|
364
|
-
};
|
|
365
|
-
export type ChatCompletionMessageCustomToolCall = {
|
|
366
|
-
/**
|
|
367
|
-
* The ID of the tool call.
|
|
368
|
-
*/
|
|
369
|
-
id: string;
|
|
370
|
-
/**
|
|
371
|
-
* The custom tool that the model called.
|
|
372
|
-
*/
|
|
373
|
-
custom_tool: CustomTool;
|
|
374
|
-
};
|
|
375
|
-
export type ChatCompletionMessageToolCall = {
|
|
376
|
-
/**
|
|
377
|
-
* The ID of the tool call.
|
|
378
|
-
*/
|
|
379
|
-
id: string;
|
|
380
|
-
/**
|
|
381
|
-
* The function that the model called.
|
|
382
|
-
*/
|
|
383
|
-
function: FunctionCall;
|
|
384
|
-
};
|
|
385
|
-
export type ChatCompletionMessageToolCallChunk = {
|
|
386
|
-
index: number;
|
|
387
|
-
/**
|
|
388
|
-
* The ID of the tool call.
|
|
389
|
-
*/
|
|
390
|
-
id?: string | null;
|
|
391
|
-
type?: null | FunctionType;
|
|
392
|
-
function?: null | FunctionCallStream;
|
|
393
|
-
};
|
|
394
|
-
export type ChatCompletionMessageToolCalls = (ChatCompletionMessageToolCall & {
|
|
395
|
-
type: 'function';
|
|
396
|
-
}) | (ChatCompletionMessageCustomToolCall & {
|
|
397
|
-
type: 'custom';
|
|
398
|
-
});
|
|
399
|
-
/**
|
|
400
|
-
* Specifies a tool the model should use. Use to force the model to call a specific function.
|
|
401
|
-
*/
|
|
402
|
-
export type ChatCompletionNamedToolChoice = {
|
|
403
|
-
function: FunctionName;
|
|
404
|
-
};
|
|
405
|
-
export type ChatCompletionNamedToolChoiceCustom = {
|
|
406
|
-
custom: CustomName;
|
|
407
|
-
};
|
|
408
|
-
export type ChatCompletionRequestAssistantMessage = {
|
|
409
|
-
content?: null | ChatCompletionRequestAssistantMessageContent;
|
|
410
|
-
/**
|
|
411
|
-
* The refusal message by the assistant.
|
|
412
|
-
*/
|
|
413
|
-
refusal?: string | null;
|
|
414
|
-
/**
|
|
415
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
416
|
-
*/
|
|
417
|
-
name?: string | null;
|
|
418
|
-
audio?: null | ChatCompletionRequestAssistantMessageAudio;
|
|
419
|
-
tool_calls?: Array<ChatCompletionMessageToolCalls> | null;
|
|
420
|
-
function_call?: null | FunctionCall;
|
|
421
|
-
};
|
|
422
|
-
export type ChatCompletionRequestAssistantMessageAudio = {
|
|
423
|
-
/**
|
|
424
|
-
* Unique identifier for a previous audio response from the model.
|
|
425
|
-
*/
|
|
426
|
-
id: string;
|
|
427
|
-
};
|
|
428
|
-
export type ChatCompletionRequestAssistantMessageContent = string | Array<ChatCompletionRequestAssistantMessageContentPart>;
|
|
429
|
-
export type ChatCompletionRequestAssistantMessageContentPart = (ChatCompletionRequestMessageContentPartText & {
|
|
430
|
-
type: 'text';
|
|
431
|
-
}) | (ChatCompletionRequestMessageContentPartRefusal & {
|
|
432
|
-
type: 'refusal';
|
|
433
|
-
});
|
|
434
|
-
export type ChatCompletionRequestDeveloperMessage = {
|
|
435
|
-
/**
|
|
436
|
-
* The contents of the developer message.
|
|
437
|
-
*/
|
|
438
|
-
content: ChatCompletionRequestDeveloperMessageContent;
|
|
439
|
-
/**
|
|
440
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
441
|
-
*/
|
|
442
|
-
name?: string | null;
|
|
443
|
-
};
|
|
444
|
-
export type ChatCompletionRequestDeveloperMessageContent = string | Array<ChatCompletionRequestDeveloperMessageContentPart>;
|
|
445
|
-
export type ChatCompletionRequestDeveloperMessageContentPart = ChatCompletionRequestMessageContentPartText & {
|
|
446
|
-
type: 'text';
|
|
447
|
-
};
|
|
448
|
-
export type ChatCompletionRequestFunctionMessage = {
|
|
449
|
-
/**
|
|
450
|
-
* The return value from the function call, to return to the model.
|
|
451
|
-
*/
|
|
452
|
-
content?: string | null;
|
|
453
|
-
/**
|
|
454
|
-
* The name of the function to call.
|
|
455
|
-
*/
|
|
456
|
-
name: string;
|
|
457
|
-
};
|
|
458
|
-
export type ChatCompletionRequestMessage = (ChatCompletionRequestDeveloperMessage & {
|
|
459
|
-
role: 'developer';
|
|
460
|
-
}) | (ChatCompletionRequestSystemMessage & {
|
|
461
|
-
role: 'system';
|
|
462
|
-
}) | (ChatCompletionRequestUserMessage & {
|
|
463
|
-
role: 'user';
|
|
464
|
-
}) | (ChatCompletionRequestAssistantMessage & {
|
|
465
|
-
role: 'assistant';
|
|
466
|
-
}) | (ChatCompletionRequestToolMessage & {
|
|
467
|
-
role: 'tool';
|
|
468
|
-
}) | (ChatCompletionRequestFunctionMessage & {
|
|
469
|
-
role: 'function';
|
|
470
|
-
});
|
|
471
|
-
/**
|
|
472
|
-
* Learn about [audio inputs](https://platform.openai.com/docs/guides/audio).
|
|
473
|
-
*/
|
|
474
|
-
export type ChatCompletionRequestMessageContentPartAudio = {
|
|
475
|
-
input_audio: InputAudio;
|
|
476
|
-
};
|
|
477
|
-
export type ChatCompletionRequestMessageContentPartFile = {
|
|
478
|
-
file: FileObject;
|
|
479
|
-
};
|
|
480
|
-
export type ChatCompletionRequestMessageContentPartImage = {
|
|
481
|
-
image_url: ImageUrl;
|
|
482
|
-
};
|
|
483
|
-
export type ChatCompletionRequestMessageContentPartRefusal = {
|
|
484
|
-
/**
|
|
485
|
-
* The refusal message generated by the model.
|
|
486
|
-
*/
|
|
487
|
-
refusal: string;
|
|
488
|
-
};
|
|
489
|
-
export type ChatCompletionRequestMessageContentPartText = {
|
|
490
|
-
text: string;
|
|
491
|
-
};
|
|
492
|
-
export type ChatCompletionRequestSystemMessage = {
|
|
493
|
-
/**
|
|
494
|
-
* The contents of the system message.
|
|
495
|
-
*/
|
|
496
|
-
content: ChatCompletionRequestSystemMessageContent;
|
|
497
|
-
/**
|
|
498
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
499
|
-
*/
|
|
500
|
-
name?: string | null;
|
|
501
|
-
};
|
|
502
|
-
export type ChatCompletionRequestSystemMessageContent = string | Array<ChatCompletionRequestSystemMessageContentPart>;
|
|
503
|
-
export type ChatCompletionRequestSystemMessageContentPart = ChatCompletionRequestMessageContentPartText & {
|
|
504
|
-
type: 'text';
|
|
505
|
-
};
|
|
506
|
-
/**
|
|
507
|
-
* Tool message
|
|
508
|
-
*/
|
|
509
|
-
export type ChatCompletionRequestToolMessage = {
|
|
510
|
-
/**
|
|
511
|
-
* The contents of the tool message.
|
|
512
|
-
*/
|
|
513
|
-
content: ChatCompletionRequestToolMessageContent;
|
|
514
|
-
tool_call_id: string;
|
|
515
|
-
};
|
|
516
|
-
export type ChatCompletionRequestToolMessageContent = string | Array<ChatCompletionRequestToolMessageContentPart>;
|
|
517
|
-
export type ChatCompletionRequestToolMessageContentPart = ChatCompletionRequestMessageContentPartText & {
|
|
518
|
-
type: 'text';
|
|
519
|
-
};
|
|
520
|
-
export type ChatCompletionRequestUserMessage = {
|
|
521
|
-
/**
|
|
522
|
-
* The contents of the user message.
|
|
523
|
-
*/
|
|
524
|
-
content: ChatCompletionRequestUserMessageContent;
|
|
525
|
-
/**
|
|
526
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
527
|
-
*/
|
|
528
|
-
name?: string | null;
|
|
529
|
-
};
|
|
530
|
-
export type ChatCompletionRequestUserMessageContent = string | Array<ChatCompletionRequestUserMessageContentPart>;
|
|
531
|
-
export type ChatCompletionRequestUserMessageContentPart = (ChatCompletionRequestMessageContentPartText & {
|
|
532
|
-
type: 'text';
|
|
533
|
-
}) | (ChatCompletionRequestMessageContentPartImage & {
|
|
534
|
-
type: 'image_url';
|
|
535
|
-
}) | (ChatCompletionRequestMessageContentPartAudio & {
|
|
536
|
-
type: 'input_audio';
|
|
537
|
-
}) | (ChatCompletionRequestMessageContentPartFile & {
|
|
538
|
-
type: 'file';
|
|
539
|
-
});
|
|
540
|
-
/**
|
|
541
|
-
* A chat completion message generated by the model.
|
|
542
|
-
*/
|
|
543
|
-
export type ChatCompletionResponseMessage = {
|
|
544
|
-
/**
|
|
545
|
-
* The contents of the message.
|
|
546
|
-
*/
|
|
547
|
-
content?: string | null;
|
|
548
|
-
/**
|
|
549
|
-
* The refusal message generated by the model.
|
|
550
|
-
*/
|
|
551
|
-
refusal?: string | null;
|
|
552
|
-
/**
|
|
553
|
-
* The tool calls generated by the model, such as function calls.
|
|
554
|
-
*/
|
|
555
|
-
tool_calls?: Array<ChatCompletionMessageToolCalls> | null;
|
|
556
|
-
annotations?: Array<ChatCompletionResponseMessageAnnotation> | null;
|
|
557
|
-
/**
|
|
558
|
-
* The role of the author of this message.
|
|
559
|
-
*/
|
|
560
|
-
role: Role;
|
|
561
|
-
function_call?: null | FunctionCall;
|
|
562
|
-
audio?: null | ChatCompletionResponseMessageAudio;
|
|
563
|
-
/**
|
|
564
|
-
* The contents of the reasoning message.
|
|
565
|
-
*/
|
|
566
|
-
reasoning_content?: string | null;
|
|
567
|
-
};
|
|
568
|
-
export type ChatCompletionResponseMessageAnnotation = {
|
|
569
|
-
url_citation: UrlCitation;
|
|
570
|
-
type: 'url_citation';
|
|
571
|
-
};
|
|
572
|
-
export type ChatCompletionResponseMessageAudio = {
|
|
573
|
-
/**
|
|
574
|
-
* Unique identifier for this audio response.
|
|
575
|
-
*/
|
|
576
|
-
id: string;
|
|
266
|
+
export type BodhiApiError = {
|
|
577
267
|
/**
|
|
578
|
-
*
|
|
579
|
-
*/
|
|
580
|
-
expires_at: number;
|
|
581
|
-
/**
|
|
582
|
-
* Base64 encoded audio bytes generated by the model, in the format specified in the request.
|
|
583
|
-
*/
|
|
584
|
-
data: string;
|
|
585
|
-
/**
|
|
586
|
-
* Transcript of the audio generated by the model.
|
|
587
|
-
*/
|
|
588
|
-
transcript: string;
|
|
589
|
-
};
|
|
590
|
-
/**
|
|
591
|
-
* Options for streaming response. Only set this when you set `stream: true`.
|
|
592
|
-
*/
|
|
593
|
-
export type ChatCompletionStreamOptions = {
|
|
594
|
-
/**
|
|
595
|
-
* If set, an additional chunk will be streamed before the `data: [DONE]`
|
|
596
|
-
* message. The `usage` field on this chunk shows the token usage statistics
|
|
597
|
-
* for the entire request, and the `choices` field will always be an empty
|
|
598
|
-
* array.
|
|
599
|
-
*
|
|
600
|
-
* All other chunks will also include a `usage` field, but with a null
|
|
601
|
-
* value. **NOTE:** If the stream is interrupted, you may not receive the
|
|
602
|
-
* final usage chunk which contains the total token usage for the request.
|
|
603
|
-
*/
|
|
604
|
-
include_usage?: boolean | null;
|
|
605
|
-
/**
|
|
606
|
-
* When true, stream obfuscation will be enabled. Stream obfuscation adds
|
|
607
|
-
* random characters to an `obfuscation` field on streaming delta events to
|
|
608
|
-
* normalize payload sizes as a mitigation to certain side-channel attacks.
|
|
609
|
-
* These obfuscation fields are included by default, but add a small amount
|
|
610
|
-
* of overhead to the data stream. You can set `include_obfuscation` to
|
|
611
|
-
* false to optimize for bandwidth if you trust the network links between
|
|
612
|
-
* your application and the OpenAI API.
|
|
613
|
-
*/
|
|
614
|
-
include_obfuscation?: boolean | null;
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* A chat completion delta generated by streamed model responses.
|
|
618
|
-
*/
|
|
619
|
-
export type ChatCompletionStreamResponseDelta = {
|
|
620
|
-
/**
|
|
621
|
-
* The contents of the chunk message.
|
|
622
|
-
*/
|
|
623
|
-
content?: string | null;
|
|
624
|
-
function_call?: null | FunctionCallStream;
|
|
625
|
-
tool_calls?: Array<ChatCompletionMessageToolCallChunk> | null;
|
|
626
|
-
role?: null | Role;
|
|
627
|
-
/**
|
|
628
|
-
* The refusal message generated by the model.
|
|
629
|
-
*/
|
|
630
|
-
refusal?: string | null;
|
|
631
|
-
/**
|
|
632
|
-
* The contents of the chunk reasoning message.
|
|
268
|
+
* Error details following OpenAI API error format
|
|
633
269
|
*/
|
|
634
|
-
|
|
270
|
+
error: BodhiErrorBody;
|
|
635
271
|
};
|
|
636
|
-
export type
|
|
272
|
+
export type BodhiErrorBody = {
|
|
637
273
|
/**
|
|
638
|
-
*
|
|
639
|
-
*/
|
|
640
|
-
token: string;
|
|
641
|
-
/**
|
|
642
|
-
* The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.
|
|
643
|
-
*/
|
|
644
|
-
logprob: number;
|
|
645
|
-
/**
|
|
646
|
-
* A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.
|
|
647
|
-
*/
|
|
648
|
-
bytes?: Array<number> | null;
|
|
649
|
-
/**
|
|
650
|
-
* List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.
|
|
274
|
+
* Human-readable error message describing what went wrong
|
|
651
275
|
*/
|
|
652
|
-
|
|
653
|
-
};
|
|
654
|
-
export type ChatCompletionTool = {
|
|
655
|
-
function: FunctionObject;
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* Controls which (if any) tool is called by the model.
|
|
659
|
-
* `none` means the model will not call any tool and instead generates a message.
|
|
660
|
-
* `auto` means the model can pick between generating a message or calling one or more tools.
|
|
661
|
-
* `required` means the model must call one or more tools.
|
|
662
|
-
* Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
|
|
663
|
-
*
|
|
664
|
-
* `none` is the default when no tools are present. `auto` is the default if tools are present.
|
|
665
|
-
*/
|
|
666
|
-
export type ChatCompletionToolChoiceOption = (ChatCompletionAllowedToolsChoice & {
|
|
667
|
-
type: 'allowed_tools';
|
|
668
|
-
}) | (ChatCompletionNamedToolChoice & {
|
|
669
|
-
type: 'function';
|
|
670
|
-
}) | (ChatCompletionNamedToolChoiceCustom & {
|
|
671
|
-
type: 'custom';
|
|
672
|
-
}) | (ToolChoiceOptions & {
|
|
673
|
-
type: 'mode';
|
|
674
|
-
});
|
|
675
|
-
export type ChatCompletionTools = (ChatCompletionTool & {
|
|
676
|
-
type: 'function';
|
|
677
|
-
}) | (CustomToolChatCompletions & {
|
|
678
|
-
type: 'custom';
|
|
679
|
-
});
|
|
680
|
-
export type ChatRequest = {
|
|
681
|
-
model: string;
|
|
682
|
-
messages: Array<Message>;
|
|
683
|
-
stream?: boolean | null;
|
|
684
|
-
format?: string | null;
|
|
685
|
-
keep_alive?: null | Duration;
|
|
686
|
-
options?: null | Options;
|
|
687
|
-
};
|
|
688
|
-
/**
|
|
689
|
-
* Breakdown of tokens used in a completion.
|
|
690
|
-
*/
|
|
691
|
-
export type CompletionTokensDetails = {
|
|
692
|
-
accepted_prediction_tokens?: number | null;
|
|
276
|
+
message: string;
|
|
693
277
|
/**
|
|
694
|
-
*
|
|
278
|
+
* Error type categorizing the kind of error that occurred
|
|
695
279
|
*/
|
|
696
|
-
|
|
280
|
+
type: string;
|
|
697
281
|
/**
|
|
698
|
-
*
|
|
282
|
+
* Specific error code for programmatic error handling
|
|
699
283
|
*/
|
|
700
|
-
|
|
284
|
+
code?: string | null;
|
|
701
285
|
/**
|
|
702
|
-
*
|
|
703
|
-
* prediction that did not appear in the completion. However, like
|
|
704
|
-
* reasoning tokens, these tokens are still counted in the total
|
|
705
|
-
* completion tokens for purposes of billing, output, and context
|
|
706
|
-
* window limits.
|
|
286
|
+
* Additional error parameters as key-value pairs (for validation errors)
|
|
707
287
|
*/
|
|
708
|
-
|
|
288
|
+
param?: {
|
|
289
|
+
[key: string]: string;
|
|
290
|
+
} | null;
|
|
709
291
|
};
|
|
710
292
|
/**
|
|
711
|
-
*
|
|
293
|
+
* Change user role request
|
|
712
294
|
*/
|
|
713
|
-
export type
|
|
714
|
-
/**
|
|
715
|
-
* Number of tokens in the prompt.
|
|
716
|
-
*/
|
|
717
|
-
prompt_tokens: number;
|
|
718
|
-
/**
|
|
719
|
-
* Number of tokens in the generated completion.
|
|
720
|
-
*/
|
|
721
|
-
completion_tokens: number;
|
|
295
|
+
export type ChangeRoleRequest = {
|
|
722
296
|
/**
|
|
723
|
-
*
|
|
297
|
+
* Role to assign to the user
|
|
724
298
|
*/
|
|
725
|
-
|
|
726
|
-
prompt_tokens_details?: null | PromptTokensDetails;
|
|
727
|
-
completion_tokens_details?: null | CompletionTokensDetails;
|
|
299
|
+
role: ResourceRole;
|
|
728
300
|
};
|
|
729
301
|
export type ContextLimits = {
|
|
730
302
|
max_input_tokens?: number | null;
|
|
@@ -778,298 +350,6 @@ export type CreateAccessRequestResponse = {
|
|
|
778
350
|
export type CreateAuthConfig = CreateMcpAuthConfigRequest & {
|
|
779
351
|
mcp_server_id: string;
|
|
780
352
|
};
|
|
781
|
-
export type CreateChatCompletionRequest = {
|
|
782
|
-
/**
|
|
783
|
-
* A list of messages comprising the conversation so far. Depending on the
|
|
784
|
-
* [model](https://platform.openai.com/docs/models) you use, different message types (modalities)
|
|
785
|
-
* are supported, like [text](https://platform.openai.com/docs/guides/text-generation),
|
|
786
|
-
* [images](https://platform.openai.com/docs/guides/vision), and
|
|
787
|
-
* [audio](https://platform.openai.com/docs/guides/audio).
|
|
788
|
-
*/
|
|
789
|
-
messages: Array<ChatCompletionRequestMessage>;
|
|
790
|
-
/**
|
|
791
|
-
* Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI
|
|
792
|
-
* offers a wide range of models with different capabilities, performance
|
|
793
|
-
* characteristics, and price points. Refer to the
|
|
794
|
-
* [model guide](https://platform.openai.com/docs/models)
|
|
795
|
-
* to browse and compare available models.
|
|
796
|
-
*/
|
|
797
|
-
model: string;
|
|
798
|
-
/**
|
|
799
|
-
* Output types that you would like the model to generate. Most models are capable of generating
|
|
800
|
-
* text, which is the default:
|
|
801
|
-
*
|
|
802
|
-
* `["text"]`
|
|
803
|
-
* The `gpt-4o-audio-preview` model can also be used to
|
|
804
|
-
* [generate audio](https://platform.openai.com/docs/guides/audio). To request that this model
|
|
805
|
-
* generate both text and audio responses, you can use:
|
|
806
|
-
*
|
|
807
|
-
* `["text", "audio"]`
|
|
808
|
-
*/
|
|
809
|
-
modalities?: Array<ResponseModalities> | null;
|
|
810
|
-
verbosity?: null | Verbosity;
|
|
811
|
-
reasoning_effort?: null | ReasoningEffort;
|
|
812
|
-
/**
|
|
813
|
-
* An upper bound for the number of tokens that can be generated for a completion, including
|
|
814
|
-
* visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
|
|
815
|
-
*/
|
|
816
|
-
max_completion_tokens?: number | null;
|
|
817
|
-
/**
|
|
818
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
819
|
-
* their existing frequency in the text so far, decreasing the model's
|
|
820
|
-
* likelihood to repeat the same line verbatim.
|
|
821
|
-
*/
|
|
822
|
-
frequency_penalty?: number | null;
|
|
823
|
-
/**
|
|
824
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
825
|
-
* whether they appear in the text so far, increasing the model's likelihood
|
|
826
|
-
* to talk about new topics.
|
|
827
|
-
*/
|
|
828
|
-
presence_penalty?: number | null;
|
|
829
|
-
web_search_options?: null | WebSearchOptions;
|
|
830
|
-
/**
|
|
831
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to
|
|
832
|
-
* return at each token position, each with an associated log probability.
|
|
833
|
-
* `logprobs` must be set to `true` if this parameter is used.
|
|
834
|
-
*/
|
|
835
|
-
top_logprobs?: number | null;
|
|
836
|
-
response_format?: null | ResponseFormat;
|
|
837
|
-
audio?: null | ChatCompletionAudio;
|
|
838
|
-
/**
|
|
839
|
-
* Whether or not to store the output of this chat completion request for
|
|
840
|
-
* use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or
|
|
841
|
-
* [evals](https://platform.openai.com/docs/guides/evals) products.
|
|
842
|
-
*
|
|
843
|
-
* Supports text and image inputs. Note: image inputs over 8MB will be dropped.
|
|
844
|
-
*/
|
|
845
|
-
store?: boolean | null;
|
|
846
|
-
/**
|
|
847
|
-
* If set to true, the model response data will be streamed to the client
|
|
848
|
-
* as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
|
|
849
|
-
* See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)
|
|
850
|
-
* for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)
|
|
851
|
-
* guide for more information on how to handle the streaming events.
|
|
852
|
-
*/
|
|
853
|
-
stream?: boolean | null;
|
|
854
|
-
stop?: null | StopConfiguration;
|
|
855
|
-
/**
|
|
856
|
-
* Modify the likelihood of specified tokens appearing in the completion.
|
|
857
|
-
*
|
|
858
|
-
* Accepts a json object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100.
|
|
859
|
-
* Mathematically, the bias is added to the logits generated by the model prior to sampling.
|
|
860
|
-
* The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection;
|
|
861
|
-
* values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
|
|
862
|
-
*/
|
|
863
|
-
logit_bias?: {
|
|
864
|
-
[key: string]: number;
|
|
865
|
-
} | null;
|
|
866
|
-
/**
|
|
867
|
-
* Whether to return log probabilities of the output tokens or not. If true,
|
|
868
|
-
* returns the log probabilities of each output token returned in the `content` of `message`.
|
|
869
|
-
*/
|
|
870
|
-
logprobs?: boolean | null;
|
|
871
|
-
/**
|
|
872
|
-
* The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in
|
|
873
|
-
* the chat completion. This value can be used to control [costs](https://openai.com/api/pricing/) for text generated via API.
|
|
874
|
-
* This value is now deprecated in favor of `max_completion_tokens`, and is
|
|
875
|
-
* not compatible with [o-series models](https://platform.openai.com/docs/guides/reasoning).
|
|
876
|
-
* @deprecated
|
|
877
|
-
*/
|
|
878
|
-
max_tokens?: number | null;
|
|
879
|
-
/**
|
|
880
|
-
* How many chat completion choices to generate for each input message. Note that you will be
|
|
881
|
-
* charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to
|
|
882
|
-
* minimize costs.
|
|
883
|
-
*/
|
|
884
|
-
n?: number | null;
|
|
885
|
-
prediction?: null | PredictionContent;
|
|
886
|
-
/**
|
|
887
|
-
* This feature is in Beta.
|
|
888
|
-
*
|
|
889
|
-
* If specified, our system will make a best effort to sample deterministically, such that
|
|
890
|
-
* repeated requests with the same `seed` and parameters should return the same result.
|
|
891
|
-
*
|
|
892
|
-
* Determinism is not guaranteed, and you should refer to the `system_fingerprint` response
|
|
893
|
-
* parameter to monitor changes in the backend.
|
|
894
|
-
* @deprecated
|
|
895
|
-
*/
|
|
896
|
-
seed?: number | null;
|
|
897
|
-
stream_options?: null | ChatCompletionStreamOptions;
|
|
898
|
-
service_tier?: null | ServiceTier;
|
|
899
|
-
/**
|
|
900
|
-
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,
|
|
901
|
-
* while lower values like 0.2 will make it more focused and deterministic.
|
|
902
|
-
*
|
|
903
|
-
* We generally recommend altering this or `top_p` but not both.
|
|
904
|
-
*/
|
|
905
|
-
temperature?: number | null;
|
|
906
|
-
/**
|
|
907
|
-
* An alternative to sampling with temperature, called nucleus sampling,
|
|
908
|
-
* where the model considers the results of the tokens with top_p probability mass.
|
|
909
|
-
* So 0.1 means only the tokens comprising the top 10% probability mass are considered.
|
|
910
|
-
*
|
|
911
|
-
* We generally recommend altering this or `temperature` but not both.
|
|
912
|
-
*/
|
|
913
|
-
top_p?: number | null;
|
|
914
|
-
/**
|
|
915
|
-
* A list of tools the model may call. You can provide either
|
|
916
|
-
* [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) or
|
|
917
|
-
* [function tools](https://platform.openai.com/docs/guides/function-calling).
|
|
918
|
-
*/
|
|
919
|
-
tools?: Array<ChatCompletionTools> | null;
|
|
920
|
-
tool_choice?: null | ChatCompletionToolChoiceOption;
|
|
921
|
-
/**
|
|
922
|
-
* Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling)
|
|
923
|
-
* during tool use.
|
|
924
|
-
*/
|
|
925
|
-
parallel_tool_calls?: boolean | null;
|
|
926
|
-
/**
|
|
927
|
-
* This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key`
|
|
928
|
-
* instead to maintain caching optimizations.
|
|
929
|
-
* A stable identifier for your end-users.
|
|
930
|
-
* Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and
|
|
931
|
-
* prevent abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
932
|
-
* @deprecated
|
|
933
|
-
*/
|
|
934
|
-
user?: string | null;
|
|
935
|
-
/**
|
|
936
|
-
* A stable identifier used to help detect users of your application that may be violating OpenAI's
|
|
937
|
-
* usage policies.
|
|
938
|
-
*
|
|
939
|
-
* The IDs should be a string that uniquely identifies each user. We recommend hashing their username
|
|
940
|
-
* or email address, in order to avoid sending us any identifying information. [Learn
|
|
941
|
-
* more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
942
|
-
*/
|
|
943
|
-
safety_identifier?: string | null;
|
|
944
|
-
/**
|
|
945
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces
|
|
946
|
-
* the `user` field. [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
|
|
947
|
-
*/
|
|
948
|
-
prompt_cache_key?: string | null;
|
|
949
|
-
function_call?: null | ChatCompletionFunctionCall;
|
|
950
|
-
/**
|
|
951
|
-
* Deprecated in favor of `tools`.
|
|
952
|
-
*
|
|
953
|
-
* A list of functions the model may generate JSON inputs for.
|
|
954
|
-
* @deprecated
|
|
955
|
-
*/
|
|
956
|
-
functions?: Array<ChatCompletionFunctions> | null;
|
|
957
|
-
metadata?: null | Metadata;
|
|
958
|
-
/**
|
|
959
|
-
* llama.cpp compatible extra params in request
|
|
960
|
-
*/
|
|
961
|
-
chat_template_kwargs?: {} | null;
|
|
962
|
-
};
|
|
963
|
-
/**
|
|
964
|
-
* Represents a chat completion response returned by model, based on the provided input.
|
|
965
|
-
*/
|
|
966
|
-
export type CreateChatCompletionResponse = {
|
|
967
|
-
/**
|
|
968
|
-
* A unique identifier for the chat completion.
|
|
969
|
-
*/
|
|
970
|
-
id: string;
|
|
971
|
-
/**
|
|
972
|
-
* A list of chat completion choices. Can be more than one if `n` is greater than 1.
|
|
973
|
-
*/
|
|
974
|
-
choices: Array<ChatChoice>;
|
|
975
|
-
/**
|
|
976
|
-
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
977
|
-
*/
|
|
978
|
-
created: number;
|
|
979
|
-
/**
|
|
980
|
-
* The model used for the chat completion.
|
|
981
|
-
*/
|
|
982
|
-
model: string;
|
|
983
|
-
service_tier?: null | ServiceTier;
|
|
984
|
-
/**
|
|
985
|
-
* This fingerprint represents the backend configuration that the model runs with.
|
|
986
|
-
*
|
|
987
|
-
* Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
|
|
988
|
-
* @deprecated
|
|
989
|
-
*/
|
|
990
|
-
system_fingerprint?: string | null;
|
|
991
|
-
/**
|
|
992
|
-
* The object type, which is always `chat.completion`.
|
|
993
|
-
*/
|
|
994
|
-
object: string;
|
|
995
|
-
usage?: null | CompletionUsage;
|
|
996
|
-
};
|
|
997
|
-
/**
|
|
998
|
-
* Represents a streamed chunk of a chat completion response returned by the model, based on the provided input. [Learn more](https://platform.openai.com/docs/guides/streaming-responses).
|
|
999
|
-
*/
|
|
1000
|
-
export type CreateChatCompletionStreamResponse = {
|
|
1001
|
-
/**
|
|
1002
|
-
* A unique identifier for the chat completion. Each chunk has the same ID.
|
|
1003
|
-
*/
|
|
1004
|
-
id: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* A list of chat completion choices. Can contain more than one elements if `n` is greater than 1. Can also be empty for the last chunk if you set `stream_options: {"include_usage": true}`.
|
|
1007
|
-
*/
|
|
1008
|
-
choices: Array<ChatChoiceStream>;
|
|
1009
|
-
/**
|
|
1010
|
-
* The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
|
|
1011
|
-
*/
|
|
1012
|
-
created: number;
|
|
1013
|
-
/**
|
|
1014
|
-
* The model to generate the completion.
|
|
1015
|
-
*/
|
|
1016
|
-
model: string;
|
|
1017
|
-
service_tier?: null | ServiceTier;
|
|
1018
|
-
/**
|
|
1019
|
-
* This fingerprint represents the backend configuration that the model runs with.
|
|
1020
|
-
* Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
|
|
1021
|
-
* @deprecated
|
|
1022
|
-
*/
|
|
1023
|
-
system_fingerprint?: string | null;
|
|
1024
|
-
/**
|
|
1025
|
-
* The object type, which is always `chat.completion.chunk`.
|
|
1026
|
-
*/
|
|
1027
|
-
object: string;
|
|
1028
|
-
usage?: null | CompletionUsage;
|
|
1029
|
-
};
|
|
1030
|
-
export type CreateEmbeddingRequest = {
|
|
1031
|
-
/**
|
|
1032
|
-
* ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list)
|
|
1033
|
-
* API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models)
|
|
1034
|
-
* for descriptions of them.
|
|
1035
|
-
*/
|
|
1036
|
-
model: string;
|
|
1037
|
-
/**
|
|
1038
|
-
* Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single
|
|
1039
|
-
* request, pass an array of strings or array of token arrays. The input must not exceed the max
|
|
1040
|
-
* input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and
|
|
1041
|
-
* any array must be 2048 dimensions or less. [Example Python
|
|
1042
|
-
* code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.
|
|
1043
|
-
* In addition to the per-input token limit, all embedding models enforce a maximum of 300,000
|
|
1044
|
-
* tokens summed across all inputs in a single request.
|
|
1045
|
-
*/
|
|
1046
|
-
input: EmbeddingInput;
|
|
1047
|
-
encoding_format?: null | EncodingFormat;
|
|
1048
|
-
/**
|
|
1049
|
-
* A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
|
|
1050
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
|
|
1051
|
-
*/
|
|
1052
|
-
user?: string | null;
|
|
1053
|
-
/**
|
|
1054
|
-
* The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.
|
|
1055
|
-
*/
|
|
1056
|
-
dimensions?: number | null;
|
|
1057
|
-
};
|
|
1058
|
-
export type CreateEmbeddingResponse = {
|
|
1059
|
-
object: string;
|
|
1060
|
-
/**
|
|
1061
|
-
* The name of the model used to generate the embedding.
|
|
1062
|
-
*/
|
|
1063
|
-
model: string;
|
|
1064
|
-
/**
|
|
1065
|
-
* The list of embeddings generated by the model.
|
|
1066
|
-
*/
|
|
1067
|
-
data: Array<Embedding>;
|
|
1068
|
-
/**
|
|
1069
|
-
* The usage information for the request.
|
|
1070
|
-
*/
|
|
1071
|
-
usage: EmbeddingUsage;
|
|
1072
|
-
};
|
|
1073
353
|
/**
|
|
1074
354
|
* Discriminated union for creating any type of MCP auth config.
|
|
1075
355
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`.
|
|
@@ -1112,55 +392,6 @@ export type CreateTokenRequest = {
|
|
|
1112
392
|
*/
|
|
1113
393
|
scope: TokenScope;
|
|
1114
394
|
};
|
|
1115
|
-
export type CustomGrammarFormatParam = {
|
|
1116
|
-
/**
|
|
1117
|
-
* The grammar definition.
|
|
1118
|
-
*/
|
|
1119
|
-
definition: string;
|
|
1120
|
-
/**
|
|
1121
|
-
* The syntax of the grammar definition. One of `lark` or `regex`.
|
|
1122
|
-
*/
|
|
1123
|
-
syntax: GrammarSyntax;
|
|
1124
|
-
};
|
|
1125
|
-
export type CustomName = {
|
|
1126
|
-
/**
|
|
1127
|
-
* The name of the custom tool to call.
|
|
1128
|
-
*/
|
|
1129
|
-
name: string;
|
|
1130
|
-
};
|
|
1131
|
-
export type CustomTool = {
|
|
1132
|
-
/**
|
|
1133
|
-
* The name of the custom tool to call.
|
|
1134
|
-
*/
|
|
1135
|
-
name: string;
|
|
1136
|
-
/**
|
|
1137
|
-
* The input for the custom tool call generated by the model.
|
|
1138
|
-
*/
|
|
1139
|
-
input: string;
|
|
1140
|
-
};
|
|
1141
|
-
export type CustomToolChatCompletions = {
|
|
1142
|
-
custom: CustomToolProperties;
|
|
1143
|
-
};
|
|
1144
|
-
export type CustomToolProperties = {
|
|
1145
|
-
/**
|
|
1146
|
-
* The name of the custom tool, used to identify it in tool calls.
|
|
1147
|
-
*/
|
|
1148
|
-
name: string;
|
|
1149
|
-
/**
|
|
1150
|
-
* Optional description of the custom tool, used to provide more context.
|
|
1151
|
-
*/
|
|
1152
|
-
description?: string | null;
|
|
1153
|
-
/**
|
|
1154
|
-
* The input format for the custom tool. Default is unconstrained text.
|
|
1155
|
-
*/
|
|
1156
|
-
format: CustomToolPropertiesFormat;
|
|
1157
|
-
};
|
|
1158
|
-
export type CustomToolPropertiesFormat = {
|
|
1159
|
-
type: 'text';
|
|
1160
|
-
} | {
|
|
1161
|
-
grammar: CustomGrammarFormatParam;
|
|
1162
|
-
type: 'grammar';
|
|
1163
|
-
};
|
|
1164
395
|
/**
|
|
1165
396
|
* Dashboard user information from a validated dashboard session token
|
|
1166
397
|
*/
|
|
@@ -1184,7 +415,6 @@ export type DownloadRequest = {
|
|
|
1184
415
|
updated_at: string;
|
|
1185
416
|
};
|
|
1186
417
|
export type DownloadStatus = 'pending' | 'completed' | 'error';
|
|
1187
|
-
export type Duration = string;
|
|
1188
418
|
export type DynamicRegisterRequest = {
|
|
1189
419
|
registration_endpoint: string;
|
|
1190
420
|
redirect_uri: string;
|
|
@@ -1197,56 +427,6 @@ export type DynamicRegisterResponse = {
|
|
|
1197
427
|
token_endpoint_auth_method?: string | null;
|
|
1198
428
|
registration_access_token?: string | null;
|
|
1199
429
|
};
|
|
1200
|
-
/**
|
|
1201
|
-
* Represents an embedding vector returned by embedding endpoint.
|
|
1202
|
-
*/
|
|
1203
|
-
export type Embedding = {
|
|
1204
|
-
/**
|
|
1205
|
-
* The index of the embedding in the list of embeddings.
|
|
1206
|
-
*/
|
|
1207
|
-
index: number;
|
|
1208
|
-
/**
|
|
1209
|
-
* The object type, which is always "embedding".
|
|
1210
|
-
*/
|
|
1211
|
-
object: string;
|
|
1212
|
-
/**
|
|
1213
|
-
* The embedding vector, which is a list of floats. The length of vector
|
|
1214
|
-
* depends on the model as listed in the [embedding guide](https://platform.openai.com/docs/guides/embeddings).
|
|
1215
|
-
*/
|
|
1216
|
-
embedding: Array<number>;
|
|
1217
|
-
};
|
|
1218
|
-
export type EmbeddingInput = string | Array<string> | Array<number> | Array<Array<number>>;
|
|
1219
|
-
export type EmbeddingUsage = {
|
|
1220
|
-
/**
|
|
1221
|
-
* The number of tokens used by the prompt.
|
|
1222
|
-
*/
|
|
1223
|
-
prompt_tokens: number;
|
|
1224
|
-
/**
|
|
1225
|
-
* The total number of tokens used by the request.
|
|
1226
|
-
*/
|
|
1227
|
-
total_tokens: number;
|
|
1228
|
-
};
|
|
1229
|
-
export type EncodingFormat = 'float' | 'base64';
|
|
1230
|
-
export type ErrorBody = {
|
|
1231
|
-
/**
|
|
1232
|
-
* Human-readable error message describing what went wrong
|
|
1233
|
-
*/
|
|
1234
|
-
message: string;
|
|
1235
|
-
/**
|
|
1236
|
-
* Error type categorizing the kind of error that occurred
|
|
1237
|
-
*/
|
|
1238
|
-
type: string;
|
|
1239
|
-
/**
|
|
1240
|
-
* Specific error code for programmatic error handling
|
|
1241
|
-
*/
|
|
1242
|
-
code?: string | null;
|
|
1243
|
-
/**
|
|
1244
|
-
* Additional error parameters as key-value pairs (for validation errors)
|
|
1245
|
-
*/
|
|
1246
|
-
param?: {
|
|
1247
|
-
[key: string]: string;
|
|
1248
|
-
} | null;
|
|
1249
|
-
};
|
|
1250
430
|
/**
|
|
1251
431
|
* Request to fetch available models from provider
|
|
1252
432
|
*/
|
|
@@ -1266,97 +446,7 @@ export type FetchModelsRequest = {
|
|
|
1266
446
|
export type FetchModelsResponse = {
|
|
1267
447
|
models: Array<string>;
|
|
1268
448
|
};
|
|
1269
|
-
export type FileObject = {
|
|
1270
|
-
/**
|
|
1271
|
-
* The base64 encoded file data, used when passing the file to the model
|
|
1272
|
-
* as a string.
|
|
1273
|
-
*/
|
|
1274
|
-
file_data?: string | null;
|
|
1275
|
-
/**
|
|
1276
|
-
* The ID of an uploaded file to use as input.
|
|
1277
|
-
*/
|
|
1278
|
-
file_id?: string | null;
|
|
1279
|
-
/**
|
|
1280
|
-
* The name of the file, used when passing the file to the model as a
|
|
1281
|
-
* string.
|
|
1282
|
-
*/
|
|
1283
|
-
filename?: string | null;
|
|
1284
|
-
};
|
|
1285
|
-
export type FinishReason = 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call';
|
|
1286
449
|
export type FlowType = 'redirect' | 'popup';
|
|
1287
|
-
/**
|
|
1288
|
-
* The name and arguments of a function that should be called, as generated by the model.
|
|
1289
|
-
*/
|
|
1290
|
-
export type FunctionCall = {
|
|
1291
|
-
/**
|
|
1292
|
-
* The name of the function to call.
|
|
1293
|
-
*/
|
|
1294
|
-
name: string;
|
|
1295
|
-
/**
|
|
1296
|
-
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
1297
|
-
*/
|
|
1298
|
-
arguments: string;
|
|
1299
|
-
};
|
|
1300
|
-
export type FunctionCallStream = {
|
|
1301
|
-
/**
|
|
1302
|
-
* The name of the function to call.
|
|
1303
|
-
*/
|
|
1304
|
-
name?: string | null;
|
|
1305
|
-
/**
|
|
1306
|
-
* The arguments to call the function with, as generated by the model in JSON format.
|
|
1307
|
-
* Note that the model does not always generate valid JSON, and may hallucinate
|
|
1308
|
-
* parameters not defined by your function schema. Validate the arguments in your
|
|
1309
|
-
* code before calling your function.
|
|
1310
|
-
*/
|
|
1311
|
-
arguments?: string | null;
|
|
1312
|
-
};
|
|
1313
|
-
export type FunctionName = {
|
|
1314
|
-
/**
|
|
1315
|
-
* The name of the function to call.
|
|
1316
|
-
*/
|
|
1317
|
-
name: string;
|
|
1318
|
-
};
|
|
1319
|
-
export type FunctionObject = {
|
|
1320
|
-
/**
|
|
1321
|
-
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
1322
|
-
*/
|
|
1323
|
-
name: string;
|
|
1324
|
-
/**
|
|
1325
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
1326
|
-
*/
|
|
1327
|
-
description?: string | null;
|
|
1328
|
-
/**
|
|
1329
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/text-generation/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1330
|
-
*
|
|
1331
|
-
* Omitting `parameters` defines a function with an empty parameter list.
|
|
1332
|
-
*/
|
|
1333
|
-
parameters?: unknown;
|
|
1334
|
-
/**
|
|
1335
|
-
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](https://platform.openai.com/docs/guides/function-calling).
|
|
1336
|
-
*/
|
|
1337
|
-
strict?: boolean | null;
|
|
1338
|
-
};
|
|
1339
|
-
export type FunctionType = 'function';
|
|
1340
|
-
export type GrammarSyntax = 'lark' | 'regex';
|
|
1341
|
-
export type ImageDetail = 'auto' | 'low' | 'high';
|
|
1342
|
-
export type ImageUrl = {
|
|
1343
|
-
/**
|
|
1344
|
-
* Either a URL of the image or the base64 encoded image data.
|
|
1345
|
-
*/
|
|
1346
|
-
url: string;
|
|
1347
|
-
detail?: null | ImageDetail;
|
|
1348
|
-
};
|
|
1349
|
-
export type InputAudio = {
|
|
1350
|
-
/**
|
|
1351
|
-
* Base64 encoded audio data.
|
|
1352
|
-
*/
|
|
1353
|
-
data: string;
|
|
1354
|
-
/**
|
|
1355
|
-
* The format of the encoded audio data. Currently supports "wav" and "mp3".
|
|
1356
|
-
*/
|
|
1357
|
-
format: InputAudioFormat;
|
|
1358
|
-
};
|
|
1359
|
-
export type InputAudioFormat = 'wav' | 'mp3';
|
|
1360
450
|
export type JsonVec = Array<string>;
|
|
1361
451
|
export type ListMcpServersResponse = {
|
|
1362
452
|
mcp_servers: Array<McpServerResponse>;
|
|
@@ -1364,10 +454,6 @@ export type ListMcpServersResponse = {
|
|
|
1364
454
|
export type ListMcpsResponse = {
|
|
1365
455
|
mcps: Array<Mcp>;
|
|
1366
456
|
};
|
|
1367
|
-
export type ListModelResponse = {
|
|
1368
|
-
object: string;
|
|
1369
|
-
data: Array<Model>;
|
|
1370
|
-
};
|
|
1371
457
|
/**
|
|
1372
458
|
* List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
|
|
1373
459
|
* because user listing is fetched from the auth service which handles its own ordering.
|
|
@@ -1416,9 +502,9 @@ export type Mcp = {
|
|
|
1416
502
|
*/
|
|
1417
503
|
enabled: boolean;
|
|
1418
504
|
/**
|
|
1419
|
-
* MCP proxy
|
|
505
|
+
* MCP proxy path for this instance
|
|
1420
506
|
*/
|
|
1421
|
-
|
|
507
|
+
path: string;
|
|
1422
508
|
auth_type: McpAuthType;
|
|
1423
509
|
/**
|
|
1424
510
|
* Reference to the auth config (mcp_auth_configs.id)
|
|
@@ -1501,6 +587,10 @@ export type McpAuthParamType = 'header' | 'query';
|
|
|
1501
587
|
export type McpAuthType = 'public' | 'header' | 'oauth';
|
|
1502
588
|
export type McpInstance = {
|
|
1503
589
|
id: string;
|
|
590
|
+
/**
|
|
591
|
+
* MCP proxy path for this instance (e.g. `/bodhi/v1/apps/mcps/{id}/mcp`)
|
|
592
|
+
*/
|
|
593
|
+
path: string;
|
|
1504
594
|
};
|
|
1505
595
|
/**
|
|
1506
596
|
* Input for creating or updating an MCP instance.
|
|
@@ -1616,58 +706,23 @@ export type McpServerRequest = {
|
|
|
1616
706
|
enabled: boolean;
|
|
1617
707
|
auth_config?: null | CreateMcpAuthConfigRequest;
|
|
1618
708
|
};
|
|
1619
|
-
/**
|
|
1620
|
-
* MCP server response with computed mcp counts and optional auth config.
|
|
1621
|
-
*/
|
|
1622
|
-
export type McpServerResponse = McpServer & {
|
|
1623
|
-
enabled_mcp_count: number;
|
|
1624
|
-
disabled_mcp_count: number;
|
|
1625
|
-
auth_config?: null | McpAuthConfigResponse;
|
|
1626
|
-
};
|
|
1627
|
-
export type McpServerReviewInfo = {
|
|
1628
|
-
/**
|
|
1629
|
-
* Requested MCP server URL
|
|
1630
|
-
*/
|
|
1631
|
-
url: string;
|
|
1632
|
-
/**
|
|
1633
|
-
* User's MCP instances connected to this server URL
|
|
1634
|
-
*/
|
|
1635
|
-
instances: Array<Mcp>;
|
|
1636
|
-
};
|
|
1637
|
-
export type Message = {
|
|
1638
|
-
role: string;
|
|
1639
|
-
content: string;
|
|
1640
|
-
images?: Array<string> | null;
|
|
1641
|
-
};
|
|
1642
|
-
/**
|
|
1643
|
-
* Set of 16 key-value pairs that can be attached to an object.
|
|
1644
|
-
* This can be useful for storing additional information about the
|
|
1645
|
-
* object in a structured format, and querying for objects via API
|
|
1646
|
-
* or the dashboard. Keys are strings with a maximum length of 64
|
|
1647
|
-
* characters. Values are strings with a maximum length of 512
|
|
1648
|
-
* characters.
|
|
1649
|
-
*/
|
|
1650
|
-
export type Metadata = unknown;
|
|
1651
|
-
/**
|
|
1652
|
-
* Describes an OpenAI model offering that can be used with the API.
|
|
1653
|
-
*/
|
|
1654
|
-
export type Model = {
|
|
1655
|
-
/**
|
|
1656
|
-
* The model identifier, which can be referenced in the API endpoints.
|
|
1657
|
-
*/
|
|
1658
|
-
id: string;
|
|
1659
|
-
/**
|
|
1660
|
-
* The object type, which is always "model".
|
|
1661
|
-
*/
|
|
1662
|
-
object: string;
|
|
709
|
+
/**
|
|
710
|
+
* MCP server response with computed mcp counts and optional auth config.
|
|
711
|
+
*/
|
|
712
|
+
export type McpServerResponse = McpServer & {
|
|
713
|
+
enabled_mcp_count: number;
|
|
714
|
+
disabled_mcp_count: number;
|
|
715
|
+
auth_config?: null | McpAuthConfigResponse;
|
|
716
|
+
};
|
|
717
|
+
export type McpServerReviewInfo = {
|
|
1663
718
|
/**
|
|
1664
|
-
*
|
|
719
|
+
* Requested MCP server URL
|
|
1665
720
|
*/
|
|
1666
|
-
|
|
721
|
+
url: string;
|
|
1667
722
|
/**
|
|
1668
|
-
*
|
|
723
|
+
* User's MCP instances connected to this server URL
|
|
1669
724
|
*/
|
|
1670
|
-
|
|
725
|
+
instances: Array<Mcp>;
|
|
1671
726
|
};
|
|
1672
727
|
export type ModelAlias = {
|
|
1673
728
|
alias: string;
|
|
@@ -1698,14 +753,6 @@ export type ModelCapabilities = {
|
|
|
1698
753
|
thinking?: boolean | null;
|
|
1699
754
|
tools: ToolCapabilities;
|
|
1700
755
|
};
|
|
1701
|
-
export type ModelDetails = {
|
|
1702
|
-
parent_model?: string | null;
|
|
1703
|
-
format: string;
|
|
1704
|
-
family: string;
|
|
1705
|
-
families?: Array<string> | null;
|
|
1706
|
-
parameter_size: string;
|
|
1707
|
-
quantization_level: string;
|
|
1708
|
-
};
|
|
1709
756
|
/**
|
|
1710
757
|
* Model metadata for API responses
|
|
1711
758
|
*/
|
|
@@ -1715,9 +762,6 @@ export type ModelMetadata = {
|
|
|
1715
762
|
architecture: ModelArchitecture;
|
|
1716
763
|
chat_template?: string | null;
|
|
1717
764
|
};
|
|
1718
|
-
export type ModelsResponse = {
|
|
1719
|
-
models: Array<OllamaModel>;
|
|
1720
|
-
};
|
|
1721
765
|
/**
|
|
1722
766
|
* Request for creating a new download request
|
|
1723
767
|
*/
|
|
@@ -1783,53 +827,6 @@ export type OAuthTokenResponse = {
|
|
|
1783
827
|
created_at: string;
|
|
1784
828
|
updated_at: string;
|
|
1785
829
|
};
|
|
1786
|
-
export type OllamaError = {
|
|
1787
|
-
error: string;
|
|
1788
|
-
};
|
|
1789
|
-
export type OllamaModel = {
|
|
1790
|
-
model: string;
|
|
1791
|
-
modified_at: number;
|
|
1792
|
-
size: number;
|
|
1793
|
-
digest: string;
|
|
1794
|
-
details: ModelDetails;
|
|
1795
|
-
};
|
|
1796
|
-
export type OpenAiApiError = {
|
|
1797
|
-
/**
|
|
1798
|
-
* Error details following OpenAI API error format
|
|
1799
|
-
*/
|
|
1800
|
-
error: ErrorBody;
|
|
1801
|
-
};
|
|
1802
|
-
export type Options = {
|
|
1803
|
-
num_keep?: number | null;
|
|
1804
|
-
seed?: number | null;
|
|
1805
|
-
num_predict?: number | null;
|
|
1806
|
-
top_k?: number | null;
|
|
1807
|
-
top_p?: number | null;
|
|
1808
|
-
tfs_z?: number | null;
|
|
1809
|
-
typical_p?: number | null;
|
|
1810
|
-
repeat_last_n?: number | null;
|
|
1811
|
-
temperature?: number | null;
|
|
1812
|
-
repeat_penalty?: number | null;
|
|
1813
|
-
presence_penalty?: number | null;
|
|
1814
|
-
frequency_penalty?: number | null;
|
|
1815
|
-
mirostat?: number | null;
|
|
1816
|
-
mirostat_tau?: number | null;
|
|
1817
|
-
mirostat_eta?: number | null;
|
|
1818
|
-
penalize_newline?: boolean | null;
|
|
1819
|
-
stop?: Array<string> | null;
|
|
1820
|
-
numa?: boolean | null;
|
|
1821
|
-
num_ctx?: number | null;
|
|
1822
|
-
num_batch?: number | null;
|
|
1823
|
-
num_gpu?: number | null;
|
|
1824
|
-
main_gpu?: number | null;
|
|
1825
|
-
low_vram?: boolean | null;
|
|
1826
|
-
f16_kv?: boolean | null;
|
|
1827
|
-
logits_all?: boolean | null;
|
|
1828
|
-
vocab_only?: boolean | null;
|
|
1829
|
-
use_mmap?: boolean | null;
|
|
1830
|
-
use_mlock?: boolean | null;
|
|
1831
|
-
num_thread?: number | null;
|
|
1832
|
-
};
|
|
1833
830
|
/**
|
|
1834
831
|
* Paginated list of all model aliases (user, model, and API)
|
|
1835
832
|
*/
|
|
@@ -1923,35 +920,6 @@ export type PingResponse = {
|
|
|
1923
920
|
*/
|
|
1924
921
|
message: string;
|
|
1925
922
|
};
|
|
1926
|
-
/**
|
|
1927
|
-
* The type of the predicted content you want to provide. This type is
|
|
1928
|
-
* currently always `content`.
|
|
1929
|
-
*/
|
|
1930
|
-
export type PredictionContent = {
|
|
1931
|
-
/**
|
|
1932
|
-
* The type of the predicted content you want to provide. This type is
|
|
1933
|
-
* currently always `content`.
|
|
1934
|
-
*/
|
|
1935
|
-
content: PredictionContentContent;
|
|
1936
|
-
type: 'content';
|
|
1937
|
-
};
|
|
1938
|
-
/**
|
|
1939
|
-
* The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
|
|
1940
|
-
*/
|
|
1941
|
-
export type PredictionContentContent = string | Array<ChatCompletionRequestMessageContentPartText>;
|
|
1942
|
-
/**
|
|
1943
|
-
* Breakdown of tokens used in a completion.
|
|
1944
|
-
*/
|
|
1945
|
-
export type PromptTokensDetails = {
|
|
1946
|
-
/**
|
|
1947
|
-
* Audio input tokens present in the prompt.
|
|
1948
|
-
*/
|
|
1949
|
-
audio_tokens?: number | null;
|
|
1950
|
-
/**
|
|
1951
|
-
* Cached tokens present in the prompt.
|
|
1952
|
-
*/
|
|
1953
|
-
cached_tokens?: number | null;
|
|
1954
|
-
};
|
|
1955
923
|
/**
|
|
1956
924
|
* Response for queue status operations
|
|
1957
925
|
*/
|
|
@@ -1961,7 +929,6 @@ export type QueueStatusResponse = {
|
|
|
1961
929
|
*/
|
|
1962
930
|
status: string;
|
|
1963
931
|
};
|
|
1964
|
-
export type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
1965
932
|
export type RedirectResponse = {
|
|
1966
933
|
/**
|
|
1967
934
|
* The URL to redirect to (OAuth authorization URL or application home page)
|
|
@@ -2023,48 +990,6 @@ export type RequestedResourcesV1 = {
|
|
|
2023
990
|
mcp_servers?: Array<RequestedMcpServer>;
|
|
2024
991
|
};
|
|
2025
992
|
export type ResourceRole = 'resource_anonymous' | 'resource_guest' | 'resource_user' | 'resource_power_user' | 'resource_manager' | 'resource_admin';
|
|
2026
|
-
export type ResponseFormat = {
|
|
2027
|
-
type: 'text';
|
|
2028
|
-
} | {
|
|
2029
|
-
type: 'json_object';
|
|
2030
|
-
} | {
|
|
2031
|
-
json_schema: ResponseFormatJsonSchema;
|
|
2032
|
-
type: 'json_schema';
|
|
2033
|
-
};
|
|
2034
|
-
export type ResponseFormatJsonSchema = {
|
|
2035
|
-
/**
|
|
2036
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
2037
|
-
*/
|
|
2038
|
-
description?: string | null;
|
|
2039
|
-
/**
|
|
2040
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
2041
|
-
*/
|
|
2042
|
-
name: string;
|
|
2043
|
-
/**
|
|
2044
|
-
* The schema for the response format, described as a JSON Schema object.
|
|
2045
|
-
* Learn how to build JSON schemas [here](https://json-schema.org/).
|
|
2046
|
-
*/
|
|
2047
|
-
schema?: unknown;
|
|
2048
|
-
/**
|
|
2049
|
-
* Whether to enable strict schema adherence when generating the output.
|
|
2050
|
-
* If set to true, the model will always follow the exact schema defined
|
|
2051
|
-
* in the `schema` field. Only a subset of JSON Schema is supported when
|
|
2052
|
-
* `strict` is `true`. To learn more, read the [Structured Outputs
|
|
2053
|
-
* guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
2054
|
-
*/
|
|
2055
|
-
strict?: boolean | null;
|
|
2056
|
-
};
|
|
2057
|
-
/**
|
|
2058
|
-
* Output types that you would like the model to generate for this request.
|
|
2059
|
-
*
|
|
2060
|
-
* Most models are capable of generating text, which is the default: `["text"]`
|
|
2061
|
-
*
|
|
2062
|
-
* The `gpt-4o-audio-preview` model can also be used to [generate
|
|
2063
|
-
* audio](https://platform.openai.com/docs/guides/audio). To request that this model generate both text and audio responses, you can use: `["text", "audio"]`
|
|
2064
|
-
*/
|
|
2065
|
-
export type ResponseModalities = 'text' | 'audio';
|
|
2066
|
-
export type Role = 'system' | 'user' | 'assistant' | 'tool' | 'function';
|
|
2067
|
-
export type ServiceTier = 'auto' | 'default' | 'flex' | 'scale' | 'priority';
|
|
2068
993
|
export type SettingInfo = {
|
|
2069
994
|
key: string;
|
|
2070
995
|
current_value: unknown;
|
|
@@ -2107,19 +1032,6 @@ export type SetupResponse = {
|
|
|
2107
1032
|
*/
|
|
2108
1033
|
status: AppStatus;
|
|
2109
1034
|
};
|
|
2110
|
-
export type ShowRequest = {
|
|
2111
|
-
name: string;
|
|
2112
|
-
};
|
|
2113
|
-
export type ShowResponse = {
|
|
2114
|
-
details: ModelDetails;
|
|
2115
|
-
license: string;
|
|
2116
|
-
model_info: {};
|
|
2117
|
-
modelfile: string;
|
|
2118
|
-
modified_at: number;
|
|
2119
|
-
parameters: string;
|
|
2120
|
-
template: string;
|
|
2121
|
-
};
|
|
2122
|
-
export type StopConfiguration = string | Array<string>;
|
|
2123
1035
|
export type TenantListItem = {
|
|
2124
1036
|
client_id: string;
|
|
2125
1037
|
name: string;
|
|
@@ -2167,6 +1079,10 @@ export type TestPromptRequest = {
|
|
|
2167
1079
|
* Test prompt (max 30 characters for cost control)
|
|
2168
1080
|
*/
|
|
2169
1081
|
prompt: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* API format to use for the test request (defaults to OpenAI Chat Completions)
|
|
1084
|
+
*/
|
|
1085
|
+
api_format?: ApiFormat;
|
|
2170
1086
|
};
|
|
2171
1087
|
/**
|
|
2172
1088
|
* Response from testing API connectivity
|
|
@@ -2204,22 +1120,6 @@ export type ToolCapabilities = {
|
|
|
2204
1120
|
function_calling?: boolean | null;
|
|
2205
1121
|
structured_output?: boolean | null;
|
|
2206
1122
|
};
|
|
2207
|
-
export type ToolChoiceAllowedMode = 'auto' | 'required';
|
|
2208
|
-
export type ToolChoiceOptions = 'none' | 'auto' | 'required';
|
|
2209
|
-
export type TopLogprobs = {
|
|
2210
|
-
/**
|
|
2211
|
-
* The token.
|
|
2212
|
-
*/
|
|
2213
|
-
token: string;
|
|
2214
|
-
/**
|
|
2215
|
-
* The log probability of this token.
|
|
2216
|
-
*/
|
|
2217
|
-
logprob: number;
|
|
2218
|
-
/**
|
|
2219
|
-
* A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.
|
|
2220
|
-
*/
|
|
2221
|
-
bytes?: Array<number> | null;
|
|
2222
|
-
};
|
|
2223
1123
|
/**
|
|
2224
1124
|
* Request to update a setting value
|
|
2225
1125
|
*/
|
|
@@ -2239,24 +1139,6 @@ export type UpdateTokenRequest = {
|
|
|
2239
1139
|
*/
|
|
2240
1140
|
status: TokenStatus;
|
|
2241
1141
|
};
|
|
2242
|
-
export type UrlCitation = {
|
|
2243
|
-
/**
|
|
2244
|
-
* The index of the last character of the URL citation in the message.
|
|
2245
|
-
*/
|
|
2246
|
-
end_index: number;
|
|
2247
|
-
/**
|
|
2248
|
-
* The index of the first character of the URL citation in the message.
|
|
2249
|
-
*/
|
|
2250
|
-
start_index: number;
|
|
2251
|
-
/**
|
|
2252
|
-
* The title of the web resource.
|
|
2253
|
-
*/
|
|
2254
|
-
title: string;
|
|
2255
|
-
/**
|
|
2256
|
-
* The URL of the web resource.
|
|
2257
|
-
*/
|
|
2258
|
-
url: string;
|
|
2259
|
-
};
|
|
2260
1142
|
/**
|
|
2261
1143
|
* User access request output type for API responses
|
|
2262
1144
|
*/
|
|
@@ -2379,156 +1261,6 @@ export type UserResponse = {
|
|
|
2379
1261
|
auth_status: 'api_token';
|
|
2380
1262
|
});
|
|
2381
1263
|
export type UserScope = 'scope_user_user' | 'scope_user_power_user';
|
|
2382
|
-
/**
|
|
2383
|
-
* Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are `low`, `medium`, and `high`.
|
|
2384
|
-
*/
|
|
2385
|
-
export type Verbosity = 'low' | 'medium' | 'high';
|
|
2386
|
-
/**
|
|
2387
|
-
* The amount of context window space to use for the search.
|
|
2388
|
-
*/
|
|
2389
|
-
export type WebSearchContextSize = 'low' | 'medium' | 'high';
|
|
2390
|
-
/**
|
|
2391
|
-
* Approximate location parameters for the search.
|
|
2392
|
-
*/
|
|
2393
|
-
export type WebSearchLocation = {
|
|
2394
|
-
/**
|
|
2395
|
-
* The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.
|
|
2396
|
-
*/
|
|
2397
|
-
country?: string | null;
|
|
2398
|
-
/**
|
|
2399
|
-
* Free text input for the region of the user, e.g. `California`.
|
|
2400
|
-
*/
|
|
2401
|
-
region?: string | null;
|
|
2402
|
-
/**
|
|
2403
|
-
* Free text input for the city of the user, e.g. `San Francisco`.
|
|
2404
|
-
*/
|
|
2405
|
-
city?: string | null;
|
|
2406
|
-
/**
|
|
2407
|
-
* The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.
|
|
2408
|
-
*/
|
|
2409
|
-
timezone?: string | null;
|
|
2410
|
-
};
|
|
2411
|
-
/**
|
|
2412
|
-
* Options for the web search tool.
|
|
2413
|
-
*/
|
|
2414
|
-
export type WebSearchOptions = {
|
|
2415
|
-
search_context_size?: null | WebSearchContextSize;
|
|
2416
|
-
user_location?: null | WebSearchUserLocation;
|
|
2417
|
-
};
|
|
2418
|
-
export type WebSearchUserLocation = {
|
|
2419
|
-
type: WebSearchUserLocationType;
|
|
2420
|
-
approximate: WebSearchLocation;
|
|
2421
|
-
};
|
|
2422
|
-
export type WebSearchUserLocationType = 'approximate';
|
|
2423
|
-
export type ChatOllamaModelData = {
|
|
2424
|
-
/**
|
|
2425
|
-
* Chat request in Ollama format
|
|
2426
|
-
*/
|
|
2427
|
-
body: ChatRequest;
|
|
2428
|
-
path?: never;
|
|
2429
|
-
query?: never;
|
|
2430
|
-
url: '/api/chat';
|
|
2431
|
-
};
|
|
2432
|
-
export type ChatOllamaModelErrors = {
|
|
2433
|
-
/**
|
|
2434
|
-
* Invalid request parameters
|
|
2435
|
-
*/
|
|
2436
|
-
400: OpenAiApiError;
|
|
2437
|
-
/**
|
|
2438
|
-
* Not authenticated
|
|
2439
|
-
*/
|
|
2440
|
-
401: OpenAiApiError;
|
|
2441
|
-
/**
|
|
2442
|
-
* Insufficient permissions
|
|
2443
|
-
*/
|
|
2444
|
-
403: OpenAiApiError;
|
|
2445
|
-
/**
|
|
2446
|
-
* Model not found
|
|
2447
|
-
*/
|
|
2448
|
-
404: OllamaError;
|
|
2449
|
-
/**
|
|
2450
|
-
* Internal server error
|
|
2451
|
-
*/
|
|
2452
|
-
500: OpenAiApiError;
|
|
2453
|
-
};
|
|
2454
|
-
export type ChatOllamaModelError = ChatOllamaModelErrors[keyof ChatOllamaModelErrors];
|
|
2455
|
-
export type ChatOllamaModelResponses = {
|
|
2456
|
-
/**
|
|
2457
|
-
* Chat response
|
|
2458
|
-
*/
|
|
2459
|
-
200: unknown;
|
|
2460
|
-
};
|
|
2461
|
-
export type ShowOllamaModelData = {
|
|
2462
|
-
/**
|
|
2463
|
-
* Model name to get details for
|
|
2464
|
-
*/
|
|
2465
|
-
body: ShowRequest;
|
|
2466
|
-
path?: never;
|
|
2467
|
-
query?: never;
|
|
2468
|
-
url: '/api/show';
|
|
2469
|
-
};
|
|
2470
|
-
export type ShowOllamaModelErrors = {
|
|
2471
|
-
/**
|
|
2472
|
-
* Invalid request parameters
|
|
2473
|
-
*/
|
|
2474
|
-
400: OpenAiApiError;
|
|
2475
|
-
/**
|
|
2476
|
-
* Not authenticated
|
|
2477
|
-
*/
|
|
2478
|
-
401: OpenAiApiError;
|
|
2479
|
-
/**
|
|
2480
|
-
* Insufficient permissions
|
|
2481
|
-
*/
|
|
2482
|
-
403: OpenAiApiError;
|
|
2483
|
-
/**
|
|
2484
|
-
* Model not found
|
|
2485
|
-
*/
|
|
2486
|
-
404: OllamaError;
|
|
2487
|
-
/**
|
|
2488
|
-
* Internal server error
|
|
2489
|
-
*/
|
|
2490
|
-
500: OpenAiApiError;
|
|
2491
|
-
};
|
|
2492
|
-
export type ShowOllamaModelError = ShowOllamaModelErrors[keyof ShowOllamaModelErrors];
|
|
2493
|
-
export type ShowOllamaModelResponses = {
|
|
2494
|
-
/**
|
|
2495
|
-
* Model details
|
|
2496
|
-
*/
|
|
2497
|
-
200: ShowResponse;
|
|
2498
|
-
};
|
|
2499
|
-
export type ShowOllamaModelResponse = ShowOllamaModelResponses[keyof ShowOllamaModelResponses];
|
|
2500
|
-
export type ListOllamaModelsData = {
|
|
2501
|
-
body?: never;
|
|
2502
|
-
path?: never;
|
|
2503
|
-
query?: never;
|
|
2504
|
-
url: '/api/tags';
|
|
2505
|
-
};
|
|
2506
|
-
export type ListOllamaModelsErrors = {
|
|
2507
|
-
/**
|
|
2508
|
-
* Invalid request parameters
|
|
2509
|
-
*/
|
|
2510
|
-
400: OpenAiApiError;
|
|
2511
|
-
/**
|
|
2512
|
-
* Not authenticated
|
|
2513
|
-
*/
|
|
2514
|
-
401: OpenAiApiError;
|
|
2515
|
-
/**
|
|
2516
|
-
* Insufficient permissions
|
|
2517
|
-
*/
|
|
2518
|
-
403: OpenAiApiError;
|
|
2519
|
-
/**
|
|
2520
|
-
* Internal server error
|
|
2521
|
-
*/
|
|
2522
|
-
500: OpenAiApiError;
|
|
2523
|
-
};
|
|
2524
|
-
export type ListOllamaModelsError = ListOllamaModelsErrors[keyof ListOllamaModelsErrors];
|
|
2525
|
-
export type ListOllamaModelsResponses = {
|
|
2526
|
-
/**
|
|
2527
|
-
* List of available models
|
|
2528
|
-
*/
|
|
2529
|
-
200: ModelsResponse;
|
|
2530
|
-
};
|
|
2531
|
-
export type ListOllamaModelsResponse = ListOllamaModelsResponses[keyof ListOllamaModelsResponses];
|
|
2532
1264
|
export type ListAllAccessRequestsData = {
|
|
2533
1265
|
body?: never;
|
|
2534
1266
|
path?: never;
|
|
@@ -2556,19 +1288,19 @@ export type ListAllAccessRequestsErrors = {
|
|
|
2556
1288
|
/**
|
|
2557
1289
|
* Invalid request parameters
|
|
2558
1290
|
*/
|
|
2559
|
-
400:
|
|
1291
|
+
400: BodhiApiError;
|
|
2560
1292
|
/**
|
|
2561
1293
|
* Not authenticated
|
|
2562
1294
|
*/
|
|
2563
|
-
401:
|
|
1295
|
+
401: BodhiApiError;
|
|
2564
1296
|
/**
|
|
2565
1297
|
* Insufficient permissions
|
|
2566
1298
|
*/
|
|
2567
|
-
403:
|
|
1299
|
+
403: BodhiApiError;
|
|
2568
1300
|
/**
|
|
2569
1301
|
* Internal server error
|
|
2570
1302
|
*/
|
|
2571
|
-
500:
|
|
1303
|
+
500: BodhiApiError;
|
|
2572
1304
|
};
|
|
2573
1305
|
export type ListAllAccessRequestsError = ListAllAccessRequestsErrors[keyof ListAllAccessRequestsErrors];
|
|
2574
1306
|
export type ListAllAccessRequestsResponses = {
|
|
@@ -2605,19 +1337,19 @@ export type ListPendingAccessRequestsErrors = {
|
|
|
2605
1337
|
/**
|
|
2606
1338
|
* Invalid request parameters
|
|
2607
1339
|
*/
|
|
2608
|
-
400:
|
|
1340
|
+
400: BodhiApiError;
|
|
2609
1341
|
/**
|
|
2610
1342
|
* Not authenticated
|
|
2611
1343
|
*/
|
|
2612
|
-
401:
|
|
1344
|
+
401: BodhiApiError;
|
|
2613
1345
|
/**
|
|
2614
1346
|
* Insufficient permissions
|
|
2615
1347
|
*/
|
|
2616
|
-
403:
|
|
1348
|
+
403: BodhiApiError;
|
|
2617
1349
|
/**
|
|
2618
1350
|
* Internal server error
|
|
2619
1351
|
*/
|
|
2620
|
-
500:
|
|
1352
|
+
500: BodhiApiError;
|
|
2621
1353
|
};
|
|
2622
1354
|
export type ListPendingAccessRequestsError = ListPendingAccessRequestsErrors[keyof ListPendingAccessRequestsErrors];
|
|
2623
1355
|
export type ListPendingAccessRequestsResponses = {
|
|
@@ -2645,23 +1377,23 @@ export type ApproveAccessRequestErrors = {
|
|
|
2645
1377
|
/**
|
|
2646
1378
|
* Invalid request parameters
|
|
2647
1379
|
*/
|
|
2648
|
-
400:
|
|
1380
|
+
400: BodhiApiError;
|
|
2649
1381
|
/**
|
|
2650
1382
|
* Not authenticated
|
|
2651
1383
|
*/
|
|
2652
|
-
401:
|
|
1384
|
+
401: BodhiApiError;
|
|
2653
1385
|
/**
|
|
2654
1386
|
* Insufficient permissions
|
|
2655
1387
|
*/
|
|
2656
|
-
403:
|
|
1388
|
+
403: BodhiApiError;
|
|
2657
1389
|
/**
|
|
2658
1390
|
* Request not found
|
|
2659
1391
|
*/
|
|
2660
|
-
404:
|
|
1392
|
+
404: BodhiApiError;
|
|
2661
1393
|
/**
|
|
2662
1394
|
* Internal server error
|
|
2663
1395
|
*/
|
|
2664
|
-
500:
|
|
1396
|
+
500: BodhiApiError;
|
|
2665
1397
|
};
|
|
2666
1398
|
export type ApproveAccessRequestError = ApproveAccessRequestErrors[keyof ApproveAccessRequestErrors];
|
|
2667
1399
|
export type ApproveAccessRequestResponses = {
|
|
@@ -2688,27 +1420,27 @@ export type ApproveAppsAccessRequestErrors = {
|
|
|
2688
1420
|
/**
|
|
2689
1421
|
* Invalid request parameters
|
|
2690
1422
|
*/
|
|
2691
|
-
400:
|
|
1423
|
+
400: BodhiApiError;
|
|
2692
1424
|
/**
|
|
2693
1425
|
* Not authenticated
|
|
2694
1426
|
*/
|
|
2695
|
-
401:
|
|
1427
|
+
401: BodhiApiError;
|
|
2696
1428
|
/**
|
|
2697
1429
|
* Insufficient permissions
|
|
2698
1430
|
*/
|
|
2699
|
-
403:
|
|
1431
|
+
403: BodhiApiError;
|
|
2700
1432
|
/**
|
|
2701
1433
|
* Not found
|
|
2702
1434
|
*/
|
|
2703
|
-
404:
|
|
1435
|
+
404: BodhiApiError;
|
|
2704
1436
|
/**
|
|
2705
1437
|
* Already processed
|
|
2706
1438
|
*/
|
|
2707
|
-
409:
|
|
1439
|
+
409: BodhiApiError;
|
|
2708
1440
|
/**
|
|
2709
1441
|
* Internal server error
|
|
2710
1442
|
*/
|
|
2711
|
-
500:
|
|
1443
|
+
500: BodhiApiError;
|
|
2712
1444
|
};
|
|
2713
1445
|
export type ApproveAppsAccessRequestError = ApproveAppsAccessRequestErrors[keyof ApproveAppsAccessRequestErrors];
|
|
2714
1446
|
export type ApproveAppsAccessRequestResponses = {
|
|
@@ -2733,27 +1465,27 @@ export type DenyAccessRequestErrors = {
|
|
|
2733
1465
|
/**
|
|
2734
1466
|
* Invalid request parameters
|
|
2735
1467
|
*/
|
|
2736
|
-
400:
|
|
1468
|
+
400: BodhiApiError;
|
|
2737
1469
|
/**
|
|
2738
1470
|
* Not authenticated
|
|
2739
1471
|
*/
|
|
2740
|
-
401:
|
|
1472
|
+
401: BodhiApiError;
|
|
2741
1473
|
/**
|
|
2742
1474
|
* Insufficient permissions
|
|
2743
1475
|
*/
|
|
2744
|
-
403:
|
|
1476
|
+
403: BodhiApiError;
|
|
2745
1477
|
/**
|
|
2746
1478
|
* Not found
|
|
2747
1479
|
*/
|
|
2748
|
-
404:
|
|
1480
|
+
404: BodhiApiError;
|
|
2749
1481
|
/**
|
|
2750
1482
|
* Already processed
|
|
2751
1483
|
*/
|
|
2752
|
-
409:
|
|
1484
|
+
409: BodhiApiError;
|
|
2753
1485
|
/**
|
|
2754
1486
|
* Internal server error
|
|
2755
1487
|
*/
|
|
2756
|
-
500:
|
|
1488
|
+
500: BodhiApiError;
|
|
2757
1489
|
};
|
|
2758
1490
|
export type DenyAccessRequestError = DenyAccessRequestErrors[keyof DenyAccessRequestErrors];
|
|
2759
1491
|
export type DenyAccessRequestResponses = {
|
|
@@ -2778,23 +1510,23 @@ export type RejectAccessRequestErrors = {
|
|
|
2778
1510
|
/**
|
|
2779
1511
|
* Invalid request parameters
|
|
2780
1512
|
*/
|
|
2781
|
-
400:
|
|
1513
|
+
400: BodhiApiError;
|
|
2782
1514
|
/**
|
|
2783
1515
|
* Not authenticated
|
|
2784
1516
|
*/
|
|
2785
|
-
401:
|
|
1517
|
+
401: BodhiApiError;
|
|
2786
1518
|
/**
|
|
2787
1519
|
* Insufficient permissions
|
|
2788
1520
|
*/
|
|
2789
|
-
403:
|
|
1521
|
+
403: BodhiApiError;
|
|
2790
1522
|
/**
|
|
2791
1523
|
* Request not found
|
|
2792
1524
|
*/
|
|
2793
|
-
404:
|
|
1525
|
+
404: BodhiApiError;
|
|
2794
1526
|
/**
|
|
2795
1527
|
* Internal server error
|
|
2796
1528
|
*/
|
|
2797
|
-
500:
|
|
1529
|
+
500: BodhiApiError;
|
|
2798
1530
|
};
|
|
2799
1531
|
export type RejectAccessRequestError = RejectAccessRequestErrors[keyof RejectAccessRequestErrors];
|
|
2800
1532
|
export type RejectAccessRequestResponses = {
|
|
@@ -2818,27 +1550,27 @@ export type GetAccessRequestReviewErrors = {
|
|
|
2818
1550
|
/**
|
|
2819
1551
|
* Invalid request parameters
|
|
2820
1552
|
*/
|
|
2821
|
-
400:
|
|
1553
|
+
400: BodhiApiError;
|
|
2822
1554
|
/**
|
|
2823
1555
|
* Not authenticated
|
|
2824
1556
|
*/
|
|
2825
|
-
401:
|
|
1557
|
+
401: BodhiApiError;
|
|
2826
1558
|
/**
|
|
2827
1559
|
* Insufficient permissions
|
|
2828
1560
|
*/
|
|
2829
|
-
403:
|
|
1561
|
+
403: BodhiApiError;
|
|
2830
1562
|
/**
|
|
2831
1563
|
* Not found
|
|
2832
1564
|
*/
|
|
2833
|
-
404:
|
|
1565
|
+
404: BodhiApiError;
|
|
2834
1566
|
/**
|
|
2835
1567
|
* Request expired
|
|
2836
1568
|
*/
|
|
2837
|
-
410:
|
|
1569
|
+
410: BodhiApiError;
|
|
2838
1570
|
/**
|
|
2839
1571
|
* Internal server error
|
|
2840
1572
|
*/
|
|
2841
|
-
500:
|
|
1573
|
+
500: BodhiApiError;
|
|
2842
1574
|
};
|
|
2843
1575
|
export type GetAccessRequestReviewError = GetAccessRequestReviewErrors[keyof GetAccessRequestReviewErrors];
|
|
2844
1576
|
export type GetAccessRequestReviewResponses = {
|
|
@@ -2868,23 +1600,23 @@ export type GetAccessRequestStatusErrors = {
|
|
|
2868
1600
|
/**
|
|
2869
1601
|
* Invalid request parameters
|
|
2870
1602
|
*/
|
|
2871
|
-
400:
|
|
1603
|
+
400: BodhiApiError;
|
|
2872
1604
|
/**
|
|
2873
1605
|
* Not authenticated
|
|
2874
1606
|
*/
|
|
2875
|
-
401:
|
|
1607
|
+
401: BodhiApiError;
|
|
2876
1608
|
/**
|
|
2877
1609
|
* Insufficient permissions
|
|
2878
1610
|
*/
|
|
2879
|
-
403:
|
|
1611
|
+
403: BodhiApiError;
|
|
2880
1612
|
/**
|
|
2881
1613
|
* Not found or app_client_id mismatch
|
|
2882
1614
|
*/
|
|
2883
|
-
404:
|
|
1615
|
+
404: BodhiApiError;
|
|
2884
1616
|
/**
|
|
2885
1617
|
* Internal server error
|
|
2886
1618
|
*/
|
|
2887
|
-
500:
|
|
1619
|
+
500: BodhiApiError;
|
|
2888
1620
|
};
|
|
2889
1621
|
export type GetAccessRequestStatusError = GetAccessRequestStatusErrors[keyof GetAccessRequestStatusErrors];
|
|
2890
1622
|
export type GetAccessRequestStatusResponses = {
|
|
@@ -2904,19 +1636,19 @@ export type AppsListMcpsErrors = {
|
|
|
2904
1636
|
/**
|
|
2905
1637
|
* Invalid request parameters
|
|
2906
1638
|
*/
|
|
2907
|
-
400:
|
|
1639
|
+
400: BodhiApiError;
|
|
2908
1640
|
/**
|
|
2909
1641
|
* Not authenticated
|
|
2910
1642
|
*/
|
|
2911
|
-
401:
|
|
1643
|
+
401: BodhiApiError;
|
|
2912
1644
|
/**
|
|
2913
1645
|
* Insufficient permissions
|
|
2914
1646
|
*/
|
|
2915
|
-
403:
|
|
1647
|
+
403: BodhiApiError;
|
|
2916
1648
|
/**
|
|
2917
1649
|
* Internal server error
|
|
2918
1650
|
*/
|
|
2919
|
-
500:
|
|
1651
|
+
500: BodhiApiError;
|
|
2920
1652
|
};
|
|
2921
1653
|
export type AppsListMcpsError = AppsListMcpsErrors[keyof AppsListMcpsErrors];
|
|
2922
1654
|
export type AppsListMcpsResponses = {
|
|
@@ -2941,15 +1673,15 @@ export type AppsGetMcpErrors = {
|
|
|
2941
1673
|
/**
|
|
2942
1674
|
* Invalid request parameters
|
|
2943
1675
|
*/
|
|
2944
|
-
400:
|
|
1676
|
+
400: BodhiApiError;
|
|
2945
1677
|
/**
|
|
2946
1678
|
* Not authenticated
|
|
2947
1679
|
*/
|
|
2948
|
-
401:
|
|
1680
|
+
401: BodhiApiError;
|
|
2949
1681
|
/**
|
|
2950
1682
|
* Insufficient permissions
|
|
2951
1683
|
*/
|
|
2952
|
-
403:
|
|
1684
|
+
403: BodhiApiError;
|
|
2953
1685
|
/**
|
|
2954
1686
|
* MCP not found
|
|
2955
1687
|
*/
|
|
@@ -2957,7 +1689,7 @@ export type AppsGetMcpErrors = {
|
|
|
2957
1689
|
/**
|
|
2958
1690
|
* Internal server error
|
|
2959
1691
|
*/
|
|
2960
|
-
500:
|
|
1692
|
+
500: BodhiApiError;
|
|
2961
1693
|
};
|
|
2962
1694
|
export type AppsGetMcpError = AppsGetMcpErrors[keyof AppsGetMcpErrors];
|
|
2963
1695
|
export type AppsGetMcpResponses = {
|
|
@@ -2982,19 +1714,19 @@ export type McpProxyErrors = {
|
|
|
2982
1714
|
/**
|
|
2983
1715
|
* Invalid request parameters
|
|
2984
1716
|
*/
|
|
2985
|
-
400:
|
|
1717
|
+
400: BodhiApiError;
|
|
2986
1718
|
/**
|
|
2987
1719
|
* Not authenticated
|
|
2988
1720
|
*/
|
|
2989
|
-
401:
|
|
1721
|
+
401: BodhiApiError;
|
|
2990
1722
|
/**
|
|
2991
1723
|
* Insufficient permissions
|
|
2992
1724
|
*/
|
|
2993
|
-
403:
|
|
1725
|
+
403: BodhiApiError;
|
|
2994
1726
|
/**
|
|
2995
1727
|
* Internal server error
|
|
2996
1728
|
*/
|
|
2997
|
-
500:
|
|
1729
|
+
500: BodhiApiError;
|
|
2998
1730
|
};
|
|
2999
1731
|
export type McpProxyError = McpProxyErrors[keyof McpProxyErrors];
|
|
3000
1732
|
export type McpProxyResponses = {
|
|
@@ -3016,23 +1748,23 @@ export type CreateAccessRequestErrors = {
|
|
|
3016
1748
|
/**
|
|
3017
1749
|
* Invalid request parameters
|
|
3018
1750
|
*/
|
|
3019
|
-
400:
|
|
1751
|
+
400: BodhiApiError;
|
|
3020
1752
|
/**
|
|
3021
1753
|
* Not authenticated
|
|
3022
1754
|
*/
|
|
3023
|
-
401:
|
|
1755
|
+
401: BodhiApiError;
|
|
3024
1756
|
/**
|
|
3025
1757
|
* Insufficient permissions
|
|
3026
1758
|
*/
|
|
3027
|
-
403:
|
|
1759
|
+
403: BodhiApiError;
|
|
3028
1760
|
/**
|
|
3029
1761
|
* App client not found
|
|
3030
1762
|
*/
|
|
3031
|
-
404:
|
|
1763
|
+
404: BodhiApiError;
|
|
3032
1764
|
/**
|
|
3033
1765
|
* Internal server error
|
|
3034
1766
|
*/
|
|
3035
|
-
500:
|
|
1767
|
+
500: BodhiApiError;
|
|
3036
1768
|
};
|
|
3037
1769
|
export type CreateAccessRequestError = CreateAccessRequestErrors[keyof CreateAccessRequestErrors];
|
|
3038
1770
|
export type CreateAccessRequestResponses = {
|
|
@@ -3055,23 +1787,23 @@ export type CompleteOAuthFlowErrors = {
|
|
|
3055
1787
|
/**
|
|
3056
1788
|
* Invalid request parameters
|
|
3057
1789
|
*/
|
|
3058
|
-
400:
|
|
1790
|
+
400: BodhiApiError;
|
|
3059
1791
|
/**
|
|
3060
1792
|
* Not authenticated
|
|
3061
1793
|
*/
|
|
3062
|
-
401:
|
|
1794
|
+
401: BodhiApiError;
|
|
3063
1795
|
/**
|
|
3064
1796
|
* Insufficient permissions
|
|
3065
1797
|
*/
|
|
3066
|
-
403:
|
|
1798
|
+
403: BodhiApiError;
|
|
3067
1799
|
/**
|
|
3068
1800
|
* OAuth error, invalid request parameters, or state mismatch
|
|
3069
1801
|
*/
|
|
3070
|
-
422:
|
|
1802
|
+
422: BodhiApiError;
|
|
3071
1803
|
/**
|
|
3072
1804
|
* Internal server error
|
|
3073
1805
|
*/
|
|
3074
|
-
500:
|
|
1806
|
+
500: BodhiApiError;
|
|
3075
1807
|
};
|
|
3076
1808
|
export type CompleteOAuthFlowError = CompleteOAuthFlowErrors[keyof CompleteOAuthFlowErrors];
|
|
3077
1809
|
export type CompleteOAuthFlowResponses = {
|
|
@@ -3094,19 +1826,19 @@ export type CompleteDashboardOAuthFlowErrors = {
|
|
|
3094
1826
|
/**
|
|
3095
1827
|
* Invalid request parameters
|
|
3096
1828
|
*/
|
|
3097
|
-
400:
|
|
1829
|
+
400: BodhiApiError;
|
|
3098
1830
|
/**
|
|
3099
1831
|
* Not authenticated
|
|
3100
1832
|
*/
|
|
3101
|
-
401:
|
|
1833
|
+
401: BodhiApiError;
|
|
3102
1834
|
/**
|
|
3103
1835
|
* Insufficient permissions
|
|
3104
1836
|
*/
|
|
3105
|
-
403:
|
|
1837
|
+
403: BodhiApiError;
|
|
3106
1838
|
/**
|
|
3107
1839
|
* Internal server error
|
|
3108
1840
|
*/
|
|
3109
|
-
500:
|
|
1841
|
+
500: BodhiApiError;
|
|
3110
1842
|
};
|
|
3111
1843
|
export type CompleteDashboardOAuthFlowError = CompleteDashboardOAuthFlowErrors[keyof CompleteDashboardOAuthFlowErrors];
|
|
3112
1844
|
export type CompleteDashboardOAuthFlowResponses = {
|
|
@@ -3126,19 +1858,19 @@ export type InitiateDashboardOAuthFlowErrors = {
|
|
|
3126
1858
|
/**
|
|
3127
1859
|
* Invalid request parameters
|
|
3128
1860
|
*/
|
|
3129
|
-
400:
|
|
1861
|
+
400: BodhiApiError;
|
|
3130
1862
|
/**
|
|
3131
1863
|
* Not authenticated
|
|
3132
1864
|
*/
|
|
3133
|
-
401:
|
|
1865
|
+
401: BodhiApiError;
|
|
3134
1866
|
/**
|
|
3135
1867
|
* Insufficient permissions
|
|
3136
1868
|
*/
|
|
3137
|
-
403:
|
|
1869
|
+
403: BodhiApiError;
|
|
3138
1870
|
/**
|
|
3139
1871
|
* Internal server error
|
|
3140
1872
|
*/
|
|
3141
|
-
500:
|
|
1873
|
+
500: BodhiApiError;
|
|
3142
1874
|
};
|
|
3143
1875
|
export type InitiateDashboardOAuthFlowError = InitiateDashboardOAuthFlowErrors[keyof InitiateDashboardOAuthFlowErrors];
|
|
3144
1876
|
export type InitiateDashboardOAuthFlowResponses = {
|
|
@@ -3165,19 +1897,19 @@ export type InitiateOAuthFlowErrors = {
|
|
|
3165
1897
|
/**
|
|
3166
1898
|
* Invalid request parameters
|
|
3167
1899
|
*/
|
|
3168
|
-
400:
|
|
1900
|
+
400: BodhiApiError;
|
|
3169
1901
|
/**
|
|
3170
1902
|
* Not authenticated
|
|
3171
1903
|
*/
|
|
3172
|
-
401:
|
|
1904
|
+
401: BodhiApiError;
|
|
3173
1905
|
/**
|
|
3174
1906
|
* Insufficient permissions
|
|
3175
1907
|
*/
|
|
3176
|
-
403:
|
|
1908
|
+
403: BodhiApiError;
|
|
3177
1909
|
/**
|
|
3178
1910
|
* Internal server error
|
|
3179
1911
|
*/
|
|
3180
|
-
500:
|
|
1912
|
+
500: BodhiApiError;
|
|
3181
1913
|
};
|
|
3182
1914
|
export type InitiateOAuthFlowError = InitiateOAuthFlowErrors[keyof InitiateOAuthFlowErrors];
|
|
3183
1915
|
export type InitiateOAuthFlowResponses = {
|
|
@@ -3201,11 +1933,11 @@ export type GetAppInfoErrors = {
|
|
|
3201
1933
|
/**
|
|
3202
1934
|
* Invalid request parameters
|
|
3203
1935
|
*/
|
|
3204
|
-
400:
|
|
1936
|
+
400: BodhiApiError;
|
|
3205
1937
|
/**
|
|
3206
1938
|
* Internal server error
|
|
3207
1939
|
*/
|
|
3208
|
-
500:
|
|
1940
|
+
500: BodhiApiError;
|
|
3209
1941
|
};
|
|
3210
1942
|
export type GetAppInfoError = GetAppInfoErrors[keyof GetAppInfoErrors];
|
|
3211
1943
|
export type GetAppInfoResponses = {
|
|
@@ -3225,19 +1957,19 @@ export type LogoutUserErrors = {
|
|
|
3225
1957
|
/**
|
|
3226
1958
|
* Invalid request parameters
|
|
3227
1959
|
*/
|
|
3228
|
-
400:
|
|
1960
|
+
400: BodhiApiError;
|
|
3229
1961
|
/**
|
|
3230
1962
|
* Not authenticated
|
|
3231
1963
|
*/
|
|
3232
|
-
401:
|
|
1964
|
+
401: BodhiApiError;
|
|
3233
1965
|
/**
|
|
3234
1966
|
* Insufficient permissions
|
|
3235
1967
|
*/
|
|
3236
|
-
403:
|
|
1968
|
+
403: BodhiApiError;
|
|
3237
1969
|
/**
|
|
3238
1970
|
* Internal server error
|
|
3239
1971
|
*/
|
|
3240
|
-
500:
|
|
1972
|
+
500: BodhiApiError;
|
|
3241
1973
|
};
|
|
3242
1974
|
export type LogoutUserError = LogoutUserErrors[keyof LogoutUserErrors];
|
|
3243
1975
|
export type LogoutUserResponses = {
|
|
@@ -3257,19 +1989,19 @@ export type ListMcpsErrors = {
|
|
|
3257
1989
|
/**
|
|
3258
1990
|
* Invalid request parameters
|
|
3259
1991
|
*/
|
|
3260
|
-
400:
|
|
1992
|
+
400: BodhiApiError;
|
|
3261
1993
|
/**
|
|
3262
1994
|
* Not authenticated
|
|
3263
1995
|
*/
|
|
3264
|
-
401:
|
|
1996
|
+
401: BodhiApiError;
|
|
3265
1997
|
/**
|
|
3266
1998
|
* Insufficient permissions
|
|
3267
1999
|
*/
|
|
3268
|
-
403:
|
|
2000
|
+
403: BodhiApiError;
|
|
3269
2001
|
/**
|
|
3270
2002
|
* Internal server error
|
|
3271
2003
|
*/
|
|
3272
|
-
500:
|
|
2004
|
+
500: BodhiApiError;
|
|
3273
2005
|
};
|
|
3274
2006
|
export type ListMcpsError = ListMcpsErrors[keyof ListMcpsErrors];
|
|
3275
2007
|
export type ListMcpsResponses = {
|
|
@@ -3289,19 +2021,19 @@ export type CreateMcpErrors = {
|
|
|
3289
2021
|
/**
|
|
3290
2022
|
* Invalid request parameters
|
|
3291
2023
|
*/
|
|
3292
|
-
400:
|
|
2024
|
+
400: BodhiApiError;
|
|
3293
2025
|
/**
|
|
3294
2026
|
* Not authenticated
|
|
3295
2027
|
*/
|
|
3296
|
-
401:
|
|
2028
|
+
401: BodhiApiError;
|
|
3297
2029
|
/**
|
|
3298
2030
|
* Insufficient permissions
|
|
3299
2031
|
*/
|
|
3300
|
-
403:
|
|
2032
|
+
403: BodhiApiError;
|
|
3301
2033
|
/**
|
|
3302
2034
|
* Internal server error
|
|
3303
2035
|
*/
|
|
3304
|
-
500:
|
|
2036
|
+
500: BodhiApiError;
|
|
3305
2037
|
};
|
|
3306
2038
|
export type CreateMcpError = CreateMcpErrors[keyof CreateMcpErrors];
|
|
3307
2039
|
export type CreateMcpResponses = {
|
|
@@ -3323,19 +2055,19 @@ export type ListMcpAuthConfigsErrors = {
|
|
|
3323
2055
|
/**
|
|
3324
2056
|
* Invalid request parameters
|
|
3325
2057
|
*/
|
|
3326
|
-
400:
|
|
2058
|
+
400: BodhiApiError;
|
|
3327
2059
|
/**
|
|
3328
2060
|
* Not authenticated
|
|
3329
2061
|
*/
|
|
3330
|
-
401:
|
|
2062
|
+
401: BodhiApiError;
|
|
3331
2063
|
/**
|
|
3332
2064
|
* Insufficient permissions
|
|
3333
2065
|
*/
|
|
3334
|
-
403:
|
|
2066
|
+
403: BodhiApiError;
|
|
3335
2067
|
/**
|
|
3336
2068
|
* Internal server error
|
|
3337
2069
|
*/
|
|
3338
|
-
500:
|
|
2070
|
+
500: BodhiApiError;
|
|
3339
2071
|
};
|
|
3340
2072
|
export type ListMcpAuthConfigsError = ListMcpAuthConfigsErrors[keyof ListMcpAuthConfigsErrors];
|
|
3341
2073
|
export type ListMcpAuthConfigsResponses = {
|
|
@@ -3355,19 +2087,19 @@ export type CreateMcpAuthConfigErrors = {
|
|
|
3355
2087
|
/**
|
|
3356
2088
|
* Invalid request parameters
|
|
3357
2089
|
*/
|
|
3358
|
-
400:
|
|
2090
|
+
400: BodhiApiError;
|
|
3359
2091
|
/**
|
|
3360
2092
|
* Not authenticated
|
|
3361
2093
|
*/
|
|
3362
|
-
401:
|
|
2094
|
+
401: BodhiApiError;
|
|
3363
2095
|
/**
|
|
3364
2096
|
* Insufficient permissions
|
|
3365
2097
|
*/
|
|
3366
|
-
403:
|
|
2098
|
+
403: BodhiApiError;
|
|
3367
2099
|
/**
|
|
3368
2100
|
* Internal server error
|
|
3369
2101
|
*/
|
|
3370
|
-
500:
|
|
2102
|
+
500: BodhiApiError;
|
|
3371
2103
|
};
|
|
3372
2104
|
export type CreateMcpAuthConfigError = CreateMcpAuthConfigErrors[keyof CreateMcpAuthConfigErrors];
|
|
3373
2105
|
export type CreateMcpAuthConfigResponses = {
|
|
@@ -3392,15 +2124,15 @@ export type DeleteMcpAuthConfigErrors = {
|
|
|
3392
2124
|
/**
|
|
3393
2125
|
* Invalid request parameters
|
|
3394
2126
|
*/
|
|
3395
|
-
400:
|
|
2127
|
+
400: BodhiApiError;
|
|
3396
2128
|
/**
|
|
3397
2129
|
* Not authenticated
|
|
3398
2130
|
*/
|
|
3399
|
-
401:
|
|
2131
|
+
401: BodhiApiError;
|
|
3400
2132
|
/**
|
|
3401
2133
|
* Insufficient permissions
|
|
3402
2134
|
*/
|
|
3403
|
-
403:
|
|
2135
|
+
403: BodhiApiError;
|
|
3404
2136
|
/**
|
|
3405
2137
|
* Not found
|
|
3406
2138
|
*/
|
|
@@ -3408,7 +2140,7 @@ export type DeleteMcpAuthConfigErrors = {
|
|
|
3408
2140
|
/**
|
|
3409
2141
|
* Internal server error
|
|
3410
2142
|
*/
|
|
3411
|
-
500:
|
|
2143
|
+
500: BodhiApiError;
|
|
3412
2144
|
};
|
|
3413
2145
|
export type DeleteMcpAuthConfigError = DeleteMcpAuthConfigErrors[keyof DeleteMcpAuthConfigErrors];
|
|
3414
2146
|
export type DeleteMcpAuthConfigResponses = {
|
|
@@ -3433,15 +2165,15 @@ export type GetMcpAuthConfigErrors = {
|
|
|
3433
2165
|
/**
|
|
3434
2166
|
* Invalid request parameters
|
|
3435
2167
|
*/
|
|
3436
|
-
400:
|
|
2168
|
+
400: BodhiApiError;
|
|
3437
2169
|
/**
|
|
3438
2170
|
* Not authenticated
|
|
3439
2171
|
*/
|
|
3440
|
-
401:
|
|
2172
|
+
401: BodhiApiError;
|
|
3441
2173
|
/**
|
|
3442
2174
|
* Insufficient permissions
|
|
3443
2175
|
*/
|
|
3444
|
-
403:
|
|
2176
|
+
403: BodhiApiError;
|
|
3445
2177
|
/**
|
|
3446
2178
|
* Not found
|
|
3447
2179
|
*/
|
|
@@ -3449,7 +2181,7 @@ export type GetMcpAuthConfigErrors = {
|
|
|
3449
2181
|
/**
|
|
3450
2182
|
* Internal server error
|
|
3451
2183
|
*/
|
|
3452
|
-
500:
|
|
2184
|
+
500: BodhiApiError;
|
|
3453
2185
|
};
|
|
3454
2186
|
export type GetMcpAuthConfigError = GetMcpAuthConfigErrors[keyof GetMcpAuthConfigErrors];
|
|
3455
2187
|
export type GetMcpAuthConfigResponses = {
|
|
@@ -3474,15 +2206,15 @@ export type McpOAuthLoginErrors = {
|
|
|
3474
2206
|
/**
|
|
3475
2207
|
* Invalid request parameters
|
|
3476
2208
|
*/
|
|
3477
|
-
400:
|
|
2209
|
+
400: BodhiApiError;
|
|
3478
2210
|
/**
|
|
3479
2211
|
* Not authenticated
|
|
3480
2212
|
*/
|
|
3481
|
-
401:
|
|
2213
|
+
401: BodhiApiError;
|
|
3482
2214
|
/**
|
|
3483
2215
|
* Insufficient permissions
|
|
3484
2216
|
*/
|
|
3485
|
-
403:
|
|
2217
|
+
403: BodhiApiError;
|
|
3486
2218
|
/**
|
|
3487
2219
|
* Auth config not found
|
|
3488
2220
|
*/
|
|
@@ -3490,7 +2222,7 @@ export type McpOAuthLoginErrors = {
|
|
|
3490
2222
|
/**
|
|
3491
2223
|
* Internal server error
|
|
3492
2224
|
*/
|
|
3493
|
-
500:
|
|
2225
|
+
500: BodhiApiError;
|
|
3494
2226
|
};
|
|
3495
2227
|
export type McpOAuthLoginError = McpOAuthLoginErrors[keyof McpOAuthLoginErrors];
|
|
3496
2228
|
export type McpOAuthLoginResponses = {
|
|
@@ -3515,15 +2247,15 @@ export type McpOAuthTokenExchangeErrors = {
|
|
|
3515
2247
|
/**
|
|
3516
2248
|
* Invalid request parameters
|
|
3517
2249
|
*/
|
|
3518
|
-
400:
|
|
2250
|
+
400: BodhiApiError;
|
|
3519
2251
|
/**
|
|
3520
2252
|
* Not authenticated
|
|
3521
2253
|
*/
|
|
3522
|
-
401:
|
|
2254
|
+
401: BodhiApiError;
|
|
3523
2255
|
/**
|
|
3524
2256
|
* Insufficient permissions
|
|
3525
2257
|
*/
|
|
3526
|
-
403:
|
|
2258
|
+
403: BodhiApiError;
|
|
3527
2259
|
/**
|
|
3528
2260
|
* Auth config not found
|
|
3529
2261
|
*/
|
|
@@ -3531,7 +2263,7 @@ export type McpOAuthTokenExchangeErrors = {
|
|
|
3531
2263
|
/**
|
|
3532
2264
|
* Internal server error
|
|
3533
2265
|
*/
|
|
3534
|
-
500:
|
|
2266
|
+
500: BodhiApiError;
|
|
3535
2267
|
};
|
|
3536
2268
|
export type McpOAuthTokenExchangeError = McpOAuthTokenExchangeErrors[keyof McpOAuthTokenExchangeErrors];
|
|
3537
2269
|
export type McpOAuthTokenExchangeResponses = {
|
|
@@ -3556,15 +2288,15 @@ export type DeleteMcpOAuthTokenErrors = {
|
|
|
3556
2288
|
/**
|
|
3557
2289
|
* Invalid request parameters
|
|
3558
2290
|
*/
|
|
3559
|
-
400:
|
|
2291
|
+
400: BodhiApiError;
|
|
3560
2292
|
/**
|
|
3561
2293
|
* Not authenticated
|
|
3562
2294
|
*/
|
|
3563
|
-
401:
|
|
2295
|
+
401: BodhiApiError;
|
|
3564
2296
|
/**
|
|
3565
2297
|
* Insufficient permissions
|
|
3566
2298
|
*/
|
|
3567
|
-
403:
|
|
2299
|
+
403: BodhiApiError;
|
|
3568
2300
|
/**
|
|
3569
2301
|
* Not found
|
|
3570
2302
|
*/
|
|
@@ -3572,7 +2304,7 @@ export type DeleteMcpOAuthTokenErrors = {
|
|
|
3572
2304
|
/**
|
|
3573
2305
|
* Internal server error
|
|
3574
2306
|
*/
|
|
3575
|
-
500:
|
|
2307
|
+
500: BodhiApiError;
|
|
3576
2308
|
};
|
|
3577
2309
|
export type DeleteMcpOAuthTokenError = DeleteMcpOAuthTokenErrors[keyof DeleteMcpOAuthTokenErrors];
|
|
3578
2310
|
export type DeleteMcpOAuthTokenResponses = {
|
|
@@ -3597,15 +2329,15 @@ export type GetMcpOAuthTokenErrors = {
|
|
|
3597
2329
|
/**
|
|
3598
2330
|
* Invalid request parameters
|
|
3599
2331
|
*/
|
|
3600
|
-
400:
|
|
2332
|
+
400: BodhiApiError;
|
|
3601
2333
|
/**
|
|
3602
2334
|
* Not authenticated
|
|
3603
2335
|
*/
|
|
3604
|
-
401:
|
|
2336
|
+
401: BodhiApiError;
|
|
3605
2337
|
/**
|
|
3606
2338
|
* Insufficient permissions
|
|
3607
2339
|
*/
|
|
3608
|
-
403:
|
|
2340
|
+
403: BodhiApiError;
|
|
3609
2341
|
/**
|
|
3610
2342
|
* Not found
|
|
3611
2343
|
*/
|
|
@@ -3613,7 +2345,7 @@ export type GetMcpOAuthTokenErrors = {
|
|
|
3613
2345
|
/**
|
|
3614
2346
|
* Internal server error
|
|
3615
2347
|
*/
|
|
3616
|
-
500:
|
|
2348
|
+
500: BodhiApiError;
|
|
3617
2349
|
};
|
|
3618
2350
|
export type GetMcpOAuthTokenError = GetMcpOAuthTokenErrors[keyof GetMcpOAuthTokenErrors];
|
|
3619
2351
|
export type GetMcpOAuthTokenResponses = {
|
|
@@ -3633,19 +2365,19 @@ export type McpOAuthDiscoverAsErrors = {
|
|
|
3633
2365
|
/**
|
|
3634
2366
|
* Invalid request parameters
|
|
3635
2367
|
*/
|
|
3636
|
-
400:
|
|
2368
|
+
400: BodhiApiError;
|
|
3637
2369
|
/**
|
|
3638
2370
|
* Not authenticated
|
|
3639
2371
|
*/
|
|
3640
|
-
401:
|
|
2372
|
+
401: BodhiApiError;
|
|
3641
2373
|
/**
|
|
3642
2374
|
* Insufficient permissions
|
|
3643
2375
|
*/
|
|
3644
|
-
403:
|
|
2376
|
+
403: BodhiApiError;
|
|
3645
2377
|
/**
|
|
3646
2378
|
* Internal server error
|
|
3647
2379
|
*/
|
|
3648
|
-
500:
|
|
2380
|
+
500: BodhiApiError;
|
|
3649
2381
|
};
|
|
3650
2382
|
export type McpOAuthDiscoverAsError = McpOAuthDiscoverAsErrors[keyof McpOAuthDiscoverAsErrors];
|
|
3651
2383
|
export type McpOAuthDiscoverAsResponses = {
|
|
@@ -3665,19 +2397,19 @@ export type McpOAuthDiscoverMcpErrors = {
|
|
|
3665
2397
|
/**
|
|
3666
2398
|
* Invalid request parameters
|
|
3667
2399
|
*/
|
|
3668
|
-
400:
|
|
2400
|
+
400: BodhiApiError;
|
|
3669
2401
|
/**
|
|
3670
2402
|
* Not authenticated
|
|
3671
2403
|
*/
|
|
3672
|
-
401:
|
|
2404
|
+
401: BodhiApiError;
|
|
3673
2405
|
/**
|
|
3674
2406
|
* Insufficient permissions
|
|
3675
2407
|
*/
|
|
3676
|
-
403:
|
|
2408
|
+
403: BodhiApiError;
|
|
3677
2409
|
/**
|
|
3678
2410
|
* Internal server error
|
|
3679
2411
|
*/
|
|
3680
|
-
500:
|
|
2412
|
+
500: BodhiApiError;
|
|
3681
2413
|
};
|
|
3682
2414
|
export type McpOAuthDiscoverMcpError = McpOAuthDiscoverMcpErrors[keyof McpOAuthDiscoverMcpErrors];
|
|
3683
2415
|
export type McpOAuthDiscoverMcpResponses = {
|
|
@@ -3697,19 +2429,19 @@ export type McpOAuthDynamicRegisterStandaloneErrors = {
|
|
|
3697
2429
|
/**
|
|
3698
2430
|
* Invalid request parameters
|
|
3699
2431
|
*/
|
|
3700
|
-
400:
|
|
2432
|
+
400: BodhiApiError;
|
|
3701
2433
|
/**
|
|
3702
2434
|
* Not authenticated
|
|
3703
2435
|
*/
|
|
3704
|
-
401:
|
|
2436
|
+
401: BodhiApiError;
|
|
3705
2437
|
/**
|
|
3706
2438
|
* Insufficient permissions
|
|
3707
2439
|
*/
|
|
3708
|
-
403:
|
|
2440
|
+
403: BodhiApiError;
|
|
3709
2441
|
/**
|
|
3710
2442
|
* Internal server error
|
|
3711
2443
|
*/
|
|
3712
|
-
500:
|
|
2444
|
+
500: BodhiApiError;
|
|
3713
2445
|
};
|
|
3714
2446
|
export type McpOAuthDynamicRegisterStandaloneError = McpOAuthDynamicRegisterStandaloneErrors[keyof McpOAuthDynamicRegisterStandaloneErrors];
|
|
3715
2447
|
export type McpOAuthDynamicRegisterStandaloneResponses = {
|
|
@@ -3734,19 +2466,19 @@ export type ListMcpServersErrors = {
|
|
|
3734
2466
|
/**
|
|
3735
2467
|
* Invalid request parameters
|
|
3736
2468
|
*/
|
|
3737
|
-
400:
|
|
2469
|
+
400: BodhiApiError;
|
|
3738
2470
|
/**
|
|
3739
2471
|
* Not authenticated
|
|
3740
2472
|
*/
|
|
3741
|
-
401:
|
|
2473
|
+
401: BodhiApiError;
|
|
3742
2474
|
/**
|
|
3743
2475
|
* Insufficient permissions
|
|
3744
2476
|
*/
|
|
3745
|
-
403:
|
|
2477
|
+
403: BodhiApiError;
|
|
3746
2478
|
/**
|
|
3747
2479
|
* Internal server error
|
|
3748
2480
|
*/
|
|
3749
|
-
500:
|
|
2481
|
+
500: BodhiApiError;
|
|
3750
2482
|
};
|
|
3751
2483
|
export type ListMcpServersError = ListMcpServersErrors[keyof ListMcpServersErrors];
|
|
3752
2484
|
export type ListMcpServersResponses = {
|
|
@@ -3766,15 +2498,15 @@ export type CreateMcpServerErrors = {
|
|
|
3766
2498
|
/**
|
|
3767
2499
|
* Invalid request parameters
|
|
3768
2500
|
*/
|
|
3769
|
-
400:
|
|
2501
|
+
400: BodhiApiError;
|
|
3770
2502
|
/**
|
|
3771
2503
|
* Not authenticated
|
|
3772
2504
|
*/
|
|
3773
|
-
401:
|
|
2505
|
+
401: BodhiApiError;
|
|
3774
2506
|
/**
|
|
3775
2507
|
* Insufficient permissions
|
|
3776
2508
|
*/
|
|
3777
|
-
403:
|
|
2509
|
+
403: BodhiApiError;
|
|
3778
2510
|
/**
|
|
3779
2511
|
* URL already exists
|
|
3780
2512
|
*/
|
|
@@ -3782,7 +2514,7 @@ export type CreateMcpServerErrors = {
|
|
|
3782
2514
|
/**
|
|
3783
2515
|
* Internal server error
|
|
3784
2516
|
*/
|
|
3785
|
-
500:
|
|
2517
|
+
500: BodhiApiError;
|
|
3786
2518
|
};
|
|
3787
2519
|
export type CreateMcpServerError = CreateMcpServerErrors[keyof CreateMcpServerErrors];
|
|
3788
2520
|
export type CreateMcpServerResponses = {
|
|
@@ -3807,15 +2539,15 @@ export type GetMcpServerErrors = {
|
|
|
3807
2539
|
/**
|
|
3808
2540
|
* Invalid request parameters
|
|
3809
2541
|
*/
|
|
3810
|
-
400:
|
|
2542
|
+
400: BodhiApiError;
|
|
3811
2543
|
/**
|
|
3812
2544
|
* Not authenticated
|
|
3813
2545
|
*/
|
|
3814
|
-
401:
|
|
2546
|
+
401: BodhiApiError;
|
|
3815
2547
|
/**
|
|
3816
2548
|
* Insufficient permissions
|
|
3817
2549
|
*/
|
|
3818
|
-
403:
|
|
2550
|
+
403: BodhiApiError;
|
|
3819
2551
|
/**
|
|
3820
2552
|
* Not found
|
|
3821
2553
|
*/
|
|
@@ -3823,7 +2555,7 @@ export type GetMcpServerErrors = {
|
|
|
3823
2555
|
/**
|
|
3824
2556
|
* Internal server error
|
|
3825
2557
|
*/
|
|
3826
|
-
500:
|
|
2558
|
+
500: BodhiApiError;
|
|
3827
2559
|
};
|
|
3828
2560
|
export type GetMcpServerError = GetMcpServerErrors[keyof GetMcpServerErrors];
|
|
3829
2561
|
export type GetMcpServerResponses = {
|
|
@@ -3848,15 +2580,15 @@ export type UpdateMcpServerErrors = {
|
|
|
3848
2580
|
/**
|
|
3849
2581
|
* Invalid request parameters
|
|
3850
2582
|
*/
|
|
3851
|
-
400:
|
|
2583
|
+
400: BodhiApiError;
|
|
3852
2584
|
/**
|
|
3853
2585
|
* Not authenticated
|
|
3854
2586
|
*/
|
|
3855
|
-
401:
|
|
2587
|
+
401: BodhiApiError;
|
|
3856
2588
|
/**
|
|
3857
2589
|
* Insufficient permissions
|
|
3858
2590
|
*/
|
|
3859
|
-
403:
|
|
2591
|
+
403: BodhiApiError;
|
|
3860
2592
|
/**
|
|
3861
2593
|
* Not found
|
|
3862
2594
|
*/
|
|
@@ -3868,7 +2600,7 @@ export type UpdateMcpServerErrors = {
|
|
|
3868
2600
|
/**
|
|
3869
2601
|
* Internal server error
|
|
3870
2602
|
*/
|
|
3871
|
-
500:
|
|
2603
|
+
500: BodhiApiError;
|
|
3872
2604
|
};
|
|
3873
2605
|
export type UpdateMcpServerError = UpdateMcpServerErrors[keyof UpdateMcpServerErrors];
|
|
3874
2606
|
export type UpdateMcpServerResponses = {
|
|
@@ -3893,15 +2625,15 @@ export type DeleteMcpErrors = {
|
|
|
3893
2625
|
/**
|
|
3894
2626
|
* Invalid request parameters
|
|
3895
2627
|
*/
|
|
3896
|
-
400:
|
|
2628
|
+
400: BodhiApiError;
|
|
3897
2629
|
/**
|
|
3898
2630
|
* Not authenticated
|
|
3899
2631
|
*/
|
|
3900
|
-
401:
|
|
2632
|
+
401: BodhiApiError;
|
|
3901
2633
|
/**
|
|
3902
2634
|
* Insufficient permissions
|
|
3903
2635
|
*/
|
|
3904
|
-
403:
|
|
2636
|
+
403: BodhiApiError;
|
|
3905
2637
|
/**
|
|
3906
2638
|
* MCP not found
|
|
3907
2639
|
*/
|
|
@@ -3909,7 +2641,7 @@ export type DeleteMcpErrors = {
|
|
|
3909
2641
|
/**
|
|
3910
2642
|
* Internal server error
|
|
3911
2643
|
*/
|
|
3912
|
-
500:
|
|
2644
|
+
500: BodhiApiError;
|
|
3913
2645
|
};
|
|
3914
2646
|
export type DeleteMcpError = DeleteMcpErrors[keyof DeleteMcpErrors];
|
|
3915
2647
|
export type DeleteMcpResponses = {
|
|
@@ -3934,15 +2666,15 @@ export type GetMcpErrors = {
|
|
|
3934
2666
|
/**
|
|
3935
2667
|
* Invalid request parameters
|
|
3936
2668
|
*/
|
|
3937
|
-
400:
|
|
2669
|
+
400: BodhiApiError;
|
|
3938
2670
|
/**
|
|
3939
2671
|
* Not authenticated
|
|
3940
2672
|
*/
|
|
3941
|
-
401:
|
|
2673
|
+
401: BodhiApiError;
|
|
3942
2674
|
/**
|
|
3943
2675
|
* Insufficient permissions
|
|
3944
2676
|
*/
|
|
3945
|
-
403:
|
|
2677
|
+
403: BodhiApiError;
|
|
3946
2678
|
/**
|
|
3947
2679
|
* MCP not found
|
|
3948
2680
|
*/
|
|
@@ -3950,7 +2682,7 @@ export type GetMcpErrors = {
|
|
|
3950
2682
|
/**
|
|
3951
2683
|
* Internal server error
|
|
3952
2684
|
*/
|
|
3953
|
-
500:
|
|
2685
|
+
500: BodhiApiError;
|
|
3954
2686
|
};
|
|
3955
2687
|
export type GetMcpError = GetMcpErrors[keyof GetMcpErrors];
|
|
3956
2688
|
export type GetMcpResponses = {
|
|
@@ -3975,15 +2707,15 @@ export type UpdateMcpErrors = {
|
|
|
3975
2707
|
/**
|
|
3976
2708
|
* Invalid request parameters
|
|
3977
2709
|
*/
|
|
3978
|
-
400:
|
|
2710
|
+
400: BodhiApiError;
|
|
3979
2711
|
/**
|
|
3980
2712
|
* Not authenticated
|
|
3981
2713
|
*/
|
|
3982
|
-
401:
|
|
2714
|
+
401: BodhiApiError;
|
|
3983
2715
|
/**
|
|
3984
2716
|
* Insufficient permissions
|
|
3985
2717
|
*/
|
|
3986
|
-
403:
|
|
2718
|
+
403: BodhiApiError;
|
|
3987
2719
|
/**
|
|
3988
2720
|
* MCP not found
|
|
3989
2721
|
*/
|
|
@@ -3991,7 +2723,7 @@ export type UpdateMcpErrors = {
|
|
|
3991
2723
|
/**
|
|
3992
2724
|
* Internal server error
|
|
3993
2725
|
*/
|
|
3994
|
-
500:
|
|
2726
|
+
500: BodhiApiError;
|
|
3995
2727
|
};
|
|
3996
2728
|
export type UpdateMcpError = UpdateMcpErrors[keyof UpdateMcpErrors];
|
|
3997
2729
|
export type UpdateMcpResponses = {
|
|
@@ -4028,19 +2760,19 @@ export type ListAllModelsErrors = {
|
|
|
4028
2760
|
/**
|
|
4029
2761
|
* Invalid request parameters
|
|
4030
2762
|
*/
|
|
4031
|
-
400:
|
|
2763
|
+
400: BodhiApiError;
|
|
4032
2764
|
/**
|
|
4033
2765
|
* Not authenticated
|
|
4034
2766
|
*/
|
|
4035
|
-
401:
|
|
2767
|
+
401: BodhiApiError;
|
|
4036
2768
|
/**
|
|
4037
2769
|
* Insufficient permissions
|
|
4038
2770
|
*/
|
|
4039
|
-
403:
|
|
2771
|
+
403: BodhiApiError;
|
|
4040
2772
|
/**
|
|
4041
2773
|
* Internal server error
|
|
4042
2774
|
*/
|
|
4043
|
-
500:
|
|
2775
|
+
500: BodhiApiError;
|
|
4044
2776
|
};
|
|
4045
2777
|
export type ListAllModelsError = ListAllModelsErrors[keyof ListAllModelsErrors];
|
|
4046
2778
|
export type ListAllModelsResponses = {
|
|
@@ -4060,19 +2792,19 @@ export type ModelsAliasCreateErrors = {
|
|
|
4060
2792
|
/**
|
|
4061
2793
|
* Invalid request parameters
|
|
4062
2794
|
*/
|
|
4063
|
-
400:
|
|
2795
|
+
400: BodhiApiError;
|
|
4064
2796
|
/**
|
|
4065
2797
|
* Not authenticated
|
|
4066
2798
|
*/
|
|
4067
|
-
401:
|
|
2799
|
+
401: BodhiApiError;
|
|
4068
2800
|
/**
|
|
4069
2801
|
* Insufficient permissions
|
|
4070
2802
|
*/
|
|
4071
|
-
403:
|
|
2803
|
+
403: BodhiApiError;
|
|
4072
2804
|
/**
|
|
4073
2805
|
* Internal server error
|
|
4074
2806
|
*/
|
|
4075
|
-
500:
|
|
2807
|
+
500: BodhiApiError;
|
|
4076
2808
|
};
|
|
4077
2809
|
export type ModelsAliasCreateError = ModelsAliasCreateErrors[keyof ModelsAliasCreateErrors];
|
|
4078
2810
|
export type ModelsAliasCreateResponses = {
|
|
@@ -4097,15 +2829,15 @@ export type ModelsAliasDestroyErrors = {
|
|
|
4097
2829
|
/**
|
|
4098
2830
|
* Invalid request parameters
|
|
4099
2831
|
*/
|
|
4100
|
-
400:
|
|
2832
|
+
400: BodhiApiError;
|
|
4101
2833
|
/**
|
|
4102
2834
|
* Not authenticated
|
|
4103
2835
|
*/
|
|
4104
|
-
401:
|
|
2836
|
+
401: BodhiApiError;
|
|
4105
2837
|
/**
|
|
4106
2838
|
* Insufficient permissions
|
|
4107
2839
|
*/
|
|
4108
|
-
403:
|
|
2840
|
+
403: BodhiApiError;
|
|
4109
2841
|
/**
|
|
4110
2842
|
* Alias not found
|
|
4111
2843
|
*/
|
|
@@ -4113,7 +2845,7 @@ export type ModelsAliasDestroyErrors = {
|
|
|
4113
2845
|
/**
|
|
4114
2846
|
* Internal server error
|
|
4115
2847
|
*/
|
|
4116
|
-
500:
|
|
2848
|
+
500: BodhiApiError;
|
|
4117
2849
|
};
|
|
4118
2850
|
export type ModelsAliasDestroyError = ModelsAliasDestroyErrors[keyof ModelsAliasDestroyErrors];
|
|
4119
2851
|
export type ModelsAliasDestroyResponses = {
|
|
@@ -4137,19 +2869,19 @@ export type ModelsAliasUpdateErrors = {
|
|
|
4137
2869
|
/**
|
|
4138
2870
|
* Invalid request parameters
|
|
4139
2871
|
*/
|
|
4140
|
-
400:
|
|
2872
|
+
400: BodhiApiError;
|
|
4141
2873
|
/**
|
|
4142
2874
|
* Not authenticated
|
|
4143
2875
|
*/
|
|
4144
|
-
401:
|
|
2876
|
+
401: BodhiApiError;
|
|
4145
2877
|
/**
|
|
4146
2878
|
* Insufficient permissions
|
|
4147
2879
|
*/
|
|
4148
|
-
403:
|
|
2880
|
+
403: BodhiApiError;
|
|
4149
2881
|
/**
|
|
4150
2882
|
* Internal server error
|
|
4151
2883
|
*/
|
|
4152
|
-
500:
|
|
2884
|
+
500: BodhiApiError;
|
|
4153
2885
|
};
|
|
4154
2886
|
export type ModelsAliasUpdateError = ModelsAliasUpdateErrors[keyof ModelsAliasUpdateErrors];
|
|
4155
2887
|
export type ModelsAliasUpdateResponses = {
|
|
@@ -4174,15 +2906,15 @@ export type ModelsAliasCopyErrors = {
|
|
|
4174
2906
|
/**
|
|
4175
2907
|
* Invalid request parameters
|
|
4176
2908
|
*/
|
|
4177
|
-
400:
|
|
2909
|
+
400: BodhiApiError;
|
|
4178
2910
|
/**
|
|
4179
2911
|
* Not authenticated
|
|
4180
2912
|
*/
|
|
4181
|
-
401:
|
|
2913
|
+
401: BodhiApiError;
|
|
4182
2914
|
/**
|
|
4183
2915
|
* Insufficient permissions
|
|
4184
2916
|
*/
|
|
4185
|
-
403:
|
|
2917
|
+
403: BodhiApiError;
|
|
4186
2918
|
/**
|
|
4187
2919
|
* Source alias not found
|
|
4188
2920
|
*/
|
|
@@ -4190,7 +2922,7 @@ export type ModelsAliasCopyErrors = {
|
|
|
4190
2922
|
/**
|
|
4191
2923
|
* Internal server error
|
|
4192
2924
|
*/
|
|
4193
|
-
500:
|
|
2925
|
+
500: BodhiApiError;
|
|
4194
2926
|
};
|
|
4195
2927
|
export type ModelsAliasCopyError = ModelsAliasCopyErrors[keyof ModelsAliasCopyErrors];
|
|
4196
2928
|
export type ModelsAliasCopyResponses = {
|
|
@@ -4210,23 +2942,23 @@ export type CreateApiModelErrors = {
|
|
|
4210
2942
|
/**
|
|
4211
2943
|
* Invalid request parameters
|
|
4212
2944
|
*/
|
|
4213
|
-
400:
|
|
2945
|
+
400: BodhiApiError;
|
|
4214
2946
|
/**
|
|
4215
2947
|
* Not authenticated
|
|
4216
2948
|
*/
|
|
4217
|
-
401:
|
|
2949
|
+
401: BodhiApiError;
|
|
4218
2950
|
/**
|
|
4219
2951
|
* Insufficient permissions
|
|
4220
2952
|
*/
|
|
4221
|
-
403:
|
|
2953
|
+
403: BodhiApiError;
|
|
4222
2954
|
/**
|
|
4223
2955
|
* Alias already exists
|
|
4224
2956
|
*/
|
|
4225
|
-
409:
|
|
2957
|
+
409: BodhiApiError;
|
|
4226
2958
|
/**
|
|
4227
2959
|
* Internal server error
|
|
4228
2960
|
*/
|
|
4229
|
-
500:
|
|
2961
|
+
500: BodhiApiError;
|
|
4230
2962
|
};
|
|
4231
2963
|
export type CreateApiModelError = CreateApiModelErrors[keyof CreateApiModelErrors];
|
|
4232
2964
|
export type CreateApiModelResponses = {
|
|
@@ -4246,19 +2978,19 @@ export type FetchApiModelsErrors = {
|
|
|
4246
2978
|
/**
|
|
4247
2979
|
* Invalid request parameters
|
|
4248
2980
|
*/
|
|
4249
|
-
400:
|
|
2981
|
+
400: BodhiApiError;
|
|
4250
2982
|
/**
|
|
4251
2983
|
* Not authenticated
|
|
4252
2984
|
*/
|
|
4253
|
-
401:
|
|
2985
|
+
401: BodhiApiError;
|
|
4254
2986
|
/**
|
|
4255
2987
|
* Insufficient permissions
|
|
4256
2988
|
*/
|
|
4257
|
-
403:
|
|
2989
|
+
403: BodhiApiError;
|
|
4258
2990
|
/**
|
|
4259
2991
|
* Internal server error
|
|
4260
2992
|
*/
|
|
4261
|
-
500:
|
|
2993
|
+
500: BodhiApiError;
|
|
4262
2994
|
};
|
|
4263
2995
|
export type FetchApiModelsError = FetchApiModelsErrors[keyof FetchApiModelsErrors];
|
|
4264
2996
|
export type FetchApiModelsResponses = {
|
|
@@ -4278,19 +3010,19 @@ export type GetApiFormatsErrors = {
|
|
|
4278
3010
|
/**
|
|
4279
3011
|
* Invalid request parameters
|
|
4280
3012
|
*/
|
|
4281
|
-
400:
|
|
3013
|
+
400: BodhiApiError;
|
|
4282
3014
|
/**
|
|
4283
3015
|
* Not authenticated
|
|
4284
3016
|
*/
|
|
4285
|
-
401:
|
|
3017
|
+
401: BodhiApiError;
|
|
4286
3018
|
/**
|
|
4287
3019
|
* Insufficient permissions
|
|
4288
3020
|
*/
|
|
4289
|
-
403:
|
|
3021
|
+
403: BodhiApiError;
|
|
4290
3022
|
/**
|
|
4291
3023
|
* Internal server error
|
|
4292
3024
|
*/
|
|
4293
|
-
500:
|
|
3025
|
+
500: BodhiApiError;
|
|
4294
3026
|
};
|
|
4295
3027
|
export type GetApiFormatsError = GetApiFormatsErrors[keyof GetApiFormatsErrors];
|
|
4296
3028
|
export type GetApiFormatsResponses = {
|
|
@@ -4310,19 +3042,19 @@ export type TestApiModelErrors = {
|
|
|
4310
3042
|
/**
|
|
4311
3043
|
* Invalid request parameters
|
|
4312
3044
|
*/
|
|
4313
|
-
400:
|
|
3045
|
+
400: BodhiApiError;
|
|
4314
3046
|
/**
|
|
4315
3047
|
* Not authenticated
|
|
4316
3048
|
*/
|
|
4317
|
-
401:
|
|
3049
|
+
401: BodhiApiError;
|
|
4318
3050
|
/**
|
|
4319
3051
|
* Insufficient permissions
|
|
4320
3052
|
*/
|
|
4321
|
-
403:
|
|
3053
|
+
403: BodhiApiError;
|
|
4322
3054
|
/**
|
|
4323
3055
|
* Internal server error
|
|
4324
3056
|
*/
|
|
4325
|
-
500:
|
|
3057
|
+
500: BodhiApiError;
|
|
4326
3058
|
};
|
|
4327
3059
|
export type TestApiModelError = TestApiModelErrors[keyof TestApiModelErrors];
|
|
4328
3060
|
export type TestApiModelResponses = {
|
|
@@ -4347,23 +3079,23 @@ export type DeleteApiModelErrors = {
|
|
|
4347
3079
|
/**
|
|
4348
3080
|
* Invalid request parameters
|
|
4349
3081
|
*/
|
|
4350
|
-
400:
|
|
3082
|
+
400: BodhiApiError;
|
|
4351
3083
|
/**
|
|
4352
3084
|
* Not authenticated
|
|
4353
3085
|
*/
|
|
4354
|
-
401:
|
|
3086
|
+
401: BodhiApiError;
|
|
4355
3087
|
/**
|
|
4356
3088
|
* Insufficient permissions
|
|
4357
3089
|
*/
|
|
4358
|
-
403:
|
|
3090
|
+
403: BodhiApiError;
|
|
4359
3091
|
/**
|
|
4360
3092
|
* API model not found
|
|
4361
3093
|
*/
|
|
4362
|
-
404:
|
|
3094
|
+
404: BodhiApiError;
|
|
4363
3095
|
/**
|
|
4364
3096
|
* Internal server error
|
|
4365
3097
|
*/
|
|
4366
|
-
500:
|
|
3098
|
+
500: BodhiApiError;
|
|
4367
3099
|
};
|
|
4368
3100
|
export type DeleteApiModelError = DeleteApiModelErrors[keyof DeleteApiModelErrors];
|
|
4369
3101
|
export type DeleteApiModelResponses = {
|
|
@@ -4388,23 +3120,23 @@ export type GetApiModelErrors = {
|
|
|
4388
3120
|
/**
|
|
4389
3121
|
* Invalid request parameters
|
|
4390
3122
|
*/
|
|
4391
|
-
400:
|
|
3123
|
+
400: BodhiApiError;
|
|
4392
3124
|
/**
|
|
4393
3125
|
* Not authenticated
|
|
4394
3126
|
*/
|
|
4395
|
-
401:
|
|
3127
|
+
401: BodhiApiError;
|
|
4396
3128
|
/**
|
|
4397
3129
|
* Insufficient permissions
|
|
4398
3130
|
*/
|
|
4399
|
-
403:
|
|
3131
|
+
403: BodhiApiError;
|
|
4400
3132
|
/**
|
|
4401
3133
|
* API model with specified ID not found
|
|
4402
3134
|
*/
|
|
4403
|
-
404:
|
|
3135
|
+
404: BodhiApiError;
|
|
4404
3136
|
/**
|
|
4405
3137
|
* Internal server error
|
|
4406
3138
|
*/
|
|
4407
|
-
500:
|
|
3139
|
+
500: BodhiApiError;
|
|
4408
3140
|
};
|
|
4409
3141
|
export type GetApiModelError = GetApiModelErrors[keyof GetApiModelErrors];
|
|
4410
3142
|
export type GetApiModelResponses = {
|
|
@@ -4429,23 +3161,23 @@ export type UpdateApiModelErrors = {
|
|
|
4429
3161
|
/**
|
|
4430
3162
|
* Invalid request parameters
|
|
4431
3163
|
*/
|
|
4432
|
-
400:
|
|
3164
|
+
400: BodhiApiError;
|
|
4433
3165
|
/**
|
|
4434
3166
|
* Not authenticated
|
|
4435
3167
|
*/
|
|
4436
|
-
401:
|
|
3168
|
+
401: BodhiApiError;
|
|
4437
3169
|
/**
|
|
4438
3170
|
* Insufficient permissions
|
|
4439
3171
|
*/
|
|
4440
|
-
403:
|
|
3172
|
+
403: BodhiApiError;
|
|
4441
3173
|
/**
|
|
4442
3174
|
* API model not found
|
|
4443
3175
|
*/
|
|
4444
|
-
404:
|
|
3176
|
+
404: BodhiApiError;
|
|
4445
3177
|
/**
|
|
4446
3178
|
* Internal server error
|
|
4447
3179
|
*/
|
|
4448
|
-
500:
|
|
3180
|
+
500: BodhiApiError;
|
|
4449
3181
|
};
|
|
4450
3182
|
export type UpdateApiModelError = UpdateApiModelErrors[keyof UpdateApiModelErrors];
|
|
4451
3183
|
export type UpdateApiModelResponses = {
|
|
@@ -4470,15 +3202,15 @@ export type SyncModelsErrors = {
|
|
|
4470
3202
|
/**
|
|
4471
3203
|
* Invalid request parameters
|
|
4472
3204
|
*/
|
|
4473
|
-
400:
|
|
3205
|
+
400: BodhiApiError;
|
|
4474
3206
|
/**
|
|
4475
3207
|
* Not authenticated
|
|
4476
3208
|
*/
|
|
4477
|
-
401:
|
|
3209
|
+
401: BodhiApiError;
|
|
4478
3210
|
/**
|
|
4479
3211
|
* Insufficient permissions
|
|
4480
3212
|
*/
|
|
4481
|
-
403:
|
|
3213
|
+
403: BodhiApiError;
|
|
4482
3214
|
/**
|
|
4483
3215
|
* API model not found
|
|
4484
3216
|
*/
|
|
@@ -4486,7 +3218,7 @@ export type SyncModelsErrors = {
|
|
|
4486
3218
|
/**
|
|
4487
3219
|
* Internal server error
|
|
4488
3220
|
*/
|
|
4489
|
-
500:
|
|
3221
|
+
500: BodhiApiError;
|
|
4490
3222
|
};
|
|
4491
3223
|
export type SyncModelsError = SyncModelsErrors[keyof SyncModelsErrors];
|
|
4492
3224
|
export type SyncModelsResponses = {
|
|
@@ -4523,19 +3255,19 @@ export type ListModelFilesErrors = {
|
|
|
4523
3255
|
/**
|
|
4524
3256
|
* Invalid request parameters
|
|
4525
3257
|
*/
|
|
4526
|
-
400:
|
|
3258
|
+
400: BodhiApiError;
|
|
4527
3259
|
/**
|
|
4528
3260
|
* Not authenticated
|
|
4529
3261
|
*/
|
|
4530
|
-
401:
|
|
3262
|
+
401: BodhiApiError;
|
|
4531
3263
|
/**
|
|
4532
3264
|
* Insufficient permissions
|
|
4533
3265
|
*/
|
|
4534
|
-
403:
|
|
3266
|
+
403: BodhiApiError;
|
|
4535
3267
|
/**
|
|
4536
3268
|
* Internal server error
|
|
4537
3269
|
*/
|
|
4538
|
-
500:
|
|
3270
|
+
500: BodhiApiError;
|
|
4539
3271
|
};
|
|
4540
3272
|
export type ListModelFilesError = ListModelFilesErrors[keyof ListModelFilesErrors];
|
|
4541
3273
|
export type ListModelFilesResponses = {
|
|
@@ -4572,19 +3304,19 @@ export type ListDownloadsErrors = {
|
|
|
4572
3304
|
/**
|
|
4573
3305
|
* Invalid request parameters
|
|
4574
3306
|
*/
|
|
4575
|
-
400:
|
|
3307
|
+
400: BodhiApiError;
|
|
4576
3308
|
/**
|
|
4577
3309
|
* Not authenticated
|
|
4578
3310
|
*/
|
|
4579
|
-
401:
|
|
3311
|
+
401: BodhiApiError;
|
|
4580
3312
|
/**
|
|
4581
3313
|
* Insufficient permissions
|
|
4582
3314
|
*/
|
|
4583
|
-
403:
|
|
3315
|
+
403: BodhiApiError;
|
|
4584
3316
|
/**
|
|
4585
3317
|
* Internal server error
|
|
4586
3318
|
*/
|
|
4587
|
-
500:
|
|
3319
|
+
500: BodhiApiError;
|
|
4588
3320
|
};
|
|
4589
3321
|
export type ListDownloadsError = ListDownloadsErrors[keyof ListDownloadsErrors];
|
|
4590
3322
|
export type ListDownloadsResponses = {
|
|
@@ -4607,19 +3339,19 @@ export type PullModelFileErrors = {
|
|
|
4607
3339
|
/**
|
|
4608
3340
|
* Invalid request parameters
|
|
4609
3341
|
*/
|
|
4610
|
-
400:
|
|
3342
|
+
400: BodhiApiError;
|
|
4611
3343
|
/**
|
|
4612
3344
|
* Not authenticated
|
|
4613
3345
|
*/
|
|
4614
|
-
401:
|
|
3346
|
+
401: BodhiApiError;
|
|
4615
3347
|
/**
|
|
4616
3348
|
* Insufficient permissions
|
|
4617
3349
|
*/
|
|
4618
|
-
403:
|
|
3350
|
+
403: BodhiApiError;
|
|
4619
3351
|
/**
|
|
4620
3352
|
* Internal server error
|
|
4621
3353
|
*/
|
|
4622
|
-
500:
|
|
3354
|
+
500: BodhiApiError;
|
|
4623
3355
|
};
|
|
4624
3356
|
export type PullModelFileError = PullModelFileErrors[keyof PullModelFileErrors];
|
|
4625
3357
|
export type PullModelFileResponses = {
|
|
@@ -4648,23 +3380,23 @@ export type GetDownloadStatusErrors = {
|
|
|
4648
3380
|
/**
|
|
4649
3381
|
* Invalid request parameters
|
|
4650
3382
|
*/
|
|
4651
|
-
400:
|
|
3383
|
+
400: BodhiApiError;
|
|
4652
3384
|
/**
|
|
4653
3385
|
* Not authenticated
|
|
4654
3386
|
*/
|
|
4655
|
-
401:
|
|
3387
|
+
401: BodhiApiError;
|
|
4656
3388
|
/**
|
|
4657
3389
|
* Insufficient permissions
|
|
4658
3390
|
*/
|
|
4659
|
-
403:
|
|
3391
|
+
403: BodhiApiError;
|
|
4660
3392
|
/**
|
|
4661
3393
|
* Download request not found
|
|
4662
3394
|
*/
|
|
4663
|
-
404:
|
|
3395
|
+
404: BodhiApiError;
|
|
4664
3396
|
/**
|
|
4665
3397
|
* Internal server error
|
|
4666
3398
|
*/
|
|
4667
|
-
500:
|
|
3399
|
+
500: BodhiApiError;
|
|
4668
3400
|
};
|
|
4669
3401
|
export type GetDownloadStatusError = GetDownloadStatusErrors[keyof GetDownloadStatusErrors];
|
|
4670
3402
|
export type GetDownloadStatusResponses = {
|
|
@@ -4687,15 +3419,15 @@ export type RefreshModelMetadataErrors = {
|
|
|
4687
3419
|
/**
|
|
4688
3420
|
* Invalid request parameters
|
|
4689
3421
|
*/
|
|
4690
|
-
400:
|
|
3422
|
+
400: BodhiApiError;
|
|
4691
3423
|
/**
|
|
4692
3424
|
* Not authenticated
|
|
4693
3425
|
*/
|
|
4694
|
-
401:
|
|
3426
|
+
401: BodhiApiError;
|
|
4695
3427
|
/**
|
|
4696
3428
|
* Insufficient permissions
|
|
4697
3429
|
*/
|
|
4698
|
-
403:
|
|
3430
|
+
403: BodhiApiError;
|
|
4699
3431
|
/**
|
|
4700
3432
|
* Model alias not found for specified repo/filename/snapshot
|
|
4701
3433
|
*/
|
|
@@ -4703,7 +3435,7 @@ export type RefreshModelMetadataErrors = {
|
|
|
4703
3435
|
/**
|
|
4704
3436
|
* Internal server error
|
|
4705
3437
|
*/
|
|
4706
|
-
500:
|
|
3438
|
+
500: BodhiApiError;
|
|
4707
3439
|
};
|
|
4708
3440
|
export type RefreshModelMetadataError = RefreshModelMetadataErrors[keyof RefreshModelMetadataErrors];
|
|
4709
3441
|
export type RefreshModelMetadataResponses = {
|
|
@@ -4732,23 +3464,23 @@ export type GetAliasErrors = {
|
|
|
4732
3464
|
/**
|
|
4733
3465
|
* Invalid request parameters
|
|
4734
3466
|
*/
|
|
4735
|
-
400:
|
|
3467
|
+
400: BodhiApiError;
|
|
4736
3468
|
/**
|
|
4737
3469
|
* Not authenticated
|
|
4738
3470
|
*/
|
|
4739
|
-
401:
|
|
3471
|
+
401: BodhiApiError;
|
|
4740
3472
|
/**
|
|
4741
3473
|
* Insufficient permissions
|
|
4742
3474
|
*/
|
|
4743
|
-
403:
|
|
3475
|
+
403: BodhiApiError;
|
|
4744
3476
|
/**
|
|
4745
3477
|
* Alias not found
|
|
4746
3478
|
*/
|
|
4747
|
-
404:
|
|
3479
|
+
404: BodhiApiError;
|
|
4748
3480
|
/**
|
|
4749
3481
|
* Internal server error
|
|
4750
3482
|
*/
|
|
4751
|
-
500:
|
|
3483
|
+
500: BodhiApiError;
|
|
4752
3484
|
};
|
|
4753
3485
|
export type GetAliasError = GetAliasErrors[keyof GetAliasErrors];
|
|
4754
3486
|
export type GetAliasResponses = {
|
|
@@ -4768,19 +3500,19 @@ export type GetQueueStatusErrors = {
|
|
|
4768
3500
|
/**
|
|
4769
3501
|
* Invalid request parameters
|
|
4770
3502
|
*/
|
|
4771
|
-
400:
|
|
3503
|
+
400: BodhiApiError;
|
|
4772
3504
|
/**
|
|
4773
3505
|
* Not authenticated
|
|
4774
3506
|
*/
|
|
4775
|
-
401:
|
|
3507
|
+
401: BodhiApiError;
|
|
4776
3508
|
/**
|
|
4777
3509
|
* Insufficient permissions
|
|
4778
3510
|
*/
|
|
4779
|
-
403:
|
|
3511
|
+
403: BodhiApiError;
|
|
4780
3512
|
/**
|
|
4781
3513
|
* Internal server error
|
|
4782
3514
|
*/
|
|
4783
|
-
500:
|
|
3515
|
+
500: BodhiApiError;
|
|
4784
3516
|
};
|
|
4785
3517
|
export type GetQueueStatusError = GetQueueStatusErrors[keyof GetQueueStatusErrors];
|
|
4786
3518
|
export type GetQueueStatusResponses = {
|
|
@@ -4800,19 +3532,19 @@ export type ListSettingsErrors = {
|
|
|
4800
3532
|
/**
|
|
4801
3533
|
* Invalid request parameters
|
|
4802
3534
|
*/
|
|
4803
|
-
400:
|
|
3535
|
+
400: BodhiApiError;
|
|
4804
3536
|
/**
|
|
4805
3537
|
* Not authenticated
|
|
4806
3538
|
*/
|
|
4807
|
-
401:
|
|
3539
|
+
401: BodhiApiError;
|
|
4808
3540
|
/**
|
|
4809
3541
|
* Insufficient permissions
|
|
4810
3542
|
*/
|
|
4811
|
-
403:
|
|
3543
|
+
403: BodhiApiError;
|
|
4812
3544
|
/**
|
|
4813
3545
|
* Internal server error
|
|
4814
3546
|
*/
|
|
4815
|
-
500:
|
|
3547
|
+
500: BodhiApiError;
|
|
4816
3548
|
};
|
|
4817
3549
|
export type ListSettingsError = ListSettingsErrors[keyof ListSettingsErrors];
|
|
4818
3550
|
export type ListSettingsResponses = {
|
|
@@ -4837,23 +3569,23 @@ export type DeleteSettingErrors = {
|
|
|
4837
3569
|
/**
|
|
4838
3570
|
* Invalid request parameters
|
|
4839
3571
|
*/
|
|
4840
|
-
400:
|
|
3572
|
+
400: BodhiApiError;
|
|
4841
3573
|
/**
|
|
4842
3574
|
* Not authenticated
|
|
4843
3575
|
*/
|
|
4844
|
-
401:
|
|
3576
|
+
401: BodhiApiError;
|
|
4845
3577
|
/**
|
|
4846
3578
|
* Insufficient permissions
|
|
4847
3579
|
*/
|
|
4848
|
-
403:
|
|
3580
|
+
403: BodhiApiError;
|
|
4849
3581
|
/**
|
|
4850
3582
|
* Setting not found
|
|
4851
3583
|
*/
|
|
4852
|
-
404:
|
|
3584
|
+
404: BodhiApiError;
|
|
4853
3585
|
/**
|
|
4854
3586
|
* Internal server error
|
|
4855
3587
|
*/
|
|
4856
|
-
500:
|
|
3588
|
+
500: BodhiApiError;
|
|
4857
3589
|
};
|
|
4858
3590
|
export type DeleteSettingError = DeleteSettingErrors[keyof DeleteSettingErrors];
|
|
4859
3591
|
export type DeleteSettingResponses = {
|
|
@@ -4886,23 +3618,23 @@ export type UpdateSettingErrors = {
|
|
|
4886
3618
|
/**
|
|
4887
3619
|
* Invalid request parameters
|
|
4888
3620
|
*/
|
|
4889
|
-
400:
|
|
3621
|
+
400: BodhiApiError;
|
|
4890
3622
|
/**
|
|
4891
3623
|
* Not authenticated
|
|
4892
3624
|
*/
|
|
4893
|
-
401:
|
|
3625
|
+
401: BodhiApiError;
|
|
4894
3626
|
/**
|
|
4895
3627
|
* Insufficient permissions
|
|
4896
3628
|
*/
|
|
4897
|
-
403:
|
|
3629
|
+
403: BodhiApiError;
|
|
4898
3630
|
/**
|
|
4899
3631
|
* Setting not found
|
|
4900
3632
|
*/
|
|
4901
|
-
404:
|
|
3633
|
+
404: BodhiApiError;
|
|
4902
3634
|
/**
|
|
4903
3635
|
* Internal server error
|
|
4904
3636
|
*/
|
|
4905
|
-
500:
|
|
3637
|
+
500: BodhiApiError;
|
|
4906
3638
|
};
|
|
4907
3639
|
export type UpdateSettingError = UpdateSettingErrors[keyof UpdateSettingErrors];
|
|
4908
3640
|
export type UpdateSettingResponses = {
|
|
@@ -4925,11 +3657,11 @@ export type SetupAppErrors = {
|
|
|
4925
3657
|
/**
|
|
4926
3658
|
* Invalid request parameters
|
|
4927
3659
|
*/
|
|
4928
|
-
400:
|
|
3660
|
+
400: BodhiApiError;
|
|
4929
3661
|
/**
|
|
4930
3662
|
* Internal server error
|
|
4931
3663
|
*/
|
|
4932
|
-
500:
|
|
3664
|
+
500: BodhiApiError;
|
|
4933
3665
|
};
|
|
4934
3666
|
export type SetupAppError = SetupAppErrors[keyof SetupAppErrors];
|
|
4935
3667
|
export type SetupAppResponses = {
|
|
@@ -4949,19 +3681,19 @@ export type TenantsListErrors = {
|
|
|
4949
3681
|
/**
|
|
4950
3682
|
* Invalid request parameters
|
|
4951
3683
|
*/
|
|
4952
|
-
400:
|
|
3684
|
+
400: BodhiApiError;
|
|
4953
3685
|
/**
|
|
4954
3686
|
* Not authenticated
|
|
4955
3687
|
*/
|
|
4956
|
-
401:
|
|
3688
|
+
401: BodhiApiError;
|
|
4957
3689
|
/**
|
|
4958
3690
|
* Insufficient permissions
|
|
4959
3691
|
*/
|
|
4960
|
-
403:
|
|
3692
|
+
403: BodhiApiError;
|
|
4961
3693
|
/**
|
|
4962
3694
|
* Internal server error
|
|
4963
3695
|
*/
|
|
4964
|
-
500:
|
|
3696
|
+
500: BodhiApiError;
|
|
4965
3697
|
};
|
|
4966
3698
|
export type TenantsListError = TenantsListErrors[keyof TenantsListErrors];
|
|
4967
3699
|
export type TenantsListResponses = {
|
|
@@ -4984,19 +3716,19 @@ export type TenantsCreateErrors = {
|
|
|
4984
3716
|
/**
|
|
4985
3717
|
* Invalid request parameters
|
|
4986
3718
|
*/
|
|
4987
|
-
400:
|
|
3719
|
+
400: BodhiApiError;
|
|
4988
3720
|
/**
|
|
4989
3721
|
* Not authenticated
|
|
4990
3722
|
*/
|
|
4991
|
-
401:
|
|
3723
|
+
401: BodhiApiError;
|
|
4992
3724
|
/**
|
|
4993
3725
|
* Insufficient permissions
|
|
4994
3726
|
*/
|
|
4995
|
-
403:
|
|
3727
|
+
403: BodhiApiError;
|
|
4996
3728
|
/**
|
|
4997
3729
|
* Internal server error
|
|
4998
3730
|
*/
|
|
4999
|
-
500:
|
|
3731
|
+
500: BodhiApiError;
|
|
5000
3732
|
};
|
|
5001
3733
|
export type TenantsCreateError = TenantsCreateErrors[keyof TenantsCreateErrors];
|
|
5002
3734
|
export type TenantsCreateResponses = {
|
|
@@ -5021,19 +3753,19 @@ export type TenantsActivateErrors = {
|
|
|
5021
3753
|
/**
|
|
5022
3754
|
* Invalid request parameters
|
|
5023
3755
|
*/
|
|
5024
|
-
400:
|
|
3756
|
+
400: BodhiApiError;
|
|
5025
3757
|
/**
|
|
5026
3758
|
* Not authenticated
|
|
5027
3759
|
*/
|
|
5028
|
-
401:
|
|
3760
|
+
401: BodhiApiError;
|
|
5029
3761
|
/**
|
|
5030
3762
|
* Insufficient permissions
|
|
5031
3763
|
*/
|
|
5032
|
-
403:
|
|
3764
|
+
403: BodhiApiError;
|
|
5033
3765
|
/**
|
|
5034
3766
|
* Internal server error
|
|
5035
3767
|
*/
|
|
5036
|
-
500:
|
|
3768
|
+
500: BodhiApiError;
|
|
5037
3769
|
};
|
|
5038
3770
|
export type TenantsActivateError = TenantsActivateErrors[keyof TenantsActivateErrors];
|
|
5039
3771
|
export type TenantsActivateResponses = {
|
|
@@ -5069,19 +3801,19 @@ export type ListApiTokensErrors = {
|
|
|
5069
3801
|
/**
|
|
5070
3802
|
* Invalid request parameters
|
|
5071
3803
|
*/
|
|
5072
|
-
400:
|
|
3804
|
+
400: BodhiApiError;
|
|
5073
3805
|
/**
|
|
5074
3806
|
* Not authenticated
|
|
5075
3807
|
*/
|
|
5076
|
-
401:
|
|
3808
|
+
401: BodhiApiError;
|
|
5077
3809
|
/**
|
|
5078
3810
|
* Insufficient permissions
|
|
5079
3811
|
*/
|
|
5080
|
-
403:
|
|
3812
|
+
403: BodhiApiError;
|
|
5081
3813
|
/**
|
|
5082
3814
|
* Internal server error
|
|
5083
3815
|
*/
|
|
5084
|
-
500:
|
|
3816
|
+
500: BodhiApiError;
|
|
5085
3817
|
};
|
|
5086
3818
|
export type ListApiTokensError = ListApiTokensErrors[keyof ListApiTokensErrors];
|
|
5087
3819
|
export type ListApiTokensResponses = {
|
|
@@ -5104,19 +3836,19 @@ export type CreateApiTokenErrors = {
|
|
|
5104
3836
|
/**
|
|
5105
3837
|
* Invalid request parameters
|
|
5106
3838
|
*/
|
|
5107
|
-
400:
|
|
3839
|
+
400: BodhiApiError;
|
|
5108
3840
|
/**
|
|
5109
3841
|
* Not authenticated
|
|
5110
3842
|
*/
|
|
5111
|
-
401:
|
|
3843
|
+
401: BodhiApiError;
|
|
5112
3844
|
/**
|
|
5113
3845
|
* Insufficient permissions
|
|
5114
3846
|
*/
|
|
5115
|
-
403:
|
|
3847
|
+
403: BodhiApiError;
|
|
5116
3848
|
/**
|
|
5117
3849
|
* Internal server error
|
|
5118
3850
|
*/
|
|
5119
|
-
500:
|
|
3851
|
+
500: BodhiApiError;
|
|
5120
3852
|
};
|
|
5121
3853
|
export type CreateApiTokenError = CreateApiTokenErrors[keyof CreateApiTokenErrors];
|
|
5122
3854
|
export type CreateApiTokenResponses = {
|
|
@@ -5144,23 +3876,23 @@ export type UpdateApiTokenErrors = {
|
|
|
5144
3876
|
/**
|
|
5145
3877
|
* Invalid request parameters
|
|
5146
3878
|
*/
|
|
5147
|
-
400:
|
|
3879
|
+
400: BodhiApiError;
|
|
5148
3880
|
/**
|
|
5149
3881
|
* Not authenticated
|
|
5150
3882
|
*/
|
|
5151
|
-
401:
|
|
3883
|
+
401: BodhiApiError;
|
|
5152
3884
|
/**
|
|
5153
3885
|
* Insufficient permissions
|
|
5154
3886
|
*/
|
|
5155
|
-
403:
|
|
3887
|
+
403: BodhiApiError;
|
|
5156
3888
|
/**
|
|
5157
3889
|
* Token not found
|
|
5158
3890
|
*/
|
|
5159
|
-
404:
|
|
3891
|
+
404: BodhiApiError;
|
|
5160
3892
|
/**
|
|
5161
3893
|
* Internal server error
|
|
5162
3894
|
*/
|
|
5163
|
-
500:
|
|
3895
|
+
500: BodhiApiError;
|
|
5164
3896
|
};
|
|
5165
3897
|
export type UpdateApiTokenError = UpdateApiTokenErrors[keyof UpdateApiTokenErrors];
|
|
5166
3898
|
export type UpdateApiTokenResponses = {
|
|
@@ -5180,19 +3912,19 @@ export type GetCurrentUserErrors = {
|
|
|
5180
3912
|
/**
|
|
5181
3913
|
* Invalid request parameters
|
|
5182
3914
|
*/
|
|
5183
|
-
400:
|
|
3915
|
+
400: BodhiApiError;
|
|
5184
3916
|
/**
|
|
5185
3917
|
* Not authenticated
|
|
5186
3918
|
*/
|
|
5187
|
-
401:
|
|
3919
|
+
401: BodhiApiError;
|
|
5188
3920
|
/**
|
|
5189
3921
|
* Insufficient permissions
|
|
5190
3922
|
*/
|
|
5191
|
-
403:
|
|
3923
|
+
403: BodhiApiError;
|
|
5192
3924
|
/**
|
|
5193
3925
|
* Internal server error
|
|
5194
3926
|
*/
|
|
5195
|
-
500:
|
|
3927
|
+
500: BodhiApiError;
|
|
5196
3928
|
};
|
|
5197
3929
|
export type GetCurrentUserError = GetCurrentUserErrors[keyof GetCurrentUserErrors];
|
|
5198
3930
|
export type GetCurrentUserResponses = {
|
|
@@ -5212,27 +3944,27 @@ export type RequestUserAccessErrors = {
|
|
|
5212
3944
|
/**
|
|
5213
3945
|
* Invalid request parameters
|
|
5214
3946
|
*/
|
|
5215
|
-
400:
|
|
3947
|
+
400: BodhiApiError;
|
|
5216
3948
|
/**
|
|
5217
3949
|
* Not authenticated
|
|
5218
3950
|
*/
|
|
5219
|
-
401:
|
|
3951
|
+
401: BodhiApiError;
|
|
5220
3952
|
/**
|
|
5221
3953
|
* Insufficient permissions
|
|
5222
3954
|
*/
|
|
5223
|
-
403:
|
|
3955
|
+
403: BodhiApiError;
|
|
5224
3956
|
/**
|
|
5225
3957
|
* Pending request already exists
|
|
5226
3958
|
*/
|
|
5227
|
-
409:
|
|
3959
|
+
409: BodhiApiError;
|
|
5228
3960
|
/**
|
|
5229
3961
|
* User already has role
|
|
5230
3962
|
*/
|
|
5231
|
-
422:
|
|
3963
|
+
422: BodhiApiError;
|
|
5232
3964
|
/**
|
|
5233
3965
|
* Internal server error
|
|
5234
3966
|
*/
|
|
5235
|
-
500:
|
|
3967
|
+
500: BodhiApiError;
|
|
5236
3968
|
};
|
|
5237
3969
|
export type RequestUserAccessError = RequestUserAccessErrors[keyof RequestUserAccessErrors];
|
|
5238
3970
|
export type RequestUserAccessResponses = {
|
|
@@ -5251,23 +3983,23 @@ export type GetUserAccessStatusErrors = {
|
|
|
5251
3983
|
/**
|
|
5252
3984
|
* Invalid request parameters
|
|
5253
3985
|
*/
|
|
5254
|
-
400:
|
|
3986
|
+
400: BodhiApiError;
|
|
5255
3987
|
/**
|
|
5256
3988
|
* Not authenticated
|
|
5257
3989
|
*/
|
|
5258
|
-
401:
|
|
3990
|
+
401: BodhiApiError;
|
|
5259
3991
|
/**
|
|
5260
3992
|
* Insufficient permissions
|
|
5261
3993
|
*/
|
|
5262
|
-
403:
|
|
3994
|
+
403: BodhiApiError;
|
|
5263
3995
|
/**
|
|
5264
3996
|
* Request not found
|
|
5265
3997
|
*/
|
|
5266
|
-
404:
|
|
3998
|
+
404: BodhiApiError;
|
|
5267
3999
|
/**
|
|
5268
4000
|
* Internal server error
|
|
5269
4001
|
*/
|
|
5270
|
-
500:
|
|
4002
|
+
500: BodhiApiError;
|
|
5271
4003
|
};
|
|
5272
4004
|
export type GetUserAccessStatusError = GetUserAccessStatusErrors[keyof GetUserAccessStatusErrors];
|
|
5273
4005
|
export type GetUserAccessStatusResponses = {
|
|
@@ -5296,19 +4028,19 @@ export type ListUsersErrors = {
|
|
|
5296
4028
|
/**
|
|
5297
4029
|
* Invalid request parameters
|
|
5298
4030
|
*/
|
|
5299
|
-
400:
|
|
4031
|
+
400: BodhiApiError;
|
|
5300
4032
|
/**
|
|
5301
4033
|
* Not authenticated
|
|
5302
4034
|
*/
|
|
5303
|
-
401:
|
|
4035
|
+
401: BodhiApiError;
|
|
5304
4036
|
/**
|
|
5305
4037
|
* Insufficient permissions
|
|
5306
4038
|
*/
|
|
5307
|
-
403:
|
|
4039
|
+
403: BodhiApiError;
|
|
5308
4040
|
/**
|
|
5309
4041
|
* Internal server error
|
|
5310
4042
|
*/
|
|
5311
|
-
500:
|
|
4043
|
+
500: BodhiApiError;
|
|
5312
4044
|
};
|
|
5313
4045
|
export type ListUsersError = ListUsersErrors[keyof ListUsersErrors];
|
|
5314
4046
|
export type ListUsersResponses = {
|
|
@@ -5333,23 +4065,23 @@ export type RemoveUserErrors = {
|
|
|
5333
4065
|
/**
|
|
5334
4066
|
* Invalid request parameters
|
|
5335
4067
|
*/
|
|
5336
|
-
400:
|
|
4068
|
+
400: BodhiApiError;
|
|
5337
4069
|
/**
|
|
5338
4070
|
* Not authenticated
|
|
5339
4071
|
*/
|
|
5340
|
-
401:
|
|
4072
|
+
401: BodhiApiError;
|
|
5341
4073
|
/**
|
|
5342
4074
|
* Insufficient permissions
|
|
5343
4075
|
*/
|
|
5344
|
-
403:
|
|
4076
|
+
403: BodhiApiError;
|
|
5345
4077
|
/**
|
|
5346
4078
|
* User not found
|
|
5347
4079
|
*/
|
|
5348
|
-
404:
|
|
4080
|
+
404: BodhiApiError;
|
|
5349
4081
|
/**
|
|
5350
4082
|
* Internal server error
|
|
5351
4083
|
*/
|
|
5352
|
-
500:
|
|
4084
|
+
500: BodhiApiError;
|
|
5353
4085
|
};
|
|
5354
4086
|
export type RemoveUserError = RemoveUserErrors[keyof RemoveUserErrors];
|
|
5355
4087
|
export type RemoveUserResponses = {
|
|
@@ -5373,23 +4105,23 @@ export type ChangeUserRoleErrors = {
|
|
|
5373
4105
|
/**
|
|
5374
4106
|
* Invalid request parameters
|
|
5375
4107
|
*/
|
|
5376
|
-
400:
|
|
4108
|
+
400: BodhiApiError;
|
|
5377
4109
|
/**
|
|
5378
4110
|
* Not authenticated
|
|
5379
4111
|
*/
|
|
5380
|
-
401:
|
|
4112
|
+
401: BodhiApiError;
|
|
5381
4113
|
/**
|
|
5382
4114
|
* Insufficient permissions
|
|
5383
4115
|
*/
|
|
5384
|
-
403:
|
|
4116
|
+
403: BodhiApiError;
|
|
5385
4117
|
/**
|
|
5386
4118
|
* User not found
|
|
5387
4119
|
*/
|
|
5388
|
-
404:
|
|
4120
|
+
404: BodhiApiError;
|
|
5389
4121
|
/**
|
|
5390
4122
|
* Internal server error
|
|
5391
4123
|
*/
|
|
5392
|
-
500:
|
|
4124
|
+
500: BodhiApiError;
|
|
5393
4125
|
};
|
|
5394
4126
|
export type ChangeUserRoleError = ChangeUserRoleErrors[keyof ChangeUserRoleErrors];
|
|
5395
4127
|
export type ChangeUserRoleResponses = {
|
|
@@ -5408,11 +4140,11 @@ export type HealthCheckErrors = {
|
|
|
5408
4140
|
/**
|
|
5409
4141
|
* Invalid request parameters
|
|
5410
4142
|
*/
|
|
5411
|
-
400:
|
|
4143
|
+
400: BodhiApiError;
|
|
5412
4144
|
/**
|
|
5413
4145
|
* Internal server error
|
|
5414
4146
|
*/
|
|
5415
|
-
500:
|
|
4147
|
+
500: BodhiApiError;
|
|
5416
4148
|
};
|
|
5417
4149
|
export type HealthCheckError = HealthCheckErrors[keyof HealthCheckErrors];
|
|
5418
4150
|
export type HealthCheckResponses = {
|
|
@@ -5432,11 +4164,11 @@ export type PingServerErrors = {
|
|
|
5432
4164
|
/**
|
|
5433
4165
|
* Invalid request parameters
|
|
5434
4166
|
*/
|
|
5435
|
-
400:
|
|
4167
|
+
400: BodhiApiError;
|
|
5436
4168
|
/**
|
|
5437
4169
|
* Internal server error
|
|
5438
4170
|
*/
|
|
5439
|
-
500:
|
|
4171
|
+
500: BodhiApiError;
|
|
5440
4172
|
};
|
|
5441
4173
|
export type PingServerError = PingServerErrors[keyof PingServerErrors];
|
|
5442
4174
|
export type PingServerResponses = {
|
|
@@ -5446,147 +4178,6 @@ export type PingServerResponses = {
|
|
|
5446
4178
|
200: PingResponse;
|
|
5447
4179
|
};
|
|
5448
4180
|
export type PingServerResponse = PingServerResponses[keyof PingServerResponses];
|
|
5449
|
-
export type CreateChatCompletionData = {
|
|
5450
|
-
body: CreateChatCompletionRequest;
|
|
5451
|
-
path?: never;
|
|
5452
|
-
query?: never;
|
|
5453
|
-
url: '/v1/chat/completions';
|
|
5454
|
-
};
|
|
5455
|
-
export type CreateChatCompletionErrors = {
|
|
5456
|
-
/**
|
|
5457
|
-
* Invalid request parameters
|
|
5458
|
-
*/
|
|
5459
|
-
400: OpenAiApiError;
|
|
5460
|
-
/**
|
|
5461
|
-
* Not authenticated
|
|
5462
|
-
*/
|
|
5463
|
-
401: OpenAiApiError;
|
|
5464
|
-
/**
|
|
5465
|
-
* Insufficient permissions
|
|
5466
|
-
*/
|
|
5467
|
-
403: OpenAiApiError;
|
|
5468
|
-
/**
|
|
5469
|
-
* Internal server error
|
|
5470
|
-
*/
|
|
5471
|
-
500: OpenAiApiError;
|
|
5472
|
-
};
|
|
5473
|
-
export type CreateChatCompletionError = CreateChatCompletionErrors[keyof CreateChatCompletionErrors];
|
|
5474
|
-
export type CreateChatCompletionResponses = {
|
|
5475
|
-
/**
|
|
5476
|
-
* Chat completion response
|
|
5477
|
-
*/
|
|
5478
|
-
200: CreateChatCompletionResponse;
|
|
5479
|
-
/**
|
|
5480
|
-
* Chat completion stream, the status is 200, using 201 to avoid OpenAPI format limitation.
|
|
5481
|
-
*/
|
|
5482
|
-
201: CreateChatCompletionStreamResponse;
|
|
5483
|
-
};
|
|
5484
|
-
export type CreateChatCompletionResponse2 = CreateChatCompletionResponses[keyof CreateChatCompletionResponses];
|
|
5485
|
-
export type CreateEmbeddingData = {
|
|
5486
|
-
body: CreateEmbeddingRequest;
|
|
5487
|
-
path?: never;
|
|
5488
|
-
query?: never;
|
|
5489
|
-
url: '/v1/embeddings';
|
|
5490
|
-
};
|
|
5491
|
-
export type CreateEmbeddingErrors = {
|
|
5492
|
-
/**
|
|
5493
|
-
* Invalid request parameters
|
|
5494
|
-
*/
|
|
5495
|
-
400: OpenAiApiError;
|
|
5496
|
-
/**
|
|
5497
|
-
* Not authenticated
|
|
5498
|
-
*/
|
|
5499
|
-
401: OpenAiApiError;
|
|
5500
|
-
/**
|
|
5501
|
-
* Insufficient permissions
|
|
5502
|
-
*/
|
|
5503
|
-
403: OpenAiApiError;
|
|
5504
|
-
/**
|
|
5505
|
-
* Internal server error
|
|
5506
|
-
*/
|
|
5507
|
-
500: OpenAiApiError;
|
|
5508
|
-
};
|
|
5509
|
-
export type CreateEmbeddingError = CreateEmbeddingErrors[keyof CreateEmbeddingErrors];
|
|
5510
|
-
export type CreateEmbeddingResponses = {
|
|
5511
|
-
/**
|
|
5512
|
-
* Embedding response
|
|
5513
|
-
*/
|
|
5514
|
-
200: CreateEmbeddingResponse;
|
|
5515
|
-
};
|
|
5516
|
-
export type CreateEmbeddingResponse2 = CreateEmbeddingResponses[keyof CreateEmbeddingResponses];
|
|
5517
|
-
export type ListModelsData = {
|
|
5518
|
-
body?: never;
|
|
5519
|
-
path?: never;
|
|
5520
|
-
query?: never;
|
|
5521
|
-
url: '/v1/models';
|
|
5522
|
-
};
|
|
5523
|
-
export type ListModelsErrors = {
|
|
5524
|
-
/**
|
|
5525
|
-
* Invalid request parameters
|
|
5526
|
-
*/
|
|
5527
|
-
400: OpenAiApiError;
|
|
5528
|
-
/**
|
|
5529
|
-
* Not authenticated
|
|
5530
|
-
*/
|
|
5531
|
-
401: OpenAiApiError;
|
|
5532
|
-
/**
|
|
5533
|
-
* Insufficient permissions
|
|
5534
|
-
*/
|
|
5535
|
-
403: OpenAiApiError;
|
|
5536
|
-
/**
|
|
5537
|
-
* Internal server error
|
|
5538
|
-
*/
|
|
5539
|
-
500: OpenAiApiError;
|
|
5540
|
-
};
|
|
5541
|
-
export type ListModelsError = ListModelsErrors[keyof ListModelsErrors];
|
|
5542
|
-
export type ListModelsResponses = {
|
|
5543
|
-
/**
|
|
5544
|
-
* List of available models
|
|
5545
|
-
*/
|
|
5546
|
-
200: ListModelResponse;
|
|
5547
|
-
};
|
|
5548
|
-
export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
|
|
5549
|
-
export type GetModelData = {
|
|
5550
|
-
body?: never;
|
|
5551
|
-
path: {
|
|
5552
|
-
/**
|
|
5553
|
-
* Model identifier - can be user alias (e.g., 'llama2:chat'), model alias, or API provider alias
|
|
5554
|
-
*/
|
|
5555
|
-
id: string;
|
|
5556
|
-
};
|
|
5557
|
-
query?: never;
|
|
5558
|
-
url: '/v1/models/{id}';
|
|
5559
|
-
};
|
|
5560
|
-
export type GetModelErrors = {
|
|
5561
|
-
/**
|
|
5562
|
-
* Invalid request parameters
|
|
5563
|
-
*/
|
|
5564
|
-
400: OpenAiApiError;
|
|
5565
|
-
/**
|
|
5566
|
-
* Not authenticated
|
|
5567
|
-
*/
|
|
5568
|
-
401: OpenAiApiError;
|
|
5569
|
-
/**
|
|
5570
|
-
* Insufficient permissions
|
|
5571
|
-
*/
|
|
5572
|
-
403: OpenAiApiError;
|
|
5573
|
-
/**
|
|
5574
|
-
* Model not found
|
|
5575
|
-
*/
|
|
5576
|
-
404: OpenAiApiError;
|
|
5577
|
-
/**
|
|
5578
|
-
* Internal server error
|
|
5579
|
-
*/
|
|
5580
|
-
500: OpenAiApiError;
|
|
5581
|
-
};
|
|
5582
|
-
export type GetModelError = GetModelErrors[keyof GetModelErrors];
|
|
5583
|
-
export type GetModelResponses = {
|
|
5584
|
-
/**
|
|
5585
|
-
* Model details
|
|
5586
|
-
*/
|
|
5587
|
-
200: Model;
|
|
5588
|
-
};
|
|
5589
|
-
export type GetModelResponse = GetModelResponses[keyof GetModelResponses];
|
|
5590
4181
|
export type ClientOptions = {
|
|
5591
4182
|
baseUrl: 'http://localhost:1135' | (string & {});
|
|
5592
4183
|
};
|