@kinotic-ai/system-api 5.0.0-beta.40 → 5.0.0-beta.41
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 +4 -0
- package/dist/index.d.cts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -474,6 +474,9 @@ class LicenseService {
|
|
|
474
474
|
install(licenseKey) {
|
|
475
475
|
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
476
476
|
}
|
|
477
|
+
findClusterId() {
|
|
478
|
+
return this.serviceProxy.invoke("findClusterId", []);
|
|
479
|
+
}
|
|
477
480
|
}
|
|
478
481
|
|
|
479
482
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
@@ -529,6 +532,7 @@ var LicenseStatus;
|
|
|
529
532
|
// packages/system-api/src/api/model/license/License.ts
|
|
530
533
|
class License {
|
|
531
534
|
licensee;
|
|
535
|
+
clusterId = null;
|
|
532
536
|
issuedAt = null;
|
|
533
537
|
expiresAt;
|
|
534
538
|
graceEndsAt;
|
package/dist/index.d.cts
CHANGED
|
@@ -658,12 +658,17 @@ declare enum LicenseStatus {
|
|
|
658
658
|
EXPIRED = "EXPIRED"
|
|
659
659
|
}
|
|
660
660
|
/**
|
|
661
|
-
* A verified Kinotic Enterprise License: who it is issued to, when it was issued and
|
|
662
|
-
* Features it turns on until its grace period ends.
|
|
661
|
+
* A verified Kinotic Enterprise License: who it is issued to, the cluster it is bound to, when it was issued and
|
|
662
|
+
* expires, and the Enterprise Features it turns on until its grace period ends.
|
|
663
663
|
*/
|
|
664
664
|
declare class License {
|
|
665
665
|
/** The party the license is issued to. */
|
|
666
666
|
licensee: string;
|
|
667
|
+
/**
|
|
668
|
+
* The id of the one cluster the license works on, the UID of that cluster's kube-system namespace, or null when
|
|
669
|
+
* it works on any cluster.
|
|
670
|
+
*/
|
|
671
|
+
clusterId: string | null;
|
|
667
672
|
/** When the license was issued, or null when its key does not say. */
|
|
668
673
|
issuedAt: string | null;
|
|
669
674
|
/** When the license expires. */
|
|
@@ -678,7 +683,7 @@ declare class License {
|
|
|
678
683
|
}
|
|
679
684
|
/**
|
|
680
685
|
* The Kinotic Enterprise License key the whole cluster runs on, which system users read and replace without
|
|
681
|
-
* restarting a server. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
686
|
+
* restarting a server. A key bound to the cluster is renewed from Minds Ignited's license server once a day. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
682
687
|
* members may address.
|
|
683
688
|
*/
|
|
684
689
|
interface ILicenseService {
|
|
@@ -687,17 +692,25 @@ interface ILicenseService {
|
|
|
687
692
|
/**
|
|
688
693
|
* Installs licenseKey for the whole cluster in place of the installed key, resolving with the license it holds.
|
|
689
694
|
* The call resolves once the key is stored and the node that took the call runs on it; every other node runs on
|
|
690
|
-
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
695
|
+
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
696
|
+
* Minds Ignited did not sign, one naming no licensee or expiry, one bound to another cluster, one whose grace
|
|
691
697
|
* period has ended, and, on a cluster that stores secrets in Azure Key Vault, one that does not turn
|
|
692
698
|
* AZURE_KEY_VAULT on.
|
|
693
699
|
*/
|
|
694
700
|
install(licenseKey: string): Promise<License>;
|
|
701
|
+
/**
|
|
702
|
+
* The id of this cluster, the UID of its kube-system namespace, which a customer gives Minds Ignited to get a key
|
|
703
|
+
* bound to the cluster. Resolves null when the cluster does not run in Kubernetes, or has not been able to read
|
|
704
|
+
* the namespace yet.
|
|
705
|
+
*/
|
|
706
|
+
findClusterId(): Promise<string | null>;
|
|
695
707
|
}
|
|
696
708
|
declare class LicenseService implements ILicenseService {
|
|
697
709
|
private readonly serviceProxy;
|
|
698
710
|
constructor(kinotic: IKinotic11);
|
|
699
711
|
findCurrent(): Promise<License | null>;
|
|
700
712
|
install(licenseKey: string): Promise<License>;
|
|
713
|
+
findClusterId(): Promise<string | null>;
|
|
701
714
|
}
|
|
702
715
|
interface ISystemApiExtension {
|
|
703
716
|
vmNodes: IVmNodeService;
|
package/dist/index.d.ts
CHANGED
|
@@ -658,12 +658,17 @@ declare enum LicenseStatus {
|
|
|
658
658
|
EXPIRED = "EXPIRED"
|
|
659
659
|
}
|
|
660
660
|
/**
|
|
661
|
-
* A verified Kinotic Enterprise License: who it is issued to, when it was issued and
|
|
662
|
-
* Features it turns on until its grace period ends.
|
|
661
|
+
* A verified Kinotic Enterprise License: who it is issued to, the cluster it is bound to, when it was issued and
|
|
662
|
+
* expires, and the Enterprise Features it turns on until its grace period ends.
|
|
663
663
|
*/
|
|
664
664
|
declare class License {
|
|
665
665
|
/** The party the license is issued to. */
|
|
666
666
|
licensee: string;
|
|
667
|
+
/**
|
|
668
|
+
* The id of the one cluster the license works on, the UID of that cluster's kube-system namespace, or null when
|
|
669
|
+
* it works on any cluster.
|
|
670
|
+
*/
|
|
671
|
+
clusterId: string | null;
|
|
667
672
|
/** When the license was issued, or null when its key does not say. */
|
|
668
673
|
issuedAt: string | null;
|
|
669
674
|
/** When the license expires. */
|
|
@@ -678,7 +683,7 @@ declare class License {
|
|
|
678
683
|
}
|
|
679
684
|
/**
|
|
680
685
|
* The Kinotic Enterprise License key the whole cluster runs on, which system users read and replace without
|
|
681
|
-
* restarting a server. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
686
|
+
* restarting a server. A key bound to the cluster is renewed from Minds Ignited's license server once a day. Published in the system zone, which only SYSTEM participants and the system's own cluster
|
|
682
687
|
* members may address.
|
|
683
688
|
*/
|
|
684
689
|
interface ILicenseService {
|
|
@@ -687,17 +692,25 @@ interface ILicenseService {
|
|
|
687
692
|
/**
|
|
688
693
|
* Installs licenseKey for the whole cluster in place of the installed key, resolving with the license it holds.
|
|
689
694
|
* The call resolves once the key is stored and the node that took the call runs on it; every other node runs on
|
|
690
|
-
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
695
|
+
* it shortly after, except a node the cluster could not reach, which reads it within ten minutes. Rejects a key
|
|
696
|
+
* Minds Ignited did not sign, one naming no licensee or expiry, one bound to another cluster, one whose grace
|
|
691
697
|
* period has ended, and, on a cluster that stores secrets in Azure Key Vault, one that does not turn
|
|
692
698
|
* AZURE_KEY_VAULT on.
|
|
693
699
|
*/
|
|
694
700
|
install(licenseKey: string): Promise<License>;
|
|
701
|
+
/**
|
|
702
|
+
* The id of this cluster, the UID of its kube-system namespace, which a customer gives Minds Ignited to get a key
|
|
703
|
+
* bound to the cluster. Resolves null when the cluster does not run in Kubernetes, or has not been able to read
|
|
704
|
+
* the namespace yet.
|
|
705
|
+
*/
|
|
706
|
+
findClusterId(): Promise<string | null>;
|
|
695
707
|
}
|
|
696
708
|
declare class LicenseService implements ILicenseService {
|
|
697
709
|
private readonly serviceProxy;
|
|
698
710
|
constructor(kinotic: IKinotic11);
|
|
699
711
|
findCurrent(): Promise<License | null>;
|
|
700
712
|
install(licenseKey: string): Promise<License>;
|
|
713
|
+
findClusterId(): Promise<string | null>;
|
|
701
714
|
}
|
|
702
715
|
interface ISystemApiExtension {
|
|
703
716
|
vmNodes: IVmNodeService;
|
package/dist/index.js
CHANGED
|
@@ -404,6 +404,9 @@ class LicenseService {
|
|
|
404
404
|
install(licenseKey) {
|
|
405
405
|
return this.serviceProxy.invoke("install", [licenseKey]);
|
|
406
406
|
}
|
|
407
|
+
findClusterId() {
|
|
408
|
+
return this.serviceProxy.invoke("findClusterId", []);
|
|
409
|
+
}
|
|
407
410
|
}
|
|
408
411
|
|
|
409
412
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
@@ -459,6 +462,7 @@ var LicenseStatus;
|
|
|
459
462
|
// packages/system-api/src/api/model/license/License.ts
|
|
460
463
|
class License {
|
|
461
464
|
licensee;
|
|
465
|
+
clusterId = null;
|
|
462
466
|
issuedAt = null;
|
|
463
467
|
expiresAt;
|
|
464
468
|
graceEndsAt;
|
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.41",
|
|
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": [
|