@bodhiapp/ts-client 0.1.33 → 0.1.34

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.
@@ -617,14 +617,6 @@ export type ChatCompletionTools = (ChatCompletionTool & {
617
617
  }) | (CustomToolChatCompletions & {
618
618
  type: 'custom';
619
619
  });
620
- export type ChatRequest = {
621
- model: string;
622
- messages: Array<Message>;
623
- stream?: boolean | null;
624
- format?: string | null;
625
- keep_alive?: null | Duration;
626
- options?: null | Options;
627
- };
628
620
  export type ClickButtonType = 'left' | 'right' | 'wheel' | 'back' | 'forward';
629
621
  /**
630
622
  * A click action.
@@ -1664,7 +1656,6 @@ export type DragParam = {
1664
1656
  */
1665
1657
  path: Array<CoordParam>;
1666
1658
  };
1667
- export type Duration = string;
1668
1659
  /**
1669
1660
  * Content for EasyInputMessage - can be a simple string or structured list.
1670
1661
  */
@@ -2828,11 +2819,6 @@ export type McpToolFilter = {
2828
2819
  */
2829
2820
  export type McpToolRequireApproval = McpToolApprovalFilter | McpToolApprovalSetting;
2830
2821
  export type McpToolConnectorId = 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
2831
- export type Message = {
2832
- role: string;
2833
- content: string;
2834
- images?: Array<string> | null;
2835
- };
2836
2822
  /**
2837
2823
  * A message item used within the `Item` enum.
2838
2824
  *
@@ -2882,17 +2868,6 @@ export type Model = {
2882
2868
  */
2883
2869
  owned_by: string;
2884
2870
  };
2885
- export type ModelDetails = {
2886
- parent_model?: string | null;
2887
- format: string;
2888
- family: string;
2889
- families?: Array<string> | null;
2890
- parameter_size: string;
2891
- quantization_level: string;
2892
- };
2893
- export type ModelsResponse = {
2894
- models: Array<OllamaModel>;
2895
- };
2896
2871
  /**
2897
2872
  * A mouse move action.
2898
2873
  */
@@ -2931,47 +2906,6 @@ export type NamespaceToolParamTool = (FunctionToolParam & {
2931
2906
  }) | (CustomToolParam & {
2932
2907
  type: 'custom';
2933
2908
  });
2934
- export type OllamaError = {
2935
- error: string;
2936
- };
2937
- export type OllamaModel = {
2938
- model: string;
2939
- modified_at: number;
2940
- size: number;
2941
- digest: string;
2942
- details: ModelDetails;
2943
- };
2944
- export type Options = {
2945
- num_keep?: number | null;
2946
- seed?: number | null;
2947
- num_predict?: number | null;
2948
- top_k?: number | null;
2949
- top_p?: number | null;
2950
- tfs_z?: number | null;
2951
- typical_p?: number | null;
2952
- repeat_last_n?: number | null;
2953
- temperature?: number | null;
2954
- repeat_penalty?: number | null;
2955
- presence_penalty?: number | null;
2956
- frequency_penalty?: number | null;
2957
- mirostat?: number | null;
2958
- mirostat_tau?: number | null;
2959
- mirostat_eta?: number | null;
2960
- penalize_newline?: boolean | null;
2961
- stop?: Array<string> | null;
2962
- numa?: boolean | null;
2963
- num_ctx?: number | null;
2964
- num_batch?: number | null;
2965
- num_gpu?: number | null;
2966
- main_gpu?: number | null;
2967
- low_vram?: boolean | null;
2968
- f16_kv?: boolean | null;
2969
- logits_all?: boolean | null;
2970
- vocab_only?: boolean | null;
2971
- use_mmap?: boolean | null;
2972
- use_mlock?: boolean | null;
2973
- num_thread?: number | null;
2974
- };
2975
2909
  /**
2976
2910
  * Output item
2977
2911
  */
@@ -3453,18 +3387,6 @@ export type ScrollParam = {
3453
3387
  */
3454
3388
  export type SearchContentType = 'text' | 'image';
3455
3389
  export type ServiceTier = 'auto' | 'default' | 'flex' | 'scale' | 'priority';
3456
- export type ShowRequest = {
3457
- name: string;
3458
- };
3459
- export type ShowResponse = {
3460
- details: ModelDetails;
3461
- license: string;
3462
- model_info: {};
3463
- modelfile: string;
3464
- modified_at: number;
3465
- parameters: string;
3466
- template: string;
3467
- };
3468
3390
  /**
3469
3391
  * A skill parameter — either a reference or inline definition.
3470
3392
  */
@@ -3970,115 +3892,6 @@ export type WebSearchUserLocation = {
3970
3892
  approximate: WebSearchLocation;
3971
3893
  };
3972
3894
  export type WebSearchUserLocationType = 'approximate';
3973
- export type ChatOllamaModelData = {
3974
- /**
3975
- * Chat request in Ollama format
3976
- */
3977
- body: ChatRequest;
3978
- path?: never;
3979
- query?: never;
3980
- url: '/api/chat';
3981
- };
3982
- export type ChatOllamaModelErrors = {
3983
- /**
3984
- * Invalid request parameters
3985
- */
3986
- 400: ErrorResponse;
3987
- /**
3988
- * Not authenticated
3989
- */
3990
- 401: ErrorResponse;
3991
- /**
3992
- * Insufficient permissions
3993
- */
3994
- 403: ErrorResponse;
3995
- /**
3996
- * Model not found
3997
- */
3998
- 404: OllamaError;
3999
- /**
4000
- * Internal server error
4001
- */
4002
- 500: ErrorResponse;
4003
- };
4004
- export type ChatOllamaModelError = ChatOllamaModelErrors[keyof ChatOllamaModelErrors];
4005
- export type ChatOllamaModelResponses = {
4006
- /**
4007
- * Chat response
4008
- */
4009
- 200: unknown;
4010
- };
4011
- export type ShowOllamaModelData = {
4012
- /**
4013
- * Model name to get details for
4014
- */
4015
- body: ShowRequest;
4016
- path?: never;
4017
- query?: never;
4018
- url: '/api/show';
4019
- };
4020
- export type ShowOllamaModelErrors = {
4021
- /**
4022
- * Invalid request parameters
4023
- */
4024
- 400: ErrorResponse;
4025
- /**
4026
- * Not authenticated
4027
- */
4028
- 401: ErrorResponse;
4029
- /**
4030
- * Insufficient permissions
4031
- */
4032
- 403: ErrorResponse;
4033
- /**
4034
- * Model not found
4035
- */
4036
- 404: OllamaError;
4037
- /**
4038
- * Internal server error
4039
- */
4040
- 500: ErrorResponse;
4041
- };
4042
- export type ShowOllamaModelError = ShowOllamaModelErrors[keyof ShowOllamaModelErrors];
4043
- export type ShowOllamaModelResponses = {
4044
- /**
4045
- * Model details
4046
- */
4047
- 200: ShowResponse;
4048
- };
4049
- export type ShowOllamaModelResponse = ShowOllamaModelResponses[keyof ShowOllamaModelResponses];
4050
- export type ListOllamaModelsData = {
4051
- body?: never;
4052
- path?: never;
4053
- query?: never;
4054
- url: '/api/tags';
4055
- };
4056
- export type ListOllamaModelsErrors = {
4057
- /**
4058
- * Invalid request parameters
4059
- */
4060
- 400: ErrorResponse;
4061
- /**
4062
- * Not authenticated
4063
- */
4064
- 401: ErrorResponse;
4065
- /**
4066
- * Insufficient permissions
4067
- */
4068
- 403: ErrorResponse;
4069
- /**
4070
- * Internal server error
4071
- */
4072
- 500: ErrorResponse;
4073
- };
4074
- export type ListOllamaModelsError = ListOllamaModelsErrors[keyof ListOllamaModelsErrors];
4075
- export type ListOllamaModelsResponses = {
4076
- /**
4077
- * List of available models
4078
- */
4079
- 200: ModelsResponse;
4080
- };
4081
- export type ListOllamaModelsResponse = ListOllamaModelsResponses[keyof ListOllamaModelsResponses];
4082
3895
  export type CreateChatCompletionData = {
4083
3896
  body: CreateChatCompletionRequest;
4084
3897
  path?: never;
@@ -686,15 +686,6 @@ export type ChatCompletionTools = (ChatCompletionTool & {
686
686
  type: 'custom';
687
687
  });
688
688
 
689
- export type ChatRequest = {
690
- model: string;
691
- messages: Array<Message>;
692
- stream?: boolean | null;
693
- format?: string | null;
694
- keep_alive?: null | Duration;
695
- options?: null | Options;
696
- };
697
-
698
689
  export type ClickButtonType = 'left' | 'right' | 'wheel' | 'back' | 'forward';
699
690
 
700
691
  /**
@@ -1791,8 +1782,6 @@ export type DragParam = {
1791
1782
  path: Array<CoordParam>;
1792
1783
  };
1793
1784
 
1794
- export type Duration = string;
1795
-
1796
1785
  /**
1797
1786
  * Content for EasyInputMessage - can be a simple string or structured list.
1798
1787
  */
@@ -3059,12 +3048,6 @@ export type McpToolRequireApproval = McpToolApprovalFilter | McpToolApprovalSett
3059
3048
 
3060
3049
  export type McpToolConnectorId = 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
3061
3050
 
3062
- export type Message = {
3063
- role: string;
3064
- content: string;
3065
- images?: Array<string> | null;
3066
- };
3067
-
3068
3051
  /**
3069
3052
  * A message item used within the `Item` enum.
3070
3053
  *
@@ -3119,19 +3102,6 @@ export type Model = {
3119
3102
  owned_by: string;
3120
3103
  };
3121
3104
 
3122
- export type ModelDetails = {
3123
- parent_model?: string | null;
3124
- format: string;
3125
- family: string;
3126
- families?: Array<string> | null;
3127
- parameter_size: string;
3128
- quantization_level: string;
3129
- };
3130
-
3131
- export type ModelsResponse = {
3132
- models: Array<OllamaModel>;
3133
- };
3134
-
3135
3105
  /**
3136
3106
  * A mouse move action.
3137
3107
  */
@@ -3173,50 +3143,6 @@ export type NamespaceToolParamTool = (FunctionToolParam & {
3173
3143
  type: 'custom';
3174
3144
  });
3175
3145
 
3176
- export type OllamaError = {
3177
- error: string;
3178
- };
3179
-
3180
- export type OllamaModel = {
3181
- model: string;
3182
- modified_at: number;
3183
- size: number;
3184
- digest: string;
3185
- details: ModelDetails;
3186
- };
3187
-
3188
- export type Options = {
3189
- num_keep?: number | null;
3190
- seed?: number | null;
3191
- num_predict?: number | null;
3192
- top_k?: number | null;
3193
- top_p?: number | null;
3194
- tfs_z?: number | null;
3195
- typical_p?: number | null;
3196
- repeat_last_n?: number | null;
3197
- temperature?: number | null;
3198
- repeat_penalty?: number | null;
3199
- presence_penalty?: number | null;
3200
- frequency_penalty?: number | null;
3201
- mirostat?: number | null;
3202
- mirostat_tau?: number | null;
3203
- mirostat_eta?: number | null;
3204
- penalize_newline?: boolean | null;
3205
- stop?: Array<string> | null;
3206
- numa?: boolean | null;
3207
- num_ctx?: number | null;
3208
- num_batch?: number | null;
3209
- num_gpu?: number | null;
3210
- main_gpu?: number | null;
3211
- low_vram?: boolean | null;
3212
- f16_kv?: boolean | null;
3213
- logits_all?: boolean | null;
3214
- vocab_only?: boolean | null;
3215
- use_mmap?: boolean | null;
3216
- use_mlock?: boolean | null;
3217
- num_thread?: number | null;
3218
- };
3219
-
3220
3146
  /**
3221
3147
  * Output item
3222
3148
  */
@@ -3729,20 +3655,6 @@ export type SearchContentType = 'text' | 'image';
3729
3655
 
3730
3656
  export type ServiceTier = 'auto' | 'default' | 'flex' | 'scale' | 'priority';
3731
3657
 
3732
- export type ShowRequest = {
3733
- name: string;
3734
- };
3735
-
3736
- export type ShowResponse = {
3737
- details: ModelDetails;
3738
- license: string;
3739
- model_info: {};
3740
- modelfile: string;
3741
- modified_at: number;
3742
- parameters: string;
3743
- template: string;
3744
- };
3745
-
3746
3658
  /**
3747
3659
  * A skill parameter — either a reference or inline definition.
3748
3660
  */
@@ -4294,129 +4206,6 @@ export type WebSearchUserLocation = {
4294
4206
 
4295
4207
  export type WebSearchUserLocationType = 'approximate';
4296
4208
 
4297
- export type ChatOllamaModelData = {
4298
- /**
4299
- * Chat request in Ollama format
4300
- */
4301
- body: ChatRequest;
4302
- path?: never;
4303
- query?: never;
4304
- url: '/api/chat';
4305
- };
4306
-
4307
- export type ChatOllamaModelErrors = {
4308
- /**
4309
- * Invalid request parameters
4310
- */
4311
- 400: ErrorResponse;
4312
- /**
4313
- * Not authenticated
4314
- */
4315
- 401: ErrorResponse;
4316
- /**
4317
- * Insufficient permissions
4318
- */
4319
- 403: ErrorResponse;
4320
- /**
4321
- * Model not found
4322
- */
4323
- 404: OllamaError;
4324
- /**
4325
- * Internal server error
4326
- */
4327
- 500: ErrorResponse;
4328
- };
4329
-
4330
- export type ChatOllamaModelError = ChatOllamaModelErrors[keyof ChatOllamaModelErrors];
4331
-
4332
- export type ChatOllamaModelResponses = {
4333
- /**
4334
- * Chat response
4335
- */
4336
- 200: unknown;
4337
- };
4338
-
4339
- export type ShowOllamaModelData = {
4340
- /**
4341
- * Model name to get details for
4342
- */
4343
- body: ShowRequest;
4344
- path?: never;
4345
- query?: never;
4346
- url: '/api/show';
4347
- };
4348
-
4349
- export type ShowOllamaModelErrors = {
4350
- /**
4351
- * Invalid request parameters
4352
- */
4353
- 400: ErrorResponse;
4354
- /**
4355
- * Not authenticated
4356
- */
4357
- 401: ErrorResponse;
4358
- /**
4359
- * Insufficient permissions
4360
- */
4361
- 403: ErrorResponse;
4362
- /**
4363
- * Model not found
4364
- */
4365
- 404: OllamaError;
4366
- /**
4367
- * Internal server error
4368
- */
4369
- 500: ErrorResponse;
4370
- };
4371
-
4372
- export type ShowOllamaModelError = ShowOllamaModelErrors[keyof ShowOllamaModelErrors];
4373
-
4374
- export type ShowOllamaModelResponses = {
4375
- /**
4376
- * Model details
4377
- */
4378
- 200: ShowResponse;
4379
- };
4380
-
4381
- export type ShowOllamaModelResponse = ShowOllamaModelResponses[keyof ShowOllamaModelResponses];
4382
-
4383
- export type ListOllamaModelsData = {
4384
- body?: never;
4385
- path?: never;
4386
- query?: never;
4387
- url: '/api/tags';
4388
- };
4389
-
4390
- export type ListOllamaModelsErrors = {
4391
- /**
4392
- * Invalid request parameters
4393
- */
4394
- 400: ErrorResponse;
4395
- /**
4396
- * Not authenticated
4397
- */
4398
- 401: ErrorResponse;
4399
- /**
4400
- * Insufficient permissions
4401
- */
4402
- 403: ErrorResponse;
4403
- /**
4404
- * Internal server error
4405
- */
4406
- 500: ErrorResponse;
4407
- };
4408
-
4409
- export type ListOllamaModelsError = ListOllamaModelsErrors[keyof ListOllamaModelsErrors];
4410
-
4411
- export type ListOllamaModelsResponses = {
4412
- /**
4413
- * List of available models
4414
- */
4415
- 200: ModelsResponse;
4416
- };
4417
-
4418
- export type ListOllamaModelsResponse = ListOllamaModelsResponses[keyof ListOllamaModelsResponses];
4419
-
4420
4209
  export type CreateChatCompletionData = {
4421
4210
  body: CreateChatCompletionRequest;
4422
4211
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/ts-client",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "TypeScript types for Bodhi API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",