tencentcloud-sdk-nodejs-iotexplorer 4.0.211 → 4.0.218

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.
@@ -39,6 +39,19 @@ export interface DevicesItem {
39
39
  */
40
40
  DeviceName: string;
41
41
  }
42
+ /**
43
+ * DeleteFenceBind请求参数结构体
44
+ */
45
+ export interface DeleteFenceBindRequest {
46
+ /**
47
+ * 围栏Id
48
+ */
49
+ FenceId: number;
50
+ /**
51
+ * 围栏绑定的产品信息
52
+ */
53
+ Items: Array<FenceBindProductItem>;
54
+ }
42
55
  /**
43
56
  * DescribeModelDefinition返回参数结构体
44
57
  */
@@ -93,6 +106,23 @@ export interface DeleteStudioProductResponse {
93
106
  */
94
107
  RequestId?: string;
95
108
  }
109
+ /**
110
+ * GetPositionSpaceList请求参数结构体
111
+ */
112
+ export interface GetPositionSpaceListRequest {
113
+ /**
114
+ * 项目Id
115
+ */
116
+ ProjectId: string;
117
+ /**
118
+ * 翻页偏移量,0起始
119
+ */
120
+ Offset: number;
121
+ /**
122
+ * 最大返回结果数
123
+ */
124
+ Limit: number;
125
+ }
96
126
  /**
97
127
  * GetDeviceList返回参数结构体
98
128
  */
@@ -112,6 +142,75 @@ export interface GetDeviceListResponse {
112
142
  */
113
143
  RequestId?: string;
114
144
  }
145
+ /**
146
+ * TopicRulePayload结构
147
+ */
148
+ export interface TopicRulePayload {
149
+ /**
150
+ * 规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
151
+ */
152
+ Sql: string;
153
+ /**
154
+ * 行为的JSON字符串,大部分种类举例如下:
155
+ [
156
+ {
157
+ "republish": {
158
+ "topic": "TEST/test"
159
+ }
160
+ },
161
+ {
162
+ "forward": {
163
+ "api": "http://test.com:8080"
164
+ }
165
+ },
166
+ {
167
+ "ckafka": {
168
+ "instance": {
169
+ "id": "ckafka-test",
170
+ "name": ""
171
+ },
172
+ "topic": {
173
+ "id": "topic-test",
174
+ "name": "test"
175
+ },
176
+ "region": "gz"
177
+ }
178
+ },
179
+ {
180
+ "cmqqueue": {
181
+ "queuename": "queue-test-TEST",
182
+ "region": "gz"
183
+ }
184
+ },
185
+ {
186
+ "mysql": {
187
+ "instanceid": "cdb-test",
188
+ "region": "gz",
189
+ "username": "test",
190
+ "userpwd": "*****",
191
+ "dbname": "d_mqtt",
192
+ "tablename": "t_test",
193
+ "fieldpairs": [
194
+ {
195
+ "field": "test",
196
+ "value": "test"
197
+ }
198
+ ],
199
+ "devicetype": "CUSTOM"
200
+ }
201
+ }
202
+ ]
203
+ */
204
+ Actions?: string;
205
+ /**
206
+ * 规则描述
207
+ */
208
+ Description?: string;
209
+ /**
210
+ * 是否禁用规则
211
+ */
212
+ RuleDisabled?: boolean;
213
+ }
115
214
  /**
116
215
  * DeleteLoRaFrequency返回参数结构体
117
216
  */
@@ -121,6 +220,48 @@ export interface DeleteLoRaFrequencyResponse {
121
220
  */
122
221
  RequestId?: string;
123
222
  }
223
+ /**
224
+ * DescribeTopicPolicy请求参数结构体
225
+ */
226
+ export interface DescribeTopicPolicyRequest {
227
+ /**
228
+ * 产品ID
229
+ */
230
+ ProductId: string;
231
+ /**
232
+ * Topic名字
233
+ */
234
+ TopicName: string;
235
+ }
236
+ /**
237
+ * ModifyPositionFence请求参数结构体
238
+ */
239
+ export declare type ModifyPositionFenceRequest = null;
240
+ /**
241
+ * 围栏信息
242
+ */
243
+ export interface PositionFenceItem {
244
+ /**
245
+ * 围栏Id
246
+ */
247
+ FenceId: number;
248
+ /**
249
+ * 位置空间Id
250
+ */
251
+ SpaceId: string;
252
+ /**
253
+ * 围栏名称
254
+ */
255
+ FenceName: string;
256
+ /**
257
+ * 围栏描述
258
+ */
259
+ FenceDesc: string;
260
+ /**
261
+ * 围栏区域信息,采用 GeoJSON 格式
262
+ */
263
+ FenceArea: string;
264
+ }
124
265
  /**
125
266
  * DeleteTopicRule返回参数结构体
126
267
  */
@@ -130,6 +271,23 @@ export interface DeleteTopicRuleResponse {
130
271
  */
131
272
  RequestId?: string;
132
273
  }
274
+ /**
275
+ * 位置点
276
+ */
277
+ export interface PositionItem {
278
+ /**
279
+ * 位置点的时间
280
+ */
281
+ CreateTime: number;
282
+ /**
283
+ * 位置点的经度
284
+ */
285
+ Longitude: number;
286
+ /**
287
+ * 位置点的纬度
288
+ */
289
+ Latitude: number;
290
+ }
133
291
  /**
134
292
  * ModifyModelDefinition请求参数结构体
135
293
  */
@@ -178,9 +336,17 @@ export interface CallDeviceActionSyncRequest {
178
336
  InputParams?: string;
179
337
  }
180
338
  /**
181
- * EnableTopicRule返回参数结构体
339
+ * DescribeDevicePositionList请求参数结构体
182
340
  */
183
- export interface EnableTopicRuleResponse {
341
+ export declare type DescribeDevicePositionListRequest = null;
342
+ /**
343
+ * GetDeviceLocationHistory返回参数结构体
344
+ */
345
+ export interface GetDeviceLocationHistoryResponse {
346
+ /**
347
+ * 历史位置列表
348
+ */
349
+ Positions: Array<PositionItem>;
184
350
  /**
185
351
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
186
352
  */
@@ -195,6 +361,15 @@ export interface UpdateFirmwareResponse {
195
361
  */
196
362
  RequestId?: string;
197
363
  }
364
+ /**
365
+ * ModifyPositionFence返回参数结构体
366
+ */
367
+ export interface ModifyPositionFenceResponse {
368
+ /**
369
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
370
+ */
371
+ RequestId?: string;
372
+ }
198
373
  /**
199
374
  * ModifyStudioProduct请求参数结构体
200
375
  */
@@ -220,6 +395,15 @@ export interface ModifyStudioProductRequest {
220
395
  */
221
396
  EnableProductScript?: string;
222
397
  }
398
+ /**
399
+ * ModifyPositionSpace返回参数结构体
400
+ */
401
+ export interface ModifyPositionSpaceResponse {
402
+ /**
403
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
404
+ */
405
+ RequestId?: string;
406
+ }
223
407
  /**
224
408
  * CreateStudioProduct请求参数结构体
225
409
  */
@@ -289,17 +473,72 @@ export interface ProductModelDefinition {
289
473
  NetTypeModel: string;
290
474
  }
291
475
  /**
292
- * ReleaseStudioProduct请求参数结构体
476
+ * ModifyFenceBind返回参数结构体
293
477
  */
294
- export interface ReleaseStudioProductRequest {
478
+ export interface ModifyFenceBindResponse {
479
+ /**
480
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
481
+ */
482
+ RequestId?: string;
483
+ }
484
+ /**
485
+ * DeletePositionFence返回参数结构体
486
+ */
487
+ export interface DeletePositionFenceResponse {
488
+ /**
489
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
490
+ */
491
+ RequestId?: string;
492
+ }
493
+ /**
494
+ * 围栏告警位置点
495
+ */
496
+ export interface FenceAlarmPoint {
497
+ /**
498
+ * 围栏告警时间
499
+ */
500
+ AlarmTime: number;
501
+ /**
502
+ * 围栏告警位置的经度
503
+ */
504
+ Longitude: number;
505
+ /**
506
+ * 围栏告警位置的纬度
507
+ */
508
+ Latitude: number;
509
+ }
510
+ /**
511
+ * UploadFirmware请求参数结构体
512
+ */
513
+ export interface UploadFirmwareRequest {
295
514
  /**
296
515
  * 产品ID
297
516
  */
298
- ProductId: string;
517
+ ProductID: string;
299
518
  /**
300
- * 产品DevStatus
519
+ * 固件版本号
301
520
  */
302
- DevStatus: string;
521
+ FirmwareVersion: string;
522
+ /**
523
+ * 固件的MD5值
524
+ */
525
+ Md5sum: string;
526
+ /**
527
+ * 固件的大小
528
+ */
529
+ FileSize: number;
530
+ /**
531
+ * 固件名称
532
+ */
533
+ FirmwareName?: string;
534
+ /**
535
+ * 固件描述
536
+ */
537
+ FirmwareDescription?: string;
538
+ /**
539
+ * 固件升级模块;可选值 mcu|moudule
540
+ */
541
+ FwType?: string;
303
542
  }
304
543
  /**
305
544
  * ListEventHistory请求参数结构体
@@ -364,6 +603,123 @@ export interface DescribeDeviceDataRequest {
364
603
  */
365
604
  DeviceId?: string;
366
605
  }
606
+ /**
607
+ * 围栏绑定的产品信息
608
+ */
609
+ export interface FenceBindProductItem {
610
+ /**
611
+ * 围栏绑定的设备信息
612
+ */
613
+ Devices: Array<FenceBindDeviceItem>;
614
+ /**
615
+ * 围栏绑定的产品Id
616
+ */
617
+ ProductId: string;
618
+ }
619
+ /**
620
+ * ListTopicPolicy返回参数结构体
621
+ */
622
+ export interface ListTopicPolicyResponse {
623
+ /**
624
+ * Topic列表
625
+ */
626
+ Topics?: Array<TopicItem>;
627
+ /**
628
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
629
+ */
630
+ RequestId?: string;
631
+ }
632
+ /**
633
+ * SearchPositionSpace返回参数结构体
634
+ */
635
+ export interface SearchPositionSpaceResponse {
636
+ /**
637
+ * 位置空间列表
638
+ 注意:此字段可能返回 null,表示取不到有效值。
639
+ */
640
+ List: Array<PositionSpaceInfo>;
641
+ /**
642
+ * 符合条件的位置空间个数
643
+ 注意:此字段可能返回 null,表示取不到有效值。
644
+ */
645
+ Total: number;
646
+ /**
647
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
648
+ */
649
+ RequestId?: string;
650
+ }
651
+ /**
652
+ * DescribePositionFenceList返回参数结构体
653
+ */
654
+ export interface DescribePositionFenceListResponse {
655
+ /**
656
+ * 围栏列表
657
+ 注意:此字段可能返回 null,表示取不到有效值。
658
+ */
659
+ List: Array<PositionFenceInfo>;
660
+ /**
661
+ * 围栏数量
662
+ 注意:此字段可能返回 null,表示取不到有效值。
663
+ */
664
+ Total: number;
665
+ /**
666
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
667
+ */
668
+ RequestId?: string;
669
+ }
670
+ /**
671
+ * GetDeviceLocationHistory请求参数结构体
672
+ */
673
+ export interface GetDeviceLocationHistoryRequest {
674
+ /**
675
+ * 产品Id
676
+ */
677
+ ProductId: string;
678
+ /**
679
+ * 设备名
680
+ */
681
+ DeviceName: string;
682
+ /**
683
+ * 查询起始时间,Unix时间,单位为毫秒
684
+ */
685
+ StartTime: number;
686
+ /**
687
+ * 查询结束时间,Unix时间,单位为毫秒
688
+ */
689
+ EndTime: number;
690
+ /**
691
+ * 坐标类型
692
+ */
693
+ CoordinateType?: number;
694
+ }
695
+ /**
696
+ * DescribeDevicePositionList返回参数结构体
697
+ */
698
+ export interface DescribeDevicePositionListResponse {
699
+ /**
700
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
701
+ */
702
+ RequestId?: string;
703
+ }
704
+ /**
705
+ * GetProjectList返回参数结构体
706
+ */
707
+ export interface GetProjectListResponse {
708
+ /**
709
+ * 项目列表
710
+ 注意:此字段可能返回 null,表示取不到有效值。
711
+ */
712
+ Projects: Array<ProjectEntryEx>;
713
+ /**
714
+ * 列表项个数
715
+ 注意:此字段可能返回 null,表示取不到有效值。
716
+ */
717
+ Total: number;
718
+ /**
719
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
720
+ */
721
+ RequestId?: string;
722
+ }
367
723
  /**
368
724
  * DescribeStudioProduct返回参数结构体
369
725
  */
@@ -390,6 +746,23 @@ export interface DescribeProjectResponse {
390
746
  */
391
747
  RequestId?: string;
392
748
  }
749
+ /**
750
+ * SearchStudioProduct返回参数结构体
751
+ */
752
+ export interface SearchStudioProductResponse {
753
+ /**
754
+ * 产品列表
755
+ */
756
+ Products: Array<ProductEntry>;
757
+ /**
758
+ * 产品数量
759
+ */
760
+ Total: number;
761
+ /**
762
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
763
+ */
764
+ RequestId?: string;
765
+ }
393
766
  /**
394
767
  * DeviceData
395
768
  */
@@ -415,6 +788,40 @@ export interface DeviceData {
415
788
  */
416
789
  DevicePsk: string;
417
790
  }
791
+ /**
792
+ * GetTopicRuleList请求参数结构体
793
+ */
794
+ export interface GetTopicRuleListRequest {
795
+ /**
796
+ * 请求的页数
797
+ */
798
+ PageNum: number;
799
+ /**
800
+ * 分页的大小
801
+ */
802
+ PageSize: number;
803
+ }
804
+ /**
805
+ * 围栏绑定的设备信息
806
+ */
807
+ export interface FenceBindDeviceItem {
808
+ /**
809
+ * 设备名称
810
+ */
811
+ DeviceName: string;
812
+ /**
813
+ * 告警条件(In,进围栏报警;Out,出围栏报警;InOrOut,进围栏或者出围栏均报警)
814
+ */
815
+ AlertCondition: string;
816
+ /**
817
+ * 是否使能围栏(true,使能;false,禁用)
818
+ */
819
+ FenceEnable: boolean;
820
+ /**
821
+ * 告警处理方法
822
+ */
823
+ Method: string;
824
+ }
418
825
  /**
419
826
  * 设备历史数据结构
420
827
  */
@@ -556,6 +963,15 @@ export interface ProjectEntryEx {
556
963
  */
557
964
  DeviceCount: number;
558
965
  }
966
+ /**
967
+ * ListTopicPolicy请求参数结构体
968
+ */
969
+ export interface ListTopicPolicyRequest {
970
+ /**
971
+ * 产品ID
972
+ */
973
+ ProductId: string;
974
+ }
559
975
  /**
560
976
  * DescribeLoRaFrequency请求参数结构体
561
977
  */
@@ -646,6 +1062,24 @@ export interface ReleaseStudioProductResponse {
646
1062
  */
647
1063
  RequestId?: string;
648
1064
  }
1065
+ /**
1066
+ * DescribeSpaceFenceEventList返回参数结构体
1067
+ */
1068
+ export interface DescribeSpaceFenceEventListResponse {
1069
+ /**
1070
+ * 围栏告警事件列表
1071
+ 注意:此字段可能返回 null,表示取不到有效值。
1072
+ */
1073
+ List: Array<FenceEventItem>;
1074
+ /**
1075
+ * 围栏告警事件总数
1076
+ */
1077
+ Total: number;
1078
+ /**
1079
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1080
+ */
1081
+ RequestId?: string;
1082
+ }
649
1083
  /**
650
1084
  * DeleteLoRaGateway请求参数结构体
651
1085
  */
@@ -655,6 +1089,48 @@ export interface DeleteLoRaGatewayRequest {
655
1089
  */
656
1090
  GatewayId: string;
657
1091
  }
1092
+ /**
1093
+ * DescribeTopicPolicy返回参数结构体
1094
+ */
1095
+ export interface DescribeTopicPolicyResponse {
1096
+ /**
1097
+ * 产品ID
1098
+ */
1099
+ ProductId?: string;
1100
+ /**
1101
+ * Topic名称
1102
+ */
1103
+ TopicName?: string;
1104
+ /**
1105
+ * Topic权限
1106
+ */
1107
+ Privilege?: number;
1108
+ /**
1109
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1110
+ */
1111
+ RequestId?: string;
1112
+ }
1113
+ /**
1114
+ * SearchPositionSpace请求参数结构体
1115
+ */
1116
+ export interface SearchPositionSpaceRequest {
1117
+ /**
1118
+ * 项目Id
1119
+ */
1120
+ ProjectId: string;
1121
+ /**
1122
+ * 位置空间名字
1123
+ */
1124
+ SpaceName: string;
1125
+ /**
1126
+ * 偏移量,从0开始
1127
+ */
1128
+ Offset: number;
1129
+ /**
1130
+ * 最大获取数量
1131
+ */
1132
+ Limit: number;
1133
+ }
658
1134
  /**
659
1135
  * LoRa自定义频点信息
660
1136
  */
@@ -700,6 +1176,15 @@ export interface LoRaFrequencyEntry {
700
1176
  */
701
1177
  CreateTime: number;
702
1178
  }
1179
+ /**
1180
+ * ModifyTopicPolicy返回参数结构体
1181
+ */
1182
+ export interface ModifyTopicPolicyResponse {
1183
+ /**
1184
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1185
+ */
1186
+ RequestId?: string;
1187
+ }
703
1188
  /**
704
1189
  * SearchTopicRule返回参数结构体
705
1190
  */
@@ -717,6 +1202,36 @@ export interface SearchTopicRuleResponse {
717
1202
  */
718
1203
  RequestId?: string;
719
1204
  }
1205
+ /**
1206
+ * DescribeFenceEventList返回参数结构体
1207
+ */
1208
+ export interface DescribeFenceEventListResponse {
1209
+ /**
1210
+ * 围栏告警事件列表
1211
+ */
1212
+ List: Array<FenceEventItem>;
1213
+ /**
1214
+ * 围栏告警事件总数
1215
+ */
1216
+ Total: number;
1217
+ /**
1218
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1219
+ */
1220
+ RequestId?: string;
1221
+ }
1222
+ /**
1223
+ * UpdateDevicesEnableState请求参数结构体
1224
+ */
1225
+ export interface UpdateDevicesEnableStateRequest {
1226
+ /**
1227
+ * 多个设备标识
1228
+ */
1229
+ DevicesItems: Array<DevicesItem>;
1230
+ /**
1231
+ * 1:启用;0:禁用
1232
+ */
1233
+ Status: number;
1234
+ }
720
1235
  /**
721
1236
  * DescribeTopicRule请求参数结构体
722
1237
  */
@@ -785,6 +1300,19 @@ export interface CreateLoRaGatewayRequest {
785
1300
  */
786
1301
  FrequencyId?: string;
787
1302
  }
1303
+ /**
1304
+ * ReleaseStudioProduct请求参数结构体
1305
+ */
1306
+ export interface ReleaseStudioProductRequest {
1307
+ /**
1308
+ * 产品ID
1309
+ */
1310
+ ProductId: string;
1311
+ /**
1312
+ * 产品DevStatus
1313
+ */
1314
+ DevStatus: string;
1315
+ }
788
1316
  /**
789
1317
  * CreateProject返回参数结构体
790
1318
  */
@@ -799,17 +1327,33 @@ export interface CreateProjectResponse {
799
1327
  RequestId?: string;
800
1328
  }
801
1329
  /**
802
- * ModifyTopicRule请求参数结构体
1330
+ * DescribeDeviceDataHistory返回参数结构体
803
1331
  */
804
- export interface ModifyTopicRuleRequest {
1332
+ export interface DescribeDeviceDataHistoryResponse {
805
1333
  /**
806
- * 规则名称
807
- */
808
- RuleName: string;
1334
+ * 属性字段名称,对应数据模板中功能属性的标识符
1335
+ 注意:此字段可能返回 null,表示取不到有效值。
1336
+ */
1337
+ FieldName?: string;
809
1338
  /**
810
- * 替换的规则包体
1339
+ * 数据是否已全部返回,true 表示数据全部返回,false 表示还有数据待返回,可将 Context 作为入参,继续查询返回结果。
1340
+ 注意:此字段可能返回 null,表示取不到有效值。
1341
+ */
1342
+ Listover?: boolean;
1343
+ /**
1344
+ * 检索上下文,当 ListOver 为false时,可以用此上下文,继续读取后续数据
1345
+ 注意:此字段可能返回 null,表示取不到有效值。
1346
+ */
1347
+ Context?: string;
1348
+ /**
1349
+ * 历史数据结果数组,返回对应时间点及取值。
1350
+ 注意:此字段可能返回 null,表示取不到有效值。
1351
+ */
1352
+ Results?: Array<DeviceDataHistoryItem>;
1353
+ /**
1354
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
811
1355
  */
812
- TopicRulePayload: TopicRulePayload;
1356
+ RequestId?: string;
813
1357
  }
814
1358
  /**
815
1359
  * DeleteProject返回参数结构体
@@ -821,34 +1365,13 @@ export interface DeleteProjectResponse {
821
1365
  RequestId?: string;
822
1366
  }
823
1367
  /**
824
- * DeleteDevices请求参数结构体
1368
+ * CreateTopicPolicy返回参数结构体
825
1369
  */
826
- export interface DeleteDevicesRequest {
1370
+ export interface CreateTopicPolicyResponse {
827
1371
  /**
828
- * 多个设备标识
829
- */
830
- DevicesItems: Array<DevicesItem>;
831
- }
832
- /**
833
- * CallDeviceActionAsync请求参数结构体
834
- */
835
- export interface CallDeviceActionAsyncRequest {
836
- /**
837
- * 产品Id
838
- */
839
- ProductId: string;
840
- /**
841
- * 设备名称
842
- */
843
- DeviceName: string;
844
- /**
845
- * 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
846
- */
847
- ActionId: string;
848
- /**
849
- * 输入参数
1372
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
850
1373
  */
851
- InputParams?: string;
1374
+ RequestId?: string;
852
1375
  }
853
1376
  /**
854
1377
  * CreateDevice返回参数结构体
@@ -901,23 +1424,13 @@ export interface CreateDeviceRequest {
901
1424
  DefinedPsk?: string;
902
1425
  }
903
1426
  /**
904
- * GetProjectList返回参数结构体
1427
+ * DeletePositionSpace请求参数结构体
905
1428
  */
906
- export interface GetProjectListResponse {
907
- /**
908
- * 项目列表
909
- 注意:此字段可能返回 null,表示取不到有效值。
910
- */
911
- Projects: Array<ProjectEntryEx>;
912
- /**
913
- * 列表项个数
914
- 注意:此字段可能返回 null,表示取不到有效值。
915
- */
916
- Total: number;
1429
+ export interface DeletePositionSpaceRequest {
917
1430
  /**
918
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1431
+ * 位置空间Id
919
1432
  */
920
- RequestId?: string;
1433
+ SpaceId: string;
921
1434
  }
922
1435
  /**
923
1436
  * GetStudioProductList请求参数结构体
@@ -1105,6 +1618,19 @@ export interface CreateProjectRequest {
1105
1618
  */
1106
1619
  InstanceId?: string;
1107
1620
  }
1621
+ /**
1622
+ * CreateFenceBind请求参数结构体
1623
+ */
1624
+ export interface CreateFenceBindRequest {
1625
+ /**
1626
+ * 围栏Id
1627
+ */
1628
+ FenceId: number;
1629
+ /**
1630
+ * 围栏绑定的产品列表
1631
+ */
1632
+ Items: Array<FenceBindProductItem>;
1633
+ }
1108
1634
  /**
1109
1635
  * DescribeDevice返回参数结构体
1110
1636
  */
@@ -1186,37 +1712,17 @@ export interface PublishMessageRequest {
1186
1712
  PayloadEncoding?: string;
1187
1713
  }
1188
1714
  /**
1189
- * UploadFirmware请求参数结构体
1715
+ * ModifyTopicRule请求参数结构体
1190
1716
  */
1191
- export interface UploadFirmwareRequest {
1192
- /**
1193
- * 产品ID
1194
- */
1195
- ProductID: string;
1196
- /**
1197
- * 固件版本号
1198
- */
1199
- FirmwareVersion: string;
1200
- /**
1201
- * 固件的MD5值
1202
- */
1203
- Md5sum: string;
1204
- /**
1205
- * 固件的大小
1206
- */
1207
- FileSize: number;
1208
- /**
1209
- * 固件名称
1210
- */
1211
- FirmwareName?: string;
1717
+ export interface ModifyTopicRuleRequest {
1212
1718
  /**
1213
- * 固件描述
1719
+ * 规则名称
1214
1720
  */
1215
- FirmwareDescription?: string;
1721
+ RuleName: string;
1216
1722
  /**
1217
- * 固件升级模块;可选值 mcu|moudule
1723
+ * 替换的规则包体
1218
1724
  */
1219
- FwType?: string;
1725
+ TopicRulePayload: TopicRulePayload;
1220
1726
  }
1221
1727
  /**
1222
1728
  * GetDeviceList请求参数结构体
@@ -1247,6 +1753,42 @@ export interface GetDeviceListRequest {
1247
1753
  */
1248
1754
  ProjectId?: string;
1249
1755
  }
1756
+ /**
1757
+ * ModifySpaceProperty请求参数结构体
1758
+ */
1759
+ export interface ModifySpacePropertyRequest {
1760
+ /**
1761
+ * 位置空间Id
1762
+ */
1763
+ SpaceId: string;
1764
+ /**
1765
+ * 产品Id
1766
+ */
1767
+ ProductId: string;
1768
+ /**
1769
+ * 产品属性
1770
+ */
1771
+ Data: string;
1772
+ }
1773
+ /**
1774
+ * GetPositionSpaceList返回参数结构体
1775
+ */
1776
+ export interface GetPositionSpaceListResponse {
1777
+ /**
1778
+ * 位置空间列表
1779
+ 注意:此字段可能返回 null,表示取不到有效值。
1780
+ */
1781
+ List: Array<PositionSpaceInfo>;
1782
+ /**
1783
+ * 位置空间数量
1784
+ 注意:此字段可能返回 null,表示取不到有效值。
1785
+ */
1786
+ Total: number;
1787
+ /**
1788
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1789
+ */
1790
+ RequestId?: string;
1791
+ }
1250
1792
  /**
1251
1793
  * GetCOSURL返回参数结构体
1252
1794
  */
@@ -1260,6 +1802,19 @@ export interface GetCOSURLResponse {
1260
1802
  */
1261
1803
  RequestId?: string;
1262
1804
  }
1805
+ /**
1806
+ * ModifyFenceBind请求参数结构体
1807
+ */
1808
+ export interface ModifyFenceBindRequest {
1809
+ /**
1810
+ * 围栏Id
1811
+ */
1812
+ FenceId: number;
1813
+ /**
1814
+ * 围栏绑定的产品列表
1815
+ */
1816
+ Items: Array<FenceBindProductItem>;
1817
+ }
1263
1818
  /**
1264
1819
  * GetTopicRuleList返回参数结构体
1265
1820
  */
@@ -1278,13 +1833,84 @@ export interface GetTopicRuleListResponse {
1278
1833
  RequestId?: string;
1279
1834
  }
1280
1835
  /**
1281
- * DisableTopicRule请求参数结构体
1836
+ * DescribeFenceEventList请求参数结构体
1282
1837
  */
1283
- export interface DisableTopicRuleRequest {
1838
+ export interface DescribeFenceEventListRequest {
1284
1839
  /**
1285
- * 规则名称
1840
+ * 围栏告警信息的查询起始时间,Unix时间,单位为毫秒
1286
1841
  */
1287
- RuleName: string;
1842
+ StartTime: number;
1843
+ /**
1844
+ * 围栏告警信息的查询结束时间,Unix时间,单位为毫秒
1845
+ */
1846
+ EndTime: number;
1847
+ /**
1848
+ * 围栏Id
1849
+ */
1850
+ FenceId?: number;
1851
+ /**
1852
+ * 翻页偏移量,0起始
1853
+ */
1854
+ Offset?: number;
1855
+ /**
1856
+ * 最大返回结果数
1857
+ */
1858
+ Limit?: number;
1859
+ /**
1860
+ * 告警对应的产品Id
1861
+ */
1862
+ ProductId?: string;
1863
+ /**
1864
+ * 告警对应的设备名称
1865
+ */
1866
+ DeviceName?: string;
1867
+ }
1868
+ /**
1869
+ * ModifyPositionSpace请求参数结构体
1870
+ */
1871
+ export interface ModifyPositionSpaceRequest {
1872
+ /**
1873
+ * 位置空间Id
1874
+ */
1875
+ SpaceId: string;
1876
+ /**
1877
+ * 位置空间名称
1878
+ */
1879
+ SpaceName: string;
1880
+ /**
1881
+ * 授权类型
1882
+ */
1883
+ AuthorizeType: number;
1884
+ /**
1885
+ * 产品列表
1886
+ */
1887
+ ProductIdList: Array<string>;
1888
+ /**
1889
+ * 位置空间描述
1890
+ */
1891
+ Description?: string;
1892
+ /**
1893
+ * 缩略图
1894
+ */
1895
+ Icon?: string;
1896
+ }
1897
+ /**
1898
+ * GetLoRaGatewayList返回参数结构体
1899
+ */
1900
+ export interface GetLoRaGatewayListResponse {
1901
+ /**
1902
+ * 返回总数
1903
+ */
1904
+ Total?: number;
1905
+ /**
1906
+ * 返回详情项
1907
+ 注意:此字段可能返回 null,表示取不到有效值。
1908
+ */
1909
+ Gateways?: Array<LoRaGatewayItem>;
1910
+ /**
1911
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1912
+ */
1913
+ RequestId?: string;
1288
1914
  }
1289
1915
  /**
1290
1916
  * 项目详情
@@ -1388,90 +2014,112 @@ export interface TopicRule {
1388
2014
  RuleDisabled: boolean;
1389
2015
  }
1390
2016
  /**
1391
- * TopicRulePayload结构
2017
+ * CallDeviceActionAsync请求参数结构体
1392
2018
  */
1393
- export interface TopicRulePayload {
2019
+ export interface CallDeviceActionAsyncRequest {
1394
2020
  /**
1395
- * 规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
2021
+ * 产品Id
1396
2022
  */
1397
- Sql: string;
2023
+ ProductId: string;
1398
2024
  /**
1399
- * 行为的JSON字符串,大部分种类举例如下:
1400
- [
1401
- {
1402
- "republish": {
1403
- "topic": "TEST/test"
1404
- }
1405
- },
1406
- {
1407
- "forward": {
1408
- "api": "http://test.com:8080"
1409
- }
1410
- },
1411
- {
1412
- "ckafka": {
1413
- "instance": {
1414
- "id": "ckafka-test",
1415
- "name": ""
1416
- },
1417
- "topic": {
1418
- "id": "topic-test",
1419
- "name": "test"
1420
- },
1421
- "region": "gz"
1422
- }
1423
- },
1424
- {
1425
- "cmqqueue": {
1426
- "queuename": "queue-test-TEST",
1427
- "region": "gz"
1428
- }
1429
- },
1430
- {
1431
- "mysql": {
1432
- "instanceid": "cdb-test",
1433
- "region": "gz",
1434
- "username": "test",
1435
- "userpwd": "*****",
1436
- "dbname": "d_mqtt",
1437
- "tablename": "t_test",
1438
- "fieldpairs": [
1439
- {
1440
- "field": "test",
1441
- "value": "test"
1442
- }
1443
- ],
1444
- "devicetype": "CUSTOM"
1445
- }
1446
- }
1447
- ]
1448
- */
1449
- Actions?: string;
2025
+ * 设备名称
2026
+ */
2027
+ DeviceName: string;
2028
+ /**
2029
+ * 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
2030
+ */
2031
+ ActionId: string;
2032
+ /**
2033
+ * 输入参数
2034
+ */
2035
+ InputParams?: string;
2036
+ }
2037
+ /**
2038
+ * CallDeviceActionAsync返回参数结构体
2039
+ */
2040
+ export interface CallDeviceActionAsyncResponse {
2041
+ /**
2042
+ * 调用Id
2043
+ */
2044
+ ClientToken?: string;
2045
+ /**
2046
+ * 异步调用状态
2047
+ */
2048
+ Status?: string;
2049
+ /**
2050
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2051
+ */
2052
+ RequestId?: string;
2053
+ }
2054
+ /**
2055
+ * DeleteFenceBind返回参数结构体
2056
+ */
2057
+ export interface DeleteFenceBindResponse {
2058
+ /**
2059
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2060
+ */
2061
+ RequestId?: string;
2062
+ }
2063
+ /**
2064
+ * DeleteTopicPolicy请求参数结构体
2065
+ */
2066
+ export interface DeleteTopicPolicyRequest {
2067
+ /**
2068
+ * 产品ID
2069
+ */
2070
+ ProductId: string;
2071
+ /**
2072
+ * Topic名称
2073
+ */
2074
+ TopicName: string;
2075
+ }
2076
+ /**
2077
+ * CreateFenceBind返回参数结构体
2078
+ */
2079
+ export interface CreateFenceBindResponse {
2080
+ /**
2081
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2082
+ */
2083
+ RequestId?: string;
2084
+ }
2085
+ /**
2086
+ * DescribeFenceBindList请求参数结构体
2087
+ */
2088
+ export interface DescribeFenceBindListRequest {
1450
2089
  /**
1451
- * 规则描述
2090
+ * 围栏Id
1452
2091
  */
1453
- Description?: string;
2092
+ FenceId: number;
1454
2093
  /**
1455
- * 是否禁用规则
2094
+ * 翻页偏移量,0起始
1456
2095
  */
1457
- RuleDisabled?: boolean;
2096
+ Offset?: number;
2097
+ /**
2098
+ * 最大返回结果数
2099
+ */
2100
+ Limit?: number;
1458
2101
  }
1459
2102
  /**
1460
- * CallDeviceActionAsync返回参数结构体
2103
+ * CreatePositionFence返回参数结构体
1461
2104
  */
1462
- export interface CallDeviceActionAsyncResponse {
2105
+ export interface CreatePositionFenceResponse {
1463
2106
  /**
1464
- * 调用Id
2107
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1465
2108
  */
1466
- ClientToken?: string;
2109
+ RequestId?: string;
2110
+ }
2111
+ /**
2112
+ * Topic信息, 包括Topic名字和权限
2113
+ */
2114
+ export interface TopicItem {
1467
2115
  /**
1468
- * 异步调用状态
2116
+ * Topic名称
1469
2117
  */
1470
- Status?: string;
2118
+ TopicName: string;
1471
2119
  /**
1472
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2120
+ * Topic权限 , 1上报 2下发
1473
2121
  */
1474
- RequestId?: string;
2122
+ Privilege: number;
1475
2123
  }
1476
2124
  /**
1477
2125
  * DescribeTopicRule返回参数结构体
@@ -1512,6 +2160,52 @@ export interface UpdateFirmwareRequest {
1512
2160
  */
1513
2161
  UpgradeMethod?: number;
1514
2162
  }
2163
+ /**
2164
+ * 位置空间详情
2165
+ */
2166
+ export interface PositionSpaceInfo {
2167
+ /**
2168
+ * 项目Id
2169
+ */
2170
+ ProjectId: string;
2171
+ /**
2172
+ * 位置空间Id
2173
+ */
2174
+ SpaceId: string;
2175
+ /**
2176
+ * 位置空间名称
2177
+ */
2178
+ SpaceName: string;
2179
+ /**
2180
+ * 授权类型
2181
+ */
2182
+ AuthorizeType: number;
2183
+ /**
2184
+ * 描述备注
2185
+ 注意:此字段可能返回 null,表示取不到有效值。
2186
+ */
2187
+ Description: string;
2188
+ /**
2189
+ * 产品列表
2190
+ */
2191
+ ProductIdList: Array<string>;
2192
+ /**
2193
+ * 缩略图
2194
+ */
2195
+ Icon: string;
2196
+ /**
2197
+ * 创建时间
2198
+ */
2199
+ CreateTime: number;
2200
+ /**
2201
+ * 更新时间
2202
+ */
2203
+ UpdateTime: number;
2204
+ /**
2205
+ * 用户自定义地图缩放
2206
+ */
2207
+ Zoom: number;
2208
+ }
1515
2209
  /**
1516
2210
  * 网关坐标
1517
2211
  */
@@ -1551,17 +2245,21 @@ export interface DescribeDeviceRequest {
1551
2245
  DeviceId?: string;
1552
2246
  }
1553
2247
  /**
1554
- * UpdateDevicesEnableState请求参数结构体
2248
+ * DescribePositionFenceList请求参数结构体
1555
2249
  */
1556
- export interface UpdateDevicesEnableStateRequest {
2250
+ export interface DescribePositionFenceListRequest {
1557
2251
  /**
1558
- * 多个设备标识
2252
+ * 位置空间Id
1559
2253
  */
1560
- DevicesItems: Array<DevicesItem>;
2254
+ SpaceId: string;
1561
2255
  /**
1562
- * 1:启用;0:禁用
2256
+ * 翻页偏移量,0起始
1563
2257
  */
1564
- Status: number;
2258
+ Offset?: number;
2259
+ /**
2260
+ * 最大返回结果数
2261
+ */
2262
+ Limit?: number;
1565
2263
  }
1566
2264
  /**
1567
2265
  * ModifyTopicRule返回参数结构体
@@ -1572,6 +2270,23 @@ export interface ModifyTopicRuleResponse {
1572
2270
  */
1573
2271
  RequestId?: string;
1574
2272
  }
2273
+ /**
2274
+ * CreateTopicPolicy请求参数结构体
2275
+ */
2276
+ export interface CreateTopicPolicyRequest {
2277
+ /**
2278
+ * 产品ID
2279
+ */
2280
+ ProductId: string;
2281
+ /**
2282
+ * Topic名称
2283
+ */
2284
+ TopicName: string;
2285
+ /**
2286
+ * Topic权限,1发布,2订阅,3订阅和发布
2287
+ */
2288
+ Privilege: number;
2289
+ }
1575
2290
  /**
1576
2291
  * DirectBindDeviceInFamily请求参数结构体
1577
2292
  */
@@ -1616,21 +2331,29 @@ export interface DescribeLoRaFrequencyResponse {
1616
2331
  RequestId?: string;
1617
2332
  }
1618
2333
  /**
1619
- * SearchStudioProduct返回参数结构体
2334
+ * DescribeSpaceFenceEventList请求参数结构体
1620
2335
  */
1621
- export interface SearchStudioProductResponse {
2336
+ export interface DescribeSpaceFenceEventListRequest {
1622
2337
  /**
1623
- * 产品列表
2338
+ * 位置空间Id
1624
2339
  */
1625
- Products: Array<ProductEntry>;
2340
+ SpaceId: string;
1626
2341
  /**
1627
- * 产品数量
2342
+ * 围栏告警信息的查询起始时间,Unix时间,单位为毫秒
1628
2343
  */
1629
- Total: number;
2344
+ StartTime: number;
1630
2345
  /**
1631
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2346
+ * 围栏告警信息的查询结束时间,Unix时间,单位为毫秒
1632
2347
  */
1633
- RequestId?: string;
2348
+ EndTime: number;
2349
+ /**
2350
+ * 翻页偏移量,0起始
2351
+ */
2352
+ Offset?: number;
2353
+ /**
2354
+ * 最大返回结果数
2355
+ */
2356
+ Limit?: number;
1634
2357
  }
1635
2358
  /**
1636
2359
  * GetLoRaGatewayList请求参数结构体
@@ -1649,6 +2372,31 @@ export interface GetLoRaGatewayListRequest {
1649
2372
  */
1650
2373
  Limit?: number;
1651
2374
  }
2375
+ /**
2376
+ * 围栏事件详情
2377
+ */
2378
+ export interface FenceEventItem {
2379
+ /**
2380
+ * 围栏事件的产品Id
2381
+ */
2382
+ ProductId: string;
2383
+ /**
2384
+ * 围栏事件的设备名称
2385
+ */
2386
+ DeviceName: string;
2387
+ /**
2388
+ * 围栏Id
2389
+ */
2390
+ FenceId: number;
2391
+ /**
2392
+ * 围栏事件的告警类型(In,进围栏报警;Out,出围栏报警;InOrOut,进围栏或者出围栏均报警)
2393
+ */
2394
+ AlertType: string;
2395
+ /**
2396
+ * 围栏事件的设备位置信息
2397
+ */
2398
+ Data: FenceAlarmPoint;
2399
+ }
1652
2400
  /**
1653
2401
  * DescribeProject请求参数结构体
1654
2402
  */
@@ -1667,6 +2415,27 @@ export interface UploadFirmwareResponse {
1667
2415
  */
1668
2416
  RequestId?: string;
1669
2417
  }
2418
+ /**
2419
+ * ModifyTopicPolicy请求参数结构体
2420
+ */
2421
+ export interface ModifyTopicPolicyRequest {
2422
+ /**
2423
+ * 产品ID
2424
+ */
2425
+ ProductId: string;
2426
+ /**
2427
+ * 更新前Topic名
2428
+ */
2429
+ TopicName: string;
2430
+ /**
2431
+ * 更新后Topic名
2432
+ */
2433
+ NewTopicName: string;
2434
+ /**
2435
+ * Topic权限
2436
+ */
2437
+ Privilege: number;
2438
+ }
1670
2439
  /**
1671
2440
  * DeleteTopicRule请求参数结构体
1672
2441
  */
@@ -1689,6 +2458,15 @@ export interface CreateLoRaGatewayResponse {
1689
2458
  */
1690
2459
  RequestId?: string;
1691
2460
  }
2461
+ /**
2462
+ * DeleteTopicPolicy返回参数结构体
2463
+ */
2464
+ export interface DeleteTopicPolicyResponse {
2465
+ /**
2466
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2467
+ */
2468
+ RequestId?: string;
2469
+ }
1692
2470
  /**
1693
2471
  * DeleteLoRaGateway返回参数结构体
1694
2472
  */
@@ -1845,6 +2623,20 @@ export interface DescribeStudioProductRequest {
1845
2623
  */
1846
2624
  ProductId: string;
1847
2625
  }
2626
+ /**
2627
+ * CreatePositionSpace返回参数结构体
2628
+ */
2629
+ export interface CreatePositionSpaceResponse {
2630
+ /**
2631
+ * 空间Id
2632
+ 注意:此字段可能返回 null,表示取不到有效值。
2633
+ */
2634
+ SpaceId: string;
2635
+ /**
2636
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2637
+ */
2638
+ RequestId?: string;
2639
+ }
1848
2640
  /**
1849
2641
  * ModifyLoRaFrequency请求参数结构体
1850
2642
  */
@@ -1895,6 +2687,19 @@ export interface ModifyModelDefinitionResponse {
1895
2687
  */
1896
2688
  RequestId?: string;
1897
2689
  }
2690
+ /**
2691
+ * DeletePositionFence请求参数结构体
2692
+ */
2693
+ export interface DeletePositionFenceRequest {
2694
+ /**
2695
+ * 位置空间Id
2696
+ */
2697
+ SpaceId: string;
2698
+ /**
2699
+ * 围栏Id
2700
+ */
2701
+ FenceId: number;
2702
+ }
1898
2703
  /**
1899
2704
  * GetProjectList请求参数结构体
1900
2705
  */
@@ -1928,6 +2733,15 @@ export interface GetProjectListRequest {
1928
2733
  */
1929
2734
  ProjectName?: string;
1930
2735
  }
2736
+ /**
2737
+ * DeletePositionSpace返回参数结构体
2738
+ */
2739
+ export interface DeletePositionSpaceResponse {
2740
+ /**
2741
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2742
+ */
2743
+ RequestId?: string;
2744
+ }
1931
2745
  /**
1932
2746
  * CreateLoRaFrequency返回参数结构体
1933
2747
  */
@@ -1941,6 +2755,15 @@ export interface CreateLoRaFrequencyResponse {
1941
2755
  */
1942
2756
  RequestId?: string;
1943
2757
  }
2758
+ /**
2759
+ * EnableTopicRule返回参数结构体
2760
+ */
2761
+ export interface EnableTopicRuleResponse {
2762
+ /**
2763
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2764
+ */
2765
+ RequestId?: string;
2766
+ }
1944
2767
  /**
1945
2768
  * SearchStudioProduct请求参数结构体
1946
2769
  */
@@ -1971,17 +2794,13 @@ export interface SearchStudioProductRequest {
1971
2794
  ProductId?: string;
1972
2795
  }
1973
2796
  /**
1974
- * GetTopicRuleList请求参数结构体
2797
+ * DeleteDevices请求参数结构体
1975
2798
  */
1976
- export interface GetTopicRuleListRequest {
1977
- /**
1978
- * 请求的页数
1979
- */
1980
- PageNum: number;
2799
+ export interface DeleteDevicesRequest {
1981
2800
  /**
1982
- * 分页的大小
2801
+ * 多个设备标识
1983
2802
  */
1984
- PageSize: number;
2803
+ DevicesItems: Array<DevicesItem>;
1985
2804
  }
1986
2805
  /**
1987
2806
  * 云api直接绑定设备出参
@@ -2067,6 +2886,15 @@ export interface ModifyProjectRequest {
2067
2886
  */
2068
2887
  ProjectDesc: string;
2069
2888
  }
2889
+ /**
2890
+ * ModifySpaceProperty返回参数结构体
2891
+ */
2892
+ export interface ModifySpacePropertyResponse {
2893
+ /**
2894
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2895
+ */
2896
+ RequestId?: string;
2897
+ }
2070
2898
  /**
2071
2899
  * PublishMessage返回参数结构体
2072
2900
  */
@@ -2090,29 +2918,17 @@ export interface ModifyLoRaGatewayResponse {
2090
2918
  RequestId?: string;
2091
2919
  }
2092
2920
  /**
2093
- * DescribeDeviceDataHistory返回参数结构体
2921
+ * DescribeFenceBindList返回参数结构体
2094
2922
  */
2095
- export interface DescribeDeviceDataHistoryResponse {
2096
- /**
2097
- * 属性字段名称,对应数据模板中功能属性的标识符
2098
- 注意:此字段可能返回 null,表示取不到有效值。
2099
- */
2100
- FieldName?: string;
2101
- /**
2102
- * 数据是否已全部返回,true 表示数据全部返回,false 表示还有数据待返回,可将 Context 作为入参,继续查询返回结果。
2103
- 注意:此字段可能返回 null,表示取不到有效值。
2104
- */
2105
- Listover?: boolean;
2923
+ export interface DescribeFenceBindListResponse {
2106
2924
  /**
2107
- * 检索上下文,当 ListOver 为false时,可以用此上下文,继续读取后续数据
2108
- 注意:此字段可能返回 null,表示取不到有效值。
2109
- */
2110
- Context?: string;
2925
+ * 围栏绑定的产品设备列表
2926
+ */
2927
+ List: Array<FenceBindProductItem>;
2111
2928
  /**
2112
- * 历史数据结果数组,返回对应时间点及取值。
2113
- 注意:此字段可能返回 null,表示取不到有效值。
2114
- */
2115
- Results?: Array<DeviceDataHistoryItem>;
2929
+ * 围栏绑定的设备总数
2930
+ */
2931
+ Total: number;
2116
2932
  /**
2117
2933
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2118
2934
  */
@@ -2131,6 +2947,27 @@ export interface SearchKeyword {
2131
2947
  */
2132
2948
  Value?: string;
2133
2949
  }
2950
+ /**
2951
+ * CreatePositionFence请求参数结构体
2952
+ */
2953
+ export interface CreatePositionFenceRequest {
2954
+ /**
2955
+ * 位置空间Id
2956
+ */
2957
+ SpaceId: string;
2958
+ /**
2959
+ * 围栏名称
2960
+ */
2961
+ FenceName: string;
2962
+ /**
2963
+ * 围栏区域信息,采用 GeoJSON 格式
2964
+ */
2965
+ FenceArea: string;
2966
+ /**
2967
+ * 围栏描述
2968
+ */
2969
+ FenceDesc?: string;
2970
+ }
2134
2971
  /**
2135
2972
  * DescribeModelDefinition请求参数结构体
2136
2973
  */
@@ -2141,22 +2978,13 @@ export interface DescribeModelDefinitionRequest {
2141
2978
  ProductId: string;
2142
2979
  }
2143
2980
  /**
2144
- * GetLoRaGatewayList返回参数结构体
2981
+ * DisableTopicRule请求参数结构体
2145
2982
  */
2146
- export interface GetLoRaGatewayListResponse {
2147
- /**
2148
- * 返回总数
2149
- */
2150
- Total?: number;
2151
- /**
2152
- * 返回详情项
2153
- 注意:此字段可能返回 null,表示取不到有效值。
2154
- */
2155
- Gateways?: Array<LoRaGatewayItem>;
2983
+ export interface DisableTopicRuleRequest {
2156
2984
  /**
2157
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2985
+ * 规则名称
2158
2986
  */
2159
- RequestId?: string;
2987
+ RuleName: string;
2160
2988
  }
2161
2989
  /**
2162
2990
  * CreateTopicRule返回参数结构体
@@ -2193,6 +3021,23 @@ export interface CreateTopicRuleRequest {
2193
3021
  */
2194
3022
  TopicRulePayload: TopicRulePayload;
2195
3023
  }
3024
+ /**
3025
+ * 围栏详细信息(包含创建时间及更新时间)
3026
+ */
3027
+ export interface PositionFenceInfo {
3028
+ /**
3029
+ * 围栏信息
3030
+ */
3031
+ GeoFence: PositionFenceItem;
3032
+ /**
3033
+ * 围栏创建时间
3034
+ */
3035
+ CreateTime: number;
3036
+ /**
3037
+ * 围栏更新时间
3038
+ */
3039
+ UpdateTime: number;
3040
+ }
2196
3041
  /**
2197
3042
  * DeleteDevice返回参数结构体
2198
3043
  */
@@ -2400,3 +3245,32 @@ export interface DescribeFirmwareTaskRequest {
2400
3245
  */
2401
3246
  TaskId: number;
2402
3247
  }
3248
+ /**
3249
+ * CreatePositionSpace请求参数结构体
3250
+ */
3251
+ export interface CreatePositionSpaceRequest {
3252
+ /**
3253
+ * 项目ID
3254
+ */
3255
+ ProjectId: string;
3256
+ /**
3257
+ * 空间名称
3258
+ */
3259
+ SpaceName: string;
3260
+ /**
3261
+ * 授权类型,0:只读 1:读写
3262
+ */
3263
+ AuthorizeType: number;
3264
+ /**
3265
+ * 产品列表
3266
+ */
3267
+ ProductIdList: Array<string>;
3268
+ /**
3269
+ * 描述
3270
+ */
3271
+ Description?: string;
3272
+ /**
3273
+ * 缩略图
3274
+ */
3275
+ Icon?: string;
3276
+ }