@kinotic-ai/system-api 5.0.0-beta.50 → 5.0.0-beta.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -353,6 +353,9 @@ class VulnerabilityAdvisoryService {
353
353
  findAdvisories(search, pageable) {
354
354
  return this.serviceProxy.invoke("findAdvisories", [search, pageable]);
355
355
  }
356
+ findAdvisoriesOf(ecosystem, pageable) {
357
+ return this.serviceProxy.invoke("findAdvisoriesOf", [ecosystem, pageable]);
358
+ }
356
359
  findAlerts(advisoryId, pageable) {
357
360
  return this.serviceProxy.invoke("findAlerts", [advisoryId, pageable]);
358
361
  }
@@ -450,12 +453,12 @@ class WatchEventService {
450
453
  constructor(kinotic) {
451
454
  this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
452
455
  }
453
- async findAll(pageable) {
454
- const page = await this.findAllSinglePage(pageable);
455
- return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(pageable));
456
+ async findAll(types, pageable) {
457
+ const page = await this.findAllSinglePage(types, pageable);
458
+ return new import_core3.FunctionalIterablePage(pageable, page, (pageable) => this.findAllSinglePage(types, pageable));
456
459
  }
457
- findAllSinglePage(pageable) {
458
- return this.serviceProxy.invoke("findAll", [pageable]);
460
+ findAllSinglePage(types, pageable) {
461
+ return this.serviceProxy.invoke("findAll", [types, pageable]);
459
462
  }
460
463
  }
461
464
 
package/dist/index.d.cts CHANGED
@@ -486,7 +486,7 @@ declare class ClusterVulnerabilityService implements IClusterVulnerabilityServic
486
486
  constructor(kinotic: IKinotic6);
487
487
  findAll(): Promise<ServerVulnerabilities[]>;
488
488
  }
489
- import { VulnerabilityAdvisory, VulnerabilityAlert } from "@kinotic-ai/management-api";
489
+ import { PackageEcosystem as PackageEcosystem2, VulnerabilityAdvisory, VulnerabilityAlert } from "@kinotic-ai/management-api";
490
490
  import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
491
491
  import { PackageEcosystem } from "@kinotic-ai/management-api";
492
492
  /**
@@ -524,6 +524,13 @@ interface IVulnerabilityAdvisoryService {
524
524
  */
525
525
  findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
526
526
  /**
527
+ * Lists the stored advisories of a package ecosystem that are not withdrawn, the ones the
528
+ * ecosystem's OsvImportStatus counts, as findImportStatus reports it.
529
+ * @param ecosystem the ecosystem whose advisories to list
530
+ * @param pageable the page to return
531
+ */
532
+ findAdvisoriesOf(ecosystem: PackageEcosystem2, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
533
+ /**
527
534
  * Lists the alerts an advisory has raised, one per affected project, across every organization.
528
535
  * @param advisoryId the advisory's OSV id
529
536
  * @param pageable the page to return
@@ -535,6 +542,7 @@ declare class VulnerabilityAdvisoryService implements IVulnerabilityAdvisoryServ
535
542
  constructor(kinotic: IKinotic7);
536
543
  findImportStatus(): Promise<OsvImportStatus[]>;
537
544
  findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
545
+ findAdvisoriesOf(ecosystem: PackageEcosystem2, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
538
546
  findAlerts(advisoryId: string, pageable: Pageable3): Promise<Page3<VulnerabilityAlert>>;
539
547
  }
540
548
  import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationParticipantIdentity, PendingInviteSummary } from "@kinotic-ai/management-api";
@@ -639,7 +647,7 @@ declare class SystemMemberService implements ISystemMemberService {
639
647
  setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
640
648
  removeMachine(machineId: string): Promise<void>;
641
649
  }
642
- import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
650
+ import { WatchEvent as WatchEvent3, WatchedType } from "@kinotic-ai/management-api";
643
651
  import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
644
652
  import { IterablePage as IterablePage3, Pageable as Pageable6 } from "@kinotic-ai/core";
645
653
  /**
@@ -649,16 +657,17 @@ interface IWatchEventService {
649
657
  /**
650
658
  * Lists what happened to every watched record, newest first: each change of what a record should
651
659
  * be and of what it reports, each mark set beside them, and each status a run passed through, with
652
- * what caused it.
660
+ * what caused it. Each entry names the record by its name when written, beside its id.
661
+ * @param types the kinds of record to list the entries of, every kind when null or empty
653
662
  * @param pageable the page to return
654
663
  * @return a Promise resolving to a page of ledger entries
655
664
  */
656
- findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
665
+ findAll(types: WatchedType[] | null, pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
657
666
  }
658
667
  declare class WatchEventService implements IWatchEventService {
659
668
  private readonly serviceProxy;
660
669
  constructor(kinotic: IKinotic10);
661
- findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
670
+ findAll(types: WatchedType[] | null, pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
662
671
  private findAllSinglePage;
663
672
  }
664
673
  import { IKinotic as IKinotic11, Page as Page6, Pageable as Pageable7 } from "@kinotic-ai/core";
package/dist/index.d.ts CHANGED
@@ -486,7 +486,7 @@ declare class ClusterVulnerabilityService implements IClusterVulnerabilityServic
486
486
  constructor(kinotic: IKinotic6);
487
487
  findAll(): Promise<ServerVulnerabilities[]>;
488
488
  }
489
- import { VulnerabilityAdvisory, VulnerabilityAlert } from "@kinotic-ai/management-api";
489
+ import { PackageEcosystem as PackageEcosystem2, VulnerabilityAdvisory, VulnerabilityAlert } from "@kinotic-ai/management-api";
490
490
  import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
491
491
  import { PackageEcosystem } from "@kinotic-ai/management-api";
492
492
  /**
@@ -524,6 +524,13 @@ interface IVulnerabilityAdvisoryService {
524
524
  */
525
525
  findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
526
526
  /**
527
+ * Lists the stored advisories of a package ecosystem that are not withdrawn, the ones the
528
+ * ecosystem's OsvImportStatus counts, as findImportStatus reports it.
529
+ * @param ecosystem the ecosystem whose advisories to list
530
+ * @param pageable the page to return
531
+ */
532
+ findAdvisoriesOf(ecosystem: PackageEcosystem2, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
533
+ /**
527
534
  * Lists the alerts an advisory has raised, one per affected project, across every organization.
528
535
  * @param advisoryId the advisory's OSV id
529
536
  * @param pageable the page to return
@@ -535,6 +542,7 @@ declare class VulnerabilityAdvisoryService implements IVulnerabilityAdvisoryServ
535
542
  constructor(kinotic: IKinotic7);
536
543
  findImportStatus(): Promise<OsvImportStatus[]>;
537
544
  findAdvisories(search: string, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
545
+ findAdvisoriesOf(ecosystem: PackageEcosystem2, pageable: Pageable3): Promise<Page3<VulnerabilityAdvisory>>;
538
546
  findAlerts(advisoryId: string, pageable: Pageable3): Promise<Page3<VulnerabilityAlert>>;
539
547
  }
540
548
  import { Application, Organization, Project, ApplicationParticipantIdentity, OrganizationParticipantIdentity, PendingInviteSummary } from "@kinotic-ai/management-api";
@@ -639,7 +647,7 @@ declare class SystemMemberService implements ISystemMemberService {
639
647
  setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
640
648
  removeMachine(machineId: string): Promise<void>;
641
649
  }
642
- import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
650
+ import { WatchEvent as WatchEvent3, WatchedType } from "@kinotic-ai/management-api";
643
651
  import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
644
652
  import { IterablePage as IterablePage3, Pageable as Pageable6 } from "@kinotic-ai/core";
645
653
  /**
@@ -649,16 +657,17 @@ interface IWatchEventService {
649
657
  /**
650
658
  * Lists what happened to every watched record, newest first: each change of what a record should
651
659
  * be and of what it reports, each mark set beside them, and each status a run passed through, with
652
- * what caused it.
660
+ * what caused it. Each entry names the record by its name when written, beside its id.
661
+ * @param types the kinds of record to list the entries of, every kind when null or empty
653
662
  * @param pageable the page to return
654
663
  * @return a Promise resolving to a page of ledger entries
655
664
  */
656
- findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
665
+ findAll(types: WatchedType[] | null, pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
657
666
  }
658
667
  declare class WatchEventService implements IWatchEventService {
659
668
  private readonly serviceProxy;
660
669
  constructor(kinotic: IKinotic10);
661
- findAll(pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
670
+ findAll(types: WatchedType[] | null, pageable: Pageable6): Promise<IterablePage3<WatchEvent3>>;
662
671
  private findAllSinglePage;
663
672
  }
664
673
  import { IKinotic as IKinotic11, Page as Page6, Pageable as Pageable7 } from "@kinotic-ai/core";
package/dist/index.js CHANGED
@@ -276,6 +276,9 @@ class VulnerabilityAdvisoryService {
276
276
  findAdvisories(search, pageable) {
277
277
  return this.serviceProxy.invoke("findAdvisories", [search, pageable]);
278
278
  }
279
+ findAdvisoriesOf(ecosystem, pageable) {
280
+ return this.serviceProxy.invoke("findAdvisoriesOf", [ecosystem, pageable]);
281
+ }
279
282
  findAlerts(advisoryId, pageable) {
280
283
  return this.serviceProxy.invoke("findAlerts", [advisoryId, pageable]);
281
284
  }
@@ -377,12 +380,12 @@ class WatchEventService {
377
380
  constructor(kinotic) {
378
381
  this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.WatchEventService`);
379
382
  }
380
- async findAll(pageable) {
381
- const page = await this.findAllSinglePage(pageable);
382
- return new FunctionalIterablePage3(pageable, page, (pageable) => this.findAllSinglePage(pageable));
383
+ async findAll(types, pageable) {
384
+ const page = await this.findAllSinglePage(types, pageable);
385
+ return new FunctionalIterablePage3(pageable, page, (pageable) => this.findAllSinglePage(types, pageable));
383
386
  }
384
- findAllSinglePage(pageable) {
385
- return this.serviceProxy.invoke("findAll", [pageable]);
387
+ findAllSinglePage(types, pageable) {
388
+ return this.serviceProxy.invoke("findAll", [types, pageable]);
386
389
  }
387
390
  }
388
391
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.50",
3
+ "version": "5.0.0-beta.52",
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.80"
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.82"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@kinotic-ai/core": "5.0.0-beta.30",
46
- "@kinotic-ai/management-api": "5.0.0-beta.80",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.82",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }