@blueking/chat-helper 0.0.12-beta.2 → 0.0.12-beta.21

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.
@@ -63,6 +63,25 @@ export interface ISessionApi<IToolApi = unknown, IAnchorPathResourcesApi = unkno
63
63
  labels?: string[];
64
64
  };
65
65
  }
66
+ /** 会话列表分页请求参数 */
67
+ export interface ISessionListParams {
68
+ page?: number;
69
+ page_size?: number;
70
+ }
71
+ /** 会话列表分页 API 响应(snake_case) */
72
+ export interface ISessionListApi {
73
+ page: number;
74
+ num_pages: number;
75
+ count: number;
76
+ results: ISessionApi[];
77
+ }
78
+ /** 会话列表分页结果(camelCase) */
79
+ export interface ISessionListResult {
80
+ page: number;
81
+ numPages: number;
82
+ count: number;
83
+ results: ISession[];
84
+ }
66
85
  export interface ISessionFeedback {
67
86
  comment: string;
68
87
  labels: string[];
@@ -77,3 +96,17 @@ export interface ISessionFeedbackApi {
77
96
  session_code: string;
78
97
  session_content_ids: number[];
79
98
  }
99
+ /** pv_files/download_url 响应(保持后端 snake_case) */
100
+ export interface IPvFileDownloadUrlResult {
101
+ download_url: string;
102
+ expires_at: string;
103
+ preview_url: string;
104
+ sha256: string;
105
+ size: number;
106
+ }
107
+ export interface GetPvFileDownloadUrlOptions {
108
+ /** 有效期秒数,默认 600,最大 3600 */
109
+ expiresIn?: number;
110
+ /** 请求超时毫秒,默认 20000 */
111
+ timeout?: number;
112
+ }