@petercatai/whisker-client 0.1.202601221409-dev → 0.1.202601221632

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,6 +19,7 @@ export declare enum IWebhookEventType {
19
19
  KnowledgeUpdated = "knowledge.updated",
20
20
  KnowledgeDeleted = "knowledge.deleted",
21
21
  TaskHituPackageCompleted = "task.hitu_package.completed",
22
+ TaskHituPackageAnalyseCompleted = "task.hitu_package_analyse.completed",
22
23
  TaskComponentRepoAnalyseCompleted = "task.component_repo_analyse.completed",
23
24
  TaskKnowledgeChunkCompleted = "task.knowledge_chunk.completed",
24
25
  TaskSpaceSummaryCompleted = "task.space_summary.completed",
@@ -3947,7 +3948,7 @@ export interface IWebhookSubscriptionCreate {
3947
3948
  event_types: IWebhookEventType[];
3948
3949
  /**
3949
3950
  * Secret
3950
- * 签名密钥(可选,不提供则自动生成)
3951
+ * 签名密钥(可选,不提供则不进行签名验证)
3951
3952
  */
3952
3953
  secret?: string | null;
3953
3954
  }
@@ -3970,6 +3971,26 @@ export interface IWebhookSubscriptionResponse {
3970
3971
  /** Gmt Modified */
3971
3972
  gmt_modified?: string | null;
3972
3973
  }
3974
+ /** WebhookSubscriptionUpdate */
3975
+ export interface IWebhookSubscriptionUpdate {
3976
+ /**
3977
+ * Webhook Name
3978
+ * Webhook名称
3979
+ */
3980
+ webhook_name?: string | null;
3981
+ /**
3982
+ * Target Url
3983
+ * 目标URL
3984
+ */
3985
+ target_url?: string | null;
3986
+ /**
3987
+ * Event Types
3988
+ * 订阅的事件类型列表
3989
+ */
3990
+ event_types?: IWebhookEventType[] | null;
3991
+ /** 订阅状态 */
3992
+ status?: IWebhookSubscriptionStatus | null;
3993
+ }
3973
3994
  /** WebhookTestResponse */
3974
3995
  export interface IWebhookTestResponse {
3975
3996
  /** Success */
@@ -4708,14 +4729,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4708
4729
  */
4709
4730
  createSubscriptionApiV1WebhookSubscriptionsPost: (data: IWebhookSubscriptionCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookSubscriptionResponse, void | IHTTPValidationError>>;
4710
4731
  /**
4711
- * @description 分页查询租户的Webhook订阅,支持高级筛选条件
4732
+ * @description 更新指定的Webhook订阅信息
4712
4733
  *
4713
4734
  * @tags webhook
4714
- * @name ListSubscriptionsApiV1WebhookSubscriptionsQueryPost
4715
- * @summary 查询Webhook订阅列表
4716
- * @request POST:/api/v1/webhook/subscriptions/query
4735
+ * @name UpdateSubscriptionApiV1WebhookSubscriptionsWebhookIdPut
4736
+ * @summary 更新Webhook订阅
4737
+ * @request PUT:/api/v1/webhook/subscriptions/{webhook_id}
4717
4738
  */
4718
- listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data: IPageQueryParamsWebhookSubscription, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseWebhookSubscriptionResponse, void | IHTTPValidationError>>;
4739
+ updateSubscriptionApiV1WebhookSubscriptionsWebhookIdPut: (webhookId: string, data: IWebhookSubscriptionUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookSubscriptionResponse, void | IHTTPValidationError>>;
4719
4740
  /**
4720
4741
  * @description 删除指定的Webhook订阅
4721
4742
  *
@@ -4725,6 +4746,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4725
4746
  * @request DELETE:/api/v1/webhook/subscriptions/{webhook_id}
4726
4747
  */
4727
4748
  deleteSubscriptionApiV1WebhookSubscriptionsWebhookIdDelete: (webhookId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookSubscriptionResponse, void | IHTTPValidationError>>;
4749
+ /**
4750
+ * @description 分页查询租户的Webhook订阅,支持高级筛选条件
4751
+ *
4752
+ * @tags webhook
4753
+ * @name ListSubscriptionsApiV1WebhookSubscriptionsQueryPost
4754
+ * @summary 查询Webhook订阅列表
4755
+ * @request POST:/api/v1/webhook/subscriptions/query
4756
+ */
4757
+ listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data: IPageQueryParamsWebhookSubscription, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseWebhookSubscriptionResponse, void | IHTTPValidationError>>;
4728
4758
  /**
4729
4759
  * @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
4730
4760
  *
package/dist/api.js CHANGED
@@ -46,6 +46,7 @@ var IWebhookEventType;
46
46
  IWebhookEventType["KnowledgeUpdated"] = "knowledge.updated";
47
47
  IWebhookEventType["KnowledgeDeleted"] = "knowledge.deleted";
48
48
  IWebhookEventType["TaskHituPackageCompleted"] = "task.hitu_package.completed";
49
+ IWebhookEventType["TaskHituPackageAnalyseCompleted"] = "task.hitu_package_analyse.completed";
49
50
  IWebhookEventType["TaskComponentRepoAnalyseCompleted"] = "task.component_repo_analyse.completed";
50
51
  IWebhookEventType["TaskKnowledgeChunkCompleted"] = "task.knowledge_chunk.completed";
51
52
  IWebhookEventType["TaskSpaceSummaryCompleted"] = "task.space_summary.completed";
@@ -813,14 +814,14 @@ class Api extends HttpClient {
813
814
  */
814
815
  createSubscriptionApiV1WebhookSubscriptionsPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
815
816
  /**
816
- * @description 分页查询租户的Webhook订阅,支持高级筛选条件
817
+ * @description 更新指定的Webhook订阅信息
817
818
  *
818
819
  * @tags webhook
819
- * @name ListSubscriptionsApiV1WebhookSubscriptionsQueryPost
820
- * @summary 查询Webhook订阅列表
821
- * @request POST:/api/v1/webhook/subscriptions/query
820
+ * @name UpdateSubscriptionApiV1WebhookSubscriptionsWebhookIdPut
821
+ * @summary 更新Webhook订阅
822
+ * @request PUT:/api/v1/webhook/subscriptions/{webhook_id}
822
823
  */
823
- listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions/query`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
824
+ updateSubscriptionApiV1WebhookSubscriptionsWebhookIdPut: (webhookId, data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions/${webhookId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params)),
824
825
  /**
825
826
  * @description 删除指定的Webhook订阅
826
827
  *
@@ -830,6 +831,15 @@ class Api extends HttpClient {
830
831
  * @request DELETE:/api/v1/webhook/subscriptions/{webhook_id}
831
832
  */
832
833
  deleteSubscriptionApiV1WebhookSubscriptionsWebhookIdDelete: (webhookId, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions/${webhookId}`, method: "DELETE", format: "json" }, params)),
834
+ /**
835
+ * @description 分页查询租户的Webhook订阅,支持高级筛选条件
836
+ *
837
+ * @tags webhook
838
+ * @name ListSubscriptionsApiV1WebhookSubscriptionsQueryPost
839
+ * @summary 查询Webhook订阅列表
840
+ * @request POST:/api/v1/webhook/subscriptions/query
841
+ */
842
+ listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions/query`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
833
843
  /**
834
844
  * @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
835
845
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.1.202601221409-dev",
4
- "description": "Generated API client (Development)",
3
+ "version": "0.1.202601221632",
4
+ "description": "Generated API client (Production)",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",
7
7
  "files": [
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "publishConfig": {
15
15
  "access": "public",
16
- "tag": "dev"
16
+ "tag": "latest"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^25.0.10",