@shieldiot/ngx-pulseiot-lib 2.18.1332 → 2.18.1336
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/esm2022/lib/model/DeviceActionCode.mjs +5 -1
- package/esm2022/lib/model/Insight.mjs +1 -1
- package/esm2022/lib/model/Integration.mjs +3 -1
- package/esm2022/lib/model/IntegrationTemplate.mjs +7 -1
- package/esm2022/lib/model/IntegrationTriggerCode.mjs +2 -2
- package/esm2022/lib/model/IntegrationTypeCode.mjs +6 -2
- package/esm2022/lib/model/StixCollection.mjs +21 -0
- package/esm2022/lib/model/StixCollectionView.mjs +21 -0
- package/esm2022/lib/model/StixIndicator.mjs +32 -0
- package/esm2022/lib/model/index.mjs +4 -1
- package/esm2022/lib/services/ConfigService.mjs +36 -0
- package/esm2022/lib/services/SysIntegrationTemplatesService.mjs +5 -2
- package/esm2022/lib/services/SysIntegrationsService.mjs +132 -0
- package/esm2022/lib/services/TaxiiApiRootService.mjs +36 -0
- package/esm2022/lib/services/TaxiiCollectionsService.mjs +42 -0
- package/esm2022/lib/services/TaxiiDiscoveryService.mjs +35 -0
- package/esm2022/lib/services/TaxiiManifestService.mjs +49 -0
- package/esm2022/lib/services/TaxiiObjectsService.mjs +62 -0
- package/esm2022/lib/services/UsrDevicesService.mjs +1 -4
- package/esm2022/lib/services/UsrIntegrationsService.mjs +2 -2
- package/esm2022/lib/services/index.mjs +8 -1
- package/fesm2022/shieldiot-ngx-pulseiot-lib.mjs +449 -8
- package/fesm2022/shieldiot-ngx-pulseiot-lib.mjs.map +1 -1
- package/lib/model/DeviceActionCode.d.ts +2 -1
- package/lib/model/Insight.d.ts +2 -2
- package/lib/model/Integration.d.ts +4 -2
- package/lib/model/IntegrationTemplate.d.ts +7 -0
- package/lib/model/IntegrationTypeCode.d.ts +2 -1
- package/lib/model/StixCollection.d.ts +12 -0
- package/lib/model/StixCollectionView.d.ts +11 -0
- package/lib/model/StixIndicator.d.ts +22 -0
- package/lib/model/index.d.ts +3 -0
- package/lib/services/ConfigService.d.ts +16 -0
- package/lib/services/SysIntegrationTemplatesService.d.ts +1 -1
- package/lib/services/SysIntegrationsService.d.ts +63 -0
- package/lib/services/TaxiiApiRootService.d.ts +15 -0
- package/lib/services/TaxiiCollectionsService.d.ts +19 -0
- package/lib/services/TaxiiDiscoveryService.d.ts +15 -0
- package/lib/services/TaxiiManifestService.d.ts +17 -0
- package/lib/services/TaxiiObjectsService.d.ts +20 -0
- package/lib/services/UsrIntegrationsService.d.ts +1 -1
- package/lib/services/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@ export declare enum DeviceActionCode {
|
|
|
5
5
|
SUSPEND = 2,
|
|
6
6
|
THROTTLE = 3,
|
|
7
7
|
BLOCK_IP = 4,
|
|
8
|
-
UNSUSPEND = 5
|
|
8
|
+
UNSUSPEND = 5,
|
|
9
|
+
UNBLOCK_IP = 6
|
|
9
10
|
}
|
|
10
11
|
export declare function GetDeviceActionCodes(): Tuple<DeviceActionCode, string>[];
|
|
11
12
|
export declare function MapDeviceActionCodes(): Map<DeviceActionCode, string>;
|
package/lib/model/Insight.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RegulatoryViolation } from './RegulatoryViolation';
|
|
2
|
-
import { MitreAttackCategory } from './MitreAttackCategory';
|
|
3
1
|
import { BaseEntity } from './BaseEntity';
|
|
4
2
|
import { InsightTypeCode } from './InsightTypeCode';
|
|
5
3
|
import { InsightStatusCode } from './InsightStatusCode';
|
|
6
4
|
import { SeverityTypeCode } from './SeverityTypeCode';
|
|
7
5
|
import { DirectionContextCode } from './DirectionContextCode';
|
|
6
|
+
import { RegulatoryViolation } from './RegulatoryViolation';
|
|
7
|
+
import { MitreAttackCategory } from './MitreAttackCategory';
|
|
8
8
|
import { ColumnDef } from './ColumnDef';
|
|
9
9
|
export declare class Insight extends BaseEntity {
|
|
10
10
|
accountId: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { IntegrationTypeCode } from './IntegrationTypeCode';
|
|
2
|
+
import { IntegrationTriggerCode } from './IntegrationTriggerCode';
|
|
1
3
|
import { HttpMethodCode } from './HttpMethodCode';
|
|
2
4
|
import { Tuple } from './Tuple';
|
|
3
5
|
import { EventTypeCode } from './EventTypeCode';
|
|
4
6
|
import { SeverityTypeCode } from './SeverityTypeCode';
|
|
5
7
|
import { DeviceActionCode } from './DeviceActionCode';
|
|
6
8
|
import { BaseEntity } from './BaseEntity';
|
|
7
|
-
import { IntegrationTypeCode } from './IntegrationTypeCode';
|
|
8
|
-
import { IntegrationTriggerCode } from './IntegrationTriggerCode';
|
|
9
9
|
import { ColumnDef } from './ColumnDef';
|
|
10
10
|
export declare class Integration extends BaseEntity {
|
|
11
11
|
accountId: string;
|
|
@@ -31,5 +31,7 @@ export declare class Integration extends BaseEntity {
|
|
|
31
31
|
preventiveAction: DeviceActionCode;
|
|
32
32
|
templateId: string;
|
|
33
33
|
parameterValues: any;
|
|
34
|
+
collectionId: string;
|
|
35
|
+
isSystem: boolean;
|
|
34
36
|
}
|
|
35
37
|
export declare function GetIntegrationColumnsDef(): ColumnDef[];
|
|
@@ -2,14 +2,21 @@ import { IntegrationTriggerCode } from './IntegrationTriggerCode';
|
|
|
2
2
|
import { TemplateParameter } from './TemplateParameter';
|
|
3
3
|
import { TemplateStep } from './TemplateStep';
|
|
4
4
|
import { BaseEntity } from './BaseEntity';
|
|
5
|
+
import { IntegrationTypeCode } from './IntegrationTypeCode';
|
|
5
6
|
import { ColumnDef } from './ColumnDef';
|
|
6
7
|
export declare class IntegrationTemplate extends BaseEntity {
|
|
7
8
|
name: string;
|
|
8
9
|
vendor: string;
|
|
10
|
+
type: IntegrationTypeCode;
|
|
9
11
|
trigger: IntegrationTriggerCode;
|
|
10
12
|
description: string;
|
|
11
13
|
parameters: TemplateParameter[];
|
|
12
14
|
steps: TemplateStep[];
|
|
13
15
|
mainStepIndex: number;
|
|
16
|
+
version: string;
|
|
17
|
+
logo: string;
|
|
18
|
+
favicon: string;
|
|
19
|
+
singleton: boolean;
|
|
20
|
+
isSystem: boolean;
|
|
14
21
|
}
|
|
15
22
|
export declare function GetIntegrationTemplateColumnsDef(): ColumnDef[];
|
|
@@ -4,7 +4,8 @@ export declare enum IntegrationTypeCode {
|
|
|
4
4
|
HTTP = 1,
|
|
5
5
|
SMTP = 2,
|
|
6
6
|
EMAIL = 3,
|
|
7
|
-
SMS = 4
|
|
7
|
+
SMS = 4,
|
|
8
|
+
STIX_TAXII = 5
|
|
8
9
|
}
|
|
9
10
|
export declare function GetIntegrationTypeCodes(): Tuple<IntegrationTypeCode, string>[];
|
|
10
11
|
export declare function MapIntegrationTypeCodes(): Map<IntegrationTypeCode, string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseEntity } from './BaseEntity';
|
|
2
|
+
import { ColumnDef } from './ColumnDef';
|
|
3
|
+
export declare class StixCollection extends BaseEntity {
|
|
4
|
+
accountId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
mediaTypes: string[];
|
|
8
|
+
bearerTokenHash: string;
|
|
9
|
+
tokenPrefix: string;
|
|
10
|
+
apiRoot: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function GetStixCollectionColumnsDef(): ColumnDef[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from './BaseEntity';
|
|
2
|
+
import { ColumnDef } from './ColumnDef';
|
|
3
|
+
export declare class StixCollectionView extends BaseEntity {
|
|
4
|
+
accountId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
mediaTypes: string[];
|
|
8
|
+
apiRoot: string;
|
|
9
|
+
publicUrl: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function GetStixCollectionViewColumnsDef(): ColumnDef[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseEntity } from './BaseEntity';
|
|
2
|
+
import { ColumnDef } from './ColumnDef';
|
|
3
|
+
export declare class StixIndicator extends BaseEntity {
|
|
4
|
+
accountId: string;
|
|
5
|
+
collectionId: string;
|
|
6
|
+
ipValue: string;
|
|
7
|
+
ipVersion: number;
|
|
8
|
+
pattern: string;
|
|
9
|
+
sourceEventId: string;
|
|
10
|
+
sourceDeviceId: string;
|
|
11
|
+
dateAdded: number;
|
|
12
|
+
modified: number;
|
|
13
|
+
validFrom: number;
|
|
14
|
+
validUntil: number;
|
|
15
|
+
revoked: boolean;
|
|
16
|
+
revokedAt: number;
|
|
17
|
+
version: number;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
indicatorTypes: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function GetStixIndicatorColumnsDef(): ColumnDef[];
|
package/lib/model/index.d.ts
CHANGED
|
@@ -188,3 +188,6 @@ export * from './AIRecommendedActions';
|
|
|
188
188
|
export * from './BatchItem';
|
|
189
189
|
export * from './AIRecommendedActions';
|
|
190
190
|
export * from './BatchJob';
|
|
191
|
+
export * from './StixCollection';
|
|
192
|
+
export * from './StixIndicator';
|
|
193
|
+
export * from './StixCollectionView';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfigService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
9
|
+
/**
|
|
10
|
+
* getLogoImage returns the telco logo image as PNG
|
|
11
|
+
* Fallback logic: TELCO_LOGO -> TELCO_LOGO_DARK -> default system logo
|
|
12
|
+
*/
|
|
13
|
+
getLogoImage(): import("rxjs").Observable<Blob>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
16
|
+
}
|
|
@@ -29,7 +29,7 @@ export declare class SysIntegrationTemplatesService {
|
|
|
29
29
|
/**
|
|
30
30
|
* Find integration templates by query.
|
|
31
31
|
*/
|
|
32
|
-
find(search?: string, trigger?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IntegrationTemplate>>;
|
|
32
|
+
find(search?: string, trigger?: number, isSystem?: boolean, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IntegrationTemplate>>;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SysIntegrationTemplatesService, never>;
|
|
34
34
|
static ɵprov: i0.ɵɵInjectableDeclaration<SysIntegrationTemplatesService>;
|
|
35
35
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import { EntitiesResponse } from '../model';
|
|
4
|
+
import { StixCollectionView } from '../model';
|
|
5
|
+
import { IntegrationTemplate } from '../model';
|
|
6
|
+
import { Integration } from '../model';
|
|
7
|
+
import { EntityResponse } from '../model';
|
|
8
|
+
import { ActionResponse } from '../model';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SysIntegrationsService {
|
|
11
|
+
private config;
|
|
12
|
+
private rest;
|
|
13
|
+
private baseUrl;
|
|
14
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
15
|
+
/**
|
|
16
|
+
* Create new integration configuration
|
|
17
|
+
*/
|
|
18
|
+
create(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
19
|
+
/**
|
|
20
|
+
* Update existing integration configuration
|
|
21
|
+
*/
|
|
22
|
+
update(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete integration configuration
|
|
25
|
+
*/
|
|
26
|
+
delete(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a single Integration by id
|
|
29
|
+
*/
|
|
30
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
31
|
+
/**
|
|
32
|
+
* Find integrations by query
|
|
33
|
+
*/
|
|
34
|
+
find(streamId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Integration>>;
|
|
35
|
+
/**
|
|
36
|
+
* Validate format of the templates in the fields
|
|
37
|
+
*/
|
|
38
|
+
validate(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
39
|
+
/**
|
|
40
|
+
* Test the integration with pseudo data
|
|
41
|
+
*/
|
|
42
|
+
test(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
43
|
+
/**
|
|
44
|
+
* Mint or rotate the system STIX/TAXII bearer token. The raw token is returned
|
|
45
|
+
* exactly once; only its bcrypt hash is persisted, so the caller MUST capture
|
|
46
|
+
* it immediately.
|
|
47
|
+
*/
|
|
48
|
+
rotateToken(): import("rxjs").Observable<ActionResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Get the system STIX/TAXII collection view, including the firewall-polling URL.
|
|
51
|
+
*/
|
|
52
|
+
getCollection(): import("rxjs").Observable<EntityResponse<StixCollectionView>>;
|
|
53
|
+
/**
|
|
54
|
+
* Find available integration templates.
|
|
55
|
+
*/
|
|
56
|
+
findTemplates(search?: string, trigger?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IntegrationTemplate>>;
|
|
57
|
+
/**
|
|
58
|
+
* Get a single integration template by id.
|
|
59
|
+
*/
|
|
60
|
+
getTemplate(id?: string): import("rxjs").Observable<EntityResponse<IntegrationTemplate>>;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SysIntegrationsService, never>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SysIntegrationsService>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TaxiiApiRootService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
9
|
+
/**
|
|
10
|
+
* apiRoot returns the TAXII 2.1 API Root information resource.
|
|
11
|
+
*/
|
|
12
|
+
apiRoot(): import("rxjs").Observable<object>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaxiiApiRootService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaxiiApiRootService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TaxiiCollectionsService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
9
|
+
/**
|
|
10
|
+
* list returns all collections visible to the authenticated caller (one in v1).
|
|
11
|
+
*/
|
|
12
|
+
list(): import("rxjs").Observable<object>;
|
|
13
|
+
/**
|
|
14
|
+
* get returns the metadata for a single collection identified by id.
|
|
15
|
+
*/
|
|
16
|
+
get(id?: string): import("rxjs").Observable<object>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaxiiCollectionsService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaxiiCollectionsService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TaxiiDiscoveryService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
9
|
+
/**
|
|
10
|
+
* discovery returns the TAXII 2.1 Discovery resource.
|
|
11
|
+
*/
|
|
12
|
+
discovery(): import("rxjs").Observable<object>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaxiiDiscoveryService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaxiiDiscoveryService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TaxiiManifestService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
9
|
+
/**
|
|
10
|
+
* list returns the TAXII 2.1 manifest envelope for the indicators in this
|
|
11
|
+
* collection that match the given `added_after`, `limit`, `next`, and
|
|
12
|
+
* `match[*]` filters.
|
|
13
|
+
*/
|
|
14
|
+
list(id?: string, added_after?: string, limit?: number, next?: string): import("rxjs").Observable<object>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaxiiManifestService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaxiiManifestService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RestUtils } from '../../rest-utils';
|
|
2
|
+
import { AppConfig } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TaxiiObjectsService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: AppConfig, rest: RestUtils);
|
|
9
|
+
/**
|
|
10
|
+
* list returns a TAXII 2.1 envelope of STIX indicators added or modified
|
|
11
|
+
* after the given `added_after` timestamp, paginated via `limit` + `next`.
|
|
12
|
+
*/
|
|
13
|
+
list(id?: string, added_after?: string, limit?: number, next?: string, matchType?: string, matchId?: string, matchSpecVersion?: string): import("rxjs").Observable<object>;
|
|
14
|
+
/**
|
|
15
|
+
* get returns a single STIX object by id.
|
|
16
|
+
*/
|
|
17
|
+
get(id?: string, objectId?: string): import("rxjs").Observable<object>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaxiiObjectsService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaxiiObjectsService>;
|
|
20
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RestUtils } from '../../rest-utils';
|
|
2
2
|
import { AppConfig } from '../../config';
|
|
3
|
-
import { Integration } from '../model';
|
|
4
3
|
import { EntityResponse } from '../model';
|
|
5
4
|
import { ActionResponse } from '../model';
|
|
6
5
|
import { EntitiesResponse } from '../model';
|
|
7
6
|
import { IntegrationTemplate } from '../model';
|
|
7
|
+
import { Integration } from '../model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class UsrIntegrationsService {
|
|
10
10
|
private config;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -29,3 +29,10 @@ export * from './SysIntegrationTemplatesService';
|
|
|
29
29
|
export * from './SysUsersService';
|
|
30
30
|
export * from './UsrReportsInstanceService';
|
|
31
31
|
export * from './UsrAiExplainService';
|
|
32
|
+
export * from './ConfigService';
|
|
33
|
+
export * from './TaxiiApiRootService';
|
|
34
|
+
export * from './TaxiiDiscoveryService';
|
|
35
|
+
export * from './TaxiiManifestService';
|
|
36
|
+
export * from './TaxiiCollectionsService';
|
|
37
|
+
export * from './TaxiiObjectsService';
|
|
38
|
+
export * from './SysIntegrationsService';
|