@huaweicloud/huaweicloud-sdk-metastudio 3.1.95 → 3.1.96

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 (169) hide show
  1. package/package.json +2 -2
  2. package/v1/MetaStudioClient.d.ts +297 -27
  3. package/v1/MetaStudioClient.d.ts.map +1 -1
  4. package/v1/MetaStudioClient.js +768 -84
  5. package/v1/MetaStudioClient.js.map +1 -1
  6. package/v1/model/CreateAgencyWithRoleTypeRequest.d.ts +16 -0
  7. package/v1/model/CreateAgencyWithRoleTypeRequest.d.ts.map +1 -0
  8. package/v1/model/CreateAgencyWithRoleTypeRequest.js +29 -0
  9. package/v1/model/CreateAgencyWithRoleTypeRequest.js.map +1 -0
  10. package/v1/model/CreateAgencyWithRoleTypeResponse.d.ts +13 -0
  11. package/v1/model/CreateAgencyWithRoleTypeResponse.d.ts.map +1 -0
  12. package/v1/model/CreateAgencyWithRoleTypeResponse.js +31 -0
  13. package/v1/model/CreateAgencyWithRoleTypeResponse.js.map +1 -0
  14. package/v1/model/CreateHotWordsReq.d.ts +18 -0
  15. package/v1/model/CreateHotWordsReq.d.ts.map +1 -0
  16. package/v1/model/CreateHotWordsReq.js +42 -0
  17. package/v1/model/CreateHotWordsReq.js.map +1 -0
  18. package/v1/model/CreateHotWordsRequest.d.ts +23 -0
  19. package/v1/model/CreateHotWordsRequest.d.ts.map +1 -0
  20. package/v1/model/CreateHotWordsRequest.js +53 -0
  21. package/v1/model/CreateHotWordsRequest.js.map +1 -0
  22. package/v1/model/CreateHotWordsResponse.d.ts +43 -0
  23. package/v1/model/CreateHotWordsResponse.d.ts.map +1 -0
  24. package/v1/model/CreateHotWordsResponse.js +99 -0
  25. package/v1/model/CreateHotWordsResponse.js.map +1 -0
  26. package/v1/model/CreateRobotReq.d.ts +4 -0
  27. package/v1/model/CreateRobotReq.d.ts.map +1 -1
  28. package/v1/model/CreateRobotReq.js +10 -0
  29. package/v1/model/CreateRobotReq.js.map +1 -1
  30. package/v1/model/CreateSisHotWords.d.ts +17 -0
  31. package/v1/model/CreateSisHotWords.d.ts.map +1 -0
  32. package/v1/model/CreateSisHotWords.js +41 -0
  33. package/v1/model/CreateSisHotWords.js.map +1 -0
  34. package/v1/model/DeleteAgencyWithRoleTypeRequest.d.ts +16 -0
  35. package/v1/model/DeleteAgencyWithRoleTypeRequest.d.ts.map +1 -0
  36. package/v1/model/DeleteAgencyWithRoleTypeRequest.js +29 -0
  37. package/v1/model/DeleteAgencyWithRoleTypeRequest.js.map +1 -0
  38. package/v1/model/DeleteAgencyWithRoleTypeResponse.d.ts +9 -0
  39. package/v1/model/DeleteAgencyWithRoleTypeResponse.d.ts.map +1 -0
  40. package/v1/model/DeleteAgencyWithRoleTypeResponse.js +21 -0
  41. package/v1/model/DeleteAgencyWithRoleTypeResponse.js.map +1 -0
  42. package/v1/model/DeleteHotWordsRequest.d.ts +24 -0
  43. package/v1/model/DeleteHotWordsRequest.d.ts.map +1 -0
  44. package/v1/model/DeleteHotWordsRequest.js +60 -0
  45. package/v1/model/DeleteHotWordsRequest.js.map +1 -0
  46. package/v1/model/DeleteHotWordsResponse.d.ts +9 -0
  47. package/v1/model/DeleteHotWordsResponse.d.ts.map +1 -0
  48. package/v1/model/DeleteHotWordsResponse.js +21 -0
  49. package/v1/model/DeleteHotWordsResponse.js.map +1 -0
  50. package/v1/model/HotWordsInfo.d.ts +38 -0
  51. package/v1/model/HotWordsInfo.d.ts.map +1 -0
  52. package/v1/model/HotWordsInfo.js +87 -0
  53. package/v1/model/HotWordsInfo.js.map +1 -0
  54. package/v1/model/HotWordsTypeEnum.d.ts +4 -0
  55. package/v1/model/HotWordsTypeEnum.d.ts.map +1 -0
  56. package/v1/model/HotWordsTypeEnum.js +9 -0
  57. package/v1/model/HotWordsTypeEnum.js.map +1 -0
  58. package/v1/model/HuaweiEiCbs.d.ts +8 -0
  59. package/v1/model/HuaweiEiCbs.d.ts.map +1 -1
  60. package/v1/model/HuaweiEiCbs.js +20 -0
  61. package/v1/model/HuaweiEiCbs.js.map +1 -1
  62. package/v1/model/IflytekAiuiConfig.d.ts +4 -0
  63. package/v1/model/IflytekAiuiConfig.d.ts.map +1 -1
  64. package/v1/model/IflytekAiuiConfig.js +10 -0
  65. package/v1/model/IflytekAiuiConfig.js.map +1 -1
  66. package/v1/model/IflytekSpark.d.ts +4 -0
  67. package/v1/model/IflytekSpark.d.ts.map +1 -1
  68. package/v1/model/IflytekSpark.js +10 -0
  69. package/v1/model/IflytekSpark.js.map +1 -1
  70. package/v1/model/ListDigitalHumanVideoRequest.d.ts +4 -0
  71. package/v1/model/ListDigitalHumanVideoRequest.d.ts.map +1 -1
  72. package/v1/model/ListDigitalHumanVideoRequest.js +10 -0
  73. package/v1/model/ListDigitalHumanVideoRequest.js.map +1 -1
  74. package/v1/model/ListHotWordsRequest.d.ts +40 -0
  75. package/v1/model/ListHotWordsRequest.d.ts.map +1 -0
  76. package/v1/model/ListHotWordsRequest.js +85 -0
  77. package/v1/model/ListHotWordsRequest.js.map +1 -0
  78. package/v1/model/ListHotWordsResponse.d.ts +18 -0
  79. package/v1/model/ListHotWordsResponse.d.ts.map +1 -0
  80. package/v1/model/ListHotWordsResponse.js +37 -0
  81. package/v1/model/ListHotWordsResponse.js.map +1 -0
  82. package/v1/model/MobvoiConfig.d.ts +8 -0
  83. package/v1/model/MobvoiConfig.d.ts.map +1 -1
  84. package/v1/model/MobvoiConfig.js +20 -0
  85. package/v1/model/MobvoiConfig.js.map +1 -1
  86. package/v1/model/RobotInfo.d.ts +16 -0
  87. package/v1/model/RobotInfo.d.ts.map +1 -1
  88. package/v1/model/RobotInfo.js +40 -0
  89. package/v1/model/RobotInfo.js.map +1 -1
  90. package/v1/model/ShowAgencyRequest.d.ts +16 -0
  91. package/v1/model/ShowAgencyRequest.d.ts.map +1 -0
  92. package/v1/model/ShowAgencyRequest.js +28 -0
  93. package/v1/model/ShowAgencyRequest.js.map +1 -0
  94. package/v1/model/ShowAgencyResponse.d.ts +13 -0
  95. package/v1/model/ShowAgencyResponse.d.ts.map +1 -0
  96. package/v1/model/ShowAgencyResponse.js +31 -0
  97. package/v1/model/ShowAgencyResponse.js.map +1 -0
  98. package/v1/model/ShowHotWordsRequest.d.ts +24 -0
  99. package/v1/model/ShowHotWordsRequest.d.ts.map +1 -0
  100. package/v1/model/ShowHotWordsRequest.js +60 -0
  101. package/v1/model/ShowHotWordsRequest.js.map +1 -0
  102. package/v1/model/ShowHotWordsResponse.d.ts +43 -0
  103. package/v1/model/ShowHotWordsResponse.d.ts.map +1 -0
  104. package/v1/model/ShowHotWordsResponse.js +99 -0
  105. package/v1/model/ShowHotWordsResponse.js.map +1 -0
  106. package/v1/model/ShowHotWordsSwitchRequest.d.ts +24 -0
  107. package/v1/model/ShowHotWordsSwitchRequest.d.ts.map +1 -0
  108. package/v1/model/ShowHotWordsSwitchRequest.js +60 -0
  109. package/v1/model/ShowHotWordsSwitchRequest.js.map +1 -0
  110. package/v1/model/ShowHotWordsSwitchResponse.d.ts +13 -0
  111. package/v1/model/ShowHotWordsSwitchResponse.d.ts.map +1 -0
  112. package/v1/model/ShowHotWordsSwitchResponse.js +31 -0
  113. package/v1/model/ShowHotWordsSwitchResponse.js.map +1 -0
  114. package/v1/model/ShowRobotResponse.d.ts +16 -0
  115. package/v1/model/ShowRobotResponse.d.ts.map +1 -1
  116. package/v1/model/ShowRobotResponse.js +40 -0
  117. package/v1/model/ShowRobotResponse.js.map +1 -1
  118. package/v1/model/ThirdPartyModelConfig.d.ts +8 -0
  119. package/v1/model/ThirdPartyModelConfig.d.ts.map +1 -1
  120. package/v1/model/ThirdPartyModelConfig.js +20 -0
  121. package/v1/model/ThirdPartyModelConfig.js.map +1 -1
  122. package/v1/model/UpdateHotWordsReq.d.ts +14 -0
  123. package/v1/model/UpdateHotWordsReq.d.ts.map +1 -0
  124. package/v1/model/UpdateHotWordsReq.js +31 -0
  125. package/v1/model/UpdateHotWordsReq.js.map +1 -0
  126. package/v1/model/UpdateHotWordsRequest.d.ts +27 -0
  127. package/v1/model/UpdateHotWordsRequest.d.ts.map +1 -0
  128. package/v1/model/UpdateHotWordsRequest.js +64 -0
  129. package/v1/model/UpdateHotWordsRequest.js.map +1 -0
  130. package/v1/model/UpdateHotWordsResponse.d.ts +43 -0
  131. package/v1/model/UpdateHotWordsResponse.d.ts.map +1 -0
  132. package/v1/model/UpdateHotWordsResponse.js +99 -0
  133. package/v1/model/UpdateHotWordsResponse.js.map +1 -0
  134. package/v1/model/UpdateHotWordsSwitchReq.d.ts +12 -0
  135. package/v1/model/UpdateHotWordsSwitchReq.d.ts.map +1 -0
  136. package/v1/model/UpdateHotWordsSwitchReq.js +31 -0
  137. package/v1/model/UpdateHotWordsSwitchReq.js.map +1 -0
  138. package/v1/model/UpdateHotWordsSwitchRequest.d.ts +23 -0
  139. package/v1/model/UpdateHotWordsSwitchRequest.d.ts.map +1 -0
  140. package/v1/model/UpdateHotWordsSwitchRequest.js +53 -0
  141. package/v1/model/UpdateHotWordsSwitchRequest.js.map +1 -0
  142. package/v1/model/UpdateHotWordsSwitchResponse.d.ts +9 -0
  143. package/v1/model/UpdateHotWordsSwitchResponse.d.ts.map +1 -0
  144. package/v1/model/UpdateHotWordsSwitchResponse.js +21 -0
  145. package/v1/model/UpdateHotWordsSwitchResponse.js.map +1 -0
  146. package/v1/model/UpdateRobotReq.d.ts +4 -0
  147. package/v1/model/UpdateRobotReq.d.ts.map +1 -1
  148. package/v1/model/UpdateRobotReq.js +10 -0
  149. package/v1/model/UpdateRobotReq.js.map +1 -1
  150. package/v1/model/UpdateSisHotWords.d.ts +17 -0
  151. package/v1/model/UpdateSisHotWords.d.ts.map +1 -0
  152. package/v1/model/UpdateSisHotWords.js +37 -0
  153. package/v1/model/UpdateSisHotWords.js.map +1 -0
  154. package/v1/public-api.d.ts +27 -3
  155. package/v1/public-api.d.ts.map +1 -1
  156. package/v1/public-api.js +27 -3
  157. package/v1/public-api.js.map +1 -1
  158. package/v1/model/CheckTextLanguageRequest.d.ts +0 -7
  159. package/v1/model/CheckTextLanguageRequest.d.ts.map +0 -1
  160. package/v1/model/CheckTextLanguageRequest.js +0 -13
  161. package/v1/model/CheckTextLanguageRequest.js.map +0 -1
  162. package/v1/model/CheckTextLanguageResponse.d.ts +0 -15
  163. package/v1/model/CheckTextLanguageResponse.d.ts.map +0 -1
  164. package/v1/model/CheckTextLanguageResponse.js +0 -24
  165. package/v1/model/CheckTextLanguageResponse.js.map +0 -1
  166. package/v1/model/LanguageCheckInfoReq.d.ts +0 -13
  167. package/v1/model/LanguageCheckInfoReq.d.ts.map +0 -1
  168. package/v1/model/LanguageCheckInfoReq.js +0 -31
  169. package/v1/model/LanguageCheckInfoReq.js.map +0 -1
@@ -8,7 +8,6 @@ const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder
8
8
  const form_data_1 = __importDefault(require("form-data"));
9
9
  const Cancel2DDigitalHumanVideoRequest_1 = require("./model/Cancel2DDigitalHumanVideoRequest");
10
10
  const CancelPhotoDigitalHumanVideoRequest_1 = require("./model/CancelPhotoDigitalHumanVideoRequest");
11
- const CheckTextLanguageRequest_1 = require("./model/CheckTextLanguageRequest");
12
11
  const CommitVoiceTrainingJobRequest_1 = require("./model/CommitVoiceTrainingJobRequest");
13
12
  const ConfirmFileUploadRequest_1 = require("./model/ConfirmFileUploadRequest");
14
13
  const ConfirmTrainingSegmentRequest_1 = require("./model/ConfirmTrainingSegmentRequest");
@@ -16,6 +15,7 @@ const CopyVideoScriptsRequest_1 = require("./model/CopyVideoScriptsRequest");
16
15
  const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHumanVideoRequest");
17
16
  const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
18
17
  const CreateActiveCodeRequest_1 = require("./model/CreateActiveCodeRequest");
18
+ const CreateAgencyWithRoleTypeRequest_1 = require("./model/CreateAgencyWithRoleTypeRequest");
19
19
  const CreateAssetbyReplicationInfoRequest_1 = require("./model/CreateAssetbyReplicationInfoRequest");
20
20
  const CreateBatchKnowledgeQuestionRequest_1 = require("./model/CreateBatchKnowledgeQuestionRequest");
21
21
  const CreateDialogUrlRequest_1 = require("./model/CreateDialogUrlRequest");
@@ -24,6 +24,7 @@ const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHu
24
24
  const CreateFacialAnimationsRequest_1 = require("./model/CreateFacialAnimationsRequest");
25
25
  const CreateFileRequest_1 = require("./model/CreateFileRequest");
26
26
  const CreateHotQuestionRequest_1 = require("./model/CreateHotQuestionRequest");
27
+ const CreateHotWordsRequest_1 = require("./model/CreateHotWordsRequest");
27
28
  const CreateIntentAndQuestionRequest_1 = require("./model/CreateIntentAndQuestionRequest");
28
29
  const CreateInteractionRuleGroupRequest_1 = require("./model/CreateInteractionRuleGroupRequest");
29
30
  const CreateKnowledgeIntentRequest_1 = require("./model/CreateKnowledgeIntentRequest");
@@ -48,10 +49,12 @@ const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest")
48
49
  const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest");
49
50
  const Delete2dModelTrainingJobRequest_1 = require("./model/Delete2dModelTrainingJobRequest");
50
51
  const DeleteActiveCodeRequest_1 = require("./model/DeleteActiveCodeRequest");
52
+ const DeleteAgencyWithRoleTypeRequest_1 = require("./model/DeleteAgencyWithRoleTypeRequest");
51
53
  const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
52
54
  const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
53
55
  const DeleteFileRequest_1 = require("./model/DeleteFileRequest");
54
56
  const DeleteHotQuestionRequest_1 = require("./model/DeleteHotQuestionRequest");
57
+ const DeleteHotWordsRequest_1 = require("./model/DeleteHotWordsRequest");
55
58
  const DeleteInteractionRuleGroupRequest_1 = require("./model/DeleteInteractionRuleGroupRequest");
56
59
  const DeleteKnowledgeIntentRequest_1 = require("./model/DeleteKnowledgeIntentRequest");
57
60
  const DeleteKnowledgeQuestionRequest_1 = require("./model/DeleteKnowledgeQuestionRequest");
@@ -74,6 +77,7 @@ const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanB
74
77
  const ListDigitalHumanVideoRequest_1 = require("./model/ListDigitalHumanVideoRequest");
75
78
  const ListFacialAnimationsDataRequest_1 = require("./model/ListFacialAnimationsDataRequest");
76
79
  const ListHotQuestionRequest_1 = require("./model/ListHotQuestionRequest");
80
+ const ListHotWordsRequest_1 = require("./model/ListHotWordsRequest");
77
81
  const ListInteractionRuleGroupsRequest_1 = require("./model/ListInteractionRuleGroupsRequest");
78
82
  const ListKnowledgeIntentRequest_1 = require("./model/ListKnowledgeIntentRequest");
79
83
  const ListKnowledgeQuestionRequest_1 = require("./model/ListKnowledgeQuestionRequest");
@@ -97,10 +101,13 @@ const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
97
101
  const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
98
102
  const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
99
103
  const ShowActiveCodeRequest_1 = require("./model/ShowActiveCodeRequest");
104
+ const ShowAgencyRequest_1 = require("./model/ShowAgencyRequest");
100
105
  const ShowAssetReplicationInfoRequest_1 = require("./model/ShowAssetReplicationInfoRequest");
101
106
  const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
102
107
  const ShowDigitalHumanBusinessCardRequest_1 = require("./model/ShowDigitalHumanBusinessCardRequest");
103
108
  const ShowHotQuestionRequest_1 = require("./model/ShowHotQuestionRequest");
109
+ const ShowHotWordsRequest_1 = require("./model/ShowHotWordsRequest");
110
+ const ShowHotWordsSwitchRequest_1 = require("./model/ShowHotWordsSwitchRequest");
104
111
  const ShowJobAuditResultRequest_1 = require("./model/ShowJobAuditResultRequest");
105
112
  const ShowJobUploadingAddressRequest_1 = require("./model/ShowJobUploadingAddressRequest");
106
113
  const ShowKnowledgeIntentRequest_1 = require("./model/ShowKnowledgeIntentRequest");
@@ -132,6 +139,8 @@ const UpdateBatchKnowledgeQuestionRequest_1 = require("./model/UpdateBatchKnowle
132
139
  const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
133
140
  const UpdateDigitalHumanBusinessCardRequest_1 = require("./model/UpdateDigitalHumanBusinessCardRequest");
134
141
  const UpdateHotQuestionRequest_1 = require("./model/UpdateHotQuestionRequest");
142
+ const UpdateHotWordsRequest_1 = require("./model/UpdateHotWordsRequest");
143
+ const UpdateHotWordsSwitchRequest_1 = require("./model/UpdateHotWordsSwitchRequest");
135
144
  const UpdateInteractionRuleGroupRequest_1 = require("./model/UpdateInteractionRuleGroupRequest");
136
145
  const UpdateKnowledgeIntentRequest_1 = require("./model/UpdateKnowledgeIntentRequest");
137
146
  const UpdateKnowledgeQuestionRequest_1 = require("./model/UpdateKnowledgeQuestionRequest");
@@ -275,6 +284,54 @@ class MetaStudioClient {
275
284
  options['responseHeaders'] = ['X-Request-Id'];
276
285
  return this.hcClient.sendRequest(options);
277
286
  }
287
+ /**
288
+ * 该接口用于创建委托。
289
+ *
290
+ * Please refer to HUAWEI cloud API Explorer for details.
291
+ *
292
+ * @summary 创建委托
293
+ * @param {'CBS' | 'SIS'} roleType 委托授权类型 * CBS:对话机器人服务(CBS)访客 * SIS:语音交互服务(SIS)调用
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ createAgencyWithRoleType(createAgencyWithRoleTypeRequest) {
298
+ const options = (0, exports.ParamCreater)().createAgencyWithRoleType(createAgencyWithRoleTypeRequest);
299
+ // @ts-ignore
300
+ options['responseHeaders'] = ['X-Request-Id'];
301
+ return this.hcClient.sendRequest(options);
302
+ }
303
+ /**
304
+ * 该接口用于删除项目下委托。
305
+ *
306
+ * Please refer to HUAWEI cloud API Explorer for details.
307
+ *
308
+ * @summary 删除委托
309
+ * @param {'CBS' | 'SIS'} roleType 委托授权类型 * CBS:对话机器人服务(CBS)访客 * SIS:语音交互服务(SIS)调用
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ deleteAgencyWithRoleType(deleteAgencyWithRoleTypeRequest) {
314
+ const options = (0, exports.ParamCreater)().deleteAgencyWithRoleType(deleteAgencyWithRoleTypeRequest);
315
+ // @ts-ignore
316
+ options['responseHeaders'] = ['X-Request-Id'];
317
+ return this.hcClient.sendRequest(options);
318
+ }
319
+ /**
320
+ * 该接口用于查询项目下委托
321
+ *
322
+ * Please refer to HUAWEI cloud API Explorer for details.
323
+ *
324
+ * @summary 查询委托
325
+ * @param {'CBS' | 'SIS'} [roleType] 委托授权类型 * CBS:对话机器人服务(CBS)访客 * SIS:语音交互服务(SIS)调用
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ showAgency(showAgencyRequest) {
330
+ const options = (0, exports.ParamCreater)().showAgency(showAgencyRequest);
331
+ // @ts-ignore
332
+ options['responseHeaders'] = ['X-Request-Id'];
333
+ return this.hcClient.sendRequest(options);
334
+ }
278
335
  /**
279
336
  * 该接口用于创建对话链接。
280
337
  *
@@ -680,6 +737,7 @@ class MetaStudioClient {
680
737
  * @param {string} [scriptId] 剧本ID。
681
738
  * @param {string} [assetName] 输出视频资产名称。
682
739
  * @param {string} [jobType] 任务类型。 * 2D_DIGITAL_HUMAN_VIDEO: 分身数字人视频制作任务 * PHOTO_DIGITAL_HUMAN_VIDEO: 照片数字人视频制作任务
740
+ * @param {string} [jobId] 任务ID。
683
741
  * @param {*} [options] Override http request option.
684
742
  * @throws {RequiredError}
685
743
  */
@@ -1032,6 +1090,151 @@ class MetaStudioClient {
1032
1090
  options['responseHeaders'] = ['X-Request-Id'];
1033
1091
  return this.hcClient.sendRequest(options);
1034
1092
  }
1093
+ /**
1094
+ * 该接口用于创建热词记录。
1095
+ *
1096
+ * Please refer to HUAWEI cloud API Explorer for details.
1097
+ *
1098
+ * @summary 创建热词记录
1099
+ * @param {CreateHotWordsReq} createHotWordsRequestBody 创建热词请求。
1100
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1101
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1102
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1103
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ createHotWords(createHotWordsRequest) {
1108
+ const options = (0, exports.ParamCreater)().createHotWords(createHotWordsRequest);
1109
+ // @ts-ignore
1110
+ options['responseHeaders'] = ['X-Request-Id'];
1111
+ return this.hcClient.sendRequest(options);
1112
+ }
1113
+ /**
1114
+ * 该接口用于删除热词记录。
1115
+ *
1116
+ * Please refer to HUAWEI cloud API Explorer for details.
1117
+ *
1118
+ * @summary 删除热词记录
1119
+ * @param {string} hotWordsId 热词记录ID。
1120
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1121
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1122
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1123
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ */
1127
+ deleteHotWords(deleteHotWordsRequest) {
1128
+ const options = (0, exports.ParamCreater)().deleteHotWords(deleteHotWordsRequest);
1129
+ // @ts-ignore
1130
+ options['responseHeaders'] = ['X-Request-Id'];
1131
+ return this.hcClient.sendRequest(options);
1132
+ }
1133
+ /**
1134
+ * 该接口用于查询热词记录列表。
1135
+ *
1136
+ * Please refer to HUAWEI cloud API Explorer for details.
1137
+ *
1138
+ * @summary 查询热词记录列表
1139
+ * @param {string} robotId 应用ID。
1140
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1141
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1142
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1143
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1144
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1145
+ * @param {number} [limit] 每页显示的条目数量。
1146
+ * @param {number} [region] sis服务所在区域
1147
+ * @param {'zh_CN' | 'en_US'} [language] 智能交互语言 * zh_CN:简体中文 * en_US:英语
1148
+ * @param {*} [options] Override http request option.
1149
+ * @throws {RequiredError}
1150
+ */
1151
+ listHotWords(listHotWordsRequest) {
1152
+ const options = (0, exports.ParamCreater)().listHotWords(listHotWordsRequest);
1153
+ // @ts-ignore
1154
+ options['responseHeaders'] = ['X-Request-Id'];
1155
+ return this.hcClient.sendRequest(options);
1156
+ }
1157
+ /**
1158
+ * 该接口用于查询热词记录详情。
1159
+ *
1160
+ * Please refer to HUAWEI cloud API Explorer for details.
1161
+ *
1162
+ * @summary 查询配置热词记录详情
1163
+ * @param {string} hotWordsId 热词记录ID。
1164
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1165
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1166
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1167
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ showHotWords(showHotWordsRequest) {
1172
+ const options = (0, exports.ParamCreater)().showHotWords(showHotWordsRequest);
1173
+ // @ts-ignore
1174
+ options['responseHeaders'] = ['X-Request-Id'];
1175
+ return this.hcClient.sendRequest(options);
1176
+ }
1177
+ /**
1178
+ * 该接口用于查询热词功能开关。
1179
+ *
1180
+ * Please refer to HUAWEI cloud API Explorer for details.
1181
+ *
1182
+ * @summary 查询热词功能开关
1183
+ * @param {string} robotId 应用ID。
1184
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1185
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1186
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1187
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1188
+ * @param {*} [options] Override http request option.
1189
+ * @throws {RequiredError}
1190
+ */
1191
+ showHotWordsSwitch(showHotWordsSwitchRequest) {
1192
+ const options = (0, exports.ParamCreater)().showHotWordsSwitch(showHotWordsSwitchRequest);
1193
+ // @ts-ignore
1194
+ options['responseHeaders'] = ['X-Request-Id'];
1195
+ return this.hcClient.sendRequest(options);
1196
+ }
1197
+ /**
1198
+ * 该接口用于修改热词记录。
1199
+ *
1200
+ * Please refer to HUAWEI cloud API Explorer for details.
1201
+ *
1202
+ * @summary 修改热词记录
1203
+ * @param {string} hotWordsId 热词记录ID。
1204
+ * @param {UpdateHotWordsReq} updateHotWordsRequestBody 修改热词记录请求。
1205
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1206
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1207
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1208
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1209
+ * @param {*} [options] Override http request option.
1210
+ * @throws {RequiredError}
1211
+ */
1212
+ updateHotWords(updateHotWordsRequest) {
1213
+ const options = (0, exports.ParamCreater)().updateHotWords(updateHotWordsRequest);
1214
+ // @ts-ignore
1215
+ options['responseHeaders'] = ['X-Request-Id'];
1216
+ return this.hcClient.sendRequest(options);
1217
+ }
1218
+ /**
1219
+ * 该接口用于修改热词功能开关。
1220
+ *
1221
+ * Please refer to HUAWEI cloud API Explorer for details.
1222
+ *
1223
+ * @summary 修改热词功能开关
1224
+ * @param {UpdateHotWordsSwitchReq} updateHotWordsSwitchRequestBody 修改热词功能开关请求。
1225
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1226
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1227
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1228
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1229
+ * @param {*} [options] Override http request option.
1230
+ * @throws {RequiredError}
1231
+ */
1232
+ updateHotWordsSwitch(updateHotWordsSwitchRequest) {
1233
+ const options = (0, exports.ParamCreater)().updateHotWordsSwitch(updateHotWordsSwitchRequest);
1234
+ // @ts-ignore
1235
+ options['responseHeaders'] = ['X-Request-Id'];
1236
+ return this.hcClient.sendRequest(options);
1237
+ }
1035
1238
  /**
1036
1239
  * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。
1037
1240
  *
@@ -1903,22 +2106,6 @@ class MetaStudioClient {
1903
2106
  options['responseHeaders'] = ['X-Request-Id'];
1904
2107
  return this.hcClient.sendRequest(options);
1905
2108
  }
1906
- /**
1907
- * 检测音色与文本的语言一致性,音色与文本不一致会导致报错
1908
- *
1909
- * Please refer to HUAWEI cloud API Explorer for details.
1910
- *
1911
- * @summary 检测音色与文本的语言一致性
1912
- * @param {LanguageCheckInfoReq} checkTextLanguageRequestBody 上传的音色语言信息和文本信息
1913
- * @param {*} [options] Override http request option.
1914
- * @throws {RequiredError}
1915
- */
1916
- checkTextLanguage(checkTextLanguageRequest) {
1917
- const options = (0, exports.ParamCreater)().checkTextLanguage(checkTextLanguageRequest);
1918
- // @ts-ignore
1919
- options['responseHeaders'] = [''];
1920
- return this.hcClient.sendRequest(options);
1921
- }
1922
2109
  /**
1923
2110
  * 该接口用于创建智能直播间互动规则库。
1924
2111
  *
@@ -3368,6 +3555,100 @@ const ParamCreater = function () {
3368
3555
  options.headers = localVarHeaderParameter;
3369
3556
  return options;
3370
3557
  },
3558
+ /**
3559
+ * 该接口用于创建委托。
3560
+ *
3561
+ * Please refer to HUAWEI cloud API Explorer for details.
3562
+ */
3563
+ createAgencyWithRoleType(createAgencyWithRoleTypeRequest) {
3564
+ const options = {
3565
+ method: "POST",
3566
+ url: "/v1/{project_id}/digital-human-chat/agency/{role_type}",
3567
+ contentType: "application/json",
3568
+ queryParams: {},
3569
+ pathParams: {},
3570
+ headers: {}
3571
+ };
3572
+ const localVarHeaderParameter = {};
3573
+ let roleType;
3574
+ if (createAgencyWithRoleTypeRequest !== null && createAgencyWithRoleTypeRequest !== undefined) {
3575
+ if (createAgencyWithRoleTypeRequest instanceof CreateAgencyWithRoleTypeRequest_1.CreateAgencyWithRoleTypeRequest) {
3576
+ roleType = createAgencyWithRoleTypeRequest.roleType;
3577
+ }
3578
+ else {
3579
+ roleType = createAgencyWithRoleTypeRequest['role_type'];
3580
+ }
3581
+ }
3582
+ if (roleType === null || roleType === undefined) {
3583
+ throw new RequiredError('roleType', 'Required parameter roleType was null or undefined when calling createAgencyWithRoleType.');
3584
+ }
3585
+ options.pathParams = { 'role_type': roleType, };
3586
+ options.headers = localVarHeaderParameter;
3587
+ return options;
3588
+ },
3589
+ /**
3590
+ * 该接口用于删除项目下委托。
3591
+ *
3592
+ * Please refer to HUAWEI cloud API Explorer for details.
3593
+ */
3594
+ deleteAgencyWithRoleType(deleteAgencyWithRoleTypeRequest) {
3595
+ const options = {
3596
+ method: "DELETE",
3597
+ url: "/v1/{project_id}/digital-human-chat/agency/{role_type}",
3598
+ contentType: "application/json",
3599
+ queryParams: {},
3600
+ pathParams: {},
3601
+ headers: {}
3602
+ };
3603
+ const localVarHeaderParameter = {};
3604
+ let roleType;
3605
+ if (deleteAgencyWithRoleTypeRequest !== null && deleteAgencyWithRoleTypeRequest !== undefined) {
3606
+ if (deleteAgencyWithRoleTypeRequest instanceof DeleteAgencyWithRoleTypeRequest_1.DeleteAgencyWithRoleTypeRequest) {
3607
+ roleType = deleteAgencyWithRoleTypeRequest.roleType;
3608
+ }
3609
+ else {
3610
+ roleType = deleteAgencyWithRoleTypeRequest['role_type'];
3611
+ }
3612
+ }
3613
+ if (roleType === null || roleType === undefined) {
3614
+ throw new RequiredError('roleType', 'Required parameter roleType was null or undefined when calling deleteAgencyWithRoleType.');
3615
+ }
3616
+ options.pathParams = { 'role_type': roleType, };
3617
+ options.headers = localVarHeaderParameter;
3618
+ return options;
3619
+ },
3620
+ /**
3621
+ * 该接口用于查询项目下委托
3622
+ *
3623
+ * Please refer to HUAWEI cloud API Explorer for details.
3624
+ */
3625
+ showAgency(showAgencyRequest) {
3626
+ const options = {
3627
+ method: "GET",
3628
+ url: "/v1/{project_id}/digital-human-chat/agency",
3629
+ contentType: "application/json",
3630
+ queryParams: {},
3631
+ pathParams: {},
3632
+ headers: {}
3633
+ };
3634
+ const localVarHeaderParameter = {};
3635
+ const localVarQueryParameter = {};
3636
+ let roleType;
3637
+ if (showAgencyRequest !== null && showAgencyRequest !== undefined) {
3638
+ if (showAgencyRequest instanceof ShowAgencyRequest_1.ShowAgencyRequest) {
3639
+ roleType = showAgencyRequest.roleType;
3640
+ }
3641
+ else {
3642
+ roleType = showAgencyRequest['role_type'];
3643
+ }
3644
+ }
3645
+ if (roleType !== null && roleType !== undefined) {
3646
+ localVarQueryParameter['role_type'] = roleType;
3647
+ }
3648
+ options.queryParams = localVarQueryParameter;
3649
+ options.headers = localVarHeaderParameter;
3650
+ return options;
3651
+ },
3371
3652
  /**
3372
3653
  * 该接口用于创建对话链接。
3373
3654
  *
@@ -4545,6 +4826,7 @@ const ParamCreater = function () {
4545
4826
  let scriptId;
4546
4827
  let assetName;
4547
4828
  let jobType;
4829
+ let jobId;
4548
4830
  if (listDigitalHumanVideoRequest !== null && listDigitalHumanVideoRequest !== undefined) {
4549
4831
  if (listDigitalHumanVideoRequest instanceof ListDigitalHumanVideoRequest_1.ListDigitalHumanVideoRequest) {
4550
4832
  authorization = listDigitalHumanVideoRequest.authorization;
@@ -4561,6 +4843,7 @@ const ParamCreater = function () {
4561
4843
  scriptId = listDigitalHumanVideoRequest.scriptId;
4562
4844
  assetName = listDigitalHumanVideoRequest.assetName;
4563
4845
  jobType = listDigitalHumanVideoRequest.jobType;
4846
+ jobId = listDigitalHumanVideoRequest.jobId;
4564
4847
  }
4565
4848
  else {
4566
4849
  authorization = listDigitalHumanVideoRequest['Authorization'];
@@ -4577,6 +4860,7 @@ const ParamCreater = function () {
4577
4860
  scriptId = listDigitalHumanVideoRequest['script_id'];
4578
4861
  assetName = listDigitalHumanVideoRequest['asset_name'];
4579
4862
  jobType = listDigitalHumanVideoRequest['job_type'];
4863
+ jobId = listDigitalHumanVideoRequest['job_id'];
4580
4864
  }
4581
4865
  }
4582
4866
  if (offset !== null && offset !== undefined) {
@@ -4609,6 +4893,9 @@ const ParamCreater = function () {
4609
4893
  if (jobType !== null && jobType !== undefined) {
4610
4894
  localVarQueryParameter['job_type'] = jobType;
4611
4895
  }
4896
+ if (jobId !== null && jobId !== undefined) {
4897
+ localVarQueryParameter['job_id'] = jobId;
4898
+ }
4612
4899
  if (authorization !== undefined && authorization !== null) {
4613
4900
  localVarHeaderParameter['Authorization'] = String(authorization);
4614
4901
  }
@@ -5607,14 +5894,14 @@ const ParamCreater = function () {
5607
5894
  return options;
5608
5895
  },
5609
5896
  /**
5610
- * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。
5897
+ * 该接口用于创建热词记录。
5611
5898
  *
5612
5899
  * Please refer to HUAWEI cloud API Explorer for details.
5613
5900
  */
5614
- createIntentAndQuestion(createIntentAndQuestionRequest) {
5901
+ createHotWords(createHotWordsRequest) {
5615
5902
  const options = {
5616
5903
  method: "POST",
5617
- url: "/v1/{project_id}/digital-human-chat/knowledge/intent-question",
5904
+ url: "/v1/{project_id}/digital-human-chat/hot-words",
5618
5905
  contentType: "application/json",
5619
5906
  queryParams: {},
5620
5907
  pathParams: {},
@@ -5627,20 +5914,20 @@ const ParamCreater = function () {
5627
5914
  let xSdkDate;
5628
5915
  let xProjectId;
5629
5916
  let xAppUserId;
5630
- if (createIntentAndQuestionRequest !== null && createIntentAndQuestionRequest !== undefined) {
5631
- if (createIntentAndQuestionRequest instanceof CreateIntentAndQuestionRequest_1.CreateIntentAndQuestionRequest) {
5632
- body = createIntentAndQuestionRequest.body;
5633
- authorization = createIntentAndQuestionRequest.authorization;
5634
- xSdkDate = createIntentAndQuestionRequest.xSdkDate;
5635
- xProjectId = createIntentAndQuestionRequest.xProjectId;
5636
- xAppUserId = createIntentAndQuestionRequest.xAppUserId;
5917
+ if (createHotWordsRequest !== null && createHotWordsRequest !== undefined) {
5918
+ if (createHotWordsRequest instanceof CreateHotWordsRequest_1.CreateHotWordsRequest) {
5919
+ body = createHotWordsRequest.body;
5920
+ authorization = createHotWordsRequest.authorization;
5921
+ xSdkDate = createHotWordsRequest.xSdkDate;
5922
+ xProjectId = createHotWordsRequest.xProjectId;
5923
+ xAppUserId = createHotWordsRequest.xAppUserId;
5637
5924
  }
5638
5925
  else {
5639
- body = createIntentAndQuestionRequest['body'];
5640
- authorization = createIntentAndQuestionRequest['Authorization'];
5641
- xSdkDate = createIntentAndQuestionRequest['X-Sdk-Date'];
5642
- xProjectId = createIntentAndQuestionRequest['X-Project-Id'];
5643
- xAppUserId = createIntentAndQuestionRequest['X-App-UserId'];
5926
+ body = createHotWordsRequest['body'];
5927
+ authorization = createHotWordsRequest['Authorization'];
5928
+ xSdkDate = createHotWordsRequest['X-Sdk-Date'];
5929
+ xProjectId = createHotWordsRequest['X-Project-Id'];
5930
+ xAppUserId = createHotWordsRequest['X-App-UserId'];
5644
5931
  }
5645
5932
  }
5646
5933
  if (body === null || body === undefined) {
@@ -5664,40 +5951,470 @@ const ParamCreater = function () {
5664
5951
  return options;
5665
5952
  },
5666
5953
  /**
5667
- * 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。
5954
+ * 该接口用于删除热词记录。
5668
5955
  *
5669
5956
  * Please refer to HUAWEI cloud API Explorer for details.
5670
5957
  */
5671
- createKnowledgeIntent(createKnowledgeIntentRequest) {
5958
+ deleteHotWords(deleteHotWordsRequest) {
5672
5959
  const options = {
5673
- method: "POST",
5674
- url: "/v1/{project_id}/digital-human-chat/knowledge/intent",
5960
+ method: "DELETE",
5961
+ url: "/v1/{project_id}/digital-human-chat/hot-words/{hot_words_id}",
5675
5962
  contentType: "application/json",
5676
5963
  queryParams: {},
5677
5964
  pathParams: {},
5678
- headers: {},
5679
- data: {}
5965
+ headers: {}
5680
5966
  };
5681
5967
  const localVarHeaderParameter = {};
5682
- let body;
5968
+ let hotWordsId;
5683
5969
  let authorization;
5684
5970
  let xSdkDate;
5685
5971
  let xProjectId;
5686
5972
  let xAppUserId;
5687
- if (createKnowledgeIntentRequest !== null && createKnowledgeIntentRequest !== undefined) {
5688
- if (createKnowledgeIntentRequest instanceof CreateKnowledgeIntentRequest_1.CreateKnowledgeIntentRequest) {
5689
- body = createKnowledgeIntentRequest.body;
5690
- authorization = createKnowledgeIntentRequest.authorization;
5691
- xSdkDate = createKnowledgeIntentRequest.xSdkDate;
5692
- xProjectId = createKnowledgeIntentRequest.xProjectId;
5693
- xAppUserId = createKnowledgeIntentRequest.xAppUserId;
5973
+ if (deleteHotWordsRequest !== null && deleteHotWordsRequest !== undefined) {
5974
+ if (deleteHotWordsRequest instanceof DeleteHotWordsRequest_1.DeleteHotWordsRequest) {
5975
+ hotWordsId = deleteHotWordsRequest.hotWordsId;
5976
+ authorization = deleteHotWordsRequest.authorization;
5977
+ xSdkDate = deleteHotWordsRequest.xSdkDate;
5978
+ xProjectId = deleteHotWordsRequest.xProjectId;
5979
+ xAppUserId = deleteHotWordsRequest.xAppUserId;
5694
5980
  }
5695
5981
  else {
5696
- body = createKnowledgeIntentRequest['body'];
5697
- authorization = createKnowledgeIntentRequest['Authorization'];
5698
- xSdkDate = createKnowledgeIntentRequest['X-Sdk-Date'];
5699
- xProjectId = createKnowledgeIntentRequest['X-Project-Id'];
5700
- xAppUserId = createKnowledgeIntentRequest['X-App-UserId'];
5982
+ hotWordsId = deleteHotWordsRequest['hot_words_id'];
5983
+ authorization = deleteHotWordsRequest['Authorization'];
5984
+ xSdkDate = deleteHotWordsRequest['X-Sdk-Date'];
5985
+ xProjectId = deleteHotWordsRequest['X-Project-Id'];
5986
+ xAppUserId = deleteHotWordsRequest['X-App-UserId'];
5987
+ }
5988
+ }
5989
+ if (hotWordsId === null || hotWordsId === undefined) {
5990
+ throw new RequiredError('hotWordsId', 'Required parameter hotWordsId was null or undefined when calling deleteHotWords.');
5991
+ }
5992
+ if (authorization !== undefined && authorization !== null) {
5993
+ localVarHeaderParameter['Authorization'] = String(authorization);
5994
+ }
5995
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5996
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5997
+ }
5998
+ if (xProjectId !== undefined && xProjectId !== null) {
5999
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6000
+ }
6001
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6002
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6003
+ }
6004
+ options.pathParams = { 'hot_words_id': hotWordsId, };
6005
+ options.headers = localVarHeaderParameter;
6006
+ return options;
6007
+ },
6008
+ /**
6009
+ * 该接口用于查询热词记录列表。
6010
+ *
6011
+ * Please refer to HUAWEI cloud API Explorer for details.
6012
+ */
6013
+ listHotWords(listHotWordsRequest) {
6014
+ const options = {
6015
+ method: "GET",
6016
+ url: "/v1/{project_id}/digital-human-chat/hot-words",
6017
+ contentType: "application/json",
6018
+ queryParams: {},
6019
+ pathParams: {},
6020
+ headers: {}
6021
+ };
6022
+ const localVarHeaderParameter = {};
6023
+ const localVarQueryParameter = {};
6024
+ let robotId;
6025
+ let authorization;
6026
+ let xSdkDate;
6027
+ let xProjectId;
6028
+ let xAppUserId;
6029
+ let offset;
6030
+ let limit;
6031
+ let region;
6032
+ let language;
6033
+ if (listHotWordsRequest !== null && listHotWordsRequest !== undefined) {
6034
+ if (listHotWordsRequest instanceof ListHotWordsRequest_1.ListHotWordsRequest) {
6035
+ robotId = listHotWordsRequest.robotId;
6036
+ authorization = listHotWordsRequest.authorization;
6037
+ xSdkDate = listHotWordsRequest.xSdkDate;
6038
+ xProjectId = listHotWordsRequest.xProjectId;
6039
+ xAppUserId = listHotWordsRequest.xAppUserId;
6040
+ offset = listHotWordsRequest.offset;
6041
+ limit = listHotWordsRequest.limit;
6042
+ region = listHotWordsRequest.region;
6043
+ language = listHotWordsRequest.language;
6044
+ }
6045
+ else {
6046
+ robotId = listHotWordsRequest['robot_id'];
6047
+ authorization = listHotWordsRequest['Authorization'];
6048
+ xSdkDate = listHotWordsRequest['X-Sdk-Date'];
6049
+ xProjectId = listHotWordsRequest['X-Project-Id'];
6050
+ xAppUserId = listHotWordsRequest['X-App-UserId'];
6051
+ offset = listHotWordsRequest['offset'];
6052
+ limit = listHotWordsRequest['limit'];
6053
+ region = listHotWordsRequest['region'];
6054
+ language = listHotWordsRequest['language'];
6055
+ }
6056
+ }
6057
+ if (robotId === null || robotId === undefined) {
6058
+ throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling listHotWords.');
6059
+ }
6060
+ if (robotId !== null && robotId !== undefined) {
6061
+ localVarQueryParameter['robot_id'] = robotId;
6062
+ }
6063
+ if (offset !== null && offset !== undefined) {
6064
+ localVarQueryParameter['offset'] = offset;
6065
+ }
6066
+ if (limit !== null && limit !== undefined) {
6067
+ localVarQueryParameter['limit'] = limit;
6068
+ }
6069
+ if (region !== null && region !== undefined) {
6070
+ localVarQueryParameter['region'] = region;
6071
+ }
6072
+ if (language !== null && language !== undefined) {
6073
+ localVarQueryParameter['language'] = language;
6074
+ }
6075
+ if (authorization !== undefined && authorization !== null) {
6076
+ localVarHeaderParameter['Authorization'] = String(authorization);
6077
+ }
6078
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6079
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6080
+ }
6081
+ if (xProjectId !== undefined && xProjectId !== null) {
6082
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6083
+ }
6084
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6085
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6086
+ }
6087
+ options.queryParams = localVarQueryParameter;
6088
+ options.headers = localVarHeaderParameter;
6089
+ return options;
6090
+ },
6091
+ /**
6092
+ * 该接口用于查询热词记录详情。
6093
+ *
6094
+ * Please refer to HUAWEI cloud API Explorer for details.
6095
+ */
6096
+ showHotWords(showHotWordsRequest) {
6097
+ const options = {
6098
+ method: "GET",
6099
+ url: "/v1/{project_id}/digital-human-chat/hot-words/{hot_words_id}",
6100
+ contentType: "application/json",
6101
+ queryParams: {},
6102
+ pathParams: {},
6103
+ headers: {}
6104
+ };
6105
+ const localVarHeaderParameter = {};
6106
+ let hotWordsId;
6107
+ let authorization;
6108
+ let xSdkDate;
6109
+ let xProjectId;
6110
+ let xAppUserId;
6111
+ if (showHotWordsRequest !== null && showHotWordsRequest !== undefined) {
6112
+ if (showHotWordsRequest instanceof ShowHotWordsRequest_1.ShowHotWordsRequest) {
6113
+ hotWordsId = showHotWordsRequest.hotWordsId;
6114
+ authorization = showHotWordsRequest.authorization;
6115
+ xSdkDate = showHotWordsRequest.xSdkDate;
6116
+ xProjectId = showHotWordsRequest.xProjectId;
6117
+ xAppUserId = showHotWordsRequest.xAppUserId;
6118
+ }
6119
+ else {
6120
+ hotWordsId = showHotWordsRequest['hot_words_id'];
6121
+ authorization = showHotWordsRequest['Authorization'];
6122
+ xSdkDate = showHotWordsRequest['X-Sdk-Date'];
6123
+ xProjectId = showHotWordsRequest['X-Project-Id'];
6124
+ xAppUserId = showHotWordsRequest['X-App-UserId'];
6125
+ }
6126
+ }
6127
+ if (hotWordsId === null || hotWordsId === undefined) {
6128
+ throw new RequiredError('hotWordsId', 'Required parameter hotWordsId was null or undefined when calling showHotWords.');
6129
+ }
6130
+ if (authorization !== undefined && authorization !== null) {
6131
+ localVarHeaderParameter['Authorization'] = String(authorization);
6132
+ }
6133
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6134
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6135
+ }
6136
+ if (xProjectId !== undefined && xProjectId !== null) {
6137
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6138
+ }
6139
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6140
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6141
+ }
6142
+ options.pathParams = { 'hot_words_id': hotWordsId, };
6143
+ options.headers = localVarHeaderParameter;
6144
+ return options;
6145
+ },
6146
+ /**
6147
+ * 该接口用于查询热词功能开关。
6148
+ *
6149
+ * Please refer to HUAWEI cloud API Explorer for details.
6150
+ */
6151
+ showHotWordsSwitch(showHotWordsSwitchRequest) {
6152
+ const options = {
6153
+ method: "GET",
6154
+ url: "/v1/{project_id}/digital-human-chat/hot-words-switch",
6155
+ contentType: "application/json",
6156
+ queryParams: {},
6157
+ pathParams: {},
6158
+ headers: {}
6159
+ };
6160
+ const localVarHeaderParameter = {};
6161
+ const localVarQueryParameter = {};
6162
+ let robotId;
6163
+ let authorization;
6164
+ let xSdkDate;
6165
+ let xProjectId;
6166
+ let xAppUserId;
6167
+ if (showHotWordsSwitchRequest !== null && showHotWordsSwitchRequest !== undefined) {
6168
+ if (showHotWordsSwitchRequest instanceof ShowHotWordsSwitchRequest_1.ShowHotWordsSwitchRequest) {
6169
+ robotId = showHotWordsSwitchRequest.robotId;
6170
+ authorization = showHotWordsSwitchRequest.authorization;
6171
+ xSdkDate = showHotWordsSwitchRequest.xSdkDate;
6172
+ xProjectId = showHotWordsSwitchRequest.xProjectId;
6173
+ xAppUserId = showHotWordsSwitchRequest.xAppUserId;
6174
+ }
6175
+ else {
6176
+ robotId = showHotWordsSwitchRequest['robot_id'];
6177
+ authorization = showHotWordsSwitchRequest['Authorization'];
6178
+ xSdkDate = showHotWordsSwitchRequest['X-Sdk-Date'];
6179
+ xProjectId = showHotWordsSwitchRequest['X-Project-Id'];
6180
+ xAppUserId = showHotWordsSwitchRequest['X-App-UserId'];
6181
+ }
6182
+ }
6183
+ if (robotId === null || robotId === undefined) {
6184
+ throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling showHotWordsSwitch.');
6185
+ }
6186
+ if (robotId !== null && robotId !== undefined) {
6187
+ localVarQueryParameter['robot_id'] = robotId;
6188
+ }
6189
+ if (authorization !== undefined && authorization !== null) {
6190
+ localVarHeaderParameter['Authorization'] = String(authorization);
6191
+ }
6192
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6193
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6194
+ }
6195
+ if (xProjectId !== undefined && xProjectId !== null) {
6196
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6197
+ }
6198
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6199
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6200
+ }
6201
+ options.queryParams = localVarQueryParameter;
6202
+ options.headers = localVarHeaderParameter;
6203
+ return options;
6204
+ },
6205
+ /**
6206
+ * 该接口用于修改热词记录。
6207
+ *
6208
+ * Please refer to HUAWEI cloud API Explorer for details.
6209
+ */
6210
+ updateHotWords(updateHotWordsRequest) {
6211
+ const options = {
6212
+ method: "PUT",
6213
+ url: "/v1/{project_id}/digital-human-chat/hot-words/{hot_words_id}",
6214
+ contentType: "application/json",
6215
+ queryParams: {},
6216
+ pathParams: {},
6217
+ headers: {},
6218
+ data: {}
6219
+ };
6220
+ const localVarHeaderParameter = {};
6221
+ let body;
6222
+ let hotWordsId;
6223
+ let authorization;
6224
+ let xSdkDate;
6225
+ let xProjectId;
6226
+ let xAppUserId;
6227
+ if (updateHotWordsRequest !== null && updateHotWordsRequest !== undefined) {
6228
+ if (updateHotWordsRequest instanceof UpdateHotWordsRequest_1.UpdateHotWordsRequest) {
6229
+ hotWordsId = updateHotWordsRequest.hotWordsId;
6230
+ body = updateHotWordsRequest.body;
6231
+ authorization = updateHotWordsRequest.authorization;
6232
+ xSdkDate = updateHotWordsRequest.xSdkDate;
6233
+ xProjectId = updateHotWordsRequest.xProjectId;
6234
+ xAppUserId = updateHotWordsRequest.xAppUserId;
6235
+ }
6236
+ else {
6237
+ hotWordsId = updateHotWordsRequest['hot_words_id'];
6238
+ body = updateHotWordsRequest['body'];
6239
+ authorization = updateHotWordsRequest['Authorization'];
6240
+ xSdkDate = updateHotWordsRequest['X-Sdk-Date'];
6241
+ xProjectId = updateHotWordsRequest['X-Project-Id'];
6242
+ xAppUserId = updateHotWordsRequest['X-App-UserId'];
6243
+ }
6244
+ }
6245
+ if (hotWordsId === null || hotWordsId === undefined) {
6246
+ throw new RequiredError('hotWordsId', 'Required parameter hotWordsId was null or undefined when calling updateHotWords.');
6247
+ }
6248
+ if (body === null || body === undefined) {
6249
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6250
+ }
6251
+ if (authorization !== undefined && authorization !== null) {
6252
+ localVarHeaderParameter['Authorization'] = String(authorization);
6253
+ }
6254
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6255
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6256
+ }
6257
+ if (xProjectId !== undefined && xProjectId !== null) {
6258
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6259
+ }
6260
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6261
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6262
+ }
6263
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6264
+ options.data = body !== undefined ? body : {};
6265
+ options.pathParams = { 'hot_words_id': hotWordsId, };
6266
+ options.headers = localVarHeaderParameter;
6267
+ return options;
6268
+ },
6269
+ /**
6270
+ * 该接口用于修改热词功能开关。
6271
+ *
6272
+ * Please refer to HUAWEI cloud API Explorer for details.
6273
+ */
6274
+ updateHotWordsSwitch(updateHotWordsSwitchRequest) {
6275
+ const options = {
6276
+ method: "POST",
6277
+ url: "/v1/{project_id}/digital-human-chat/hot-words-switch",
6278
+ contentType: "application/json",
6279
+ queryParams: {},
6280
+ pathParams: {},
6281
+ headers: {},
6282
+ data: {}
6283
+ };
6284
+ const localVarHeaderParameter = {};
6285
+ let body;
6286
+ let authorization;
6287
+ let xSdkDate;
6288
+ let xProjectId;
6289
+ let xAppUserId;
6290
+ if (updateHotWordsSwitchRequest !== null && updateHotWordsSwitchRequest !== undefined) {
6291
+ if (updateHotWordsSwitchRequest instanceof UpdateHotWordsSwitchRequest_1.UpdateHotWordsSwitchRequest) {
6292
+ body = updateHotWordsSwitchRequest.body;
6293
+ authorization = updateHotWordsSwitchRequest.authorization;
6294
+ xSdkDate = updateHotWordsSwitchRequest.xSdkDate;
6295
+ xProjectId = updateHotWordsSwitchRequest.xProjectId;
6296
+ xAppUserId = updateHotWordsSwitchRequest.xAppUserId;
6297
+ }
6298
+ else {
6299
+ body = updateHotWordsSwitchRequest['body'];
6300
+ authorization = updateHotWordsSwitchRequest['Authorization'];
6301
+ xSdkDate = updateHotWordsSwitchRequest['X-Sdk-Date'];
6302
+ xProjectId = updateHotWordsSwitchRequest['X-Project-Id'];
6303
+ xAppUserId = updateHotWordsSwitchRequest['X-App-UserId'];
6304
+ }
6305
+ }
6306
+ if (body === null || body === undefined) {
6307
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6308
+ }
6309
+ if (authorization !== undefined && authorization !== null) {
6310
+ localVarHeaderParameter['Authorization'] = String(authorization);
6311
+ }
6312
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6313
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6314
+ }
6315
+ if (xProjectId !== undefined && xProjectId !== null) {
6316
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6317
+ }
6318
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6319
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6320
+ }
6321
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6322
+ options.data = body !== undefined ? body : {};
6323
+ options.headers = localVarHeaderParameter;
6324
+ return options;
6325
+ },
6326
+ /**
6327
+ * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。
6328
+ *
6329
+ * Please refer to HUAWEI cloud API Explorer for details.
6330
+ */
6331
+ createIntentAndQuestion(createIntentAndQuestionRequest) {
6332
+ const options = {
6333
+ method: "POST",
6334
+ url: "/v1/{project_id}/digital-human-chat/knowledge/intent-question",
6335
+ contentType: "application/json",
6336
+ queryParams: {},
6337
+ pathParams: {},
6338
+ headers: {},
6339
+ data: {}
6340
+ };
6341
+ const localVarHeaderParameter = {};
6342
+ let body;
6343
+ let authorization;
6344
+ let xSdkDate;
6345
+ let xProjectId;
6346
+ let xAppUserId;
6347
+ if (createIntentAndQuestionRequest !== null && createIntentAndQuestionRequest !== undefined) {
6348
+ if (createIntentAndQuestionRequest instanceof CreateIntentAndQuestionRequest_1.CreateIntentAndQuestionRequest) {
6349
+ body = createIntentAndQuestionRequest.body;
6350
+ authorization = createIntentAndQuestionRequest.authorization;
6351
+ xSdkDate = createIntentAndQuestionRequest.xSdkDate;
6352
+ xProjectId = createIntentAndQuestionRequest.xProjectId;
6353
+ xAppUserId = createIntentAndQuestionRequest.xAppUserId;
6354
+ }
6355
+ else {
6356
+ body = createIntentAndQuestionRequest['body'];
6357
+ authorization = createIntentAndQuestionRequest['Authorization'];
6358
+ xSdkDate = createIntentAndQuestionRequest['X-Sdk-Date'];
6359
+ xProjectId = createIntentAndQuestionRequest['X-Project-Id'];
6360
+ xAppUserId = createIntentAndQuestionRequest['X-App-UserId'];
6361
+ }
6362
+ }
6363
+ if (body === null || body === undefined) {
6364
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6365
+ }
6366
+ if (authorization !== undefined && authorization !== null) {
6367
+ localVarHeaderParameter['Authorization'] = String(authorization);
6368
+ }
6369
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6370
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6371
+ }
6372
+ if (xProjectId !== undefined && xProjectId !== null) {
6373
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6374
+ }
6375
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6376
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6377
+ }
6378
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6379
+ options.data = body !== undefined ? body : {};
6380
+ options.headers = localVarHeaderParameter;
6381
+ return options;
6382
+ },
6383
+ /**
6384
+ * 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。
6385
+ *
6386
+ * Please refer to HUAWEI cloud API Explorer for details.
6387
+ */
6388
+ createKnowledgeIntent(createKnowledgeIntentRequest) {
6389
+ const options = {
6390
+ method: "POST",
6391
+ url: "/v1/{project_id}/digital-human-chat/knowledge/intent",
6392
+ contentType: "application/json",
6393
+ queryParams: {},
6394
+ pathParams: {},
6395
+ headers: {},
6396
+ data: {}
6397
+ };
6398
+ const localVarHeaderParameter = {};
6399
+ let body;
6400
+ let authorization;
6401
+ let xSdkDate;
6402
+ let xProjectId;
6403
+ let xAppUserId;
6404
+ if (createKnowledgeIntentRequest !== null && createKnowledgeIntentRequest !== undefined) {
6405
+ if (createKnowledgeIntentRequest instanceof CreateKnowledgeIntentRequest_1.CreateKnowledgeIntentRequest) {
6406
+ body = createKnowledgeIntentRequest.body;
6407
+ authorization = createKnowledgeIntentRequest.authorization;
6408
+ xSdkDate = createKnowledgeIntentRequest.xSdkDate;
6409
+ xProjectId = createKnowledgeIntentRequest.xProjectId;
6410
+ xAppUserId = createKnowledgeIntentRequest.xAppUserId;
6411
+ }
6412
+ else {
6413
+ body = createKnowledgeIntentRequest['body'];
6414
+ authorization = createKnowledgeIntentRequest['Authorization'];
6415
+ xSdkDate = createKnowledgeIntentRequest['X-Sdk-Date'];
6416
+ xProjectId = createKnowledgeIntentRequest['X-Project-Id'];
6417
+ xAppUserId = createKnowledgeIntentRequest['X-App-UserId'];
5701
6418
  }
5702
6419
  }
5703
6420
  if (body === null || body === undefined) {
@@ -8247,39 +8964,6 @@ const ParamCreater = function () {
8247
8964
  options.headers = localVarHeaderParameter;
8248
8965
  return options;
8249
8966
  },
8250
- /**
8251
- * 检测音色与文本的语言一致性,音色与文本不一致会导致报错
8252
- *
8253
- * Please refer to HUAWEI cloud API Explorer for details.
8254
- */
8255
- checkTextLanguage(checkTextLanguageRequest) {
8256
- const options = {
8257
- method: "POST",
8258
- url: "/v1/{project_id}/smart-live-rooms-scripts/language-check",
8259
- contentType: "application/json",
8260
- queryParams: {},
8261
- pathParams: {},
8262
- headers: {},
8263
- data: {}
8264
- };
8265
- const localVarHeaderParameter = {};
8266
- let body;
8267
- if (checkTextLanguageRequest !== null && checkTextLanguageRequest !== undefined) {
8268
- if (checkTextLanguageRequest instanceof CheckTextLanguageRequest_1.CheckTextLanguageRequest) {
8269
- body = checkTextLanguageRequest.body;
8270
- }
8271
- else {
8272
- body = checkTextLanguageRequest['body'];
8273
- }
8274
- }
8275
- if (body === null || body === undefined) {
8276
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
8277
- }
8278
- localVarHeaderParameter['Content-Type'] = 'application/json';
8279
- options.data = body !== undefined ? body : {};
8280
- options.headers = localVarHeaderParameter;
8281
- return options;
8282
- },
8283
8967
  /**
8284
8968
  * 该接口用于创建智能直播间互动规则库。
8285
8969
  *