@shieldiot/pulse-lib 1.0.378 → 1.0.379

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 (178) hide show
  1. package/dist/cjs/lib/common/DeviceScoreConfig.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/SeverityConditionConfig.d.ts +1 -1
  5. package/dist/cjs/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  6. package/dist/cjs/lib/entities/Account.d.ts +2 -2
  7. package/dist/cjs/lib/entities/Account.js.map +1 -1
  8. package/dist/cjs/lib/entities/AccountDTO.d.ts +3 -3
  9. package/dist/cjs/lib/entities/AccountDTO.js.map +1 -1
  10. package/dist/cjs/lib/entities/AccountReportDTO.d.ts +2 -2
  11. package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
  12. package/dist/cjs/lib/entities/Alert.d.ts +2 -2
  13. package/dist/cjs/lib/entities/Alert.js.map +1 -1
  14. package/dist/cjs/lib/entities/AlertWithDevice.d.ts +4 -4
  15. package/dist/cjs/lib/entities/Device.d.ts +3 -3
  16. package/dist/cjs/lib/entities/Device.js.map +1 -1
  17. package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +1 -1
  18. package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
  19. package/dist/cjs/lib/entities/Event.d.ts +4 -4
  20. package/dist/cjs/lib/entities/Event.js.map +1 -1
  21. package/dist/cjs/lib/entities/EventWithDevice.d.ts +6 -6
  22. package/dist/cjs/lib/entities/EventWithDevice.js.map +1 -1
  23. package/dist/cjs/lib/entities/Feature.d.ts +1 -1
  24. package/dist/cjs/lib/entities/Feature.js.map +1 -1
  25. package/dist/cjs/lib/entities/IdsRule.d.ts +3 -3
  26. package/dist/cjs/lib/entities/IdsRule.js.map +1 -1
  27. package/dist/cjs/lib/entities/Insight.d.ts +1 -1
  28. package/dist/cjs/lib/entities/Insight.js.map +1 -1
  29. package/dist/cjs/lib/entities/Integration.d.ts +2 -2
  30. package/dist/cjs/lib/entities/Integration.js.map +1 -1
  31. package/dist/cjs/lib/entities/Member.d.ts +1 -1
  32. package/dist/cjs/lib/entities/Member.js.map +1 -1
  33. package/dist/cjs/lib/entities/Rule.d.ts +2 -2
  34. package/dist/cjs/lib/entities/Rule.js.map +1 -1
  35. package/dist/cjs/lib/entities/RuleTemplate.d.ts +1 -1
  36. package/dist/cjs/lib/entities/RuleTemplate.js.map +1 -1
  37. package/dist/cjs/lib/entities/Stream.d.ts +1 -1
  38. package/dist/cjs/lib/entities/Stream.js.map +1 -1
  39. package/dist/cjs/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  40. package/dist/cjs/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  41. package/dist/cjs/lib/entities/StreamConfig.d.ts +3 -3
  42. package/dist/cjs/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
  43. package/dist/cjs/lib/entities/User.d.ts +1 -1
  44. package/dist/cjs/lib/entities/User.js.map +1 -1
  45. package/dist/cjs/lib/entities/UserMembership.d.ts +1 -1
  46. package/dist/cjs/lib/entities/UserMembership.js.map +1 -1
  47. package/dist/cjs/lib/entities/UserMemberships.d.ts +2 -2
  48. package/dist/cjs/lib/entities/UserMemberships.js.map +1 -1
  49. package/dist/cjs/lib/pulse-client.d.ts +16 -14
  50. package/dist/cjs/lib/pulse-client.js +28 -26
  51. package/dist/cjs/lib/pulse-client.js.map +1 -1
  52. package/dist/cjs/lib/services/index.d.ts +1 -0
  53. package/dist/cjs/lib/services/index.js +1 -0
  54. package/dist/cjs/lib/services/index.js.map +1 -1
  55. package/dist/cjs/lib/services/services.export.d.ts +2 -1
  56. package/dist/cjs/lib/services/services.export.js +2 -0
  57. package/dist/cjs/lib/services/services.export.js.map +1 -1
  58. package/dist/cjs/lib/services/sysAccountsService.d.ts +1 -1
  59. package/dist/cjs/lib/services/sysIdsRulesService.d.ts +2 -2
  60. package/dist/cjs/lib/services/sysInsightsService.d.ts +53 -0
  61. package/dist/cjs/lib/services/sysInsightsService.js +135 -0
  62. package/dist/cjs/lib/services/sysInsightsService.js.map +1 -0
  63. package/dist/cjs/lib/services/sysUsersService.d.ts +1 -1
  64. package/dist/cjs/lib/services/usrAlertsService.d.ts +9 -9
  65. package/dist/cjs/lib/services/usrDevicesService.d.ts +9 -9
  66. package/dist/cjs/lib/services/usrEventsService.d.ts +5 -5
  67. package/dist/cjs/lib/services/usrRulesService.d.ts +1 -1
  68. package/dist/cjs/lib/services/usrUserService.d.ts +4 -4
  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/SeriesData.d.ts +1 -1
  72. package/dist/esm/lib/common/SeverityConditionConfig.d.ts +1 -1
  73. package/dist/esm/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  74. package/dist/esm/lib/entities/Account.d.ts +2 -2
  75. package/dist/esm/lib/entities/Account.js.map +1 -1
  76. package/dist/esm/lib/entities/AccountDTO.d.ts +3 -3
  77. package/dist/esm/lib/entities/AccountDTO.js.map +1 -1
  78. package/dist/esm/lib/entities/AccountReportDTO.d.ts +2 -2
  79. package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
  80. package/dist/esm/lib/entities/Alert.d.ts +2 -2
  81. package/dist/esm/lib/entities/Alert.js.map +1 -1
  82. package/dist/esm/lib/entities/AlertWithDevice.d.ts +4 -4
  83. package/dist/esm/lib/entities/Device.d.ts +3 -3
  84. package/dist/esm/lib/entities/Device.js.map +1 -1
  85. package/dist/esm/lib/entities/DeviceWithEvents.d.ts +1 -1
  86. package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
  87. package/dist/esm/lib/entities/Event.d.ts +4 -4
  88. package/dist/esm/lib/entities/Event.js.map +1 -1
  89. package/dist/esm/lib/entities/EventWithDevice.d.ts +6 -6
  90. package/dist/esm/lib/entities/EventWithDevice.js.map +1 -1
  91. package/dist/esm/lib/entities/Feature.d.ts +1 -1
  92. package/dist/esm/lib/entities/Feature.js.map +1 -1
  93. package/dist/esm/lib/entities/IdsRule.d.ts +3 -3
  94. package/dist/esm/lib/entities/IdsRule.js.map +1 -1
  95. package/dist/esm/lib/entities/Insight.d.ts +1 -1
  96. package/dist/esm/lib/entities/Insight.js.map +1 -1
  97. package/dist/esm/lib/entities/Integration.d.ts +2 -2
  98. package/dist/esm/lib/entities/Integration.js.map +1 -1
  99. package/dist/esm/lib/entities/Member.d.ts +1 -1
  100. package/dist/esm/lib/entities/Member.js.map +1 -1
  101. package/dist/esm/lib/entities/Rule.d.ts +2 -2
  102. package/dist/esm/lib/entities/Rule.js.map +1 -1
  103. package/dist/esm/lib/entities/RuleTemplate.d.ts +1 -1
  104. package/dist/esm/lib/entities/RuleTemplate.js.map +1 -1
  105. package/dist/esm/lib/entities/Stream.d.ts +1 -1
  106. package/dist/esm/lib/entities/Stream.js.map +1 -1
  107. package/dist/esm/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  108. package/dist/esm/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  109. package/dist/esm/lib/entities/StreamConfig.d.ts +3 -3
  110. package/dist/esm/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
  111. package/dist/esm/lib/entities/User.d.ts +1 -1
  112. package/dist/esm/lib/entities/User.js.map +1 -1
  113. package/dist/esm/lib/entities/UserMembership.d.ts +1 -1
  114. package/dist/esm/lib/entities/UserMembership.js.map +1 -1
  115. package/dist/esm/lib/entities/UserMemberships.d.ts +2 -2
  116. package/dist/esm/lib/entities/UserMemberships.js.map +1 -1
  117. package/dist/esm/lib/pulse-client.d.ts +16 -14
  118. package/dist/esm/lib/pulse-client.js +16 -14
  119. package/dist/esm/lib/pulse-client.js.map +1 -1
  120. package/dist/esm/lib/services/index.d.ts +1 -0
  121. package/dist/esm/lib/services/index.js +1 -0
  122. package/dist/esm/lib/services/index.js.map +1 -1
  123. package/dist/esm/lib/services/services.export.d.ts +2 -1
  124. package/dist/esm/lib/services/services.export.js +2 -0
  125. package/dist/esm/lib/services/services.export.js.map +1 -1
  126. package/dist/esm/lib/services/sysAccountsService.d.ts +1 -1
  127. package/dist/esm/lib/services/sysIdsRulesService.d.ts +2 -2
  128. package/dist/esm/lib/services/sysInsightsService.d.ts +53 -0
  129. package/dist/esm/lib/services/sysInsightsService.js +131 -0
  130. package/dist/esm/lib/services/sysInsightsService.js.map +1 -0
  131. package/dist/esm/lib/services/sysUsersService.d.ts +1 -1
  132. package/dist/esm/lib/services/usrAlertsService.d.ts +9 -9
  133. package/dist/esm/lib/services/usrDevicesService.d.ts +9 -9
  134. package/dist/esm/lib/services/usrEventsService.d.ts +5 -5
  135. package/dist/esm/lib/services/usrRulesService.d.ts +1 -1
  136. package/dist/esm/lib/services/usrUserService.d.ts +4 -4
  137. package/dist/types/lib/common/DeviceScoreConfig.d.ts +1 -1
  138. package/dist/types/lib/common/DevicesMap.d.ts +1 -1
  139. package/dist/types/lib/common/SeriesData.d.ts +1 -1
  140. package/dist/types/lib/common/SeverityConditionConfig.d.ts +1 -1
  141. package/dist/types/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  142. package/dist/types/lib/entities/Account.d.ts +2 -2
  143. package/dist/types/lib/entities/AccountDTO.d.ts +3 -3
  144. package/dist/types/lib/entities/AccountReportDTO.d.ts +2 -2
  145. package/dist/types/lib/entities/Alert.d.ts +2 -2
  146. package/dist/types/lib/entities/AlertWithDevice.d.ts +4 -4
  147. package/dist/types/lib/entities/Device.d.ts +3 -3
  148. package/dist/types/lib/entities/DeviceWithEvents.d.ts +1 -1
  149. package/dist/types/lib/entities/Event.d.ts +4 -4
  150. package/dist/types/lib/entities/EventWithDevice.d.ts +6 -6
  151. package/dist/types/lib/entities/Feature.d.ts +1 -1
  152. package/dist/types/lib/entities/IdsRule.d.ts +3 -3
  153. package/dist/types/lib/entities/Insight.d.ts +1 -1
  154. package/dist/types/lib/entities/Integration.d.ts +2 -2
  155. package/dist/types/lib/entities/Member.d.ts +1 -1
  156. package/dist/types/lib/entities/Rule.d.ts +2 -2
  157. package/dist/types/lib/entities/RuleTemplate.d.ts +1 -1
  158. package/dist/types/lib/entities/Stream.d.ts +1 -1
  159. package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  160. package/dist/types/lib/entities/StreamConfig.d.ts +3 -3
  161. package/dist/types/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
  162. package/dist/types/lib/entities/User.d.ts +1 -1
  163. package/dist/types/lib/entities/UserMembership.d.ts +1 -1
  164. package/dist/types/lib/entities/UserMemberships.d.ts +2 -2
  165. package/dist/types/lib/pulse-client.d.ts +16 -14
  166. package/dist/types/lib/services/index.d.ts +1 -0
  167. package/dist/types/lib/services/services.export.d.ts +2 -1
  168. package/dist/types/lib/services/sysAccountsService.d.ts +1 -1
  169. package/dist/types/lib/services/sysIdsRulesService.d.ts +2 -2
  170. package/dist/types/lib/services/sysInsightsService.d.ts +53 -0
  171. package/dist/types/lib/services/sysUsersService.d.ts +1 -1
  172. package/dist/types/lib/services/usrAlertsService.d.ts +9 -9
  173. package/dist/types/lib/services/usrDevicesService.d.ts +9 -9
  174. package/dist/types/lib/services/usrEventsService.d.ts +5 -5
  175. package/dist/types/lib/services/usrRulesService.d.ts +1 -1
  176. package/dist/types/lib/services/usrUserService.d.ts +4 -4
  177. package/dist/umd/index.js +1 -1
  178. package/package.json +1 -1
@@ -0,0 +1,131 @@
1
+ // List of insight queries 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 SysInsightsService {
5
+ // Class constructor
6
+ constructor(apiUrl, rest) {
7
+ this.apiUrl = apiUrl;
8
+ this.rest = rest;
9
+ // URL to web api
10
+ this.baseUrl = '/sys/insights';
11
+ this.baseUrl = apiUrl + this.baseUrl;
12
+ }
13
+ /**
14
+ * Create new insight query
15
+ */
16
+ createQuery(body) {
17
+ return this.rest.put(`${this.baseUrl}/query`, typeof body === 'object' ? JSON.stringify(body) : body);
18
+ }
19
+ /**
20
+ * Update existing insight query
21
+ */
22
+ updateQuery(body) {
23
+ return this.rest.patch(`${this.baseUrl}/query`, typeof body === 'object' ? JSON.stringify(body) : body);
24
+ }
25
+ /**
26
+ * Delete insight query from the system
27
+ */
28
+ deleteQuery(id) {
29
+ return this.rest.delete(`${this.baseUrl}/query/${id}`);
30
+ }
31
+ /**
32
+ * Get single insight query by id
33
+ */
34
+ getQuery(id) {
35
+ return this.rest.get(`${this.baseUrl}/query/${id}`);
36
+ }
37
+ /**
38
+ * Find list of insight queries
39
+ */
40
+ findQueries(search, sort, page, size) {
41
+ const params = [];
42
+ if (search != null) {
43
+ params.push(`search=${search}`);
44
+ }
45
+ if (sort != null) {
46
+ params.push(`sort=${sort}`);
47
+ }
48
+ if (page != null) {
49
+ params.push(`page=${page}`);
50
+ }
51
+ if (size != null) {
52
+ params.push(`size=${size}`);
53
+ }
54
+ return this.rest.get(`${this.baseUrl}/query`, ...params);
55
+ }
56
+ /**
57
+ * Create new insight spec
58
+ */
59
+ createSpec(body) {
60
+ return this.rest.put(`${this.baseUrl}/spec`, typeof body === 'object' ? JSON.stringify(body) : body);
61
+ }
62
+ /**
63
+ * Update existing insight spec
64
+ */
65
+ updateSpec(body) {
66
+ return this.rest.patch(`${this.baseUrl}/spec`, typeof body === 'object' ? JSON.stringify(body) : body);
67
+ }
68
+ /**
69
+ * Delete insight spec from the system
70
+ */
71
+ deleteSpec(id) {
72
+ return this.rest.delete(`${this.baseUrl}/spec/${id}`);
73
+ }
74
+ /**
75
+ * Get single insight spec by id
76
+ */
77
+ getSpec(id) {
78
+ return this.rest.get(`${this.baseUrl}/spec/${id}`);
79
+ }
80
+ /**
81
+ * Find list of insight specs
82
+ */
83
+ findSpecs(accountId, streamId, search, sort, page, size) {
84
+ const params = [];
85
+ if (accountId != null) {
86
+ params.push(`accountId=${accountId}`);
87
+ }
88
+ if (streamId != null) {
89
+ params.push(`streamId=${streamId}`);
90
+ }
91
+ if (search != null) {
92
+ params.push(`search=${search}`);
93
+ }
94
+ if (sort != null) {
95
+ params.push(`sort=${sort}`);
96
+ }
97
+ if (page != null) {
98
+ params.push(`page=${page}`);
99
+ }
100
+ if (size != null) {
101
+ params.push(`size=${size}`);
102
+ }
103
+ return this.rest.get(`${this.baseUrl}/spec`, ...params);
104
+ }
105
+ /**
106
+ * Find list of insight specs
107
+ */
108
+ findSpecsQueries(accountId, streamId, search, sort, page, size) {
109
+ const params = [];
110
+ if (accountId != null) {
111
+ params.push(`accountId=${accountId}`);
112
+ }
113
+ if (streamId != null) {
114
+ params.push(`streamId=${streamId}`);
115
+ }
116
+ if (search != null) {
117
+ params.push(`search=${search}`);
118
+ }
119
+ if (sort != null) {
120
+ params.push(`sort=${sort}`);
121
+ }
122
+ if (page != null) {
123
+ params.push(`page=${page}`);
124
+ }
125
+ if (size != null) {
126
+ params.push(`size=${size}`);
127
+ }
128
+ return this.rest.get(`${this.baseUrl}/spec-queries`, ...params);
129
+ }
130
+ }
131
+ //# sourceMappingURL=sysInsightsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sysInsightsService.js","sourceRoot":"","sources":["../../../../src/lib/services/sysInsightsService.ts"],"names":[],"mappings":"AAOA,yEAAyE;AACzE,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,eAAe,CAAC;QAIhC,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;IACvC,CAAC;IAGD;;OAEG;IACH,WAAW,CAAC,IAAmB;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CA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,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,CAAiC,GAAG,IAAI,CAAC,OAAO,eAAe,EAAE,GAAG,MAAM,CAAC,CAAC;IAChG,CAAC;CAEF"}
@@ -1,8 +1,8 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { UserMemberships } from '../entities';
3
2
  import { User } from '../entities';
4
3
  import { UserTypeCode } from '../enums';
5
4
  import { UserStatusCode } from '../enums';
5
+ import { UserMemberships } 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 { EventTypeCode } from '../enums';
3
- import { EventCategoryCode } from '../enums';
4
- import { AlertWithDevice } from '../entities';
5
- import { IntDistribution } from '../entities';
2
+ import { EventStatusCode } from '../enums';
3
+ import { TimeSeriesOf2D } from '../common';
4
+ import { MaliciousIPCard } from '../common';
6
5
  import { Alert } from '../entities';
7
6
  import { SeverityTypeCode } from '../enums';
7
+ import { MaliciousIPData } from '../common';
8
+ import { TimeSeriesOfFloat } from '../common';
8
9
  import { RuleTypeCode } from '../enums';
10
+ import { IntDistribution } from '../entities';
9
11
  import { StringKeyValue } from '../common';
10
- import { MaliciousIPData } from '../common';
11
- import { MaliciousIPCard } from '../common';
12
- import { EventStatusCode } from '../enums';
12
+ import { EventTypeCode } from '../enums';
13
+ import { EventCategoryCode } from '../enums';
14
+ import { AlertWithDevice } from '../entities';
13
15
  import { DeviceActionCode } from '../enums';
14
- import { TimeSeriesOf2D } from '../common';
15
- import { TimeSeriesOfFloat } from '../common';
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 { DevicesMap } from '../common';
4
+ import { IntDistribution } from '../entities';
2
5
  import { TimeSeriesOfDeviceReport } from '../entities';
3
- import { Device } from '../entities';
4
- import { DeviceTypeCode } from '../enums';
5
6
  import { NetworkMapTypeCode } from '../enums';
6
7
  import { DeviceReport } from '../entities';
7
- import { TimeSeriesOfDataConsumption } from '../common';
8
- import { MapBounds } from '../common';
9
- import { BulkDevices } from '../entities';
10
- import { DeviceStatusCode } from '../enums';
11
8
  import { SeverityTypeCode } from '../enums';
12
- import { NetworkMap } from '../common';
13
9
  import { DeviceWithEvents } from '../entities';
14
- import { IntDistribution } from '../entities';
10
+ import { DeviceStatusCode } from '../enums';
15
11
  import { DeviceActionCode } from '../enums';
16
- import { DevicesMap } from '../common';
12
+ import { BulkDevices } from '../entities';
13
+ import { DeviceTypeCode } from '../enums';
14
+ import { TimeSeriesOfDataConsumption } from '../common';
15
+ import { Device } from '../entities';
16
+ import { NetworkMap } from '../common';
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 { TimeSeriesOfFloat } from '../common';
2
3
  import { SeverityTypeCode } from '../enums';
3
- import { EventCategoryCode } from '../enums';
4
4
  import { EventStatusCode } from '../enums';
5
+ import { MaliciousIPData } from '../common';
6
+ import { IntDistribution } from '../entities';
7
+ import { TimeSeriesOf2D } from '../common';
5
8
  import { MaliciousIPCard } from '../common';
6
9
  import { StringKeyValue } from '../common';
7
10
  import { Event } from '../entities';
8
11
  import { EventTypeCode } from '../enums';
12
+ import { EventCategoryCode } from '../enums';
9
13
  import { RuleTypeCode } from '../enums';
10
14
  import { EventWithDevice } from '../entities';
11
- import { MaliciousIPData } from '../common';
12
- import { IntDistribution } from '../entities';
13
- import { TimeSeriesOf2D } from '../common';
14
- import { TimeSeriesOfFloat } from '../common';
15
15
  export declare class UsrEventsService {
16
16
  private apiUrl;
17
17
  private rest;
@@ -1,11 +1,11 @@
1
1
  import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
2
- import { Rule } from '../entities';
3
2
  import { SeverityTypeCode } from '../enums';
4
3
  import { RuleActivityStatusCode } from '../enums';
5
4
  import { EventTypeCode } from '../enums';
6
5
  import { TimeSeriesOfFloat } from '../common';
7
6
  import { IntDistribution } from '../entities';
8
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 { AccountDTO } from '../entities';
3
2
  import { Image } from '../entities';
4
- import { FeatureCode } from '../enums';
5
3
  import { Stream } from '../entities';
6
- import { UserMemberships } from '../entities';
7
- import { ConfigParam } from '../entities';
4
+ import { FeatureCode } from '../enums';
8
5
  import { LoginParams } from '../common';
9
6
  import { User } from '../entities';
7
+ import { AccountDTO } from '../entities';
10
8
  import { Feature } from '../entities';
9
+ import { UserMemberships } from '../entities';
10
+ import { ConfigParam } from '../entities';
11
11
  export declare class UsrUserService {
12
12
  private apiUrl;
13
13
  private rest;
@@ -1,7 +1,7 @@
1
+ import { Interval } from '../common';
1
2
  import { SeverityConditionConfig } from '../common';
2
3
  import { RuleCountThresholdConfig } from '../common';
3
4
  import { RuleBasedSeverityConditionConfig } from '../common';
4
- import { Interval } from '../common';
5
5
  export declare class DeviceScoreConfig {
6
6
  deviceScoreAlphaFactor: number;
7
7
  occurrenceThreshold: number;
@@ -1,5 +1,5 @@
1
- import { DeviceNode } from '../common';
2
1
  import { MapBounds } from '../common';
2
+ import { DeviceNode } from '../common';
3
3
  export declare class DevicesMap {
4
4
  deviceNodes: DeviceNode[];
5
5
  mapBounds: MapBounds;
@@ -1,5 +1,5 @@
1
- import { Interval } from '../common';
2
1
  import { StringKeyIntValue } from '../common';
2
+ import { Interval } from '../common';
3
3
  export declare class SeriesData {
4
4
  interval: Interval;
5
5
  values: StringKeyIntValue[];
@@ -1,5 +1,5 @@
1
- import { Interval } from '../common';
2
1
  import { SeverityTypeCode } from '../enums';
2
+ import { Interval } from '../common';
3
3
  export declare class SeverityConditionConfig {
4
4
  conditionSeverity: SeverityTypeCode;
5
5
  sevs: SeverityTypeCode[];
@@ -1,5 +1,5 @@
1
- import { TimeFrame } from '../common';
2
1
  import { TimeDataPointFloat } from '../common';
2
+ import { TimeFrame } 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
+ import { AccountTypeCode } from '../enums';
1
3
  import { AccountStatusCode } from '../enums';
2
4
  import { StringKeyValue } from '../common';
3
5
  import { AccountSettings } from '../entities';
4
- import { BaseEntity } from '../base';
5
- import { AccountTypeCode } from '../enums';
6
6
  export declare class Account extends BaseEntity {
7
7
  name: string;
8
8
  externalId: string;
@@ -1,9 +1,9 @@
1
- import { FeatureCode } from '../enums';
2
- import { StringKeyValue } from '../common';
3
- import { AccountSettings } from '../entities';
4
1
  import { BaseEntity } from '../base';
5
2
  import { AccountTypeCode } from '../enums';
6
3
  import { AccountStatusCode } from '../enums';
4
+ import { FeatureCode } from '../enums';
5
+ 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 { IntDistribution } from '../entities';
2
- import { BaseEntity } from '../base';
3
1
  import { AccountTypeCode } from '../enums';
4
2
  import { AccountStatusCode } from '../enums';
5
3
  import { StringKeyValue } from '../common';
6
4
  import { AccountSettings } from '../entities';
7
5
  import { DeviceReport } from '../entities';
6
+ import { IntDistribution } from '../entities';
7
+ import { BaseEntity } from '../base';
8
8
  export declare class AccountReportDTO extends BaseEntity {
9
9
  name: string;
10
10
  externalId: string;
@@ -1,9 +1,9 @@
1
1
  import { EventTypeCode } from '../enums';
2
- import { EventStatusCode } from '../enums';
3
- import { RuleTypeCode } from '../enums';
4
2
  import { StringKeyValue } from '../common';
5
3
  import { BaseEntity } from '../base';
6
4
  import { SeverityTypeCode } from '../enums';
5
+ import { EventStatusCode } from '../enums';
6
+ import { RuleTypeCode } from '../enums';
7
7
  import { GeoData } from '../common';
8
8
  import { EventCategoryCode } from '../enums';
9
9
  import { TrafficDirectionCode } from '../enums';
@@ -1,13 +1,13 @@
1
+ import { EventTypeCode } from '../enums';
1
2
  import { SeverityTypeCode } from '../enums';
2
- import { EventStatusCode } from '../enums';
3
3
  import { RuleTypeCode } from '../enums';
4
4
  import { StringKeyValue } from '../common';
5
- import { EventCategoryCode } from '../enums';
5
+ import { TrafficDirectionCode } from '../enums';
6
6
  import { Device } from '../entities';
7
7
  import { BaseEntity } from '../base';
8
- import { EventTypeCode } from '../enums';
8
+ import { EventStatusCode } from '../enums';
9
9
  import { GeoData } from '../common';
10
- import { TrafficDirectionCode } from '../enums';
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
+ import { DeviceStatusCode } from '../enums';
3
+ import { StringKeyValue } from '../common';
1
4
  import { DeviceActionCode } from '../enums';
2
5
  import { SIM } from '../entities';
3
6
  import { GeoData } from '../common';
4
7
  import { BaseEntity } from '../base';
5
- import { DeviceTypeCode } from '../enums';
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,3 +1,4 @@
1
+ import { BaseEntity } from '../base';
1
2
  import { DeviceTypeCode } from '../enums';
2
3
  import { DeviceStatusCode } from '../enums';
3
4
  import { StringKeyValue } from '../common';
@@ -5,7 +6,6 @@ import { DeviceActionCode } from '../enums';
5
6
  import { SIM } from '../entities';
6
7
  import { Event } from '../entities';
7
8
  import { GeoData } from '../common';
8
- import { BaseEntity } from '../base';
9
9
  export declare class DeviceWithEvents extends BaseEntity {
10
10
  accountId: string;
11
11
  streamId: string;
@@ -1,14 +1,14 @@
1
- import { TrafficDirectionCode } from '../enums';
2
1
  import { SeverityTypeCode } from '../enums';
3
- import { EventStatusCode } from '../enums';
4
2
  import { RuleTypeCode } from '../enums';
5
3
  import { GeoData } from '../common';
6
- import { StringKeyValue } from '../common';
7
- import { EventCategoryCode } from '../enums';
8
4
  import { EventOccurrence } from '../entities';
9
5
  import { EventTypeCode } from '../enums';
10
6
  import { Indicator } from '../common';
7
+ import { StringKeyValue } from '../common';
8
+ import { EventCategoryCode } from '../enums';
9
+ import { TrafficDirectionCode } from '../enums';
11
10
  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 { RuleTypeCode } from '../enums';
2
+ import { GeoData } from '../common';
3
+ import { StringKeyValue } from '../common';
4
+ import { TrafficDirectionCode } from '../enums';
1
5
  import { Device } from '../entities';
2
6
  import { BaseEntity } from '../base';
7
+ import { Indicator } from '../common';
3
8
  import { SeverityTypeCode } from '../enums';
4
9
  import { EventStatusCode } from '../enums';
5
- import { RuleTypeCode } from '../enums';
6
- import { GeoData } from '../common';
10
+ import { EventCategoryCode } from '../enums';
7
11
  import { EventOccurrence } from '../entities';
8
- import { TrafficDirectionCode } from '../enums';
9
12
  import { EventTypeCode } from '../enums';
10
- import { Indicator } from '../common';
11
- import { StringKeyValue } from '../common';
12
- import { EventCategoryCode } from '../enums';
13
13
  export declare class EventWithDevice extends BaseEntity {
14
14
  accountId: string;
15
15
  streamId: string;
@@ -1,5 +1,5 @@
1
- import { BaseEntity } from '../base';
2
1
  import { FeatureCode } from '../enums';
2
+ import { BaseEntity } from '../base';
3
3
  export declare class Feature extends BaseEntity {
4
4
  code: FeatureCode;
5
5
  name: string;
@@ -1,10 +1,10 @@
1
+ import { ConditionDescription } from '../common';
2
+ import { DeviceTypeCode } from '../enums';
3
+ import { EventTypeCode } from '../enums';
1
4
  import { SeverityTypeCode } from '../enums';
2
5
  import { BaseEntity } from '../base';
3
6
  import { RuleTypeCode } from '../enums';
4
7
  import { DataSourceCode } from '../enums';
5
- import { ConditionDescription } from '../common';
6
- import { DeviceTypeCode } from '../enums';
7
- import { EventTypeCode } 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';
1
2
  import { InsightTypeCode } from '../enums';
2
3
  import { InsightStatusCode } from '../enums';
3
4
  import { SeverityTypeCode } from '../enums';
4
5
  import { DirectionContextCode } from '../enums';
5
6
  import { RegulatoryViolation } from '../entities';
6
7
  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';
1
3
  import { BaseEntity } from '../base';
2
4
  import { IntegrationTypeCode } from '../enums';
3
5
  import { IntegrationTriggerCode } from '../enums';
4
6
  import { HttpMethodCode } from '../enums';
5
7
  import { StringKeyValue } from '../common';
6
8
  import { EventTypeCode } from '../enums';
7
- import { SeverityTypeCode } from '../enums';
8
- import { DeviceActionCode } 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 { MemberRoleCode } from '../enums';
2
+ import { BaseEntity } from '../base';
3
3
  export declare class Member extends BaseEntity {
4
4
  userId: string;
5
5
  accountId: string;
@@ -1,10 +1,10 @@
1
+ import { EventTypeCode } from '../enums';
2
+ import { SeverityTypeCode } from '../enums';
1
3
  import { BaseEntity } from '../base';
2
4
  import { RuleTypeCode } from '../enums';
3
5
  import { DataSourceCode } from '../enums';
4
6
  import { ConditionDescription } from '../common';
5
7
  import { DeviceTypeCode } from '../enums';
6
- import { EventTypeCode } from '../enums';
7
- import { SeverityTypeCode } 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';
1
2
  import { SeverityTypeCode } from '../enums';
2
3
  import { BaseEntity } from '../base';
3
4
  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 { BaseEntity } from '../base';
1
2
  import { StringKeyValue } from '../common';
2
3
  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 { EventSeverityConfig } from '../common';
2
+ import { DeviceConfig } from '../common';
1
3
  import { BaseEntity } from '../base';
2
4
  import { Thresholds } from '../common';
3
5
  import { ShieldexConfig } from '../common';
4
- import { EventSeverityConfig } from '../common';
5
- import { DeviceConfig } from '../common';
6
6
  export declare class StreamAnalyticsConfig extends BaseEntity {
7
7
  accountId: string;
8
8
  thresholds: Thresholds;
@@ -1,12 +1,12 @@
1
- import { IdsConfig } from '../entities';
2
1
  import { DataIngestion } from '../entities';
3
- import { SessionTransform } from '../common';
4
2
  import { UsageTransform } from '../common';
5
3
  import { ShieldexConfig } from '../common';
6
- import { Thresholds } from '../common';
7
4
  import { EventSeverityConfig } from '../common';
8
5
  import { DeviceActionCode } from '../enums';
9
6
  import { DeviceConfig } from '../common';
7
+ import { IdsConfig } from '../entities';
8
+ import { SessionTransform } from '../common';
9
+ import { Thresholds } from '../common';
10
10
  export declare class StreamConfig {
11
11
  ingest: DataIngestion;
12
12
  sessionTransform: SessionTransform;
@@ -1,5 +1,5 @@
1
- import { DataPointOfDeviceReport } from '../entities';
2
1
  import { TimeFrame } from '../common';
2
+ import { DataPointOfDeviceReport } from '../entities';
3
3
  export declare class TimeSeriesOfDeviceReport {
4
4
  name: string;
5
5
  range: TimeFrame;
@@ -1,7 +1,7 @@
1
- import { BaseEntity } from '../base';
2
1
  import { UserTypeCode } from '../enums';
3
2
  import { UserStatusCode } from '../enums';
4
3
  import { StringKeyValue } from '../common';
4
+ import { BaseEntity } from '../base';
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';
2
1
  import { UserStatusCode } from '../enums';
3
2
  import { AccountRole } from '../common';
4
3
  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 { AccountRole } from '../common';
2
- import { BaseEntity } from '../base';
3
1
  import { UserTypeCode } from '../enums';
4
2
  import { UserStatusCode } from '../enums';
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;