pmcf 2.74.4 → 3.1.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.
Files changed (46) hide show
  1. package/package.json +3 -3
  2. package/src/base.mjs +14 -16
  3. package/src/cluster.mjs +5 -5
  4. package/src/extra-source-service.mjs +1 -1
  5. package/src/host.mjs +19 -19
  6. package/src/location.mjs +1 -1
  7. package/src/network-interfaces/ethernet.mjs +1 -1
  8. package/src/network-interfaces/network-interface.mjs +6 -6
  9. package/src/network-support.mjs +14 -14
  10. package/src/network.mjs +2 -2
  11. package/src/owner.mjs +11 -11
  12. package/src/service.mjs +7 -7
  13. package/src/services/bind.mjs +18 -18
  14. package/src/services/chrony.mjs +0 -1
  15. package/src/services/kea.mjs +46 -6
  16. package/src/services/openldap.mjs +3 -3
  17. package/src/services/systemd-journal-upload.mjs +1 -1
  18. package/src/subnet.mjs +3 -3
  19. package/src/types.mjs +1 -1
  20. package/types/base.d.mts +29 -19
  21. package/types/cluster.d.mts +101 -107
  22. package/types/extra-source-service.d.mts +43 -42
  23. package/types/host.d.mts +53 -61
  24. package/types/location.d.mts +87 -84
  25. package/types/network-interfaces/ethernet.d.mts +98 -106
  26. package/types/network-interfaces/loopback.d.mts +96 -104
  27. package/types/network-interfaces/network-interface.d.mts +96 -104
  28. package/types/network-interfaces/wireguard.d.mts +96 -104
  29. package/types/network-interfaces/wlan.d.mts +145 -157
  30. package/types/network-support.d.mts +16 -27
  31. package/types/network.d.mts +53 -57
  32. package/types/owner.d.mts +43 -41
  33. package/types/root.d.mts +87 -84
  34. package/types/service.d.mts +86 -87
  35. package/types/services/bind.d.mts +101 -111
  36. package/types/services/chrony.d.mts +83 -81
  37. package/types/services/influxdb.d.mts +82 -80
  38. package/types/services/kea.d.mts +164 -81
  39. package/types/services/mosquitto.d.mts +82 -80
  40. package/types/services/openldap.d.mts +85 -86
  41. package/types/services/systemd-journal-remote.d.mts +82 -80
  42. package/types/services/systemd-journal-upload.d.mts +83 -82
  43. package/types/services/systemd-journal.d.mts +82 -80
  44. package/types/services/systemd-resolved.d.mts +82 -80
  45. package/types/services/systemd-timesyncd.d.mts +82 -80
  46. package/types/subnet.d.mts +3 -4
@@ -12,24 +12,28 @@ export class Cluster extends Host {
12
12
  owner: {
13
13
  type: string;
14
14
  collection: boolean;
15
- writeable: boolean;
16
- };
17
- type: {
18
- type: string;
19
- collection: boolean;
20
- writeable: boolean;
15
+ writable: boolean;
21
16
  };
17
+ type: import("pacc").AttributeDefinition;
22
18
  name: {
19
+ isKey: boolean;
20
+ writable: boolean;
23
21
  type: string;
22
+ mandatory: boolean;
24
23
  collection: boolean;
25
- identifier: boolean;
26
- writeable: boolean;
24
+ private?: boolean;
25
+ depends?: string;
26
+ additionalAttributes: string[];
27
+ description?: string;
28
+ default?: any;
29
+ set?: Function;
30
+ get?: Function;
31
+ env?: string[] | string;
27
32
  };
28
33
  description: {
29
- writeable: boolean;
34
+ writable: boolean;
30
35
  type: string;
31
36
  isKey: boolean;
32
- writable: boolean;
33
37
  mandatory: boolean;
34
38
  collection: boolean;
35
39
  private?: boolean;
@@ -44,13 +48,12 @@ export class Cluster extends Host {
44
48
  priority: {
45
49
  type: string;
46
50
  collection: boolean;
47
- writeable: boolean;
51
+ writable: boolean;
48
52
  };
49
53
  directory: {
50
- writeable: boolean;
54
+ writable: boolean;
51
55
  type: string;
52
56
  isKey: boolean;
53
- writable: boolean;
54
57
  mandatory: boolean;
55
58
  collection: boolean;
56
59
  private?: boolean;
@@ -63,10 +66,9 @@ export class Cluster extends Host {
63
66
  env?: string[] | string;
64
67
  };
65
68
  packaging: {
66
- writeable: boolean;
69
+ writable: boolean;
67
70
  type: string;
68
71
  isKey: boolean;
69
- writable: boolean;
70
72
  mandatory: boolean;
71
73
  collection: boolean;
72
74
  private?: boolean;
@@ -79,17 +81,25 @@ export class Cluster extends Host {
79
81
  env?: string[] | string;
80
82
  };
81
83
  disabled: {
84
+ writable: boolean;
85
+ default: boolean;
82
86
  type: string;
87
+ isKey: boolean;
88
+ mandatory: boolean;
83
89
  collection: boolean;
84
- writeable: boolean;
85
- default: boolean;
90
+ private?: boolean;
91
+ depends?: string;
92
+ additionalAttributes: string[];
93
+ description?: string;
94
+ set?: Function;
95
+ get?: Function;
96
+ env?: string[] | string;
86
97
  };
87
98
  tags: {
88
99
  collection: boolean;
89
- writeable: boolean;
100
+ writable: boolean;
90
101
  type: string;
91
102
  isKey: boolean;
92
- writable: boolean;
93
103
  mandatory: boolean;
94
104
  private?: boolean;
95
105
  depends?: string;
@@ -106,17 +116,17 @@ export class Cluster extends Host {
106
116
  networks: {
107
117
  type: string;
108
118
  collection: boolean;
109
- writeable: boolean;
119
+ writable: boolean;
110
120
  };
111
121
  hosts: {
112
122
  type: string;
113
123
  collection: boolean;
114
- writeable: boolean;
124
+ writable: boolean;
115
125
  };
116
126
  clusters: {
117
127
  type: string;
118
128
  collection: boolean;
119
- writeable: boolean;
129
+ writable: boolean;
120
130
  };
121
131
  subnets: {
122
132
  type: {
@@ -126,9 +136,8 @@ export class Cluster extends Host {
126
136
  constructWithIdentifierOnly: boolean;
127
137
  properties: {
128
138
  address: {
129
- identifier: boolean;
130
- type: string;
131
139
  isKey: boolean;
140
+ type: string;
132
141
  writable: boolean;
133
142
  mandatory: boolean;
134
143
  collection: boolean;
@@ -144,23 +153,22 @@ export class Cluster extends Host {
144
153
  networks: {
145
154
  type: string;
146
155
  collection: boolean;
147
- writeable: boolean;
156
+ writable: boolean;
148
157
  };
149
158
  prefixLength: {
150
159
  type: string;
151
160
  collection: boolean;
152
- writeable: boolean;
161
+ writable: boolean;
153
162
  };
154
163
  };
155
164
  };
156
165
  collection: boolean;
157
- writeable: boolean;
166
+ writable: boolean;
158
167
  };
159
168
  country: {
160
- writeable: boolean;
169
+ writable: boolean;
161
170
  type: string;
162
171
  isKey: boolean;
163
- writable: boolean;
164
172
  mandatory: boolean;
165
173
  collection: boolean;
166
174
  private?: boolean;
@@ -173,10 +181,9 @@ export class Cluster extends Host {
173
181
  env?: string[] | string;
174
182
  };
175
183
  domain: {
176
- writeable: boolean;
184
+ writable: boolean;
177
185
  type: string;
178
186
  isKey: boolean;
179
- writable: boolean;
180
187
  mandatory: boolean;
181
188
  collection: boolean;
182
189
  private?: boolean;
@@ -190,10 +197,9 @@ export class Cluster extends Host {
190
197
  };
191
198
  domains: {
192
199
  collection: boolean;
193
- writeable: boolean;
200
+ writable: boolean;
194
201
  type: string;
195
202
  isKey: boolean;
196
- writable: boolean;
197
203
  mandatory: boolean;
198
204
  private?: boolean;
199
205
  depends?: string;
@@ -205,10 +211,9 @@ export class Cluster extends Host {
205
211
  env?: string[] | string;
206
212
  };
207
213
  timezone: {
208
- writeable: boolean;
214
+ writable: boolean;
209
215
  type: string;
210
216
  isKey: boolean;
211
- writable: boolean;
212
217
  mandatory: boolean;
213
218
  collection: boolean;
214
219
  private?: boolean;
@@ -222,10 +227,9 @@ export class Cluster extends Host {
222
227
  };
223
228
  architectures: {
224
229
  collection: boolean;
225
- writeable: boolean;
230
+ writable: boolean;
226
231
  type: string;
227
232
  isKey: boolean;
228
- writable: boolean;
229
233
  mandatory: boolean;
230
234
  private?: boolean;
231
235
  depends?: string;
@@ -238,10 +242,9 @@ export class Cluster extends Host {
238
242
  };
239
243
  locales: {
240
244
  collection: boolean;
241
- writeable: boolean;
245
+ writable: boolean;
242
246
  type: string;
243
247
  isKey: boolean;
244
- writable: boolean;
245
248
  mandatory: boolean;
246
249
  private?: boolean;
247
250
  depends?: string;
@@ -253,10 +256,9 @@ export class Cluster extends Host {
253
256
  env?: string[] | string;
254
257
  };
255
258
  administratorEmail: {
256
- writeable: boolean;
259
+ writable: boolean;
257
260
  type: string;
258
261
  isKey: boolean;
259
- writable: boolean;
260
262
  mandatory: boolean;
261
263
  collection: boolean;
262
264
  private?: boolean;
@@ -282,24 +284,28 @@ export class Cluster extends Host {
282
284
  owner: {
283
285
  type: string;
284
286
  collection: boolean;
285
- writeable: boolean;
286
- };
287
- type: {
288
- type: string;
289
- collection: boolean;
290
- writeable: boolean;
287
+ writable: boolean;
291
288
  };
289
+ type: import("pacc").AttributeDefinition;
292
290
  name: {
291
+ isKey: boolean;
292
+ writable: boolean;
293
293
  type: string;
294
+ mandatory: boolean;
294
295
  collection: boolean;
295
- identifier: boolean;
296
- writeable: boolean;
296
+ private?: boolean;
297
+ depends?: string;
298
+ additionalAttributes: string[];
299
+ description?: string;
300
+ default?: any;
301
+ set?: Function;
302
+ get?: Function;
303
+ env?: string[] | string;
297
304
  };
298
305
  description: {
299
- writeable: boolean;
306
+ writable: boolean;
300
307
  type: string;
301
308
  isKey: boolean;
302
- writable: boolean;
303
309
  mandatory: boolean;
304
310
  collection: boolean;
305
311
  private?: boolean;
@@ -314,13 +320,12 @@ export class Cluster extends Host {
314
320
  priority: {
315
321
  type: string;
316
322
  collection: boolean;
317
- writeable: boolean;
323
+ writable: boolean;
318
324
  };
319
325
  directory: {
320
- writeable: boolean;
326
+ writable: boolean;
321
327
  type: string;
322
328
  isKey: boolean;
323
- writable: boolean;
324
329
  mandatory: boolean;
325
330
  collection: boolean;
326
331
  private?: boolean;
@@ -333,10 +338,9 @@ export class Cluster extends Host {
333
338
  env?: string[] | string;
334
339
  };
335
340
  packaging: {
336
- writeable: boolean;
341
+ writable: boolean;
337
342
  type: string;
338
343
  isKey: boolean;
339
- writable: boolean;
340
344
  mandatory: boolean;
341
345
  collection: boolean;
342
346
  private?: boolean;
@@ -349,17 +353,25 @@ export class Cluster extends Host {
349
353
  env?: string[] | string;
350
354
  };
351
355
  disabled: {
356
+ writable: boolean;
357
+ default: boolean;
352
358
  type: string;
359
+ isKey: boolean;
360
+ mandatory: boolean;
353
361
  collection: boolean;
354
- writeable: boolean;
355
- default: boolean;
362
+ private?: boolean;
363
+ depends?: string;
364
+ additionalAttributes: string[];
365
+ description?: string;
366
+ set?: Function;
367
+ get?: Function;
368
+ env?: string[] | string;
356
369
  };
357
370
  tags: {
358
371
  collection: boolean;
359
- writeable: boolean;
372
+ writable: boolean;
360
373
  type: string;
361
374
  isKey: boolean;
362
- writable: boolean;
363
375
  mandatory: boolean;
364
376
  private?: boolean;
365
377
  depends?: string;
@@ -376,24 +388,23 @@ export class Cluster extends Host {
376
388
  networkInterfaces: {
377
389
  type: string;
378
390
  collection: boolean;
379
- writeable: boolean;
391
+ writable: boolean;
380
392
  };
381
393
  services: {
382
394
  type: string;
383
395
  collection: boolean;
384
- writeable: boolean;
396
+ writable: boolean;
385
397
  };
386
398
  aliases: {
387
399
  type: string;
388
400
  collection: boolean;
389
- writeable: boolean;
401
+ writable: boolean;
390
402
  };
391
403
  os: {
392
- writeable: boolean;
404
+ writable: boolean;
393
405
  values: string[];
394
406
  type: string;
395
407
  isKey: boolean;
396
- writable: boolean;
397
408
  mandatory: boolean;
398
409
  collection: boolean;
399
410
  private?: boolean;
@@ -406,10 +417,9 @@ export class Cluster extends Host {
406
417
  env?: string[] | string;
407
418
  };
408
419
  "machine-id": {
409
- writeable: boolean;
420
+ writable: boolean;
410
421
  type: string;
411
422
  isKey: boolean;
412
- writable: boolean;
413
423
  mandatory: boolean;
414
424
  collection: boolean;
415
425
  private?: boolean;
@@ -422,10 +432,9 @@ export class Cluster extends Host {
422
432
  env?: string[] | string;
423
433
  };
424
434
  distribution: {
425
- writeable: boolean;
435
+ writable: boolean;
426
436
  type: string;
427
437
  isKey: boolean;
428
- writable: boolean;
429
438
  mandatory: boolean;
430
439
  collection: boolean;
431
440
  private?: boolean;
@@ -438,11 +447,10 @@ export class Cluster extends Host {
438
447
  env?: string[] | string;
439
448
  };
440
449
  deployment: {
441
- writeable: boolean;
450
+ writable: boolean;
442
451
  values: string[];
443
452
  type: string;
444
453
  isKey: boolean;
445
- writable: boolean;
446
454
  mandatory: boolean;
447
455
  collection: boolean;
448
456
  private?: boolean;
@@ -457,13 +465,12 @@ export class Cluster extends Host {
457
465
  weight: {
458
466
  type: string;
459
467
  collection: boolean;
460
- writeable: boolean;
468
+ writable: boolean;
461
469
  };
462
470
  serial: {
463
- writeable: boolean;
471
+ writable: boolean;
464
472
  type: string;
465
473
  isKey: boolean;
466
- writable: boolean;
467
474
  mandatory: boolean;
468
475
  collection: boolean;
469
476
  private?: boolean;
@@ -476,10 +483,9 @@ export class Cluster extends Host {
476
483
  env?: string[] | string;
477
484
  };
478
485
  vendor: {
479
- writeable: boolean;
486
+ writable: boolean;
480
487
  type: string;
481
488
  isKey: boolean;
482
- writable: boolean;
483
489
  mandatory: boolean;
484
490
  collection: boolean;
485
491
  private?: boolean;
@@ -492,10 +498,9 @@ export class Cluster extends Host {
492
498
  env?: string[] | string;
493
499
  };
494
500
  keymap: {
495
- writeable: boolean;
501
+ writable: boolean;
496
502
  type: string;
497
503
  isKey: boolean;
498
- writable: boolean;
499
504
  mandatory: boolean;
500
505
  collection: boolean;
501
506
  private?: boolean;
@@ -508,11 +513,10 @@ export class Cluster extends Host {
508
513
  env?: string[] | string;
509
514
  };
510
515
  chassis: {
511
- writeable: boolean;
516
+ writable: boolean;
512
517
  values: string[];
513
518
  type: string;
514
519
  isKey: boolean;
515
- writable: boolean;
516
520
  mandatory: boolean;
517
521
  collection: boolean;
518
522
  private?: boolean;
@@ -525,11 +529,10 @@ export class Cluster extends Host {
525
529
  env?: string[] | string;
526
530
  };
527
531
  architecture: {
528
- writeable: boolean;
532
+ writable: boolean;
529
533
  values: string[];
530
534
  type: string;
531
535
  isKey: boolean;
532
- writable: boolean;
533
536
  mandatory: boolean;
534
537
  collection: boolean;
535
538
  private?: boolean;
@@ -543,10 +546,9 @@ export class Cluster extends Host {
543
546
  };
544
547
  replaces: {
545
548
  collection: boolean;
546
- writeable: boolean;
549
+ writable: boolean;
547
550
  type: string;
548
551
  isKey: boolean;
549
- writable: boolean;
550
552
  mandatory: boolean;
551
553
  private?: boolean;
552
554
  depends?: string;
@@ -559,10 +561,9 @@ export class Cluster extends Host {
559
561
  };
560
562
  depends: {
561
563
  collection: boolean;
562
- writeable: boolean;
564
+ writable: boolean;
563
565
  type: string;
564
566
  isKey: boolean;
565
- writable: boolean;
566
567
  mandatory: boolean;
567
568
  private?: boolean;
568
569
  depends?: string;
@@ -575,10 +576,9 @@ export class Cluster extends Host {
575
576
  };
576
577
  provides: {
577
578
  collection: boolean;
578
- writeable: boolean;
579
+ writable: boolean;
579
580
  type: string;
580
581
  isKey: boolean;
581
- writable: boolean;
582
582
  mandatory: boolean;
583
583
  private?: boolean;
584
584
  depends?: string;
@@ -592,14 +592,13 @@ export class Cluster extends Host {
592
592
  extends: {
593
593
  type: string;
594
594
  collection: boolean;
595
- writeable: boolean;
595
+ writable: boolean;
596
596
  };
597
597
  model: {
598
598
  collection: boolean;
599
- writeable: boolean;
599
+ writable: boolean;
600
600
  type: string;
601
601
  isKey: boolean;
602
- writable: boolean;
603
602
  mandatory: boolean;
604
603
  private?: boolean;
605
604
  depends?: string;
@@ -613,13 +612,12 @@ export class Cluster extends Host {
613
612
  isModel: {
614
613
  type: string;
615
614
  collection: boolean;
616
- writeable: boolean;
615
+ writable: boolean;
617
616
  };
618
617
  hostName: {
619
- writeable: boolean;
618
+ writable: boolean;
620
619
  type: string;
621
620
  isKey: boolean;
622
- writable: boolean;
623
621
  mandatory: boolean;
624
622
  collection: boolean;
625
623
  private?: boolean;
@@ -633,10 +631,9 @@ export class Cluster extends Host {
633
631
  };
634
632
  cidrAddresses: {
635
633
  collection: boolean;
636
- writeable: boolean;
634
+ writable: boolean;
637
635
  type: string;
638
636
  isKey: boolean;
639
- writable: boolean;
640
637
  mandatory: boolean;
641
638
  private?: boolean;
642
639
  depends?: string;
@@ -648,10 +645,9 @@ export class Cluster extends Host {
648
645
  env?: string[] | string;
649
646
  };
650
647
  cidrAddress: {
651
- writeable: boolean;
648
+ writable: boolean;
652
649
  type: string;
653
650
  isKey: boolean;
654
- writable: boolean;
655
651
  mandatory: boolean;
656
652
  collection: boolean;
657
653
  private?: boolean;
@@ -665,10 +661,9 @@ export class Cluster extends Host {
665
661
  };
666
662
  addresses: {
667
663
  collection: boolean;
668
- writeable: boolean;
664
+ writable: boolean;
669
665
  type: string;
670
666
  isKey: boolean;
671
- writable: boolean;
672
667
  mandatory: boolean;
673
668
  private?: boolean;
674
669
  depends?: string;
@@ -680,10 +675,9 @@ export class Cluster extends Host {
680
675
  env?: string[] | string;
681
676
  };
682
677
  address: {
683
- writeable: boolean;
678
+ writable: boolean;
684
679
  type: string;
685
680
  isKey: boolean;
686
- writable: boolean;
687
681
  mandatory: boolean;
688
682
  collection: boolean;
689
683
  private?: boolean;
@@ -701,27 +695,27 @@ export class Cluster extends Host {
701
695
  routerId: {
702
696
  type: string;
703
697
  collection: boolean;
704
- writeable: boolean;
698
+ writable: boolean;
705
699
  };
706
700
  masters: {
707
701
  type: string;
708
702
  collection: boolean;
709
- writeable: boolean;
703
+ writable: boolean;
710
704
  };
711
705
  backups: {
712
706
  type: string;
713
707
  collection: boolean;
714
- writeable: boolean;
708
+ writable: boolean;
715
709
  };
716
710
  members: {
717
711
  type: string;
718
712
  collection: boolean;
719
- writeable: boolean;
713
+ writable: boolean;
720
714
  };
721
715
  checkInterval: {
722
716
  type: string;
723
717
  collection: boolean;
724
- writeable: boolean;
718
+ writable: boolean;
725
719
  };
726
720
  };
727
721
  };