@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 +74 -0
- package/dist/client.js +123 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +150 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -5294,6 +5294,84 @@ export class GetUserResponse extends $tea.Model {
|
|
|
5294
5294
|
}
|
|
5295
5295
|
}
|
|
5296
5296
|
|
|
5297
|
+
export class GetVideoRequest extends $tea.Model {
|
|
5298
|
+
contactId?: string;
|
|
5299
|
+
instanceId?: string;
|
|
5300
|
+
static names(): { [key: string]: string } {
|
|
5301
|
+
return {
|
|
5302
|
+
contactId: 'ContactId',
|
|
5303
|
+
instanceId: 'InstanceId',
|
|
5304
|
+
};
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
static types(): { [key: string]: any } {
|
|
5308
|
+
return {
|
|
5309
|
+
contactId: 'string',
|
|
5310
|
+
instanceId: 'string',
|
|
5311
|
+
};
|
|
5312
|
+
}
|
|
5313
|
+
|
|
5314
|
+
constructor(map?: { [key: string]: any }) {
|
|
5315
|
+
super(map);
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5318
|
+
|
|
5319
|
+
export class GetVideoResponseBody extends $tea.Model {
|
|
5320
|
+
code?: string;
|
|
5321
|
+
data?: GetVideoResponseBodyData;
|
|
5322
|
+
httpStatusCode?: number;
|
|
5323
|
+
message?: string;
|
|
5324
|
+
requestId?: string;
|
|
5325
|
+
static names(): { [key: string]: string } {
|
|
5326
|
+
return {
|
|
5327
|
+
code: 'Code',
|
|
5328
|
+
data: 'Data',
|
|
5329
|
+
httpStatusCode: 'HttpStatusCode',
|
|
5330
|
+
message: 'Message',
|
|
5331
|
+
requestId: 'RequestId',
|
|
5332
|
+
};
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5335
|
+
static types(): { [key: string]: any } {
|
|
5336
|
+
return {
|
|
5337
|
+
code: 'string',
|
|
5338
|
+
data: GetVideoResponseBodyData,
|
|
5339
|
+
httpStatusCode: 'number',
|
|
5340
|
+
message: 'string',
|
|
5341
|
+
requestId: 'string',
|
|
5342
|
+
};
|
|
5343
|
+
}
|
|
5344
|
+
|
|
5345
|
+
constructor(map?: { [key: string]: any }) {
|
|
5346
|
+
super(map);
|
|
5347
|
+
}
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
export class GetVideoResponse extends $tea.Model {
|
|
5351
|
+
headers: { [key: string]: string };
|
|
5352
|
+
statusCode: number;
|
|
5353
|
+
body: GetVideoResponseBody;
|
|
5354
|
+
static names(): { [key: string]: string } {
|
|
5355
|
+
return {
|
|
5356
|
+
headers: 'headers',
|
|
5357
|
+
statusCode: 'statusCode',
|
|
5358
|
+
body: 'body',
|
|
5359
|
+
};
|
|
5360
|
+
}
|
|
5361
|
+
|
|
5362
|
+
static types(): { [key: string]: any } {
|
|
5363
|
+
return {
|
|
5364
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5365
|
+
statusCode: 'number',
|
|
5366
|
+
body: GetVideoResponseBody,
|
|
5367
|
+
};
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
constructor(map?: { [key: string]: any }) {
|
|
5371
|
+
super(map);
|
|
5372
|
+
}
|
|
5373
|
+
}
|
|
5374
|
+
|
|
5297
5375
|
export class GetVoicemailRecordingRequest extends $tea.Model {
|
|
5298
5376
|
contactId?: string;
|
|
5299
5377
|
instanceId?: string;
|
|
@@ -17639,6 +17717,28 @@ export class GetUserResponseBodyData extends $tea.Model {
|
|
|
17639
17717
|
}
|
|
17640
17718
|
}
|
|
17641
17719
|
|
|
17720
|
+
export class GetVideoResponseBodyData extends $tea.Model {
|
|
17721
|
+
fileName?: string;
|
|
17722
|
+
fileUrl?: string;
|
|
17723
|
+
static names(): { [key: string]: string } {
|
|
17724
|
+
return {
|
|
17725
|
+
fileName: 'FileName',
|
|
17726
|
+
fileUrl: 'FileUrl',
|
|
17727
|
+
};
|
|
17728
|
+
}
|
|
17729
|
+
|
|
17730
|
+
static types(): { [key: string]: any } {
|
|
17731
|
+
return {
|
|
17732
|
+
fileName: 'string',
|
|
17733
|
+
fileUrl: 'string',
|
|
17734
|
+
};
|
|
17735
|
+
}
|
|
17736
|
+
|
|
17737
|
+
constructor(map?: { [key: string]: any }) {
|
|
17738
|
+
super(map);
|
|
17739
|
+
}
|
|
17740
|
+
}
|
|
17741
|
+
|
|
17642
17742
|
export class GetVoicemailRecordingResponseBodyData extends $tea.Model {
|
|
17643
17743
|
fileName?: string;
|
|
17644
17744
|
fileUrl?: string;
|
|
@@ -22440,6 +22540,28 @@ export class ListMonoRecordingsResponseBodyData extends $tea.Model {
|
|
|
22440
22540
|
}
|
|
22441
22541
|
}
|
|
22442
22542
|
|
|
22543
|
+
export class ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments extends $tea.Model {
|
|
22544
|
+
endTime?: number;
|
|
22545
|
+
startTime?: number;
|
|
22546
|
+
static names(): { [key: string]: string } {
|
|
22547
|
+
return {
|
|
22548
|
+
endTime: 'EndTime',
|
|
22549
|
+
startTime: 'StartTime',
|
|
22550
|
+
};
|
|
22551
|
+
}
|
|
22552
|
+
|
|
22553
|
+
static types(): { [key: string]: any } {
|
|
22554
|
+
return {
|
|
22555
|
+
endTime: 'number',
|
|
22556
|
+
startTime: 'number',
|
|
22557
|
+
};
|
|
22558
|
+
}
|
|
22559
|
+
|
|
22560
|
+
constructor(map?: { [key: string]: any }) {
|
|
22561
|
+
super(map);
|
|
22562
|
+
}
|
|
22563
|
+
}
|
|
22564
|
+
|
|
22443
22565
|
export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
22444
22566
|
agentChannelId?: string;
|
|
22445
22567
|
agentId?: string;
|
|
@@ -22448,6 +22570,7 @@ export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
|
22448
22570
|
duration?: string;
|
|
22449
22571
|
fileName?: string;
|
|
22450
22572
|
fileUrl?: string;
|
|
22573
|
+
holdTimeSegments?: ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments[];
|
|
22451
22574
|
ramId?: string;
|
|
22452
22575
|
skillGroupId?: string;
|
|
22453
22576
|
startTime?: number;
|
|
@@ -22460,6 +22583,7 @@ export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
|
22460
22583
|
duration: 'Duration',
|
|
22461
22584
|
fileName: 'FileName',
|
|
22462
22585
|
fileUrl: 'FileUrl',
|
|
22586
|
+
holdTimeSegments: 'HoldTimeSegments',
|
|
22463
22587
|
ramId: 'RamId',
|
|
22464
22588
|
skillGroupId: 'SkillGroupId',
|
|
22465
22589
|
startTime: 'StartTime',
|
|
@@ -22475,6 +22599,7 @@ export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
|
22475
22599
|
duration: 'string',
|
|
22476
22600
|
fileName: 'string',
|
|
22477
22601
|
fileUrl: 'string',
|
|
22602
|
+
holdTimeSegments: { 'type': 'array', 'itemType': ListMultiChannelRecordingsResponseBodyDataHoldTimeSegments },
|
|
22478
22603
|
ramId: 'string',
|
|
22479
22604
|
skillGroupId: 'string',
|
|
22480
22605
|
startTime: 'number',
|
|
@@ -28802,6 +28927,31 @@ export default class Client extends OpenApi {
|
|
|
28802
28927
|
return await this.getUserWithOptions(request, runtime);
|
|
28803
28928
|
}
|
|
28804
28929
|
|
|
28930
|
+
async getVideoWithOptions(request: GetVideoRequest, runtime: $Util.RuntimeOptions): Promise<GetVideoResponse> {
|
|
28931
|
+
Util.validateModel(request);
|
|
28932
|
+
let query = OpenApiUtil.query(Util.toMap(request));
|
|
28933
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
28934
|
+
query: OpenApiUtil.query(query),
|
|
28935
|
+
});
|
|
28936
|
+
let params = new $OpenApi.Params({
|
|
28937
|
+
action: "GetVideo",
|
|
28938
|
+
version: "2020-07-01",
|
|
28939
|
+
protocol: "HTTPS",
|
|
28940
|
+
pathname: "/",
|
|
28941
|
+
method: "GET",
|
|
28942
|
+
authType: "AK",
|
|
28943
|
+
style: "RPC",
|
|
28944
|
+
reqBodyType: "formData",
|
|
28945
|
+
bodyType: "json",
|
|
28946
|
+
});
|
|
28947
|
+
return $tea.cast<GetVideoResponse>(await this.callApi(params, req, runtime), new GetVideoResponse({}));
|
|
28948
|
+
}
|
|
28949
|
+
|
|
28950
|
+
async getVideo(request: GetVideoRequest): Promise<GetVideoResponse> {
|
|
28951
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
28952
|
+
return await this.getVideoWithOptions(request, runtime);
|
|
28953
|
+
}
|
|
28954
|
+
|
|
28805
28955
|
async getVoicemailRecordingWithOptions(request: GetVoicemailRecordingRequest, runtime: $Util.RuntimeOptions): Promise<GetVoicemailRecordingResponse> {
|
|
28806
28956
|
Util.validateModel(request);
|
|
28807
28957
|
let query = { };
|