@kinotic-ai/system-api 5.0.0-beta.27 → 5.0.0-beta.29
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 +57 -51
- package/dist/index.d.cts +15 -12
- package/dist/index.d.ts +15 -12
- package/dist/index.js +57 -51
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -40,33 +40,33 @@ var __export = (target, all) => {
|
|
|
40
40
|
// packages/system-api/src/index.ts
|
|
41
41
|
var exports_src = {};
|
|
42
42
|
__export(exports_src, {
|
|
43
|
-
|
|
44
|
-
WorkloadOrchestrationService: () => WorkloadOrchestrationService,
|
|
45
|
-
WatchEventService: () => WatchEventService,
|
|
46
|
-
VmProviderType: () => VmProviderType,
|
|
47
|
-
VmNodeStatusType: () => VmNodeStatusType,
|
|
48
|
-
VmNodeServiceProxy: () => VmNodeServiceProxy,
|
|
49
|
-
VmNodeRegistration: () => VmNodeRegistration,
|
|
50
|
-
VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
|
|
51
|
-
VmNode: () => VmNode,
|
|
52
|
-
TraceLogProperties: () => TraceLogProperties,
|
|
53
|
-
SystemOrganizationService: () => SystemOrganizationService,
|
|
54
|
-
SystemMemberService: () => SystemMemberService,
|
|
55
|
-
SystemJobService: () => SystemJobService,
|
|
56
|
-
SystemApiPlugin: () => SystemApiPlugin,
|
|
57
|
-
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
58
|
-
SYSTEM_API_ZONE: () => import_management_api12.SYSTEM_API_ZONE,
|
|
59
|
-
LoggersDescriptor: () => LoggersDescriptor,
|
|
60
|
-
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
61
|
-
LogManager: () => LogManager,
|
|
62
|
-
LogLevel: () => LogLevel,
|
|
63
|
-
LlmProviderType: () => LlmProviderType,
|
|
64
|
-
LlmConfigurationService: () => LlmConfigurationService,
|
|
65
|
-
LlmConfiguration: () => LlmConfiguration,
|
|
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
72
|
var import_management_api12 = require("@kinotic-ai/management-api");
|
|
@@ -76,9 +76,9 @@ var import_management_api = require("@kinotic-ai/management-api");
|
|
|
76
76
|
|
|
77
77
|
// packages/system-api/src/api/model/workload/VmProviderType.ts
|
|
78
78
|
var VmProviderType;
|
|
79
|
-
((
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
((VmProviderType) => {
|
|
80
|
+
VmProviderType["BOXLITE"] = "BOXLITE";
|
|
81
|
+
VmProviderType["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
|
|
82
82
|
})(VmProviderType ||= {});
|
|
83
83
|
|
|
84
84
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
@@ -105,9 +105,9 @@ class VmNode {
|
|
|
105
105
|
}
|
|
106
106
|
// packages/system-api/src/api/model/workload/VmNodeStatusType.ts
|
|
107
107
|
var VmNodeStatusType;
|
|
108
|
-
((
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
((VmNodeStatusType) => {
|
|
109
|
+
VmNodeStatusType["ONLINE"] = "ONLINE";
|
|
110
|
+
VmNodeStatusType["DRAINING"] = "DRAINING";
|
|
111
111
|
})(VmNodeStatusType ||= {});
|
|
112
112
|
// packages/system-api/src/api/model/workload/VmNodeRegistration.ts
|
|
113
113
|
class VmNodeRegistration {
|
|
@@ -145,9 +145,9 @@ class LlmConfiguration {
|
|
|
145
145
|
}
|
|
146
146
|
// packages/system-api/src/api/model/llm/LlmProviderType.ts
|
|
147
147
|
var LlmProviderType;
|
|
148
|
-
((
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
((LlmProviderType) => {
|
|
149
|
+
LlmProviderType["ANTHROPIC"] = "ANTHROPIC";
|
|
150
|
+
LlmProviderType["OPENAI"] = "OPENAI";
|
|
151
151
|
})(LlmProviderType ||= {});
|
|
152
152
|
// packages/system-api/src/api/services/workload/IVmNodeService.ts
|
|
153
153
|
var import_management_api2 = require("@kinotic-ai/management-api");
|
|
@@ -159,7 +159,7 @@ class VmNodeServiceProxy extends import_core.CrudServiceProxy {
|
|
|
159
159
|
}
|
|
160
160
|
async findHistory(nodeId, pageable) {
|
|
161
161
|
const page = await this.findHistorySinglePage(nodeId, pageable);
|
|
162
|
-
return new import_core.FunctionalIterablePage(pageable, page, (
|
|
162
|
+
return new import_core.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(nodeId, pageable));
|
|
163
163
|
}
|
|
164
164
|
findHistorySinglePage(nodeId, pageable) {
|
|
165
165
|
return this.serviceProxy.invoke("findHistory", [nodeId, pageable]);
|
|
@@ -178,14 +178,14 @@ class WorkloadServiceProxy extends import_core2.CrudServiceProxy {
|
|
|
178
178
|
}
|
|
179
179
|
async findAllForNode(nodeId, pageable) {
|
|
180
180
|
const page = await this.findAllForNodeSinglePage(nodeId, pageable);
|
|
181
|
-
return new import_core2.FunctionalIterablePage(pageable, page, (
|
|
181
|
+
return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findAllForNodeSinglePage(nodeId, pageable));
|
|
182
182
|
}
|
|
183
183
|
findAllForNodeSinglePage(nodeId, pageable) {
|
|
184
184
|
return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
|
|
185
185
|
}
|
|
186
186
|
async findHistory(workloadId, pageable) {
|
|
187
187
|
const page = await this.findHistorySinglePage(workloadId, pageable);
|
|
188
|
-
return new import_core2.FunctionalIterablePage(pageable, page, (
|
|
188
|
+
return new import_core2.FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(workloadId, pageable));
|
|
189
189
|
}
|
|
190
190
|
findHistorySinglePage(workloadId, pageable) {
|
|
191
191
|
return this.serviceProxy.invoke("findHistory", [workloadId, pageable]);
|
|
@@ -241,14 +241,14 @@ class VmNodeOrchestrationServiceProxy {
|
|
|
241
241
|
}
|
|
242
242
|
// packages/system-api/src/api/services/ILogManager.ts
|
|
243
243
|
var LogLevel;
|
|
244
|
-
((
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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";
|
|
252
252
|
})(LogLevel ||= {});
|
|
253
253
|
|
|
254
254
|
class LoggerLevelsDescriptor {
|
|
@@ -349,11 +349,17 @@ class SystemOrganizationService {
|
|
|
349
349
|
findProjects(organizationId, pageable) {
|
|
350
350
|
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
351
351
|
}
|
|
352
|
-
findMembers(organizationId,
|
|
353
|
-
return this.serviceProxy.invoke("findMembers", [organizationId,
|
|
352
|
+
findMembers(organizationId, pageable) {
|
|
353
|
+
return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
|
|
354
|
+
}
|
|
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]);
|
|
354
360
|
}
|
|
355
|
-
|
|
356
|
-
return this.serviceProxy.invoke("
|
|
361
|
+
searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
|
|
362
|
+
return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
|
|
357
363
|
}
|
|
358
364
|
findPendingInvites(organizationId, applicationId, pageable) {
|
|
359
365
|
return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
|
|
@@ -402,7 +408,7 @@ class WatchEventService {
|
|
|
402
408
|
}
|
|
403
409
|
async findAll(pageable) {
|
|
404
410
|
const page = await this.findAllSinglePage(pageable);
|
|
405
|
-
return new import_core3.FunctionalIterablePage(pageable, page, (
|
|
411
|
+
return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(pageable));
|
|
406
412
|
}
|
|
407
413
|
findAllSinglePage(pageable) {
|
|
408
414
|
return this.serviceProxy.invoke("findAll", [pageable]);
|
package/dist/index.d.cts
CHANGED
|
@@ -458,7 +458,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
|
|
|
458
458
|
constructor(kinotic: IKinotic5);
|
|
459
459
|
getClusterInfo(): Promise<KinoticClusterInfo>;
|
|
460
460
|
}
|
|
461
|
-
import { Application, Organization, Project,
|
|
461
|
+
import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationMember, PendingInviteSummary } from "@kinotic-ai/management-api";
|
|
462
462
|
import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
|
|
463
463
|
/**
|
|
464
464
|
* Cross-organization reads for system users. Published in the system zone, which only
|
|
@@ -473,9 +473,10 @@ interface ISystemOrganizationService {
|
|
|
473
473
|
countOrganizations(): Promise<number>;
|
|
474
474
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
475
475
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
findMembers(organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
477
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
478
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
479
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
479
480
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
480
481
|
}
|
|
481
482
|
declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
@@ -487,11 +488,13 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
|
487
488
|
countOrganizations(): Promise<number>;
|
|
488
489
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
489
490
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
490
|
-
findMembers(organizationId: string,
|
|
491
|
-
searchMembers(searchText: string, organizationId: string,
|
|
491
|
+
findMembers(organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
492
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
493
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
494
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
492
495
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
493
496
|
}
|
|
494
|
-
import { MachineParticipantIdentity, MachineProvisionResult,
|
|
497
|
+
import { MachineParticipantIdentity, MachineProvisionResult, SystemParticipantIdentity } from "@kinotic-ai/management-api";
|
|
495
498
|
import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
|
|
496
499
|
/**
|
|
497
500
|
* The platform's own members: the system users who sign in to the system console, and the
|
|
@@ -501,8 +504,8 @@ import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
501
504
|
* manage through IMachineService.
|
|
502
505
|
*/
|
|
503
506
|
interface ISystemMemberService {
|
|
504
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
505
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
507
|
+
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
508
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
506
509
|
/** Lists the platform's machines, disabled ones included. */
|
|
507
510
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
508
511
|
/**
|
|
@@ -530,8 +533,8 @@ interface ISystemMemberService {
|
|
|
530
533
|
declare class SystemMemberService implements ISystemMemberService {
|
|
531
534
|
private readonly serviceProxy;
|
|
532
535
|
constructor(kinotic: IKinotic7);
|
|
533
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
534
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
536
|
+
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
537
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
535
538
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
536
539
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
537
540
|
rotateSecret(machineId: string): Promise<string>;
|
|
@@ -659,4 +662,4 @@ declare class LogManager implements ILogManager {
|
|
|
659
662
|
declare module "@kinotic-ai/core" {
|
|
660
663
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
661
664
|
}
|
|
662
|
-
export {
|
|
665
|
+
export { GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
package/dist/index.d.ts
CHANGED
|
@@ -458,7 +458,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
|
|
|
458
458
|
constructor(kinotic: IKinotic5);
|
|
459
459
|
getClusterInfo(): Promise<KinoticClusterInfo>;
|
|
460
460
|
}
|
|
461
|
-
import { Application, Organization, Project,
|
|
461
|
+
import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationMember, PendingInviteSummary } from "@kinotic-ai/management-api";
|
|
462
462
|
import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
|
|
463
463
|
/**
|
|
464
464
|
* Cross-organization reads for system users. Published in the system zone, which only
|
|
@@ -473,9 +473,10 @@ interface ISystemOrganizationService {
|
|
|
473
473
|
countOrganizations(): Promise<number>;
|
|
474
474
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
475
475
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
findMembers(organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
477
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
478
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
479
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
479
480
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
480
481
|
}
|
|
481
482
|
declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
@@ -487,11 +488,13 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
|
487
488
|
countOrganizations(): Promise<number>;
|
|
488
489
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
489
490
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
490
|
-
findMembers(organizationId: string,
|
|
491
|
-
searchMembers(searchText: string, organizationId: string,
|
|
491
|
+
findMembers(organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
492
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable3): Promise<Page3<OrganizationMember>>;
|
|
493
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
494
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable3): Promise<Page3<ApplicationParticipantIdentity>>;
|
|
492
495
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
493
496
|
}
|
|
494
|
-
import { MachineParticipantIdentity, MachineProvisionResult,
|
|
497
|
+
import { MachineParticipantIdentity, MachineProvisionResult, SystemParticipantIdentity } from "@kinotic-ai/management-api";
|
|
495
498
|
import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
|
|
496
499
|
/**
|
|
497
500
|
* The platform's own members: the system users who sign in to the system console, and the
|
|
@@ -501,8 +504,8 @@ import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
501
504
|
* manage through IMachineService.
|
|
502
505
|
*/
|
|
503
506
|
interface ISystemMemberService {
|
|
504
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
505
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
507
|
+
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
508
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
506
509
|
/** Lists the platform's machines, disabled ones included. */
|
|
507
510
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
508
511
|
/**
|
|
@@ -530,8 +533,8 @@ interface ISystemMemberService {
|
|
|
530
533
|
declare class SystemMemberService implements ISystemMemberService {
|
|
531
534
|
private readonly serviceProxy;
|
|
532
535
|
constructor(kinotic: IKinotic7);
|
|
533
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
534
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
536
|
+
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
537
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
535
538
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
536
539
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
537
540
|
rotateSecret(machineId: string): Promise<string>;
|
|
@@ -659,4 +662,4 @@ declare class LogManager implements ILogManager {
|
|
|
659
662
|
declare module "@kinotic-ai/core" {
|
|
660
663
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
661
664
|
}
|
|
662
|
-
export {
|
|
665
|
+
export { GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { ReconcileState } from "@kinotic-ai/management-api";
|
|
|
6
6
|
|
|
7
7
|
// packages/system-api/src/api/model/workload/VmProviderType.ts
|
|
8
8
|
var VmProviderType;
|
|
9
|
-
((
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
((VmProviderType) => {
|
|
10
|
+
VmProviderType["BOXLITE"] = "BOXLITE";
|
|
11
|
+
VmProviderType["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
|
|
12
12
|
})(VmProviderType ||= {});
|
|
13
13
|
|
|
14
14
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
@@ -35,9 +35,9 @@ class VmNode {
|
|
|
35
35
|
}
|
|
36
36
|
// packages/system-api/src/api/model/workload/VmNodeStatusType.ts
|
|
37
37
|
var VmNodeStatusType;
|
|
38
|
-
((
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
((VmNodeStatusType) => {
|
|
39
|
+
VmNodeStatusType["ONLINE"] = "ONLINE";
|
|
40
|
+
VmNodeStatusType["DRAINING"] = "DRAINING";
|
|
41
41
|
})(VmNodeStatusType ||= {});
|
|
42
42
|
// packages/system-api/src/api/model/workload/VmNodeRegistration.ts
|
|
43
43
|
class VmNodeRegistration {
|
|
@@ -75,9 +75,9 @@ class LlmConfiguration {
|
|
|
75
75
|
}
|
|
76
76
|
// packages/system-api/src/api/model/llm/LlmProviderType.ts
|
|
77
77
|
var LlmProviderType;
|
|
78
|
-
((
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
((LlmProviderType) => {
|
|
79
|
+
LlmProviderType["ANTHROPIC"] = "ANTHROPIC";
|
|
80
|
+
LlmProviderType["OPENAI"] = "OPENAI";
|
|
81
81
|
})(LlmProviderType ||= {});
|
|
82
82
|
// packages/system-api/src/api/services/workload/IVmNodeService.ts
|
|
83
83
|
import { SYSTEM_API_ZONE } from "@kinotic-ai/management-api";
|
|
@@ -89,7 +89,7 @@ class VmNodeServiceProxy extends CrudServiceProxy {
|
|
|
89
89
|
}
|
|
90
90
|
async findHistory(nodeId, pageable) {
|
|
91
91
|
const page = await this.findHistorySinglePage(nodeId, pageable);
|
|
92
|
-
return new FunctionalIterablePage(pageable, page, (
|
|
92
|
+
return new FunctionalIterablePage(pageable, page, (pageable) => this.findHistorySinglePage(nodeId, pageable));
|
|
93
93
|
}
|
|
94
94
|
findHistorySinglePage(nodeId, pageable) {
|
|
95
95
|
return this.serviceProxy.invoke("findHistory", [nodeId, pageable]);
|
|
@@ -108,14 +108,14 @@ class WorkloadServiceProxy extends CrudServiceProxy2 {
|
|
|
108
108
|
}
|
|
109
109
|
async findAllForNode(nodeId, pageable) {
|
|
110
110
|
const page = await this.findAllForNodeSinglePage(nodeId, pageable);
|
|
111
|
-
return new FunctionalIterablePage2(pageable, page, (
|
|
111
|
+
return new FunctionalIterablePage2(pageable, page, (pageable) => this.findAllForNodeSinglePage(nodeId, pageable));
|
|
112
112
|
}
|
|
113
113
|
findAllForNodeSinglePage(nodeId, pageable) {
|
|
114
114
|
return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
|
|
115
115
|
}
|
|
116
116
|
async findHistory(workloadId, pageable) {
|
|
117
117
|
const page = await this.findHistorySinglePage(workloadId, pageable);
|
|
118
|
-
return new FunctionalIterablePage2(pageable, page, (
|
|
118
|
+
return new FunctionalIterablePage2(pageable, page, (pageable) => this.findHistorySinglePage(workloadId, pageable));
|
|
119
119
|
}
|
|
120
120
|
findHistorySinglePage(workloadId, pageable) {
|
|
121
121
|
return this.serviceProxy.invoke("findHistory", [workloadId, pageable]);
|
|
@@ -171,14 +171,14 @@ class VmNodeOrchestrationServiceProxy {
|
|
|
171
171
|
}
|
|
172
172
|
// packages/system-api/src/api/services/ILogManager.ts
|
|
173
173
|
var LogLevel;
|
|
174
|
-
((
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
174
|
+
((LogLevel) => {
|
|
175
|
+
LogLevel["TRACE"] = "TRACE";
|
|
176
|
+
LogLevel["DEBUG"] = "DEBUG";
|
|
177
|
+
LogLevel["INFO"] = "INFO";
|
|
178
|
+
LogLevel["WARN"] = "WARN";
|
|
179
|
+
LogLevel["ERROR"] = "ERROR";
|
|
180
|
+
LogLevel["FATAL"] = "FATAL";
|
|
181
|
+
LogLevel["OFF"] = "OFF";
|
|
182
182
|
})(LogLevel ||= {});
|
|
183
183
|
|
|
184
184
|
class LoggerLevelsDescriptor {
|
|
@@ -281,11 +281,17 @@ class SystemOrganizationService {
|
|
|
281
281
|
findProjects(organizationId, pageable) {
|
|
282
282
|
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
283
283
|
}
|
|
284
|
-
findMembers(organizationId,
|
|
285
|
-
return this.serviceProxy.invoke("findMembers", [organizationId,
|
|
284
|
+
findMembers(organizationId, pageable) {
|
|
285
|
+
return this.serviceProxy.invoke("findMembers", [organizationId, pageable]);
|
|
286
286
|
}
|
|
287
|
-
searchMembers(searchText, organizationId,
|
|
288
|
-
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId,
|
|
287
|
+
searchMembers(searchText, organizationId, pageable) {
|
|
288
|
+
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, pageable]);
|
|
289
|
+
}
|
|
290
|
+
findApplicationUsers(organizationId, applicationId, pageable) {
|
|
291
|
+
return this.serviceProxy.invoke("findApplicationUsers", [organizationId, applicationId, pageable]);
|
|
292
|
+
}
|
|
293
|
+
searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
|
|
294
|
+
return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
|
|
289
295
|
}
|
|
290
296
|
findPendingInvites(organizationId, applicationId, pageable) {
|
|
291
297
|
return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
|
|
@@ -336,7 +342,7 @@ class WatchEventService {
|
|
|
336
342
|
}
|
|
337
343
|
async findAll(pageable) {
|
|
338
344
|
const page = await this.findAllSinglePage(pageable);
|
|
339
|
-
return new FunctionalIterablePage3(pageable, page, (
|
|
345
|
+
return new FunctionalIterablePage3(pageable, page, (pageable) => this.findAllSinglePage(pageable));
|
|
340
346
|
}
|
|
341
347
|
findAllSinglePage(pageable) {
|
|
342
348
|
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
@@ -421,31 +427,31 @@ class KinoticNodeInfo {
|
|
|
421
427
|
telemetryServiceInstanceId = null;
|
|
422
428
|
}
|
|
423
429
|
export {
|
|
424
|
-
|
|
425
|
-
WorkloadOrchestrationService,
|
|
426
|
-
WatchEventService,
|
|
427
|
-
VmProviderType,
|
|
428
|
-
VmNodeStatusType,
|
|
429
|
-
VmNodeServiceProxy,
|
|
430
|
-
VmNodeRegistration,
|
|
431
|
-
VmNodeOrchestrationServiceProxy,
|
|
432
|
-
VmNode,
|
|
433
|
-
TraceLogProperties,
|
|
434
|
-
SystemOrganizationService,
|
|
435
|
-
SystemMemberService,
|
|
436
|
-
SystemJobService,
|
|
437
|
-
SystemApiPlugin,
|
|
438
|
-
SingleLoggerLevelsDescriptor,
|
|
439
|
-
SYSTEM_API_ZONE11 as SYSTEM_API_ZONE,
|
|
440
|
-
LoggersDescriptor,
|
|
441
|
-
LoggerLevelsDescriptor,
|
|
442
|
-
LogManager,
|
|
443
|
-
LogLevel,
|
|
444
|
-
LlmProviderType,
|
|
445
|
-
LlmConfigurationService,
|
|
446
|
-
LlmConfiguration,
|
|
447
|
-
KinoticNodeInfo,
|
|
448
|
-
KinoticClusterInfoService,
|
|
430
|
+
GroupLoggerLevelsDescriptor,
|
|
449
431
|
KinoticClusterInfo,
|
|
450
|
-
|
|
432
|
+
KinoticClusterInfoService,
|
|
433
|
+
KinoticNodeInfo,
|
|
434
|
+
LlmConfiguration,
|
|
435
|
+
LlmConfigurationService,
|
|
436
|
+
LlmProviderType,
|
|
437
|
+
LogLevel,
|
|
438
|
+
LogManager,
|
|
439
|
+
LoggerLevelsDescriptor,
|
|
440
|
+
LoggersDescriptor,
|
|
441
|
+
SYSTEM_API_ZONE11 as SYSTEM_API_ZONE,
|
|
442
|
+
SingleLoggerLevelsDescriptor,
|
|
443
|
+
SystemApiPlugin,
|
|
444
|
+
SystemJobService,
|
|
445
|
+
SystemMemberService,
|
|
446
|
+
SystemOrganizationService,
|
|
447
|
+
TraceLogProperties,
|
|
448
|
+
VmNode,
|
|
449
|
+
VmNodeOrchestrationServiceProxy,
|
|
450
|
+
VmNodeRegistration,
|
|
451
|
+
VmNodeServiceProxy,
|
|
452
|
+
VmNodeStatusType,
|
|
453
|
+
VmProviderType,
|
|
454
|
+
WatchEventService,
|
|
455
|
+
WorkloadOrchestrationService,
|
|
456
|
+
WorkloadServiceProxy
|
|
451
457
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/system-api",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services platform machines and operators use.",
|
|
6
6
|
"files": [
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"coverage": "bun test --coverage --pass-with-no-tests"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@kinotic-ai/core": "^5.0.0-beta.
|
|
42
|
-
"@kinotic-ai/management-api": "^5.0.0-beta.
|
|
41
|
+
"@kinotic-ai/core": "^5.0.0-beta.26",
|
|
42
|
+
"@kinotic-ai/management-api": "^5.0.0-beta.62"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@kinotic-ai/core": "5.0.0-beta.
|
|
46
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
45
|
+
"@kinotic-ai/core": "5.0.0-beta.26",
|
|
46
|
+
"@kinotic-ai/management-api": "5.0.0-beta.62",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|