@petercatai/whisker-client 0.1.202507190453 → 0.1.202508050830-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
@@ -19,7 +19,8 @@ export declare enum IResource {
19
19
  ApiKey = "api_key",
20
20
  Task = "task",
21
21
  Rule = "rule",
22
- Public = "public"
22
+ Public = "public",
23
+ Webhook = "webhook"
23
24
  }
24
25
  /** Operator */
25
26
  export declare enum IOperator {
@@ -56,7 +57,8 @@ export declare enum ILanguage {
56
57
  Perl = "perl",
57
58
  Haskell = "haskell",
58
59
  Elixir = "elixir",
59
- Powershell = "powershell"
60
+ Powershell = "powershell",
61
+ Visualbasic6 = "visualbasic6"
60
62
  }
61
63
  /**
62
64
  * KnowledgeTypeEnum
@@ -663,6 +665,11 @@ export interface IGithubRepoCreate {
663
665
  * size of the file
664
666
  */
665
667
  file_size?: number | null;
668
+ /**
669
+ * Parent Id
670
+ * parent id of the knowledge
671
+ */
672
+ parent_id?: string | null;
666
673
  /** source config of the knowledge */
667
674
  source_config: IGithubRepoSourceConfig;
668
675
  /** split config of the knowledge */
@@ -808,6 +815,11 @@ export interface IImageCreate {
808
815
  * Byte size of the file
809
816
  */
810
817
  file_size: number;
818
+ /**
819
+ * Parent Id
820
+ * parent id of the knowledge
821
+ */
822
+ parent_id?: string | null;
811
823
  /**
812
824
  * Source Config
813
825
  * source config of the knowledge
@@ -880,6 +892,11 @@ export interface IJSONCreate {
880
892
  * size of the file
881
893
  */
882
894
  file_size?: number | null;
895
+ /**
896
+ * Parent Id
897
+ * parent id of the knowledge
898
+ */
899
+ parent_id?: string | null;
883
900
  /**
884
901
  * Source Config
885
902
  * source config of the knowledge
@@ -1141,6 +1158,11 @@ export interface IMarkdownCreate {
1141
1158
  * size of the file
1142
1159
  */
1143
1160
  file_size?: number | null;
1161
+ /**
1162
+ * Parent Id
1163
+ * parent id of the knowledge
1164
+ */
1165
+ parent_id?: string | null;
1144
1166
  /**
1145
1167
  * Source Config
1146
1168
  * source config of the knowledge
@@ -1252,6 +1274,11 @@ export interface IPDFCreate {
1252
1274
  * Byte size of the file
1253
1275
  */
1254
1276
  file_size: number;
1277
+ /**
1278
+ * Parent Id
1279
+ * parent id of the knowledge
1280
+ */
1281
+ parent_id?: string | null;
1255
1282
  /**
1256
1283
  * Source Config
1257
1284
  * source config of the knowledge
@@ -1644,6 +1671,11 @@ export interface IQACreate {
1644
1671
  * size of the file
1645
1672
  */
1646
1673
  file_size?: number | null;
1674
+ /**
1675
+ * Parent Id
1676
+ * parent id of the knowledge
1677
+ */
1678
+ parent_id?: string | null;
1647
1679
  /**
1648
1680
  * Question
1649
1681
  * question of the knowledge resource
@@ -2096,7 +2128,7 @@ export interface ISpaceCreate {
2096
2128
  space_name: string;
2097
2129
  /**
2098
2130
  * Space Id
2099
- * id of the space resource (letters, numbers, hyphens and underscores allowed, max 36 chars)
2131
+ * id of the space resource (letters, numbers, hyphens, underscores and slashes allowed, max 64 chars)
2100
2132
  */
2101
2133
  space_id?: string | null;
2102
2134
  /**
@@ -2412,6 +2444,11 @@ export interface ITextCreate {
2412
2444
  * size of the file
2413
2445
  */
2414
2446
  file_size?: number | null;
2447
+ /**
2448
+ * Parent Id
2449
+ * parent id of the knowledge
2450
+ */
2451
+ parent_id?: string | null;
2415
2452
  /**
2416
2453
  * Source Config
2417
2454
  * source config of the knowledge
@@ -2533,6 +2570,11 @@ export interface IYuqueCreate {
2533
2570
  * size of the file
2534
2571
  */
2535
2572
  file_size?: number | null;
2573
+ /**
2574
+ * Parent Id
2575
+ * parent id of the knowledge
2576
+ */
2577
+ parent_id?: string | null;
2536
2578
  /** source config of the knowledge */
2537
2579
  source_config: IYuqueSourceConfig;
2538
2580
  /**
@@ -2744,6 +2786,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2744
2786
  * @request GET:/api/knowledge/embedding/models
2745
2787
  */
2746
2788
  getEmbeddingModelsList: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
2789
+ /**
2790
+ * @description 处理不同类型的webhook:knowledge, deployment, notification等
2791
+ *
2792
+ * @tags knowledge
2793
+ * @name HandleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost
2794
+ * @summary 通用webhook处理器
2795
+ * @request POST:/api/knowledge/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
2796
+ */
2797
+ handleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
2747
2798
  };
2748
2799
  retrieval: {
2749
2800
  /**
package/dist/api.js CHANGED
@@ -47,6 +47,7 @@ var IResource;
47
47
  IResource["Task"] = "task";
48
48
  IResource["Rule"] = "rule";
49
49
  IResource["Public"] = "public";
50
+ IResource["Webhook"] = "webhook";
50
51
  })(IResource || (exports.IResource = IResource = {}));
51
52
  /** Operator */
52
53
  var IOperator;
@@ -86,6 +87,7 @@ var ILanguage;
86
87
  ILanguage["Haskell"] = "haskell";
87
88
  ILanguage["Elixir"] = "elixir";
88
89
  ILanguage["Powershell"] = "powershell";
90
+ ILanguage["Visualbasic6"] = "visualbasic6";
89
91
  })(ILanguage || (exports.ILanguage = ILanguage = {}));
90
92
  /**
91
93
  * KnowledgeTypeEnum
@@ -380,6 +382,15 @@ class Api extends HttpClient {
380
382
  * @request GET:/api/knowledge/embedding/models
381
383
  */
382
384
  getEmbeddingModelsList: (params = {}) => this.request(Object.assign({ path: `/api/knowledge/embedding/models`, method: "GET", format: "json" }, params)),
385
+ /**
386
+ * @description 处理不同类型的webhook:knowledge, deployment, notification等
387
+ *
388
+ * @tags knowledge
389
+ * @name HandleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost
390
+ * @summary 通用webhook处理器
391
+ * @request POST:/api/knowledge/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
392
+ */
393
+ handleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType, source, authInfo, knowledgeBaseId, data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/${webhookType}/${source}/${authInfo}/${knowledgeBaseId}`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
383
394
  };
384
395
  this.retrieval = {
385
396
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.1.202507190453",
4
- "description": "Generated API client (Production)",
3
+ "version": "0.1.202508050830-dev",
4
+ "description": "Generated API client (preview)",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",
7
7
  "files": [
@@ -13,11 +13,11 @@
13
13
  },
14
14
  "publishConfig": {
15
15
  "access": "public",
16
- "tag": "latest"
16
+ "tag": "dev"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^24.0.15",
20
- "axios": "^1.10.0",
21
- "typescript": "^5.8.3"
19
+ "@types/node": "^24.2.0",
20
+ "axios": "^1.11.0",
21
+ "typescript": "^5.9.2"
22
22
  }
23
23
  }