@alicloud/ccc20200701 2.10.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ccc20200701",
3
- "version": "2.10.1",
3
+ "version": "2.10.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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;
@@ -28827,6 +28927,31 @@ export default class Client extends OpenApi {
28827
28927
  return await this.getUserWithOptions(request, runtime);
28828
28928
  }
28829
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
+
28830
28955
  async getVoicemailRecordingWithOptions(request: GetVoicemailRecordingRequest, runtime: $Util.RuntimeOptions): Promise<GetVoicemailRecordingResponse> {
28831
28956
  Util.validateModel(request);
28832
28957
  let query = { };