@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.cjs +235 -154
- package/dist/index.d.cts +335 -292
- package/dist/index.d.ts +335 -292
- package/dist/index.js +239 -156
- package/package.json +5 -6
package/dist/index.cjs
CHANGED
|
@@ -40,78 +40,45 @@ var __export = (target, all) => {
|
|
|
40
40
|
// packages/system-api/src/index.ts
|
|
41
41
|
var exports_src = {};
|
|
42
42
|
__export(exports_src, {
|
|
43
|
-
|
|
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
|
+
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
|
|
68
44
|
KinoticClusterInfo: () => KinoticClusterInfo,
|
|
69
|
-
|
|
45
|
+
KinoticClusterInfoService: () => KinoticClusterInfoService,
|
|
46
|
+
KinoticNodeInfo: () => KinoticNodeInfo,
|
|
47
|
+
LlmConfiguration: () => LlmConfiguration,
|
|
48
|
+
LlmConfigurationService: () => LlmConfigurationService,
|
|
49
|
+
LlmProviderType: () => LlmProviderType,
|
|
50
|
+
LogLevel: () => LogLevel,
|
|
51
|
+
LogManager: () => LogManager,
|
|
52
|
+
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
53
|
+
LoggersDescriptor: () => LoggersDescriptor,
|
|
54
|
+
SYSTEM_API_ZONE: () => import_management_api12.SYSTEM_API_ZONE,
|
|
55
|
+
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
56
|
+
SystemApiPlugin: () => SystemApiPlugin,
|
|
57
|
+
SystemJobService: () => SystemJobService,
|
|
58
|
+
SystemMemberService: () => SystemMemberService,
|
|
59
|
+
SystemOrganizationService: () => SystemOrganizationService,
|
|
60
|
+
TraceLogProperties: () => TraceLogProperties,
|
|
61
|
+
VmNode: () => VmNode,
|
|
62
|
+
VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
|
|
63
|
+
VmNodeRegistration: () => VmNodeRegistration,
|
|
64
|
+
VmNodeServiceProxy: () => VmNodeServiceProxy,
|
|
65
|
+
VmNodeStatusType: () => VmNodeStatusType,
|
|
66
|
+
VmProviderType: () => VmProviderType,
|
|
67
|
+
WatchEventService: () => WatchEventService,
|
|
68
|
+
WorkloadOrchestrationService: () => WorkloadOrchestrationService,
|
|
69
|
+
WorkloadServiceProxy: () => WorkloadServiceProxy
|
|
70
70
|
});
|
|
71
71
|
module.exports = __toCommonJS(exports_src);
|
|
72
|
-
var
|
|
73
|
-
|
|
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 ||= {});
|
|
72
|
+
var import_management_api12 = require("@kinotic-ai/management-api");
|
|
103
73
|
|
|
104
|
-
// packages/system-api/src/api/model/workload/
|
|
105
|
-
|
|
106
|
-
type = "ONLINE" /* ONLINE */;
|
|
107
|
-
healthMessage = null;
|
|
108
|
-
}
|
|
74
|
+
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
75
|
+
var import_management_api = require("@kinotic-ai/management-api");
|
|
109
76
|
|
|
110
77
|
// packages/system-api/src/api/model/workload/VmProviderType.ts
|
|
111
78
|
var VmProviderType;
|
|
112
|
-
((
|
|
113
|
-
|
|
114
|
-
|
|
79
|
+
((VmProviderType) => {
|
|
80
|
+
VmProviderType["BOXLITE"] = "BOXLITE";
|
|
81
|
+
VmProviderType["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
|
|
115
82
|
})(VmProviderType ||= {});
|
|
116
83
|
|
|
117
84
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
@@ -119,14 +86,15 @@ class VmNode {
|
|
|
119
86
|
id;
|
|
120
87
|
name;
|
|
121
88
|
hostname;
|
|
122
|
-
|
|
89
|
+
state = new import_management_api.ReconcileState;
|
|
90
|
+
healthMessage = null;
|
|
123
91
|
providerType = "BOXLITE" /* BOXLITE */;
|
|
124
92
|
totalCpus = 0;
|
|
125
93
|
totalMemoryMb = 0;
|
|
126
94
|
totalDiskMb = 0;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
95
|
+
freeCpus = 0;
|
|
96
|
+
freeMemoryMb = 0;
|
|
97
|
+
freeDiskMb = 0;
|
|
130
98
|
lastSeen = null;
|
|
131
99
|
workloadDataDir = null;
|
|
132
100
|
constructor(id, name, hostname) {
|
|
@@ -135,49 +103,13 @@ class VmNode {
|
|
|
135
103
|
this.hostname = hostname;
|
|
136
104
|
}
|
|
137
105
|
}
|
|
138
|
-
// packages/system-api/src/api/model/workload/
|
|
139
|
-
var
|
|
140
|
-
((
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
|
106
|
+
// packages/system-api/src/api/model/workload/VmNodeStatusType.ts
|
|
107
|
+
var VmNodeStatusType;
|
|
108
|
+
((VmNodeStatusType) => {
|
|
109
|
+
VmNodeStatusType["ONLINE"] = "ONLINE";
|
|
110
|
+
VmNodeStatusType["DRAINING"] = "DRAINING";
|
|
111
|
+
})(VmNodeStatusType ||= {});
|
|
112
|
+
// packages/system-api/src/api/model/workload/VmNodeRegistration.ts
|
|
181
113
|
class VmNodeRegistration {
|
|
182
114
|
id;
|
|
183
115
|
name;
|
|
@@ -193,71 +125,106 @@ class VmNodeRegistration {
|
|
|
193
125
|
this.hostname = hostname;
|
|
194
126
|
}
|
|
195
127
|
}
|
|
196
|
-
// packages/system-api/src/api/
|
|
197
|
-
|
|
128
|
+
// packages/system-api/src/api/model/llm/LlmConfiguration.ts
|
|
129
|
+
class LlmConfiguration {
|
|
130
|
+
id = null;
|
|
131
|
+
name;
|
|
132
|
+
provider;
|
|
133
|
+
model;
|
|
134
|
+
endpoint = null;
|
|
135
|
+
maxTokens = null;
|
|
136
|
+
temperature = null;
|
|
137
|
+
apiKeyHeld = false;
|
|
138
|
+
created = null;
|
|
139
|
+
updated = null;
|
|
140
|
+
constructor(name, provider, model) {
|
|
141
|
+
this.name = name;
|
|
142
|
+
this.provider = provider;
|
|
143
|
+
this.model = model;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// packages/system-api/src/api/model/llm/LlmProviderType.ts
|
|
147
|
+
var LlmProviderType;
|
|
148
|
+
((LlmProviderType) => {
|
|
149
|
+
LlmProviderType["ANTHROPIC"] = "ANTHROPIC";
|
|
150
|
+
LlmProviderType["OPENAI"] = "OPENAI";
|
|
151
|
+
})(LlmProviderType ||= {});
|
|
152
|
+
// packages/system-api/src/api/services/workload/IVmNodeService.ts
|
|
153
|
+
var import_management_api2 = require("@kinotic-ai/management-api");
|
|
198
154
|
var import_core = require("@kinotic-ai/core");
|
|
199
155
|
|
|
200
156
|
class VmNodeServiceProxy extends import_core.CrudServiceProxy {
|
|
201
157
|
constructor(kinotic) {
|
|
202
|
-
super(kinotic.serviceProxy(`${
|
|
158
|
+
super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeService`));
|
|
203
159
|
}
|
|
204
|
-
|
|
205
|
-
|
|
160
|
+
async findHistory(nodeId, pageable) {
|
|
161
|
+
const page = await this.findHistorySinglePage(nodeId, pageable);
|
|
162
|
+
return new import_core.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(nodeId, pageable));
|
|
163
|
+
}
|
|
164
|
+
findHistorySinglePage(nodeId, pageable) {
|
|
165
|
+
return this.serviceProxy.invoke("findHistory", [nodeId, pageable]);
|
|
206
166
|
}
|
|
207
167
|
syncIndex() {
|
|
208
168
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
209
169
|
}
|
|
210
170
|
}
|
|
211
|
-
// packages/system-api/src/api/services/IWorkloadService.ts
|
|
212
|
-
var
|
|
171
|
+
// packages/system-api/src/api/services/workload/IWorkloadService.ts
|
|
172
|
+
var import_management_api3 = require("@kinotic-ai/management-api");
|
|
213
173
|
var import_core2 = require("@kinotic-ai/core");
|
|
214
174
|
|
|
215
175
|
class WorkloadServiceProxy extends import_core2.CrudServiceProxy {
|
|
216
176
|
constructor(kinotic) {
|
|
217
|
-
super(kinotic.serviceProxy(`${
|
|
177
|
+
super(kinotic.serviceProxy(`${import_management_api3.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.WorkloadService`));
|
|
218
178
|
}
|
|
219
179
|
async findAllForNode(nodeId, pageable) {
|
|
220
180
|
const page = await this.findAllForNodeSinglePage(nodeId, pageable);
|
|
221
|
-
return new import_core2.FunctionalIterablePage(pageable, page, (
|
|
181
|
+
return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findAllForNodeSinglePage(nodeId, pageable));
|
|
222
182
|
}
|
|
223
183
|
findAllForNodeSinglePage(nodeId, pageable) {
|
|
224
184
|
return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
|
|
225
185
|
}
|
|
226
|
-
|
|
227
|
-
|
|
186
|
+
async findHistory(workloadId, pageable) {
|
|
187
|
+
const page = await this.findHistorySinglePage(workloadId, pageable);
|
|
188
|
+
return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(workloadId, pageable));
|
|
189
|
+
}
|
|
190
|
+
findHistorySinglePage(workloadId, pageable) {
|
|
191
|
+
return this.serviceProxy.invoke("findHistory", [workloadId, pageable]);
|
|
228
192
|
}
|
|
229
193
|
syncIndex() {
|
|
230
194
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
231
195
|
}
|
|
232
196
|
}
|
|
233
|
-
// packages/system-api/src/api/services/IWorkloadOrchestrationService.ts
|
|
234
|
-
var
|
|
197
|
+
// packages/system-api/src/api/services/workload/IWorkloadOrchestrationService.ts
|
|
198
|
+
var import_management_api4 = require("@kinotic-ai/management-api");
|
|
235
199
|
|
|
236
200
|
class WorkloadOrchestrationService {
|
|
237
201
|
serviceProxy;
|
|
238
202
|
constructor(kinotic) {
|
|
239
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
203
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api4.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.WorkloadOrchestrationService`);
|
|
240
204
|
}
|
|
241
205
|
deployWorkload(workload) {
|
|
242
206
|
return this.serviceProxy.invoke("deployWorkload", [workload]);
|
|
243
207
|
}
|
|
244
|
-
restartWorkload(workloadId) {
|
|
245
|
-
return this.serviceProxy.invoke("restartWorkload", [workloadId]);
|
|
246
|
-
}
|
|
247
208
|
stopWorkload(workloadId) {
|
|
248
209
|
return this.serviceProxy.invoke("stopWorkload", [workloadId]);
|
|
249
210
|
}
|
|
250
211
|
destroyWorkload(workloadId) {
|
|
251
212
|
return this.serviceProxy.invoke("destroyWorkload", [workloadId]);
|
|
252
213
|
}
|
|
214
|
+
deleteWorkload(workloadId) {
|
|
215
|
+
return this.serviceProxy.invoke("deleteWorkload", [workloadId]);
|
|
216
|
+
}
|
|
217
|
+
deleteWorkloads(workloadIds) {
|
|
218
|
+
return this.serviceProxy.invoke("deleteWorkloads", [workloadIds]);
|
|
219
|
+
}
|
|
253
220
|
}
|
|
254
|
-
// packages/system-api/src/api/services/VmNodeOrchestrationServiceProxy.ts
|
|
255
|
-
var
|
|
221
|
+
// packages/system-api/src/api/services/workload/VmNodeOrchestrationServiceProxy.ts
|
|
222
|
+
var import_management_api5 = require("@kinotic-ai/management-api");
|
|
256
223
|
|
|
257
224
|
class VmNodeOrchestrationServiceProxy {
|
|
258
225
|
serviceProxy;
|
|
259
226
|
constructor(kinotic) {
|
|
260
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
227
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api5.SYSTEM_API_ZONE}~org.kinotic.system.api.services.workload.VmNodeOrchestrationService`);
|
|
261
228
|
}
|
|
262
229
|
registerNode(registration) {
|
|
263
230
|
return this.serviceProxy.invoke("registerNode", [registration]);
|
|
@@ -272,19 +239,16 @@ class VmNodeOrchestrationServiceProxy {
|
|
|
272
239
|
return this.serviceProxy.invoke("deregisterNode", [nodeId]);
|
|
273
240
|
}
|
|
274
241
|
}
|
|
275
|
-
// packages/system-api/src/api/services/LogManager.ts
|
|
276
|
-
var import_management_api5 = require("@kinotic-ai/management-api");
|
|
277
|
-
|
|
278
242
|
// packages/system-api/src/api/services/ILogManager.ts
|
|
279
243
|
var LogLevel;
|
|
280
|
-
((
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
244
|
+
((LogLevel) => {
|
|
245
|
+
LogLevel["TRACE"] = "TRACE";
|
|
246
|
+
LogLevel["DEBUG"] = "DEBUG";
|
|
247
|
+
LogLevel["INFO"] = "INFO";
|
|
248
|
+
LogLevel["WARN"] = "WARN";
|
|
249
|
+
LogLevel["ERROR"] = "ERROR";
|
|
250
|
+
LogLevel["FATAL"] = "FATAL";
|
|
251
|
+
LogLevel["OFF"] = "OFF";
|
|
288
252
|
})(LogLevel ||= {});
|
|
289
253
|
|
|
290
254
|
class LoggerLevelsDescriptor {
|
|
@@ -305,11 +269,16 @@ class LoggersDescriptor {
|
|
|
305
269
|
groups = new Map;
|
|
306
270
|
}
|
|
307
271
|
|
|
272
|
+
class TraceLogProperties {
|
|
273
|
+
includes = [];
|
|
274
|
+
excludes = [];
|
|
275
|
+
}
|
|
276
|
+
|
|
308
277
|
// packages/system-api/src/api/services/LogManager.ts
|
|
309
278
|
class LogManager {
|
|
310
279
|
serviceProxy;
|
|
311
280
|
constructor(kinotic) {
|
|
312
|
-
this.serviceProxy = kinotic.serviceProxy(
|
|
281
|
+
this.serviceProxy = kinotic.serviceProxy("org.kinotic.core.api.log.LogManager");
|
|
313
282
|
}
|
|
314
283
|
loggers(nodeId) {
|
|
315
284
|
return this.serviceProxy.invoke("loggers", null, nodeId);
|
|
@@ -330,6 +299,15 @@ class LogManager {
|
|
|
330
299
|
configureLogLevel(nodeId, name, level) {
|
|
331
300
|
return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
|
|
332
301
|
}
|
|
302
|
+
async traceLog(nodeId) {
|
|
303
|
+
const data = await this.serviceProxy.invoke("traceLog", null, nodeId);
|
|
304
|
+
const ret = new TraceLogProperties;
|
|
305
|
+
Object.assign(ret, data);
|
|
306
|
+
return ret;
|
|
307
|
+
}
|
|
308
|
+
configureTraceLog(nodeId, traceLog) {
|
|
309
|
+
return this.serviceProxy.invoke("configureTraceLog", [traceLog], nodeId);
|
|
310
|
+
}
|
|
333
311
|
}
|
|
334
312
|
|
|
335
313
|
// packages/system-api/src/api/services/IKinoticClusterInfoService.ts
|
|
@@ -371,17 +349,113 @@ class SystemOrganizationService {
|
|
|
371
349
|
findProjects(organizationId, pageable) {
|
|
372
350
|
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
373
351
|
}
|
|
374
|
-
findMembers(organizationId,
|
|
375
|
-
return this.serviceProxy.invoke("findMembers", [organizationId,
|
|
352
|
+
findMembers(organizationId, pageable) {
|
|
353
|
+
return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
|
|
376
354
|
}
|
|
377
|
-
searchMembers(searchText, organizationId,
|
|
378
|
-
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId,
|
|
355
|
+
searchMembers(searchText, organizationId, pageable) {
|
|
356
|
+
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, pageable]);
|
|
357
|
+
}
|
|
358
|
+
findApplicationUsers(organizationId, applicationId, pageable) {
|
|
359
|
+
return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
|
|
360
|
+
}
|
|
361
|
+
searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
|
|
362
|
+
return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
|
|
379
363
|
}
|
|
380
364
|
findPendingInvites(organizationId, applicationId, pageable) {
|
|
381
365
|
return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
|
|
382
366
|
}
|
|
383
367
|
}
|
|
384
368
|
|
|
369
|
+
// packages/system-api/src/api/services/ISystemMemberService.ts
|
|
370
|
+
var import_management_api8 = require("@kinotic-ai/management-api");
|
|
371
|
+
|
|
372
|
+
class SystemMemberService {
|
|
373
|
+
serviceProxy;
|
|
374
|
+
constructor(kinotic) {
|
|
375
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
|
|
376
|
+
}
|
|
377
|
+
findUsers(pageable) {
|
|
378
|
+
return this.serviceProxy.invoke("findUsers", [pageable]);
|
|
379
|
+
}
|
|
380
|
+
searchUsers(searchText, pageable) {
|
|
381
|
+
return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
|
|
382
|
+
}
|
|
383
|
+
findMachines(pageable) {
|
|
384
|
+
return this.serviceProxy.invoke("findMachines", [pageable]);
|
|
385
|
+
}
|
|
386
|
+
createMachine(displayName) {
|
|
387
|
+
return this.serviceProxy.invoke("createMachine", [displayName]);
|
|
388
|
+
}
|
|
389
|
+
rotateSecret(machineId) {
|
|
390
|
+
return this.serviceProxy.invoke("rotateSecret", [machineId]);
|
|
391
|
+
}
|
|
392
|
+
setMachineEnabled(machineId, enabled) {
|
|
393
|
+
return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
|
|
394
|
+
}
|
|
395
|
+
removeMachine(machineId) {
|
|
396
|
+
return this.serviceProxy.invoke("removeMachine", [machineId]);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// packages/system-api/src/api/services/IWatchEventService.ts
|
|
401
|
+
var import_management_api9 = require("@kinotic-ai/management-api");
|
|
402
|
+
var import_core3 = require("@kinotic-ai/core");
|
|
403
|
+
|
|
404
|
+
class WatchEventService {
|
|
405
|
+
serviceProxy;
|
|
406
|
+
constructor(kinotic) {
|
|
407
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
|
|
408
|
+
}
|
|
409
|
+
async findAll(pageable) {
|
|
410
|
+
const page = await this.findAllSinglePage(pageable);
|
|
411
|
+
return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(pageable));
|
|
412
|
+
}
|
|
413
|
+
findAllSinglePage(pageable) {
|
|
414
|
+
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// packages/system-api/src/api/services/ILlmConfigurationService.ts
|
|
419
|
+
var import_management_api10 = require("@kinotic-ai/management-api");
|
|
420
|
+
|
|
421
|
+
class LlmConfigurationService {
|
|
422
|
+
serviceProxy;
|
|
423
|
+
constructor(kinotic) {
|
|
424
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
|
|
425
|
+
}
|
|
426
|
+
findAll(pageable) {
|
|
427
|
+
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
428
|
+
}
|
|
429
|
+
findById(id) {
|
|
430
|
+
return this.serviceProxy.invoke("findById", [id]);
|
|
431
|
+
}
|
|
432
|
+
findByName(name) {
|
|
433
|
+
return this.serviceProxy.invoke("findByName", [name]);
|
|
434
|
+
}
|
|
435
|
+
save(configuration, apiKey) {
|
|
436
|
+
return this.serviceProxy.invoke("save", [configuration, apiKey]);
|
|
437
|
+
}
|
|
438
|
+
deleteById(id) {
|
|
439
|
+
return this.serviceProxy.invoke("deleteById", [id]);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// packages/system-api/src/api/services/ISystemJobService.ts
|
|
444
|
+
var import_management_api11 = require("@kinotic-ai/management-api");
|
|
445
|
+
|
|
446
|
+
class SystemJobService {
|
|
447
|
+
serviceProxy;
|
|
448
|
+
constructor(kinotic) {
|
|
449
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
|
|
450
|
+
}
|
|
451
|
+
findSystemJobs() {
|
|
452
|
+
return this.serviceProxy.invoke("findSystemJobs", []);
|
|
453
|
+
}
|
|
454
|
+
startSystemJob(name) {
|
|
455
|
+
return this.serviceProxy.invoke("startSystemJob", [name]);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
385
459
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
386
460
|
var SystemApiPlugin = {
|
|
387
461
|
install(kinotic) {
|
|
@@ -391,23 +465,30 @@ var SystemApiPlugin = {
|
|
|
391
465
|
workloadOrchestration: new WorkloadOrchestrationService(kinotic),
|
|
392
466
|
logManager: new LogManager(kinotic),
|
|
393
467
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
394
|
-
systemOrganizations: new SystemOrganizationService(kinotic)
|
|
468
|
+
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
469
|
+
systemMembers: new SystemMemberService(kinotic),
|
|
470
|
+
watchEvents: new WatchEventService(kinotic),
|
|
471
|
+
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
472
|
+
systemJobs: new SystemJobService(kinotic)
|
|
395
473
|
};
|
|
396
474
|
}
|
|
397
475
|
};
|
|
398
|
-
// packages/system-api/src/api/model/KinoticClusterInfo.ts
|
|
476
|
+
// packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
|
|
399
477
|
class KinoticClusterInfo {
|
|
400
|
-
localNodeId = "";
|
|
401
478
|
serverNodeCount = 0;
|
|
402
479
|
topologyVersion = 0;
|
|
403
480
|
clusterState = "";
|
|
404
481
|
nodes = [];
|
|
405
482
|
active = false;
|
|
406
483
|
}
|
|
407
|
-
// packages/system-api/src/api/model/KinoticNodeInfo.ts
|
|
484
|
+
// packages/system-api/src/api/model/cluster/KinoticNodeInfo.ts
|
|
408
485
|
class KinoticNodeInfo {
|
|
409
486
|
nodeId = "";
|
|
410
487
|
order = 0;
|
|
411
|
-
|
|
412
|
-
|
|
488
|
+
serverName = "";
|
|
489
|
+
addresses = [];
|
|
490
|
+
hostNames = [];
|
|
491
|
+
version = null;
|
|
492
|
+
telemetryServiceName = null;
|
|
493
|
+
telemetryServiceInstanceId = null;
|
|
413
494
|
}
|