@kinotic-ai/system-api 5.0.0-beta.5 → 5.0.0-beta.50
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 +1 -1
- package/dist/index.cjs +350 -95
- package/dist/index.d.cts +529 -101
- package/dist/index.d.ts +529 -101
- package/dist/index.js +352 -95
- package/package.json +6 -7
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
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
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
|
|
79
|
+
var import_management_api15 = require("@kinotic-ai/management-api");
|
|
67
80
|
|
|
68
|
-
// packages/system-api/src/api/model/workload/
|
|
69
|
-
var
|
|
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
|
-
((
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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/
|
|
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(
|
|
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/
|
|
127
|
-
|
|
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(`${
|
|
161
|
+
super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeService`));
|
|
162
|
+
}
|
|
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));
|
|
133
166
|
}
|
|
134
|
-
|
|
135
|
-
return this.serviceProxy.invoke("
|
|
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
|
|
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(`${
|
|
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, (
|
|
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
|
-
|
|
157
|
-
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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(
|
|
196
|
-
return this.serviceProxy.invoke("heartbeat", [
|
|
235
|
+
heartbeat(problems) {
|
|
236
|
+
return this.serviceProxy.invoke("heartbeat", [problems]);
|
|
197
237
|
}
|
|
198
|
-
reportWorkloadStatus(
|
|
199
|
-
return this.serviceProxy.invoke("reportWorkloadStatus", [
|
|
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
|
-
((
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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(
|
|
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,45 @@ class KinoticClusterInfoService {
|
|
|
275
326
|
}
|
|
276
327
|
}
|
|
277
328
|
|
|
278
|
-
// packages/system-api/src/api/services/
|
|
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
|
+
findAlerts(advisoryId, pageable) {
|
|
357
|
+
return this.serviceProxy.invoke("findAlerts", [advisoryId, pageable]);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// packages/system-api/src/api/services/ISystemOrganizationService.ts
|
|
362
|
+
var import_management_api9 = require("@kinotic-ai/management-api");
|
|
363
|
+
|
|
281
364
|
class SystemOrganizationService {
|
|
282
365
|
serviceProxy;
|
|
283
366
|
constructor(kinotic) {
|
|
284
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
367
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
|
|
285
368
|
}
|
|
286
369
|
findOrganizations(pageable) {
|
|
287
370
|
return this.serviceProxy.invoke("findOrganizations", [pageable]);
|
|
@@ -301,17 +384,141 @@ class SystemOrganizationService {
|
|
|
301
384
|
findProjects(organizationId, pageable) {
|
|
302
385
|
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
303
386
|
}
|
|
304
|
-
findMembers(organizationId,
|
|
305
|
-
return this.serviceProxy.invoke("findMembers", [organizationId,
|
|
387
|
+
findMembers(organizationId, pageable) {
|
|
388
|
+
return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
|
|
306
389
|
}
|
|
307
|
-
searchMembers(searchText, organizationId,
|
|
308
|
-
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId,
|
|
390
|
+
searchMembers(searchText, organizationId, pageable) {
|
|
391
|
+
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, pageable]);
|
|
392
|
+
}
|
|
393
|
+
findApplicationUsers(organizationId, applicationId, pageable) {
|
|
394
|
+
return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
|
|
395
|
+
}
|
|
396
|
+
searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
|
|
397
|
+
return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
|
|
309
398
|
}
|
|
310
399
|
findPendingInvites(organizationId, applicationId, pageable) {
|
|
311
400
|
return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
|
|
312
401
|
}
|
|
313
402
|
}
|
|
314
403
|
|
|
404
|
+
// packages/system-api/src/api/services/ISystemMemberService.ts
|
|
405
|
+
var import_management_api10 = require("@kinotic-ai/management-api");
|
|
406
|
+
|
|
407
|
+
class SystemMemberService {
|
|
408
|
+
serviceProxy;
|
|
409
|
+
constructor(kinotic) {
|
|
410
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
|
|
411
|
+
}
|
|
412
|
+
findUsers(pageable) {
|
|
413
|
+
return this.serviceProxy.invoke("findUsers", [pageable]);
|
|
414
|
+
}
|
|
415
|
+
searchUsers(searchText, pageable) {
|
|
416
|
+
return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
|
|
417
|
+
}
|
|
418
|
+
addUser(email, displayName) {
|
|
419
|
+
return this.serviceProxy.invoke("addUser", [email, displayName]);
|
|
420
|
+
}
|
|
421
|
+
setUserEnabled(userId, enabled) {
|
|
422
|
+
return this.serviceProxy.invoke("setUserEnabled", [userId, enabled]);
|
|
423
|
+
}
|
|
424
|
+
resetUserPassword(userId) {
|
|
425
|
+
return this.serviceProxy.invoke("resetUserPassword", [userId]);
|
|
426
|
+
}
|
|
427
|
+
findMachines(pageable) {
|
|
428
|
+
return this.serviceProxy.invoke("findMachines", [pageable]);
|
|
429
|
+
}
|
|
430
|
+
createMachine(displayName) {
|
|
431
|
+
return this.serviceProxy.invoke("createMachine", [displayName]);
|
|
432
|
+
}
|
|
433
|
+
rotateSecret(machineId) {
|
|
434
|
+
return this.serviceProxy.invoke("rotateSecret", [machineId]);
|
|
435
|
+
}
|
|
436
|
+
setMachineEnabled(machineId, enabled) {
|
|
437
|
+
return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
|
|
438
|
+
}
|
|
439
|
+
removeMachine(machineId) {
|
|
440
|
+
return this.serviceProxy.invoke("removeMachine", [machineId]);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// packages/system-api/src/api/services/IWatchEventService.ts
|
|
445
|
+
var import_management_api11 = require("@kinotic-ai/management-api");
|
|
446
|
+
var import_core3 = require("@kinotic-ai/core");
|
|
447
|
+
|
|
448
|
+
class WatchEventService {
|
|
449
|
+
serviceProxy;
|
|
450
|
+
constructor(kinotic) {
|
|
451
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
|
|
452
|
+
}
|
|
453
|
+
async findAll(pageable) {
|
|
454
|
+
const page = await this.findAllSinglePage(pageable);
|
|
455
|
+
return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(pageable));
|
|
456
|
+
}
|
|
457
|
+
findAllSinglePage(pageable) {
|
|
458
|
+
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// packages/system-api/src/api/services/ILlmConfigurationService.ts
|
|
463
|
+
var import_management_api12 = require("@kinotic-ai/management-api");
|
|
464
|
+
|
|
465
|
+
class LlmConfigurationService {
|
|
466
|
+
serviceProxy;
|
|
467
|
+
constructor(kinotic) {
|
|
468
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
|
|
469
|
+
}
|
|
470
|
+
findAll(pageable) {
|
|
471
|
+
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
472
|
+
}
|
|
473
|
+
findById(id) {
|
|
474
|
+
return this.serviceProxy.invoke("findById", [id]);
|
|
475
|
+
}
|
|
476
|
+
findByName(name) {
|
|
477
|
+
return this.serviceProxy.invoke("findByName", [name]);
|
|
478
|
+
}
|
|
479
|
+
save(configuration, apiKey) {
|
|
480
|
+
return this.serviceProxy.invoke("save", [configuration, apiKey]);
|
|
481
|
+
}
|
|
482
|
+
deleteById(id) {
|
|
483
|
+
return this.serviceProxy.invoke("deleteById", [id]);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// packages/system-api/src/api/services/ISystemJobService.ts
|
|
488
|
+
var import_management_api13 = require("@kinotic-ai/management-api");
|
|
489
|
+
|
|
490
|
+
class SystemJobService {
|
|
491
|
+
serviceProxy;
|
|
492
|
+
constructor(kinotic) {
|
|
493
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api13.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
|
|
494
|
+
}
|
|
495
|
+
findSystemJobs() {
|
|
496
|
+
return this.serviceProxy.invoke("findSystemJobs", []);
|
|
497
|
+
}
|
|
498
|
+
startSystemJob(name) {
|
|
499
|
+
return this.serviceProxy.invoke("startSystemJob", [name]);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// packages/system-api/src/api/services/ILicenseService.ts
|
|
504
|
+
var import_management_api14 = require("@kinotic-ai/management-api");
|
|
505
|
+
|
|
506
|
+
class LicenseService {
|
|
507
|
+
serviceProxy;
|
|
508
|
+
constructor(kinotic) {
|
|
509
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api14.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
|
|
510
|
+
}
|
|
511
|
+
findCurrent() {
|
|
512
|
+
return this.serviceProxy.invoke("findCurrent", []);
|
|
513
|
+
}
|
|
514
|
+
install(licenseKey) {
|
|
515
|
+
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
516
|
+
}
|
|
517
|
+
findClusterId() {
|
|
518
|
+
return this.serviceProxy.invoke("findClusterId", []);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
315
522
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
316
523
|
var SystemApiPlugin = {
|
|
317
524
|
install(kinotic) {
|
|
@@ -321,23 +528,71 @@ var SystemApiPlugin = {
|
|
|
321
528
|
workloadOrchestration: new WorkloadOrchestrationService(kinotic),
|
|
322
529
|
logManager: new LogManager(kinotic),
|
|
323
530
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
324
|
-
|
|
531
|
+
clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
|
|
532
|
+
vulnerabilityAdvisories: new VulnerabilityAdvisoryService(kinotic),
|
|
533
|
+
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
534
|
+
systemMembers: new SystemMemberService(kinotic),
|
|
535
|
+
watchEvents: new WatchEventService(kinotic),
|
|
536
|
+
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
537
|
+
systemJobs: new SystemJobService(kinotic),
|
|
538
|
+
licenses: new LicenseService(kinotic)
|
|
325
539
|
};
|
|
326
540
|
}
|
|
327
541
|
};
|
|
328
|
-
// packages/system-api/src/api/model/KinoticClusterInfo.ts
|
|
542
|
+
// packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
|
|
329
543
|
class KinoticClusterInfo {
|
|
330
|
-
localNodeId = "";
|
|
331
544
|
serverNodeCount = 0;
|
|
332
545
|
topologyVersion = 0;
|
|
333
546
|
clusterState = "";
|
|
334
547
|
nodes = [];
|
|
335
548
|
active = false;
|
|
336
549
|
}
|
|
337
|
-
// packages/system-api/src/api/model/KinoticNodeInfo.ts
|
|
550
|
+
// packages/system-api/src/api/model/cluster/KinoticNodeInfo.ts
|
|
338
551
|
class KinoticNodeInfo {
|
|
339
552
|
nodeId = "";
|
|
340
553
|
order = 0;
|
|
341
|
-
|
|
342
|
-
|
|
554
|
+
serverName = "";
|
|
555
|
+
addresses = [];
|
|
556
|
+
hostNames = [];
|
|
557
|
+
version = null;
|
|
558
|
+
telemetryServiceName = null;
|
|
559
|
+
telemetryServiceInstanceId = null;
|
|
560
|
+
}
|
|
561
|
+
// packages/system-api/src/api/model/cluster/ServerVulnerabilities.ts
|
|
562
|
+
class ServerVulnerabilities {
|
|
563
|
+
serverName = "";
|
|
564
|
+
version = null;
|
|
565
|
+
nodeCount = 0;
|
|
566
|
+
componentCount = 0;
|
|
567
|
+
findings = [];
|
|
568
|
+
error = null;
|
|
569
|
+
}
|
|
570
|
+
// packages/system-api/src/api/model/license/EnterpriseFeature.ts
|
|
571
|
+
var EnterpriseFeature;
|
|
572
|
+
((EnterpriseFeature) => {
|
|
573
|
+
EnterpriseFeature["AZURE_KEY_VAULT"] = "AZURE_KEY_VAULT";
|
|
574
|
+
EnterpriseFeature["ENTERPRISE_IDENTITY_PROVIDERS"] = "ENTERPRISE_IDENTITY_PROVIDERS";
|
|
575
|
+
})(EnterpriseFeature ||= {});
|
|
576
|
+
// packages/system-api/src/api/model/license/LicenseStatus.ts
|
|
577
|
+
var LicenseStatus;
|
|
578
|
+
((LicenseStatus) => {
|
|
579
|
+
LicenseStatus["ACTIVE"] = "ACTIVE";
|
|
580
|
+
LicenseStatus["GRACE_PERIOD"] = "GRACE_PERIOD";
|
|
581
|
+
LicenseStatus["EXPIRED"] = "EXPIRED";
|
|
582
|
+
})(LicenseStatus ||= {});
|
|
583
|
+
// packages/system-api/src/api/model/license/License.ts
|
|
584
|
+
class License {
|
|
585
|
+
licensee;
|
|
586
|
+
clusterId = null;
|
|
587
|
+
issuedAt = null;
|
|
588
|
+
expiresAt;
|
|
589
|
+
graceEndsAt;
|
|
590
|
+
status;
|
|
591
|
+
features = [];
|
|
592
|
+
constructor(licensee, expiresAt, graceEndsAt, status) {
|
|
593
|
+
this.licensee = licensee;
|
|
594
|
+
this.expiresAt = expiresAt;
|
|
595
|
+
this.graceEndsAt = graceEndsAt;
|
|
596
|
+
this.status = status;
|
|
597
|
+
}
|
|
343
598
|
}
|