@petercatai/whisker-client 0.2.202601231238-dev → 0.2.202601261328
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 +120 -5
- package/dist/api.js +11 -4
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -40,10 +40,8 @@ export declare enum ITaskStatus {
|
|
|
40
40
|
Running = "running",
|
|
41
41
|
Success = "success",
|
|
42
42
|
Failed = "failed",
|
|
43
|
-
Skipped = "skipped",
|
|
44
43
|
Canceled = "canceled",
|
|
45
|
-
PendingRetry = "pending_retry"
|
|
46
|
-
Deleted = "deleted"
|
|
44
|
+
PendingRetry = "pending_retry"
|
|
47
45
|
}
|
|
48
46
|
/**
|
|
49
47
|
* TagObjectType
|
|
@@ -2967,6 +2965,14 @@ export interface IResponseModelTenant {
|
|
|
2967
2965
|
/** Message */
|
|
2968
2966
|
message?: string | null;
|
|
2969
2967
|
}
|
|
2968
|
+
/** ResponseModel[WebhookDeliveryDetail] */
|
|
2969
|
+
export interface IResponseModelWebhookDeliveryDetail {
|
|
2970
|
+
/** Success */
|
|
2971
|
+
success: boolean;
|
|
2972
|
+
data?: IWebhookDeliveryDetail | null;
|
|
2973
|
+
/** Message */
|
|
2974
|
+
message?: string | null;
|
|
2975
|
+
}
|
|
2970
2976
|
/** ResponseModel[WebhookSubscriptionResponse] */
|
|
2971
2977
|
export interface IResponseModelWebhookSubscriptionResponse {
|
|
2972
2978
|
/** Success */
|
|
@@ -3203,6 +3209,22 @@ export interface IRetrievalRequestRetrievalConfig {
|
|
|
3203
3209
|
/** The configuration for the retrieval request. Must inherit from RetrievalConfig and have a 'type' attribute. */
|
|
3204
3210
|
config: IRetrievalConfig;
|
|
3205
3211
|
}
|
|
3212
|
+
/**
|
|
3213
|
+
* RetryDeliveryRequest
|
|
3214
|
+
* 重试投递请求
|
|
3215
|
+
*/
|
|
3216
|
+
export interface IRetryDeliveryRequest {
|
|
3217
|
+
/**
|
|
3218
|
+
* Delivery Id
|
|
3219
|
+
* 投递记录ID
|
|
3220
|
+
*/
|
|
3221
|
+
delivery_id: string;
|
|
3222
|
+
/**
|
|
3223
|
+
* Tenant Id
|
|
3224
|
+
* 租户ID
|
|
3225
|
+
*/
|
|
3226
|
+
tenant_id: string;
|
|
3227
|
+
}
|
|
3206
3228
|
/** S3SourceConfig */
|
|
3207
3229
|
export interface IS3SourceConfig {
|
|
3208
3230
|
/**
|
|
@@ -3899,6 +3921,90 @@ export interface IValidationError {
|
|
|
3899
3921
|
/** Error Type */
|
|
3900
3922
|
type: string;
|
|
3901
3923
|
}
|
|
3924
|
+
/**
|
|
3925
|
+
* WebhookDeliveryDetail
|
|
3926
|
+
* Webhook投递详情 DTO(包含事件内容)
|
|
3927
|
+
*/
|
|
3928
|
+
export interface IWebhookDeliveryDetail {
|
|
3929
|
+
/**
|
|
3930
|
+
* Gmt Create
|
|
3931
|
+
* creation time
|
|
3932
|
+
*/
|
|
3933
|
+
gmt_create?: string | null;
|
|
3934
|
+
/**
|
|
3935
|
+
* Gmt Modified
|
|
3936
|
+
* update time
|
|
3937
|
+
*/
|
|
3938
|
+
gmt_modified?: string | null;
|
|
3939
|
+
/**
|
|
3940
|
+
* Delivery Id
|
|
3941
|
+
* 投递记录ID
|
|
3942
|
+
*/
|
|
3943
|
+
delivery_id: string;
|
|
3944
|
+
/**
|
|
3945
|
+
* Tenant Id
|
|
3946
|
+
* 租户ID
|
|
3947
|
+
*/
|
|
3948
|
+
tenant_id: string;
|
|
3949
|
+
/**
|
|
3950
|
+
* Webhook Id
|
|
3951
|
+
* Webhook订阅ID
|
|
3952
|
+
*/
|
|
3953
|
+
webhook_id: string;
|
|
3954
|
+
/**
|
|
3955
|
+
* Event Id
|
|
3956
|
+
* 事件ID
|
|
3957
|
+
*/
|
|
3958
|
+
event_id: string;
|
|
3959
|
+
/** 投递状态 */
|
|
3960
|
+
status: IWebhookDeliveryStatus;
|
|
3961
|
+
/**
|
|
3962
|
+
* Attempt Count
|
|
3963
|
+
* 尝试次数
|
|
3964
|
+
* @default 0
|
|
3965
|
+
*/
|
|
3966
|
+
attempt_count?: number;
|
|
3967
|
+
/**
|
|
3968
|
+
* Last Error
|
|
3969
|
+
* 最后一次错误信息
|
|
3970
|
+
*/
|
|
3971
|
+
last_error?: string | null;
|
|
3972
|
+
/**
|
|
3973
|
+
* Response Code
|
|
3974
|
+
* HTTP响应码
|
|
3975
|
+
*/
|
|
3976
|
+
response_code?: number | null;
|
|
3977
|
+
/**
|
|
3978
|
+
* Response Time Ms
|
|
3979
|
+
* 响应时间(毫秒)
|
|
3980
|
+
*/
|
|
3981
|
+
response_time_ms?: number | null;
|
|
3982
|
+
/**
|
|
3983
|
+
* Last Attempt At
|
|
3984
|
+
* 最后一次尝试时间
|
|
3985
|
+
*/
|
|
3986
|
+
last_attempt_at?: string | null;
|
|
3987
|
+
/**
|
|
3988
|
+
* Next Retry At
|
|
3989
|
+
* 下次重试时间
|
|
3990
|
+
*/
|
|
3991
|
+
next_retry_at?: string | null;
|
|
3992
|
+
/**
|
|
3993
|
+
* Event Type
|
|
3994
|
+
* 事件类型
|
|
3995
|
+
*/
|
|
3996
|
+
event_type?: string | null;
|
|
3997
|
+
/**
|
|
3998
|
+
* Event Data
|
|
3999
|
+
* 事件数据
|
|
4000
|
+
*/
|
|
4001
|
+
event_data?: Record<string, any> | null;
|
|
4002
|
+
/**
|
|
4003
|
+
* Event Created At
|
|
4004
|
+
* 事件创建时间
|
|
4005
|
+
*/
|
|
4006
|
+
event_created_at?: string | null;
|
|
4007
|
+
}
|
|
3902
4008
|
/**
|
|
3903
4009
|
* WebhookDeliveryResponse
|
|
3904
4010
|
* Webhook投递记录响应
|
|
@@ -4767,6 +4873,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4767
4873
|
* @request POST:/api/v1/webhook/subscriptions/query
|
|
4768
4874
|
*/
|
|
4769
4875
|
listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data: IPageQueryParamsWebhookSubscription, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseWebhookSubscriptionResponse, void | IHTTPValidationError>>;
|
|
4876
|
+
/**
|
|
4877
|
+
* @description 获取指定投递记录的详细信息,包含投递的事件内容
|
|
4878
|
+
*
|
|
4879
|
+
* @tags webhook
|
|
4880
|
+
* @name GetDeliveryDetailApiV1WebhookDeliveriesDeliveryIdGet
|
|
4881
|
+
* @summary 获取Webhook投递详情
|
|
4882
|
+
* @request GET:/api/v1/webhook/deliveries/{delivery_id}
|
|
4883
|
+
*/
|
|
4884
|
+
getDeliveryDetailApiV1WebhookDeliveriesDeliveryIdGet: (deliveryId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookDeliveryDetail, void | IHTTPValidationError>>;
|
|
4770
4885
|
/**
|
|
4771
4886
|
* @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
|
|
4772
4887
|
*
|
|
@@ -5099,9 +5214,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5099
5214
|
* @tags admin
|
|
5100
5215
|
* @name AdminRetryWebhookDelivery
|
|
5101
5216
|
* @summary Admin Retry Webhook Delivery
|
|
5102
|
-
* @request POST:/api/admin/webhook/deliveries/
|
|
5217
|
+
* @request POST:/api/admin/webhook/deliveries/retry
|
|
5103
5218
|
*/
|
|
5104
|
-
adminRetryWebhookDelivery: (
|
|
5219
|
+
adminRetryWebhookDelivery: (data: IRetryDeliveryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminWebhookDeliveryResponse, void | IHTTPValidationError>>;
|
|
5105
5220
|
};
|
|
5106
5221
|
llmTxt: {
|
|
5107
5222
|
/**
|
package/dist/api.js
CHANGED
|
@@ -69,10 +69,8 @@ var ITaskStatus;
|
|
|
69
69
|
ITaskStatus["Running"] = "running";
|
|
70
70
|
ITaskStatus["Success"] = "success";
|
|
71
71
|
ITaskStatus["Failed"] = "failed";
|
|
72
|
-
ITaskStatus["Skipped"] = "skipped";
|
|
73
72
|
ITaskStatus["Canceled"] = "canceled";
|
|
74
73
|
ITaskStatus["PendingRetry"] = "pending_retry";
|
|
75
|
-
ITaskStatus["Deleted"] = "deleted";
|
|
76
74
|
})(ITaskStatus || (exports.ITaskStatus = ITaskStatus = {}));
|
|
77
75
|
/**
|
|
78
76
|
* TagObjectType
|
|
@@ -840,6 +838,15 @@ class Api extends HttpClient {
|
|
|
840
838
|
* @request POST:/api/v1/webhook/subscriptions/query
|
|
841
839
|
*/
|
|
842
840
|
listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/subscriptions/query`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
841
|
+
/**
|
|
842
|
+
* @description 获取指定投递记录的详细信息,包含投递的事件内容
|
|
843
|
+
*
|
|
844
|
+
* @tags webhook
|
|
845
|
+
* @name GetDeliveryDetailApiV1WebhookDeliveriesDeliveryIdGet
|
|
846
|
+
* @summary 获取Webhook投递详情
|
|
847
|
+
* @request GET:/api/v1/webhook/deliveries/{delivery_id}
|
|
848
|
+
*/
|
|
849
|
+
getDeliveryDetailApiV1WebhookDeliveriesDeliveryIdGet: (deliveryId, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/deliveries/${deliveryId}`, method: "GET", format: "json" }, params)),
|
|
843
850
|
/**
|
|
844
851
|
* @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
|
|
845
852
|
*
|
|
@@ -1151,9 +1158,9 @@ class Api extends HttpClient {
|
|
|
1151
1158
|
* @tags admin
|
|
1152
1159
|
* @name AdminRetryWebhookDelivery
|
|
1153
1160
|
* @summary Admin Retry Webhook Delivery
|
|
1154
|
-
* @request POST:/api/admin/webhook/deliveries/
|
|
1161
|
+
* @request POST:/api/admin/webhook/deliveries/retry
|
|
1155
1162
|
*/
|
|
1156
|
-
adminRetryWebhookDelivery: (
|
|
1163
|
+
adminRetryWebhookDelivery: (data, params = {}) => this.request(Object.assign({ path: `/api/admin/webhook/deliveries/retry`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
1157
1164
|
};
|
|
1158
1165
|
this.llmTxt = {
|
|
1159
1166
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petercatai/whisker-client",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Generated API client (
|
|
3
|
+
"version": "0.2.202601261328",
|
|
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": "
|
|
16
|
+
"tag": "latest"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^25.0.10",
|
|
20
|
-
"axios": "^1.13.
|
|
20
|
+
"axios": "^1.13.3",
|
|
21
21
|
"typescript": "^5.9.3"
|
|
22
22
|
}
|
|
23
23
|
}
|