@kinotic-ai/system-api 5.0.0-beta.26 → 5.0.0-beta.28
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 +31 -7
- package/dist/index.d.cts +63 -17
- package/dist/index.d.ts +63 -17
- package/dist/index.js +31 -7
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -52,9 +52,10 @@ __export(exports_src, {
|
|
|
52
52
|
TraceLogProperties: () => TraceLogProperties,
|
|
53
53
|
SystemOrganizationService: () => SystemOrganizationService,
|
|
54
54
|
SystemMemberService: () => SystemMemberService,
|
|
55
|
+
SystemJobService: () => SystemJobService,
|
|
55
56
|
SystemApiPlugin: () => SystemApiPlugin,
|
|
56
57
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
57
|
-
SYSTEM_API_ZONE: () =>
|
|
58
|
+
SYSTEM_API_ZONE: () => import_management_api12.SYSTEM_API_ZONE,
|
|
58
59
|
LoggersDescriptor: () => LoggersDescriptor,
|
|
59
60
|
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
60
61
|
LogManager: () => LogManager,
|
|
@@ -68,7 +69,7 @@ __export(exports_src, {
|
|
|
68
69
|
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
|
|
69
70
|
});
|
|
70
71
|
module.exports = __toCommonJS(exports_src);
|
|
71
|
-
var
|
|
72
|
+
var import_management_api12 = require("@kinotic-ai/management-api");
|
|
72
73
|
|
|
73
74
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
74
75
|
var import_management_api = require("@kinotic-ai/management-api");
|
|
@@ -348,11 +349,17 @@ class SystemOrganizationService {
|
|
|
348
349
|
findProjects(organizationId, pageable) {
|
|
349
350
|
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
350
351
|
}
|
|
351
|
-
findMembers(organizationId,
|
|
352
|
-
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]);
|
|
353
360
|
}
|
|
354
|
-
|
|
355
|
-
return this.serviceProxy.invoke("
|
|
361
|
+
searchApplicationUsers(searchText, organizationId, applicationId, pageable) {
|
|
362
|
+
return this.serviceProxy.invoke("searchApplicationUsers", [searchText, organizationId, applicationId, pageable]);
|
|
356
363
|
}
|
|
357
364
|
findPendingInvites(organizationId, applicationId, pageable) {
|
|
358
365
|
return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
|
|
@@ -433,6 +440,22 @@ class LlmConfigurationService {
|
|
|
433
440
|
}
|
|
434
441
|
}
|
|
435
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
|
+
|
|
436
459
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
437
460
|
var SystemApiPlugin = {
|
|
438
461
|
install(kinotic) {
|
|
@@ -445,7 +468,8 @@ var SystemApiPlugin = {
|
|
|
445
468
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
446
469
|
systemMembers: new SystemMemberService(kinotic),
|
|
447
470
|
watchEvents: new WatchEventService(kinotic),
|
|
448
|
-
llmConfigurations: new LlmConfigurationService(kinotic)
|
|
471
|
+
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
472
|
+
systemJobs: new SystemJobService(kinotic)
|
|
449
473
|
};
|
|
450
474
|
}
|
|
451
475
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -458,10 +458,10 @@ 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
|
-
* Cross-organization reads for
|
|
464
|
+
* Cross-organization reads for system users. Published in the system zone, which only
|
|
465
465
|
* SYSTEM participants may address, so every method takes the target organization explicitly
|
|
466
466
|
* instead of resolving it from the caller's scope.
|
|
467
467
|
*/
|
|
@@ -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,22 +488,24 @@ 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
|
-
* The platform's own members: the
|
|
500
|
+
* The platform's own members: the system users who sign in to the system console, and the
|
|
498
501
|
* SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
|
|
499
502
|
* Published in the system zone, which only SYSTEM participants may address; every method works
|
|
500
503
|
* on SYSTEM scope alone, so an organization's users and machines stay that organization's to
|
|
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>;
|
|
@@ -562,7 +565,7 @@ declare class WatchEventService implements IWatchEventService {
|
|
|
562
565
|
}
|
|
563
566
|
import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
|
|
564
567
|
/**
|
|
565
|
-
* The large language models the platform's services call, each an LlmConfiguration that
|
|
568
|
+
* The large language models the platform's services call, each an LlmConfiguration that system users
|
|
566
569
|
* manage and a service selects by name. A configuration's API key is given on save and held in the platform's
|
|
567
570
|
* scope of the secret storage until a save gives another or the configuration is deleted. Published in the
|
|
568
571
|
* system zone, which only SYSTEM participants and the platform's own cluster members may address.
|
|
@@ -591,6 +594,48 @@ declare class LlmConfigurationService implements ILlmConfigurationService {
|
|
|
591
594
|
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
592
595
|
deleteById(id: string): Promise<void>;
|
|
593
596
|
}
|
|
597
|
+
import { JobRun } from "@kinotic-ai/management-api";
|
|
598
|
+
import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
|
|
599
|
+
/**
|
|
600
|
+
* A grind job the platform's operators can start on demand, as the console lists it.
|
|
601
|
+
*/
|
|
602
|
+
interface SystemJobDescriptor {
|
|
603
|
+
/**
|
|
604
|
+
* The name identifying the job, which is also the name recorded on each of its runs.
|
|
605
|
+
*/
|
|
606
|
+
readonly name: string;
|
|
607
|
+
/**
|
|
608
|
+
* The version of the job's definition, recorded on each of its runs.
|
|
609
|
+
*/
|
|
610
|
+
readonly version: string | null;
|
|
611
|
+
/**
|
|
612
|
+
* What the job does.
|
|
613
|
+
*/
|
|
614
|
+
readonly description: string | null;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Starts the platform's system jobs on demand. A run is owned by the platform and executes on the
|
|
618
|
+
* node that started it, and is listed, watched and read through Kinotic.jobMonitoring like any
|
|
619
|
+
* other job run.
|
|
620
|
+
*/
|
|
621
|
+
interface ISystemJobService {
|
|
622
|
+
/**
|
|
623
|
+
* Lists the system jobs that can be started, ordered by name.
|
|
624
|
+
*/
|
|
625
|
+
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
626
|
+
/**
|
|
627
|
+
* Starts a run of the named system job, resolving with the run once it and its task ledger are
|
|
628
|
+
* recorded; rejects when no system job has the given name.
|
|
629
|
+
* @param name the name of the job to run
|
|
630
|
+
*/
|
|
631
|
+
startSystemJob(name: string): Promise<JobRun>;
|
|
632
|
+
}
|
|
633
|
+
declare class SystemJobService implements ISystemJobService {
|
|
634
|
+
private readonly serviceProxy;
|
|
635
|
+
constructor(kinotic: IKinotic10);
|
|
636
|
+
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
637
|
+
startSystemJob(name: string): Promise<JobRun>;
|
|
638
|
+
}
|
|
594
639
|
interface ISystemApiExtension {
|
|
595
640
|
vmNodes: IVmNodeService;
|
|
596
641
|
workloads: IWorkloadService;
|
|
@@ -601,12 +646,13 @@ interface ISystemApiExtension {
|
|
|
601
646
|
systemMembers: ISystemMemberService;
|
|
602
647
|
watchEvents: IWatchEventService;
|
|
603
648
|
llmConfigurations: ILlmConfigurationService;
|
|
649
|
+
systemJobs: ISystemJobService;
|
|
604
650
|
}
|
|
605
651
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
606
|
-
import { IKinotic as
|
|
652
|
+
import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
|
|
607
653
|
declare class LogManager implements ILogManager {
|
|
608
654
|
private readonly serviceProxy;
|
|
609
|
-
constructor(kinotic:
|
|
655
|
+
constructor(kinotic: IKinotic11);
|
|
610
656
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
611
657
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
612
658
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -616,4 +662,4 @@ declare class LogManager implements ILogManager {
|
|
|
616
662
|
declare module "@kinotic-ai/core" {
|
|
617
663
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
618
664
|
}
|
|
619
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
|
665
|
+
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemJobService, SystemJobDescriptor, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemJobService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
package/dist/index.d.ts
CHANGED
|
@@ -458,10 +458,10 @@ 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
|
-
* Cross-organization reads for
|
|
464
|
+
* Cross-organization reads for system users. Published in the system zone, which only
|
|
465
465
|
* SYSTEM participants may address, so every method takes the target organization explicitly
|
|
466
466
|
* instead of resolving it from the caller's scope.
|
|
467
467
|
*/
|
|
@@ -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,22 +488,24 @@ 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
|
-
* The platform's own members: the
|
|
500
|
+
* The platform's own members: the system users who sign in to the system console, and the
|
|
498
501
|
* SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
|
|
499
502
|
* Published in the system zone, which only SYSTEM participants may address; every method works
|
|
500
503
|
* on SYSTEM scope alone, so an organization's users and machines stay that organization's to
|
|
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>;
|
|
@@ -562,7 +565,7 @@ declare class WatchEventService implements IWatchEventService {
|
|
|
562
565
|
}
|
|
563
566
|
import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
|
|
564
567
|
/**
|
|
565
|
-
* The large language models the platform's services call, each an LlmConfiguration that
|
|
568
|
+
* The large language models the platform's services call, each an LlmConfiguration that system users
|
|
566
569
|
* manage and a service selects by name. A configuration's API key is given on save and held in the platform's
|
|
567
570
|
* scope of the secret storage until a save gives another or the configuration is deleted. Published in the
|
|
568
571
|
* system zone, which only SYSTEM participants and the platform's own cluster members may address.
|
|
@@ -591,6 +594,48 @@ declare class LlmConfigurationService implements ILlmConfigurationService {
|
|
|
591
594
|
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
592
595
|
deleteById(id: string): Promise<void>;
|
|
593
596
|
}
|
|
597
|
+
import { JobRun } from "@kinotic-ai/management-api";
|
|
598
|
+
import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
|
|
599
|
+
/**
|
|
600
|
+
* A grind job the platform's operators can start on demand, as the console lists it.
|
|
601
|
+
*/
|
|
602
|
+
interface SystemJobDescriptor {
|
|
603
|
+
/**
|
|
604
|
+
* The name identifying the job, which is also the name recorded on each of its runs.
|
|
605
|
+
*/
|
|
606
|
+
readonly name: string;
|
|
607
|
+
/**
|
|
608
|
+
* The version of the job's definition, recorded on each of its runs.
|
|
609
|
+
*/
|
|
610
|
+
readonly version: string | null;
|
|
611
|
+
/**
|
|
612
|
+
* What the job does.
|
|
613
|
+
*/
|
|
614
|
+
readonly description: string | null;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Starts the platform's system jobs on demand. A run is owned by the platform and executes on the
|
|
618
|
+
* node that started it, and is listed, watched and read through Kinotic.jobMonitoring like any
|
|
619
|
+
* other job run.
|
|
620
|
+
*/
|
|
621
|
+
interface ISystemJobService {
|
|
622
|
+
/**
|
|
623
|
+
* Lists the system jobs that can be started, ordered by name.
|
|
624
|
+
*/
|
|
625
|
+
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
626
|
+
/**
|
|
627
|
+
* Starts a run of the named system job, resolving with the run once it and its task ledger are
|
|
628
|
+
* recorded; rejects when no system job has the given name.
|
|
629
|
+
* @param name the name of the job to run
|
|
630
|
+
*/
|
|
631
|
+
startSystemJob(name: string): Promise<JobRun>;
|
|
632
|
+
}
|
|
633
|
+
declare class SystemJobService implements ISystemJobService {
|
|
634
|
+
private readonly serviceProxy;
|
|
635
|
+
constructor(kinotic: IKinotic10);
|
|
636
|
+
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
637
|
+
startSystemJob(name: string): Promise<JobRun>;
|
|
638
|
+
}
|
|
594
639
|
interface ISystemApiExtension {
|
|
595
640
|
vmNodes: IVmNodeService;
|
|
596
641
|
workloads: IWorkloadService;
|
|
@@ -601,12 +646,13 @@ interface ISystemApiExtension {
|
|
|
601
646
|
systemMembers: ISystemMemberService;
|
|
602
647
|
watchEvents: IWatchEventService;
|
|
603
648
|
llmConfigurations: ILlmConfigurationService;
|
|
649
|
+
systemJobs: ISystemJobService;
|
|
604
650
|
}
|
|
605
651
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
606
|
-
import { IKinotic as
|
|
652
|
+
import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
|
|
607
653
|
declare class LogManager implements ILogManager {
|
|
608
654
|
private readonly serviceProxy;
|
|
609
|
-
constructor(kinotic:
|
|
655
|
+
constructor(kinotic: IKinotic11);
|
|
610
656
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
611
657
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
612
658
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -616,4 +662,4 @@ declare class LogManager implements ILogManager {
|
|
|
616
662
|
declare module "@kinotic-ai/core" {
|
|
617
663
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
618
664
|
}
|
|
619
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
|
665
|
+
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemJobService, SystemJobDescriptor, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemJobService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/system-api/src/index.ts
|
|
2
|
-
import { SYSTEM_API_ZONE as
|
|
2
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
|
|
3
3
|
|
|
4
4
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
5
5
|
import { ReconcileState } from "@kinotic-ai/management-api";
|
|
@@ -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
|
+
}
|
|
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]);
|
|
286
292
|
}
|
|
287
|
-
|
|
288
|
-
return this.serviceProxy.invoke("
|
|
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]);
|
|
@@ -368,6 +374,22 @@ class LlmConfigurationService {
|
|
|
368
374
|
}
|
|
369
375
|
}
|
|
370
376
|
|
|
377
|
+
// packages/system-api/src/api/services/ISystemJobService.ts
|
|
378
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
|
|
379
|
+
|
|
380
|
+
class SystemJobService {
|
|
381
|
+
serviceProxy;
|
|
382
|
+
constructor(kinotic) {
|
|
383
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.SystemJobService`);
|
|
384
|
+
}
|
|
385
|
+
findSystemJobs() {
|
|
386
|
+
return this.serviceProxy.invoke("findSystemJobs", []);
|
|
387
|
+
}
|
|
388
|
+
startSystemJob(name) {
|
|
389
|
+
return this.serviceProxy.invoke("startSystemJob", [name]);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
371
393
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
372
394
|
var SystemApiPlugin = {
|
|
373
395
|
install(kinotic) {
|
|
@@ -380,7 +402,8 @@ var SystemApiPlugin = {
|
|
|
380
402
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
381
403
|
systemMembers: new SystemMemberService(kinotic),
|
|
382
404
|
watchEvents: new WatchEventService(kinotic),
|
|
383
|
-
llmConfigurations: new LlmConfigurationService(kinotic)
|
|
405
|
+
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
406
|
+
systemJobs: new SystemJobService(kinotic)
|
|
384
407
|
};
|
|
385
408
|
}
|
|
386
409
|
};
|
|
@@ -416,9 +439,10 @@ export {
|
|
|
416
439
|
TraceLogProperties,
|
|
417
440
|
SystemOrganizationService,
|
|
418
441
|
SystemMemberService,
|
|
442
|
+
SystemJobService,
|
|
419
443
|
SystemApiPlugin,
|
|
420
444
|
SingleLoggerLevelsDescriptor,
|
|
421
|
-
|
|
445
|
+
SYSTEM_API_ZONE11 as SYSTEM_API_ZONE,
|
|
422
446
|
LoggersDescriptor,
|
|
423
447
|
LoggerLevelsDescriptor,
|
|
424
448
|
LogManager,
|
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.28",
|
|
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": [
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@kinotic-ai/core": "^5.0.0-beta.25",
|
|
42
|
-
"@kinotic-ai/management-api": "^5.0.0-beta.
|
|
42
|
+
"@kinotic-ai/management-api": "^5.0.0-beta.61"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@kinotic-ai/core": "5.0.0-beta.25",
|
|
46
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
46
|
+
"@kinotic-ai/management-api": "5.0.0-beta.61",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|