@kinotic-ai/system-api 5.0.0-beta.40 → 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 +43 -14
- package/dist/index.d.cts +70 -19
- package/dist/index.d.ts +70 -19
- package/dist/index.js +43 -14
- package/package.json +3 -3
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: () =>
|
|
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
|
|
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/
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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", []);
|
|
@@ -474,6 +489,9 @@ class LicenseService {
|
|
|
474
489
|
install(licenseKey) {
|
|
475
490
|
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
476
491
|
}
|
|
492
|
+
findClusterId() {
|
|
493
|
+
return this.serviceProxy.invoke("findClusterId", []);
|
|
494
|
+
}
|
|
477
495
|
}
|
|
478
496
|
|
|
479
497
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
@@ -485,6 +503,7 @@ var SystemApiPlugin = {
|
|
|
485
503
|
workloadOrchestration: new WorkloadOrchestrationService(kinotic),
|
|
486
504
|
logManager: new LogManager(kinotic),
|
|
487
505
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
506
|
+
clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
|
|
488
507
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
489
508
|
systemMembers: new SystemMemberService(kinotic),
|
|
490
509
|
watchEvents: new WatchEventService(kinotic),
|
|
@@ -513,6 +532,15 @@ class KinoticNodeInfo {
|
|
|
513
532
|
telemetryServiceName = null;
|
|
514
533
|
telemetryServiceInstanceId = null;
|
|
515
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
|
+
}
|
|
516
544
|
// packages/system-api/src/api/model/license/EnterpriseFeature.ts
|
|
517
545
|
var EnterpriseFeature;
|
|
518
546
|
((EnterpriseFeature) => {
|
|
@@ -529,6 +557,7 @@ var LicenseStatus;
|
|
|
529
557
|
// packages/system-api/src/api/model/license/License.ts
|
|
530
558
|
class License {
|
|
531
559
|
licensee;
|
|
560
|
+
clusterId = null;
|
|
532
561
|
issuedAt = null;
|
|
533
562
|
expiresAt;
|
|
534
563
|
graceEndsAt;
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
599
|
+
constructor(kinotic: IKinotic9);
|
|
563
600
|
findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
|
|
564
601
|
private findAllSinglePage;
|
|
565
602
|
}
|
|
566
|
-
import { IKinotic as
|
|
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:
|
|
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
|
|
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:
|
|
672
|
+
constructor(kinotic: IKinotic11);
|
|
636
673
|
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
637
674
|
startSystemJob(name: string): Promise<JobRun>;
|
|
638
675
|
}
|
|
639
|
-
import { IKinotic as
|
|
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
|
*/
|
|
@@ -658,12 +695,17 @@ declare enum LicenseStatus {
|
|
|
658
695
|
EXPIRED = "EXPIRED"
|
|
659
696
|
}
|
|
660
697
|
/**
|
|
661
|
-
* A verified Kinotic Enterprise License: who it is issued to, when it was issued and
|
|
662
|
-
* Features it turns on until its grace period ends.
|
|
698
|
+
* A verified Kinotic Enterprise License: who it is issued to, the cluster it is bound to, when it was issued and
|
|
699
|
+
* expires, and the Enterprise Features it turns on until its grace period ends.
|
|
663
700
|
*/
|
|
664
701
|
declare class License {
|
|
665
702
|
/** The party the license is issued to. */
|
|
666
703
|
licensee: string;
|
|
704
|
+
/**
|
|
705
|
+
* The id of the one cluster the license works on, the UID of that cluster's kube-system namespace, or null when
|
|
706
|
+
* it works on any cluster.
|
|
707
|
+
*/
|
|
708
|
+
clusterId: string | null;
|
|
667
709
|
/** When the license was issued, or null when its key does not say. */
|
|
668
710
|
issuedAt: string | null;
|
|
669
711
|
/** When the license expires. */
|
|
@@ -678,7 +720,7 @@ declare class License {
|
|
|
678
720
|
}
|
|
679
721
|
/**
|
|
680
722
|
* The Kinotic Enterprise License key the whole cluster runs on, which system users read and replace without
|
|
681
|
-
* restarting a server. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
723
|
+
* restarting a server. A key bound to the cluster is renewed from Minds Ignited's license server once a day. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
682
724
|
* members may address.
|
|
683
725
|
*/
|
|
684
726
|
interface ILicenseService {
|
|
@@ -687,17 +729,25 @@ interface ILicenseService {
|
|
|
687
729
|
/**
|
|
688
730
|
* Installs licenseKey for the whole cluster in place of the installed key, resolving with the license it holds.
|
|
689
731
|
* The call resolves once the key is stored and the node that took the call runs on it; every other node runs on
|
|
690
|
-
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
732
|
+
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
733
|
+
* Minds Ignited did not sign, one naming no licensee or expiry, one bound to another cluster, one whose grace
|
|
691
734
|
* period has ended, and, on a cluster that stores secrets in Azure Key Vault, one that does not turn
|
|
692
735
|
* AZURE_KEY_VAULT on.
|
|
693
736
|
*/
|
|
694
737
|
install(licenseKey: string): Promise<License>;
|
|
738
|
+
/**
|
|
739
|
+
* The id of this cluster, the UID of its kube-system namespace, which a customer gives Minds Ignited to get a key
|
|
740
|
+
* bound to the cluster. Resolves null when the cluster does not run in Kubernetes, or has not been able to read
|
|
741
|
+
* the namespace yet.
|
|
742
|
+
*/
|
|
743
|
+
findClusterId(): Promise<string | null>;
|
|
695
744
|
}
|
|
696
745
|
declare class LicenseService implements ILicenseService {
|
|
697
746
|
private readonly serviceProxy;
|
|
698
|
-
constructor(kinotic:
|
|
747
|
+
constructor(kinotic: IKinotic12);
|
|
699
748
|
findCurrent(): Promise<License | null>;
|
|
700
749
|
install(licenseKey: string): Promise<License>;
|
|
750
|
+
findClusterId(): Promise<string | null>;
|
|
701
751
|
}
|
|
702
752
|
interface ISystemApiExtension {
|
|
703
753
|
vmNodes: IVmNodeService;
|
|
@@ -705,6 +755,7 @@ interface ISystemApiExtension {
|
|
|
705
755
|
workloadOrchestration: IWorkloadOrchestrationService;
|
|
706
756
|
logManager: ILogManager;
|
|
707
757
|
clusterInfo: IKinoticClusterInfoService;
|
|
758
|
+
clusterVulnerabilities: IClusterVulnerabilityService;
|
|
708
759
|
systemOrganizations: ISystemOrganizationService;
|
|
709
760
|
systemMembers: ISystemMemberService;
|
|
710
761
|
watchEvents: IWatchEventService;
|
|
@@ -713,10 +764,10 @@ interface ISystemApiExtension {
|
|
|
713
764
|
licenses: ILicenseService;
|
|
714
765
|
}
|
|
715
766
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
716
|
-
import { IKinotic as
|
|
767
|
+
import { IKinotic as IKinotic13 } from "@kinotic-ai/core";
|
|
717
768
|
declare class LogManager implements ILogManager {
|
|
718
769
|
private readonly serviceProxy;
|
|
719
|
-
constructor(kinotic:
|
|
770
|
+
constructor(kinotic: IKinotic13);
|
|
720
771
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
721
772
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
722
773
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -726,4 +777,4 @@ declare class LogManager implements ILogManager {
|
|
|
726
777
|
declare module "@kinotic-ai/core" {
|
|
727
778
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
728
779
|
}
|
|
729
|
-
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
599
|
+
constructor(kinotic: IKinotic9);
|
|
563
600
|
findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
|
|
564
601
|
private findAllSinglePage;
|
|
565
602
|
}
|
|
566
|
-
import { IKinotic as
|
|
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:
|
|
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
|
|
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:
|
|
672
|
+
constructor(kinotic: IKinotic11);
|
|
636
673
|
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
637
674
|
startSystemJob(name: string): Promise<JobRun>;
|
|
638
675
|
}
|
|
639
|
-
import { IKinotic as
|
|
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
|
*/
|
|
@@ -658,12 +695,17 @@ declare enum LicenseStatus {
|
|
|
658
695
|
EXPIRED = "EXPIRED"
|
|
659
696
|
}
|
|
660
697
|
/**
|
|
661
|
-
* A verified Kinotic Enterprise License: who it is issued to, when it was issued and
|
|
662
|
-
* Features it turns on until its grace period ends.
|
|
698
|
+
* A verified Kinotic Enterprise License: who it is issued to, the cluster it is bound to, when it was issued and
|
|
699
|
+
* expires, and the Enterprise Features it turns on until its grace period ends.
|
|
663
700
|
*/
|
|
664
701
|
declare class License {
|
|
665
702
|
/** The party the license is issued to. */
|
|
666
703
|
licensee: string;
|
|
704
|
+
/**
|
|
705
|
+
* The id of the one cluster the license works on, the UID of that cluster's kube-system namespace, or null when
|
|
706
|
+
* it works on any cluster.
|
|
707
|
+
*/
|
|
708
|
+
clusterId: string | null;
|
|
667
709
|
/** When the license was issued, or null when its key does not say. */
|
|
668
710
|
issuedAt: string | null;
|
|
669
711
|
/** When the license expires. */
|
|
@@ -678,7 +720,7 @@ declare class License {
|
|
|
678
720
|
}
|
|
679
721
|
/**
|
|
680
722
|
* The Kinotic Enterprise License key the whole cluster runs on, which system users read and replace without
|
|
681
|
-
* restarting a server. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
723
|
+
* restarting a server. A key bound to the cluster is renewed from Minds Ignited's license server once a day. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
682
724
|
* members may address.
|
|
683
725
|
*/
|
|
684
726
|
interface ILicenseService {
|
|
@@ -687,17 +729,25 @@ interface ILicenseService {
|
|
|
687
729
|
/**
|
|
688
730
|
* Installs licenseKey for the whole cluster in place of the installed key, resolving with the license it holds.
|
|
689
731
|
* The call resolves once the key is stored and the node that took the call runs on it; every other node runs on
|
|
690
|
-
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
732
|
+
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
733
|
+
* Minds Ignited did not sign, one naming no licensee or expiry, one bound to another cluster, one whose grace
|
|
691
734
|
* period has ended, and, on a cluster that stores secrets in Azure Key Vault, one that does not turn
|
|
692
735
|
* AZURE_KEY_VAULT on.
|
|
693
736
|
*/
|
|
694
737
|
install(licenseKey: string): Promise<License>;
|
|
738
|
+
/**
|
|
739
|
+
* The id of this cluster, the UID of its kube-system namespace, which a customer gives Minds Ignited to get a key
|
|
740
|
+
* bound to the cluster. Resolves null when the cluster does not run in Kubernetes, or has not been able to read
|
|
741
|
+
* the namespace yet.
|
|
742
|
+
*/
|
|
743
|
+
findClusterId(): Promise<string | null>;
|
|
695
744
|
}
|
|
696
745
|
declare class LicenseService implements ILicenseService {
|
|
697
746
|
private readonly serviceProxy;
|
|
698
|
-
constructor(kinotic:
|
|
747
|
+
constructor(kinotic: IKinotic12);
|
|
699
748
|
findCurrent(): Promise<License | null>;
|
|
700
749
|
install(licenseKey: string): Promise<License>;
|
|
750
|
+
findClusterId(): Promise<string | null>;
|
|
701
751
|
}
|
|
702
752
|
interface ISystemApiExtension {
|
|
703
753
|
vmNodes: IVmNodeService;
|
|
@@ -705,6 +755,7 @@ interface ISystemApiExtension {
|
|
|
705
755
|
workloadOrchestration: IWorkloadOrchestrationService;
|
|
706
756
|
logManager: ILogManager;
|
|
707
757
|
clusterInfo: IKinoticClusterInfoService;
|
|
758
|
+
clusterVulnerabilities: IClusterVulnerabilityService;
|
|
708
759
|
systemOrganizations: ISystemOrganizationService;
|
|
709
760
|
systemMembers: ISystemMemberService;
|
|
710
761
|
watchEvents: IWatchEventService;
|
|
@@ -713,10 +764,10 @@ interface ISystemApiExtension {
|
|
|
713
764
|
licenses: ILicenseService;
|
|
714
765
|
}
|
|
715
766
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
716
|
-
import { IKinotic as
|
|
767
|
+
import { IKinotic as IKinotic13 } from "@kinotic-ai/core";
|
|
717
768
|
declare class LogManager implements ILogManager {
|
|
718
769
|
private readonly serviceProxy;
|
|
719
|
-
constructor(kinotic:
|
|
770
|
+
constructor(kinotic: IKinotic13);
|
|
720
771
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
721
772
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
722
773
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -726,4 +777,4 @@ declare class LogManager implements ILogManager {
|
|
|
726
777
|
declare module "@kinotic-ai/core" {
|
|
727
778
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
728
779
|
}
|
|
729
|
-
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
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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
|
|
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(`${
|
|
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", []);
|
|
@@ -404,6 +417,9 @@ class LicenseService {
|
|
|
404
417
|
install(licenseKey) {
|
|
405
418
|
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
406
419
|
}
|
|
420
|
+
findClusterId() {
|
|
421
|
+
return this.serviceProxy.invoke("findClusterId", []);
|
|
422
|
+
}
|
|
407
423
|
}
|
|
408
424
|
|
|
409
425
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
@@ -415,6 +431,7 @@ var SystemApiPlugin = {
|
|
|
415
431
|
workloadOrchestration: new WorkloadOrchestrationService(kinotic),
|
|
416
432
|
logManager: new LogManager(kinotic),
|
|
417
433
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
434
|
+
clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
|
|
418
435
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
419
436
|
systemMembers: new SystemMemberService(kinotic),
|
|
420
437
|
watchEvents: new WatchEventService(kinotic),
|
|
@@ -443,6 +460,15 @@ class KinoticNodeInfo {
|
|
|
443
460
|
telemetryServiceName = null;
|
|
444
461
|
telemetryServiceInstanceId = null;
|
|
445
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
|
+
}
|
|
446
472
|
// packages/system-api/src/api/model/license/EnterpriseFeature.ts
|
|
447
473
|
var EnterpriseFeature;
|
|
448
474
|
((EnterpriseFeature) => {
|
|
@@ -459,6 +485,7 @@ var LicenseStatus;
|
|
|
459
485
|
// packages/system-api/src/api/model/license/License.ts
|
|
460
486
|
class License {
|
|
461
487
|
licensee;
|
|
488
|
+
clusterId = null;
|
|
462
489
|
issuedAt = null;
|
|
463
490
|
expiresAt;
|
|
464
491
|
graceEndsAt;
|
|
@@ -472,6 +499,7 @@ class License {
|
|
|
472
499
|
}
|
|
473
500
|
}
|
|
474
501
|
export {
|
|
502
|
+
ClusterVulnerabilityService,
|
|
475
503
|
EnterpriseFeature,
|
|
476
504
|
GroupLoggerLevelsDescriptor,
|
|
477
505
|
KinoticClusterInfo,
|
|
@@ -487,7 +515,8 @@ export {
|
|
|
487
515
|
LogManager,
|
|
488
516
|
LoggerLevelsDescriptor,
|
|
489
517
|
LoggersDescriptor,
|
|
490
|
-
|
|
518
|
+
SYSTEM_API_ZONE13 as SYSTEM_API_ZONE,
|
|
519
|
+
ServerVulnerabilities,
|
|
491
520
|
SingleLoggerLevelsDescriptor,
|
|
492
521
|
SystemApiPlugin,
|
|
493
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.
|
|
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.
|
|
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.
|
|
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
|
}
|