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
@@ -7,7 +7,7 @@ export namespace ExtraSourceServiceTypeDefinition {
7
7
  namespace source {
8
8
  let type: string;
9
9
  let collection: boolean;
10
- let writeable: boolean;
10
+ let writable: boolean;
11
11
  }
12
12
  }
13
13
  }
@@ -26,24 +26,28 @@ export class ExtraSourceService extends Service {
26
26
  owner: {
27
27
  type: string;
28
28
  collection: boolean;
29
- writeable: boolean;
30
- };
31
- type: {
32
- type: string;
33
- collection: boolean;
34
- writeable: boolean;
29
+ writable: boolean;
35
30
  };
31
+ type: import("pacc").AttributeDefinition;
36
32
  name: {
33
+ isKey: boolean;
34
+ writable: boolean;
37
35
  type: string;
36
+ mandatory: boolean;
38
37
  collection: boolean;
39
- identifier: boolean;
40
- writeable: boolean;
38
+ private?: boolean;
39
+ depends?: string;
40
+ additionalAttributes: string[];
41
+ description?: string;
42
+ default?: any;
43
+ set?: Function;
44
+ get?: Function;
45
+ env?: string[] | string;
41
46
  };
42
47
  description: {
43
- writeable: boolean;
48
+ writable: boolean;
44
49
  type: string;
45
50
  isKey: boolean;
46
- writable: boolean;
47
51
  mandatory: boolean;
48
52
  collection: boolean;
49
53
  private?: boolean;
@@ -58,13 +62,12 @@ export class ExtraSourceService extends Service {
58
62
  priority: {
59
63
  type: string;
60
64
  collection: boolean;
61
- writeable: boolean;
65
+ writable: boolean;
62
66
  };
63
67
  directory: {
64
- writeable: boolean;
68
+ writable: boolean;
65
69
  type: string;
66
70
  isKey: boolean;
67
- writable: boolean;
68
71
  mandatory: boolean;
69
72
  collection: boolean;
70
73
  private?: boolean;
@@ -77,10 +80,9 @@ export class ExtraSourceService extends Service {
77
80
  env?: string[] | string;
78
81
  };
79
82
  packaging: {
80
- writeable: boolean;
83
+ writable: boolean;
81
84
  type: string;
82
85
  isKey: boolean;
83
- writable: boolean;
84
86
  mandatory: boolean;
85
87
  collection: boolean;
86
88
  private?: boolean;
@@ -93,17 +95,25 @@ export class ExtraSourceService extends Service {
93
95
  env?: string[] | string;
94
96
  };
95
97
  disabled: {
98
+ writable: boolean;
99
+ default: boolean;
96
100
  type: string;
101
+ isKey: boolean;
102
+ mandatory: boolean;
97
103
  collection: boolean;
98
- writeable: boolean;
99
- default: boolean;
104
+ private?: boolean;
105
+ depends?: string;
106
+ additionalAttributes: string[];
107
+ description?: string;
108
+ set?: Function;
109
+ get?: Function;
110
+ env?: string[] | string;
100
111
  };
101
112
  tags: {
102
113
  collection: boolean;
103
- writeable: boolean;
114
+ writable: boolean;
104
115
  type: string;
105
116
  isKey: boolean;
106
- writable: boolean;
107
117
  mandatory: boolean;
108
118
  private?: boolean;
109
119
  depends?: string;
@@ -120,10 +130,9 @@ export class ExtraSourceService extends Service {
120
130
  factoryFor(owner: any, value: any): any;
121
131
  properties: {
122
132
  alias: {
123
- writeable: boolean;
133
+ writable: boolean;
124
134
  type: string;
125
135
  isKey: boolean;
126
- writable: boolean;
127
136
  mandatory: boolean;
128
137
  collection: boolean;
129
138
  private?: boolean;
@@ -138,25 +147,24 @@ export class ExtraSourceService extends Service {
138
147
  weight: {
139
148
  type: string;
140
149
  collection: boolean;
141
- writeable: boolean;
150
+ writable: boolean;
142
151
  default: number;
143
152
  };
144
153
  systemd: {
145
154
  type: string;
146
155
  collection: boolean;
147
- writeable: boolean;
156
+ writable: boolean;
148
157
  };
149
158
  port: {
150
159
  type: string;
151
160
  collection: boolean;
152
- writeable: boolean;
161
+ writable: boolean;
153
162
  };
154
163
  protocol: {
155
- writeable: boolean;
164
+ writable: boolean;
156
165
  values: string[];
157
166
  type: string;
158
167
  isKey: boolean;
159
- writable: boolean;
160
168
  mandatory: boolean;
161
169
  collection: boolean;
162
170
  private?: boolean;
@@ -169,10 +177,9 @@ export class ExtraSourceService extends Service {
169
177
  env?: string[] | string;
170
178
  };
171
179
  type: {
172
- writeable: boolean;
180
+ writable: boolean;
173
181
  type: string;
174
182
  isKey: boolean;
175
- writable: boolean;
176
183
  mandatory: boolean;
177
184
  collection: boolean;
178
185
  private?: boolean;
@@ -200,10 +207,9 @@ export class ExtraSourceService extends Service {
200
207
  env?: string[] | string;
201
208
  };
202
209
  tls: {
203
- writeable: boolean;
210
+ writable: boolean;
204
211
  type: string;
205
212
  isKey: boolean;
206
- writable: boolean;
207
213
  mandatory: boolean;
208
214
  collection: boolean;
209
215
  private?: boolean;
@@ -216,10 +222,9 @@ export class ExtraSourceService extends Service {
216
222
  env?: string[] | string;
217
223
  };
218
224
  hostName: {
219
- writeable: boolean;
225
+ writable: boolean;
220
226
  type: string;
221
227
  isKey: boolean;
222
- writable: boolean;
223
228
  mandatory: boolean;
224
229
  collection: boolean;
225
230
  private?: boolean;
@@ -233,10 +238,9 @@ export class ExtraSourceService extends Service {
233
238
  };
234
239
  cidrAddresses: {
235
240
  collection: boolean;
236
- writeable: boolean;
241
+ writable: boolean;
237
242
  type: string;
238
243
  isKey: boolean;
239
- writable: boolean;
240
244
  mandatory: boolean;
241
245
  private?: boolean;
242
246
  depends?: string;
@@ -248,10 +252,9 @@ export class ExtraSourceService extends Service {
248
252
  env?: string[] | string;
249
253
  };
250
254
  cidrAddress: {
251
- writeable: boolean;
255
+ writable: boolean;
252
256
  type: string;
253
257
  isKey: boolean;
254
- writable: boolean;
255
258
  mandatory: boolean;
256
259
  collection: boolean;
257
260
  private?: boolean;
@@ -265,10 +268,9 @@ export class ExtraSourceService extends Service {
265
268
  };
266
269
  addresses: {
267
270
  collection: boolean;
268
- writeable: boolean;
271
+ writable: boolean;
269
272
  type: string;
270
273
  isKey: boolean;
271
- writable: boolean;
272
274
  mandatory: boolean;
273
275
  private?: boolean;
274
276
  depends?: string;
@@ -280,10 +282,9 @@ export class ExtraSourceService extends Service {
280
282
  env?: string[] | string;
281
283
  };
282
284
  address: {
283
- writeable: boolean;
285
+ writable: boolean;
284
286
  type: string;
285
287
  isKey: boolean;
286
- writable: boolean;
287
288
  mandatory: boolean;
288
289
  collection: boolean;
289
290
  private?: boolean;
@@ -302,7 +303,7 @@ export class ExtraSourceService extends Service {
302
303
  source: {
303
304
  type: string;
304
305
  collection: boolean;
305
- writeable: boolean;
306
+ writable: boolean;
306
307
  };
307
308
  };
308
309
  };
package/types/host.d.mts CHANGED
@@ -10,24 +10,28 @@ export class Host extends ServiceOwner {
10
10
  owner: {
11
11
  type: string;
12
12
  collection: boolean;
13
- writeable: boolean;
14
- };
15
- type: {
16
- type: string;
17
- collection: boolean;
18
- writeable: boolean;
13
+ writable: boolean;
19
14
  };
15
+ type: import("pacc").AttributeDefinition;
20
16
  name: {
17
+ isKey: boolean;
18
+ writable: boolean;
21
19
  type: string;
20
+ mandatory: boolean;
22
21
  collection: boolean;
23
- identifier: boolean;
24
- writeable: boolean;
22
+ private?: boolean;
23
+ depends?: string;
24
+ additionalAttributes: string[];
25
+ description?: string;
26
+ default?: any;
27
+ set?: Function;
28
+ get?: Function;
29
+ env?: string[] | string;
25
30
  };
26
31
  description: {
27
- writeable: boolean;
32
+ writable: boolean;
28
33
  type: string;
29
34
  isKey: boolean;
30
- writable: boolean;
31
35
  mandatory: boolean;
32
36
  collection: boolean;
33
37
  private?: boolean;
@@ -42,13 +46,12 @@ export class Host extends ServiceOwner {
42
46
  priority: {
43
47
  type: string;
44
48
  collection: boolean;
45
- writeable: boolean;
49
+ writable: boolean;
46
50
  };
47
51
  directory: {
48
- writeable: boolean;
52
+ writable: boolean;
49
53
  type: string;
50
54
  isKey: boolean;
51
- writable: boolean;
52
55
  mandatory: boolean;
53
56
  collection: boolean;
54
57
  private?: boolean;
@@ -61,10 +64,9 @@ export class Host extends ServiceOwner {
61
64
  env?: string[] | string;
62
65
  };
63
66
  packaging: {
64
- writeable: boolean;
67
+ writable: boolean;
65
68
  type: string;
66
69
  isKey: boolean;
67
- writable: boolean;
68
70
  mandatory: boolean;
69
71
  collection: boolean;
70
72
  private?: boolean;
@@ -77,17 +79,25 @@ export class Host extends ServiceOwner {
77
79
  env?: string[] | string;
78
80
  };
79
81
  disabled: {
82
+ writable: boolean;
83
+ default: boolean;
80
84
  type: string;
85
+ isKey: boolean;
86
+ mandatory: boolean;
81
87
  collection: boolean;
82
- writeable: boolean;
83
- default: boolean;
88
+ private?: boolean;
89
+ depends?: string;
90
+ additionalAttributes: string[];
91
+ description?: string;
92
+ set?: Function;
93
+ get?: Function;
94
+ env?: string[] | string;
84
95
  };
85
96
  tags: {
86
97
  collection: boolean;
87
- writeable: boolean;
98
+ writable: boolean;
88
99
  type: string;
89
100
  isKey: boolean;
90
- writable: boolean;
91
101
  mandatory: boolean;
92
102
  private?: boolean;
93
103
  depends?: string;
@@ -104,24 +114,23 @@ export class Host extends ServiceOwner {
104
114
  networkInterfaces: {
105
115
  type: string;
106
116
  collection: boolean;
107
- writeable: boolean;
117
+ writable: boolean;
108
118
  };
109
119
  services: {
110
120
  type: string;
111
121
  collection: boolean;
112
- writeable: boolean;
122
+ writable: boolean;
113
123
  };
114
124
  aliases: {
115
125
  type: string;
116
126
  collection: boolean;
117
- writeable: boolean;
127
+ writable: boolean;
118
128
  };
119
129
  os: {
120
- writeable: boolean;
130
+ writable: boolean;
121
131
  values: string[];
122
132
  type: string;
123
133
  isKey: boolean;
124
- writable: boolean;
125
134
  mandatory: boolean;
126
135
  collection: boolean;
127
136
  private?: boolean;
@@ -134,10 +143,9 @@ export class Host extends ServiceOwner {
134
143
  env?: string[] | string;
135
144
  };
136
145
  "machine-id": {
137
- writeable: boolean;
146
+ writable: boolean;
138
147
  type: string;
139
148
  isKey: boolean;
140
- writable: boolean;
141
149
  mandatory: boolean;
142
150
  collection: boolean;
143
151
  private?: boolean;
@@ -150,10 +158,9 @@ export class Host extends ServiceOwner {
150
158
  env?: string[] | string;
151
159
  };
152
160
  distribution: {
153
- writeable: boolean;
161
+ writable: boolean;
154
162
  type: string;
155
163
  isKey: boolean;
156
- writable: boolean;
157
164
  mandatory: boolean;
158
165
  collection: boolean;
159
166
  private?: boolean;
@@ -166,11 +173,10 @@ export class Host extends ServiceOwner {
166
173
  env?: string[] | string;
167
174
  };
168
175
  deployment: {
169
- writeable: boolean;
176
+ writable: boolean;
170
177
  values: string[];
171
178
  type: string;
172
179
  isKey: boolean;
173
- writable: boolean;
174
180
  mandatory: boolean;
175
181
  collection: boolean;
176
182
  private?: boolean;
@@ -185,13 +191,12 @@ export class Host extends ServiceOwner {
185
191
  weight: {
186
192
  type: string;
187
193
  collection: boolean;
188
- writeable: boolean;
194
+ writable: boolean;
189
195
  };
190
196
  serial: {
191
- writeable: boolean;
197
+ writable: boolean;
192
198
  type: string;
193
199
  isKey: boolean;
194
- writable: boolean;
195
200
  mandatory: boolean;
196
201
  collection: boolean;
197
202
  private?: boolean;
@@ -204,10 +209,9 @@ export class Host extends ServiceOwner {
204
209
  env?: string[] | string;
205
210
  };
206
211
  vendor: {
207
- writeable: boolean;
212
+ writable: boolean;
208
213
  type: string;
209
214
  isKey: boolean;
210
- writable: boolean;
211
215
  mandatory: boolean;
212
216
  collection: boolean;
213
217
  private?: boolean;
@@ -220,10 +224,9 @@ export class Host extends ServiceOwner {
220
224
  env?: string[] | string;
221
225
  };
222
226
  keymap: {
223
- writeable: boolean;
227
+ writable: boolean;
224
228
  type: string;
225
229
  isKey: boolean;
226
- writable: boolean;
227
230
  mandatory: boolean;
228
231
  collection: boolean;
229
232
  private?: boolean;
@@ -236,11 +239,10 @@ export class Host extends ServiceOwner {
236
239
  env?: string[] | string;
237
240
  };
238
241
  chassis: {
239
- writeable: boolean;
242
+ writable: boolean;
240
243
  values: string[];
241
244
  type: string;
242
245
  isKey: boolean;
243
- writable: boolean;
244
246
  mandatory: boolean;
245
247
  collection: boolean;
246
248
  private?: boolean;
@@ -253,11 +255,10 @@ export class Host extends ServiceOwner {
253
255
  env?: string[] | string;
254
256
  };
255
257
  architecture: {
256
- writeable: boolean;
258
+ writable: boolean;
257
259
  values: string[];
258
260
  type: string;
259
261
  isKey: boolean;
260
- writable: boolean;
261
262
  mandatory: boolean;
262
263
  collection: boolean;
263
264
  private?: boolean;
@@ -271,10 +272,9 @@ export class Host extends ServiceOwner {
271
272
  };
272
273
  replaces: {
273
274
  collection: boolean;
274
- writeable: boolean;
275
+ writable: boolean;
275
276
  type: string;
276
277
  isKey: boolean;
277
- writable: boolean;
278
278
  mandatory: boolean;
279
279
  private?: boolean;
280
280
  depends?: string;
@@ -287,10 +287,9 @@ export class Host extends ServiceOwner {
287
287
  };
288
288
  depends: {
289
289
  collection: boolean;
290
- writeable: boolean;
290
+ writable: boolean;
291
291
  type: string;
292
292
  isKey: boolean;
293
- writable: boolean;
294
293
  mandatory: boolean;
295
294
  private?: boolean;
296
295
  depends?: string;
@@ -303,10 +302,9 @@ export class Host extends ServiceOwner {
303
302
  };
304
303
  provides: {
305
304
  collection: boolean;
306
- writeable: boolean;
305
+ writable: boolean;
307
306
  type: string;
308
307
  isKey: boolean;
309
- writable: boolean;
310
308
  mandatory: boolean;
311
309
  private?: boolean;
312
310
  depends?: string;
@@ -320,14 +318,13 @@ export class Host extends ServiceOwner {
320
318
  extends: {
321
319
  type: string;
322
320
  collection: boolean;
323
- writeable: boolean;
321
+ writable: boolean;
324
322
  };
325
323
  model: {
326
324
  collection: boolean;
327
- writeable: boolean;
325
+ writable: boolean;
328
326
  type: string;
329
327
  isKey: boolean;
330
- writable: boolean;
331
328
  mandatory: boolean;
332
329
  private?: boolean;
333
330
  depends?: string;
@@ -341,13 +338,12 @@ export class Host extends ServiceOwner {
341
338
  isModel: {
342
339
  type: string;
343
340
  collection: boolean;
344
- writeable: boolean;
341
+ writable: boolean;
345
342
  };
346
343
  hostName: {
347
- writeable: boolean;
344
+ writable: boolean;
348
345
  type: string;
349
346
  isKey: boolean;
350
- writable: boolean;
351
347
  mandatory: boolean;
352
348
  collection: boolean;
353
349
  private?: boolean;
@@ -361,10 +357,9 @@ export class Host extends ServiceOwner {
361
357
  };
362
358
  cidrAddresses: {
363
359
  collection: boolean;
364
- writeable: boolean;
360
+ writable: boolean;
365
361
  type: string;
366
362
  isKey: boolean;
367
- writable: boolean;
368
363
  mandatory: boolean;
369
364
  private?: boolean;
370
365
  depends?: string;
@@ -376,10 +371,9 @@ export class Host extends ServiceOwner {
376
371
  env?: string[] | string;
377
372
  };
378
373
  cidrAddress: {
379
- writeable: boolean;
374
+ writable: boolean;
380
375
  type: string;
381
376
  isKey: boolean;
382
- writable: boolean;
383
377
  mandatory: boolean;
384
378
  collection: boolean;
385
379
  private?: boolean;
@@ -393,10 +387,9 @@ export class Host extends ServiceOwner {
393
387
  };
394
388
  addresses: {
395
389
  collection: boolean;
396
- writeable: boolean;
390
+ writable: boolean;
397
391
  type: string;
398
392
  isKey: boolean;
399
- writable: boolean;
400
393
  mandatory: boolean;
401
394
  private?: boolean;
402
395
  depends?: string;
@@ -408,10 +401,9 @@ export class Host extends ServiceOwner {
408
401
  env?: string[] | string;
409
402
  };
410
403
  address: {
411
- writeable: boolean;
404
+ writable: boolean;
412
405
  type: string;
413
406
  isKey: boolean;
414
- writable: boolean;
415
407
  mandatory: boolean;
416
408
  collection: boolean;
417
409
  private?: boolean;