@kinotic-ai/system-api 5.0.0-beta.4 → 5.0.0-beta.40

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,78 +40,49 @@ var __export = (target, all) => {
40
40
  // packages/system-api/src/index.ts
41
41
  var exports_src = {};
42
42
  __export(exports_src, {
43
- WorkloadStatus: () => WorkloadStatus,
44
- WorkloadServiceProxy: () => WorkloadServiceProxy,
45
- WorkloadOrchestrationService: () => WorkloadOrchestrationService,
46
- Workload: () => Workload,
47
- VmProviderType: () => VmProviderType,
48
- VmNodeStatusType: () => VmNodeStatusType,
49
- VmNodeStatus: () => VmNodeStatus,
50
- VmNodeServiceProxy: () => VmNodeServiceProxy,
51
- VmNodeRegistration: () => VmNodeRegistration,
52
- VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
53
- VmNode: () => VmNode,
54
- SystemOrganizationService: () => SystemOrganizationService,
55
- SystemApiPlugin: () => SystemApiPlugin,
56
- SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
57
- SYSTEM_API_ZONE: () => import_management_api8.SYSTEM_API_ZONE,
58
- PortProtocol: () => PortProtocol,
59
- NetworkPolicy: () => NetworkPolicy,
60
- NetworkMode: () => NetworkMode,
61
- LoggersDescriptor: () => LoggersDescriptor,
62
- LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
63
- LogPolicy: () => LogPolicy,
64
- LogManager: () => LogManager,
65
- LogLevel: () => LogLevel,
66
- KinoticNodeInfo: () => KinoticNodeInfo,
67
- KinoticClusterInfoService: () => KinoticClusterInfoService,
43
+ EnterpriseFeature: () => EnterpriseFeature,
44
+ GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
68
45
  KinoticClusterInfo: () => KinoticClusterInfo,
69
- GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
46
+ KinoticClusterInfoService: () => KinoticClusterInfoService,
47
+ KinoticNodeInfo: () => KinoticNodeInfo,
48
+ License: () => License,
49
+ LicenseService: () => LicenseService,
50
+ LicenseStatus: () => LicenseStatus,
51
+ LlmConfiguration: () => LlmConfiguration,
52
+ LlmConfigurationService: () => LlmConfigurationService,
53
+ LlmProviderType: () => LlmProviderType,
54
+ LogLevel: () => LogLevel,
55
+ LogManager: () => LogManager,
56
+ LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
57
+ LoggersDescriptor: () => LoggersDescriptor,
58
+ SYSTEM_API_ZONE: () => import_management_api13.SYSTEM_API_ZONE,
59
+ SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
60
+ SystemApiPlugin: () => SystemApiPlugin,
61
+ SystemJobService: () => SystemJobService,
62
+ SystemMemberService: () => SystemMemberService,
63
+ SystemOrganizationService: () => SystemOrganizationService,
64
+ TraceLogProperties: () => TraceLogProperties,
65
+ VmNode: () => VmNode,
66
+ VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
67
+ VmNodeRegistration: () => VmNodeRegistration,
68
+ VmNodeServiceProxy: () => VmNodeServiceProxy,
69
+ VmNodeStatusType: () => VmNodeStatusType,
70
+ VmProviderType: () => VmProviderType,
71
+ WatchEventService: () => WatchEventService,
72
+ WorkloadOrchestrationService: () => WorkloadOrchestrationService,
73
+ WorkloadServiceProxy: () => WorkloadServiceProxy
70
74
  });
71
75
  module.exports = __toCommonJS(exports_src);
72
- var import_management_api8 = require("@kinotic-ai/management-api");
76
+ var import_management_api13 = require("@kinotic-ai/management-api");
73
77
 
74
- // packages/system-api/src/api/model/workload/LogPolicy.ts
75
- class LogPolicy {
76
- maxSizeMb = 10;
77
- maxFiles = 3;
78
- }
79
- // packages/system-api/src/api/model/workload/NetworkMode.ts
80
- var NetworkMode;
81
- ((NetworkMode2) => {
82
- NetworkMode2["ENABLED"] = "ENABLED";
83
- NetworkMode2["DISABLED"] = "DISABLED";
84
- })(NetworkMode ||= {});
85
- // packages/system-api/src/api/model/workload/NetworkPolicy.ts
86
- class NetworkPolicy {
87
- mode = "ENABLED" /* ENABLED */;
88
- allowedHosts = [];
89
- }
90
- // packages/system-api/src/api/model/workload/PortProtocol.ts
91
- var PortProtocol;
92
- ((PortProtocol2) => {
93
- PortProtocol2["TCP"] = "TCP";
94
- PortProtocol2["UDP"] = "UDP";
95
- })(PortProtocol ||= {});
96
- // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
97
- var VmNodeStatusType;
98
- ((VmNodeStatusType2) => {
99
- VmNodeStatusType2["ONLINE"] = "ONLINE";
100
- VmNodeStatusType2["OFFLINE"] = "OFFLINE";
101
- VmNodeStatusType2["DRAINING"] = "DRAINING";
102
- })(VmNodeStatusType ||= {});
103
-
104
- // packages/system-api/src/api/model/workload/VmNodeStatus.ts
105
- class VmNodeStatus {
106
- type = "ONLINE" /* ONLINE */;
107
- healthMessage = null;
108
- }
78
+ // packages/system-api/src/api/model/workload/VmNode.ts
79
+ var import_management_api = require("@kinotic-ai/management-api");
109
80
 
110
81
  // packages/system-api/src/api/model/workload/VmProviderType.ts
111
82
  var VmProviderType;
112
- ((VmProviderType2) => {
113
- VmProviderType2["BOXLITE"] = "BOXLITE";
114
- VmProviderType2["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
83
+ ((VmProviderType) => {
84
+ VmProviderType["BOXLITE"] = "BOXLITE";
85
+ VmProviderType["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
115
86
  })(VmProviderType ||= {});
116
87
 
117
88
  // packages/system-api/src/api/model/workload/VmNode.ts
@@ -119,14 +90,15 @@ class VmNode {
119
90
  id;
120
91
  name;
121
92
  hostname;
122
- status = new VmNodeStatus;
93
+ state = new import_management_api.ReconcileState;
94
+ healthMessage = null;
123
95
  providerType = "BOXLITE" /* BOXLITE */;
124
96
  totalCpus = 0;
125
97
  totalMemoryMb = 0;
126
98
  totalDiskMb = 0;
127
- allocatedCpus = 0;
128
- allocatedMemoryMb = 0;
129
- allocatedDiskMb = 0;
99
+ freeCpus = 0;
100
+ freeMemoryMb = 0;
101
+ freeDiskMb = 0;
130
102
  lastSeen = null;
131
103
  workloadDataDir = null;
132
104
  constructor(id, name, hostname) {
@@ -135,49 +107,13 @@ class VmNode {
135
107
  this.hostname = hostname;
136
108
  }
137
109
  }
138
- // packages/system-api/src/api/model/workload/WorkloadStatus.ts
139
- var WorkloadStatus;
140
- ((WorkloadStatus2) => {
141
- WorkloadStatus2["PENDING"] = "PENDING";
142
- WorkloadStatus2["STARTING"] = "STARTING";
143
- WorkloadStatus2["RUNNING"] = "RUNNING";
144
- WorkloadStatus2["STOPPING"] = "STOPPING";
145
- WorkloadStatus2["STOPPED"] = "STOPPED";
146
- WorkloadStatus2["FAILED"] = "FAILED";
147
- })(WorkloadStatus ||= {});
148
-
149
- // packages/system-api/src/api/model/workload/Workload.ts
150
- class Workload {
151
- id = null;
152
- name;
153
- description;
154
- nodeId = null;
155
- organizationId = null;
156
- applicationId = null;
157
- image;
158
- vcpus = 1;
159
- memoryMb = 512;
160
- diskSizeMb = 1024;
161
- network = new NetworkPolicy;
162
- logPolicy = new LogPolicy;
163
- detached = true;
164
- autoRemove = false;
165
- status = "PENDING" /* PENDING */;
166
- exitCode = null;
167
- environment = {};
168
- secrets = {};
169
- portMappings = [];
170
- volumeMounts = [];
171
- entrypoint = [];
172
- cmd = [];
173
- created = null;
174
- updated = null;
175
- constructor(name, image) {
176
- this.name = name;
177
- this.image = image;
178
- }
179
- }
180
- // packages/system-api/src/api/model/VmNodeRegistration.ts
110
+ // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
111
+ var VmNodeStatusType;
112
+ ((VmNodeStatusType) => {
113
+ VmNodeStatusType["ONLINE"] = "ONLINE";
114
+ VmNodeStatusType["DRAINING"] = "DRAINING";
115
+ })(VmNodeStatusType ||= {});
116
+ // packages/system-api/src/api/model/workload/VmNodeRegistration.ts
181
117
  class VmNodeRegistration {
182
118
  id;
183
119
  name;
@@ -193,71 +129,106 @@ class VmNodeRegistration {
193
129
  this.hostname = hostname;
194
130
  }
195
131
  }
196
- // packages/system-api/src/api/services/IVmNodeService.ts
197
- var import_management_api = require("@kinotic-ai/management-api");
132
+ // packages/system-api/src/api/model/llm/LlmConfiguration.ts
133
+ class LlmConfiguration {
134
+ id = null;
135
+ name;
136
+ provider;
137
+ model;
138
+ endpoint = null;
139
+ maxTokens = null;
140
+ temperature = null;
141
+ apiKeyHeld = false;
142
+ created = null;
143
+ updated = null;
144
+ constructor(name, provider, model) {
145
+ this.name = name;
146
+ this.provider = provider;
147
+ this.model = model;
148
+ }
149
+ }
150
+ // packages/system-api/src/api/model/llm/LlmProviderType.ts
151
+ var LlmProviderType;
152
+ ((LlmProviderType) => {
153
+ LlmProviderType["ANTHROPIC"] = "ANTHROPIC";
154
+ LlmProviderType["OPENAI"] = "OPENAI";
155
+ })(LlmProviderType ||= {});
156
+ // packages/system-api/src/api/services/workload/IVmNodeService.ts
157
+ var import_management_api2 = require("@kinotic-ai/management-api");
198
158
  var import_core = require("@kinotic-ai/core");
199
159
 
200
160
  class VmNodeServiceProxy extends import_core.CrudServiceProxy {
201
161
  constructor(kinotic) {
202
- super(kinotic.serviceProxy(`${import_management_api.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeService`));
162
+ super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeService`));
163
+ }
164
+ async findHistory(nodeId, pageable) {
165
+ const page = await this.findHistorySinglePage(nodeId, pageable);
166
+ return new import_core.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(nodeId, pageable));
203
167
  }
204
- findAvailableNode(requiredCpus, requiredMemoryMb, requiredDiskMb) {
205
- return this.serviceProxy.invoke("findAvailableNode", [requiredCpus, requiredMemoryMb, requiredDiskMb]);
168
+ findHistorySinglePage(nodeId, pageable) {
169
+ return this.serviceProxy.invoke("findHistory", [nodeId, pageable]);
206
170
  }
207
171
  syncIndex() {
208
172
  return this.serviceProxy.invoke("syncIndex", []);
209
173
  }
210
174
  }
211
- // packages/system-api/src/api/services/IWorkloadService.ts
212
- var import_management_api2 = require("@kinotic-ai/management-api");
175
+ // packages/system-api/src/api/services/workload/IWorkloadService.ts
176
+ var import_management_api3 = require("@kinotic-ai/management-api");
213
177
  var import_core2 = require("@kinotic-ai/core");
214
178
 
215
179
  class WorkloadServiceProxy extends import_core2.CrudServiceProxy {
216
180
  constructor(kinotic) {
217
- super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WorkloadService`));
181
+ super(kinotic.serviceProxy(`${import_management_api3.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.WorkloadService`));
218
182
  }
219
183
  async findAllForNode(nodeId, pageable) {
220
184
  const page = await this.findAllForNodeSinglePage(nodeId, pageable);
221
- return new import_core2.FunctionalIterablePage(pageable, page, (pageable2) => this.findAllForNodeSinglePage(nodeId, pageable2));
185
+ return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findAllForNodeSinglePage(nodeId, pageable));
222
186
  }
223
187
  findAllForNodeSinglePage(nodeId, pageable) {
224
188
  return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
225
189
  }
226
- countForNode(nodeId) {
227
- return this.serviceProxy.invoke("countForNode", [nodeId]);
190
+ async findHistory(workloadId, pageable) {
191
+ const page = await this.findHistorySinglePage(workloadId, pageable);
192
+ return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(workloadId, pageable));
193
+ }
194
+ findHistorySinglePage(workloadId, pageable) {
195
+ return this.serviceProxy.invoke("findHistory", [workloadId, pageable]);
228
196
  }
229
197
  syncIndex() {
230
198
  return this.serviceProxy.invoke("syncIndex", []);
231
199
  }
232
200
  }
233
- // packages/system-api/src/api/services/IWorkloadOrchestrationService.ts
234
- var import_management_api3 = require("@kinotic-ai/management-api");
201
+ // packages/system-api/src/api/services/workload/IWorkloadOrchestrationService.ts
202
+ var import_management_api4 = require("@kinotic-ai/management-api");
235
203
 
236
204
  class WorkloadOrchestrationService {
237
205
  serviceProxy;
238
206
  constructor(kinotic) {
239
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api3.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WorkloadOrchestrationService`);
207
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api4.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.WorkloadOrchestrationService`);
240
208
  }
241
209
  deployWorkload(workload) {
242
210
  return this.serviceProxy.invoke("deployWorkload", [workload]);
243
211
  }
244
- restartWorkload(workloadId) {
245
- return this.serviceProxy.invoke("restartWorkload", [workloadId]);
246
- }
247
212
  stopWorkload(workloadId) {
248
213
  return this.serviceProxy.invoke("stopWorkload", [workloadId]);
249
214
  }
250
215
  destroyWorkload(workloadId) {
251
216
  return this.serviceProxy.invoke("destroyWorkload", [workloadId]);
252
217
  }
218
+ deleteWorkload(workloadId) {
219
+ return this.serviceProxy.invoke("deleteWorkload", [workloadId]);
220
+ }
221
+ deleteWorkloads(workloadIds) {
222
+ return this.serviceProxy.invoke("deleteWorkloads", [workloadIds]);
223
+ }
253
224
  }
254
- // packages/system-api/src/api/services/VmNodeOrchestrationServiceProxy.ts
255
- var import_management_api4 = require("@kinotic-ai/management-api");
225
+ // packages/system-api/src/api/services/workload/VmNodeOrchestrationServiceProxy.ts
226
+ var import_management_api5 = require("@kinotic-ai/management-api");
256
227
 
257
228
  class VmNodeOrchestrationServiceProxy {
258
229
  serviceProxy;
259
230
  constructor(kinotic) {
260
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api4.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeOrchestrationService`);
231
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api5.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeOrchestrationService`);
261
232
  }
262
233
  registerNode(registration) {
263
234
  return this.serviceProxy.invoke("registerNode", [registration]);
@@ -272,19 +243,16 @@ class VmNodeOrchestrationServiceProxy {
272
243
  return this.serviceProxy.invoke("deregisterNode", [nodeId]);
273
244
  }
274
245
  }
275
- // packages/system-api/src/api/services/LogManager.ts
276
- var import_management_api5 = require("@kinotic-ai/management-api");
277
-
278
246
  // packages/system-api/src/api/services/ILogManager.ts
279
247
  var LogLevel;
280
- ((LogLevel2) => {
281
- LogLevel2["TRACE"] = "TRACE";
282
- LogLevel2["DEBUG"] = "DEBUG";
283
- LogLevel2["INFO"] = "INFO";
284
- LogLevel2["WARN"] = "WARN";
285
- LogLevel2["ERROR"] = "ERROR";
286
- LogLevel2["FATAL"] = "FATAL";
287
- LogLevel2["OFF"] = "OFF";
248
+ ((LogLevel) => {
249
+ LogLevel["TRACE"] = "TRACE";
250
+ LogLevel["DEBUG"] = "DEBUG";
251
+ LogLevel["INFO"] = "INFO";
252
+ LogLevel["WARN"] = "WARN";
253
+ LogLevel["ERROR"] = "ERROR";
254
+ LogLevel["FATAL"] = "FATAL";
255
+ LogLevel["OFF"] = "OFF";
288
256
  })(LogLevel ||= {});
289
257
 
290
258
  class LoggerLevelsDescriptor {
@@ -305,11 +273,16 @@ class LoggersDescriptor {
305
273
  groups = new Map;
306
274
  }
307
275
 
276
+ class TraceLogProperties {
277
+ includes = [];
278
+ excludes = [];
279
+ }
280
+
308
281
  // packages/system-api/src/api/services/LogManager.ts
309
282
  class LogManager {
310
283
  serviceProxy;
311
284
  constructor(kinotic) {
312
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api5.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LogManager`);
285
+ this.serviceProxy = kinotic.serviceProxy("org.kinotic.core.api.log.LogManager");
313
286
  }
314
287
  loggers(nodeId) {
315
288
  return this.serviceProxy.invoke("loggers", null, nodeId);
@@ -330,6 +303,15 @@ class LogManager {
330
303
  configureLogLevel(nodeId, name, level) {
331
304
  return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
332
305
  }
306
+ async traceLog(nodeId) {
307
+ const data = await this.serviceProxy.invoke("traceLog", null, nodeId);
308
+ const ret = new TraceLogProperties;
309
+ Object.assign(ret, data);
310
+ return ret;
311
+ }
312
+ configureTraceLog(nodeId, traceLog) {
313
+ return this.serviceProxy.invoke("configureTraceLog", [traceLog], nodeId);
314
+ }
333
315
  }
334
316
 
335
317
  // packages/system-api/src/api/services/IKinoticClusterInfoService.ts
@@ -371,17 +353,129 @@ class SystemOrganizationService {
371
353
  findProjects(organizationId, pageable) {
372
354
  return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
373
355
  }
374
- findMembers(organizationId, applicationId, pageable) {
375
- return this.serviceProxy.invoke("findMembers", [organizationId, applicationId, pageable]);
356
+ findMembers(organizationId, pageable) {
357
+ return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
358
+ }
359
+ searchMembers(searchText, organizationId, pageable) {
360
+ return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, pageable]);
361
+ }
362
+ findApplicationUsers(organizationId, applicationId, pageable) {
363
+ return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
376
364
  }
377
- searchMembers(searchText, organizationId, applicationId, pageable) {
378
- return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, applicationId, pageable]);
365
+ searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
366
+ return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
379
367
  }
380
368
  findPendingInvites(organizationId, applicationId, pageable) {
381
369
  return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
382
370
  }
383
371
  }
384
372
 
373
+ // packages/system-api/src/api/services/ISystemMemberService.ts
374
+ var import_management_api8 = require("@kinotic-ai/management-api");
375
+
376
+ class SystemMemberService {
377
+ serviceProxy;
378
+ constructor(kinotic) {
379
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
380
+ }
381
+ findUsers(pageable) {
382
+ return this.serviceProxy.invoke("findUsers", [pageable]);
383
+ }
384
+ searchUsers(searchText, pageable) {
385
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
386
+ }
387
+ findMachines(pageable) {
388
+ return this.serviceProxy.invoke("findMachines", [pageable]);
389
+ }
390
+ createMachine(displayName) {
391
+ return this.serviceProxy.invoke("createMachine", [displayName]);
392
+ }
393
+ rotateSecret(machineId) {
394
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
395
+ }
396
+ setMachineEnabled(machineId, enabled) {
397
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
398
+ }
399
+ removeMachine(machineId) {
400
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
401
+ }
402
+ }
403
+
404
+ // packages/system-api/src/api/services/IWatchEventService.ts
405
+ var import_management_api9 = require("@kinotic-ai/management-api");
406
+ var import_core3 = require("@kinotic-ai/core");
407
+
408
+ class WatchEventService {
409
+ serviceProxy;
410
+ constructor(kinotic) {
411
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
412
+ }
413
+ async findAll(pageable) {
414
+ const page = await this.findAllSinglePage(pageable);
415
+ return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(pageable));
416
+ }
417
+ findAllSinglePage(pageable) {
418
+ return this.serviceProxy.invoke("findAll", [pageable]);
419
+ }
420
+ }
421
+
422
+ // packages/system-api/src/api/services/ILlmConfigurationService.ts
423
+ var import_management_api10 = require("@kinotic-ai/management-api");
424
+
425
+ class LlmConfigurationService {
426
+ serviceProxy;
427
+ constructor(kinotic) {
428
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
429
+ }
430
+ findAll(pageable) {
431
+ return this.serviceProxy.invoke("findAll", [pageable]);
432
+ }
433
+ findById(id) {
434
+ return this.serviceProxy.invoke("findById", [id]);
435
+ }
436
+ findByName(name) {
437
+ return this.serviceProxy.invoke("findByName", [name]);
438
+ }
439
+ save(configuration, apiKey) {
440
+ return this.serviceProxy.invoke("save", [configuration, apiKey]);
441
+ }
442
+ deleteById(id) {
443
+ return this.serviceProxy.invoke("deleteById", [id]);
444
+ }
445
+ }
446
+
447
+ // packages/system-api/src/api/services/ISystemJobService.ts
448
+ var import_management_api11 = require("@kinotic-ai/management-api");
449
+
450
+ class SystemJobService {
451
+ serviceProxy;
452
+ constructor(kinotic) {
453
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
454
+ }
455
+ findSystemJobs() {
456
+ return this.serviceProxy.invoke("findSystemJobs", []);
457
+ }
458
+ startSystemJob(name) {
459
+ return this.serviceProxy.invoke("startSystemJob", [name]);
460
+ }
461
+ }
462
+
463
+ // packages/system-api/src/api/services/ILicenseService.ts
464
+ var import_management_api12 = require("@kinotic-ai/management-api");
465
+
466
+ class LicenseService {
467
+ serviceProxy;
468
+ constructor(kinotic) {
469
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
470
+ }
471
+ findCurrent() {
472
+ return this.serviceProxy.invoke("findCurrent", []);
473
+ }
474
+ install(licenseKey) {
475
+ return this.serviceProxy.invoke("install", [licenseKey]);
476
+ }
477
+ }
478
+
385
479
  // packages/system-api/src/api/SystemApiPlugin.ts
386
480
  var SystemApiPlugin = {
387
481
  install(kinotic) {
@@ -391,23 +485,59 @@ var SystemApiPlugin = {
391
485
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
392
486
  logManager: new LogManager(kinotic),
393
487
  clusterInfo: new KinoticClusterInfoService(kinotic),
394
- systemOrganizations: new SystemOrganizationService(kinotic)
488
+ systemOrganizations: new SystemOrganizationService(kinotic),
489
+ systemMembers: new SystemMemberService(kinotic),
490
+ watchEvents: new WatchEventService(kinotic),
491
+ llmConfigurations: new LlmConfigurationService(kinotic),
492
+ systemJobs: new SystemJobService(kinotic),
493
+ licenses: new LicenseService(kinotic)
395
494
  };
396
495
  }
397
496
  };
398
- // packages/system-api/src/api/model/KinoticClusterInfo.ts
497
+ // packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
399
498
  class KinoticClusterInfo {
400
- localNodeId = "";
401
499
  serverNodeCount = 0;
402
500
  topologyVersion = 0;
403
501
  clusterState = "";
404
502
  nodes = [];
405
503
  active = false;
406
504
  }
407
- // packages/system-api/src/api/model/KinoticNodeInfo.ts
505
+ // packages/system-api/src/api/model/cluster/KinoticNodeInfo.ts
408
506
  class KinoticNodeInfo {
409
507
  nodeId = "";
410
508
  order = 0;
411
- local = false;
412
- version = "";
509
+ serverName = "";
510
+ addresses = [];
511
+ hostNames = [];
512
+ version = null;
513
+ telemetryServiceName = null;
514
+ telemetryServiceInstanceId = null;
515
+ }
516
+ // packages/system-api/src/api/model/license/EnterpriseFeature.ts
517
+ var EnterpriseFeature;
518
+ ((EnterpriseFeature) => {
519
+ EnterpriseFeature["AZURE_KEY_VAULT"] = "AZURE_KEY_VAULT";
520
+ EnterpriseFeature["ENTERPRISE_IDENTITY_PROVIDERS"] = "ENTERPRISE_IDENTITY_PROVIDERS";
521
+ })(EnterpriseFeature ||= {});
522
+ // packages/system-api/src/api/model/license/LicenseStatus.ts
523
+ var LicenseStatus;
524
+ ((LicenseStatus) => {
525
+ LicenseStatus["ACTIVE"] = "ACTIVE";
526
+ LicenseStatus["GRACE_PERIOD"] = "GRACE_PERIOD";
527
+ LicenseStatus["EXPIRED"] = "EXPIRED";
528
+ })(LicenseStatus ||= {});
529
+ // packages/system-api/src/api/model/license/License.ts
530
+ class License {
531
+ licensee;
532
+ issuedAt = null;
533
+ expiresAt;
534
+ graceEndsAt;
535
+ status;
536
+ features = [];
537
+ constructor(licensee, expiresAt, graceEndsAt, status) {
538
+ this.licensee = licensee;
539
+ this.expiresAt = expiresAt;
540
+ this.graceEndsAt = graceEndsAt;
541
+ this.status = status;
542
+ }
413
543
  }