@kinotic-ai/system-api 5.0.0-beta.43 → 5.0.0-beta.44
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 +9 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +9 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -399,6 +399,15 @@ class SystemMemberService {
|
|
|
399
399
|
searchUsers(searchText, pageable) {
|
|
400
400
|
return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
|
|
401
401
|
}
|
|
402
|
+
addUser(email, displayName) {
|
|
403
|
+
return this.serviceProxy.invoke("addUser", [email, displayName]);
|
|
404
|
+
}
|
|
405
|
+
setUserEnabled(userId, enabled) {
|
|
406
|
+
return this.serviceProxy.invoke("setUserEnabled", [userId, enabled]);
|
|
407
|
+
}
|
|
408
|
+
resetUserPassword(userId) {
|
|
409
|
+
return this.serviceProxy.invoke("resetUserPassword", [userId]);
|
|
410
|
+
}
|
|
402
411
|
findMachines(pageable) {
|
|
403
412
|
return this.serviceProxy.invoke("findMachines", [pageable]);
|
|
404
413
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -543,6 +543,22 @@ import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
543
543
|
interface ISystemMemberService {
|
|
544
544
|
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
545
545
|
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
546
|
+
/**
|
|
547
|
+
* Adds a system user, who holds the system's full authority once signed in. The user is pending until it first
|
|
548
|
+
* signs in: through one of the providers the system console's login offers, which signs in the account whose
|
|
549
|
+
* verified email is `email`, or with a password `resetUserPassword` issues.
|
|
550
|
+
*/
|
|
551
|
+
addUser(email: string, displayName: string | null): Promise<SystemParticipantIdentity>;
|
|
552
|
+
/**
|
|
553
|
+
* Enables or disables a system user. A disabled user cannot sign in; a session it already holds lasts until it
|
|
554
|
+
* expires. Callers cannot disable themselves.
|
|
555
|
+
*/
|
|
556
|
+
setUserEnabled(userId: string, enabled: boolean): Promise<void>;
|
|
557
|
+
/**
|
|
558
|
+
* Replaces a system user's password with a generated one, returned exactly once. Refused while the system
|
|
559
|
+
* console's login takes no password.
|
|
560
|
+
*/
|
|
561
|
+
resetUserPassword(userId: string): Promise<string>;
|
|
546
562
|
/** Lists the system's machines, disabled ones included. */
|
|
547
563
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
548
564
|
/**
|
|
@@ -572,6 +588,9 @@ declare class SystemMemberService implements ISystemMemberService {
|
|
|
572
588
|
constructor(kinotic: IKinotic8);
|
|
573
589
|
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
574
590
|
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
591
|
+
addUser(email: string, displayName: string | null): Promise<SystemParticipantIdentity>;
|
|
592
|
+
setUserEnabled(userId: string, enabled: boolean): Promise<void>;
|
|
593
|
+
resetUserPassword(userId: string): Promise<string>;
|
|
575
594
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
576
595
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
577
596
|
rotateSecret(machineId: string): Promise<string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -543,6 +543,22 @@ import { IKinotic as IKinotic8, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
543
543
|
interface ISystemMemberService {
|
|
544
544
|
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
545
545
|
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
546
|
+
/**
|
|
547
|
+
* Adds a system user, who holds the system's full authority once signed in. The user is pending until it first
|
|
548
|
+
* signs in: through one of the providers the system console's login offers, which signs in the account whose
|
|
549
|
+
* verified email is `email`, or with a password `resetUserPassword` issues.
|
|
550
|
+
*/
|
|
551
|
+
addUser(email: string, displayName: string | null): Promise<SystemParticipantIdentity>;
|
|
552
|
+
/**
|
|
553
|
+
* Enables or disables a system user. A disabled user cannot sign in; a session it already holds lasts until it
|
|
554
|
+
* expires. Callers cannot disable themselves.
|
|
555
|
+
*/
|
|
556
|
+
setUserEnabled(userId: string, enabled: boolean): Promise<void>;
|
|
557
|
+
/**
|
|
558
|
+
* Replaces a system user's password with a generated one, returned exactly once. Refused while the system
|
|
559
|
+
* console's login takes no password.
|
|
560
|
+
*/
|
|
561
|
+
resetUserPassword(userId: string): Promise<string>;
|
|
546
562
|
/** Lists the system's machines, disabled ones included. */
|
|
547
563
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
548
564
|
/**
|
|
@@ -572,6 +588,9 @@ declare class SystemMemberService implements ISystemMemberService {
|
|
|
572
588
|
constructor(kinotic: IKinotic8);
|
|
573
589
|
findUsers(pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
574
590
|
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<SystemParticipantIdentity>>;
|
|
591
|
+
addUser(email: string, displayName: string | null): Promise<SystemParticipantIdentity>;
|
|
592
|
+
setUserEnabled(userId: string, enabled: boolean): Promise<void>;
|
|
593
|
+
resetUserPassword(userId: string): Promise<string>;
|
|
575
594
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
576
595
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
577
596
|
rotateSecret(machineId: string): Promise<string>;
|
package/dist/index.js
CHANGED
|
@@ -327,6 +327,15 @@ class SystemMemberService {
|
|
|
327
327
|
searchUsers(searchText, pageable) {
|
|
328
328
|
return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
|
|
329
329
|
}
|
|
330
|
+
addUser(email, displayName) {
|
|
331
|
+
return this.serviceProxy.invoke("addUser", [email, displayName]);
|
|
332
|
+
}
|
|
333
|
+
setUserEnabled(userId, enabled) {
|
|
334
|
+
return this.serviceProxy.invoke("setUserEnabled", [userId, enabled]);
|
|
335
|
+
}
|
|
336
|
+
resetUserPassword(userId) {
|
|
337
|
+
return this.serviceProxy.invoke("resetUserPassword", [userId]);
|
|
338
|
+
}
|
|
330
339
|
findMachines(pageable) {
|
|
331
340
|
return this.serviceProxy.invoke("findMachines", [pageable]);
|
|
332
341
|
}
|
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.44",
|
|
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.
|
|
42
|
+
"@kinotic-ai/management-api": "^5.0.0-beta.75"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@kinotic-ai/core": "5.0.0-beta.30",
|
|
46
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
46
|
+
"@kinotic-ai/management-api": "5.0.0-beta.75",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|