@kinotic-ai/system-api 5.0.0-beta.37 → 5.0.0-beta.39
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 +52 -3
- package/dist/index.d.cts +65 -3
- package/dist/index.d.ts +65 -3
- package/dist/index.js +52 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -40,10 +40,14 @@ var __export = (target, all) => {
|
|
|
40
40
|
// packages/system-api/src/index.ts
|
|
41
41
|
var exports_src = {};
|
|
42
42
|
__export(exports_src, {
|
|
43
|
+
EnterpriseFeature: () => EnterpriseFeature,
|
|
43
44
|
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
|
|
44
45
|
KinoticClusterInfo: () => KinoticClusterInfo,
|
|
45
46
|
KinoticClusterInfoService: () => KinoticClusterInfoService,
|
|
46
47
|
KinoticNodeInfo: () => KinoticNodeInfo,
|
|
48
|
+
LicenseDetails: () => LicenseDetails,
|
|
49
|
+
LicenseService: () => LicenseService,
|
|
50
|
+
LicenseStatus: () => LicenseStatus,
|
|
47
51
|
LlmConfiguration: () => LlmConfiguration,
|
|
48
52
|
LlmConfigurationService: () => LlmConfigurationService,
|
|
49
53
|
LlmProviderType: () => LlmProviderType,
|
|
@@ -51,7 +55,7 @@ __export(exports_src, {
|
|
|
51
55
|
LogManager: () => LogManager,
|
|
52
56
|
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
53
57
|
LoggersDescriptor: () => LoggersDescriptor,
|
|
54
|
-
SYSTEM_API_ZONE: () =>
|
|
58
|
+
SYSTEM_API_ZONE: () => import_management_api13.SYSTEM_API_ZONE,
|
|
55
59
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
56
60
|
SystemApiPlugin: () => SystemApiPlugin,
|
|
57
61
|
SystemJobService: () => SystemJobService,
|
|
@@ -69,7 +73,7 @@ __export(exports_src, {
|
|
|
69
73
|
WorkloadServiceProxy: () => WorkloadServiceProxy
|
|
70
74
|
});
|
|
71
75
|
module.exports = __toCommonJS(exports_src);
|
|
72
|
-
var
|
|
76
|
+
var import_management_api13 = require("@kinotic-ai/management-api");
|
|
73
77
|
|
|
74
78
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
75
79
|
var import_management_api = require("@kinotic-ai/management-api");
|
|
@@ -456,6 +460,22 @@ class SystemJobService {
|
|
|
456
460
|
}
|
|
457
461
|
}
|
|
458
462
|
|
|
463
|
+
// packages/system-api/src/api/services/ILicenseService.ts
|
|
464
|
+
var import_management_api12 = require("@kinotic-ai/management-api");
|
|
465
|
+
|
|
466
|
+
class LicenseService {
|
|
467
|
+
serviceProxy;
|
|
468
|
+
constructor(kinotic) {
|
|
469
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api12.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LicenseService`);
|
|
470
|
+
}
|
|
471
|
+
findCurrent() {
|
|
472
|
+
return this.serviceProxy.invoke("findCurrent", []);
|
|
473
|
+
}
|
|
474
|
+
install(licenseKey) {
|
|
475
|
+
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
459
479
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
460
480
|
var SystemApiPlugin = {
|
|
461
481
|
install(kinotic) {
|
|
@@ -469,7 +489,8 @@ var SystemApiPlugin = {
|
|
|
469
489
|
systemMembers: new SystemMemberService(kinotic),
|
|
470
490
|
watchEvents: new WatchEventService(kinotic),
|
|
471
491
|
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
472
|
-
systemJobs: new SystemJobService(kinotic)
|
|
492
|
+
systemJobs: new SystemJobService(kinotic),
|
|
493
|
+
licenses: new LicenseService(kinotic)
|
|
473
494
|
};
|
|
474
495
|
}
|
|
475
496
|
};
|
|
@@ -492,3 +513,31 @@ class KinoticNodeInfo {
|
|
|
492
513
|
telemetryServiceName = null;
|
|
493
514
|
telemetryServiceInstanceId = null;
|
|
494
515
|
}
|
|
516
|
+
// packages/system-api/src/api/model/license/EnterpriseFeature.ts
|
|
517
|
+
var EnterpriseFeature;
|
|
518
|
+
((EnterpriseFeature) => {
|
|
519
|
+
EnterpriseFeature["AZURE_KEY_VAULT"] = "AZURE_KEY_VAULT";
|
|
520
|
+
EnterpriseFeature["ENTERPRISE_IDENTITY_PROVIDERS"] = "ENTERPRISE_IDENTITY_PROVIDERS";
|
|
521
|
+
})(EnterpriseFeature ||= {});
|
|
522
|
+
// packages/system-api/src/api/model/license/LicenseStatus.ts
|
|
523
|
+
var LicenseStatus;
|
|
524
|
+
((LicenseStatus) => {
|
|
525
|
+
LicenseStatus["ACTIVE"] = "ACTIVE";
|
|
526
|
+
LicenseStatus["GRACE_PERIOD"] = "GRACE_PERIOD";
|
|
527
|
+
LicenseStatus["EXPIRED"] = "EXPIRED";
|
|
528
|
+
})(LicenseStatus ||= {});
|
|
529
|
+
// packages/system-api/src/api/model/license/LicenseDetails.ts
|
|
530
|
+
class LicenseDetails {
|
|
531
|
+
licensee;
|
|
532
|
+
issuedAt = null;
|
|
533
|
+
expiresAt;
|
|
534
|
+
graceEndsAt;
|
|
535
|
+
status;
|
|
536
|
+
features = [];
|
|
537
|
+
constructor(licensee, expiresAt, graceEndsAt, status) {
|
|
538
|
+
this.licensee = licensee;
|
|
539
|
+
this.expiresAt = expiresAt;
|
|
540
|
+
this.graceEndsAt = graceEndsAt;
|
|
541
|
+
this.status = status;
|
|
542
|
+
}
|
|
543
|
+
}
|
package/dist/index.d.cts
CHANGED
|
@@ -636,6 +636,67 @@ declare class SystemJobService implements ISystemJobService {
|
|
|
636
636
|
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
637
637
|
startSystemJob(name: string): Promise<JobRun>;
|
|
638
638
|
}
|
|
639
|
+
import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
|
|
640
|
+
/**
|
|
641
|
+
* The Enterprise Features a Kinotic Enterprise License key turns on.
|
|
642
|
+
*/
|
|
643
|
+
declare enum EnterpriseFeature {
|
|
644
|
+
/** Azure Key Vault secret storage. */
|
|
645
|
+
AZURE_KEY_VAULT = "AZURE_KEY_VAULT",
|
|
646
|
+
/** Okta and Microsoft Entra sign-in through an organization's own client. */
|
|
647
|
+
ENTERPRISE_IDENTITY_PROVIDERS = "ENTERPRISE_IDENTITY_PROVIDERS"
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Where a Kinotic Enterprise License stands now.
|
|
651
|
+
*/
|
|
652
|
+
declare enum LicenseStatus {
|
|
653
|
+
/** Before its expiry: its features are on. */
|
|
654
|
+
ACTIVE = "ACTIVE",
|
|
655
|
+
/** Expired less than the grace period ago: its features stay on until the grace period ends. */
|
|
656
|
+
GRACE_PERIOD = "GRACE_PERIOD",
|
|
657
|
+
/** Its grace period has ended: its features are off. */
|
|
658
|
+
EXPIRED = "EXPIRED"
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* The Kinotic Enterprise License the cluster runs on, as the system console shows it.
|
|
662
|
+
*/
|
|
663
|
+
declare class LicenseDetails {
|
|
664
|
+
/** The party the license is issued to. */
|
|
665
|
+
licensee: string;
|
|
666
|
+
/** When the license was issued, or null when its key does not say. */
|
|
667
|
+
issuedAt: string | null;
|
|
668
|
+
/** When the license expires. */
|
|
669
|
+
expiresAt: string;
|
|
670
|
+
/** When the license stops turning its features on, a grace period after it expires. */
|
|
671
|
+
graceEndsAt: string;
|
|
672
|
+
/** Where the license stands now. */
|
|
673
|
+
status: LicenseStatus;
|
|
674
|
+
/** The Enterprise Features the license turns on while it is active or in its grace period. */
|
|
675
|
+
features: EnterpriseFeature[];
|
|
676
|
+
constructor(licensee: string, expiresAt: string, graceEndsAt: string, status: LicenseStatus);
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* The Kinotic Enterprise License key the whole cluster runs on, which system users read and replace without
|
|
680
|
+
* restarting a server. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
681
|
+
* members may address.
|
|
682
|
+
*/
|
|
683
|
+
interface ILicenseService {
|
|
684
|
+
/** Resolves null when no valid key is installed. */
|
|
685
|
+
findCurrent(): Promise<LicenseDetails | null>;
|
|
686
|
+
/**
|
|
687
|
+
* Installs licenseKey for the whole cluster in place of the installed key, resolving with the license it holds.
|
|
688
|
+
* Each node runs on it once the call resolves, except a node the cluster could not reach, which reads it within
|
|
689
|
+
* ten minutes. Rejects a key Minds Ignited did not sign, one naming no licensee or expiry, and one whose grace
|
|
690
|
+
* period has ended.
|
|
691
|
+
*/
|
|
692
|
+
install(licenseKey: string): Promise<LicenseDetails>;
|
|
693
|
+
}
|
|
694
|
+
declare class LicenseService implements ILicenseService {
|
|
695
|
+
private readonly serviceProxy;
|
|
696
|
+
constructor(kinotic: IKinotic11);
|
|
697
|
+
findCurrent(): Promise<LicenseDetails | null>;
|
|
698
|
+
install(licenseKey: string): Promise<LicenseDetails>;
|
|
699
|
+
}
|
|
639
700
|
interface ISystemApiExtension {
|
|
640
701
|
vmNodes: IVmNodeService;
|
|
641
702
|
workloads: IWorkloadService;
|
|
@@ -647,12 +708,13 @@ interface ISystemApiExtension {
|
|
|
647
708
|
watchEvents: IWatchEventService;
|
|
648
709
|
llmConfigurations: ILlmConfigurationService;
|
|
649
710
|
systemJobs: ISystemJobService;
|
|
711
|
+
licenses: ILicenseService;
|
|
650
712
|
}
|
|
651
713
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
652
|
-
import { IKinotic as
|
|
714
|
+
import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
|
|
653
715
|
declare class LogManager implements ILogManager {
|
|
654
716
|
private readonly serviceProxy;
|
|
655
|
-
constructor(kinotic:
|
|
717
|
+
constructor(kinotic: IKinotic12);
|
|
656
718
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
657
719
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
658
720
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -662,4 +724,4 @@ declare class LogManager implements ILogManager {
|
|
|
662
724
|
declare module "@kinotic-ai/core" {
|
|
663
725
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
664
726
|
}
|
|
665
|
-
export { GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
|
727
|
+
export { EnterpriseFeature, GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, LicenseDetails, LicenseService, LicenseStatus, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
package/dist/index.d.ts
CHANGED
|
@@ -636,6 +636,67 @@ declare class SystemJobService implements ISystemJobService {
|
|
|
636
636
|
findSystemJobs(): Promise<SystemJobDescriptor[]>;
|
|
637
637
|
startSystemJob(name: string): Promise<JobRun>;
|
|
638
638
|
}
|
|
639
|
+
import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
|
|
640
|
+
/**
|
|
641
|
+
* The Enterprise Features a Kinotic Enterprise License key turns on.
|
|
642
|
+
*/
|
|
643
|
+
declare enum EnterpriseFeature {
|
|
644
|
+
/** Azure Key Vault secret storage. */
|
|
645
|
+
AZURE_KEY_VAULT = "AZURE_KEY_VAULT",
|
|
646
|
+
/** Okta and Microsoft Entra sign-in through an organization's own client. */
|
|
647
|
+
ENTERPRISE_IDENTITY_PROVIDERS = "ENTERPRISE_IDENTITY_PROVIDERS"
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Where a Kinotic Enterprise License stands now.
|
|
651
|
+
*/
|
|
652
|
+
declare enum LicenseStatus {
|
|
653
|
+
/** Before its expiry: its features are on. */
|
|
654
|
+
ACTIVE = "ACTIVE",
|
|
655
|
+
/** Expired less than the grace period ago: its features stay on until the grace period ends. */
|
|
656
|
+
GRACE_PERIOD = "GRACE_PERIOD",
|
|
657
|
+
/** Its grace period has ended: its features are off. */
|
|
658
|
+
EXPIRED = "EXPIRED"
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* The Kinotic Enterprise License the cluster runs on, as the system console shows it.
|
|
662
|
+
*/
|
|
663
|
+
declare class LicenseDetails {
|
|
664
|
+
/** The party the license is issued to. */
|
|
665
|
+
licensee: string;
|
|
666
|
+
/** When the license was issued, or null when its key does not say. */
|
|
667
|
+
issuedAt: string | null;
|
|
668
|
+
/** When the license expires. */
|
|
669
|
+
expiresAt: string;
|
|
670
|
+
/** When the license stops turning its features on, a grace period after it expires. */
|
|
671
|
+
graceEndsAt: string;
|
|
672
|
+
/** Where the license stands now. */
|
|
673
|
+
status: LicenseStatus;
|
|
674
|
+
/** The Enterprise Features the license turns on while it is active or in its grace period. */
|
|
675
|
+
features: EnterpriseFeature[];
|
|
676
|
+
constructor(licensee: string, expiresAt: string, graceEndsAt: string, status: LicenseStatus);
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* The Kinotic Enterprise License key the whole cluster runs on, which system users read and replace without
|
|
680
|
+
* restarting a server. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
681
|
+
* members may address.
|
|
682
|
+
*/
|
|
683
|
+
interface ILicenseService {
|
|
684
|
+
/** Resolves null when no valid key is installed. */
|
|
685
|
+
findCurrent(): Promise<LicenseDetails | null>;
|
|
686
|
+
/**
|
|
687
|
+
* Installs licenseKey for the whole cluster in place of the installed key, resolving with the license it holds.
|
|
688
|
+
* Each node runs on it once the call resolves, except a node the cluster could not reach, which reads it within
|
|
689
|
+
* ten minutes. Rejects a key Minds Ignited did not sign, one naming no licensee or expiry, and one whose grace
|
|
690
|
+
* period has ended.
|
|
691
|
+
*/
|
|
692
|
+
install(licenseKey: string): Promise<LicenseDetails>;
|
|
693
|
+
}
|
|
694
|
+
declare class LicenseService implements ILicenseService {
|
|
695
|
+
private readonly serviceProxy;
|
|
696
|
+
constructor(kinotic: IKinotic11);
|
|
697
|
+
findCurrent(): Promise<LicenseDetails | null>;
|
|
698
|
+
install(licenseKey: string): Promise<LicenseDetails>;
|
|
699
|
+
}
|
|
639
700
|
interface ISystemApiExtension {
|
|
640
701
|
vmNodes: IVmNodeService;
|
|
641
702
|
workloads: IWorkloadService;
|
|
@@ -647,12 +708,13 @@ interface ISystemApiExtension {
|
|
|
647
708
|
watchEvents: IWatchEventService;
|
|
648
709
|
llmConfigurations: ILlmConfigurationService;
|
|
649
710
|
systemJobs: ISystemJobService;
|
|
711
|
+
licenses: ILicenseService;
|
|
650
712
|
}
|
|
651
713
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
652
|
-
import { IKinotic as
|
|
714
|
+
import { IKinotic as IKinotic12 } from "@kinotic-ai/core";
|
|
653
715
|
declare class LogManager implements ILogManager {
|
|
654
716
|
private readonly serviceProxy;
|
|
655
|
-
constructor(kinotic:
|
|
717
|
+
constructor(kinotic: IKinotic12);
|
|
656
718
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
657
719
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
658
720
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -662,4 +724,4 @@ declare class LogManager implements ILogManager {
|
|
|
662
724
|
declare module "@kinotic-ai/core" {
|
|
663
725
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
664
726
|
}
|
|
665
|
-
export { GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
|
727
|
+
export { EnterpriseFeature, GroupLoggerLevelsDescriptor, IKinoticClusterInfoService, ILicenseService, ILlmConfigurationService, ILogManager, ISystemApiExtension, ISystemJobService, ISystemMemberService, ISystemOrganizationService, IVmNodeService, IWatchEventService, IWorkloadOrchestrationService, IWorkloadService, KinoticClusterInfo, KinoticClusterInfoService, KinoticNodeInfo, LicenseDetails, LicenseService, LicenseStatus, LlmConfiguration, LlmConfigurationService, LlmProviderType, LogLevel, LogManager, LoggerLevelsDescriptor, LoggersDescriptor, SYSTEM_API_ZONE, SingleLoggerLevelsDescriptor, SystemApiPlugin, SystemJobDescriptor, SystemJobService, SystemMemberService, SystemOrganizationService, TraceLogProperties, VmNode, VmNodeOrchestrationServiceProxy, VmNodeRegistration, VmNodeServiceProxy, VmNodeState, VmNodeStatusType, VmProviderType, WatchEventService, WorkloadOrchestrationService, WorkloadServiceProxy, WorkloadStatusReport };
|
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_ZONE12 } 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";
|
|
@@ -390,6 +390,22 @@ class SystemJobService {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
// packages/system-api/src/api/services/ILicenseService.ts
|
|
394
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
|
|
395
|
+
|
|
396
|
+
class LicenseService {
|
|
397
|
+
serviceProxy;
|
|
398
|
+
constructor(kinotic) {
|
|
399
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE11}~org.kinotic.system.api.services.LicenseService`);
|
|
400
|
+
}
|
|
401
|
+
findCurrent() {
|
|
402
|
+
return this.serviceProxy.invoke("findCurrent", []);
|
|
403
|
+
}
|
|
404
|
+
install(licenseKey) {
|
|
405
|
+
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
393
409
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
394
410
|
var SystemApiPlugin = {
|
|
395
411
|
install(kinotic) {
|
|
@@ -403,7 +419,8 @@ var SystemApiPlugin = {
|
|
|
403
419
|
systemMembers: new SystemMemberService(kinotic),
|
|
404
420
|
watchEvents: new WatchEventService(kinotic),
|
|
405
421
|
llmConfigurations: new LlmConfigurationService(kinotic),
|
|
406
|
-
systemJobs: new SystemJobService(kinotic)
|
|
422
|
+
systemJobs: new SystemJobService(kinotic),
|
|
423
|
+
licenses: new LicenseService(kinotic)
|
|
407
424
|
};
|
|
408
425
|
}
|
|
409
426
|
};
|
|
@@ -426,11 +443,43 @@ class KinoticNodeInfo {
|
|
|
426
443
|
telemetryServiceName = null;
|
|
427
444
|
telemetryServiceInstanceId = null;
|
|
428
445
|
}
|
|
446
|
+
// packages/system-api/src/api/model/license/EnterpriseFeature.ts
|
|
447
|
+
var EnterpriseFeature;
|
|
448
|
+
((EnterpriseFeature) => {
|
|
449
|
+
EnterpriseFeature["AZURE_KEY_VAULT"] = "AZURE_KEY_VAULT";
|
|
450
|
+
EnterpriseFeature["ENTERPRISE_IDENTITY_PROVIDERS"] = "ENTERPRISE_IDENTITY_PROVIDERS";
|
|
451
|
+
})(EnterpriseFeature ||= {});
|
|
452
|
+
// packages/system-api/src/api/model/license/LicenseStatus.ts
|
|
453
|
+
var LicenseStatus;
|
|
454
|
+
((LicenseStatus) => {
|
|
455
|
+
LicenseStatus["ACTIVE"] = "ACTIVE";
|
|
456
|
+
LicenseStatus["GRACE_PERIOD"] = "GRACE_PERIOD";
|
|
457
|
+
LicenseStatus["EXPIRED"] = "EXPIRED";
|
|
458
|
+
})(LicenseStatus ||= {});
|
|
459
|
+
// packages/system-api/src/api/model/license/LicenseDetails.ts
|
|
460
|
+
class LicenseDetails {
|
|
461
|
+
licensee;
|
|
462
|
+
issuedAt = null;
|
|
463
|
+
expiresAt;
|
|
464
|
+
graceEndsAt;
|
|
465
|
+
status;
|
|
466
|
+
features = [];
|
|
467
|
+
constructor(licensee, expiresAt, graceEndsAt, status) {
|
|
468
|
+
this.licensee = licensee;
|
|
469
|
+
this.expiresAt = expiresAt;
|
|
470
|
+
this.graceEndsAt = graceEndsAt;
|
|
471
|
+
this.status = status;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
429
474
|
export {
|
|
475
|
+
EnterpriseFeature,
|
|
430
476
|
GroupLoggerLevelsDescriptor,
|
|
431
477
|
KinoticClusterInfo,
|
|
432
478
|
KinoticClusterInfoService,
|
|
433
479
|
KinoticNodeInfo,
|
|
480
|
+
LicenseDetails,
|
|
481
|
+
LicenseService,
|
|
482
|
+
LicenseStatus,
|
|
434
483
|
LlmConfiguration,
|
|
435
484
|
LlmConfigurationService,
|
|
436
485
|
LlmProviderType,
|
|
@@ -438,7 +487,7 @@ export {
|
|
|
438
487
|
LogManager,
|
|
439
488
|
LoggerLevelsDescriptor,
|
|
440
489
|
LoggersDescriptor,
|
|
441
|
-
|
|
490
|
+
SYSTEM_API_ZONE12 as SYSTEM_API_ZONE,
|
|
442
491
|
SingleLoggerLevelsDescriptor,
|
|
443
492
|
SystemApiPlugin,
|
|
444
493
|
SystemJobService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/system-api",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.39",
|
|
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": [
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"coverage": "bun test --coverage --pass-with-no-tests"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@kinotic-ai/core": "^5.0.0-beta.
|
|
42
|
-
"@kinotic-ai/management-api": "^5.0.0-beta.
|
|
41
|
+
"@kinotic-ai/core": "^5.0.0-beta.30",
|
|
42
|
+
"@kinotic-ai/management-api": "^5.0.0-beta.72"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@kinotic-ai/core": "5.0.0-beta.
|
|
46
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
45
|
+
"@kinotic-ai/core": "5.0.0-beta.30",
|
|
46
|
+
"@kinotic-ai/management-api": "5.0.0-beta.72",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|