@kinotic-ai/system-api 5.0.0-beta.48 → 5.0.0-beta.49
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 +35 -14
- package/dist/index.d.cts +96 -44
- package/dist/index.d.ts +96 -44
- package/dist/index.js +35 -14
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -56,7 +56,7 @@ __export(exports_src, {
|
|
|
56
56
|
LogManager: () => LogManager,
|
|
57
57
|
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
58
58
|
LoggersDescriptor: () => LoggersDescriptor,
|
|
59
|
-
SYSTEM_API_ZONE: () =>
|
|
59
|
+
SYSTEM_API_ZONE: () => import_management_api15.SYSTEM_API_ZONE,
|
|
60
60
|
ServerVulnerabilities: () => ServerVulnerabilities,
|
|
61
61
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
62
62
|
SystemApiPlugin: () => SystemApiPlugin,
|
|
@@ -70,12 +70,13 @@ __export(exports_src, {
|
|
|
70
70
|
VmNodeServiceProxy: () => VmNodeServiceProxy,
|
|
71
71
|
VmNodeStatusType: () => VmNodeStatusType,
|
|
72
72
|
VmProviderType: () => VmProviderType,
|
|
73
|
+
VulnerabilityAdvisoryService: () => VulnerabilityAdvisoryService,
|
|
73
74
|
WatchEventService: () => WatchEventService,
|
|
74
75
|
WorkloadOrchestrationService: () => WorkloadOrchestrationService,
|
|
75
76
|
WorkloadServiceProxy: () => WorkloadServiceProxy
|
|
76
77
|
});
|
|
77
78
|
module.exports = __toCommonJS(exports_src);
|
|
78
|
-
var
|
|
79
|
+
var import_management_api15 = require("@kinotic-ai/management-api");
|
|
79
80
|
|
|
80
81
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
81
82
|
var import_management_api = require("@kinotic-ai/management-api");
|
|
@@ -338,13 +339,32 @@ class ClusterVulnerabilityService {
|
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
341
|
|
|
341
|
-
// packages/system-api/src/api/services/
|
|
342
|
+
// packages/system-api/src/api/services/IVulnerabilityAdvisoryService.ts
|
|
342
343
|
var import_management_api8 = require("@kinotic-ai/management-api");
|
|
343
344
|
|
|
345
|
+
class VulnerabilityAdvisoryService {
|
|
346
|
+
serviceProxy;
|
|
347
|
+
constructor(kinotic) {
|
|
348
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VulnerabilityAdvisoryService`);
|
|
349
|
+
}
|
|
350
|
+
findImportStatus() {
|
|
351
|
+
return this.serviceProxy.invoke("findImportStatus");
|
|
352
|
+
}
|
|
353
|
+
findAdvisories(search, pageable) {
|
|
354
|
+
return this.serviceProxy.invoke("findAdvisories", [search, pageable]);
|
|
355
|
+
}
|
|
356
|
+
findAlerts(advisoryId, pageable) {
|
|
357
|
+
return this.serviceProxy.invoke("findAlerts", [advisoryId, pageable]);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// packages/system-api/src/api/services/ISystemOrganizationService.ts
|
|
362
|
+
var import_management_api9 = require("@kinotic-ai/management-api");
|
|
363
|
+
|
|
344
364
|
class SystemOrganizationService {
|
|
345
365
|
serviceProxy;
|
|
346
366
|
constructor(kinotic) {
|
|
347
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
367
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
|
|
348
368
|
}
|
|
349
369
|
findOrganizations(pageable) {
|
|
350
370
|
return this.serviceProxy.invoke("findOrganizations", [pageable]);
|
|
@@ -382,12 +402,12 @@ class SystemOrganizationService {
|
|
|
382
402
|
}
|
|
383
403
|
|
|
384
404
|
// packages/system-api/src/api/services/ISystemMemberService.ts
|
|
385
|
-
var
|
|
405
|
+
var import_management_api10 = require("@kinotic-ai/management-api");
|
|
386
406
|
|
|
387
407
|
class SystemMemberService {
|
|
388
408
|
serviceProxy;
|
|
389
409
|
constructor(kinotic) {
|
|
390
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
410
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
|
|
391
411
|
}
|
|
392
412
|
findUsers(pageable) {
|
|
393
413
|
return this.serviceProxy.invoke("findUsers", [pageable]);
|
|
@@ -422,13 +442,13 @@ class SystemMemberService {
|
|
|
422
442
|
}
|
|
423
443
|
|
|
424
444
|
// packages/system-api/src/api/services/IWatchEventService.ts
|
|
425
|
-
var
|
|
445
|
+
var import_management_api11 = require("@kinotic-ai/management-api");
|
|
426
446
|
var import_core3 = require("@kinotic-ai/core");
|
|
427
447
|
|
|
428
448
|
class WatchEventService {
|
|
429
449
|
serviceProxy;
|
|
430
450
|
constructor(kinotic) {
|
|
431
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
451
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
|
|
432
452
|
}
|
|
433
453
|
async findAll(pageable) {
|
|
434
454
|
const page = await this.findAllSinglePage(pageable);
|
|
@@ -440,12 +460,12 @@ class WatchEventService {
|
|
|
440
460
|
}
|
|
441
461
|
|
|
442
462
|
// packages/system-api/src/api/services/ILlmConfigurationService.ts
|
|
443
|
-
var
|
|
463
|
+
var import_management_api12 = require("@kinotic-ai/management-api");
|
|
444
464
|
|
|
445
465
|
class LlmConfigurationService {
|
|
446
466
|
serviceProxy;
|
|
447
467
|
constructor(kinotic) {
|
|
448
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
468
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
|
|
449
469
|
}
|
|
450
470
|
findAll(pageable) {
|
|
451
471
|
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
@@ -465,12 +485,12 @@ class LlmConfigurationService {
|
|
|
465
485
|
}
|
|
466
486
|
|
|
467
487
|
// packages/system-api/src/api/services/ISystemJobService.ts
|
|
468
|
-
var
|
|
488
|
+
var import_management_api13 = require("@kinotic-ai/management-api");
|
|
469
489
|
|
|
470
490
|
class SystemJobService {
|
|
471
491
|
serviceProxy;
|
|
472
492
|
constructor(kinotic) {
|
|
473
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
493
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api13.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
|
|
474
494
|
}
|
|
475
495
|
findSystemJobs() {
|
|
476
496
|
return this.serviceProxy.invoke("findSystemJobs", []);
|
|
@@ -481,12 +501,12 @@ class SystemJobService {
|
|
|
481
501
|
}
|
|
482
502
|
|
|
483
503
|
// packages/system-api/src/api/services/ILicenseService.ts
|
|
484
|
-
var
|
|
504
|
+
var import_management_api14 = require("@kinotic-ai/management-api");
|
|
485
505
|
|
|
486
506
|
class LicenseService {
|
|
487
507
|
serviceProxy;
|
|
488
508
|
constructor(kinotic) {
|
|
489
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
509
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api14.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
|
|
490
510
|
}
|
|
491
511
|
findCurrent() {
|
|
492
512
|
return this.serviceProxy.invoke("findCurrent", []);
|
|
@@ -509,6 +529,7 @@ var SystemApiPlugin = {
|
|
|
509
529
|
logManager: new LogManager(kinotic),
|
|
510
530
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
511
531
|
clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
|
|
532
|
+
vulnerabilityAdvisories: new VulnerabilityAdvisoryService(kinotic),
|
|
512
533
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
513
534
|
systemMembers: new SystemMemberService(kinotic),
|
|
514
535
|
watchEvents: new WatchEventService(kinotic),
|
package/dist/index.d.cts
CHANGED
|
@@ -486,44 +486,95 @@ declare class ClusterVulnerabilityService implements IClusterVulnerabilityServic
|
|
|
486
486
|
constructor(kinotic: IKinotic6);
|
|
487
487
|
findAll(): Promise<ServerVulnerabilities[]>;
|
|
488
488
|
}
|
|
489
|
-
import {
|
|
489
|
+
import { VulnerabilityAdvisory, VulnerabilityAlert } from "@kinotic-ai/management-api";
|
|
490
490
|
import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
|
|
491
|
+
import { PackageEcosystem } from "@kinotic-ai/management-api";
|
|
492
|
+
/**
|
|
493
|
+
* How far the advisories of one PackageEcosystem have been read from OSV, and how many of them are
|
|
494
|
+
* stored.
|
|
495
|
+
*/
|
|
496
|
+
interface OsvImportStatus {
|
|
497
|
+
ecosystem: PackageEcosystem;
|
|
498
|
+
/**
|
|
499
|
+
* The newest modification time of an advisory read; every advisory OSV changed up to it is stored
|
|
500
|
+
* as OSV holds it. Null until the ecosystem's first import completes.
|
|
501
|
+
*/
|
|
502
|
+
syncedThrough: string | null;
|
|
503
|
+
/**
|
|
504
|
+
* How many advisories naming a package of the ecosystem are stored and not withdrawn.
|
|
505
|
+
*/
|
|
506
|
+
advisoryCount: number;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* The vulnerability advisories read from OSV, for system users: how far each ecosystem's import
|
|
510
|
+
* has read, and, for an advisory, the projects of every organization it affects.
|
|
511
|
+
*/
|
|
512
|
+
interface IVulnerabilityAdvisoryService {
|
|
513
|
+
/**
|
|
514
|
+
* Reports how far the advisories of each package ecosystem have been read from OSV.
|
|
515
|
+
* @return one status per ecosystem, in the order of PackageEcosystem
|
|
516
|
+
*/
|
|
517
|
+
findImportStatus(): Promise<OsvImportStatus[]>;
|
|
518
|
+
/**
|
|
519
|
+
* Finds the stored advisories by OSV id, by alias such as a CVE, or by package.
|
|
520
|
+
* @param search an OSV id or an alias, matched ignoring case and including withdrawn advisories,
|
|
521
|
+
* or a package URL such as pkg:npm/lodash, matched by its package without the
|
|
522
|
+
* version and listing the advisories not withdrawn
|
|
523
|
+
* @param pageable the page to return
|
|
524
|
+
*/
|
|
525
|
+
findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
|
|
526
|
+
/**
|
|
527
|
+
* Lists the alerts an advisory has raised, one per affected project, across every organization.
|
|
528
|
+
* @param advisoryId the advisory's OSV id
|
|
529
|
+
* @param pageable the page to return
|
|
530
|
+
*/
|
|
531
|
+
findAlerts(advisoryId: string, pageable: Pageable3): Promise<Page3<VulnerabilityAlert>>;
|
|
532
|
+
}
|
|
533
|
+
declare class VulnerabilityAdvisoryService implements IVulnerabilityAdvisoryService {
|
|
534
|
+
private readonly serviceProxy;
|
|
535
|
+
constructor(kinotic: IKinotic7);
|
|
536
|
+
findImportStatus(): Promise<OsvImportStatus[]>;
|
|
537
|
+
findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
|
|
538
|
+
findAlerts(advisoryId: string, pageable: Pageable3): Promise<Page3<VulnerabilityAlert>>;
|
|
539
|
+
}
|
|
540
|
+
import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationParticipantIdentity, PendingInviteSummary } from "@kinotic-ai/management-api";
|
|
541
|
+
import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
|
|
491
542
|
/**
|
|
492
543
|
* Cross-organization reads for system users. Published in the system zone, which only
|
|
493
544
|
* SYSTEM participants may address, so every method takes the target organization explicitly
|
|
494
545
|
* instead of resolving it from the caller's scope.
|
|
495
546
|
*/
|
|
496
547
|
interface ISystemOrganizationService {
|
|
497
|
-
findOrganizations(pageable:
|
|
498
|
-
searchOrganizations(searchText: string, pageable:
|
|
548
|
+
findOrganizations(pageable: Pageable4): Promise<Page4<Organization>>;
|
|
549
|
+
searchOrganizations(searchText: string, pageable: Pageable4): Promise<Page4<Organization>>;
|
|
499
550
|
/** Resolves null when no organization has the given id. */
|
|
500
551
|
findOrganizationById(organizationId: string): Promise<Organization | null>;
|
|
501
552
|
countOrganizations(): Promise<number>;
|
|
502
|
-
findApplications(organizationId: string, pageable:
|
|
503
|
-
findProjects(organizationId: string, pageable:
|
|
504
|
-
findMembers(organizationId: string, pageable:
|
|
505
|
-
searchMembers(searchText: string, organizationId: string, pageable:
|
|
506
|
-
findApplicationUsers(organizationId: string, applicationId: string, pageable:
|
|
507
|
-
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable:
|
|
508
|
-
findPendingInvites(organizationId: string, applicationId: string | null, pageable:
|
|
553
|
+
findApplications(organizationId: string, pageable: Pageable4): Promise<Page4<Application>>;
|
|
554
|
+
findProjects(organizationId: string, pageable: Pageable4): Promise<Page4<Project>>;
|
|
555
|
+
findMembers(organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
556
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
557
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
558
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
559
|
+
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable4): Promise<Page4<PendingInviteSummary>>;
|
|
509
560
|
}
|
|
510
561
|
declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
511
562
|
private readonly serviceProxy;
|
|
512
|
-
constructor(kinotic:
|
|
513
|
-
findOrganizations(pageable:
|
|
514
|
-
searchOrganizations(searchText: string, pageable:
|
|
563
|
+
constructor(kinotic: IKinotic8);
|
|
564
|
+
findOrganizations(pageable: Pageable4): Promise<Page4<Organization>>;
|
|
565
|
+
searchOrganizations(searchText: string, pageable: Pageable4): Promise<Page4<Organization>>;
|
|
515
566
|
findOrganizationById(organizationId: string): Promise<Organization | null>;
|
|
516
567
|
countOrganizations(): Promise<number>;
|
|
517
|
-
findApplications(organizationId: string, pageable:
|
|
518
|
-
findProjects(organizationId: string, pageable:
|
|
519
|
-
findMembers(organizationId: string, pageable:
|
|
520
|
-
searchMembers(searchText: string, organizationId: string, pageable:
|
|
521
|
-
findApplicationUsers(organizationId: string, applicationId: string, pageable:
|
|
522
|
-
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable:
|
|
523
|
-
findPendingInvites(organizationId: string, applicationId: string | null, pageable:
|
|
568
|
+
findApplications(organizationId: string, pageable: Pageable4): Promise<Page4<Application>>;
|
|
569
|
+
findProjects(organizationId: string, pageable: Pageable4): Promise<Page4<Project>>;
|
|
570
|
+
findMembers(organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
571
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
572
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
573
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
574
|
+
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable4): Promise<Page4<PendingInviteSummary>>;
|
|
524
575
|
}
|
|
525
576
|
import { MachineParticipantIdentity, MachineProvisionResult, SystemParticipantIdentity } from "@kinotic-ai/management-api";
|
|
526
|
-
import { IKinotic as
|
|
577
|
+
import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable5 } from "@kinotic-ai/core";
|
|
527
578
|
/**
|
|
528
579
|
* The system's own members: the system users who sign in to the system console, and the
|
|
529
580
|
* SYSTEM-scope machines that connect as system daemons, such as a worker node's vm-manager.
|
|
@@ -532,8 +583,8 @@ import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
532
583
|
* manage through IMachineService.
|
|
533
584
|
*/
|
|
534
585
|
interface ISystemMemberService {
|
|
535
|
-
findUsers(pageable:
|
|
536
|
-
searchUsers(searchText: string, pageable:
|
|
586
|
+
findUsers(pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
587
|
+
searchUsers(searchText: string, pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
537
588
|
/**
|
|
538
589
|
* Adds a system user, who holds the system's full authority once signed in. The user is pending until it first
|
|
539
590
|
* signs in: through one of the providers the system console's login offers, which signs in the account whose
|
|
@@ -551,7 +602,7 @@ interface ISystemMemberService {
|
|
|
551
602
|
*/
|
|
552
603
|
resetUserPassword(userId: string): Promise<string>;
|
|
553
604
|
/** Lists the system's machines, disabled ones included. */
|
|
554
|
-
findMachines(pageable:
|
|
605
|
+
findMachines(pageable: Pageable5): Promise<Page5<MachineParticipantIdentity>>;
|
|
555
606
|
/**
|
|
556
607
|
* Provisions a system machine and returns it together with its generated client secret.
|
|
557
608
|
* The secret is disclosed exactly once — it cannot be retrieved later.
|
|
@@ -576,21 +627,21 @@ interface ISystemMemberService {
|
|
|
576
627
|
}
|
|
577
628
|
declare class SystemMemberService implements ISystemMemberService {
|
|
578
629
|
private readonly serviceProxy;
|
|
579
|
-
constructor(kinotic:
|
|
580
|
-
findUsers(pageable:
|
|
581
|
-
searchUsers(searchText: string, pageable:
|
|
630
|
+
constructor(kinotic: IKinotic9);
|
|
631
|
+
findUsers(pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
632
|
+
searchUsers(searchText: string, pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
582
633
|
addUser(email: string, displayName: string | null): Promise<SystemParticipantIdentity>;
|
|
583
634
|
setUserEnabled(userId: string, enabled: boolean): Promise<void>;
|
|
584
635
|
resetUserPassword(userId: string): Promise<string>;
|
|
585
|
-
findMachines(pageable:
|
|
636
|
+
findMachines(pageable: Pageable5): Promise<Page5<MachineParticipantIdentity>>;
|
|
586
637
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
587
638
|
rotateSecret(machineId: string): Promise<string>;
|
|
588
639
|
setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
|
|
589
640
|
removeMachine(machineId: string): Promise<void>;
|
|
590
641
|
}
|
|
591
642
|
import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
|
|
592
|
-
import { IKinotic as
|
|
593
|
-
import { IterablePage as IterablePage3, Pageable as
|
|
643
|
+
import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
|
|
644
|
+
import { IterablePage as IterablePage3, Pageable as Pageable6 } from "@kinotic-ai/core";
|
|
594
645
|
/**
|
|
595
646
|
* The ledger of every watched record on the platform.
|
|
596
647
|
*/
|
|
@@ -602,15 +653,15 @@ interface IWatchEventService {
|
|
|
602
653
|
* @param pageable the page to return
|
|
603
654
|
* @return a Promise resolving to a page of ledger entries
|
|
604
655
|
*/
|
|
605
|
-
findAll(pageable:
|
|
656
|
+
findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
|
|
606
657
|
}
|
|
607
658
|
declare class WatchEventService implements IWatchEventService {
|
|
608
659
|
private readonly serviceProxy;
|
|
609
|
-
constructor(kinotic:
|
|
610
|
-
findAll(pageable:
|
|
660
|
+
constructor(kinotic: IKinotic10);
|
|
661
|
+
findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
|
|
611
662
|
private findAllSinglePage;
|
|
612
663
|
}
|
|
613
|
-
import { IKinotic as
|
|
664
|
+
import { IKinotic as IKinotic11, Page as Page6, Pageable as Pageable7 } from "@kinotic-ai/core";
|
|
614
665
|
/**
|
|
615
666
|
* The large language models the system's services call, each an LlmConfiguration that system users
|
|
616
667
|
* manage and a service selects by name. A configuration's API key is given on save and held in the system's
|
|
@@ -618,7 +669,7 @@ import { IKinotic as IKinotic10, Page as Page5, Pageable as Pageable6 } from "@k
|
|
|
618
669
|
* system zone, which only SYSTEM participants and the system's own cluster members may address.
|
|
619
670
|
*/
|
|
620
671
|
interface ILlmConfigurationService {
|
|
621
|
-
findAll(pageable:
|
|
672
|
+
findAll(pageable: Pageable7): Promise<Page6<LlmConfiguration>>;
|
|
622
673
|
/** Resolves null when no configuration has the given id. */
|
|
623
674
|
findById(id: string): Promise<LlmConfiguration | null>;
|
|
624
675
|
/** Resolves null when no configuration has the given name. */
|
|
@@ -634,15 +685,15 @@ interface ILlmConfigurationService {
|
|
|
634
685
|
}
|
|
635
686
|
declare class LlmConfigurationService implements ILlmConfigurationService {
|
|
636
687
|
private readonly serviceProxy;
|
|
637
|
-
constructor(kinotic:
|
|
638
|
-
findAll(pageable:
|
|
688
|
+
constructor(kinotic: IKinotic11);
|
|
689
|
+
findAll(pageable: Pageable7): Promise<Page6<LlmConfiguration>>;
|
|
639
690
|
findById(id: string): Promise<LlmConfiguration | null>;
|
|
640
691
|
findByName(name: string): Promise<LlmConfiguration | null>;
|
|
641
692
|
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
642
693
|
deleteById(id: string): Promise<void>;
|
|
643
694
|
}
|
|
644
695
|
import { JobRun } from "@kinotic-ai/management-api";
|
|
645
|
-
import { IKinotic as
|
|
696
|
+
import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
|
|
646
697
|
/**
|
|
647
698
|
* A grind job system users can start on demand, as the console lists it.
|
|
648
699
|
*/
|
|
@@ -679,11 +730,11 @@ interface ISystemJobService {
|
|
|
679
730
|
}
|
|
680
731
|
declare class SystemJobService implements ISystemJobService {
|
|
681
732
|
private readonly serviceProxy;
|
|
682
|
-
constructor(kinotic:
|
|
733
|
+
constructor(kinotic: IKinotic12);
|
|
683
734
|
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
684
735
|
startSystemJob(name: string): Promise<JobRun>;
|
|
685
736
|
}
|
|
686
|
-
import { IKinotic as
|
|
737
|
+
import { IKinotic as IKinotic13 } from "@kinotic-ai/core";
|
|
687
738
|
/**
|
|
688
739
|
* The Enterprise Features a Kinotic Enterprise License key turns on.
|
|
689
740
|
*/
|
|
@@ -754,7 +805,7 @@ interface ILicenseService {
|
|
|
754
805
|
}
|
|
755
806
|
declare class LicenseService implements ILicenseService {
|
|
756
807
|
private readonly serviceProxy;
|
|
757
|
-
constructor(kinotic:
|
|
808
|
+
constructor(kinotic: IKinotic13);
|
|
758
809
|
findCurrent(): Promise<License | null>;
|
|
759
810
|
install(licenseKey: string): Promise<License>;
|
|
760
811
|
findClusterId(): Promise<string | null>;
|
|
@@ -766,6 +817,7 @@ interface ISystemApiExtension {
|
|
|
766
817
|
logManager: ILogManager;
|
|
767
818
|
clusterInfo: IKinoticClusterInfoService;
|
|
768
819
|
clusterVulnerabilities: IClusterVulnerabilityService;
|
|
820
|
+
vulnerabilityAdvisories: IVulnerabilityAdvisoryService;
|
|
769
821
|
systemOrganizations: ISystemOrganizationService;
|
|
770
822
|
systemMembers: ISystemMemberService;
|
|
771
823
|
watchEvents: IWatchEventService;
|
|
@@ -774,10 +826,10 @@ interface ISystemApiExtension {
|
|
|
774
826
|
licenses: ILicenseService;
|
|
775
827
|
}
|
|
776
828
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
777
|
-
import { IKinotic as
|
|
829
|
+
import { IKinotic as IKinotic14 } from "@kinotic-ai/core";
|
|
778
830
|
declare class LogManager implements ILogManager {
|
|
779
831
|
private readonly serviceProxy;
|
|
780
|
-
constructor(kinotic:
|
|
832
|
+
constructor(kinotic: IKinotic14);
|
|
781
833
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
782
834
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
783
835
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -787,4 +839,4 @@ declare class LogManager implements ILogManager {
|
|
|
787
839
|
declare module "@kinotic-ai/core" {
|
|
788
840
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
789
841
|
}
|
|
790
|
-
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 };
|
|
842
|
+
export { ClusterVulnerabilityService, EnterpriseFeature, GroupLoggerLevelsDescriptor, IClusterVulnerabilityService, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IVulnerabilityAdvisoryService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, License, LicenseService, LicenseStatus, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, OsvImportStatus, SYSTEM_API_ZONE, ServerVulnerabilities, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, VulnerabilityAdvisoryService, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
package/dist/index.d.ts
CHANGED
|
@@ -486,44 +486,95 @@ declare class ClusterVulnerabilityService implements IClusterVulnerabilityServic
|
|
|
486
486
|
constructor(kinotic: IKinotic6);
|
|
487
487
|
findAll(): Promise<ServerVulnerabilities[]>;
|
|
488
488
|
}
|
|
489
|
-
import {
|
|
489
|
+
import { VulnerabilityAdvisory, VulnerabilityAlert } from "@kinotic-ai/management-api";
|
|
490
490
|
import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
|
|
491
|
+
import { PackageEcosystem } from "@kinotic-ai/management-api";
|
|
492
|
+
/**
|
|
493
|
+
* How far the advisories of one PackageEcosystem have been read from OSV, and how many of them are
|
|
494
|
+
* stored.
|
|
495
|
+
*/
|
|
496
|
+
interface OsvImportStatus {
|
|
497
|
+
ecosystem: PackageEcosystem;
|
|
498
|
+
/**
|
|
499
|
+
* The newest modification time of an advisory read; every advisory OSV changed up to it is stored
|
|
500
|
+
* as OSV holds it. Null until the ecosystem's first import completes.
|
|
501
|
+
*/
|
|
502
|
+
syncedThrough: string | null;
|
|
503
|
+
/**
|
|
504
|
+
* How many advisories naming a package of the ecosystem are stored and not withdrawn.
|
|
505
|
+
*/
|
|
506
|
+
advisoryCount: number;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* The vulnerability advisories read from OSV, for system users: how far each ecosystem's import
|
|
510
|
+
* has read, and, for an advisory, the projects of every organization it affects.
|
|
511
|
+
*/
|
|
512
|
+
interface IVulnerabilityAdvisoryService {
|
|
513
|
+
/**
|
|
514
|
+
* Reports how far the advisories of each package ecosystem have been read from OSV.
|
|
515
|
+
* @return one status per ecosystem, in the order of PackageEcosystem
|
|
516
|
+
*/
|
|
517
|
+
findImportStatus(): Promise<OsvImportStatus[]>;
|
|
518
|
+
/**
|
|
519
|
+
* Finds the stored advisories by OSV id, by alias such as a CVE, or by package.
|
|
520
|
+
* @param search an OSV id or an alias, matched ignoring case and including withdrawn advisories,
|
|
521
|
+
* or a package URL such as pkg:npm/lodash, matched by its package without the
|
|
522
|
+
* version and listing the advisories not withdrawn
|
|
523
|
+
* @param pageable the page to return
|
|
524
|
+
*/
|
|
525
|
+
findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
|
|
526
|
+
/**
|
|
527
|
+
* Lists the alerts an advisory has raised, one per affected project, across every organization.
|
|
528
|
+
* @param advisoryId the advisory's OSV id
|
|
529
|
+
* @param pageable the page to return
|
|
530
|
+
*/
|
|
531
|
+
findAlerts(advisoryId: string, pageable: Pageable3): Promise<Page3<VulnerabilityAlert>>;
|
|
532
|
+
}
|
|
533
|
+
declare class VulnerabilityAdvisoryService implements IVulnerabilityAdvisoryService {
|
|
534
|
+
private readonly serviceProxy;
|
|
535
|
+
constructor(kinotic: IKinotic7);
|
|
536
|
+
findImportStatus(): Promise<OsvImportStatus[]>;
|
|
537
|
+
findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
|
|
538
|
+
findAlerts(advisoryId: string, pageable: Pageable3): Promise<Page3<VulnerabilityAlert>>;
|
|
539
|
+
}
|
|
540
|
+
import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationParticipantIdentity, PendingInviteSummary } from "@kinotic-ai/management-api";
|
|
541
|
+
import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
|
|
491
542
|
/**
|
|
492
543
|
* Cross-organization reads for system users. Published in the system zone, which only
|
|
493
544
|
* SYSTEM participants may address, so every method takes the target organization explicitly
|
|
494
545
|
* instead of resolving it from the caller's scope.
|
|
495
546
|
*/
|
|
496
547
|
interface ISystemOrganizationService {
|
|
497
|
-
findOrganizations(pageable:
|
|
498
|
-
searchOrganizations(searchText: string, pageable:
|
|
548
|
+
findOrganizations(pageable: Pageable4): Promise<Page4<Organization>>;
|
|
549
|
+
searchOrganizations(searchText: string, pageable: Pageable4): Promise<Page4<Organization>>;
|
|
499
550
|
/** Resolves null when no organization has the given id. */
|
|
500
551
|
findOrganizationById(organizationId: string): Promise<Organization | null>;
|
|
501
552
|
countOrganizations(): Promise<number>;
|
|
502
|
-
findApplications(organizationId: string, pageable:
|
|
503
|
-
findProjects(organizationId: string, pageable:
|
|
504
|
-
findMembers(organizationId: string, pageable:
|
|
505
|
-
searchMembers(searchText: string, organizationId: string, pageable:
|
|
506
|
-
findApplicationUsers(organizationId: string, applicationId: string, pageable:
|
|
507
|
-
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable:
|
|
508
|
-
findPendingInvites(organizationId: string, applicationId: string | null, pageable:
|
|
553
|
+
findApplications(organizationId: string, pageable: Pageable4): Promise<Page4<Application>>;
|
|
554
|
+
findProjects(organizationId: string, pageable: Pageable4): Promise<Page4<Project>>;
|
|
555
|
+
findMembers(organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
556
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
557
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
558
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
559
|
+
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable4): Promise<Page4<PendingInviteSummary>>;
|
|
509
560
|
}
|
|
510
561
|
declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
511
562
|
private readonly serviceProxy;
|
|
512
|
-
constructor(kinotic:
|
|
513
|
-
findOrganizations(pageable:
|
|
514
|
-
searchOrganizations(searchText: string, pageable:
|
|
563
|
+
constructor(kinotic: IKinotic8);
|
|
564
|
+
findOrganizations(pageable: Pageable4): Promise<Page4<Organization>>;
|
|
565
|
+
searchOrganizations(searchText: string, pageable: Pageable4): Promise<Page4<Organization>>;
|
|
515
566
|
findOrganizationById(organizationId: string): Promise<Organization | null>;
|
|
516
567
|
countOrganizations(): Promise<number>;
|
|
517
|
-
findApplications(organizationId: string, pageable:
|
|
518
|
-
findProjects(organizationId: string, pageable:
|
|
519
|
-
findMembers(organizationId: string, pageable:
|
|
520
|
-
searchMembers(searchText: string, organizationId: string, pageable:
|
|
521
|
-
findApplicationUsers(organizationId: string, applicationId: string, pageable:
|
|
522
|
-
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable:
|
|
523
|
-
findPendingInvites(organizationId: string, applicationId: string | null, pageable:
|
|
568
|
+
findApplications(organizationId: string, pageable: Pageable4): Promise<Page4<Application>>;
|
|
569
|
+
findProjects(organizationId: string, pageable: Pageable4): Promise<Page4<Project>>;
|
|
570
|
+
findMembers(organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
571
|
+
searchMembers(searchText: string, organizationId: string, pageable: Pageable4): Promise<Page4<OrganizationParticipantIdentity>>;
|
|
572
|
+
findApplicationUsers(organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
573
|
+
searchApplicationUsers(searchText: string, organizationId: string, applicationId: string, pageable: Pageable4): Promise<Page4<ApplicationParticipantIdentity>>;
|
|
574
|
+
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable4): Promise<Page4<PendingInviteSummary>>;
|
|
524
575
|
}
|
|
525
576
|
import { MachineParticipantIdentity, MachineProvisionResult, SystemParticipantIdentity } from "@kinotic-ai/management-api";
|
|
526
|
-
import { IKinotic as
|
|
577
|
+
import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable5 } from "@kinotic-ai/core";
|
|
527
578
|
/**
|
|
528
579
|
* The system's own members: the system users who sign in to the system console, and the
|
|
529
580
|
* SYSTEM-scope machines that connect as system daemons, such as a worker node's vm-manager.
|
|
@@ -532,8 +583,8 @@ import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
532
583
|
* manage through IMachineService.
|
|
533
584
|
*/
|
|
534
585
|
interface ISystemMemberService {
|
|
535
|
-
findUsers(pageable:
|
|
536
|
-
searchUsers(searchText: string, pageable:
|
|
586
|
+
findUsers(pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
587
|
+
searchUsers(searchText: string, pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
537
588
|
/**
|
|
538
589
|
* Adds a system user, who holds the system's full authority once signed in. The user is pending until it first
|
|
539
590
|
* signs in: through one of the providers the system console's login offers, which signs in the account whose
|
|
@@ -551,7 +602,7 @@ interface ISystemMemberService {
|
|
|
551
602
|
*/
|
|
552
603
|
resetUserPassword(userId: string): Promise<string>;
|
|
553
604
|
/** Lists the system's machines, disabled ones included. */
|
|
554
|
-
findMachines(pageable:
|
|
605
|
+
findMachines(pageable: Pageable5): Promise<Page5<MachineParticipantIdentity>>;
|
|
555
606
|
/**
|
|
556
607
|
* Provisions a system machine and returns it together with its generated client secret.
|
|
557
608
|
* The secret is disclosed exactly once — it cannot be retrieved later.
|
|
@@ -576,21 +627,21 @@ interface ISystemMemberService {
|
|
|
576
627
|
}
|
|
577
628
|
declare class SystemMemberService implements ISystemMemberService {
|
|
578
629
|
private readonly serviceProxy;
|
|
579
|
-
constructor(kinotic:
|
|
580
|
-
findUsers(pageable:
|
|
581
|
-
searchUsers(searchText: string, pageable:
|
|
630
|
+
constructor(kinotic: IKinotic9);
|
|
631
|
+
findUsers(pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
632
|
+
searchUsers(searchText: string, pageable: Pageable5): Promise<Page5<SystemParticipantIdentity>>;
|
|
582
633
|
addUser(email: string, displayName: string | null): Promise<SystemParticipantIdentity>;
|
|
583
634
|
setUserEnabled(userId: string, enabled: boolean): Promise<void>;
|
|
584
635
|
resetUserPassword(userId: string): Promise<string>;
|
|
585
|
-
findMachines(pageable:
|
|
636
|
+
findMachines(pageable: Pageable5): Promise<Page5<MachineParticipantIdentity>>;
|
|
586
637
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
587
638
|
rotateSecret(machineId: string): Promise<string>;
|
|
588
639
|
setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
|
|
589
640
|
removeMachine(machineId: string): Promise<void>;
|
|
590
641
|
}
|
|
591
642
|
import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
|
|
592
|
-
import { IKinotic as
|
|
593
|
-
import { IterablePage as IterablePage3, Pageable as
|
|
643
|
+
import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
|
|
644
|
+
import { IterablePage as IterablePage3, Pageable as Pageable6 } from "@kinotic-ai/core";
|
|
594
645
|
/**
|
|
595
646
|
* The ledger of every watched record on the platform.
|
|
596
647
|
*/
|
|
@@ -602,15 +653,15 @@ interface IWatchEventService {
|
|
|
602
653
|
* @param pageable the page to return
|
|
603
654
|
* @return a Promise resolving to a page of ledger entries
|
|
604
655
|
*/
|
|
605
|
-
findAll(pageable:
|
|
656
|
+
findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
|
|
606
657
|
}
|
|
607
658
|
declare class WatchEventService implements IWatchEventService {
|
|
608
659
|
private readonly serviceProxy;
|
|
609
|
-
constructor(kinotic:
|
|
610
|
-
findAll(pageable:
|
|
660
|
+
constructor(kinotic: IKinotic10);
|
|
661
|
+
findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
|
|
611
662
|
private findAllSinglePage;
|
|
612
663
|
}
|
|
613
|
-
import { IKinotic as
|
|
664
|
+
import { IKinotic as IKinotic11, Page as Page6, Pageable as Pageable7 } from "@kinotic-ai/core";
|
|
614
665
|
/**
|
|
615
666
|
* The large language models the system's services call, each an LlmConfiguration that system users
|
|
616
667
|
* manage and a service selects by name. A configuration's API key is given on save and held in the system's
|
|
@@ -618,7 +669,7 @@ import { IKinotic as IKinotic10, Page as Page5, Pageable as Pageable6 } from "@k
|
|
|
618
669
|
* system zone, which only SYSTEM participants and the system's own cluster members may address.
|
|
619
670
|
*/
|
|
620
671
|
interface ILlmConfigurationService {
|
|
621
|
-
findAll(pageable:
|
|
672
|
+
findAll(pageable: Pageable7): Promise<Page6<LlmConfiguration>>;
|
|
622
673
|
/** Resolves null when no configuration has the given id. */
|
|
623
674
|
findById(id: string): Promise<LlmConfiguration | null>;
|
|
624
675
|
/** Resolves null when no configuration has the given name. */
|
|
@@ -634,15 +685,15 @@ interface ILlmConfigurationService {
|
|
|
634
685
|
}
|
|
635
686
|
declare class LlmConfigurationService implements ILlmConfigurationService {
|
|
636
687
|
private readonly serviceProxy;
|
|
637
|
-
constructor(kinotic:
|
|
638
|
-
findAll(pageable:
|
|
688
|
+
constructor(kinotic: IKinotic11);
|
|
689
|
+
findAll(pageable: Pageable7): Promise<Page6<LlmConfiguration>>;
|
|
639
690
|
findById(id: string): Promise<LlmConfiguration | null>;
|
|
640
691
|
findByName(name: string): Promise<LlmConfiguration | null>;
|
|
641
692
|
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
642
693
|
deleteById(id: string): Promise<void>;
|
|
643
694
|
}
|
|
644
695
|
import { JobRun } from "@kinotic-ai/management-api";
|
|
645
|
-
import { IKinotic as
|
|
696
|
+
import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
|
|
646
697
|
/**
|
|
647
698
|
* A grind job system users can start on demand, as the console lists it.
|
|
648
699
|
*/
|
|
@@ -679,11 +730,11 @@ interface ISystemJobService {
|
|
|
679
730
|
}
|
|
680
731
|
declare class SystemJobService implements ISystemJobService {
|
|
681
732
|
private readonly serviceProxy;
|
|
682
|
-
constructor(kinotic:
|
|
733
|
+
constructor(kinotic: IKinotic12);
|
|
683
734
|
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
684
735
|
startSystemJob(name: string): Promise<JobRun>;
|
|
685
736
|
}
|
|
686
|
-
import { IKinotic as
|
|
737
|
+
import { IKinotic as IKinotic13 } from "@kinotic-ai/core";
|
|
687
738
|
/**
|
|
688
739
|
* The Enterprise Features a Kinotic Enterprise License key turns on.
|
|
689
740
|
*/
|
|
@@ -754,7 +805,7 @@ interface ILicenseService {
|
|
|
754
805
|
}
|
|
755
806
|
declare class LicenseService implements ILicenseService {
|
|
756
807
|
private readonly serviceProxy;
|
|
757
|
-
constructor(kinotic:
|
|
808
|
+
constructor(kinotic: IKinotic13);
|
|
758
809
|
findCurrent(): Promise<License | null>;
|
|
759
810
|
install(licenseKey: string): Promise<License>;
|
|
760
811
|
findClusterId(): Promise<string | null>;
|
|
@@ -766,6 +817,7 @@ interface ISystemApiExtension {
|
|
|
766
817
|
logManager: ILogManager;
|
|
767
818
|
clusterInfo: IKinoticClusterInfoService;
|
|
768
819
|
clusterVulnerabilities: IClusterVulnerabilityService;
|
|
820
|
+
vulnerabilityAdvisories: IVulnerabilityAdvisoryService;
|
|
769
821
|
systemOrganizations: ISystemOrganizationService;
|
|
770
822
|
systemMembers: ISystemMemberService;
|
|
771
823
|
watchEvents: IWatchEventService;
|
|
@@ -774,10 +826,10 @@ interface ISystemApiExtension {
|
|
|
774
826
|
licenses: ILicenseService;
|
|
775
827
|
}
|
|
776
828
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
777
|
-
import { IKinotic as
|
|
829
|
+
import { IKinotic as IKinotic14 } from "@kinotic-ai/core";
|
|
778
830
|
declare class LogManager implements ILogManager {
|
|
779
831
|
private readonly serviceProxy;
|
|
780
|
-
constructor(kinotic:
|
|
832
|
+
constructor(kinotic: IKinotic14);
|
|
781
833
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
782
834
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
783
835
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -787,4 +839,4 @@ declare class LogManager implements ILogManager {
|
|
|
787
839
|
declare module "@kinotic-ai/core" {
|
|
788
840
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
789
841
|
}
|
|
790
|
-
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 };
|
|
842
|
+
export { ClusterVulnerabilityService, EnterpriseFeature, GroupLoggerLevelsDescriptor, IClusterVulnerabilityService, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IVulnerabilityAdvisoryService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, License, LicenseService, LicenseStatus, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, OsvImportStatus, SYSTEM_API_ZONE, ServerVulnerabilities, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, VulnerabilityAdvisoryService, 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_ZONE14 } 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";
|
|
@@ -262,15 +262,34 @@ class ClusterVulnerabilityService {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
// packages/system-api/src/api/services/IVulnerabilityAdvisoryService.ts
|
|
266
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE7 } from "@kinotic-ai/management-api";
|
|
267
|
+
|
|
268
|
+
class VulnerabilityAdvisoryService {
|
|
269
|
+
serviceProxy;
|
|
270
|
+
constructor(kinotic) {
|
|
271
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE7}~org.kinotic.system.api.services.VulnerabilityAdvisoryService`);
|
|
272
|
+
}
|
|
273
|
+
findImportStatus() {
|
|
274
|
+
return this.serviceProxy.invoke("findImportStatus");
|
|
275
|
+
}
|
|
276
|
+
findAdvisories(search, pageable) {
|
|
277
|
+
return this.serviceProxy.invoke("findAdvisories", [search, pageable]);
|
|
278
|
+
}
|
|
279
|
+
findAlerts(advisoryId, pageable) {
|
|
280
|
+
return this.serviceProxy.invoke("findAlerts", [advisoryId, pageable]);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
265
284
|
// packages/system-api/src/api/services/ISystemOrganizationService.ts
|
|
266
285
|
import {
|
|
267
|
-
SYSTEM_API_ZONE as
|
|
286
|
+
SYSTEM_API_ZONE as SYSTEM_API_ZONE8
|
|
268
287
|
} from "@kinotic-ai/management-api";
|
|
269
288
|
|
|
270
289
|
class SystemOrganizationService {
|
|
271
290
|
serviceProxy;
|
|
272
291
|
constructor(kinotic) {
|
|
273
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
292
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.SystemOrganizationService`);
|
|
274
293
|
}
|
|
275
294
|
findOrganizations(pageable) {
|
|
276
295
|
return this.serviceProxy.invoke("findOrganizations", [pageable]);
|
|
@@ -309,13 +328,13 @@ class SystemOrganizationService {
|
|
|
309
328
|
|
|
310
329
|
// packages/system-api/src/api/services/ISystemMemberService.ts
|
|
311
330
|
import {
|
|
312
|
-
SYSTEM_API_ZONE as
|
|
331
|
+
SYSTEM_API_ZONE as SYSTEM_API_ZONE9
|
|
313
332
|
} from "@kinotic-ai/management-api";
|
|
314
333
|
|
|
315
334
|
class SystemMemberService {
|
|
316
335
|
serviceProxy;
|
|
317
336
|
constructor(kinotic) {
|
|
318
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
337
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE9}~org.kinotic.system.api.services.SystemMemberService`);
|
|
319
338
|
}
|
|
320
339
|
findUsers(pageable) {
|
|
321
340
|
return this.serviceProxy.invoke("findUsers", [pageable]);
|
|
@@ -350,13 +369,13 @@ class SystemMemberService {
|
|
|
350
369
|
}
|
|
351
370
|
|
|
352
371
|
// packages/system-api/src/api/services/IWatchEventService.ts
|
|
353
|
-
import { SYSTEM_API_ZONE as
|
|
372
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
|
|
354
373
|
import { FunctionalIterablePage as FunctionalIterablePage3 } from "@kinotic-ai/core";
|
|
355
374
|
|
|
356
375
|
class WatchEventService {
|
|
357
376
|
serviceProxy;
|
|
358
377
|
constructor(kinotic) {
|
|
359
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
378
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.WatchEventService`);
|
|
360
379
|
}
|
|
361
380
|
async findAll(pageable) {
|
|
362
381
|
const page = await this.findAllSinglePage(pageable);
|
|
@@ -368,12 +387,12 @@ class WatchEventService {
|
|
|
368
387
|
}
|
|
369
388
|
|
|
370
389
|
// packages/system-api/src/api/services/ILlmConfigurationService.ts
|
|
371
|
-
import { SYSTEM_API_ZONE as
|
|
390
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
|
|
372
391
|
|
|
373
392
|
class LlmConfigurationService {
|
|
374
393
|
serviceProxy;
|
|
375
394
|
constructor(kinotic) {
|
|
376
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
395
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE11}~org.kinotic.system.api.services.LlmConfigurationService`);
|
|
377
396
|
}
|
|
378
397
|
findAll(pageable) {
|
|
379
398
|
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
@@ -393,12 +412,12 @@ class LlmConfigurationService {
|
|
|
393
412
|
}
|
|
394
413
|
|
|
395
414
|
// packages/system-api/src/api/services/ISystemJobService.ts
|
|
396
|
-
import { SYSTEM_API_ZONE as
|
|
415
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE12 } from "@kinotic-ai/management-api";
|
|
397
416
|
|
|
398
417
|
class SystemJobService {
|
|
399
418
|
serviceProxy;
|
|
400
419
|
constructor(kinotic) {
|
|
401
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
420
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE12}~org.kinotic.system.api.services.SystemJobService`);
|
|
402
421
|
}
|
|
403
422
|
findSystemJobs() {
|
|
404
423
|
return this.serviceProxy.invoke("findSystemJobs", []);
|
|
@@ -409,12 +428,12 @@ class SystemJobService {
|
|
|
409
428
|
}
|
|
410
429
|
|
|
411
430
|
// packages/system-api/src/api/services/ILicenseService.ts
|
|
412
|
-
import { SYSTEM_API_ZONE as
|
|
431
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE13 } from "@kinotic-ai/management-api";
|
|
413
432
|
|
|
414
433
|
class LicenseService {
|
|
415
434
|
serviceProxy;
|
|
416
435
|
constructor(kinotic) {
|
|
417
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
436
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE13}~org.kinotic.system.api.services.LicenseService`);
|
|
418
437
|
}
|
|
419
438
|
findCurrent() {
|
|
420
439
|
return this.serviceProxy.invoke("findCurrent", []);
|
|
@@ -437,6 +456,7 @@ var SystemApiPlugin = {
|
|
|
437
456
|
logManager: new LogManager(kinotic),
|
|
438
457
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
439
458
|
clusterVulnerabilities: new ClusterVulnerabilityService(kinotic),
|
|
459
|
+
vulnerabilityAdvisories: new VulnerabilityAdvisoryService(kinotic),
|
|
440
460
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
441
461
|
systemMembers: new SystemMemberService(kinotic),
|
|
442
462
|
watchEvents: new WatchEventService(kinotic),
|
|
@@ -520,7 +540,7 @@ export {
|
|
|
520
540
|
LogManager,
|
|
521
541
|
LoggerLevelsDescriptor,
|
|
522
542
|
LoggersDescriptor,
|
|
523
|
-
|
|
543
|
+
SYSTEM_API_ZONE14 as SYSTEM_API_ZONE,
|
|
524
544
|
ServerVulnerabilities,
|
|
525
545
|
SingleLoggerLevelsDescriptor,
|
|
526
546
|
SystemApiPlugin,
|
|
@@ -534,6 +554,7 @@ export {
|
|
|
534
554
|
VmNodeServiceProxy,
|
|
535
555
|
VmNodeStatusType,
|
|
536
556
|
VmProviderType,
|
|
557
|
+
VulnerabilityAdvisoryService,
|
|
537
558
|
WatchEventService,
|
|
538
559
|
WorkloadOrchestrationService,
|
|
539
560
|
WorkloadServiceProxy
|
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.49",
|
|
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.79"
|
|
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.79",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|