@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.
Files changed (40) 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.js +3 -2
  7. package/hdd-ai-cloud/common/ICallUniCloudParams.js.map +1 -0
  8. package/hdd-ai-cloud/common/ICallUniCloudParams.ts +20 -20
  9. package/hdd-ai-cloud/common/IChatAiMessageItem.d.ts +23 -23
  10. package/hdd-ai-cloud/common/ICommonReqRes.d.ts +30 -30
  11. package/hdd-ai-cloud/common/ICommonRequstHead.js +3 -2
  12. package/hdd-ai-cloud/common/ICommonRequstHead.js.map +1 -0
  13. package/hdd-ai-cloud/common/ICommonRequstHead.ts +17 -17
  14. package/hdd-ai-cloud/common/ICounselor.d.ts +4 -4
  15. package/hdd-ai-cloud/common/ICounselorType.d.ts +23 -0
  16. package/hdd-ai-cloud/common/IFormatCutOffCollegeData.d.ts +29 -29
  17. package/hdd-ai-cloud/common/IFormatProfessional.js +3 -0
  18. package/hdd-ai-cloud/common/IFormatProfessional.js.map +1 -0
  19. package/hdd-ai-cloud/common/IFormatProfessional.ts +29 -29
  20. package/hdd-ai-cloud/common/IGetRecommendSchool.d.ts +73 -0
  21. package/hdd-ai-cloud/common/IInquiryBasicInfo.d.ts +39 -0
  22. package/hdd-ai-cloud/common/IInquirySession.d.ts +25 -0
  23. package/hdd-ai-cloud/common/IPicture.d.ts +13 -13
  24. package/hdd-ai-cloud/common/IReportInfo.d.ts +21 -0
  25. package/hdd-ai-cloud/common/IReportResult.d.ts +23 -0
  26. package/hdd-ai-cloud/common/ISceneAiConfig.d.ts +27 -27
  27. package/hdd-ai-cloud/common/IScoreRank.d.ts +18 -0
  28. package/hdd-ai-cloud/common/ISelectSubject.d.ts +29 -0
  29. package/hdd-ai-cloud/common/ISessionContent.d.ts +27 -9
  30. package/hdd-ai-cloud/common/ISessionRole.d.ts +21 -21
  31. package/hdd-ai-cloud/common/ISseChunk.d.ts +57 -57
  32. package/hdd-ai-cloud/common/ISseData.d.ts +96 -96
  33. package/hdd-ai-cloud/common/IThisContext.d.ts +128 -128
  34. package/hdd-ai-cloud/common/index.d.ts +23 -15
  35. package/hdd-ai-cloud/controller/index.d.ts +453 -279
  36. package/hdd-ai-cloud/index.d.ts +3 -3
  37. package/hdd-ai-cloud/service/index.d.ts +36 -36
  38. package/index.d.ts +2 -2
  39. package/npmPublish.md +10 -10
  40. package/package.json +11 -11
@@ -1,96 +1,96 @@
1
- /**
2
- * sse流式返回片段
3
- */
4
- export interface ISseData {
5
- /**
6
- * 流式返回片段的类型
7
- */
8
- type: SseDataTypeEnum;
9
- /**
10
- * ai返回的对话内容
11
- */
12
- aiMessage?: {
13
- content?: string;
14
- };
15
- /**
16
- * ai思考的内容
17
- */
18
- aiThinking?: {
19
- reason?: string;
20
- };
21
- /**
22
- * 需要收集非结构化信息
23
- */
24
- needCollectstructuredInfo?: {
25
- /**
26
- * 表单类型
27
- */
28
- type?: string;
29
- /**
30
- * 表单标题
31
- */
32
- title?: string;
33
- /**
34
- * 表单描述
35
- */
36
- description?: string;
37
- /**
38
- * 需要收集的字段列表
39
- */
40
- fields: {
41
- /**
42
- * 字段名称
43
- */
44
- name?: string;
45
- /**
46
- * 字段标签
47
- */
48
- label?: string;
49
- /**
50
- * 字段描述
51
- */
52
- description?: string;
53
- /**
54
- * 是否必填
55
- */
56
- required?: boolean;
57
- /**
58
- * 选项
59
- */
60
- options?: string[];
61
- /**
62
- * 占位符
63
- */
64
- placeholder?: string;
65
- }[];
66
- };
67
- /**
68
- * 错误信息
69
- */
70
- errorInfo?: {
71
- errCode?: string;
72
- errMsg?: string;
73
- };
74
- }
75
-
76
- /**
77
- * sse流式返回片段的类型
78
- */
79
- export const enum SseDataTypeEnum {
80
- /**
81
- * ai返回的对话内容
82
- */
83
- AIMessage = 'aiMessage',
84
- /**
85
- * ai思考的内容
86
- */
87
- AiThinking = 'aiThinking',
88
- /**
89
- * 需要收集结构化信息
90
- */
91
- NeedCollectStructuredInfo = 'needCollectStructuredInfo',
92
- /**
93
- * 错误信息
94
- */
95
- ErrorInfo = 'errorInfo'
96
- }
1
+ /**
2
+ * sse流式返回片段
3
+ */
4
+ export interface ISseData {
5
+ /**
6
+ * 流式返回片段的类型
7
+ */
8
+ type: SseDataTypeEnum;
9
+ /**
10
+ * ai返回的对话内容
11
+ */
12
+ aiMessage?: {
13
+ content?: string;
14
+ };
15
+ /**
16
+ * ai思考的内容
17
+ */
18
+ aiThinking?: {
19
+ reason?: string;
20
+ };
21
+ /**
22
+ * 需要收集非结构化信息
23
+ */
24
+ needCollectstructuredInfo?: {
25
+ /**
26
+ * 表单类型
27
+ */
28
+ type?: string;
29
+ /**
30
+ * 表单标题
31
+ */
32
+ title?: string;
33
+ /**
34
+ * 表单描述
35
+ */
36
+ description?: string;
37
+ /**
38
+ * 需要收集的字段列表
39
+ */
40
+ fields: {
41
+ /**
42
+ * 字段名称
43
+ */
44
+ name?: string;
45
+ /**
46
+ * 字段标签
47
+ */
48
+ label?: string;
49
+ /**
50
+ * 字段描述
51
+ */
52
+ description?: string;
53
+ /**
54
+ * 是否必填
55
+ */
56
+ required?: boolean;
57
+ /**
58
+ * 选项
59
+ */
60
+ options?: string[];
61
+ /**
62
+ * 占位符
63
+ */
64
+ placeholder?: string;
65
+ }[];
66
+ };
67
+ /**
68
+ * 错误信息
69
+ */
70
+ errorInfo?: {
71
+ errCode?: string;
72
+ errMsg?: string;
73
+ };
74
+ }
75
+
76
+ /**
77
+ * sse流式返回片段的类型
78
+ */
79
+ export const enum SseDataTypeEnum {
80
+ /**
81
+ * ai返回的对话内容
82
+ */
83
+ AIMessage = 'aiMessage',
84
+ /**
85
+ * ai思考的内容
86
+ */
87
+ AiThinking = 'aiThinking',
88
+ /**
89
+ * 需要收集结构化信息
90
+ */
91
+ NeedCollectStructuredInfo = 'needCollectStructuredInfo',
92
+ /**
93
+ * 错误信息
94
+ */
95
+ ErrorInfo = 'errorInfo'
96
+ }
@@ -1,128 +1,128 @@
1
- /**
2
- * uniCloud云对象的this上下文
3
- */
4
- export interface IThisContext {
5
- /**
6
- * 函数执行开始的时间戳 毫秒 在_before中赋值
7
- */
8
- funStartTime?: number;
9
- /**
10
- * 函数执行结束的时间戳 毫秒 在_after中赋值
11
- */
12
- funEndTime?: number;
13
- /**
14
- * 函数执行的总时间 毫秒 在_after中赋值funEndTime - funStartTime
15
- */
16
- funRunTime?: number;
17
- /**
18
- * 通过token解析出来的用户信息 _before中赋值 未登录时候赋值为null
19
- */
20
- tokenRes?: ITokenRes | null;
21
- /**
22
- * 获取的云对象信息
23
- */
24
- getCloudInfo?: () => ICloudInfo;
25
- /**
26
- * 获取客户端信息
27
- */
28
- getClientInfo?: () => IClientInfo;
29
- /**
30
- * 获取token
31
- */
32
- getUniIdToken?: () => string;
33
- /**
34
- * 获取调用的云对象方法名
35
- */
36
- getMethodName?: () => string;
37
- /**
38
- * 获取调用云对象时候传入的参数
39
- */
40
- getParams?: () => any;
41
- /**
42
- * 获取请求id
43
- */
44
- getUniCloudRequestId?: () => string;
45
- }
46
-
47
- /**
48
- * this.tokenRes解析出来的用户信息
49
- */
50
- export interface ITokenRes {
51
- /**
52
- * 错误码 0为成功
53
- */
54
- errCode?: number;
55
- /**
56
- * token解析出来的uid
57
- */
58
- uid?: string;
59
- /**
60
- * token解析出来的role角色
61
- */
62
- role?: string[];
63
- /**
64
- * token解析出来的permission权限
65
- */
66
- permission?: string[];
67
- }
68
-
69
- /**
70
- * this.getClientInfo返回的客户端信息
71
- */
72
- export interface IClientInfo {
73
- /**
74
- * 客户端ip
75
- */
76
- clientIP?: string;
77
- /**
78
- * 客户端ua,注意非本地运行环境下客户端getSystemInfoSync也会获取ua参数并上传给云对象,但是云对象会从http请求头里面获取ua而不是clientInfo里面的ua
79
- */
80
- userAgent?: string;
81
- /**
82
- * 调用来源
83
- * client uni-app客户端导入云对象调用
84
- * function 由其他云函数或云对象调用
85
- * http 云对象URL化后通过http访问调用 HBuilderX 3.5.2+
86
- * timing 定时任务调用云对象 HBuilderX 3.5.2+
87
- * server 云函数上传并运行
88
- */
89
- source?: 'client' | 'function' | 'http' | 'timing' | 'server';
90
- /**
91
- * 请求id
92
- */
93
- requestId?: string;
94
- /**
95
- * 场景值 客户端uni.getLaunchOptionsSync返回的scene参数,新增于HBuilderX 3.5.1
96
- */
97
- scene?: string;
98
- }
99
-
100
- /**
101
- * this.getCloudInfo获取的云对象信息
102
- */
103
- export interface ICloudInfo {
104
- /**
105
- * 服务空间供应商,支付宝云为:alipay,阿里云为:aliyun,腾讯云为:tencent
106
- */
107
- provider: 'alipay' | 'aliyun' | 'tencent';
108
- /**
109
- * 服务空间Id
110
- */
111
- spaceId: string;
112
- /**
113
- * 当前获取的服务空间id是否为迁移前的服务空间id
114
- */
115
- useOldSpaceId: boolean;
116
- /**
117
- * 云对象名称
118
- */
119
- functionName: string;
120
- /**
121
- * 云对象此值固定为cloudobject
122
- */
123
- functionType: 'cloudobject';
124
- /**
125
- * 运行环境,取值为local(本地运行)或cloud(云端运行) 新增于HBuilderX 4.25
126
- */
127
- runtimeEnv: 'local' | 'cloud';
128
- }
1
+ /**
2
+ * uniCloud云对象的this上下文
3
+ */
4
+ export interface IThisContext {
5
+ /**
6
+ * 函数执行开始的时间戳 毫秒 在_before中赋值
7
+ */
8
+ funStartTime?: number;
9
+ /**
10
+ * 函数执行结束的时间戳 毫秒 在_after中赋值
11
+ */
12
+ funEndTime?: number;
13
+ /**
14
+ * 函数执行的总时间 毫秒 在_after中赋值funEndTime - funStartTime
15
+ */
16
+ funRunTime?: number;
17
+ /**
18
+ * 通过token解析出来的用户信息 _before中赋值 未登录时候赋值为null
19
+ */
20
+ tokenRes?: ITokenRes | null;
21
+ /**
22
+ * 获取的云对象信息
23
+ */
24
+ getCloudInfo?: () => ICloudInfo;
25
+ /**
26
+ * 获取客户端信息
27
+ */
28
+ getClientInfo?: () => IClientInfo;
29
+ /**
30
+ * 获取token
31
+ */
32
+ getUniIdToken?: () => string;
33
+ /**
34
+ * 获取调用的云对象方法名
35
+ */
36
+ getMethodName?: () => string;
37
+ /**
38
+ * 获取调用云对象时候传入的参数
39
+ */
40
+ getParams?: () => any;
41
+ /**
42
+ * 获取请求id
43
+ */
44
+ getUniCloudRequestId?: () => string;
45
+ }
46
+
47
+ /**
48
+ * this.tokenRes解析出来的用户信息
49
+ */
50
+ export interface ITokenRes {
51
+ /**
52
+ * 错误码 0为成功
53
+ */
54
+ errCode?: number;
55
+ /**
56
+ * token解析出来的uid
57
+ */
58
+ uid?: string;
59
+ /**
60
+ * token解析出来的role角色
61
+ */
62
+ role?: string[];
63
+ /**
64
+ * token解析出来的permission权限
65
+ */
66
+ permission?: string[];
67
+ }
68
+
69
+ /**
70
+ * this.getClientInfo返回的客户端信息
71
+ */
72
+ export interface IClientInfo {
73
+ /**
74
+ * 客户端ip
75
+ */
76
+ clientIP?: string;
77
+ /**
78
+ * 客户端ua,注意非本地运行环境下客户端getSystemInfoSync也会获取ua参数并上传给云对象,但是云对象会从http请求头里面获取ua而不是clientInfo里面的ua
79
+ */
80
+ userAgent?: string;
81
+ /**
82
+ * 调用来源
83
+ * client uni-app客户端导入云对象调用
84
+ * function 由其他云函数或云对象调用
85
+ * http 云对象URL化后通过http访问调用 HBuilderX 3.5.2+
86
+ * timing 定时任务调用云对象 HBuilderX 3.5.2+
87
+ * server 云函数上传并运行
88
+ */
89
+ source?: 'client' | 'function' | 'http' | 'timing' | 'server';
90
+ /**
91
+ * 请求id
92
+ */
93
+ requestId?: string;
94
+ /**
95
+ * 场景值 客户端uni.getLaunchOptionsSync返回的scene参数,新增于HBuilderX 3.5.1
96
+ */
97
+ scene?: string;
98
+ }
99
+
100
+ /**
101
+ * this.getCloudInfo获取的云对象信息
102
+ */
103
+ export interface ICloudInfo {
104
+ /**
105
+ * 服务空间供应商,支付宝云为:alipay,阿里云为:aliyun,腾讯云为:tencent
106
+ */
107
+ provider: 'alipay' | 'aliyun' | 'tencent';
108
+ /**
109
+ * 服务空间Id
110
+ */
111
+ spaceId: string;
112
+ /**
113
+ * 当前获取的服务空间id是否为迁移前的服务空间id
114
+ */
115
+ useOldSpaceId: boolean;
116
+ /**
117
+ * 云对象名称
118
+ */
119
+ functionName: string;
120
+ /**
121
+ * 云对象此值固定为cloudobject
122
+ */
123
+ functionType: 'cloudobject';
124
+ /**
125
+ * 运行环境,取值为local(本地运行)或cloud(云端运行) 新增于HBuilderX 4.25
126
+ */
127
+ runtimeEnv: 'local' | 'cloud';
128
+ }
@@ -1,15 +1,23 @@
1
- export * from './ICommonReqRes';
2
- export * from './ISessionRole';
3
- export * from './ISessionContent';
4
- export * from './ICounselor';
5
- export * from './IChatAiMessageItem';
6
- export * from './AISceneEnum';
7
- export * from './ISceneAiConfig';
8
- export * from './IAliFcContext';
9
- export * from './ISseChunk';
10
- export * from './ICallUniCloudParams';
11
- export * from './ICommonRequstHead';
12
- export * from './IFormatCutOffCollegeData';
13
- export * from './IFormatProfessional.ts';
14
- export * from './IPicture.ts';
15
- export * from './ISseData';
1
+ export * from './ICommonReqRes';
2
+ export * from './ISessionRole';
3
+ export * from './ISessionContent';
4
+ export * from './ICounselor';
5
+ export * from './IChatAiMessageItem';
6
+ export * from './AISceneEnum';
7
+ export * from './ISceneAiConfig';
8
+ export * from './IAliFcContext';
9
+ export * from './ISseChunk';
10
+ export * from './ICallUniCloudParams';
11
+ export * from './ICommonRequstHead';
12
+ export * from './IFormatCutOffCollegeData';
13
+ export * from './IFormatProfessional.ts';
14
+ export * from './IPicture.ts';
15
+ export * from './ISseData';
16
+ export * from './ISelectSubject';
17
+ export * from './IInquiryBasicInfo';
18
+ export * from './IInquirySession';
19
+ export * from './ISessionContent';
20
+ export * from './IGetRecommendSchool';
21
+ export * from './IScoreRank';
22
+ export * from './IReportInfo';
23
+ export * from './IReportResult';