@shieldiot/pulse-lib 1.0.5 → 1.0.6

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 (246) hide show
  1. package/dist/index.d.ts +4 -2
  2. package/dist/index.js +4 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/lib/common/TimeSeries.d.ts +1 -1
  5. package/dist/lib/common/TimeSeriesOf2D.d.ts +1 -1
  6. package/dist/lib/entities/Account.d.ts +2 -2
  7. package/dist/lib/entities/Account.js.map +1 -1
  8. package/dist/lib/entities/AccountDTO.d.ts +2 -2
  9. package/dist/lib/entities/AccountDTO.js.map +1 -1
  10. package/dist/lib/entities/AccountSettings.d.ts +1 -1
  11. package/dist/lib/entities/Alert.d.ts +4 -4
  12. package/dist/lib/entities/Alert.js.map +1 -1
  13. package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
  14. package/dist/lib/entities/AlertWithDevice.js.map +1 -1
  15. package/dist/lib/entities/Device.d.ts +3 -3
  16. package/dist/lib/entities/Device.js.map +1 -1
  17. package/dist/lib/entities/DeviceWithEvents.d.ts +1 -1
  18. package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
  19. package/dist/lib/entities/Event.d.ts +6 -6
  20. package/dist/lib/entities/Event.js.map +1 -1
  21. package/dist/lib/entities/EventWithDevice.d.ts +5 -5
  22. package/dist/lib/entities/EventWithDevice.js.map +1 -1
  23. package/dist/lib/entities/Feature.d.ts +1 -1
  24. package/dist/lib/entities/Feature.js.map +1 -1
  25. package/dist/lib/entities/Integration.d.ts +3 -3
  26. package/dist/lib/entities/Integration.js.map +1 -1
  27. package/dist/lib/entities/Report.d.ts +1 -1
  28. package/dist/lib/entities/Report.js.map +1 -1
  29. package/dist/lib/entities/Rule.d.ts +3 -3
  30. package/dist/lib/entities/Rule.js.map +1 -1
  31. package/dist/lib/entities/RuleTemplate.d.ts +2 -2
  32. package/dist/lib/entities/RuleTemplate.js.map +1 -1
  33. package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  34. package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  35. package/dist/lib/entities/StreamConfig.d.ts +4 -4
  36. package/dist/lib/entities/User.d.ts +2 -2
  37. package/dist/lib/entities/User.js.map +1 -1
  38. package/dist/lib/entities/UserMembership.d.ts +2 -2
  39. package/dist/lib/entities/UserMembership.js.map +1 -1
  40. package/dist/lib/pulse-client.d.ts +12 -12
  41. package/dist/lib/pulse-client.js +30 -30
  42. package/dist/lib/pulse-client.js.map +1 -1
  43. package/dist/lib/services/sysAccountsService.d.ts +1 -1
  44. package/dist/lib/services/sysFeaturesService.d.ts +1 -1
  45. package/dist/lib/services/usrAlertsService.d.ts +9 -9
  46. package/dist/lib/services/usrDevicesService.d.ts +5 -5
  47. package/dist/lib/services/usrEventsService.d.ts +7 -7
  48. package/package.json +1 -1
  49. package/src/index.ts +4 -3
  50. package/dist/public-api.d.ts +0 -3
  51. package/dist/public-api.js +0 -7
  52. package/dist/public-api.js.map +0 -1
  53. package/src/config.d.ts +0 -6
  54. package/src/config.d.ts.map +0 -1
  55. package/src/config.js +0 -6
  56. package/src/config.js.map +0 -1
  57. package/src/index.d.ts +0 -3
  58. package/src/index.d.ts.map +0 -1
  59. package/src/index.js +0 -3
  60. package/src/index.js.map +0 -1
  61. package/src/lib/common/AccountRole.ts +0 -25
  62. package/src/lib/common/ConsumptionData.ts +0 -24
  63. package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
  64. package/src/lib/common/DeviceConfig.ts +0 -22
  65. package/src/lib/common/DeviceScoreConfig.ts +0 -24
  66. package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
  67. package/src/lib/common/EventSeverityConfig.ts +0 -17
  68. package/src/lib/common/FloatKeyValue.ts +0 -20
  69. package/src/lib/common/GeoData.ts +0 -38
  70. package/src/lib/common/GraphSeries.ts +0 -21
  71. package/src/lib/common/Indicator.ts +0 -32
  72. package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
  73. package/src/lib/common/IntKeyValue.ts +0 -20
  74. package/src/lib/common/Interval.ts +0 -20
  75. package/src/lib/common/Link.ts +0 -41
  76. package/src/lib/common/Location.ts +0 -20
  77. package/src/lib/common/LoginParams.ts +0 -24
  78. package/src/lib/common/MaliciousIPCard.ts +0 -45
  79. package/src/lib/common/MaliciousIPData.ts +0 -28
  80. package/src/lib/common/NetworkMap.ts +0 -22
  81. package/src/lib/common/Node.ts +0 -54
  82. package/src/lib/common/SeriesData.ts +0 -22
  83. package/src/lib/common/SessionTransform.ts +0 -29
  84. package/src/lib/common/SeverityIntervalTuple.ts +0 -22
  85. package/src/lib/common/ShieldexConfig.ts +0 -36
  86. package/src/lib/common/StringIntValue.ts +0 -20
  87. package/src/lib/common/StringKeyIntValue.ts +0 -20
  88. package/src/lib/common/StringKeyValue.ts +0 -20
  89. package/src/lib/common/Thresholds.ts +0 -16
  90. package/src/lib/common/TimeDataPoint.ts +0 -20
  91. package/src/lib/common/TimeDataPoint2D.ts +0 -21
  92. package/src/lib/common/TimeDataPointFloat.ts +0 -20
  93. package/src/lib/common/TimeFrame.ts +0 -20
  94. package/src/lib/common/TimeSeries.ts +0 -26
  95. package/src/lib/common/TimeSeriesOf2D.ts +0 -26
  96. package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
  97. package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
  98. package/src/lib/common/TokenData.ts +0 -39
  99. package/src/lib/common/Tuple.ts +0 -20
  100. package/src/lib/common/UsageTransform.ts +0 -37
  101. package/src/lib/common/ZScore.ts +0 -20
  102. package/src/lib/common/index.ts +0 -41
  103. package/src/lib/entities/Account.ts +0 -45
  104. package/src/lib/entities/AccountDTO.ts +0 -49
  105. package/src/lib/entities/AccountSettings.ts +0 -31
  106. package/src/lib/entities/Action.ts +0 -30
  107. package/src/lib/entities/Alert.ts +0 -91
  108. package/src/lib/entities/AlertWithDevice.ts +0 -92
  109. package/src/lib/entities/ApiKey.ts +0 -33
  110. package/src/lib/entities/AuditLog.ts +0 -39
  111. package/src/lib/entities/BaseEntity.ts +0 -24
  112. package/src/lib/entities/BulkDevices.ts +0 -17
  113. package/src/lib/entities/Checkpoint.ts +0 -71
  114. package/src/lib/entities/ComplianceReportSettings.ts +0 -28
  115. package/src/lib/entities/Condition.ts +0 -28
  116. package/src/lib/entities/ConfigParam.ts +0 -15
  117. package/src/lib/entities/DNSRecord.ts +0 -40
  118. package/src/lib/entities/DataIngestion.ts +0 -63
  119. package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
  120. package/src/lib/entities/Device.ts +0 -82
  121. package/src/lib/entities/DeviceReport.ts +0 -29
  122. package/src/lib/entities/DeviceWithEvents.ts +0 -86
  123. package/src/lib/entities/Distribution.ts +0 -25
  124. package/src/lib/entities/Event.ts +0 -98
  125. package/src/lib/entities/EventOccurrence.ts +0 -34
  126. package/src/lib/entities/EventWithDevice.ts +0 -97
  127. package/src/lib/entities/Feature.ts +0 -18
  128. package/src/lib/entities/FeaturesGroup.ts +0 -18
  129. package/src/lib/entities/Group.ts +0 -24
  130. package/src/lib/entities/Image.ts +0 -18
  131. package/src/lib/entities/Insight.ts +0 -49
  132. package/src/lib/entities/InsightQuery.ts +0 -29
  133. package/src/lib/entities/InsightSpec.ts +0 -28
  134. package/src/lib/entities/IntDistribution.ts +0 -25
  135. package/src/lib/entities/Integration.ts +0 -81
  136. package/src/lib/entities/Member.ts +0 -22
  137. package/src/lib/entities/Radius.ts +0 -45
  138. package/src/lib/entities/Report.ts +0 -37
  139. package/src/lib/entities/Rule.ts +0 -65
  140. package/src/lib/entities/RuleTemplate.ts +0 -38
  141. package/src/lib/entities/SIM.ts +0 -32
  142. package/src/lib/entities/ServiceStatus.ts +0 -26
  143. package/src/lib/entities/SessionRecord.ts +0 -71
  144. package/src/lib/entities/Shieldex.ts +0 -23
  145. package/src/lib/entities/Stream.ts +0 -31
  146. package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
  147. package/src/lib/entities/StreamConfig.ts +0 -52
  148. package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
  149. package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
  150. package/src/lib/entities/UsageRecord.ts +0 -101
  151. package/src/lib/entities/User.ts +0 -45
  152. package/src/lib/entities/UserMembership.ts +0 -38
  153. package/src/lib/entities/UserMemberships.ts +0 -38
  154. package/src/lib/entities/index.ts +0 -51
  155. package/src/lib/enums/AccountStatusCode.ts +0 -35
  156. package/src/lib/enums/AccountTypeCode.ts +0 -40
  157. package/src/lib/enums/DataSourceCode.ts +0 -35
  158. package/src/lib/enums/DeviceActionCode.ts +0 -40
  159. package/src/lib/enums/DeviceCreationCode.ts +0 -40
  160. package/src/lib/enums/DeviceIdentityCode.ts +0 -55
  161. package/src/lib/enums/DeviceStatusCode.ts +0 -40
  162. package/src/lib/enums/DeviceTypeCode.ts +0 -90
  163. package/src/lib/enums/DirectionContextCode.ts +0 -40
  164. package/src/lib/enums/EventCategoryCode.ts +0 -30
  165. package/src/lib/enums/EventStatusCode.ts +0 -40
  166. package/src/lib/enums/EventTypeCode.ts +0 -115
  167. package/src/lib/enums/FeatureCode.ts +0 -70
  168. package/src/lib/enums/HomePageViewCode.ts +0 -35
  169. package/src/lib/enums/HttpMethodCode.ts +0 -45
  170. package/src/lib/enums/InsightStatusCode.ts +0 -35
  171. package/src/lib/enums/InsightTypeCode.ts +0 -30
  172. package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
  173. package/src/lib/enums/IntegrationTypeCode.ts +0 -40
  174. package/src/lib/enums/MemberRoleCode.ts +0 -40
  175. package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
  176. package/src/lib/enums/OperatorCode.ts +0 -75
  177. package/src/lib/enums/PermissionCode.ts +0 -45
  178. package/src/lib/enums/ReportTypeCode.ts +0 -35
  179. package/src/lib/enums/RuleTypeCode.ts +0 -35
  180. package/src/lib/enums/SeverityTypeCode.ts +0 -40
  181. package/src/lib/enums/TrafficDirectionCode.ts +0 -35
  182. package/src/lib/enums/UserStatusCode.ts +0 -40
  183. package/src/lib/enums/UserTypeCode.ts +0 -40
  184. package/src/lib/enums/index.ts +0 -29
  185. package/src/lib/index.ts +0 -4
  186. package/src/lib/pulse-client.ts +0 -190
  187. package/src/lib/services/index.ts +0 -26
  188. package/src/lib/services/services.export.ts +0 -54
  189. package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
  190. package/src/lib/services/sysAccountsService.ts +0 -90
  191. package/src/lib/services/sysAuditLogService.ts +0 -72
  192. package/src/lib/services/sysCheckpointsService.ts +0 -62
  193. package/src/lib/services/sysConfigService.ts +0 -63
  194. package/src/lib/services/sysFeaturesService.ts +0 -77
  195. package/src/lib/services/sysGroupsService.ts +0 -85
  196. package/src/lib/services/sysInsightsService.ts +0 -122
  197. package/src/lib/services/sysKeysService.ts +0 -71
  198. package/src/lib/services/sysMembersService.ts +0 -66
  199. package/src/lib/services/sysRuleTemplatesService.ts +0 -63
  200. package/src/lib/services/sysRulesService.ts +0 -79
  201. package/src/lib/services/sysStatisticsService.ts +0 -50
  202. package/src/lib/services/sysStreamsService.ts +0 -64
  203. package/src/lib/services/sysUsersService.ts +0 -89
  204. package/src/lib/services/usrAlertsService.ts +0 -382
  205. package/src/lib/services/usrDevicesService.ts +0 -303
  206. package/src/lib/services/usrEventsService.ts +0 -355
  207. package/src/lib/services/usrInsightsService.ts +0 -29
  208. package/src/lib/services/usrIntegrationsService.ts +0 -79
  209. package/src/lib/services/usrMembersService.ts +0 -77
  210. package/src/lib/services/usrNetworkService.ts +0 -59
  211. package/src/lib/services/usrReportsService.ts +0 -114
  212. package/src/lib/services/usrRulesService.ts +0 -78
  213. package/src/lib/services/usrUserService.ts +0 -114
  214. package/src/public-api.d.ts +0 -4
  215. package/src/public-api.d.ts.map +0 -1
  216. package/src/public-api.js +0 -7
  217. package/src/public-api.js.map +0 -1
  218. package/src/public-api.ts +0 -9
  219. package/src/utils/ActionResponse.d.ts +0 -6
  220. package/src/utils/ActionResponse.d.ts.map +0 -1
  221. package/src/utils/ActionResponse.js +0 -9
  222. package/src/utils/ActionResponse.js.map +0 -1
  223. package/src/utils/BaseRestResponse.d.ts +0 -5
  224. package/src/utils/BaseRestResponse.d.ts.map +0 -1
  225. package/src/utils/BaseRestResponse.js +0 -8
  226. package/src/utils/BaseRestResponse.js.map +0 -1
  227. package/src/utils/EntitiesResponse.d.ts +0 -9
  228. package/src/utils/EntitiesResponse.d.ts.map +0 -1
  229. package/src/utils/EntitiesResponse.js +0 -15
  230. package/src/utils/EntitiesResponse.js.map +0 -1
  231. package/src/utils/EntityResponse.d.ts +0 -9
  232. package/src/utils/EntityResponse.d.ts.map +0 -1
  233. package/src/utils/EntityResponse.js +0 -15
  234. package/src/utils/EntityResponse.js.map +0 -1
  235. package/src/utils/index.d.ts +0 -6
  236. package/src/utils/index.d.ts.map +0 -1
  237. package/src/utils/index.js +0 -6
  238. package/src/utils/index.js.map +0 -1
  239. package/src/utils/rest-axios-setup.d.ts +0 -4
  240. package/src/utils/rest-axios-setup.d.ts.map +0 -1
  241. package/src/utils/rest-axios-setup.js +0 -8
  242. package/src/utils/rest-axios-setup.js.map +0 -1
  243. package/src/utils/rest-util.d.ts +0 -16
  244. package/src/utils/rest-util.d.ts.map +0 -1
  245. package/src/utils/rest-util.js +0 -101
  246. package/src/utils/rest-util.js.map +0 -1
@@ -1,22 +0,0 @@
1
- import { Node } from '../common';
2
- import { Link } from '../common';
3
-
4
-
5
-
6
- // NetworkMap is a data structure representing a set of nodes and vertex representing a network
7
- export class NetworkMap {
8
-
9
- // List of nodes
10
- public nodes: Node[];
11
-
12
- // List of links
13
- public links: Link[];
14
-
15
- constructor(nodes?: Node[], links?: Link[]) {
16
- if (nodes !== undefined) { this.nodes = nodes; }
17
- if (links !== undefined) { this.links = links; }
18
- }
19
-
20
- }
21
-
22
-
@@ -1,54 +0,0 @@
1
- import { DeviceTypeCode } from '../enums';
2
- import { StringKeyValue } from '../common';
3
-
4
-
5
-
6
- // Node represents a vertex in a network map
7
- export class Node {
8
-
9
- // Node Id
10
- public id: string;
11
-
12
- // Node name
13
- public name: string;
14
-
15
- // Node IP
16
- public ip: string;
17
-
18
- // Device type (for nodes representing a device)
19
- public type: DeviceTypeCode;
20
-
21
- // Device current security score
22
- public score: number;
23
-
24
- // List of device tags
25
- public tags: string[];
26
-
27
- // Custom attributes (key-value pairs)
28
- public labels: StringKeyValue[];
29
-
30
- // Number of events for the time period (calculated field)
31
- public eventCount: number;
32
-
33
- // Is aggregated node
34
- public isGroup: boolean;
35
-
36
- //
37
- public deviceCount: number;
38
-
39
- constructor(id?: string, name?: string, ip?: string, type?: DeviceTypeCode, score?: number, tags?: string[], labels?: StringKeyValue[], eventCount?: number, isGroup?: boolean, deviceCount?: number) {
40
- if (id !== undefined) { this.id = id; }
41
- if (name !== undefined) { this.name = name; }
42
- if (ip !== undefined) { this.ip = ip; }
43
- if (type !== undefined) { this.type = type; }
44
- if (score !== undefined) { this.score = score; }
45
- if (tags !== undefined) { this.tags = tags; }
46
- if (labels !== undefined) { this.labels = labels; }
47
- if (eventCount !== undefined) { this.eventCount = eventCount; }
48
- if (isGroup !== undefined) { this.isGroup = isGroup; }
49
- if (deviceCount !== undefined) { this.deviceCount = deviceCount; }
50
- }
51
-
52
- }
53
-
54
-
@@ -1,22 +0,0 @@
1
- import { Interval } from '../common';
2
- import { StringKeyIntValue } from '../common';
3
-
4
-
5
-
6
- // SeriesData model represents a generic datapoint in interval range
7
- export class SeriesData {
8
-
9
- // Data interval
10
- public interval: Interval;
11
-
12
- // Custom attributes (key-value pairs)
13
- public values: StringKeyIntValue[];
14
-
15
- constructor(interval?: Interval, values?: StringKeyIntValue[]) {
16
- if (interval !== undefined) { this.interval = interval; }
17
- if (values !== undefined) { this.values = values; }
18
- }
19
-
20
- }
21
-
22
-
@@ -1,29 +0,0 @@
1
- import { ZScore } from '../common';
2
-
3
-
4
-
5
- // Session data transformation parameters (to calculate z-score)
6
- export class SessionTransform {
7
-
8
- // ZScore parameters for incoming packets (to the device)
9
- public packetsIn: ZScore;
10
-
11
- // ZScore parameters for outgoing packets (from the device)
12
- public packetsOut: ZScore;
13
-
14
- // ZScore parameters for total number of incoming bytes (to the device)
15
- public bytesIn: ZScore;
16
-
17
- // ZScore parameters for total number of outgoing bytes (from the device)
18
- public bytesOut: ZScore;
19
-
20
- constructor(packetsIn?: ZScore, packetsOut?: ZScore, bytesIn?: ZScore, bytesOut?: ZScore) {
21
- if (packetsIn !== undefined) { this.packetsIn = packetsIn; }
22
- if (packetsOut !== undefined) { this.packetsOut = packetsOut; }
23
- if (bytesIn !== undefined) { this.bytesIn = bytesIn; }
24
- if (bytesOut !== undefined) { this.bytesOut = bytesOut; }
25
- }
26
-
27
- }
28
-
29
-
@@ -1,22 +0,0 @@
1
- import { SeverityTypeCode } from '../enums';
2
- import { Interval } from '../common';
3
-
4
-
5
-
6
- // SeverityIntervalTuple is tuple of SeverityTypeCode and Interval
7
- export class SeverityIntervalTuple {
8
-
9
- // Event severity type code
10
- public severity: SeverityTypeCode;
11
-
12
- // Severity interval from-to
13
- public interval: Interval;
14
-
15
- constructor(severity?: SeverityTypeCode, interval?: Interval) {
16
- if (severity !== undefined) { this.severity = severity; }
17
- if (interval !== undefined) { this.interval = interval; }
18
- }
19
-
20
- }
21
-
22
-
@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
- // ShieldexConfig is a shieldex configuration values for the Risk calculation
5
- export class ShieldexConfig {
6
-
7
- // Deprecated: Alpha weight factor for shieldex calculation
8
- public alphaWeightFactor: number;
9
-
10
- // Deprecated: Percent factor for shieldex calculation
11
- public percentFactor: number;
12
-
13
- // Low risk devices weight
14
- public lowRiskWeight: number;
15
-
16
- // Medium risk devices weight
17
- public mediumRiskWeight: number;
18
-
19
- // High risk devices weight
20
- public highRiskWeight: number;
21
-
22
- // Critical risk devices weight
23
- public criticalRiskWeight: number;
24
-
25
- constructor(alphaWeightFactor?: number, percentFactor?: number, lowRiskWeight?: number, mediumRiskWeight?: number, highRiskWeight?: number, criticalRiskWeight?: number) {
26
- if (alphaWeightFactor !== undefined) { this.alphaWeightFactor = alphaWeightFactor; }
27
- if (percentFactor !== undefined) { this.percentFactor = percentFactor; }
28
- if (lowRiskWeight !== undefined) { this.lowRiskWeight = lowRiskWeight; }
29
- if (mediumRiskWeight !== undefined) { this.mediumRiskWeight = mediumRiskWeight; }
30
- if (highRiskWeight !== undefined) { this.highRiskWeight = highRiskWeight; }
31
- if (criticalRiskWeight !== undefined) { this.criticalRiskWeight = criticalRiskWeight; }
32
- }
33
-
34
- }
35
-
36
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // String Int Value tuple
5
- export class StringIntValue {
6
-
7
- // Key of tuple
8
- public key: string;
9
-
10
- // Value of tuple
11
- public value: number;
12
-
13
- constructor(key?: string, value?: number) {
14
- if (key !== undefined) { this.key = key; }
15
- if (value !== undefined) { this.value = value; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // Key Value string to int tuple
5
- export class StringKeyIntValue {
6
-
7
- // Key of tuple
8
- public key: string;
9
-
10
- // Value of tuple
11
- public value: number;
12
-
13
- constructor(key?: string, value?: number) {
14
- if (key !== undefined) { this.key = key; }
15
- if (value !== undefined) { this.value = value; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // Key Value string tuple
5
- export class StringKeyValue {
6
-
7
- // Key of tuple
8
- public key: string;
9
-
10
- // Value of tuple
11
- public value: string;
12
-
13
- constructor(key?: string, value?: string) {
14
- if (key !== undefined) { this.key = key; }
15
- if (value !== undefined) { this.value = value; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,16 +0,0 @@
1
-
2
-
3
-
4
- // Thresholds is a list of stream configuration thresholds
5
- export class Thresholds {
6
-
7
- // Total time (in minutes) from the last device activity to change the device status to INACTIVE
8
- public inactiveDeviceWindowMin: number;
9
-
10
- constructor(inactiveDeviceWindowMin?: number) {
11
- if (inactiveDeviceWindowMin !== undefined) { this.inactiveDeviceWindowMin = inactiveDeviceWindowMin; }
12
- }
13
-
14
- }
15
-
16
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // TimeDataPoint model represents a generic datapoint in time
5
- export class TimeDataPoint {
6
-
7
- // Sata point timestamp [Epoch milliseconds Timestamp]
8
- public timestamp: number;
9
-
10
- // Generic value
11
- public value: any;
12
-
13
- constructor(timestamp?: number, value?: any) {
14
- if (timestamp !== undefined) { this.timestamp = timestamp; }
15
- if (value !== undefined) { this.value = value; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,21 +0,0 @@
1
- import { FloatKeyValue } from '../common';
2
-
3
-
4
-
5
- // TimeDataPoint2D model represents a 2 dimensions datapoint in time
6
- export class TimeDataPoint2D {
7
-
8
- // Sata point timestamp [Epoch milliseconds Timestamp]
9
- public timestamp: number;
10
-
11
- // Float value
12
- public value: FloatKeyValue[];
13
-
14
- constructor(timestamp?: number, value?: FloatKeyValue[]) {
15
- if (timestamp !== undefined) { this.timestamp = timestamp; }
16
- if (value !== undefined) { this.value = value; }
17
- }
18
-
19
- }
20
-
21
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // TimeDataPointFloat model represents a float datapoint in time
5
- export class TimeDataPointFloat {
6
-
7
- // Sata point timestamp [Epoch milliseconds Timestamp]
8
- public timestamp: number;
9
-
10
- // Float value
11
- public value: number;
12
-
13
- constructor(timestamp?: number, value?: number) {
14
- if (timestamp !== undefined) { this.timestamp = timestamp; }
15
- if (value !== undefined) { this.value = value; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // TimeFrame represents a finite time window (from - to)
5
- export class TimeFrame {
6
-
7
- // Start window time [Epoch milliseconds Timestamp]
8
- public from: number;
9
-
10
- // End window time [Epoch milliseconds Timestamp]
11
- public to: number;
12
-
13
- constructor(from?: number, to?: number) {
14
- if (from !== undefined) { this.from = from; }
15
- if (to !== undefined) { this.to = to; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,26 +0,0 @@
1
- import { TimeFrame } from '../common';
2
- import { TimeDataPoint } from '../common';
3
-
4
-
5
-
6
- // TimeSeries model represents a generic set of data points over time
7
- export class TimeSeries {
8
-
9
- // Name of the time series
10
- public name: string;
11
-
12
- // Range of the series (from ... to)
13
- public range: TimeFrame;
14
-
15
- // Series of generic data points
16
- public values: TimeDataPoint[];
17
-
18
- constructor(name?: string, range?: TimeFrame, values?: TimeDataPoint[]) {
19
- if (name !== undefined) { this.name = name; }
20
- if (range !== undefined) { this.range = range; }
21
- if (values !== undefined) { this.values = values; }
22
- }
23
-
24
- }
25
-
26
-
@@ -1,26 +0,0 @@
1
- import { TimeFrame } from '../common';
2
- import { TimeDataPoint2D } from '../common';
3
-
4
-
5
-
6
- // TimeSeriesOf2D model represents a 2 dimension samples over time
7
- export class TimeSeriesOf2D {
8
-
9
- // Name of the time series
10
- public name: string;
11
-
12
- // Range of the series (from ... to)
13
- public range: TimeFrame;
14
-
15
- // Series of float data points
16
- public values: TimeDataPoint2D[];
17
-
18
- constructor(name?: string, range?: TimeFrame, values?: TimeDataPoint2D[]) {
19
- if (name !== undefined) { this.name = name; }
20
- if (range !== undefined) { this.range = range; }
21
- if (values !== undefined) { this.values = values; }
22
- }
23
-
24
- }
25
-
26
-
@@ -1,26 +0,0 @@
1
- import { TimeFrame } from '../common';
2
- import { ConsumptionTimeDataPoint } from '../common';
3
-
4
-
5
-
6
- // TimeSeriesOfDataConsumption model represents a data consumption (in, out, total Kb) samples over time
7
- export class TimeSeriesOfDataConsumption {
8
-
9
- // Name of the time series
10
- public name: string;
11
-
12
- // Range of the series (from ... to)
13
- public range: TimeFrame;
14
-
15
- // Series of consumption data points
16
- public values: ConsumptionTimeDataPoint[];
17
-
18
- constructor(name?: string, range?: TimeFrame, values?: ConsumptionTimeDataPoint[]) {
19
- if (name !== undefined) { this.name = name; }
20
- if (range !== undefined) { this.range = range; }
21
- if (values !== undefined) { this.values = values; }
22
- }
23
-
24
- }
25
-
26
-
@@ -1,26 +0,0 @@
1
- import { TimeFrame } from '../common';
2
- import { TimeDataPointFloat } from '../common';
3
-
4
-
5
-
6
- // TimeSeriesOfFloat model represents a float set of data points over time
7
- export class TimeSeriesOfFloat {
8
-
9
- // Name of the time series
10
- public name: string;
11
-
12
- // Range of the series (from ... to)
13
- public range: TimeFrame;
14
-
15
- // Series of float data points
16
- public values: TimeDataPointFloat[];
17
-
18
- constructor(name?: string, range?: TimeFrame, values?: TimeDataPointFloat[]) {
19
- if (name !== undefined) { this.name = name; }
20
- if (range !== undefined) { this.range = range; }
21
- if (values !== undefined) { this.values = values; }
22
- }
23
-
24
- }
25
-
26
-
@@ -1,39 +0,0 @@
1
- import { UserStatusCode } from '../enums';
2
- import { UserTypeCode } from '../enums';
3
- import { MemberRoleCode } from '../enums';
4
-
5
-
6
-
7
- // TokenData model represents a user in account which is encrypted with the JWT token
8
- export class TokenData {
9
-
10
- // Account ID
11
- public accountId: string;
12
-
13
- // Authenticated subject ID (can be user, or service account)
14
- public subjectId: string;
15
-
16
- // Subject type: UNDEFINED | SYSADMIN | USER | SERVICE_ACCOUNT
17
- public subjectType: UserTypeCode;
18
-
19
- // Role of user in the account: UNDEFINED | ADMIN | USER
20
- public role: MemberRoleCode;
21
-
22
- // User status: UNDEFINED | PENDING | ACTIVE | BLOCKED | SUSPENDED
23
- public status: UserStatusCode;
24
-
25
- // Token expiration [Epoch milliseconds Timestamp]
26
- public expiresIn: number;
27
-
28
- constructor(accountId?: string, subjectId?: string, subjectType?: UserTypeCode, role?: MemberRoleCode, status?: UserStatusCode, expiresIn?: number) {
29
- if (accountId !== undefined) { this.accountId = accountId; }
30
- if (subjectId !== undefined) { this.subjectId = subjectId; }
31
- if (subjectType !== undefined) { this.subjectType = subjectType; }
32
- if (role !== undefined) { this.role = role; }
33
- if (status !== undefined) { this.status = status; }
34
- if (expiresIn !== undefined) { this.expiresIn = expiresIn; }
35
- }
36
-
37
- }
38
-
39
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // Tuple model represents a generic key-value pair
5
- export class Tuple {
6
-
7
- // Generic key
8
- public key: any;
9
-
10
- // Generic value
11
- public value: any;
12
-
13
- constructor(key?: any, value?: any) {
14
- if (key !== undefined) { this.key = key; }
15
- if (value !== undefined) { this.value = value; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,37 +0,0 @@
1
- import { ZScore } from '../common';
2
-
3
-
4
-
5
- // Usage data transformation parameters (to calculate z-score)
6
- export class UsageTransform {
7
-
8
- // ZScore parameters for incoming packets (to the device)
9
- public packetsIn: ZScore;
10
-
11
- // ZScore parameters for outgoing packets (from the device)
12
- public packetsOut: ZScore;
13
-
14
- // ZScore parameters for total number of incoming bytes (to the device)
15
- public bytesIn: ZScore;
16
-
17
- // ZScore parameters for total number of outgoing bytes (from the device)
18
- public bytesOut: ZScore;
19
-
20
- // ZScore parameters for total number of destination endpoints
21
- public endpointsCount: ZScore;
22
-
23
- // ZScore parameters for total number of destination ports
24
- public portsCount: ZScore;
25
-
26
- constructor(packetsIn?: ZScore, packetsOut?: ZScore, bytesIn?: ZScore, bytesOut?: ZScore, endpointsCount?: ZScore, portsCount?: ZScore) {
27
- if (packetsIn !== undefined) { this.packetsIn = packetsIn; }
28
- if (packetsOut !== undefined) { this.packetsOut = packetsOut; }
29
- if (bytesIn !== undefined) { this.bytesIn = bytesIn; }
30
- if (bytesOut !== undefined) { this.bytesOut = bytesOut; }
31
- if (endpointsCount !== undefined) { this.endpointsCount = endpointsCount; }
32
- if (portsCount !== undefined) { this.portsCount = portsCount; }
33
- }
34
-
35
- }
36
-
37
-
@@ -1,20 +0,0 @@
1
-
2
-
3
-
4
- // ZScore parameters
5
- export class ZScore {
6
-
7
- // Mean value
8
- public mean: number;
9
-
10
- // Standard Deviation
11
- public sD: number;
12
-
13
- constructor(mean?: number, sD?: number) {
14
- if (mean !== undefined) { this.mean = mean; }
15
- if (sD !== undefined) { this.sD = sD; }
16
- }
17
-
18
- }
19
-
20
-
@@ -1,41 +0,0 @@
1
- export * from './AccountRole';
2
- export * from './ConsumptionData';
3
- export * from './ConsumptionTimeDataPoint';
4
- export * from './DeviceConfig';
5
- export * from './DeviceScoreConfig';
6
- export * from './DevicesAtRiskConfig';
7
- export * from './EventSeverityConfig';
8
- export * from './FloatKeyValue';
9
- export * from './GeoData';
10
- export * from './GraphSeries';
11
- export * from './Indicator';
12
- export * from './IntKeySeriesDataValue';
13
- export * from './IntKeyValue';
14
- export * from './Interval';
15
- export * from './Link';
16
- export * from './Location';
17
- export * from './LoginParams';
18
- export * from './MaliciousIPCard';
19
- export * from './MaliciousIPData';
20
- export * from './NetworkMap';
21
- export * from './Node';
22
- export * from './SeriesData';
23
- export * from './SessionTransform';
24
- export * from './SeverityIntervalTuple';
25
- export * from './ShieldexConfig';
26
- export * from './StringIntValue';
27
- export * from './StringKeyIntValue';
28
- export * from './StringKeyValue';
29
- export * from './Thresholds';
30
- export * from './TimeDataPoint';
31
- export * from './TimeDataPoint2D';
32
- export * from './TimeDataPointFloat';
33
- export * from './TimeFrame';
34
- export * from './TimeSeries';
35
- export * from './TimeSeriesOf2D';
36
- export * from './TimeSeriesOfDataConsumption';
37
- export * from './TimeSeriesOfFloat';
38
- export * from './TokenData';
39
- export * from './Tuple';
40
- export * from './UsageTransform';
41
- export * from './ZScore';
@@ -1,45 +0,0 @@
1
- import { BaseEntity } from '../entities';
2
- import { AccountTypeCode } from '../enums';
3
- import { AccountStatusCode } from '../enums';
4
- import { StringKeyValue } from '../common';
5
- import { AccountSettings } from '../entities';
6
-
7
-
8
-
9
- // Account entity in the system represents customer account
10
- export class Account extends BaseEntity {
11
-
12
- // Account name
13
- public name: string;
14
-
15
- // The account identity in the external system (e.g. Billing, CRM etc) @json:externalId"`
16
- public externalId: string;
17
-
18
- // Account description
19
- public description: string;
20
-
21
- // Account Type: UNDEFINED | DEMO | TRIAL | PARTNER | CUSTOMER
22
- public type: AccountTypeCode;
23
-
24
- // Account status: UNDEFINED | ACTIVE | SUSPENDED
25
- public status: AccountStatusCode;
26
-
27
- // List of associated account groups (for feature toggle)
28
- public groups: string[];
29
-
30
- // When the account will be expired [Epoch milliseconds Timestamp] (0 means no expiration time)
31
- public expiredOn: number;
32
-
33
- // Additional user defined tags
34
- public tags: string[];
35
-
36
- // List of custom attributes (key-value pairs)
37
- public labels: StringKeyValue[];
38
-
39
- // Account specific attributes
40
- public settings: AccountSettings;
41
-
42
-
43
- }
44
-
45
-