@huaweicloud/huaweicloud-sdk-metastudio 3.1.129 → 3.1.130

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 (149) hide show
  1. package/package.json +2 -2
  2. package/v1/MetaStudioClient.d.ts +270 -1
  3. package/v1/MetaStudioClient.d.ts.map +1 -1
  4. package/v1/MetaStudioClient.js +858 -61
  5. package/v1/MetaStudioClient.js.map +1 -1
  6. package/v1/model/BatchConfirmLiveCommandsReq.d.ts +28 -0
  7. package/v1/model/BatchConfirmLiveCommandsReq.d.ts.map +1 -0
  8. package/v1/model/BatchConfirmLiveCommandsReq.js +45 -0
  9. package/v1/model/BatchConfirmLiveCommandsReq.js.map +1 -0
  10. package/v1/model/BatchConfirmLiveCommandsRequest.d.ts +31 -0
  11. package/v1/model/BatchConfirmLiveCommandsRequest.d.ts.map +1 -0
  12. package/v1/model/BatchConfirmLiveCommandsRequest.js +75 -0
  13. package/v1/model/BatchConfirmLiveCommandsRequest.js.map +1 -0
  14. package/v1/model/BatchConfirmLiveCommandsResponse.d.ts +9 -0
  15. package/v1/model/BatchConfirmLiveCommandsResponse.d.ts.map +1 -0
  16. package/v1/model/BatchConfirmLiveCommandsResponse.js +21 -0
  17. package/v1/model/BatchConfirmLiveCommandsResponse.js.map +1 -0
  18. package/v1/model/ConfirmSmartLiveRoomReq.d.ts +18 -0
  19. package/v1/model/ConfirmSmartLiveRoomReq.d.ts.map +1 -0
  20. package/v1/model/ConfirmSmartLiveRoomReq.js +32 -0
  21. package/v1/model/ConfirmSmartLiveRoomReq.js.map +1 -0
  22. package/v1/model/ConfirmSmartLiveRoomRequest.d.ts +27 -0
  23. package/v1/model/ConfirmSmartLiveRoomRequest.d.ts.map +1 -0
  24. package/v1/model/ConfirmSmartLiveRoomRequest.js +64 -0
  25. package/v1/model/ConfirmSmartLiveRoomRequest.js.map +1 -0
  26. package/v1/model/ConfirmSmartLiveRoomResponse.d.ts +9 -0
  27. package/v1/model/ConfirmSmartLiveRoomResponse.d.ts.map +1 -0
  28. package/v1/model/ConfirmSmartLiveRoomResponse.js +21 -0
  29. package/v1/model/ConfirmSmartLiveRoomResponse.js.map +1 -0
  30. package/v1/model/CreateAsyncTtsJobRequestBody.d.ts +21 -0
  31. package/v1/model/CreateAsyncTtsJobRequestBody.d.ts.map +1 -1
  32. package/v1/model/CreateAsyncTtsJobRequestBody.js +50 -0
  33. package/v1/model/CreateAsyncTtsJobRequestBody.js.map +1 -1
  34. package/v1/model/CreateTtsAuditionRequestBody.d.ts +6 -0
  35. package/v1/model/CreateTtsAuditionRequestBody.d.ts.map +1 -1
  36. package/v1/model/CreateTtsAuditionRequestBody.js +14 -0
  37. package/v1/model/CreateTtsAuditionRequestBody.js.map +1 -1
  38. package/v1/model/CreateTtscVocabularyConfigsRequest.d.ts +27 -0
  39. package/v1/model/CreateTtscVocabularyConfigsRequest.d.ts.map +1 -0
  40. package/v1/model/CreateTtscVocabularyConfigsRequest.js +63 -0
  41. package/v1/model/CreateTtscVocabularyConfigsRequest.js.map +1 -0
  42. package/v1/model/CreateTtscVocabularyConfigsResponse.d.ts +7 -0
  43. package/v1/model/CreateTtscVocabularyConfigsResponse.d.ts.map +1 -0
  44. package/v1/model/CreateTtscVocabularyConfigsResponse.js +15 -0
  45. package/v1/model/CreateTtscVocabularyConfigsResponse.js.map +1 -0
  46. package/v1/model/DeleteTtscVocabularyConfigsRequest.d.ts +31 -0
  47. package/v1/model/DeleteTtscVocabularyConfigsRequest.d.ts.map +1 -0
  48. package/v1/model/DeleteTtscVocabularyConfigsRequest.js +71 -0
  49. package/v1/model/DeleteTtscVocabularyConfigsRequest.js.map +1 -0
  50. package/v1/model/DeleteTtscVocabularyConfigsRequestBody.d.ts +6 -0
  51. package/v1/model/DeleteTtscVocabularyConfigsRequestBody.d.ts.map +1 -0
  52. package/v1/model/DeleteTtscVocabularyConfigsRequestBody.js +13 -0
  53. package/v1/model/DeleteTtscVocabularyConfigsRequestBody.js.map +1 -0
  54. package/v1/model/DeleteTtscVocabularyConfigsResponse.d.ts +5 -0
  55. package/v1/model/DeleteTtscVocabularyConfigsResponse.d.ts.map +1 -0
  56. package/v1/model/DeleteTtscVocabularyConfigsResponse.js +11 -0
  57. package/v1/model/DeleteTtscVocabularyConfigsResponse.js.map +1 -0
  58. package/v1/model/ListSmartLiveRoomsRequest.d.ts +4 -0
  59. package/v1/model/ListSmartLiveRoomsRequest.d.ts.map +1 -1
  60. package/v1/model/ListSmartLiveRoomsRequest.js +10 -0
  61. package/v1/model/ListSmartLiveRoomsRequest.js.map +1 -1
  62. package/v1/model/ListSmartLiveRuleCommandsRequest.d.ts +28 -0
  63. package/v1/model/ListSmartLiveRuleCommandsRequest.d.ts.map +1 -0
  64. package/v1/model/ListSmartLiveRuleCommandsRequest.js +67 -0
  65. package/v1/model/ListSmartLiveRuleCommandsRequest.js.map +1 -0
  66. package/v1/model/ListSmartLiveRuleCommandsResponse.d.ts +16 -0
  67. package/v1/model/ListSmartLiveRuleCommandsResponse.d.ts.map +1 -0
  68. package/v1/model/ListSmartLiveRuleCommandsResponse.js +35 -0
  69. package/v1/model/ListSmartLiveRuleCommandsResponse.js.map +1 -0
  70. package/v1/model/ListSmartLiveScriptCommandsRequest.d.ts +28 -0
  71. package/v1/model/ListSmartLiveScriptCommandsRequest.d.ts.map +1 -0
  72. package/v1/model/ListSmartLiveScriptCommandsRequest.js +67 -0
  73. package/v1/model/ListSmartLiveScriptCommandsRequest.js.map +1 -0
  74. package/v1/model/ListSmartLiveScriptCommandsResponse.d.ts +16 -0
  75. package/v1/model/ListSmartLiveScriptCommandsResponse.d.ts.map +1 -0
  76. package/v1/model/ListSmartLiveScriptCommandsResponse.js +35 -0
  77. package/v1/model/ListSmartLiveScriptCommandsResponse.js.map +1 -0
  78. package/v1/model/ListTtscVocabularyConfigsRequest.d.ts +42 -0
  79. package/v1/model/ListTtscVocabularyConfigsRequest.d.ts.map +1 -0
  80. package/v1/model/ListTtscVocabularyConfigsRequest.js +102 -0
  81. package/v1/model/ListTtscVocabularyConfigsRequest.js.map +1 -0
  82. package/v1/model/ListTtscVocabularyConfigsResponse.d.ts +10 -0
  83. package/v1/model/ListTtscVocabularyConfigsResponse.d.ts.map +1 -0
  84. package/v1/model/ListTtscVocabularyConfigsResponse.js +19 -0
  85. package/v1/model/ListTtscVocabularyConfigsResponse.js.map +1 -0
  86. package/v1/model/ListVoiceTrainingJobRequest.d.ts +16 -0
  87. package/v1/model/ListVoiceTrainingJobRequest.d.ts.map +1 -1
  88. package/v1/model/ListVoiceTrainingJobRequest.js +40 -0
  89. package/v1/model/ListVoiceTrainingJobRequest.js.map +1 -1
  90. package/v1/model/LivePlayingScriptInfo.d.ts +17 -0
  91. package/v1/model/LivePlayingScriptInfo.d.ts.map +1 -0
  92. package/v1/model/LivePlayingScriptInfo.js +39 -0
  93. package/v1/model/LivePlayingScriptInfo.js.map +1 -0
  94. package/v1/model/LivePlayingShootScriptItem.d.ts +10 -0
  95. package/v1/model/LivePlayingShootScriptItem.d.ts.map +1 -0
  96. package/v1/model/LivePlayingShootScriptItem.js +23 -0
  97. package/v1/model/LivePlayingShootScriptItem.js.map +1 -0
  98. package/v1/model/RuleCommand.d.ts +21 -0
  99. package/v1/model/RuleCommand.d.ts.map +1 -0
  100. package/v1/model/RuleCommand.js +49 -0
  101. package/v1/model/RuleCommand.js.map +1 -0
  102. package/v1/model/SaveTtscVocabularyConfigsRequest.d.ts +31 -0
  103. package/v1/model/SaveTtscVocabularyConfigsRequest.d.ts.map +1 -0
  104. package/v1/model/SaveTtscVocabularyConfigsRequest.js +74 -0
  105. package/v1/model/SaveTtscVocabularyConfigsRequest.js.map +1 -0
  106. package/v1/model/SaveTtscVocabularyConfigsRequestBody.d.ts +21 -0
  107. package/v1/model/SaveTtscVocabularyConfigsRequestBody.d.ts.map +1 -0
  108. package/v1/model/SaveTtscVocabularyConfigsRequestBody.js +34 -0
  109. package/v1/model/SaveTtscVocabularyConfigsRequestBody.js.map +1 -0
  110. package/v1/model/SaveTtscVocabularyConfigsResponse.d.ts +7 -0
  111. package/v1/model/SaveTtscVocabularyConfigsResponse.d.ts.map +1 -0
  112. package/v1/model/SaveTtscVocabularyConfigsResponse.js +15 -0
  113. package/v1/model/SaveTtscVocabularyConfigsResponse.js.map +1 -0
  114. package/v1/model/ScriptCommand.d.ts +21 -0
  115. package/v1/model/ScriptCommand.d.ts.map +1 -0
  116. package/v1/model/ScriptCommand.js +49 -0
  117. package/v1/model/ScriptCommand.js.map +1 -0
  118. package/v1/model/ShowSmartLiveRoomResponse.d.ts +17 -0
  119. package/v1/model/ShowSmartLiveRoomResponse.d.ts.map +1 -1
  120. package/v1/model/ShowSmartLiveRoomResponse.js +31 -1
  121. package/v1/model/ShowSmartLiveRoomResponse.js.map +1 -1
  122. package/v1/model/ShowVoiceTrainingJobResponse.d.ts +8 -0
  123. package/v1/model/ShowVoiceTrainingJobResponse.d.ts.map +1 -1
  124. package/v1/model/ShowVoiceTrainingJobResponse.js +20 -0
  125. package/v1/model/ShowVoiceTrainingJobResponse.js.map +1 -1
  126. package/v1/model/TrainingJobInfo.d.ts +8 -0
  127. package/v1/model/TrainingJobInfo.d.ts.map +1 -1
  128. package/v1/model/TrainingJobInfo.js +20 -0
  129. package/v1/model/TrainingJobInfo.js.map +1 -1
  130. package/v1/model/TtsCallBackConfig.d.ts +8 -0
  131. package/v1/model/TtsCallBackConfig.d.ts.map +1 -0
  132. package/v1/model/TtsCallBackConfig.js +20 -0
  133. package/v1/model/TtsCallBackConfig.js.map +1 -0
  134. package/v1/model/UpdateSmartLiveRoomResponse.d.ts +17 -0
  135. package/v1/model/UpdateSmartLiveRoomResponse.d.ts.map +1 -1
  136. package/v1/model/UpdateSmartLiveRoomResponse.js +31 -1
  137. package/v1/model/UpdateSmartLiveRoomResponse.js.map +1 -1
  138. package/v1/model/VocabularyConfig.d.ts +18 -0
  139. package/v1/model/VocabularyConfig.d.ts.map +1 -0
  140. package/v1/model/VocabularyConfig.js +41 -0
  141. package/v1/model/VocabularyConfig.js.map +1 -0
  142. package/v1/model/VoiceModelAssetMeta.d.ts +4 -0
  143. package/v1/model/VoiceModelAssetMeta.d.ts.map +1 -1
  144. package/v1/model/VoiceModelAssetMeta.js +10 -0
  145. package/v1/model/VoiceModelAssetMeta.js.map +1 -1
  146. package/v1/public-api.d.ts +26 -0
  147. package/v1/public-api.d.ts.map +1 -1
  148. package/v1/public-api.js +26 -0
  149. package/v1/public-api.js.map +1 -1
@@ -6,11 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.RequiredError = exports.ParamCreater = exports.MetaStudioClient = void 0;
7
7
  const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
8
8
  const form_data_1 = __importDefault(require("form-data"));
9
+ const BatchConfirmLiveCommandsRequest_1 = require("./model/BatchConfirmLiveCommandsRequest");
9
10
  const BatchExecuteAssetActionRequest_1 = require("./model/BatchExecuteAssetActionRequest");
10
11
  const Cancel2DDigitalHumanVideoRequest_1 = require("./model/Cancel2DDigitalHumanVideoRequest");
11
12
  const CancelPhotoDigitalHumanVideoRequest_1 = require("./model/CancelPhotoDigitalHumanVideoRequest");
12
13
  const CommitVoiceTrainingJobRequest_1 = require("./model/CommitVoiceTrainingJobRequest");
13
14
  const ConfirmFileUploadRequest_1 = require("./model/ConfirmFileUploadRequest");
15
+ const ConfirmSmartLiveRoomRequest_1 = require("./model/ConfirmSmartLiveRoomRequest");
14
16
  const ConfirmTrainingSegmentRequest_1 = require("./model/ConfirmTrainingSegmentRequest");
15
17
  const CopyVideoScriptsRequest_1 = require("./model/CopyVideoScriptsRequest");
16
18
  const CountTenantResourcesRequest_1 = require("./model/CountTenantResourcesRequest");
@@ -51,6 +53,7 @@ const CreateTrainingBasicJobRequest_1 = require("./model/CreateTrainingBasicJobR
51
53
  const CreateTrainingMiddleJobRequest_1 = require("./model/CreateTrainingMiddleJobRequest");
52
54
  const CreateTtsAuditionRequest_1 = require("./model/CreateTtsAuditionRequest");
53
55
  const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
56
+ const CreateTtscVocabularyConfigsRequest_1 = require("./model/CreateTtscVocabularyConfigsRequest");
54
57
  const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
55
58
  const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest");
56
59
  const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest");
@@ -72,6 +75,7 @@ const DeleteProductRequest_1 = require("./model/DeleteProductRequest");
72
75
  const DeleteRobotRequest_1 = require("./model/DeleteRobotRequest");
73
76
  const DeleteSmartChatRoomRequest_1 = require("./model/DeleteSmartChatRoomRequest");
74
77
  const DeleteSmartLiveRoomRequest_1 = require("./model/DeleteSmartLiveRoomRequest");
78
+ const DeleteTtscVocabularyConfigsRequest_1 = require("./model/DeleteTtscVocabularyConfigsRequest");
75
79
  const DeleteVideoScriptRequest_1 = require("./model/DeleteVideoScriptRequest");
76
80
  const DeleteVoiceTrainingJobRequest_1 = require("./model/DeleteVoiceTrainingJobRequest");
77
81
  const DeleteWelcomeSpeechRequest_1 = require("./model/DeleteWelcomeSpeechRequest");
@@ -103,10 +107,13 @@ const ListSmartChatRoomsRequest_1 = require("./model/ListSmartChatRoomsRequest")
103
107
  const ListSmartLiveJobsRequest_1 = require("./model/ListSmartLiveJobsRequest");
104
108
  const ListSmartLiveRequest_1 = require("./model/ListSmartLiveRequest");
105
109
  const ListSmartLiveRoomsRequest_1 = require("./model/ListSmartLiveRoomsRequest");
110
+ const ListSmartLiveRuleCommandsRequest_1 = require("./model/ListSmartLiveRuleCommandsRequest");
111
+ const ListSmartLiveScriptCommandsRequest_1 = require("./model/ListSmartLiveScriptCommandsRequest");
106
112
  const ListStylesRequest_1 = require("./model/ListStylesRequest");
107
113
  const ListTenantResourcesRequest_1 = require("./model/ListTenantResourcesRequest");
108
114
  const ListTtsaDataRequest_1 = require("./model/ListTtsaDataRequest");
109
115
  const ListTtsaJobsRequest_1 = require("./model/ListTtsaJobsRequest");
116
+ const ListTtscVocabularyConfigsRequest_1 = require("./model/ListTtscVocabularyConfigsRequest");
110
117
  const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCaptureJobsRequest");
111
118
  const ListVideoScriptsRequest_1 = require("./model/ListVideoScriptsRequest");
112
119
  const ListVoiceTrainingJobRequest_1 = require("./model/ListVoiceTrainingJobRequest");
@@ -114,6 +121,7 @@ const ListWelcomeSpeechRequest_1 = require("./model/ListWelcomeSpeechRequest");
114
121
  const LiveEventReportRequest_1 = require("./model/LiveEventReportRequest");
115
122
  const ResetActiveCodeRequest_1 = require("./model/ResetActiveCodeRequest");
116
123
  const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
124
+ const SaveTtscVocabularyConfigsRequest_1 = require("./model/SaveTtscVocabularyConfigsRequest");
117
125
  const SetJobBatchNameRequest_1 = require("./model/SetJobBatchNameRequest");
118
126
  const SetProductAssetRequest_1 = require("./model/SetProductAssetRequest");
119
127
  const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
@@ -564,7 +572,7 @@ class MetaStudioClient {
564
572
  * @param {string} [name] 按名称模糊查询。
565
573
  * @param {string} [tag] 按标签模糊查询。
566
574
  * @param {'INTERSECTION' | 'UNION_SET'} [tagCombinationType] 标签查询组合方式 INTERSECTION:交集 UNION_SET:并集
567
- * @param {string} [startTime] 最近直播任务起始时间。格式遵循:RFC 3339 如“2021-01-10T08:43:17Z”。
575
+ * @param {string} [startTime] 起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
568
576
  * @param {string} [endTime] 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
569
577
  * @param {string} [assetType] 资产类型。多个类型使用英文逗号分隔。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频
570
578
  * @param {string} [sortKey] 排序字段,支持的排序方式有: - 按创建时间排序:create_time - 按更新时间排序:update_time - 按资产排序:asset_order
@@ -2493,6 +2501,28 @@ class MetaStudioClient {
2493
2501
  options['responseHeaders'] = ['X-Request-Id'];
2494
2502
  return this.hcClient.sendRequest(options);
2495
2503
  }
2504
+ /**
2505
+ * 该接口用于批量确认命令列表
2506
+ *
2507
+ * Please refer to HUAWEI cloud API Explorer for details.
2508
+ *
2509
+ * @summary 批量确认命令
2510
+ * @param {string} roomId 剧本ID。
2511
+ * @param {string} jobId 任务ID。
2512
+ * @param {BatchConfirmLiveCommandsReq} batchConfirmLiveCommandsRequestBody 批量确认剧本命令。
2513
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
2514
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
2515
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
2516
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
2517
+ * @param {*} [options] Override http request option.
2518
+ * @throws {RequiredError}
2519
+ */
2520
+ batchConfirmLiveCommands(batchConfirmLiveCommandsRequest) {
2521
+ const options = (0, exports.ParamCreater)().batchConfirmLiveCommands(batchConfirmLiveCommandsRequest);
2522
+ // @ts-ignore
2523
+ options['responseHeaders'] = ['X-Request-Id'];
2524
+ return this.hcClient.sendRequest(options);
2525
+ }
2496
2526
  /**
2497
2527
  * 该接口用于控制数字人直播过程。
2498
2528
  *
@@ -2569,6 +2599,50 @@ class MetaStudioClient {
2569
2599
  options['responseHeaders'] = ['X-Request-Id'];
2570
2600
  return this.hcClient.sendRequest(options);
2571
2601
  }
2602
+ /**
2603
+ * 该接口用于查询租户未确认的互动规则命令列表,仅限于需要做二次确认的特定用户使用。
2604
+ *
2605
+ * Please refer to HUAWEI cloud API Explorer for details.
2606
+ *
2607
+ * @summary 查询租户未确认的互动规则命令列表
2608
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
2609
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
2610
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
2611
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
2612
+ * @param {string} [jobId] 根据任务ID 查询
2613
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
2614
+ * @param {number} [limit] 每页显示的条目数量。
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ listSmartLiveRuleCommands(listSmartLiveRuleCommandsRequest) {
2619
+ const options = (0, exports.ParamCreater)().listSmartLiveRuleCommands(listSmartLiveRuleCommandsRequest);
2620
+ // @ts-ignore
2621
+ options['responseHeaders'] = ['X-Request-Id'];
2622
+ return this.hcClient.sendRequest(options);
2623
+ }
2624
+ /**
2625
+ * 该接口用于查询租户未确认的剧本命令列表,仅限于需要做二次确认的特定用户使用。
2626
+ *
2627
+ * Please refer to HUAWEI cloud API Explorer for details.
2628
+ *
2629
+ * @summary 查询租户未确认的剧本命令列表
2630
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
2631
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
2632
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
2633
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
2634
+ * @param {string} [jobId] 根据任务ID 查询
2635
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
2636
+ * @param {number} [limit] 每页显示的条目数量。
2637
+ * @param {*} [options] Override http request option.
2638
+ * @throws {RequiredError}
2639
+ */
2640
+ listSmartLiveScriptCommands(listSmartLiveScriptCommandsRequest) {
2641
+ const options = (0, exports.ParamCreater)().listSmartLiveScriptCommands(listSmartLiveScriptCommandsRequest);
2642
+ // @ts-ignore
2643
+ options['responseHeaders'] = ['X-Request-Id'];
2644
+ return this.hcClient.sendRequest(options);
2645
+ }
2572
2646
  /**
2573
2647
  * 该接口用于上报直播间事件。
2574
2648
  *
@@ -2657,6 +2731,27 @@ class MetaStudioClient {
2657
2731
  options['responseHeaders'] = ['X-Request-Id'];
2658
2732
  return this.hcClient.sendRequest(options);
2659
2733
  }
2734
+ /**
2735
+ * 该接口用直播间二次确认
2736
+ *
2737
+ * Please refer to HUAWEI cloud API Explorer for details.
2738
+ *
2739
+ * @summary 直播间确认
2740
+ * @param {string} roomId 剧本ID。
2741
+ * @param {ConfirmSmartLiveRoomReq} confirmSmartLiveRoomRequestBody 剧本确认请求
2742
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
2743
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
2744
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
2745
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
2746
+ * @param {*} [options] Override http request option.
2747
+ * @throws {RequiredError}
2748
+ */
2749
+ confirmSmartLiveRoom(confirmSmartLiveRoomRequest) {
2750
+ const options = (0, exports.ParamCreater)().confirmSmartLiveRoom(confirmSmartLiveRoomRequest);
2751
+ // @ts-ignore
2752
+ options['responseHeaders'] = ['X-Request-Id'];
2753
+ return this.hcClient.sendRequest(options);
2754
+ }
2660
2755
  /**
2661
2756
  * 该接口用于创建智能直播间互动规则库。
2662
2757
  *
@@ -2781,6 +2876,7 @@ class MetaStudioClient {
2781
2876
  * @param {string} [endTime] 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
2782
2877
  * @param {string} [roomType] 按直播间类型查询。直播间类型。 * NORMAL:普通直播间,直播间一直存在,可以反复开播 * TEMP:临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE:直播间模板。
2783
2878
  * @param {string} [templateOwnType] 按照自己拥有的和别人分享以及公共的模板进行查询 * OWNED 自己拥有且暂未共享的 * SHARED_TO_OHTERS 分享给别人的 * SHARED_FROM_OHTERS 别人分享给我的 * PUBLIC 公共模板
2879
+ * @param {string} [confirmState] 直播间确认状态。此状态仅用于特定用户需要人工确认场景。 - unconfirm: 未确认 - confirmed:已确认 - reject: 拒绝
2784
2880
  * @param {*} [options] Override http request option.
2785
2881
  * @throws {RequiredError}
2786
2882
  */
@@ -3151,6 +3247,8 @@ class MetaStudioClient {
3151
3247
  * @param {number} [limit] 每页显示的条目数量。
3152
3248
  * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
3153
3249
  * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
3250
+ * @param {string} [updateUntil] 过滤更新时间<=输入时间的记录。
3251
+ * @param {string} [updateSince] 过滤更新时间>=输入时间的记录。
3154
3252
  * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
3155
3253
  * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=FAILED,WAITING
3156
3254
  * @param {string} [jobId] 任务id。
@@ -3158,6 +3256,8 @@ class MetaStudioClient {
3158
3256
  * @param {string} [tag] 任务标签。
3159
3257
  * @param {string} [jobType] 训练类型。 * BASIC: 基础版(20句话) * MIDDLE: 进阶版(100句话) * ADVANCE: 高级版 * THIRD_PARTY: 第三方出门问问训练版 * THIRD_PARTY_LJZN: 第三方逻辑智能训练版 * FLEXUS: Flexus版---用的是大模型特征提取
3160
3258
  * @param {string} [batchName] 批次名称。
3259
+ * @param {string} [sortKey] 排序字段,当前支持:ceate_time/update_time
3260
+ * @param {string} [sortDir] 排序规则:desc(降序)/asc(升序)
3161
3261
  * @param {*} [options] Override http request option.
3162
3262
  * @throws {RequiredError}
3163
3263
  */
@@ -3546,6 +3646,98 @@ class MetaStudioClient {
3546
3646
  options['responseHeaders'] = [''];
3547
3647
  return this.hcClient.sendRequest(options);
3548
3648
  }
3649
+ /**
3650
+ * 该接口用于设置TTS租户级扩展词表配置。
3651
+ *
3652
+ * Please refer to HUAWEI cloud API Explorer for details.
3653
+ *
3654
+ * @summary 设置TTS租户级扩展词表配置
3655
+ * @param {SaveTtscVocabularyConfigsRequestBody} createTtscVocabularyConfigsRequestBody 设置TTS租户级词表扩展配置。
3656
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
3657
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
3658
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
3659
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
3660
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
3661
+ * @param {*} [options] Override http request option.
3662
+ * @throws {RequiredError}
3663
+ */
3664
+ createTtscVocabularyConfigs(createTtscVocabularyConfigsRequest) {
3665
+ const options = (0, exports.ParamCreater)().createTtscVocabularyConfigs(createTtscVocabularyConfigsRequest);
3666
+ // @ts-ignore
3667
+ options['responseHeaders'] = [''];
3668
+ return this.hcClient.sendRequest(options);
3669
+ }
3670
+ /**
3671
+ * 该接口用于删除TTS租户级词表扩展配置。
3672
+ *
3673
+ * Please refer to HUAWEI cloud API Explorer for details.
3674
+ *
3675
+ * @summary 删除TTS租户级词表扩展配置
3676
+ * @param {DeleteTtscVocabularyConfigsRequestBody} deleteTtscVocabularyConfigsRequestBody 删除TTS租户级词表扩展配置
3677
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
3678
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
3679
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
3680
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
3681
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
3682
+ * @param {number} [offset] 查询偏移量,若超过最大数量,则返回最后一页
3683
+ * @param {number} [limit] 查询数量
3684
+ * @param {*} [options] Override http request option.
3685
+ * @throws {RequiredError}
3686
+ */
3687
+ deleteTtscVocabularyConfigs(deleteTtscVocabularyConfigsRequest) {
3688
+ const options = (0, exports.ParamCreater)().deleteTtscVocabularyConfigs(deleteTtscVocabularyConfigsRequest);
3689
+ // @ts-ignore
3690
+ options['responseHeaders'] = [''];
3691
+ return this.hcClient.sendRequest(options);
3692
+ }
3693
+ /**
3694
+ * 该接口用于获取TTS租户级词表扩展配置。
3695
+ *
3696
+ * Please refer to HUAWEI cloud API Explorer for details.
3697
+ *
3698
+ * @summary 获取TTS租户级词表扩展配置
3699
+ * @param {string} type 词表类型 CHINESE_G2P:(g2p)中文拼音
3700
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
3701
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
3702
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
3703
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
3704
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
3705
+ * @param {number} [limit] 每页显示的条目数量。
3706
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
3707
+ * @param {string} [startTime] 起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
3708
+ * @param {string} [endTime] 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
3709
+ * @param {string} [searchKey] 搜索条件
3710
+ * @param {*} [options] Override http request option.
3711
+ * @throws {RequiredError}
3712
+ */
3713
+ listTtscVocabularyConfigs(listTtscVocabularyConfigsRequest) {
3714
+ const options = (0, exports.ParamCreater)().listTtscVocabularyConfigs(listTtscVocabularyConfigsRequest);
3715
+ // @ts-ignore
3716
+ options['responseHeaders'] = [''];
3717
+ return this.hcClient.sendRequest(options);
3718
+ }
3719
+ /**
3720
+ * 该接口用于修改TTS租户级扩展词表配置。
3721
+ *
3722
+ * Please refer to HUAWEI cloud API Explorer for details.
3723
+ *
3724
+ * @summary 修改TTS租户级扩展词表配置
3725
+ * @param {string} vocabularyId 词表id
3726
+ * @param {SaveTtscVocabularyConfigsRequestBody} saveTtscVocabularyConfigsRequestBody 修改TTS租户级词表扩展配置。
3727
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
3728
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
3729
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
3730
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
3731
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
3732
+ * @param {*} [options] Override http request option.
3733
+ * @throws {RequiredError}
3734
+ */
3735
+ saveTtscVocabularyConfigs(saveTtscVocabularyConfigsRequest) {
3736
+ const options = (0, exports.ParamCreater)().saveTtscVocabularyConfigs(saveTtscVocabularyConfigsRequest);
3737
+ // @ts-ignore
3738
+ options['responseHeaders'] = [''];
3739
+ return this.hcClient.sendRequest(options);
3740
+ }
3549
3741
  /**
3550
3742
  * 该接口用于获取TTS音频文件下载链接。
3551
3743
  *
@@ -10777,6 +10969,76 @@ const ParamCreater = function () {
10777
10969
  options.headers = localVarHeaderParameter;
10778
10970
  return options;
10779
10971
  },
10972
+ /**
10973
+ * 该接口用于批量确认命令列表
10974
+ *
10975
+ * Please refer to HUAWEI cloud API Explorer for details.
10976
+ */
10977
+ batchConfirmLiveCommands(batchConfirmLiveCommandsRequest) {
10978
+ const options = {
10979
+ method: "POST",
10980
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}/batch-commands-confirm",
10981
+ contentType: "application/json",
10982
+ queryParams: {},
10983
+ pathParams: {},
10984
+ headers: {},
10985
+ data: {}
10986
+ };
10987
+ const localVarHeaderParameter = {};
10988
+ let body;
10989
+ let roomId;
10990
+ let jobId;
10991
+ let authorization;
10992
+ let xSdkDate;
10993
+ let xProjectId;
10994
+ let xAppUserId;
10995
+ if (batchConfirmLiveCommandsRequest !== null && batchConfirmLiveCommandsRequest !== undefined) {
10996
+ if (batchConfirmLiveCommandsRequest instanceof BatchConfirmLiveCommandsRequest_1.BatchConfirmLiveCommandsRequest) {
10997
+ roomId = batchConfirmLiveCommandsRequest.roomId;
10998
+ jobId = batchConfirmLiveCommandsRequest.jobId;
10999
+ body = batchConfirmLiveCommandsRequest.body;
11000
+ authorization = batchConfirmLiveCommandsRequest.authorization;
11001
+ xSdkDate = batchConfirmLiveCommandsRequest.xSdkDate;
11002
+ xProjectId = batchConfirmLiveCommandsRequest.xProjectId;
11003
+ xAppUserId = batchConfirmLiveCommandsRequest.xAppUserId;
11004
+ }
11005
+ else {
11006
+ roomId = batchConfirmLiveCommandsRequest['room_id'];
11007
+ jobId = batchConfirmLiveCommandsRequest['job_id'];
11008
+ body = batchConfirmLiveCommandsRequest['body'];
11009
+ authorization = batchConfirmLiveCommandsRequest['Authorization'];
11010
+ xSdkDate = batchConfirmLiveCommandsRequest['X-Sdk-Date'];
11011
+ xProjectId = batchConfirmLiveCommandsRequest['X-Project-Id'];
11012
+ xAppUserId = batchConfirmLiveCommandsRequest['X-App-UserId'];
11013
+ }
11014
+ }
11015
+ if (roomId === null || roomId === undefined) {
11016
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling batchConfirmLiveCommands.');
11017
+ }
11018
+ if (jobId === null || jobId === undefined) {
11019
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling batchConfirmLiveCommands.');
11020
+ }
11021
+ if (body === null || body === undefined) {
11022
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
11023
+ }
11024
+ if (authorization !== undefined && authorization !== null) {
11025
+ localVarHeaderParameter['Authorization'] = String(authorization);
11026
+ }
11027
+ if (xSdkDate !== undefined && xSdkDate !== null) {
11028
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
11029
+ }
11030
+ if (xProjectId !== undefined && xProjectId !== null) {
11031
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
11032
+ }
11033
+ if (xAppUserId !== undefined && xAppUserId !== null) {
11034
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
11035
+ }
11036
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11037
+ options.data = body !== undefined ? body : {};
11038
+ options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
11039
+ options.headers = localVarHeaderParameter;
11040
+ return options;
11041
+ },
10780
11042
  /**
10781
11043
  * 该接口用于控制数字人直播过程。
10782
11044
  *
@@ -11045,75 +11307,56 @@ const ParamCreater = function () {
11045
11307
  return options;
11046
11308
  },
11047
11309
  /**
11048
- * 该接口用于上报直播间事件。
11310
+ * 该接口用于查询租户未确认的互动规则命令列表,仅限于需要做二次确认的特定用户使用。
11049
11311
  *
11050
11312
  * Please refer to HUAWEI cloud API Explorer for details.
11051
11313
  */
11052
- liveEventReport(liveEventReportRequest) {
11314
+ listSmartLiveRuleCommands(listSmartLiveRuleCommandsRequest) {
11053
11315
  const options = {
11054
- method: "POST",
11055
- url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}/live-event-report",
11316
+ method: "GET",
11317
+ url: "/v1/{project_id}/smart-live-command/rule-commands",
11056
11318
  contentType: "application/json",
11057
11319
  queryParams: {},
11058
11320
  pathParams: {},
11059
- headers: {},
11060
- data: {}
11321
+ headers: {}
11061
11322
  };
11062
11323
  const localVarHeaderParameter = {};
11063
11324
  const localVarQueryParameter = {};
11064
- let body;
11065
- let roomId;
11066
- let jobId;
11067
11325
  let authorization;
11068
11326
  let xSdkDate;
11069
11327
  let xProjectId;
11070
11328
  let xAppUserId;
11071
- let authKey;
11072
- let expiresTime;
11073
- let refreshUrl;
11074
- if (liveEventReportRequest !== null && liveEventReportRequest !== undefined) {
11075
- if (liveEventReportRequest instanceof LiveEventReportRequest_1.LiveEventReportRequest) {
11076
- roomId = liveEventReportRequest.roomId;
11077
- jobId = liveEventReportRequest.jobId;
11078
- body = liveEventReportRequest.body;
11079
- authorization = liveEventReportRequest.authorization;
11080
- xSdkDate = liveEventReportRequest.xSdkDate;
11081
- xProjectId = liveEventReportRequest.xProjectId;
11082
- xAppUserId = liveEventReportRequest.xAppUserId;
11083
- authKey = liveEventReportRequest.authKey;
11084
- expiresTime = liveEventReportRequest.expiresTime;
11085
- refreshUrl = liveEventReportRequest.refreshUrl;
11086
- }
11087
- else {
11088
- roomId = liveEventReportRequest['room_id'];
11089
- jobId = liveEventReportRequest['job_id'];
11090
- body = liveEventReportRequest['body'];
11091
- authorization = liveEventReportRequest['Authorization'];
11092
- xSdkDate = liveEventReportRequest['X-Sdk-Date'];
11093
- xProjectId = liveEventReportRequest['X-Project-Id'];
11094
- xAppUserId = liveEventReportRequest['X-App-UserId'];
11095
- authKey = liveEventReportRequest['auth_key'];
11096
- expiresTime = liveEventReportRequest['expires_time'];
11097
- refreshUrl = liveEventReportRequest['refresh_url'];
11329
+ let jobId;
11330
+ let offset;
11331
+ let limit;
11332
+ if (listSmartLiveRuleCommandsRequest !== null && listSmartLiveRuleCommandsRequest !== undefined) {
11333
+ if (listSmartLiveRuleCommandsRequest instanceof ListSmartLiveRuleCommandsRequest_1.ListSmartLiveRuleCommandsRequest) {
11334
+ authorization = listSmartLiveRuleCommandsRequest.authorization;
11335
+ xSdkDate = listSmartLiveRuleCommandsRequest.xSdkDate;
11336
+ xProjectId = listSmartLiveRuleCommandsRequest.xProjectId;
11337
+ xAppUserId = listSmartLiveRuleCommandsRequest.xAppUserId;
11338
+ jobId = listSmartLiveRuleCommandsRequest.jobId;
11339
+ offset = listSmartLiveRuleCommandsRequest.offset;
11340
+ limit = listSmartLiveRuleCommandsRequest.limit;
11341
+ }
11342
+ else {
11343
+ authorization = listSmartLiveRuleCommandsRequest['Authorization'];
11344
+ xSdkDate = listSmartLiveRuleCommandsRequest['X-Sdk-Date'];
11345
+ xProjectId = listSmartLiveRuleCommandsRequest['X-Project-Id'];
11346
+ xAppUserId = listSmartLiveRuleCommandsRequest['X-App-UserId'];
11347
+ jobId = listSmartLiveRuleCommandsRequest['job_id'];
11348
+ offset = listSmartLiveRuleCommandsRequest['offset'];
11349
+ limit = listSmartLiveRuleCommandsRequest['limit'];
11098
11350
  }
11099
11351
  }
11100
- if (roomId === null || roomId === undefined) {
11101
- throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling liveEventReport.');
11102
- }
11103
- if (jobId === null || jobId === undefined) {
11104
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling liveEventReport.');
11105
- }
11106
- if (body === null || body === undefined) {
11107
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
11108
- }
11109
- if (authKey !== null && authKey !== undefined) {
11110
- localVarQueryParameter['auth_key'] = authKey;
11352
+ if (jobId !== null && jobId !== undefined) {
11353
+ localVarQueryParameter['job_id'] = jobId;
11111
11354
  }
11112
- if (expiresTime !== null && expiresTime !== undefined) {
11113
- localVarQueryParameter['expires_time'] = expiresTime;
11355
+ if (offset !== null && offset !== undefined) {
11356
+ localVarQueryParameter['offset'] = offset;
11114
11357
  }
11115
- if (refreshUrl !== null && refreshUrl !== undefined) {
11116
- localVarQueryParameter['refresh_url'] = refreshUrl;
11358
+ if (limit !== null && limit !== undefined) {
11359
+ localVarQueryParameter['limit'] = limit;
11117
11360
  }
11118
11361
  if (authorization !== undefined && authorization !== null) {
11119
11362
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -11127,35 +11370,190 @@ const ParamCreater = function () {
11127
11370
  if (xAppUserId !== undefined && xAppUserId !== null) {
11128
11371
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
11129
11372
  }
11130
- localVarHeaderParameter['Content-Type'] = 'application/json';
11131
- options.data = body !== undefined ? body : {};
11132
11373
  options.queryParams = localVarQueryParameter;
11133
- options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
11134
11374
  options.headers = localVarHeaderParameter;
11135
11375
  return options;
11136
11376
  },
11137
11377
  /**
11138
- * 该接口用于查询数字人智能直播任务详情。
11378
+ * 该接口用于查询租户未确认的剧本命令列表,仅限于需要做二次确认的特定用户使用。
11139
11379
  *
11140
11380
  * Please refer to HUAWEI cloud API Explorer for details.
11141
11381
  */
11142
- showSmartLive(showSmartLiveRequest) {
11382
+ listSmartLiveScriptCommands(listSmartLiveScriptCommandsRequest) {
11143
11383
  const options = {
11144
11384
  method: "GET",
11145
- url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}",
11385
+ url: "/v1/{project_id}/smart-live-command/script-commands",
11146
11386
  contentType: "application/json",
11147
11387
  queryParams: {},
11148
11388
  pathParams: {},
11149
11389
  headers: {}
11150
11390
  };
11151
11391
  const localVarHeaderParameter = {};
11152
- let roomId;
11153
- let jobId;
11392
+ const localVarQueryParameter = {};
11154
11393
  let authorization;
11155
11394
  let xSdkDate;
11156
11395
  let xProjectId;
11157
11396
  let xAppUserId;
11158
- if (showSmartLiveRequest !== null && showSmartLiveRequest !== undefined) {
11397
+ let jobId;
11398
+ let offset;
11399
+ let limit;
11400
+ if (listSmartLiveScriptCommandsRequest !== null && listSmartLiveScriptCommandsRequest !== undefined) {
11401
+ if (listSmartLiveScriptCommandsRequest instanceof ListSmartLiveScriptCommandsRequest_1.ListSmartLiveScriptCommandsRequest) {
11402
+ authorization = listSmartLiveScriptCommandsRequest.authorization;
11403
+ xSdkDate = listSmartLiveScriptCommandsRequest.xSdkDate;
11404
+ xProjectId = listSmartLiveScriptCommandsRequest.xProjectId;
11405
+ xAppUserId = listSmartLiveScriptCommandsRequest.xAppUserId;
11406
+ jobId = listSmartLiveScriptCommandsRequest.jobId;
11407
+ offset = listSmartLiveScriptCommandsRequest.offset;
11408
+ limit = listSmartLiveScriptCommandsRequest.limit;
11409
+ }
11410
+ else {
11411
+ authorization = listSmartLiveScriptCommandsRequest['Authorization'];
11412
+ xSdkDate = listSmartLiveScriptCommandsRequest['X-Sdk-Date'];
11413
+ xProjectId = listSmartLiveScriptCommandsRequest['X-Project-Id'];
11414
+ xAppUserId = listSmartLiveScriptCommandsRequest['X-App-UserId'];
11415
+ jobId = listSmartLiveScriptCommandsRequest['job_id'];
11416
+ offset = listSmartLiveScriptCommandsRequest['offset'];
11417
+ limit = listSmartLiveScriptCommandsRequest['limit'];
11418
+ }
11419
+ }
11420
+ if (jobId !== null && jobId !== undefined) {
11421
+ localVarQueryParameter['job_id'] = jobId;
11422
+ }
11423
+ if (offset !== null && offset !== undefined) {
11424
+ localVarQueryParameter['offset'] = offset;
11425
+ }
11426
+ if (limit !== null && limit !== undefined) {
11427
+ localVarQueryParameter['limit'] = limit;
11428
+ }
11429
+ if (authorization !== undefined && authorization !== null) {
11430
+ localVarHeaderParameter['Authorization'] = String(authorization);
11431
+ }
11432
+ if (xSdkDate !== undefined && xSdkDate !== null) {
11433
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
11434
+ }
11435
+ if (xProjectId !== undefined && xProjectId !== null) {
11436
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
11437
+ }
11438
+ if (xAppUserId !== undefined && xAppUserId !== null) {
11439
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
11440
+ }
11441
+ options.queryParams = localVarQueryParameter;
11442
+ options.headers = localVarHeaderParameter;
11443
+ return options;
11444
+ },
11445
+ /**
11446
+ * 该接口用于上报直播间事件。
11447
+ *
11448
+ * Please refer to HUAWEI cloud API Explorer for details.
11449
+ */
11450
+ liveEventReport(liveEventReportRequest) {
11451
+ const options = {
11452
+ method: "POST",
11453
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}/live-event-report",
11454
+ contentType: "application/json",
11455
+ queryParams: {},
11456
+ pathParams: {},
11457
+ headers: {},
11458
+ data: {}
11459
+ };
11460
+ const localVarHeaderParameter = {};
11461
+ const localVarQueryParameter = {};
11462
+ let body;
11463
+ let roomId;
11464
+ let jobId;
11465
+ let authorization;
11466
+ let xSdkDate;
11467
+ let xProjectId;
11468
+ let xAppUserId;
11469
+ let authKey;
11470
+ let expiresTime;
11471
+ let refreshUrl;
11472
+ if (liveEventReportRequest !== null && liveEventReportRequest !== undefined) {
11473
+ if (liveEventReportRequest instanceof LiveEventReportRequest_1.LiveEventReportRequest) {
11474
+ roomId = liveEventReportRequest.roomId;
11475
+ jobId = liveEventReportRequest.jobId;
11476
+ body = liveEventReportRequest.body;
11477
+ authorization = liveEventReportRequest.authorization;
11478
+ xSdkDate = liveEventReportRequest.xSdkDate;
11479
+ xProjectId = liveEventReportRequest.xProjectId;
11480
+ xAppUserId = liveEventReportRequest.xAppUserId;
11481
+ authKey = liveEventReportRequest.authKey;
11482
+ expiresTime = liveEventReportRequest.expiresTime;
11483
+ refreshUrl = liveEventReportRequest.refreshUrl;
11484
+ }
11485
+ else {
11486
+ roomId = liveEventReportRequest['room_id'];
11487
+ jobId = liveEventReportRequest['job_id'];
11488
+ body = liveEventReportRequest['body'];
11489
+ authorization = liveEventReportRequest['Authorization'];
11490
+ xSdkDate = liveEventReportRequest['X-Sdk-Date'];
11491
+ xProjectId = liveEventReportRequest['X-Project-Id'];
11492
+ xAppUserId = liveEventReportRequest['X-App-UserId'];
11493
+ authKey = liveEventReportRequest['auth_key'];
11494
+ expiresTime = liveEventReportRequest['expires_time'];
11495
+ refreshUrl = liveEventReportRequest['refresh_url'];
11496
+ }
11497
+ }
11498
+ if (roomId === null || roomId === undefined) {
11499
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling liveEventReport.');
11500
+ }
11501
+ if (jobId === null || jobId === undefined) {
11502
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling liveEventReport.');
11503
+ }
11504
+ if (body === null || body === undefined) {
11505
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
11506
+ }
11507
+ if (authKey !== null && authKey !== undefined) {
11508
+ localVarQueryParameter['auth_key'] = authKey;
11509
+ }
11510
+ if (expiresTime !== null && expiresTime !== undefined) {
11511
+ localVarQueryParameter['expires_time'] = expiresTime;
11512
+ }
11513
+ if (refreshUrl !== null && refreshUrl !== undefined) {
11514
+ localVarQueryParameter['refresh_url'] = refreshUrl;
11515
+ }
11516
+ if (authorization !== undefined && authorization !== null) {
11517
+ localVarHeaderParameter['Authorization'] = String(authorization);
11518
+ }
11519
+ if (xSdkDate !== undefined && xSdkDate !== null) {
11520
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
11521
+ }
11522
+ if (xProjectId !== undefined && xProjectId !== null) {
11523
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
11524
+ }
11525
+ if (xAppUserId !== undefined && xAppUserId !== null) {
11526
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
11527
+ }
11528
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11529
+ options.data = body !== undefined ? body : {};
11530
+ options.queryParams = localVarQueryParameter;
11531
+ options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
11532
+ options.headers = localVarHeaderParameter;
11533
+ return options;
11534
+ },
11535
+ /**
11536
+ * 该接口用于查询数字人智能直播任务详情。
11537
+ *
11538
+ * Please refer to HUAWEI cloud API Explorer for details.
11539
+ */
11540
+ showSmartLive(showSmartLiveRequest) {
11541
+ const options = {
11542
+ method: "GET",
11543
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}",
11544
+ contentType: "application/json",
11545
+ queryParams: {},
11546
+ pathParams: {},
11547
+ headers: {}
11548
+ };
11549
+ const localVarHeaderParameter = {};
11550
+ let roomId;
11551
+ let jobId;
11552
+ let authorization;
11553
+ let xSdkDate;
11554
+ let xProjectId;
11555
+ let xAppUserId;
11556
+ if (showSmartLiveRequest !== null && showSmartLiveRequest !== undefined) {
11159
11557
  if (showSmartLiveRequest instanceof ShowSmartLiveRequest_1.ShowSmartLiveRequest) {
11160
11558
  roomId = showSmartLiveRequest.roomId;
11161
11559
  jobId = showSmartLiveRequest.jobId;
@@ -11320,6 +11718,70 @@ const ParamCreater = function () {
11320
11718
  options.headers = localVarHeaderParameter;
11321
11719
  return options;
11322
11720
  },
11721
+ /**
11722
+ * 该接口用直播间二次确认
11723
+ *
11724
+ * Please refer to HUAWEI cloud API Explorer for details.
11725
+ */
11726
+ confirmSmartLiveRoom(confirmSmartLiveRoomRequest) {
11727
+ const options = {
11728
+ method: "POST",
11729
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/confirm",
11730
+ contentType: "application/json",
11731
+ queryParams: {},
11732
+ pathParams: {},
11733
+ headers: {},
11734
+ data: {}
11735
+ };
11736
+ const localVarHeaderParameter = {};
11737
+ let body;
11738
+ let roomId;
11739
+ let authorization;
11740
+ let xSdkDate;
11741
+ let xProjectId;
11742
+ let xAppUserId;
11743
+ if (confirmSmartLiveRoomRequest !== null && confirmSmartLiveRoomRequest !== undefined) {
11744
+ if (confirmSmartLiveRoomRequest instanceof ConfirmSmartLiveRoomRequest_1.ConfirmSmartLiveRoomRequest) {
11745
+ roomId = confirmSmartLiveRoomRequest.roomId;
11746
+ body = confirmSmartLiveRoomRequest.body;
11747
+ authorization = confirmSmartLiveRoomRequest.authorization;
11748
+ xSdkDate = confirmSmartLiveRoomRequest.xSdkDate;
11749
+ xProjectId = confirmSmartLiveRoomRequest.xProjectId;
11750
+ xAppUserId = confirmSmartLiveRoomRequest.xAppUserId;
11751
+ }
11752
+ else {
11753
+ roomId = confirmSmartLiveRoomRequest['room_id'];
11754
+ body = confirmSmartLiveRoomRequest['body'];
11755
+ authorization = confirmSmartLiveRoomRequest['Authorization'];
11756
+ xSdkDate = confirmSmartLiveRoomRequest['X-Sdk-Date'];
11757
+ xProjectId = confirmSmartLiveRoomRequest['X-Project-Id'];
11758
+ xAppUserId = confirmSmartLiveRoomRequest['X-App-UserId'];
11759
+ }
11760
+ }
11761
+ if (roomId === null || roomId === undefined) {
11762
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling confirmSmartLiveRoom.');
11763
+ }
11764
+ if (body === null || body === undefined) {
11765
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
11766
+ }
11767
+ if (authorization !== undefined && authorization !== null) {
11768
+ localVarHeaderParameter['Authorization'] = String(authorization);
11769
+ }
11770
+ if (xSdkDate !== undefined && xSdkDate !== null) {
11771
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
11772
+ }
11773
+ if (xProjectId !== undefined && xProjectId !== null) {
11774
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
11775
+ }
11776
+ if (xAppUserId !== undefined && xAppUserId !== null) {
11777
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
11778
+ }
11779
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11780
+ options.data = body !== undefined ? body : {};
11781
+ options.pathParams = { 'room_id': roomId, };
11782
+ options.headers = localVarHeaderParameter;
11783
+ return options;
11784
+ },
11323
11785
  /**
11324
11786
  * 该接口用于创建智能直播间互动规则库。
11325
11787
  *
@@ -11654,6 +12116,7 @@ const ParamCreater = function () {
11654
12116
  let endTime;
11655
12117
  let roomType;
11656
12118
  let templateOwnType;
12119
+ let confirmState;
11657
12120
  if (listSmartLiveRoomsRequest !== null && listSmartLiveRoomsRequest !== undefined) {
11658
12121
  if (listSmartLiveRoomsRequest instanceof ListSmartLiveRoomsRequest_1.ListSmartLiveRoomsRequest) {
11659
12122
  authorization = listSmartLiveRoomsRequest.authorization;
@@ -11670,6 +12133,7 @@ const ParamCreater = function () {
11670
12133
  endTime = listSmartLiveRoomsRequest.endTime;
11671
12134
  roomType = listSmartLiveRoomsRequest.roomType;
11672
12135
  templateOwnType = listSmartLiveRoomsRequest.templateOwnType;
12136
+ confirmState = listSmartLiveRoomsRequest.confirmState;
11673
12137
  }
11674
12138
  else {
11675
12139
  authorization = listSmartLiveRoomsRequest['Authorization'];
@@ -11686,6 +12150,7 @@ const ParamCreater = function () {
11686
12150
  endTime = listSmartLiveRoomsRequest['end_time'];
11687
12151
  roomType = listSmartLiveRoomsRequest['room_type'];
11688
12152
  templateOwnType = listSmartLiveRoomsRequest['template_own_type'];
12153
+ confirmState = listSmartLiveRoomsRequest['confirm_state'];
11689
12154
  }
11690
12155
  }
11691
12156
  if (offset !== null && offset !== undefined) {
@@ -11718,6 +12183,9 @@ const ParamCreater = function () {
11718
12183
  if (templateOwnType !== null && templateOwnType !== undefined) {
11719
12184
  localVarQueryParameter['template_own_type'] = templateOwnType;
11720
12185
  }
12186
+ if (confirmState !== null && confirmState !== undefined) {
12187
+ localVarQueryParameter['confirm_state'] = confirmState;
12188
+ }
11721
12189
  if (authorization !== undefined && authorization !== null) {
11722
12190
  localVarHeaderParameter['Authorization'] = String(authorization);
11723
12191
  }
@@ -12750,6 +13218,8 @@ const ParamCreater = function () {
12750
13218
  let limit;
12751
13219
  let createUntil;
12752
13220
  let createSince;
13221
+ let updateUntil;
13222
+ let updateSince;
12753
13223
  let xAppUserId;
12754
13224
  let state;
12755
13225
  let jobId;
@@ -12757,12 +13227,16 @@ const ParamCreater = function () {
12757
13227
  let tag;
12758
13228
  let jobType;
12759
13229
  let batchName;
13230
+ let sortKey;
13231
+ let sortDir;
12760
13232
  if (listVoiceTrainingJobRequest !== null && listVoiceTrainingJobRequest !== undefined) {
12761
13233
  if (listVoiceTrainingJobRequest instanceof ListVoiceTrainingJobRequest_1.ListVoiceTrainingJobRequest) {
12762
13234
  offset = listVoiceTrainingJobRequest.offset;
12763
13235
  limit = listVoiceTrainingJobRequest.limit;
12764
13236
  createUntil = listVoiceTrainingJobRequest.createUntil;
12765
13237
  createSince = listVoiceTrainingJobRequest.createSince;
13238
+ updateUntil = listVoiceTrainingJobRequest.updateUntil;
13239
+ updateSince = listVoiceTrainingJobRequest.updateSince;
12766
13240
  xAppUserId = listVoiceTrainingJobRequest.xAppUserId;
12767
13241
  state = listVoiceTrainingJobRequest.state;
12768
13242
  jobId = listVoiceTrainingJobRequest.jobId;
@@ -12770,12 +13244,16 @@ const ParamCreater = function () {
12770
13244
  tag = listVoiceTrainingJobRequest.tag;
12771
13245
  jobType = listVoiceTrainingJobRequest.jobType;
12772
13246
  batchName = listVoiceTrainingJobRequest.batchName;
13247
+ sortKey = listVoiceTrainingJobRequest.sortKey;
13248
+ sortDir = listVoiceTrainingJobRequest.sortDir;
12773
13249
  }
12774
13250
  else {
12775
13251
  offset = listVoiceTrainingJobRequest['offset'];
12776
13252
  limit = listVoiceTrainingJobRequest['limit'];
12777
13253
  createUntil = listVoiceTrainingJobRequest['create_until'];
12778
13254
  createSince = listVoiceTrainingJobRequest['create_since'];
13255
+ updateUntil = listVoiceTrainingJobRequest['update_until'];
13256
+ updateSince = listVoiceTrainingJobRequest['update_since'];
12779
13257
  xAppUserId = listVoiceTrainingJobRequest['X-App-UserId'];
12780
13258
  state = listVoiceTrainingJobRequest['state'];
12781
13259
  jobId = listVoiceTrainingJobRequest['job_id'];
@@ -12783,6 +13261,8 @@ const ParamCreater = function () {
12783
13261
  tag = listVoiceTrainingJobRequest['tag'];
12784
13262
  jobType = listVoiceTrainingJobRequest['job_type'];
12785
13263
  batchName = listVoiceTrainingJobRequest['batch_name'];
13264
+ sortKey = listVoiceTrainingJobRequest['sort_key'];
13265
+ sortDir = listVoiceTrainingJobRequest['sort_dir'];
12786
13266
  }
12787
13267
  }
12788
13268
  if (offset !== null && offset !== undefined) {
@@ -12797,6 +13277,12 @@ const ParamCreater = function () {
12797
13277
  if (createSince !== null && createSince !== undefined) {
12798
13278
  localVarQueryParameter['create_since'] = createSince;
12799
13279
  }
13280
+ if (updateUntil !== null && updateUntil !== undefined) {
13281
+ localVarQueryParameter['update_until'] = updateUntil;
13282
+ }
13283
+ if (updateSince !== null && updateSince !== undefined) {
13284
+ localVarQueryParameter['update_since'] = updateSince;
13285
+ }
12800
13286
  if (state !== null && state !== undefined) {
12801
13287
  localVarQueryParameter['state'] = state;
12802
13288
  }
@@ -12815,6 +13301,12 @@ const ParamCreater = function () {
12815
13301
  if (batchName !== null && batchName !== undefined) {
12816
13302
  localVarQueryParameter['batch_name'] = batchName;
12817
13303
  }
13304
+ if (sortKey !== null && sortKey !== undefined) {
13305
+ localVarQueryParameter['sort_key'] = sortKey;
13306
+ }
13307
+ if (sortDir !== null && sortDir !== undefined) {
13308
+ localVarQueryParameter['sort_dir'] = sortDir;
13309
+ }
12818
13310
  if (xAppUserId !== undefined && xAppUserId !== null) {
12819
13311
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
12820
13312
  }
@@ -13822,6 +14314,311 @@ const ParamCreater = function () {
13822
14314
  options.headers = localVarHeaderParameter;
13823
14315
  return options;
13824
14316
  },
14317
+ /**
14318
+ * 该接口用于设置TTS租户级扩展词表配置。
14319
+ *
14320
+ * Please refer to HUAWEI cloud API Explorer for details.
14321
+ */
14322
+ createTtscVocabularyConfigs(createTtscVocabularyConfigsRequest) {
14323
+ const options = {
14324
+ method: "POST",
14325
+ url: "/v1/{project_id}/ttsc/vocabulary-configs",
14326
+ contentType: "application/json",
14327
+ queryParams: {},
14328
+ pathParams: {},
14329
+ headers: {},
14330
+ data: {}
14331
+ };
14332
+ const localVarHeaderParameter = {};
14333
+ let body;
14334
+ let xRequestId;
14335
+ let authorization;
14336
+ let xSdkDate;
14337
+ let xProjectId;
14338
+ let xAppUserId;
14339
+ if (createTtscVocabularyConfigsRequest !== null && createTtscVocabularyConfigsRequest !== undefined) {
14340
+ if (createTtscVocabularyConfigsRequest instanceof CreateTtscVocabularyConfigsRequest_1.CreateTtscVocabularyConfigsRequest) {
14341
+ body = createTtscVocabularyConfigsRequest.body;
14342
+ xRequestId = createTtscVocabularyConfigsRequest.xRequestId;
14343
+ authorization = createTtscVocabularyConfigsRequest.authorization;
14344
+ xSdkDate = createTtscVocabularyConfigsRequest.xSdkDate;
14345
+ xProjectId = createTtscVocabularyConfigsRequest.xProjectId;
14346
+ xAppUserId = createTtscVocabularyConfigsRequest.xAppUserId;
14347
+ }
14348
+ else {
14349
+ body = createTtscVocabularyConfigsRequest['body'];
14350
+ xRequestId = createTtscVocabularyConfigsRequest['X-Request-Id'];
14351
+ authorization = createTtscVocabularyConfigsRequest['Authorization'];
14352
+ xSdkDate = createTtscVocabularyConfigsRequest['X-Sdk-Date'];
14353
+ xProjectId = createTtscVocabularyConfigsRequest['X-Project-Id'];
14354
+ xAppUserId = createTtscVocabularyConfigsRequest['X-App-UserId'];
14355
+ }
14356
+ }
14357
+ if (body === null || body === undefined) {
14358
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
14359
+ }
14360
+ if (xRequestId !== undefined && xRequestId !== null) {
14361
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
14362
+ }
14363
+ if (authorization !== undefined && authorization !== null) {
14364
+ localVarHeaderParameter['Authorization'] = String(authorization);
14365
+ }
14366
+ if (xSdkDate !== undefined && xSdkDate !== null) {
14367
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
14368
+ }
14369
+ if (xProjectId !== undefined && xProjectId !== null) {
14370
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
14371
+ }
14372
+ if (xAppUserId !== undefined && xAppUserId !== null) {
14373
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
14374
+ }
14375
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14376
+ options.data = body !== undefined ? body : {};
14377
+ options.headers = localVarHeaderParameter;
14378
+ return options;
14379
+ },
14380
+ /**
14381
+ * 该接口用于删除TTS租户级词表扩展配置。
14382
+ *
14383
+ * Please refer to HUAWEI cloud API Explorer for details.
14384
+ */
14385
+ deleteTtscVocabularyConfigs(deleteTtscVocabularyConfigsRequest) {
14386
+ const options = {
14387
+ method: "DELETE",
14388
+ url: "/v1/{project_id}/ttsc/vocabulary-configs",
14389
+ contentType: "application/json",
14390
+ queryParams: {},
14391
+ pathParams: {},
14392
+ headers: {},
14393
+ data: {}
14394
+ };
14395
+ const localVarHeaderParameter = {};
14396
+ const localVarQueryParameter = {};
14397
+ let body;
14398
+ let xRequestId;
14399
+ let authorization;
14400
+ let xSdkDate;
14401
+ let xProjectId;
14402
+ let xAppUserId;
14403
+ let offset;
14404
+ let limit;
14405
+ if (deleteTtscVocabularyConfigsRequest !== null && deleteTtscVocabularyConfigsRequest !== undefined) {
14406
+ if (deleteTtscVocabularyConfigsRequest instanceof DeleteTtscVocabularyConfigsRequest_1.DeleteTtscVocabularyConfigsRequest) {
14407
+ body = deleteTtscVocabularyConfigsRequest.body;
14408
+ xRequestId = deleteTtscVocabularyConfigsRequest.xRequestId;
14409
+ authorization = deleteTtscVocabularyConfigsRequest.authorization;
14410
+ xSdkDate = deleteTtscVocabularyConfigsRequest.xSdkDate;
14411
+ xProjectId = deleteTtscVocabularyConfigsRequest.xProjectId;
14412
+ xAppUserId = deleteTtscVocabularyConfigsRequest.xAppUserId;
14413
+ offset = deleteTtscVocabularyConfigsRequest.offset;
14414
+ limit = deleteTtscVocabularyConfigsRequest.limit;
14415
+ }
14416
+ else {
14417
+ body = deleteTtscVocabularyConfigsRequest['body'];
14418
+ xRequestId = deleteTtscVocabularyConfigsRequest['X-Request-Id'];
14419
+ authorization = deleteTtscVocabularyConfigsRequest['Authorization'];
14420
+ xSdkDate = deleteTtscVocabularyConfigsRequest['X-Sdk-Date'];
14421
+ xProjectId = deleteTtscVocabularyConfigsRequest['X-Project-Id'];
14422
+ xAppUserId = deleteTtscVocabularyConfigsRequest['X-App-UserId'];
14423
+ offset = deleteTtscVocabularyConfigsRequest['offset'];
14424
+ limit = deleteTtscVocabularyConfigsRequest['limit'];
14425
+ }
14426
+ }
14427
+ if (body === null || body === undefined) {
14428
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
14429
+ }
14430
+ if (offset !== null && offset !== undefined) {
14431
+ localVarQueryParameter['offset'] = offset;
14432
+ }
14433
+ if (limit !== null && limit !== undefined) {
14434
+ localVarQueryParameter['limit'] = limit;
14435
+ }
14436
+ if (xRequestId !== undefined && xRequestId !== null) {
14437
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
14438
+ }
14439
+ if (authorization !== undefined && authorization !== null) {
14440
+ localVarHeaderParameter['Authorization'] = String(authorization);
14441
+ }
14442
+ if (xSdkDate !== undefined && xSdkDate !== null) {
14443
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
14444
+ }
14445
+ if (xProjectId !== undefined && xProjectId !== null) {
14446
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
14447
+ }
14448
+ if (xAppUserId !== undefined && xAppUserId !== null) {
14449
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
14450
+ }
14451
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14452
+ options.data = body !== undefined ? body : {};
14453
+ options.queryParams = localVarQueryParameter;
14454
+ options.headers = localVarHeaderParameter;
14455
+ return options;
14456
+ },
14457
+ /**
14458
+ * 该接口用于获取TTS租户级词表扩展配置。
14459
+ *
14460
+ * Please refer to HUAWEI cloud API Explorer for details.
14461
+ */
14462
+ listTtscVocabularyConfigs(listTtscVocabularyConfigsRequest) {
14463
+ const options = {
14464
+ method: "GET",
14465
+ url: "/v1/{project_id}/ttsc/vocabulary-configs",
14466
+ contentType: "application/json",
14467
+ queryParams: {},
14468
+ pathParams: {},
14469
+ headers: {}
14470
+ };
14471
+ const localVarHeaderParameter = {};
14472
+ const localVarQueryParameter = {};
14473
+ let type;
14474
+ let xRequestId;
14475
+ let authorization;
14476
+ let xSdkDate;
14477
+ let xProjectId;
14478
+ let xAppUserId;
14479
+ let limit;
14480
+ let offset;
14481
+ let startTime;
14482
+ let endTime;
14483
+ let searchKey;
14484
+ if (listTtscVocabularyConfigsRequest !== null && listTtscVocabularyConfigsRequest !== undefined) {
14485
+ if (listTtscVocabularyConfigsRequest instanceof ListTtscVocabularyConfigsRequest_1.ListTtscVocabularyConfigsRequest) {
14486
+ type = listTtscVocabularyConfigsRequest.type;
14487
+ xRequestId = listTtscVocabularyConfigsRequest.xRequestId;
14488
+ authorization = listTtscVocabularyConfigsRequest.authorization;
14489
+ xSdkDate = listTtscVocabularyConfigsRequest.xSdkDate;
14490
+ xProjectId = listTtscVocabularyConfigsRequest.xProjectId;
14491
+ xAppUserId = listTtscVocabularyConfigsRequest.xAppUserId;
14492
+ limit = listTtscVocabularyConfigsRequest.limit;
14493
+ offset = listTtscVocabularyConfigsRequest.offset;
14494
+ startTime = listTtscVocabularyConfigsRequest.startTime;
14495
+ endTime = listTtscVocabularyConfigsRequest.endTime;
14496
+ searchKey = listTtscVocabularyConfigsRequest.searchKey;
14497
+ }
14498
+ else {
14499
+ type = listTtscVocabularyConfigsRequest['type'];
14500
+ xRequestId = listTtscVocabularyConfigsRequest['X-Request-Id'];
14501
+ authorization = listTtscVocabularyConfigsRequest['Authorization'];
14502
+ xSdkDate = listTtscVocabularyConfigsRequest['X-Sdk-Date'];
14503
+ xProjectId = listTtscVocabularyConfigsRequest['X-Project-Id'];
14504
+ xAppUserId = listTtscVocabularyConfigsRequest['X-App-UserId'];
14505
+ limit = listTtscVocabularyConfigsRequest['limit'];
14506
+ offset = listTtscVocabularyConfigsRequest['offset'];
14507
+ startTime = listTtscVocabularyConfigsRequest['start_time'];
14508
+ endTime = listTtscVocabularyConfigsRequest['end_time'];
14509
+ searchKey = listTtscVocabularyConfigsRequest['search_key'];
14510
+ }
14511
+ }
14512
+ if (type === null || type === undefined) {
14513
+ throw new RequiredError('type', 'Required parameter type was null or undefined when calling listTtscVocabularyConfigs.');
14514
+ }
14515
+ if (type !== null && type !== undefined) {
14516
+ localVarQueryParameter['type'] = type;
14517
+ }
14518
+ if (limit !== null && limit !== undefined) {
14519
+ localVarQueryParameter['limit'] = limit;
14520
+ }
14521
+ if (offset !== null && offset !== undefined) {
14522
+ localVarQueryParameter['offset'] = offset;
14523
+ }
14524
+ if (startTime !== null && startTime !== undefined) {
14525
+ localVarQueryParameter['start_time'] = startTime;
14526
+ }
14527
+ if (endTime !== null && endTime !== undefined) {
14528
+ localVarQueryParameter['end_time'] = endTime;
14529
+ }
14530
+ if (searchKey !== null && searchKey !== undefined) {
14531
+ localVarQueryParameter['search_key'] = searchKey;
14532
+ }
14533
+ if (xRequestId !== undefined && xRequestId !== null) {
14534
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
14535
+ }
14536
+ if (authorization !== undefined && authorization !== null) {
14537
+ localVarHeaderParameter['Authorization'] = String(authorization);
14538
+ }
14539
+ if (xSdkDate !== undefined && xSdkDate !== null) {
14540
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
14541
+ }
14542
+ if (xProjectId !== undefined && xProjectId !== null) {
14543
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
14544
+ }
14545
+ if (xAppUserId !== undefined && xAppUserId !== null) {
14546
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
14547
+ }
14548
+ options.queryParams = localVarQueryParameter;
14549
+ options.headers = localVarHeaderParameter;
14550
+ return options;
14551
+ },
14552
+ /**
14553
+ * 该接口用于修改TTS租户级扩展词表配置。
14554
+ *
14555
+ * Please refer to HUAWEI cloud API Explorer for details.
14556
+ */
14557
+ saveTtscVocabularyConfigs(saveTtscVocabularyConfigsRequest) {
14558
+ const options = {
14559
+ method: "PUT",
14560
+ url: "/v1/{project_id}/ttsc/vocabulary-configs/{vocabulary_id}",
14561
+ contentType: "application/json",
14562
+ queryParams: {},
14563
+ pathParams: {},
14564
+ headers: {},
14565
+ data: {}
14566
+ };
14567
+ const localVarHeaderParameter = {};
14568
+ let body;
14569
+ let vocabularyId;
14570
+ let xRequestId;
14571
+ let authorization;
14572
+ let xSdkDate;
14573
+ let xProjectId;
14574
+ let xAppUserId;
14575
+ if (saveTtscVocabularyConfigsRequest !== null && saveTtscVocabularyConfigsRequest !== undefined) {
14576
+ if (saveTtscVocabularyConfigsRequest instanceof SaveTtscVocabularyConfigsRequest_1.SaveTtscVocabularyConfigsRequest) {
14577
+ vocabularyId = saveTtscVocabularyConfigsRequest.vocabularyId;
14578
+ body = saveTtscVocabularyConfigsRequest.body;
14579
+ xRequestId = saveTtscVocabularyConfigsRequest.xRequestId;
14580
+ authorization = saveTtscVocabularyConfigsRequest.authorization;
14581
+ xSdkDate = saveTtscVocabularyConfigsRequest.xSdkDate;
14582
+ xProjectId = saveTtscVocabularyConfigsRequest.xProjectId;
14583
+ xAppUserId = saveTtscVocabularyConfigsRequest.xAppUserId;
14584
+ }
14585
+ else {
14586
+ vocabularyId = saveTtscVocabularyConfigsRequest['vocabulary_id'];
14587
+ body = saveTtscVocabularyConfigsRequest['body'];
14588
+ xRequestId = saveTtscVocabularyConfigsRequest['X-Request-Id'];
14589
+ authorization = saveTtscVocabularyConfigsRequest['Authorization'];
14590
+ xSdkDate = saveTtscVocabularyConfigsRequest['X-Sdk-Date'];
14591
+ xProjectId = saveTtscVocabularyConfigsRequest['X-Project-Id'];
14592
+ xAppUserId = saveTtscVocabularyConfigsRequest['X-App-UserId'];
14593
+ }
14594
+ }
14595
+ if (vocabularyId === null || vocabularyId === undefined) {
14596
+ throw new RequiredError('vocabularyId', 'Required parameter vocabularyId was null or undefined when calling saveTtscVocabularyConfigs.');
14597
+ }
14598
+ if (body === null || body === undefined) {
14599
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
14600
+ }
14601
+ if (xRequestId !== undefined && xRequestId !== null) {
14602
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
14603
+ }
14604
+ if (authorization !== undefined && authorization !== null) {
14605
+ localVarHeaderParameter['Authorization'] = String(authorization);
14606
+ }
14607
+ if (xSdkDate !== undefined && xSdkDate !== null) {
14608
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
14609
+ }
14610
+ if (xProjectId !== undefined && xProjectId !== null) {
14611
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
14612
+ }
14613
+ if (xAppUserId !== undefined && xAppUserId !== null) {
14614
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
14615
+ }
14616
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14617
+ options.data = body !== undefined ? body : {};
14618
+ options.pathParams = { 'vocabulary_id': vocabularyId, };
14619
+ options.headers = localVarHeaderParameter;
14620
+ return options;
14621
+ },
13825
14622
  /**
13826
14623
  * 该接口用于获取TTS音频文件下载链接。
13827
14624
  *