pmcf 3.13.13 → 3.14.1

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/package.json +7 -7
  2. package/src/base.mjs +13 -13
  3. package/src/cluster.mjs +2 -2
  4. package/src/extra-source-service.mjs +1 -2
  5. package/src/host.mjs +2 -2
  6. package/src/location.mjs +1 -2
  7. package/src/module.mjs +1 -2
  8. package/src/network-interfaces/ethernet.mjs +1 -2
  9. package/src/network-interfaces/loopback.mjs +1 -1
  10. package/src/network-interfaces/network-interface.mjs +3 -3
  11. package/src/network-interfaces/tun.mjs +1 -1
  12. package/src/network-interfaces/wireguard.mjs +1 -1
  13. package/src/network-interfaces/wlan.mjs +1 -2
  14. package/src/network-support.mjs +6 -4
  15. package/src/network.mjs +1 -2
  16. package/src/owner.mjs +2 -2
  17. package/src/root.mjs +1 -1
  18. package/src/service.mjs +2 -2
  19. package/src/services/bind.mjs +7 -6
  20. package/src/services/chrony.mjs +3 -1
  21. package/src/services/headscale.mjs +3 -1
  22. package/src/services/influxdb.mjs +3 -2
  23. package/src/services/kea.mjs +4 -2
  24. package/src/services/mosquitto.mjs +3 -2
  25. package/src/services/openldap.mjs +3 -2
  26. package/src/services/systemd-journal-remote.mjs +3 -2
  27. package/src/services/systemd-journal-upload.mjs +3 -3
  28. package/src/services/systemd-journal.mjs +1 -1
  29. package/src/services/systemd-resolved.mjs +2 -2
  30. package/src/services/systemd-timesyncd.mjs +1 -1
  31. package/src/services/tailscale.mjs +1 -1
  32. package/src/subnet.mjs +1 -2
  33. package/types/base.d.mts +30 -31
  34. package/types/cluster.d.mts +2 -64
  35. package/types/extra-source-service.d.mts +8 -194
  36. package/types/host.d.mts +2 -32
  37. package/types/location.d.mts +2 -64
  38. package/types/module.d.mts +1 -2
  39. package/types/network-interfaces/ethernet.d.mts +4 -128
  40. package/types/network-interfaces/loopback.d.mts +4 -128
  41. package/types/network-interfaces/network-interface.d.mts +6 -129
  42. package/types/network-interfaces/tun.d.mts +4 -128
  43. package/types/network-interfaces/wireguard.d.mts +4 -128
  44. package/types/network-interfaces/wlan.d.mts +6 -192
  45. package/types/network-support.d.mts +1 -1
  46. package/types/network.d.mts +2 -64
  47. package/types/owner.d.mts +1 -32
  48. package/types/root.d.mts +2 -64
  49. package/types/service.d.mts +4 -128
  50. package/types/services/bind.d.mts +14 -262
  51. package/types/services/chrony.d.mts +9 -257
  52. package/types/services/headscale.d.mts +5 -160
  53. package/types/services/influxdb.d.mts +5 -160
  54. package/types/services/kea.d.mts +5 -160
  55. package/types/services/mosquitto.d.mts +5 -160
  56. package/types/services/openldap.d.mts +5 -160
  57. package/types/services/systemd-journal-remote.d.mts +5 -160
  58. package/types/services/systemd-journal-upload.d.mts +5 -160
  59. package/types/services/systemd-journal.d.mts +5 -160
  60. package/types/services/systemd-resolved.d.mts +9 -257
  61. package/types/services/systemd-timesyncd.d.mts +9 -257
  62. package/types/services/tailscale.d.mts +5 -162
  63. package/src/types.mjs +0 -47
  64. package/types/types.d.mts +0 -5
@@ -8,38 +8,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
8
8
  owners: (string | {
9
9
  name: string;
10
10
  owners: string[];
11
- extends: {
12
- name: string;
13
- key: string;
14
- attributes: {
15
- owner: {
16
- type: string;
17
- isKey: boolean;
18
- writable: boolean;
19
- mandatory: boolean;
20
- collection: boolean;
21
- private?: boolean;
22
- depends?: string;
23
- description?: string;
24
- default?: any;
25
- set?: Function;
26
- get?: Function;
27
- prepareValue?: Function;
28
- values?: Set<any>;
29
- externalName?: string;
30
- env?: string[] | string;
31
- additionalValues?: object;
32
- };
33
- type: import("pacc").AttributeDefinition;
34
- name: import("pacc").AttributeDefinition;
35
- description: import("pacc").AttributeDefinition;
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
- };
11
+ extends: typeof import("pmcf").Base;
43
12
  key: string;
44
13
  attributes: {
45
14
  networkInterfaces: {
@@ -204,38 +173,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
204
173
  address: import("pacc").AttributeDefinition;
205
174
  };
206
175
  })[];
207
- extends: {
208
- name: string;
209
- key: string;
210
- attributes: {
211
- owner: {
212
- type: string;
213
- isKey: boolean;
214
- writable: boolean;
215
- mandatory: boolean;
216
- collection: boolean;
217
- private?: boolean;
218
- depends?: string;
219
- description?: string;
220
- default?: any;
221
- set?: Function;
222
- get?: Function;
223
- prepareValue?: Function;
224
- values?: Set<any>;
225
- externalName?: string;
226
- env?: string[] | string;
227
- additionalValues?: object;
228
- };
229
- type: import("pacc").AttributeDefinition;
230
- name: import("pacc").AttributeDefinition;
231
- description: import("pacc").AttributeDefinition;
232
- priority: import("pacc").AttributeDefinition;
233
- directory: import("pacc").AttributeDefinition;
234
- packaging: import("pacc").AttributeDefinition;
235
- disabled: import("pacc").AttributeDefinition;
236
- tags: import("pacc").AttributeDefinition;
237
- };
238
- };
176
+ extends: typeof import("pmcf").Base;
239
177
  specializations: {};
240
178
  factoryFor(owner: any, value: any): any;
241
179
  key: string;
@@ -311,38 +249,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
311
249
  owners: (string | {
312
250
  name: string;
313
251
  owners: string[];
314
- extends: {
315
- name: string;
316
- key: string;
317
- attributes: {
318
- owner: {
319
- type: string;
320
- isKey: boolean;
321
- writable: boolean;
322
- mandatory: boolean;
323
- collection: boolean;
324
- private?: boolean;
325
- depends?: string;
326
- description?: string;
327
- default?: any;
328
- set?: Function;
329
- get?: Function;
330
- prepareValue?: Function;
331
- values?: Set<any>;
332
- externalName?: string;
333
- env?: string[] | string;
334
- additionalValues?: object;
335
- };
336
- type: import("pacc").AttributeDefinition;
337
- name: import("pacc").AttributeDefinition;
338
- description: import("pacc").AttributeDefinition;
339
- priority: import("pacc").AttributeDefinition;
340
- directory: import("pacc").AttributeDefinition;
341
- packaging: import("pacc").AttributeDefinition;
342
- disabled: import("pacc").AttributeDefinition;
343
- tags: import("pacc").AttributeDefinition;
344
- };
345
- };
252
+ extends: typeof import("pmcf").Base;
346
253
  key: string;
347
254
  attributes: {
348
255
  networkInterfaces: {
@@ -507,38 +414,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
507
414
  address: import("pacc").AttributeDefinition;
508
415
  };
509
416
  })[];
510
- extends: {
511
- name: string;
512
- key: string;
513
- attributes: {
514
- owner: {
515
- type: string;
516
- isKey: boolean;
517
- writable: boolean;
518
- mandatory: boolean;
519
- collection: boolean;
520
- private?: boolean;
521
- depends?: string;
522
- description?: string;
523
- default?: any;
524
- set?: Function;
525
- get?: Function;
526
- prepareValue?: Function;
527
- values?: Set<any>;
528
- externalName?: string;
529
- env?: string[] | string;
530
- additionalValues?: object;
531
- };
532
- type: import("pacc").AttributeDefinition;
533
- name: import("pacc").AttributeDefinition;
534
- description: import("pacc").AttributeDefinition;
535
- priority: import("pacc").AttributeDefinition;
536
- directory: import("pacc").AttributeDefinition;
537
- packaging: import("pacc").AttributeDefinition;
538
- disabled: import("pacc").AttributeDefinition;
539
- tags: import("pacc").AttributeDefinition;
540
- };
541
- };
417
+ extends: typeof import("pmcf").Base;
542
418
  specializations: {};
543
419
  factoryFor(owner: any, value: any): any;
544
420
  key: string;
@@ -612,38 +488,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
612
488
  owners: (string | {
613
489
  name: string;
614
490
  owners: string[];
615
- extends: {
616
- name: string;
617
- key: string;
618
- attributes: {
619
- owner: {
620
- type: string;
621
- isKey: boolean;
622
- writable: boolean;
623
- mandatory: boolean;
624
- collection: boolean;
625
- private?: boolean;
626
- depends?: string;
627
- description?: string;
628
- default?: any;
629
- set?: Function;
630
- get?: Function;
631
- prepareValue?: Function;
632
- values?: Set<any>;
633
- externalName?: string;
634
- env?: string[] | string;
635
- additionalValues?: object;
636
- };
637
- type: import("pacc").AttributeDefinition;
638
- name: import("pacc").AttributeDefinition;
639
- description: import("pacc").AttributeDefinition;
640
- priority: import("pacc").AttributeDefinition;
641
- directory: import("pacc").AttributeDefinition;
642
- packaging: import("pacc").AttributeDefinition;
643
- disabled: import("pacc").AttributeDefinition;
644
- tags: import("pacc").AttributeDefinition;
645
- };
646
- };
491
+ extends: typeof import("pmcf").Base;
647
492
  key: string;
648
493
  attributes: {
649
494
  networkInterfaces: {
@@ -810,7 +655,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
810
655
  })[];
811
656
  attributes: {
812
657
  source: {
813
- type: any;
658
+ type: string;
814
659
  collection: boolean;
815
660
  isKey: boolean;
816
661
  writable: boolean;
@@ -834,38 +679,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
834
679
  owners: (string | {
835
680
  name: string;
836
681
  owners: string[];
837
- extends: {
838
- name: string;
839
- key: string;
840
- attributes: {
841
- owner: {
842
- type: string;
843
- isKey: boolean;
844
- writable: boolean;
845
- mandatory: boolean;
846
- collection: boolean;
847
- private?: boolean;
848
- depends?: string;
849
- description?: string;
850
- default?: any;
851
- set?: Function;
852
- get?: Function;
853
- prepareValue?: Function;
854
- values?: Set<any>;
855
- externalName?: string;
856
- env?: string[] | string;
857
- additionalValues?: object;
858
- };
859
- type: import("pacc").AttributeDefinition;
860
- name: import("pacc").AttributeDefinition;
861
- description: import("pacc").AttributeDefinition;
862
- priority: import("pacc").AttributeDefinition;
863
- directory: import("pacc").AttributeDefinition;
864
- packaging: import("pacc").AttributeDefinition;
865
- disabled: import("pacc").AttributeDefinition;
866
- tags: import("pacc").AttributeDefinition;
867
- };
868
- };
682
+ extends: typeof import("pmcf").Base;
869
683
  key: string;
870
684
  attributes: {
871
685
  networkInterfaces: {
@@ -1030,38 +844,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
1030
844
  address: import("pacc").AttributeDefinition;
1031
845
  };
1032
846
  })[];
1033
- extends: {
1034
- name: string;
1035
- key: string;
1036
- attributes: {
1037
- owner: {
1038
- type: string;
1039
- isKey: boolean;
1040
- writable: boolean;
1041
- mandatory: boolean;
1042
- collection: boolean;
1043
- private?: boolean;
1044
- depends?: string;
1045
- description?: string;
1046
- default?: any;
1047
- set?: Function;
1048
- get?: Function;
1049
- prepareValue?: Function;
1050
- values?: Set<any>;
1051
- externalName?: string;
1052
- env?: string[] | string;
1053
- additionalValues?: object;
1054
- };
1055
- type: import("pacc").AttributeDefinition;
1056
- name: import("pacc").AttributeDefinition;
1057
- description: import("pacc").AttributeDefinition;
1058
- priority: import("pacc").AttributeDefinition;
1059
- directory: import("pacc").AttributeDefinition;
1060
- packaging: import("pacc").AttributeDefinition;
1061
- disabled: import("pacc").AttributeDefinition;
1062
- tags: import("pacc").AttributeDefinition;
1063
- };
1064
- };
847
+ extends: typeof import("pmcf").Base;
1065
848
  specializations: {};
1066
849
  factoryFor(owner: any, value: any): any;
1067
850
  key: string;
@@ -1135,38 +918,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
1135
918
  owners: (string | {
1136
919
  name: string;
1137
920
  owners: string[];
1138
- extends: {
1139
- name: string;
1140
- key: string;
1141
- attributes: {
1142
- owner: {
1143
- type: string;
1144
- isKey: boolean;
1145
- writable: boolean;
1146
- mandatory: boolean;
1147
- collection: boolean;
1148
- private?: boolean;
1149
- depends?: string;
1150
- description?: string;
1151
- default?: any;
1152
- set?: Function;
1153
- get?: Function;
1154
- prepareValue?: Function;
1155
- values?: Set<any>;
1156
- externalName?: string;
1157
- env?: string[] | string;
1158
- additionalValues?: object;
1159
- };
1160
- type: import("pacc").AttributeDefinition;
1161
- name: import("pacc").AttributeDefinition;
1162
- description: import("pacc").AttributeDefinition;
1163
- priority: import("pacc").AttributeDefinition;
1164
- directory: import("pacc").AttributeDefinition;
1165
- packaging: import("pacc").AttributeDefinition;
1166
- disabled: import("pacc").AttributeDefinition;
1167
- tags: import("pacc").AttributeDefinition;
1168
- };
1169
- };
921
+ extends: typeof import("pmcf").Base;
1170
922
  key: string;
1171
923
  attributes: {
1172
924
  networkInterfaces: {
@@ -1,42 +1,10 @@
1
1
  export class TailscaleService extends Service {
2
- static name: string;
3
2
  static extends: {
4
3
  name: string;
5
4
  owners: (string | {
6
5
  name: string;
7
6
  owners: string[];
8
- extends: {
9
- name: string;
10
- key: string;
11
- attributes: {
12
- owner: {
13
- type: string;
14
- isKey: boolean;
15
- writable: boolean;
16
- mandatory: boolean;
17
- collection: boolean;
18
- private?: boolean;
19
- depends?: string;
20
- description?: string;
21
- default?: any;
22
- set?: Function;
23
- get?: Function;
24
- prepareValue?: Function;
25
- values?: Set<any>;
26
- externalName?: string;
27
- env?: string[] | string;
28
- additionalValues?: object;
29
- };
30
- type: import("pacc").AttributeDefinition;
31
- name: import("pacc").AttributeDefinition;
32
- description: import("pacc").AttributeDefinition;
33
- priority: import("pacc").AttributeDefinition;
34
- directory: import("pacc").AttributeDefinition;
35
- packaging: import("pacc").AttributeDefinition;
36
- disabled: import("pacc").AttributeDefinition;
37
- tags: import("pacc").AttributeDefinition;
38
- };
39
- };
7
+ extends: typeof import("../base.mjs").Base;
40
8
  key: string;
41
9
  attributes: {
42
10
  networkInterfaces: {
@@ -201,38 +169,7 @@ export class TailscaleService extends Service {
201
169
  address: import("pacc").AttributeDefinition;
202
170
  };
203
171
  })[];
204
- extends: {
205
- name: string;
206
- key: string;
207
- attributes: {
208
- owner: {
209
- type: string;
210
- isKey: boolean;
211
- writable: boolean;
212
- mandatory: boolean;
213
- collection: boolean;
214
- private?: boolean;
215
- depends?: string;
216
- description?: string;
217
- default?: any;
218
- set?: Function;
219
- get?: Function;
220
- prepareValue?: Function;
221
- values?: Set<any>;
222
- externalName?: string;
223
- env?: string[] | string;
224
- additionalValues?: object;
225
- };
226
- type: import("pacc").AttributeDefinition;
227
- name: import("pacc").AttributeDefinition;
228
- description: import("pacc").AttributeDefinition;
229
- priority: import("pacc").AttributeDefinition;
230
- directory: import("pacc").AttributeDefinition;
231
- packaging: import("pacc").AttributeDefinition;
232
- disabled: import("pacc").AttributeDefinition;
233
- tags: import("pacc").AttributeDefinition;
234
- };
235
- };
172
+ extends: typeof import("../base.mjs").Base;
236
173
  specializations: {};
237
174
  factoryFor(owner: any, value: any): any;
238
175
  key: string;
@@ -308,38 +245,7 @@ export class TailscaleService extends Service {
308
245
  owners: (string | {
309
246
  name: string;
310
247
  owners: string[];
311
- extends: {
312
- name: string;
313
- key: string;
314
- attributes: {
315
- owner: {
316
- type: string;
317
- isKey: boolean;
318
- writable: boolean;
319
- mandatory: boolean;
320
- collection: boolean;
321
- private?: boolean;
322
- depends?: string;
323
- description?: string;
324
- default?: any;
325
- set?: Function;
326
- get?: Function;
327
- prepareValue?: Function;
328
- values?: Set<any>;
329
- externalName?: string;
330
- env?: string[] | string;
331
- additionalValues?: object;
332
- };
333
- type: import("pacc").AttributeDefinition;
334
- name: import("pacc").AttributeDefinition;
335
- description: import("pacc").AttributeDefinition;
336
- priority: import("pacc").AttributeDefinition;
337
- directory: import("pacc").AttributeDefinition;
338
- packaging: import("pacc").AttributeDefinition;
339
- disabled: import("pacc").AttributeDefinition;
340
- tags: import("pacc").AttributeDefinition;
341
- };
342
- };
248
+ extends: typeof import("../base.mjs").Base;
343
249
  key: string;
344
250
  attributes: {
345
251
  networkInterfaces: {
@@ -504,38 +410,7 @@ export class TailscaleService extends Service {
504
410
  address: import("pacc").AttributeDefinition;
505
411
  };
506
412
  })[];
507
- extends: {
508
- name: string;
509
- key: string;
510
- attributes: {
511
- owner: {
512
- type: string;
513
- isKey: boolean;
514
- writable: boolean;
515
- mandatory: boolean;
516
- collection: boolean;
517
- private?: boolean;
518
- depends?: string;
519
- description?: string;
520
- default?: any;
521
- set?: Function;
522
- get?: Function;
523
- prepareValue?: Function;
524
- values?: Set<any>;
525
- externalName?: string;
526
- env?: string[] | string;
527
- additionalValues?: object;
528
- };
529
- type: import("pacc").AttributeDefinition;
530
- name: import("pacc").AttributeDefinition;
531
- description: import("pacc").AttributeDefinition;
532
- priority: import("pacc").AttributeDefinition;
533
- directory: import("pacc").AttributeDefinition;
534
- packaging: import("pacc").AttributeDefinition;
535
- disabled: import("pacc").AttributeDefinition;
536
- tags: import("pacc").AttributeDefinition;
537
- };
538
- };
413
+ extends: typeof import("../base.mjs").Base;
539
414
  specializations: {};
540
415
  factoryFor(owner: any, value: any): any;
541
416
  key: string;
@@ -609,38 +484,7 @@ export class TailscaleService extends Service {
609
484
  static owners: (string | {
610
485
  name: string;
611
486
  owners: string[];
612
- extends: {
613
- name: string;
614
- key: string;
615
- attributes: {
616
- owner: {
617
- type: string;
618
- isKey: boolean;
619
- writable: boolean;
620
- mandatory: boolean;
621
- collection: boolean;
622
- private?: boolean;
623
- depends?: string;
624
- description?: string;
625
- default?: any;
626
- set?: Function;
627
- get?: Function;
628
- prepareValue?: Function;
629
- values?: Set<any>;
630
- externalName?: string;
631
- env?: string[] | string;
632
- additionalValues?: object;
633
- };
634
- type: import("pacc").AttributeDefinition;
635
- name: import("pacc").AttributeDefinition;
636
- description: import("pacc").AttributeDefinition;
637
- priority: import("pacc").AttributeDefinition;
638
- directory: import("pacc").AttributeDefinition;
639
- packaging: import("pacc").AttributeDefinition;
640
- disabled: import("pacc").AttributeDefinition;
641
- tags: import("pacc").AttributeDefinition;
642
- };
643
- };
487
+ extends: typeof import("../base.mjs").Base;
644
488
  key: string;
645
489
  attributes: {
646
490
  networkInterfaces: {
@@ -805,7 +649,6 @@ export class TailscaleService extends Service {
805
649
  address: import("pacc").AttributeDefinition;
806
650
  };
807
651
  })[];
808
- static key: string;
809
652
  static service: {
810
653
  endpoints: {
811
654
  family: string;
package/src/types.mjs DELETED
@@ -1,47 +0,0 @@
1
- import {
2
- attributeIterator,
3
- types,
4
- oneOfType,
5
- addType as paccAddType
6
- } from "pacc";
7
- import { addServiceType } from "./service-types.mjs";
8
- export { types };
9
-
10
- export function addType(type) {
11
- type = paccAddType(type);
12
-
13
- if (type.specializationOf) {
14
- type.specializationOf.specializations[type.name] = type;
15
- }
16
-
17
- addServiceType(type.service, type.name);
18
- }
19
-
20
- export function resolveTypeLinks() {
21
- for (const type of Object.values(types)) {
22
- if (typeof type.extends === "string") {
23
- type.extends = types[type.extends];
24
- }
25
-
26
- if (type.owners) {
27
- type.owners = type.owners.map(owner =>
28
- typeof owner === "string" ? types[owner] : owner
29
- );
30
- }
31
-
32
- for (const [path, attribute] of attributeIterator(type.attributes)) {
33
- if (typeof attribute.type === "string") {
34
- attribute.type = oneOfType(attribute.type);
35
- }
36
- }
37
- }
38
- }
39
-
40
- export function typeFactory(type, owner, data) {
41
- const factory = type.factoryFor?.(owner, data) || type.clazz;
42
- //console.log(factory, type, owner, data);
43
- const object = new factory(owner);
44
- object.read(data);
45
- owner.addObject(object);
46
- return object;
47
- }
package/types/types.d.mts DELETED
@@ -1,5 +0,0 @@
1
- export function addType(type: any): void;
2
- export function resolveTypeLinks(): void;
3
- export function typeFactory(type: any, owner: any, data: any): any;
4
- export { types };
5
- import { types } from "pacc";