pmcf 3.2.0 → 3.3.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 (35) hide show
  1. package/package.json +2 -2
  2. package/src/base.mjs +2 -2
  3. package/src/cluster.mjs +3 -2
  4. package/src/host.mjs +4 -4
  5. package/src/network-support.mjs +3 -3
  6. package/src/service.mjs +5 -8
  7. package/src/services/bind.mjs +23 -25
  8. package/src/subnet.mjs +2 -2
  9. package/types/base.d.mts +10 -1
  10. package/types/cluster.d.mts +71 -12
  11. package/types/extra-source-service.d.mts +39 -17
  12. package/types/host.d.mts +31 -8
  13. package/types/location.d.mts +40 -4
  14. package/types/network-interfaces/ethernet.d.mts +60 -10
  15. package/types/network-interfaces/loopback.d.mts +60 -10
  16. package/types/network-interfaces/network-interface.d.mts +60 -10
  17. package/types/network-interfaces/wireguard.d.mts +60 -10
  18. package/types/network-interfaces/wlan.d.mts +90 -15
  19. package/types/network-support.d.mts +31 -23
  20. package/types/network.d.mts +40 -6
  21. package/types/owner.d.mts +20 -2
  22. package/types/root.d.mts +40 -4
  23. package/types/service.d.mts +89 -49
  24. package/types/services/bind.d.mts +86 -98
  25. package/types/services/chrony.d.mts +78 -34
  26. package/types/services/influxdb.d.mts +78 -34
  27. package/types/services/kea.d.mts +78 -34
  28. package/types/services/mosquitto.d.mts +78 -34
  29. package/types/services/openldap.d.mts +78 -34
  30. package/types/services/systemd-journal-remote.d.mts +78 -34
  31. package/types/services/systemd-journal-upload.d.mts +78 -34
  32. package/types/services/systemd-journal.d.mts +78 -34
  33. package/types/services/systemd-resolved.d.mts +78 -34
  34. package/types/services/systemd-timesyncd.d.mts +78 -34
  35. package/types/subnet.d.mts +10 -1
@@ -17,14 +17,8 @@ export function serviceEndpoints(sources: any, options?: {
17
17
  join?: string;
18
18
  }): string | any;
19
19
  export namespace endpointProperties {
20
- export namespace port {
21
- let type: string;
22
- let collection: boolean;
23
- let writable: boolean;
24
- }
25
- export let protocol: {
20
+ export let port: {
26
21
  writable: boolean;
27
- values: string[];
28
22
  type: string;
29
23
  isKey: boolean;
30
24
  mandatory: boolean;
@@ -37,8 +31,9 @@ export namespace endpointProperties {
37
31
  get?: Function;
38
32
  env?: string[] | string;
39
33
  };
40
- let type_1: {
34
+ export let protocol: {
41
35
  writable: boolean;
36
+ values: string[];
42
37
  type: string;
43
38
  isKey: boolean;
44
39
  mandatory: boolean;
@@ -51,13 +46,12 @@ export namespace endpointProperties {
51
46
  get?: Function;
52
47
  env?: string[] | string;
53
48
  };
54
- export { type_1 as type };
55
- export let types: {
56
- collection: boolean;
49
+ export let type: {
50
+ writable: boolean;
57
51
  type: string;
58
52
  isKey: boolean;
59
- writable: boolean;
60
53
  mandatory: boolean;
54
+ collection: boolean;
61
55
  private?: boolean;
62
56
  depends?: string;
63
57
  description?: string;
@@ -66,12 +60,12 @@ export namespace endpointProperties {
66
60
  get?: Function;
67
61
  env?: string[] | string;
68
62
  };
69
- export let tls: {
70
- writable: boolean;
63
+ export let types: {
64
+ collection: boolean;
71
65
  type: string;
72
66
  isKey: boolean;
67
+ writable: boolean;
73
68
  mandatory: boolean;
74
- collection: boolean;
75
69
  private?: boolean;
76
70
  depends?: string;
77
71
  description?: string;
@@ -80,6 +74,7 @@ export namespace endpointProperties {
80
74
  get?: Function;
81
75
  env?: string[] | string;
82
76
  };
77
+ export { boolean_attribute_false as tls };
83
78
  }
84
79
  export namespace EndpointTypeDefinition {
85
80
  export let name: string;
@@ -134,9 +129,18 @@ export namespace ServiceTypeDefinition {
134
129
  env?: string[] | string;
135
130
  };
136
131
  priority: {
132
+ writable: boolean;
137
133
  type: string;
134
+ isKey: boolean;
135
+ mandatory: boolean;
138
136
  collection: boolean;
139
- writable: boolean;
137
+ private?: boolean;
138
+ depends?: string;
139
+ description?: string;
140
+ default?: any;
141
+ set?: Function;
142
+ get?: Function;
143
+ env?: string[] | string;
140
144
  };
141
145
  directory: {
142
146
  writable: boolean;
@@ -216,24 +220,35 @@ export namespace ServiceTypeDefinition {
216
220
  env?: string[] | string;
217
221
  };
218
222
  weight: {
219
- type: string;
220
- collection: boolean;
221
223
  writable: boolean;
222
224
  default: number;
223
- };
224
- systemd: {
225
225
  type: string;
226
+ isKey: boolean;
227
+ mandatory: boolean;
226
228
  collection: boolean;
227
- writable: boolean;
229
+ private?: boolean;
230
+ depends?: string;
231
+ description?: string;
232
+ set?: Function;
233
+ get?: Function;
234
+ env?: string[] | string;
228
235
  };
229
- port: {
230
- type: string;
236
+ systemd: {
231
237
  collection: boolean;
232
238
  writable: boolean;
239
+ type: string;
240
+ isKey: boolean;
241
+ mandatory: boolean;
242
+ private?: boolean;
243
+ depends?: string;
244
+ description?: string;
245
+ default?: any;
246
+ set?: Function;
247
+ get?: Function;
248
+ env?: string[] | string;
233
249
  };
234
- protocol: {
250
+ port: {
235
251
  writable: boolean;
236
- values: string[];
237
252
  type: string;
238
253
  isKey: boolean;
239
254
  mandatory: boolean;
@@ -246,8 +261,9 @@ export namespace ServiceTypeDefinition {
246
261
  get?: Function;
247
262
  env?: string[] | string;
248
263
  };
249
- type: {
264
+ protocol: {
250
265
  writable: boolean;
266
+ values: string[];
251
267
  type: string;
252
268
  isKey: boolean;
253
269
  mandatory: boolean;
@@ -260,12 +276,12 @@ export namespace ServiceTypeDefinition {
260
276
  get?: Function;
261
277
  env?: string[] | string;
262
278
  };
263
- types: {
264
- collection: boolean;
279
+ type: {
280
+ writable: boolean;
265
281
  type: string;
266
282
  isKey: boolean;
267
- writable: boolean;
268
283
  mandatory: boolean;
284
+ collection: boolean;
269
285
  private?: boolean;
270
286
  depends?: string;
271
287
  description?: string;
@@ -274,12 +290,12 @@ export namespace ServiceTypeDefinition {
274
290
  get?: Function;
275
291
  env?: string[] | string;
276
292
  };
277
- tls: {
278
- writable: boolean;
293
+ types: {
294
+ collection: boolean;
279
295
  type: string;
280
296
  isKey: boolean;
297
+ writable: boolean;
281
298
  mandatory: boolean;
282
- collection: boolean;
283
299
  private?: boolean;
284
300
  depends?: string;
285
301
  description?: string;
@@ -288,6 +304,7 @@ export namespace ServiceTypeDefinition {
288
304
  get?: Function;
289
305
  env?: string[] | string;
290
306
  };
307
+ tls: import("pacc").AttributeDefinition;
291
308
  hostName: {
292
309
  writable: boolean;
293
310
  type: string;
@@ -404,9 +421,18 @@ export class Service extends Base {
404
421
  env?: string[] | string;
405
422
  };
406
423
  priority: {
424
+ writable: boolean;
407
425
  type: string;
426
+ isKey: boolean;
427
+ mandatory: boolean;
408
428
  collection: boolean;
409
- writable: boolean;
429
+ private?: boolean;
430
+ depends?: string;
431
+ description?: string;
432
+ default?: any;
433
+ set?: Function;
434
+ get?: Function;
435
+ env?: string[] | string;
410
436
  };
411
437
  directory: {
412
438
  writable: boolean;
@@ -484,24 +510,35 @@ export class Service extends Base {
484
510
  env?: string[] | string;
485
511
  };
486
512
  weight: {
487
- type: string;
488
- collection: boolean;
489
513
  writable: boolean;
490
514
  default: number;
491
- };
492
- systemd: {
493
515
  type: string;
516
+ isKey: boolean;
517
+ mandatory: boolean;
494
518
  collection: boolean;
495
- writable: boolean;
519
+ private?: boolean;
520
+ depends?: string;
521
+ description?: string;
522
+ set?: Function;
523
+ get?: Function;
524
+ env?: string[] | string;
496
525
  };
497
- port: {
498
- type: string;
526
+ systemd: {
499
527
  collection: boolean;
500
528
  writable: boolean;
529
+ type: string;
530
+ isKey: boolean;
531
+ mandatory: boolean;
532
+ private?: boolean;
533
+ depends?: string;
534
+ description?: string;
535
+ default?: any;
536
+ set?: Function;
537
+ get?: Function;
538
+ env?: string[] | string;
501
539
  };
502
- protocol: {
540
+ port: {
503
541
  writable: boolean;
504
- values: string[];
505
542
  type: string;
506
543
  isKey: boolean;
507
544
  mandatory: boolean;
@@ -514,8 +551,9 @@ export class Service extends Base {
514
551
  get?: Function;
515
552
  env?: string[] | string;
516
553
  };
517
- type: {
554
+ protocol: {
518
555
  writable: boolean;
556
+ values: string[];
519
557
  type: string;
520
558
  isKey: boolean;
521
559
  mandatory: boolean;
@@ -528,12 +566,12 @@ export class Service extends Base {
528
566
  get?: Function;
529
567
  env?: string[] | string;
530
568
  };
531
- types: {
532
- collection: boolean;
569
+ type: {
570
+ writable: boolean;
533
571
  type: string;
534
572
  isKey: boolean;
535
- writable: boolean;
536
573
  mandatory: boolean;
574
+ collection: boolean;
537
575
  private?: boolean;
538
576
  depends?: string;
539
577
  description?: string;
@@ -542,12 +580,12 @@ export class Service extends Base {
542
580
  get?: Function;
543
581
  env?: string[] | string;
544
582
  };
545
- tls: {
546
- writable: boolean;
583
+ types: {
584
+ collection: boolean;
547
585
  type: string;
548
586
  isKey: boolean;
587
+ writable: boolean;
549
588
  mandatory: boolean;
550
- collection: boolean;
551
589
  private?: boolean;
552
590
  depends?: string;
553
591
  description?: string;
@@ -556,6 +594,7 @@ export class Service extends Base {
556
594
  get?: Function;
557
595
  env?: string[] | string;
558
596
  };
597
+ tls: import("pacc").AttributeDefinition;
559
598
  hostName: {
560
599
  writable: boolean;
561
600
  type: string;
@@ -669,6 +708,7 @@ export class Service extends Base {
669
708
  }
670
709
  export function sortAscendingByPriority(a: any, b: any): number;
671
710
  export function sortDescendingByPriority(a: any, b: any): number;
711
+ import { boolean_attribute_false } from "pacc";
672
712
  import { Base } from "pmcf";
673
713
  import { Host } from "pmcf";
674
714
  import { UnixEndpoint } from "pmcf";
@@ -44,9 +44,18 @@ export class BindService extends ExtraSourceService {
44
44
  env?: string[] | string;
45
45
  };
46
46
  priority: {
47
+ writable: boolean;
47
48
  type: string;
49
+ isKey: boolean;
50
+ mandatory: boolean;
48
51
  collection: boolean;
49
- writable: boolean;
52
+ private?: boolean;
53
+ depends?: string;
54
+ description?: string;
55
+ default?: any;
56
+ set?: Function;
57
+ get?: Function;
58
+ env?: string[] | string;
50
59
  };
51
60
  directory: {
52
61
  writable: boolean;
@@ -124,24 +133,35 @@ export class BindService extends ExtraSourceService {
124
133
  env?: string[] | string;
125
134
  };
126
135
  weight: {
127
- type: string;
128
- collection: boolean;
129
136
  writable: boolean;
130
137
  default: number;
131
- };
132
- systemd: {
133
138
  type: string;
139
+ isKey: boolean;
140
+ mandatory: boolean;
134
141
  collection: boolean;
135
- writable: boolean;
142
+ private?: boolean;
143
+ depends?: string;
144
+ description?: string;
145
+ set?: Function;
146
+ get?: Function;
147
+ env?: string[] | string;
136
148
  };
137
- port: {
138
- type: string;
149
+ systemd: {
139
150
  collection: boolean;
140
151
  writable: boolean;
152
+ type: string;
153
+ isKey: boolean;
154
+ mandatory: boolean;
155
+ private?: boolean;
156
+ depends?: string;
157
+ description?: string;
158
+ default?: any;
159
+ set?: Function;
160
+ get?: Function;
161
+ env?: string[] | string;
141
162
  };
142
- protocol: {
163
+ port: {
143
164
  writable: boolean;
144
- values: string[];
145
165
  type: string;
146
166
  isKey: boolean;
147
167
  mandatory: boolean;
@@ -154,8 +174,9 @@ export class BindService extends ExtraSourceService {
154
174
  get?: Function;
155
175
  env?: string[] | string;
156
176
  };
157
- type: {
177
+ protocol: {
158
178
  writable: boolean;
179
+ values: string[];
159
180
  type: string;
160
181
  isKey: boolean;
161
182
  mandatory: boolean;
@@ -168,12 +189,12 @@ export class BindService extends ExtraSourceService {
168
189
  get?: Function;
169
190
  env?: string[] | string;
170
191
  };
171
- types: {
172
- collection: boolean;
192
+ type: {
193
+ writable: boolean;
173
194
  type: string;
174
195
  isKey: boolean;
175
- writable: boolean;
176
196
  mandatory: boolean;
197
+ collection: boolean;
177
198
  private?: boolean;
178
199
  depends?: string;
179
200
  description?: string;
@@ -182,12 +203,12 @@ export class BindService extends ExtraSourceService {
182
203
  get?: Function;
183
204
  env?: string[] | string;
184
205
  };
185
- tls: {
186
- writable: boolean;
206
+ types: {
207
+ collection: boolean;
187
208
  type: string;
188
209
  isKey: boolean;
210
+ writable: boolean;
189
211
  mandatory: boolean;
190
- collection: boolean;
191
212
  private?: boolean;
192
213
  depends?: string;
193
214
  description?: string;
@@ -196,6 +217,7 @@ export class BindService extends ExtraSourceService {
196
217
  get?: Function;
197
218
  env?: string[] | string;
198
219
  };
220
+ tls: import("pacc").AttributeDefinition;
199
221
  hostName: {
200
222
  writable: boolean;
201
223
  type: string;
@@ -315,9 +337,18 @@ export class BindService extends ExtraSourceService {
315
337
  env?: string[] | string;
316
338
  };
317
339
  priority: {
340
+ writable: boolean;
318
341
  type: string;
342
+ isKey: boolean;
343
+ mandatory: boolean;
319
344
  collection: boolean;
320
- writable: boolean;
345
+ private?: boolean;
346
+ depends?: string;
347
+ description?: string;
348
+ default?: any;
349
+ set?: Function;
350
+ get?: Function;
351
+ env?: string[] | string;
321
352
  };
322
353
  directory: {
323
354
  writable: boolean;
@@ -395,24 +426,35 @@ export class BindService extends ExtraSourceService {
395
426
  env?: string[] | string;
396
427
  };
397
428
  weight: {
398
- type: string;
399
- collection: boolean;
400
429
  writable: boolean;
401
430
  default: number;
402
- };
403
- systemd: {
404
431
  type: string;
432
+ isKey: boolean;
433
+ mandatory: boolean;
405
434
  collection: boolean;
406
- writable: boolean;
435
+ private?: boolean;
436
+ depends?: string;
437
+ description?: string;
438
+ set?: Function;
439
+ get?: Function;
440
+ env?: string[] | string;
407
441
  };
408
- port: {
409
- type: string;
442
+ systemd: {
410
443
  collection: boolean;
411
444
  writable: boolean;
445
+ type: string;
446
+ isKey: boolean;
447
+ mandatory: boolean;
448
+ private?: boolean;
449
+ depends?: string;
450
+ description?: string;
451
+ default?: any;
452
+ set?: Function;
453
+ get?: Function;
454
+ env?: string[] | string;
412
455
  };
413
- protocol: {
456
+ port: {
414
457
  writable: boolean;
415
- values: string[];
416
458
  type: string;
417
459
  isKey: boolean;
418
460
  mandatory: boolean;
@@ -425,8 +467,9 @@ export class BindService extends ExtraSourceService {
425
467
  get?: Function;
426
468
  env?: string[] | string;
427
469
  };
428
- type: {
470
+ protocol: {
429
471
  writable: boolean;
472
+ values: string[];
430
473
  type: string;
431
474
  isKey: boolean;
432
475
  mandatory: boolean;
@@ -439,12 +482,12 @@ export class BindService extends ExtraSourceService {
439
482
  get?: Function;
440
483
  env?: string[] | string;
441
484
  };
442
- types: {
443
- collection: boolean;
485
+ type: {
486
+ writable: boolean;
444
487
  type: string;
445
488
  isKey: boolean;
446
- writable: boolean;
447
489
  mandatory: boolean;
490
+ collection: boolean;
448
491
  private?: boolean;
449
492
  depends?: string;
450
493
  description?: string;
@@ -453,12 +496,12 @@ export class BindService extends ExtraSourceService {
453
496
  get?: Function;
454
497
  env?: string[] | string;
455
498
  };
456
- tls: {
457
- writable: boolean;
499
+ types: {
500
+ collection: boolean;
458
501
  type: string;
459
502
  isKey: boolean;
503
+ writable: boolean;
460
504
  mandatory: boolean;
461
- collection: boolean;
462
505
  private?: boolean;
463
506
  depends?: string;
464
507
  description?: string;
@@ -467,6 +510,7 @@ export class BindService extends ExtraSourceService {
467
510
  get?: Function;
468
511
  env?: string[] | string;
469
512
  };
513
+ tls: import("pacc").AttributeDefinition;
470
514
  hostName: {
471
515
  writable: boolean;
472
516
  type: string;
@@ -570,62 +614,10 @@ export class BindService extends ExtraSourceService {
570
614
  collection: boolean;
571
615
  writable: boolean;
572
616
  };
573
- hasSVRRecords: {
574
- writable: boolean;
575
- type: string;
576
- isKey: boolean;
577
- mandatory: boolean;
578
- collection: boolean;
579
- private?: boolean;
580
- depends?: string;
581
- description?: string;
582
- default?: any;
583
- set?: Function;
584
- get?: Function;
585
- env?: string[] | string;
586
- };
587
- hasCatalog: {
588
- writable: boolean;
589
- type: string;
590
- isKey: boolean;
591
- mandatory: boolean;
592
- collection: boolean;
593
- private?: boolean;
594
- depends?: string;
595
- description?: string;
596
- default?: any;
597
- set?: Function;
598
- get?: Function;
599
- env?: string[] | string;
600
- };
601
- hasLinkLocalAdresses: {
602
- writable: boolean;
603
- type: string;
604
- isKey: boolean;
605
- mandatory: boolean;
606
- collection: boolean;
607
- private?: boolean;
608
- depends?: string;
609
- description?: string;
610
- default?: any;
611
- set?: Function;
612
- get?: Function;
613
- env?: string[] | string;
614
- };
615
- hasLocationRecord: {
616
- writable: boolean;
617
- default: boolean;
618
- type: string;
619
- isKey: boolean;
620
- mandatory: boolean;
621
- collection: boolean;
622
- private?: boolean;
623
- depends?: string;
624
- description?: string;
625
- set?: Function;
626
- get?: Function;
627
- env?: string[] | string;
628
- };
617
+ hasSVRRecords: import("pacc").AttributeDefinition;
618
+ hasCatalog: import("pacc").AttributeDefinition;
619
+ hasLinkLocalAdresses: import("pacc").AttributeDefinition;
620
+ hasLocationRecord: import("pacc").AttributeDefinition;
629
621
  excludeInterfaceKinds: {
630
622
  collection: boolean;
631
623
  writable: boolean;
@@ -645,9 +637,9 @@ export class BindService extends ExtraSourceService {
645
637
  collection: boolean;
646
638
  writable: boolean;
647
639
  };
648
- notify: {
640
+ notify: import("pacc").AttributeDefinition;
641
+ recordTTL: {
649
642
  writable: boolean;
650
- default: boolean;
651
643
  type: string;
652
644
  isKey: boolean;
653
645
  mandatory: boolean;
@@ -655,11 +647,12 @@ export class BindService extends ExtraSourceService {
655
647
  private?: boolean;
656
648
  depends?: string;
657
649
  description?: string;
650
+ default?: any;
658
651
  set?: Function;
659
652
  get?: Function;
660
653
  env?: string[] | string;
661
654
  };
662
- recordTTL: {
655
+ serial: {
663
656
  writable: boolean;
664
657
  type: string;
665
658
  isKey: boolean;
@@ -673,11 +666,6 @@ export class BindService extends ExtraSourceService {
673
666
  get?: Function;
674
667
  env?: string[] | string;
675
668
  };
676
- serial: {
677
- type: string;
678
- collection: boolean;
679
- writable: boolean;
680
- };
681
669
  refresh: {
682
670
  writable: boolean;
683
671
  type: string;