@shieldiot/ngx-pulseiot-lib 2.18.1264 → 2.18.1268
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/Integration.mjs +2 -1
- package/esm2022/lib/model/IntegrationTemplate.mjs +5 -1
- package/esm2022/lib/model/IntegrationTriggerCode.mjs +6 -2
- package/esm2022/lib/model/IntegrationTypeCode.mjs +6 -2
- package/esm2022/lib/model/StixCollection.mjs +21 -0
- package/esm2022/lib/model/StixIndicator.mjs +32 -0
- package/esm2022/lib/model/index.mjs +3 -1
- package/esm2022/lib/services/ConfigService.mjs +36 -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/UsrIntegrationsService.mjs +9 -1
- package/esm2022/lib/services/index.mjs +7 -1
- package/fesm2022/shieldiot-ngx-pulseiot-lib.mjs +303 -3
- package/fesm2022/shieldiot-ngx-pulseiot-lib.mjs.map +1 -1
- package/lib/model/Integration.d.ts +1 -0
- package/lib/model/IntegrationTemplate.d.ts +4 -0
- package/lib/model/IntegrationTriggerCode.d.ts +2 -1
- package/lib/model/IntegrationTypeCode.d.ts +2 -1
- package/lib/model/StixCollection.d.ts +12 -0
- package/lib/model/StixIndicator.d.ts +22 -0
- package/lib/model/index.d.ts +2 -0
- package/lib/services/ConfigService.d.ts +16 -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 +6 -0
- package/lib/services/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -11,5 +11,9 @@ export declare class IntegrationTemplate extends BaseEntity {
|
|
|
11
11
|
parameters: TemplateParameter[];
|
|
12
12
|
steps: TemplateStep[];
|
|
13
13
|
mainStepIndex: number;
|
|
14
|
+
version: string;
|
|
15
|
+
logo: string;
|
|
16
|
+
favicon: string;
|
|
17
|
+
singleton: boolean;
|
|
14
18
|
}
|
|
15
19
|
export declare function GetIntegrationTemplateColumnsDef(): ColumnDef[];
|
|
@@ -2,7 +2,8 @@ import { Tuple } from '.';
|
|
|
2
2
|
export declare enum IntegrationTriggerCode {
|
|
3
3
|
UNDEFINED = 0,
|
|
4
4
|
EVENT = 1,
|
|
5
|
-
ACTION = 2
|
|
5
|
+
ACTION = 2,
|
|
6
|
+
COLLECTION = 3
|
|
6
7
|
}
|
|
7
8
|
export declare function GetIntegrationTriggerCodes(): Tuple<IntegrationTriggerCode, string>[];
|
|
8
9
|
export declare function MapIntegrationTriggerCodes(): Map<IntegrationTriggerCode, string>;
|
|
@@ -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,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
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -40,6 +40,12 @@ export declare class UsrIntegrationsService {
|
|
|
40
40
|
* Test the integration with pseudo data
|
|
41
41
|
*/
|
|
42
42
|
test(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
43
|
+
/**
|
|
44
|
+
* Rotate the bearer token for a STIX/TAXII integration. Returns the new raw
|
|
45
|
+
* token in the response — the caller MUST capture it immediately because it
|
|
46
|
+
* is never re-readable from the server (only the bcrypt hash is stored).
|
|
47
|
+
*/
|
|
48
|
+
rotateToken(id?: string): import("rxjs").Observable<object>;
|
|
43
49
|
/**
|
|
44
50
|
* Find available integration templates (read-only for users).
|
|
45
51
|
*/
|
package/lib/services/index.d.ts
CHANGED
|
@@ -29,3 +29,9 @@ 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';
|