@shieldiot/pulse-lib 1.0.360 → 1.0.361

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 (209) 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/TimeSeries.d.ts +1 -1
  4. package/dist/cjs/lib/common/TimeSeriesOfDataConsumption.d.ts +1 -1
  5. package/dist/cjs/lib/entities/AccountReportDTO.d.ts +3 -3
  6. package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
  7. package/dist/cjs/lib/entities/Alert.d.ts +4 -4
  8. package/dist/cjs/lib/entities/Alert.js.map +1 -1
  9. package/dist/cjs/lib/entities/AlertWithDevice.d.ts +5 -5
  10. package/dist/cjs/lib/entities/AlertWithDevice.js.map +1 -1
  11. package/dist/cjs/lib/entities/ApiKey.d.ts +1 -1
  12. package/dist/cjs/lib/entities/ApiKey.js.map +1 -1
  13. package/dist/cjs/lib/entities/Device.d.ts +1 -1
  14. package/dist/cjs/lib/entities/Device.js.map +1 -1
  15. package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +3 -3
  16. package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
  17. package/dist/cjs/lib/entities/Event.d.ts +8 -8
  18. package/dist/cjs/lib/entities/Event.js.map +1 -1
  19. package/dist/cjs/lib/entities/EventWithDevice.d.ts +7 -7
  20. package/dist/cjs/lib/entities/Feature.d.ts +1 -1
  21. package/dist/cjs/lib/entities/Feature.js.map +1 -1
  22. package/dist/cjs/lib/entities/IdsConfig.d.ts +8 -0
  23. package/dist/cjs/lib/entities/IdsConfig.js +25 -0
  24. package/dist/cjs/lib/entities/IdsConfig.js.map +1 -0
  25. package/dist/cjs/lib/entities/IdsRule.d.ts +28 -0
  26. package/dist/cjs/lib/entities/IdsRule.js +9 -0
  27. package/dist/cjs/lib/entities/IdsRule.js.map +1 -0
  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/InsightSpec.d.ts +1 -1
  31. package/dist/cjs/lib/entities/InsightSpec.js.map +1 -1
  32. package/dist/cjs/lib/entities/Integration.d.ts +4 -4
  33. package/dist/cjs/lib/entities/Integration.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/Rule.d.ts +2 -2
  37. package/dist/cjs/lib/entities/Rule.js.map +1 -1
  38. package/dist/cjs/lib/entities/RuleTemplate.d.ts +2 -2
  39. package/dist/cjs/lib/entities/RuleTemplate.js.map +1 -1
  40. package/dist/cjs/lib/entities/Stream.d.ts +1 -1
  41. package/dist/cjs/lib/entities/Stream.js.map +1 -1
  42. package/dist/cjs/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
  43. package/dist/cjs/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  44. package/dist/cjs/lib/entities/StreamConfig.d.ts +5 -3
  45. package/dist/cjs/lib/entities/StreamConfig.js +4 -1
  46. package/dist/cjs/lib/entities/StreamConfig.js.map +1 -1
  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/entities/index.d.ts +2 -0
  54. package/dist/cjs/lib/entities/index.js +2 -0
  55. package/dist/cjs/lib/entities/index.js.map +1 -1
  56. package/dist/cjs/lib/enums/RuleTypeCode.d.ts +2 -1
  57. package/dist/cjs/lib/enums/RuleTypeCode.js +3 -0
  58. package/dist/cjs/lib/enums/RuleTypeCode.js.map +1 -1
  59. package/dist/cjs/lib/pulse-client.d.ts +2 -0
  60. package/dist/cjs/lib/pulse-client.js +21 -19
  61. package/dist/cjs/lib/pulse-client.js.map +1 -1
  62. package/dist/cjs/lib/services/index.d.ts +1 -0
  63. package/dist/cjs/lib/services/index.js +1 -0
  64. package/dist/cjs/lib/services/index.js.map +1 -1
  65. package/dist/cjs/lib/services/services.export.d.ts +2 -1
  66. package/dist/cjs/lib/services/services.export.js +2 -0
  67. package/dist/cjs/lib/services/services.export.js.map +1 -1
  68. package/dist/cjs/lib/services/sysAccountsService.d.ts +2 -2
  69. package/dist/cjs/lib/services/sysIdsRulesService.d.ts +32 -0
  70. package/dist/cjs/lib/services/sysIdsRulesService.js +73 -0
  71. package/dist/cjs/lib/services/sysIdsRulesService.js.map +1 -0
  72. package/dist/cjs/lib/services/sysInsightsService.d.ts +1 -1
  73. package/dist/cjs/lib/services/sysUsersService.d.ts +1 -1
  74. package/dist/cjs/lib/services/usrAlertsService.d.ts +6 -6
  75. package/dist/cjs/lib/services/usrDevicesService.d.ts +7 -7
  76. package/dist/cjs/lib/services/usrEventsService.d.ts +5 -5
  77. package/dist/cjs/lib/services/usrNetworkService.d.ts +2 -2
  78. package/dist/cjs/lib/services/usrReportsInstanceService.d.ts +1 -1
  79. package/dist/cjs/lib/services/usrReportsService.d.ts +2 -2
  80. package/dist/cjs/lib/services/usrRulesService.d.ts +1 -1
  81. package/dist/cjs/lib/services/usrUserService.d.ts +2 -2
  82. package/dist/esm/lib/common/DeviceConfig.d.ts +1 -1
  83. package/dist/esm/lib/common/DevicesMap.d.ts +1 -1
  84. package/dist/esm/lib/common/TimeSeries.d.ts +1 -1
  85. package/dist/esm/lib/common/TimeSeriesOfDataConsumption.d.ts +1 -1
  86. package/dist/esm/lib/entities/AccountReportDTO.d.ts +3 -3
  87. package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
  88. package/dist/esm/lib/entities/Alert.d.ts +4 -4
  89. package/dist/esm/lib/entities/Alert.js.map +1 -1
  90. package/dist/esm/lib/entities/AlertWithDevice.d.ts +5 -5
  91. package/dist/esm/lib/entities/AlertWithDevice.js.map +1 -1
  92. package/dist/esm/lib/entities/ApiKey.d.ts +1 -1
  93. package/dist/esm/lib/entities/ApiKey.js.map +1 -1
  94. package/dist/esm/lib/entities/Device.d.ts +1 -1
  95. package/dist/esm/lib/entities/Device.js.map +1 -1
  96. package/dist/esm/lib/entities/DeviceWithEvents.d.ts +3 -3
  97. package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
  98. package/dist/esm/lib/entities/Event.d.ts +8 -8
  99. package/dist/esm/lib/entities/Event.js.map +1 -1
  100. package/dist/esm/lib/entities/EventWithDevice.d.ts +7 -7
  101. package/dist/esm/lib/entities/Feature.d.ts +1 -1
  102. package/dist/esm/lib/entities/Feature.js.map +1 -1
  103. package/dist/esm/lib/entities/IdsConfig.d.ts +8 -0
  104. package/dist/esm/lib/entities/IdsConfig.js +21 -0
  105. package/dist/esm/lib/entities/IdsConfig.js.map +1 -0
  106. package/dist/esm/lib/entities/IdsRule.d.ts +28 -0
  107. package/dist/esm/lib/entities/IdsRule.js +5 -0
  108. package/dist/esm/lib/entities/IdsRule.js.map +1 -0
  109. package/dist/esm/lib/entities/Insight.d.ts +1 -1
  110. package/dist/esm/lib/entities/Insight.js.map +1 -1
  111. package/dist/esm/lib/entities/InsightSpec.d.ts +1 -1
  112. package/dist/esm/lib/entities/InsightSpec.js.map +1 -1
  113. package/dist/esm/lib/entities/Integration.d.ts +4 -4
  114. package/dist/esm/lib/entities/Integration.js.map +1 -1
  115. package/dist/esm/lib/entities/Report.d.ts +1 -1
  116. package/dist/esm/lib/entities/Report.js.map +1 -1
  117. package/dist/esm/lib/entities/Rule.d.ts +2 -2
  118. package/dist/esm/lib/entities/Rule.js.map +1 -1
  119. package/dist/esm/lib/entities/RuleTemplate.d.ts +2 -2
  120. package/dist/esm/lib/entities/RuleTemplate.js.map +1 -1
  121. package/dist/esm/lib/entities/Stream.d.ts +1 -1
  122. package/dist/esm/lib/entities/Stream.js.map +1 -1
  123. package/dist/esm/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
  124. package/dist/esm/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  125. package/dist/esm/lib/entities/StreamConfig.d.ts +5 -3
  126. package/dist/esm/lib/entities/StreamConfig.js +4 -1
  127. package/dist/esm/lib/entities/StreamConfig.js.map +1 -1
  128. package/dist/esm/lib/entities/User.d.ts +1 -1
  129. package/dist/esm/lib/entities/User.js.map +1 -1
  130. package/dist/esm/lib/entities/UserMembership.d.ts +1 -1
  131. package/dist/esm/lib/entities/UserMembership.js.map +1 -1
  132. package/dist/esm/lib/entities/UserMemberships.d.ts +1 -1
  133. package/dist/esm/lib/entities/UserMemberships.js.map +1 -1
  134. package/dist/esm/lib/entities/index.d.ts +2 -0
  135. package/dist/esm/lib/entities/index.js +2 -0
  136. package/dist/esm/lib/entities/index.js.map +1 -1
  137. package/dist/esm/lib/enums/RuleTypeCode.d.ts +2 -1
  138. package/dist/esm/lib/enums/RuleTypeCode.js +3 -0
  139. package/dist/esm/lib/enums/RuleTypeCode.js.map +1 -1
  140. package/dist/esm/lib/pulse-client.d.ts +2 -0
  141. package/dist/esm/lib/pulse-client.js +2 -0
  142. package/dist/esm/lib/pulse-client.js.map +1 -1
  143. package/dist/esm/lib/services/index.d.ts +1 -0
  144. package/dist/esm/lib/services/index.js +1 -0
  145. package/dist/esm/lib/services/index.js.map +1 -1
  146. package/dist/esm/lib/services/services.export.d.ts +2 -1
  147. package/dist/esm/lib/services/services.export.js +2 -0
  148. package/dist/esm/lib/services/services.export.js.map +1 -1
  149. package/dist/esm/lib/services/sysAccountsService.d.ts +2 -2
  150. package/dist/esm/lib/services/sysIdsRulesService.d.ts +32 -0
  151. package/dist/esm/lib/services/sysIdsRulesService.js +69 -0
  152. package/dist/esm/lib/services/sysIdsRulesService.js.map +1 -0
  153. package/dist/esm/lib/services/sysInsightsService.d.ts +1 -1
  154. package/dist/esm/lib/services/sysUsersService.d.ts +1 -1
  155. package/dist/esm/lib/services/usrAlertsService.d.ts +6 -6
  156. package/dist/esm/lib/services/usrDevicesService.d.ts +7 -7
  157. package/dist/esm/lib/services/usrEventsService.d.ts +5 -5
  158. package/dist/esm/lib/services/usrNetworkService.d.ts +2 -2
  159. package/dist/esm/lib/services/usrReportsInstanceService.d.ts +1 -1
  160. package/dist/esm/lib/services/usrReportsService.d.ts +2 -2
  161. package/dist/esm/lib/services/usrRulesService.d.ts +1 -1
  162. package/dist/esm/lib/services/usrUserService.d.ts +2 -2
  163. package/dist/types/lib/common/DeviceConfig.d.ts +1 -1
  164. package/dist/types/lib/common/DevicesMap.d.ts +1 -1
  165. package/dist/types/lib/common/TimeSeries.d.ts +1 -1
  166. package/dist/types/lib/common/TimeSeriesOfDataConsumption.d.ts +1 -1
  167. package/dist/types/lib/entities/AccountReportDTO.d.ts +3 -3
  168. package/dist/types/lib/entities/Alert.d.ts +4 -4
  169. package/dist/types/lib/entities/AlertWithDevice.d.ts +5 -5
  170. package/dist/types/lib/entities/ApiKey.d.ts +1 -1
  171. package/dist/types/lib/entities/Device.d.ts +1 -1
  172. package/dist/types/lib/entities/DeviceWithEvents.d.ts +3 -3
  173. package/dist/types/lib/entities/Event.d.ts +8 -8
  174. package/dist/types/lib/entities/EventWithDevice.d.ts +7 -7
  175. package/dist/types/lib/entities/Feature.d.ts +1 -1
  176. package/dist/types/lib/entities/IdsConfig.d.ts +8 -0
  177. package/dist/types/lib/entities/IdsRule.d.ts +28 -0
  178. package/dist/types/lib/entities/Insight.d.ts +1 -1
  179. package/dist/types/lib/entities/InsightSpec.d.ts +1 -1
  180. package/dist/types/lib/entities/Integration.d.ts +4 -4
  181. package/dist/types/lib/entities/Report.d.ts +1 -1
  182. package/dist/types/lib/entities/Rule.d.ts +2 -2
  183. package/dist/types/lib/entities/RuleTemplate.d.ts +2 -2
  184. package/dist/types/lib/entities/Stream.d.ts +1 -1
  185. package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
  186. package/dist/types/lib/entities/StreamConfig.d.ts +5 -3
  187. package/dist/types/lib/entities/User.d.ts +1 -1
  188. package/dist/types/lib/entities/UserMembership.d.ts +1 -1
  189. package/dist/types/lib/entities/UserMemberships.d.ts +1 -1
  190. package/dist/types/lib/entities/index.d.ts +2 -0
  191. package/dist/types/lib/enums/RuleTypeCode.d.ts +2 -1
  192. package/dist/types/lib/pulse-client.d.ts +2 -0
  193. package/dist/types/lib/services/index.d.ts +1 -0
  194. package/dist/types/lib/services/services.export.d.ts +2 -1
  195. package/dist/types/lib/services/sysAccountsService.d.ts +2 -2
  196. package/dist/types/lib/services/sysIdsRulesService.d.ts +32 -0
  197. package/dist/types/lib/services/sysInsightsService.d.ts +1 -1
  198. package/dist/types/lib/services/sysUsersService.d.ts +1 -1
  199. package/dist/types/lib/services/usrAlertsService.d.ts +6 -6
  200. package/dist/types/lib/services/usrDevicesService.d.ts +7 -7
  201. package/dist/types/lib/services/usrEventsService.d.ts +5 -5
  202. package/dist/types/lib/services/usrNetworkService.d.ts +2 -2
  203. package/dist/types/lib/services/usrReportsInstanceService.d.ts +1 -1
  204. package/dist/types/lib/services/usrReportsService.d.ts +2 -2
  205. package/dist/types/lib/services/usrRulesService.d.ts +1 -1
  206. package/dist/types/lib/services/usrUserService.d.ts +2 -2
  207. package/dist/umd/index.js +1 -1
  208. package/dist/umd/index.js.LICENSE.txt +1 -1
  209. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
+ import { Rule } from '../entities';
3
+ import { IdsRule } from '../entities';
4
+ import { SeverityTypeCode } from '../enums';
5
+ import { RuleActivityStatusCode } from '../enums';
6
+ import { EventTypeCode } from '../enums';
7
+ export declare class SysIdsRulesService {
8
+ private apiUrl;
9
+ private rest;
10
+ private baseUrl;
11
+ constructor(apiUrl: string, rest: RestUtil);
12
+ /**
13
+ * Create new IDS rule
14
+ */
15
+ create(body?: Rule): import("rxjs").Observable<EntityResponse<IdsRule>>;
16
+ /**
17
+ * Update existing IDS rule in the system
18
+ */
19
+ update(body?: Rule): import("rxjs").Observable<EntityResponse<IdsRule>>;
20
+ /**
21
+ * Delete a IDS rule from the system
22
+ */
23
+ delete(id?: string): import("rxjs").Observable<ActionResponse>;
24
+ /**
25
+ * Get single IDS rule by id
26
+ */
27
+ get(id?: string): import("rxjs").Observable<EntityResponse<IdsRule>>;
28
+ /**
29
+ * Find list of IDS rules by query
30
+ */
31
+ find(streamId?: string, search?: string, eventSeverity?: SeverityTypeCode[], activityStatus?: RuleActivityStatusCode[], eventType?: EventTypeCode[], sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IdsRule>>;
32
+ }
@@ -0,0 +1,69 @@
1
+ // List of rules related actions for system administrator only
2
+ // @RequestHeader X-API-KEY The key to identify the application (console)
3
+ // @RequestHeader X-ACCESS-TOKEN The token to identify the logged-in user
4
+ export class SysIdsRulesService {
5
+ // Class constructor
6
+ constructor(apiUrl, rest) {
7
+ this.apiUrl = apiUrl;
8
+ this.rest = rest;
9
+ // URL to web api
10
+ this.baseUrl = '/sys/ids-rules';
11
+ this.baseUrl = apiUrl + this.baseUrl;
12
+ }
13
+ /**
14
+ * Create new IDS rule
15
+ */
16
+ create(body) {
17
+ return this.rest.put(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
18
+ }
19
+ /**
20
+ * Update existing IDS rule in the system
21
+ */
22
+ update(body) {
23
+ return this.rest.patch(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
24
+ }
25
+ /**
26
+ * Delete a IDS rule from the system
27
+ */
28
+ delete(id) {
29
+ return this.rest.delete(`${this.baseUrl}/${id}`);
30
+ }
31
+ /**
32
+ * Get single IDS rule by id
33
+ */
34
+ get(id) {
35
+ return this.rest.get(`${this.baseUrl}/${id}`);
36
+ }
37
+ /**
38
+ * Find list of IDS rules by query
39
+ */
40
+ find(streamId, search, eventSeverity, activityStatus, eventType, sort, page, size) {
41
+ const params = [];
42
+ if (streamId != null) {
43
+ params.push(`streamId=${streamId}`);
44
+ }
45
+ if (search != null) {
46
+ params.push(`search=${search}`);
47
+ }
48
+ if (eventSeverity != null) {
49
+ params.push(`eventSeverity=${eventSeverity}`);
50
+ }
51
+ if (activityStatus != null) {
52
+ params.push(`activityStatus=${activityStatus}`);
53
+ }
54
+ if (eventType != null) {
55
+ params.push(`eventType=${eventType}`);
56
+ }
57
+ if (sort != null) {
58
+ params.push(`sort=${sort}`);
59
+ }
60
+ if (page != null) {
61
+ params.push(`page=${page}`);
62
+ }
63
+ if (size != null) {
64
+ params.push(`size=${size}`);
65
+ }
66
+ return this.rest.get(`${this.baseUrl}`, ...params);
67
+ }
68
+ }
69
+ //# sourceMappingURL=sysIdsRulesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sysIdsRulesService.js","sourceRoot":"","sources":["../../../../src/lib/services/sysIdsRulesService.ts"],"names":[],"mappings":"AAUA,+DAA+D;AAC/D,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,gBAAgB,CAAC;QAIjC,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;IACvC,CAAC;IAGD;;OAEG;IACH,MAAM,CAAC,IAAW;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA0B,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3H,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAW;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAA0B,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7H,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAW;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAiB,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAW;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA0B,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,QAAiB,EAAE,MAAe,EAAE,aAAkC,EAAE,cAAyC,EAAE,SAA2B,EAAE,IAAa,EAAE,IAAa,EAAE,IAAa;QAC9L,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC;QAAC,CAAC;QAC9D,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,UAAU,MAAM,EAAE,CAAC,CAAC;QAAC,CAAC;QACxD,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,aAAa,EAAE,CAAC,CAAC;QAAC,CAAC;QAC7E,IAAI,cAAc,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,cAAc,EAAE,CAAC,CAAC;QAAC,CAAC;QAChF,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,aAAa,SAAS,EAAE,CAAC,CAAC;QAAC,CAAC;QACjE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;QAClD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;QAClD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;QAEpD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA4B,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,CAAC;IAC9E,CAAC;CAEF"}
@@ -1,6 +1,6 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { InsightSpec } from '../entities';
3
2
  import { InsightQuery } from '../entities';
3
+ import { InsightSpec } from '../entities';
4
4
  export declare class SysInsightsService {
5
5
  private apiUrl;
6
6
  private rest;
@@ -1,8 +1,8 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { User } from '../entities';
3
2
  import { UserTypeCode } from '../enums';
4
3
  import { UserStatusCode } from '../enums';
5
4
  import { UserMemberships } from '../entities';
5
+ import { User } from '../entities';
6
6
  export declare class SysUsersService {
7
7
  private apiUrl;
8
8
  private rest;
@@ -1,18 +1,18 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
+ import { EventCategoryCode } from '../enums';
2
3
  import { EventStatusCode } from '../enums';
3
- import { MaliciousIPData } from '../common';
4
4
  import { TimeSeriesOfFloat } from '../common';
5
- import { DeviceActionCode } from '../enums';
6
- import { TimeSeriesOf2D } from '../common';
7
- import { EventTypeCode } from '../enums';
8
5
  import { SeverityTypeCode } from '../enums';
6
+ import { TimeSeriesOf2D } from '../common';
7
+ import { RuleTypeCode } from '../enums';
9
8
  import { AlertWithDevice } from '../entities';
9
+ import { DeviceActionCode } from '../enums';
10
10
  import { Alert } from '../entities';
11
- import { RuleTypeCode } from '../enums';
11
+ import { MaliciousIPData } from '../common';
12
12
  import { IntDistribution } from '../entities';
13
- import { EventCategoryCode } from '../enums';
14
13
  import { MaliciousIPCard } from '../common';
15
14
  import { StringKeyValue } from '../common';
15
+ import { EventTypeCode } from '../enums';
16
16
  export declare class UsrAlertsService {
17
17
  private apiUrl;
18
18
  private rest;
@@ -1,19 +1,19 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { MapBounds } from '../common';
3
- import { NetworkMap } from '../common';
4
- import { IntDistribution } from '../entities';
2
+ import { Device } from '../entities';
3
+ import { SeverityTypeCode } from '../enums';
4
+ import { DevicesMap } from '../common';
5
5
  import { DeviceStatusCode } from '../enums';
6
6
  import { BulkDevices } from '../entities';
7
7
  import { DeviceTypeCode } from '../enums';
8
8
  import { DeviceActionCode } from '../enums';
9
- import { TimeSeriesOfDeviceReport } from '../entities';
10
- import { Device } from '../entities';
9
+ import { MapBounds } from '../common';
11
10
  import { DeviceWithEvents } from '../entities';
11
+ import { IntDistribution } from '../entities';
12
12
  import { NetworkMapTypeCode } from '../enums';
13
+ import { NetworkMap } from '../common';
14
+ import { TimeSeriesOfDeviceReport } from '../entities';
13
15
  import { DeviceReport } from '../entities';
14
16
  import { TimeSeriesOfDataConsumption } from '../common';
15
- import { DevicesMap } from '../common';
16
- import { SeverityTypeCode } from '../enums';
17
17
  export declare class UsrDevicesService {
18
18
  private apiUrl;
19
19
  private rest;
@@ -1,17 +1,17 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
+ import { EventStatusCode } from '../enums';
3
+ import { EventWithDevice } from '../entities';
2
4
  import { MaliciousIPData } from '../common';
5
+ import { TimeSeriesOfFloat } from '../common';
6
+ import { StringKeyValue } from '../common';
7
+ import { EventTypeCode } from '../enums';
3
8
  import { EventCategoryCode } from '../enums';
4
9
  import { RuleTypeCode } from '../enums';
5
- import { EventWithDevice } from '../entities';
6
- import { EventStatusCode } from '../enums';
7
10
  import { IntDistribution } from '../entities';
8
11
  import { TimeSeriesOf2D } from '../common';
9
- import { TimeSeriesOfFloat } from '../common';
10
12
  import { MaliciousIPCard } from '../common';
11
13
  import { Event } from '../entities';
12
- import { EventTypeCode } from '../enums';
13
14
  import { SeverityTypeCode } from '../enums';
14
- import { StringKeyValue } from '../common';
15
15
  export declare class UsrEventsService {
16
16
  private apiUrl;
17
17
  private rest;
@@ -1,9 +1,9 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse } from '../../utils';
2
+ import { UsageRecord } from '../entities';
3
+ import { SessionRecord } from '../entities';
2
4
  import { IntDistribution } from '../entities';
3
5
  import { Distribution } from '../entities';
4
6
  import { FlowRecord } from '../entities';
5
- import { UsageRecord } from '../entities';
6
- import { SessionRecord } from '../entities';
7
7
  export declare class UsrNetworkService {
8
8
  private apiUrl;
9
9
  private rest;
@@ -1,6 +1,6 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { ReportSourceCode } from '../enums';
3
2
  import { ReportInstance } from '../entities';
3
+ import { ReportSourceCode } from '../enums';
4
4
  export declare class UsrReportsInstanceService {
5
5
  private apiUrl;
6
6
  private rest;
@@ -1,8 +1,8 @@
1
1
  import { RestUtil, EntityResponse, 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 { TimeSeriesOfFloat } from '../common';
3
2
  import { IntDistribution } from '../entities';
4
3
  import { Distribution } from '../entities';
5
4
  import { Rule } from '../entities';
6
5
  import { SeverityTypeCode } from '../enums';
7
6
  import { RuleActivityStatusCode } from '../enums';
8
7
  import { EventTypeCode } from '../enums';
8
+ import { TimeSeriesOfFloat } from '../common';
9
9
  export declare class UsrRulesService {
10
10
  private apiUrl;
11
11
  private rest;
@@ -1,10 +1,10 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { User } from '../entities';
2
+ import { AccountDTO } from '../entities';
3
3
  import { Stream } from '../entities';
4
4
  import { UserMemberships } from '../entities';
5
5
  import { ConfigParam } from '../entities';
6
6
  import { LoginParams } from '../common';
7
- import { AccountDTO } from '../entities';
7
+ import { User } from '../entities';
8
8
  import { Image } from '../entities';
9
9
  import { Feature } from '../entities';
10
10
  import { FeatureCode } from '../enums';
@@ -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 { TimeFrame } from '../common';
2
1
  import { TimeDataPoint } from '../common';
2
+ import { TimeFrame } from '../common';
3
3
  export declare class TimeSeries {
4
4
  name: string;
5
5
  range: TimeFrame;
@@ -1,5 +1,5 @@
1
- import { TimeFrame } from '../common';
2
1
  import { ConsumptionTimeDataPoint } from '../common';
2
+ import { TimeFrame } from '../common';
3
3
  export declare class TimeSeriesOfDataConsumption {
4
4
  name: string;
5
5
  range: TimeFrame;
@@ -1,10 +1,10 @@
1
+ import { IntDistribution } from '../entities';
2
+ import { BaseEntity } from '../base';
3
+ import { AccountTypeCode } from '../enums';
1
4
  import { AccountStatusCode } from '../enums';
2
5
  import { StringKeyValue } from '../common';
3
6
  import { AccountSettings } from '../entities';
4
7
  import { DeviceReport } from '../entities';
5
- import { IntDistribution } from '../entities';
6
- import { BaseEntity } from '../base';
7
- import { AccountTypeCode } from '../enums';
8
8
  export declare class AccountReportDTO extends BaseEntity {
9
9
  name: string;
10
10
  externalId: string;
@@ -1,12 +1,12 @@
1
+ import { SeverityTypeCode } from '../enums';
2
+ import { EventStatusCode } from '../enums';
3
+ import { GeoData } from '../common';
4
+ import { EventCategoryCode } from '../enums';
1
5
  import { TrafficDirectionCode } from '../enums';
2
6
  import { BaseEntity } from '../base';
3
7
  import { EventTypeCode } from '../enums';
4
- import { GeoData } from '../common';
5
8
  import { RuleTypeCode } from '../enums';
6
9
  import { StringKeyValue } from '../common';
7
- import { EventCategoryCode } from '../enums';
8
- import { SeverityTypeCode } from '../enums';
9
- import { EventStatusCode } from '../enums';
10
10
  export declare class Alert extends BaseEntity {
11
11
  accountId: string;
12
12
  streamId: string;
@@ -1,13 +1,13 @@
1
+ import { EventStatusCode } from '../enums';
1
2
  import { GeoData } from '../common';
2
- import { TrafficDirectionCode } from '../enums';
3
3
  import { StringKeyValue } from '../common';
4
- import { EventCategoryCode } from '../enums';
5
- import { Device } from '../entities';
6
- import { BaseEntity } from '../base';
4
+ import { TrafficDirectionCode } from '../enums';
7
5
  import { EventTypeCode } from '../enums';
8
6
  import { SeverityTypeCode } from '../enums';
9
- import { EventStatusCode } from '../enums';
10
7
  import { RuleTypeCode } from '../enums';
8
+ import { EventCategoryCode } from '../enums';
9
+ import { Device } from '../entities';
10
+ import { BaseEntity } from '../base';
11
11
  export declare class AlertWithDevice extends BaseEntity {
12
12
  accountId: string;
13
13
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { StringKeyIntValue } from '../common';
2
1
  import { BaseEntity } from '../base';
2
+ import { StringKeyIntValue } from '../common';
3
3
  export declare class ApiKey extends BaseEntity {
4
4
  name: string;
5
5
  ttl: number;
@@ -1,10 +1,10 @@
1
- import { StringKeyValue } from '../common';
2
1
  import { DeviceActionCode } from '../enums';
3
2
  import { SIM } from '../entities';
4
3
  import { GeoData } from '../common';
5
4
  import { BaseEntity } from '../base';
6
5
  import { DeviceTypeCode } from '../enums';
7
6
  import { DeviceStatusCode } from '../enums';
7
+ import { StringKeyValue } from '../common';
8
8
  export declare class Device extends BaseEntity {
9
9
  accountId: string;
10
10
  streamId: string;
@@ -1,11 +1,11 @@
1
+ import { StringKeyValue } from '../common';
2
+ import { DeviceActionCode } from '../enums';
3
+ import { SIM } from '../entities';
1
4
  import { Event } from '../entities';
2
5
  import { GeoData } from '../common';
3
6
  import { BaseEntity } from '../base';
4
7
  import { DeviceTypeCode } from '../enums';
5
8
  import { DeviceStatusCode } from '../enums';
6
- import { StringKeyValue } from '../common';
7
- import { DeviceActionCode } from '../enums';
8
- import { SIM } from '../entities';
9
9
  export declare class DeviceWithEvents extends BaseEntity {
10
10
  accountId: string;
11
11
  streamId: string;
@@ -1,14 +1,14 @@
1
- import { StringKeyValue } from '../common';
2
- import { EventCategoryCode } from '../enums';
3
- import { EventOccurrence } from '../entities';
4
- import { BaseEntity } from '../base';
5
- import { SeverityTypeCode } from '../enums';
6
- import { GeoData } from '../common';
1
+ import { EventStatusCode } from '../enums';
7
2
  import { Indicator } from '../common';
8
- import { RuleTypeCode } from '../enums';
3
+ import { GeoData } from '../common';
9
4
  import { TrafficDirectionCode } from '../enums';
5
+ import { BaseEntity } from '../base';
10
6
  import { EventTypeCode } from '../enums';
11
- import { EventStatusCode } from '../enums';
7
+ import { SeverityTypeCode } from '../enums';
8
+ import { EventCategoryCode } from '../enums';
9
+ import { EventOccurrence } from '../entities';
10
+ import { RuleTypeCode } from '../enums';
11
+ import { StringKeyValue } from '../common';
12
12
  export declare class Event extends BaseEntity {
13
13
  accountId: string;
14
14
  streamId: string;
@@ -1,15 +1,15 @@
1
- import { SeverityTypeCode } from '../enums';
2
- import { EventStatusCode } from '../enums';
3
- import { EventOccurrence } from '../entities';
1
+ import { RuleTypeCode } from '../enums';
2
+ import { StringKeyValue } from '../common';
4
3
  import { TrafficDirectionCode } from '../enums';
4
+ import { Device } from '../entities';
5
5
  import { BaseEntity } from '../base';
6
- import { EventTypeCode } from '../enums';
6
+ import { EventStatusCode } from '../enums';
7
+ import { SeverityTypeCode } from '../enums';
7
8
  import { Indicator } from '../common';
8
- import { RuleTypeCode } from '../enums';
9
9
  import { GeoData } from '../common';
10
- import { StringKeyValue } from '../common';
11
10
  import { EventCategoryCode } from '../enums';
12
- import { Device } from '../entities';
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 Feature extends BaseEntity {
4
4
  code: FeatureCode;
5
5
  name: string;
@@ -0,0 +1,8 @@
1
+ export declare class IdsConfig {
2
+ authorizedDnsServers: string[];
3
+ authorizedFtpServers: string[];
4
+ modbusMasters: string[];
5
+ modbusPorts: number[];
6
+ longSessionsPorts: number[];
7
+ constructor(authorizedDnsServers?: string[], authorizedFtpServers?: string[], modbusMasters?: string[], modbusPorts?: number[], longSessionsPorts?: number[]);
8
+ }
@@ -0,0 +1,28 @@
1
+ import { EventTypeCode } from '../enums';
2
+ import { SeverityTypeCode } from '../enums';
3
+ import { BaseEntity } from '../base';
4
+ import { RuleTypeCode } from '../enums';
5
+ import { DataSourceCode } from '../enums';
6
+ import { ConditionDescription } from '../common';
7
+ import { DeviceTypeCode } from '../enums';
8
+ export declare class IdsRule extends BaseEntity {
9
+ accountId: string;
10
+ streamId: string;
11
+ name: string;
12
+ type: RuleTypeCode;
13
+ description: string;
14
+ isSystemRule: boolean;
15
+ isActiveRule: boolean;
16
+ context: DataSourceCode;
17
+ matchAll: ConditionDescription[];
18
+ matchAny: ConditionDescription[];
19
+ excludeIDs: string[];
20
+ excludeTags: string[];
21
+ excludeTypes: DeviceTypeCode[];
22
+ timeWindowSec: number;
23
+ setEventType: EventTypeCode;
24
+ setEventSeverity: SeverityTypeCode;
25
+ lastAlertTimestamp: number;
26
+ alertsCount: number;
27
+ sQL: string;
28
+ }
@@ -1,8 +1,8 @@
1
- import { InsightStatusCode } from '../enums';
2
1
  import { SeverityTypeCode } from '../enums';
3
2
  import { DirectionContextCode } from '../enums';
4
3
  import { BaseEntity } from '../base';
5
4
  import { InsightTypeCode } from '../enums';
5
+ import { InsightStatusCode } from '../enums';
6
6
  export declare class Insight extends BaseEntity {
7
7
  accountId: string;
8
8
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { InsightStatusCode } from '../enums';
2
1
  import { BaseEntity } from '../base';
2
+ import { InsightStatusCode } from '../enums';
3
3
  export declare class InsightSpec extends BaseEntity {
4
4
  accountId: string;
5
5
  streamId: string;
@@ -1,11 +1,11 @@
1
- import { DeviceActionCode } from '../enums';
2
- import { BaseEntity } from '../base';
3
- import { IntegrationTypeCode } from '../enums';
4
- import { IntegrationTriggerCode } from '../enums';
5
1
  import { HttpMethodCode } from '../enums';
6
2
  import { StringKeyValue } from '../common';
7
3
  import { EventTypeCode } from '../enums';
8
4
  import { SeverityTypeCode } from '../enums';
5
+ import { DeviceActionCode } from '../enums';
6
+ import { BaseEntity } from '../base';
7
+ import { IntegrationTypeCode } from '../enums';
8
+ import { IntegrationTriggerCode } from '../enums';
9
9
  export declare class Integration extends BaseEntity {
10
10
  accountId: string;
11
11
  streamId: 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,10 +1,10 @@
1
- import { BaseEntity } from '../base';
2
- import { RuleTypeCode } from '../enums';
3
1
  import { DataSourceCode } from '../enums';
4
2
  import { ConditionDescription } from '../common';
5
3
  import { DeviceTypeCode } from '../enums';
6
4
  import { EventTypeCode } from '../enums';
7
5
  import { SeverityTypeCode } from '../enums';
6
+ import { BaseEntity } from '../base';
7
+ import { RuleTypeCode } 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';
2
- import { EventTypeCode } from '../enums';
3
1
  import { SeverityTypeCode } from '../enums';
4
2
  import { BaseEntity } from '../base';
3
+ import { DataSourceCode } from '../enums';
4
+ import { EventTypeCode } from '../enums';
5
5
  export declare class RuleTemplate extends BaseEntity {
6
6
  name: string;
7
7
  description: string;
@@ -1,6 +1,6 @@
1
+ import { StringKeyValue } from '../common';
1
2
  import { StreamConfig } from '../entities';
2
3
  import { BaseEntity } from '../base';
3
- import { StringKeyValue } from '../common';
4
4
  export declare class Stream extends BaseEntity {
5
5
  accountId: string;
6
6
  name: string;
@@ -1,8 +1,8 @@
1
- import { BaseEntity } from '../base';
2
1
  import { Thresholds } from '../common';
3
2
  import { ShieldexConfig } from '../common';
4
3
  import { EventSeverityConfig } from '../common';
5
4
  import { DeviceConfig } from '../common';
5
+ import { BaseEntity } from '../base';
6
6
  export declare class StreamAnalyticsConfig extends BaseEntity {
7
7
  accountId: string;
8
8
  thresholds: Thresholds;
@@ -1,9 +1,10 @@
1
+ import { ShieldexConfig } from '../common';
1
2
  import { DeviceConfig } from '../common';
2
- import { DataIngestion } from '../entities';
3
+ import { IdsConfig } from '../entities';
3
4
  import { SessionTransform } from '../common';
4
5
  import { UsageTransform } from '../common';
5
6
  import { Thresholds } from '../common';
6
- import { ShieldexConfig } from '../common';
7
+ import { DataIngestion } from '../entities';
7
8
  import { EventSeverityConfig } from '../common';
8
9
  import { DeviceActionCode } from '../enums';
9
10
  export declare class StreamConfig {
@@ -15,5 +16,6 @@ export declare class StreamConfig {
15
16
  eventSeverityConfig: EventSeverityConfig;
16
17
  preventiveActions: DeviceActionCode[];
17
18
  deviceConfig: DeviceConfig;
18
- constructor(ingest?: DataIngestion, sessionTransform?: SessionTransform, usageTransform?: UsageTransform, thresholds?: Thresholds, shieldexConfig?: ShieldexConfig, eventSeverityConfig?: EventSeverityConfig, preventiveActions?: DeviceActionCode[], deviceConfig?: DeviceConfig);
19
+ idsConfig: IdsConfig;
20
+ constructor(ingest?: DataIngestion, sessionTransform?: SessionTransform, usageTransform?: UsageTransform, thresholds?: Thresholds, shieldexConfig?: ShieldexConfig, eventSeverityConfig?: EventSeverityConfig, preventiveActions?: DeviceActionCode[], deviceConfig?: DeviceConfig, idsConfig?: IdsConfig);
19
21
  }
@@ -1,7 +1,7 @@
1
+ import { StringKeyValue } from '../common';
1
2
  import { BaseEntity } from '../base';
2
3
  import { UserTypeCode } from '../enums';
3
4
  import { UserStatusCode } from '../enums';
4
- import { StringKeyValue } from '../common';
5
5
  export declare class User extends BaseEntity {
6
6
  name: string;
7
7
  externalId: string;
@@ -1,7 +1,7 @@
1
+ import { AccountRole } from '../common';
1
2
  import { BaseEntity } from '../base';
2
3
  import { UserTypeCode } from '../enums';
3
4
  import { UserStatusCode } from '../enums';
4
- import { AccountRole } from '../common';
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';
2
1
  import { UserTypeCode } from '../enums';
3
2
  import { UserStatusCode } from '../enums';
4
3
  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;
@@ -26,6 +26,8 @@ export * from './Feature';
26
26
  export * from './FeaturesGroup';
27
27
  export * from './FlowRecord';
28
28
  export * from './Group';
29
+ export * from './IdsConfig';
30
+ export * from './IdsRule';
29
31
  export * from './Image';
30
32
  export * from './Insight';
31
33
  export * from './InsightQuery';