pmcf 3.10.25 → 3.11.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 (64) hide show
  1. package/bin/pmcf-info +2 -1
  2. package/package.json +5 -5
  3. package/src/base.mjs +32 -29
  4. package/src/cluster.mjs +3 -2
  5. package/src/host.mjs +3 -5
  6. package/src/location.mjs +1 -0
  7. package/src/network-interfaces/ethernet.mjs +1 -0
  8. package/src/network-interfaces/loopback.mjs +4 -6
  9. package/src/network-interfaces/network-interface.mjs +11 -2
  10. package/src/network-interfaces/tun.mjs +1 -1
  11. package/src/network-interfaces/wireguard.mjs +1 -1
  12. package/src/network-interfaces/wlan.mjs +1 -0
  13. package/src/network-support.mjs +8 -3
  14. package/src/network.mjs +2 -1
  15. package/src/owner.mjs +3 -1
  16. package/src/root.mjs +1 -3
  17. package/src/service-owner.mjs +11 -3
  18. package/src/service.mjs +4 -2
  19. package/src/services/bind.mjs +6 -3
  20. package/src/services/chrony.mjs +4 -6
  21. package/src/services/headscale.mjs +1 -1
  22. package/src/services/influxdb.mjs +1 -0
  23. package/src/services/kea.mjs +14 -12
  24. package/src/services/mosquitto.mjs +1 -0
  25. package/src/services/openldap.mjs +1 -0
  26. package/src/services/systemd-journal-remote.mjs +1 -1
  27. package/src/services/systemd-journal-upload.mjs +1 -0
  28. package/src/services/systemd-journal.mjs +2 -2
  29. package/src/services/systemd-resolved.mjs +8 -6
  30. package/src/services/systemd-timesyncd.mjs +7 -7
  31. package/src/subnet.mjs +3 -1
  32. package/src/types.mjs +16 -38
  33. package/types/base.d.mts +5 -3
  34. package/types/cluster.d.mts +56 -10
  35. package/types/extra-source-service.d.mts +510 -9
  36. package/types/host.d.mts +20 -7
  37. package/types/location.d.mts +71 -6
  38. package/types/network-interfaces/ethernet.d.mts +630 -26
  39. package/types/network-interfaces/loopback.d.mts +629 -27
  40. package/types/network-interfaces/network-interface.d.mts +628 -26
  41. package/types/network-interfaces/tun.d.mts +629 -27
  42. package/types/network-interfaces/wireguard.d.mts +629 -27
  43. package/types/network-interfaces/wlan.d.mts +947 -40
  44. package/types/network-support.d.mts +54 -11
  45. package/types/network.d.mts +324 -8
  46. package/types/owner.d.mts +35 -3
  47. package/types/root.d.mts +71 -8
  48. package/types/service-owner.d.mts +1 -0
  49. package/types/service.d.mts +363 -13
  50. package/types/services/bind.d.mts +706 -23
  51. package/types/services/chrony.d.mts +689 -15
  52. package/types/services/headscale.d.mts +689 -15
  53. package/types/services/influxdb.d.mts +527 -14
  54. package/types/services/kea.d.mts +539 -18
  55. package/types/services/mosquitto.d.mts +530 -15
  56. package/types/services/openldap.d.mts +524 -13
  57. package/types/services/systemd-journal-remote.d.mts +524 -14
  58. package/types/services/systemd-journal-upload.d.mts +524 -13
  59. package/types/services/systemd-journal.d.mts +524 -14
  60. package/types/services/systemd-resolved.d.mts +689 -15
  61. package/types/services/systemd-timesyncd.d.mts +763 -90
  62. package/types/subnet.d.mts +14 -0
  63. package/src/filter.mjs +0 -91
  64. package/types/filter.d.mts +0 -1
@@ -1,6 +1,170 @@
1
1
  export namespace ExtraSourceServiceTypeDefinition {
2
2
  export let name: string;
3
- export let owners: string[];
3
+ export let owners: (string | {
4
+ name: string;
5
+ priority: number;
6
+ owners: string[];
7
+ extends: {
8
+ name: string;
9
+ key: string;
10
+ attributes: {
11
+ owner: {
12
+ type: string;
13
+ collection: boolean;
14
+ writable: boolean;
15
+ };
16
+ type: import("pacc").AttributeDefinition;
17
+ name: import("pacc").AttributeDefinition;
18
+ description: {
19
+ writable: boolean;
20
+ type: object;
21
+ isKey: boolean;
22
+ mandatory: boolean;
23
+ collection: boolean;
24
+ private?: boolean;
25
+ depends?: string;
26
+ description?: string;
27
+ default?: any;
28
+ set?: Function;
29
+ get?: Function;
30
+ prepareValue?: Function;
31
+ values?: Set<any>;
32
+ externalName?: string;
33
+ env?: string[] | string;
34
+ additionalValues?: object;
35
+ };
36
+ priority: import("pacc").AttributeDefinition;
37
+ directory: import("pacc").AttributeDefinition;
38
+ packaging: import("pacc").AttributeDefinition;
39
+ disabled: import("pacc").AttributeDefinition;
40
+ tags: import("pacc").AttributeDefinition;
41
+ };
42
+ };
43
+ key: string;
44
+ attributes: {
45
+ networkInterfaces: {
46
+ type: string;
47
+ collection: boolean;
48
+ writable: boolean;
49
+ };
50
+ services: {
51
+ type: string;
52
+ collection: boolean;
53
+ writable: boolean;
54
+ };
55
+ aliases: import("pacc").AttributeDefinition;
56
+ os: {
57
+ values: string[];
58
+ type: object;
59
+ isKey: boolean;
60
+ writable: boolean;
61
+ mandatory: boolean;
62
+ collection: boolean;
63
+ private?: boolean;
64
+ depends?: string;
65
+ description?: string;
66
+ default?: any;
67
+ set?: Function;
68
+ get?: Function;
69
+ prepareValue?: Function;
70
+ externalName?: string;
71
+ env?: string[] | string;
72
+ additionalValues?: object;
73
+ };
74
+ "machine-id": import("pacc").AttributeDefinition;
75
+ distribution: import("pacc").AttributeDefinition;
76
+ deployment: {
77
+ values: string[];
78
+ type: object;
79
+ isKey: boolean;
80
+ writable: boolean;
81
+ mandatory: boolean;
82
+ collection: boolean;
83
+ private?: boolean;
84
+ depends?: string;
85
+ description?: string;
86
+ default?: any;
87
+ set?: Function;
88
+ get?: Function;
89
+ prepareValue?: Function;
90
+ externalName?: string;
91
+ env?: string[] | string;
92
+ additionalValues?: object;
93
+ };
94
+ weight: import("pacc").AttributeDefinition;
95
+ serial: import("pacc").AttributeDefinition;
96
+ vendor: import("pacc").AttributeDefinition;
97
+ keymap: import("pacc").AttributeDefinition;
98
+ chassis: {
99
+ values: string[];
100
+ type: object;
101
+ isKey: boolean;
102
+ writable: boolean;
103
+ mandatory: boolean;
104
+ collection: boolean;
105
+ private?: boolean;
106
+ depends?: string;
107
+ description?: string;
108
+ default?: any;
109
+ set?: Function;
110
+ get?: Function;
111
+ prepareValue?: Function;
112
+ externalName?: string;
113
+ env?: string[] | string;
114
+ additionalValues?: object;
115
+ };
116
+ architecture: {
117
+ values: string[];
118
+ type: object;
119
+ isKey: boolean;
120
+ writable: boolean;
121
+ mandatory: boolean;
122
+ collection: boolean;
123
+ private?: boolean;
124
+ depends?: string;
125
+ description?: string;
126
+ default?: any;
127
+ set?: Function;
128
+ get?: Function;
129
+ prepareValue?: Function;
130
+ externalName?: string;
131
+ env?: string[] | string;
132
+ additionalValues?: object;
133
+ };
134
+ replaces: import("pacc").AttributeDefinition;
135
+ depends: import("pacc").AttributeDefinition;
136
+ provides: import("pacc").AttributeDefinition;
137
+ extends: {
138
+ type: string;
139
+ collection: boolean;
140
+ writable: boolean;
141
+ };
142
+ model: import("pacc").AttributeDefinition;
143
+ isModel: import("pacc").AttributeDefinition;
144
+ hostName: {
145
+ writable: boolean;
146
+ type: object;
147
+ isKey: boolean;
148
+ mandatory: boolean;
149
+ collection: boolean;
150
+ private?: boolean;
151
+ depends?: string;
152
+ description?: string;
153
+ default?: any;
154
+ set?: Function;
155
+ get?: Function;
156
+ prepareValue?: Function;
157
+ values?: Set<any>;
158
+ externalName?: string;
159
+ env?: string[] | string;
160
+ additionalValues?: object;
161
+ };
162
+ cidrAddresses: import("pacc").AttributeDefinition;
163
+ cidrAddress: import("pacc").AttributeDefinition;
164
+ addresses: import("pacc").AttributeDefinition;
165
+ address: import("pacc").AttributeDefinition;
166
+ };
167
+ })[];
4
168
  export { ServiceTypeDefinition as extends };
5
169
  export let priority: number;
6
170
  export namespace attributes {
@@ -14,14 +178,13 @@ export namespace ExtraSourceServiceTypeDefinition {
14
178
  export class ExtraSourceService extends Service {
15
179
  static get typeDefinition(): {
16
180
  name: string;
17
- owners: string[];
18
- extends: {
181
+ owners: (string | {
19
182
  name: string;
20
- owners: string[];
21
183
  priority: number;
184
+ owners: string[];
22
185
  extends: {
23
186
  name: string;
24
- owners: any[];
187
+ key: string;
25
188
  attributes: {
26
189
  owner: {
27
190
  type: string;
@@ -32,8 +195,214 @@ export class ExtraSourceService extends Service {
32
195
  name: import("pacc").AttributeDefinition;
33
196
  description: {
34
197
  writable: boolean;
198
+ type: object;
199
+ isKey: boolean;
200
+ mandatory: boolean;
201
+ collection: boolean;
202
+ private?: boolean;
203
+ depends?: string;
204
+ description?: string;
205
+ default?: any;
206
+ set?: Function;
207
+ get?: Function;
208
+ prepareValue?: Function;
209
+ values?: Set<any>;
210
+ externalName?: string;
211
+ env?: string[] | string;
212
+ additionalValues?: object;
213
+ };
214
+ priority: import("pacc").AttributeDefinition;
215
+ directory: import("pacc").AttributeDefinition;
216
+ packaging: import("pacc").AttributeDefinition;
217
+ disabled: import("pacc").AttributeDefinition;
218
+ tags: import("pacc").AttributeDefinition;
219
+ };
220
+ };
221
+ key: string;
222
+ attributes: {
223
+ networkInterfaces: {
224
+ type: string;
225
+ collection: boolean;
226
+ writable: boolean;
227
+ };
228
+ services: {
229
+ type: string;
230
+ collection: boolean;
231
+ writable: boolean;
232
+ };
233
+ aliases: import("pacc").AttributeDefinition;
234
+ os: {
235
+ values: string[];
236
+ type: object;
237
+ isKey: boolean;
238
+ writable: boolean;
239
+ mandatory: boolean;
240
+ collection: boolean;
241
+ private?: boolean;
242
+ depends?: string;
243
+ description?: string;
244
+ default?: any;
245
+ set?: Function;
246
+ get?: Function;
247
+ prepareValue?: Function;
248
+ externalName?: string;
249
+ env?: string[] | string;
250
+ additionalValues?: object;
251
+ };
252
+ "machine-id": import("pacc").AttributeDefinition;
253
+ distribution: import("pacc").AttributeDefinition;
254
+ deployment: {
255
+ values: string[];
256
+ type: object;
257
+ isKey: boolean;
258
+ writable: boolean;
259
+ mandatory: boolean;
260
+ collection: boolean;
261
+ private?: boolean;
262
+ depends?: string;
263
+ description?: string;
264
+ default?: any;
265
+ set?: Function;
266
+ get?: Function;
267
+ prepareValue?: Function;
268
+ externalName?: string;
269
+ env?: string[] | string;
270
+ additionalValues?: object;
271
+ };
272
+ weight: import("pacc").AttributeDefinition;
273
+ serial: import("pacc").AttributeDefinition;
274
+ vendor: import("pacc").AttributeDefinition;
275
+ keymap: import("pacc").AttributeDefinition;
276
+ chassis: {
277
+ values: string[];
278
+ type: object;
279
+ isKey: boolean;
280
+ writable: boolean;
281
+ mandatory: boolean;
282
+ collection: boolean;
283
+ private?: boolean;
284
+ depends?: string;
285
+ description?: string;
286
+ default?: any;
287
+ set?: Function;
288
+ get?: Function;
289
+ prepareValue?: Function;
290
+ externalName?: string;
291
+ env?: string[] | string;
292
+ additionalValues?: object;
293
+ };
294
+ architecture: {
295
+ values: string[];
296
+ type: object;
297
+ isKey: boolean;
298
+ writable: boolean;
299
+ mandatory: boolean;
300
+ collection: boolean;
301
+ private?: boolean;
302
+ depends?: string;
303
+ description?: string;
304
+ default?: any;
305
+ set?: Function;
306
+ get?: Function;
307
+ prepareValue?: Function;
308
+ externalName?: string;
309
+ env?: string[] | string;
310
+ additionalValues?: object;
311
+ };
312
+ replaces: import("pacc").AttributeDefinition;
313
+ depends: import("pacc").AttributeDefinition;
314
+ provides: import("pacc").AttributeDefinition;
315
+ extends: {
316
+ type: string;
317
+ collection: boolean;
318
+ writable: boolean;
319
+ };
320
+ model: import("pacc").AttributeDefinition;
321
+ isModel: import("pacc").AttributeDefinition;
322
+ hostName: {
323
+ writable: boolean;
324
+ type: object;
325
+ isKey: boolean;
326
+ mandatory: boolean;
327
+ collection: boolean;
328
+ private?: boolean;
329
+ depends?: string;
330
+ description?: string;
331
+ default?: any;
332
+ set?: Function;
333
+ get?: Function;
334
+ prepareValue?: Function;
335
+ values?: Set<any>;
336
+ externalName?: string;
337
+ env?: string[] | string;
338
+ additionalValues?: object;
339
+ };
340
+ cidrAddresses: import("pacc").AttributeDefinition;
341
+ cidrAddress: import("pacc").AttributeDefinition;
342
+ addresses: import("pacc").AttributeDefinition;
343
+ address: import("pacc").AttributeDefinition;
344
+ };
345
+ })[];
346
+ extends: {
347
+ name: string;
348
+ owners: (string | {
349
+ name: string;
350
+ priority: number;
351
+ owners: string[];
352
+ extends: {
353
+ name: string;
354
+ key: string;
355
+ attributes: {
356
+ owner: {
357
+ type: string;
358
+ collection: boolean;
359
+ writable: boolean;
360
+ };
361
+ type: import("pacc").AttributeDefinition;
362
+ name: import("pacc").AttributeDefinition;
363
+ description: {
364
+ writable: boolean;
365
+ type: object;
366
+ isKey: boolean;
367
+ mandatory: boolean;
368
+ collection: boolean;
369
+ private?: boolean;
370
+ depends?: string;
371
+ description?: string;
372
+ default?: any;
373
+ set?: Function;
374
+ get?: Function;
375
+ prepareValue?: Function;
376
+ values?: Set<any>;
377
+ externalName?: string;
378
+ env?: string[] | string;
379
+ additionalValues?: object;
380
+ };
381
+ priority: import("pacc").AttributeDefinition;
382
+ directory: import("pacc").AttributeDefinition;
383
+ packaging: import("pacc").AttributeDefinition;
384
+ disabled: import("pacc").AttributeDefinition;
385
+ tags: import("pacc").AttributeDefinition;
386
+ };
387
+ };
388
+ key: string;
389
+ attributes: {
390
+ networkInterfaces: {
391
+ type: string;
392
+ collection: boolean;
393
+ writable: boolean;
394
+ };
395
+ services: {
35
396
  type: string;
397
+ collection: boolean;
398
+ writable: boolean;
399
+ };
400
+ aliases: import("pacc").AttributeDefinition;
401
+ os: {
402
+ values: string[];
403
+ type: object;
36
404
  isKey: boolean;
405
+ writable: boolean;
37
406
  mandatory: boolean;
38
407
  collection: boolean;
39
408
  private?: boolean;
@@ -42,9 +411,134 @@ export class ExtraSourceService extends Service {
42
411
  default?: any;
43
412
  set?: Function;
44
413
  get?: Function;
414
+ prepareValue?: Function;
415
+ externalName?: string;
416
+ env?: string[] | string;
417
+ additionalValues?: object;
418
+ };
419
+ "machine-id": import("pacc").AttributeDefinition;
420
+ distribution: import("pacc").AttributeDefinition;
421
+ deployment: {
422
+ values: string[];
423
+ type: object;
424
+ isKey: boolean;
425
+ writable: boolean;
426
+ mandatory: boolean;
427
+ collection: boolean;
428
+ private?: boolean;
429
+ depends?: string;
430
+ description?: string;
431
+ default?: any;
432
+ set?: Function;
433
+ get?: Function;
434
+ prepareValue?: Function;
435
+ externalName?: string;
436
+ env?: string[] | string;
437
+ additionalValues?: object;
438
+ };
439
+ weight: import("pacc").AttributeDefinition;
440
+ serial: import("pacc").AttributeDefinition;
441
+ vendor: import("pacc").AttributeDefinition;
442
+ keymap: import("pacc").AttributeDefinition;
443
+ chassis: {
444
+ values: string[];
445
+ type: object;
446
+ isKey: boolean;
447
+ writable: boolean;
448
+ mandatory: boolean;
449
+ collection: boolean;
450
+ private?: boolean;
451
+ depends?: string;
452
+ description?: string;
453
+ default?: any;
454
+ set?: Function;
455
+ get?: Function;
456
+ prepareValue?: Function;
457
+ externalName?: string;
458
+ env?: string[] | string;
459
+ additionalValues?: object;
460
+ };
461
+ architecture: {
462
+ values: string[];
463
+ type: object;
464
+ isKey: boolean;
465
+ writable: boolean;
466
+ mandatory: boolean;
467
+ collection: boolean;
468
+ private?: boolean;
469
+ depends?: string;
470
+ description?: string;
471
+ default?: any;
472
+ set?: Function;
473
+ get?: Function;
474
+ prepareValue?: Function;
475
+ externalName?: string;
476
+ env?: string[] | string;
477
+ additionalValues?: object;
478
+ };
479
+ replaces: import("pacc").AttributeDefinition;
480
+ depends: import("pacc").AttributeDefinition;
481
+ provides: import("pacc").AttributeDefinition;
482
+ extends: {
483
+ type: string;
484
+ collection: boolean;
485
+ writable: boolean;
486
+ };
487
+ model: import("pacc").AttributeDefinition;
488
+ isModel: import("pacc").AttributeDefinition;
489
+ hostName: {
490
+ writable: boolean;
491
+ type: object;
492
+ isKey: boolean;
493
+ mandatory: boolean;
494
+ collection: boolean;
495
+ private?: boolean;
496
+ depends?: string;
497
+ description?: string;
498
+ default?: any;
499
+ set?: Function;
500
+ get?: Function;
501
+ prepareValue?: Function;
45
502
  values?: Set<any>;
46
503
  externalName?: string;
47
504
  env?: string[] | string;
505
+ additionalValues?: object;
506
+ };
507
+ cidrAddresses: import("pacc").AttributeDefinition;
508
+ cidrAddress: import("pacc").AttributeDefinition;
509
+ addresses: import("pacc").AttributeDefinition;
510
+ address: import("pacc").AttributeDefinition;
511
+ };
512
+ })[];
513
+ priority: number;
514
+ extends: {
515
+ name: string;
516
+ key: string;
517
+ attributes: {
518
+ owner: {
519
+ type: string;
520
+ collection: boolean;
521
+ writable: boolean;
522
+ };
523
+ type: import("pacc").AttributeDefinition;
524
+ name: import("pacc").AttributeDefinition;
525
+ description: {
526
+ writable: boolean;
527
+ type: object;
528
+ isKey: boolean;
529
+ mandatory: boolean;
530
+ collection: boolean;
531
+ private?: boolean;
532
+ depends?: string;
533
+ description?: string;
534
+ default?: any;
535
+ set?: Function;
536
+ get?: Function;
537
+ prepareValue?: Function;
538
+ values?: Set<any>;
539
+ externalName?: string;
540
+ env?: string[] | string;
541
+ additionalValues?: object;
48
542
  };
49
543
  priority: import("pacc").AttributeDefinition;
50
544
  directory: import("pacc").AttributeDefinition;
@@ -55,10 +549,11 @@ export class ExtraSourceService extends Service {
55
549
  };
56
550
  specializations: {};
57
551
  factoryFor(owner: any, value: any): any;
552
+ key: string;
58
553
  attributes: {
59
554
  alias: import("pacc").AttributeDefinition;
60
555
  weight: {
61
- type: string;
556
+ type: object;
62
557
  isKey: boolean;
63
558
  writable: boolean;
64
559
  mandatory: boolean;
@@ -69,15 +564,17 @@ export class ExtraSourceService extends Service {
69
564
  default?: any;
70
565
  set?: Function;
71
566
  get?: Function;
567
+ prepareValue?: Function;
72
568
  values?: Set<any>;
73
569
  externalName?: string;
74
570
  env?: string[] | string;
571
+ additionalValues?: object;
75
572
  };
76
573
  systemd: import("pacc").AttributeDefinition;
77
574
  port: import("pacc").AttributeDefinition;
78
575
  protocol: {
79
576
  values: string[];
80
- type: string;
577
+ type: object;
81
578
  isKey: boolean;
82
579
  writable: boolean;
83
580
  mandatory: boolean;
@@ -88,15 +585,17 @@ export class ExtraSourceService extends Service {
88
585
  default?: any;
89
586
  set?: Function;
90
587
  get?: Function;
588
+ prepareValue?: Function;
91
589
  externalName?: string;
92
590
  env?: string[] | string;
591
+ additionalValues?: object;
93
592
  };
94
593
  type: import("pacc").AttributeDefinition;
95
594
  types: typeof import("pacc").string_collection_attribute;
96
595
  tls: import("pacc").AttributeDefinition;
97
596
  hostName: {
98
597
  writable: boolean;
99
- type: string;
598
+ type: object;
100
599
  isKey: boolean;
101
600
  mandatory: boolean;
102
601
  collection: boolean;
@@ -106,9 +605,11 @@ export class ExtraSourceService extends Service {
106
605
  default?: any;
107
606
  set?: Function;
108
607
  get?: Function;
608
+ prepareValue?: Function;
109
609
  values?: Set<any>;
110
610
  externalName?: string;
111
611
  env?: string[] | string;
612
+ additionalValues?: object;
112
613
  };
113
614
  cidrAddresses: import("pacc").AttributeDefinition;
114
615
  cidrAddress: import("pacc").AttributeDefinition;
@@ -119,7 +620,7 @@ export class ExtraSourceService extends Service {
119
620
  priority: number;
120
621
  attributes: {
121
622
  source: {
122
- type: string[];
623
+ type: any;
123
624
  collection: boolean;
124
625
  writable: boolean;
125
626
  };