@huaweicloud/huaweicloud-sdk-metastudio 3.1.149 → 3.1.151
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 +127 -125
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +406 -392
- 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/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 +3 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +3 -0
- package/v1/public-api.js.map +1 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -1317,6 +1317,91 @@ class MetaStudioClient {
|
|
|
1317
1317
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
1318
1318
|
return this.hcClient.sendRequest(options);
|
|
1319
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
|
+
}
|
|
1320
1405
|
/**
|
|
1321
1406
|
* 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
|
|
1322
1407
|
*
|
|
@@ -2702,7 +2787,9 @@ class MetaStudioClient {
|
|
|
2702
2787
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2703
2788
|
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2704
2789
|
* @param {string} [authKey] 鉴权Key。通过HmacSHA256生成的鉴权key
|
|
2705
|
-
* @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的午夜)开始所经过的毫秒数。
|
|
2706
2793
|
* @param {boolean} [refreshUrl] 是否刷新URL
|
|
2707
2794
|
* @param {*} [options] Override http request option.
|
|
2708
2795
|
* @throws {RequiredError}
|
|
@@ -2797,26 +2884,6 @@ class MetaStudioClient {
|
|
|
2797
2884
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2798
2885
|
return this.hcClient.sendRequest(options);
|
|
2799
2886
|
}
|
|
2800
|
-
/**
|
|
2801
|
-
* 该接口用于创建智能直播间互动规则库。
|
|
2802
|
-
*
|
|
2803
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2804
|
-
*
|
|
2805
|
-
* @summary 创建智能直播间互动规则库
|
|
2806
|
-
* @param {InteractionRuleGroup} createInteractionRuleGroupRequestBody 创建智能直播间互动规则。
|
|
2807
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2808
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2809
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2810
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2811
|
-
* @param {*} [options] Override http request option.
|
|
2812
|
-
* @throws {RequiredError}
|
|
2813
|
-
*/
|
|
2814
|
-
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
2815
|
-
const options = (0, exports.ParamCreater)().createInteractionRuleGroup(createInteractionRuleGroupRequest);
|
|
2816
|
-
// @ts-ignore
|
|
2817
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2818
|
-
return this.hcClient.sendRequest(options);
|
|
2819
|
-
}
|
|
2820
2887
|
/**
|
|
2821
2888
|
* 该接口用于创建智能直播间。
|
|
2822
2889
|
*
|
|
@@ -2837,26 +2904,6 @@ class MetaStudioClient {
|
|
|
2837
2904
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2838
2905
|
return this.hcClient.sendRequest(options);
|
|
2839
2906
|
}
|
|
2840
|
-
/**
|
|
2841
|
-
* 该接口用于删除智能直播间互动规则库。
|
|
2842
|
-
*
|
|
2843
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2844
|
-
*
|
|
2845
|
-
* @summary 删除智能直播间互动规则库
|
|
2846
|
-
* @param {string} groupId 互动规则库ID。
|
|
2847
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2848
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2849
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2850
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2851
|
-
* @param {*} [options] Override http request option.
|
|
2852
|
-
* @throws {RequiredError}
|
|
2853
|
-
*/
|
|
2854
|
-
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
2855
|
-
const options = (0, exports.ParamCreater)().deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest);
|
|
2856
|
-
// @ts-ignore
|
|
2857
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2858
|
-
return this.hcClient.sendRequest(options);
|
|
2859
|
-
}
|
|
2860
2907
|
/**
|
|
2861
2908
|
* 该接口用于删除智能直播间。
|
|
2862
2909
|
*
|
|
@@ -2877,30 +2924,6 @@ class MetaStudioClient {
|
|
|
2877
2924
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2878
2925
|
return this.hcClient.sendRequest(options);
|
|
2879
2926
|
}
|
|
2880
|
-
/**
|
|
2881
|
-
* 该接口用于智能直播间互动规则库列表。
|
|
2882
|
-
*
|
|
2883
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2884
|
-
*
|
|
2885
|
-
* @summary 查询智能直播间互动规则库列表
|
|
2886
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2887
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2888
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2889
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2890
|
-
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
2891
|
-
* @param {number} [limit] 每页显示的条目数量。
|
|
2892
|
-
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
2893
|
-
* @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
|
|
2894
|
-
* @param {string} [groupName] 规则库名称
|
|
2895
|
-
* @param {*} [options] Override http request option.
|
|
2896
|
-
* @throws {RequiredError}
|
|
2897
|
-
*/
|
|
2898
|
-
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
2899
|
-
const options = (0, exports.ParamCreater)().listInteractionRuleGroups(listInteractionRuleGroupsRequest);
|
|
2900
|
-
// @ts-ignore
|
|
2901
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2902
|
-
return this.hcClient.sendRequest(options);
|
|
2903
|
-
}
|
|
2904
2927
|
/**
|
|
2905
2928
|
* 该接口用于智能直播间列表。
|
|
2906
2929
|
*
|
|
@@ -2932,11 +2955,11 @@ class MetaStudioClient {
|
|
|
2932
2955
|
return this.hcClient.sendRequest(options);
|
|
2933
2956
|
}
|
|
2934
2957
|
/**
|
|
2935
|
-
*
|
|
2958
|
+
* 该接口用于查询智能直播间剧本详情。
|
|
2936
2959
|
*
|
|
2937
2960
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2938
2961
|
*
|
|
2939
|
-
* @summary
|
|
2962
|
+
* @summary 查询智能直播间剧本详情
|
|
2940
2963
|
* @param {string} roomId 直播间ID。
|
|
2941
2964
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2942
2965
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
@@ -2951,27 +2974,6 @@ class MetaStudioClient {
|
|
|
2951
2974
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
2952
2975
|
return this.hcClient.sendRequest(options);
|
|
2953
2976
|
}
|
|
2954
|
-
/**
|
|
2955
|
-
* 该接口用于更新智能直播间互动规则库。
|
|
2956
|
-
*
|
|
2957
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2958
|
-
*
|
|
2959
|
-
* @summary 更新智能直播间互动规则库
|
|
2960
|
-
* @param {string} groupId 互动规则库ID。
|
|
2961
|
-
* @param {InteractionRuleGroup} updateInteractionRuleGroupRequestBody 创建智能直播间互动规则。
|
|
2962
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
2963
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
2964
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
2965
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
2966
|
-
* @param {*} [options] Override http request option.
|
|
2967
|
-
* @throws {RequiredError}
|
|
2968
|
-
*/
|
|
2969
|
-
updateInteractionRuleGroup(updateInteractionRuleGroupRequest) {
|
|
2970
|
-
const options = (0, exports.ParamCreater)().updateInteractionRuleGroup(updateInteractionRuleGroupRequest);
|
|
2971
|
-
// @ts-ignore
|
|
2972
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
2973
|
-
return this.hcClient.sendRequest(options);
|
|
2974
|
-
}
|
|
2975
2977
|
/**
|
|
2976
2978
|
* 该接口用于智能直播间信息。
|
|
2977
2979
|
*
|
|
@@ -3644,7 +3646,7 @@ class MetaStudioClient {
|
|
|
3644
3646
|
return this.hcClient.sendRequest(options);
|
|
3645
3647
|
}
|
|
3646
3648
|
/**
|
|
3647
|
-
*
|
|
3649
|
+
* 该接口用于对外生成音频文件。每个预制音色的计费标准详见[预置音色计费标准](metastudio_02_0060.xml)。
|
|
3648
3650
|
*
|
|
3649
3651
|
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
3650
3652
|
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|
|
@@ -7504,14 +7506,14 @@ const ParamCreater = function () {
|
|
|
7504
7506
|
return options;
|
|
7505
7507
|
},
|
|
7506
7508
|
/**
|
|
7507
|
-
*
|
|
7509
|
+
* 该接口用于创建智能直播间互动规则库。
|
|
7508
7510
|
*
|
|
7509
7511
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7510
7512
|
*/
|
|
7511
|
-
|
|
7513
|
+
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
7512
7514
|
const options = {
|
|
7513
7515
|
method: "POST",
|
|
7514
|
-
url: "/v1/{project_id}/
|
|
7516
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
7515
7517
|
contentType: "application/json",
|
|
7516
7518
|
queryParams: {},
|
|
7517
7519
|
pathParams: {},
|
|
@@ -7524,20 +7526,20 @@ const ParamCreater = function () {
|
|
|
7524
7526
|
let xSdkDate;
|
|
7525
7527
|
let xProjectId;
|
|
7526
7528
|
let xAppUserId;
|
|
7527
|
-
if (
|
|
7528
|
-
if (
|
|
7529
|
-
body =
|
|
7530
|
-
authorization =
|
|
7531
|
-
xSdkDate =
|
|
7532
|
-
xProjectId =
|
|
7533
|
-
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;
|
|
7534
7536
|
}
|
|
7535
7537
|
else {
|
|
7536
|
-
body =
|
|
7537
|
-
authorization =
|
|
7538
|
-
xSdkDate =
|
|
7539
|
-
xProjectId =
|
|
7540
|
-
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'];
|
|
7541
7543
|
}
|
|
7542
7544
|
}
|
|
7543
7545
|
if (body === null || body === undefined) {
|
|
@@ -7561,44 +7563,43 @@ const ParamCreater = function () {
|
|
|
7561
7563
|
return options;
|
|
7562
7564
|
},
|
|
7563
7565
|
/**
|
|
7564
|
-
*
|
|
7566
|
+
* 该接口用于删除智能直播间互动规则库。
|
|
7565
7567
|
*
|
|
7566
7568
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7567
7569
|
*/
|
|
7568
|
-
|
|
7570
|
+
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
7569
7571
|
const options = {
|
|
7570
|
-
method: "
|
|
7571
|
-
url: "/v1/{project_id}/
|
|
7572
|
+
method: "DELETE",
|
|
7573
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
7572
7574
|
contentType: "application/json",
|
|
7573
7575
|
queryParams: {},
|
|
7574
7576
|
pathParams: {},
|
|
7575
|
-
headers: {}
|
|
7576
|
-
data: {}
|
|
7577
|
+
headers: {}
|
|
7577
7578
|
};
|
|
7578
7579
|
const localVarHeaderParameter = {};
|
|
7579
|
-
let
|
|
7580
|
+
let groupId;
|
|
7580
7581
|
let authorization;
|
|
7581
7582
|
let xSdkDate;
|
|
7582
7583
|
let xProjectId;
|
|
7583
7584
|
let xAppUserId;
|
|
7584
|
-
if (
|
|
7585
|
-
if (
|
|
7586
|
-
|
|
7587
|
-
authorization =
|
|
7588
|
-
xSdkDate =
|
|
7589
|
-
xProjectId =
|
|
7590
|
-
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;
|
|
7591
7592
|
}
|
|
7592
7593
|
else {
|
|
7593
|
-
|
|
7594
|
-
authorization =
|
|
7595
|
-
xSdkDate =
|
|
7596
|
-
xProjectId =
|
|
7597
|
-
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'];
|
|
7598
7599
|
}
|
|
7599
7600
|
}
|
|
7600
|
-
if (
|
|
7601
|
-
throw new RequiredError('
|
|
7601
|
+
if (groupId === null || groupId === undefined) {
|
|
7602
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteInteractionRuleGroup.');
|
|
7602
7603
|
}
|
|
7603
7604
|
if (authorization !== undefined && authorization !== null) {
|
|
7604
7605
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -7612,28 +7613,285 @@ const ParamCreater = function () {
|
|
|
7612
7613
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7613
7614
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7614
7615
|
}
|
|
7615
|
-
|
|
7616
|
-
options.data = body !== undefined ? body : {};
|
|
7616
|
+
options.pathParams = { 'group_id': groupId, };
|
|
7617
7617
|
options.headers = localVarHeaderParameter;
|
|
7618
7618
|
return options;
|
|
7619
7619
|
},
|
|
7620
7620
|
/**
|
|
7621
|
-
*
|
|
7621
|
+
* 该接口用于智能直播间互动规则库列表。
|
|
7622
7622
|
*
|
|
7623
7623
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7624
7624
|
*/
|
|
7625
|
-
|
|
7625
|
+
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
7626
7626
|
const options = {
|
|
7627
|
-
method: "
|
|
7628
|
-
url: "/v1/{project_id}/
|
|
7627
|
+
method: "GET",
|
|
7628
|
+
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
7629
7629
|
contentType: "application/json",
|
|
7630
7630
|
queryParams: {},
|
|
7631
7631
|
pathParams: {},
|
|
7632
|
-
headers: {}
|
|
7633
|
-
data: {}
|
|
7632
|
+
headers: {}
|
|
7634
7633
|
};
|
|
7635
7634
|
const localVarHeaderParameter = {};
|
|
7636
|
-
|
|
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) {
|
|
7859
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
7860
|
+
}
|
|
7861
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7862
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7863
|
+
}
|
|
7864
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7865
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7866
|
+
}
|
|
7867
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7868
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7869
|
+
}
|
|
7870
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7871
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7872
|
+
}
|
|
7873
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7874
|
+
options.data = body !== undefined ? body : {};
|
|
7875
|
+
options.headers = localVarHeaderParameter;
|
|
7876
|
+
return options;
|
|
7877
|
+
},
|
|
7878
|
+
/**
|
|
7879
|
+
* 该接口用于删除知识库意图。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
|
|
7880
|
+
*
|
|
7881
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7882
|
+
*/
|
|
7883
|
+
deleteKnowledgeIntent(deleteKnowledgeIntentRequest) {
|
|
7884
|
+
const options = {
|
|
7885
|
+
method: "POST",
|
|
7886
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/intent/delete",
|
|
7887
|
+
contentType: "application/json",
|
|
7888
|
+
queryParams: {},
|
|
7889
|
+
pathParams: {},
|
|
7890
|
+
headers: {},
|
|
7891
|
+
data: {}
|
|
7892
|
+
};
|
|
7893
|
+
const localVarHeaderParameter = {};
|
|
7894
|
+
let body;
|
|
7637
7895
|
let authorization;
|
|
7638
7896
|
let xSdkDate;
|
|
7639
7897
|
let xProjectId;
|
|
@@ -11660,6 +11918,8 @@ const ParamCreater = function () {
|
|
|
11660
11918
|
let xAppUserId;
|
|
11661
11919
|
let authKey;
|
|
11662
11920
|
let expiresTime;
|
|
11921
|
+
let xMssAuthKey;
|
|
11922
|
+
let xMssExpiresTime;
|
|
11663
11923
|
let refreshUrl;
|
|
11664
11924
|
if (liveEventReportRequest !== null && liveEventReportRequest !== undefined) {
|
|
11665
11925
|
if (liveEventReportRequest instanceof LiveEventReportRequest_1.LiveEventReportRequest) {
|
|
@@ -11672,6 +11932,8 @@ const ParamCreater = function () {
|
|
|
11672
11932
|
xAppUserId = liveEventReportRequest.xAppUserId;
|
|
11673
11933
|
authKey = liveEventReportRequest.authKey;
|
|
11674
11934
|
expiresTime = liveEventReportRequest.expiresTime;
|
|
11935
|
+
xMssAuthKey = liveEventReportRequest.xMssAuthKey;
|
|
11936
|
+
xMssExpiresTime = liveEventReportRequest.xMssExpiresTime;
|
|
11675
11937
|
refreshUrl = liveEventReportRequest.refreshUrl;
|
|
11676
11938
|
}
|
|
11677
11939
|
else {
|
|
@@ -11684,6 +11946,8 @@ const ParamCreater = function () {
|
|
|
11684
11946
|
xAppUserId = liveEventReportRequest['X-App-UserId'];
|
|
11685
11947
|
authKey = liveEventReportRequest['auth_key'];
|
|
11686
11948
|
expiresTime = liveEventReportRequest['expires_time'];
|
|
11949
|
+
xMssAuthKey = liveEventReportRequest['x-mss-auth-key'];
|
|
11950
|
+
xMssExpiresTime = liveEventReportRequest['x-mss-expires-time'];
|
|
11687
11951
|
refreshUrl = liveEventReportRequest['refresh_url'];
|
|
11688
11952
|
}
|
|
11689
11953
|
}
|
|
@@ -11717,6 +11981,12 @@ const ParamCreater = function () {
|
|
|
11717
11981
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
11718
11982
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
11719
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
|
+
}
|
|
11720
11990
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11721
11991
|
options.data = body !== undefined ? body : {};
|
|
11722
11992
|
options.queryParams = localVarQueryParameter;
|
|
@@ -11974,63 +12244,6 @@ const ParamCreater = function () {
|
|
|
11974
12244
|
options.headers = localVarHeaderParameter;
|
|
11975
12245
|
return options;
|
|
11976
12246
|
},
|
|
11977
|
-
/**
|
|
11978
|
-
* 该接口用于创建智能直播间互动规则库。
|
|
11979
|
-
*
|
|
11980
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
11981
|
-
*/
|
|
11982
|
-
createInteractionRuleGroup(createInteractionRuleGroupRequest) {
|
|
11983
|
-
const options = {
|
|
11984
|
-
method: "POST",
|
|
11985
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
11986
|
-
contentType: "application/json",
|
|
11987
|
-
queryParams: {},
|
|
11988
|
-
pathParams: {},
|
|
11989
|
-
headers: {},
|
|
11990
|
-
data: {}
|
|
11991
|
-
};
|
|
11992
|
-
const localVarHeaderParameter = {};
|
|
11993
|
-
let body;
|
|
11994
|
-
let authorization;
|
|
11995
|
-
let xSdkDate;
|
|
11996
|
-
let xProjectId;
|
|
11997
|
-
let xAppUserId;
|
|
11998
|
-
if (createInteractionRuleGroupRequest !== null && createInteractionRuleGroupRequest !== undefined) {
|
|
11999
|
-
if (createInteractionRuleGroupRequest instanceof CreateInteractionRuleGroupRequest_1.CreateInteractionRuleGroupRequest) {
|
|
12000
|
-
body = createInteractionRuleGroupRequest.body;
|
|
12001
|
-
authorization = createInteractionRuleGroupRequest.authorization;
|
|
12002
|
-
xSdkDate = createInteractionRuleGroupRequest.xSdkDate;
|
|
12003
|
-
xProjectId = createInteractionRuleGroupRequest.xProjectId;
|
|
12004
|
-
xAppUserId = createInteractionRuleGroupRequest.xAppUserId;
|
|
12005
|
-
}
|
|
12006
|
-
else {
|
|
12007
|
-
body = createInteractionRuleGroupRequest['body'];
|
|
12008
|
-
authorization = createInteractionRuleGroupRequest['Authorization'];
|
|
12009
|
-
xSdkDate = createInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
12010
|
-
xProjectId = createInteractionRuleGroupRequest['X-Project-Id'];
|
|
12011
|
-
xAppUserId = createInteractionRuleGroupRequest['X-App-UserId'];
|
|
12012
|
-
}
|
|
12013
|
-
}
|
|
12014
|
-
if (body === null || body === undefined) {
|
|
12015
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
12016
|
-
}
|
|
12017
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12018
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12019
|
-
}
|
|
12020
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12021
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12022
|
-
}
|
|
12023
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12024
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12025
|
-
}
|
|
12026
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12027
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12028
|
-
}
|
|
12029
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12030
|
-
options.data = body !== undefined ? body : {};
|
|
12031
|
-
options.headers = localVarHeaderParameter;
|
|
12032
|
-
return options;
|
|
12033
|
-
},
|
|
12034
12247
|
/**
|
|
12035
12248
|
* 该接口用于创建智能直播间。
|
|
12036
12249
|
*
|
|
@@ -12088,61 +12301,6 @@ const ParamCreater = function () {
|
|
|
12088
12301
|
options.headers = localVarHeaderParameter;
|
|
12089
12302
|
return options;
|
|
12090
12303
|
},
|
|
12091
|
-
/**
|
|
12092
|
-
* 该接口用于删除智能直播间互动规则库。
|
|
12093
|
-
*
|
|
12094
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12095
|
-
*/
|
|
12096
|
-
deleteInteractionRuleGroup(deleteInteractionRuleGroupRequest) {
|
|
12097
|
-
const options = {
|
|
12098
|
-
method: "DELETE",
|
|
12099
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
12100
|
-
contentType: "application/json",
|
|
12101
|
-
queryParams: {},
|
|
12102
|
-
pathParams: {},
|
|
12103
|
-
headers: {}
|
|
12104
|
-
};
|
|
12105
|
-
const localVarHeaderParameter = {};
|
|
12106
|
-
let groupId;
|
|
12107
|
-
let authorization;
|
|
12108
|
-
let xSdkDate;
|
|
12109
|
-
let xProjectId;
|
|
12110
|
-
let xAppUserId;
|
|
12111
|
-
if (deleteInteractionRuleGroupRequest !== null && deleteInteractionRuleGroupRequest !== undefined) {
|
|
12112
|
-
if (deleteInteractionRuleGroupRequest instanceof DeleteInteractionRuleGroupRequest_1.DeleteInteractionRuleGroupRequest) {
|
|
12113
|
-
groupId = deleteInteractionRuleGroupRequest.groupId;
|
|
12114
|
-
authorization = deleteInteractionRuleGroupRequest.authorization;
|
|
12115
|
-
xSdkDate = deleteInteractionRuleGroupRequest.xSdkDate;
|
|
12116
|
-
xProjectId = deleteInteractionRuleGroupRequest.xProjectId;
|
|
12117
|
-
xAppUserId = deleteInteractionRuleGroupRequest.xAppUserId;
|
|
12118
|
-
}
|
|
12119
|
-
else {
|
|
12120
|
-
groupId = deleteInteractionRuleGroupRequest['group_id'];
|
|
12121
|
-
authorization = deleteInteractionRuleGroupRequest['Authorization'];
|
|
12122
|
-
xSdkDate = deleteInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
12123
|
-
xProjectId = deleteInteractionRuleGroupRequest['X-Project-Id'];
|
|
12124
|
-
xAppUserId = deleteInteractionRuleGroupRequest['X-App-UserId'];
|
|
12125
|
-
}
|
|
12126
|
-
}
|
|
12127
|
-
if (groupId === null || groupId === undefined) {
|
|
12128
|
-
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteInteractionRuleGroup.');
|
|
12129
|
-
}
|
|
12130
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12131
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12132
|
-
}
|
|
12133
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12134
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12135
|
-
}
|
|
12136
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12137
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12138
|
-
}
|
|
12139
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12140
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12141
|
-
}
|
|
12142
|
-
options.pathParams = { 'group_id': groupId, };
|
|
12143
|
-
options.headers = localVarHeaderParameter;
|
|
12144
|
-
return options;
|
|
12145
|
-
},
|
|
12146
12304
|
/**
|
|
12147
12305
|
* 该接口用于删除智能直播间。
|
|
12148
12306
|
*
|
|
@@ -12198,86 +12356,6 @@ const ParamCreater = function () {
|
|
|
12198
12356
|
options.headers = localVarHeaderParameter;
|
|
12199
12357
|
return options;
|
|
12200
12358
|
},
|
|
12201
|
-
/**
|
|
12202
|
-
* 该接口用于智能直播间互动规则库列表。
|
|
12203
|
-
*
|
|
12204
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12205
|
-
*/
|
|
12206
|
-
listInteractionRuleGroups(listInteractionRuleGroupsRequest) {
|
|
12207
|
-
const options = {
|
|
12208
|
-
method: "GET",
|
|
12209
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups",
|
|
12210
|
-
contentType: "application/json",
|
|
12211
|
-
queryParams: {},
|
|
12212
|
-
pathParams: {},
|
|
12213
|
-
headers: {}
|
|
12214
|
-
};
|
|
12215
|
-
const localVarHeaderParameter = {};
|
|
12216
|
-
const localVarQueryParameter = {};
|
|
12217
|
-
let authorization;
|
|
12218
|
-
let xSdkDate;
|
|
12219
|
-
let xProjectId;
|
|
12220
|
-
let xAppUserId;
|
|
12221
|
-
let offset;
|
|
12222
|
-
let limit;
|
|
12223
|
-
let createSince;
|
|
12224
|
-
let createUntil;
|
|
12225
|
-
let groupName;
|
|
12226
|
-
if (listInteractionRuleGroupsRequest !== null && listInteractionRuleGroupsRequest !== undefined) {
|
|
12227
|
-
if (listInteractionRuleGroupsRequest instanceof ListInteractionRuleGroupsRequest_1.ListInteractionRuleGroupsRequest) {
|
|
12228
|
-
authorization = listInteractionRuleGroupsRequest.authorization;
|
|
12229
|
-
xSdkDate = listInteractionRuleGroupsRequest.xSdkDate;
|
|
12230
|
-
xProjectId = listInteractionRuleGroupsRequest.xProjectId;
|
|
12231
|
-
xAppUserId = listInteractionRuleGroupsRequest.xAppUserId;
|
|
12232
|
-
offset = listInteractionRuleGroupsRequest.offset;
|
|
12233
|
-
limit = listInteractionRuleGroupsRequest.limit;
|
|
12234
|
-
createSince = listInteractionRuleGroupsRequest.createSince;
|
|
12235
|
-
createUntil = listInteractionRuleGroupsRequest.createUntil;
|
|
12236
|
-
groupName = listInteractionRuleGroupsRequest.groupName;
|
|
12237
|
-
}
|
|
12238
|
-
else {
|
|
12239
|
-
authorization = listInteractionRuleGroupsRequest['Authorization'];
|
|
12240
|
-
xSdkDate = listInteractionRuleGroupsRequest['X-Sdk-Date'];
|
|
12241
|
-
xProjectId = listInteractionRuleGroupsRequest['X-Project-Id'];
|
|
12242
|
-
xAppUserId = listInteractionRuleGroupsRequest['X-App-UserId'];
|
|
12243
|
-
offset = listInteractionRuleGroupsRequest['offset'];
|
|
12244
|
-
limit = listInteractionRuleGroupsRequest['limit'];
|
|
12245
|
-
createSince = listInteractionRuleGroupsRequest['create_since'];
|
|
12246
|
-
createUntil = listInteractionRuleGroupsRequest['create_until'];
|
|
12247
|
-
groupName = listInteractionRuleGroupsRequest['group_name'];
|
|
12248
|
-
}
|
|
12249
|
-
}
|
|
12250
|
-
if (offset !== null && offset !== undefined) {
|
|
12251
|
-
localVarQueryParameter['offset'] = offset;
|
|
12252
|
-
}
|
|
12253
|
-
if (limit !== null && limit !== undefined) {
|
|
12254
|
-
localVarQueryParameter['limit'] = limit;
|
|
12255
|
-
}
|
|
12256
|
-
if (createSince !== null && createSince !== undefined) {
|
|
12257
|
-
localVarQueryParameter['create_since'] = createSince;
|
|
12258
|
-
}
|
|
12259
|
-
if (createUntil !== null && createUntil !== undefined) {
|
|
12260
|
-
localVarQueryParameter['create_until'] = createUntil;
|
|
12261
|
-
}
|
|
12262
|
-
if (groupName !== null && groupName !== undefined) {
|
|
12263
|
-
localVarQueryParameter['group_name'] = groupName;
|
|
12264
|
-
}
|
|
12265
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12266
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12267
|
-
}
|
|
12268
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12269
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12270
|
-
}
|
|
12271
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12272
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12273
|
-
}
|
|
12274
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12275
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12276
|
-
}
|
|
12277
|
-
options.queryParams = localVarQueryParameter;
|
|
12278
|
-
options.headers = localVarHeaderParameter;
|
|
12279
|
-
return options;
|
|
12280
|
-
},
|
|
12281
12359
|
/**
|
|
12282
12360
|
* 该接口用于智能直播间列表。
|
|
12283
12361
|
*
|
|
@@ -12395,7 +12473,7 @@ const ParamCreater = function () {
|
|
|
12395
12473
|
return options;
|
|
12396
12474
|
},
|
|
12397
12475
|
/**
|
|
12398
|
-
*
|
|
12476
|
+
* 该接口用于查询智能直播间剧本详情。
|
|
12399
12477
|
*
|
|
12400
12478
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12401
12479
|
*/
|
|
@@ -12449,70 +12527,6 @@ const ParamCreater = function () {
|
|
|
12449
12527
|
options.headers = localVarHeaderParameter;
|
|
12450
12528
|
return options;
|
|
12451
12529
|
},
|
|
12452
|
-
/**
|
|
12453
|
-
* 该接口用于更新智能直播间互动规则库。
|
|
12454
|
-
*
|
|
12455
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12456
|
-
*/
|
|
12457
|
-
updateInteractionRuleGroup(updateInteractionRuleGroupRequest) {
|
|
12458
|
-
const options = {
|
|
12459
|
-
method: "PUT",
|
|
12460
|
-
url: "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}",
|
|
12461
|
-
contentType: "application/json",
|
|
12462
|
-
queryParams: {},
|
|
12463
|
-
pathParams: {},
|
|
12464
|
-
headers: {},
|
|
12465
|
-
data: {}
|
|
12466
|
-
};
|
|
12467
|
-
const localVarHeaderParameter = {};
|
|
12468
|
-
let body;
|
|
12469
|
-
let groupId;
|
|
12470
|
-
let authorization;
|
|
12471
|
-
let xSdkDate;
|
|
12472
|
-
let xProjectId;
|
|
12473
|
-
let xAppUserId;
|
|
12474
|
-
if (updateInteractionRuleGroupRequest !== null && updateInteractionRuleGroupRequest !== undefined) {
|
|
12475
|
-
if (updateInteractionRuleGroupRequest instanceof UpdateInteractionRuleGroupRequest_1.UpdateInteractionRuleGroupRequest) {
|
|
12476
|
-
groupId = updateInteractionRuleGroupRequest.groupId;
|
|
12477
|
-
body = updateInteractionRuleGroupRequest.body;
|
|
12478
|
-
authorization = updateInteractionRuleGroupRequest.authorization;
|
|
12479
|
-
xSdkDate = updateInteractionRuleGroupRequest.xSdkDate;
|
|
12480
|
-
xProjectId = updateInteractionRuleGroupRequest.xProjectId;
|
|
12481
|
-
xAppUserId = updateInteractionRuleGroupRequest.xAppUserId;
|
|
12482
|
-
}
|
|
12483
|
-
else {
|
|
12484
|
-
groupId = updateInteractionRuleGroupRequest['group_id'];
|
|
12485
|
-
body = updateInteractionRuleGroupRequest['body'];
|
|
12486
|
-
authorization = updateInteractionRuleGroupRequest['Authorization'];
|
|
12487
|
-
xSdkDate = updateInteractionRuleGroupRequest['X-Sdk-Date'];
|
|
12488
|
-
xProjectId = updateInteractionRuleGroupRequest['X-Project-Id'];
|
|
12489
|
-
xAppUserId = updateInteractionRuleGroupRequest['X-App-UserId'];
|
|
12490
|
-
}
|
|
12491
|
-
}
|
|
12492
|
-
if (groupId === null || groupId === undefined) {
|
|
12493
|
-
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateInteractionRuleGroup.');
|
|
12494
|
-
}
|
|
12495
|
-
if (body === null || body === undefined) {
|
|
12496
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
12497
|
-
}
|
|
12498
|
-
if (authorization !== undefined && authorization !== null) {
|
|
12499
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
12500
|
-
}
|
|
12501
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
12502
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
12503
|
-
}
|
|
12504
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
12505
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
12506
|
-
}
|
|
12507
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12508
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12509
|
-
}
|
|
12510
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12511
|
-
options.data = body !== undefined ? body : {};
|
|
12512
|
-
options.pathParams = { 'group_id': groupId, };
|
|
12513
|
-
options.headers = localVarHeaderParameter;
|
|
12514
|
-
return options;
|
|
12515
|
-
},
|
|
12516
12530
|
/**
|
|
12517
12531
|
* 该接口用于智能直播间信息。
|
|
12518
12532
|
*
|
|
@@ -14385,7 +14399,7 @@ const ParamCreater = function () {
|
|
|
14385
14399
|
return options;
|
|
14386
14400
|
},
|
|
14387
14401
|
/**
|
|
14388
|
-
*
|
|
14402
|
+
* 该接口用于对外生成音频文件。每个预制音色的计费标准详见[预置音色计费标准](metastudio_02_0060.xml)。
|
|
14389
14403
|
*
|
|
14390
14404
|
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
14391
14405
|
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|