@alicloud/tdsr20200101 3.1.4 → 3.1.5

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/tdsr20200101",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -8,6 +8,87 @@ import OpenApiUtil from '@alicloud/openapi-util';
8
8
  import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
+ export class AddHotspotFileRequest extends $tea.Model {
12
+ fileName?: string;
13
+ sceneId?: string;
14
+ type?: string;
15
+ static names(): { [key: string]: string } {
16
+ return {
17
+ fileName: 'FileName',
18
+ sceneId: 'SceneId',
19
+ type: 'Type',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ fileName: 'string',
26
+ sceneId: 'string',
27
+ type: 'string',
28
+ };
29
+ }
30
+
31
+ constructor(map?: { [key: string]: any }) {
32
+ super(map);
33
+ }
34
+ }
35
+
36
+ export class AddHotspotFileResponseBody extends $tea.Model {
37
+ code?: number;
38
+ data?: { [key: string]: any };
39
+ message?: string;
40
+ requestId?: string;
41
+ success?: boolean;
42
+ static names(): { [key: string]: string } {
43
+ return {
44
+ code: 'Code',
45
+ data: 'Data',
46
+ message: 'Message',
47
+ requestId: 'RequestId',
48
+ success: 'Success',
49
+ };
50
+ }
51
+
52
+ static types(): { [key: string]: any } {
53
+ return {
54
+ code: 'number',
55
+ data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
56
+ message: 'string',
57
+ requestId: 'string',
58
+ success: 'boolean',
59
+ };
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
67
+ export class AddHotspotFileResponse extends $tea.Model {
68
+ headers: { [key: string]: string };
69
+ statusCode: number;
70
+ body: AddHotspotFileResponseBody;
71
+ static names(): { [key: string]: string } {
72
+ return {
73
+ headers: 'headers',
74
+ statusCode: 'statusCode',
75
+ body: 'body',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
82
+ statusCode: 'number',
83
+ body: AddHotspotFileResponseBody,
84
+ };
85
+ }
86
+
87
+ constructor(map?: { [key: string]: any }) {
88
+ super(map);
89
+ }
90
+ }
91
+
11
92
  export class AddMosaicsRequest extends $tea.Model {
12
93
  markPosition?: string;
13
94
  subSceneId?: string;
@@ -713,6 +794,81 @@ export class CreateUploadPolicyResponse extends $tea.Model {
713
794
  }
714
795
  }
715
796
 
797
+ export class DecryptContentRequest extends $tea.Model {
798
+ content?: string;
799
+ static names(): { [key: string]: string } {
800
+ return {
801
+ content: 'Content',
802
+ };
803
+ }
804
+
805
+ static types(): { [key: string]: any } {
806
+ return {
807
+ content: 'string',
808
+ };
809
+ }
810
+
811
+ constructor(map?: { [key: string]: any }) {
812
+ super(map);
813
+ }
814
+ }
815
+
816
+ export class DecryptContentResponseBody extends $tea.Model {
817
+ code?: number;
818
+ content?: string;
819
+ message?: string;
820
+ requestId?: string;
821
+ success?: boolean;
822
+ static names(): { [key: string]: string } {
823
+ return {
824
+ code: 'Code',
825
+ content: 'Content',
826
+ message: 'Message',
827
+ requestId: 'RequestId',
828
+ success: 'Success',
829
+ };
830
+ }
831
+
832
+ static types(): { [key: string]: any } {
833
+ return {
834
+ code: 'number',
835
+ content: 'string',
836
+ message: 'string',
837
+ requestId: 'string',
838
+ success: 'boolean',
839
+ };
840
+ }
841
+
842
+ constructor(map?: { [key: string]: any }) {
843
+ super(map);
844
+ }
845
+ }
846
+
847
+ export class DecryptContentResponse extends $tea.Model {
848
+ headers: { [key: string]: string };
849
+ statusCode: number;
850
+ body: DecryptContentResponseBody;
851
+ static names(): { [key: string]: string } {
852
+ return {
853
+ headers: 'headers',
854
+ statusCode: 'statusCode',
855
+ body: 'body',
856
+ };
857
+ }
858
+
859
+ static types(): { [key: string]: any } {
860
+ return {
861
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
862
+ statusCode: 'number',
863
+ body: DecryptContentResponseBody,
864
+ };
865
+ }
866
+
867
+ constructor(map?: { [key: string]: any }) {
868
+ super(map);
869
+ }
870
+ }
871
+
716
872
  export class DetailProjectRequest extends $tea.Model {
717
873
  id?: string;
718
874
  static names(): { [key: string]: string } {
@@ -1247,6 +1403,81 @@ export class DropSubSceneResponse extends $tea.Model {
1247
1403
  }
1248
1404
  }
1249
1405
 
1406
+ export class EncryptContentRequest extends $tea.Model {
1407
+ content?: string;
1408
+ static names(): { [key: string]: string } {
1409
+ return {
1410
+ content: 'Content',
1411
+ };
1412
+ }
1413
+
1414
+ static types(): { [key: string]: any } {
1415
+ return {
1416
+ content: 'string',
1417
+ };
1418
+ }
1419
+
1420
+ constructor(map?: { [key: string]: any }) {
1421
+ super(map);
1422
+ }
1423
+ }
1424
+
1425
+ export class EncryptContentResponseBody extends $tea.Model {
1426
+ code?: number;
1427
+ content?: string;
1428
+ message?: string;
1429
+ requestId?: string;
1430
+ success?: boolean;
1431
+ static names(): { [key: string]: string } {
1432
+ return {
1433
+ code: 'Code',
1434
+ content: 'Content',
1435
+ message: 'Message',
1436
+ requestId: 'RequestId',
1437
+ success: 'Success',
1438
+ };
1439
+ }
1440
+
1441
+ static types(): { [key: string]: any } {
1442
+ return {
1443
+ code: 'number',
1444
+ content: 'string',
1445
+ message: 'string',
1446
+ requestId: 'string',
1447
+ success: 'boolean',
1448
+ };
1449
+ }
1450
+
1451
+ constructor(map?: { [key: string]: any }) {
1452
+ super(map);
1453
+ }
1454
+ }
1455
+
1456
+ export class EncryptContentResponse extends $tea.Model {
1457
+ headers: { [key: string]: string };
1458
+ statusCode: number;
1459
+ body: EncryptContentResponseBody;
1460
+ static names(): { [key: string]: string } {
1461
+ return {
1462
+ headers: 'headers',
1463
+ statusCode: 'statusCode',
1464
+ body: 'body',
1465
+ };
1466
+ }
1467
+
1468
+ static types(): { [key: string]: any } {
1469
+ return {
1470
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1471
+ statusCode: 'number',
1472
+ body: EncryptContentResponseBody,
1473
+ };
1474
+ }
1475
+
1476
+ constructor(map?: { [key: string]: any }) {
1477
+ super(map);
1478
+ }
1479
+ }
1480
+
1250
1481
  export class GetConnDataRequest extends $tea.Model {
1251
1482
  sceneId?: string;
1252
1483
  static names(): { [key: string]: string } {
@@ -6201,6 +6432,43 @@ export default class Client extends OpenApi {
6201
6432
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
6202
6433
  }
6203
6434
 
6435
+ async addHotspotFileWithOptions(request: AddHotspotFileRequest, runtime: $Util.RuntimeOptions): Promise<AddHotspotFileResponse> {
6436
+ Util.validateModel(request);
6437
+ let query = { };
6438
+ if (!Util.isUnset(request.fileName)) {
6439
+ query["FileName"] = request.fileName;
6440
+ }
6441
+
6442
+ if (!Util.isUnset(request.sceneId)) {
6443
+ query["SceneId"] = request.sceneId;
6444
+ }
6445
+
6446
+ if (!Util.isUnset(request.type)) {
6447
+ query["Type"] = request.type;
6448
+ }
6449
+
6450
+ let req = new $OpenApi.OpenApiRequest({
6451
+ query: OpenApiUtil.query(query),
6452
+ });
6453
+ let params = new $OpenApi.Params({
6454
+ action: "AddHotspotFile",
6455
+ version: "2020-01-01",
6456
+ protocol: "HTTPS",
6457
+ pathname: "/",
6458
+ method: "POST",
6459
+ authType: "AK",
6460
+ style: "RPC",
6461
+ reqBodyType: "formData",
6462
+ bodyType: "json",
6463
+ });
6464
+ return $tea.cast<AddHotspotFileResponse>(await this.callApi(params, req, runtime), new AddHotspotFileResponse({}));
6465
+ }
6466
+
6467
+ async addHotspotFile(request: AddHotspotFileRequest): Promise<AddHotspotFileResponse> {
6468
+ let runtime = new $Util.RuntimeOptions({ });
6469
+ return await this.addHotspotFileWithOptions(request, runtime);
6470
+ }
6471
+
6204
6472
  async addMosaicsWithOptions(request: AddMosaicsRequest, runtime: $Util.RuntimeOptions): Promise<AddMosaicsResponse> {
6205
6473
  Util.validateModel(request);
6206
6474
  let query = { };
@@ -6506,6 +6774,35 @@ export default class Client extends OpenApi {
6506
6774
  return await this.createUploadPolicyWithOptions(request, runtime);
6507
6775
  }
6508
6776
 
6777
+ async decryptContentWithOptions(request: DecryptContentRequest, runtime: $Util.RuntimeOptions): Promise<DecryptContentResponse> {
6778
+ Util.validateModel(request);
6779
+ let query = { };
6780
+ if (!Util.isUnset(request.content)) {
6781
+ query["Content"] = request.content;
6782
+ }
6783
+
6784
+ let req = new $OpenApi.OpenApiRequest({
6785
+ query: OpenApiUtil.query(query),
6786
+ });
6787
+ let params = new $OpenApi.Params({
6788
+ action: "DecryptContent",
6789
+ version: "2020-01-01",
6790
+ protocol: "HTTPS",
6791
+ pathname: "/",
6792
+ method: "POST",
6793
+ authType: "AK",
6794
+ style: "RPC",
6795
+ reqBodyType: "formData",
6796
+ bodyType: "json",
6797
+ });
6798
+ return $tea.cast<DecryptContentResponse>(await this.callApi(params, req, runtime), new DecryptContentResponse({}));
6799
+ }
6800
+
6801
+ async decryptContent(request: DecryptContentRequest): Promise<DecryptContentResponse> {
6802
+ let runtime = new $Util.RuntimeOptions({ });
6803
+ return await this.decryptContentWithOptions(request, runtime);
6804
+ }
6805
+
6509
6806
  async detailProjectWithOptions(request: DetailProjectRequest, runtime: $Util.RuntimeOptions): Promise<DetailProjectResponse> {
6510
6807
  Util.validateModel(request);
6511
6808
  let query = { };
@@ -6680,6 +6977,35 @@ export default class Client extends OpenApi {
6680
6977
  return await this.dropSubSceneWithOptions(request, runtime);
6681
6978
  }
6682
6979
 
6980
+ async encryptContentWithOptions(request: EncryptContentRequest, runtime: $Util.RuntimeOptions): Promise<EncryptContentResponse> {
6981
+ Util.validateModel(request);
6982
+ let query = { };
6983
+ if (!Util.isUnset(request.content)) {
6984
+ query["Content"] = request.content;
6985
+ }
6986
+
6987
+ let req = new $OpenApi.OpenApiRequest({
6988
+ query: OpenApiUtil.query(query),
6989
+ });
6990
+ let params = new $OpenApi.Params({
6991
+ action: "EncryptContent",
6992
+ version: "2020-01-01",
6993
+ protocol: "HTTPS",
6994
+ pathname: "/",
6995
+ method: "POST",
6996
+ authType: "AK",
6997
+ style: "RPC",
6998
+ reqBodyType: "formData",
6999
+ bodyType: "json",
7000
+ });
7001
+ return $tea.cast<EncryptContentResponse>(await this.callApi(params, req, runtime), new EncryptContentResponse({}));
7002
+ }
7003
+
7004
+ async encryptContent(request: EncryptContentRequest): Promise<EncryptContentResponse> {
7005
+ let runtime = new $Util.RuntimeOptions({ });
7006
+ return await this.encryptContentWithOptions(request, runtime);
7007
+ }
7008
+
6683
7009
  async getConnDataWithOptions(request: GetConnDataRequest, runtime: $Util.RuntimeOptions): Promise<GetConnDataResponse> {
6684
7010
  Util.validateModel(request);
6685
7011
  let query = { };