@hddjs/hdd-cloud-types 1.0.5 → 1.0.6
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/HddCloud/common/index.d.ts +4 -4
- package/HddCloud/index.d.ts +59 -59
- package/README.md +2 -2
- package/hdd-ai-cloud/common/AISceneEnum.d.ts +54 -54
- package/hdd-ai-cloud/common/IAliFcContext.d.ts +5 -5
- package/hdd-ai-cloud/common/ICallUniCloudParams.js +3 -2
- package/hdd-ai-cloud/common/ICallUniCloudParams.js.map +1 -0
- package/hdd-ai-cloud/common/ICallUniCloudParams.ts +20 -20
- package/hdd-ai-cloud/common/IChatAiMessageItem.d.ts +23 -23
- package/hdd-ai-cloud/common/ICommonReqRes.d.ts +30 -30
- package/hdd-ai-cloud/common/ICommonRequstHead.js +3 -2
- package/hdd-ai-cloud/common/ICommonRequstHead.js.map +1 -0
- package/hdd-ai-cloud/common/ICommonRequstHead.ts +17 -17
- package/hdd-ai-cloud/common/ICounselor.d.ts +4 -4
- package/hdd-ai-cloud/common/ICounselorType.d.ts +23 -0
- package/hdd-ai-cloud/common/IFormatCutOffCollegeData.d.ts +29 -29
- package/hdd-ai-cloud/common/IFormatProfessional.js +3 -0
- package/hdd-ai-cloud/common/IFormatProfessional.js.map +1 -0
- package/hdd-ai-cloud/common/IFormatProfessional.ts +29 -29
- package/hdd-ai-cloud/common/IGetRecommendSchool.d.ts +73 -0
- package/hdd-ai-cloud/common/IInquiryBasicInfo.d.ts +39 -0
- package/hdd-ai-cloud/common/IInquirySession.d.ts +25 -0
- package/hdd-ai-cloud/common/IPicture.d.ts +13 -13
- package/hdd-ai-cloud/common/IReportInfo.d.ts +21 -0
- package/hdd-ai-cloud/common/IReportResult.d.ts +23 -0
- package/hdd-ai-cloud/common/ISceneAiConfig.d.ts +27 -27
- package/hdd-ai-cloud/common/IScoreRank.d.ts +18 -0
- package/hdd-ai-cloud/common/ISelectSubject.d.ts +29 -0
- package/hdd-ai-cloud/common/ISessionContent.d.ts +27 -9
- package/hdd-ai-cloud/common/ISessionRole.d.ts +21 -21
- package/hdd-ai-cloud/common/ISseChunk.d.ts +57 -57
- package/hdd-ai-cloud/common/ISseData.d.ts +96 -96
- package/hdd-ai-cloud/common/IThisContext.d.ts +128 -128
- package/hdd-ai-cloud/common/index.d.ts +23 -15
- package/hdd-ai-cloud/controller/index.d.ts +453 -279
- package/hdd-ai-cloud/index.d.ts +3 -3
- package/hdd-ai-cloud/service/index.d.ts +36 -36
- package/index.d.ts +2 -2
- package/npmPublish.md +10 -10
- package/package.json +11 -11
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 推荐学校
|
|
3
|
+
*/
|
|
4
|
+
export interface IGetRecommendSchool {
|
|
5
|
+
/**
|
|
6
|
+
* 年份
|
|
7
|
+
*/
|
|
8
|
+
year?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 分数
|
|
11
|
+
*/
|
|
12
|
+
grade?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 学校id
|
|
15
|
+
*/
|
|
16
|
+
schoolId?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 学校名称
|
|
19
|
+
*/
|
|
20
|
+
schoolName?: String;
|
|
21
|
+
/**
|
|
22
|
+
* 省份id
|
|
23
|
+
*/
|
|
24
|
+
provinceId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 省份名称
|
|
27
|
+
*/
|
|
28
|
+
schoolProvince?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 组别id
|
|
31
|
+
*/
|
|
32
|
+
groupId?: number;
|
|
33
|
+
/**
|
|
34
|
+
* 批次id
|
|
35
|
+
*/
|
|
36
|
+
batchId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 专业标识
|
|
39
|
+
*/
|
|
40
|
+
majorGroupId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 专业选科要求
|
|
43
|
+
*/
|
|
44
|
+
majorRequirement?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 专业选科要求id
|
|
47
|
+
*/
|
|
48
|
+
majorRequirementId?: number;
|
|
49
|
+
/**
|
|
50
|
+
* 省控线
|
|
51
|
+
*/
|
|
52
|
+
minControlLine?: number;
|
|
53
|
+
/**
|
|
54
|
+
* 排名
|
|
55
|
+
*/
|
|
56
|
+
rank?: number;
|
|
57
|
+
/**
|
|
58
|
+
* 招生代码
|
|
59
|
+
*/
|
|
60
|
+
enrollmentId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 专业名称
|
|
63
|
+
*/
|
|
64
|
+
majorName?: string;
|
|
65
|
+
/**
|
|
66
|
+
* 学费
|
|
67
|
+
*/
|
|
68
|
+
money?: number;
|
|
69
|
+
/**
|
|
70
|
+
* 招生人数
|
|
71
|
+
*/
|
|
72
|
+
hc?: number;
|
|
73
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ISelectSubject } from './ISelectSubject';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 基础信息
|
|
5
|
+
*/
|
|
6
|
+
export interface IInquiryBasicInfo {
|
|
7
|
+
/**
|
|
8
|
+
* 选科信息
|
|
9
|
+
*/
|
|
10
|
+
selectSubject?: ISelectSubject;
|
|
11
|
+
/**
|
|
12
|
+
* 会话id
|
|
13
|
+
*/
|
|
14
|
+
sessionId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 省份id
|
|
17
|
+
*/
|
|
18
|
+
provinceId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 省份
|
|
21
|
+
*/
|
|
22
|
+
province?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 年份
|
|
25
|
+
*/
|
|
26
|
+
year?: number;
|
|
27
|
+
/**
|
|
28
|
+
* 分数
|
|
29
|
+
*/
|
|
30
|
+
grade?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
* 排名
|
|
33
|
+
*/
|
|
34
|
+
rank?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* 组别id
|
|
37
|
+
*/
|
|
38
|
+
groupId?: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 问询会话
|
|
3
|
+
*/
|
|
4
|
+
export interface IInquirySession {
|
|
5
|
+
/**
|
|
6
|
+
* 用户id
|
|
7
|
+
*/
|
|
8
|
+
uid?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 咨询师id
|
|
11
|
+
*/
|
|
12
|
+
counselorId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 咨询师name
|
|
15
|
+
*/
|
|
16
|
+
counselorName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 会话标题
|
|
19
|
+
*/
|
|
20
|
+
sessionTitle?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 当前步骤
|
|
23
|
+
*/
|
|
24
|
+
currentStepId?: string;
|
|
25
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 会话内容
|
|
3
|
-
*/
|
|
4
|
-
export interface IPicture {
|
|
5
|
-
/**
|
|
6
|
-
* domain的类型,ali、qiniu
|
|
7
|
-
*/
|
|
8
|
-
domainType?: string;
|
|
9
|
-
/**
|
|
10
|
-
* 图片path
|
|
11
|
-
*/
|
|
12
|
-
path?: string;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 会话内容
|
|
3
|
+
*/
|
|
4
|
+
export interface IPicture {
|
|
5
|
+
/**
|
|
6
|
+
* domain的类型,ali、qiniu
|
|
7
|
+
*/
|
|
8
|
+
domainType?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* 图片path
|
|
11
|
+
*/
|
|
12
|
+
path?: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 报告信息
|
|
3
|
+
*/
|
|
4
|
+
export interface IReportInfo {
|
|
5
|
+
/**
|
|
6
|
+
* 会话id
|
|
7
|
+
*/
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 报告类型
|
|
11
|
+
*/
|
|
12
|
+
reportType?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 状态 0:创建中,1:已创建
|
|
15
|
+
*/
|
|
16
|
+
status?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 报告信息
|
|
19
|
+
*/
|
|
20
|
+
reportInfo?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type IReportInfo } from './IReportInfo';
|
|
2
|
+
import type { IScoreRank } from './IScoreRank';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 报告信息
|
|
6
|
+
*/
|
|
7
|
+
export interface IReportResult {
|
|
8
|
+
/**
|
|
9
|
+
* code
|
|
10
|
+
* part: 部分完成
|
|
11
|
+
* generating: 都未完成
|
|
12
|
+
* generated: 全部完成
|
|
13
|
+
*/
|
|
14
|
+
code?: string;
|
|
15
|
+
/**
|
|
16
|
+
*报告信息
|
|
17
|
+
*/
|
|
18
|
+
reportInfos?: IReportInfo[];
|
|
19
|
+
/**
|
|
20
|
+
* 一分一档
|
|
21
|
+
*/
|
|
22
|
+
gradeInfo?: IScoreRank;
|
|
23
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { type AISceneEnum } from './AISceneEnum';
|
|
2
|
-
/**
|
|
3
|
-
* AI场景hdd-ai-config配置
|
|
4
|
-
*/
|
|
5
|
-
export interface ISceneAiConfig {
|
|
6
|
-
/**
|
|
7
|
-
* apiKey
|
|
8
|
-
*/
|
|
9
|
-
apiKey?: string;
|
|
10
|
-
/**
|
|
11
|
-
* baseURL
|
|
12
|
-
*/
|
|
13
|
-
baseURL?: string;
|
|
14
|
-
/**
|
|
15
|
-
* 提问场景
|
|
16
|
-
*/
|
|
17
|
-
scene?: AISceneEnum;
|
|
18
|
-
/**
|
|
19
|
-
* 场景描述
|
|
20
|
-
*/
|
|
21
|
-
desc?: string;
|
|
22
|
-
/**
|
|
23
|
-
* 该场景需要调用的模型
|
|
24
|
-
* @enum 'qwen-max' | 'deepseek-r1' | 'qwen-plus'
|
|
25
|
-
*/
|
|
26
|
-
model?: string;
|
|
27
|
-
}
|
|
1
|
+
import { type AISceneEnum } from './AISceneEnum';
|
|
2
|
+
/**
|
|
3
|
+
* AI场景hdd-ai-config配置
|
|
4
|
+
*/
|
|
5
|
+
export interface ISceneAiConfig {
|
|
6
|
+
/**
|
|
7
|
+
* apiKey
|
|
8
|
+
*/
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
/**
|
|
11
|
+
* baseURL
|
|
12
|
+
*/
|
|
13
|
+
baseURL?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 提问场景
|
|
16
|
+
*/
|
|
17
|
+
scene?: AISceneEnum;
|
|
18
|
+
/**
|
|
19
|
+
* 场景描述
|
|
20
|
+
*/
|
|
21
|
+
desc?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 该场景需要调用的模型
|
|
24
|
+
* @enum 'qwen-max' | 'deepseek-r1' | 'qwen-plus'
|
|
25
|
+
*/
|
|
26
|
+
model?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 一分一档前端展示对象
|
|
3
|
+
*/
|
|
4
|
+
export interface IScoreRankSeriesVO {
|
|
5
|
+
name?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
data?: Array<string | null>;
|
|
8
|
+
index?: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 一份一档表
|
|
14
|
+
*/
|
|
15
|
+
export interface IScoreRank {
|
|
16
|
+
categories?: Array<string | null>;
|
|
17
|
+
series?: Array<IScoreRankSeriesVO | null>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 选科信息
|
|
3
|
+
*/
|
|
4
|
+
export interface ISelectSubject {
|
|
5
|
+
/**
|
|
6
|
+
* 物理
|
|
7
|
+
*/
|
|
8
|
+
physics?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 化学
|
|
11
|
+
*/
|
|
12
|
+
chemistry?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 生物
|
|
15
|
+
*/
|
|
16
|
+
biology?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 历史
|
|
19
|
+
*/
|
|
20
|
+
history?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 政治
|
|
23
|
+
*/
|
|
24
|
+
politics?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 地理
|
|
27
|
+
*/
|
|
28
|
+
geography?: boolean;
|
|
29
|
+
}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
}
|
|
@@ -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
|
+
}
|