@kinotic-ai/system-api 5.0.0-beta.5 → 5.0.0-beta.51

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @kinotic-ai/system-api
2
2
 
3
3
  Client API for the Kinotic platform's **system plane**: the node and workload orchestration
4
- services addressed in the `system` zone. Consumed by platform machines (the vm-manager) and
4
+ services addressed in the `system` zone. Consumed by system machines (the vm-manager) and
5
5
  system tooling — never by customer applications.
6
6
 
7
7
  ```typescript
package/dist/index.cjs CHANGED
@@ -40,50 +40,52 @@ var __export = (target, all) => {
40
40
  // packages/system-api/src/index.ts
41
41
  var exports_src = {};
42
42
  __export(exports_src, {
43
- WorkloadServiceProxy: () => WorkloadServiceProxy,
44
- WorkloadOrchestrationService: () => WorkloadOrchestrationService,
45
- VmProviderType: () => VmProviderType,
46
- VmNodeStatusType: () => VmNodeStatusType,
47
- VmNodeStatus: () => VmNodeStatus,
48
- VmNodeServiceProxy: () => VmNodeServiceProxy,
49
- VmNodeRegistration: () => VmNodeRegistration,
50
- VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
51
- VmNode: () => VmNode,
52
- SystemOrganizationService: () => SystemOrganizationService,
53
- SystemApiPlugin: () => SystemApiPlugin,
54
- SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
55
- SYSTEM_API_ZONE: () => import_management_api8.SYSTEM_API_ZONE,
56
- LoggersDescriptor: () => LoggersDescriptor,
57
- LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
58
- LogManager: () => LogManager,
59
- LogLevel: () => LogLevel,
60
- KinoticNodeInfo: () => KinoticNodeInfo,
61
- KinoticClusterInfoService: () => KinoticClusterInfoService,
43
+ ClusterVulnerabilityService: () => ClusterVulnerabilityService,
44
+ EnterpriseFeature: () => EnterpriseFeature,
45
+ GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
62
46
  KinoticClusterInfo: () => KinoticClusterInfo,
63
- GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
47
+ KinoticClusterInfoService: () => KinoticClusterInfoService,
48
+ KinoticNodeInfo: () => KinoticNodeInfo,
49
+ License: () => License,
50
+ LicenseService: () => LicenseService,
51
+ LicenseStatus: () => LicenseStatus,
52
+ LlmConfiguration: () => LlmConfiguration,
53
+ LlmConfigurationService: () => LlmConfigurationService,
54
+ LlmProviderType: () => LlmProviderType,
55
+ LogLevel: () => LogLevel,
56
+ LogManager: () => LogManager,
57
+ LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
58
+ LoggersDescriptor: () => LoggersDescriptor,
59
+ SYSTEM_API_ZONE: () => import_management_api15.SYSTEM_API_ZONE,
60
+ ServerVulnerabilities: () => ServerVulnerabilities,
61
+ SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
62
+ SystemApiPlugin: () => SystemApiPlugin,
63
+ SystemJobService: () => SystemJobService,
64
+ SystemMemberService: () => SystemMemberService,
65
+ SystemOrganizationService: () => SystemOrganizationService,
66
+ TraceLogProperties: () => TraceLogProperties,
67
+ VmNode: () => VmNode,
68
+ VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
69
+ VmNodeRegistration: () => VmNodeRegistration,
70
+ VmNodeServiceProxy: () => VmNodeServiceProxy,
71
+ VmNodeStatusType: () => VmNodeStatusType,
72
+ VmProviderType: () => VmProviderType,
73
+ VulnerabilityAdvisoryService: () => VulnerabilityAdvisoryService,
74
+ WatchEventService: () => WatchEventService,
75
+ WorkloadOrchestrationService: () => WorkloadOrchestrationService,
76
+ WorkloadServiceProxy: () => WorkloadServiceProxy
64
77
  });
65
78
  module.exports = __toCommonJS(exports_src);
66
- var import_management_api8 = require("@kinotic-ai/management-api");
79
+ var import_management_api15 = require("@kinotic-ai/management-api");
67
80
 
68
- // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
69
- var VmNodeStatusType;
70
- ((VmNodeStatusType2) => {
71
- VmNodeStatusType2["ONLINE"] = "ONLINE";
72
- VmNodeStatusType2["OFFLINE"] = "OFFLINE";
73
- VmNodeStatusType2["DRAINING"] = "DRAINING";
74
- })(VmNodeStatusType ||= {});
75
-
76
- // packages/system-api/src/api/model/workload/VmNodeStatus.ts
77
- class VmNodeStatus {
78
- type = "ONLINE" /* ONLINE */;
79
- healthMessage = null;
80
- }
81
+ // packages/system-api/src/api/model/workload/VmNode.ts
82
+ var import_management_api = require("@kinotic-ai/management-api");
81
83
 
82
84
  // packages/system-api/src/api/model/workload/VmProviderType.ts
83
85
  var VmProviderType;
84
- ((VmProviderType2) => {
85
- VmProviderType2["BOXLITE"] = "BOXLITE";
86
- VmProviderType2["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
86
+ ((VmProviderType) => {
87
+ VmProviderType["BOXLITE"] = "BOXLITE";
88
+ VmProviderType["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
87
89
  })(VmProviderType ||= {});
88
90
 
89
91
  // packages/system-api/src/api/model/workload/VmNode.ts
@@ -91,14 +93,15 @@ class VmNode {
91
93
  id;
92
94
  name;
93
95
  hostname;
94
- status = new VmNodeStatus;
96
+ state = new import_management_api.ReconcileState;
97
+ healthMessage = null;
95
98
  providerType = "BOXLITE" /* BOXLITE */;
96
99
  totalCpus = 0;
97
100
  totalMemoryMb = 0;
98
101
  totalDiskMb = 0;
99
- allocatedCpus = 0;
100
- allocatedMemoryMb = 0;
101
- allocatedDiskMb = 0;
102
+ freeCpus = 0;
103
+ freeMemoryMb = 0;
104
+ freeDiskMb = 0;
102
105
  lastSeen = null;
103
106
  workloadDataDir = null;
104
107
  constructor(id, name, hostname) {
@@ -107,114 +110,148 @@ class VmNode {
107
110
  this.hostname = hostname;
108
111
  }
109
112
  }
110
- // packages/system-api/src/api/model/VmNodeRegistration.ts
113
+ // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
114
+ var VmNodeStatusType;
115
+ ((VmNodeStatusType) => {
116
+ VmNodeStatusType["ONLINE"] = "ONLINE";
117
+ VmNodeStatusType["DRAINING"] = "DRAINING";
118
+ })(VmNodeStatusType ||= {});
119
+ // packages/system-api/src/api/model/workload/VmNodeRegistration.ts
111
120
  class VmNodeRegistration {
112
- id;
113
- name;
114
121
  hostname;
115
122
  providerType = "BOXLITE" /* BOXLITE */;
116
123
  totalCpus = 0;
117
124
  totalMemoryMb = 0;
118
125
  totalDiskMb = 0;
119
126
  workloadDataDir = null;
120
- constructor(id, name, hostname) {
121
- this.id = id;
122
- this.name = name;
127
+ constructor(hostname) {
123
128
  this.hostname = hostname;
124
129
  }
125
130
  }
126
- // packages/system-api/src/api/services/IVmNodeService.ts
127
- var import_management_api = require("@kinotic-ai/management-api");
131
+ // packages/system-api/src/api/model/llm/LlmConfiguration.ts
132
+ class LlmConfiguration {
133
+ id = null;
134
+ name;
135
+ provider;
136
+ model;
137
+ endpoint = null;
138
+ maxTokens = null;
139
+ temperature = null;
140
+ apiKeyHeld = false;
141
+ created = null;
142
+ updated = null;
143
+ constructor(name, provider, model) {
144
+ this.name = name;
145
+ this.provider = provider;
146
+ this.model = model;
147
+ }
148
+ }
149
+ // packages/system-api/src/api/model/llm/LlmProviderType.ts
150
+ var LlmProviderType;
151
+ ((LlmProviderType) => {
152
+ LlmProviderType["ANTHROPIC"] = "ANTHROPIC";
153
+ LlmProviderType["OPENAI"] = "OPENAI";
154
+ })(LlmProviderType ||= {});
155
+ // packages/system-api/src/api/services/workload/IVmNodeService.ts
156
+ var import_management_api2 = require("@kinotic-ai/management-api");
128
157
  var import_core = require("@kinotic-ai/core");
129
158
 
130
159
  class VmNodeServiceProxy extends import_core.CrudServiceProxy {
131
160
  constructor(kinotic) {
132
- super(kinotic.serviceProxy(`${import_management_api.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeService`));
161
+ super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeService`));
133
162
  }
134
- findAvailableNode(requiredCpus, requiredMemoryMb, requiredDiskMb) {
135
- return this.serviceProxy.invoke("findAvailableNode", [requiredCpus, requiredMemoryMb, requiredDiskMb]);
163
+ async findHistory(nodeId, pageable) {
164
+ const page = await this.findHistorySinglePage(nodeId, pageable);
165
+ return new import_core.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(nodeId, pageable));
166
+ }
167
+ findHistorySinglePage(nodeId, pageable) {
168
+ return this.serviceProxy.invoke("findHistory", [nodeId, pageable]);
136
169
  }
137
170
  syncIndex() {
138
171
  return this.serviceProxy.invoke("syncIndex", []);
139
172
  }
140
173
  }
141
- // packages/system-api/src/api/services/IWorkloadService.ts
142
- var import_management_api2 = require("@kinotic-ai/management-api");
174
+ // packages/system-api/src/api/services/workload/IWorkloadService.ts
175
+ var import_management_api3 = require("@kinotic-ai/management-api");
143
176
  var import_core2 = require("@kinotic-ai/core");
144
177
 
145
178
  class WorkloadServiceProxy extends import_core2.CrudServiceProxy {
146
179
  constructor(kinotic) {
147
- super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WorkloadService`));
180
+ super(kinotic.serviceProxy(`${import_management_api3.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.WorkloadService`));
148
181
  }
149
182
  async findAllForNode(nodeId, pageable) {
150
183
  const page = await this.findAllForNodeSinglePage(nodeId, pageable);
151
- return new import_core2.FunctionalIterablePage(pageable, page, (pageable2) => this.findAllForNodeSinglePage(nodeId, pageable2));
184
+ return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findAllForNodeSinglePage(nodeId, pageable));
152
185
  }
153
186
  findAllForNodeSinglePage(nodeId, pageable) {
154
187
  return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
155
188
  }
156
- countForNode(nodeId) {
157
- return this.serviceProxy.invoke("countForNode", [nodeId]);
189
+ async findHistory(workloadId, pageable) {
190
+ const page = await this.findHistorySinglePage(workloadId, pageable);
191
+ return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(workloadId, pageable));
192
+ }
193
+ findHistorySinglePage(workloadId, pageable) {
194
+ return this.serviceProxy.invoke("findHistory", [workloadId, pageable]);
158
195
  }
159
196
  syncIndex() {
160
197
  return this.serviceProxy.invoke("syncIndex", []);
161
198
  }
162
199
  }
163
- // packages/system-api/src/api/services/IWorkloadOrchestrationService.ts
164
- var import_management_api3 = require("@kinotic-ai/management-api");
200
+ // packages/system-api/src/api/services/workload/IWorkloadOrchestrationService.ts
201
+ var import_management_api4 = require("@kinotic-ai/management-api");
165
202
 
166
203
  class WorkloadOrchestrationService {
167
204
  serviceProxy;
168
205
  constructor(kinotic) {
169
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api3.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WorkloadOrchestrationService`);
206
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api4.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.WorkloadOrchestrationService`);
170
207
  }
171
208
  deployWorkload(workload) {
172
209
  return this.serviceProxy.invoke("deployWorkload", [workload]);
173
210
  }
174
- restartWorkload(workloadId) {
175
- return this.serviceProxy.invoke("restartWorkload", [workloadId]);
176
- }
177
211
  stopWorkload(workloadId) {
178
212
  return this.serviceProxy.invoke("stopWorkload", [workloadId]);
179
213
  }
180
214
  destroyWorkload(workloadId) {
181
215
  return this.serviceProxy.invoke("destroyWorkload", [workloadId]);
182
216
  }
217
+ deleteWorkload(workloadId) {
218
+ return this.serviceProxy.invoke("deleteWorkload", [workloadId]);
219
+ }
220
+ deleteWorkloads(workloadIds) {
221
+ return this.serviceProxy.invoke("deleteWorkloads", [workloadIds]);
222
+ }
183
223
  }
184
- // packages/system-api/src/api/services/VmNodeOrchestrationServiceProxy.ts
185
- var import_management_api4 = require("@kinotic-ai/management-api");
224
+ // packages/system-api/src/api/services/workload/VmNodeOrchestrationServiceProxy.ts
225
+ var import_management_api5 = require("@kinotic-ai/management-api");
186
226
 
187
227
  class VmNodeOrchestrationServiceProxy {
188
228
  serviceProxy;
189
229
  constructor(kinotic) {
190
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api4.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeOrchestrationService`);
230
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api5.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeOrchestrationService`);
191
231
  }
192
232
  registerNode(registration) {
193
233
  return this.serviceProxy.invoke("registerNode", [registration]);
194
234
  }
195
- heartbeat(nodeId, problems) {
196
- return this.serviceProxy.invoke("heartbeat", [nodeId, problems]);
235
+ heartbeat(problems) {
236
+ return this.serviceProxy.invoke("heartbeat", [problems]);
197
237
  }
198
- reportWorkloadStatus(nodeId, reports) {
199
- return this.serviceProxy.invoke("reportWorkloadStatus", [nodeId, reports]);
238
+ reportWorkloadStatus(reports) {
239
+ return this.serviceProxy.invoke("reportWorkloadStatus", [reports]);
200
240
  }
201
241
  deregisterNode(nodeId) {
202
242
  return this.serviceProxy.invoke("deregisterNode", [nodeId]);
203
243
  }
204
244
  }
205
- // packages/system-api/src/api/services/LogManager.ts
206
- var import_management_api5 = require("@kinotic-ai/management-api");
207
-
208
245
  // packages/system-api/src/api/services/ILogManager.ts
209
246
  var LogLevel;
210
- ((LogLevel2) => {
211
- LogLevel2["TRACE"] = "TRACE";
212
- LogLevel2["DEBUG"] = "DEBUG";
213
- LogLevel2["INFO"] = "INFO";
214
- LogLevel2["WARN"] = "WARN";
215
- LogLevel2["ERROR"] = "ERROR";
216
- LogLevel2["FATAL"] = "FATAL";
217
- LogLevel2["OFF"] = "OFF";
247
+ ((LogLevel) => {
248
+ LogLevel["TRACE"] = "TRACE";
249
+ LogLevel["DEBUG"] = "DEBUG";
250
+ LogLevel["INFO"] = "INFO";
251
+ LogLevel["WARN"] = "WARN";
252
+ LogLevel["ERROR"] = "ERROR";
253
+ LogLevel["FATAL"] = "FATAL";
254
+ LogLevel["OFF"] = "OFF";
218
255
  })(LogLevel ||= {});
219
256
 
220
257
  class LoggerLevelsDescriptor {
@@ -235,11 +272,16 @@ class LoggersDescriptor {
235
272
  groups = new Map;
236
273
  }
237
274
 
275
+ class TraceLogProperties {
276
+ includes = [];
277
+ excludes = [];
278
+ }
279
+
238
280
  // packages/system-api/src/api/services/LogManager.ts
239
281
  class LogManager {
240
282
  serviceProxy;
241
283
  constructor(kinotic) {
242
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api5.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LogManager`);
284
+ this.serviceProxy = kinotic.serviceProxy("org.kinotic.core.api.log.LogManager");
243
285
  }
244
286
  loggers(nodeId) {
245
287
  return this.serviceProxy.invoke("loggers", null, nodeId);
@@ -260,6 +302,15 @@ class LogManager {
260
302
  configureLogLevel(nodeId, name, level) {
261
303
  return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
262
304
  }
305
+ async traceLog(nodeId) {
306
+ const data = await this.serviceProxy.invoke("traceLog", null, nodeId);
307
+ const ret = new TraceLogProperties;
308
+ Object.assign(ret, data);
309
+ return ret;
310
+ }
311
+ configureTraceLog(nodeId, traceLog) {
312
+ return this.serviceProxy.invoke("configureTraceLog", [traceLog], nodeId);
313
+ }
263
314
  }
264
315
 
265
316
  // packages/system-api/src/api/services/IKinoticClusterInfoService.ts
@@ -275,13 +326,48 @@ class KinoticClusterInfoService {
275
326
  }
276
327
  }
277
328
 
278
- // packages/system-api/src/api/services/ISystemOrganizationService.ts
329
+ // packages/system-api/src/api/services/IClusterVulnerabilityService.ts
279
330
  var import_management_api7 = require("@kinotic-ai/management-api");
280
331
 
332
+ class ClusterVulnerabilityService {
333
+ serviceProxy;
334
+ constructor(kinotic) {
335
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api7.SYSTEM_API_ZONE}~org.kinotic.system.api.services.ClusterVulnerabilityService`);
336
+ }
337
+ findAll() {
338
+ return this.serviceProxy.invoke("findAll");
339
+ }
340
+ }
341
+
342
+ // packages/system-api/src/api/services/IVulnerabilityAdvisoryService.ts
343
+ var import_management_api8 = require("@kinotic-ai/management-api");
344
+
345
+ class VulnerabilityAdvisoryService {
346
+ serviceProxy;
347
+ constructor(kinotic) {
348
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VulnerabilityAdvisoryService`);
349
+ }
350
+ findImportStatus() {
351
+ return this.serviceProxy.invoke("findImportStatus");
352
+ }
353
+ findAdvisories(search, pageable) {
354
+ return this.serviceProxy.invoke("findAdvisories", [search, pageable]);
355
+ }
356
+ findAdvisoriesOf(ecosystem, pageable) {
357
+ return this.serviceProxy.invoke("findAdvisoriesOf", [ecosystem, pageable]);
358
+ }
359
+ findAlerts(advisoryId, pageable) {
360
+ return this.serviceProxy.invoke("findAlerts", [advisoryId, pageable]);
361
+ }
362
+ }
363
+
364
+ // packages/system-api/src/api/services/ISystemOrganizationService.ts
365
+ var import_management_api9 = require("@kinotic-ai/management-api");
366
+
281
367
  class SystemOrganizationService {
282
368
  serviceProxy;
283
369
  constructor(kinotic) {
284
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api7.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
370
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
285
371
  }
286
372
  findOrganizations(pageable) {
287
373
  return this.serviceProxy.invoke("findOrganizations", [pageable]);
@@ -301,17 +387,141 @@ class SystemOrganizationService {
301
387
  findProjects(organizationId, pageable) {
302
388
  return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
303
389
  }
304
- findMembers(organizationId, applicationId, pageable) {
305
- return this.serviceProxy.invoke("findMembers", [organizationId, applicationId, pageable]);
390
+ findMembers(organizationId, pageable) {
391
+ return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
306
392
  }
307
- searchMembers(searchText, organizationId, applicationId, pageable) {
308
- return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, applicationId, pageable]);
393
+ searchMembers(searchText, organizationId, pageable) {
394
+ return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, pageable]);
395
+ }
396
+ findApplicationUsers(organizationId, applicationId, pageable) {
397
+ return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
398
+ }
399
+ searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
400
+ return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
309
401
  }
310
402
  findPendingInvites(organizationId, applicationId, pageable) {
311
403
  return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
312
404
  }
313
405
  }
314
406
 
407
+ // packages/system-api/src/api/services/ISystemMemberService.ts
408
+ var import_management_api10 = require("@kinotic-ai/management-api");
409
+
410
+ class SystemMemberService {
411
+ serviceProxy;
412
+ constructor(kinotic) {
413
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
414
+ }
415
+ findUsers(pageable) {
416
+ return this.serviceProxy.invoke("findUsers", [pageable]);
417
+ }
418
+ searchUsers(searchText, pageable) {
419
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
420
+ }
421
+ addUser(email, displayName) {
422
+ return this.serviceProxy.invoke("addUser", [email, displayName]);
423
+ }
424
+ setUserEnabled(userId, enabled) {
425
+ return this.serviceProxy.invoke("setUserEnabled", [userId, enabled]);
426
+ }
427
+ resetUserPassword(userId) {
428
+ return this.serviceProxy.invoke("resetUserPassword", [userId]);
429
+ }
430
+ findMachines(pageable) {
431
+ return this.serviceProxy.invoke("findMachines", [pageable]);
432
+ }
433
+ createMachine(displayName) {
434
+ return this.serviceProxy.invoke("createMachine", [displayName]);
435
+ }
436
+ rotateSecret(machineId) {
437
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
438
+ }
439
+ setMachineEnabled(machineId, enabled) {
440
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
441
+ }
442
+ removeMachine(machineId) {
443
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
444
+ }
445
+ }
446
+
447
+ // packages/system-api/src/api/services/IWatchEventService.ts
448
+ var import_management_api11 = require("@kinotic-ai/management-api");
449
+ var import_core3 = require("@kinotic-ai/core");
450
+
451
+ class WatchEventService {
452
+ serviceProxy;
453
+ constructor(kinotic) {
454
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
455
+ }
456
+ async findAll(pageable) {
457
+ const page = await this.findAllSinglePage(pageable);
458
+ return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(pageable));
459
+ }
460
+ findAllSinglePage(pageable) {
461
+ return this.serviceProxy.invoke("findAll", [pageable]);
462
+ }
463
+ }
464
+
465
+ // packages/system-api/src/api/services/ILlmConfigurationService.ts
466
+ var import_management_api12 = require("@kinotic-ai/management-api");
467
+
468
+ class LlmConfigurationService {
469
+ serviceProxy;
470
+ constructor(kinotic) {
471
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
472
+ }
473
+ findAll(pageable) {
474
+ return this.serviceProxy.invoke("findAll", [pageable]);
475
+ }
476
+ findById(id) {
477
+ return this.serviceProxy.invoke("findById", [id]);
478
+ }
479
+ findByName(name) {
480
+ return this.serviceProxy.invoke("findByName", [name]);
481
+ }
482
+ save(configuration, apiKey) {
483
+ return this.serviceProxy.invoke("save", [configuration, apiKey]);
484
+ }
485
+ deleteById(id) {
486
+ return this.serviceProxy.invoke("deleteById", [id]);
487
+ }
488
+ }
489
+
490
+ // packages/system-api/src/api/services/ISystemJobService.ts
491
+ var import_management_api13 = require("@kinotic-ai/management-api");
492
+
493
+ class SystemJobService {
494
+ serviceProxy;
495
+ constructor(kinotic) {
496
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api13.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
497
+ }
498
+ findSystemJobs() {
499
+ return this.serviceProxy.invoke("findSystemJobs", []);
500
+ }
501
+ startSystemJob(name) {
502
+ return this.serviceProxy.invoke("startSystemJob", [name]);
503
+ }
504
+ }
505
+
506
+ // packages/system-api/src/api/services/ILicenseService.ts
507
+ var import_management_api14 = require("@kinotic-ai/management-api");
508
+
509
+ class LicenseService {
510
+ serviceProxy;
511
+ constructor(kinotic) {
512
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api14.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
513
+ }
514
+ findCurrent() {
515
+ return this.serviceProxy.invoke("findCurrent", []);
516
+ }
517
+ install(licenseKey) {
518
+ return this.serviceProxy.invoke("install", [licenseKey]);
519
+ }
520
+ findClusterId() {
521
+ return this.serviceProxy.invoke("findClusterId", []);
522
+ }
523
+ }
524
+
315
525
  // packages/system-api/src/api/SystemApiPlugin.ts
316
526
  var SystemApiPlugin = {
317
527
  install(kinotic) {
@@ -321,23 +531,71 @@ var SystemApiPlugin = {
321
531
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
322
532
  logManager: new LogManager(kinotic),
323
533
  clusterInfo: new KinoticClusterInfoService(kinotic),
324
- systemOrganizations: new SystemOrganizationService(kinotic)
534
+ clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
535
+ vulnerabilityAdvisories: new VulnerabilityAdvisoryService(kinotic),
536
+ systemOrganizations: new SystemOrganizationService(kinotic),
537
+ systemMembers: new SystemMemberService(kinotic),
538
+ watchEvents: new WatchEventService(kinotic),
539
+ llmConfigurations: new LlmConfigurationService(kinotic),
540
+ systemJobs: new SystemJobService(kinotic),
541
+ licenses: new LicenseService(kinotic)
325
542
  };
326
543
  }
327
544
  };
328
- // packages/system-api/src/api/model/KinoticClusterInfo.ts
545
+ // packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
329
546
  class KinoticClusterInfo {
330
- localNodeId = "";
331
547
  serverNodeCount = 0;
332
548
  topologyVersion = 0;
333
549
  clusterState = "";
334
550
  nodes = [];
335
551
  active = false;
336
552
  }
337
- // packages/system-api/src/api/model/KinoticNodeInfo.ts
553
+ // packages/system-api/src/api/model/cluster/KinoticNodeInfo.ts
338
554
  class KinoticNodeInfo {
339
555
  nodeId = "";
340
556
  order = 0;
341
- local = false;
342
- version = "";
557
+ serverName = "";
558
+ addresses = [];
559
+ hostNames = [];
560
+ version = null;
561
+ telemetryServiceName = null;
562
+ telemetryServiceInstanceId = null;
563
+ }
564
+ // packages/system-api/src/api/model/cluster/ServerVulnerabilities.ts
565
+ class ServerVulnerabilities {
566
+ serverName = "";
567
+ version = null;
568
+ nodeCount = 0;
569
+ componentCount = 0;
570
+ findings = [];
571
+ error = null;
572
+ }
573
+ // packages/system-api/src/api/model/license/EnterpriseFeature.ts
574
+ var EnterpriseFeature;
575
+ ((EnterpriseFeature) => {
576
+ EnterpriseFeature["AZURE_KEY_VAULT"] = "AZURE_KEY_VAULT";
577
+ EnterpriseFeature["ENTERPRISE_IDENTITY_PROVIDERS"] = "ENTERPRISE_IDENTITY_PROVIDERS";
578
+ })(EnterpriseFeature ||= {});
579
+ // packages/system-api/src/api/model/license/LicenseStatus.ts
580
+ var LicenseStatus;
581
+ ((LicenseStatus) => {
582
+ LicenseStatus["ACTIVE"] = "ACTIVE";
583
+ LicenseStatus["GRACE_PERIOD"] = "GRACE_PERIOD";
584
+ LicenseStatus["EXPIRED"] = "EXPIRED";
585
+ })(LicenseStatus ||= {});
586
+ // packages/system-api/src/api/model/license/License.ts
587
+ class License {
588
+ licensee;
589
+ clusterId = null;
590
+ issuedAt = null;
591
+ expiresAt;
592
+ graceEndsAt;
593
+ status;
594
+ features = [];
595
+ constructor(licensee, expiresAt, graceEndsAt, status) {
596
+ this.licensee = licensee;
597
+ this.expiresAt = expiresAt;
598
+ this.graceEndsAt = graceEndsAt;
599
+ this.status = status;
600
+ }
343
601
  }