@petercatai/whisker-client 0.1.202506270819-dev → 0.1.202507100532

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
@@ -21,6 +21,11 @@ export declare enum IResource {
21
21
  Rule = "rule",
22
22
  Public = "public"
23
23
  }
24
+ /** Operator */
25
+ export declare enum IOperator {
26
+ And = "and",
27
+ Or = "or"
28
+ }
24
29
  /**
25
30
  * Language
26
31
  * Enum of the programming languages.
@@ -513,8 +518,8 @@ export interface IChunkUpdate {
513
518
  /** Metadata */
514
519
  metadata?: Record<string, any> | null;
515
520
  }
516
- /** ConditionItem */
517
- export interface IConditionItem {
521
+ /** Condition */
522
+ export interface ICondition {
518
523
  /** Field */
519
524
  field: string;
520
525
  /** Operator */
@@ -544,6 +549,12 @@ export interface IFileFile {
544
549
  /** Filename */
545
550
  filename?: string;
546
551
  }
552
+ /** FilterGroup */
553
+ export interface IFilterGroup {
554
+ operator: IOperator;
555
+ /** Conditions */
556
+ conditions: (ICondition | IFilterGroup)[];
557
+ }
547
558
  /** Function */
548
559
  export interface IFunction {
549
560
  /** Arguments */
@@ -738,16 +749,10 @@ export interface IGlobalInfo {
738
749
  knowledge_count?: number | null;
739
750
  /** Task Count */
740
751
  task_count?: number | null;
741
- /** Agent Count */
742
- agent_count?: number | null;
743
- /** Last 1D User Count */
744
- last_1d_user_count?: number | null;
745
- /** Last 7D User Count */
746
- last_7d_user_count?: number | null;
747
- /** Sum User Count */
748
- sum_user_count?: number | null;
749
752
  /** Tenant Count */
750
753
  tenant_count?: number | null;
754
+ /** Retrieval Count */
755
+ retrieval_count?: number | null;
751
756
  /** Storage Size */
752
757
  storage_size?: string | null;
753
758
  }
@@ -966,7 +971,7 @@ export interface IKnowledgeInput {
966
971
  * Split Config
967
972
  * configuration for splitting the knowledge
968
973
  */
969
- split_config: IBaseCharSplitConfig | IMarkdownSplitConfig | ITextSplitConfig | IJSONSplitConfig | IPDFSplitConfig | IGeaGraphSplitConfig | IGithubRepoParseConfig | IBaseCodeSplitConfig;
974
+ split_config: IBaseCharSplitConfig | IMarkdownSplitConfig | ITextSplitConfig | IJSONSplitConfig | IPDFSplitConfig | IYuqueSplitConfig | IGeaGraphSplitConfig | IGithubRepoParseConfig | IBaseCodeSplitConfig | IImageSplitConfig;
970
975
  /**
971
976
  * File Sha
972
977
  * SHA of the file
@@ -1052,7 +1057,7 @@ export interface IKnowledgeOutput {
1052
1057
  * Split Config
1053
1058
  * configuration for splitting the knowledge
1054
1059
  */
1055
- split_config: IBaseCharSplitConfig | IMarkdownSplitConfig | ITextSplitConfig | IJSONSplitConfig | IPDFSplitConfig | IGeaGraphSplitConfig | IGithubRepoParseConfig | IBaseCodeSplitConfig;
1060
+ split_config: IBaseCharSplitConfig | IMarkdownSplitConfig | ITextSplitConfig | IJSONSplitConfig | IPDFSplitConfig | IYuqueSplitConfig | IGeaGraphSplitConfig | IGithubRepoParseConfig | IBaseCodeSplitConfig | IImageSplitConfig;
1056
1061
  /**
1057
1062
  * File Sha
1058
1063
  * SHA of the file
@@ -1310,11 +1315,8 @@ export interface IPageQueryParamsAPIKey {
1310
1315
  * list of equality conditions, each as a dict with key and value
1311
1316
  */
1312
1317
  eq_conditions?: Record<string, any> | null;
1313
- /**
1314
- * Conditions
1315
- * list of or conditions, each as a dict with field, operator and value
1316
- */
1317
- conditions?: IConditionItem[] | null;
1318
+ /** advanced filter with nested conditions */
1319
+ advanced_filter?: IFilterGroup | null;
1318
1320
  /**
1319
1321
  * Page
1320
1322
  * page number
@@ -1349,11 +1351,8 @@ export interface IPageQueryParamsChunk {
1349
1351
  * list of equality conditions, each as a dict with key and value
1350
1352
  */
1351
1353
  eq_conditions?: Record<string, any> | null;
1352
- /**
1353
- * Conditions
1354
- * list of or conditions, each as a dict with field, operator and value
1355
- */
1356
- conditions?: IConditionItem[] | null;
1354
+ /** advanced filter with nested conditions */
1355
+ advanced_filter?: IFilterGroup | null;
1357
1356
  /**
1358
1357
  * Page
1359
1358
  * page number
@@ -1388,11 +1387,8 @@ export interface IPageQueryParamsKnowledge {
1388
1387
  * list of equality conditions, each as a dict with key and value
1389
1388
  */
1390
1389
  eq_conditions?: Record<string, any> | null;
1391
- /**
1392
- * Conditions
1393
- * list of or conditions, each as a dict with field, operator and value
1394
- */
1395
- conditions?: IConditionItem[] | null;
1390
+ /** advanced filter with nested conditions */
1391
+ advanced_filter?: IFilterGroup | null;
1396
1392
  /**
1397
1393
  * Page
1398
1394
  * page number
@@ -1427,11 +1423,8 @@ export interface IPageQueryParamsSpace {
1427
1423
  * list of equality conditions, each as a dict with key and value
1428
1424
  */
1429
1425
  eq_conditions?: Record<string, any> | null;
1430
- /**
1431
- * Conditions
1432
- * list of or conditions, each as a dict with field, operator and value
1433
- */
1434
- conditions?: IConditionItem[] | null;
1426
+ /** advanced filter with nested conditions */
1427
+ advanced_filter?: IFilterGroup | null;
1435
1428
  /**
1436
1429
  * Page
1437
1430
  * page number
@@ -1466,11 +1459,8 @@ export interface IPageQueryParamsTask {
1466
1459
  * list of equality conditions, each as a dict with key and value
1467
1460
  */
1468
1461
  eq_conditions?: Record<string, any> | null;
1469
- /**
1470
- * Conditions
1471
- * list of or conditions, each as a dict with field, operator and value
1472
- */
1473
- conditions?: IConditionItem[] | null;
1462
+ /** advanced filter with nested conditions */
1463
+ advanced_filter?: IFilterGroup | null;
1474
1464
  /**
1475
1465
  * Page
1476
1466
  * page number
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  return t;
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.IEmbeddingModelEnum = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IResource = exports.ITaskStatus = void 0;
25
+ exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.IEmbeddingModelEnum = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IOperator = exports.IResource = exports.ITaskStatus = void 0;
26
26
  /** TaskStatus */
27
27
  var ITaskStatus;
28
28
  (function (ITaskStatus) {
@@ -48,6 +48,12 @@ var IResource;
48
48
  IResource["Rule"] = "rule";
49
49
  IResource["Public"] = "public";
50
50
  })(IResource || (exports.IResource = IResource = {}));
51
+ /** Operator */
52
+ var IOperator;
53
+ (function (IOperator) {
54
+ IOperator["And"] = "and";
55
+ IOperator["Or"] = "or";
56
+ })(IOperator || (exports.IOperator = IOperator = {}));
51
57
  /**
52
58
  * Language
53
59
  * Enum of the programming languages.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.1.202506270819-dev",
4
- "description": "Generated API client (preview)",
3
+ "version": "0.1.202507100532",
4
+ "description": "Generated API client (Production)",
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": "dev"
16
+ "tag": "latest"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^24.0.4",
19
+ "@types/node": "^24.0.12",
20
20
  "axios": "^1.10.0",
21
21
  "typescript": "^5.8.3"
22
22
  }