@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/dist/client.d.ts CHANGED
@@ -4,6 +4,54 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class AddHotspotFileRequest extends $tea.Model {
8
+ fileName?: string;
9
+ sceneId?: string;
10
+ type?: string;
11
+ static names(): {
12
+ [key: string]: string;
13
+ };
14
+ static types(): {
15
+ [key: string]: any;
16
+ };
17
+ constructor(map?: {
18
+ [key: string]: any;
19
+ });
20
+ }
21
+ export declare class AddHotspotFileResponseBody extends $tea.Model {
22
+ code?: number;
23
+ data?: {
24
+ [key: string]: any;
25
+ };
26
+ message?: string;
27
+ requestId?: string;
28
+ success?: boolean;
29
+ static names(): {
30
+ [key: string]: string;
31
+ };
32
+ static types(): {
33
+ [key: string]: any;
34
+ };
35
+ constructor(map?: {
36
+ [key: string]: any;
37
+ });
38
+ }
39
+ export declare class AddHotspotFileResponse extends $tea.Model {
40
+ headers: {
41
+ [key: string]: string;
42
+ };
43
+ statusCode: number;
44
+ body: AddHotspotFileResponseBody;
45
+ static names(): {
46
+ [key: string]: string;
47
+ };
48
+ static types(): {
49
+ [key: string]: any;
50
+ };
51
+ constructor(map?: {
52
+ [key: string]: any;
53
+ });
54
+ }
7
55
  export declare class AddMosaicsRequest extends $tea.Model {
8
56
  markPosition?: string;
9
57
  subSceneId?: string;
@@ -410,6 +458,50 @@ export declare class CreateUploadPolicyResponse extends $tea.Model {
410
458
  [key: string]: any;
411
459
  });
412
460
  }
461
+ export declare class DecryptContentRequest extends $tea.Model {
462
+ content?: string;
463
+ static names(): {
464
+ [key: string]: string;
465
+ };
466
+ static types(): {
467
+ [key: string]: any;
468
+ };
469
+ constructor(map?: {
470
+ [key: string]: any;
471
+ });
472
+ }
473
+ export declare class DecryptContentResponseBody extends $tea.Model {
474
+ code?: number;
475
+ content?: string;
476
+ message?: string;
477
+ requestId?: string;
478
+ success?: boolean;
479
+ static names(): {
480
+ [key: string]: string;
481
+ };
482
+ static types(): {
483
+ [key: string]: any;
484
+ };
485
+ constructor(map?: {
486
+ [key: string]: any;
487
+ });
488
+ }
489
+ export declare class DecryptContentResponse extends $tea.Model {
490
+ headers: {
491
+ [key: string]: string;
492
+ };
493
+ statusCode: number;
494
+ body: DecryptContentResponseBody;
495
+ static names(): {
496
+ [key: string]: string;
497
+ };
498
+ static types(): {
499
+ [key: string]: any;
500
+ };
501
+ constructor(map?: {
502
+ [key: string]: any;
503
+ });
504
+ }
413
505
  export declare class DetailProjectRequest extends $tea.Model {
414
506
  id?: string;
415
507
  static names(): {
@@ -702,6 +794,50 @@ export declare class DropSubSceneResponse extends $tea.Model {
702
794
  [key: string]: any;
703
795
  });
704
796
  }
797
+ export declare class EncryptContentRequest extends $tea.Model {
798
+ content?: string;
799
+ static names(): {
800
+ [key: string]: string;
801
+ };
802
+ static types(): {
803
+ [key: string]: any;
804
+ };
805
+ constructor(map?: {
806
+ [key: string]: any;
807
+ });
808
+ }
809
+ export declare class EncryptContentResponseBody extends $tea.Model {
810
+ code?: number;
811
+ content?: string;
812
+ message?: string;
813
+ requestId?: string;
814
+ success?: boolean;
815
+ static names(): {
816
+ [key: string]: string;
817
+ };
818
+ static types(): {
819
+ [key: string]: any;
820
+ };
821
+ constructor(map?: {
822
+ [key: string]: any;
823
+ });
824
+ }
825
+ export declare class EncryptContentResponse extends $tea.Model {
826
+ headers: {
827
+ [key: string]: string;
828
+ };
829
+ statusCode: number;
830
+ body: EncryptContentResponseBody;
831
+ static names(): {
832
+ [key: string]: string;
833
+ };
834
+ static types(): {
835
+ [key: string]: any;
836
+ };
837
+ constructor(map?: {
838
+ [key: string]: any;
839
+ });
840
+ }
705
841
  export declare class GetConnDataRequest extends $tea.Model {
706
842
  sceneId?: string;
707
843
  static names(): {
@@ -3487,6 +3623,8 @@ export default class Client extends OpenApi {
3487
3623
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
3488
3624
  [key: string]: string;
3489
3625
  }, endpoint: string): string;
3626
+ addHotspotFileWithOptions(request: AddHotspotFileRequest, runtime: $Util.RuntimeOptions): Promise<AddHotspotFileResponse>;
3627
+ addHotspotFile(request: AddHotspotFileRequest): Promise<AddHotspotFileResponse>;
3490
3628
  addMosaicsWithOptions(request: AddMosaicsRequest, runtime: $Util.RuntimeOptions): Promise<AddMosaicsResponse>;
3491
3629
  addMosaics(request: AddMosaicsRequest): Promise<AddMosaicsResponse>;
3492
3630
  addProjectWithOptions(request: AddProjectRequest, runtime: $Util.RuntimeOptions): Promise<AddProjectResponse>;
@@ -3505,6 +3643,8 @@ export default class Client extends OpenApi {
3505
3643
  copyScene(request: CopySceneRequest): Promise<CopySceneResponse>;
3506
3644
  createUploadPolicyWithOptions(request: CreateUploadPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreateUploadPolicyResponse>;
3507
3645
  createUploadPolicy(request: CreateUploadPolicyRequest): Promise<CreateUploadPolicyResponse>;
3646
+ decryptContentWithOptions(request: DecryptContentRequest, runtime: $Util.RuntimeOptions): Promise<DecryptContentResponse>;
3647
+ decryptContent(request: DecryptContentRequest): Promise<DecryptContentResponse>;
3508
3648
  detailProjectWithOptions(request: DetailProjectRequest, runtime: $Util.RuntimeOptions): Promise<DetailProjectResponse>;
3509
3649
  detailProject(request: DetailProjectRequest): Promise<DetailProjectResponse>;
3510
3650
  detailSceneWithOptions(request: DetailSceneRequest, runtime: $Util.RuntimeOptions): Promise<DetailSceneResponse>;
@@ -3517,6 +3657,8 @@ export default class Client extends OpenApi {
3517
3657
  dropScene(request: DropSceneRequest): Promise<DropSceneResponse>;
3518
3658
  dropSubSceneWithOptions(request: DropSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<DropSubSceneResponse>;
3519
3659
  dropSubScene(request: DropSubSceneRequest): Promise<DropSubSceneResponse>;
3660
+ encryptContentWithOptions(request: EncryptContentRequest, runtime: $Util.RuntimeOptions): Promise<EncryptContentResponse>;
3661
+ encryptContent(request: EncryptContentRequest): Promise<EncryptContentResponse>;
3520
3662
  getConnDataWithOptions(request: GetConnDataRequest, runtime: $Util.RuntimeOptions): Promise<GetConnDataResponse>;
3521
3663
  getConnData(request: GetConnDataRequest): Promise<GetConnDataResponse>;
3522
3664
  getCopySceneTaskStatusWithOptions(request: GetCopySceneTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetCopySceneTaskStatusResponse>;
package/dist/client.js CHANGED
@@ -19,6 +19,70 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
19
19
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
20
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
21
  const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class AddHotspotFileRequest extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ fileName: 'FileName',
29
+ sceneId: 'SceneId',
30
+ type: 'Type',
31
+ };
32
+ }
33
+ static types() {
34
+ return {
35
+ fileName: 'string',
36
+ sceneId: 'string',
37
+ type: 'string',
38
+ };
39
+ }
40
+ }
41
+ exports.AddHotspotFileRequest = AddHotspotFileRequest;
42
+ class AddHotspotFileResponseBody extends $tea.Model {
43
+ constructor(map) {
44
+ super(map);
45
+ }
46
+ static names() {
47
+ return {
48
+ code: 'Code',
49
+ data: 'Data',
50
+ message: 'Message',
51
+ requestId: 'RequestId',
52
+ success: 'Success',
53
+ };
54
+ }
55
+ static types() {
56
+ return {
57
+ code: 'number',
58
+ data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
59
+ message: 'string',
60
+ requestId: 'string',
61
+ success: 'boolean',
62
+ };
63
+ }
64
+ }
65
+ exports.AddHotspotFileResponseBody = AddHotspotFileResponseBody;
66
+ class AddHotspotFileResponse extends $tea.Model {
67
+ constructor(map) {
68
+ super(map);
69
+ }
70
+ static names() {
71
+ return {
72
+ headers: 'headers',
73
+ statusCode: 'statusCode',
74
+ body: 'body',
75
+ };
76
+ }
77
+ static types() {
78
+ return {
79
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
80
+ statusCode: 'number',
81
+ body: AddHotspotFileResponseBody,
82
+ };
83
+ }
84
+ }
85
+ exports.AddHotspotFileResponse = AddHotspotFileResponse;
22
86
  class AddMosaicsRequest extends $tea.Model {
23
87
  constructor(map) {
24
88
  super(map);
@@ -579,6 +643,66 @@ class CreateUploadPolicyResponse extends $tea.Model {
579
643
  }
580
644
  }
581
645
  exports.CreateUploadPolicyResponse = CreateUploadPolicyResponse;
646
+ class DecryptContentRequest extends $tea.Model {
647
+ constructor(map) {
648
+ super(map);
649
+ }
650
+ static names() {
651
+ return {
652
+ content: 'Content',
653
+ };
654
+ }
655
+ static types() {
656
+ return {
657
+ content: 'string',
658
+ };
659
+ }
660
+ }
661
+ exports.DecryptContentRequest = DecryptContentRequest;
662
+ class DecryptContentResponseBody extends $tea.Model {
663
+ constructor(map) {
664
+ super(map);
665
+ }
666
+ static names() {
667
+ return {
668
+ code: 'Code',
669
+ content: 'Content',
670
+ message: 'Message',
671
+ requestId: 'RequestId',
672
+ success: 'Success',
673
+ };
674
+ }
675
+ static types() {
676
+ return {
677
+ code: 'number',
678
+ content: 'string',
679
+ message: 'string',
680
+ requestId: 'string',
681
+ success: 'boolean',
682
+ };
683
+ }
684
+ }
685
+ exports.DecryptContentResponseBody = DecryptContentResponseBody;
686
+ class DecryptContentResponse extends $tea.Model {
687
+ constructor(map) {
688
+ super(map);
689
+ }
690
+ static names() {
691
+ return {
692
+ headers: 'headers',
693
+ statusCode: 'statusCode',
694
+ body: 'body',
695
+ };
696
+ }
697
+ static types() {
698
+ return {
699
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
700
+ statusCode: 'number',
701
+ body: DecryptContentResponseBody,
702
+ };
703
+ }
704
+ }
705
+ exports.DecryptContentResponse = DecryptContentResponse;
582
706
  class DetailProjectRequest extends $tea.Model {
583
707
  constructor(map) {
584
708
  super(map);
@@ -995,6 +1119,66 @@ class DropSubSceneResponse extends $tea.Model {
995
1119
  }
996
1120
  }
997
1121
  exports.DropSubSceneResponse = DropSubSceneResponse;
1122
+ class EncryptContentRequest extends $tea.Model {
1123
+ constructor(map) {
1124
+ super(map);
1125
+ }
1126
+ static names() {
1127
+ return {
1128
+ content: 'Content',
1129
+ };
1130
+ }
1131
+ static types() {
1132
+ return {
1133
+ content: 'string',
1134
+ };
1135
+ }
1136
+ }
1137
+ exports.EncryptContentRequest = EncryptContentRequest;
1138
+ class EncryptContentResponseBody extends $tea.Model {
1139
+ constructor(map) {
1140
+ super(map);
1141
+ }
1142
+ static names() {
1143
+ return {
1144
+ code: 'Code',
1145
+ content: 'Content',
1146
+ message: 'Message',
1147
+ requestId: 'RequestId',
1148
+ success: 'Success',
1149
+ };
1150
+ }
1151
+ static types() {
1152
+ return {
1153
+ code: 'number',
1154
+ content: 'string',
1155
+ message: 'string',
1156
+ requestId: 'string',
1157
+ success: 'boolean',
1158
+ };
1159
+ }
1160
+ }
1161
+ exports.EncryptContentResponseBody = EncryptContentResponseBody;
1162
+ class EncryptContentResponse extends $tea.Model {
1163
+ constructor(map) {
1164
+ super(map);
1165
+ }
1166
+ static names() {
1167
+ return {
1168
+ headers: 'headers',
1169
+ statusCode: 'statusCode',
1170
+ body: 'body',
1171
+ };
1172
+ }
1173
+ static types() {
1174
+ return {
1175
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1176
+ statusCode: 'number',
1177
+ body: EncryptContentResponseBody,
1178
+ };
1179
+ }
1180
+ }
1181
+ exports.EncryptContentResponse = EncryptContentResponse;
998
1182
  class GetConnDataRequest extends $tea.Model {
999
1183
  constructor(map) {
1000
1184
  super(map);
@@ -4906,6 +5090,38 @@ class Client extends openapi_client_1.default {
4906
5090
  }
4907
5091
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
4908
5092
  }
5093
+ async addHotspotFileWithOptions(request, runtime) {
5094
+ tea_util_1.default.validateModel(request);
5095
+ let query = {};
5096
+ if (!tea_util_1.default.isUnset(request.fileName)) {
5097
+ query["FileName"] = request.fileName;
5098
+ }
5099
+ if (!tea_util_1.default.isUnset(request.sceneId)) {
5100
+ query["SceneId"] = request.sceneId;
5101
+ }
5102
+ if (!tea_util_1.default.isUnset(request.type)) {
5103
+ query["Type"] = request.type;
5104
+ }
5105
+ let req = new $OpenApi.OpenApiRequest({
5106
+ query: openapi_util_1.default.query(query),
5107
+ });
5108
+ let params = new $OpenApi.Params({
5109
+ action: "AddHotspotFile",
5110
+ version: "2020-01-01",
5111
+ protocol: "HTTPS",
5112
+ pathname: "/",
5113
+ method: "POST",
5114
+ authType: "AK",
5115
+ style: "RPC",
5116
+ reqBodyType: "formData",
5117
+ bodyType: "json",
5118
+ });
5119
+ return $tea.cast(await this.callApi(params, req, runtime), new AddHotspotFileResponse({}));
5120
+ }
5121
+ async addHotspotFile(request) {
5122
+ let runtime = new $Util.RuntimeOptions({});
5123
+ return await this.addHotspotFileWithOptions(request, runtime);
5124
+ }
4909
5125
  async addMosaicsWithOptions(request, runtime) {
4910
5126
  tea_util_1.default.validateModel(request);
4911
5127
  let query = {};
@@ -5173,6 +5389,32 @@ class Client extends openapi_client_1.default {
5173
5389
  let runtime = new $Util.RuntimeOptions({});
5174
5390
  return await this.createUploadPolicyWithOptions(request, runtime);
5175
5391
  }
5392
+ async decryptContentWithOptions(request, runtime) {
5393
+ tea_util_1.default.validateModel(request);
5394
+ let query = {};
5395
+ if (!tea_util_1.default.isUnset(request.content)) {
5396
+ query["Content"] = request.content;
5397
+ }
5398
+ let req = new $OpenApi.OpenApiRequest({
5399
+ query: openapi_util_1.default.query(query),
5400
+ });
5401
+ let params = new $OpenApi.Params({
5402
+ action: "DecryptContent",
5403
+ version: "2020-01-01",
5404
+ protocol: "HTTPS",
5405
+ pathname: "/",
5406
+ method: "POST",
5407
+ authType: "AK",
5408
+ style: "RPC",
5409
+ reqBodyType: "formData",
5410
+ bodyType: "json",
5411
+ });
5412
+ return $tea.cast(await this.callApi(params, req, runtime), new DecryptContentResponse({}));
5413
+ }
5414
+ async decryptContent(request) {
5415
+ let runtime = new $Util.RuntimeOptions({});
5416
+ return await this.decryptContentWithOptions(request, runtime);
5417
+ }
5176
5418
  async detailProjectWithOptions(request, runtime) {
5177
5419
  tea_util_1.default.validateModel(request);
5178
5420
  let query = {};
@@ -5329,6 +5571,32 @@ class Client extends openapi_client_1.default {
5329
5571
  let runtime = new $Util.RuntimeOptions({});
5330
5572
  return await this.dropSubSceneWithOptions(request, runtime);
5331
5573
  }
5574
+ async encryptContentWithOptions(request, runtime) {
5575
+ tea_util_1.default.validateModel(request);
5576
+ let query = {};
5577
+ if (!tea_util_1.default.isUnset(request.content)) {
5578
+ query["Content"] = request.content;
5579
+ }
5580
+ let req = new $OpenApi.OpenApiRequest({
5581
+ query: openapi_util_1.default.query(query),
5582
+ });
5583
+ let params = new $OpenApi.Params({
5584
+ action: "EncryptContent",
5585
+ version: "2020-01-01",
5586
+ protocol: "HTTPS",
5587
+ pathname: "/",
5588
+ method: "POST",
5589
+ authType: "AK",
5590
+ style: "RPC",
5591
+ reqBodyType: "formData",
5592
+ bodyType: "json",
5593
+ });
5594
+ return $tea.cast(await this.callApi(params, req, runtime), new EncryptContentResponse({}));
5595
+ }
5596
+ async encryptContent(request) {
5597
+ let runtime = new $Util.RuntimeOptions({});
5598
+ return await this.encryptContentWithOptions(request, runtime);
5599
+ }
5332
5600
  async getConnDataWithOptions(request, runtime) {
5333
5601
  tea_util_1.default.validateModel(request);
5334
5602
  let query = {};