@alicloud/dyvmsapi20170525 2.2.0 → 2.3.1

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/dyvmsapi20170525",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -941,6 +941,93 @@ export class ExecuteCallTaskResponse extends $tea.Model {
941
941
  }
942
942
  }
943
943
 
944
+ export class GetCallMediaTypeRequest extends $tea.Model {
945
+ callId?: string;
946
+ calledNumber?: string;
947
+ ownerId?: number;
948
+ resourceOwnerAccount?: string;
949
+ resourceOwnerId?: number;
950
+ static names(): { [key: string]: string } {
951
+ return {
952
+ callId: 'CallId',
953
+ calledNumber: 'CalledNumber',
954
+ ownerId: 'OwnerId',
955
+ resourceOwnerAccount: 'ResourceOwnerAccount',
956
+ resourceOwnerId: 'ResourceOwnerId',
957
+ };
958
+ }
959
+
960
+ static types(): { [key: string]: any } {
961
+ return {
962
+ callId: 'string',
963
+ calledNumber: 'string',
964
+ ownerId: 'number',
965
+ resourceOwnerAccount: 'string',
966
+ resourceOwnerId: 'number',
967
+ };
968
+ }
969
+
970
+ constructor(map?: { [key: string]: any }) {
971
+ super(map);
972
+ }
973
+ }
974
+
975
+ export class GetCallMediaTypeResponseBody extends $tea.Model {
976
+ accessDeniedDetail?: string;
977
+ code?: string;
978
+ data?: { [key: string]: any };
979
+ message?: string;
980
+ success?: boolean;
981
+ static names(): { [key: string]: string } {
982
+ return {
983
+ accessDeniedDetail: 'AccessDeniedDetail',
984
+ code: 'Code',
985
+ data: 'Data',
986
+ message: 'Message',
987
+ success: 'Success',
988
+ };
989
+ }
990
+
991
+ static types(): { [key: string]: any } {
992
+ return {
993
+ accessDeniedDetail: 'string',
994
+ code: 'string',
995
+ data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
996
+ message: 'string',
997
+ success: 'boolean',
998
+ };
999
+ }
1000
+
1001
+ constructor(map?: { [key: string]: any }) {
1002
+ super(map);
1003
+ }
1004
+ }
1005
+
1006
+ export class GetCallMediaTypeResponse extends $tea.Model {
1007
+ headers?: { [key: string]: string };
1008
+ statusCode?: number;
1009
+ body?: GetCallMediaTypeResponseBody;
1010
+ static names(): { [key: string]: string } {
1011
+ return {
1012
+ headers: 'headers',
1013
+ statusCode: 'statusCode',
1014
+ body: 'body',
1015
+ };
1016
+ }
1017
+
1018
+ static types(): { [key: string]: any } {
1019
+ return {
1020
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1021
+ statusCode: 'number',
1022
+ body: GetCallMediaTypeResponseBody,
1023
+ };
1024
+ }
1025
+
1026
+ constructor(map?: { [key: string]: any }) {
1027
+ super(map);
1028
+ }
1029
+ }
1030
+
944
1031
  export class GetCallProgressRequest extends $tea.Model {
945
1032
  callId?: string;
946
1033
  calledNum?: string;
@@ -1109,6 +1196,93 @@ export class GetHotlineQualificationByOrderResponse extends $tea.Model {
1109
1196
  }
1110
1197
  }
1111
1198
 
1199
+ export class GetTemporaryFileUrlRequest extends $tea.Model {
1200
+ ownerId?: number;
1201
+ resourceOwnerAccount?: string;
1202
+ resourceOwnerId?: number;
1203
+ videoId?: string;
1204
+ static names(): { [key: string]: string } {
1205
+ return {
1206
+ ownerId: 'OwnerId',
1207
+ resourceOwnerAccount: 'ResourceOwnerAccount',
1208
+ resourceOwnerId: 'ResourceOwnerId',
1209
+ videoId: 'VideoId',
1210
+ };
1211
+ }
1212
+
1213
+ static types(): { [key: string]: any } {
1214
+ return {
1215
+ ownerId: 'number',
1216
+ resourceOwnerAccount: 'string',
1217
+ resourceOwnerId: 'number',
1218
+ videoId: 'string',
1219
+ };
1220
+ }
1221
+
1222
+ constructor(map?: { [key: string]: any }) {
1223
+ super(map);
1224
+ }
1225
+ }
1226
+
1227
+ export class GetTemporaryFileUrlResponseBody extends $tea.Model {
1228
+ accessDeniedDetail?: string;
1229
+ code?: string;
1230
+ data?: { [key: string]: any };
1231
+ message?: string;
1232
+ requestId?: string;
1233
+ success?: boolean;
1234
+ static names(): { [key: string]: string } {
1235
+ return {
1236
+ accessDeniedDetail: 'AccessDeniedDetail',
1237
+ code: 'Code',
1238
+ data: 'Data',
1239
+ message: 'Message',
1240
+ requestId: 'RequestId',
1241
+ success: 'Success',
1242
+ };
1243
+ }
1244
+
1245
+ static types(): { [key: string]: any } {
1246
+ return {
1247
+ accessDeniedDetail: 'string',
1248
+ code: 'string',
1249
+ data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1250
+ message: 'string',
1251
+ requestId: 'string',
1252
+ success: 'boolean',
1253
+ };
1254
+ }
1255
+
1256
+ constructor(map?: { [key: string]: any }) {
1257
+ super(map);
1258
+ }
1259
+ }
1260
+
1261
+ export class GetTemporaryFileUrlResponse extends $tea.Model {
1262
+ headers?: { [key: string]: string };
1263
+ statusCode?: number;
1264
+ body?: GetTemporaryFileUrlResponseBody;
1265
+ static names(): { [key: string]: string } {
1266
+ return {
1267
+ headers: 'headers',
1268
+ statusCode: 'statusCode',
1269
+ body: 'body',
1270
+ };
1271
+ }
1272
+
1273
+ static types(): { [key: string]: any } {
1274
+ return {
1275
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1276
+ statusCode: 'number',
1277
+ body: GetTemporaryFileUrlResponseBody,
1278
+ };
1279
+ }
1280
+
1281
+ constructor(map?: { [key: string]: any }) {
1282
+ super(map);
1283
+ }
1284
+ }
1285
+
1112
1286
  export class GetTokenRequest extends $tea.Model {
1113
1287
  ownerId?: number;
1114
1288
  resourceOwnerAccount?: string;
@@ -6002,6 +6176,51 @@ export default class Client extends OpenApi {
6002
6176
  return await this.executeCallTaskWithOptions(request, runtime);
6003
6177
  }
6004
6178
 
6179
+ async getCallMediaTypeWithOptions(request: GetCallMediaTypeRequest, runtime: $Util.RuntimeOptions): Promise<GetCallMediaTypeResponse> {
6180
+ Util.validateModel(request);
6181
+ let query = { };
6182
+ if (!Util.isUnset(request.callId)) {
6183
+ query["CallId"] = request.callId;
6184
+ }
6185
+
6186
+ if (!Util.isUnset(request.calledNumber)) {
6187
+ query["CalledNumber"] = request.calledNumber;
6188
+ }
6189
+
6190
+ if (!Util.isUnset(request.ownerId)) {
6191
+ query["OwnerId"] = request.ownerId;
6192
+ }
6193
+
6194
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6195
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6196
+ }
6197
+
6198
+ if (!Util.isUnset(request.resourceOwnerId)) {
6199
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6200
+ }
6201
+
6202
+ let req = new $OpenApi.OpenApiRequest({
6203
+ query: OpenApiUtil.query(query),
6204
+ });
6205
+ let params = new $OpenApi.Params({
6206
+ action: "GetCallMediaType",
6207
+ version: "2017-05-25",
6208
+ protocol: "HTTPS",
6209
+ pathname: "/",
6210
+ method: "POST",
6211
+ authType: "AK",
6212
+ style: "RPC",
6213
+ reqBodyType: "formData",
6214
+ bodyType: "json",
6215
+ });
6216
+ return $tea.cast<GetCallMediaTypeResponse>(await this.callApi(params, req, runtime), new GetCallMediaTypeResponse({}));
6217
+ }
6218
+
6219
+ async getCallMediaType(request: GetCallMediaTypeRequest): Promise<GetCallMediaTypeResponse> {
6220
+ let runtime = new $Util.RuntimeOptions({ });
6221
+ return await this.getCallMediaTypeWithOptions(request, runtime);
6222
+ }
6223
+
6005
6224
  async getCallProgressWithOptions(request: GetCallProgressRequest, runtime: $Util.RuntimeOptions): Promise<GetCallProgressResponse> {
6006
6225
  Util.validateModel(request);
6007
6226
  let query = { };
@@ -6103,6 +6322,47 @@ export default class Client extends OpenApi {
6103
6322
  return await this.getHotlineQualificationByOrderWithOptions(request, runtime);
6104
6323
  }
6105
6324
 
6325
+ async getTemporaryFileUrlWithOptions(request: GetTemporaryFileUrlRequest, runtime: $Util.RuntimeOptions): Promise<GetTemporaryFileUrlResponse> {
6326
+ Util.validateModel(request);
6327
+ let query = { };
6328
+ if (!Util.isUnset(request.ownerId)) {
6329
+ query["OwnerId"] = request.ownerId;
6330
+ }
6331
+
6332
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6333
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6334
+ }
6335
+
6336
+ if (!Util.isUnset(request.resourceOwnerId)) {
6337
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6338
+ }
6339
+
6340
+ if (!Util.isUnset(request.videoId)) {
6341
+ query["VideoId"] = request.videoId;
6342
+ }
6343
+
6344
+ let req = new $OpenApi.OpenApiRequest({
6345
+ query: OpenApiUtil.query(query),
6346
+ });
6347
+ let params = new $OpenApi.Params({
6348
+ action: "GetTemporaryFileUrl",
6349
+ version: "2017-05-25",
6350
+ protocol: "HTTPS",
6351
+ pathname: "/",
6352
+ method: "POST",
6353
+ authType: "AK",
6354
+ style: "RPC",
6355
+ reqBodyType: "formData",
6356
+ bodyType: "json",
6357
+ });
6358
+ return $tea.cast<GetTemporaryFileUrlResponse>(await this.callApi(params, req, runtime), new GetTemporaryFileUrlResponse({}));
6359
+ }
6360
+
6361
+ async getTemporaryFileUrl(request: GetTemporaryFileUrlRequest): Promise<GetTemporaryFileUrlResponse> {
6362
+ let runtime = new $Util.RuntimeOptions({ });
6363
+ return await this.getTemporaryFileUrlWithOptions(request, runtime);
6364
+ }
6365
+
6106
6366
  /**
6107
6367
  * ### QPS limits
6108
6368
  * You can call this operation up to five times per second per account.