@petercatai/whisker-client 0.2.202601231238-dev → 0.2.202601261403

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
@@ -7,6 +7,14 @@ export declare enum IWebhookSubscriptionStatus {
7
7
  INACTIVE = "INACTIVE",
8
8
  DELETED = "DELETED"
9
9
  }
10
+ /**
11
+ * WebhookOutboxStatus
12
+ * Webhook事件发件箱状态
13
+ */
14
+ export declare enum IWebhookOutboxStatus {
15
+ NEW = "NEW",
16
+ PROCESSED = "PROCESSED"
17
+ }
10
18
  /**
11
19
  * WebhookEventType
12
20
  * Webhook事件类型
@@ -40,10 +48,8 @@ export declare enum ITaskStatus {
40
48
  Running = "running",
41
49
  Success = "success",
42
50
  Failed = "failed",
43
- Skipped = "skipped",
44
51
  Canceled = "canceled",
45
- PendingRetry = "pending_retry",
46
- Deleted = "deleted"
52
+ PendingRetry = "pending_retry"
47
53
  }
48
54
  /**
49
55
  * TagObjectType
@@ -2967,6 +2973,14 @@ export interface IResponseModelTenant {
2967
2973
  /** Message */
2968
2974
  message?: string | null;
2969
2975
  }
2976
+ /** ResponseModel[WebhookEventOutbox] */
2977
+ export interface IResponseModelWebhookEventOutbox {
2978
+ /** Success */
2979
+ success: boolean;
2980
+ data?: IWebhookEventOutbox | null;
2981
+ /** Message */
2982
+ message?: string | null;
2983
+ }
2970
2984
  /** ResponseModel[WebhookSubscriptionResponse] */
2971
2985
  export interface IResponseModelWebhookSubscriptionResponse {
2972
2986
  /** Success */
@@ -3203,6 +3217,22 @@ export interface IRetrievalRequestRetrievalConfig {
3203
3217
  /** The configuration for the retrieval request. Must inherit from RetrievalConfig and have a 'type' attribute. */
3204
3218
  config: IRetrievalConfig;
3205
3219
  }
3220
+ /**
3221
+ * RetryDeliveryRequest
3222
+ * 重试投递请求
3223
+ */
3224
+ export interface IRetryDeliveryRequest {
3225
+ /**
3226
+ * Delivery Id
3227
+ * 投递记录ID
3228
+ */
3229
+ delivery_id: string;
3230
+ /**
3231
+ * Tenant Id
3232
+ * 租户ID
3233
+ */
3234
+ tenant_id: string;
3235
+ }
3206
3236
  /** S3SourceConfig */
3207
3237
  export interface IS3SourceConfig {
3208
3238
  /**
@@ -3929,6 +3959,50 @@ export interface IWebhookDeliveryResponse {
3929
3959
  /** Gmt Modified */
3930
3960
  gmt_modified?: string | null;
3931
3961
  }
3962
+ /**
3963
+ * WebhookEventOutbox
3964
+ * Webhook事件发件箱 DTO
3965
+ */
3966
+ export interface IWebhookEventOutbox {
3967
+ /**
3968
+ * Gmt Create
3969
+ * creation time
3970
+ */
3971
+ gmt_create?: string | null;
3972
+ /**
3973
+ * Gmt Modified
3974
+ * update time
3975
+ */
3976
+ gmt_modified?: string | null;
3977
+ /**
3978
+ * Event Id
3979
+ * 事件ID
3980
+ */
3981
+ event_id: string;
3982
+ /**
3983
+ * Tenant Id
3984
+ * 租户ID
3985
+ */
3986
+ tenant_id: string;
3987
+ /** 事件类型 */
3988
+ event_type: IWebhookEventType;
3989
+ /**
3990
+ * Event Data
3991
+ * 事件数据
3992
+ */
3993
+ event_data?: Record<string, any>;
3994
+ /**
3995
+ * Event Version
3996
+ * 事件版本
3997
+ * @default 1
3998
+ */
3999
+ event_version?: number;
4000
+ /**
4001
+ * 发件箱状态
4002
+ * @default "NEW"
4003
+ */
4004
+ status?: IWebhookOutboxStatus;
4005
+ }
3932
4006
  /** WebhookSubscriptionCreate */
3933
4007
  export interface IWebhookSubscriptionCreate {
3934
4008
  /**
@@ -4767,6 +4841,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4767
4841
  * @request POST:/api/v1/webhook/subscriptions/query
4768
4842
  */
4769
4843
  listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data: IPageQueryParamsWebhookSubscription, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseWebhookSubscriptionResponse, void | IHTTPValidationError>>;
4844
+ /**
4845
+ * @description 获取指定投递记录关联的事件内容
4846
+ *
4847
+ * @tags webhook
4848
+ * @name GetDeliveryEventApiV1WebhookDeliveriesDeliveryIdEventGet
4849
+ * @summary 获取Webhook投递事件内容
4850
+ * @request GET:/api/v1/webhook/deliveries/{delivery_id}/event
4851
+ */
4852
+ getDeliveryEventApiV1WebhookDeliveriesDeliveryIdEventGet: (deliveryId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookEventOutbox, void | IHTTPValidationError>>;
4770
4853
  /**
4771
4854
  * @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
4772
4855
  *
@@ -5099,9 +5182,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5099
5182
  * @tags admin
5100
5183
  * @name AdminRetryWebhookDelivery
5101
5184
  * @summary Admin Retry Webhook Delivery
5102
- * @request POST:/api/admin/webhook/deliveries/{delivery_id}/retry
5185
+ * @request POST:/api/admin/webhook/deliveries/retry
5103
5186
  */
5104
- adminRetryWebhookDelivery: (deliveryId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminWebhookDeliveryResponse, void | IHTTPValidationError>>;
5187
+ adminRetryWebhookDelivery: (data: IRetryDeliveryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminWebhookDeliveryResponse, void | IHTTPValidationError>>;
5105
5188
  };
5106
5189
  llmTxt: {
5107
5190
  /**
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.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IOperator = exports.IResource = exports.ITagObjectType = exports.ITaskStatus = exports.IWebhookDeliveryStatus = exports.IWebhookEventType = exports.IWebhookSubscriptionStatus = void 0;
25
+ exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IOperator = exports.IResource = exports.ITagObjectType = exports.ITaskStatus = exports.IWebhookDeliveryStatus = exports.IWebhookEventType = exports.IWebhookOutboxStatus = exports.IWebhookSubscriptionStatus = void 0;
26
26
  /**
27
27
  * WebhookSubscriptionStatus
28
28
  * Webhook订阅状态
@@ -33,6 +33,15 @@ var IWebhookSubscriptionStatus;
33
33
  IWebhookSubscriptionStatus["INACTIVE"] = "INACTIVE";
34
34
  IWebhookSubscriptionStatus["DELETED"] = "DELETED";
35
35
  })(IWebhookSubscriptionStatus || (exports.IWebhookSubscriptionStatus = IWebhookSubscriptionStatus = {}));
36
+ /**
37
+ * WebhookOutboxStatus
38
+ * Webhook事件发件箱状态
39
+ */
40
+ var IWebhookOutboxStatus;
41
+ (function (IWebhookOutboxStatus) {
42
+ IWebhookOutboxStatus["NEW"] = "NEW";
43
+ IWebhookOutboxStatus["PROCESSED"] = "PROCESSED";
44
+ })(IWebhookOutboxStatus || (exports.IWebhookOutboxStatus = IWebhookOutboxStatus = {}));
36
45
  /**
37
46
  * WebhookEventType
38
47
  * Webhook事件类型
@@ -69,10 +78,8 @@ var ITaskStatus;
69
78
  ITaskStatus["Running"] = "running";
70
79
  ITaskStatus["Success"] = "success";
71
80
  ITaskStatus["Failed"] = "failed";
72
- ITaskStatus["Skipped"] = "skipped";
73
81
  ITaskStatus["Canceled"] = "canceled";
74
82
  ITaskStatus["PendingRetry"] = "pending_retry";
75
- ITaskStatus["Deleted"] = "deleted";
76
83
  })(ITaskStatus || (exports.ITaskStatus = ITaskStatus = {}));
77
84
  /**
78
85
  * TagObjectType
@@ -840,6 +847,15 @@ class Api extends HttpClient {
840
847
  * @request POST:/api/v1/webhook/subscriptions/query
841
848
  */
842
849
  listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions/query`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
850
+ /**
851
+ * @description 获取指定投递记录关联的事件内容
852
+ *
853
+ * @tags webhook
854
+ * @name GetDeliveryEventApiV1WebhookDeliveriesDeliveryIdEventGet
855
+ * @summary 获取Webhook投递事件内容
856
+ * @request GET:/api/v1/webhook/deliveries/{delivery_id}/event
857
+ */
858
+ getDeliveryEventApiV1WebhookDeliveriesDeliveryIdEventGet: (deliveryId, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/deliveries/${deliveryId}/event`, method: "GET", format: "json" }, params)),
843
859
  /**
844
860
  * @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
845
861
  *
@@ -1151,9 +1167,9 @@ class Api extends HttpClient {
1151
1167
  * @tags admin
1152
1168
  * @name AdminRetryWebhookDelivery
1153
1169
  * @summary Admin Retry Webhook Delivery
1154
- * @request POST:/api/admin/webhook/deliveries/{delivery_id}/retry
1170
+ * @request POST:/api/admin/webhook/deliveries/retry
1155
1171
  */
1156
- adminRetryWebhookDelivery: (deliveryId, params = {}) => this.request(Object.assign({ path: `/api/admin/webhook/deliveries/${deliveryId}/retry`, method: "POST", format: "json" }, params)),
1172
+ adminRetryWebhookDelivery: (data, params = {}) => this.request(Object.assign({ path: `/api/admin/webhook/deliveries/retry`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
1157
1173
  };
1158
1174
  this.llmTxt = {
1159
1175
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.2.202601231238-dev",
4
- "description": "Generated API client (Development)",
3
+ "version": "0.2.202601261403",
4
+ "description": "Generated API client (Production)",
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": "dev"
16
+ "tag": "latest"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^25.0.10",
20
- "axios": "^1.13.2",
20
+ "axios": "^1.13.3",
21
21
  "typescript": "^5.9.3"
22
22
  }
23
23
  }