@kinotic-ai/system-api 5.0.0-beta.41 → 5.0.0-beta.42

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
@@ -40,6 +40,7 @@ var __export = (target, all) => {
40
40
  // packages/system-api/src/index.ts
41
41
  var exports_src = {};
42
42
  __export(exports_src, {
43
+ ClusterVulnerabilityService: () => ClusterVulnerabilityService,
43
44
  EnterpriseFeature: () => EnterpriseFeature,
44
45
  GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
45
46
  KinoticClusterInfo: () => KinoticClusterInfo,
@@ -55,7 +56,8 @@ __export(exports_src, {
55
56
  LogManager: () => LogManager,
56
57
  LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
57
58
  LoggersDescriptor: () => LoggersDescriptor,
58
- SYSTEM_API_ZONE: () => import_management_api13.SYSTEM_API_ZONE,
59
+ SYSTEM_API_ZONE: () => import_management_api14.SYSTEM_API_ZONE,
60
+ ServerVulnerabilities: () => ServerVulnerabilities,
59
61
  SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
60
62
  SystemApiPlugin: () => SystemApiPlugin,
61
63
  SystemJobService: () => SystemJobService,
@@ -73,7 +75,7 @@ __export(exports_src, {
73
75
  WorkloadServiceProxy: () => WorkloadServiceProxy
74
76
  });
75
77
  module.exports = __toCommonJS(exports_src);
76
- var import_management_api13 = require("@kinotic-ai/management-api");
78
+ var import_management_api14 = require("@kinotic-ai/management-api");
77
79
 
78
80
  // packages/system-api/src/api/model/workload/VmNode.ts
79
81
  var import_management_api = require("@kinotic-ai/management-api");
@@ -327,13 +329,26 @@ class KinoticClusterInfoService {
327
329
  }
328
330
  }
329
331
 
330
- // packages/system-api/src/api/services/ISystemOrganizationService.ts
332
+ // packages/system-api/src/api/services/IClusterVulnerabilityService.ts
331
333
  var import_management_api7 = require("@kinotic-ai/management-api");
332
334
 
335
+ class ClusterVulnerabilityService {
336
+ serviceProxy;
337
+ constructor(kinotic) {
338
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api7.SYSTEM_API_ZONE}~org.kinotic.system.api.services.ClusterVulnerabilityService`);
339
+ }
340
+ findAll() {
341
+ return this.serviceProxy.invoke("findAll");
342
+ }
343
+ }
344
+
345
+ // packages/system-api/src/api/services/ISystemOrganizationService.ts
346
+ var import_management_api8 = require("@kinotic-ai/management-api");
347
+
333
348
  class SystemOrganizationService {
334
349
  serviceProxy;
335
350
  constructor(kinotic) {
336
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api7.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
351
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
337
352
  }
338
353
  findOrganizations(pageable) {
339
354
  return this.serviceProxy.invoke("findOrganizations", [pageable]);
@@ -371,12 +386,12 @@ class SystemOrganizationService {
371
386
  }
372
387
 
373
388
  // packages/system-api/src/api/services/ISystemMemberService.ts
374
- var import_management_api8 = require("@kinotic-ai/management-api");
389
+ var import_management_api9 = require("@kinotic-ai/management-api");
375
390
 
376
391
  class SystemMemberService {
377
392
  serviceProxy;
378
393
  constructor(kinotic) {
379
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
394
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
380
395
  }
381
396
  findUsers(pageable) {
382
397
  return this.serviceProxy.invoke("findUsers", [pageable]);
@@ -402,13 +417,13 @@ class SystemMemberService {
402
417
  }
403
418
 
404
419
  // packages/system-api/src/api/services/IWatchEventService.ts
405
- var import_management_api9 = require("@kinotic-ai/management-api");
420
+ var import_management_api10 = require("@kinotic-ai/management-api");
406
421
  var import_core3 = require("@kinotic-ai/core");
407
422
 
408
423
  class WatchEventService {
409
424
  serviceProxy;
410
425
  constructor(kinotic) {
411
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
426
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
412
427
  }
413
428
  async findAll(pageable) {
414
429
  const page = await this.findAllSinglePage(pageable);
@@ -420,12 +435,12 @@ class WatchEventService {
420
435
  }
421
436
 
422
437
  // packages/system-api/src/api/services/ILlmConfigurationService.ts
423
- var import_management_api10 = require("@kinotic-ai/management-api");
438
+ var import_management_api11 = require("@kinotic-ai/management-api");
424
439
 
425
440
  class LlmConfigurationService {
426
441
  serviceProxy;
427
442
  constructor(kinotic) {
428
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
443
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
429
444
  }
430
445
  findAll(pageable) {
431
446
  return this.serviceProxy.invoke("findAll", [pageable]);
@@ -445,12 +460,12 @@ class LlmConfigurationService {
445
460
  }
446
461
 
447
462
  // packages/system-api/src/api/services/ISystemJobService.ts
448
- var import_management_api11 = require("@kinotic-ai/management-api");
463
+ var import_management_api12 = require("@kinotic-ai/management-api");
449
464
 
450
465
  class SystemJobService {
451
466
  serviceProxy;
452
467
  constructor(kinotic) {
453
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
468
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
454
469
  }
455
470
  findSystemJobs() {
456
471
  return this.serviceProxy.invoke("findSystemJobs", []);
@@ -461,12 +476,12 @@ class SystemJobService {
461
476
  }
462
477
 
463
478
  // packages/system-api/src/api/services/ILicenseService.ts
464
- var import_management_api12 = require("@kinotic-ai/management-api");
479
+ var import_management_api13 = require("@kinotic-ai/management-api");
465
480
 
466
481
  class LicenseService {
467
482
  serviceProxy;
468
483
  constructor(kinotic) {
469
- this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
484
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api13.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
470
485
  }
471
486
  findCurrent() {
472
487
  return this.serviceProxy.invoke("findCurrent", []);
@@ -488,6 +503,7 @@ var SystemApiPlugin = {
488
503
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
489
504
  logManager: new LogManager(kinotic),
490
505
  clusterInfo: new KinoticClusterInfoService(kinotic),
506
+ clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
491
507
  systemOrganizations: new SystemOrganizationService(kinotic),
492
508
  systemMembers: new SystemMemberService(kinotic),
493
509
  watchEvents: new WatchEventService(kinotic),
@@ -516,6 +532,15 @@ class KinoticNodeInfo {
516
532
  telemetryServiceName = null;
517
533
  telemetryServiceInstanceId = null;
518
534
  }
535
+ // packages/system-api/src/api/model/cluster/ServerVulnerabilities.ts
536
+ class ServerVulnerabilities {
537
+ serverName = "";
538
+ version = null;
539
+ nodeCount = 0;
540
+ componentCount = 0;
541
+ findings = [];
542
+ error = null;
543
+ }
519
544
  // packages/system-api/src/api/model/license/EnterpriseFeature.ts
520
545
  var EnterpriseFeature;
521
546
  ((EnterpriseFeature) => {
package/dist/index.d.cts CHANGED
@@ -458,8 +458,45 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
458
458
  constructor(kinotic: IKinotic5);
459
459
  getClusterInfo(): Promise<KinoticClusterInfo>;
460
460
  }
461
+ import { IKinotic as IKinotic6 } from "@kinotic-ai/core";
462
+ import { VulnerabilityFinding } from "@kinotic-ai/management-api";
463
+ /**
464
+ * The advisories affecting the libraries one build of a Kinotic server runs, with the cluster nodes
465
+ * running that build. Mirrors the server's org.kinotic.system.api.model.cluster.ServerVulnerabilities.
466
+ */
467
+ declare class ServerVulnerabilities {
468
+ /** The server kind the build is, such as management, system or app. */
469
+ serverName: string;
470
+ /** The Kinotic version of the build; null when its nodes run from classes rather than a packaged jar. */
471
+ version: string | null;
472
+ /** How many nodes run the build. */
473
+ nodeCount: number;
474
+ /** How many libraries the build runs; none when its nodes' classpath holds no library list, such as when an IDE runs them from classes. */
475
+ componentCount: number;
476
+ /** The advisories affecting the build's libraries, the most severe first. */
477
+ findings: VulnerabilityFinding[];
478
+ /** Why the build's libraries could not be checked, or null when they were; a build that could not be checked has no findings. */
479
+ error: string | null;
480
+ }
481
+ /**
482
+ * The vulnerability advisories affecting the Kinotic cluster itself: the libraries each running
483
+ * server build was built with, checked against the advisories read from OSV.
484
+ */
485
+ interface IClusterVulnerabilityService {
486
+ /**
487
+ * Checks the libraries of every server build the cluster's nodes run against the advisories.
488
+ * @return one entry per server build running, the nodes of one server kind and version that list
489
+ * the same libraries, ordered by server kind then version
490
+ */
491
+ findAll(): Promise<ServerVulnerabilities[]>;
492
+ }
493
+ declare class ClusterVulnerabilityService implements IClusterVulnerabilityService {
494
+ private readonly serviceProxy;
495
+ constructor(kinotic: IKinotic6);
496
+ findAll(): Promise<ServerVulnerabilities[]>;
497
+ }
461
498
  import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationParticipantIdentity, PendingInviteSummary } from "@kinotic-ai/management-api";
462
- import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
499
+ import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
463
500
  /**
464
501
  * Cross-organization reads for system users. Published in the system zone, which only
465
502
  * SYSTEM participants may address, so every method takes the target organization explicitly
@@ -481,7 +518,7 @@ interface ISystemOrganizationService {
481
518
  }
482
519
  declare class SystemOrganizationService implements ISystemOrganizationService {
483
520
  private readonly serviceProxy;
484
- constructor(kinotic: IKinotic6);
521
+ constructor(kinotic: IKinotic7);
485
522
  findOrganizations(pageable: Pageable3): Promise<Page3<Organization>>;
486
523
  searchOrganizations(searchText: string, pageable: Pageable3): Promise<Page3<Organization>>;
487
524
  findOrganizationById(organizationId: string): Promise<Organization | null>;
@@ -495,7 +532,7 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
495
532
  findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
496
533
  }
497
534
  import { MachineParticipantIdentity, MachineProvisionResult, SystemParticipantIdentity } from "@kinotic-ai/management-api";
498
- import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
535
+ import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
499
536
  /**
500
537
  * The system's own members: the system users who sign in to the system console, and the
501
538
  * SYSTEM-scope machines that connect as system daemons, such as a worker node's vm-manager.
@@ -532,7 +569,7 @@ interface ISystemMemberService {
532
569
  }
533
570
  declare class SystemMemberService implements ISystemMemberService {
534
571
  private readonly serviceProxy;
535
- constructor(kinotic: IKinotic7);
572
+ constructor(kinotic: IKinotic8);
536
573
  findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
537
574
  searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
538
575
  findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
@@ -542,7 +579,7 @@ declare class SystemMemberService implements ISystemMemberService {
542
579
  removeMachine(machineId: string): Promise<void>;
543
580
  }
544
581
  import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
545
- import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
582
+ import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
546
583
  import { IterablePage as IterablePage3, Pageable as Pageable5 } from "@kinotic-ai/core";
547
584
  /**
548
585
  * The ledger of every watched record on the platform.
@@ -559,11 +596,11 @@ interface IWatchEventService {
559
596
  }
560
597
  declare class WatchEventService implements IWatchEventService {
561
598
  private readonly serviceProxy;
562
- constructor(kinotic: IKinotic8);
599
+ constructor(kinotic: IKinotic9);
563
600
  findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
564
601
  private findAllSinglePage;
565
602
  }
566
- import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
603
+ import { IKinotic as IKinotic10, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
567
604
  /**
568
605
  * The large language models the system's services call, each an LlmConfiguration that system users
569
606
  * manage and a service selects by name. A configuration's API key is given on save and held in the system's
@@ -587,7 +624,7 @@ interface ILlmConfigurationService {
587
624
  }
588
625
  declare class LlmConfigurationService implements ILlmConfigurationService {
589
626
  private readonly serviceProxy;
590
- constructor(kinotic: IKinotic9);
627
+ constructor(kinotic: IKinotic10);
591
628
  findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
592
629
  findById(id: string): Promise<LlmConfiguration | null>;
593
630
  findByName(name: string): Promise<LlmConfiguration | null>;
@@ -595,7 +632,7 @@ declare class LlmConfigurationService implements ILlmConfigurationService {
595
632
  deleteById(id: string): Promise<void>;
596
633
  }
597
634
  import { JobRun } from "@kinotic-ai/management-api";
598
- import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
635
+ import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
599
636
  /**
600
637
  * A grind job system users can start on demand, as the console lists it.
601
638
  */
@@ -632,11 +669,11 @@ interface ISystemJobService {
632
669
  }
633
670
  declare class SystemJobService implements ISystemJobService {
634
671
  private readonly serviceProxy;
635
- constructor(kinotic: IKinotic10);
672
+ constructor(kinotic: IKinotic11);
636
673
  findSystemJobs(): Promise<SystemJobDescriptor[]>;
637
674
  startSystemJob(name: string): Promise<JobRun>;
638
675
  }
639
- import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
676
+ import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
640
677
  /**
641
678
  * The Enterprise Features a Kinotic Enterprise License key turns on.
642
679
  */
@@ -707,7 +744,7 @@ interface ILicenseService {
707
744
  }
708
745
  declare class LicenseService implements ILicenseService {
709
746
  private readonly serviceProxy;
710
- constructor(kinotic: IKinotic11);
747
+ constructor(kinotic: IKinotic12);
711
748
  findCurrent(): Promise<License | null>;
712
749
  install(licenseKey: string): Promise<License>;
713
750
  findClusterId(): Promise<string | null>;
@@ -718,6 +755,7 @@ interface ISystemApiExtension {
718
755
  workloadOrchestration: IWorkloadOrchestrationService;
719
756
  logManager: ILogManager;
720
757
  clusterInfo: IKinoticClusterInfoService;
758
+ clusterVulnerabilities: IClusterVulnerabilityService;
721
759
  systemOrganizations: ISystemOrganizationService;
722
760
  systemMembers: ISystemMemberService;
723
761
  watchEvents: IWatchEventService;
@@ -726,10 +764,10 @@ interface ISystemApiExtension {
726
764
  licenses: ILicenseService;
727
765
  }
728
766
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
729
- import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
767
+ import { IKinotic as IKinotic13 } from "@kinotic-ai/core";
730
768
  declare class LogManager implements ILogManager {
731
769
  private readonly serviceProxy;
732
- constructor(kinotic: IKinotic12);
770
+ constructor(kinotic: IKinotic13);
733
771
  loggers(nodeId: string): Promise<LoggersDescriptor>;
734
772
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
735
773
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -739,4 +777,4 @@ declare class LogManager implements ILogManager {
739
777
  declare module "@kinotic-ai/core" {
740
778
  interface KinoticSingleton extends ISystemApiExtension {}
741
779
  }
742
- export { EnterpriseFeature, GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, License, LicenseService, LicenseStatus, 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 };
780
+ export { ClusterVulnerabilityService, EnterpriseFeature, GroupLoggerLevelsDescriptor, IClusterVulnerabilityService, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, License, LicenseService, LicenseStatus, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, ServerVulnerabilities, 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,8 +458,45 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
458
458
  constructor(kinotic: IKinotic5);
459
459
  getClusterInfo(): Promise<KinoticClusterInfo>;
460
460
  }
461
+ import { IKinotic as IKinotic6 } from "@kinotic-ai/core";
462
+ import { VulnerabilityFinding } from "@kinotic-ai/management-api";
463
+ /**
464
+ * The advisories affecting the libraries one build of a Kinotic server runs, with the cluster nodes
465
+ * running that build. Mirrors the server's org.kinotic.system.api.model.cluster.ServerVulnerabilities.
466
+ */
467
+ declare class ServerVulnerabilities {
468
+ /** The server kind the build is, such as management, system or app. */
469
+ serverName: string;
470
+ /** The Kinotic version of the build; null when its nodes run from classes rather than a packaged jar. */
471
+ version: string | null;
472
+ /** How many nodes run the build. */
473
+ nodeCount: number;
474
+ /** How many libraries the build runs; none when its nodes' classpath holds no library list, such as when an IDE runs them from classes. */
475
+ componentCount: number;
476
+ /** The advisories affecting the build's libraries, the most severe first. */
477
+ findings: VulnerabilityFinding[];
478
+ /** Why the build's libraries could not be checked, or null when they were; a build that could not be checked has no findings. */
479
+ error: string | null;
480
+ }
481
+ /**
482
+ * The vulnerability advisories affecting the Kinotic cluster itself: the libraries each running
483
+ * server build was built with, checked against the advisories read from OSV.
484
+ */
485
+ interface IClusterVulnerabilityService {
486
+ /**
487
+ * Checks the libraries of every server build the cluster's nodes run against the advisories.
488
+ * @return one entry per server build running, the nodes of one server kind and version that list
489
+ * the same libraries, ordered by server kind then version
490
+ */
491
+ findAll(): Promise<ServerVulnerabilities[]>;
492
+ }
493
+ declare class ClusterVulnerabilityService implements IClusterVulnerabilityService {
494
+ private readonly serviceProxy;
495
+ constructor(kinotic: IKinotic6);
496
+ findAll(): Promise<ServerVulnerabilities[]>;
497
+ }
461
498
  import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationParticipantIdentity, PendingInviteSummary } from "@kinotic-ai/management-api";
462
- import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
499
+ import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
463
500
  /**
464
501
  * Cross-organization reads for system users. Published in the system zone, which only
465
502
  * SYSTEM participants may address, so every method takes the target organization explicitly
@@ -481,7 +518,7 @@ interface ISystemOrganizationService {
481
518
  }
482
519
  declare class SystemOrganizationService implements ISystemOrganizationService {
483
520
  private readonly serviceProxy;
484
- constructor(kinotic: IKinotic6);
521
+ constructor(kinotic: IKinotic7);
485
522
  findOrganizations(pageable: Pageable3): Promise<Page3<Organization>>;
486
523
  searchOrganizations(searchText: string, pageable: Pageable3): Promise<Page3<Organization>>;
487
524
  findOrganizationById(organizationId: string): Promise<Organization | null>;
@@ -495,7 +532,7 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
495
532
  findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
496
533
  }
497
534
  import { MachineParticipantIdentity, MachineProvisionResult, SystemParticipantIdentity } from "@kinotic-ai/management-api";
498
- import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
535
+ import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
499
536
  /**
500
537
  * The system's own members: the system users who sign in to the system console, and the
501
538
  * SYSTEM-scope machines that connect as system daemons, such as a worker node's vm-manager.
@@ -532,7 +569,7 @@ interface ISystemMemberService {
532
569
  }
533
570
  declare class SystemMemberService implements ISystemMemberService {
534
571
  private readonly serviceProxy;
535
- constructor(kinotic: IKinotic7);
572
+ constructor(kinotic: IKinotic8);
536
573
  findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
537
574
  searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
538
575
  findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
@@ -542,7 +579,7 @@ declare class SystemMemberService implements ISystemMemberService {
542
579
  removeMachine(machineId: string): Promise<void>;
543
580
  }
544
581
  import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
545
- import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
582
+ import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
546
583
  import { IterablePage as IterablePage3, Pageable as Pageable5 } from "@kinotic-ai/core";
547
584
  /**
548
585
  * The ledger of every watched record on the platform.
@@ -559,11 +596,11 @@ interface IWatchEventService {
559
596
  }
560
597
  declare class WatchEventService implements IWatchEventService {
561
598
  private readonly serviceProxy;
562
- constructor(kinotic: IKinotic8);
599
+ constructor(kinotic: IKinotic9);
563
600
  findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
564
601
  private findAllSinglePage;
565
602
  }
566
- import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
603
+ import { IKinotic as IKinotic10, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
567
604
  /**
568
605
  * The large language models the system's services call, each an LlmConfiguration that system users
569
606
  * manage and a service selects by name. A configuration's API key is given on save and held in the system's
@@ -587,7 +624,7 @@ interface ILlmConfigurationService {
587
624
  }
588
625
  declare class LlmConfigurationService implements ILlmConfigurationService {
589
626
  private readonly serviceProxy;
590
- constructor(kinotic: IKinotic9);
627
+ constructor(kinotic: IKinotic10);
591
628
  findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
592
629
  findById(id: string): Promise<LlmConfiguration | null>;
593
630
  findByName(name: string): Promise<LlmConfiguration | null>;
@@ -595,7 +632,7 @@ declare class LlmConfigurationService implements ILlmConfigurationService {
595
632
  deleteById(id: string): Promise<void>;
596
633
  }
597
634
  import { JobRun } from "@kinotic-ai/management-api";
598
- import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
635
+ import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
599
636
  /**
600
637
  * A grind job system users can start on demand, as the console lists it.
601
638
  */
@@ -632,11 +669,11 @@ interface ISystemJobService {
632
669
  }
633
670
  declare class SystemJobService implements ISystemJobService {
634
671
  private readonly serviceProxy;
635
- constructor(kinotic: IKinotic10);
672
+ constructor(kinotic: IKinotic11);
636
673
  findSystemJobs(): Promise<SystemJobDescriptor[]>;
637
674
  startSystemJob(name: string): Promise<JobRun>;
638
675
  }
639
- import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
676
+ import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
640
677
  /**
641
678
  * The Enterprise Features a Kinotic Enterprise License key turns on.
642
679
  */
@@ -707,7 +744,7 @@ interface ILicenseService {
707
744
  }
708
745
  declare class LicenseService implements ILicenseService {
709
746
  private readonly serviceProxy;
710
- constructor(kinotic: IKinotic11);
747
+ constructor(kinotic: IKinotic12);
711
748
  findCurrent(): Promise<License | null>;
712
749
  install(licenseKey: string): Promise<License>;
713
750
  findClusterId(): Promise<string | null>;
@@ -718,6 +755,7 @@ interface ISystemApiExtension {
718
755
  workloadOrchestration: IWorkloadOrchestrationService;
719
756
  logManager: ILogManager;
720
757
  clusterInfo: IKinoticClusterInfoService;
758
+ clusterVulnerabilities: IClusterVulnerabilityService;
721
759
  systemOrganizations: ISystemOrganizationService;
722
760
  systemMembers: ISystemMemberService;
723
761
  watchEvents: IWatchEventService;
@@ -726,10 +764,10 @@ interface ISystemApiExtension {
726
764
  licenses: ILicenseService;
727
765
  }
728
766
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
729
- import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
767
+ import { IKinotic as IKinotic13 } from "@kinotic-ai/core";
730
768
  declare class LogManager implements ILogManager {
731
769
  private readonly serviceProxy;
732
- constructor(kinotic: IKinotic12);
770
+ constructor(kinotic: IKinotic13);
733
771
  loggers(nodeId: string): Promise<LoggersDescriptor>;
734
772
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
735
773
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -739,4 +777,4 @@ declare class LogManager implements ILogManager {
739
777
  declare module "@kinotic-ai/core" {
740
778
  interface KinoticSingleton extends ISystemApiExtension {}
741
779
  }
742
- export { EnterpriseFeature, GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, License, LicenseService, LicenseStatus, 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 };
780
+ export { ClusterVulnerabilityService, EnterpriseFeature, GroupLoggerLevelsDescriptor, IClusterVulnerabilityService, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, License, LicenseService, LicenseStatus, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, ServerVulnerabilities, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
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_ZONE12 } from "@kinotic-ai/management-api";
2
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE13 } 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";
@@ -253,15 +253,28 @@ class KinoticClusterInfoService {
253
253
  }
254
254
  }
255
255
 
256
+ // packages/system-api/src/api/services/IClusterVulnerabilityService.ts
257
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE6 } from "@kinotic-ai/management-api";
258
+
259
+ class ClusterVulnerabilityService {
260
+ serviceProxy;
261
+ constructor(kinotic) {
262
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE6}~org.kinotic.system.api.services.ClusterVulnerabilityService`);
263
+ }
264
+ findAll() {
265
+ return this.serviceProxy.invoke("findAll");
266
+ }
267
+ }
268
+
256
269
  // packages/system-api/src/api/services/ISystemOrganizationService.ts
257
270
  import {
258
- SYSTEM_API_ZONE as SYSTEM_API_ZONE6
271
+ SYSTEM_API_ZONE as SYSTEM_API_ZONE7
259
272
  } from "@kinotic-ai/management-api";
260
273
 
261
274
  class SystemOrganizationService {
262
275
  serviceProxy;
263
276
  constructor(kinotic) {
264
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE6}~org.kinotic.system.api.services.SystemOrganizationService`);
277
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE7}~org.kinotic.system.api.services.SystemOrganizationService`);
265
278
  }
266
279
  findOrganizations(pageable) {
267
280
  return this.serviceProxy.invoke("findOrganizations", [pageable]);
@@ -300,13 +313,13 @@ class SystemOrganizationService {
300
313
 
301
314
  // packages/system-api/src/api/services/ISystemMemberService.ts
302
315
  import {
303
- SYSTEM_API_ZONE as SYSTEM_API_ZONE7
316
+ SYSTEM_API_ZONE as SYSTEM_API_ZONE8
304
317
  } from "@kinotic-ai/management-api";
305
318
 
306
319
  class SystemMemberService {
307
320
  serviceProxy;
308
321
  constructor(kinotic) {
309
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE7}~org.kinotic.system.api.services.SystemMemberService`);
322
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.SystemMemberService`);
310
323
  }
311
324
  findUsers(pageable) {
312
325
  return this.serviceProxy.invoke("findUsers", [pageable]);
@@ -332,13 +345,13 @@ class SystemMemberService {
332
345
  }
333
346
 
334
347
  // packages/system-api/src/api/services/IWatchEventService.ts
335
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
348
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } from "@kinotic-ai/management-api";
336
349
  import { FunctionalIterablePage as FunctionalIterablePage3 } from "@kinotic-ai/core";
337
350
 
338
351
  class WatchEventService {
339
352
  serviceProxy;
340
353
  constructor(kinotic) {
341
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.WatchEventService`);
354
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE9}~org.kinotic.system.api.services.WatchEventService`);
342
355
  }
343
356
  async findAll(pageable) {
344
357
  const page = await this.findAllSinglePage(pageable);
@@ -350,12 +363,12 @@ class WatchEventService {
350
363
  }
351
364
 
352
365
  // packages/system-api/src/api/services/ILlmConfigurationService.ts
353
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } from "@kinotic-ai/management-api";
366
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
354
367
 
355
368
  class LlmConfigurationService {
356
369
  serviceProxy;
357
370
  constructor(kinotic) {
358
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE9}~org.kinotic.system.api.services.LlmConfigurationService`);
371
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.LlmConfigurationService`);
359
372
  }
360
373
  findAll(pageable) {
361
374
  return this.serviceProxy.invoke("findAll", [pageable]);
@@ -375,12 +388,12 @@ class LlmConfigurationService {
375
388
  }
376
389
 
377
390
  // packages/system-api/src/api/services/ISystemJobService.ts
378
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
391
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
379
392
 
380
393
  class SystemJobService {
381
394
  serviceProxy;
382
395
  constructor(kinotic) {
383
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.SystemJobService`);
396
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE11}~org.kinotic.system.api.services.SystemJobService`);
384
397
  }
385
398
  findSystemJobs() {
386
399
  return this.serviceProxy.invoke("findSystemJobs", []);
@@ -391,12 +404,12 @@ class SystemJobService {
391
404
  }
392
405
 
393
406
  // packages/system-api/src/api/services/ILicenseService.ts
394
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
407
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE12 } from "@kinotic-ai/management-api";
395
408
 
396
409
  class LicenseService {
397
410
  serviceProxy;
398
411
  constructor(kinotic) {
399
- this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE11}~org.kinotic.system.api.services.LicenseService`);
412
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE12}~org.kinotic.system.api.services.LicenseService`);
400
413
  }
401
414
  findCurrent() {
402
415
  return this.serviceProxy.invoke("findCurrent", []);
@@ -418,6 +431,7 @@ var SystemApiPlugin = {
418
431
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
419
432
  logManager: new LogManager(kinotic),
420
433
  clusterInfo: new KinoticClusterInfoService(kinotic),
434
+ clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
421
435
  systemOrganizations: new SystemOrganizationService(kinotic),
422
436
  systemMembers: new SystemMemberService(kinotic),
423
437
  watchEvents: new WatchEventService(kinotic),
@@ -446,6 +460,15 @@ class KinoticNodeInfo {
446
460
  telemetryServiceName = null;
447
461
  telemetryServiceInstanceId = null;
448
462
  }
463
+ // packages/system-api/src/api/model/cluster/ServerVulnerabilities.ts
464
+ class ServerVulnerabilities {
465
+ serverName = "";
466
+ version = null;
467
+ nodeCount = 0;
468
+ componentCount = 0;
469
+ findings = [];
470
+ error = null;
471
+ }
449
472
  // packages/system-api/src/api/model/license/EnterpriseFeature.ts
450
473
  var EnterpriseFeature;
451
474
  ((EnterpriseFeature) => {
@@ -476,6 +499,7 @@ class License {
476
499
  }
477
500
  }
478
501
  export {
502
+ ClusterVulnerabilityService,
479
503
  EnterpriseFeature,
480
504
  GroupLoggerLevelsDescriptor,
481
505
  KinoticClusterInfo,
@@ -491,7 +515,8 @@ export {
491
515
  LogManager,
492
516
  LoggerLevelsDescriptor,
493
517
  LoggersDescriptor,
494
- SYSTEM_API_ZONE12 as SYSTEM_API_ZONE,
518
+ SYSTEM_API_ZONE13 as SYSTEM_API_ZONE,
519
+ ServerVulnerabilities,
495
520
  SingleLoggerLevelsDescriptor,
496
521
  SystemApiPlugin,
497
522
  SystemJobService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.41",
3
+ "version": "5.0.0-beta.42",
4
4
  "type": "module",
5
5
  "description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services system 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.30",
42
- "@kinotic-ai/management-api": "^5.0.0-beta.72"
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.73"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@kinotic-ai/core": "5.0.0-beta.30",
46
- "@kinotic-ai/management-api": "5.0.0-beta.72",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.73",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }