@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.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/common/SeverityIntervalTuple.d.ts +1 -1
- package/dist/lib/common/TimeSeriesOfFloat.d.ts +1 -1
- package/dist/lib/common/TokenData.d.ts +1 -1
- package/dist/lib/entities/Account.d.ts +1 -1
- package/dist/lib/entities/Account.js.map +1 -1
- package/dist/lib/entities/AccountDTO.d.ts +3 -3
- package/dist/lib/entities/AccountDTO.js.map +1 -1
- package/dist/lib/entities/AccountSettings.d.ts +1 -1
- package/dist/lib/entities/Alert.d.ts +4 -4
- package/dist/lib/entities/Alert.js.map +1 -1
- package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/lib/entities/ApiKey.d.ts +1 -1
- package/dist/lib/entities/ApiKey.js.map +1 -1
- package/dist/lib/entities/DeviceWithEvents.d.ts +2 -2
- package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/lib/entities/Event.d.ts +3 -3
- package/dist/lib/entities/Event.js.map +1 -1
- package/dist/lib/entities/EventWithDevice.d.ts +7 -7
- package/dist/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/lib/entities/Feature.d.ts +1 -1
- package/dist/lib/entities/Feature.js.map +1 -1
- package/dist/lib/entities/Insight.d.ts +1 -1
- package/dist/lib/entities/Insight.js.map +1 -1
- package/dist/lib/entities/Integration.d.ts +2 -2
- package/dist/lib/entities/Integration.js.map +1 -1
- package/dist/lib/entities/Rule.d.ts +1 -1
- package/dist/lib/entities/Rule.js.map +1 -1
- package/dist/lib/entities/RuleTemplate.d.ts +1 -1
- package/dist/lib/entities/RuleTemplate.js.map +1 -1
- package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/lib/entities/StreamConfig.d.ts +2 -2
- package/dist/lib/services/sysAccountsService.d.ts +2 -2
- package/dist/lib/services/sysFeaturesService.d.ts +1 -1
- package/dist/lib/services/sysRulesService.d.ts +1 -1
- package/dist/lib/services/sysUsersService.d.ts +2 -2
- package/dist/lib/services/usrAlertsService.d.ts +9 -9
- package/dist/lib/services/usrDevicesService.d.ts +7 -7
- package/dist/lib/services/usrEventsService.d.ts +8 -8
- package/dist/lib/services/usrRulesService.d.ts +1 -1
- package/dist/lib/services/usrUserService.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -3
- package/dist/public-api.d.ts +0 -3
- package/dist/public-api.js +0 -7
- package/dist/public-api.js.map +0 -1
- package/src/config.d.ts +0 -6
- package/src/config.d.ts.map +0 -1
- package/src/config.js +0 -6
- package/src/config.js.map +0 -1
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -3
- package/src/index.js.map +0 -1
- package/src/lib/common/AccountRole.ts +0 -25
- package/src/lib/common/ConsumptionData.ts +0 -24
- package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
- package/src/lib/common/DeviceConfig.ts +0 -22
- package/src/lib/common/DeviceScoreConfig.ts +0 -24
- package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
- package/src/lib/common/EventSeverityConfig.ts +0 -17
- package/src/lib/common/FloatKeyValue.ts +0 -20
- package/src/lib/common/GeoData.ts +0 -38
- package/src/lib/common/GraphSeries.ts +0 -21
- package/src/lib/common/Indicator.ts +0 -32
- package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
- package/src/lib/common/IntKeyValue.ts +0 -20
- package/src/lib/common/Interval.ts +0 -20
- package/src/lib/common/Link.ts +0 -41
- package/src/lib/common/Location.ts +0 -20
- package/src/lib/common/LoginParams.ts +0 -24
- package/src/lib/common/MaliciousIPCard.ts +0 -45
- package/src/lib/common/MaliciousIPData.ts +0 -28
- package/src/lib/common/NetworkMap.ts +0 -22
- package/src/lib/common/Node.ts +0 -54
- package/src/lib/common/SeriesData.ts +0 -22
- package/src/lib/common/SessionTransform.ts +0 -29
- package/src/lib/common/SeverityIntervalTuple.ts +0 -22
- package/src/lib/common/ShieldexConfig.ts +0 -36
- package/src/lib/common/StringIntValue.ts +0 -20
- package/src/lib/common/StringKeyIntValue.ts +0 -20
- package/src/lib/common/StringKeyValue.ts +0 -20
- package/src/lib/common/Thresholds.ts +0 -16
- package/src/lib/common/TimeDataPoint.ts +0 -20
- package/src/lib/common/TimeDataPoint2D.ts +0 -21
- package/src/lib/common/TimeDataPointFloat.ts +0 -20
- package/src/lib/common/TimeFrame.ts +0 -20
- package/src/lib/common/TimeSeries.ts +0 -26
- package/src/lib/common/TimeSeriesOf2D.ts +0 -26
- package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
- package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
- package/src/lib/common/TokenData.ts +0 -39
- package/src/lib/common/Tuple.ts +0 -20
- package/src/lib/common/UsageTransform.ts +0 -37
- package/src/lib/common/ZScore.ts +0 -20
- package/src/lib/common/index.ts +0 -41
- package/src/lib/entities/Account.ts +0 -45
- package/src/lib/entities/AccountDTO.ts +0 -49
- package/src/lib/entities/AccountSettings.ts +0 -31
- package/src/lib/entities/Action.ts +0 -30
- package/src/lib/entities/Alert.ts +0 -91
- package/src/lib/entities/AlertWithDevice.ts +0 -92
- package/src/lib/entities/ApiKey.ts +0 -33
- package/src/lib/entities/AuditLog.ts +0 -39
- package/src/lib/entities/BaseEntity.ts +0 -24
- package/src/lib/entities/BulkDevices.ts +0 -17
- package/src/lib/entities/Checkpoint.ts +0 -71
- package/src/lib/entities/ComplianceReportSettings.ts +0 -28
- package/src/lib/entities/Condition.ts +0 -28
- package/src/lib/entities/ConfigParam.ts +0 -15
- package/src/lib/entities/DNSRecord.ts +0 -40
- package/src/lib/entities/DataIngestion.ts +0 -63
- package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
- package/src/lib/entities/Device.ts +0 -82
- package/src/lib/entities/DeviceReport.ts +0 -29
- package/src/lib/entities/DeviceWithEvents.ts +0 -86
- package/src/lib/entities/Distribution.ts +0 -25
- package/src/lib/entities/Event.ts +0 -98
- package/src/lib/entities/EventOccurrence.ts +0 -34
- package/src/lib/entities/EventWithDevice.ts +0 -97
- package/src/lib/entities/Feature.ts +0 -18
- package/src/lib/entities/FeaturesGroup.ts +0 -18
- package/src/lib/entities/Group.ts +0 -24
- package/src/lib/entities/Image.ts +0 -18
- package/src/lib/entities/Insight.ts +0 -49
- package/src/lib/entities/InsightQuery.ts +0 -29
- package/src/lib/entities/InsightSpec.ts +0 -28
- package/src/lib/entities/IntDistribution.ts +0 -25
- package/src/lib/entities/Integration.ts +0 -81
- package/src/lib/entities/Member.ts +0 -22
- package/src/lib/entities/Radius.ts +0 -45
- package/src/lib/entities/Report.ts +0 -37
- package/src/lib/entities/Rule.ts +0 -65
- package/src/lib/entities/RuleTemplate.ts +0 -38
- package/src/lib/entities/SIM.ts +0 -32
- package/src/lib/entities/ServiceStatus.ts +0 -26
- package/src/lib/entities/SessionRecord.ts +0 -71
- package/src/lib/entities/Shieldex.ts +0 -23
- package/src/lib/entities/Stream.ts +0 -31
- package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
- package/src/lib/entities/StreamConfig.ts +0 -52
- package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
- package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
- package/src/lib/entities/UsageRecord.ts +0 -101
- package/src/lib/entities/User.ts +0 -45
- package/src/lib/entities/UserMembership.ts +0 -38
- package/src/lib/entities/UserMemberships.ts +0 -38
- package/src/lib/entities/index.ts +0 -51
- package/src/lib/enums/AccountStatusCode.ts +0 -35
- package/src/lib/enums/AccountTypeCode.ts +0 -40
- package/src/lib/enums/DataSourceCode.ts +0 -35
- package/src/lib/enums/DeviceActionCode.ts +0 -40
- package/src/lib/enums/DeviceCreationCode.ts +0 -40
- package/src/lib/enums/DeviceIdentityCode.ts +0 -55
- package/src/lib/enums/DeviceStatusCode.ts +0 -40
- package/src/lib/enums/DeviceTypeCode.ts +0 -90
- package/src/lib/enums/DirectionContextCode.ts +0 -40
- package/src/lib/enums/EventCategoryCode.ts +0 -30
- package/src/lib/enums/EventStatusCode.ts +0 -40
- package/src/lib/enums/EventTypeCode.ts +0 -115
- package/src/lib/enums/FeatureCode.ts +0 -70
- package/src/lib/enums/HomePageViewCode.ts +0 -35
- package/src/lib/enums/HttpMethodCode.ts +0 -45
- package/src/lib/enums/InsightStatusCode.ts +0 -35
- package/src/lib/enums/InsightTypeCode.ts +0 -30
- package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
- package/src/lib/enums/IntegrationTypeCode.ts +0 -40
- package/src/lib/enums/MemberRoleCode.ts +0 -40
- package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
- package/src/lib/enums/OperatorCode.ts +0 -75
- package/src/lib/enums/PermissionCode.ts +0 -45
- package/src/lib/enums/ReportTypeCode.ts +0 -35
- package/src/lib/enums/RuleTypeCode.ts +0 -35
- package/src/lib/enums/SeverityTypeCode.ts +0 -40
- package/src/lib/enums/TrafficDirectionCode.ts +0 -35
- package/src/lib/enums/UserStatusCode.ts +0 -40
- package/src/lib/enums/UserTypeCode.ts +0 -40
- package/src/lib/enums/index.ts +0 -29
- package/src/lib/index.ts +0 -4
- package/src/lib/pulse-client.ts +0 -190
- package/src/lib/services/index.ts +0 -26
- package/src/lib/services/services.export.ts +0 -54
- package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
- package/src/lib/services/sysAccountsService.ts +0 -90
- package/src/lib/services/sysAuditLogService.ts +0 -72
- package/src/lib/services/sysCheckpointsService.ts +0 -62
- package/src/lib/services/sysConfigService.ts +0 -63
- package/src/lib/services/sysFeaturesService.ts +0 -77
- package/src/lib/services/sysGroupsService.ts +0 -85
- package/src/lib/services/sysInsightsService.ts +0 -122
- package/src/lib/services/sysKeysService.ts +0 -71
- package/src/lib/services/sysMembersService.ts +0 -66
- package/src/lib/services/sysRuleTemplatesService.ts +0 -63
- package/src/lib/services/sysRulesService.ts +0 -79
- package/src/lib/services/sysStatisticsService.ts +0 -50
- package/src/lib/services/sysStreamsService.ts +0 -64
- package/src/lib/services/sysUsersService.ts +0 -89
- package/src/lib/services/usrAlertsService.ts +0 -382
- package/src/lib/services/usrDevicesService.ts +0 -303
- package/src/lib/services/usrEventsService.ts +0 -355
- package/src/lib/services/usrInsightsService.ts +0 -29
- package/src/lib/services/usrIntegrationsService.ts +0 -79
- package/src/lib/services/usrMembersService.ts +0 -77
- package/src/lib/services/usrNetworkService.ts +0 -59
- package/src/lib/services/usrReportsService.ts +0 -114
- package/src/lib/services/usrRulesService.ts +0 -78
- package/src/lib/services/usrUserService.ts +0 -114
- package/src/public-api.d.ts +0 -4
- package/src/public-api.d.ts.map +0 -1
- package/src/public-api.js +0 -7
- package/src/public-api.js.map +0 -1
- package/src/public-api.ts +0 -9
- package/src/utils/ActionResponse.d.ts +0 -6
- package/src/utils/ActionResponse.d.ts.map +0 -1
- package/src/utils/ActionResponse.js +0 -9
- package/src/utils/ActionResponse.js.map +0 -1
- package/src/utils/BaseRestResponse.d.ts +0 -5
- package/src/utils/BaseRestResponse.d.ts.map +0 -1
- package/src/utils/BaseRestResponse.js +0 -8
- package/src/utils/BaseRestResponse.js.map +0 -1
- package/src/utils/EntitiesResponse.d.ts +0 -9
- package/src/utils/EntitiesResponse.d.ts.map +0 -1
- package/src/utils/EntitiesResponse.js +0 -15
- package/src/utils/EntitiesResponse.js.map +0 -1
- package/src/utils/EntityResponse.d.ts +0 -9
- package/src/utils/EntityResponse.d.ts.map +0 -1
- package/src/utils/EntityResponse.js +0 -15
- package/src/utils/EntityResponse.js.map +0 -1
- package/src/utils/index.d.ts +0 -6
- package/src/utils/index.d.ts.map +0 -1
- package/src/utils/index.js +0 -6
- package/src/utils/index.js.map +0 -1
- package/src/utils/rest-axios-setup.d.ts +0 -4
- package/src/utils/rest-axios-setup.d.ts.map +0 -1
- package/src/utils/rest-axios-setup.js +0 -8
- package/src/utils/rest-axios-setup.js.map +0 -1
- package/src/utils/rest-util.d.ts +0 -16
- package/src/utils/rest-util.d.ts.map +0 -1
- package/src/utils/rest-util.js +0 -101
- 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
|
-
|
package/src/lib/common/Tuple.ts
DELETED
|
@@ -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
|
-
|
package/src/lib/common/ZScore.ts
DELETED
|
@@ -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
|
-
|
package/src/lib/common/index.ts
DELETED
|
@@ -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
|
-
|