@mitre/inspec-objects 0.0.1 → 0.0.2

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,113 +1,870 @@
1
- export interface DisaStig {
2
- Benchmark: Benchmark;
1
+ export interface ParsedXCCDF {
2
+ Benchmark: Benchmark[];
3
3
  }
4
4
 
5
5
  export interface Benchmark {
6
- '@_xmlns:dc': string;
7
- '@_xmlns:xsi': string;
8
- '@_xmlns:cpe': string;
9
- '@_xmlns:xhtml': string;
10
- '@_xmlns:dsig': string;
11
- '@_xsi:schemaLocation': string;
12
- '@_id': string;
13
- '@_xml:lang': string;
14
- '@_xmlns': string;
15
- status: Status;
16
- title: string;
17
- description: string;
18
- notice: Notice;
19
- 'front-matter': Matter;
20
- 'rear-matter': Matter;
21
- reference: BenchmarkReference;
22
- 'plain-text': PlainText[];
23
- version: number;
24
- Profile: Group[];
25
- Group: Group[];
26
- }
27
-
28
- export interface Group {
29
- '@_id': string;
30
- title: string;
31
- description: string;
32
- Rule: Rule;
33
- select?: Select[];
34
- }
35
-
36
- export interface Rule {
37
- '@_id': string;
38
- '@_weight': string;
39
- '@_severity': string;
6
+ "@_xmlns:dsig"?: string;
7
+ "@_xmlns:xsi": string;
8
+ "@_xmlns:cpe"?: string;
9
+ "@_xmlns:xhtml"?: string;
10
+ "@_xmlns:dc"?: string;
11
+ "@_xmlns": string;
12
+ "@_id": string;
13
+ "@_xml:lang": XMLLang;
14
+ "@_xsi:schemaLocation"?: string;
15
+ status: Status[];
16
+ title: FrontMatter[] | string;
17
+ description: RationaleElement[] | string;
18
+ notice: Notice[];
19
+ reference?: BenchmarkReference[];
20
+ "plain-text"?: PlainText[];
21
+ version: VersionElement[] | number;
22
+ Profile: Profile[];
23
+ Group: BenchmarkGroup[];
24
+ "front-matter"?: FrontMatter[];
25
+ "rear-matter"?: FrontMatter[];
26
+ "@_resolved"?: string;
27
+ "@_style"?: string;
28
+ platform?: Platform[];
29
+ metadata?: Metadatum[];
30
+ model?: Model[];
31
+ }
32
+
33
+ export enum XMLLang {
34
+ En = "en",
35
+ EnUS = "en-US",
36
+ }
37
+
38
+ export interface BenchmarkGroup {
39
+ "@_id": string;
40
+ title: FrontMatter[] | string;
41
+ description: FrontMatter[] | CunningDescription;
42
+ Rule?: BenchmarkRule[];
43
+ Value?: HilariousValue[];
44
+ platform?: Platform[];
45
+ Group?: BenchmarkGroup[];
46
+ }
47
+
48
+ export interface FluffyGroup {
49
+ "@_id": string;
50
+ title: FrontMatter[];
51
+ description: IndecentDescription[];
52
+ Rule?: StickyRule[];
53
+ Group?: TentacledGroup[];
54
+ platform?: Platform[];
55
+ Value?: StickyValue[];
56
+ warning?: FrontMatter[];
57
+ }
58
+
59
+ export interface TentacledGroup {
60
+ "@_id": string;
61
+ title: FrontMatter[];
62
+ description: StickyDescription[];
63
+ Value?: TentacledValue[];
64
+ Group?: StickyGroup[];
65
+ platform?: Platform[];
66
+ Rule?: TentacledRule[];
67
+ warning?: FrontMatter[];
68
+ }
69
+
70
+ export interface StickyGroup {
71
+ "@_id": string;
72
+ title: FrontMatter[];
73
+ description: FluffyDescription[];
74
+ platform?: Platform[];
75
+ Rule?: FluffyRule[];
76
+ Value?: PurpleValue[];
77
+ Group?: IndigoGroup[];
78
+ warning?: FrontMatter[];
79
+ }
80
+
81
+ export interface IndigoGroup {
82
+ "@_id": string;
83
+ title: FrontMatter[];
84
+ description: RationaleElement[];
85
+ platform?: Platform[];
86
+ Rule?: PurpleRule[];
87
+ }
88
+
89
+ export interface PurpleRule {
90
+ "@_id": string;
91
+ "@_selected": string;
92
+ "@_severity": Severity;
93
+ title: FrontMatter[];
94
+ description: FrontMatter[];
95
+ warning: FrontMatter[];
96
+ reference: HTMLAElement[];
97
+ rationale: FrontMatter[];
98
+ conflicts: Platform[];
99
+ fix: Notice[];
100
+ check: PurpleCheck[];
101
+ }
102
+
103
+ export enum Severity {
104
+ High = "high",
105
+ Low = "low",
106
+ Medium = "medium",
107
+ Unknown = "unknown",
108
+ }
109
+
110
+ export interface PurpleCheck {
111
+ "@_system": string;
112
+ "check-content-ref": CheckContentRef[];
113
+ }
114
+
115
+ export interface CheckContentRef {
116
+ "@_name"?: string;
117
+ "@_href": string;
118
+ }
119
+
120
+ export interface Platform {
121
+ "@_idref": string;
122
+ }
123
+
124
+ export interface FrontMatter {
125
+ "#text": string;
126
+ "@_xmlns:xhtml"?: string;
127
+ "@_xml:lang": XMLLang;
128
+ "@_category"?: Category;
129
+ "html:br"?: HTMLBr[];
130
+ "html:code"?: HTMLEmElement[];
131
+ "html:a"?: HTMLA[];
132
+ "@_override"?: string;
133
+ }
134
+
135
+ export enum Category {
136
+ Dependency = "dependency",
137
+ Functionality = "functionality",
138
+ General = "general",
139
+ Performance = "performance",
140
+ Regulatory = "regulatory",
141
+ }
142
+
143
+ export interface HTMLA {
144
+ "#text": string;
145
+ "@_xmlns:html": string;
146
+ "@_href": string;
147
+ }
148
+
149
+ export interface HTMLBr {
150
+ "@_xmlns:html": string;
151
+ }
152
+
153
+ export interface HTMLEmElement {
154
+ "#text": string;
155
+ "@_xmlns:html": string;
156
+ }
157
+
158
+ export interface Notice {
159
+ "#text"?: string;
160
+ "@_xmlns:xhtml"?: string;
161
+ "@_id": string;
162
+ "@_system"?: System;
163
+ "@_xml:lang"?: XMLLang;
164
+ }
165
+
166
+ export enum System {
167
+ UrnRedhatOsbuildBlueprint = "urn:redhat:osbuild:blueprint",
168
+ UrnXccdfFixScriptAnsible = "urn:xccdf:fix:script:ansible",
169
+ UrnXccdfFixScriptKubernetes = "urn:xccdf:fix:script:kubernetes",
170
+ UrnXccdfFixScriptPuppet = "urn:xccdf:fix:script:puppet",
171
+ UrnXccdfFixScriptSh = "urn:xccdf:fix:script:sh",
172
+ }
173
+
174
+ export interface HTMLAElement {
175
+ "#text": string;
176
+ "@_href": string;
177
+ }
178
+
179
+ export interface RationaleElement {
180
+ "#text"?: string;
181
+ "@_xmlns:xhtml": string;
182
+ "@_xml:lang": XMLLang;
183
+ "html:br"?: HTMLBr[];
184
+ "html:code"?: HTMLEmElement[];
185
+ "html:pre"?: HTMLEmElement[];
186
+ "html:ul"?: PurpleHTMLUL[];
187
+ "html:a"?: HTMLA[];
188
+ "html:em"?: HTMLEmElement[];
189
+ }
190
+
191
+ export interface PurpleHTMLUL {
192
+ "@_xmlns:html": string;
193
+ "html:li": PurpleHTMLLi[];
194
+ }
195
+
196
+ export interface PurpleHTMLLi {
197
+ "#text": string;
198
+ "html:pre": string;
199
+ "html:code"?: string;
200
+ }
201
+
202
+ export interface FluffyRule {
203
+ "@_id": string;
204
+ "@_selected": string;
205
+ "@_severity": Severity;
206
+ title: FrontMatter[];
207
+ description: PurpleDescription[];
208
+ reference: HTMLAElement[];
209
+ rationale: FrontMatter[];
210
+ platform?: Platform[];
211
+ fix: PurpleFix[];
212
+ check: FluffyCheck[];
213
+ }
214
+
215
+ export interface FluffyCheck {
216
+ "@_system": string;
217
+ "check-content-ref": CheckContentRef[];
218
+ "check-export"?: CheckExport[];
219
+ }
220
+
221
+ export interface CheckExport {
222
+ "@_export-name": string;
223
+ "@_value-id": string;
224
+ }
225
+
226
+ export interface PurpleDescription {
227
+ "#text": string;
228
+ "@_xmlns:xhtml": string;
229
+ "@_xml:lang": XMLLang;
230
+ "html:code"?: PurpleHTMLCode[];
231
+ "html:pre"?: HTMLEmElement[];
232
+ "html:br"?: HTMLBr[];
233
+ "xccdf-1.1:sub"?: Xccdf11Sub[];
234
+ "html:ul"?: FluffyHTMLUL[];
235
+ }
236
+
237
+ export interface PurpleHTMLCode {
238
+ "#text"?: number | string;
239
+ "@_xmlns:html": string;
240
+ "@_xmlns:xccdf-1.1"?: string;
241
+ "xccdf-1.1:sub"?: Platform[];
242
+ }
243
+
244
+ export interface FluffyHTMLUL {
245
+ "@_xmlns:html": string;
246
+ "html:li": FluffyHTMLLi[];
247
+ }
248
+
249
+ export interface FluffyHTMLLi {
250
+ "html:b": HTMLLiHTMLB[];
251
+ }
252
+
253
+ export interface HTMLLiHTMLB {
254
+ "html:a": HTMLAElement[];
255
+ }
256
+
257
+ export interface Xccdf11Sub {
258
+ "@_xmlns:xccdf-1.1": string;
259
+ "@_idref": string;
260
+ }
261
+
262
+ export interface PurpleFix {
263
+ "#text": string;
264
+ "@_xmlns:xhtml": string;
265
+ "@_id": string;
266
+ "@_system": System;
267
+ "@_complexity"?: Severity;
268
+ "@_disruption"?: Severity;
269
+ "@_strategy"?: Strategy;
270
+ "xccdf-1.1:sub"?: Xccdf11Sub[];
271
+ "@_reboot"?: string;
272
+ }
273
+
274
+ export enum Strategy {
275
+ Configure = "configure",
276
+ Disable = "disable",
277
+ Enable = "enable",
278
+ Restrict = "restrict",
279
+ }
280
+
281
+ export interface PurpleValue {
282
+ "@_id": string;
283
+ "@_type": Type;
284
+ title: FrontMatter[];
285
+ description: FrontMatter[];
286
+ value: Array<FluffyValue | number | string>;
287
+ "@_interactive"?: string;
288
+ }
289
+
290
+ export enum Type {
291
+ Boolean = "boolean",
292
+ Number = "number",
293
+ String = "string",
294
+ }
295
+
296
+ export interface FluffyValue {
297
+ "#text": number | string;
298
+ "@_selector": string;
299
+ }
300
+
301
+ export interface FluffyDescription {
302
+ "#text": string;
303
+ "@_xmlns:xhtml": string;
304
+ "@_xml:lang": XMLLang;
305
+ "html:pre"?: HTMLEmElement[];
306
+ "html:code"?: PurpleHTML[];
307
+ "html:br"?: HTMLBr[];
308
+ "html:i"?: HTMLEmElement[];
309
+ "html:a"?: HTMLA[];
310
+ }
311
+
312
+ export interface PurpleHTML {
313
+ "#text"?: string;
314
+ "@_xmlns:html": string;
315
+ "html:i"?: string;
316
+ "html:a"?: HTMLAElement[];
317
+ }
318
+
319
+ export interface TentacledRule {
320
+ "@_id": string;
321
+ "@_selected": string;
322
+ "@_severity": Severity;
323
+ title: FrontMatter[];
324
+ description: TentacledDescription[];
325
+ warning?: PurpleWarning[];
326
+ reference?: HTMLAElement[];
327
+ rationale: PurpleRationale[];
328
+ platform?: Platform[];
329
+ check?: TentacledCheck[];
330
+ fix?: PurpleFix[];
331
+ "complex-check"?: RuleComplexCheck[];
332
+ }
333
+
334
+ export interface TentacledCheck {
335
+ "@_system": string;
336
+ "check-content-ref": CheckContentRef[];
337
+ "check-export"?: CheckExport[];
338
+ "check-import"?: CheckImport[];
339
+ }
340
+
341
+ export interface CheckImport {
342
+ "@_import-name": ImportName;
343
+ }
344
+
345
+ export enum ImportName {
346
+ Stdout = "stdout",
347
+ }
348
+
349
+ export interface RuleComplexCheck {
350
+ "@_operator": PurpleOperator;
351
+ "complex-check": ComplexCheckComplexCheck[];
352
+ check: PurpleCheck[];
353
+ }
354
+
355
+ export enum PurpleOperator {
356
+ Or = "OR",
357
+ }
358
+
359
+ export interface ComplexCheckComplexCheck {
360
+ "@_operator": FluffyOperator;
361
+ check: TentacledCheck[];
362
+ }
363
+
364
+ export enum FluffyOperator {
365
+ And = "AND",
366
+ }
367
+
368
+ export interface TentacledDescription {
369
+ "#text": string;
370
+ "@_xmlns:xhtml": string;
371
+ "@_xml:lang": XMLLang;
372
+ "html:pre"?: PurpleHTMLPre[];
373
+ "html:code"?: FluffyHTMLCode[];
374
+ "html:br"?: HTMLBr[];
375
+ "html:a"?: HTMLA[];
376
+ "html:i"?: HTMLEmElement[];
377
+ "xccdf-1.1:sub"?: Xccdf11Sub[];
378
+ "html:ul"?: TentacledHTMLUL[];
379
+ }
380
+
381
+ export interface FluffyHTMLCode {
382
+ "#text"?: boolean | number | string;
383
+ "@_xmlns:html": string;
384
+ "@_xmlns:xccdf-1.1"?: string;
385
+ "xccdf-1.1:sub"?: Platform[];
386
+ "html:i"?: string;
387
+ }
388
+
389
+ export interface PurpleHTMLPre {
390
+ "#text": string;
391
+ "@_xmlns:html": string;
392
+ "@_xmlns:xccdf-1.1"?: string;
393
+ "xccdf-1.1:sub"?: Platform[];
394
+ "html:i"?: HTMLIHTMLB[] | string;
395
+ "html:code"?: string;
396
+ }
397
+
398
+ export interface HTMLIHTMLB {
399
+ "xccdf-1.1:sub": Platform[];
400
+ }
401
+
402
+ export interface TentacledHTMLUL {
403
+ "@_xmlns:html": string;
404
+ "@_xmlns:xccdf-1.1"?: string;
405
+ "html:li": Array<TentacledHTMLLi | string>;
406
+ }
407
+
408
+ export interface TentacledHTMLLi {
409
+ "#text": string;
410
+ "html:code": string;
411
+ "html:pre": HTMLLiHTMLPreClass[];
412
+ }
413
+
414
+ export interface HTMLLiHTMLPreClass {
415
+ "#text": string;
416
+ "html:i": string;
417
+ "xccdf-1.1:sub": Platform[];
418
+ }
419
+
420
+ export interface PurpleRationale {
421
+ "#text"?: string;
422
+ "@_xmlns:xhtml": string;
423
+ "@_xml:lang": XMLLang;
424
+ "html:a"?: HTMLA[];
425
+ "html:br"?: HTMLBr[];
426
+ "html:code"?: HTMLEmElement[];
427
+ "html:ul"?: StickyHTMLUL[];
428
+ }
429
+
430
+ export interface StickyHTMLUL {
431
+ "@_xmlns:html": string;
432
+ "@_xmlns:xccdf-1.1": string;
433
+ "html:li": StickyHTMLLi[];
434
+ }
435
+
436
+ export interface StickyHTMLLi {
437
+ "#text": string;
438
+ "html:code": Array<HTMLCodeHTMLPre | string> | string;
439
+ "html:pre": HTMLCodeHTMLPre[] | string;
440
+ }
441
+
442
+ export interface HTMLCodeHTMLPre {
443
+ "#text": string;
444
+ "xccdf-1.1:sub": Platform[];
445
+ }
446
+
447
+ export interface PurpleWarning {
448
+ "#text": string;
449
+ "@_xmlns:xhtml": string;
450
+ "@_xml:lang": XMLLang;
451
+ "@_category": Category;
452
+ "html:b"?: WarningHTMLB[];
453
+ "html:ul"?: IndigoHTMLUL[];
454
+ "html:code"?: HTMLEmElement[];
455
+ }
456
+
457
+ export interface WarningHTMLB {
458
+ "@_xmlns:html": string;
459
+ "html:a": HTMLAElement[];
460
+ }
461
+
462
+ export interface IndigoHTMLUL {
463
+ "@_xmlns:html": string;
464
+ "html:li": IndigoHTMLLi[];
465
+ }
466
+
467
+ export interface IndigoHTMLLi {
468
+ "html:code": string;
469
+ }
470
+
471
+ export interface TentacledValue {
472
+ "@_id": string;
473
+ "@_type": Type;
474
+ "@_interactive"?: string;
475
+ title: FrontMatter[];
476
+ description: FrontMatter[];
477
+ value: Array<FluffyValue | number | string> | number | string;
478
+ warning?: FrontMatter[];
479
+ }
480
+
481
+ export interface StickyDescription {
482
+ "#text": string;
483
+ "@_xmlns:xhtml": string;
484
+ "@_xml:lang": XMLLang;
485
+ "html:br"?: HTMLBr[];
486
+ "html:b"?: FluffyHTML[];
487
+ "html:code"?: PurpleHTML[];
488
+ "html:ul"?: IndecentHTMLUL[];
489
+ "html:i"?: HTMLEmElement[];
490
+ "html:pre"?: PurpleHTML[];
491
+ }
492
+
493
+ export interface FluffyHTML {
494
+ "@_xmlns:html": string;
495
+ "html:a"?: HTMLAElement[];
496
+ "#text"?: string;
497
+ }
498
+
499
+ export interface IndecentHTMLUL {
500
+ "@_xmlns:html": string;
501
+ "html:li": Array<IndecentHTMLLi | string>;
502
+ }
503
+
504
+ export interface IndecentHTMLLi {
505
+ "html:code": string[] | string;
506
+ "html:br"?: string;
507
+ "html:p"?: HTMLPElement[] | string;
508
+ "#text"?: string;
509
+ }
510
+
511
+ export interface HTMLPElement {
512
+ "#text": string;
513
+ "html:code": string[];
514
+ }
515
+
516
+ export interface StickyRule {
517
+ "@_id": string;
518
+ "@_selected": string;
519
+ "@_severity": Severity;
520
+ title: FrontMatter[];
521
+ description: IndigoDescription[];
522
+ reference?: HTMLAElement[];
523
+ rationale: FluffyRationale[];
524
+ fix?: PurpleFix[];
525
+ check?: TentacledCheck[];
526
+ platform?: Platform[];
527
+ warning?: FluffyWarning[];
528
+ requires?: Platform[];
529
+ }
530
+
531
+ export interface IndigoDescription {
532
+ "#text": string;
533
+ "@_xmlns:xhtml": string;
534
+ "@_xml:lang": XMLLang;
535
+ "html:pre"?: FluffyHTMLPre[];
536
+ "html:code"?: TentacledHTMLCode[];
537
+ "html:br"?: HTMLBr[];
538
+ "html:a"?: HTMLA[];
539
+ "html:i"?: HTMLEmElement[];
540
+ "xccdf-1.1:sub"?: Xccdf11Sub[];
541
+ "html:ul"?: IndigoHTMLUL[];
542
+ "html:b"?: HTMLEmElement[];
543
+ }
544
+
545
+ export interface TentacledHTMLCode {
546
+ "#text"?: boolean | number | string;
547
+ "@_xmlns:html": string;
548
+ "html:br"?: string[];
549
+ "html:i"?: HTMLIHTMLB[] | string;
550
+ "@_xmlns:xccdf-1.1"?: string;
551
+ "xccdf-1.1:sub"?: Platform[];
552
+ }
553
+
554
+ export interface FluffyHTMLPre {
555
+ "#text": string;
556
+ "@_xmlns:html": string;
557
+ "@_xmlns:xccdf-1.1"?: string;
558
+ "xccdf-1.1:sub"?: Platform[];
559
+ "html:i"?: Array<HTMLIHTMLB | string> | string;
560
+ "html:code"?: string[] | string;
561
+ "html:b"?: HTMLIHTMLB[];
562
+ }
563
+
564
+ export interface FluffyRationale {
565
+ "#text": string;
566
+ "@_xmlns:xhtml": string;
567
+ "@_xml:lang": XMLLang;
568
+ "html:code"?: RationaleHTMLCode[];
569
+ "html:br"?: HTMLBr[];
570
+ "html:pre"?: HTMLEmElement[];
571
+ }
572
+
573
+ export interface RationaleHTMLCode {
574
+ "#text": number | string;
575
+ "@_xmlns:html": string;
576
+ }
577
+
578
+ export interface FluffyWarning {
579
+ "#text": string;
580
+ "@_xmlns:xhtml": string;
581
+ "@_xml:lang": XMLLang;
582
+ "@_category": Category;
583
+ "html:code"?: RationaleHTMLCode[];
584
+ "html:ul"?: HilariousHTMLUL[];
585
+ "html:pre"?: HTMLEmElement[];
586
+ "html:b"?: WarningHTMLB[];
587
+ }
588
+
589
+ export interface HilariousHTMLUL {
590
+ "@_xmlns:html": string;
591
+ "html:li": Array<HilariousHTMLLi | string>;
592
+ }
593
+
594
+ export interface HilariousHTMLLi {
595
+ "html:code": string[] | string;
596
+ "#text"?: string;
597
+ }
598
+
599
+ export interface StickyValue {
600
+ "@_id": string;
601
+ "@_type": Type;
602
+ "@_interactive"?: string;
603
+ title: FrontMatter[];
604
+ description: FrontMatter[];
605
+ value: Array<boolean | IndigoValue | number | string> | string;
606
+ "@_operator"?: string;
607
+ }
608
+
609
+ export interface IndigoValue {
610
+ "#text": boolean | number | string;
611
+ "@_selector": string;
612
+ }
613
+
614
+ export interface IndecentDescription {
615
+ "#text": string;
616
+ "@_xmlns:xhtml": string;
617
+ "@_xml:lang": XMLLang;
618
+ "html:i"?: HTMLIClass[];
619
+ "html:code"?: PurpleHTML[];
620
+ "html:ul"?: AmbitiousHTMLUL[];
621
+ "html:a"?: HTMLA[];
622
+ "html:br"?: HTMLBr[];
623
+ "html:b"?: FluffyHTML[];
624
+ "html:pre"?: PurpleHTML[];
625
+ }
626
+
627
+ export interface HTMLIClass {
628
+ "#text": string;
629
+ "@_xmlns:html": string;
630
+ "html:code"?: string[];
631
+ }
632
+
633
+ export interface AmbitiousHTMLUL {
634
+ "@_xmlns:html": string;
635
+ "html:li": Array<AmbitiousHTMLLi | string>;
636
+ }
637
+
638
+ export interface AmbitiousHTMLLi {
639
+ "#text": string;
640
+ "html:code": string[] | string;
641
+ "html:pre"?: string;
642
+ }
643
+
644
+ export interface IndigoRule {
645
+ "@_id": string;
646
+ "@_selected": string;
647
+ "@_severity": Severity;
648
+ title: FrontMatter[];
649
+ description: HilariousDescription[];
650
+ warning?: TentacledWarning[];
651
+ reference?: HTMLAElement[];
652
+ rationale: RationaleElement[];
653
+ check?: TentacledCheck[];
654
+ platform?: Platform[];
655
+ fix?: PurpleFix[];
656
+ requires?: Platform[];
657
+ }
658
+
659
+ export interface HilariousDescription {
660
+ "#text": string;
661
+ "@_xmlns:xhtml": string;
662
+ "@_xml:lang": XMLLang;
663
+ "html:code"?: PurpleHTMLCode[];
664
+ "html:pre"?: TentacledHTMLPre[];
665
+ "html:br"?: HTMLBr[];
666
+ "html:a"?: HTMLA[];
667
+ "xccdf-1.1:sub"?: Xccdf11Sub[];
668
+ "html:em"?: HTMLEmElement[];
669
+ }
670
+
671
+ export interface TentacledHTMLPre {
672
+ "#text": string;
673
+ "@_xmlns:html": string;
674
+ "@_xmlns:xccdf-1.1"?: string;
675
+ "xccdf-1.1:sub"?: Platform[];
676
+ "html:i"?: string;
677
+ }
678
+
679
+ export interface TentacledWarning {
680
+ "#text": string;
681
+ "@_xmlns:xhtml": string;
682
+ "@_xml:lang": XMLLang;
683
+ "@_category": string;
684
+ "html:code"?: HTMLEmElement[];
685
+ "html:pre"?: HTMLEmElement[];
686
+ "html:ul"?: PurpleHTMLUL[];
687
+ }
688
+
689
+ export interface IndecentValue {
690
+ "@_id": string;
691
+ "@_type": Type;
692
+ title: FrontMatter[];
693
+ description: FrontMatter[];
694
+ value: Array<boolean | IndigoValue | number | string> | number;
695
+ "@_interactive"?: string;
696
+ }
697
+
698
+ export interface AmbitiousDescription {
699
+ "#text": string;
700
+ "@_xmlns:xhtml": string;
701
+ "@_xml:lang": XMLLang;
702
+ "html:code"?: FluffyHTML[];
703
+ "html:br"?: HTMLBr[];
704
+ "html:pre"?: HTMLEmElement[];
705
+ "html:ul"?: CunningHTMLUL[];
706
+ "html:i"?: HTMLEmElement[];
707
+ "html:a"?: HTMLA[];
708
+ }
709
+
710
+ export interface CunningHTMLUL {
711
+ "@_xmlns:html": string;
712
+ "html:li": Array<CunningHTMLLi | string>;
713
+ }
714
+
715
+ export interface CunningHTMLLi {
716
+ "html:code": string;
717
+ "html:ul": HTMLLiHTMLUL[];
718
+ "#text"?: string;
719
+ }
720
+
721
+ export interface HTMLLiHTMLUL {
722
+ "html:li": HilariousHTMLLi[] | string;
723
+ }
724
+
725
+ export interface BenchmarkRule {
726
+ "@_id": string;
727
+ "@_severity": Severity;
728
+ "@_weight": string;
40
729
  version: string;
41
730
  title: string;
42
731
  description: string;
43
- reference: RuleReference;
732
+ rationale: FrontMatter[];
733
+ reference: PurpleReference[];
44
734
  ident: Ident[];
45
- fixtext: Fixtext;
46
- fix: Fix;
47
- check: Check;
735
+ fixtext: Fixtext[];
736
+ fix: FluffyFix[];
737
+ check: CheckContent[];
48
738
  }
49
739
 
50
- export interface Check {
51
- '@_system': string;
52
- 'check-content-ref': CheckContentRef;
53
- 'check-content': string;
740
+ export interface CheckContent {
741
+ "@_system": string;
742
+ "check-content-ref": CheckContentRef[];
743
+ "check-content": string;
54
744
  }
55
745
 
56
- export interface CheckContentRef {
57
- '@_href': string;
58
- '@_name': string;
746
+ export interface FluffyFix {
747
+ "@_id": string;
59
748
  }
60
749
 
61
- export interface Fix {
62
- '@_id': string;
750
+ export interface Rationale {
751
+ "#text": string;
752
+ "@_fixref": string;
63
753
  }
64
754
 
65
755
  export interface Fixtext {
66
- '#text': string;
67
- '@_fixref': string;
756
+ "#text": string;
757
+ "@_fixref": string;
68
758
  }
69
759
 
70
760
  export interface Ident {
71
- '#text': string;
72
- '@_system': string;
761
+ "#text": string;
762
+ "@_system": string;
763
+ }
764
+
765
+ export interface PurpleReference {
766
+ "dc:title": DcTitle;
767
+ "dc:publisher": DcPublisher;
768
+ "dc:type": DcType;
769
+ "dc:subject": DcSubject;
770
+ "dc:identifier": number;
771
+ }
772
+
773
+ export enum DcPublisher {
774
+ Disa = "DISA",
775
+ }
776
+
777
+ export enum DcSubject {
778
+ RedHat7 = "Red Hat 7",
779
+ RedHatEnterpriseLinux8 = "Red Hat Enterprise Linux 8",
780
+ }
781
+
782
+ export enum DcTitle {
783
+ DPMSTargetRedHat7 = "DPMS Target Red Hat 7",
784
+ DPMSTargetRedHatEnterpriseLinux8 = "DPMS Target Red Hat Enterprise Linux 8",
785
+ }
786
+
787
+ export enum DcType {
788
+ DPMSTarget = "DPMS Target",
789
+ }
790
+
791
+ export interface HilariousValue {
792
+ "@_id": string;
793
+ "@_hidden": string;
794
+ "@_prohibitChanges": string;
795
+ "@_operator": ValueOperator;
796
+ "@_type": Type;
797
+ title: FrontMatter[];
798
+ description: FrontMatter[];
799
+ value: string;
73
800
  }
74
801
 
75
- export interface RuleReference {
76
- 'dc:title': string;
77
- 'dc:publisher': string;
78
- 'dc:type': string;
79
- 'dc:subject': string;
80
- 'dc:identifier': number;
802
+ export enum ValueOperator {
803
+ Equals = "equals",
804
+ }
805
+
806
+ export enum CunningDescription {
807
+ LtGroupDescriptionGtLtGroupDescriptionGt = "&lt;GroupDescription&gt;&lt;/GroupDescription&gt;",
808
+ }
809
+
810
+ export interface Profile {
811
+ "@_id": string;
812
+ title: FrontMatter[] | string;
813
+ description: FrontMatter[] | MagentaDescription;
814
+ select: Select[];
815
+ "refine-value"?: RefineValue[];
816
+ }
817
+
818
+ export enum MagentaDescription {
819
+ LtProfileDescriptionGtLtProfileDescriptionGt = "&lt;ProfileDescription&gt;&lt;/ProfileDescription&gt;",
820
+ }
821
+
822
+ export interface RefineValue {
823
+ "@_idref": string;
824
+ "@_selector": string;
81
825
  }
82
826
 
83
827
  export interface Select {
84
- '@_idref': string;
85
- '@_selected': string;
828
+ "@_idref": string;
829
+ "@_selected": string;
86
830
  }
87
831
 
88
- export interface Matter {
89
- '@_xml:lang': string;
832
+ export interface Metadatum {
833
+ "@_xmlns:xhtml": string;
834
+ "dc:publisher": Dc[];
835
+ "dc:creator": Dc[];
836
+ "dc:contributor": Dc[];
837
+ "dc:source": Dc[];
90
838
  }
91
839
 
92
- export interface Notice {
93
- '@_id': string;
94
- '@_xml:lang': string;
840
+ export interface Dc {
841
+ "#text": string;
842
+ "@_xmlns:dc": string;
843
+ }
844
+
845
+ export interface Model {
846
+ "@_system": string;
95
847
  }
96
848
 
97
849
  export interface PlainText {
98
- '#text': string;
99
- '@_id': string;
850
+ "#text": string;
851
+ "@_id": string;
100
852
  }
101
853
 
102
854
  export interface BenchmarkReference {
103
- '@_href': string;
104
- 'dc:publisher': string;
105
- 'dc:source': string;
855
+ "@_href": string;
856
+ "dc:publisher": DcPublisher;
857
+ "dc:source": string;
106
858
  }
107
859
 
108
860
  export interface Status {
109
- '#text': string;
110
- '@_date': Date;
861
+ "#text": string;
862
+ "@_date": Date;
863
+ }
864
+
865
+ export interface VersionElement {
866
+ "#text": string;
867
+ "@_update": string;
111
868
  }
112
869
 
113
870
  export interface DecodedDescription {