@bodhiapp/ts-client 0.1.33 → 0.1.35
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/openapi-typescript/openapi-schema-oai.d.ts +0 -437
- package/dist/openapi-typescript/openapi-schema-oai.ts +0 -437
- package/dist/openapi-typescript/openapi-schema.d.ts +1153 -204
- package/dist/openapi-typescript/openapi-schema.ts +1153 -204
- package/dist/types/types.gen.d.ts +742 -201
- package/dist/types/types.gen.ts +788 -187
- package/dist/types-oai/types.gen.d.ts +0 -187
- package/dist/types-oai/types.gen.ts +0 -211
- package/package.json +1 -1
|
@@ -3,66 +3,6 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
"/api/chat": {
|
|
7
|
-
parameters: {
|
|
8
|
-
query?: never;
|
|
9
|
-
header?: never;
|
|
10
|
-
path?: never;
|
|
11
|
-
cookie?: never;
|
|
12
|
-
};
|
|
13
|
-
get?: never;
|
|
14
|
-
put?: never;
|
|
15
|
-
/**
|
|
16
|
-
* Chat with Model (Ollama Compatible)
|
|
17
|
-
* @description Creates a chat completion using Ollama API format. Supports both streaming and non-streaming responses with Ollama-specific options and response format.
|
|
18
|
-
*/
|
|
19
|
-
post: operations["chatOllamaModel"];
|
|
20
|
-
delete?: never;
|
|
21
|
-
options?: never;
|
|
22
|
-
head?: never;
|
|
23
|
-
patch?: never;
|
|
24
|
-
trace?: never;
|
|
25
|
-
};
|
|
26
|
-
"/api/show": {
|
|
27
|
-
parameters: {
|
|
28
|
-
query?: never;
|
|
29
|
-
header?: never;
|
|
30
|
-
path?: never;
|
|
31
|
-
cookie?: never;
|
|
32
|
-
};
|
|
33
|
-
get?: never;
|
|
34
|
-
put?: never;
|
|
35
|
-
/**
|
|
36
|
-
* Show Model Details (Ollama Compatible)
|
|
37
|
-
* @description Retrieves detailed information about a specific model in Ollama API compatible format. Includes model parameters, template, license, and configuration details.
|
|
38
|
-
*/
|
|
39
|
-
post: operations["showOllamaModel"];
|
|
40
|
-
delete?: never;
|
|
41
|
-
options?: never;
|
|
42
|
-
head?: never;
|
|
43
|
-
patch?: never;
|
|
44
|
-
trace?: never;
|
|
45
|
-
};
|
|
46
|
-
"/api/tags": {
|
|
47
|
-
parameters: {
|
|
48
|
-
query?: never;
|
|
49
|
-
header?: never;
|
|
50
|
-
path?: never;
|
|
51
|
-
cookie?: never;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* List Available Models (Ollama Compatible)
|
|
55
|
-
* @description Returns a list of all available models in Ollama API compatible format. Includes model metadata such as size, modification time, and format details.
|
|
56
|
-
*/
|
|
57
|
-
get: operations["listOllamaModels"];
|
|
58
|
-
put?: never;
|
|
59
|
-
post?: never;
|
|
60
|
-
delete?: never;
|
|
61
|
-
options?: never;
|
|
62
|
-
head?: never;
|
|
63
|
-
patch?: never;
|
|
64
|
-
trace?: never;
|
|
65
|
-
};
|
|
66
6
|
"/v1/chat/completions": {
|
|
67
7
|
parameters: {
|
|
68
8
|
query?: never;
|
|
@@ -713,14 +653,6 @@ export interface components {
|
|
|
713
653
|
/** @enum {string} */
|
|
714
654
|
type: "custom";
|
|
715
655
|
});
|
|
716
|
-
ChatRequest: {
|
|
717
|
-
model: string;
|
|
718
|
-
messages: components["schemas"]["Message"][];
|
|
719
|
-
stream?: boolean | null;
|
|
720
|
-
format?: string | null;
|
|
721
|
-
keep_alive?: null | components["schemas"]["Duration"];
|
|
722
|
-
options?: null | components["schemas"]["Options"];
|
|
723
|
-
};
|
|
724
656
|
/** @enum {string} */
|
|
725
657
|
ClickButtonType: "left" | "right" | "wheel" | "back" | "forward";
|
|
726
658
|
/** @description A click action. */
|
|
@@ -1542,7 +1474,6 @@ export interface components {
|
|
|
1542
1474
|
/** @description An array of coordinates representing the path of the drag action. */
|
|
1543
1475
|
path: components["schemas"]["CoordParam"][];
|
|
1544
1476
|
};
|
|
1545
|
-
Duration: string;
|
|
1546
1477
|
/** @description Content for EasyInputMessage - can be a simple string or structured list. */
|
|
1547
1478
|
EasyInputContent: string | components["schemas"]["InputContent"][];
|
|
1548
1479
|
/** @description A simplified message input to the model (EasyInputMessage in the OpenAPI spec).
|
|
@@ -2400,11 +2331,6 @@ export interface components {
|
|
|
2400
2331
|
MCPToolRequireApproval: components["schemas"]["MCPToolApprovalFilter"] | components["schemas"]["MCPToolApprovalSetting"];
|
|
2401
2332
|
/** @enum {string} */
|
|
2402
2333
|
McpToolConnectorId: "connector_dropbox" | "connector_gmail" | "connector_googlecalendar" | "connector_googledrive" | "connector_microsoftteams" | "connector_outlookcalendar" | "connector_outlookemail" | "connector_sharepoint";
|
|
2403
|
-
Message: {
|
|
2404
|
-
role: string;
|
|
2405
|
-
content: string;
|
|
2406
|
-
images?: string[] | null;
|
|
2407
|
-
};
|
|
2408
2334
|
/** @description A message item used within the `Item` enum.
|
|
2409
2335
|
*
|
|
2410
2336
|
* Both InputMessage and OutputMessage have `type: "message"`, so we use an untagged
|
|
@@ -2445,17 +2371,6 @@ export interface components {
|
|
|
2445
2371
|
/** @description The organization that owns the model. */
|
|
2446
2372
|
owned_by: string;
|
|
2447
2373
|
};
|
|
2448
|
-
ModelDetails: {
|
|
2449
|
-
parent_model?: string | null;
|
|
2450
|
-
format: string;
|
|
2451
|
-
family: string;
|
|
2452
|
-
families?: string[] | null;
|
|
2453
|
-
parameter_size: string;
|
|
2454
|
-
quantization_level: string;
|
|
2455
|
-
};
|
|
2456
|
-
ModelsResponse: {
|
|
2457
|
-
models: components["schemas"]["OllamaModel"][];
|
|
2458
|
-
};
|
|
2459
2374
|
/** @description A mouse move action. */
|
|
2460
2375
|
MoveParam: {
|
|
2461
2376
|
/**
|
|
@@ -2486,69 +2401,6 @@ export interface components {
|
|
|
2486
2401
|
/** @enum {string} */
|
|
2487
2402
|
type: "custom";
|
|
2488
2403
|
});
|
|
2489
|
-
OllamaError: {
|
|
2490
|
-
error: string;
|
|
2491
|
-
};
|
|
2492
|
-
OllamaModel: {
|
|
2493
|
-
model: string;
|
|
2494
|
-
/** Format: int32 */
|
|
2495
|
-
modified_at: number;
|
|
2496
|
-
/** Format: int64 */
|
|
2497
|
-
size: number;
|
|
2498
|
-
digest: string;
|
|
2499
|
-
details: components["schemas"]["ModelDetails"];
|
|
2500
|
-
};
|
|
2501
|
-
Options: {
|
|
2502
|
-
/** Format: int32 */
|
|
2503
|
-
num_keep?: number | null;
|
|
2504
|
-
/** Format: int64 */
|
|
2505
|
-
seed?: number | null;
|
|
2506
|
-
/** Format: int32 */
|
|
2507
|
-
num_predict?: number | null;
|
|
2508
|
-
/** Format: int32 */
|
|
2509
|
-
top_k?: number | null;
|
|
2510
|
-
/** Format: float */
|
|
2511
|
-
top_p?: number | null;
|
|
2512
|
-
/** Format: float */
|
|
2513
|
-
tfs_z?: number | null;
|
|
2514
|
-
/** Format: float */
|
|
2515
|
-
typical_p?: number | null;
|
|
2516
|
-
/** Format: int32 */
|
|
2517
|
-
repeat_last_n?: number | null;
|
|
2518
|
-
/** Format: float */
|
|
2519
|
-
temperature?: number | null;
|
|
2520
|
-
/** Format: float */
|
|
2521
|
-
repeat_penalty?: number | null;
|
|
2522
|
-
/** Format: float */
|
|
2523
|
-
presence_penalty?: number | null;
|
|
2524
|
-
/** Format: float */
|
|
2525
|
-
frequency_penalty?: number | null;
|
|
2526
|
-
/** Format: float */
|
|
2527
|
-
mirostat?: number | null;
|
|
2528
|
-
/** Format: float */
|
|
2529
|
-
mirostat_tau?: number | null;
|
|
2530
|
-
/** Format: float */
|
|
2531
|
-
mirostat_eta?: number | null;
|
|
2532
|
-
penalize_newline?: boolean | null;
|
|
2533
|
-
stop?: string[] | null;
|
|
2534
|
-
numa?: boolean | null;
|
|
2535
|
-
/** Format: int32 */
|
|
2536
|
-
num_ctx?: number | null;
|
|
2537
|
-
/** Format: int32 */
|
|
2538
|
-
num_batch?: number | null;
|
|
2539
|
-
/** Format: int32 */
|
|
2540
|
-
num_gpu?: number | null;
|
|
2541
|
-
/** Format: int32 */
|
|
2542
|
-
main_gpu?: number | null;
|
|
2543
|
-
low_vram?: boolean | null;
|
|
2544
|
-
f16_kv?: boolean | null;
|
|
2545
|
-
logits_all?: boolean | null;
|
|
2546
|
-
vocab_only?: boolean | null;
|
|
2547
|
-
use_mmap?: boolean | null;
|
|
2548
|
-
use_mlock?: boolean | null;
|
|
2549
|
-
/** Format: int32 */
|
|
2550
|
-
num_thread?: number | null;
|
|
2551
|
-
};
|
|
2552
2404
|
/** @description Output item */
|
|
2553
2405
|
OutputItem: (components["schemas"]["OutputMessage"] & {
|
|
2554
2406
|
/** @enum {string} */
|
|
@@ -2977,21 +2829,6 @@ export interface components {
|
|
|
2977
2829
|
SearchContentType: "text" | "image";
|
|
2978
2830
|
/** @enum {string} */
|
|
2979
2831
|
ServiceTier: "auto" | "default" | "flex" | "scale" | "priority";
|
|
2980
|
-
ShowRequest: {
|
|
2981
|
-
name: string;
|
|
2982
|
-
};
|
|
2983
|
-
ShowResponse: {
|
|
2984
|
-
details: components["schemas"]["ModelDetails"];
|
|
2985
|
-
license: string;
|
|
2986
|
-
model_info: {
|
|
2987
|
-
[key: string]: unknown;
|
|
2988
|
-
};
|
|
2989
|
-
modelfile: string;
|
|
2990
|
-
/** Format: int32 */
|
|
2991
|
-
modified_at: number;
|
|
2992
|
-
parameters: string;
|
|
2993
|
-
template: string;
|
|
2994
|
-
};
|
|
2995
2832
|
/** @description A skill parameter — either a reference or inline definition. */
|
|
2996
2833
|
SkillParam: (components["schemas"]["SkillReferenceParam"] & {
|
|
2997
2834
|
/** @enum {string} */
|
|
@@ -3416,280 +3253,6 @@ export interface components {
|
|
|
3416
3253
|
}
|
|
3417
3254
|
export type $defs = Record<string, never>;
|
|
3418
3255
|
export interface operations {
|
|
3419
|
-
chatOllamaModel: {
|
|
3420
|
-
parameters: {
|
|
3421
|
-
query?: never;
|
|
3422
|
-
header?: never;
|
|
3423
|
-
path?: never;
|
|
3424
|
-
cookie?: never;
|
|
3425
|
-
};
|
|
3426
|
-
/** @description Chat request in Ollama format */
|
|
3427
|
-
requestBody: {
|
|
3428
|
-
content: {
|
|
3429
|
-
/** @example {
|
|
3430
|
-
* "messages": [
|
|
3431
|
-
* {
|
|
3432
|
-
* "content": "You are a helpful assistant.",
|
|
3433
|
-
* "role": "system"
|
|
3434
|
-
* },
|
|
3435
|
-
* {
|
|
3436
|
-
* "content": "Hello!",
|
|
3437
|
-
* "role": "user"
|
|
3438
|
-
* }
|
|
3439
|
-
* ],
|
|
3440
|
-
* "model": "llama2:chat",
|
|
3441
|
-
* "options": {
|
|
3442
|
-
* "num_predict": 100,
|
|
3443
|
-
* "temperature": 0.7
|
|
3444
|
-
* },
|
|
3445
|
-
* "stream": true
|
|
3446
|
-
* } */
|
|
3447
|
-
"application/json": components["schemas"]["ChatRequest"];
|
|
3448
|
-
};
|
|
3449
|
-
};
|
|
3450
|
-
responses: {
|
|
3451
|
-
/** @description Chat response */
|
|
3452
|
-
200: {
|
|
3453
|
-
headers: {
|
|
3454
|
-
[name: string]: unknown;
|
|
3455
|
-
};
|
|
3456
|
-
content: {
|
|
3457
|
-
/** @example {
|
|
3458
|
-
* "created_at": "2024-01-20T12:00:00.000000000Z",
|
|
3459
|
-
* "done": true,
|
|
3460
|
-
* "done_reason": "stop",
|
|
3461
|
-
* "eval_count": 10,
|
|
3462
|
-
* "eval_duration": "-1",
|
|
3463
|
-
* "load_duration": "-1",
|
|
3464
|
-
* "message": {
|
|
3465
|
-
* "content": "Hello! How can I help you today?",
|
|
3466
|
-
* "images": null,
|
|
3467
|
-
* "role": "assistant"
|
|
3468
|
-
* },
|
|
3469
|
-
* "model": "llama2:chat",
|
|
3470
|
-
* "prompt_eval_count": 20,
|
|
3471
|
-
* "prompt_eval_duration": "-1",
|
|
3472
|
-
* "total_duration": 0
|
|
3473
|
-
* } */
|
|
3474
|
-
"application/json": unknown;
|
|
3475
|
-
};
|
|
3476
|
-
};
|
|
3477
|
-
/** @description Invalid request parameters */
|
|
3478
|
-
400: {
|
|
3479
|
-
headers: {
|
|
3480
|
-
[name: string]: unknown;
|
|
3481
|
-
};
|
|
3482
|
-
content: {
|
|
3483
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3484
|
-
};
|
|
3485
|
-
};
|
|
3486
|
-
/** @description Not authenticated */
|
|
3487
|
-
401: {
|
|
3488
|
-
headers: {
|
|
3489
|
-
[name: string]: unknown;
|
|
3490
|
-
};
|
|
3491
|
-
content: {
|
|
3492
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3493
|
-
};
|
|
3494
|
-
};
|
|
3495
|
-
/** @description Insufficient permissions */
|
|
3496
|
-
403: {
|
|
3497
|
-
headers: {
|
|
3498
|
-
[name: string]: unknown;
|
|
3499
|
-
};
|
|
3500
|
-
content: {
|
|
3501
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3502
|
-
};
|
|
3503
|
-
};
|
|
3504
|
-
/** @description Model not found */
|
|
3505
|
-
404: {
|
|
3506
|
-
headers: {
|
|
3507
|
-
[name: string]: unknown;
|
|
3508
|
-
};
|
|
3509
|
-
content: {
|
|
3510
|
-
/** @example {
|
|
3511
|
-
* "error": "model not found"
|
|
3512
|
-
* } */
|
|
3513
|
-
"application/json": components["schemas"]["OllamaError"];
|
|
3514
|
-
};
|
|
3515
|
-
};
|
|
3516
|
-
/** @description Internal server error */
|
|
3517
|
-
500: {
|
|
3518
|
-
headers: {
|
|
3519
|
-
[name: string]: unknown;
|
|
3520
|
-
};
|
|
3521
|
-
content: {
|
|
3522
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3523
|
-
};
|
|
3524
|
-
};
|
|
3525
|
-
};
|
|
3526
|
-
};
|
|
3527
|
-
showOllamaModel: {
|
|
3528
|
-
parameters: {
|
|
3529
|
-
query?: never;
|
|
3530
|
-
header?: never;
|
|
3531
|
-
path?: never;
|
|
3532
|
-
cookie?: never;
|
|
3533
|
-
};
|
|
3534
|
-
/** @description Model name to get details for */
|
|
3535
|
-
requestBody: {
|
|
3536
|
-
content: {
|
|
3537
|
-
/** @example {
|
|
3538
|
-
* "name": "llama2:chat"
|
|
3539
|
-
* } */
|
|
3540
|
-
"application/json": components["schemas"]["ShowRequest"];
|
|
3541
|
-
};
|
|
3542
|
-
};
|
|
3543
|
-
responses: {
|
|
3544
|
-
/** @description Model details */
|
|
3545
|
-
200: {
|
|
3546
|
-
headers: {
|
|
3547
|
-
[name: string]: unknown;
|
|
3548
|
-
};
|
|
3549
|
-
content: {
|
|
3550
|
-
/** @example {
|
|
3551
|
-
* "details": {
|
|
3552
|
-
* "families": null,
|
|
3553
|
-
* "family": "unknown",
|
|
3554
|
-
* "format": "gguf",
|
|
3555
|
-
* "parameter_size": "",
|
|
3556
|
-
* "parent_model": null,
|
|
3557
|
-
* "quantization_level": ""
|
|
3558
|
-
* },
|
|
3559
|
-
* "license": "",
|
|
3560
|
-
* "model_info": {},
|
|
3561
|
-
* "modelfile": "",
|
|
3562
|
-
* "modified_at": "2024-01-20T12:00:00.000000000Z",
|
|
3563
|
-
* "parameters": "n_keep: 24\nstop:\n- <|start_header_id|>\n- <|end_header_id|>\n- <|eot_id|>\n",
|
|
3564
|
-
* "template": "llama2"
|
|
3565
|
-
* } */
|
|
3566
|
-
"application/json": components["schemas"]["ShowResponse"];
|
|
3567
|
-
};
|
|
3568
|
-
};
|
|
3569
|
-
/** @description Invalid request parameters */
|
|
3570
|
-
400: {
|
|
3571
|
-
headers: {
|
|
3572
|
-
[name: string]: unknown;
|
|
3573
|
-
};
|
|
3574
|
-
content: {
|
|
3575
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3576
|
-
};
|
|
3577
|
-
};
|
|
3578
|
-
/** @description Not authenticated */
|
|
3579
|
-
401: {
|
|
3580
|
-
headers: {
|
|
3581
|
-
[name: string]: unknown;
|
|
3582
|
-
};
|
|
3583
|
-
content: {
|
|
3584
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3585
|
-
};
|
|
3586
|
-
};
|
|
3587
|
-
/** @description Insufficient permissions */
|
|
3588
|
-
403: {
|
|
3589
|
-
headers: {
|
|
3590
|
-
[name: string]: unknown;
|
|
3591
|
-
};
|
|
3592
|
-
content: {
|
|
3593
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3594
|
-
};
|
|
3595
|
-
};
|
|
3596
|
-
/** @description Model not found */
|
|
3597
|
-
404: {
|
|
3598
|
-
headers: {
|
|
3599
|
-
[name: string]: unknown;
|
|
3600
|
-
};
|
|
3601
|
-
content: {
|
|
3602
|
-
/** @example {
|
|
3603
|
-
* "error": "model not found"
|
|
3604
|
-
* } */
|
|
3605
|
-
"application/json": components["schemas"]["OllamaError"];
|
|
3606
|
-
};
|
|
3607
|
-
};
|
|
3608
|
-
/** @description Internal server error */
|
|
3609
|
-
500: {
|
|
3610
|
-
headers: {
|
|
3611
|
-
[name: string]: unknown;
|
|
3612
|
-
};
|
|
3613
|
-
content: {
|
|
3614
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3615
|
-
};
|
|
3616
|
-
};
|
|
3617
|
-
};
|
|
3618
|
-
};
|
|
3619
|
-
listOllamaModels: {
|
|
3620
|
-
parameters: {
|
|
3621
|
-
query?: never;
|
|
3622
|
-
header?: never;
|
|
3623
|
-
path?: never;
|
|
3624
|
-
cookie?: never;
|
|
3625
|
-
};
|
|
3626
|
-
requestBody?: never;
|
|
3627
|
-
responses: {
|
|
3628
|
-
/** @description List of available models */
|
|
3629
|
-
200: {
|
|
3630
|
-
headers: {
|
|
3631
|
-
[name: string]: unknown;
|
|
3632
|
-
};
|
|
3633
|
-
content: {
|
|
3634
|
-
/** @example {
|
|
3635
|
-
* "models": [
|
|
3636
|
-
* {
|
|
3637
|
-
* "details": {
|
|
3638
|
-
* "families": null,
|
|
3639
|
-
* "family": "unknown",
|
|
3640
|
-
* "format": "gguf",
|
|
3641
|
-
* "parameter_size": "",
|
|
3642
|
-
* "parent_model": null,
|
|
3643
|
-
* "quantization_level": ""
|
|
3644
|
-
* },
|
|
3645
|
-
* "digest": "sha256:abc123",
|
|
3646
|
-
* "model": "llama2:chat",
|
|
3647
|
-
* "modified_at": "2024-01-20T12:00:00.000000000Z",
|
|
3648
|
-
* "size": 0
|
|
3649
|
-
* }
|
|
3650
|
-
* ]
|
|
3651
|
-
* } */
|
|
3652
|
-
"application/json": components["schemas"]["ModelsResponse"];
|
|
3653
|
-
};
|
|
3654
|
-
};
|
|
3655
|
-
/** @description Invalid request parameters */
|
|
3656
|
-
400: {
|
|
3657
|
-
headers: {
|
|
3658
|
-
[name: string]: unknown;
|
|
3659
|
-
};
|
|
3660
|
-
content: {
|
|
3661
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3662
|
-
};
|
|
3663
|
-
};
|
|
3664
|
-
/** @description Not authenticated */
|
|
3665
|
-
401: {
|
|
3666
|
-
headers: {
|
|
3667
|
-
[name: string]: unknown;
|
|
3668
|
-
};
|
|
3669
|
-
content: {
|
|
3670
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3671
|
-
};
|
|
3672
|
-
};
|
|
3673
|
-
/** @description Insufficient permissions */
|
|
3674
|
-
403: {
|
|
3675
|
-
headers: {
|
|
3676
|
-
[name: string]: unknown;
|
|
3677
|
-
};
|
|
3678
|
-
content: {
|
|
3679
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3680
|
-
};
|
|
3681
|
-
};
|
|
3682
|
-
/** @description Internal server error */
|
|
3683
|
-
500: {
|
|
3684
|
-
headers: {
|
|
3685
|
-
[name: string]: unknown;
|
|
3686
|
-
};
|
|
3687
|
-
content: {
|
|
3688
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3689
|
-
};
|
|
3690
|
-
};
|
|
3691
|
-
};
|
|
3692
|
-
};
|
|
3693
3256
|
createChatCompletion: {
|
|
3694
3257
|
parameters: {
|
|
3695
3258
|
query?: never;
|