@kinotic-ai/system-api 5.0.0-beta.21 → 5.0.0-beta.23

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
@@ -42,6 +42,7 @@ var exports_src = {};
42
42
  __export(exports_src, {
43
43
  WorkloadServiceProxy: () => WorkloadServiceProxy,
44
44
  WorkloadOrchestrationService: () => WorkloadOrchestrationService,
45
+ WatchEventService: () => WatchEventService,
45
46
  VmProviderType: () => VmProviderType,
46
47
  VmNodeStatusType: () => VmNodeStatusType,
47
48
  VmNodeServiceProxy: () => VmNodeServiceProxy,
@@ -53,7 +54,7 @@ __export(exports_src, {
53
54
  SystemMemberService: () => SystemMemberService,
54
55
  SystemApiPlugin: () => SystemApiPlugin,
55
56
  SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
56
- SYSTEM_API_ZONE: () => import_management_api9.SYSTEM_API_ZONE,
57
+ SYSTEM_API_ZONE: () => import_management_api10.SYSTEM_API_ZONE,
57
58
  LoggersDescriptor: () => LoggersDescriptor,
58
59
  LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
59
60
  LogManager: () => LogManager,
@@ -64,7 +65,7 @@ __export(exports_src, {
64
65
  GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
65
66
  });
66
67
  module.exports = __toCommonJS(exports_src);
67
- var import_management_api9 = require("@kinotic-ai/management-api");
68
+ var import_management_api10 = require("@kinotic-ai/management-api");
68
69
 
69
70
  // packages/system-api/src/api/model/workload/VmNode.ts
70
71
  var import_management_api = require("@kinotic-ai/management-api");
@@ -362,6 +363,24 @@ class SystemMemberService {
362
363
  }
363
364
  }
364
365
 
366
+ // packages/system-api/src/api/services/IWatchEventService.ts
367
+ var import_management_api9 = require("@kinotic-ai/management-api");
368
+ var import_core3 = require("@kinotic-ai/core");
369
+
370
+ class WatchEventService {
371
+ serviceProxy;
372
+ constructor(kinotic) {
373
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
374
+ }
375
+ async findAll(pageable) {
376
+ const page = await this.findAllSinglePage(pageable);
377
+ return new import_core3.FunctionalIterablePage(pageable, page, (pageable2) => this.findAllSinglePage(pageable2));
378
+ }
379
+ findAllSinglePage(pageable) {
380
+ return this.serviceProxy.invoke("findAll", [pageable]);
381
+ }
382
+ }
383
+
365
384
  // packages/system-api/src/api/SystemApiPlugin.ts
366
385
  var SystemApiPlugin = {
367
386
  install(kinotic) {
@@ -372,7 +391,8 @@ var SystemApiPlugin = {
372
391
  logManager: new LogManager(kinotic),
373
392
  clusterInfo: new KinoticClusterInfoService(kinotic),
374
393
  systemOrganizations: new SystemOrganizationService(kinotic),
375
- systemMembers: new SystemMemberService(kinotic)
394
+ systemMembers: new SystemMemberService(kinotic),
395
+ watchEvents: new WatchEventService(kinotic)
376
396
  };
377
397
  }
378
398
  };
package/dist/index.d.cts CHANGED
@@ -88,7 +88,7 @@ declare class VmNode implements Reconcilable<VmNodeState> {
88
88
  /**
89
89
  * The date and time the node was last seen/heartbeat.
90
90
  */
91
- lastSeen: number | null;
91
+ lastSeen: string | null;
92
92
  /**
93
93
  * Base directory every workload volume mount on this node must live under. Reported by
94
94
  * the node at registration; deployment flows compose host paths under it.
@@ -505,6 +505,28 @@ declare class SystemMemberService implements ISystemMemberService {
505
505
  setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
506
506
  removeMachine(machineId: string): Promise<void>;
507
507
  }
508
+ import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
509
+ import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
510
+ import { IterablePage as IterablePage3, Pageable as Pageable5 } from "@kinotic-ai/core";
511
+ /**
512
+ * The ledger of every watched record on the platform.
513
+ */
514
+ interface IWatchEventService {
515
+ /**
516
+ * Lists what happened to every watched record, newest first: each change of what a record should
517
+ * be and of what it reports, each mark set beside them, and each status a run passed through, with
518
+ * what caused it.
519
+ * @param pageable the page to return
520
+ * @return a Promise resolving to a page of ledger entries
521
+ */
522
+ findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
523
+ }
524
+ declare class WatchEventService implements IWatchEventService {
525
+ private readonly serviceProxy;
526
+ constructor(kinotic: IKinotic8);
527
+ findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
528
+ private findAllSinglePage;
529
+ }
508
530
  interface ISystemApiExtension {
509
531
  vmNodes: IVmNodeService;
510
532
  workloads: IWorkloadService;
@@ -513,12 +535,13 @@ interface ISystemApiExtension {
513
535
  clusterInfo: IKinoticClusterInfoService;
514
536
  systemOrganizations: ISystemOrganizationService;
515
537
  systemMembers: ISystemMemberService;
538
+ watchEvents: IWatchEventService;
516
539
  }
517
540
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
518
- import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
541
+ import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
519
542
  declare class LogManager implements ILogManager {
520
543
  private readonly serviceProxy;
521
- constructor(kinotic: IKinotic8);
544
+ constructor(kinotic: IKinotic9);
522
545
  loggers(nodeId: string): Promise<LoggersDescriptor>;
523
546
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
524
547
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -528,4 +551,4 @@ declare class LogManager implements ILogManager {
528
551
  declare module "@kinotic-ai/core" {
529
552
  interface KinoticSingleton extends ISystemApiExtension {}
530
553
  }
531
- export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
554
+ export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
package/dist/index.d.ts CHANGED
@@ -88,7 +88,7 @@ declare class VmNode implements Reconcilable<VmNodeState> {
88
88
  /**
89
89
  * The date and time the node was last seen/heartbeat.
90
90
  */
91
- lastSeen: number | null;
91
+ lastSeen: string | null;
92
92
  /**
93
93
  * Base directory every workload volume mount on this node must live under. Reported by
94
94
  * the node at registration; deployment flows compose host paths under it.
@@ -505,6 +505,28 @@ declare class SystemMemberService implements ISystemMemberService {
505
505
  setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
506
506
  removeMachine(machineId: string): Promise<void>;
507
507
  }
508
+ import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
509
+ import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
510
+ import { IterablePage as IterablePage3, Pageable as Pageable5 } from "@kinotic-ai/core";
511
+ /**
512
+ * The ledger of every watched record on the platform.
513
+ */
514
+ interface IWatchEventService {
515
+ /**
516
+ * Lists what happened to every watched record, newest first: each change of what a record should
517
+ * be and of what it reports, each mark set beside them, and each status a run passed through, with
518
+ * what caused it.
519
+ * @param pageable the page to return
520
+ * @return a Promise resolving to a page of ledger entries
521
+ */
522
+ findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
523
+ }
524
+ declare class WatchEventService implements IWatchEventService {
525
+ private readonly serviceProxy;
526
+ constructor(kinotic: IKinotic8);
527
+ findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
528
+ private findAllSinglePage;
529
+ }
508
530
  interface ISystemApiExtension {
509
531
  vmNodes: IVmNodeService;
510
532
  workloads: IWorkloadService;
@@ -513,12 +535,13 @@ interface ISystemApiExtension {
513
535
  clusterInfo: IKinoticClusterInfoService;
514
536
  systemOrganizations: ISystemOrganizationService;
515
537
  systemMembers: ISystemMemberService;
538
+ watchEvents: IWatchEventService;
516
539
  }
517
540
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
518
- import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
541
+ import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
519
542
  declare class LogManager implements ILogManager {
520
543
  private readonly serviceProxy;
521
- constructor(kinotic: IKinotic8);
544
+ constructor(kinotic: IKinotic9);
522
545
  loggers(nodeId: string): Promise<LoggersDescriptor>;
523
546
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
524
547
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -528,4 +551,4 @@ declare class LogManager implements ILogManager {
528
551
  declare module "@kinotic-ai/core" {
529
552
  interface KinoticSingleton extends ISystemApiExtension {}
530
553
  }
531
- export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
554
+ export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // packages/system-api/src/index.ts
2
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
2
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } 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";
@@ -301,6 +301,24 @@ class SystemMemberService {
301
301
  }
302
302
  }
303
303
 
304
+ // packages/system-api/src/api/services/IWatchEventService.ts
305
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
306
+ import { FunctionalIterablePage as FunctionalIterablePage3 } from "@kinotic-ai/core";
307
+
308
+ class WatchEventService {
309
+ serviceProxy;
310
+ constructor(kinotic) {
311
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.WatchEventService`);
312
+ }
313
+ async findAll(pageable) {
314
+ const page = await this.findAllSinglePage(pageable);
315
+ return new FunctionalIterablePage3(pageable, page, (pageable2) => this.findAllSinglePage(pageable2));
316
+ }
317
+ findAllSinglePage(pageable) {
318
+ return this.serviceProxy.invoke("findAll", [pageable]);
319
+ }
320
+ }
321
+
304
322
  // packages/system-api/src/api/SystemApiPlugin.ts
305
323
  var SystemApiPlugin = {
306
324
  install(kinotic) {
@@ -311,7 +329,8 @@ var SystemApiPlugin = {
311
329
  logManager: new LogManager(kinotic),
312
330
  clusterInfo: new KinoticClusterInfoService(kinotic),
313
331
  systemOrganizations: new SystemOrganizationService(kinotic),
314
- systemMembers: new SystemMemberService(kinotic)
332
+ systemMembers: new SystemMemberService(kinotic),
333
+ watchEvents: new WatchEventService(kinotic)
315
334
  };
316
335
  }
317
336
  };
@@ -337,6 +356,7 @@ class KinoticNodeInfo {
337
356
  export {
338
357
  WorkloadServiceProxy,
339
358
  WorkloadOrchestrationService,
359
+ WatchEventService,
340
360
  VmProviderType,
341
361
  VmNodeStatusType,
342
362
  VmNodeServiceProxy,
@@ -348,7 +368,7 @@ export {
348
368
  SystemMemberService,
349
369
  SystemApiPlugin,
350
370
  SingleLoggerLevelsDescriptor,
351
- SYSTEM_API_ZONE8 as SYSTEM_API_ZONE,
371
+ SYSTEM_API_ZONE9 as SYSTEM_API_ZONE,
352
372
  LoggersDescriptor,
353
373
  LoggerLevelsDescriptor,
354
374
  LogManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.21",
3
+ "version": "5.0.0-beta.23",
4
4
  "type": "module",
5
5
  "description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services platform machines and operators use.",
6
6
  "files": [
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@kinotic-ai/core": "^5.0.0-beta.17",
42
- "@kinotic-ai/management-api": "^5.0.0-beta.43"
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.45"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@kinotic-ai/core": "5.0.0-beta.17",
46
- "@kinotic-ai/management-api": "5.0.0-beta.43",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.45",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }