@huaweicloud/huaweicloud-sdk-metastudio 3.1.148 → 3.1.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/v1/MetaStudioClient.d.ts +160 -125
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +508 -393
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/ChatResourceConfig.d.ts +12 -0
- package/v1/model/ChatResourceConfig.d.ts.map +1 -0
- package/v1/model/ChatResourceConfig.js +29 -0
- package/v1/model/ChatResourceConfig.js.map +1 -0
- package/v1/model/ChatResourceConfigInfo.d.ts +61 -0
- package/v1/model/ChatResourceConfigInfo.d.ts.map +1 -0
- package/v1/model/ChatResourceConfigInfo.js +113 -0
- package/v1/model/ChatResourceConfigInfo.js.map +1 -0
- package/v1/model/ChatVoiceConfig.d.ts +5 -1
- package/v1/model/ChatVoiceConfig.d.ts.map +1 -1
- package/v1/model/ChatVoiceConfig.js +4 -0
- package/v1/model/ChatVoiceConfig.js.map +1 -1
- package/v1/model/CreateSmartChatRoomReq.d.ts +14 -1
- package/v1/model/CreateSmartChatRoomReq.d.ts.map +1 -1
- package/v1/model/CreateSmartChatRoomReq.js +24 -0
- package/v1/model/CreateSmartChatRoomReq.js.map +1 -1
- package/v1/model/CreateSmartChatRoomRequestBody.d.ts +90 -0
- package/v1/model/CreateSmartChatRoomRequestBody.d.ts.map +1 -0
- package/v1/model/CreateSmartChatRoomRequestBody.js +177 -0
- package/v1/model/CreateSmartChatRoomRequestBody.js.map +1 -0
- package/v1/model/LiveEventReportRequest.d.ts +8 -0
- package/v1/model/LiveEventReportRequest.d.ts.map +1 -1
- package/v1/model/LiveEventReportRequest.js +20 -0
- package/v1/model/LiveEventReportRequest.js.map +1 -1
- package/v1/model/LiveJobRunConfig.d.ts +2 -1
- package/v1/model/LiveJobRunConfig.d.ts.map +1 -1
- package/v1/model/LiveJobRunConfig.js +1 -0
- package/v1/model/LiveJobRunConfig.js.map +1 -1
- package/v1/model/PlayPolicy.d.ts +4 -0
- package/v1/model/PlayPolicy.d.ts.map +1 -1
- package/v1/model/PlayPolicy.js +10 -0
- package/v1/model/PlayPolicy.js.map +1 -1
- package/v1/model/ShowSmartChatRoomResponse.d.ts +18 -1
- package/v1/model/ShowSmartChatRoomResponse.d.ts.map +1 -1
- package/v1/model/ShowSmartChatRoomResponse.js +34 -0
- package/v1/model/ShowSmartChatRoomResponse.js.map +1 -1
- package/v1/model/ShowSmartLiveResponse.d.ts +1 -0
- package/v1/model/ShowSmartLiveResponse.d.ts.map +1 -1
- package/v1/model/ShowSmartLiveResponse.js +1 -0
- package/v1/model/ShowSmartLiveResponse.js.map +1 -1
- package/v1/model/ShowTtsPhoneticSymbolRequest.d.ts +30 -0
- package/v1/model/ShowTtsPhoneticSymbolRequest.d.ts.map +1 -0
- package/v1/model/ShowTtsPhoneticSymbolRequest.js +72 -0
- package/v1/model/ShowTtsPhoneticSymbolRequest.js.map +1 -0
- package/v1/model/ShowTtsPhoneticSymbolResponse.d.ts +7 -0
- package/v1/model/ShowTtsPhoneticSymbolResponse.d.ts.map +1 -0
- package/v1/model/ShowTtsPhoneticSymbolResponse.js +15 -0
- package/v1/model/ShowTtsPhoneticSymbolResponse.js.map +1 -0
- package/v1/model/SmartChatRoomBaseInfo.d.ts +9 -1
- package/v1/model/SmartChatRoomBaseInfo.d.ts.map +1 -1
- package/v1/model/SmartChatRoomBaseInfo.js +14 -0
- package/v1/model/SmartChatRoomBaseInfo.js.map +1 -1
- package/v1/model/SmartLiveJob.d.ts +1 -0
- package/v1/model/SmartLiveJob.d.ts.map +1 -1
- package/v1/model/SmartLiveJob.js +1 -0
- package/v1/model/SmartLiveJob.js.map +1 -1
- package/v1/model/TriggerProcess.d.ts +1 -0
- package/v1/model/TriggerProcess.d.ts.map +1 -1
- package/v1/model/TriggerProcess.js +1 -0
- package/v1/model/TriggerProcess.js.map +1 -1
- package/v1/model/UpdateSmartChatRoomResponse.d.ts +18 -1
- package/v1/model/UpdateSmartChatRoomResponse.d.ts.map +1 -1
- package/v1/model/UpdateSmartChatRoomResponse.js +34 -0
- package/v1/model/UpdateSmartChatRoomResponse.js.map +1 -1
- package/v1/model/VoiceConfigRsp.d.ts +5 -1
- package/v1/model/VoiceConfigRsp.d.ts.map +1 -1
- package/v1/model/VoiceConfigRsp.js +4 -0
- package/v1/model/VoiceConfigRsp.js.map +1 -1
- package/v1/public-api.d.ts +5 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +5 -0
- package/v1/public-api.js.map +1 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -160,6 +160,7 @@ const ShowSmartLiveRoomRequest_1 = require("./model/ShowSmartLiveRoomRequest");
|
|
|
160
160
|
const ShowSubtitleFileRequest_1 = require("./model/ShowSubtitleFileRequest");
|
|
161
161
|
const ShowTrainingSegmentInfoRequest_1 = require("./model/ShowTrainingSegmentInfoRequest");
|
|
162
162
|
const ShowTtsAuditionFileRequest_1 = require("./model/ShowTtsAuditionFileRequest");
|
|
163
|
+
const ShowTtsPhoneticSymbolRequest_1 = require("./model/ShowTtsPhoneticSymbolRequest");
|
|
163
164
|
const ShowVideoMotionCaptureJobRequest_1 = require("./model/ShowVideoMotionCaptureJobRequest");
|
|
164
165
|
const ShowVideoScriptRequest_1 = require("./model/ShowVideoScriptRequest");
|
|
165
166
|
const ShowVoiceTrainingJobRequest_1 = require("./model/ShowVoiceTrainingJobRequest");
|
|
@@ -1316,6 +1317,91 @@ class MetaStudioClient {
|
|
|
1316
1317
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
1317
1318
|
return this.hcClient.sendRequest(options);
|
|
1318
1319
|
}
|
|
1320
|
+
/**
|
|
1321
|
+
* 该接口用于创建智能直播间互动规则库。
|
|
1322
|
+
*
|
|
1323
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1324
|
+
*
|
|
1325
|
+
* @summary 创建智能直播间互动规则库
|
|
1326
|
+
* @param {InteractionRuleGroup} createInteractionRuleGroupRequestBody 创建智能直播间互动规则。
|
|
1327
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1328
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1329
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1330
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
1335
|
+
const options = (0, exports.ParamCreater)().createInteractionRuleGroup(createInteractionRuleGroupRequest);
|
|
1336
|
+
// @ts-ignore
|
|
1337
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1338
|
+
return this.hcClient.sendRequest(options);
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* 该接口用于删除智能直播间互动规则库。
|
|
1342
|
+
*
|
|
1343
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1344
|
+
*
|
|
1345
|
+
* @summary 删除智能直播间互动规则库
|
|
1346
|
+
* @param {string} groupId 互动规则库ID。
|
|
1347
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1348
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1349
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1350
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
*/
|
|
1354
|
+
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
1355
|
+
const options = (0, exports.ParamCreater)().deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest);
|
|
1356
|
+
// @ts-ignore
|
|
1357
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1358
|
+
return this.hcClient.sendRequest(options);
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* 该接口用于智能直播间互动规则库列表。
|
|
1362
|
+
*
|
|
1363
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1364
|
+
*
|
|
1365
|
+
* @summary 查询智能直播间互动规则库列表
|
|
1366
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1367
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1368
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1369
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1370
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1371
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
1372
|
+
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
1373
|
+
* @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
|
|
1374
|
+
* @param {string} [groupName] 规则库名称
|
|
1375
|
+
* @param {*} [options] Override http request option.
|
|
1376
|
+
* @throws {RequiredError}
|
|
1377
|
+
*/
|
|
1378
|
+
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
1379
|
+
const options = (0, exports.ParamCreater)().listInteractionRuleGroups(listInteractionRuleGroupsRequest);
|
|
1380
|
+
// @ts-ignore
|
|
1381
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1382
|
+
return this.hcClient.sendRequest(options);
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* 该接口用于更新智能直播间互动规则库。
|
|
1386
|
+
*
|
|
1387
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1388
|
+
*
|
|
1389
|
+
* @summary 更新智能直播间互动规则库
|
|
1390
|
+
* @param {string} groupId 互动规则库ID。
|
|
1391
|
+
* @param {InteractionRuleGroup} updateInteractionRuleGroupRequestBody 创建智能直播间互动规则。
|
|
1392
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1393
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1394
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1395
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1396
|
+
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @throws {RequiredError}
|
|
1398
|
+
*/
|
|
1399
|
+
updateInteractionRuleGroup(updateInteractionRuleGroupRequest) {
|
|
1400
|
+
const options = (0, exports.ParamCreater)().updateInteractionRuleGroup(updateInteractionRuleGroupRequest);
|
|
1401
|
+
// @ts-ignore
|
|
1402
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1403
|
+
return this.hcClient.sendRequest(options);
|
|
1404
|
+
}
|
|
1319
1405
|
/**
|
|
1320
1406
|
* 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
|
|
1321
1407
|
*
|
|
@@ -2701,7 +2787,9 @@ class MetaStudioClient {
|
|
|
2701
2787
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2702
2788
|
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2703
2789
|
* @param {string} [authKey] 鉴权Key。通过HmacSHA256生成的鉴权key
|
|
2704
|
-
* @param {number} [expiresTime]
|
|
2790
|
+
* @param {number} [expiresTime] 鉴权key过期时间。从1970年1月1日(UTC/GMT的午夜)开始所经过的豪秒数。
|
|
2791
|
+
* @param {string} [xMssAuthKey] 鉴权Key。通过HmacSHA256生成的鉴权key
|
|
2792
|
+
* @param {number} [xMssExpiresTime] **参数解释**: 鉴权key过期时间。从1970年1月1日(UTC/GMT的午夜)开始所经过的毫秒数。
|
|
2705
2793
|
* @param {boolean} [refreshUrl] 是否刷新URL
|
|
2706
2794
|
* @param {*} [options] Override http request option.
|
|
2707
2795
|
* @throws {RequiredError}
|
|
@@ -2796,26 +2884,6 @@ class MetaStudioClient {
|
|
|
2796
2884
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2797
2885
|
return this.hcClient.sendRequest(options);
|
|
2798
2886
|
}
|
|
2799
|
-
/**
|
|
2800
|
-
* 该接口用于创建智能直播间互动规则库。
|
|
2801
|
-
*
|
|
2802
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2803
|
-
*
|
|
2804
|
-
* @summary 创建智能直播间互动规则库
|
|
2805
|
-
* @param {InteractionRuleGroup} createInteractionRuleGroupRequestBody 创建智能直播间互动规则。
|
|
2806
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2807
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2808
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2809
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2810
|
-
* @param {*} [options] Override http request option.
|
|
2811
|
-
* @throws {RequiredError}
|
|
2812
|
-
*/
|
|
2813
|
-
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
2814
|
-
const options = (0, exports.ParamCreater)().createInteractionRuleGroup(createInteractionRuleGroupRequest);
|
|
2815
|
-
// @ts-ignore
|
|
2816
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2817
|
-
return this.hcClient.sendRequest(options);
|
|
2818
|
-
}
|
|
2819
2887
|
/**
|
|
2820
2888
|
* 该接口用于创建智能直播间。
|
|
2821
2889
|
*
|
|
@@ -2836,26 +2904,6 @@ class MetaStudioClient {
|
|
|
2836
2904
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2837
2905
|
return this.hcClient.sendRequest(options);
|
|
2838
2906
|
}
|
|
2839
|
-
/**
|
|
2840
|
-
* 该接口用于删除智能直播间互动规则库。
|
|
2841
|
-
*
|
|
2842
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2843
|
-
*
|
|
2844
|
-
* @summary 删除智能直播间互动规则库
|
|
2845
|
-
* @param {string} groupId 互动规则库ID。
|
|
2846
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2847
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2848
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2849
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2850
|
-
* @param {*} [options] Override http request option.
|
|
2851
|
-
* @throws {RequiredError}
|
|
2852
|
-
*/
|
|
2853
|
-
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
2854
|
-
const options = (0, exports.ParamCreater)().deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest);
|
|
2855
|
-
// @ts-ignore
|
|
2856
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2857
|
-
return this.hcClient.sendRequest(options);
|
|
2858
|
-
}
|
|
2859
2907
|
/**
|
|
2860
2908
|
* 该接口用于删除智能直播间。
|
|
2861
2909
|
*
|
|
@@ -2876,30 +2924,6 @@ class MetaStudioClient {
|
|
|
2876
2924
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2877
2925
|
return this.hcClient.sendRequest(options);
|
|
2878
2926
|
}
|
|
2879
|
-
/**
|
|
2880
|
-
* 该接口用于智能直播间互动规则库列表。
|
|
2881
|
-
*
|
|
2882
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2883
|
-
*
|
|
2884
|
-
* @summary 查询智能直播间互动规则库列表
|
|
2885
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2886
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2887
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2888
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2889
|
-
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
2890
|
-
* @param {number} [limit] 每页显示的条目数量。
|
|
2891
|
-
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
2892
|
-
* @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
|
|
2893
|
-
* @param {string} [groupName] 规则库名称
|
|
2894
|
-
* @param {*} [options] Override http request option.
|
|
2895
|
-
* @throws {RequiredError}
|
|
2896
|
-
*/
|
|
2897
|
-
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
2898
|
-
const options = (0, exports.ParamCreater)().listInteractionRuleGroups(listInteractionRuleGroupsRequest);
|
|
2899
|
-
// @ts-ignore
|
|
2900
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2901
|
-
return this.hcClient.sendRequest(options);
|
|
2902
|
-
}
|
|
2903
2927
|
/**
|
|
2904
2928
|
* 该接口用于智能直播间列表。
|
|
2905
2929
|
*
|
|
@@ -2931,11 +2955,11 @@ class MetaStudioClient {
|
|
|
2931
2955
|
return this.hcClient.sendRequest(options);
|
|
2932
2956
|
}
|
|
2933
2957
|
/**
|
|
2934
|
-
*
|
|
2958
|
+
* 该接口用于查询智能直播间剧本详情。
|
|
2935
2959
|
*
|
|
2936
2960
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2937
2961
|
*
|
|
2938
|
-
* @summary
|
|
2962
|
+
* @summary 查询智能直播间剧本详情
|
|
2939
2963
|
* @param {string} roomId 直播间ID。
|
|
2940
2964
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2941
2965
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
@@ -2950,27 +2974,6 @@ class MetaStudioClient {
|
|
|
2950
2974
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2951
2975
|
return this.hcClient.sendRequest(options);
|
|
2952
2976
|
}
|
|
2953
|
-
/**
|
|
2954
|
-
* 该接口用于更新智能直播间互动规则库。
|
|
2955
|
-
*
|
|
2956
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2957
|
-
*
|
|
2958
|
-
* @summary 更新智能直播间互动规则库
|
|
2959
|
-
* @param {string} groupId 互动规则库ID。
|
|
2960
|
-
* @param {InteractionRuleGroup} updateInteractionRuleGroupRequestBody 创建智能直播间互动规则。
|
|
2961
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2962
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2963
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2964
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2965
|
-
* @param {*} [options] Override http request option.
|
|
2966
|
-
* @throws {RequiredError}
|
|
2967
|
-
*/
|
|
2968
|
-
updateInteractionRuleGroup(updateInteractionRuleGroupRequest) {
|
|
2969
|
-
const options = (0, exports.ParamCreater)().updateInteractionRuleGroup(updateInteractionRuleGroupRequest);
|
|
2970
|
-
// @ts-ignore
|
|
2971
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2972
|
-
return this.hcClient.sendRequest(options);
|
|
2973
|
-
}
|
|
2974
2977
|
/**
|
|
2975
2978
|
* 该接口用于智能直播间信息。
|
|
2976
2979
|
*
|
|
@@ -3643,7 +3646,7 @@ class MetaStudioClient {
|
|
|
3643
3646
|
return this.hcClient.sendRequest(options);
|
|
3644
3647
|
}
|
|
3645
3648
|
/**
|
|
3646
|
-
*
|
|
3649
|
+
* 该接口用于对外生成音频文件。每个预制音色的计费标准详见[预置音色计费标准](metastudio_02_0060.xml)。
|
|
3647
3650
|
*
|
|
3648
3651
|
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
3649
3652
|
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|
|
@@ -3826,6 +3829,29 @@ class MetaStudioClient {
|
|
|
3826
3829
|
options['responseHeaders'] = [''];
|
|
3827
3830
|
return this.hcClient.sendRequest(options);
|
|
3828
3831
|
}
|
|
3832
|
+
/**
|
|
3833
|
+
* 根据英文单词返回对应音标列表
|
|
3834
|
+
*
|
|
3835
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3836
|
+
*
|
|
3837
|
+
* @summary 获取英文单词音标
|
|
3838
|
+
* @param {string} word 英文单词
|
|
3839
|
+
* @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
|
|
3840
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
3841
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
3842
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
3843
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
3844
|
+
* @param {number} [offset] 查询偏移量,若超过最大数量,则返回最后一页
|
|
3845
|
+
* @param {number} [limit] 查询数量
|
|
3846
|
+
* @param {*} [options] Override http request option.
|
|
3847
|
+
* @throws {RequiredError}
|
|
3848
|
+
*/
|
|
3849
|
+
showTtsPhoneticSymbol(showTtsPhoneticSymbolRequest) {
|
|
3850
|
+
const options = (0, exports.ParamCreater)().showTtsPhoneticSymbol(showTtsPhoneticSymbolRequest);
|
|
3851
|
+
// @ts-ignore
|
|
3852
|
+
options['responseHeaders'] = [''];
|
|
3853
|
+
return this.hcClient.sendRequest(options);
|
|
3854
|
+
}
|
|
3829
3855
|
/**
|
|
3830
3856
|
* 该接口用于创建视频驱动任务。
|
|
3831
3857
|
*
|
|
@@ -7480,14 +7506,14 @@ const ParamCreater = function () {
|
|
|
7480
7506
|
return options;
|
|
7481
7507
|
},
|
|
7482
7508
|
/**
|
|
7483
|
-
*
|
|
7509
|
+
* 该接口用于创建智能直播间互动规则库。
|
|
7484
7510
|
*
|
|
7485
7511
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7486
7512
|
*/
|
|
7487
|
-
|
|
7513
|
+
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
7488
7514
|
const options = {
|
|
7489
7515
|
method: "POST",
|
|
7490
|
-
url: "/v1/{project_id}/
|
|
7516
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
7491
7517
|
contentType: "application/json",
|
|
7492
7518
|
queryParams: {},
|
|
7493
7519
|
pathParams: {},
|
|
@@ -7500,20 +7526,20 @@ const ParamCreater = function () {
|
|
|
7500
7526
|
let xSdkDate;
|
|
7501
7527
|
let xProjectId;
|
|
7502
7528
|
let xAppUserId;
|
|
7503
|
-
if (
|
|
7504
|
-
if (
|
|
7505
|
-
body =
|
|
7506
|
-
authorization =
|
|
7507
|
-
xSdkDate =
|
|
7508
|
-
xProjectId =
|
|
7509
|
-
xAppUserId =
|
|
7529
|
+
if (createInteractionRuleGroupRequest !== null && createInteractionRuleGroupRequest !== undefined) {
|
|
7530
|
+
if (createInteractionRuleGroupRequest instanceof CreateInteractionRuleGroupRequest_1.CreateInteractionRuleGroupRequest) {
|
|
7531
|
+
body = createInteractionRuleGroupRequest.body;
|
|
7532
|
+
authorization = createInteractionRuleGroupRequest.authorization;
|
|
7533
|
+
xSdkDate = createInteractionRuleGroupRequest.xSdkDate;
|
|
7534
|
+
xProjectId = createInteractionRuleGroupRequest.xProjectId;
|
|
7535
|
+
xAppUserId = createInteractionRuleGroupRequest.xAppUserId;
|
|
7510
7536
|
}
|
|
7511
7537
|
else {
|
|
7512
|
-
body =
|
|
7513
|
-
authorization =
|
|
7514
|
-
xSdkDate =
|
|
7515
|
-
xProjectId =
|
|
7516
|
-
xAppUserId =
|
|
7538
|
+
body = createInteractionRuleGroupRequest['body'];
|
|
7539
|
+
authorization = createInteractionRuleGroupRequest['Authorization'];
|
|
7540
|
+
xSdkDate = createInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
7541
|
+
xProjectId = createInteractionRuleGroupRequest['X-Project-Id'];
|
|
7542
|
+
xAppUserId = createInteractionRuleGroupRequest['X-App-UserId'];
|
|
7517
7543
|
}
|
|
7518
7544
|
}
|
|
7519
7545
|
if (body === null || body === undefined) {
|
|
@@ -7537,43 +7563,299 @@ const ParamCreater = function () {
|
|
|
7537
7563
|
return options;
|
|
7538
7564
|
},
|
|
7539
7565
|
/**
|
|
7540
|
-
*
|
|
7566
|
+
* 该接口用于删除智能直播间互动规则库。
|
|
7541
7567
|
*
|
|
7542
7568
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7543
7569
|
*/
|
|
7544
|
-
|
|
7570
|
+
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
7545
7571
|
const options = {
|
|
7546
|
-
method: "
|
|
7547
|
-
url: "/v1/{project_id}/
|
|
7572
|
+
method: "DELETE",
|
|
7573
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
7548
7574
|
contentType: "application/json",
|
|
7549
7575
|
queryParams: {},
|
|
7550
7576
|
pathParams: {},
|
|
7551
|
-
headers: {}
|
|
7552
|
-
data: {}
|
|
7577
|
+
headers: {}
|
|
7553
7578
|
};
|
|
7554
7579
|
const localVarHeaderParameter = {};
|
|
7555
|
-
let
|
|
7580
|
+
let groupId;
|
|
7556
7581
|
let authorization;
|
|
7557
7582
|
let xSdkDate;
|
|
7558
7583
|
let xProjectId;
|
|
7559
7584
|
let xAppUserId;
|
|
7560
|
-
if (
|
|
7561
|
-
if (
|
|
7562
|
-
|
|
7563
|
-
authorization =
|
|
7564
|
-
xSdkDate =
|
|
7565
|
-
xProjectId =
|
|
7566
|
-
xAppUserId =
|
|
7585
|
+
if (deleteInteractionRuleGroupRequest !== null && deleteInteractionRuleGroupRequest !== undefined) {
|
|
7586
|
+
if (deleteInteractionRuleGroupRequest instanceof DeleteInteractionRuleGroupRequest_1.DeleteInteractionRuleGroupRequest) {
|
|
7587
|
+
groupId = deleteInteractionRuleGroupRequest.groupId;
|
|
7588
|
+
authorization = deleteInteractionRuleGroupRequest.authorization;
|
|
7589
|
+
xSdkDate = deleteInteractionRuleGroupRequest.xSdkDate;
|
|
7590
|
+
xProjectId = deleteInteractionRuleGroupRequest.xProjectId;
|
|
7591
|
+
xAppUserId = deleteInteractionRuleGroupRequest.xAppUserId;
|
|
7567
7592
|
}
|
|
7568
7593
|
else {
|
|
7569
|
-
|
|
7570
|
-
authorization =
|
|
7571
|
-
xSdkDate =
|
|
7572
|
-
xProjectId =
|
|
7573
|
-
xAppUserId =
|
|
7594
|
+
groupId = deleteInteractionRuleGroupRequest['group_id'];
|
|
7595
|
+
authorization = deleteInteractionRuleGroupRequest['Authorization'];
|
|
7596
|
+
xSdkDate = deleteInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
7597
|
+
xProjectId = deleteInteractionRuleGroupRequest['X-Project-Id'];
|
|
7598
|
+
xAppUserId = deleteInteractionRuleGroupRequest['X-App-UserId'];
|
|
7574
7599
|
}
|
|
7575
7600
|
}
|
|
7576
|
-
if (
|
|
7601
|
+
if (groupId === null || groupId === undefined) {
|
|
7602
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteInteractionRuleGroup.');
|
|
7603
|
+
}
|
|
7604
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7605
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7606
|
+
}
|
|
7607
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7608
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7609
|
+
}
|
|
7610
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7611
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7612
|
+
}
|
|
7613
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7614
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7615
|
+
}
|
|
7616
|
+
options.pathParams = { 'group_id': groupId, };
|
|
7617
|
+
options.headers = localVarHeaderParameter;
|
|
7618
|
+
return options;
|
|
7619
|
+
},
|
|
7620
|
+
/**
|
|
7621
|
+
* 该接口用于智能直播间互动规则库列表。
|
|
7622
|
+
*
|
|
7623
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7624
|
+
*/
|
|
7625
|
+
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
7626
|
+
const options = {
|
|
7627
|
+
method: "GET",
|
|
7628
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
7629
|
+
contentType: "application/json",
|
|
7630
|
+
queryParams: {},
|
|
7631
|
+
pathParams: {},
|
|
7632
|
+
headers: {}
|
|
7633
|
+
};
|
|
7634
|
+
const localVarHeaderParameter = {};
|
|
7635
|
+
const localVarQueryParameter = {};
|
|
7636
|
+
let authorization;
|
|
7637
|
+
let xSdkDate;
|
|
7638
|
+
let xProjectId;
|
|
7639
|
+
let xAppUserId;
|
|
7640
|
+
let offset;
|
|
7641
|
+
let limit;
|
|
7642
|
+
let createSince;
|
|
7643
|
+
let createUntil;
|
|
7644
|
+
let groupName;
|
|
7645
|
+
if (listInteractionRuleGroupsRequest !== null && listInteractionRuleGroupsRequest !== undefined) {
|
|
7646
|
+
if (listInteractionRuleGroupsRequest instanceof ListInteractionRuleGroupsRequest_1.ListInteractionRuleGroupsRequest) {
|
|
7647
|
+
authorization = listInteractionRuleGroupsRequest.authorization;
|
|
7648
|
+
xSdkDate = listInteractionRuleGroupsRequest.xSdkDate;
|
|
7649
|
+
xProjectId = listInteractionRuleGroupsRequest.xProjectId;
|
|
7650
|
+
xAppUserId = listInteractionRuleGroupsRequest.xAppUserId;
|
|
7651
|
+
offset = listInteractionRuleGroupsRequest.offset;
|
|
7652
|
+
limit = listInteractionRuleGroupsRequest.limit;
|
|
7653
|
+
createSince = listInteractionRuleGroupsRequest.createSince;
|
|
7654
|
+
createUntil = listInteractionRuleGroupsRequest.createUntil;
|
|
7655
|
+
groupName = listInteractionRuleGroupsRequest.groupName;
|
|
7656
|
+
}
|
|
7657
|
+
else {
|
|
7658
|
+
authorization = listInteractionRuleGroupsRequest['Authorization'];
|
|
7659
|
+
xSdkDate = listInteractionRuleGroupsRequest['X-Sdk-Date'];
|
|
7660
|
+
xProjectId = listInteractionRuleGroupsRequest['X-Project-Id'];
|
|
7661
|
+
xAppUserId = listInteractionRuleGroupsRequest['X-App-UserId'];
|
|
7662
|
+
offset = listInteractionRuleGroupsRequest['offset'];
|
|
7663
|
+
limit = listInteractionRuleGroupsRequest['limit'];
|
|
7664
|
+
createSince = listInteractionRuleGroupsRequest['create_since'];
|
|
7665
|
+
createUntil = listInteractionRuleGroupsRequest['create_until'];
|
|
7666
|
+
groupName = listInteractionRuleGroupsRequest['group_name'];
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
if (offset !== null && offset !== undefined) {
|
|
7670
|
+
localVarQueryParameter['offset'] = offset;
|
|
7671
|
+
}
|
|
7672
|
+
if (limit !== null && limit !== undefined) {
|
|
7673
|
+
localVarQueryParameter['limit'] = limit;
|
|
7674
|
+
}
|
|
7675
|
+
if (createSince !== null && createSince !== undefined) {
|
|
7676
|
+
localVarQueryParameter['create_since'] = createSince;
|
|
7677
|
+
}
|
|
7678
|
+
if (createUntil !== null && createUntil !== undefined) {
|
|
7679
|
+
localVarQueryParameter['create_until'] = createUntil;
|
|
7680
|
+
}
|
|
7681
|
+
if (groupName !== null && groupName !== undefined) {
|
|
7682
|
+
localVarQueryParameter['group_name'] = groupName;
|
|
7683
|
+
}
|
|
7684
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7685
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7686
|
+
}
|
|
7687
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7688
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7689
|
+
}
|
|
7690
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7691
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7692
|
+
}
|
|
7693
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7694
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7695
|
+
}
|
|
7696
|
+
options.queryParams = localVarQueryParameter;
|
|
7697
|
+
options.headers = localVarHeaderParameter;
|
|
7698
|
+
return options;
|
|
7699
|
+
},
|
|
7700
|
+
/**
|
|
7701
|
+
* 该接口用于更新智能直播间互动规则库。
|
|
7702
|
+
*
|
|
7703
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7704
|
+
*/
|
|
7705
|
+
updateInteractionRuleGroup(updateInteractionRuleGroupRequest) {
|
|
7706
|
+
const options = {
|
|
7707
|
+
method: "PUT",
|
|
7708
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
7709
|
+
contentType: "application/json",
|
|
7710
|
+
queryParams: {},
|
|
7711
|
+
pathParams: {},
|
|
7712
|
+
headers: {},
|
|
7713
|
+
data: {}
|
|
7714
|
+
};
|
|
7715
|
+
const localVarHeaderParameter = {};
|
|
7716
|
+
let body;
|
|
7717
|
+
let groupId;
|
|
7718
|
+
let authorization;
|
|
7719
|
+
let xSdkDate;
|
|
7720
|
+
let xProjectId;
|
|
7721
|
+
let xAppUserId;
|
|
7722
|
+
if (updateInteractionRuleGroupRequest !== null && updateInteractionRuleGroupRequest !== undefined) {
|
|
7723
|
+
if (updateInteractionRuleGroupRequest instanceof UpdateInteractionRuleGroupRequest_1.UpdateInteractionRuleGroupRequest) {
|
|
7724
|
+
groupId = updateInteractionRuleGroupRequest.groupId;
|
|
7725
|
+
body = updateInteractionRuleGroupRequest.body;
|
|
7726
|
+
authorization = updateInteractionRuleGroupRequest.authorization;
|
|
7727
|
+
xSdkDate = updateInteractionRuleGroupRequest.xSdkDate;
|
|
7728
|
+
xProjectId = updateInteractionRuleGroupRequest.xProjectId;
|
|
7729
|
+
xAppUserId = updateInteractionRuleGroupRequest.xAppUserId;
|
|
7730
|
+
}
|
|
7731
|
+
else {
|
|
7732
|
+
groupId = updateInteractionRuleGroupRequest['group_id'];
|
|
7733
|
+
body = updateInteractionRuleGroupRequest['body'];
|
|
7734
|
+
authorization = updateInteractionRuleGroupRequest['Authorization'];
|
|
7735
|
+
xSdkDate = updateInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
7736
|
+
xProjectId = updateInteractionRuleGroupRequest['X-Project-Id'];
|
|
7737
|
+
xAppUserId = updateInteractionRuleGroupRequest['X-App-UserId'];
|
|
7738
|
+
}
|
|
7739
|
+
}
|
|
7740
|
+
if (groupId === null || groupId === undefined) {
|
|
7741
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateInteractionRuleGroup.');
|
|
7742
|
+
}
|
|
7743
|
+
if (body === null || body === undefined) {
|
|
7744
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
7745
|
+
}
|
|
7746
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7747
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7748
|
+
}
|
|
7749
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7750
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7751
|
+
}
|
|
7752
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7753
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7754
|
+
}
|
|
7755
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7756
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7757
|
+
}
|
|
7758
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7759
|
+
options.data = body !== undefined ? body : {};
|
|
7760
|
+
options.pathParams = { 'group_id': groupId, };
|
|
7761
|
+
options.headers = localVarHeaderParameter;
|
|
7762
|
+
return options;
|
|
7763
|
+
},
|
|
7764
|
+
/**
|
|
7765
|
+
* 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
|
|
7766
|
+
*
|
|
7767
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7768
|
+
*/
|
|
7769
|
+
createIntentAndQuestion(createIntentAndQuestionRequest) {
|
|
7770
|
+
const options = {
|
|
7771
|
+
method: "POST",
|
|
7772
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/intent-question",
|
|
7773
|
+
contentType: "application/json",
|
|
7774
|
+
queryParams: {},
|
|
7775
|
+
pathParams: {},
|
|
7776
|
+
headers: {},
|
|
7777
|
+
data: {}
|
|
7778
|
+
};
|
|
7779
|
+
const localVarHeaderParameter = {};
|
|
7780
|
+
let body;
|
|
7781
|
+
let authorization;
|
|
7782
|
+
let xSdkDate;
|
|
7783
|
+
let xProjectId;
|
|
7784
|
+
let xAppUserId;
|
|
7785
|
+
if (createIntentAndQuestionRequest !== null && createIntentAndQuestionRequest !== undefined) {
|
|
7786
|
+
if (createIntentAndQuestionRequest instanceof CreateIntentAndQuestionRequest_1.CreateIntentAndQuestionRequest) {
|
|
7787
|
+
body = createIntentAndQuestionRequest.body;
|
|
7788
|
+
authorization = createIntentAndQuestionRequest.authorization;
|
|
7789
|
+
xSdkDate = createIntentAndQuestionRequest.xSdkDate;
|
|
7790
|
+
xProjectId = createIntentAndQuestionRequest.xProjectId;
|
|
7791
|
+
xAppUserId = createIntentAndQuestionRequest.xAppUserId;
|
|
7792
|
+
}
|
|
7793
|
+
else {
|
|
7794
|
+
body = createIntentAndQuestionRequest['body'];
|
|
7795
|
+
authorization = createIntentAndQuestionRequest['Authorization'];
|
|
7796
|
+
xSdkDate = createIntentAndQuestionRequest['X-Sdk-Date'];
|
|
7797
|
+
xProjectId = createIntentAndQuestionRequest['X-Project-Id'];
|
|
7798
|
+
xAppUserId = createIntentAndQuestionRequest['X-App-UserId'];
|
|
7799
|
+
}
|
|
7800
|
+
}
|
|
7801
|
+
if (body === null || body === undefined) {
|
|
7802
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
7803
|
+
}
|
|
7804
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7805
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7806
|
+
}
|
|
7807
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7808
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7809
|
+
}
|
|
7810
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7811
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7812
|
+
}
|
|
7813
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7814
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7815
|
+
}
|
|
7816
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7817
|
+
options.data = body !== undefined ? body : {};
|
|
7818
|
+
options.headers = localVarHeaderParameter;
|
|
7819
|
+
return options;
|
|
7820
|
+
},
|
|
7821
|
+
/**
|
|
7822
|
+
* 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
|
|
7823
|
+
*
|
|
7824
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7825
|
+
*/
|
|
7826
|
+
createKnowledgeIntent(createKnowledgeIntentRequest) {
|
|
7827
|
+
const options = {
|
|
7828
|
+
method: "POST",
|
|
7829
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/intent",
|
|
7830
|
+
contentType: "application/json",
|
|
7831
|
+
queryParams: {},
|
|
7832
|
+
pathParams: {},
|
|
7833
|
+
headers: {},
|
|
7834
|
+
data: {}
|
|
7835
|
+
};
|
|
7836
|
+
const localVarHeaderParameter = {};
|
|
7837
|
+
let body;
|
|
7838
|
+
let authorization;
|
|
7839
|
+
let xSdkDate;
|
|
7840
|
+
let xProjectId;
|
|
7841
|
+
let xAppUserId;
|
|
7842
|
+
if (createKnowledgeIntentRequest !== null && createKnowledgeIntentRequest !== undefined) {
|
|
7843
|
+
if (createKnowledgeIntentRequest instanceof CreateKnowledgeIntentRequest_1.CreateKnowledgeIntentRequest) {
|
|
7844
|
+
body = createKnowledgeIntentRequest.body;
|
|
7845
|
+
authorization = createKnowledgeIntentRequest.authorization;
|
|
7846
|
+
xSdkDate = createKnowledgeIntentRequest.xSdkDate;
|
|
7847
|
+
xProjectId = createKnowledgeIntentRequest.xProjectId;
|
|
7848
|
+
xAppUserId = createKnowledgeIntentRequest.xAppUserId;
|
|
7849
|
+
}
|
|
7850
|
+
else {
|
|
7851
|
+
body = createKnowledgeIntentRequest['body'];
|
|
7852
|
+
authorization = createKnowledgeIntentRequest['Authorization'];
|
|
7853
|
+
xSdkDate = createKnowledgeIntentRequest['X-Sdk-Date'];
|
|
7854
|
+
xProjectId = createKnowledgeIntentRequest['X-Project-Id'];
|
|
7855
|
+
xAppUserId = createKnowledgeIntentRequest['X-App-UserId'];
|
|
7856
|
+
}
|
|
7857
|
+
}
|
|
7858
|
+
if (body === null || body === undefined) {
|
|
7577
7859
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
7578
7860
|
}
|
|
7579
7861
|
if (authorization !== undefined && authorization !== null) {
|
|
@@ -11636,6 +11918,8 @@ const ParamCreater = function () {
|
|
|
11636
11918
|
let xAppUserId;
|
|
11637
11919
|
let authKey;
|
|
11638
11920
|
let expiresTime;
|
|
11921
|
+
let xMssAuthKey;
|
|
11922
|
+
let xMssExpiresTime;
|
|
11639
11923
|
let refreshUrl;
|
|
11640
11924
|
if (liveEventReportRequest !== null && liveEventReportRequest !== undefined) {
|
|
11641
11925
|
if (liveEventReportRequest instanceof LiveEventReportRequest_1.LiveEventReportRequest) {
|
|
@@ -11648,6 +11932,8 @@ const ParamCreater = function () {
|
|
|
11648
11932
|
xAppUserId = liveEventReportRequest.xAppUserId;
|
|
11649
11933
|
authKey = liveEventReportRequest.authKey;
|
|
11650
11934
|
expiresTime = liveEventReportRequest.expiresTime;
|
|
11935
|
+
xMssAuthKey = liveEventReportRequest.xMssAuthKey;
|
|
11936
|
+
xMssExpiresTime = liveEventReportRequest.xMssExpiresTime;
|
|
11651
11937
|
refreshUrl = liveEventReportRequest.refreshUrl;
|
|
11652
11938
|
}
|
|
11653
11939
|
else {
|
|
@@ -11660,6 +11946,8 @@ const ParamCreater = function () {
|
|
|
11660
11946
|
xAppUserId = liveEventReportRequest['X-App-UserId'];
|
|
11661
11947
|
authKey = liveEventReportRequest['auth_key'];
|
|
11662
11948
|
expiresTime = liveEventReportRequest['expires_time'];
|
|
11949
|
+
xMssAuthKey = liveEventReportRequest['x-mss-auth-key'];
|
|
11950
|
+
xMssExpiresTime = liveEventReportRequest['x-mss-expires-time'];
|
|
11663
11951
|
refreshUrl = liveEventReportRequest['refresh_url'];
|
|
11664
11952
|
}
|
|
11665
11953
|
}
|
|
@@ -11693,6 +11981,12 @@ const ParamCreater = function () {
|
|
|
11693
11981
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
11694
11982
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
11695
11983
|
}
|
|
11984
|
+
if (xMssAuthKey !== undefined && xMssAuthKey !== null) {
|
|
11985
|
+
localVarHeaderParameter['x-mss-auth-key'] = String(xMssAuthKey);
|
|
11986
|
+
}
|
|
11987
|
+
if (xMssExpiresTime !== undefined && xMssExpiresTime !== null) {
|
|
11988
|
+
localVarHeaderParameter['x-mss-expires-time'] = String(xMssExpiresTime);
|
|
11989
|
+
}
|
|
11696
11990
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11697
11991
|
options.data = body !== undefined ? body : {};
|
|
11698
11992
|
options.queryParams = localVarQueryParameter;
|
|
@@ -11917,76 +12211,18 @@ const ParamCreater = function () {
|
|
|
11917
12211
|
xProjectId = confirmSmarLiveRoomRequest.xProjectId;
|
|
11918
12212
|
xAppUserId = confirmSmarLiveRoomRequest.xAppUserId;
|
|
11919
12213
|
}
|
|
11920
|
-
else {
|
|
11921
|
-
roomId = confirmSmarLiveRoomRequest['room_id'];
|
|
11922
|
-
body = confirmSmarLiveRoomRequest['body'];
|
|
11923
|
-
authorization = confirmSmarLiveRoomRequest['Authorization'];
|
|
11924
|
-
xSdkDate = confirmSmarLiveRoomRequest['X-Sdk-Date'];
|
|
11925
|
-
xProjectId = confirmSmarLiveRoomRequest['X-Project-Id'];
|
|
11926
|
-
xAppUserId = confirmSmarLiveRoomRequest['X-App-UserId'];
|
|
11927
|
-
}
|
|
11928
|
-
}
|
|
11929
|
-
if (roomId === null || roomId === undefined) {
|
|
11930
|
-
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling confirmSmarLiveRoom.');
|
|
11931
|
-
}
|
|
11932
|
-
if (body === null || body === undefined) {
|
|
11933
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
11934
|
-
}
|
|
11935
|
-
if (authorization !== undefined && authorization !== null) {
|
|
11936
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
11937
|
-
}
|
|
11938
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
11939
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
11940
|
-
}
|
|
11941
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
11942
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
11943
|
-
}
|
|
11944
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
11945
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
11946
|
-
}
|
|
11947
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11948
|
-
options.data = body !== undefined ? body : {};
|
|
11949
|
-
options.pathParams = { 'room_id': roomId, };
|
|
11950
|
-
options.headers = localVarHeaderParameter;
|
|
11951
|
-
return options;
|
|
11952
|
-
},
|
|
11953
|
-
/**
|
|
11954
|
-
* 该接口用于创建智能直播间互动规则库。
|
|
11955
|
-
*
|
|
11956
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
11957
|
-
*/
|
|
11958
|
-
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
11959
|
-
const options = {
|
|
11960
|
-
method: "POST",
|
|
11961
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
11962
|
-
contentType: "application/json",
|
|
11963
|
-
queryParams: {},
|
|
11964
|
-
pathParams: {},
|
|
11965
|
-
headers: {},
|
|
11966
|
-
data: {}
|
|
11967
|
-
};
|
|
11968
|
-
const localVarHeaderParameter = {};
|
|
11969
|
-
let body;
|
|
11970
|
-
let authorization;
|
|
11971
|
-
let xSdkDate;
|
|
11972
|
-
let xProjectId;
|
|
11973
|
-
let xAppUserId;
|
|
11974
|
-
if (createInteractionRuleGroupRequest !== null && createInteractionRuleGroupRequest !== undefined) {
|
|
11975
|
-
if (createInteractionRuleGroupRequest instanceof CreateInteractionRuleGroupRequest_1.CreateInteractionRuleGroupRequest) {
|
|
11976
|
-
body = createInteractionRuleGroupRequest.body;
|
|
11977
|
-
authorization = createInteractionRuleGroupRequest.authorization;
|
|
11978
|
-
xSdkDate = createInteractionRuleGroupRequest.xSdkDate;
|
|
11979
|
-
xProjectId = createInteractionRuleGroupRequest.xProjectId;
|
|
11980
|
-
xAppUserId = createInteractionRuleGroupRequest.xAppUserId;
|
|
11981
|
-
}
|
|
11982
|
-
else {
|
|
11983
|
-
body = createInteractionRuleGroupRequest['body'];
|
|
11984
|
-
authorization = createInteractionRuleGroupRequest['Authorization'];
|
|
11985
|
-
xSdkDate = createInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
11986
|
-
xProjectId = createInteractionRuleGroupRequest['X-Project-Id'];
|
|
11987
|
-
xAppUserId = createInteractionRuleGroupRequest['X-App-UserId'];
|
|
12214
|
+
else {
|
|
12215
|
+
roomId = confirmSmarLiveRoomRequest['room_id'];
|
|
12216
|
+
body = confirmSmarLiveRoomRequest['body'];
|
|
12217
|
+
authorization = confirmSmarLiveRoomRequest['Authorization'];
|
|
12218
|
+
xSdkDate = confirmSmarLiveRoomRequest['X-Sdk-Date'];
|
|
12219
|
+
xProjectId = confirmSmarLiveRoomRequest['X-Project-Id'];
|
|
12220
|
+
xAppUserId = confirmSmarLiveRoomRequest['X-App-UserId'];
|
|
11988
12221
|
}
|
|
11989
12222
|
}
|
|
12223
|
+
if (roomId === null || roomId === undefined) {
|
|
12224
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling confirmSmarLiveRoom.');
|
|
12225
|
+
}
|
|
11990
12226
|
if (body === null || body === undefined) {
|
|
11991
12227
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
11992
12228
|
}
|
|
@@ -12004,6 +12240,7 @@ const ParamCreater = function () {
|
|
|
12004
12240
|
}
|
|
12005
12241
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12006
12242
|
options.data = body !== undefined ? body : {};
|
|
12243
|
+
options.pathParams = { 'room_id': roomId, };
|
|
12007
12244
|
options.headers = localVarHeaderParameter;
|
|
12008
12245
|
return options;
|
|
12009
12246
|
},
|
|
@@ -12064,61 +12301,6 @@ const ParamCreater = function () {
|
|
|
12064
12301
|
options.headers = localVarHeaderParameter;
|
|
12065
12302
|
return options;
|
|
12066
12303
|
},
|
|
12067
|
-
/**
|
|
12068
|
-
* 该接口用于删除智能直播间互动规则库。
|
|
12069
|
-
*
|
|
12070
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12071
|
-
*/
|
|
12072
|
-
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
12073
|
-
const options = {
|
|
12074
|
-
method: "DELETE",
|
|
12075
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
12076
|
-
contentType: "application/json",
|
|
12077
|
-
queryParams: {},
|
|
12078
|
-
pathParams: {},
|
|
12079
|
-
headers: {}
|
|
12080
|
-
};
|
|
12081
|
-
const localVarHeaderParameter = {};
|
|
12082
|
-
let groupId;
|
|
12083
|
-
let authorization;
|
|
12084
|
-
let xSdkDate;
|
|
12085
|
-
let xProjectId;
|
|
12086
|
-
let xAppUserId;
|
|
12087
|
-
if (deleteInteractionRuleGroupRequest !== null && deleteInteractionRuleGroupRequest !== undefined) {
|
|
12088
|
-
if (deleteInteractionRuleGroupRequest instanceof DeleteInteractionRuleGroupRequest_1.DeleteInteractionRuleGroupRequest) {
|
|
12089
|
-
groupId = deleteInteractionRuleGroupRequest.groupId;
|
|
12090
|
-
authorization = deleteInteractionRuleGroupRequest.authorization;
|
|
12091
|
-
xSdkDate = deleteInteractionRuleGroupRequest.xSdkDate;
|
|
12092
|
-
xProjectId = deleteInteractionRuleGroupRequest.xProjectId;
|
|
12093
|
-
xAppUserId = deleteInteractionRuleGroupRequest.xAppUserId;
|
|
12094
|
-
}
|
|
12095
|
-
else {
|
|
12096
|
-
groupId = deleteInteractionRuleGroupRequest['group_id'];
|
|
12097
|
-
authorization = deleteInteractionRuleGroupRequest['Authorization'];
|
|
12098
|
-
xSdkDate = deleteInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
12099
|
-
xProjectId = deleteInteractionRuleGroupRequest['X-Project-Id'];
|
|
12100
|
-
xAppUserId = deleteInteractionRuleGroupRequest['X-App-UserId'];
|
|
12101
|
-
}
|
|
12102
|
-
}
|
|
12103
|
-
if (groupId === null || groupId === undefined) {
|
|
12104
|
-
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteInteractionRuleGroup.');
|
|
12105
|
-
}
|
|
12106
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12107
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12108
|
-
}
|
|
12109
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12110
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12111
|
-
}
|
|
12112
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12113
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12114
|
-
}
|
|
12115
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12116
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12117
|
-
}
|
|
12118
|
-
options.pathParams = { 'group_id': groupId, };
|
|
12119
|
-
options.headers = localVarHeaderParameter;
|
|
12120
|
-
return options;
|
|
12121
|
-
},
|
|
12122
12304
|
/**
|
|
12123
12305
|
* 该接口用于删除智能直播间。
|
|
12124
12306
|
*
|
|
@@ -12174,86 +12356,6 @@ const ParamCreater = function () {
|
|
|
12174
12356
|
options.headers = localVarHeaderParameter;
|
|
12175
12357
|
return options;
|
|
12176
12358
|
},
|
|
12177
|
-
/**
|
|
12178
|
-
* 该接口用于智能直播间互动规则库列表。
|
|
12179
|
-
*
|
|
12180
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12181
|
-
*/
|
|
12182
|
-
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
12183
|
-
const options = {
|
|
12184
|
-
method: "GET",
|
|
12185
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
12186
|
-
contentType: "application/json",
|
|
12187
|
-
queryParams: {},
|
|
12188
|
-
pathParams: {},
|
|
12189
|
-
headers: {}
|
|
12190
|
-
};
|
|
12191
|
-
const localVarHeaderParameter = {};
|
|
12192
|
-
const localVarQueryParameter = {};
|
|
12193
|
-
let authorization;
|
|
12194
|
-
let xSdkDate;
|
|
12195
|
-
let xProjectId;
|
|
12196
|
-
let xAppUserId;
|
|
12197
|
-
let offset;
|
|
12198
|
-
let limit;
|
|
12199
|
-
let createSince;
|
|
12200
|
-
let createUntil;
|
|
12201
|
-
let groupName;
|
|
12202
|
-
if (listInteractionRuleGroupsRequest !== null && listInteractionRuleGroupsRequest !== undefined) {
|
|
12203
|
-
if (listInteractionRuleGroupsRequest instanceof ListInteractionRuleGroupsRequest_1.ListInteractionRuleGroupsRequest) {
|
|
12204
|
-
authorization = listInteractionRuleGroupsRequest.authorization;
|
|
12205
|
-
xSdkDate = listInteractionRuleGroupsRequest.xSdkDate;
|
|
12206
|
-
xProjectId = listInteractionRuleGroupsRequest.xProjectId;
|
|
12207
|
-
xAppUserId = listInteractionRuleGroupsRequest.xAppUserId;
|
|
12208
|
-
offset = listInteractionRuleGroupsRequest.offset;
|
|
12209
|
-
limit = listInteractionRuleGroupsRequest.limit;
|
|
12210
|
-
createSince = listInteractionRuleGroupsRequest.createSince;
|
|
12211
|
-
createUntil = listInteractionRuleGroupsRequest.createUntil;
|
|
12212
|
-
groupName = listInteractionRuleGroupsRequest.groupName;
|
|
12213
|
-
}
|
|
12214
|
-
else {
|
|
12215
|
-
authorization = listInteractionRuleGroupsRequest['Authorization'];
|
|
12216
|
-
xSdkDate = listInteractionRuleGroupsRequest['X-Sdk-Date'];
|
|
12217
|
-
xProjectId = listInteractionRuleGroupsRequest['X-Project-Id'];
|
|
12218
|
-
xAppUserId = listInteractionRuleGroupsRequest['X-App-UserId'];
|
|
12219
|
-
offset = listInteractionRuleGroupsRequest['offset'];
|
|
12220
|
-
limit = listInteractionRuleGroupsRequest['limit'];
|
|
12221
|
-
createSince = listInteractionRuleGroupsRequest['create_since'];
|
|
12222
|
-
createUntil = listInteractionRuleGroupsRequest['create_until'];
|
|
12223
|
-
groupName = listInteractionRuleGroupsRequest['group_name'];
|
|
12224
|
-
}
|
|
12225
|
-
}
|
|
12226
|
-
if (offset !== null && offset !== undefined) {
|
|
12227
|
-
localVarQueryParameter['offset'] = offset;
|
|
12228
|
-
}
|
|
12229
|
-
if (limit !== null && limit !== undefined) {
|
|
12230
|
-
localVarQueryParameter['limit'] = limit;
|
|
12231
|
-
}
|
|
12232
|
-
if (createSince !== null && createSince !== undefined) {
|
|
12233
|
-
localVarQueryParameter['create_since'] = createSince;
|
|
12234
|
-
}
|
|
12235
|
-
if (createUntil !== null && createUntil !== undefined) {
|
|
12236
|
-
localVarQueryParameter['create_until'] = createUntil;
|
|
12237
|
-
}
|
|
12238
|
-
if (groupName !== null && groupName !== undefined) {
|
|
12239
|
-
localVarQueryParameter['group_name'] = groupName;
|
|
12240
|
-
}
|
|
12241
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12242
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12243
|
-
}
|
|
12244
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12245
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12246
|
-
}
|
|
12247
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12248
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12249
|
-
}
|
|
12250
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12251
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12252
|
-
}
|
|
12253
|
-
options.queryParams = localVarQueryParameter;
|
|
12254
|
-
options.headers = localVarHeaderParameter;
|
|
12255
|
-
return options;
|
|
12256
|
-
},
|
|
12257
12359
|
/**
|
|
12258
12360
|
* 该接口用于智能直播间列表。
|
|
12259
12361
|
*
|
|
@@ -12371,7 +12473,7 @@ const ParamCreater = function () {
|
|
|
12371
12473
|
return options;
|
|
12372
12474
|
},
|
|
12373
12475
|
/**
|
|
12374
|
-
*
|
|
12476
|
+
* 该接口用于查询智能直播间剧本详情。
|
|
12375
12477
|
*
|
|
12376
12478
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12377
12479
|
*/
|
|
@@ -12425,70 +12527,6 @@ const ParamCreater = function () {
|
|
|
12425
12527
|
options.headers = localVarHeaderParameter;
|
|
12426
12528
|
return options;
|
|
12427
12529
|
},
|
|
12428
|
-
/**
|
|
12429
|
-
* 该接口用于更新智能直播间互动规则库。
|
|
12430
|
-
*
|
|
12431
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12432
|
-
*/
|
|
12433
|
-
updateInteractionRuleGroup(updateInteractionRuleGroupRequest) {
|
|
12434
|
-
const options = {
|
|
12435
|
-
method: "PUT",
|
|
12436
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
12437
|
-
contentType: "application/json",
|
|
12438
|
-
queryParams: {},
|
|
12439
|
-
pathParams: {},
|
|
12440
|
-
headers: {},
|
|
12441
|
-
data: {}
|
|
12442
|
-
};
|
|
12443
|
-
const localVarHeaderParameter = {};
|
|
12444
|
-
let body;
|
|
12445
|
-
let groupId;
|
|
12446
|
-
let authorization;
|
|
12447
|
-
let xSdkDate;
|
|
12448
|
-
let xProjectId;
|
|
12449
|
-
let xAppUserId;
|
|
12450
|
-
if (updateInteractionRuleGroupRequest !== null && updateInteractionRuleGroupRequest !== undefined) {
|
|
12451
|
-
if (updateInteractionRuleGroupRequest instanceof UpdateInteractionRuleGroupRequest_1.UpdateInteractionRuleGroupRequest) {
|
|
12452
|
-
groupId = updateInteractionRuleGroupRequest.groupId;
|
|
12453
|
-
body = updateInteractionRuleGroupRequest.body;
|
|
12454
|
-
authorization = updateInteractionRuleGroupRequest.authorization;
|
|
12455
|
-
xSdkDate = updateInteractionRuleGroupRequest.xSdkDate;
|
|
12456
|
-
xProjectId = updateInteractionRuleGroupRequest.xProjectId;
|
|
12457
|
-
xAppUserId = updateInteractionRuleGroupRequest.xAppUserId;
|
|
12458
|
-
}
|
|
12459
|
-
else {
|
|
12460
|
-
groupId = updateInteractionRuleGroupRequest['group_id'];
|
|
12461
|
-
body = updateInteractionRuleGroupRequest['body'];
|
|
12462
|
-
authorization = updateInteractionRuleGroupRequest['Authorization'];
|
|
12463
|
-
xSdkDate = updateInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
12464
|
-
xProjectId = updateInteractionRuleGroupRequest['X-Project-Id'];
|
|
12465
|
-
xAppUserId = updateInteractionRuleGroupRequest['X-App-UserId'];
|
|
12466
|
-
}
|
|
12467
|
-
}
|
|
12468
|
-
if (groupId === null || groupId === undefined) {
|
|
12469
|
-
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateInteractionRuleGroup.');
|
|
12470
|
-
}
|
|
12471
|
-
if (body === null || body === undefined) {
|
|
12472
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
12473
|
-
}
|
|
12474
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12475
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12476
|
-
}
|
|
12477
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12478
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12479
|
-
}
|
|
12480
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12481
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12482
|
-
}
|
|
12483
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12484
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12485
|
-
}
|
|
12486
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12487
|
-
options.data = body !== undefined ? body : {};
|
|
12488
|
-
options.pathParams = { 'group_id': groupId, };
|
|
12489
|
-
options.headers = localVarHeaderParameter;
|
|
12490
|
-
return options;
|
|
12491
|
-
},
|
|
12492
12530
|
/**
|
|
12493
12531
|
* 该接口用于智能直播间信息。
|
|
12494
12532
|
*
|
|
@@ -14361,7 +14399,7 @@ const ParamCreater = function () {
|
|
|
14361
14399
|
return options;
|
|
14362
14400
|
},
|
|
14363
14401
|
/**
|
|
14364
|
-
*
|
|
14402
|
+
* 该接口用于对外生成音频文件。每个预制音色的计费标准详见[预置音色计费标准](metastudio_02_0060.xml)。
|
|
14365
14403
|
*
|
|
14366
14404
|
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
14367
14405
|
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|
|
@@ -14918,6 +14956,83 @@ const ParamCreater = function () {
|
|
|
14918
14956
|
options.headers = localVarHeaderParameter;
|
|
14919
14957
|
return options;
|
|
14920
14958
|
},
|
|
14959
|
+
/**
|
|
14960
|
+
* 根据英文单词返回对应音标列表
|
|
14961
|
+
*
|
|
14962
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
14963
|
+
*/
|
|
14964
|
+
showTtsPhoneticSymbol(showTtsPhoneticSymbolRequest) {
|
|
14965
|
+
const options = {
|
|
14966
|
+
method: "GET",
|
|
14967
|
+
url: "/v1/{project_id}/ttsc/phonetic-symbol",
|
|
14968
|
+
contentType: "application/json",
|
|
14969
|
+
queryParams: {},
|
|
14970
|
+
pathParams: {},
|
|
14971
|
+
headers: {}
|
|
14972
|
+
};
|
|
14973
|
+
const localVarHeaderParameter = {};
|
|
14974
|
+
const localVarQueryParameter = {};
|
|
14975
|
+
let word;
|
|
14976
|
+
let xRequestId;
|
|
14977
|
+
let authorization;
|
|
14978
|
+
let xSdkDate;
|
|
14979
|
+
let xProjectId;
|
|
14980
|
+
let xAppUserId;
|
|
14981
|
+
let offset;
|
|
14982
|
+
let limit;
|
|
14983
|
+
if (showTtsPhoneticSymbolRequest !== null && showTtsPhoneticSymbolRequest !== undefined) {
|
|
14984
|
+
if (showTtsPhoneticSymbolRequest instanceof ShowTtsPhoneticSymbolRequest_1.ShowTtsPhoneticSymbolRequest) {
|
|
14985
|
+
word = showTtsPhoneticSymbolRequest.word;
|
|
14986
|
+
xRequestId = showTtsPhoneticSymbolRequest.xRequestId;
|
|
14987
|
+
authorization = showTtsPhoneticSymbolRequest.authorization;
|
|
14988
|
+
xSdkDate = showTtsPhoneticSymbolRequest.xSdkDate;
|
|
14989
|
+
xProjectId = showTtsPhoneticSymbolRequest.xProjectId;
|
|
14990
|
+
xAppUserId = showTtsPhoneticSymbolRequest.xAppUserId;
|
|
14991
|
+
offset = showTtsPhoneticSymbolRequest.offset;
|
|
14992
|
+
limit = showTtsPhoneticSymbolRequest.limit;
|
|
14993
|
+
}
|
|
14994
|
+
else {
|
|
14995
|
+
word = showTtsPhoneticSymbolRequest['word'];
|
|
14996
|
+
xRequestId = showTtsPhoneticSymbolRequest['X-Request-Id'];
|
|
14997
|
+
authorization = showTtsPhoneticSymbolRequest['Authorization'];
|
|
14998
|
+
xSdkDate = showTtsPhoneticSymbolRequest['X-Sdk-Date'];
|
|
14999
|
+
xProjectId = showTtsPhoneticSymbolRequest['X-Project-Id'];
|
|
15000
|
+
xAppUserId = showTtsPhoneticSymbolRequest['X-App-UserId'];
|
|
15001
|
+
offset = showTtsPhoneticSymbolRequest['offset'];
|
|
15002
|
+
limit = showTtsPhoneticSymbolRequest['limit'];
|
|
15003
|
+
}
|
|
15004
|
+
}
|
|
15005
|
+
if (word === null || word === undefined) {
|
|
15006
|
+
throw new RequiredError('word', 'Required parameter word was null or undefined when calling showTtsPhoneticSymbol.');
|
|
15007
|
+
}
|
|
15008
|
+
if (word !== null && word !== undefined) {
|
|
15009
|
+
localVarQueryParameter['word'] = word;
|
|
15010
|
+
}
|
|
15011
|
+
if (offset !== null && offset !== undefined) {
|
|
15012
|
+
localVarQueryParameter['offset'] = offset;
|
|
15013
|
+
}
|
|
15014
|
+
if (limit !== null && limit !== undefined) {
|
|
15015
|
+
localVarQueryParameter['limit'] = limit;
|
|
15016
|
+
}
|
|
15017
|
+
if (xRequestId !== undefined && xRequestId !== null) {
|
|
15018
|
+
localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
|
|
15019
|
+
}
|
|
15020
|
+
if (authorization !== undefined && authorization !== null) {
|
|
15021
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
15022
|
+
}
|
|
15023
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
15024
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
15025
|
+
}
|
|
15026
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
15027
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
15028
|
+
}
|
|
15029
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
15030
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
15031
|
+
}
|
|
15032
|
+
options.queryParams = localVarQueryParameter;
|
|
15033
|
+
options.headers = localVarHeaderParameter;
|
|
15034
|
+
return options;
|
|
15035
|
+
},
|
|
14921
15036
|
/**
|
|
14922
15037
|
* 该接口用于创建视频驱动任务。
|
|
14923
15038
|
*
|