@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/dist/client.d.ts +60 -0
- package/dist/client.js +103 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +125 -0
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;
|
|
@@ -13733,6 +13791,8 @@ export default class Client extends OpenApi {
|
|
|
13733
13791
|
getUploadAudioDataParams(request: GetUploadAudioDataParamsRequest): Promise<GetUploadAudioDataParamsResponse>;
|
|
13734
13792
|
getUserWithOptions(request: GetUserRequest, runtime: $Util.RuntimeOptions): Promise<GetUserResponse>;
|
|
13735
13793
|
getUser(request: GetUserRequest): Promise<GetUserResponse>;
|
|
13794
|
+
getVideoWithOptions(request: GetVideoRequest, runtime: $Util.RuntimeOptions): Promise<GetVideoResponse>;
|
|
13795
|
+
getVideo(request: GetVideoRequest): Promise<GetVideoResponse>;
|
|
13736
13796
|
getVoicemailRecordingWithOptions(request: GetVoicemailRecordingRequest, runtime: $Util.RuntimeOptions): Promise<GetVoicemailRecordingResponse>;
|
|
13737
13797
|
getVoicemailRecording(request: GetVoicemailRecordingRequest): Promise<GetVoicemailRecordingResponse>;
|
|
13738
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);
|
|
@@ -22342,6 +22422,29 @@ class Client extends openapi_client_1.default {
|
|
|
22342
22422
|
let runtime = new $Util.RuntimeOptions({});
|
|
22343
22423
|
return await this.getUserWithOptions(request, runtime);
|
|
22344
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
|
+
}
|
|
22345
22448
|
async getVoicemailRecordingWithOptions(request, runtime) {
|
|
22346
22449
|
tea_util_1.default.validateModel(request);
|
|
22347
22450
|
let query = {};
|