@shieldiot/pulse-lib 1.0.379 → 1.0.381

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 (170) hide show
  1. package/dist/cjs/lib/common/DeviceConfig.d.ts +1 -1
  2. package/dist/cjs/lib/common/DevicesMap.d.ts +1 -1
  3. package/dist/cjs/lib/common/SeriesData.d.ts +1 -1
  4. package/dist/cjs/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  5. package/dist/cjs/lib/entities/Account.d.ts +1 -1
  6. package/dist/cjs/lib/entities/Account.js.map +1 -1
  7. package/dist/cjs/lib/entities/AccountDTO.d.ts +1 -1
  8. package/dist/cjs/lib/entities/AccountDTO.js.map +1 -1
  9. package/dist/cjs/lib/entities/AccountReportDTO.d.ts +3 -3
  10. package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
  11. package/dist/cjs/lib/entities/Action.d.ts +1 -1
  12. package/dist/cjs/lib/entities/Action.js.map +1 -1
  13. package/dist/cjs/lib/entities/Alert.d.ts +4 -4
  14. package/dist/cjs/lib/entities/AlertWithDevice.d.ts +5 -5
  15. package/dist/cjs/lib/entities/AlertWithDevice.js.map +1 -1
  16. package/dist/cjs/lib/entities/Device.d.ts +1 -1
  17. package/dist/cjs/lib/entities/Device.js.map +1 -1
  18. package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +2 -2
  19. package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
  20. package/dist/cjs/lib/entities/Event.d.ts +3 -3
  21. package/dist/cjs/lib/entities/Event.js.map +1 -1
  22. package/dist/cjs/lib/entities/EventWithDevice.d.ts +6 -6
  23. package/dist/cjs/lib/entities/EventWithDevice.js.map +1 -1
  24. package/dist/cjs/lib/entities/FeaturesGroup.d.ts +1 -1
  25. package/dist/cjs/lib/entities/FeaturesGroup.js.map +1 -1
  26. package/dist/cjs/lib/entities/IdsRule.d.ts +2 -2
  27. package/dist/cjs/lib/entities/IdsRule.js.map +1 -1
  28. package/dist/cjs/lib/entities/Insight.d.ts +1 -1
  29. package/dist/cjs/lib/entities/Insight.js.map +1 -1
  30. package/dist/cjs/lib/entities/Integration.d.ts +3 -3
  31. package/dist/cjs/lib/entities/Integration.js.map +1 -1
  32. package/dist/cjs/lib/entities/Radius.d.ts +1 -1
  33. package/dist/cjs/lib/entities/Radius.js.map +1 -1
  34. package/dist/cjs/lib/entities/Report.d.ts +1 -1
  35. package/dist/cjs/lib/entities/Report.js.map +1 -1
  36. package/dist/cjs/lib/entities/ReportInstance.d.ts +1 -1
  37. package/dist/cjs/lib/entities/ReportInstance.js.map +1 -1
  38. package/dist/cjs/lib/entities/Rule.d.ts +1 -1
  39. package/dist/cjs/lib/entities/Rule.js.map +1 -1
  40. package/dist/cjs/lib/entities/RuleTemplate.d.ts +1 -1
  41. package/dist/cjs/lib/entities/RuleTemplate.js.map +1 -1
  42. package/dist/cjs/lib/entities/Stream.d.ts +1 -1
  43. package/dist/cjs/lib/entities/Stream.js.map +1 -1
  44. package/dist/cjs/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  45. package/dist/cjs/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  46. package/dist/cjs/lib/entities/StreamConfig.d.ts +5 -5
  47. package/dist/cjs/lib/entities/User.d.ts +1 -1
  48. package/dist/cjs/lib/entities/User.js.map +1 -1
  49. package/dist/cjs/lib/entities/UserMembership.d.ts +1 -1
  50. package/dist/cjs/lib/entities/UserMembership.js.map +1 -1
  51. package/dist/cjs/lib/entities/UserMemberships.d.ts +1 -1
  52. package/dist/cjs/lib/entities/UserMemberships.js.map +1 -1
  53. package/dist/cjs/lib/services/sysAccountsService.d.ts +1 -1
  54. package/dist/cjs/lib/services/sysIdsRulesService.d.ts +2 -2
  55. package/dist/cjs/lib/services/usrAlertsService.d.ts +15 -15
  56. package/dist/cjs/lib/services/usrAlertsService.js +21 -21
  57. package/dist/cjs/lib/services/usrDevicesService.d.ts +16 -16
  58. package/dist/cjs/lib/services/usrDevicesService.js +18 -18
  59. package/dist/cjs/lib/services/usrEventsService.d.ts +8 -8
  60. package/dist/cjs/lib/services/usrInsightsService.d.ts +5 -0
  61. package/dist/cjs/lib/services/usrInsightsService.js +6 -0
  62. package/dist/cjs/lib/services/usrInsightsService.js.map +1 -1
  63. package/dist/cjs/lib/services/usrReportsService.d.ts +2 -2
  64. package/dist/cjs/lib/services/usrRulesService.d.ts +3 -3
  65. package/dist/cjs/lib/services/usrUserService.d.ts +4 -4
  66. package/dist/esm/lib/common/DeviceConfig.d.ts +1 -1
  67. package/dist/esm/lib/common/DevicesMap.d.ts +1 -1
  68. package/dist/esm/lib/common/SeriesData.d.ts +1 -1
  69. package/dist/esm/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  70. package/dist/esm/lib/entities/Account.d.ts +1 -1
  71. package/dist/esm/lib/entities/Account.js.map +1 -1
  72. package/dist/esm/lib/entities/AccountDTO.d.ts +1 -1
  73. package/dist/esm/lib/entities/AccountDTO.js.map +1 -1
  74. package/dist/esm/lib/entities/AccountReportDTO.d.ts +3 -3
  75. package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
  76. package/dist/esm/lib/entities/Action.d.ts +1 -1
  77. package/dist/esm/lib/entities/Action.js.map +1 -1
  78. package/dist/esm/lib/entities/Alert.d.ts +4 -4
  79. package/dist/esm/lib/entities/AlertWithDevice.d.ts +5 -5
  80. package/dist/esm/lib/entities/AlertWithDevice.js.map +1 -1
  81. package/dist/esm/lib/entities/Device.d.ts +1 -1
  82. package/dist/esm/lib/entities/Device.js.map +1 -1
  83. package/dist/esm/lib/entities/DeviceWithEvents.d.ts +2 -2
  84. package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
  85. package/dist/esm/lib/entities/Event.d.ts +3 -3
  86. package/dist/esm/lib/entities/Event.js.map +1 -1
  87. package/dist/esm/lib/entities/EventWithDevice.d.ts +6 -6
  88. package/dist/esm/lib/entities/EventWithDevice.js.map +1 -1
  89. package/dist/esm/lib/entities/FeaturesGroup.d.ts +1 -1
  90. package/dist/esm/lib/entities/FeaturesGroup.js.map +1 -1
  91. package/dist/esm/lib/entities/IdsRule.d.ts +2 -2
  92. package/dist/esm/lib/entities/IdsRule.js.map +1 -1
  93. package/dist/esm/lib/entities/Insight.d.ts +1 -1
  94. package/dist/esm/lib/entities/Insight.js.map +1 -1
  95. package/dist/esm/lib/entities/Integration.d.ts +3 -3
  96. package/dist/esm/lib/entities/Integration.js.map +1 -1
  97. package/dist/esm/lib/entities/Radius.d.ts +1 -1
  98. package/dist/esm/lib/entities/Radius.js.map +1 -1
  99. package/dist/esm/lib/entities/Report.d.ts +1 -1
  100. package/dist/esm/lib/entities/Report.js.map +1 -1
  101. package/dist/esm/lib/entities/ReportInstance.d.ts +1 -1
  102. package/dist/esm/lib/entities/ReportInstance.js.map +1 -1
  103. package/dist/esm/lib/entities/Rule.d.ts +1 -1
  104. package/dist/esm/lib/entities/Rule.js.map +1 -1
  105. package/dist/esm/lib/entities/RuleTemplate.d.ts +1 -1
  106. package/dist/esm/lib/entities/RuleTemplate.js.map +1 -1
  107. package/dist/esm/lib/entities/Stream.d.ts +1 -1
  108. package/dist/esm/lib/entities/Stream.js.map +1 -1
  109. package/dist/esm/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  110. package/dist/esm/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  111. package/dist/esm/lib/entities/StreamConfig.d.ts +5 -5
  112. package/dist/esm/lib/entities/User.d.ts +1 -1
  113. package/dist/esm/lib/entities/User.js.map +1 -1
  114. package/dist/esm/lib/entities/UserMembership.d.ts +1 -1
  115. package/dist/esm/lib/entities/UserMembership.js.map +1 -1
  116. package/dist/esm/lib/entities/UserMemberships.d.ts +1 -1
  117. package/dist/esm/lib/entities/UserMemberships.js.map +1 -1
  118. package/dist/esm/lib/services/sysAccountsService.d.ts +1 -1
  119. package/dist/esm/lib/services/sysIdsRulesService.d.ts +2 -2
  120. package/dist/esm/lib/services/usrAlertsService.d.ts +15 -15
  121. package/dist/esm/lib/services/usrAlertsService.js +21 -21
  122. package/dist/esm/lib/services/usrDevicesService.d.ts +16 -16
  123. package/dist/esm/lib/services/usrDevicesService.js +18 -18
  124. package/dist/esm/lib/services/usrEventsService.d.ts +8 -8
  125. package/dist/esm/lib/services/usrInsightsService.d.ts +5 -0
  126. package/dist/esm/lib/services/usrInsightsService.js +6 -0
  127. package/dist/esm/lib/services/usrInsightsService.js.map +1 -1
  128. package/dist/esm/lib/services/usrReportsService.d.ts +2 -2
  129. package/dist/esm/lib/services/usrRulesService.d.ts +3 -3
  130. package/dist/esm/lib/services/usrUserService.d.ts +4 -4
  131. package/dist/types/lib/common/DeviceConfig.d.ts +1 -1
  132. package/dist/types/lib/common/DevicesMap.d.ts +1 -1
  133. package/dist/types/lib/common/SeriesData.d.ts +1 -1
  134. package/dist/types/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  135. package/dist/types/lib/entities/Account.d.ts +1 -1
  136. package/dist/types/lib/entities/AccountDTO.d.ts +1 -1
  137. package/dist/types/lib/entities/AccountReportDTO.d.ts +3 -3
  138. package/dist/types/lib/entities/Action.d.ts +1 -1
  139. package/dist/types/lib/entities/Alert.d.ts +4 -4
  140. package/dist/types/lib/entities/AlertWithDevice.d.ts +5 -5
  141. package/dist/types/lib/entities/Device.d.ts +1 -1
  142. package/dist/types/lib/entities/DeviceWithEvents.d.ts +2 -2
  143. package/dist/types/lib/entities/Event.d.ts +3 -3
  144. package/dist/types/lib/entities/EventWithDevice.d.ts +6 -6
  145. package/dist/types/lib/entities/FeaturesGroup.d.ts +1 -1
  146. package/dist/types/lib/entities/IdsRule.d.ts +2 -2
  147. package/dist/types/lib/entities/Insight.d.ts +1 -1
  148. package/dist/types/lib/entities/Integration.d.ts +3 -3
  149. package/dist/types/lib/entities/Radius.d.ts +1 -1
  150. package/dist/types/lib/entities/Report.d.ts +1 -1
  151. package/dist/types/lib/entities/ReportInstance.d.ts +1 -1
  152. package/dist/types/lib/entities/Rule.d.ts +1 -1
  153. package/dist/types/lib/entities/RuleTemplate.d.ts +1 -1
  154. package/dist/types/lib/entities/Stream.d.ts +1 -1
  155. package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  156. package/dist/types/lib/entities/StreamConfig.d.ts +5 -5
  157. package/dist/types/lib/entities/User.d.ts +1 -1
  158. package/dist/types/lib/entities/UserMembership.d.ts +1 -1
  159. package/dist/types/lib/entities/UserMemberships.d.ts +1 -1
  160. package/dist/types/lib/services/sysAccountsService.d.ts +1 -1
  161. package/dist/types/lib/services/sysIdsRulesService.d.ts +2 -2
  162. package/dist/types/lib/services/usrAlertsService.d.ts +15 -15
  163. package/dist/types/lib/services/usrDevicesService.d.ts +16 -16
  164. package/dist/types/lib/services/usrEventsService.d.ts +8 -8
  165. package/dist/types/lib/services/usrInsightsService.d.ts +5 -0
  166. package/dist/types/lib/services/usrReportsService.d.ts +2 -2
  167. package/dist/types/lib/services/usrRulesService.d.ts +3 -3
  168. package/dist/types/lib/services/usrUserService.d.ts +4 -4
  169. package/dist/umd/index.js +1 -1
  170. package/package.json +1 -1
@@ -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';
3
- import { SeverityTypeCode } from '../enums';
4
- import { EventStatusCode } from '../enums';
5
- import { MaliciousIPData } from '../common';
6
- import { IntDistribution } from '../entities';
7
- import { TimeSeriesOf2D } from '../common';
8
2
  import { MaliciousIPCard } from '../common';
9
- import { StringKeyValue } from '../common';
10
- import { Event } from '../entities';
11
3
  import { EventTypeCode } from '../enums';
12
4
  import { EventCategoryCode } from '../enums';
5
+ import { EventStatusCode } from '../enums';
13
6
  import { RuleTypeCode } from '../enums';
14
7
  import { EventWithDevice } from '../entities';
8
+ import { IntDistribution } from '../entities';
9
+ import { TimeSeriesOf2D } from '../common';
10
+ import { StringKeyValue } from '../common';
11
+ import { Event } from '../entities';
12
+ import { SeverityTypeCode } from '../enums';
13
+ import { MaliciousIPData } from '../common';
14
+ import { TimeSeriesOfFloat } from '../common';
15
15
  export declare class UsrEventsService {
16
16
  private apiUrl;
17
17
  private rest;
@@ -1,6 +1,7 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse } from '../../utils';
2
2
  import { Insight } from '../entities';
3
3
  import { SeverityTypeCode } from '../enums';
4
+ import { IntDistribution } from '../entities';
4
5
  export declare class UsrInsightsService {
5
6
  private apiUrl;
6
7
  private rest;
@@ -18,4 +19,8 @@ export declare class UsrInsightsService {
18
19
  * Get single insight by id
19
20
  */
20
21
  get(id?: string): import("rxjs").Observable<EntityResponse<Insight>>;
22
+ /**
23
+ * Get alerts distribution by severity filtered by insight id
24
+ */
25
+ countAffectedAlertsBySeverity(id?: string): import("rxjs").Observable<EntityResponse<IntDistribution>>;
21
26
  }
@@ -53,5 +53,11 @@ export class UsrInsightsService {
53
53
  get(id) {
54
54
  return this.rest.get(`${this.baseUrl}/${id}`);
55
55
  }
56
+ /**
57
+ * Get alerts distribution by severity filtered by insight id
58
+ */
59
+ countAffectedAlertsBySeverity(id) {
60
+ return this.rest.get(`${this.baseUrl}/count-alerts/by-severity/${id}`);
61
+ }
56
62
  }
57
63
  //# sourceMappingURL=usrInsightsService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usrInsightsService.js","sourceRoot":"","sources":["../../../../src/lib/services/usrInsightsService.ts"],"names":[],"mappings":"AAOA,yDAAyD;AACzD,0EAA0E;AAC1E,0EAA0E;AAC1E,MAAM,OAAO,kBAAkB;IAK7B,oBAAoB;IACpB,YAAoB,MAAc,EAAU,IAAc;QAAtC,WAAM,GAAN,MAAM,CAAQ;QAAU,SAAI,GAAJ,IAAI,CAAU;QAJ1D,iBAAiB;QACT,YAAO,GAAG,WAAW,CAAC;QAI5B,IAAI,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ntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { Report } from '../entities';
3
- import { ReportSourceCode } from '../enums';
4
2
  import { TimeSeries } from '../common';
5
3
  import { GraphSeries } from '../common';
4
+ import { Report } from '../entities';
5
+ import { ReportSourceCode } from '../enums';
6
6
  export declare class UsrReportsService {
7
7
  private apiUrl;
8
8
  private rest;
@@ -1,11 +1,11 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { SeverityTypeCode } from '../enums';
3
- import { RuleActivityStatusCode } from '../enums';
4
- import { EventTypeCode } from '../enums';
5
2
  import { TimeSeriesOfFloat } from '../common';
6
3
  import { IntDistribution } from '../entities';
7
4
  import { Distribution } from '../entities';
8
5
  import { Rule } from '../entities';
6
+ import { SeverityTypeCode } from '../enums';
7
+ import { RuleActivityStatusCode } from '../enums';
8
+ import { EventTypeCode } from '../enums';
9
9
  export declare class UsrRulesService {
10
10
  private apiUrl;
11
11
  private rest;
@@ -1,12 +1,12 @@
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
2
  import { LoginParams } from '../common';
6
3
  import { User } from '../entities';
7
- import { AccountDTO } from '../entities';
8
4
  import { Feature } from '../entities';
9
5
  import { UserMemberships } from '../entities';
6
+ import { AccountDTO } from '../entities';
7
+ import { Image } from '../entities';
8
+ import { Stream } from '../entities';
9
+ import { FeatureCode } from '../enums';
10
10
  import { ConfigParam } from '../entities';
11
11
  export declare class UsrUserService {
12
12
  private apiUrl;
@@ -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 { 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 { StringKeyIntValue } from '../common';
2
1
  import { Interval } from '../common';
2
+ import { StringKeyIntValue } from '../common';
3
3
  export declare class SeriesData {
4
4
  interval: Interval;
5
5
  values: StringKeyIntValue[];
@@ -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,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 { AccountSettings } from '../entities';
1
2
  import { BaseEntity } from '../base';
2
3
  import { AccountTypeCode } from '../enums';
3
4
  import { AccountStatusCode } from '../enums';
4
5
  import { FeatureCode } from '../enums';
5
6
  import { StringKeyValue } from '../common';
6
- import { AccountSettings } from '../entities';
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,5 +1,5 @@
1
- import { DeviceActionCode } from '../enums';
2
1
  import { BaseEntity } from '../base';
2
+ import { DeviceActionCode } from '../enums';
3
3
  export declare class Action extends BaseEntity {
4
4
  accountId: string;
5
5
  streamId: string;
@@ -1,10 +1,10 @@
1
- import { EventTypeCode } from '../enums';
2
- import { StringKeyValue } from '../common';
3
- import { BaseEntity } from '../base';
4
1
  import { SeverityTypeCode } from '../enums';
5
- import { EventStatusCode } from '../enums';
6
2
  import { RuleTypeCode } from '../enums';
3
+ import { BaseEntity } from '../base';
4
+ import { EventTypeCode } from '../enums';
5
+ import { EventStatusCode } from '../enums';
7
6
  import { GeoData } from '../common';
7
+ import { StringKeyValue } from '../common';
8
8
  import { EventCategoryCode } from '../enums';
9
9
  import { TrafficDirectionCode } from '../enums';
10
10
  export declare class Alert extends BaseEntity {
@@ -1,13 +1,13 @@
1
- import { EventTypeCode } from '../enums';
2
1
  import { SeverityTypeCode } from '../enums';
3
- import { RuleTypeCode } from '../enums';
2
+ import { GeoData } from '../common';
4
3
  import { StringKeyValue } from '../common';
5
- import { TrafficDirectionCode } from '../enums';
4
+ import { EventCategoryCode } from '../enums';
6
5
  import { Device } from '../entities';
6
+ import { EventTypeCode } from '../enums';
7
+ import { RuleTypeCode } from '../enums';
8
+ import { TrafficDirectionCode } from '../enums';
7
9
  import { BaseEntity } from '../base';
8
10
  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,10 +1,10 @@
1
- import { DeviceTypeCode } from '../enums';
2
1
  import { DeviceStatusCode } from '../enums';
3
2
  import { StringKeyValue } from '../common';
4
3
  import { DeviceActionCode } from '../enums';
5
4
  import { SIM } from '../entities';
6
5
  import { GeoData } from '../common';
7
6
  import { BaseEntity } from '../base';
7
+ import { DeviceTypeCode } from '../enums';
8
8
  export declare class Device extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,11 +1,11 @@
1
- import { BaseEntity } from '../base';
2
- import { DeviceTypeCode } from '../enums';
3
1
  import { DeviceStatusCode } from '../enums';
4
2
  import { StringKeyValue } from '../common';
5
3
  import { DeviceActionCode } from '../enums';
6
4
  import { SIM } from '../entities';
7
5
  import { Event } from '../entities';
8
6
  import { GeoData } from '../common';
7
+ import { BaseEntity } from '../base';
8
+ import { DeviceTypeCode } from '../enums';
9
9
  export declare class DeviceWithEvents extends BaseEntity {
10
10
  accountId: string;
11
11
  streamId: string;
@@ -1,14 +1,14 @@
1
+ import { EventTypeCode } from '../enums';
1
2
  import { SeverityTypeCode } from '../enums';
3
+ import { Indicator } from '../common';
2
4
  import { RuleTypeCode } from '../enums';
3
5
  import { GeoData } from '../common';
4
6
  import { EventOccurrence } from '../entities';
5
- import { EventTypeCode } from '../enums';
6
- import { Indicator } from '../common';
7
+ import { EventStatusCode } from '../enums';
7
8
  import { StringKeyValue } from '../common';
8
9
  import { EventCategoryCode } from '../enums';
9
10
  import { TrafficDirectionCode } from '../enums';
10
11
  import { BaseEntity } from '../base';
11
- import { EventStatusCode } from '../enums';
12
12
  export declare class Event extends BaseEntity {
13
13
  accountId: string;
14
14
  streamId: string;
@@ -1,15 +1,15 @@
1
+ import { StringKeyValue } from '../common';
2
+ import { EventCategoryCode } from '../enums';
3
+ import { EventOccurrence } from '../entities';
4
+ import { BaseEntity } from '../base';
5
+ import { EventTypeCode } from '../enums';
6
+ import { Indicator } from '../common';
1
7
  import { RuleTypeCode } from '../enums';
2
8
  import { GeoData } from '../common';
3
- import { StringKeyValue } from '../common';
4
9
  import { TrafficDirectionCode } from '../enums';
5
10
  import { Device } from '../entities';
6
- import { BaseEntity } from '../base';
7
- import { Indicator } from '../common';
8
11
  import { SeverityTypeCode } from '../enums';
9
12
  import { EventStatusCode } from '../enums';
10
- import { EventCategoryCode } from '../enums';
11
- import { EventOccurrence } from '../entities';
12
- import { EventTypeCode } 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 FeaturesGroup extends BaseEntity {
4
4
  name: string;
5
5
  features: FeatureCode[];
@@ -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 { BaseEntity } from '../base';
2
1
  import { InsightTypeCode } from '../enums';
3
2
  import { InsightStatusCode } from '../enums';
4
3
  import { SeverityTypeCode } from '../enums';
5
4
  import { DirectionContextCode } from '../enums';
6
5
  import { RegulatoryViolation } from '../entities';
7
6
  import { MitreAttackCategory } from '../entities';
7
+ import { BaseEntity } from '../base';
8
8
  export declare class Insight extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,11 +1,11 @@
1
- import { SeverityTypeCode } from '../enums';
2
- import { DeviceActionCode } from '../enums';
3
- import { BaseEntity } from '../base';
4
1
  import { IntegrationTypeCode } from '../enums';
5
2
  import { IntegrationTriggerCode } from '../enums';
6
3
  import { HttpMethodCode } from '../enums';
7
4
  import { StringKeyValue } from '../common';
8
5
  import { EventTypeCode } from '../enums';
6
+ import { SeverityTypeCode } from '../enums';
7
+ import { DeviceActionCode } from '../enums';
8
+ import { BaseEntity } from '../base';
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 { ReportTypeCode } from '../enums';
2
1
  import { TimeFrame } from '../common';
3
2
  import { BaseEntity } from '../base';
3
+ import { ReportTypeCode } from '../enums';
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 { EventTypeCode } from '../enums';
2
1
  import { SeverityTypeCode } from '../enums';
3
2
  import { BaseEntity } from '../base';
4
3
  import { RuleTypeCode } from '../enums';
5
4
  import { DataSourceCode } from '../enums';
6
5
  import { ConditionDescription } from '../common';
7
6
  import { DeviceTypeCode } from '../enums';
7
+ import { EventTypeCode } from '../enums';
8
8
  export declare class Rule extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,7 +1,7 @@
1
+ import { DataSourceCode } from '../enums';
1
2
  import { EventTypeCode } from '../enums';
2
3
  import { SeverityTypeCode } from '../enums';
3
4
  import { BaseEntity } from '../base';
4
- import { DataSourceCode } 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 { Thresholds } from '../common';
2
+ import { ShieldexConfig } from '../common';
1
3
  import { EventSeverityConfig } from '../common';
2
4
  import { DeviceConfig } from '../common';
3
5
  import { BaseEntity } from '../base';
4
- 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';
1
+ import { SessionTransform } from '../common';
2
+ import { DeviceConfig } from '../common';
3
+ import { IdsConfig } from '../entities';
3
4
  import { ShieldexConfig } from '../common';
4
5
  import { EventSeverityConfig } from '../common';
5
6
  import { DeviceActionCode } from '../enums';
6
- import { DeviceConfig } from '../common';
7
- import { IdsConfig } from '../entities';
8
- import { SessionTransform } from '../common';
7
+ import { DataIngestion } from '../entities';
8
+ import { UsageTransform } from '../common';
9
9
  import { Thresholds } from '../common';
10
10
  export declare class StreamConfig {
11
11
  ingest: DataIngestion;
@@ -1,7 +1,7 @@
1
- import { UserTypeCode } from '../enums';
2
1
  import { UserStatusCode } from '../enums';
3
2
  import { StringKeyValue } from '../common';
4
3
  import { BaseEntity } from '../base';
4
+ import { UserTypeCode } from '../enums';
5
5
  export declare class User extends BaseEntity {
6
6
  name: string;
7
7
  externalId: string;
@@ -1,7 +1,7 @@
1
+ import { UserTypeCode } from '../enums';
1
2
  import { UserStatusCode } from '../enums';
2
3
  import { AccountRole } from '../common';
3
4
  import { BaseEntity } from '../base';
4
- import { UserTypeCode } from '../enums';
5
5
  export declare class UserMembership extends BaseEntity {
6
6
  name: string;
7
7
  email: string;
@@ -1,7 +1,7 @@
1
+ import { BaseEntity } from '../base';
1
2
  import { UserTypeCode } from '../enums';
2
3
  import { UserStatusCode } from '../enums';
3
4
  import { AccountRole } from '../common';
4
- import { BaseEntity } from '../base';
5
5
  export declare class UserMemberships extends BaseEntity {
6
6
  name: string;
7
7
  email: string;
@@ -1,10 +1,10 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
+ import { AccountSettings } from '../entities';
2
3
  import { AccountTypeCode } from '../enums';
3
4
  import { AccountStatusCode } from '../enums';
4
5
  import { Image } from '../entities';
5
6
  import { AccountReportDTO } from '../entities';
6
7
  import { Account } from '../entities';
7
- import { AccountSettings } from '../entities';
8
8
  export declare class SysAccountsService {
9
9
  private apiUrl;
10
10
  private rest;
@@ -1,9 +1,9 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
+ import { RuleActivityStatusCode } from '../enums';
3
+ import { EventTypeCode } from '../enums';
2
4
  import { Rule } from '../entities';
3
5
  import { IdsRule } from '../entities';
4
6
  import { SeverityTypeCode } from '../enums';
5
- import { RuleActivityStatusCode } from '../enums';
6
- import { EventTypeCode } from '../enums';
7
7
  export declare class SysIdsRulesService {
8
8
  private apiUrl;
9
9
  private rest;