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