@kinotic-ai/system-api 5.0.0-beta.3 → 5.0.0-beta.30

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/dist/index.js CHANGED
@@ -1,47 +1,14 @@
1
1
  // packages/system-api/src/index.ts
2
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
3
-
4
- // packages/system-api/src/api/model/workload/LogPolicy.ts
5
- class LogPolicy {
6
- maxSizeMb = 10;
7
- maxFiles = 3;
8
- }
9
- // packages/system-api/src/api/model/workload/NetworkMode.ts
10
- var NetworkMode;
11
- ((NetworkMode2) => {
12
- NetworkMode2["ENABLED"] = "ENABLED";
13
- NetworkMode2["DISABLED"] = "DISABLED";
14
- })(NetworkMode ||= {});
15
- // packages/system-api/src/api/model/workload/NetworkPolicy.ts
16
- class NetworkPolicy {
17
- mode = "ENABLED" /* ENABLED */;
18
- allowedHosts = [];
19
- }
20
- // packages/system-api/src/api/model/workload/PortProtocol.ts
21
- var PortProtocol;
22
- ((PortProtocol2) => {
23
- PortProtocol2["TCP"] = "TCP";
24
- PortProtocol2["UDP"] = "UDP";
25
- })(PortProtocol ||= {});
26
- // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
27
- var VmNodeStatusType;
28
- ((VmNodeStatusType2) => {
29
- VmNodeStatusType2["ONLINE"] = "ONLINE";
30
- VmNodeStatusType2["OFFLINE"] = "OFFLINE";
31
- VmNodeStatusType2["DRAINING"] = "DRAINING";
32
- })(VmNodeStatusType ||= {});
2
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
33
3
 
34
- // packages/system-api/src/api/model/workload/VmNodeStatus.ts
35
- class VmNodeStatus {
36
- type = "ONLINE" /* ONLINE */;
37
- healthMessage = null;
38
- }
4
+ // packages/system-api/src/api/model/workload/VmNode.ts
5
+ import { ReconcileState } from "@kinotic-ai/management-api";
39
6
 
40
7
  // packages/system-api/src/api/model/workload/VmProviderType.ts
41
8
  var VmProviderType;
42
- ((VmProviderType2) => {
43
- VmProviderType2["BOXLITE"] = "BOXLITE";
44
- VmProviderType2["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
9
+ ((VmProviderType) => {
10
+ VmProviderType["BOXLITE"] = "BOXLITE";
11
+ VmProviderType["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
45
12
  })(VmProviderType ||= {});
46
13
 
47
14
  // packages/system-api/src/api/model/workload/VmNode.ts
@@ -49,14 +16,15 @@ class VmNode {
49
16
  id;
50
17
  name;
51
18
  hostname;
52
- status = new VmNodeStatus;
19
+ state = new ReconcileState;
20
+ healthMessage = null;
53
21
  providerType = "BOXLITE" /* BOXLITE */;
54
22
  totalCpus = 0;
55
23
  totalMemoryMb = 0;
56
24
  totalDiskMb = 0;
57
- allocatedCpus = 0;
58
- allocatedMemoryMb = 0;
59
- allocatedDiskMb = 0;
25
+ freeCpus = 0;
26
+ freeMemoryMb = 0;
27
+ freeDiskMb = 0;
60
28
  lastSeen = null;
61
29
  workloadDataDir = null;
62
30
  constructor(id, name, hostname) {
@@ -65,49 +33,13 @@ class VmNode {
65
33
  this.hostname = hostname;
66
34
  }
67
35
  }
68
- // packages/system-api/src/api/model/workload/WorkloadStatus.ts
69
- var WorkloadStatus;
70
- ((WorkloadStatus2) => {
71
- WorkloadStatus2["PENDING"] = "PENDING";
72
- WorkloadStatus2["STARTING"] = "STARTING";
73
- WorkloadStatus2["RUNNING"] = "RUNNING";
74
- WorkloadStatus2["STOPPING"] = "STOPPING";
75
- WorkloadStatus2["STOPPED"] = "STOPPED";
76
- WorkloadStatus2["FAILED"] = "FAILED";
77
- })(WorkloadStatus ||= {});
78
-
79
- // packages/system-api/src/api/model/workload/Workload.ts
80
- class Workload {
81
- id = null;
82
- name;
83
- description;
84
- nodeId = null;
85
- organizationId = null;
86
- applicationId = null;
87
- image;
88
- vcpus = 1;
89
- memoryMb = 512;
90
- diskSizeMb = 1024;
91
- network = new NetworkPolicy;
92
- logPolicy = new LogPolicy;
93
- detached = true;
94
- autoRemove = false;
95
- status = "PENDING" /* PENDING */;
96
- exitCode = null;
97
- environment = {};
98
- secrets = {};
99
- portMappings = [];
100
- volumeMounts = [];
101
- entrypoint = [];
102
- cmd = [];
103
- created = null;
104
- updated = null;
105
- constructor(name, image) {
106
- this.name = name;
107
- this.image = image;
108
- }
109
- }
110
- // packages/system-api/src/api/model/VmNodeRegistration.ts
36
+ // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
37
+ var VmNodeStatusType;
38
+ ((VmNodeStatusType) => {
39
+ VmNodeStatusType["ONLINE"] = "ONLINE";
40
+ VmNodeStatusType["DRAINING"] = "DRAINING";
41
+ })(VmNodeStatusType ||= {});
42
+ // packages/system-api/src/api/model/workload/VmNodeRegistration.ts
111
43
  class VmNodeRegistration {
112
44
  id;
113
45
  name;
@@ -123,71 +55,106 @@ class VmNodeRegistration {
123
55
  this.hostname = hostname;
124
56
  }
125
57
  }
126
- // packages/system-api/src/api/services/IVmNodeService.ts
58
+ // packages/system-api/src/api/model/llm/LlmConfiguration.ts
59
+ class LlmConfiguration {
60
+ id = null;
61
+ name;
62
+ provider;
63
+ model;
64
+ endpoint = null;
65
+ maxTokens = null;
66
+ temperature = null;
67
+ apiKeyHeld = false;
68
+ created = null;
69
+ updated = null;
70
+ constructor(name, provider, model) {
71
+ this.name = name;
72
+ this.provider = provider;
73
+ this.model = model;
74
+ }
75
+ }
76
+ // packages/system-api/src/api/model/llm/LlmProviderType.ts
77
+ var LlmProviderType;
78
+ ((LlmProviderType) => {
79
+ LlmProviderType["ANTHROPIC"] = "ANTHROPIC";
80
+ LlmProviderType["OPENAI"] = "OPENAI";
81
+ })(LlmProviderType ||= {});
82
+ // packages/system-api/src/api/services/workload/IVmNodeService.ts
127
83
  import { SYSTEM_API_ZONE } from "@kinotic-ai/management-api";
128
- import { CrudServiceProxy } from "@kinotic-ai/core";
84
+ import { CrudServiceProxy, FunctionalIterablePage } from "@kinotic-ai/core";
129
85
 
130
86
  class VmNodeServiceProxy extends CrudServiceProxy {
131
87
  constructor(kinotic) {
132
- super(kinotic.serviceProxy(`${SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeService`));
88
+ super(kinotic.serviceProxy(`${SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeService`));
89
+ }
90
+ async findHistory(nodeId, pageable) {
91
+ const page = await this.findHistorySinglePage(nodeId, pageable);
92
+ return new FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(nodeId, pageable));
133
93
  }
134
- findAvailableNode(requiredCpus, requiredMemoryMb, requiredDiskMb) {
135
- return this.serviceProxy.invoke("findAvailableNode", [requiredCpus, requiredMemoryMb, requiredDiskMb]);
94
+ findHistorySinglePage(nodeId, pageable) {
95
+ return this.serviceProxy.invoke("findHistory", [nodeId, pageable]);
136
96
  }
137
97
  syncIndex() {
138
98
  return this.serviceProxy.invoke("syncIndex", []);
139
99
  }
140
100
  }
141
- // packages/system-api/src/api/services/IWorkloadService.ts
101
+ // packages/system-api/src/api/services/workload/IWorkloadService.ts
142
102
  import { SYSTEM_API_ZONE as SYSTEM_API_ZONE2 } from "@kinotic-ai/management-api";
143
- import { CrudServiceProxy as CrudServiceProxy2, FunctionalIterablePage } from "@kinotic-ai/core";
103
+ import { CrudServiceProxy as CrudServiceProxy2, FunctionalIterablePage as FunctionalIterablePage2 } from "@kinotic-ai/core";
144
104
 
145
105
  class WorkloadServiceProxy extends CrudServiceProxy2 {
146
106
  constructor(kinotic) {
147
- super(kinotic.serviceProxy(`${SYSTEM_API_ZONE2}~org.kinotic.system.api.services.WorkloadService`));
107
+ super(kinotic.serviceProxy(`${SYSTEM_API_ZONE2}~org.kinotic.system.api.services.workload.WorkloadService`));
148
108
  }
149
109
  async findAllForNode(nodeId, pageable) {
150
110
  const page = await this.findAllForNodeSinglePage(nodeId, pageable);
151
- return new FunctionalIterablePage(pageable, page, (pageable2) => this.findAllForNodeSinglePage(nodeId, pageable2));
111
+ return new FunctionalIterablePage2(pageable, page, (pageable) => this.findAllForNodeSinglePage(nodeId, pageable));
152
112
  }
153
113
  findAllForNodeSinglePage(nodeId, pageable) {
154
114
  return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
155
115
  }
156
- countForNode(nodeId) {
157
- return this.serviceProxy.invoke("countForNode", [nodeId]);
116
+ async findHistory(workloadId, pageable) {
117
+ const page = await this.findHistorySinglePage(workloadId, pageable);
118
+ return new FunctionalIterablePage2(pageable, page, (pageable) => this.findHistorySinglePage(workloadId, pageable));
119
+ }
120
+ findHistorySinglePage(workloadId, pageable) {
121
+ return this.serviceProxy.invoke("findHistory", [workloadId, pageable]);
158
122
  }
159
123
  syncIndex() {
160
124
  return this.serviceProxy.invoke("syncIndex", []);
161
125
  }
162
126
  }
163
- // packages/system-api/src/api/services/IWorkloadOrchestrationService.ts
127
+ // packages/system-api/src/api/services/workload/IWorkloadOrchestrationService.ts
164
128
  import { SYSTEM_API_ZONE as SYSTEM_API_ZONE3 } from "@kinotic-ai/management-api";
165
129
 
166
130
  class WorkloadOrchestrationService {
167
131
  serviceProxy;
168
132
  constructor(kinotic) {
169
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE3}~org.kinotic.system.api.services.WorkloadOrchestrationService`);
133
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE3}~org.kinotic.system.api.services.workload.WorkloadOrchestrationService`);
170
134
  }
171
135
  deployWorkload(workload) {
172
136
  return this.serviceProxy.invoke("deployWorkload", [workload]);
173
137
  }
174
- restartWorkload(workloadId) {
175
- return this.serviceProxy.invoke("restartWorkload", [workloadId]);
176
- }
177
138
  stopWorkload(workloadId) {
178
139
  return this.serviceProxy.invoke("stopWorkload", [workloadId]);
179
140
  }
180
141
  destroyWorkload(workloadId) {
181
142
  return this.serviceProxy.invoke("destroyWorkload", [workloadId]);
182
143
  }
144
+ deleteWorkload(workloadId) {
145
+ return this.serviceProxy.invoke("deleteWorkload", [workloadId]);
146
+ }
147
+ deleteWorkloads(workloadIds) {
148
+ return this.serviceProxy.invoke("deleteWorkloads", [workloadIds]);
149
+ }
183
150
  }
184
- // packages/system-api/src/api/services/VmNodeOrchestrationServiceProxy.ts
151
+ // packages/system-api/src/api/services/workload/VmNodeOrchestrationServiceProxy.ts
185
152
  import { SYSTEM_API_ZONE as SYSTEM_API_ZONE4 } from "@kinotic-ai/management-api";
186
153
 
187
154
  class VmNodeOrchestrationServiceProxy {
188
155
  serviceProxy;
189
156
  constructor(kinotic) {
190
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE4}~org.kinotic.system.api.services.VmNodeOrchestrationService`);
157
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE4}~org.kinotic.system.api.services.workload.VmNodeOrchestrationService`);
191
158
  }
192
159
  registerNode(registration) {
193
160
  return this.serviceProxy.invoke("registerNode", [registration]);
@@ -202,19 +169,16 @@ class VmNodeOrchestrationServiceProxy {
202
169
  return this.serviceProxy.invoke("deregisterNode", [nodeId]);
203
170
  }
204
171
  }
205
- // packages/system-api/src/api/services/LogManager.ts
206
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE5 } from "@kinotic-ai/management-api";
207
-
208
172
  // packages/system-api/src/api/services/ILogManager.ts
209
173
  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";
174
+ ((LogLevel) => {
175
+ LogLevel["TRACE"] = "TRACE";
176
+ LogLevel["DEBUG"] = "DEBUG";
177
+ LogLevel["INFO"] = "INFO";
178
+ LogLevel["WARN"] = "WARN";
179
+ LogLevel["ERROR"] = "ERROR";
180
+ LogLevel["FATAL"] = "FATAL";
181
+ LogLevel["OFF"] = "OFF";
218
182
  })(LogLevel ||= {});
219
183
 
220
184
  class LoggerLevelsDescriptor {
@@ -235,11 +199,16 @@ class LoggersDescriptor {
235
199
  groups = new Map;
236
200
  }
237
201
 
202
+ class TraceLogProperties {
203
+ includes = [];
204
+ excludes = [];
205
+ }
206
+
238
207
  // packages/system-api/src/api/services/LogManager.ts
239
208
  class LogManager {
240
209
  serviceProxy;
241
210
  constructor(kinotic) {
242
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE5}~org.kinotic.system.api.services.LogManager`);
211
+ this.serviceProxy = kinotic.serviceProxy("org.kinotic.core.api.log.LogManager");
243
212
  }
244
213
  loggers(nodeId) {
245
214
  return this.serviceProxy.invoke("loggers", null, nodeId);
@@ -260,15 +229,24 @@ class LogManager {
260
229
  configureLogLevel(nodeId, name, level) {
261
230
  return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
262
231
  }
232
+ async traceLog(nodeId) {
233
+ const data = await this.serviceProxy.invoke("traceLog", null, nodeId);
234
+ const ret = new TraceLogProperties;
235
+ Object.assign(ret, data);
236
+ return ret;
237
+ }
238
+ configureTraceLog(nodeId, traceLog) {
239
+ return this.serviceProxy.invoke("configureTraceLog", [traceLog], nodeId);
240
+ }
263
241
  }
264
242
 
265
243
  // packages/system-api/src/api/services/IKinoticClusterInfoService.ts
266
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE6 } from "@kinotic-ai/management-api";
244
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE5 } from "@kinotic-ai/management-api";
267
245
 
268
246
  class KinoticClusterInfoService {
269
247
  serviceProxy;
270
248
  constructor(kinotic) {
271
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE6}~org.kinotic.system.api.services.KinoticClusterInfoService`);
249
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE5}~org.kinotic.system.api.services.KinoticClusterInfoService`);
272
250
  }
273
251
  getClusterInfo() {
274
252
  return this.serviceProxy.invoke("getClusterInfo");
@@ -277,13 +255,13 @@ class KinoticClusterInfoService {
277
255
 
278
256
  // packages/system-api/src/api/services/ISystemOrganizationService.ts
279
257
  import {
280
- SYSTEM_API_ZONE as SYSTEM_API_ZONE7
258
+ SYSTEM_API_ZONE as SYSTEM_API_ZONE6
281
259
  } from "@kinotic-ai/management-api";
282
260
 
283
261
  class SystemOrganizationService {
284
262
  serviceProxy;
285
263
  constructor(kinotic) {
286
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE7}~org.kinotic.system.api.services.SystemOrganizationService`);
264
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE6}~org.kinotic.system.api.services.SystemOrganizationService`);
287
265
  }
288
266
  findOrganizations(pageable) {
289
267
  return this.serviceProxy.invoke("findOrganizations", [pageable]);
@@ -303,17 +281,115 @@ class SystemOrganizationService {
303
281
  findProjects(organizationId, pageable) {
304
282
  return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
305
283
  }
306
- findMembers(organizationId, applicationId, pageable) {
307
- return this.serviceProxy.invoke("findMembers", [organizationId, applicationId, pageable]);
284
+ findMembers(organizationId, pageable) {
285
+ return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
286
+ }
287
+ searchMembers(searchText, organizationId, pageable) {
288
+ return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, pageable]);
289
+ }
290
+ findApplicationUsers(organizationId, applicationId, pageable) {
291
+ return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
308
292
  }
309
- searchMembers(searchText, organizationId, applicationId, pageable) {
310
- return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, applicationId, pageable]);
293
+ searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
294
+ return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
311
295
  }
312
296
  findPendingInvites(organizationId, applicationId, pageable) {
313
297
  return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
314
298
  }
315
299
  }
316
300
 
301
+ // packages/system-api/src/api/services/ISystemMemberService.ts
302
+ import {
303
+ SYSTEM_API_ZONE as SYSTEM_API_ZONE7
304
+ } from "@kinotic-ai/management-api";
305
+
306
+ class SystemMemberService {
307
+ serviceProxy;
308
+ constructor(kinotic) {
309
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE7}~org.kinotic.system.api.services.SystemMemberService`);
310
+ }
311
+ findUsers(pageable) {
312
+ return this.serviceProxy.invoke("findUsers", [pageable]);
313
+ }
314
+ searchUsers(searchText, pageable) {
315
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
316
+ }
317
+ findMachines(pageable) {
318
+ return this.serviceProxy.invoke("findMachines", [pageable]);
319
+ }
320
+ createMachine(displayName) {
321
+ return this.serviceProxy.invoke("createMachine", [displayName]);
322
+ }
323
+ rotateSecret(machineId) {
324
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
325
+ }
326
+ setMachineEnabled(machineId, enabled) {
327
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
328
+ }
329
+ removeMachine(machineId) {
330
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
331
+ }
332
+ }
333
+
334
+ // packages/system-api/src/api/services/IWatchEventService.ts
335
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
336
+ import { FunctionalIterablePage as FunctionalIterablePage3 } from "@kinotic-ai/core";
337
+
338
+ class WatchEventService {
339
+ serviceProxy;
340
+ constructor(kinotic) {
341
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.WatchEventService`);
342
+ }
343
+ async findAll(pageable) {
344
+ const page = await this.findAllSinglePage(pageable);
345
+ return new FunctionalIterablePage3(pageable, page, (pageable) => this.findAllSinglePage(pageable));
346
+ }
347
+ findAllSinglePage(pageable) {
348
+ return this.serviceProxy.invoke("findAll", [pageable]);
349
+ }
350
+ }
351
+
352
+ // packages/system-api/src/api/services/ILlmConfigurationService.ts
353
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } from "@kinotic-ai/management-api";
354
+
355
+ class LlmConfigurationService {
356
+ serviceProxy;
357
+ constructor(kinotic) {
358
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE9}~org.kinotic.system.api.services.LlmConfigurationService`);
359
+ }
360
+ findAll(pageable) {
361
+ return this.serviceProxy.invoke("findAll", [pageable]);
362
+ }
363
+ findById(id) {
364
+ return this.serviceProxy.invoke("findById", [id]);
365
+ }
366
+ findByName(name) {
367
+ return this.serviceProxy.invoke("findByName", [name]);
368
+ }
369
+ save(configuration, apiKey) {
370
+ return this.serviceProxy.invoke("save", [configuration, apiKey]);
371
+ }
372
+ deleteById(id) {
373
+ return this.serviceProxy.invoke("deleteById", [id]);
374
+ }
375
+ }
376
+
377
+ // packages/system-api/src/api/services/ISystemJobService.ts
378
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
379
+
380
+ class SystemJobService {
381
+ serviceProxy;
382
+ constructor(kinotic) {
383
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.SystemJobService`);
384
+ }
385
+ findSystemJobs() {
386
+ return this.serviceProxy.invoke("findSystemJobs", []);
387
+ }
388
+ startSystemJob(name) {
389
+ return this.serviceProxy.invoke("startSystemJob", [name]);
390
+ }
391
+ }
392
+
317
393
  // packages/system-api/src/api/SystemApiPlugin.ts
318
394
  var SystemApiPlugin = {
319
395
  install(kinotic) {
@@ -323,52 +399,59 @@ var SystemApiPlugin = {
323
399
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
324
400
  logManager: new LogManager(kinotic),
325
401
  clusterInfo: new KinoticClusterInfoService(kinotic),
326
- systemOrganizations: new SystemOrganizationService(kinotic)
402
+ systemOrganizations: new SystemOrganizationService(kinotic),
403
+ systemMembers: new SystemMemberService(kinotic),
404
+ watchEvents: new WatchEventService(kinotic),
405
+ llmConfigurations: new LlmConfigurationService(kinotic),
406
+ systemJobs: new SystemJobService(kinotic)
327
407
  };
328
408
  }
329
409
  };
330
- // packages/system-api/src/api/model/KinoticClusterInfo.ts
410
+ // packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
331
411
  class KinoticClusterInfo {
332
- localNodeId = "";
333
412
  serverNodeCount = 0;
334
413
  topologyVersion = 0;
335
414
  clusterState = "";
336
415
  nodes = [];
337
416
  active = false;
338
417
  }
339
- // packages/system-api/src/api/model/KinoticNodeInfo.ts
418
+ // packages/system-api/src/api/model/cluster/KinoticNodeInfo.ts
340
419
  class KinoticNodeInfo {
341
420
  nodeId = "";
342
421
  order = 0;
343
- local = false;
344
- version = "";
422
+ serverName = "";
423
+ addresses = [];
424
+ hostNames = [];
425
+ version = null;
426
+ telemetryServiceName = null;
427
+ telemetryServiceInstanceId = null;
345
428
  }
346
429
  export {
347
- WorkloadStatus,
348
- WorkloadServiceProxy,
349
- WorkloadOrchestrationService,
350
- Workload,
351
- VmProviderType,
352
- VmNodeStatusType,
353
- VmNodeStatus,
354
- VmNodeServiceProxy,
355
- VmNodeRegistration,
356
- VmNodeOrchestrationServiceProxy,
357
- VmNode,
358
- SystemOrganizationService,
359
- SystemApiPlugin,
360
- SingleLoggerLevelsDescriptor,
361
- SYSTEM_API_ZONE8 as SYSTEM_API_ZONE,
362
- PortProtocol,
363
- NetworkPolicy,
364
- NetworkMode,
365
- LoggersDescriptor,
366
- LoggerLevelsDescriptor,
367
- LogPolicy,
368
- LogManager,
369
- LogLevel,
370
- KinoticNodeInfo,
371
- KinoticClusterInfoService,
430
+ GroupLoggerLevelsDescriptor,
372
431
  KinoticClusterInfo,
373
- GroupLoggerLevelsDescriptor
432
+ KinoticClusterInfoService,
433
+ KinoticNodeInfo,
434
+ LlmConfiguration,
435
+ LlmConfigurationService,
436
+ LlmProviderType,
437
+ LogLevel,
438
+ LogManager,
439
+ LoggerLevelsDescriptor,
440
+ LoggersDescriptor,
441
+ SYSTEM_API_ZONE11 as SYSTEM_API_ZONE,
442
+ SingleLoggerLevelsDescriptor,
443
+ SystemApiPlugin,
444
+ SystemJobService,
445
+ SystemMemberService,
446
+ SystemOrganizationService,
447
+ TraceLogProperties,
448
+ VmNode,
449
+ VmNodeOrchestrationServiceProxy,
450
+ VmNodeRegistration,
451
+ VmNodeServiceProxy,
452
+ VmNodeStatusType,
453
+ VmProviderType,
454
+ WatchEventService,
455
+ WorkloadOrchestrationService,
456
+ WorkloadServiceProxy
374
457
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.3",
3
+ "version": "5.0.0-beta.30",
4
4
  "type": "module",
5
5
  "description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services platform machines and operators use.",
6
6
  "files": [
@@ -37,14 +37,13 @@
37
37
  "test": "bun test --pass-with-no-tests",
38
38
  "coverage": "bun test --coverage --pass-with-no-tests"
39
39
  },
40
- "dependencies": {
41
- "@kinotic-ai/management-api": "5.0.0-beta.21"
42
- },
43
40
  "peerDependencies": {
44
- "@kinotic-ai/core": ">=5.0.0-beta.7"
41
+ "@kinotic-ai/core": "^5.0.0-beta.27",
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.64"
45
43
  },
46
44
  "devDependencies": {
47
- "@kinotic-ai/core": "5.0.0-beta.7",
45
+ "@kinotic-ai/core": "5.0.0-beta.27",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.64",
48
47
  "@types/bun": "^1.3.9",
49
48
  "typescript": "^5.9.3"
50
49
  }