impreza-mcp 0.45.0 → 0.47.0

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.
@@ -0,0 +1,1614 @@
1
+ // Closed host facts schema shared with the hosted API; no arbitrary output.
2
+ export const hostInventoryOutputSchema = {
3
+ "type": "object",
4
+ "properties": {
5
+ "agent_id": {
6
+ "type": "string",
7
+ "maxLength": 128,
8
+ "pattern": "^agt_[a-f0-9]{16,24}$"
9
+ },
10
+ "protocol": {
11
+ "type": "string",
12
+ "maxLength": 128,
13
+ "enum": [
14
+ "host-inventory-v1"
15
+ ]
16
+ },
17
+ "minimum_agent_version": {
18
+ "type": "string",
19
+ "maxLength": 128,
20
+ "enum": [
21
+ "0.6.28 (not yet released)"
22
+ ]
23
+ },
24
+ "supported": {
25
+ "type": "boolean"
26
+ },
27
+ "status": {
28
+ "type": "string",
29
+ "maxLength": 128,
30
+ "enum": [
31
+ "complete",
32
+ "partial",
33
+ "unavailable",
34
+ "offline",
35
+ "stale",
36
+ "awaiting"
37
+ ]
38
+ },
39
+ "observed_at": {
40
+ "type": [
41
+ "string",
42
+ "null"
43
+ ],
44
+ "format": "date-time",
45
+ "maxLength": 40
46
+ },
47
+ "request_pending": {
48
+ "type": "boolean"
49
+ },
50
+ "facts": {
51
+ "type": "object",
52
+ "properties": {
53
+ "os": {
54
+ "type": "object",
55
+ "properties": {
56
+ "source": {
57
+ "type": "string",
58
+ "maxLength": 128,
59
+ "enum": [
60
+ "os-release",
61
+ "proc-kernel",
62
+ "proc-boot",
63
+ "dpkg-query",
64
+ "apt-cache",
65
+ "systemd",
66
+ "sshd-public-keys",
67
+ "mountinfo-statfs",
68
+ "docker-version",
69
+ "tor-version",
70
+ "caddy-version",
71
+ "caddy-modules",
72
+ "control-plane"
73
+ ]
74
+ },
75
+ "observed_at": {
76
+ "type": [
77
+ "string",
78
+ "null"
79
+ ],
80
+ "format": "date-time",
81
+ "maxLength": 40
82
+ },
83
+ "valid_until": {
84
+ "type": [
85
+ "string",
86
+ "null"
87
+ ],
88
+ "format": "date-time",
89
+ "maxLength": 40
90
+ },
91
+ "state": {
92
+ "type": "string",
93
+ "maxLength": 128,
94
+ "enum": [
95
+ "complete",
96
+ "partial",
97
+ "unavailable"
98
+ ]
99
+ },
100
+ "reason": {
101
+ "type": "string",
102
+ "maxLength": 128,
103
+ "enum": [
104
+ "observed",
105
+ "collection_failed",
106
+ "cached_only",
107
+ "unsupported_os",
108
+ "invalid_output",
109
+ "truncated",
110
+ "ssh_global_policy",
111
+ "not_collected",
112
+ "provider_unknown"
113
+ ]
114
+ },
115
+ "value": {
116
+ "type": [
117
+ "object",
118
+ "null"
119
+ ],
120
+ "properties": {
121
+ "id": {
122
+ "type": "string",
123
+ "maxLength": 128,
124
+ "enum": [
125
+ "ubuntu",
126
+ "debian",
127
+ "almalinux",
128
+ "rocky",
129
+ "centos",
130
+ "fedora",
131
+ "rhel",
132
+ "alpine",
133
+ "unknown"
134
+ ]
135
+ },
136
+ "version": {
137
+ "type": "string",
138
+ "maxLength": 128,
139
+ "pattern": "^[0-9]+(?:\\.[0-9]+)*$"
140
+ },
141
+ "architecture": {
142
+ "type": "string",
143
+ "maxLength": 128,
144
+ "enum": [
145
+ "amd64",
146
+ "arm64",
147
+ "386",
148
+ "arm",
149
+ "riscv64",
150
+ "s390x",
151
+ "ppc64le"
152
+ ]
153
+ }
154
+ },
155
+ "required": [
156
+ "id",
157
+ "version",
158
+ "architecture"
159
+ ],
160
+ "additionalProperties": false
161
+ },
162
+ "stale": {
163
+ "type": "boolean"
164
+ }
165
+ },
166
+ "required": [
167
+ "source",
168
+ "observed_at",
169
+ "valid_until",
170
+ "state",
171
+ "reason",
172
+ "value",
173
+ "stale"
174
+ ],
175
+ "additionalProperties": false
176
+ },
177
+ "kernel_loaded": {
178
+ "type": "object",
179
+ "properties": {
180
+ "source": {
181
+ "type": "string",
182
+ "maxLength": 128,
183
+ "enum": [
184
+ "os-release",
185
+ "proc-kernel",
186
+ "proc-boot",
187
+ "dpkg-query",
188
+ "apt-cache",
189
+ "systemd",
190
+ "sshd-public-keys",
191
+ "mountinfo-statfs",
192
+ "docker-version",
193
+ "tor-version",
194
+ "caddy-version",
195
+ "caddy-modules",
196
+ "control-plane"
197
+ ]
198
+ },
199
+ "observed_at": {
200
+ "type": [
201
+ "string",
202
+ "null"
203
+ ],
204
+ "format": "date-time",
205
+ "maxLength": 40
206
+ },
207
+ "valid_until": {
208
+ "type": [
209
+ "string",
210
+ "null"
211
+ ],
212
+ "format": "date-time",
213
+ "maxLength": 40
214
+ },
215
+ "state": {
216
+ "type": "string",
217
+ "maxLength": 128,
218
+ "enum": [
219
+ "complete",
220
+ "partial",
221
+ "unavailable"
222
+ ]
223
+ },
224
+ "reason": {
225
+ "type": "string",
226
+ "maxLength": 128,
227
+ "enum": [
228
+ "observed",
229
+ "collection_failed",
230
+ "cached_only",
231
+ "unsupported_os",
232
+ "invalid_output",
233
+ "truncated",
234
+ "ssh_global_policy",
235
+ "not_collected",
236
+ "provider_unknown"
237
+ ]
238
+ },
239
+ "value": {
240
+ "type": [
241
+ "object",
242
+ "null"
243
+ ],
244
+ "properties": {
245
+ "version": {
246
+ "type": "string",
247
+ "maxLength": 128,
248
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.+:~/-]{0,127}$"
249
+ }
250
+ },
251
+ "required": [
252
+ "version"
253
+ ],
254
+ "additionalProperties": false
255
+ },
256
+ "stale": {
257
+ "type": "boolean"
258
+ }
259
+ },
260
+ "required": [
261
+ "source",
262
+ "observed_at",
263
+ "valid_until",
264
+ "state",
265
+ "reason",
266
+ "value",
267
+ "stale"
268
+ ],
269
+ "additionalProperties": false
270
+ },
271
+ "kernel_installed": {
272
+ "type": "object",
273
+ "properties": {
274
+ "source": {
275
+ "type": "string",
276
+ "maxLength": 128,
277
+ "enum": [
278
+ "os-release",
279
+ "proc-kernel",
280
+ "proc-boot",
281
+ "dpkg-query",
282
+ "apt-cache",
283
+ "systemd",
284
+ "sshd-public-keys",
285
+ "mountinfo-statfs",
286
+ "docker-version",
287
+ "tor-version",
288
+ "caddy-version",
289
+ "caddy-modules",
290
+ "control-plane"
291
+ ]
292
+ },
293
+ "observed_at": {
294
+ "type": [
295
+ "string",
296
+ "null"
297
+ ],
298
+ "format": "date-time",
299
+ "maxLength": 40
300
+ },
301
+ "valid_until": {
302
+ "type": [
303
+ "string",
304
+ "null"
305
+ ],
306
+ "format": "date-time",
307
+ "maxLength": 40
308
+ },
309
+ "state": {
310
+ "type": "string",
311
+ "maxLength": 128,
312
+ "enum": [
313
+ "complete",
314
+ "partial",
315
+ "unavailable"
316
+ ]
317
+ },
318
+ "reason": {
319
+ "type": "string",
320
+ "maxLength": 128,
321
+ "enum": [
322
+ "observed",
323
+ "collection_failed",
324
+ "cached_only",
325
+ "unsupported_os",
326
+ "invalid_output",
327
+ "truncated",
328
+ "ssh_global_policy",
329
+ "not_collected",
330
+ "provider_unknown"
331
+ ]
332
+ },
333
+ "value": {
334
+ "type": [
335
+ "object",
336
+ "null"
337
+ ],
338
+ "properties": {
339
+ "versions": {
340
+ "type": "array",
341
+ "items": {
342
+ "type": "string",
343
+ "maxLength": 128,
344
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.+:~/-]{0,127}$"
345
+ },
346
+ "maxItems": 128
347
+ }
348
+ },
349
+ "required": [
350
+ "versions"
351
+ ],
352
+ "additionalProperties": false
353
+ },
354
+ "stale": {
355
+ "type": "boolean"
356
+ }
357
+ },
358
+ "required": [
359
+ "source",
360
+ "observed_at",
361
+ "valid_until",
362
+ "state",
363
+ "reason",
364
+ "value",
365
+ "stale"
366
+ ],
367
+ "additionalProperties": false
368
+ },
369
+ "boot": {
370
+ "type": "object",
371
+ "properties": {
372
+ "source": {
373
+ "type": "string",
374
+ "maxLength": 128,
375
+ "enum": [
376
+ "os-release",
377
+ "proc-kernel",
378
+ "proc-boot",
379
+ "dpkg-query",
380
+ "apt-cache",
381
+ "systemd",
382
+ "sshd-public-keys",
383
+ "mountinfo-statfs",
384
+ "docker-version",
385
+ "tor-version",
386
+ "caddy-version",
387
+ "caddy-modules",
388
+ "control-plane"
389
+ ]
390
+ },
391
+ "observed_at": {
392
+ "type": [
393
+ "string",
394
+ "null"
395
+ ],
396
+ "format": "date-time",
397
+ "maxLength": 40
398
+ },
399
+ "valid_until": {
400
+ "type": [
401
+ "string",
402
+ "null"
403
+ ],
404
+ "format": "date-time",
405
+ "maxLength": 40
406
+ },
407
+ "state": {
408
+ "type": "string",
409
+ "maxLength": 128,
410
+ "enum": [
411
+ "complete",
412
+ "partial",
413
+ "unavailable"
414
+ ]
415
+ },
416
+ "reason": {
417
+ "type": "string",
418
+ "maxLength": 128,
419
+ "enum": [
420
+ "observed",
421
+ "collection_failed",
422
+ "cached_only",
423
+ "unsupported_os",
424
+ "invalid_output",
425
+ "truncated",
426
+ "ssh_global_policy",
427
+ "not_collected",
428
+ "provider_unknown"
429
+ ]
430
+ },
431
+ "value": {
432
+ "type": [
433
+ "object",
434
+ "null"
435
+ ],
436
+ "properties": {
437
+ "id": {
438
+ "type": "string",
439
+ "maxLength": 128,
440
+ "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
441
+ }
442
+ },
443
+ "required": [
444
+ "id"
445
+ ],
446
+ "additionalProperties": false
447
+ },
448
+ "stale": {
449
+ "type": "boolean"
450
+ }
451
+ },
452
+ "required": [
453
+ "source",
454
+ "observed_at",
455
+ "valid_until",
456
+ "state",
457
+ "reason",
458
+ "value",
459
+ "stale"
460
+ ],
461
+ "additionalProperties": false
462
+ },
463
+ "packages_installed": {
464
+ "type": "object",
465
+ "properties": {
466
+ "source": {
467
+ "type": "string",
468
+ "maxLength": 128,
469
+ "enum": [
470
+ "os-release",
471
+ "proc-kernel",
472
+ "proc-boot",
473
+ "dpkg-query",
474
+ "apt-cache",
475
+ "systemd",
476
+ "sshd-public-keys",
477
+ "mountinfo-statfs",
478
+ "docker-version",
479
+ "tor-version",
480
+ "caddy-version",
481
+ "caddy-modules",
482
+ "control-plane"
483
+ ]
484
+ },
485
+ "observed_at": {
486
+ "type": [
487
+ "string",
488
+ "null"
489
+ ],
490
+ "format": "date-time",
491
+ "maxLength": 40
492
+ },
493
+ "valid_until": {
494
+ "type": [
495
+ "string",
496
+ "null"
497
+ ],
498
+ "format": "date-time",
499
+ "maxLength": 40
500
+ },
501
+ "state": {
502
+ "type": "string",
503
+ "maxLength": 128,
504
+ "enum": [
505
+ "complete",
506
+ "partial",
507
+ "unavailable"
508
+ ]
509
+ },
510
+ "reason": {
511
+ "type": "string",
512
+ "maxLength": 128,
513
+ "enum": [
514
+ "observed",
515
+ "collection_failed",
516
+ "cached_only",
517
+ "unsupported_os",
518
+ "invalid_output",
519
+ "truncated",
520
+ "ssh_global_policy",
521
+ "not_collected",
522
+ "provider_unknown"
523
+ ]
524
+ },
525
+ "value": {
526
+ "type": [
527
+ "object",
528
+ "null"
529
+ ],
530
+ "properties": {
531
+ "manager": {
532
+ "type": "string",
533
+ "maxLength": 128,
534
+ "enum": [
535
+ "apt"
536
+ ]
537
+ },
538
+ "count": {
539
+ "type": "integer",
540
+ "minimum": 0,
541
+ "maximum": 9007199254740991
542
+ }
543
+ },
544
+ "required": [
545
+ "manager",
546
+ "count"
547
+ ],
548
+ "additionalProperties": false
549
+ },
550
+ "stale": {
551
+ "type": "boolean"
552
+ }
553
+ },
554
+ "required": [
555
+ "source",
556
+ "observed_at",
557
+ "valid_until",
558
+ "state",
559
+ "reason",
560
+ "value",
561
+ "stale"
562
+ ],
563
+ "additionalProperties": false
564
+ },
565
+ "packages_candidates": {
566
+ "type": "object",
567
+ "properties": {
568
+ "source": {
569
+ "type": "string",
570
+ "maxLength": 128,
571
+ "enum": [
572
+ "os-release",
573
+ "proc-kernel",
574
+ "proc-boot",
575
+ "dpkg-query",
576
+ "apt-cache",
577
+ "systemd",
578
+ "sshd-public-keys",
579
+ "mountinfo-statfs",
580
+ "docker-version",
581
+ "tor-version",
582
+ "caddy-version",
583
+ "caddy-modules",
584
+ "control-plane"
585
+ ]
586
+ },
587
+ "observed_at": {
588
+ "type": [
589
+ "string",
590
+ "null"
591
+ ],
592
+ "format": "date-time",
593
+ "maxLength": 40
594
+ },
595
+ "valid_until": {
596
+ "type": [
597
+ "string",
598
+ "null"
599
+ ],
600
+ "format": "date-time",
601
+ "maxLength": 40
602
+ },
603
+ "state": {
604
+ "type": "string",
605
+ "maxLength": 128,
606
+ "enum": [
607
+ "complete",
608
+ "partial",
609
+ "unavailable"
610
+ ]
611
+ },
612
+ "reason": {
613
+ "type": "string",
614
+ "maxLength": 128,
615
+ "enum": [
616
+ "observed",
617
+ "collection_failed",
618
+ "cached_only",
619
+ "unsupported_os",
620
+ "invalid_output",
621
+ "truncated",
622
+ "ssh_global_policy",
623
+ "not_collected",
624
+ "provider_unknown"
625
+ ]
626
+ },
627
+ "value": {
628
+ "type": [
629
+ "object",
630
+ "null"
631
+ ],
632
+ "properties": {
633
+ "manager": {
634
+ "type": "string",
635
+ "maxLength": 128,
636
+ "enum": [
637
+ "apt"
638
+ ]
639
+ },
640
+ "candidates": {
641
+ "type": "array",
642
+ "items": {
643
+ "type": "object",
644
+ "properties": {
645
+ "name": {
646
+ "type": "string",
647
+ "maxLength": 128,
648
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.+:~/-]{0,127}$"
649
+ },
650
+ "installed": {
651
+ "type": "string",
652
+ "maxLength": 128,
653
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.+:~/-]{0,127}$"
654
+ },
655
+ "candidate": {
656
+ "type": "string",
657
+ "maxLength": 128,
658
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.+:~/-]{0,127}$"
659
+ }
660
+ },
661
+ "required": [
662
+ "name",
663
+ "installed",
664
+ "candidate"
665
+ ],
666
+ "additionalProperties": false
667
+ },
668
+ "maxItems": 512
669
+ },
670
+ "repository_contacted": {
671
+ "type": "boolean",
672
+ "const": false
673
+ }
674
+ },
675
+ "required": [
676
+ "manager",
677
+ "candidates",
678
+ "repository_contacted"
679
+ ],
680
+ "additionalProperties": false
681
+ },
682
+ "stale": {
683
+ "type": "boolean"
684
+ }
685
+ },
686
+ "required": [
687
+ "source",
688
+ "observed_at",
689
+ "valid_until",
690
+ "state",
691
+ "reason",
692
+ "value",
693
+ "stale"
694
+ ],
695
+ "additionalProperties": false
696
+ },
697
+ "services": {
698
+ "type": "object",
699
+ "properties": {
700
+ "source": {
701
+ "type": "string",
702
+ "maxLength": 128,
703
+ "enum": [
704
+ "os-release",
705
+ "proc-kernel",
706
+ "proc-boot",
707
+ "dpkg-query",
708
+ "apt-cache",
709
+ "systemd",
710
+ "sshd-public-keys",
711
+ "mountinfo-statfs",
712
+ "docker-version",
713
+ "tor-version",
714
+ "caddy-version",
715
+ "caddy-modules",
716
+ "control-plane"
717
+ ]
718
+ },
719
+ "observed_at": {
720
+ "type": [
721
+ "string",
722
+ "null"
723
+ ],
724
+ "format": "date-time",
725
+ "maxLength": 40
726
+ },
727
+ "valid_until": {
728
+ "type": [
729
+ "string",
730
+ "null"
731
+ ],
732
+ "format": "date-time",
733
+ "maxLength": 40
734
+ },
735
+ "state": {
736
+ "type": "string",
737
+ "maxLength": 128,
738
+ "enum": [
739
+ "complete",
740
+ "partial",
741
+ "unavailable"
742
+ ]
743
+ },
744
+ "reason": {
745
+ "type": "string",
746
+ "maxLength": 128,
747
+ "enum": [
748
+ "observed",
749
+ "collection_failed",
750
+ "cached_only",
751
+ "unsupported_os",
752
+ "invalid_output",
753
+ "truncated",
754
+ "ssh_global_policy",
755
+ "not_collected",
756
+ "provider_unknown"
757
+ ]
758
+ },
759
+ "value": {
760
+ "type": [
761
+ "object",
762
+ "null"
763
+ ],
764
+ "properties": {
765
+ "units": {
766
+ "type": "array",
767
+ "items": {
768
+ "type": "object",
769
+ "properties": {
770
+ "name": {
771
+ "type": "string",
772
+ "maxLength": 128,
773
+ "enum": [
774
+ "impreza-agent.service",
775
+ "docker.service",
776
+ "tor.service",
777
+ "impreza-agent-ingress.service"
778
+ ]
779
+ },
780
+ "load": {
781
+ "type": "string",
782
+ "maxLength": 128,
783
+ "enum": [
784
+ "loaded",
785
+ "not-found",
786
+ "masked",
787
+ "error",
788
+ "bad-setting",
789
+ "unknown"
790
+ ]
791
+ },
792
+ "active": {
793
+ "type": "string",
794
+ "maxLength": 128,
795
+ "enum": [
796
+ "active",
797
+ "inactive",
798
+ "failed",
799
+ "activating",
800
+ "deactivating",
801
+ "reloading",
802
+ "maintenance",
803
+ "refreshing",
804
+ "unknown"
805
+ ]
806
+ },
807
+ "sub": {
808
+ "type": "string",
809
+ "maxLength": 128,
810
+ "pattern": "^[a-z-]{1,32}$"
811
+ }
812
+ },
813
+ "required": [
814
+ "name",
815
+ "load",
816
+ "active",
817
+ "sub"
818
+ ],
819
+ "additionalProperties": false
820
+ },
821
+ "maxItems": 4
822
+ }
823
+ },
824
+ "required": [
825
+ "units"
826
+ ],
827
+ "additionalProperties": false
828
+ },
829
+ "stale": {
830
+ "type": "boolean"
831
+ }
832
+ },
833
+ "required": [
834
+ "source",
835
+ "observed_at",
836
+ "valid_until",
837
+ "state",
838
+ "reason",
839
+ "value",
840
+ "stale"
841
+ ],
842
+ "additionalProperties": false
843
+ },
844
+ "ssh": {
845
+ "type": "object",
846
+ "properties": {
847
+ "source": {
848
+ "type": "string",
849
+ "maxLength": 128,
850
+ "enum": [
851
+ "os-release",
852
+ "proc-kernel",
853
+ "proc-boot",
854
+ "dpkg-query",
855
+ "apt-cache",
856
+ "systemd",
857
+ "sshd-public-keys",
858
+ "mountinfo-statfs",
859
+ "docker-version",
860
+ "tor-version",
861
+ "caddy-version",
862
+ "caddy-modules",
863
+ "control-plane"
864
+ ]
865
+ },
866
+ "observed_at": {
867
+ "type": [
868
+ "string",
869
+ "null"
870
+ ],
871
+ "format": "date-time",
872
+ "maxLength": 40
873
+ },
874
+ "valid_until": {
875
+ "type": [
876
+ "string",
877
+ "null"
878
+ ],
879
+ "format": "date-time",
880
+ "maxLength": 40
881
+ },
882
+ "state": {
883
+ "type": "string",
884
+ "maxLength": 128,
885
+ "enum": [
886
+ "complete",
887
+ "partial",
888
+ "unavailable"
889
+ ]
890
+ },
891
+ "reason": {
892
+ "type": "string",
893
+ "maxLength": 128,
894
+ "enum": [
895
+ "observed",
896
+ "collection_failed",
897
+ "cached_only",
898
+ "unsupported_os",
899
+ "invalid_output",
900
+ "truncated",
901
+ "ssh_global_policy",
902
+ "not_collected",
903
+ "provider_unknown"
904
+ ]
905
+ },
906
+ "value": {
907
+ "type": [
908
+ "object",
909
+ "null"
910
+ ],
911
+ "properties": {
912
+ "ports": {
913
+ "type": "array",
914
+ "items": {
915
+ "type": "integer",
916
+ "minimum": 1,
917
+ "maximum": 65535
918
+ },
919
+ "maxItems": 16
920
+ },
921
+ "password_authentication": {
922
+ "type": "string",
923
+ "maxLength": 128,
924
+ "enum": [
925
+ "yes",
926
+ "no",
927
+ "unknown"
928
+ ]
929
+ },
930
+ "permit_root_login": {
931
+ "type": "string",
932
+ "maxLength": 128,
933
+ "enum": [
934
+ "yes",
935
+ "no",
936
+ "prohibit-password",
937
+ "without-password",
938
+ "forced-commands-only",
939
+ "unknown"
940
+ ]
941
+ },
942
+ "fingerprints": {
943
+ "type": "array",
944
+ "items": {
945
+ "type": "string",
946
+ "maxLength": 128,
947
+ "pattern": "^SHA256:[A-Za-z0-9+/]{43}$"
948
+ },
949
+ "maxItems": 3
950
+ }
951
+ },
952
+ "required": [
953
+ "ports",
954
+ "password_authentication",
955
+ "permit_root_login",
956
+ "fingerprints"
957
+ ],
958
+ "additionalProperties": false
959
+ },
960
+ "stale": {
961
+ "type": "boolean"
962
+ }
963
+ },
964
+ "required": [
965
+ "source",
966
+ "observed_at",
967
+ "valid_until",
968
+ "state",
969
+ "reason",
970
+ "value",
971
+ "stale"
972
+ ],
973
+ "additionalProperties": false
974
+ },
975
+ "filesystems": {
976
+ "type": "object",
977
+ "properties": {
978
+ "source": {
979
+ "type": "string",
980
+ "maxLength": 128,
981
+ "enum": [
982
+ "os-release",
983
+ "proc-kernel",
984
+ "proc-boot",
985
+ "dpkg-query",
986
+ "apt-cache",
987
+ "systemd",
988
+ "sshd-public-keys",
989
+ "mountinfo-statfs",
990
+ "docker-version",
991
+ "tor-version",
992
+ "caddy-version",
993
+ "caddy-modules",
994
+ "control-plane"
995
+ ]
996
+ },
997
+ "observed_at": {
998
+ "type": [
999
+ "string",
1000
+ "null"
1001
+ ],
1002
+ "format": "date-time",
1003
+ "maxLength": 40
1004
+ },
1005
+ "valid_until": {
1006
+ "type": [
1007
+ "string",
1008
+ "null"
1009
+ ],
1010
+ "format": "date-time",
1011
+ "maxLength": 40
1012
+ },
1013
+ "state": {
1014
+ "type": "string",
1015
+ "maxLength": 128,
1016
+ "enum": [
1017
+ "complete",
1018
+ "partial",
1019
+ "unavailable"
1020
+ ]
1021
+ },
1022
+ "reason": {
1023
+ "type": "string",
1024
+ "maxLength": 128,
1025
+ "enum": [
1026
+ "observed",
1027
+ "collection_failed",
1028
+ "cached_only",
1029
+ "unsupported_os",
1030
+ "invalid_output",
1031
+ "truncated",
1032
+ "ssh_global_policy",
1033
+ "not_collected",
1034
+ "provider_unknown"
1035
+ ]
1036
+ },
1037
+ "value": {
1038
+ "type": [
1039
+ "object",
1040
+ "null"
1041
+ ],
1042
+ "properties": {
1043
+ "mounts": {
1044
+ "type": "array",
1045
+ "items": {
1046
+ "type": "object",
1047
+ "properties": {
1048
+ "device": {
1049
+ "type": "string",
1050
+ "maxLength": 128,
1051
+ "pattern": "^/dev/[A-Za-z0-9_./-]+$"
1052
+ },
1053
+ "mount": {
1054
+ "type": "string",
1055
+ "maxLength": 256,
1056
+ "pattern": "^/[A-Za-z0-9_./-]*$"
1057
+ },
1058
+ "type": {
1059
+ "type": "string",
1060
+ "maxLength": 128,
1061
+ "enum": [
1062
+ "ext2",
1063
+ "ext3",
1064
+ "ext4",
1065
+ "xfs",
1066
+ "btrfs",
1067
+ "vfat",
1068
+ "f2fs",
1069
+ "zfs"
1070
+ ]
1071
+ },
1072
+ "bytes_total": {
1073
+ "type": "integer",
1074
+ "minimum": 0,
1075
+ "maximum": 9007199254740991
1076
+ },
1077
+ "bytes_available": {
1078
+ "type": "integer",
1079
+ "minimum": 0,
1080
+ "maximum": 9007199254740991
1081
+ },
1082
+ "inodes_total": {
1083
+ "type": "integer",
1084
+ "minimum": 0,
1085
+ "maximum": 9007199254740991
1086
+ },
1087
+ "inodes_available": {
1088
+ "type": "integer",
1089
+ "minimum": 0,
1090
+ "maximum": 9007199254740991
1091
+ }
1092
+ },
1093
+ "required": [
1094
+ "device",
1095
+ "mount",
1096
+ "type",
1097
+ "bytes_total",
1098
+ "bytes_available",
1099
+ "inodes_total",
1100
+ "inodes_available"
1101
+ ],
1102
+ "additionalProperties": false
1103
+ },
1104
+ "maxItems": 64
1105
+ }
1106
+ },
1107
+ "required": [
1108
+ "mounts"
1109
+ ],
1110
+ "additionalProperties": false
1111
+ },
1112
+ "stale": {
1113
+ "type": "boolean"
1114
+ }
1115
+ },
1116
+ "required": [
1117
+ "source",
1118
+ "observed_at",
1119
+ "valid_until",
1120
+ "state",
1121
+ "reason",
1122
+ "value",
1123
+ "stale"
1124
+ ],
1125
+ "additionalProperties": false
1126
+ },
1127
+ "docker": {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "source": {
1131
+ "type": "string",
1132
+ "maxLength": 128,
1133
+ "enum": [
1134
+ "os-release",
1135
+ "proc-kernel",
1136
+ "proc-boot",
1137
+ "dpkg-query",
1138
+ "apt-cache",
1139
+ "systemd",
1140
+ "sshd-public-keys",
1141
+ "mountinfo-statfs",
1142
+ "docker-version",
1143
+ "tor-version",
1144
+ "caddy-version",
1145
+ "caddy-modules",
1146
+ "control-plane"
1147
+ ]
1148
+ },
1149
+ "observed_at": {
1150
+ "type": [
1151
+ "string",
1152
+ "null"
1153
+ ],
1154
+ "format": "date-time",
1155
+ "maxLength": 40
1156
+ },
1157
+ "valid_until": {
1158
+ "type": [
1159
+ "string",
1160
+ "null"
1161
+ ],
1162
+ "format": "date-time",
1163
+ "maxLength": 40
1164
+ },
1165
+ "state": {
1166
+ "type": "string",
1167
+ "maxLength": 128,
1168
+ "enum": [
1169
+ "complete",
1170
+ "partial",
1171
+ "unavailable"
1172
+ ]
1173
+ },
1174
+ "reason": {
1175
+ "type": "string",
1176
+ "maxLength": 128,
1177
+ "enum": [
1178
+ "observed",
1179
+ "collection_failed",
1180
+ "cached_only",
1181
+ "unsupported_os",
1182
+ "invalid_output",
1183
+ "truncated",
1184
+ "ssh_global_policy",
1185
+ "not_collected",
1186
+ "provider_unknown"
1187
+ ]
1188
+ },
1189
+ "value": {
1190
+ "type": [
1191
+ "object",
1192
+ "null"
1193
+ ],
1194
+ "properties": {
1195
+ "version": {
1196
+ "type": "string",
1197
+ "maxLength": 128,
1198
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[.-][A-Za-z0-9]+)*$"
1199
+ }
1200
+ },
1201
+ "required": [
1202
+ "version"
1203
+ ],
1204
+ "additionalProperties": false
1205
+ },
1206
+ "stale": {
1207
+ "type": "boolean"
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "source",
1212
+ "observed_at",
1213
+ "valid_until",
1214
+ "state",
1215
+ "reason",
1216
+ "value",
1217
+ "stale"
1218
+ ],
1219
+ "additionalProperties": false
1220
+ },
1221
+ "tor": {
1222
+ "type": "object",
1223
+ "properties": {
1224
+ "source": {
1225
+ "type": "string",
1226
+ "maxLength": 128,
1227
+ "enum": [
1228
+ "os-release",
1229
+ "proc-kernel",
1230
+ "proc-boot",
1231
+ "dpkg-query",
1232
+ "apt-cache",
1233
+ "systemd",
1234
+ "sshd-public-keys",
1235
+ "mountinfo-statfs",
1236
+ "docker-version",
1237
+ "tor-version",
1238
+ "caddy-version",
1239
+ "caddy-modules",
1240
+ "control-plane"
1241
+ ]
1242
+ },
1243
+ "observed_at": {
1244
+ "type": [
1245
+ "string",
1246
+ "null"
1247
+ ],
1248
+ "format": "date-time",
1249
+ "maxLength": 40
1250
+ },
1251
+ "valid_until": {
1252
+ "type": [
1253
+ "string",
1254
+ "null"
1255
+ ],
1256
+ "format": "date-time",
1257
+ "maxLength": 40
1258
+ },
1259
+ "state": {
1260
+ "type": "string",
1261
+ "maxLength": 128,
1262
+ "enum": [
1263
+ "complete",
1264
+ "partial",
1265
+ "unavailable"
1266
+ ]
1267
+ },
1268
+ "reason": {
1269
+ "type": "string",
1270
+ "maxLength": 128,
1271
+ "enum": [
1272
+ "observed",
1273
+ "collection_failed",
1274
+ "cached_only",
1275
+ "unsupported_os",
1276
+ "invalid_output",
1277
+ "truncated",
1278
+ "ssh_global_policy",
1279
+ "not_collected",
1280
+ "provider_unknown"
1281
+ ]
1282
+ },
1283
+ "value": {
1284
+ "type": [
1285
+ "object",
1286
+ "null"
1287
+ ],
1288
+ "properties": {
1289
+ "version": {
1290
+ "type": "string",
1291
+ "maxLength": 128,
1292
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[.-][A-Za-z0-9]+)*$"
1293
+ }
1294
+ },
1295
+ "required": [
1296
+ "version"
1297
+ ],
1298
+ "additionalProperties": false
1299
+ },
1300
+ "stale": {
1301
+ "type": "boolean"
1302
+ }
1303
+ },
1304
+ "required": [
1305
+ "source",
1306
+ "observed_at",
1307
+ "valid_until",
1308
+ "state",
1309
+ "reason",
1310
+ "value",
1311
+ "stale"
1312
+ ],
1313
+ "additionalProperties": false
1314
+ },
1315
+ "proxy": {
1316
+ "type": "object",
1317
+ "properties": {
1318
+ "source": {
1319
+ "type": "string",
1320
+ "maxLength": 128,
1321
+ "enum": [
1322
+ "os-release",
1323
+ "proc-kernel",
1324
+ "proc-boot",
1325
+ "dpkg-query",
1326
+ "apt-cache",
1327
+ "systemd",
1328
+ "sshd-public-keys",
1329
+ "mountinfo-statfs",
1330
+ "docker-version",
1331
+ "tor-version",
1332
+ "caddy-version",
1333
+ "caddy-modules",
1334
+ "control-plane"
1335
+ ]
1336
+ },
1337
+ "observed_at": {
1338
+ "type": [
1339
+ "string",
1340
+ "null"
1341
+ ],
1342
+ "format": "date-time",
1343
+ "maxLength": 40
1344
+ },
1345
+ "valid_until": {
1346
+ "type": [
1347
+ "string",
1348
+ "null"
1349
+ ],
1350
+ "format": "date-time",
1351
+ "maxLength": 40
1352
+ },
1353
+ "state": {
1354
+ "type": "string",
1355
+ "maxLength": 128,
1356
+ "enum": [
1357
+ "complete",
1358
+ "partial",
1359
+ "unavailable"
1360
+ ]
1361
+ },
1362
+ "reason": {
1363
+ "type": "string",
1364
+ "maxLength": 128,
1365
+ "enum": [
1366
+ "observed",
1367
+ "collection_failed",
1368
+ "cached_only",
1369
+ "unsupported_os",
1370
+ "invalid_output",
1371
+ "truncated",
1372
+ "ssh_global_policy",
1373
+ "not_collected",
1374
+ "provider_unknown"
1375
+ ]
1376
+ },
1377
+ "value": {
1378
+ "type": [
1379
+ "object",
1380
+ "null"
1381
+ ],
1382
+ "properties": {
1383
+ "version": {
1384
+ "type": "string",
1385
+ "maxLength": 128,
1386
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[.-][A-Za-z0-9]+)*$"
1387
+ }
1388
+ },
1389
+ "required": [
1390
+ "version"
1391
+ ],
1392
+ "additionalProperties": false
1393
+ },
1394
+ "stale": {
1395
+ "type": "boolean"
1396
+ }
1397
+ },
1398
+ "required": [
1399
+ "source",
1400
+ "observed_at",
1401
+ "valid_until",
1402
+ "state",
1403
+ "reason",
1404
+ "value",
1405
+ "stale"
1406
+ ],
1407
+ "additionalProperties": false
1408
+ },
1409
+ "shield": {
1410
+ "type": "object",
1411
+ "properties": {
1412
+ "source": {
1413
+ "type": "string",
1414
+ "maxLength": 128,
1415
+ "enum": [
1416
+ "os-release",
1417
+ "proc-kernel",
1418
+ "proc-boot",
1419
+ "dpkg-query",
1420
+ "apt-cache",
1421
+ "systemd",
1422
+ "sshd-public-keys",
1423
+ "mountinfo-statfs",
1424
+ "docker-version",
1425
+ "tor-version",
1426
+ "caddy-version",
1427
+ "caddy-modules",
1428
+ "control-plane"
1429
+ ]
1430
+ },
1431
+ "observed_at": {
1432
+ "type": [
1433
+ "string",
1434
+ "null"
1435
+ ],
1436
+ "format": "date-time",
1437
+ "maxLength": 40
1438
+ },
1439
+ "valid_until": {
1440
+ "type": [
1441
+ "string",
1442
+ "null"
1443
+ ],
1444
+ "format": "date-time",
1445
+ "maxLength": 40
1446
+ },
1447
+ "state": {
1448
+ "type": "string",
1449
+ "maxLength": 128,
1450
+ "enum": [
1451
+ "complete",
1452
+ "partial",
1453
+ "unavailable"
1454
+ ]
1455
+ },
1456
+ "reason": {
1457
+ "type": "string",
1458
+ "maxLength": 128,
1459
+ "enum": [
1460
+ "observed",
1461
+ "collection_failed",
1462
+ "cached_only",
1463
+ "unsupported_os",
1464
+ "invalid_output",
1465
+ "truncated",
1466
+ "ssh_global_policy",
1467
+ "not_collected",
1468
+ "provider_unknown"
1469
+ ]
1470
+ },
1471
+ "value": {
1472
+ "type": [
1473
+ "object",
1474
+ "null"
1475
+ ],
1476
+ "properties": {
1477
+ "version": {
1478
+ "type": "string",
1479
+ "maxLength": 128,
1480
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[.-][A-Za-z0-9]+)*$"
1481
+ }
1482
+ },
1483
+ "required": [
1484
+ "version"
1485
+ ],
1486
+ "additionalProperties": false
1487
+ },
1488
+ "stale": {
1489
+ "type": "boolean"
1490
+ }
1491
+ },
1492
+ "required": [
1493
+ "source",
1494
+ "observed_at",
1495
+ "valid_until",
1496
+ "state",
1497
+ "reason",
1498
+ "value",
1499
+ "stale"
1500
+ ],
1501
+ "additionalProperties": false
1502
+ }
1503
+ },
1504
+ "required": [
1505
+ "os",
1506
+ "kernel_loaded",
1507
+ "kernel_installed",
1508
+ "boot",
1509
+ "packages_installed",
1510
+ "packages_candidates",
1511
+ "services",
1512
+ "ssh",
1513
+ "filesystems",
1514
+ "docker",
1515
+ "tor",
1516
+ "proxy",
1517
+ "shield"
1518
+ ],
1519
+ "additionalProperties": false
1520
+ },
1521
+ "provider": {
1522
+ "type": "object",
1523
+ "properties": {
1524
+ "source": {
1525
+ "type": "string",
1526
+ "maxLength": 128,
1527
+ "enum": [
1528
+ "control-plane"
1529
+ ]
1530
+ },
1531
+ "observed_at": {
1532
+ "type": [
1533
+ "string",
1534
+ "null"
1535
+ ],
1536
+ "format": "date-time",
1537
+ "maxLength": 40
1538
+ },
1539
+ "valid_until": {
1540
+ "type": [
1541
+ "string",
1542
+ "null"
1543
+ ],
1544
+ "format": "date-time",
1545
+ "maxLength": 40
1546
+ },
1547
+ "state": {
1548
+ "type": "string",
1549
+ "maxLength": 128,
1550
+ "enum": [
1551
+ "complete",
1552
+ "partial",
1553
+ "unavailable"
1554
+ ]
1555
+ },
1556
+ "reason": {
1557
+ "type": "string",
1558
+ "maxLength": 128,
1559
+ "enum": [
1560
+ "observed",
1561
+ "provider_unknown"
1562
+ ]
1563
+ },
1564
+ "value": {
1565
+ "type": [
1566
+ "object",
1567
+ "null"
1568
+ ],
1569
+ "properties": {
1570
+ "service_id": {
1571
+ "type": "integer",
1572
+ "minimum": 1
1573
+ },
1574
+ "node": {
1575
+ "type": "string",
1576
+ "maxLength": 128,
1577
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
1578
+ }
1579
+ },
1580
+ "required": [
1581
+ "service_id"
1582
+ ],
1583
+ "additionalProperties": false
1584
+ },
1585
+ "stale": {
1586
+ "type": "boolean"
1587
+ }
1588
+ },
1589
+ "required": [
1590
+ "source",
1591
+ "observed_at",
1592
+ "valid_until",
1593
+ "state",
1594
+ "reason",
1595
+ "value",
1596
+ "stale"
1597
+ ],
1598
+ "additionalProperties": false
1599
+ }
1600
+ },
1601
+ "required": [
1602
+ "agent_id",
1603
+ "protocol",
1604
+ "minimum_agent_version",
1605
+ "supported",
1606
+ "status",
1607
+ "observed_at",
1608
+ "request_pending",
1609
+ "facts",
1610
+ "provider"
1611
+ ],
1612
+ "additionalProperties": false
1613
+ };
1614
+ //# sourceMappingURL=host-inventory-schema.js.map