@hddjs/hdd-cloud-types 1.0.13-SNAPSHOT → 1.0.15-SNAPSHOT.1

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.
Files changed (47) hide show
  1. package/HddCloud/common/index.d.ts +4 -4
  2. package/HddCloud/index.d.ts +59 -59
  3. package/README.md +2 -2
  4. package/hdd-ai-cloud/common/AISceneEnum.d.ts +54 -54
  5. package/hdd-ai-cloud/common/IAliFcContext.d.ts +5 -5
  6. package/hdd-ai-cloud/common/{ICallUniCloudParams.ts → ICallUniCloudParams.d.ts} +20 -20
  7. package/hdd-ai-cloud/common/IChatAiMessageItem.d.ts +23 -23
  8. package/hdd-ai-cloud/common/ICommonError.d.ts +13 -13
  9. package/hdd-ai-cloud/common/ICommonReqRes.d.ts +23 -23
  10. package/hdd-ai-cloud/common/{ICommonRequstHead.ts → ICommonRequstHead.d.ts} +17 -17
  11. package/hdd-ai-cloud/common/IConfigInfo.d.ts +7 -7
  12. package/hdd-ai-cloud/common/ICounselor.d.ts +4 -4
  13. package/hdd-ai-cloud/common/ICounselorType.d.ts +23 -23
  14. package/hdd-ai-cloud/common/IFormatCutOffCollegeData.d.ts +29 -29
  15. package/hdd-ai-cloud/common/IFormatGaokaoBasicInfo.d.ts +67 -67
  16. package/hdd-ai-cloud/common/{IFormatProfessional.ts → IFormatProfessional.d.ts} +29 -29
  17. package/hdd-ai-cloud/common/IGetRecommendSchool.d.ts +93 -93
  18. package/hdd-ai-cloud/common/IInquiryBasicInfo.d.ts +43 -43
  19. package/hdd-ai-cloud/common/IInquirySession.d.ts +33 -25
  20. package/hdd-ai-cloud/common/IPicture.d.ts +13 -13
  21. package/hdd-ai-cloud/common/IReportData.d.ts +151 -151
  22. package/hdd-ai-cloud/common/IReportInfo.d.ts +33 -33
  23. package/hdd-ai-cloud/common/IReportResult.d.ts +23 -23
  24. package/hdd-ai-cloud/common/ISceneAiConfig.d.ts +27 -27
  25. package/hdd-ai-cloud/common/IScoreRank.d.ts +18 -18
  26. package/hdd-ai-cloud/common/ISelectSubject.d.ts +29 -29
  27. package/hdd-ai-cloud/common/ISessionContent.d.ts +518 -31
  28. package/hdd-ai-cloud/common/ISessionRole.d.ts +21 -21
  29. package/hdd-ai-cloud/common/ISseChunk.d.ts +57 -57
  30. package/hdd-ai-cloud/common/ISseData.d.ts +33 -135
  31. package/hdd-ai-cloud/common/IThisContext.d.ts +128 -128
  32. package/hdd-ai-cloud/common/ReportTypeEnum.d.ts +7 -7
  33. package/hdd-ai-cloud/common/SubReportTypeEnum.d.ts +18 -18
  34. package/hdd-ai-cloud/common/index.d.ts +29 -29
  35. package/hdd-ai-cloud/controller/getRankInfo.d.ts +51 -0
  36. package/hdd-ai-cloud/controller/index.d.ts +496 -496
  37. package/hdd-ai-cloud/index.d.ts +3 -3
  38. package/hdd-ai-cloud/service/index.d.ts +36 -36
  39. package/index.d.ts +2 -2
  40. package/npmPublish.md +10 -10
  41. package/package.json +11 -11
  42. package/hdd-ai-cloud/common/ICallUniCloudParams.js +0 -3
  43. package/hdd-ai-cloud/common/ICallUniCloudParams.js.map +0 -1
  44. package/hdd-ai-cloud/common/ICommonRequstHead.js +0 -3
  45. package/hdd-ai-cloud/common/ICommonRequstHead.js.map +0 -1
  46. package/hdd-ai-cloud/common/IFormatProfessional.js +0 -3
  47. package/hdd-ai-cloud/common/IFormatProfessional.js.map +0 -1
@@ -1,31 +1,518 @@
1
- import { type SessionRoleEnum } from './ISessionRole';
2
-
3
- /**
4
- * 会话内容
5
- */
6
- export interface ISessionContent {
7
- /**
8
- * sessionId
9
- */
10
- sessionId?: string;
11
- /**
12
- * 步骤id
13
- */
14
- stepId?: string;
15
- /**
16
- * 内容
17
- */
18
- content?: string;
19
- /**
20
- * 原内容类型
21
- */
22
- oriContentType?: string;
23
- /**
24
- * 角色
25
- */
26
- role?: SessionRoleEnum;
27
- /**
28
- * 备注
29
- */
30
- formatInfo?: string;
31
- }
1
+ import { type SessionRoleEnum } from './ISessionRole';
2
+
3
+ /**
4
+ * 会话内容
5
+ */
6
+ export interface ISessionContent {
7
+ /**
8
+ * 步骤id
9
+ */
10
+ stepId?: string;
11
+ /**
12
+ * 角色
13
+ */
14
+ role?: SessionRoleEnum;
15
+ /**
16
+ * ai返回的对话内容
17
+ */
18
+ assistantMessage?: IAssistantMessage;
19
+ /**
20
+ * 用户内容
21
+ */
22
+ userMessage?: IUserMessage;
23
+ /**
24
+ * system
25
+ */
26
+ systemMessage?: ISystemMessage;
27
+ /**
28
+ * 工具信息
29
+ */
30
+ toolMessage?: IToolMessage;
31
+ }
32
+
33
+ /**
34
+ * 工具消息类型
35
+ */
36
+ export const enum IToolTypeEnum {
37
+ /**
38
+ * 文本消息
39
+ */
40
+ TextMessage = 'textMessage',
41
+ /**
42
+ * 可视化图表消息
43
+ */
44
+ VisualChart = 'visualChart',
45
+ /**
46
+ * 行为动作消息 如结束对话、展示按钮等行为
47
+ */
48
+ BehaviorAction = 'behaviorAction',
49
+ /**
50
+ * 收集结构化信息
51
+ */
52
+ CollectStructured = 'collectStructured'
53
+ }
54
+
55
+ /**
56
+ * ai消息
57
+ */
58
+ export interface IAssistantMessage {
59
+ /**
60
+ * content:正文, reason:思考
61
+ */
62
+ type?: 'content' | 'reason';
63
+ /**
64
+ * 内容
65
+ */
66
+ content?: string;
67
+ /**
68
+ * 思考内容
69
+ */
70
+ reason?: string;
71
+ }
72
+
73
+ /**
74
+ * 用户消息
75
+ */
76
+ export interface IUserMessage {
77
+ /**
78
+ * 内容
79
+ */
80
+ content?: string;
81
+ /**
82
+ * 格式化信息,json字符串,前端要json parse一下
83
+ */
84
+ formatInfo?: string;
85
+ /**
86
+ * 原内容类型,语音、文字、图片
87
+ */
88
+ oriContentType?: string;
89
+ }
90
+
91
+ export interface IToolMessage {
92
+ /**
93
+ * 工具消息类型
94
+ */
95
+ type: IToolTypeEnum;
96
+ /**
97
+ * 工具消息内容
98
+ */
99
+ content?: string;
100
+ /**
101
+ * 可视化图表数据
102
+ */
103
+ visualChartData?: IVisualChartData;
104
+ /**
105
+ * 行为动作
106
+ */
107
+ behaviorAction?: {
108
+ /**
109
+ * 行为动作
110
+ */
111
+ action?: IBehaviorAction;
112
+ /**
113
+ * 行为动作描述
114
+ */
115
+ actionDescription?: string;
116
+ };
117
+ /**
118
+ * 需要收集非结构化信息
119
+ */
120
+ needCollectStructuredInfo?: INeedCollectStructuredInfo;
121
+ }
122
+
123
+ /**
124
+ * uCharts 图表类型
125
+ */
126
+ export type UChartsType =
127
+ | 'line' // 折线图
128
+ | 'column' // 柱状图
129
+ | 'bar' // 条形图
130
+ | 'area' // 区域图
131
+ | 'pie' // 饼图
132
+ | 'ring' // 环形图
133
+ | 'rose' // 玫瑰图
134
+ | 'radar' // 雷达图
135
+ | 'arcbar' // 圆弧进度条
136
+ | 'gauge' // 仪表盘
137
+ | 'candle' // K线图
138
+ | 'mix' // 混合图
139
+ | 'funnel' // 漏斗图
140
+ | 'map' // 地图
141
+ | 'word' // 词云图
142
+ | 'scatter' // 散点图
143
+ | 'bubble'; // 气泡图
144
+
145
+ /**
146
+ * uCharts 图表数据 series 项
147
+ */
148
+ export interface IUChartsSeries {
149
+ /**
150
+ * 系列名称
151
+ */
152
+ name?: string;
153
+ /**
154
+ * 数据值数组
155
+ */
156
+ data?: number[] | { value: number; name?: string }[];
157
+ /**
158
+ * 系列颜色
159
+ */
160
+ color?: string;
161
+ /**
162
+ * 图表类型(用于混合图)
163
+ */
164
+ type?: UChartsType;
165
+ /**
166
+ * 是否在右侧Y轴显示
167
+ */
168
+ index?: number;
169
+ /**
170
+ * 是否显示数据标签
171
+ */
172
+ textShow?: boolean;
173
+ /**
174
+ * 数据标签字体大小
175
+ */
176
+ textSize?: number;
177
+ /**
178
+ * 数据标签颜色
179
+ */
180
+ textColor?: string;
181
+ }
182
+
183
+ /**
184
+ * uCharts 图表数据
185
+ */
186
+ export interface IUChartsData {
187
+ /**
188
+ * X轴分类标签
189
+ */
190
+ categories?: string[];
191
+ /**
192
+ * 数据系列
193
+ */
194
+ series?: IUChartsSeries[];
195
+ }
196
+
197
+ /**
198
+ * uCharts 配置项
199
+ */
200
+ export interface IUChartsOpts {
201
+ /**
202
+ * 画布宽度
203
+ */
204
+ width?: number;
205
+ /**
206
+ * 画布高度
207
+ */
208
+ height?: number;
209
+ /**
210
+ * 图表标题
211
+ */
212
+ title?: {
213
+ name?: string;
214
+ fontSize?: number;
215
+ color?: string;
216
+ offsetX?: number;
217
+ offsetY?: number;
218
+ };
219
+ /**
220
+ * 图表副标题
221
+ */
222
+ subtitle?: {
223
+ name?: string;
224
+ fontSize?: number;
225
+ color?: string;
226
+ offsetX?: number;
227
+ offsetY?: number;
228
+ };
229
+ /**
230
+ * 颜色数组
231
+ */
232
+ color?: string[];
233
+ /**
234
+ * 内边距
235
+ */
236
+ padding?: [number, number, number, number];
237
+ /**
238
+ * 是否开启动画
239
+ */
240
+ animation?: boolean;
241
+ /**
242
+ * 动画时长(ms)
243
+ */
244
+ duration?: number;
245
+ /**
246
+ * 是否显示图例
247
+ */
248
+ legend?: {
249
+ show?: boolean;
250
+ position?: 'top' | 'bottom' | 'left' | 'right';
251
+ float?: 'left' | 'center' | 'right';
252
+ fontSize?: number;
253
+ lineHeight?: number;
254
+ fontColor?: string;
255
+ margin?: number;
256
+ padding?: number;
257
+ itemGap?: number;
258
+ };
259
+ /**
260
+ * X轴配置
261
+ */
262
+ xAxis?: {
263
+ disabled?: boolean;
264
+ axisLine?: boolean;
265
+ axisLineColor?: string;
266
+ calibration?: boolean;
267
+ fontColor?: string;
268
+ fontSize?: number;
269
+ rotateLabel?: boolean;
270
+ rotateAngle?: number;
271
+ labelCount?: number;
272
+ itemCount?: number;
273
+ boundaryGap?: 'center' | 'justify';
274
+ disableGrid?: boolean;
275
+ gridColor?: string;
276
+ gridType?: 'solid' | 'dash';
277
+ dashLength?: number;
278
+ gridEval?: number;
279
+ scrollShow?: boolean;
280
+ scrollAlign?: 'left' | 'right';
281
+ scrollColor?: string;
282
+ scrollBackgroundColor?: string;
283
+ format?: string;
284
+ };
285
+ /**
286
+ * Y轴配置
287
+ */
288
+ yAxis?: {
289
+ disabled?: boolean;
290
+ disableGrid?: boolean;
291
+ splitNumber?: number;
292
+ gridType?: 'solid' | 'dash';
293
+ dashLength?: number;
294
+ gridColor?: string;
295
+ padding?: number;
296
+ showTitle?: boolean;
297
+ data?: {
298
+ min?: number;
299
+ max?: number;
300
+ unit?: string;
301
+ type?: 'value' | 'category';
302
+ disabled?: boolean;
303
+ axisLine?: boolean;
304
+ axisLineColor?: string;
305
+ calibration?: boolean;
306
+ fontColor?: string;
307
+ fontSize?: number;
308
+ textAlign?: 'left' | 'center' | 'right';
309
+ title?: string;
310
+ titleFontSize?: number;
311
+ titleOffsetY?: number;
312
+ titleOffsetX?: number;
313
+ titleFontColor?: string;
314
+ format?: (val: number) => string;
315
+ }[];
316
+ };
317
+ /**
318
+ * 额外配置
319
+ */
320
+ extra?: {
321
+ [key: string]: any;
322
+ line?: {
323
+ type?: 'straight' | 'curve' | 'step';
324
+ width?: number;
325
+ activeType?: 'hollow' | 'solid';
326
+ linearType?: 'none' | 'custom';
327
+ onShadow?: boolean;
328
+ animation?: 'vertical' | 'horizontal';
329
+ };
330
+ column?: {
331
+ type?: 'group' | 'stack';
332
+ width?: number;
333
+ seriesGap?: number;
334
+ categoryGap?: number;
335
+ barBorderCircle?: boolean;
336
+ barBorderRadius?: number[];
337
+ linearType?: 'none' | 'custom';
338
+ linearOpacity?: number;
339
+ customColor?: string[];
340
+ colorStop?: number;
341
+ meterBorder?: number;
342
+ meterFillColor?: string;
343
+ activeBgColor?: string;
344
+ activeBgOpacity?: number;
345
+ meterGap?: number;
346
+ };
347
+ pie?: {
348
+ activeOpacity?: number;
349
+ activeRadius?: number;
350
+ offsetAngle?: number;
351
+ labelWidth?: number;
352
+ ringWidth?: number;
353
+ customRadius?: number;
354
+ border?: boolean;
355
+ borderWidth?: number;
356
+ borderColor?: string;
357
+ linearType?: 'none' | 'custom';
358
+ };
359
+ radar?: {
360
+ gridType?: 'radar' | 'circle';
361
+ gridColor?: string;
362
+ gridCount?: number;
363
+ opacity?: number;
364
+ max?: number;
365
+ labelShow?: boolean;
366
+ labelColor?: string;
367
+ labelPointShow?: boolean;
368
+ labelPointColor?: string;
369
+ };
370
+ gauge?: {
371
+ type?: 'default' | 'progress';
372
+ width?: number;
373
+ splitLine?: {
374
+ fixRadius?: number;
375
+ splitNumber?: number;
376
+ width?: number;
377
+ color?: string;
378
+ childNumber?: number;
379
+ childWidth?: number;
380
+ };
381
+ pointer?: {
382
+ width?: number;
383
+ color?: string;
384
+ };
385
+ };
386
+ };
387
+ /**
388
+ * 数据标签配置
389
+ */
390
+ dataLabel?: boolean;
391
+ /**
392
+ * 数据点标记配置
393
+ */
394
+ dataPointShape?: boolean;
395
+ /**
396
+ * 数据点标记大小
397
+ */
398
+ dataPointShapeType?: 'solid' | 'hollow';
399
+ /**
400
+ * 触摸提示配置
401
+ */
402
+ enableScroll?: boolean;
403
+ /**
404
+ * 触摸提示配置
405
+ */
406
+ touchMoveLimit?: number;
407
+ /**
408
+ * 提示框配置
409
+ */
410
+ tooltip?: {
411
+ show?: boolean;
412
+ showBox?: boolean;
413
+ showArrow?: boolean;
414
+ showCategory?: boolean;
415
+ borderWidth?: number;
416
+ borderColor?: string;
417
+ borderRadius?: number;
418
+ boxPadding?: number;
419
+ bgColor?: string;
420
+ bgOpacity?: number;
421
+ fontColor?: string;
422
+ fontSize?: number;
423
+ lineHeight?: number;
424
+ legendShow?: boolean;
425
+ legendShape?: 'auto' | 'circle' | 'line' | 'rect';
426
+ splitLine?: boolean;
427
+ horizen498tal?: boolean;
428
+ xAxisLabel?: boolean;
429
+ yAxisLabel?: boolean;
430
+ labelBgColor?: string;
431
+ labelBgOpacity?: number;
432
+ labelFontColor?: string;
433
+ format?: (item: any, category: string, index: number, opts: IUChartsOpts) => string;
434
+ };
435
+ }
436
+
437
+ /**
438
+ * 可视化图表返回数据
439
+ */
440
+ export interface IVisualChartData {
441
+ /**
442
+ * 图表类型
443
+ */
444
+ type?: UChartsType;
445
+ /**
446
+ * uCharts 配置项
447
+ */
448
+ opts?: IUChartsOpts;
449
+ /**
450
+ * uCharts 图表数据
451
+ */
452
+ chartData?: IUChartsData;
453
+ }
454
+
455
+ /**
456
+ * 行为动作
457
+ */
458
+ export const enum IBehaviorAction {
459
+ /**
460
+ * 结束当前咨询流程,开始生成报告
461
+ */
462
+ EndInquiryToGenerateReport = 'endInquiryToGenerateReport'
463
+ }
464
+
465
+ /**
466
+ * 需要收集结构化信息
467
+ */
468
+ export interface INeedCollectStructuredInfo {
469
+ /**
470
+ * 表单类型
471
+ */
472
+ type?: string;
473
+ /**
474
+ * 对用户的语言提示
475
+ */
476
+ voiceTip?: string;
477
+ /**
478
+ * 表单标题
479
+ */
480
+ title?: string;
481
+ /**
482
+ * 表单描述
483
+ */
484
+ description?: string;
485
+ /**
486
+ * 等效的AI内容(当不使用结构化展示时候可以使用等效的AI内容展示给用户 或 用于上下文)
487
+ */
488
+ equalAiContent?: string;
489
+ /**
490
+ * 需要收集的字段列表
491
+ */
492
+ fields: {
493
+ /**
494
+ * 字段名称
495
+ */
496
+ name?: string;
497
+ /**
498
+ * 字段标签
499
+ */
500
+ label?: string;
501
+ /**
502
+ * 字段描述
503
+ */
504
+ description?: string;
505
+ /**
506
+ * 是否必填
507
+ */
508
+ required?: boolean;
509
+ /**
510
+ * 选项
511
+ */
512
+ options?: string[];
513
+ /**
514
+ * 占位符
515
+ */
516
+ placeholder?: string;
517
+ }[];
518
+ }
@@ -1,21 +1,21 @@
1
- /**
2
- * 会话角色枚举
3
- */
4
- export const enum SessionRoleEnum {
5
- /**
6
- * 用户
7
- */
8
- USER = 'user',
9
- /**
10
- * ai
11
- */
12
- ASSISTANT = 'assistant',
13
- /**
14
- * 系统
15
- */
16
- SYSTEM = 'system',
17
- /**
18
- * 工具
19
- * */
20
- TOOL = 'tool'
21
- }
1
+ /**
2
+ * 会话角色枚举
3
+ */
4
+ export const enum SessionRoleEnum {
5
+ /**
6
+ * 用户
7
+ */
8
+ USER = 'user',
9
+ /**
10
+ * ai
11
+ */
12
+ ASSISTANT = 'assistant',
13
+ /**
14
+ * 系统
15
+ */
16
+ SYSTEM = 'system',
17
+ /**
18
+ * 工具
19
+ * */
20
+ TOOL = 'tool'
21
+ }
@@ -1,57 +1,57 @@
1
- import { type SessionRoleEnum } from './ISessionRole';
2
- /**
3
- * sse流式返回片段 @deprecated 即将废弃 请整体切换到ISseData
4
- */
5
- export interface ISseChunk {
6
- /**
7
- * sse流式返回片段的类型
8
- */
9
- type: ISseChunkType;
10
- /**
11
- * sse流式返回片段的角色
12
- */
13
- role?: SessionRoleEnum;
14
- /**
15
- * 当type为content时sse流式返回片段的内容
16
- */
17
- content?: string | null;
18
- /**
19
- * 当type为reason时sse流式返回片段的原因
20
- */
21
- reason?: string | null;
22
- /**
23
- * 当type为formatJson时sse流式返回片段的格式化json
24
- * */
25
- formatJson?: {
26
- /**
27
- * 是否开始下一个流程
28
- */
29
- startNextStep?: boolean;
30
- /**
31
- * 可能的答案选项
32
- */
33
- guessAnswerList?: string[];
34
- /**
35
- * 是否是总结
36
- */
37
- isSummary?: boolean;
38
- };
39
- }
40
-
41
- /**
42
- * sse流式返回片段的类型 @deprecated 即将废弃 请整体切换到ISseData
43
- */
44
- export const enum ISseChunkType {
45
- /**
46
- * 内容
47
- */
48
- CONTENT = 'content',
49
- /**
50
- * 原因
51
- */
52
- REASON = 'reason',
53
- /**
54
- * 格式化的json
55
- * */
56
- FORMATJSON = 'formatJson'
57
- }
1
+ import { type SessionRoleEnum } from './ISessionRole';
2
+ /**
3
+ * sse流式返回片段 @deprecated 即将废弃 请整体切换到ISseData
4
+ */
5
+ export interface ISseChunk {
6
+ /**
7
+ * sse流式返回片段的类型
8
+ */
9
+ type: ISseChunkType;
10
+ /**
11
+ * sse流式返回片段的角色
12
+ */
13
+ role?: SessionRoleEnum;
14
+ /**
15
+ * 当type为content时sse流式返回片段的内容
16
+ */
17
+ content?: string | null;
18
+ /**
19
+ * 当type为reason时sse流式返回片段的原因
20
+ */
21
+ reason?: string | null;
22
+ /**
23
+ * 当type为formatJson时sse流式返回片段的格式化json
24
+ * */
25
+ formatJson?: {
26
+ /**
27
+ * 是否开始下一个流程
28
+ */
29
+ startNextStep?: boolean;
30
+ /**
31
+ * 可能的答案选项
32
+ */
33
+ guessAnswerList?: string[];
34
+ /**
35
+ * 是否是总结
36
+ */
37
+ isSummary?: boolean;
38
+ };
39
+ }
40
+
41
+ /**
42
+ * sse流式返回片段的类型 @deprecated 即将废弃 请整体切换到ISseData
43
+ */
44
+ export const enum ISseChunkType {
45
+ /**
46
+ * 内容
47
+ */
48
+ CONTENT = 'content',
49
+ /**
50
+ * 原因
51
+ */
52
+ REASON = 'reason',
53
+ /**
54
+ * 格式化的json
55
+ * */
56
+ FORMATJSON = 'formatJson'
57
+ }