@shieldiot/pulse-lib 1.0.379 → 1.0.380

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.
Files changed (176) hide show
  1. package/dist/cjs/lib/common/DeviceConfig.d.ts +1 -1
  2. package/dist/cjs/lib/common/DeviceNode.d.ts +1 -1
  3. package/dist/cjs/lib/common/DeviceScoreConfig.d.ts +1 -1
  4. package/dist/cjs/lib/common/DevicesMap.d.ts +1 -1
  5. package/dist/cjs/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
  6. package/dist/cjs/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  7. package/dist/cjs/lib/common/TokenData.d.ts +1 -1
  8. package/dist/cjs/lib/entities/Account.d.ts +1 -1
  9. package/dist/cjs/lib/entities/Account.js.map +1 -1
  10. package/dist/cjs/lib/entities/AccountDTO.d.ts +2 -2
  11. package/dist/cjs/lib/entities/AccountDTO.js.map +1 -1
  12. package/dist/cjs/lib/entities/AccountReportDTO.d.ts +3 -3
  13. package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
  14. package/dist/cjs/lib/entities/Alert.d.ts +5 -5
  15. package/dist/cjs/lib/entities/Alert.js.map +1 -1
  16. package/dist/cjs/lib/entities/AlertWithDevice.d.ts +3 -3
  17. package/dist/cjs/lib/entities/AlertWithDevice.js.map +1 -1
  18. package/dist/cjs/lib/entities/ConfigParams.d.ts +1 -1
  19. package/dist/cjs/lib/entities/ConfigParams.js.map +1 -1
  20. package/dist/cjs/lib/entities/DataIngestion.d.ts +1 -1
  21. package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +3 -3
  22. package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
  23. package/dist/cjs/lib/entities/Event.d.ts +6 -6
  24. package/dist/cjs/lib/entities/Event.js.map +1 -1
  25. package/dist/cjs/lib/entities/EventOccurrence.d.ts +1 -1
  26. package/dist/cjs/lib/entities/EventWithDevice.d.ts +5 -5
  27. package/dist/cjs/lib/entities/EventWithDevice.js.map +1 -1
  28. package/dist/cjs/lib/entities/Feature.d.ts +1 -1
  29. package/dist/cjs/lib/entities/Feature.js.map +1 -1
  30. package/dist/cjs/lib/entities/IdsRule.d.ts +2 -2
  31. package/dist/cjs/lib/entities/IdsRule.js.map +1 -1
  32. package/dist/cjs/lib/entities/Insight.d.ts +2 -2
  33. package/dist/cjs/lib/entities/Insight.js.map +1 -1
  34. package/dist/cjs/lib/entities/InsightQuery.d.ts +1 -1
  35. package/dist/cjs/lib/entities/InsightQuery.js.map +1 -1
  36. package/dist/cjs/lib/entities/Integration.d.ts +1 -1
  37. package/dist/cjs/lib/entities/Integration.js.map +1 -1
  38. package/dist/cjs/lib/entities/Radius.d.ts +1 -1
  39. package/dist/cjs/lib/entities/Radius.js.map +1 -1
  40. package/dist/cjs/lib/entities/Report.d.ts +1 -1
  41. package/dist/cjs/lib/entities/Report.js.map +1 -1
  42. package/dist/cjs/lib/entities/ReportInstance.d.ts +1 -1
  43. package/dist/cjs/lib/entities/ReportInstance.js.map +1 -1
  44. package/dist/cjs/lib/entities/Rule.d.ts +1 -1
  45. package/dist/cjs/lib/entities/Rule.js.map +1 -1
  46. package/dist/cjs/lib/entities/RuleTemplate.d.ts +2 -2
  47. package/dist/cjs/lib/entities/RuleTemplate.js.map +1 -1
  48. package/dist/cjs/lib/entities/Stream.d.ts +1 -1
  49. package/dist/cjs/lib/entities/Stream.js.map +1 -1
  50. package/dist/cjs/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
  51. package/dist/cjs/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  52. package/dist/cjs/lib/entities/StreamConfig.d.ts +3 -3
  53. package/dist/cjs/lib/entities/User.d.ts +1 -1
  54. package/dist/cjs/lib/entities/User.js.map +1 -1
  55. package/dist/cjs/lib/services/sysAccountsService.d.ts +1 -1
  56. package/dist/cjs/lib/services/sysKeysService.d.ts +1 -1
  57. package/dist/cjs/lib/services/sysUsersService.d.ts +2 -2
  58. package/dist/cjs/lib/services/usrAlertsService.d.ts +15 -15
  59. package/dist/cjs/lib/services/usrAlertsService.js +21 -21
  60. package/dist/cjs/lib/services/usrDevicesService.d.ts +16 -16
  61. package/dist/cjs/lib/services/usrDevicesService.js +18 -18
  62. package/dist/cjs/lib/services/usrEventsService.d.ts +6 -6
  63. package/dist/cjs/lib/services/usrInsightsService.d.ts +1 -1
  64. package/dist/cjs/lib/services/usrReportsInstanceService.d.ts +1 -1
  65. package/dist/cjs/lib/services/usrRulesService.d.ts +3 -3
  66. package/dist/cjs/lib/services/usrUserService.d.ts +5 -5
  67. package/dist/esm/lib/common/DeviceConfig.d.ts +1 -1
  68. package/dist/esm/lib/common/DeviceNode.d.ts +1 -1
  69. package/dist/esm/lib/common/DeviceScoreConfig.d.ts +1 -1
  70. package/dist/esm/lib/common/DevicesMap.d.ts +1 -1
  71. package/dist/esm/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
  72. package/dist/esm/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  73. package/dist/esm/lib/common/TokenData.d.ts +1 -1
  74. package/dist/esm/lib/entities/Account.d.ts +1 -1
  75. package/dist/esm/lib/entities/Account.js.map +1 -1
  76. package/dist/esm/lib/entities/AccountDTO.d.ts +2 -2
  77. package/dist/esm/lib/entities/AccountDTO.js.map +1 -1
  78. package/dist/esm/lib/entities/AccountReportDTO.d.ts +3 -3
  79. package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
  80. package/dist/esm/lib/entities/Alert.d.ts +5 -5
  81. package/dist/esm/lib/entities/Alert.js.map +1 -1
  82. package/dist/esm/lib/entities/AlertWithDevice.d.ts +3 -3
  83. package/dist/esm/lib/entities/AlertWithDevice.js.map +1 -1
  84. package/dist/esm/lib/entities/ConfigParams.d.ts +1 -1
  85. package/dist/esm/lib/entities/ConfigParams.js.map +1 -1
  86. package/dist/esm/lib/entities/DataIngestion.d.ts +1 -1
  87. package/dist/esm/lib/entities/DeviceWithEvents.d.ts +3 -3
  88. package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
  89. package/dist/esm/lib/entities/Event.d.ts +6 -6
  90. package/dist/esm/lib/entities/Event.js.map +1 -1
  91. package/dist/esm/lib/entities/EventOccurrence.d.ts +1 -1
  92. package/dist/esm/lib/entities/EventWithDevice.d.ts +5 -5
  93. package/dist/esm/lib/entities/EventWithDevice.js.map +1 -1
  94. package/dist/esm/lib/entities/Feature.d.ts +1 -1
  95. package/dist/esm/lib/entities/Feature.js.map +1 -1
  96. package/dist/esm/lib/entities/IdsRule.d.ts +2 -2
  97. package/dist/esm/lib/entities/IdsRule.js.map +1 -1
  98. package/dist/esm/lib/entities/Insight.d.ts +2 -2
  99. package/dist/esm/lib/entities/Insight.js.map +1 -1
  100. package/dist/esm/lib/entities/InsightQuery.d.ts +1 -1
  101. package/dist/esm/lib/entities/InsightQuery.js.map +1 -1
  102. package/dist/esm/lib/entities/Integration.d.ts +1 -1
  103. package/dist/esm/lib/entities/Integration.js.map +1 -1
  104. package/dist/esm/lib/entities/Radius.d.ts +1 -1
  105. package/dist/esm/lib/entities/Radius.js.map +1 -1
  106. package/dist/esm/lib/entities/Report.d.ts +1 -1
  107. package/dist/esm/lib/entities/Report.js.map +1 -1
  108. package/dist/esm/lib/entities/ReportInstance.d.ts +1 -1
  109. package/dist/esm/lib/entities/ReportInstance.js.map +1 -1
  110. package/dist/esm/lib/entities/Rule.d.ts +1 -1
  111. package/dist/esm/lib/entities/Rule.js.map +1 -1
  112. package/dist/esm/lib/entities/RuleTemplate.d.ts +2 -2
  113. package/dist/esm/lib/entities/RuleTemplate.js.map +1 -1
  114. package/dist/esm/lib/entities/Stream.d.ts +1 -1
  115. package/dist/esm/lib/entities/Stream.js.map +1 -1
  116. package/dist/esm/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
  117. package/dist/esm/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  118. package/dist/esm/lib/entities/StreamConfig.d.ts +3 -3
  119. package/dist/esm/lib/entities/User.d.ts +1 -1
  120. package/dist/esm/lib/entities/User.js.map +1 -1
  121. package/dist/esm/lib/services/sysAccountsService.d.ts +1 -1
  122. package/dist/esm/lib/services/sysKeysService.d.ts +1 -1
  123. package/dist/esm/lib/services/sysUsersService.d.ts +2 -2
  124. package/dist/esm/lib/services/usrAlertsService.d.ts +15 -15
  125. package/dist/esm/lib/services/usrAlertsService.js +21 -21
  126. package/dist/esm/lib/services/usrDevicesService.d.ts +16 -16
  127. package/dist/esm/lib/services/usrDevicesService.js +18 -18
  128. package/dist/esm/lib/services/usrEventsService.d.ts +6 -6
  129. package/dist/esm/lib/services/usrInsightsService.d.ts +1 -1
  130. package/dist/esm/lib/services/usrReportsInstanceService.d.ts +1 -1
  131. package/dist/esm/lib/services/usrRulesService.d.ts +3 -3
  132. package/dist/esm/lib/services/usrUserService.d.ts +5 -5
  133. package/dist/types/lib/common/DeviceConfig.d.ts +1 -1
  134. package/dist/types/lib/common/DeviceNode.d.ts +1 -1
  135. package/dist/types/lib/common/DeviceScoreConfig.d.ts +1 -1
  136. package/dist/types/lib/common/DevicesMap.d.ts +1 -1
  137. package/dist/types/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
  138. package/dist/types/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  139. package/dist/types/lib/common/TokenData.d.ts +1 -1
  140. package/dist/types/lib/entities/Account.d.ts +1 -1
  141. package/dist/types/lib/entities/AccountDTO.d.ts +2 -2
  142. package/dist/types/lib/entities/AccountReportDTO.d.ts +3 -3
  143. package/dist/types/lib/entities/Alert.d.ts +5 -5
  144. package/dist/types/lib/entities/AlertWithDevice.d.ts +3 -3
  145. package/dist/types/lib/entities/ConfigParams.d.ts +1 -1
  146. package/dist/types/lib/entities/DataIngestion.d.ts +1 -1
  147. package/dist/types/lib/entities/DeviceWithEvents.d.ts +3 -3
  148. package/dist/types/lib/entities/Event.d.ts +6 -6
  149. package/dist/types/lib/entities/EventOccurrence.d.ts +1 -1
  150. package/dist/types/lib/entities/EventWithDevice.d.ts +5 -5
  151. package/dist/types/lib/entities/Feature.d.ts +1 -1
  152. package/dist/types/lib/entities/IdsRule.d.ts +2 -2
  153. package/dist/types/lib/entities/Insight.d.ts +2 -2
  154. package/dist/types/lib/entities/InsightQuery.d.ts +1 -1
  155. package/dist/types/lib/entities/Integration.d.ts +1 -1
  156. package/dist/types/lib/entities/Radius.d.ts +1 -1
  157. package/dist/types/lib/entities/Report.d.ts +1 -1
  158. package/dist/types/lib/entities/ReportInstance.d.ts +1 -1
  159. package/dist/types/lib/entities/Rule.d.ts +1 -1
  160. package/dist/types/lib/entities/RuleTemplate.d.ts +2 -2
  161. package/dist/types/lib/entities/Stream.d.ts +1 -1
  162. package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
  163. package/dist/types/lib/entities/StreamConfig.d.ts +3 -3
  164. package/dist/types/lib/entities/User.d.ts +1 -1
  165. package/dist/types/lib/services/sysAccountsService.d.ts +1 -1
  166. package/dist/types/lib/services/sysKeysService.d.ts +1 -1
  167. package/dist/types/lib/services/sysUsersService.d.ts +2 -2
  168. package/dist/types/lib/services/usrAlertsService.d.ts +15 -15
  169. package/dist/types/lib/services/usrDevicesService.d.ts +16 -16
  170. package/dist/types/lib/services/usrEventsService.d.ts +6 -6
  171. package/dist/types/lib/services/usrInsightsService.d.ts +1 -1
  172. package/dist/types/lib/services/usrReportsInstanceService.d.ts +1 -1
  173. package/dist/types/lib/services/usrRulesService.d.ts +3 -3
  174. package/dist/types/lib/services/usrUserService.d.ts +5 -5
  175. package/dist/umd/index.js +1 -1
  176. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { MapBounds } from '../common';
3
- import { DevicesMap } from '../common';
4
- import { IntDistribution } from '../entities';
5
- import { TimeSeriesOfDeviceReport } from '../entities';
6
- import { NetworkMapTypeCode } from '../enums';
7
- import { DeviceReport } from '../entities';
8
- import { SeverityTypeCode } from '../enums';
9
2
  import { DeviceWithEvents } from '../entities';
10
- import { DeviceStatusCode } from '../enums';
11
3
  import { DeviceActionCode } from '../enums';
12
4
  import { BulkDevices } from '../entities';
13
- import { DeviceTypeCode } from '../enums';
5
+ import { TimeSeriesOfDeviceReport } from '../entities';
6
+ import { NetworkMapTypeCode } from '../enums';
7
+ import { SeverityTypeCode } from '../enums';
8
+ import { IntDistribution } from '../entities';
9
+ import { NetworkMap } from '../common';
10
+ import { DeviceReport } from '../entities';
14
11
  import { TimeSeriesOfDataConsumption } from '../common';
15
12
  import { Device } from '../entities';
16
- import { NetworkMap } from '../common';
13
+ import { DeviceStatusCode } from '../enums';
14
+ import { MapBounds } from '../common';
15
+ import { DevicesMap } from '../common';
16
+ import { DeviceTypeCode } from '../enums';
17
17
  export declare class UsrDevicesService {
18
18
  private apiUrl;
19
19
  private rest;
@@ -46,7 +46,7 @@ export declare class UsrDevicesService {
46
46
  /**
47
47
  * Find list of devices by query
48
48
  */
49
- find(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, iDs?: string[]): import("rxjs").Observable<EntitiesResponse<Device>>;
49
+ find(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntitiesResponse<Device>>;
50
50
  /**
51
51
  * Export list of devices by query to a file with the specified format
52
52
  */
@@ -54,23 +54,23 @@ export declare class UsrDevicesService {
54
54
  /**
55
55
  * Find top 10 devices by their score filter by query
56
56
  */
57
- findTop(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, iDs?: string[]): import("rxjs").Observable<EntitiesResponse<DeviceWithEvents>>;
57
+ findTop(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntitiesResponse<DeviceWithEvents>>;
58
58
  /**
59
59
  * Find device distribution by type filtered by query
60
60
  */
61
- countByType(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, iDs?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
61
+ countByType(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
62
62
  /**
63
63
  * Find device distribution by status filtered by query
64
64
  */
65
- countByStatus(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, iDs?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
65
+ countByStatus(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
66
66
  /**
67
67
  * Find device distribution by action filtered by query
68
68
  */
69
- countByAction(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, iDs?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
69
+ countByAction(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
70
70
  /**
71
71
  * Find device distribution by risk filtered by query
72
72
  */
73
- countByRisk(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, iDs?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
73
+ countByRisk(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
74
74
  /**
75
75
  * Add tag to a device
76
76
  */
@@ -49,7 +49,7 @@ export class UsrDevicesService {
49
49
  /**
50
50
  * Find list of devices by query
51
51
  */
52
- find(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, iDs) {
52
+ find(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
53
53
  const params = [];
54
54
  if (streamId != null) {
55
55
  params.push(`streamId=${streamId}`);
@@ -84,8 +84,8 @@ export class UsrDevicesService {
84
84
  if (size != null) {
85
85
  params.push(`size=${size}`);
86
86
  }
87
- if (iDs != null) {
88
- params.push(`iDs=${iDs}`);
87
+ if (ids != null) {
88
+ params.push(`ids=${ids}`);
89
89
  }
90
90
  return this.rest.get(`${this.baseUrl}`, ...params);
91
91
  }
@@ -129,7 +129,7 @@ export class UsrDevicesService {
129
129
  /**
130
130
  * Find top 10 devices by their score filter by query
131
131
  */
132
- findTop(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, iDs) {
132
+ findTop(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
133
133
  const params = [];
134
134
  if (streamId != null) {
135
135
  params.push(`streamId=${streamId}`);
@@ -164,15 +164,15 @@ export class UsrDevicesService {
164
164
  if (size != null) {
165
165
  params.push(`size=${size}`);
166
166
  }
167
- if (iDs != null) {
168
- params.push(`iDs=${iDs}`);
167
+ if (ids != null) {
168
+ params.push(`ids=${ids}`);
169
169
  }
170
170
  return this.rest.get(`${this.baseUrl}/top`, ...params);
171
171
  }
172
172
  /**
173
173
  * Find device distribution by type filtered by query
174
174
  */
175
- countByType(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, iDs) {
175
+ countByType(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
176
176
  const params = [];
177
177
  if (streamId != null) {
178
178
  params.push(`streamId=${streamId}`);
@@ -207,15 +207,15 @@ export class UsrDevicesService {
207
207
  if (size != null) {
208
208
  params.push(`size=${size}`);
209
209
  }
210
- if (iDs != null) {
211
- params.push(`iDs=${iDs}`);
210
+ if (ids != null) {
211
+ params.push(`ids=${ids}`);
212
212
  }
213
213
  return this.rest.get(`${this.baseUrl}/count/by-type`, ...params);
214
214
  }
215
215
  /**
216
216
  * Find device distribution by status filtered by query
217
217
  */
218
- countByStatus(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, iDs) {
218
+ countByStatus(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
219
219
  const params = [];
220
220
  if (streamId != null) {
221
221
  params.push(`streamId=${streamId}`);
@@ -250,15 +250,15 @@ export class UsrDevicesService {
250
250
  if (size != null) {
251
251
  params.push(`size=${size}`);
252
252
  }
253
- if (iDs != null) {
254
- params.push(`iDs=${iDs}`);
253
+ if (ids != null) {
254
+ params.push(`ids=${ids}`);
255
255
  }
256
256
  return this.rest.get(`${this.baseUrl}/count/by-status`, ...params);
257
257
  }
258
258
  /**
259
259
  * Find device distribution by action filtered by query
260
260
  */
261
- countByAction(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, iDs) {
261
+ countByAction(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
262
262
  const params = [];
263
263
  if (streamId != null) {
264
264
  params.push(`streamId=${streamId}`);
@@ -293,15 +293,15 @@ export class UsrDevicesService {
293
293
  if (size != null) {
294
294
  params.push(`size=${size}`);
295
295
  }
296
- if (iDs != null) {
297
- params.push(`iDs=${iDs}`);
296
+ if (ids != null) {
297
+ params.push(`ids=${ids}`);
298
298
  }
299
299
  return this.rest.get(`${this.baseUrl}/count/by-action`, ...params);
300
300
  }
301
301
  /**
302
302
  * Find device distribution by risk filtered by query
303
303
  */
304
- countByRisk(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, iDs) {
304
+ countByRisk(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
305
305
  const params = [];
306
306
  if (streamId != null) {
307
307
  params.push(`streamId=${streamId}`);
@@ -336,8 +336,8 @@ export class UsrDevicesService {
336
336
  if (size != null) {
337
337
  params.push(`size=${size}`);
338
338
  }
339
- if (iDs != null) {
340
- params.push(`iDs=${iDs}`);
339
+ if (ids != null) {
340
+ params.push(`ids=${ids}`);
341
341
  }
342
342
  return this.rest.get(`${this.baseUrl}/count/by-risk`, ...params);
343
343
  }
@@ -1,17 +1,17 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { TimeSeriesOfFloat } from '../common';
2
+ import { TimeSeriesOf2D } from '../common';
3
+ import { StringKeyValue } from '../common';
4
+ import { EventTypeCode } from '../enums';
3
5
  import { SeverityTypeCode } from '../enums';
4
6
  import { EventStatusCode } from '../enums';
7
+ import { RuleTypeCode } from '../enums';
5
8
  import { MaliciousIPData } from '../common';
6
9
  import { IntDistribution } from '../entities';
7
- import { TimeSeriesOf2D } from '../common';
8
- import { MaliciousIPCard } from '../common';
9
- import { StringKeyValue } from '../common';
10
10
  import { Event } from '../entities';
11
- import { EventTypeCode } from '../enums';
12
11
  import { EventCategoryCode } from '../enums';
13
- import { RuleTypeCode } from '../enums';
14
12
  import { EventWithDevice } from '../entities';
13
+ import { TimeSeriesOfFloat } from '../common';
14
+ import { MaliciousIPCard } from '../common';
15
15
  export declare class UsrEventsService {
16
16
  private apiUrl;
17
17
  private rest;
@@ -1,6 +1,6 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse } from '../../utils';
2
- import { Insight } from '../entities';
3
2
  import { SeverityTypeCode } from '../enums';
3
+ import { Insight } from '../entities';
4
4
  export declare class UsrInsightsService {
5
5
  private apiUrl;
6
6
  private rest;
@@ -1,6 +1,6 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { ReportInstance } from '../entities';
3
2
  import { ReportSourceCode } from '../enums';
3
+ import { ReportInstance } from '../entities';
4
4
  export declare class UsrReportsInstanceService {
5
5
  private apiUrl;
6
6
  private rest;
@@ -1,11 +1,11 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
+ import { IntDistribution } from '../entities';
3
+ import { Distribution } from '../entities';
4
+ import { Rule } from '../entities';
2
5
  import { SeverityTypeCode } from '../enums';
3
6
  import { RuleActivityStatusCode } from '../enums';
4
7
  import { EventTypeCode } from '../enums';
5
8
  import { TimeSeriesOfFloat } from '../common';
6
- import { IntDistribution } from '../entities';
7
- import { Distribution } from '../entities';
8
- import { Rule } from '../entities';
9
9
  export declare class UsrRulesService {
10
10
  private apiUrl;
11
11
  private rest;
@@ -1,13 +1,13 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { Image } from '../entities';
3
- import { Stream } from '../entities';
4
- import { FeatureCode } from '../enums';
5
- import { LoginParams } from '../common';
6
2
  import { User } from '../entities';
7
- import { AccountDTO } from '../entities';
3
+ import { Image } from '../entities';
8
4
  import { Feature } from '../entities';
5
+ import { Stream } from '../entities';
9
6
  import { UserMemberships } from '../entities';
7
+ import { LoginParams } from '../common';
8
+ import { FeatureCode } from '../enums';
10
9
  import { ConfigParam } from '../entities';
10
+ import { AccountDTO } from '../entities';
11
11
  export declare class UsrUserService {
12
12
  private apiUrl;
13
13
  private rest;
@@ -1,5 +1,5 @@
1
- import { DeviceScoreConfig } from '../common';
2
1
  import { DevicesAtRiskConfig } from '../common';
2
+ import { DeviceScoreConfig } from '../common';
3
3
  export declare class DeviceConfig {
4
4
  devicesAtRiskConfig: DevicesAtRiskConfig;
5
5
  deviceScoreConfig: DeviceScoreConfig;
@@ -1,5 +1,5 @@
1
- import { DeviceTypeCode } from '../enums';
2
1
  import { Location } from '../common';
2
+ import { DeviceTypeCode } from '../enums';
3
3
  export declare class DeviceNode {
4
4
  deviceId: string;
5
5
  score: number;
@@ -1,7 +1,7 @@
1
+ import { RuleBasedSeverityConditionConfig } from '../common';
1
2
  import { Interval } from '../common';
2
3
  import { SeverityConditionConfig } from '../common';
3
4
  import { RuleCountThresholdConfig } from '../common';
4
- import { RuleBasedSeverityConditionConfig } from '../common';
5
5
  export declare class DeviceScoreConfig {
6
6
  deviceScoreAlphaFactor: number;
7
7
  occurrenceThreshold: number;
@@ -1,5 +1,5 @@
1
- import { MapBounds } from '../common';
2
1
  import { DeviceNode } from '../common';
2
+ import { MapBounds } from '../common';
3
3
  export declare class DevicesMap {
4
4
  deviceNodes: DeviceNode[];
5
5
  mapBounds: MapBounds;
@@ -1,5 +1,5 @@
1
- import { SeverityTypeCode } from '../enums';
2
1
  import { RuleCountThresholdConfig } from '../common';
2
+ import { SeverityTypeCode } from '../enums';
3
3
  export declare class RuleBasedSeverityConditionConfig {
4
4
  severityType: SeverityTypeCode;
5
5
  bias: number;
@@ -1,5 +1,5 @@
1
- import { TimeDataPointFloat } from '../common';
2
1
  import { TimeFrame } from '../common';
2
+ import { TimeDataPointFloat } from '../common';
3
3
  export declare class TimeSeriesOfFloat {
4
4
  name: string;
5
5
  range: TimeFrame;
@@ -1,6 +1,6 @@
1
+ import { UserStatusCode } from '../enums';
1
2
  import { UserTypeCode } from '../enums';
2
3
  import { MemberRoleCode } from '../enums';
3
- import { UserStatusCode } from '../enums';
4
4
  export declare class TokenData {
5
5
  accountId: string;
6
6
  subjectId: string;
@@ -1,8 +1,8 @@
1
- import { BaseEntity } from '../base';
2
1
  import { AccountTypeCode } from '../enums';
3
2
  import { AccountStatusCode } from '../enums';
4
3
  import { StringKeyValue } from '../common';
5
4
  import { AccountSettings } from '../entities';
5
+ import { BaseEntity } from '../base';
6
6
  export declare class Account extends BaseEntity {
7
7
  name: string;
8
8
  externalId: string;
@@ -1,9 +1,9 @@
1
- import { BaseEntity } from '../base';
2
- import { AccountTypeCode } from '../enums';
3
1
  import { AccountStatusCode } from '../enums';
4
2
  import { FeatureCode } from '../enums';
5
3
  import { StringKeyValue } from '../common';
6
4
  import { AccountSettings } from '../entities';
5
+ import { BaseEntity } from '../base';
6
+ import { AccountTypeCode } from '../enums';
7
7
  export declare class AccountDTO extends BaseEntity {
8
8
  name: string;
9
9
  externalId: string;
@@ -1,10 +1,10 @@
1
- import { AccountTypeCode } from '../enums';
2
- import { AccountStatusCode } from '../enums';
3
- import { StringKeyValue } from '../common';
4
1
  import { AccountSettings } from '../entities';
5
2
  import { DeviceReport } from '../entities';
6
3
  import { IntDistribution } from '../entities';
7
4
  import { BaseEntity } from '../base';
5
+ import { AccountTypeCode } from '../enums';
6
+ import { AccountStatusCode } from '../enums';
7
+ import { StringKeyValue } from '../common';
8
8
  export declare class AccountReportDTO extends BaseEntity {
9
9
  name: string;
10
10
  externalId: string;
@@ -1,12 +1,12 @@
1
- import { EventTypeCode } from '../enums';
2
- import { StringKeyValue } from '../common';
1
+ import { EventCategoryCode } from '../enums';
3
2
  import { BaseEntity } from '../base';
4
- import { SeverityTypeCode } from '../enums';
3
+ import { GeoData } from '../common';
4
+ import { StringKeyValue } from '../common';
5
5
  import { EventStatusCode } from '../enums';
6
6
  import { RuleTypeCode } from '../enums';
7
- import { GeoData } from '../common';
8
- import { EventCategoryCode } from '../enums';
9
7
  import { TrafficDirectionCode } from '../enums';
8
+ import { EventTypeCode } from '../enums';
9
+ import { SeverityTypeCode } from '../enums';
10
10
  export declare class Alert extends BaseEntity {
11
11
  accountId: string;
12
12
  streamId: string;
@@ -1,13 +1,13 @@
1
1
  import { EventTypeCode } from '../enums';
2
2
  import { SeverityTypeCode } from '../enums';
3
3
  import { RuleTypeCode } from '../enums';
4
+ import { EventStatusCode } from '../enums';
5
+ import { GeoData } from '../common';
4
6
  import { StringKeyValue } from '../common';
7
+ import { EventCategoryCode } from '../enums';
5
8
  import { TrafficDirectionCode } from '../enums';
6
9
  import { Device } from '../entities';
7
10
  import { BaseEntity } from '../base';
8
- import { EventStatusCode } from '../enums';
9
- import { GeoData } from '../common';
10
- import { EventCategoryCode } from '../enums';
11
11
  export declare class AlertWithDevice extends BaseEntity {
12
12
  accountId: string;
13
13
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { ConfigParam } from '../entities';
2
1
  import { BaseEntity } from '../base';
2
+ import { ConfigParam } from '../entities';
3
3
  export declare class ConfigParams extends BaseEntity {
4
4
  params: ConfigParam[];
5
5
  }
@@ -1,6 +1,6 @@
1
+ import { DeviceIdentityCode } from '../enums';
1
2
  import { DeviceTypeCode } from '../enums';
2
3
  import { DeviceCreationCode } from '../enums';
3
- import { DeviceIdentityCode } from '../enums';
4
4
  export declare class DataIngestion {
5
5
  inputURI: string;
6
6
  format: string;
@@ -1,11 +1,11 @@
1
+ import { SIM } from '../entities';
2
+ import { Event } from '../entities';
3
+ import { GeoData } from '../common';
1
4
  import { BaseEntity } from '../base';
2
5
  import { DeviceTypeCode } from '../enums';
3
6
  import { DeviceStatusCode } from '../enums';
4
7
  import { StringKeyValue } from '../common';
5
8
  import { DeviceActionCode } from '../enums';
6
- import { SIM } from '../entities';
7
- import { Event } from '../entities';
8
- import { GeoData } from '../common';
9
9
  export declare class DeviceWithEvents extends BaseEntity {
10
10
  accountId: string;
11
11
  streamId: string;
@@ -1,14 +1,14 @@
1
- import { SeverityTypeCode } from '../enums';
1
+ import { BaseEntity } from '../base';
2
+ import { Indicator } from '../common';
2
3
  import { RuleTypeCode } from '../enums';
3
4
  import { GeoData } from '../common';
4
- import { EventOccurrence } from '../entities';
5
- import { EventTypeCode } from '../enums';
6
- import { Indicator } from '../common';
7
- import { StringKeyValue } from '../common';
8
5
  import { EventCategoryCode } from '../enums';
9
6
  import { TrafficDirectionCode } from '../enums';
10
- import { BaseEntity } from '../base';
7
+ import { EventTypeCode } from '../enums';
8
+ import { SeverityTypeCode } from '../enums';
11
9
  import { EventStatusCode } from '../enums';
10
+ import { StringKeyValue } from '../common';
11
+ import { EventOccurrence } from '../entities';
12
12
  export declare class Event extends BaseEntity {
13
13
  accountId: string;
14
14
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { Indicator } from '../common';
2
1
  import { TrafficDirectionCode } from '../enums';
2
+ import { Indicator } from '../common';
3
3
  export declare class EventOccurrence {
4
4
  timestamp: number;
5
5
  source: string;
@@ -1,15 +1,15 @@
1
+ import { SeverityTypeCode } from '../enums';
1
2
  import { RuleTypeCode } from '../enums';
2
3
  import { GeoData } from '../common';
3
4
  import { StringKeyValue } from '../common';
4
- import { TrafficDirectionCode } from '../enums';
5
+ import { EventOccurrence } from '../entities';
5
6
  import { Device } from '../entities';
6
7
  import { BaseEntity } from '../base';
7
- import { Indicator } from '../common';
8
- import { SeverityTypeCode } from '../enums';
8
+ import { EventTypeCode } from '../enums';
9
9
  import { EventStatusCode } from '../enums';
10
+ import { Indicator } from '../common';
10
11
  import { EventCategoryCode } from '../enums';
11
- import { EventOccurrence } from '../entities';
12
- import { EventTypeCode } from '../enums';
12
+ import { TrafficDirectionCode } from '../enums';
13
13
  export declare class EventWithDevice extends BaseEntity {
14
14
  accountId: string;
15
15
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { FeatureCode } from '../enums';
2
1
  import { BaseEntity } from '../base';
2
+ import { FeatureCode } from '../enums';
3
3
  export declare class Feature extends BaseEntity {
4
4
  code: FeatureCode;
5
5
  name: string;
@@ -1,10 +1,10 @@
1
+ import { RuleTypeCode } from '../enums';
2
+ import { DataSourceCode } from '../enums';
1
3
  import { ConditionDescription } from '../common';
2
4
  import { DeviceTypeCode } from '../enums';
3
5
  import { EventTypeCode } from '../enums';
4
6
  import { SeverityTypeCode } from '../enums';
5
7
  import { BaseEntity } from '../base';
6
- import { RuleTypeCode } from '../enums';
7
- import { DataSourceCode } from '../enums';
8
8
  export declare class IdsRule extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,10 +1,10 @@
1
+ import { RegulatoryViolation } from '../entities';
2
+ import { MitreAttackCategory } from '../entities';
1
3
  import { BaseEntity } from '../base';
2
4
  import { InsightTypeCode } from '../enums';
3
5
  import { InsightStatusCode } from '../enums';
4
6
  import { SeverityTypeCode } from '../enums';
5
7
  import { DirectionContextCode } from '../enums';
6
- import { RegulatoryViolation } from '../entities';
7
- import { MitreAttackCategory } from '../entities';
8
8
  export declare class Insight extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,6 +1,6 @@
1
+ import { BaseEntity } from '../base';
1
2
  import { InsightTypeCode } from '../enums';
2
3
  import { DirectionContextCode } from '../enums';
3
- import { BaseEntity } from '../base';
4
4
  export declare class InsightQuery extends BaseEntity {
5
5
  type: InsightTypeCode;
6
6
  description: string;
@@ -1,3 +1,4 @@
1
+ import { EventTypeCode } from '../enums';
1
2
  import { SeverityTypeCode } from '../enums';
2
3
  import { DeviceActionCode } from '../enums';
3
4
  import { BaseEntity } from '../base';
@@ -5,7 +6,6 @@ import { IntegrationTypeCode } from '../enums';
5
6
  import { IntegrationTriggerCode } from '../enums';
6
7
  import { HttpMethodCode } from '../enums';
7
8
  import { StringKeyValue } from '../common';
8
- import { EventTypeCode } from '../enums';
9
9
  export declare class Integration extends BaseEntity {
10
10
  accountId: string;
11
11
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { BaseEntity } from '../base';
2
1
  import { StringKeyValue } from '../common';
2
+ import { BaseEntity } from '../base';
3
3
  export declare class Radius extends BaseEntity {
4
4
  source: string;
5
5
  accountId: string;
@@ -1,6 +1,6 @@
1
+ import { BaseEntity } from '../base';
1
2
  import { ReportTypeCode } from '../enums';
2
3
  import { TimeFrame } from '../common';
3
- import { BaseEntity } from '../base';
4
4
  export declare class Report extends BaseEntity {
5
5
  accountId: string;
6
6
  userId: string;
@@ -1,7 +1,7 @@
1
+ import { IntDistribution } from '../entities';
1
2
  import { DeviceReport } from '../entities';
2
3
  import { ReportTypeCode } from '../enums';
3
4
  import { BaseEntity } from '../base';
4
- import { IntDistribution } from '../entities';
5
5
  export declare class ReportInstance extends BaseEntity {
6
6
  accountId: string;
7
7
  from: number;
@@ -1,10 +1,10 @@
1
+ import { DeviceTypeCode } from '../enums';
1
2
  import { EventTypeCode } from '../enums';
2
3
  import { SeverityTypeCode } from '../enums';
3
4
  import { BaseEntity } from '../base';
4
5
  import { RuleTypeCode } from '../enums';
5
6
  import { DataSourceCode } from '../enums';
6
7
  import { ConditionDescription } from '../common';
7
- import { DeviceTypeCode } from '../enums';
8
8
  export declare class Rule extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,7 +1,7 @@
1
- import { EventTypeCode } from '../enums';
2
- import { SeverityTypeCode } from '../enums';
3
1
  import { BaseEntity } from '../base';
4
2
  import { DataSourceCode } from '../enums';
3
+ import { EventTypeCode } from '../enums';
4
+ import { SeverityTypeCode } from '../enums';
5
5
  export declare class RuleTemplate extends BaseEntity {
6
6
  name: string;
7
7
  description: string;
@@ -1,6 +1,6 @@
1
- import { BaseEntity } from '../base';
2
1
  import { StringKeyValue } from '../common';
3
2
  import { StreamConfig } from '../entities';
3
+ import { BaseEntity } from '../base';
4
4
  export declare class Stream extends BaseEntity {
5
5
  accountId: string;
6
6
  name: string;
@@ -1,8 +1,8 @@
1
+ import { ShieldexConfig } from '../common';
1
2
  import { EventSeverityConfig } from '../common';
2
3
  import { DeviceConfig } from '../common';
3
4
  import { BaseEntity } from '../base';
4
5
  import { Thresholds } from '../common';
5
- import { ShieldexConfig } from '../common';
6
6
  export declare class StreamAnalyticsConfig extends BaseEntity {
7
7
  accountId: string;
8
8
  thresholds: Thresholds;
@@ -1,11 +1,11 @@
1
- import { DataIngestion } from '../entities';
2
- import { UsageTransform } from '../common';
3
1
  import { ShieldexConfig } from '../common';
4
- import { EventSeverityConfig } from '../common';
5
2
  import { DeviceActionCode } from '../enums';
3
+ import { EventSeverityConfig } from '../common';
6
4
  import { DeviceConfig } from '../common';
7
5
  import { IdsConfig } from '../entities';
6
+ import { DataIngestion } from '../entities';
8
7
  import { SessionTransform } from '../common';
8
+ import { UsageTransform } from '../common';
9
9
  import { Thresholds } from '../common';
10
10
  export declare class StreamConfig {
11
11
  ingest: DataIngestion;