@shieldiot/pulse-lib 1.0.5 → 1.0.7

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 (244) 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/SeverityIntervalTuple.d.ts +1 -1
  5. package/dist/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  6. package/dist/lib/common/TokenData.d.ts +1 -1
  7. package/dist/lib/entities/Account.d.ts +1 -1
  8. package/dist/lib/entities/Account.js.map +1 -1
  9. package/dist/lib/entities/AccountDTO.d.ts +3 -3
  10. package/dist/lib/entities/AccountDTO.js.map +1 -1
  11. package/dist/lib/entities/AccountSettings.d.ts +1 -1
  12. package/dist/lib/entities/Alert.d.ts +4 -4
  13. package/dist/lib/entities/Alert.js.map +1 -1
  14. package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
  15. package/dist/lib/entities/AlertWithDevice.js.map +1 -1
  16. package/dist/lib/entities/ApiKey.d.ts +1 -1
  17. package/dist/lib/entities/ApiKey.js.map +1 -1
  18. package/dist/lib/entities/DeviceWithEvents.d.ts +2 -2
  19. package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
  20. package/dist/lib/entities/Event.d.ts +3 -3
  21. package/dist/lib/entities/Event.js.map +1 -1
  22. package/dist/lib/entities/EventWithDevice.d.ts +7 -7
  23. package/dist/lib/entities/EventWithDevice.js.map +1 -1
  24. package/dist/lib/entities/Feature.d.ts +1 -1
  25. package/dist/lib/entities/Feature.js.map +1 -1
  26. package/dist/lib/entities/Insight.d.ts +1 -1
  27. package/dist/lib/entities/Insight.js.map +1 -1
  28. package/dist/lib/entities/Integration.d.ts +2 -2
  29. package/dist/lib/entities/Integration.js.map +1 -1
  30. package/dist/lib/entities/Rule.d.ts +1 -1
  31. package/dist/lib/entities/Rule.js.map +1 -1
  32. package/dist/lib/entities/RuleTemplate.d.ts +1 -1
  33. package/dist/lib/entities/RuleTemplate.js.map +1 -1
  34. package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  35. package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  36. package/dist/lib/entities/StreamConfig.d.ts +2 -2
  37. package/dist/lib/services/sysAccountsService.d.ts +2 -2
  38. package/dist/lib/services/sysFeaturesService.d.ts +1 -1
  39. package/dist/lib/services/sysRulesService.d.ts +1 -1
  40. package/dist/lib/services/sysUsersService.d.ts +2 -2
  41. package/dist/lib/services/usrAlertsService.d.ts +9 -9
  42. package/dist/lib/services/usrDevicesService.d.ts +7 -7
  43. package/dist/lib/services/usrEventsService.d.ts +8 -8
  44. package/dist/lib/services/usrRulesService.d.ts +1 -1
  45. package/dist/lib/services/usrUserService.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/src/index.ts +4 -3
  48. package/dist/public-api.d.ts +0 -3
  49. package/dist/public-api.js +0 -7
  50. package/dist/public-api.js.map +0 -1
  51. package/src/config.d.ts +0 -6
  52. package/src/config.d.ts.map +0 -1
  53. package/src/config.js +0 -6
  54. package/src/config.js.map +0 -1
  55. package/src/index.d.ts +0 -3
  56. package/src/index.d.ts.map +0 -1
  57. package/src/index.js +0 -3
  58. package/src/index.js.map +0 -1
  59. package/src/lib/common/AccountRole.ts +0 -25
  60. package/src/lib/common/ConsumptionData.ts +0 -24
  61. package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
  62. package/src/lib/common/DeviceConfig.ts +0 -22
  63. package/src/lib/common/DeviceScoreConfig.ts +0 -24
  64. package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
  65. package/src/lib/common/EventSeverityConfig.ts +0 -17
  66. package/src/lib/common/FloatKeyValue.ts +0 -20
  67. package/src/lib/common/GeoData.ts +0 -38
  68. package/src/lib/common/GraphSeries.ts +0 -21
  69. package/src/lib/common/Indicator.ts +0 -32
  70. package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
  71. package/src/lib/common/IntKeyValue.ts +0 -20
  72. package/src/lib/common/Interval.ts +0 -20
  73. package/src/lib/common/Link.ts +0 -41
  74. package/src/lib/common/Location.ts +0 -20
  75. package/src/lib/common/LoginParams.ts +0 -24
  76. package/src/lib/common/MaliciousIPCard.ts +0 -45
  77. package/src/lib/common/MaliciousIPData.ts +0 -28
  78. package/src/lib/common/NetworkMap.ts +0 -22
  79. package/src/lib/common/Node.ts +0 -54
  80. package/src/lib/common/SeriesData.ts +0 -22
  81. package/src/lib/common/SessionTransform.ts +0 -29
  82. package/src/lib/common/SeverityIntervalTuple.ts +0 -22
  83. package/src/lib/common/ShieldexConfig.ts +0 -36
  84. package/src/lib/common/StringIntValue.ts +0 -20
  85. package/src/lib/common/StringKeyIntValue.ts +0 -20
  86. package/src/lib/common/StringKeyValue.ts +0 -20
  87. package/src/lib/common/Thresholds.ts +0 -16
  88. package/src/lib/common/TimeDataPoint.ts +0 -20
  89. package/src/lib/common/TimeDataPoint2D.ts +0 -21
  90. package/src/lib/common/TimeDataPointFloat.ts +0 -20
  91. package/src/lib/common/TimeFrame.ts +0 -20
  92. package/src/lib/common/TimeSeries.ts +0 -26
  93. package/src/lib/common/TimeSeriesOf2D.ts +0 -26
  94. package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
  95. package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
  96. package/src/lib/common/TokenData.ts +0 -39
  97. package/src/lib/common/Tuple.ts +0 -20
  98. package/src/lib/common/UsageTransform.ts +0 -37
  99. package/src/lib/common/ZScore.ts +0 -20
  100. package/src/lib/common/index.ts +0 -41
  101. package/src/lib/entities/Account.ts +0 -45
  102. package/src/lib/entities/AccountDTO.ts +0 -49
  103. package/src/lib/entities/AccountSettings.ts +0 -31
  104. package/src/lib/entities/Action.ts +0 -30
  105. package/src/lib/entities/Alert.ts +0 -91
  106. package/src/lib/entities/AlertWithDevice.ts +0 -92
  107. package/src/lib/entities/ApiKey.ts +0 -33
  108. package/src/lib/entities/AuditLog.ts +0 -39
  109. package/src/lib/entities/BaseEntity.ts +0 -24
  110. package/src/lib/entities/BulkDevices.ts +0 -17
  111. package/src/lib/entities/Checkpoint.ts +0 -71
  112. package/src/lib/entities/ComplianceReportSettings.ts +0 -28
  113. package/src/lib/entities/Condition.ts +0 -28
  114. package/src/lib/entities/ConfigParam.ts +0 -15
  115. package/src/lib/entities/DNSRecord.ts +0 -40
  116. package/src/lib/entities/DataIngestion.ts +0 -63
  117. package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
  118. package/src/lib/entities/Device.ts +0 -82
  119. package/src/lib/entities/DeviceReport.ts +0 -29
  120. package/src/lib/entities/DeviceWithEvents.ts +0 -86
  121. package/src/lib/entities/Distribution.ts +0 -25
  122. package/src/lib/entities/Event.ts +0 -98
  123. package/src/lib/entities/EventOccurrence.ts +0 -34
  124. package/src/lib/entities/EventWithDevice.ts +0 -97
  125. package/src/lib/entities/Feature.ts +0 -18
  126. package/src/lib/entities/FeaturesGroup.ts +0 -18
  127. package/src/lib/entities/Group.ts +0 -24
  128. package/src/lib/entities/Image.ts +0 -18
  129. package/src/lib/entities/Insight.ts +0 -49
  130. package/src/lib/entities/InsightQuery.ts +0 -29
  131. package/src/lib/entities/InsightSpec.ts +0 -28
  132. package/src/lib/entities/IntDistribution.ts +0 -25
  133. package/src/lib/entities/Integration.ts +0 -81
  134. package/src/lib/entities/Member.ts +0 -22
  135. package/src/lib/entities/Radius.ts +0 -45
  136. package/src/lib/entities/Report.ts +0 -37
  137. package/src/lib/entities/Rule.ts +0 -65
  138. package/src/lib/entities/RuleTemplate.ts +0 -38
  139. package/src/lib/entities/SIM.ts +0 -32
  140. package/src/lib/entities/ServiceStatus.ts +0 -26
  141. package/src/lib/entities/SessionRecord.ts +0 -71
  142. package/src/lib/entities/Shieldex.ts +0 -23
  143. package/src/lib/entities/Stream.ts +0 -31
  144. package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
  145. package/src/lib/entities/StreamConfig.ts +0 -52
  146. package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
  147. package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
  148. package/src/lib/entities/UsageRecord.ts +0 -101
  149. package/src/lib/entities/User.ts +0 -45
  150. package/src/lib/entities/UserMembership.ts +0 -38
  151. package/src/lib/entities/UserMemberships.ts +0 -38
  152. package/src/lib/entities/index.ts +0 -51
  153. package/src/lib/enums/AccountStatusCode.ts +0 -35
  154. package/src/lib/enums/AccountTypeCode.ts +0 -40
  155. package/src/lib/enums/DataSourceCode.ts +0 -35
  156. package/src/lib/enums/DeviceActionCode.ts +0 -40
  157. package/src/lib/enums/DeviceCreationCode.ts +0 -40
  158. package/src/lib/enums/DeviceIdentityCode.ts +0 -55
  159. package/src/lib/enums/DeviceStatusCode.ts +0 -40
  160. package/src/lib/enums/DeviceTypeCode.ts +0 -90
  161. package/src/lib/enums/DirectionContextCode.ts +0 -40
  162. package/src/lib/enums/EventCategoryCode.ts +0 -30
  163. package/src/lib/enums/EventStatusCode.ts +0 -40
  164. package/src/lib/enums/EventTypeCode.ts +0 -115
  165. package/src/lib/enums/FeatureCode.ts +0 -70
  166. package/src/lib/enums/HomePageViewCode.ts +0 -35
  167. package/src/lib/enums/HttpMethodCode.ts +0 -45
  168. package/src/lib/enums/InsightStatusCode.ts +0 -35
  169. package/src/lib/enums/InsightTypeCode.ts +0 -30
  170. package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
  171. package/src/lib/enums/IntegrationTypeCode.ts +0 -40
  172. package/src/lib/enums/MemberRoleCode.ts +0 -40
  173. package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
  174. package/src/lib/enums/OperatorCode.ts +0 -75
  175. package/src/lib/enums/PermissionCode.ts +0 -45
  176. package/src/lib/enums/ReportTypeCode.ts +0 -35
  177. package/src/lib/enums/RuleTypeCode.ts +0 -35
  178. package/src/lib/enums/SeverityTypeCode.ts +0 -40
  179. package/src/lib/enums/TrafficDirectionCode.ts +0 -35
  180. package/src/lib/enums/UserStatusCode.ts +0 -40
  181. package/src/lib/enums/UserTypeCode.ts +0 -40
  182. package/src/lib/enums/index.ts +0 -29
  183. package/src/lib/index.ts +0 -4
  184. package/src/lib/pulse-client.ts +0 -190
  185. package/src/lib/services/index.ts +0 -26
  186. package/src/lib/services/services.export.ts +0 -54
  187. package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
  188. package/src/lib/services/sysAccountsService.ts +0 -90
  189. package/src/lib/services/sysAuditLogService.ts +0 -72
  190. package/src/lib/services/sysCheckpointsService.ts +0 -62
  191. package/src/lib/services/sysConfigService.ts +0 -63
  192. package/src/lib/services/sysFeaturesService.ts +0 -77
  193. package/src/lib/services/sysGroupsService.ts +0 -85
  194. package/src/lib/services/sysInsightsService.ts +0 -122
  195. package/src/lib/services/sysKeysService.ts +0 -71
  196. package/src/lib/services/sysMembersService.ts +0 -66
  197. package/src/lib/services/sysRuleTemplatesService.ts +0 -63
  198. package/src/lib/services/sysRulesService.ts +0 -79
  199. package/src/lib/services/sysStatisticsService.ts +0 -50
  200. package/src/lib/services/sysStreamsService.ts +0 -64
  201. package/src/lib/services/sysUsersService.ts +0 -89
  202. package/src/lib/services/usrAlertsService.ts +0 -382
  203. package/src/lib/services/usrDevicesService.ts +0 -303
  204. package/src/lib/services/usrEventsService.ts +0 -355
  205. package/src/lib/services/usrInsightsService.ts +0 -29
  206. package/src/lib/services/usrIntegrationsService.ts +0 -79
  207. package/src/lib/services/usrMembersService.ts +0 -77
  208. package/src/lib/services/usrNetworkService.ts +0 -59
  209. package/src/lib/services/usrReportsService.ts +0 -114
  210. package/src/lib/services/usrRulesService.ts +0 -78
  211. package/src/lib/services/usrUserService.ts +0 -114
  212. package/src/public-api.d.ts +0 -4
  213. package/src/public-api.d.ts.map +0 -1
  214. package/src/public-api.js +0 -7
  215. package/src/public-api.js.map +0 -1
  216. package/src/public-api.ts +0 -9
  217. package/src/utils/ActionResponse.d.ts +0 -6
  218. package/src/utils/ActionResponse.d.ts.map +0 -1
  219. package/src/utils/ActionResponse.js +0 -9
  220. package/src/utils/ActionResponse.js.map +0 -1
  221. package/src/utils/BaseRestResponse.d.ts +0 -5
  222. package/src/utils/BaseRestResponse.d.ts.map +0 -1
  223. package/src/utils/BaseRestResponse.js +0 -8
  224. package/src/utils/BaseRestResponse.js.map +0 -1
  225. package/src/utils/EntitiesResponse.d.ts +0 -9
  226. package/src/utils/EntitiesResponse.d.ts.map +0 -1
  227. package/src/utils/EntitiesResponse.js +0 -15
  228. package/src/utils/EntitiesResponse.js.map +0 -1
  229. package/src/utils/EntityResponse.d.ts +0 -9
  230. package/src/utils/EntityResponse.d.ts.map +0 -1
  231. package/src/utils/EntityResponse.js +0 -15
  232. package/src/utils/EntityResponse.js.map +0 -1
  233. package/src/utils/index.d.ts +0 -6
  234. package/src/utils/index.d.ts.map +0 -1
  235. package/src/utils/index.js +0 -6
  236. package/src/utils/index.js.map +0 -1
  237. package/src/utils/rest-axios-setup.d.ts +0 -4
  238. package/src/utils/rest-axios-setup.d.ts.map +0 -1
  239. package/src/utils/rest-axios-setup.js +0 -8
  240. package/src/utils/rest-axios-setup.js.map +0 -1
  241. package/src/utils/rest-util.d.ts +0 -16
  242. package/src/utils/rest-util.d.ts.map +0 -1
  243. package/src/utils/rest-util.js +0 -101
  244. package/src/utils/rest-util.js.map +0 -1
@@ -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
-
@@ -1,49 +0,0 @@
1
- import { AccountStatusCode } from '../enums';
2
- import { FeatureCode } from '../enums';
3
- import { StringKeyValue } from '../common';
4
- import { AccountSettings } from '../entities';
5
- import { BaseEntity } from '../entities';
6
- import { AccountTypeCode } from '../enums';
7
-
8
-
9
-
10
- // AccountDTO includes additional data for display
11
- export class AccountDTO extends BaseEntity {
12
-
13
- // Account name
14
- public name: string;
15
-
16
- // The account identity in the external system (e.g. Billing, CRM etc) @json:externalId"`
17
- public externalId: string;
18
-
19
- // Account description
20
- public description: string;
21
-
22
- // Account Type: UNDEFINED | DEMO | TRIAL | PARTNER | CUSTOMER
23
- public type: AccountTypeCode;
24
-
25
- // Account status: UNDEFINED | ACTIVE | SUSPENDED
26
- public status: AccountStatusCode;
27
-
28
- // List of associated account groups (for feature toggle)
29
- public groups: string[];
30
-
31
- // List of all features from all the groups
32
- public features: FeatureCode[];
33
-
34
- // When the account will be expired [Epoch milliseconds Timestamp] (0 means no expiration time)
35
- public expiredOn: number;
36
-
37
- // Additional user defined tags
38
- public tags: string[];
39
-
40
- // List of custom attributes (key-value pairs)
41
- public labels: StringKeyValue[];
42
-
43
- // Account specific attributes
44
- public settings: AccountSettings;
45
-
46
-
47
- }
48
-
49
-
@@ -1,31 +0,0 @@
1
- import { HomePageViewCode } from '../enums';
2
- import { ComplianceReportSettings } from '../entities';
3
- import { TeaserPopUpSettings } from '../entities';
4
-
5
-
6
-
7
- // AccountSettings is a set of account attributes
8
- export class AccountSettings {
9
-
10
- // Account logo URL (starts with http) or embedded image (base64)
11
- public logo: string;
12
-
13
- // Default home page view
14
- public defaultHomePageView: HomePageViewCode;
15
-
16
- // ComplianceReportSettings specific attributes
17
- public complianceReportSettings: ComplianceReportSettings;
18
-
19
- // Teaser pop up settings attributes
20
- public teaserPopUpSettings: TeaserPopUpSettings;
21
-
22
- constructor(logo?: string, defaultHomePageView?: HomePageViewCode, complianceReportSettings?: ComplianceReportSettings, teaserPopUpSettings?: TeaserPopUpSettings) {
23
- if (logo !== undefined) { this.logo = logo; }
24
- if (defaultHomePageView !== undefined) { this.defaultHomePageView = defaultHomePageView; }
25
- if (complianceReportSettings !== undefined) { this.complianceReportSettings = complianceReportSettings; }
26
- if (teaserPopUpSettings !== undefined) { this.teaserPopUpSettings = teaserPopUpSettings; }
27
- }
28
-
29
- }
30
-
31
-
@@ -1,30 +0,0 @@
1
- import { DeviceActionCode } from '../enums';
2
- import { BaseEntity } from '../entities';
3
-
4
-
5
-
6
- // Action entity is a user action applied on an event or device
7
- export class Action extends BaseEntity {
8
-
9
- // Account Id
10
- public accountId: string;
11
-
12
- // Stream Id
13
- public streamId: string;
14
-
15
- // Event Id (in case action was applied on an event)
16
- public eventId: string;
17
-
18
- // Device Id (in case action was applied on a device)
19
- public deviceId: string;
20
-
21
- // Action type: UNDEFINED | REDIRECT | SUSPEND | BLOCK_IP ...
22
- public action: DeviceActionCode;
23
-
24
- // User id who applied the action
25
- public userId: string;
26
-
27
-
28
- }
29
-
30
-