pcm-agents 0.3.0 → 0.3.2

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 (146) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/index-BFPEnLbS.js +195 -0
  3. package/dist/cjs/index-BFPEnLbS.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/my-component.cjs.entry.js +2 -2
  7. package/dist/cjs/my-component.cjs.entry.js.map +1 -1
  8. package/dist/cjs/my-component.entry.cjs.js.map +1 -1
  9. package/dist/cjs/pcm-agents.cjs.js +1 -1
  10. package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.cjs.js.map +1 -0
  11. package/dist/cjs/pcm-app-chat-modal_7.cjs.entry.js +6560 -0
  12. package/dist/cjs/pcm-app-chat-modal_7.cjs.entry.js.map +1 -0
  13. package/dist/cjs/pcm-chat-modal.cjs.entry.js +17 -32
  14. package/dist/cjs/pcm-chat-modal.cjs.entry.js.map +1 -1
  15. package/dist/cjs/pcm-chat-modal.entry.cjs.js.map +1 -1
  16. package/dist/collection/collection-manifest.json +2 -0
  17. package/dist/collection/components/my-component/my-component.css +3 -3
  18. package/dist/collection/components/my-component/my-component.js +1 -1
  19. package/dist/collection/components/my-component/my-component.js.map +1 -1
  20. package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.css +2 -1
  21. package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +137 -159
  22. package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
  23. package/dist/collection/components/pcm-chat-message/pcm-chat-message.css +66 -12
  24. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +106 -13
  25. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
  26. package/dist/collection/components/pcm-chat-modal/pcm-chat-modal.js +39 -34
  27. package/dist/collection/components/pcm-chat-modal/pcm-chat-modal.js.map +1 -1
  28. package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +76 -105
  29. package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
  30. package/dist/collection/components/pcm-jlpx-modal/pcm-jlpx-modal.css +162 -0
  31. package/dist/collection/components/pcm-jlpx-modal/pcm-jlpx-modal.js +616 -0
  32. package/dist/collection/components/pcm-jlpx-modal/pcm-jlpx-modal.js.map +1 -0
  33. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.css +0 -79
  34. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +133 -81
  35. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
  36. package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js +77 -101
  37. package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js.map +1 -1
  38. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.css +273 -0
  39. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +613 -0
  40. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -0
  41. package/dist/collection/global/global.css +324 -0
  42. package/dist/collection/index.js.map +1 -1
  43. package/dist/collection/interfaces/chat.js.map +1 -1
  44. package/dist/collection/utils/utils.js +54 -113
  45. package/dist/collection/utils/utils.js.map +1 -1
  46. package/dist/components/index.js +1298 -11280
  47. package/dist/components/index.js.map +1 -1
  48. package/dist/components/my-component.js +2 -3
  49. package/dist/components/my-component.js.map +1 -1
  50. package/dist/components/{p-C4l_DOnx.js → p-BctfuDvG.js} +106 -147
  51. package/dist/components/p-BctfuDvG.js.map +1 -0
  52. package/dist/components/{p-D0s1Q-3O.js → p-LkDC0SN2.js} +343 -16
  53. package/dist/components/p-LkDC0SN2.js.map +1 -0
  54. package/dist/components/pcm-app-chat-modal.js +1 -1
  55. package/dist/components/pcm-chat-message.js +1 -1
  56. package/dist/components/pcm-chat-modal.js +19 -34
  57. package/dist/components/pcm-chat-modal.js.map +1 -1
  58. package/dist/components/pcm-hr-chat-modal.js +70 -100
  59. package/dist/components/pcm-hr-chat-modal.js.map +1 -1
  60. package/dist/components/pcm-jlpx-modal.d.ts +11 -0
  61. package/dist/components/pcm-jlpx-modal.js +339 -0
  62. package/dist/components/pcm-jlpx-modal.js.map +1 -0
  63. package/dist/components/pcm-mnms-modal.js +109 -57
  64. package/dist/components/pcm-mnms-modal.js.map +1 -1
  65. package/dist/components/pcm-video-chat-modal.js +74 -99
  66. package/dist/components/pcm-video-chat-modal.js.map +1 -1
  67. package/dist/components/pcm-zygh-modal.d.ts +11 -0
  68. package/dist/components/pcm-zygh-modal.js +330 -0
  69. package/dist/components/pcm-zygh-modal.js.map +1 -0
  70. package/dist/esm/index-nVjZGfA8.js +189 -0
  71. package/dist/esm/index-nVjZGfA8.js.map +1 -0
  72. package/dist/esm/index.js +1 -1
  73. package/dist/esm/loader.js +1 -1
  74. package/dist/esm/my-component.entry.js +2 -2
  75. package/dist/esm/my-component.entry.js.map +1 -1
  76. package/dist/esm/pcm-agents.js +1 -1
  77. package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.js.map +1 -0
  78. package/dist/esm/pcm-app-chat-modal_7.entry.js +6552 -0
  79. package/dist/esm/pcm-app-chat-modal_7.entry.js.map +1 -0
  80. package/dist/esm/pcm-chat-modal.entry.js +17 -32
  81. package/dist/esm/pcm-chat-modal.entry.js.map +1 -1
  82. package/dist/pcm-agents/index.esm.js +1 -1
  83. package/dist/pcm-agents/my-component.entry.esm.js.map +1 -1
  84. package/dist/pcm-agents/p-55417392.entry.js +2 -0
  85. package/dist/pcm-agents/p-55417392.entry.js.map +1 -0
  86. package/dist/pcm-agents/p-a698b59f.entry.js +2 -0
  87. package/dist/pcm-agents/p-a698b59f.entry.js.map +1 -0
  88. package/dist/pcm-agents/p-f3ca99b4.entry.js +2 -0
  89. package/dist/pcm-agents/p-f3ca99b4.entry.js.map +1 -0
  90. package/dist/pcm-agents/p-nVjZGfA8.js +2 -0
  91. package/dist/pcm-agents/p-nVjZGfA8.js.map +1 -0
  92. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  93. package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.esm.js.map +1 -0
  94. package/dist/pcm-agents/pcm-chat-modal.entry.esm.js.map +1 -1
  95. package/dist/types/components/pcm-app-chat-modal/pcm-app-chat-modal.d.ts +13 -8
  96. package/dist/types/components/pcm-chat-message/pcm-chat-message.d.ts +5 -0
  97. package/dist/types/components/pcm-chat-modal/pcm-chat-modal.d.ts +8 -8
  98. package/dist/types/components/pcm-hr-chat-modal/pcm-hr-chat-modal.d.ts +6 -12
  99. package/dist/types/components/pcm-jlpx-modal/pcm-jlpx-modal.d.ts +113 -0
  100. package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +19 -20
  101. package/dist/types/components/pcm-video-chat-modal/pcm-video-chat-modal.d.ts +4 -4
  102. package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +117 -0
  103. package/dist/types/components.d.ts +429 -80
  104. package/dist/types/interfaces/chat.d.ts +0 -4
  105. package/dist/types/utils/utils.d.ts +29 -83
  106. package/package.json +61 -60
  107. package/readme.md +307 -307
  108. package/dist/cjs/index-DfIUl99H.js +0 -11413
  109. package/dist/cjs/index-DfIUl99H.js.map +0 -1
  110. package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-mnms-modal.entry.cjs.js.map +0 -1
  111. package/dist/cjs/pcm-app-chat-modal_3.cjs.entry.js +0 -3734
  112. package/dist/cjs/pcm-app-chat-modal_3.cjs.entry.js.map +0 -1
  113. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +0 -1078
  114. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js.map +0 -1
  115. package/dist/cjs/pcm-hr-chat-modal.entry.cjs.js.map +0 -1
  116. package/dist/cjs/pcm-video-chat-modal.cjs.entry.js +0 -927
  117. package/dist/cjs/pcm-video-chat-modal.cjs.entry.js.map +0 -1
  118. package/dist/cjs/pcm-video-chat-modal.entry.cjs.js.map +0 -1
  119. package/dist/components/p-C4l_DOnx.js.map +0 -1
  120. package/dist/components/p-CgDy4pJp.js +0 -1244
  121. package/dist/components/p-CgDy4pJp.js.map +0 -1
  122. package/dist/components/p-D0s1Q-3O.js.map +0 -1
  123. package/dist/esm/index-B2EtEi7v.js +0 -11409
  124. package/dist/esm/index-B2EtEi7v.js.map +0 -1
  125. package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-mnms-modal.entry.js.map +0 -1
  126. package/dist/esm/pcm-app-chat-modal_3.entry.js +0 -3730
  127. package/dist/esm/pcm-app-chat-modal_3.entry.js.map +0 -1
  128. package/dist/esm/pcm-hr-chat-modal.entry.js +0 -1076
  129. package/dist/esm/pcm-hr-chat-modal.entry.js.map +0 -1
  130. package/dist/esm/pcm-video-chat-modal.entry.js +0 -925
  131. package/dist/esm/pcm-video-chat-modal.entry.js.map +0 -1
  132. package/dist/pcm-agents/p-0ddd5c47.entry.js +0 -2
  133. package/dist/pcm-agents/p-0ddd5c47.entry.js.map +0 -1
  134. package/dist/pcm-agents/p-5f624943.entry.js +0 -2
  135. package/dist/pcm-agents/p-5f624943.entry.js.map +0 -1
  136. package/dist/pcm-agents/p-6c07f155.entry.js +0 -2
  137. package/dist/pcm-agents/p-6c07f155.entry.js.map +0 -1
  138. package/dist/pcm-agents/p-9a1fb6ca.entry.js +0 -2
  139. package/dist/pcm-agents/p-9a1fb6ca.entry.js.map +0 -1
  140. package/dist/pcm-agents/p-B2EtEi7v.js +0 -146
  141. package/dist/pcm-agents/p-B2EtEi7v.js.map +0 -1
  142. package/dist/pcm-agents/p-e21bc169.entry.js +0 -2
  143. package/dist/pcm-agents/p-e21bc169.entry.js.map +0 -1
  144. package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-mnms-modal.entry.esm.js.map +0 -1
  145. package/dist/pcm-agents/pcm-hr-chat-modal.entry.esm.js.map +0 -1
  146. package/dist/pcm-agents/pcm-video-chat-modal.entry.esm.js.map +0 -1
@@ -6,7 +6,11 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { ChatMessage } from "./interfaces/chat";
9
+ import { FileUploadResponse } from "./utils/utils";
10
+ import { CareerPlanType } from "./components/pcm-zygh-modal/pcm-zygh-modal";
9
11
  export { ChatMessage } from "./interfaces/chat";
12
+ export { FileUploadResponse } from "./utils/utils";
13
+ export { CareerPlanType } from "./components/pcm-zygh-modal/pcm-zygh-modal";
10
14
  export namespace Components {
11
15
  interface MyComponent {
12
16
  /**
@@ -24,11 +28,11 @@ export namespace Components {
24
28
  }
25
29
  interface PcmAppChatModal {
26
30
  /**
27
- * API鉴权密钥
31
+ * 机器人ID
28
32
  */
29
- "apiKey": string;
33
+ "botId"?: string;
30
34
  /**
31
- * 会话ID
35
+ * 会话ID,传入继续对话,否则创建新会话
32
36
  */
33
37
  "conversationId"?: string;
34
38
  /**
@@ -47,12 +51,16 @@ export namespace Components {
47
51
  * 是否显示题干内容 1: 显示题干内容 0: 不显示题干内容
48
52
  */
49
53
  "displayContentStatus": string;
54
+ /**
55
+ * 是否启用语音播报功能 true: 启用语音合成 false: 禁用语音合成
56
+ */
57
+ "enableTTS": boolean;
50
58
  /**
51
59
  * 是否自动播放语音问题
52
60
  */
53
61
  "enableVoice": boolean;
54
62
  /**
55
- * 是否以全屏模式打开
63
+ * 是否以全屏模式打开,移动端建议设置为true
56
64
  */
57
65
  "fullscreen": boolean;
58
66
  /**
@@ -84,13 +92,13 @@ export namespace Components {
84
92
  */
85
93
  "modalTitle": string;
86
94
  /**
87
- * 控制对话轮数
95
+ * API鉴权密钥
88
96
  */
89
- "totalQuestions": number;
97
+ "token": string;
90
98
  /**
91
- * 用户ID
99
+ * 控制对话轮数
92
100
  */
93
- "userId": string;
101
+ "totalQuestions": number;
94
102
  /**
95
103
  * 聊天框的页面层级
96
104
  */
@@ -103,12 +111,16 @@ export namespace Components {
103
111
  "message": ChatMessage;
104
112
  }
105
113
  interface PcmChatModal {
114
+ /**
115
+ * API鉴权密钥
116
+ */
117
+ "apiKey": string;
106
118
  /**
107
119
  * 机器人ID
108
120
  */
109
121
  "botId": string;
110
122
  /**
111
- * 会话ID
123
+ * 会话ID,传入继续对话,否则创建新会话
112
124
  */
113
125
  "conversationId"?: string;
114
126
  /**
@@ -116,7 +128,7 @@ export namespace Components {
116
128
  */
117
129
  "defaultQuery": string;
118
130
  /**
119
- * 是否以全屏模式打开
131
+ * 是否以全屏模式打开,移动端建议设置为true
120
132
  */
121
133
  "fullscreen": boolean;
122
134
  /**
@@ -146,11 +158,7 @@ export namespace Components {
146
158
  }
147
159
  interface PcmHrChatModal {
148
160
  /**
149
- * API鉴权密钥
150
- */
151
- "apiKey": string;
152
- /**
153
- * 会话ID
161
+ * 会话ID,传入继续对话,否则创建新会话
154
162
  */
155
163
  "conversationId"?: string;
156
164
  /**
@@ -162,15 +170,15 @@ export namespace Components {
162
170
  */
163
171
  "defaultQuery": string;
164
172
  /**
165
- * 是否显示题干内容 1: 显示题干内容 0: 不显示题干内容
173
+ * 是否显示题干内容
166
174
  */
167
- "displayContentStatus": string;
175
+ "displayContentStatus": boolean;
168
176
  /**
169
177
  * 是否播放语音问题
170
178
  */
171
179
  "enableVoice": boolean;
172
180
  /**
173
- * 是否以全屏模式打开
181
+ * 是否以全屏模式打开,移动端建议设置为true
174
182
  */
175
183
  "fullscreen": boolean;
176
184
  /**
@@ -205,6 +213,10 @@ export namespace Components {
205
213
  * 接收报告的邮箱地址
206
214
  */
207
215
  "toEmail": string;
216
+ /**
217
+ * API鉴权密钥
218
+ */
219
+ "token": string;
208
220
  /**
209
221
  * 总题目数量
210
222
  */
@@ -218,17 +230,59 @@ export namespace Components {
218
230
  */
219
231
  "zIndex"?: number;
220
232
  }
221
- interface PcmMnmsModal {
233
+ interface PcmJlpxModal {
234
+ /**
235
+ * 会话ID,传入继续对话,否则创建新会话
236
+ */
237
+ "conversationId"?: string;
238
+ /**
239
+ * 自定义输入参数,传入job_info时,会隐藏JD输入区域
240
+ */
241
+ "customInputs": { [key: string]: any };
242
+ /**
243
+ * 默认查询文本
244
+ */
245
+ "defaultQuery": string;
246
+ /**
247
+ * 是否以全屏模式打开,移动端建议设置为true
248
+ */
249
+ "fullscreen": boolean;
250
+ /**
251
+ * 应用图标URL
252
+ */
253
+ "icon"?: string;
254
+ /**
255
+ * 是否展示右上角的关闭按钮
256
+ */
257
+ "isNeedClose": boolean;
258
+ /**
259
+ * 是否显示聊天模态框
260
+ */
261
+ "isOpen": boolean;
262
+ /**
263
+ * 是否展示顶部标题栏
264
+ */
265
+ "isShowHeader": boolean;
266
+ /**
267
+ * 模态框标题
268
+ */
269
+ "modalTitle": string;
222
270
  /**
223
271
  * API鉴权密钥
224
272
  */
225
- "apiKey": string;
273
+ "token": string;
226
274
  /**
227
- * 会话ID
275
+ * 聊天框的页面层级
276
+ */
277
+ "zIndex"?: number;
278
+ }
279
+ interface PcmMnmsModal {
280
+ /**
281
+ * 会话ID,传入继续对话,否则创建新会话
228
282
  */
229
283
  "conversationId"?: string;
230
284
  /**
231
- * 自定义输入参数
285
+ * 自定义输入参数,传入job_info时,会隐藏JD输入区域
232
286
  */
233
287
  "customInputs": { [key: string]: any };
234
288
  /**
@@ -236,17 +290,13 @@ export namespace Components {
236
290
  */
237
291
  "defaultQuery": string;
238
292
  /**
239
- * 是否以全屏模式打开
293
+ * 是否以全屏模式打开,移动端建议设置为true
240
294
  */
241
295
  "fullscreen": boolean;
242
296
  /**
243
297
  * 应用图标URL
244
298
  */
245
299
  "icon"?: string;
246
- /**
247
- * 是否为移动端布局
248
- */
249
- "isMobile": boolean;
250
300
  /**
251
301
  * 是否展示右上角的关闭按钮
252
302
  */
@@ -263,6 +313,10 @@ export namespace Components {
263
313
  * 模态框标题
264
314
  */
265
315
  "modalTitle": string;
316
+ /**
317
+ * API鉴权密钥
318
+ */
319
+ "token": string;
266
320
  /**
267
321
  * 聊天框的页面层级
268
322
  */
@@ -270,11 +324,7 @@ export namespace Components {
270
324
  }
271
325
  interface PcmVideoChatModal {
272
326
  /**
273
- * API鉴权密钥
274
- */
275
- "apiKey": string;
276
- /**
277
- * 会话ID
327
+ * 会话ID,传入继续对话,否则创建新会话
278
328
  */
279
329
  "conversationId"?: string;
280
330
  /**
@@ -282,7 +332,7 @@ export namespace Components {
282
332
  */
283
333
  "countdownWarningTime": number;
284
334
  /**
285
- * 默认查询文本
335
+ * 首次对话提问文本
286
336
  */
287
337
  "defaultQuery": string;
288
338
  /**
@@ -294,7 +344,7 @@ export namespace Components {
294
344
  */
295
345
  "enableVoice": boolean;
296
346
  /**
297
- * 是否以全屏模式打开
347
+ * 是否以全屏模式打开,移动端建议设置为true
298
348
  */
299
349
  "fullscreen": boolean;
300
350
  /**
@@ -325,6 +375,10 @@ export namespace Components {
325
375
  * 父组件传入的 简历id
326
376
  */
327
377
  "resumeId"?: string;
378
+ /**
379
+ * API鉴权密钥
380
+ */
381
+ "token": string;
328
382
  /**
329
383
  * 总题目数量
330
384
  */
@@ -334,6 +388,52 @@ export namespace Components {
334
388
  */
335
389
  "zIndex"?: number;
336
390
  }
391
+ interface PcmZyghModal {
392
+ /**
393
+ * 会话ID,传入继续对话,否则创建新会话
394
+ */
395
+ "conversationId"?: string;
396
+ /**
397
+ * 自定义输入参数
398
+ */
399
+ "customInputs": { [key: string]: any };
400
+ /**
401
+ * 默认查询文本
402
+ */
403
+ "defaultQuery": string;
404
+ /**
405
+ * 是否以全屏模式打开,移动端建议设置为true
406
+ */
407
+ "fullscreen": boolean;
408
+ /**
409
+ * 应用图标URL
410
+ */
411
+ "icon"?: string;
412
+ /**
413
+ * 是否展示右上角的关闭按钮
414
+ */
415
+ "isNeedClose": boolean;
416
+ /**
417
+ * 是否显示聊天模态框
418
+ */
419
+ "isOpen": boolean;
420
+ /**
421
+ * 是否展示顶部标题栏
422
+ */
423
+ "isShowHeader": boolean;
424
+ /**
425
+ * 模态框标题
426
+ */
427
+ "modalTitle": string;
428
+ /**
429
+ * API鉴权密钥
430
+ */
431
+ "token": string;
432
+ /**
433
+ * 聊天框的页面层级
434
+ */
435
+ "zIndex"?: number;
436
+ }
337
437
  }
338
438
  export interface PcmAppChatModalCustomEvent<T> extends CustomEvent<T> {
339
439
  detail: T;
@@ -351,6 +451,10 @@ export interface PcmHrChatModalCustomEvent<T> extends CustomEvent<T> {
351
451
  detail: T;
352
452
  target: HTMLPcmHrChatModalElement;
353
453
  }
454
+ export interface PcmJlpxModalCustomEvent<T> extends CustomEvent<T> {
455
+ detail: T;
456
+ target: HTMLPcmJlpxModalElement;
457
+ }
354
458
  export interface PcmMnmsModalCustomEvent<T> extends CustomEvent<T> {
355
459
  detail: T;
356
460
  target: HTMLPcmMnmsModalElement;
@@ -359,6 +463,10 @@ export interface PcmVideoChatModalCustomEvent<T> extends CustomEvent<T> {
359
463
  detail: T;
360
464
  target: HTMLPcmVideoChatModalElement;
361
465
  }
466
+ export interface PcmZyghModalCustomEvent<T> extends CustomEvent<T> {
467
+ detail: T;
468
+ target: HTMLPcmZyghModalElement;
469
+ }
362
470
  declare global {
363
471
  interface HTMLMyComponentElement extends Components.MyComponent, HTMLStencilElement {
364
472
  }
@@ -485,14 +593,44 @@ declare global {
485
593
  prototype: HTMLPcmHrChatModalElement;
486
594
  new (): HTMLPcmHrChatModalElement;
487
595
  };
488
- interface HTMLPcmMnmsModalElementEventMap {
596
+ interface HTMLPcmJlpxModalElementEventMap {
489
597
  "modalClosed": void;
490
- "uploadSuccess": {
491
- cos_key: string;
492
- filename: string;
493
- ext: string;
494
- presigned_url: string;
598
+ "uploadSuccess": FileUploadResponse;
599
+ "streamComplete": {
600
+ conversation_id: string;
601
+ event: string;
602
+ message_id: string;
603
+ id: string;
495
604
  };
605
+ "conversationStart": {
606
+ conversation_id: string;
607
+ event: string;
608
+ message_id: string;
609
+ id: string;
610
+ };
611
+ "interviewComplete": {
612
+ conversation_id: string;
613
+ total_questions: number;
614
+ };
615
+ "apiKeyInvalid": void;
616
+ }
617
+ interface HTMLPcmJlpxModalElement extends Components.PcmJlpxModal, HTMLStencilElement {
618
+ addEventListener<K extends keyof HTMLPcmJlpxModalElementEventMap>(type: K, listener: (this: HTMLPcmJlpxModalElement, ev: PcmJlpxModalCustomEvent<HTMLPcmJlpxModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
619
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
620
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
621
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
622
+ removeEventListener<K extends keyof HTMLPcmJlpxModalElementEventMap>(type: K, listener: (this: HTMLPcmJlpxModalElement, ev: PcmJlpxModalCustomEvent<HTMLPcmJlpxModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
623
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
624
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
625
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
626
+ }
627
+ var HTMLPcmJlpxModalElement: {
628
+ prototype: HTMLPcmJlpxModalElement;
629
+ new (): HTMLPcmJlpxModalElement;
630
+ };
631
+ interface HTMLPcmMnmsModalElementEventMap {
632
+ "modalClosed": void;
633
+ "uploadSuccess": FileUploadResponse;
496
634
  "streamComplete": {
497
635
  conversation_id: string;
498
636
  event: string;
@@ -509,6 +647,7 @@ declare global {
509
647
  conversation_id: string;
510
648
  total_questions: number;
511
649
  };
650
+ "apiKeyInvalid": void;
512
651
  }
513
652
  interface HTMLPcmMnmsModalElement extends Components.PcmMnmsModal, HTMLStencilElement {
514
653
  addEventListener<K extends keyof HTMLPcmMnmsModalElementEventMap>(type: K, listener: (this: HTMLPcmMnmsModalElement, ev: PcmMnmsModalCustomEvent<HTMLPcmMnmsModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -560,14 +699,51 @@ declare global {
560
699
  prototype: HTMLPcmVideoChatModalElement;
561
700
  new (): HTMLPcmVideoChatModalElement;
562
701
  };
702
+ interface HTMLPcmZyghModalElementEventMap {
703
+ "modalClosed": void;
704
+ "uploadSuccess": FileUploadResponse;
705
+ "streamComplete": {
706
+ conversation_id: string;
707
+ event: string;
708
+ message_id: string;
709
+ id: string;
710
+ };
711
+ "conversationStart": {
712
+ conversation_id: string;
713
+ event: string;
714
+ message_id: string;
715
+ id: string;
716
+ };
717
+ "planningComplete": {
718
+ conversation_id: string;
719
+ plan_type: CareerPlanType;
720
+ };
721
+ "apiKeyInvalid": void;
722
+ }
723
+ interface HTMLPcmZyghModalElement extends Components.PcmZyghModal, HTMLStencilElement {
724
+ addEventListener<K extends keyof HTMLPcmZyghModalElementEventMap>(type: K, listener: (this: HTMLPcmZyghModalElement, ev: PcmZyghModalCustomEvent<HTMLPcmZyghModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
725
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
726
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
727
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
728
+ removeEventListener<K extends keyof HTMLPcmZyghModalElementEventMap>(type: K, listener: (this: HTMLPcmZyghModalElement, ev: PcmZyghModalCustomEvent<HTMLPcmZyghModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
729
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
730
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
731
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
732
+ }
733
+ var HTMLPcmZyghModalElement: {
734
+ prototype: HTMLPcmZyghModalElement;
735
+ new (): HTMLPcmZyghModalElement;
736
+ };
563
737
  interface HTMLElementTagNameMap {
564
738
  "my-component": HTMLMyComponentElement;
565
739
  "pcm-app-chat-modal": HTMLPcmAppChatModalElement;
566
740
  "pcm-chat-message": HTMLPcmChatMessageElement;
567
741
  "pcm-chat-modal": HTMLPcmChatModalElement;
568
742
  "pcm-hr-chat-modal": HTMLPcmHrChatModalElement;
743
+ "pcm-jlpx-modal": HTMLPcmJlpxModalElement;
569
744
  "pcm-mnms-modal": HTMLPcmMnmsModalElement;
570
745
  "pcm-video-chat-modal": HTMLPcmVideoChatModalElement;
746
+ "pcm-zygh-modal": HTMLPcmZyghModalElement;
571
747
  }
572
748
  }
573
749
  declare namespace LocalJSX {
@@ -587,11 +763,11 @@ declare namespace LocalJSX {
587
763
  }
588
764
  interface PcmAppChatModal {
589
765
  /**
590
- * API鉴权密钥
766
+ * 机器人ID
591
767
  */
592
- "apiKey"?: string;
768
+ "botId"?: string;
593
769
  /**
594
- * 会话ID
770
+ * 会话ID,传入继续对话,否则创建新会话
595
771
  */
596
772
  "conversationId"?: string;
597
773
  /**
@@ -610,12 +786,16 @@ declare namespace LocalJSX {
610
786
  * 是否显示题干内容 1: 显示题干内容 0: 不显示题干内容
611
787
  */
612
788
  "displayContentStatus"?: string;
789
+ /**
790
+ * 是否启用语音播报功能 true: 启用语音合成 false: 禁用语音合成
791
+ */
792
+ "enableTTS"?: boolean;
613
793
  /**
614
794
  * 是否自动播放语音问题
615
795
  */
616
796
  "enableVoice"?: boolean;
617
797
  /**
618
- * 是否以全屏模式打开
798
+ * 是否以全屏模式打开,移动端建议设置为true
619
799
  */
620
800
  "fullscreen"?: boolean;
621
801
  /**
@@ -691,13 +871,13 @@ declare namespace LocalJSX {
691
871
  id: string;
692
872
  }>) => void;
693
873
  /**
694
- * 控制对话轮数
874
+ * API鉴权密钥
695
875
  */
696
- "totalQuestions"?: number;
876
+ "token"?: string;
697
877
  /**
698
- * 用户ID
878
+ * 控制对话轮数
699
879
  */
700
- "userId"?: string;
880
+ "totalQuestions"?: number;
701
881
  /**
702
882
  * 聊天框的页面层级
703
883
  */
@@ -714,12 +894,16 @@ declare namespace LocalJSX {
714
894
  "onMessageChange"?: (event: PcmChatMessageCustomEvent<Partial<ChatMessage>>) => void;
715
895
  }
716
896
  interface PcmChatModal {
897
+ /**
898
+ * API鉴权密钥
899
+ */
900
+ "apiKey"?: string;
717
901
  /**
718
902
  * 机器人ID
719
903
  */
720
904
  "botId"?: string;
721
905
  /**
722
- * 会话ID
906
+ * 会话ID,传入继续对话,否则创建新会话
723
907
  */
724
908
  "conversationId"?: string;
725
909
  /**
@@ -727,7 +911,7 @@ declare namespace LocalJSX {
727
911
  */
728
912
  "defaultQuery"?: string;
729
913
  /**
730
- * 是否以全屏模式打开
914
+ * 是否以全屏模式打开,移动端建议设置为true
731
915
  */
732
916
  "fullscreen"?: boolean;
733
917
  /**
@@ -771,11 +955,7 @@ declare namespace LocalJSX {
771
955
  }
772
956
  interface PcmHrChatModal {
773
957
  /**
774
- * API鉴权密钥
775
- */
776
- "apiKey"?: string;
777
- /**
778
- * 会话ID
958
+ * 会话ID,传入继续对话,否则创建新会话
779
959
  */
780
960
  "conversationId"?: string;
781
961
  /**
@@ -787,15 +967,15 @@ declare namespace LocalJSX {
787
967
  */
788
968
  "defaultQuery"?: string;
789
969
  /**
790
- * 是否显示题干内容 1: 显示题干内容 0: 不显示题干内容
970
+ * 是否显示题干内容
791
971
  */
792
- "displayContentStatus"?: string;
972
+ "displayContentStatus"?: boolean;
793
973
  /**
794
974
  * 是否播放语音问题
795
975
  */
796
976
  "enableVoice"?: boolean;
797
977
  /**
798
- * 是否以全屏模式打开
978
+ * 是否以全屏模式打开,移动端建议设置为true
799
979
  */
800
980
  "fullscreen"?: boolean;
801
981
  /**
@@ -862,6 +1042,10 @@ declare namespace LocalJSX {
862
1042
  * 接收报告的邮箱地址
863
1043
  */
864
1044
  "toEmail"?: string;
1045
+ /**
1046
+ * API鉴权密钥
1047
+ */
1048
+ "token"?: string;
865
1049
  /**
866
1050
  * 总题目数量
867
1051
  */
@@ -875,17 +1059,96 @@ declare namespace LocalJSX {
875
1059
  */
876
1060
  "zIndex"?: number;
877
1061
  }
878
- interface PcmMnmsModal {
1062
+ interface PcmJlpxModal {
1063
+ /**
1064
+ * 会话ID,传入继续对话,否则创建新会话
1065
+ */
1066
+ "conversationId"?: string;
1067
+ /**
1068
+ * 自定义输入参数,传入job_info时,会隐藏JD输入区域
1069
+ */
1070
+ "customInputs"?: { [key: string]: any };
1071
+ /**
1072
+ * 默认查询文本
1073
+ */
1074
+ "defaultQuery"?: string;
1075
+ /**
1076
+ * 是否以全屏模式打开,移动端建议设置为true
1077
+ */
1078
+ "fullscreen"?: boolean;
1079
+ /**
1080
+ * 应用图标URL
1081
+ */
1082
+ "icon"?: string;
1083
+ /**
1084
+ * 是否展示右上角的关闭按钮
1085
+ */
1086
+ "isNeedClose"?: boolean;
1087
+ /**
1088
+ * 是否显示聊天模态框
1089
+ */
1090
+ "isOpen"?: boolean;
1091
+ /**
1092
+ * 是否展示顶部标题栏
1093
+ */
1094
+ "isShowHeader"?: boolean;
1095
+ /**
1096
+ * 模态框标题
1097
+ */
1098
+ "modalTitle"?: string;
1099
+ /**
1100
+ * API密钥验证失败事件
1101
+ */
1102
+ "onApiKeyInvalid"?: (event: PcmJlpxModalCustomEvent<void>) => void;
1103
+ /**
1104
+ * 新会话开始的回调,只会在一轮对话开始时触发一次
1105
+ */
1106
+ "onConversationStart"?: (event: PcmJlpxModalCustomEvent<{
1107
+ conversation_id: string;
1108
+ event: string;
1109
+ message_id: string;
1110
+ id: string;
1111
+ }>) => void;
1112
+ /**
1113
+ * 当聊天完成时触发
1114
+ */
1115
+ "onInterviewComplete"?: (event: PcmJlpxModalCustomEvent<{
1116
+ conversation_id: string;
1117
+ total_questions: number;
1118
+ }>) => void;
1119
+ /**
1120
+ * 当点击模态框关闭时触发
1121
+ */
1122
+ "onModalClosed"?: (event: PcmJlpxModalCustomEvent<void>) => void;
1123
+ /**
1124
+ * 流式输出完成事件
1125
+ */
1126
+ "onStreamComplete"?: (event: PcmJlpxModalCustomEvent<{
1127
+ conversation_id: string;
1128
+ event: string;
1129
+ message_id: string;
1130
+ id: string;
1131
+ }>) => void;
1132
+ /**
1133
+ * 上传成功事件
1134
+ */
1135
+ "onUploadSuccess"?: (event: PcmJlpxModalCustomEvent<FileUploadResponse>) => void;
879
1136
  /**
880
1137
  * API鉴权密钥
881
1138
  */
882
- "apiKey"?: string;
1139
+ "token"?: string;
883
1140
  /**
884
- * 会话ID
1141
+ * 聊天框的页面层级
1142
+ */
1143
+ "zIndex"?: number;
1144
+ }
1145
+ interface PcmMnmsModal {
1146
+ /**
1147
+ * 会话ID,传入继续对话,否则创建新会话
885
1148
  */
886
1149
  "conversationId"?: string;
887
1150
  /**
888
- * 自定义输入参数
1151
+ * 自定义输入参数,传入job_info时,会隐藏JD输入区域
889
1152
  */
890
1153
  "customInputs"?: { [key: string]: any };
891
1154
  /**
@@ -893,17 +1156,13 @@ declare namespace LocalJSX {
893
1156
  */
894
1157
  "defaultQuery"?: string;
895
1158
  /**
896
- * 是否以全屏模式打开
1159
+ * 是否以全屏模式打开,移动端建议设置为true
897
1160
  */
898
1161
  "fullscreen"?: boolean;
899
1162
  /**
900
1163
  * 应用图标URL
901
1164
  */
902
1165
  "icon"?: string;
903
- /**
904
- * 是否为移动端布局
905
- */
906
- "isMobile"?: boolean;
907
1166
  /**
908
1167
  * 是否展示右上角的关闭按钮
909
1168
  */
@@ -920,6 +1179,10 @@ declare namespace LocalJSX {
920
1179
  * 模态框标题
921
1180
  */
922
1181
  "modalTitle"?: string;
1182
+ /**
1183
+ * API密钥验证失败事件
1184
+ */
1185
+ "onApiKeyInvalid"?: (event: PcmMnmsModalCustomEvent<void>) => void;
923
1186
  /**
924
1187
  * 新会话开始的回调,只会在一轮对话开始时触发一次
925
1188
  */
@@ -952,12 +1215,11 @@ declare namespace LocalJSX {
952
1215
  /**
953
1216
  * 上传成功事件
954
1217
  */
955
- "onUploadSuccess"?: (event: PcmMnmsModalCustomEvent<{
956
- cos_key: string;
957
- filename: string;
958
- ext: string;
959
- presigned_url: string;
960
- }>) => void;
1218
+ "onUploadSuccess"?: (event: PcmMnmsModalCustomEvent<FileUploadResponse>) => void;
1219
+ /**
1220
+ * API鉴权密钥
1221
+ */
1222
+ "token"?: string;
961
1223
  /**
962
1224
  * 聊天框的页面层级
963
1225
  */
@@ -965,11 +1227,7 @@ declare namespace LocalJSX {
965
1227
  }
966
1228
  interface PcmVideoChatModal {
967
1229
  /**
968
- * API鉴权密钥
969
- */
970
- "apiKey"?: string;
971
- /**
972
- * 会话ID
1230
+ * 会话ID,传入继续对话,否则创建新会话
973
1231
  */
974
1232
  "conversationId"?: string;
975
1233
  /**
@@ -977,7 +1235,7 @@ declare namespace LocalJSX {
977
1235
  */
978
1236
  "countdownWarningTime"?: number;
979
1237
  /**
980
- * 默认查询文本
1238
+ * 首次对话提问文本
981
1239
  */
982
1240
  "defaultQuery"?: string;
983
1241
  /**
@@ -989,7 +1247,7 @@ declare namespace LocalJSX {
989
1247
  */
990
1248
  "enableVoice"?: boolean;
991
1249
  /**
992
- * 是否以全屏模式打开
1250
+ * 是否以全屏模式打开,移动端建议设置为true
993
1251
  */
994
1252
  "fullscreen"?: boolean;
995
1253
  /**
@@ -1052,6 +1310,10 @@ declare namespace LocalJSX {
1052
1310
  * 父组件传入的 简历id
1053
1311
  */
1054
1312
  "resumeId"?: string;
1313
+ /**
1314
+ * API鉴权密钥
1315
+ */
1316
+ "token"?: string;
1055
1317
  /**
1056
1318
  * 总题目数量
1057
1319
  */
@@ -1061,14 +1323,99 @@ declare namespace LocalJSX {
1061
1323
  */
1062
1324
  "zIndex"?: number;
1063
1325
  }
1326
+ interface PcmZyghModal {
1327
+ /**
1328
+ * 会话ID,传入继续对话,否则创建新会话
1329
+ */
1330
+ "conversationId"?: string;
1331
+ /**
1332
+ * 自定义输入参数
1333
+ */
1334
+ "customInputs"?: { [key: string]: any };
1335
+ /**
1336
+ * 默认查询文本
1337
+ */
1338
+ "defaultQuery"?: string;
1339
+ /**
1340
+ * 是否以全屏模式打开,移动端建议设置为true
1341
+ */
1342
+ "fullscreen"?: boolean;
1343
+ /**
1344
+ * 应用图标URL
1345
+ */
1346
+ "icon"?: string;
1347
+ /**
1348
+ * 是否展示右上角的关闭按钮
1349
+ */
1350
+ "isNeedClose"?: boolean;
1351
+ /**
1352
+ * 是否显示聊天模态框
1353
+ */
1354
+ "isOpen"?: boolean;
1355
+ /**
1356
+ * 是否展示顶部标题栏
1357
+ */
1358
+ "isShowHeader"?: boolean;
1359
+ /**
1360
+ * 模态框标题
1361
+ */
1362
+ "modalTitle"?: string;
1363
+ /**
1364
+ * API密钥验证失败事件
1365
+ */
1366
+ "onApiKeyInvalid"?: (event: PcmZyghModalCustomEvent<void>) => void;
1367
+ /**
1368
+ * 新会话开始的回调,只会在一轮对话开始时触发一次
1369
+ */
1370
+ "onConversationStart"?: (event: PcmZyghModalCustomEvent<{
1371
+ conversation_id: string;
1372
+ event: string;
1373
+ message_id: string;
1374
+ id: string;
1375
+ }>) => void;
1376
+ /**
1377
+ * 当点击模态框关闭时触发
1378
+ */
1379
+ "onModalClosed"?: (event: PcmZyghModalCustomEvent<void>) => void;
1380
+ /**
1381
+ * 当聊天完成时触发
1382
+ */
1383
+ "onPlanningComplete"?: (event: PcmZyghModalCustomEvent<{
1384
+ conversation_id: string;
1385
+ plan_type: CareerPlanType;
1386
+ }>) => void;
1387
+ /**
1388
+ * 流式输出完成事件
1389
+ */
1390
+ "onStreamComplete"?: (event: PcmZyghModalCustomEvent<{
1391
+ conversation_id: string;
1392
+ event: string;
1393
+ message_id: string;
1394
+ id: string;
1395
+ }>) => void;
1396
+ /**
1397
+ * 上传成功事件
1398
+ */
1399
+ "onUploadSuccess"?: (event: PcmZyghModalCustomEvent<FileUploadResponse>) => void;
1400
+ /**
1401
+ * API鉴权密钥
1402
+ */
1403
+ "token"?: string;
1404
+ /**
1405
+ * 聊天框的页面层级
1406
+ */
1407
+ "zIndex"?: number;
1408
+ }
1064
1409
  interface IntrinsicElements {
1065
1410
  "my-component": MyComponent;
1066
1411
  "pcm-app-chat-modal": PcmAppChatModal;
1067
1412
  "pcm-chat-message": PcmChatMessage;
1068
1413
  "pcm-chat-modal": PcmChatModal;
1069
1414
  "pcm-hr-chat-modal": PcmHrChatModal;
1415
+ "pcm-jlpx-modal": PcmJlpxModal;
1070
1416
  "pcm-mnms-modal": PcmMnmsModal;
1071
1417
  "pcm-video-chat-modal": PcmVideoChatModal;
1418
+ "pcm-zygh-modal": PcmZyghModal;
1072
1419
  }
1073
1420
  }
1074
1421
  export { LocalJSX as JSX };
@@ -1080,8 +1427,10 @@ declare module "@stencil/core" {
1080
1427
  "pcm-chat-message": LocalJSX.PcmChatMessage & JSXBase.HTMLAttributes<HTMLPcmChatMessageElement>;
1081
1428
  "pcm-chat-modal": LocalJSX.PcmChatModal & JSXBase.HTMLAttributes<HTMLPcmChatModalElement>;
1082
1429
  "pcm-hr-chat-modal": LocalJSX.PcmHrChatModal & JSXBase.HTMLAttributes<HTMLPcmHrChatModalElement>;
1430
+ "pcm-jlpx-modal": LocalJSX.PcmJlpxModal & JSXBase.HTMLAttributes<HTMLPcmJlpxModalElement>;
1083
1431
  "pcm-mnms-modal": LocalJSX.PcmMnmsModal & JSXBase.HTMLAttributes<HTMLPcmMnmsModalElement>;
1084
1432
  "pcm-video-chat-modal": LocalJSX.PcmVideoChatModal & JSXBase.HTMLAttributes<HTMLPcmVideoChatModalElement>;
1433
+ "pcm-zygh-modal": LocalJSX.PcmZyghModal & JSXBase.HTMLAttributes<HTMLPcmZyghModalElement>;
1085
1434
  }
1086
1435
  }
1087
1436
  }