@kinotic-ai/system-api 5.0.0-beta.26 → 5.0.0-beta.27

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 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: () => import_management_api11.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 import_management_api11 = require("@kinotic-ai/management-api");
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");
@@ -433,6 +434,22 @@ class LlmConfigurationService {
433
434
  }
434
435
  }
435
436
 
437
+ // packages/system-api/src/api/services/ISystemJobService.ts
438
+ var import_management_api11 = require("@kinotic-ai/management-api");
439
+
440
+ class SystemJobService {
441
+ serviceProxy;
442
+ constructor(kinotic) {
443
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
444
+ }
445
+ findSystemJobs() {
446
+ return this.serviceProxy.invoke("findSystemJobs", []);
447
+ }
448
+ startSystemJob(name) {
449
+ return this.serviceProxy.invoke("startSystemJob", [name]);
450
+ }
451
+ }
452
+
436
453
  // packages/system-api/src/api/SystemApiPlugin.ts
437
454
  var SystemApiPlugin = {
438
455
  install(kinotic) {
@@ -445,7 +462,8 @@ var SystemApiPlugin = {
445
462
  systemOrganizations: new SystemOrganizationService(kinotic),
446
463
  systemMembers: new SystemMemberService(kinotic),
447
464
  watchEvents: new WatchEventService(kinotic),
448
- llmConfigurations: new LlmConfigurationService(kinotic)
465
+ llmConfigurations: new LlmConfigurationService(kinotic),
466
+ systemJobs: new SystemJobService(kinotic)
449
467
  };
450
468
  }
451
469
  };
package/dist/index.d.cts CHANGED
@@ -461,7 +461,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
461
461
  import { Application, Organization, Project, PendingInviteSummary, Member } 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 platform operators. Published in the system zone, which only
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
  */
@@ -494,7 +494,7 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
494
494
  import { MachineParticipantIdentity, MachineProvisionResult, Member as Member2 } from "@kinotic-ai/management-api";
495
495
  import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
496
496
  /**
497
- * The platform's own members: the operators who sign in to the system console, and the
497
+ * The platform's own members: the system users who sign in to the system console, and the
498
498
  * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
499
499
  * Published in the system zone, which only SYSTEM participants may address; every method works
500
500
  * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
@@ -562,7 +562,7 @@ declare class WatchEventService implements IWatchEventService {
562
562
  }
563
563
  import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
564
564
  /**
565
- * The large language models the platform's services call, each an LlmConfiguration that platform operators
565
+ * The large language models the platform's services call, each an LlmConfiguration that system users
566
566
  * manage and a service selects by name. A configuration's API key is given on save and held in the platform's
567
567
  * scope of the secret storage until a save gives another or the configuration is deleted. Published in the
568
568
  * system zone, which only SYSTEM participants and the platform's own cluster members may address.
@@ -591,6 +591,48 @@ declare class LlmConfigurationService implements ILlmConfigurationService {
591
591
  save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
592
592
  deleteById(id: string): Promise<void>;
593
593
  }
594
+ import { JobRun } from "@kinotic-ai/management-api";
595
+ import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
596
+ /**
597
+ * A grind job the platform's operators can start on demand, as the console lists it.
598
+ */
599
+ interface SystemJobDescriptor {
600
+ /**
601
+ * The name identifying the job, which is also the name recorded on each of its runs.
602
+ */
603
+ readonly name: string;
604
+ /**
605
+ * The version of the job's definition, recorded on each of its runs.
606
+ */
607
+ readonly version: string | null;
608
+ /**
609
+ * What the job does.
610
+ */
611
+ readonly description: string | null;
612
+ }
613
+ /**
614
+ * Starts the platform's system jobs on demand. A run is owned by the platform and executes on the
615
+ * node that started it, and is listed, watched and read through Kinotic.jobMonitoring like any
616
+ * other job run.
617
+ */
618
+ interface ISystemJobService {
619
+ /**
620
+ * Lists the system jobs that can be started, ordered by name.
621
+ */
622
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
623
+ /**
624
+ * Starts a run of the named system job, resolving with the run once it and its task ledger are
625
+ * recorded; rejects when no system job has the given name.
626
+ * @param name the name of the job to run
627
+ */
628
+ startSystemJob(name: string): Promise<JobRun>;
629
+ }
630
+ declare class SystemJobService implements ISystemJobService {
631
+ private readonly serviceProxy;
632
+ constructor(kinotic: IKinotic10);
633
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
634
+ startSystemJob(name: string): Promise<JobRun>;
635
+ }
594
636
  interface ISystemApiExtension {
595
637
  vmNodes: IVmNodeService;
596
638
  workloads: IWorkloadService;
@@ -601,12 +643,13 @@ interface ISystemApiExtension {
601
643
  systemMembers: ISystemMemberService;
602
644
  watchEvents: IWatchEventService;
603
645
  llmConfigurations: ILlmConfigurationService;
646
+ systemJobs: ISystemJobService;
604
647
  }
605
648
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
606
- import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
649
+ import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
607
650
  declare class LogManager implements ILogManager {
608
651
  private readonly serviceProxy;
609
- constructor(kinotic: IKinotic10);
652
+ constructor(kinotic: IKinotic11);
610
653
  loggers(nodeId: string): Promise<LoggersDescriptor>;
611
654
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
612
655
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -616,4 +659,4 @@ declare class LogManager implements ILogManager {
616
659
  declare module "@kinotic-ai/core" {
617
660
  interface KinoticSingleton extends ISystemApiExtension {}
618
661
  }
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 };
662
+ 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
@@ -461,7 +461,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
461
461
  import { Application, Organization, Project, PendingInviteSummary, Member } 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 platform operators. Published in the system zone, which only
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
  */
@@ -494,7 +494,7 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
494
494
  import { MachineParticipantIdentity, MachineProvisionResult, Member as Member2 } from "@kinotic-ai/management-api";
495
495
  import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
496
496
  /**
497
- * The platform's own members: the operators who sign in to the system console, and the
497
+ * The platform's own members: the system users who sign in to the system console, and the
498
498
  * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
499
499
  * Published in the system zone, which only SYSTEM participants may address; every method works
500
500
  * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
@@ -562,7 +562,7 @@ declare class WatchEventService implements IWatchEventService {
562
562
  }
563
563
  import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
564
564
  /**
565
- * The large language models the platform's services call, each an LlmConfiguration that platform operators
565
+ * The large language models the platform's services call, each an LlmConfiguration that system users
566
566
  * manage and a service selects by name. A configuration's API key is given on save and held in the platform's
567
567
  * scope of the secret storage until a save gives another or the configuration is deleted. Published in the
568
568
  * system zone, which only SYSTEM participants and the platform's own cluster members may address.
@@ -591,6 +591,48 @@ declare class LlmConfigurationService implements ILlmConfigurationService {
591
591
  save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
592
592
  deleteById(id: string): Promise<void>;
593
593
  }
594
+ import { JobRun } from "@kinotic-ai/management-api";
595
+ import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
596
+ /**
597
+ * A grind job the platform's operators can start on demand, as the console lists it.
598
+ */
599
+ interface SystemJobDescriptor {
600
+ /**
601
+ * The name identifying the job, which is also the name recorded on each of its runs.
602
+ */
603
+ readonly name: string;
604
+ /**
605
+ * The version of the job's definition, recorded on each of its runs.
606
+ */
607
+ readonly version: string | null;
608
+ /**
609
+ * What the job does.
610
+ */
611
+ readonly description: string | null;
612
+ }
613
+ /**
614
+ * Starts the platform's system jobs on demand. A run is owned by the platform and executes on the
615
+ * node that started it, and is listed, watched and read through Kinotic.jobMonitoring like any
616
+ * other job run.
617
+ */
618
+ interface ISystemJobService {
619
+ /**
620
+ * Lists the system jobs that can be started, ordered by name.
621
+ */
622
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
623
+ /**
624
+ * Starts a run of the named system job, resolving with the run once it and its task ledger are
625
+ * recorded; rejects when no system job has the given name.
626
+ * @param name the name of the job to run
627
+ */
628
+ startSystemJob(name: string): Promise<JobRun>;
629
+ }
630
+ declare class SystemJobService implements ISystemJobService {
631
+ private readonly serviceProxy;
632
+ constructor(kinotic: IKinotic10);
633
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
634
+ startSystemJob(name: string): Promise<JobRun>;
635
+ }
594
636
  interface ISystemApiExtension {
595
637
  vmNodes: IVmNodeService;
596
638
  workloads: IWorkloadService;
@@ -601,12 +643,13 @@ interface ISystemApiExtension {
601
643
  systemMembers: ISystemMemberService;
602
644
  watchEvents: IWatchEventService;
603
645
  llmConfigurations: ILlmConfigurationService;
646
+ systemJobs: ISystemJobService;
604
647
  }
605
648
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
606
- import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
649
+ import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
607
650
  declare class LogManager implements ILogManager {
608
651
  private readonly serviceProxy;
609
- constructor(kinotic: IKinotic10);
652
+ constructor(kinotic: IKinotic11);
610
653
  loggers(nodeId: string): Promise<LoggersDescriptor>;
611
654
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
612
655
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -616,4 +659,4 @@ declare class LogManager implements ILogManager {
616
659
  declare module "@kinotic-ai/core" {
617
660
  interface KinoticSingleton extends ISystemApiExtension {}
618
661
  }
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 };
662
+ 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 SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
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";
@@ -368,6 +368,22 @@ class LlmConfigurationService {
368
368
  }
369
369
  }
370
370
 
371
+ // packages/system-api/src/api/services/ISystemJobService.ts
372
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
373
+
374
+ class SystemJobService {
375
+ serviceProxy;
376
+ constructor(kinotic) {
377
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.SystemJobService`);
378
+ }
379
+ findSystemJobs() {
380
+ return this.serviceProxy.invoke("findSystemJobs", []);
381
+ }
382
+ startSystemJob(name) {
383
+ return this.serviceProxy.invoke("startSystemJob", [name]);
384
+ }
385
+ }
386
+
371
387
  // packages/system-api/src/api/SystemApiPlugin.ts
372
388
  var SystemApiPlugin = {
373
389
  install(kinotic) {
@@ -380,7 +396,8 @@ var SystemApiPlugin = {
380
396
  systemOrganizations: new SystemOrganizationService(kinotic),
381
397
  systemMembers: new SystemMemberService(kinotic),
382
398
  watchEvents: new WatchEventService(kinotic),
383
- llmConfigurations: new LlmConfigurationService(kinotic)
399
+ llmConfigurations: new LlmConfigurationService(kinotic),
400
+ systemJobs: new SystemJobService(kinotic)
384
401
  };
385
402
  }
386
403
  };
@@ -416,9 +433,10 @@ export {
416
433
  TraceLogProperties,
417
434
  SystemOrganizationService,
418
435
  SystemMemberService,
436
+ SystemJobService,
419
437
  SystemApiPlugin,
420
438
  SingleLoggerLevelsDescriptor,
421
- SYSTEM_API_ZONE10 as SYSTEM_API_ZONE,
439
+ SYSTEM_API_ZONE11 as SYSTEM_API_ZONE,
422
440
  LoggersDescriptor,
423
441
  LoggerLevelsDescriptor,
424
442
  LogManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.26",
3
+ "version": "5.0.0-beta.27",
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.59"
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.60"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@kinotic-ai/core": "5.0.0-beta.25",
46
- "@kinotic-ai/management-api": "5.0.0-beta.59",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.60",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }