@kinotic-ai/system-api 5.0.0-beta.4 → 5.0.0-beta.41
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 +288 -154
- package/dist/index.d.cts +412 -292
- package/dist/index.d.ts +412 -292
- package/dist/index.js +292 -156
- 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,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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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
|
|
76
|
+
var import_management_api13 = require("@kinotic-ai/management-api");
|
|
73
77
|
|
|
74
|
-
// packages/system-api/src/api/model/workload/
|
|
75
|
-
|
|
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
|
-
((
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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/
|
|
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
|
|
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/
|
|
197
|
-
|
|
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(`${
|
|
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
|
-
|
|
205
|
-
return this.serviceProxy.invoke("
|
|
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
|
|
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(`${
|
|
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, (
|
|
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
|
-
|
|
227
|
-
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
-
((
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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(
|
|
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,132 @@ class SystemOrganizationService {
|
|
|
371
353
|
findProjects(organizationId, pageable) {
|
|
372
354
|
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
373
355
|
}
|
|
374
|
-
findMembers(organizationId,
|
|
375
|
-
return this.serviceProxy.invoke("findMembers", [organizationId,
|
|
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]);
|
|
376
361
|
}
|
|
377
|
-
|
|
378
|
-
return this.serviceProxy.invoke("
|
|
362
|
+
findApplicationUsers(organizationId, applicationId, pageable) {
|
|
363
|
+
return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
|
|
364
|
+
}
|
|
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
|
+
findClusterId() {
|
|
478
|
+
return this.serviceProxy.invoke("findClusterId", []);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
385
482
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
386
483
|
var SystemApiPlugin = {
|
|
387
484
|
install(kinotic) {
|
|
@@ -391,23 +488,60 @@ var SystemApiPlugin = {
|
|
|
391
488
|
workloadOrchestration: new WorkloadOrchestrationService(kinotic),
|
|
392
489
|
logManager: new LogManager(kinotic),
|
|
393
490
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
394
|
-
systemOrganizations: new SystemOrganizationService(kinotic)
|
|
491
|
+
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
492
|
+
systemMembers: new SystemMemberService(kinotic),
|
|
493
|
+
watchEvents: new WatchEventService(kinotic),
|
|
494
|
+
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
495
|
+
systemJobs: new SystemJobService(kinotic),
|
|
496
|
+
licenses: new LicenseService(kinotic)
|
|
395
497
|
};
|
|
396
498
|
}
|
|
397
499
|
};
|
|
398
|
-
// packages/system-api/src/api/model/KinoticClusterInfo.ts
|
|
500
|
+
// packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
|
|
399
501
|
class KinoticClusterInfo {
|
|
400
|
-
localNodeId = "";
|
|
401
502
|
serverNodeCount = 0;
|
|
402
503
|
topologyVersion = 0;
|
|
403
504
|
clusterState = "";
|
|
404
505
|
nodes = [];
|
|
405
506
|
active = false;
|
|
406
507
|
}
|
|
407
|
-
// packages/system-api/src/api/model/KinoticNodeInfo.ts
|
|
508
|
+
// packages/system-api/src/api/model/cluster/KinoticNodeInfo.ts
|
|
408
509
|
class KinoticNodeInfo {
|
|
409
510
|
nodeId = "";
|
|
410
511
|
order = 0;
|
|
411
|
-
|
|
412
|
-
|
|
512
|
+
serverName = "";
|
|
513
|
+
addresses = [];
|
|
514
|
+
hostNames = [];
|
|
515
|
+
version = null;
|
|
516
|
+
telemetryServiceName = null;
|
|
517
|
+
telemetryServiceInstanceId = null;
|
|
518
|
+
}
|
|
519
|
+
// packages/system-api/src/api/model/license/EnterpriseFeature.ts
|
|
520
|
+
var EnterpriseFeature;
|
|
521
|
+
((EnterpriseFeature) => {
|
|
522
|
+
EnterpriseFeature["AZURE_KEY_VAULT"] = "AZURE_KEY_VAULT";
|
|
523
|
+
EnterpriseFeature["ENTERPRISE_IDENTITY_PROVIDERS"] = "ENTERPRISE_IDENTITY_PROVIDERS";
|
|
524
|
+
})(EnterpriseFeature ||= {});
|
|
525
|
+
// packages/system-api/src/api/model/license/LicenseStatus.ts
|
|
526
|
+
var LicenseStatus;
|
|
527
|
+
((LicenseStatus) => {
|
|
528
|
+
LicenseStatus["ACTIVE"] = "ACTIVE";
|
|
529
|
+
LicenseStatus["GRACE_PERIOD"] = "GRACE_PERIOD";
|
|
530
|
+
LicenseStatus["EXPIRED"] = "EXPIRED";
|
|
531
|
+
})(LicenseStatus ||= {});
|
|
532
|
+
// packages/system-api/src/api/model/license/License.ts
|
|
533
|
+
class License {
|
|
534
|
+
licensee;
|
|
535
|
+
clusterId = null;
|
|
536
|
+
issuedAt = null;
|
|
537
|
+
expiresAt;
|
|
538
|
+
graceEndsAt;
|
|
539
|
+
status;
|
|
540
|
+
features = [];
|
|
541
|
+
constructor(licensee, expiresAt, graceEndsAt, status) {
|
|
542
|
+
this.licensee = licensee;
|
|
543
|
+
this.expiresAt = expiresAt;
|
|
544
|
+
this.graceEndsAt = graceEndsAt;
|
|
545
|
+
this.status = status;
|
|
546
|
+
}
|
|
413
547
|
}
|