@mitre/inspec-objects 0.0.2 → 0.0.5
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/lib/mappings/CciNistMappingData.d.ts +5100 -0
- package/lib/mappings/CciNistMappingData.js +5103 -0
- package/lib/objects/control.js +6 -6
- package/lib/parsers/xccdf.d.ts +1 -1
- package/lib/parsers/xccdf.js +62 -16
- package/lib/utilities/CciNistMappingData.d.ts +5100 -0
- package/lib/utilities/CciNistMappingData.js +5103 -0
- package/lib/utilities/diff.d.ts +1 -2
- package/lib/utilities/diff.js +15 -4
- package/lib/utilities/global.d.ts +1 -0
- package/lib/utilities/global.js +34 -2
- package/lib/utilities/xccdf.d.ts +1 -0
- package/lib/utilities/xccdf.js +5 -1
- package/mitre-inspec-objects-v0.0.3.tgz +0 -0
- package/mitre-inspec-objects-v0.0.5.tgz +0 -0
- package/package-lock.json +38 -3415
- package/package.json +4 -4
- package/tsconfig.json +1 -1
- package/error.log +0 -12
- package/mitre-inspec-objects-v0.0.1.tgz +0 -0
- package/src/index.ts +0 -5
- package/src/objects/control.ts +0 -148
- package/src/objects/profile.ts +0 -93
- package/src/parsers/json.ts +0 -92
- package/src/parsers/oval.ts +0 -18
- package/src/parsers/xccdf.ts +0 -222
- package/src/types/diff.d.ts +0 -9
- package/src/types/oval.d.ts +0 -609
- package/src/types/xccdf.d.ts +0 -883
- package/src/utilities/diff.ts +0 -60
- package/src/utilities/global.ts +0 -52
- package/src/utilities/xccdf.ts +0 -115
- package/types/ionchannelAnalysis.d.ts +0 -238
- package/types/ionchannelProjects.d.ts +0 -72
- package/types/ionchannelTeams.d.ts +0 -26
- package/types/reverseMappedXCCDF.d.ts +0 -67
- package/types/splunk-sdk-no-env/index.d.ts +0 -88
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
declare module '@mitre/splunk-sdk-no-env' {
|
|
2
|
-
export type SplunkConfig = {
|
|
3
|
-
scheme: string;
|
|
4
|
-
host: string;
|
|
5
|
-
port?: number;
|
|
6
|
-
username?: string;
|
|
7
|
-
password?: string;
|
|
8
|
-
index: string;
|
|
9
|
-
owner?: string;
|
|
10
|
-
app?: string;
|
|
11
|
-
sessionKey?: string;
|
|
12
|
-
autologin?: boolean;
|
|
13
|
-
version?: string;
|
|
14
|
-
insecure?: boolean;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type jobTrackCallbacks = {
|
|
18
|
-
done?: (job: Job) => void;
|
|
19
|
-
ready?: (job: Job) => void;
|
|
20
|
-
progress?: (job: Job) => void;
|
|
21
|
-
failed?: (job: Job) => void;
|
|
22
|
-
error?: (err: any) => void;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
class Http {
|
|
26
|
-
constructor();
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
class Logger {
|
|
30
|
-
error(message: any): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
class Indexs {
|
|
34
|
-
fetch(callback: (error: any, success: any, indexes: Index[]) => void): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
class Index {
|
|
38
|
-
name: string;
|
|
39
|
-
|
|
40
|
-
submitEvent(
|
|
41
|
-
event: string,
|
|
42
|
-
config: {sourcetype: string; index: string},
|
|
43
|
-
callback: (error: any) => void
|
|
44
|
-
): void;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
class Jobs {
|
|
48
|
-
fetch(callback: (error: any, success: any, jobs: Job[]) => void): void;
|
|
49
|
-
|
|
50
|
-
create(
|
|
51
|
-
query: string,
|
|
52
|
-
params: unknown,
|
|
53
|
-
callback: (error: any, createdJob: Job) => void
|
|
54
|
-
): void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
class Job {
|
|
58
|
-
track(
|
|
59
|
-
options: {period?: number},
|
|
60
|
-
callbacks: jobTrackCallbacks | ((readyStatus: any) => void)
|
|
61
|
-
): void;
|
|
62
|
-
|
|
63
|
-
results(
|
|
64
|
-
params: {count: number},
|
|
65
|
-
callback: (
|
|
66
|
-
err: any,
|
|
67
|
-
results: {fields: string[]; rows: string[]},
|
|
68
|
-
job: Job
|
|
69
|
-
) => void
|
|
70
|
-
): void;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
class Service {
|
|
74
|
-
constructor(config: SplunkConfig);
|
|
75
|
-
constructor(httpInstance: any, config: SplunkConfig);
|
|
76
|
-
|
|
77
|
-
login(callback: (error: any, success: any) => void): boolean;
|
|
78
|
-
indexes(): Indexs;
|
|
79
|
-
jobs(): Jobs;
|
|
80
|
-
|
|
81
|
-
requestOptions: {
|
|
82
|
-
strictSSL: boolean;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare module '@mitre/splunk-sdk-no-env/lib/platform/client/jquery_http';
|
|
88
|
-
|