@huaweicloud/huaweicloud-sdk-metastudio 3.1.166 → 3.1.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/package.json +2 -2
  2. package/v1/MetaStudioClient.d.ts +58 -188
  3. package/v1/MetaStudioClient.d.ts.map +1 -1
  4. package/v1/MetaStudioClient.js +132 -506
  5. package/v1/MetaStudioClient.js.map +1 -1
  6. package/v1/model/SignAgreementRequest.d.ts +16 -0
  7. package/v1/model/SignAgreementRequest.d.ts.map +1 -0
  8. package/v1/model/{ShowAsrVocabularyRequest.js → SignAgreementRequest.js} +5 -26
  9. package/v1/model/SignAgreementRequest.js.map +1 -0
  10. package/v1/model/SignAgreementResponse.d.ts +41 -0
  11. package/v1/model/SignAgreementResponse.d.ts.map +1 -0
  12. package/v1/model/SignAgreementResponse.js +90 -0
  13. package/v1/model/SignAgreementResponse.js.map +1 -0
  14. package/v1/model/SignSpecialAgreementRequest.d.ts +19 -0
  15. package/v1/model/SignSpecialAgreementRequest.d.ts.map +1 -0
  16. package/v1/model/{CreateAsrVocabularyRequest.js → SignSpecialAgreementRequest.js} +4 -14
  17. package/v1/model/SignSpecialAgreementRequest.js.map +1 -0
  18. package/v1/model/SignSpecialAgreementResponse.d.ts +25 -0
  19. package/v1/model/SignSpecialAgreementResponse.d.ts.map +1 -0
  20. package/v1/model/SignSpecialAgreementResponse.js +61 -0
  21. package/v1/model/SignSpecialAgreementResponse.js.map +1 -0
  22. package/v1/model/SpecialAgreementSignReq.d.ts +12 -0
  23. package/v1/model/SpecialAgreementSignReq.d.ts.map +1 -0
  24. package/v1/model/SpecialAgreementSignReq.js +31 -0
  25. package/v1/model/SpecialAgreementSignReq.js.map +1 -0
  26. package/v1/public-api.d.ts +5 -18
  27. package/v1/public-api.d.ts.map +1 -1
  28. package/v1/public-api.js +5 -18
  29. package/v1/public-api.js.map +1 -1
  30. package/v1/model/AsrVocabularyAssociation.d.ts +0 -19
  31. package/v1/model/AsrVocabularyAssociation.d.ts.map +0 -1
  32. package/v1/model/AsrVocabularyAssociation.js +0 -43
  33. package/v1/model/AsrVocabularyAssociation.js.map +0 -1
  34. package/v1/model/AsrVocabularyInfo.d.ts +0 -28
  35. package/v1/model/AsrVocabularyInfo.d.ts.map +0 -1
  36. package/v1/model/AsrVocabularyInfo.js +0 -61
  37. package/v1/model/AsrVocabularyInfo.js.map +0 -1
  38. package/v1/model/AsrVocabularyTypeEnum.d.ts +0 -4
  39. package/v1/model/AsrVocabularyTypeEnum.d.ts.map +0 -1
  40. package/v1/model/AsrVocabularyTypeEnum.js +0 -9
  41. package/v1/model/AsrVocabularyTypeEnum.js.map +0 -1
  42. package/v1/model/CreateAsrVocabularyReq.d.ts +0 -19
  43. package/v1/model/CreateAsrVocabularyReq.d.ts.map +0 -1
  44. package/v1/model/CreateAsrVocabularyReq.js +0 -40
  45. package/v1/model/CreateAsrVocabularyReq.js.map +0 -1
  46. package/v1/model/CreateAsrVocabularyRequest.d.ts +0 -23
  47. package/v1/model/CreateAsrVocabularyRequest.d.ts.map +0 -1
  48. package/v1/model/CreateAsrVocabularyRequest.js.map +0 -1
  49. package/v1/model/CreateAsrVocabularyResponse.d.ts +0 -33
  50. package/v1/model/CreateAsrVocabularyResponse.d.ts.map +0 -1
  51. package/v1/model/CreateAsrVocabularyResponse.js +0 -73
  52. package/v1/model/CreateAsrVocabularyResponse.js.map +0 -1
  53. package/v1/model/DeleteAsrVocabularyRequest.d.ts +0 -24
  54. package/v1/model/DeleteAsrVocabularyRequest.d.ts.map +0 -1
  55. package/v1/model/DeleteAsrVocabularyRequest.js +0 -60
  56. package/v1/model/DeleteAsrVocabularyRequest.js.map +0 -1
  57. package/v1/model/DeleteAsrVocabularyResponse.d.ts +0 -9
  58. package/v1/model/DeleteAsrVocabularyResponse.d.ts.map +0 -1
  59. package/v1/model/DeleteAsrVocabularyResponse.js +0 -21
  60. package/v1/model/DeleteAsrVocabularyResponse.js.map +0 -1
  61. package/v1/model/ListAsrVocabularyRequest.d.ts +0 -49
  62. package/v1/model/ListAsrVocabularyRequest.d.ts.map +0 -1
  63. package/v1/model/ListAsrVocabularyRequest.js +0 -92
  64. package/v1/model/ListAsrVocabularyRequest.js.map +0 -1
  65. package/v1/model/ListAsrVocabularyResponse.d.ts +0 -18
  66. package/v1/model/ListAsrVocabularyResponse.d.ts.map +0 -1
  67. package/v1/model/ListAsrVocabularyResponse.js +0 -37
  68. package/v1/model/ListAsrVocabularyResponse.js.map +0 -1
  69. package/v1/model/MobvoiVocabulary.d.ts +0 -6
  70. package/v1/model/MobvoiVocabulary.d.ts.map +0 -1
  71. package/v1/model/MobvoiVocabulary.js +0 -14
  72. package/v1/model/MobvoiVocabulary.js.map +0 -1
  73. package/v1/model/ShowAsrVocabularyAssociationRequest.d.ts +0 -28
  74. package/v1/model/ShowAsrVocabularyAssociationRequest.d.ts.map +0 -1
  75. package/v1/model/ShowAsrVocabularyAssociationRequest.js +0 -68
  76. package/v1/model/ShowAsrVocabularyAssociationRequest.js.map +0 -1
  77. package/v1/model/ShowAsrVocabularyAssociationResponse.d.ts +0 -18
  78. package/v1/model/ShowAsrVocabularyAssociationResponse.d.ts.map +0 -1
  79. package/v1/model/ShowAsrVocabularyAssociationResponse.js +0 -37
  80. package/v1/model/ShowAsrVocabularyAssociationResponse.js.map +0 -1
  81. package/v1/model/ShowAsrVocabularyRequest.d.ts +0 -24
  82. package/v1/model/ShowAsrVocabularyRequest.d.ts.map +0 -1
  83. package/v1/model/ShowAsrVocabularyRequest.js.map +0 -1
  84. package/v1/model/ShowAsrVocabularyResponse.d.ts +0 -33
  85. package/v1/model/ShowAsrVocabularyResponse.d.ts.map +0 -1
  86. package/v1/model/ShowAsrVocabularyResponse.js +0 -73
  87. package/v1/model/ShowAsrVocabularyResponse.js.map +0 -1
  88. package/v1/model/UpdateAsrVocabularyReq.d.ts +0 -19
  89. package/v1/model/UpdateAsrVocabularyReq.d.ts.map +0 -1
  90. package/v1/model/UpdateAsrVocabularyReq.js +0 -38
  91. package/v1/model/UpdateAsrVocabularyReq.js.map +0 -1
  92. package/v1/model/UpdateAsrVocabularyRequest.d.ts +0 -27
  93. package/v1/model/UpdateAsrVocabularyRequest.d.ts.map +0 -1
  94. package/v1/model/UpdateAsrVocabularyRequest.js +0 -64
  95. package/v1/model/UpdateAsrVocabularyRequest.js.map +0 -1
  96. package/v1/model/UpdateAsrVocabularyResponse.d.ts +0 -33
  97. package/v1/model/UpdateAsrVocabularyResponse.d.ts.map +0 -1
  98. package/v1/model/UpdateAsrVocabularyResponse.js +0 -73
  99. package/v1/model/UpdateAsrVocabularyResponse.js.map +0 -1
@@ -23,7 +23,6 @@ const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHuman
23
23
  const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
24
24
  const CreateActiveCodeRequest_1 = require("./model/CreateActiveCodeRequest");
25
25
  const CreateAgencyWithRoleTypeRequest_1 = require("./model/CreateAgencyWithRoleTypeRequest");
26
- const CreateAsrVocabularyRequest_1 = require("./model/CreateAsrVocabularyRequest");
27
26
  const CreateAssetByReplicationInfoRequest_1 = require("./model/CreateAssetByReplicationInfoRequest");
28
27
  const CreateAsyncTtsJobRequest_1 = require("./model/CreateAsyncTtsJobRequest");
29
28
  const CreateBatchKnowledgeQuestionRequest_1 = require("./model/CreateBatchKnowledgeQuestionRequest");
@@ -77,7 +76,6 @@ const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest
77
76
  const Delete2dModelTrainingJobRequest_1 = require("./model/Delete2dModelTrainingJobRequest");
78
77
  const DeleteActiveCodeRequest_1 = require("./model/DeleteActiveCodeRequest");
79
78
  const DeleteAgencyWithRoleTypeRequest_1 = require("./model/DeleteAgencyWithRoleTypeRequest");
80
- const DeleteAsrVocabularyRequest_1 = require("./model/DeleteAsrVocabularyRequest");
81
79
  const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
82
80
  const DeleteDialogReportConfigRequest_1 = require("./model/DeleteDialogReportConfigRequest");
83
81
  const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
@@ -120,7 +118,6 @@ const ExportResourceRequest_1 = require("./model/ExportResourceRequest");
120
118
  const ImportResourceRequest_1 = require("./model/ImportResourceRequest");
121
119
  const List2dModelTrainingJobRequest_1 = require("./model/List2dModelTrainingJobRequest");
122
120
  const ListActiveCodeRequest_1 = require("./model/ListActiveCodeRequest");
123
- const ListAsrVocabularyRequest_1 = require("./model/ListAsrVocabularyRequest");
124
121
  const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
125
122
  const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
126
123
  const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanBusinessCardRequest");
@@ -180,8 +177,6 @@ const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVide
180
177
  const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
181
178
  const ShowActiveCodeRequest_1 = require("./model/ShowActiveCodeRequest");
182
179
  const ShowAgencyRequest_1 = require("./model/ShowAgencyRequest");
183
- const ShowAsrVocabularyAssociationRequest_1 = require("./model/ShowAsrVocabularyAssociationRequest");
184
- const ShowAsrVocabularyRequest_1 = require("./model/ShowAsrVocabularyRequest");
185
180
  const ShowAssetReplicationInfoRequest_1 = require("./model/ShowAssetReplicationInfoRequest");
186
181
  const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
187
182
  const ShowAsyncTtsJobRequest_1 = require("./model/ShowAsyncTtsJobRequest");
@@ -232,6 +227,8 @@ const ShowVocabularySwitchConfigsRequest_1 = require("./model/ShowVocabularySwit
232
227
  const ShowVoiceTrainingJobRequest_1 = require("./model/ShowVoiceTrainingJobRequest");
233
228
  const ShowWelcomeSpeechRequest_1 = require("./model/ShowWelcomeSpeechRequest");
234
229
  const ShowWelcomeSpeechSwitchRequest_1 = require("./model/ShowWelcomeSpeechSwitchRequest");
230
+ const SignAgreementRequest_1 = require("./model/SignAgreementRequest");
231
+ const SignSpecialAgreementRequest_1 = require("./model/SignSpecialAgreementRequest");
235
232
  const StartDocumentSegmentRequest_1 = require("./model/StartDocumentSegmentRequest");
236
233
  const StartSmartChatJobRequest_1 = require("./model/StartSmartChatJobRequest");
237
234
  const StartSmartLiveRequest_1 = require("./model/StartSmartLiveRequest");
@@ -240,7 +237,6 @@ const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
240
237
  const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
241
238
  const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
242
239
  const UpdateActiveCodeRequest_1 = require("./model/UpdateActiveCodeRequest");
243
- const UpdateAsrVocabularyRequest_1 = require("./model/UpdateAsrVocabularyRequest");
244
240
  const UpdateBatchKnowledgeQuestionRequest_1 = require("./model/UpdateBatchKnowledgeQuestionRequest");
245
241
  const UpdateDialogReportConfigRequest_1 = require("./model/UpdateDialogReportConfigRequest");
246
242
  const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
@@ -459,132 +455,6 @@ class MetaStudioClient {
459
455
  options['responseHeaders'] = ['X-Request-Id'];
460
456
  return this.hcClient.sendRequest(options);
461
457
  }
462
- /**
463
- * 该接口用于创建热词表。
464
- *
465
- * Please refer to HUAWEI cloud API Explorer for details.
466
- *
467
- * @summary 创建热词表
468
- * @param {CreateAsrVocabularyReq} createAsrVocabularyRequestBody 创建热词表请求。
469
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
470
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
471
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
472
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
473
- * @param {*} [options] Override http request option.
474
- * @throws {RequiredError}
475
- */
476
- createAsrVocabulary(createAsrVocabularyRequest) {
477
- const options = (0, exports.ParamCreater)().createAsrVocabulary(createAsrVocabularyRequest);
478
- // @ts-ignore
479
- options['responseHeaders'] = ['X-Request-Id'];
480
- return this.hcClient.sendRequest(options);
481
- }
482
- /**
483
- * 该接口用于删除热词表。
484
- *
485
- * Please refer to HUAWEI cloud API Explorer for details.
486
- *
487
- * @summary 删除热词表
488
- * @param {string} asrVocabularyId 热词表ID。
489
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
490
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
491
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
492
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
493
- * @param {*} [options] Override http request option.
494
- * @throws {RequiredError}
495
- */
496
- deleteAsrVocabulary(deleteAsrVocabularyRequest) {
497
- const options = (0, exports.ParamCreater)().deleteAsrVocabulary(deleteAsrVocabularyRequest);
498
- // @ts-ignore
499
- options['responseHeaders'] = ['X-Request-Id'];
500
- return this.hcClient.sendRequest(options);
501
- }
502
- /**
503
- * 该接口用于查询热词表列表。
504
- *
505
- * Please refer to HUAWEI cloud API Explorer for details.
506
- *
507
- * @summary 查询热词表列表
508
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
509
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
510
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
511
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
512
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
513
- * @param {number} [limit] 每页显示的条目数量。
514
- * @param {'MOBVOI'} [vocabularyType] 词表类型。 > MOBVOI:使用的语音识别服务为MOBVOI时选择此类型
515
- * @param {'CN' | 'EN' | 'ESP' | 'por' | 'Arabic' | 'Thai'} [language] 智能交互语言 * CN:中文。 * EN:英文。 * ESP:西班牙语(仅海外站点支持) * por:葡萄牙语(仅海外站点支持) * Arabic:阿拉伯语(仅海外站点支持) * Thai:泰语(仅海外站点支持)
516
- * @param {*} [options] Override http request option.
517
- * @throws {RequiredError}
518
- */
519
- listAsrVocabulary(listAsrVocabularyRequest) {
520
- const options = (0, exports.ParamCreater)().listAsrVocabulary(listAsrVocabularyRequest);
521
- // @ts-ignore
522
- options['responseHeaders'] = ['X-Request-Id'];
523
- return this.hcClient.sendRequest(options);
524
- }
525
- /**
526
- * 该接口用于查询热词表详情。
527
- *
528
- * Please refer to HUAWEI cloud API Explorer for details.
529
- *
530
- * @summary 查询热词表详情
531
- * @param {string} asrVocabularyId 热词表ID。
532
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
533
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
534
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
535
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
536
- * @param {*} [options] Override http request option.
537
- * @throws {RequiredError}
538
- */
539
- showAsrVocabulary(showAsrVocabularyRequest) {
540
- const options = (0, exports.ParamCreater)().showAsrVocabulary(showAsrVocabularyRequest);
541
- // @ts-ignore
542
- options['responseHeaders'] = ['X-Request-Id'];
543
- return this.hcClient.sendRequest(options);
544
- }
545
- /**
546
- * 该接口用于查询热词表关联详情。
547
- *
548
- * Please refer to HUAWEI cloud API Explorer for details.
549
- *
550
- * @summary 查询热词表关联详情
551
- * @param {string} asrVocabularyId 热词表ID。
552
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
553
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
554
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
555
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
556
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
557
- * @param {number} [limit] 每页显示的条目数量。
558
- * @param {*} [options] Override http request option.
559
- * @throws {RequiredError}
560
- */
561
- showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest) {
562
- const options = (0, exports.ParamCreater)().showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest);
563
- // @ts-ignore
564
- options['responseHeaders'] = ['X-Request-Id'];
565
- return this.hcClient.sendRequest(options);
566
- }
567
- /**
568
- * 该接口用于修改热词表。
569
- *
570
- * Please refer to HUAWEI cloud API Explorer for details.
571
- *
572
- * @summary 修改热词表
573
- * @param {string} asrVocabularyId 热词表ID。
574
- * @param {UpdateAsrVocabularyReq} updateAsrVocabularyRequestBody 修改热词表请求。
575
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
576
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
577
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
578
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
579
- * @param {*} [options] Override http request option.
580
- * @throws {RequiredError}
581
- */
582
- updateAsrVocabulary(updateAsrVocabularyRequest) {
583
- const options = (0, exports.ParamCreater)().updateAsrVocabulary(updateAsrVocabularyRequest);
584
- // @ts-ignore
585
- options['responseHeaders'] = ['X-Request-Id'];
586
- return this.hcClient.sendRequest(options);
587
- }
588
458
  /**
589
459
  * 删除导入导出任务
590
460
  *
@@ -4702,6 +4572,43 @@ class MetaStudioClient {
4702
4572
  options['responseHeaders'] = ['X-Request-Id'];
4703
4573
  return this.hcClient.sendRequest(options);
4704
4574
  }
4575
+ /**
4576
+ * 签署云服务声明。调用此接口前请知悉[[metastudio隐私协议](https://www.huaweicloud.com/declaration/tsa_metastudio.html)](tag:hws)[[metastudio隐私协议](https://www.huaweicloud.com/intl/en-us/declaration-sg/tsa-metastudio.html)](tag:hws_hk)。
4577
+ *
4578
+ * Please refer to HUAWEI cloud API Explorer for details.
4579
+ *
4580
+ * @summary 签署云服务声明
4581
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4582
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4583
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4584
+ * @param {*} [options] Override http request option.
4585
+ * @throws {RequiredError}
4586
+ */
4587
+ signAgreement(signAgreementRequest) {
4588
+ const options = (0, exports.ParamCreater)().signAgreement(signAgreementRequest);
4589
+ // @ts-ignore
4590
+ options['responseHeaders'] = ['X-Request-Id'];
4591
+ return this.hcClient.sendRequest(options);
4592
+ }
4593
+ /**
4594
+ * 签署特殊云服务声明,目前可签署自动支付协议。开启自动支付协议之后,调用下单接口时,华为云将进行自动扣费。若因账户余额不足导致扣费失败,系统会生成待支付订单,您可前往费用中心-我的订单查看,届时您需手动完成支付。
4595
+ *
4596
+ * Please refer to HUAWEI cloud API Explorer for details.
4597
+ *
4598
+ * @summary 签署特殊云服务声明
4599
+ * @param {SpecialAgreementSignReq} signSpecialAgreementRequestBody 签署特殊协议请求
4600
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4601
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4602
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4603
+ * @param {*} [options] Override http request option.
4604
+ * @throws {RequiredError}
4605
+ */
4606
+ signSpecialAgreement(signSpecialAgreementRequest) {
4607
+ const options = (0, exports.ParamCreater)().signSpecialAgreement(signSpecialAgreementRequest);
4608
+ // @ts-ignore
4609
+ options['responseHeaders'] = ['X-Request-Id'];
4610
+ return this.hcClient.sendRequest(options);
4611
+ }
4705
4612
  /**
4706
4613
  * 提交训练任务,执行该接口后,任务会进入审核状态,审核完成后会等待训练。
4707
4614
  *
@@ -6460,380 +6367,6 @@ const ParamCreater = function () {
6460
6367
  options.headers = localVarHeaderParameter;
6461
6368
  return options;
6462
6369
  },
6463
- /**
6464
- * 该接口用于创建热词表。
6465
- *
6466
- * Please refer to HUAWEI cloud API Explorer for details.
6467
- */
6468
- createAsrVocabulary(createAsrVocabularyRequest) {
6469
- const options = {
6470
- method: "POST",
6471
- url: "/v1/{project_id}/digital-human-chat/asr-vocabulary",
6472
- contentType: "application/json",
6473
- queryParams: {},
6474
- pathParams: {},
6475
- headers: {},
6476
- data: {}
6477
- };
6478
- const localVarHeaderParameter = {};
6479
- let body;
6480
- let authorization;
6481
- let xSdkDate;
6482
- let xProjectId;
6483
- let xAppUserId;
6484
- if (createAsrVocabularyRequest !== null && createAsrVocabularyRequest !== undefined) {
6485
- if (createAsrVocabularyRequest instanceof CreateAsrVocabularyRequest_1.CreateAsrVocabularyRequest) {
6486
- body = createAsrVocabularyRequest.body;
6487
- authorization = createAsrVocabularyRequest.authorization;
6488
- xSdkDate = createAsrVocabularyRequest.xSdkDate;
6489
- xProjectId = createAsrVocabularyRequest.xProjectId;
6490
- xAppUserId = createAsrVocabularyRequest.xAppUserId;
6491
- }
6492
- else {
6493
- body = createAsrVocabularyRequest['body'];
6494
- authorization = createAsrVocabularyRequest['Authorization'];
6495
- xSdkDate = createAsrVocabularyRequest['X-Sdk-Date'];
6496
- xProjectId = createAsrVocabularyRequest['X-Project-Id'];
6497
- xAppUserId = createAsrVocabularyRequest['X-App-UserId'];
6498
- }
6499
- }
6500
- if (body === null || body === undefined) {
6501
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6502
- }
6503
- if (authorization !== undefined && authorization !== null) {
6504
- localVarHeaderParameter['Authorization'] = String(authorization);
6505
- }
6506
- if (xSdkDate !== undefined && xSdkDate !== null) {
6507
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6508
- }
6509
- if (xProjectId !== undefined && xProjectId !== null) {
6510
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6511
- }
6512
- if (xAppUserId !== undefined && xAppUserId !== null) {
6513
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6514
- }
6515
- localVarHeaderParameter['Content-Type'] = 'application/json';
6516
- options.data = body !== undefined ? body : {};
6517
- options.headers = localVarHeaderParameter;
6518
- return options;
6519
- },
6520
- /**
6521
- * 该接口用于删除热词表。
6522
- *
6523
- * Please refer to HUAWEI cloud API Explorer for details.
6524
- */
6525
- deleteAsrVocabulary(deleteAsrVocabularyRequest) {
6526
- const options = {
6527
- method: "DELETE",
6528
- url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
6529
- contentType: "application/json",
6530
- queryParams: {},
6531
- pathParams: {},
6532
- headers: {}
6533
- };
6534
- const localVarHeaderParameter = {};
6535
- let asrVocabularyId;
6536
- let authorization;
6537
- let xSdkDate;
6538
- let xProjectId;
6539
- let xAppUserId;
6540
- if (deleteAsrVocabularyRequest !== null && deleteAsrVocabularyRequest !== undefined) {
6541
- if (deleteAsrVocabularyRequest instanceof DeleteAsrVocabularyRequest_1.DeleteAsrVocabularyRequest) {
6542
- asrVocabularyId = deleteAsrVocabularyRequest.asrVocabularyId;
6543
- authorization = deleteAsrVocabularyRequest.authorization;
6544
- xSdkDate = deleteAsrVocabularyRequest.xSdkDate;
6545
- xProjectId = deleteAsrVocabularyRequest.xProjectId;
6546
- xAppUserId = deleteAsrVocabularyRequest.xAppUserId;
6547
- }
6548
- else {
6549
- asrVocabularyId = deleteAsrVocabularyRequest['asr_vocabulary_id'];
6550
- authorization = deleteAsrVocabularyRequest['Authorization'];
6551
- xSdkDate = deleteAsrVocabularyRequest['X-Sdk-Date'];
6552
- xProjectId = deleteAsrVocabularyRequest['X-Project-Id'];
6553
- xAppUserId = deleteAsrVocabularyRequest['X-App-UserId'];
6554
- }
6555
- }
6556
- if (asrVocabularyId === null || asrVocabularyId === undefined) {
6557
- throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling deleteAsrVocabulary.');
6558
- }
6559
- if (authorization !== undefined && authorization !== null) {
6560
- localVarHeaderParameter['Authorization'] = String(authorization);
6561
- }
6562
- if (xSdkDate !== undefined && xSdkDate !== null) {
6563
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6564
- }
6565
- if (xProjectId !== undefined && xProjectId !== null) {
6566
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6567
- }
6568
- if (xAppUserId !== undefined && xAppUserId !== null) {
6569
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6570
- }
6571
- options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
6572
- options.headers = localVarHeaderParameter;
6573
- return options;
6574
- },
6575
- /**
6576
- * 该接口用于查询热词表列表。
6577
- *
6578
- * Please refer to HUAWEI cloud API Explorer for details.
6579
- */
6580
- listAsrVocabulary(listAsrVocabularyRequest) {
6581
- const options = {
6582
- method: "GET",
6583
- url: "/v1/{project_id}/digital-human-chat/asr-vocabulary",
6584
- contentType: "application/json",
6585
- queryParams: {},
6586
- pathParams: {},
6587
- headers: {}
6588
- };
6589
- const localVarHeaderParameter = {};
6590
- const localVarQueryParameter = {};
6591
- let authorization;
6592
- let xSdkDate;
6593
- let xProjectId;
6594
- let xAppUserId;
6595
- let offset;
6596
- let limit;
6597
- let vocabularyType;
6598
- let language;
6599
- if (listAsrVocabularyRequest !== null && listAsrVocabularyRequest !== undefined) {
6600
- if (listAsrVocabularyRequest instanceof ListAsrVocabularyRequest_1.ListAsrVocabularyRequest) {
6601
- authorization = listAsrVocabularyRequest.authorization;
6602
- xSdkDate = listAsrVocabularyRequest.xSdkDate;
6603
- xProjectId = listAsrVocabularyRequest.xProjectId;
6604
- xAppUserId = listAsrVocabularyRequest.xAppUserId;
6605
- offset = listAsrVocabularyRequest.offset;
6606
- limit = listAsrVocabularyRequest.limit;
6607
- vocabularyType = listAsrVocabularyRequest.vocabularyType;
6608
- language = listAsrVocabularyRequest.language;
6609
- }
6610
- else {
6611
- authorization = listAsrVocabularyRequest['Authorization'];
6612
- xSdkDate = listAsrVocabularyRequest['X-Sdk-Date'];
6613
- xProjectId = listAsrVocabularyRequest['X-Project-Id'];
6614
- xAppUserId = listAsrVocabularyRequest['X-App-UserId'];
6615
- offset = listAsrVocabularyRequest['offset'];
6616
- limit = listAsrVocabularyRequest['limit'];
6617
- vocabularyType = listAsrVocabularyRequest['vocabulary_type'];
6618
- language = listAsrVocabularyRequest['language'];
6619
- }
6620
- }
6621
- if (offset !== null && offset !== undefined) {
6622
- localVarQueryParameter['offset'] = offset;
6623
- }
6624
- if (limit !== null && limit !== undefined) {
6625
- localVarQueryParameter['limit'] = limit;
6626
- }
6627
- if (vocabularyType !== null && vocabularyType !== undefined) {
6628
- localVarQueryParameter['vocabulary_type'] = vocabularyType;
6629
- }
6630
- if (language !== null && language !== undefined) {
6631
- localVarQueryParameter['language'] = language;
6632
- }
6633
- if (authorization !== undefined && authorization !== null) {
6634
- localVarHeaderParameter['Authorization'] = String(authorization);
6635
- }
6636
- if (xSdkDate !== undefined && xSdkDate !== null) {
6637
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6638
- }
6639
- if (xProjectId !== undefined && xProjectId !== null) {
6640
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6641
- }
6642
- if (xAppUserId !== undefined && xAppUserId !== null) {
6643
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6644
- }
6645
- options.queryParams = localVarQueryParameter;
6646
- options.headers = localVarHeaderParameter;
6647
- return options;
6648
- },
6649
- /**
6650
- * 该接口用于查询热词表详情。
6651
- *
6652
- * Please refer to HUAWEI cloud API Explorer for details.
6653
- */
6654
- showAsrVocabulary(showAsrVocabularyRequest) {
6655
- const options = {
6656
- method: "GET",
6657
- url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
6658
- contentType: "application/json",
6659
- queryParams: {},
6660
- pathParams: {},
6661
- headers: {}
6662
- };
6663
- const localVarHeaderParameter = {};
6664
- let asrVocabularyId;
6665
- let authorization;
6666
- let xSdkDate;
6667
- let xProjectId;
6668
- let xAppUserId;
6669
- if (showAsrVocabularyRequest !== null && showAsrVocabularyRequest !== undefined) {
6670
- if (showAsrVocabularyRequest instanceof ShowAsrVocabularyRequest_1.ShowAsrVocabularyRequest) {
6671
- asrVocabularyId = showAsrVocabularyRequest.asrVocabularyId;
6672
- authorization = showAsrVocabularyRequest.authorization;
6673
- xSdkDate = showAsrVocabularyRequest.xSdkDate;
6674
- xProjectId = showAsrVocabularyRequest.xProjectId;
6675
- xAppUserId = showAsrVocabularyRequest.xAppUserId;
6676
- }
6677
- else {
6678
- asrVocabularyId = showAsrVocabularyRequest['asr_vocabulary_id'];
6679
- authorization = showAsrVocabularyRequest['Authorization'];
6680
- xSdkDate = showAsrVocabularyRequest['X-Sdk-Date'];
6681
- xProjectId = showAsrVocabularyRequest['X-Project-Id'];
6682
- xAppUserId = showAsrVocabularyRequest['X-App-UserId'];
6683
- }
6684
- }
6685
- if (asrVocabularyId === null || asrVocabularyId === undefined) {
6686
- throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling showAsrVocabulary.');
6687
- }
6688
- if (authorization !== undefined && authorization !== null) {
6689
- localVarHeaderParameter['Authorization'] = String(authorization);
6690
- }
6691
- if (xSdkDate !== undefined && xSdkDate !== null) {
6692
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6693
- }
6694
- if (xProjectId !== undefined && xProjectId !== null) {
6695
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6696
- }
6697
- if (xAppUserId !== undefined && xAppUserId !== null) {
6698
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6699
- }
6700
- options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
6701
- options.headers = localVarHeaderParameter;
6702
- return options;
6703
- },
6704
- /**
6705
- * 该接口用于查询热词表关联详情。
6706
- *
6707
- * Please refer to HUAWEI cloud API Explorer for details.
6708
- */
6709
- showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest) {
6710
- const options = {
6711
- method: "GET",
6712
- url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/association/{asr_vocabulary_id}",
6713
- contentType: "application/json",
6714
- queryParams: {},
6715
- pathParams: {},
6716
- headers: {}
6717
- };
6718
- const localVarHeaderParameter = {};
6719
- const localVarQueryParameter = {};
6720
- let asrVocabularyId;
6721
- let authorization;
6722
- let xSdkDate;
6723
- let xProjectId;
6724
- let xAppUserId;
6725
- let offset;
6726
- let limit;
6727
- if (showAsrVocabularyAssociationRequest !== null && showAsrVocabularyAssociationRequest !== undefined) {
6728
- if (showAsrVocabularyAssociationRequest instanceof ShowAsrVocabularyAssociationRequest_1.ShowAsrVocabularyAssociationRequest) {
6729
- asrVocabularyId = showAsrVocabularyAssociationRequest.asrVocabularyId;
6730
- authorization = showAsrVocabularyAssociationRequest.authorization;
6731
- xSdkDate = showAsrVocabularyAssociationRequest.xSdkDate;
6732
- xProjectId = showAsrVocabularyAssociationRequest.xProjectId;
6733
- xAppUserId = showAsrVocabularyAssociationRequest.xAppUserId;
6734
- offset = showAsrVocabularyAssociationRequest.offset;
6735
- limit = showAsrVocabularyAssociationRequest.limit;
6736
- }
6737
- else {
6738
- asrVocabularyId = showAsrVocabularyAssociationRequest['asr_vocabulary_id'];
6739
- authorization = showAsrVocabularyAssociationRequest['Authorization'];
6740
- xSdkDate = showAsrVocabularyAssociationRequest['X-Sdk-Date'];
6741
- xProjectId = showAsrVocabularyAssociationRequest['X-Project-Id'];
6742
- xAppUserId = showAsrVocabularyAssociationRequest['X-App-UserId'];
6743
- offset = showAsrVocabularyAssociationRequest['offset'];
6744
- limit = showAsrVocabularyAssociationRequest['limit'];
6745
- }
6746
- }
6747
- if (asrVocabularyId === null || asrVocabularyId === undefined) {
6748
- throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling showAsrVocabularyAssociation.');
6749
- }
6750
- if (offset !== null && offset !== undefined) {
6751
- localVarQueryParameter['offset'] = offset;
6752
- }
6753
- if (limit !== null && limit !== undefined) {
6754
- localVarQueryParameter['limit'] = limit;
6755
- }
6756
- if (authorization !== undefined && authorization !== null) {
6757
- localVarHeaderParameter['Authorization'] = String(authorization);
6758
- }
6759
- if (xSdkDate !== undefined && xSdkDate !== null) {
6760
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6761
- }
6762
- if (xProjectId !== undefined && xProjectId !== null) {
6763
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6764
- }
6765
- if (xAppUserId !== undefined && xAppUserId !== null) {
6766
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6767
- }
6768
- options.queryParams = localVarQueryParameter;
6769
- options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
6770
- options.headers = localVarHeaderParameter;
6771
- return options;
6772
- },
6773
- /**
6774
- * 该接口用于修改热词表。
6775
- *
6776
- * Please refer to HUAWEI cloud API Explorer for details.
6777
- */
6778
- updateAsrVocabulary(updateAsrVocabularyRequest) {
6779
- const options = {
6780
- method: "PUT",
6781
- url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
6782
- contentType: "application/json",
6783
- queryParams: {},
6784
- pathParams: {},
6785
- headers: {},
6786
- data: {}
6787
- };
6788
- const localVarHeaderParameter = {};
6789
- let body;
6790
- let asrVocabularyId;
6791
- let authorization;
6792
- let xSdkDate;
6793
- let xProjectId;
6794
- let xAppUserId;
6795
- if (updateAsrVocabularyRequest !== null && updateAsrVocabularyRequest !== undefined) {
6796
- if (updateAsrVocabularyRequest instanceof UpdateAsrVocabularyRequest_1.UpdateAsrVocabularyRequest) {
6797
- asrVocabularyId = updateAsrVocabularyRequest.asrVocabularyId;
6798
- body = updateAsrVocabularyRequest.body;
6799
- authorization = updateAsrVocabularyRequest.authorization;
6800
- xSdkDate = updateAsrVocabularyRequest.xSdkDate;
6801
- xProjectId = updateAsrVocabularyRequest.xProjectId;
6802
- xAppUserId = updateAsrVocabularyRequest.xAppUserId;
6803
- }
6804
- else {
6805
- asrVocabularyId = updateAsrVocabularyRequest['asr_vocabulary_id'];
6806
- body = updateAsrVocabularyRequest['body'];
6807
- authorization = updateAsrVocabularyRequest['Authorization'];
6808
- xSdkDate = updateAsrVocabularyRequest['X-Sdk-Date'];
6809
- xProjectId = updateAsrVocabularyRequest['X-Project-Id'];
6810
- xAppUserId = updateAsrVocabularyRequest['X-App-UserId'];
6811
- }
6812
- }
6813
- if (asrVocabularyId === null || asrVocabularyId === undefined) {
6814
- throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling updateAsrVocabulary.');
6815
- }
6816
- if (body === null || body === undefined) {
6817
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6818
- }
6819
- if (authorization !== undefined && authorization !== null) {
6820
- localVarHeaderParameter['Authorization'] = String(authorization);
6821
- }
6822
- if (xSdkDate !== undefined && xSdkDate !== null) {
6823
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6824
- }
6825
- if (xProjectId !== undefined && xProjectId !== null) {
6826
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6827
- }
6828
- if (xAppUserId !== undefined && xAppUserId !== null) {
6829
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6830
- }
6831
- localVarHeaderParameter['Content-Type'] = 'application/json';
6832
- options.data = body !== undefined ? body : {};
6833
- options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
6834
- options.headers = localVarHeaderParameter;
6835
- return options;
6836
- },
6837
6370
  /**
6838
6371
  * 删除导入导出任务
6839
6372
  *
@@ -19180,6 +18713,99 @@ const ParamCreater = function () {
19180
18713
  options.headers = localVarHeaderParameter;
19181
18714
  return options;
19182
18715
  },
18716
+ /**
18717
+ * 签署云服务声明。调用此接口前请知悉[[metastudio隐私协议](https://www.huaweicloud.com/declaration/tsa_metastudio.html)](tag:hws)[[metastudio隐私协议](https://www.huaweicloud.com/intl/en-us/declaration-sg/tsa-metastudio.html)](tag:hws_hk)。
18718
+ *
18719
+ * Please refer to HUAWEI cloud API Explorer for details.
18720
+ */
18721
+ signAgreement(signAgreementRequest) {
18722
+ const options = {
18723
+ method: "POST",
18724
+ url: "/v1/{project_id}/tenants/service-agreements/signed",
18725
+ contentType: "application/json",
18726
+ queryParams: {},
18727
+ pathParams: {},
18728
+ headers: {}
18729
+ };
18730
+ const localVarHeaderParameter = {};
18731
+ let authorization;
18732
+ let xSdkDate;
18733
+ let xProjectId;
18734
+ if (signAgreementRequest !== null && signAgreementRequest !== undefined) {
18735
+ if (signAgreementRequest instanceof SignAgreementRequest_1.SignAgreementRequest) {
18736
+ authorization = signAgreementRequest.authorization;
18737
+ xSdkDate = signAgreementRequest.xSdkDate;
18738
+ xProjectId = signAgreementRequest.xProjectId;
18739
+ }
18740
+ else {
18741
+ authorization = signAgreementRequest['Authorization'];
18742
+ xSdkDate = signAgreementRequest['X-Sdk-Date'];
18743
+ xProjectId = signAgreementRequest['X-Project-Id'];
18744
+ }
18745
+ }
18746
+ if (authorization !== undefined && authorization !== null) {
18747
+ localVarHeaderParameter['Authorization'] = String(authorization);
18748
+ }
18749
+ if (xSdkDate !== undefined && xSdkDate !== null) {
18750
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
18751
+ }
18752
+ if (xProjectId !== undefined && xProjectId !== null) {
18753
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
18754
+ }
18755
+ options.headers = localVarHeaderParameter;
18756
+ return options;
18757
+ },
18758
+ /**
18759
+ * 签署特殊云服务声明,目前可签署自动支付协议。开启自动支付协议之后,调用下单接口时,华为云将进行自动扣费。若因账户余额不足导致扣费失败,系统会生成待支付订单,您可前往费用中心-我的订单查看,届时您需手动完成支付。
18760
+ *
18761
+ * Please refer to HUAWEI cloud API Explorer for details.
18762
+ */
18763
+ signSpecialAgreement(signSpecialAgreementRequest) {
18764
+ const options = {
18765
+ method: "POST",
18766
+ url: "/v1/{project_id}/tenants/special-agreements/signed",
18767
+ contentType: "application/json",
18768
+ queryParams: {},
18769
+ pathParams: {},
18770
+ headers: {},
18771
+ data: {}
18772
+ };
18773
+ const localVarHeaderParameter = {};
18774
+ let body;
18775
+ let authorization;
18776
+ let xSdkDate;
18777
+ let xProjectId;
18778
+ if (signSpecialAgreementRequest !== null && signSpecialAgreementRequest !== undefined) {
18779
+ if (signSpecialAgreementRequest instanceof SignSpecialAgreementRequest_1.SignSpecialAgreementRequest) {
18780
+ body = signSpecialAgreementRequest.body;
18781
+ authorization = signSpecialAgreementRequest.authorization;
18782
+ xSdkDate = signSpecialAgreementRequest.xSdkDate;
18783
+ xProjectId = signSpecialAgreementRequest.xProjectId;
18784
+ }
18785
+ else {
18786
+ body = signSpecialAgreementRequest['body'];
18787
+ authorization = signSpecialAgreementRequest['Authorization'];
18788
+ xSdkDate = signSpecialAgreementRequest['X-Sdk-Date'];
18789
+ xProjectId = signSpecialAgreementRequest['X-Project-Id'];
18790
+ }
18791
+ }
18792
+ if (body === null || body === undefined) {
18793
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
18794
+ }
18795
+ if (authorization !== undefined && authorization !== null) {
18796
+ localVarHeaderParameter['Authorization'] = String(authorization);
18797
+ }
18798
+ if (xSdkDate !== undefined && xSdkDate !== null) {
18799
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
18800
+ }
18801
+ if (xProjectId !== undefined && xProjectId !== null) {
18802
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
18803
+ }
18804
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18805
+ options.data = body !== undefined ? body : {};
18806
+ options.headers = localVarHeaderParameter;
18807
+ return options;
18808
+ },
19183
18809
  /**
19184
18810
  * 提交训练任务,执行该接口后,任务会进入审核状态,审核完成后会等待训练。
19185
18811
  *