@petercatai/whisker-client 0.1.202506240459-dev → 0.1.202506250650-dev

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/api.d.ts CHANGED
@@ -244,6 +244,11 @@ export interface IActiveStatusUpdate {
244
244
  /** Status */
245
245
  status: boolean;
246
246
  }
247
+ /** Audio */
248
+ export interface IAudio {
249
+ /** Id */
250
+ id: string;
251
+ }
247
252
  /**
248
253
  * BaseCharSplitConfig
249
254
  * Base char split configuration class
@@ -301,26 +306,99 @@ export interface IBaseCodeSplitConfig {
301
306
  */
302
307
  chunk_overlap?: number;
303
308
  }
304
- /**
305
- * BaseMessage
306
- * Base abstract message class.
307
- *
308
- * Messages are the inputs and outputs of ChatModels.
309
- */
310
- export interface IBaseMessage {
309
+ /** ChatCompletionAssistantMessageParam */
310
+ export interface IChatCompletionAssistantMessageParam {
311
+ /** Role */
312
+ role: "assistant";
313
+ audio?: IAudio | null;
311
314
  /** Content */
312
- content: string | (string | Record<string, any>)[];
313
- /** Additional Kwargs */
314
- additional_kwargs?: Record<string, any>;
315
- /** Response Metadata */
316
- response_metadata?: Record<string, any>;
315
+ content?: string | (IChatCompletionContentPartTextParam | IChatCompletionContentPartRefusalParam)[] | null;
316
+ function_call?: IFunctionCall | null;
317
+ /** Name */
318
+ name?: string;
319
+ /** Refusal */
320
+ refusal?: string | null;
321
+ /** Tool Calls */
322
+ tool_calls?: IChatCompletionMessageToolCallParam[];
323
+ }
324
+ /** ChatCompletionContentPartImageParam */
325
+ export interface IChatCompletionContentPartImageParam {
326
+ image_url: IImageURL;
317
327
  /** Type */
318
- type: string;
328
+ type: "image_url";
329
+ }
330
+ /** ChatCompletionContentPartInputAudioParam */
331
+ export interface IChatCompletionContentPartInputAudioParam {
332
+ input_audio: IInputAudio;
333
+ /** Type */
334
+ type: "input_audio";
335
+ }
336
+ /** ChatCompletionContentPartRefusalParam */
337
+ export interface IChatCompletionContentPartRefusalParam {
338
+ /** Refusal */
339
+ refusal: string;
340
+ /** Type */
341
+ type: "refusal";
342
+ }
343
+ /** ChatCompletionContentPartTextParam */
344
+ export interface IChatCompletionContentPartTextParam {
345
+ /** Text */
346
+ text: string;
347
+ /** Type */
348
+ type: "text";
349
+ }
350
+ /** ChatCompletionDeveloperMessageParam */
351
+ export interface IChatCompletionDeveloperMessageParam {
352
+ /** Content */
353
+ content: string | IChatCompletionContentPartTextParam[];
354
+ /** Role */
355
+ role: "developer";
319
356
  /** Name */
320
- name?: string | null;
357
+ name?: string;
358
+ }
359
+ /** ChatCompletionFunctionMessageParam */
360
+ export interface IChatCompletionFunctionMessageParam {
361
+ /** Content */
362
+ content: string | null;
363
+ /** Name */
364
+ name: string;
365
+ /** Role */
366
+ role: "function";
367
+ }
368
+ /** ChatCompletionMessageToolCallParam */
369
+ export interface IChatCompletionMessageToolCallParam {
321
370
  /** Id */
322
- id?: string | null;
323
- [key: string]: any;
371
+ id: string;
372
+ function: IFunction;
373
+ /** Type */
374
+ type: "function";
375
+ }
376
+ /** ChatCompletionSystemMessageParam */
377
+ export interface IChatCompletionSystemMessageParam {
378
+ /** Content */
379
+ content: string | IChatCompletionContentPartTextParam[];
380
+ /** Role */
381
+ role: "system";
382
+ /** Name */
383
+ name?: string;
384
+ }
385
+ /** ChatCompletionToolMessageParam */
386
+ export interface IChatCompletionToolMessageParam {
387
+ /** Content */
388
+ content: string | IChatCompletionContentPartTextParam[];
389
+ /** Role */
390
+ role: "tool";
391
+ /** Tool Call Id */
392
+ tool_call_id: string;
393
+ }
394
+ /** ChatCompletionUserMessageParam */
395
+ export interface IChatCompletionUserMessageParam {
396
+ /** Content */
397
+ content: string | (IChatCompletionContentPartTextParam | IChatCompletionContentPartImageParam | IChatCompletionContentPartInputAudioParam | IFile)[];
398
+ /** Role */
399
+ role: "user";
400
+ /** Name */
401
+ name?: string;
324
402
  }
325
403
  /** Chunk */
326
404
  export interface IChunk {
@@ -435,6 +513,15 @@ export interface IChunkUpdate {
435
513
  /** Metadata */
436
514
  metadata?: Record<string, any> | null;
437
515
  }
516
+ /** ConditionItem */
517
+ export interface IConditionItem {
518
+ /** Field */
519
+ field: string;
520
+ /** Operator */
521
+ operator: string;
522
+ /** Value */
523
+ value: any;
524
+ }
438
525
  /** EnableStatusUpdate */
439
526
  export interface IEnableStatusUpdate {
440
527
  /** Knowledge Id */
@@ -442,6 +529,35 @@ export interface IEnableStatusUpdate {
442
529
  /** Status */
443
530
  status: boolean;
444
531
  }
532
+ /** File */
533
+ export interface IFile {
534
+ file: IFileFile;
535
+ /** Type */
536
+ type: "file";
537
+ }
538
+ /** FileFile */
539
+ export interface IFileFile {
540
+ /** File Data */
541
+ file_data?: string;
542
+ /** File Id */
543
+ file_id?: string;
544
+ /** Filename */
545
+ filename?: string;
546
+ }
547
+ /** Function */
548
+ export interface IFunction {
549
+ /** Arguments */
550
+ arguments: string;
551
+ /** Name */
552
+ name: string;
553
+ }
554
+ /** FunctionCall */
555
+ export interface IFunctionCall {
556
+ /** Arguments */
557
+ arguments: string;
558
+ /** Name */
559
+ name: string;
560
+ }
445
561
  /**
446
562
  * GeaGraphSplitConfig
447
563
  * JSON document split configuration
@@ -681,6 +797,20 @@ export interface IImageSplitConfig {
681
797
  */
682
798
  type?: "image";
683
799
  }
800
+ /** ImageURL */
801
+ export interface IImageURL {
802
+ /** Url */
803
+ url: string;
804
+ /** Detail */
805
+ detail?: "auto" | "low" | "high";
806
+ }
807
+ /** InputAudio */
808
+ export interface IInputAudio {
809
+ /** Data */
810
+ data: string;
811
+ /** Format */
812
+ format: "wav" | "mp3";
813
+ }
684
814
  /** JSONCreate */
685
815
  export interface IJSONCreate {
686
816
  /**
@@ -939,8 +1069,6 @@ export interface IKnowledgeOutput {
939
1069
  export interface IKnowledgeScope {
940
1070
  /** Space Ids */
941
1071
  space_ids?: string[] | null;
942
- /** Tenant Id */
943
- tenant_id: string;
944
1072
  /** Auth Info */
945
1073
  auth_info: string;
946
1074
  }
@@ -1161,6 +1289,11 @@ export interface IPageQueryParamsAPIKey {
1161
1289
  * list of equality conditions, each as a dict with key and value
1162
1290
  */
1163
1291
  eq_conditions?: Record<string, any> | null;
1292
+ /**
1293
+ * Conditions
1294
+ * list of or conditions, each as a dict with field, operator and value
1295
+ */
1296
+ conditions?: IConditionItem[] | null;
1164
1297
  /**
1165
1298
  * Page
1166
1299
  * page number
@@ -1195,6 +1328,11 @@ export interface IPageQueryParamsChunk {
1195
1328
  * list of equality conditions, each as a dict with key and value
1196
1329
  */
1197
1330
  eq_conditions?: Record<string, any> | null;
1331
+ /**
1332
+ * Conditions
1333
+ * list of or conditions, each as a dict with field, operator and value
1334
+ */
1335
+ conditions?: IConditionItem[] | null;
1198
1336
  /**
1199
1337
  * Page
1200
1338
  * page number
@@ -1229,6 +1367,11 @@ export interface IPageQueryParamsKnowledge {
1229
1367
  * list of equality conditions, each as a dict with key and value
1230
1368
  */
1231
1369
  eq_conditions?: Record<string, any> | null;
1370
+ /**
1371
+ * Conditions
1372
+ * list of or conditions, each as a dict with field, operator and value
1373
+ */
1374
+ conditions?: IConditionItem[] | null;
1232
1375
  /**
1233
1376
  * Page
1234
1377
  * page number
@@ -1263,6 +1406,11 @@ export interface IPageQueryParamsSpace {
1263
1406
  * list of equality conditions, each as a dict with key and value
1264
1407
  */
1265
1408
  eq_conditions?: Record<string, any> | null;
1409
+ /**
1410
+ * Conditions
1411
+ * list of or conditions, each as a dict with field, operator and value
1412
+ */
1413
+ conditions?: IConditionItem[] | null;
1266
1414
  /**
1267
1415
  * Page
1268
1416
  * page number
@@ -1297,6 +1445,11 @@ export interface IPageQueryParamsTask {
1297
1445
  * list of equality conditions, each as a dict with key and value
1298
1446
  */
1299
1447
  eq_conditions?: Record<string, any> | null;
1448
+ /**
1449
+ * Conditions
1450
+ * list of or conditions, each as a dict with field, operator and value
1451
+ */
1452
+ conditions?: IConditionItem[] | null;
1300
1453
  /**
1301
1454
  * Page
1302
1455
  * page number
@@ -1393,7 +1546,7 @@ export interface IProResearchRequest {
1393
1546
  * The messages to be sent to the agent.
1394
1547
  * @default []
1395
1548
  */
1396
- messages?: IBaseMessage[];
1549
+ messages?: (IChatCompletionDeveloperMessageParam | IChatCompletionSystemMessageParam | IChatCompletionUserMessageParam | IChatCompletionAssistantMessageParam | IChatCompletionToolMessageParam | IChatCompletionFunctionMessageParam)[];
1397
1550
  /**
1398
1551
  * Model
1399
1552
  * The name of the language model to use for the agent's query generation.
@@ -2852,16 +3005,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2852
3005
  */
2853
3006
  getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
2854
3007
  };
2855
- api: {
3008
+ v1: {
2856
3009
  /**
2857
3010
  * No description
2858
3011
  *
2859
3012
  * @tags agent
2860
- * @name ProResearchV1ApiAgentProResearchPost
3013
+ * @name ProResearchApiV1AgentProResearchPost
2861
3014
  * @summary Pro Research
2862
- * @request POST:/v1/api/agent/pro_research
3015
+ * @request POST:/api/v1/agent/pro_research
2863
3016
  */
2864
- proResearchV1ApiAgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3017
+ proResearchApiV1AgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
2865
3018
  };
2866
3019
  healthChecker: {
2867
3020
  /**
package/dist/api.js CHANGED
@@ -677,16 +677,16 @@ class Api extends HttpClient {
677
677
  */
678
678
  getAllExpiredApiKeys: (params = {}) => this.request(Object.assign({ path: `/api/api_key/expired`, method: "GET", format: "json" }, params)),
679
679
  };
680
- this.api = {
680
+ this.v1 = {
681
681
  /**
682
682
  * No description
683
683
  *
684
684
  * @tags agent
685
- * @name ProResearchV1ApiAgentProResearchPost
685
+ * @name ProResearchApiV1AgentProResearchPost
686
686
  * @summary Pro Research
687
- * @request POST:/v1/api/agent/pro_research
687
+ * @request POST:/api/v1/agent/pro_research
688
688
  */
689
- proResearchV1ApiAgentProResearchPost: (data, params = {}) => this.request(Object.assign({ path: `/v1/api/agent/pro_research`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
689
+ proResearchApiV1AgentProResearchPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/agent/pro_research`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
690
690
  };
691
691
  this.healthChecker = {
692
692
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.1.202506240459-dev",
3
+ "version": "0.1.202506250650-dev",
4
4
  "description": "Generated API client (preview)",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",
@@ -16,7 +16,7 @@
16
16
  "tag": "dev"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^24.0.3",
19
+ "@types/node": "^24.0.4",
20
20
  "axios": "^1.10.0",
21
21
  "typescript": "^5.8.3"
22
22
  }