@alicloud/qualitycheck20190115 8.0.2 → 8.1.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/qualitycheck20190115",
3
- "version": "8.0.2",
3
+ "version": "8.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -670,6 +670,47 @@ export class AddRuleV4ResponseBodyMessages extends $dara.Model {
670
670
  }
671
671
  }
672
672
 
673
+ export class ApplyWsTokenResponseBodyData extends $dara.Model {
674
+ /**
675
+ * @example
676
+ * 42e59bcd-7206-44c5-ad34-525d364687c4
677
+ */
678
+ sessionId?: string;
679
+ /**
680
+ * @example
681
+ * 5607b21d1728700640
682
+ */
683
+ token?: string;
684
+ /**
685
+ * @example
686
+ * wss://ws-gateway-real-voice.aliyuncs.com
687
+ */
688
+ wsEndpoint?: string;
689
+ static names(): { [key: string]: string } {
690
+ return {
691
+ sessionId: 'SessionId',
692
+ token: 'Token',
693
+ wsEndpoint: 'WsEndpoint',
694
+ };
695
+ }
696
+
697
+ static types(): { [key: string]: any } {
698
+ return {
699
+ sessionId: 'string',
700
+ token: 'string',
701
+ wsEndpoint: 'string',
702
+ };
703
+ }
704
+
705
+ validate() {
706
+ super.validate();
707
+ }
708
+
709
+ constructor(map?: { [key: string]: any }) {
710
+ super(map);
711
+ }
712
+ }
713
+
673
714
  export class AssignReviewerBySessionGroupResponseBodyMessages extends $dara.Model {
674
715
  message?: string[];
675
716
  static names(): { [key: string]: string } {
@@ -13261,6 +13302,134 @@ export class AddRuleV4Response extends $dara.Model {
13261
13302
  }
13262
13303
  }
13263
13304
 
13305
+ export class ApplyWsTokenRequest extends $dara.Model {
13306
+ /**
13307
+ * @example
13308
+ * 123456
13309
+ */
13310
+ baseMeAgentId?: number;
13311
+ /**
13312
+ * @example
13313
+ * {
13314
+ * "business": "test",
13315
+ * "callType": 1,
13316
+ * "callee": "13111111111",
13317
+ * "caller": "13800000000",
13318
+ * "skillGroupId": 1,
13319
+ * "skillGroupName": "test",
13320
+ * "taskConfigId": 399,
13321
+ * "tid": "2025012412cb129e-1579-46b5-9326-1b2ececf8f30"
13322
+ * }
13323
+ */
13324
+ jsonStr?: string;
13325
+ static names(): { [key: string]: string } {
13326
+ return {
13327
+ baseMeAgentId: 'BaseMeAgentId',
13328
+ jsonStr: 'JsonStr',
13329
+ };
13330
+ }
13331
+
13332
+ static types(): { [key: string]: any } {
13333
+ return {
13334
+ baseMeAgentId: 'number',
13335
+ jsonStr: 'string',
13336
+ };
13337
+ }
13338
+
13339
+ validate() {
13340
+ super.validate();
13341
+ }
13342
+
13343
+ constructor(map?: { [key: string]: any }) {
13344
+ super(map);
13345
+ }
13346
+ }
13347
+
13348
+ export class ApplyWsTokenResponseBody extends $dara.Model {
13349
+ /**
13350
+ * @example
13351
+ * 200
13352
+ */
13353
+ code?: string;
13354
+ data?: ApplyWsTokenResponseBodyData;
13355
+ /**
13356
+ * @example
13357
+ * 200
13358
+ */
13359
+ httpStatusCode?: number;
13360
+ /**
13361
+ * @remarks
13362
+ * Id of the request
13363
+ *
13364
+ * @example
13365
+ * 6987D326-83D9-4A42-B9A5-0B27F9B40539
13366
+ */
13367
+ requestId?: string;
13368
+ static names(): { [key: string]: string } {
13369
+ return {
13370
+ code: 'Code',
13371
+ data: 'Data',
13372
+ httpStatusCode: 'HttpStatusCode',
13373
+ requestId: 'RequestId',
13374
+ };
13375
+ }
13376
+
13377
+ static types(): { [key: string]: any } {
13378
+ return {
13379
+ code: 'string',
13380
+ data: ApplyWsTokenResponseBodyData,
13381
+ httpStatusCode: 'number',
13382
+ requestId: 'string',
13383
+ };
13384
+ }
13385
+
13386
+ validate() {
13387
+ if(this.data && typeof (this.data as any).validate === 'function') {
13388
+ (this.data as any).validate();
13389
+ }
13390
+ super.validate();
13391
+ }
13392
+
13393
+ constructor(map?: { [key: string]: any }) {
13394
+ super(map);
13395
+ }
13396
+ }
13397
+
13398
+ export class ApplyWsTokenResponse extends $dara.Model {
13399
+ headers?: { [key: string]: string };
13400
+ statusCode?: number;
13401
+ body?: ApplyWsTokenResponseBody;
13402
+ static names(): { [key: string]: string } {
13403
+ return {
13404
+ headers: 'headers',
13405
+ statusCode: 'statusCode',
13406
+ body: 'body',
13407
+ };
13408
+ }
13409
+
13410
+ static types(): { [key: string]: any } {
13411
+ return {
13412
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
13413
+ statusCode: 'number',
13414
+ body: ApplyWsTokenResponseBody,
13415
+ };
13416
+ }
13417
+
13418
+ validate() {
13419
+ if(this.headers) {
13420
+ $dara.Model.validateMap(this.headers);
13421
+ }
13422
+ if(this.body && typeof (this.body as any).validate === 'function') {
13423
+ (this.body as any).validate();
13424
+ }
13425
+ super.validate();
13426
+ }
13427
+
13428
+ constructor(map?: { [key: string]: any }) {
13429
+ super(map);
13430
+ }
13431
+ }
13432
+
13264
13433
  export class AssignReviewerRequest extends $dara.Model {
13265
13434
  /**
13266
13435
  * @remarks
@@ -25420,6 +25589,57 @@ export default class Client extends OpenApi {
25420
25589
  return await this.addRuleV4WithOptions(request, runtime);
25421
25590
  }
25422
25591
 
25592
+ /**
25593
+ * 申领实时语音所需token
25594
+ *
25595
+ * @param request - ApplyWsTokenRequest
25596
+ * @param runtime - runtime options for this request RuntimeOptions
25597
+ * @returns ApplyWsTokenResponse
25598
+ */
25599
+ async applyWsTokenWithOptions(request: ApplyWsTokenRequest, runtime: $dara.RuntimeOptions): Promise<ApplyWsTokenResponse> {
25600
+ request.validate();
25601
+ let query = { };
25602
+ if (!$dara.isNull(request.baseMeAgentId)) {
25603
+ query["BaseMeAgentId"] = request.baseMeAgentId;
25604
+ }
25605
+
25606
+ if (!$dara.isNull(request.jsonStr)) {
25607
+ query["JsonStr"] = request.jsonStr;
25608
+ }
25609
+
25610
+ let req = new $OpenApiUtil.OpenApiRequest({
25611
+ query: OpenApiUtil.query(query),
25612
+ });
25613
+ let params = new $OpenApiUtil.Params({
25614
+ action: "ApplyWsToken",
25615
+ version: "2019-01-15",
25616
+ protocol: "HTTPS",
25617
+ pathname: "/",
25618
+ method: "POST",
25619
+ authType: "AK",
25620
+ style: "RPC",
25621
+ reqBodyType: "formData",
25622
+ bodyType: "json",
25623
+ });
25624
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
25625
+ return $dara.cast<ApplyWsTokenResponse>(await this.callApi(params, req, runtime), new ApplyWsTokenResponse({}));
25626
+ } else {
25627
+ return $dara.cast<ApplyWsTokenResponse>(await this.execute(params, req, runtime), new ApplyWsTokenResponse({}));
25628
+ }
25629
+
25630
+ }
25631
+
25632
+ /**
25633
+ * 申领实时语音所需token
25634
+ *
25635
+ * @param request - ApplyWsTokenRequest
25636
+ * @returns ApplyWsTokenResponse
25637
+ */
25638
+ async applyWsToken(request: ApplyWsTokenRequest): Promise<ApplyWsTokenResponse> {
25639
+ let runtime = new $dara.RuntimeOptions({ });
25640
+ return await this.applyWsTokenWithOptions(request, runtime);
25641
+ }
25642
+
25423
25643
  /**
25424
25644
  * @param request - AssignReviewerRequest
25425
25645
  * @param runtime - runtime options for this request RuntimeOptions