@alicloud/ccc20200701 2.10.0 → 2.10.2

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/dist/client.d.ts CHANGED
@@ -2980,6 +2980,51 @@ export declare class GetUserResponse extends $tea.Model {
2980
2980
  [key: string]: any;
2981
2981
  });
2982
2982
  }
2983
+ export declare class GetVideoRequest extends $tea.Model {
2984
+ contactId?: string;
2985
+ instanceId?: string;
2986
+ static names(): {
2987
+ [key: string]: string;
2988
+ };
2989
+ static types(): {
2990
+ [key: string]: any;
2991
+ };
2992
+ constructor(map?: {
2993
+ [key: string]: any;
2994
+ });
2995
+ }
2996
+ export declare class GetVideoResponseBody extends $tea.Model {
2997
+ code?: string;
2998
+ data?: GetVideoResponseBodyData;
2999
+ httpStatusCode?: number;
3000
+ message?: string;
3001
+ requestId?: string;
3002
+ static names(): {
3003
+ [key: string]: string;
3004
+ };
3005
+ static types(): {
3006
+ [key: string]: any;
3007
+ };
3008
+ constructor(map?: {
3009
+ [key: string]: any;
3010
+ });
3011
+ }
3012
+ export declare class GetVideoResponse extends $tea.Model {
3013
+ headers: {
3014
+ [key: string]: string;
3015
+ };
3016
+ statusCode: number;
3017
+ body: GetVideoResponseBody;
3018
+ static names(): {
3019
+ [key: string]: string;
3020
+ };
3021
+ static types(): {
3022
+ [key: string]: any;
3023
+ };
3024
+ constructor(map?: {
3025
+ [key: string]: any;
3026
+ });
3027
+ }
2983
3028
  export declare class GetVoicemailRecordingRequest extends $tea.Model {
2984
3029
  contactId?: string;
2985
3030
  instanceId?: string;
@@ -9570,6 +9615,19 @@ export declare class GetUserResponseBodyData extends $tea.Model {
9570
9615
  [key: string]: any;
9571
9616
  });
9572
9617
  }
9618
+ export declare class GetVideoResponseBodyData extends $tea.Model {
9619
+ fileName?: string;
9620
+ fileUrl?: string;
9621
+ static names(): {
9622
+ [key: string]: string;
9623
+ };
9624
+ static types(): {
9625
+ [key: string]: any;
9626
+ };
9627
+ constructor(map?: {
9628
+ [key: string]: any;
9629
+ });
9630
+ }
9573
9631
  export declare class GetVoicemailRecordingResponseBodyData extends $tea.Model {
9574
9632
  fileName?: string;
9575
9633
  fileUrl?: string;
@@ -11724,6 +11782,19 @@ export declare class ListMonoRecordingsResponseBodyData extends $tea.Model {
11724
11782
  [key: string]: any;
11725
11783
  });
11726
11784
  }
11785
+ export declare class ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments extends $tea.Model {
11786
+ endTime?: number;
11787
+ startTime?: number;
11788
+ static names(): {
11789
+ [key: string]: string;
11790
+ };
11791
+ static types(): {
11792
+ [key: string]: any;
11793
+ };
11794
+ constructor(map?: {
11795
+ [key: string]: any;
11796
+ });
11797
+ }
11727
11798
  export declare class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
11728
11799
  agentChannelId?: string;
11729
11800
  agentId?: string;
@@ -11732,6 +11803,7 @@ export declare class ListMultiChannelRecordingsResponseBodyData extends $tea.Mod
11732
11803
  duration?: string;
11733
11804
  fileName?: string;
11734
11805
  fileUrl?: string;
11806
+ holdTimeSegments?: ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments[];
11735
11807
  ramId?: string;
11736
11808
  skillGroupId?: string;
11737
11809
  startTime?: number;
@@ -13719,6 +13791,8 @@ export default class Client extends OpenApi {
13719
13791
  getUploadAudioDataParams(request: GetUploadAudioDataParamsRequest): Promise<GetUploadAudioDataParamsResponse>;
13720
13792
  getUserWithOptions(request: GetUserRequest, runtime: $Util.RuntimeOptions): Promise<GetUserResponse>;
13721
13793
  getUser(request: GetUserRequest): Promise<GetUserResponse>;
13794
+ getVideoWithOptions(request: GetVideoRequest, runtime: $Util.RuntimeOptions): Promise<GetVideoResponse>;
13795
+ getVideo(request: GetVideoRequest): Promise<GetVideoResponse>;
13722
13796
  getVoicemailRecordingWithOptions(request: GetVoicemailRecordingRequest, runtime: $Util.RuntimeOptions): Promise<GetVoicemailRecordingResponse>;
13723
13797
  getVoicemailRecording(request: GetVoicemailRecordingRequest): Promise<GetVoicemailRecordingResponse>;
13724
13798
  holdCallWithOptions(request: HoldCallRequest, runtime: $Util.RuntimeOptions): Promise<HoldCallResponse>;
package/dist/client.js CHANGED
@@ -4183,6 +4183,68 @@ class GetUserResponse extends $tea.Model {
4183
4183
  }
4184
4184
  }
4185
4185
  exports.GetUserResponse = GetUserResponse;
4186
+ class GetVideoRequest extends $tea.Model {
4187
+ constructor(map) {
4188
+ super(map);
4189
+ }
4190
+ static names() {
4191
+ return {
4192
+ contactId: 'ContactId',
4193
+ instanceId: 'InstanceId',
4194
+ };
4195
+ }
4196
+ static types() {
4197
+ return {
4198
+ contactId: 'string',
4199
+ instanceId: 'string',
4200
+ };
4201
+ }
4202
+ }
4203
+ exports.GetVideoRequest = GetVideoRequest;
4204
+ class GetVideoResponseBody extends $tea.Model {
4205
+ constructor(map) {
4206
+ super(map);
4207
+ }
4208
+ static names() {
4209
+ return {
4210
+ code: 'Code',
4211
+ data: 'Data',
4212
+ httpStatusCode: 'HttpStatusCode',
4213
+ message: 'Message',
4214
+ requestId: 'RequestId',
4215
+ };
4216
+ }
4217
+ static types() {
4218
+ return {
4219
+ code: 'string',
4220
+ data: GetVideoResponseBodyData,
4221
+ httpStatusCode: 'number',
4222
+ message: 'string',
4223
+ requestId: 'string',
4224
+ };
4225
+ }
4226
+ }
4227
+ exports.GetVideoResponseBody = GetVideoResponseBody;
4228
+ class GetVideoResponse extends $tea.Model {
4229
+ constructor(map) {
4230
+ super(map);
4231
+ }
4232
+ static names() {
4233
+ return {
4234
+ headers: 'headers',
4235
+ statusCode: 'statusCode',
4236
+ body: 'body',
4237
+ };
4238
+ }
4239
+ static types() {
4240
+ return {
4241
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4242
+ statusCode: 'number',
4243
+ body: GetVideoResponseBody,
4244
+ };
4245
+ }
4246
+ }
4247
+ exports.GetVideoResponse = GetVideoResponse;
4186
4248
  class GetVoicemailRecordingRequest extends $tea.Model {
4187
4249
  constructor(map) {
4188
4250
  super(map);
@@ -13743,6 +13805,24 @@ class GetUserResponseBodyData extends $tea.Model {
13743
13805
  }
13744
13806
  }
13745
13807
  exports.GetUserResponseBodyData = GetUserResponseBodyData;
13808
+ class GetVideoResponseBodyData extends $tea.Model {
13809
+ constructor(map) {
13810
+ super(map);
13811
+ }
13812
+ static names() {
13813
+ return {
13814
+ fileName: 'FileName',
13815
+ fileUrl: 'FileUrl',
13816
+ };
13817
+ }
13818
+ static types() {
13819
+ return {
13820
+ fileName: 'string',
13821
+ fileUrl: 'string',
13822
+ };
13823
+ }
13824
+ }
13825
+ exports.GetVideoResponseBodyData = GetVideoResponseBodyData;
13746
13826
  class GetVoicemailRecordingResponseBodyData extends $tea.Model {
13747
13827
  constructor(map) {
13748
13828
  super(map);
@@ -17267,6 +17347,24 @@ class ListMonoRecordingsResponseBodyData extends $tea.Model {
17267
17347
  }
17268
17348
  }
17269
17349
  exports.ListMonoRecordingsResponseBodyData = ListMonoRecordingsResponseBodyData;
17350
+ class ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments extends $tea.Model {
17351
+ constructor(map) {
17352
+ super(map);
17353
+ }
17354
+ static names() {
17355
+ return {
17356
+ endTime: 'EndTime',
17357
+ startTime: 'StartTime',
17358
+ };
17359
+ }
17360
+ static types() {
17361
+ return {
17362
+ endTime: 'number',
17363
+ startTime: 'number',
17364
+ };
17365
+ }
17366
+ }
17367
+ exports.ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments = ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments;
17270
17368
  class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
17271
17369
  constructor(map) {
17272
17370
  super(map);
@@ -17280,6 +17378,7 @@ class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
17280
17378
  duration: 'Duration',
17281
17379
  fileName: 'FileName',
17282
17380
  fileUrl: 'FileUrl',
17381
+ holdTimeSegments: 'HoldTimeSegments',
17283
17382
  ramId: 'RamId',
17284
17383
  skillGroupId: 'SkillGroupId',
17285
17384
  startTime: 'StartTime',
@@ -17294,6 +17393,7 @@ class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
17294
17393
  duration: 'string',
17295
17394
  fileName: 'string',
17296
17395
  fileUrl: 'string',
17396
+ holdTimeSegments: { 'type': 'array', 'itemType': ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments },
17297
17397
  ramId: 'string',
17298
17398
  skillGroupId: 'string',
17299
17399
  startTime: 'number',
@@ -22322,6 +22422,29 @@ class Client extends openapi_client_1.default {
22322
22422
  let runtime = new $Util.RuntimeOptions({});
22323
22423
  return await this.getUserWithOptions(request, runtime);
22324
22424
  }
22425
+ async getVideoWithOptions(request, runtime) {
22426
+ tea_util_1.default.validateModel(request);
22427
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
22428
+ let req = new $OpenApi.OpenApiRequest({
22429
+ query: openapi_util_1.default.query(query),
22430
+ });
22431
+ let params = new $OpenApi.Params({
22432
+ action: "GetVideo",
22433
+ version: "2020-07-01",
22434
+ protocol: "HTTPS",
22435
+ pathname: "/",
22436
+ method: "GET",
22437
+ authType: "AK",
22438
+ style: "RPC",
22439
+ reqBodyType: "formData",
22440
+ bodyType: "json",
22441
+ });
22442
+ return $tea.cast(await this.callApi(params, req, runtime), new GetVideoResponse({}));
22443
+ }
22444
+ async getVideo(request) {
22445
+ let runtime = new $Util.RuntimeOptions({});
22446
+ return await this.getVideoWithOptions(request, runtime);
22447
+ }
22325
22448
  async getVoicemailRecordingWithOptions(request, runtime) {
22326
22449
  tea_util_1.default.validateModel(request);
22327
22450
  let query = {};