@petercatai/whisker-client 0.1.202506200718 → 0.1.202506250219-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 +241 -0
- package/dist/api.js +11 -0
- package/package.json +4 -4
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,6 +306,100 @@ export interface IBaseCodeSplitConfig {
|
|
|
301
306
|
*/
|
|
302
307
|
chunk_overlap?: number;
|
|
303
308
|
}
|
|
309
|
+
/** ChatCompletionAssistantMessageParam */
|
|
310
|
+
export interface IChatCompletionAssistantMessageParam {
|
|
311
|
+
/** Role */
|
|
312
|
+
role: "assistant";
|
|
313
|
+
audio?: IAudio | null;
|
|
314
|
+
/** Content */
|
|
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;
|
|
327
|
+
/** Type */
|
|
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";
|
|
356
|
+
/** Name */
|
|
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 {
|
|
370
|
+
/** Id */
|
|
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;
|
|
402
|
+
}
|
|
304
403
|
/** Chunk */
|
|
305
404
|
export interface IChunk {
|
|
306
405
|
/**
|
|
@@ -414,6 +513,15 @@ export interface IChunkUpdate {
|
|
|
414
513
|
/** Metadata */
|
|
415
514
|
metadata?: Record<string, any> | null;
|
|
416
515
|
}
|
|
516
|
+
/** ConditionItem */
|
|
517
|
+
export interface IConditionItem {
|
|
518
|
+
/** Field */
|
|
519
|
+
field: string;
|
|
520
|
+
/** Operator */
|
|
521
|
+
operator: string;
|
|
522
|
+
/** Value */
|
|
523
|
+
value: any;
|
|
524
|
+
}
|
|
417
525
|
/** EnableStatusUpdate */
|
|
418
526
|
export interface IEnableStatusUpdate {
|
|
419
527
|
/** Knowledge Id */
|
|
@@ -421,6 +529,35 @@ export interface IEnableStatusUpdate {
|
|
|
421
529
|
/** Status */
|
|
422
530
|
status: boolean;
|
|
423
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
|
+
}
|
|
424
561
|
/**
|
|
425
562
|
* GeaGraphSplitConfig
|
|
426
563
|
* JSON document split configuration
|
|
@@ -660,6 +797,20 @@ export interface IImageSplitConfig {
|
|
|
660
797
|
*/
|
|
661
798
|
type?: "image";
|
|
662
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
|
+
}
|
|
663
814
|
/** JSONCreate */
|
|
664
815
|
export interface IJSONCreate {
|
|
665
816
|
/**
|
|
@@ -914,6 +1065,13 @@ export interface IKnowledgeOutput {
|
|
|
914
1065
|
*/
|
|
915
1066
|
enabled?: boolean;
|
|
916
1067
|
}
|
|
1068
|
+
/** KnowledgeScope */
|
|
1069
|
+
export interface IKnowledgeScope {
|
|
1070
|
+
/** Space Ids */
|
|
1071
|
+
space_ids?: string[] | null;
|
|
1072
|
+
/** Auth Info */
|
|
1073
|
+
auth_info: string;
|
|
1074
|
+
}
|
|
917
1075
|
/** MarkdownCreate */
|
|
918
1076
|
export interface IMarkdownCreate {
|
|
919
1077
|
/**
|
|
@@ -1131,6 +1289,11 @@ export interface IPageQueryParamsAPIKey {
|
|
|
1131
1289
|
* list of equality conditions, each as a dict with key and value
|
|
1132
1290
|
*/
|
|
1133
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;
|
|
1134
1297
|
/**
|
|
1135
1298
|
* Page
|
|
1136
1299
|
* page number
|
|
@@ -1165,6 +1328,11 @@ export interface IPageQueryParamsChunk {
|
|
|
1165
1328
|
* list of equality conditions, each as a dict with key and value
|
|
1166
1329
|
*/
|
|
1167
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;
|
|
1168
1336
|
/**
|
|
1169
1337
|
* Page
|
|
1170
1338
|
* page number
|
|
@@ -1199,6 +1367,11 @@ export interface IPageQueryParamsKnowledge {
|
|
|
1199
1367
|
* list of equality conditions, each as a dict with key and value
|
|
1200
1368
|
*/
|
|
1201
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;
|
|
1202
1375
|
/**
|
|
1203
1376
|
* Page
|
|
1204
1377
|
* page number
|
|
@@ -1233,6 +1406,11 @@ export interface IPageQueryParamsSpace {
|
|
|
1233
1406
|
* list of equality conditions, each as a dict with key and value
|
|
1234
1407
|
*/
|
|
1235
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;
|
|
1236
1414
|
/**
|
|
1237
1415
|
* Page
|
|
1238
1416
|
* page number
|
|
@@ -1267,6 +1445,11 @@ export interface IPageQueryParamsTask {
|
|
|
1267
1445
|
* list of equality conditions, each as a dict with key and value
|
|
1268
1446
|
*/
|
|
1269
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;
|
|
1270
1453
|
/**
|
|
1271
1454
|
* Page
|
|
1272
1455
|
* page number
|
|
@@ -1356,6 +1539,53 @@ export interface IPermission {
|
|
|
1356
1539
|
/** Conditions */
|
|
1357
1540
|
conditions?: Record<string, any> | null;
|
|
1358
1541
|
}
|
|
1542
|
+
/** ProResearchRequest */
|
|
1543
|
+
export interface IProResearchRequest {
|
|
1544
|
+
/**
|
|
1545
|
+
* Messages
|
|
1546
|
+
* The messages to be sent to the agent.
|
|
1547
|
+
* @default []
|
|
1548
|
+
*/
|
|
1549
|
+
messages?: (IChatCompletionDeveloperMessageParam | IChatCompletionSystemMessageParam | IChatCompletionUserMessageParam | IChatCompletionAssistantMessageParam | IChatCompletionToolMessageParam | IChatCompletionFunctionMessageParam)[];
|
|
1550
|
+
/**
|
|
1551
|
+
* Model
|
|
1552
|
+
* The name of the language model to use for the agent's query generation.
|
|
1553
|
+
* @default "wohu_qwen3_235b_a22b"
|
|
1554
|
+
*/
|
|
1555
|
+
model?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* Number Of Initial Queries
|
|
1558
|
+
* The number of initial search queries to generate.
|
|
1559
|
+
* @default 3
|
|
1560
|
+
*/
|
|
1561
|
+
number_of_initial_queries?: number;
|
|
1562
|
+
/**
|
|
1563
|
+
* Max Research Loops
|
|
1564
|
+
* The maximum number of research loops to perform.
|
|
1565
|
+
* @default 2
|
|
1566
|
+
*/
|
|
1567
|
+
max_research_loops?: number;
|
|
1568
|
+
/**
|
|
1569
|
+
* Enable Knowledge Retrieval
|
|
1570
|
+
* Whether to enable knowledge retrieval functionality.
|
|
1571
|
+
* @default true
|
|
1572
|
+
*/
|
|
1573
|
+
enable_knowledge_retrieval?: boolean;
|
|
1574
|
+
/**
|
|
1575
|
+
* Enable Web Search
|
|
1576
|
+
* Whether to enable web search functionality.
|
|
1577
|
+
* @default false
|
|
1578
|
+
*/
|
|
1579
|
+
enable_web_search?: boolean;
|
|
1580
|
+
/**
|
|
1581
|
+
* Knowledge Scope List
|
|
1582
|
+
* List of knowledge scopes to search within.
|
|
1583
|
+
* @default []
|
|
1584
|
+
*/
|
|
1585
|
+
knowledge_scope_list?: IKnowledgeScope[];
|
|
1586
|
+
/** Knowledge retrieval configuration. */
|
|
1587
|
+
knowledge_retrieval_config?: IRetrievalConfig | null;
|
|
1588
|
+
}
|
|
1359
1589
|
/** QACreate */
|
|
1360
1590
|
export interface IQACreate {
|
|
1361
1591
|
/**
|
|
@@ -2775,6 +3005,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2775
3005
|
*/
|
|
2776
3006
|
getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
|
|
2777
3007
|
};
|
|
3008
|
+
api: {
|
|
3009
|
+
/**
|
|
3010
|
+
* No description
|
|
3011
|
+
*
|
|
3012
|
+
* @tags agent
|
|
3013
|
+
* @name ProResearchV1ApiAgentProResearchPost
|
|
3014
|
+
* @summary Pro Research
|
|
3015
|
+
* @request POST:/v1/api/agent/pro_research
|
|
3016
|
+
*/
|
|
3017
|
+
proResearchV1ApiAgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3018
|
+
};
|
|
2778
3019
|
healthChecker: {
|
|
2779
3020
|
/**
|
|
2780
3021
|
* No description
|
package/dist/api.js
CHANGED
|
@@ -677,6 +677,17 @@ 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 = {
|
|
681
|
+
/**
|
|
682
|
+
* No description
|
|
683
|
+
*
|
|
684
|
+
* @tags agent
|
|
685
|
+
* @name ProResearchV1ApiAgentProResearchPost
|
|
686
|
+
* @summary Pro Research
|
|
687
|
+
* @request POST:/v1/api/agent/pro_research
|
|
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)),
|
|
690
|
+
};
|
|
680
691
|
this.healthChecker = {
|
|
681
692
|
/**
|
|
682
693
|
* No description
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petercatai/whisker-client",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Generated API client (
|
|
3
|
+
"version": "0.1.202506250219-dev",
|
|
4
|
+
"description": "Generated API client (preview)",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
16
|
-
"tag": "
|
|
16
|
+
"tag": "dev"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^24.0.
|
|
19
|
+
"@types/node": "^24.0.4",
|
|
20
20
|
"axios": "^1.10.0",
|
|
21
21
|
"typescript": "^5.8.3"
|
|
22
22
|
}
|