@kinotic-ai/system-api 5.0.0-beta.20 → 5.0.0-beta.22

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,13 +391,13 @@ 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
  };
379
399
  // packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
380
400
  class KinoticClusterInfo {
381
- localNodeId = "";
382
401
  serverNodeCount = 0;
383
402
  topologyVersion = 0;
384
403
  clusterState = "";
@@ -389,8 +408,10 @@ class KinoticClusterInfo {
389
408
  class KinoticNodeInfo {
390
409
  nodeId = "";
391
410
  order = 0;
392
- local = false;
411
+ serverName = "";
393
412
  addresses = [];
394
413
  hostNames = [];
395
- version = "";
414
+ version = null;
415
+ telemetryServiceName = null;
416
+ telemetryServiceInstanceId = null;
396
417
  }
package/dist/index.d.cts CHANGED
@@ -389,17 +389,22 @@ import { IKinotic as IKinotic5 } from "@kinotic-ai/core";
389
389
  declare class KinoticNodeInfo {
390
390
  nodeId: string;
391
391
  order: number;
392
- local: boolean;
392
+ /** The server kind the node runs, such as management, system or app. */
393
+ serverName: string;
393
394
  addresses: string[];
394
395
  hostNames: string[];
395
- version: string;
396
+ /** The Kinotic version the node runs; null when the node runs from classes rather than a packaged jar. */
397
+ version: string | null;
398
+ /** The service name that labels the logs of the server the node runs, for LogService's server log methods; null when the deployment configures none. */
399
+ telemetryServiceName: string | null;
400
+ /** The service instance id that labels the node's own logs, narrowing a server log query to this node; null when the deployment configures none. */
401
+ telemetryServiceInstanceId: string | null;
396
402
  }
397
403
  /**
398
404
  * The current topology and state of the cluster the org, system and app servers form. Mirrors the
399
405
  * server's {@code org.kinotic.system.api.model.cluster.KinoticClusterInfo}.
400
406
  */
401
407
  declare class KinoticClusterInfo {
402
- localNodeId: string;
403
408
  serverNodeCount: number;
404
409
  topologyVersion: number;
405
410
  clusterState: string;
@@ -500,6 +505,28 @@ declare class SystemMemberService implements ISystemMemberService {
500
505
  setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
501
506
  removeMachine(machineId: string): Promise<void>;
502
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
+ }
503
530
  interface ISystemApiExtension {
504
531
  vmNodes: IVmNodeService;
505
532
  workloads: IWorkloadService;
@@ -508,12 +535,13 @@ interface ISystemApiExtension {
508
535
  clusterInfo: IKinoticClusterInfoService;
509
536
  systemOrganizations: ISystemOrganizationService;
510
537
  systemMembers: ISystemMemberService;
538
+ watchEvents: IWatchEventService;
511
539
  }
512
540
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
513
- import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
541
+ import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
514
542
  declare class LogManager implements ILogManager {
515
543
  private readonly serviceProxy;
516
- constructor(kinotic: IKinotic8);
544
+ constructor(kinotic: IKinotic9);
517
545
  loggers(nodeId: string): Promise<LoggersDescriptor>;
518
546
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
519
547
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -523,4 +551,4 @@ declare class LogManager implements ILogManager {
523
551
  declare module "@kinotic-ai/core" {
524
552
  interface KinoticSingleton extends ISystemApiExtension {}
525
553
  }
526
- 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
@@ -389,17 +389,22 @@ import { IKinotic as IKinotic5 } from "@kinotic-ai/core";
389
389
  declare class KinoticNodeInfo {
390
390
  nodeId: string;
391
391
  order: number;
392
- local: boolean;
392
+ /** The server kind the node runs, such as management, system or app. */
393
+ serverName: string;
393
394
  addresses: string[];
394
395
  hostNames: string[];
395
- version: string;
396
+ /** The Kinotic version the node runs; null when the node runs from classes rather than a packaged jar. */
397
+ version: string | null;
398
+ /** The service name that labels the logs of the server the node runs, for LogService's server log methods; null when the deployment configures none. */
399
+ telemetryServiceName: string | null;
400
+ /** The service instance id that labels the node's own logs, narrowing a server log query to this node; null when the deployment configures none. */
401
+ telemetryServiceInstanceId: string | null;
396
402
  }
397
403
  /**
398
404
  * The current topology and state of the cluster the org, system and app servers form. Mirrors the
399
405
  * server's {@code org.kinotic.system.api.model.cluster.KinoticClusterInfo}.
400
406
  */
401
407
  declare class KinoticClusterInfo {
402
- localNodeId: string;
403
408
  serverNodeCount: number;
404
409
  topologyVersion: number;
405
410
  clusterState: string;
@@ -500,6 +505,28 @@ declare class SystemMemberService implements ISystemMemberService {
500
505
  setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
501
506
  removeMachine(machineId: string): Promise<void>;
502
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
+ }
503
530
  interface ISystemApiExtension {
504
531
  vmNodes: IVmNodeService;
505
532
  workloads: IWorkloadService;
@@ -508,12 +535,13 @@ interface ISystemApiExtension {
508
535
  clusterInfo: IKinoticClusterInfoService;
509
536
  systemOrganizations: ISystemOrganizationService;
510
537
  systemMembers: ISystemMemberService;
538
+ watchEvents: IWatchEventService;
511
539
  }
512
540
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
513
- import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
541
+ import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
514
542
  declare class LogManager implements ILogManager {
515
543
  private readonly serviceProxy;
516
- constructor(kinotic: IKinotic8);
544
+ constructor(kinotic: IKinotic9);
517
545
  loggers(nodeId: string): Promise<LoggersDescriptor>;
518
546
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
519
547
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -523,4 +551,4 @@ declare class LogManager implements ILogManager {
523
551
  declare module "@kinotic-ai/core" {
524
552
  interface KinoticSingleton extends ISystemApiExtension {}
525
553
  }
526
- 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,13 +329,13 @@ 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
  };
318
337
  // packages/system-api/src/api/model/cluster/KinoticClusterInfo.ts
319
338
  class KinoticClusterInfo {
320
- localNodeId = "";
321
339
  serverNodeCount = 0;
322
340
  topologyVersion = 0;
323
341
  clusterState = "";
@@ -328,14 +346,17 @@ class KinoticClusterInfo {
328
346
  class KinoticNodeInfo {
329
347
  nodeId = "";
330
348
  order = 0;
331
- local = false;
349
+ serverName = "";
332
350
  addresses = [];
333
351
  hostNames = [];
334
- version = "";
352
+ version = null;
353
+ telemetryServiceName = null;
354
+ telemetryServiceInstanceId = null;
335
355
  }
336
356
  export {
337
357
  WorkloadServiceProxy,
338
358
  WorkloadOrchestrationService,
359
+ WatchEventService,
339
360
  VmProviderType,
340
361
  VmNodeStatusType,
341
362
  VmNodeServiceProxy,
@@ -347,7 +368,7 @@ export {
347
368
  SystemMemberService,
348
369
  SystemApiPlugin,
349
370
  SingleLoggerLevelsDescriptor,
350
- SYSTEM_API_ZONE8 as SYSTEM_API_ZONE,
371
+ SYSTEM_API_ZONE9 as SYSTEM_API_ZONE,
351
372
  LoggersDescriptor,
352
373
  LoggerLevelsDescriptor,
353
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.20",
3
+ "version": "5.0.0-beta.22",
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.42"
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.44"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@kinotic-ai/core": "5.0.0-beta.17",
46
- "@kinotic-ai/management-api": "5.0.0-beta.42",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.44",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }