@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.
@@ -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
-