@jini-ai/user-management 0.7.2 → 0.7.3-next.2
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/CHANGELOG.md +1 -1
- package/README.md +9 -5
- package/dist/admin/adapters/http.js +25 -20
- package/dist/admin/adapters/memory.js +164 -82
- package/dist/admin/auth.module.d.ts +2 -2
- package/dist/admin/auth.module.js +1 -1
- package/dist/admin/conformance/index.js +40 -18
- package/dist/admin/controllers/auth.controller.js +3 -1
- package/dist/admin/controllers/members.controller.js +56 -31
- package/dist/admin/controllers/roles.controller.d.ts +3 -3
- package/dist/admin/controllers/roles.controller.js +188 -122
- package/dist/admin/controllers/users.controller.js +151 -72
- package/dist/admin/members.module.d.ts +2 -2
- package/dist/admin/members.module.js +1 -1
- package/dist/admin/models.d.ts +1 -0
- package/dist/admin/ports.d.ts +3 -0
- package/dist/admin/react/components/DestructiveDialog.d.ts +1 -1
- package/dist/admin/react/components/DestructiveDialog.js +1 -1
- package/dist/admin/react/components/MemberRow.d.ts +3 -1
- package/dist/admin/react/components/MemberRow.js +2 -2
- package/dist/admin/react/components/MembersConfirmation.d.ts +4 -1
- package/dist/admin/react/components/MembersConfirmation.js +2 -2
- package/dist/admin/react/components/PermissionPanel.d.ts +4 -2
- package/dist/admin/react/components/PermissionPanel.js +2 -2
- package/dist/admin/react/components/PolicyRow.d.ts +4 -2
- package/dist/admin/react/components/PolicyRow.js +2 -2
- package/dist/admin/react/components/RoleRow.d.ts +4 -2
- package/dist/admin/react/components/RoleRow.js +2 -2
- package/dist/admin/react/components/UserRow.d.ts +3 -1
- package/dist/admin/react/components/UserRow.js +2 -2
- package/dist/admin/react/components/UsersConfirmation.d.ts +4 -1
- package/dist/admin/react/components/UsersConfirmation.js +2 -2
- package/dist/admin/react/hooks/AuthBinding.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/AuthScope.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/MembersBinding.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/MembersScope.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/PeopleController.hooks.js +6 -4
- package/dist/admin/react/hooks/RolesBinding.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/RolesController.hooks.d.ts +4 -4
- package/dist/admin/react/hooks/RolesController.hooks.js +4 -3
- package/dist/admin/react/hooks/RolesPage.hooks.d.ts +8 -8
- package/dist/admin/react/hooks/RolesScope.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/UsersBinding.hooks.d.ts +1 -1
- package/dist/admin/react/hooks/UsersScope.hooks.d.ts +1 -1
- package/dist/admin/react/index.d.ts +9 -9
- package/dist/admin/react/pages/LoginPage.d.ts +4 -1
- package/dist/admin/react/pages/LoginPage.js +2 -2
- package/dist/admin/react/pages/MembersPage.d.ts +4 -1
- package/dist/admin/react/pages/MembersPage.js +2 -2
- package/dist/admin/react/pages/RolesPage.d.ts +4 -1
- package/dist/admin/react/pages/RolesPage.js +2 -2
- package/dist/admin/react/pages/UsersPage.d.ts +4 -1
- package/dist/admin/react/pages/UsersPage.js +2 -2
- package/dist/admin/react/tabs/AuthTab.d.ts +4 -2
- package/dist/admin/react/tabs/AuthTab.js +2 -2
- package/dist/admin/react/tabs/MembersTab.d.ts +4 -2
- package/dist/admin/react/tabs/MembersTab.js +2 -2
- package/dist/admin/react/tabs/PoliciesTab.d.ts +4 -2
- package/dist/admin/react/tabs/PoliciesTab.js +2 -2
- package/dist/admin/react/tabs/RolesTab.d.ts +4 -2
- package/dist/admin/react/tabs/RolesTab.js +2 -2
- package/dist/admin/react/tabs/UsersTab.d.ts +3 -1
- package/dist/admin/react/tabs/UsersTab.js +2 -2
- package/dist/admin/roles.module.d.ts +2 -2
- package/dist/admin/roles.module.js +1 -1
- package/dist/admin/users.module.d.ts +4 -4
- package/dist/admin/users.module.js +1 -1
- package/dist/react/auth/Login.js +1 -1
- package/dist/react/auth/OwnerRecovery.hooks.d.ts +93 -0
- package/dist/react/auth/OwnerRecovery.hooks.js +105 -0
- package/dist/react/auth/Passkeys.d.ts +8 -3
- package/dist/react/auth/Passkeys.hooks.d.ts +38 -0
- package/dist/react/auth/Passkeys.hooks.js +72 -0
- package/dist/react/auth/Passkeys.js +6 -64
- package/dist/react/auth/TotpSettings.d.ts +5 -2
- package/dist/react/auth/TotpSettings.hooks.d.ts +41 -0
- package/dist/react/auth/TotpSettings.hooks.js +82 -0
- package/dist/react/auth/TotpSettings.js +10 -77
- package/dist/react/auth/hooks/use-login.hooks.d.ts +1 -1
- package/dist/react/auth/hooks/use-login.hooks.js +1 -0
- package/dist/react/errors.d.ts +1 -1
- package/dist/react/errors.js +1 -0
- package/dist/react/index.d.ts +6 -2
- package/dist/react/index.js +3 -1
- package/dist/react/kit.d.ts +91 -0
- package/dist/react/kit.js +63 -0
- package/dist/react/members/Members.d.ts +1 -1
- package/dist/react/members/Members.js +19 -5
- package/dist/react/members/hooks/use-members.hooks.d.ts +1 -1
- package/dist/react/members/hooks/use-members.hooks.js +49 -27
- package/dist/react/members/rules.d.ts +2 -2
- package/dist/react/members/rules.js +1 -0
- package/dist/react/ports.d.ts +2 -0
- package/dist/react/testing.js +47 -22
- package/dist/react/users/ChangeUsernameDialog.d.ts +2 -2
- package/dist/react/users/ChangeUsernameDialog.js +4 -3
- package/dist/react/users/UserRowParts.d.ts +3 -3
- package/dist/react/users/UserRowParts.js +2 -1
- package/dist/react/users/Users.d.ts +3 -3
- package/dist/react/users/Users.js +14 -27
- package/dist/react/users/UsersDialogs.d.ts +7 -0
- package/dist/react/users/UsersDialogs.js +64 -0
- package/dist/react/users/UsersTable.d.ts +118 -0
- package/dist/react/users/UsersTable.js +55 -0
- package/dist/react/users/hooks/use-change-username.hooks.d.ts +1 -1
- package/dist/react/users/hooks/use-change-username.hooks.js +2 -1
- package/dist/react/users/hooks/use-reset-password-fields.hooks.d.ts +8 -0
- package/dist/react/users/hooks/use-reset-password-fields.hooks.js +11 -0
- package/dist/react/users/hooks/use-users-form-state.hooks.d.ts +81 -0
- package/dist/react/users/hooks/use-users-form-state.hooks.js +68 -0
- package/dist/react/users/hooks/use-users-password.hooks.d.ts +24 -0
- package/dist/react/users/hooks/use-users-password.hooks.js +85 -0
- package/dist/react/users/hooks/use-users-roster.hooks.d.ts +42 -0
- package/dist/react/users/hooks/use-users-roster.hooks.js +133 -0
- package/dist/react/users/hooks/use-users-state.hooks.d.ts +102 -0
- package/dist/react/users/hooks/use-users-state.hooks.js +19 -0
- package/dist/react/users/hooks/use-users-status.hooks.d.ts +26 -0
- package/dist/react/users/hooks/use-users-status.hooks.js +97 -0
- package/dist/react/users/hooks/use-users.hooks.d.ts +13 -5
- package/dist/react/users/hooks/use-users.hooks.js +23 -503
- package/dist/react/users/hooks/users-controller.d.ts +14 -0
- package/dist/react/users/hooks/users-controller.js +29 -0
- package/dist/react/users/hooks/users-grant-actions.d.ts +26 -0
- package/dist/react/users/hooks/users-grant-actions.js +124 -0
- package/dist/react/users/rules.d.ts +5 -4
- package/dist/react/users/rules.js +3 -2
- package/dist/server/admin-crud-service.d.ts +2 -2
- package/dist/server/admin-crud-service.js +38 -71
- package/dist/server/agent-tool-input.d.ts +7 -3
- package/dist/server/agent-tool-input.js +47 -14
- package/dist/server/agent-tool-registrations.d.ts +5 -2
- package/dist/server/agent-tool-registrations.js +250 -199
- package/dist/server/agent-tools.d.ts +1 -1
- package/dist/server/auth-service.js +1 -1
- package/dist/server/grant-service.d.ts +8 -0
- package/dist/server/grant-service.js +24 -22
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +1 -0
- package/dist/server/link-policy.d.ts +23 -0
- package/dist/server/link-policy.js +30 -0
- package/dist/server/permission-migrations.d.ts +3 -3
- package/dist/server/repo.memory-transactions.js +24 -20
- package/dist/server/repo.memory.d.ts +21 -33
- package/dist/server/repo.memory.js +13 -34
- package/dist/server/seed.d.ts +3 -3
- package/dist/server/seed.js +10 -10
- package/dist/session-bootstrap/ensure.d.ts +13 -0
- package/dist/session-bootstrap/ensure.js +11 -0
- package/dist/session-bootstrap/index.d.ts +5 -0
- package/dist/session-bootstrap/index.js +4 -0
- package/dist/session-bootstrap/loopback.d.ts +14 -0
- package/dist/session-bootstrap/loopback.js +25 -0
- package/dist/session-bootstrap/read-initial.d.ts +25 -0
- package/dist/session-bootstrap/read-initial.js +27 -0
- package/package.json +21 -25
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function admission({ member, connectMemberId }, _optional = {}) {
|
|
2
|
+
if (member?.status === "disabled" || member?.status === "trash")
|
|
3
|
+
return "blocked";
|
|
4
|
+
if (connectMemberId && member?.id !== connectMemberId)
|
|
5
|
+
return "conflict";
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
function needsInboxProof({ identity, connectMemberId, emailProofVerified }) {
|
|
9
|
+
return !connectMemberId && !identity.emailAuthoritative && !emailProofVerified;
|
|
10
|
+
}
|
|
11
|
+
/** Pure policy: persisted issuer/subject wins over a changed email; unlink markers prevent auto-link.
|
|
12
|
+
* Inbox proof is required once before auto-linking a non-authoritative address (owner 10-24). A
|
|
13
|
+
* signed-in connect is the member's own deliberate act, so it needs no extra emailed code.
|
|
14
|
+
* @returns A fixed decision; no persistence, credentials or session effects.
|
|
15
|
+
* @complexity O(1), independent of workspace/member counts.
|
|
16
|
+
*/
|
|
17
|
+
export function decideMemberLogin(required, _options = {}) {
|
|
18
|
+
const { member, subjectLinked, unlinked, connectMemberId, identity, emailProofVerified } = required;
|
|
19
|
+
const refused = admission({ member, connectMemberId });
|
|
20
|
+
if (refused)
|
|
21
|
+
return refused;
|
|
22
|
+
if (subjectLinked)
|
|
23
|
+
return member ? "sign_in" : "blocked";
|
|
24
|
+
if (unlinked && !connectMemberId)
|
|
25
|
+
return "blocked";
|
|
26
|
+
if (needsInboxProof({ identity, connectMemberId, emailProofVerified }))
|
|
27
|
+
return "email_verification_required";
|
|
28
|
+
return member ? "link" : "create";
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=link-policy.js.map
|
|
@@ -5,7 +5,7 @@ import type { IdentityTransactionPort, PolicyPermissionRepoPort, PolicyRepoPort
|
|
|
5
5
|
* @file Shared deprecate-old/grant-new permission migration mechanism
|
|
6
6
|
* (generalized from the `settings.write` ->
|
|
7
7
|
* `settings.definitions.manage` precedent already shipped ad hoc in
|
|
8
|
-
* `
|
|
8
|
+
* `packages/user-management/src/server/seed.ts`/`packages/user-management/src/core/permissions.ts`; see
|
|
9
9
|
* `docs/decisions/permission-catalog-migration.md`).
|
|
10
10
|
*
|
|
11
11
|
* Purpose:
|
|
@@ -32,7 +32,7 @@ import type { IdentityTransactionPort, PolicyPermissionRepoPort, PolicyRepoPort
|
|
|
32
32
|
* `policy_permissions` anywhere in this file.
|
|
33
33
|
* - Feature-agnostic by design: this module has zero knowledge of
|
|
34
34
|
* `navigation`/`settings`/any specific feature. Callers (e.g.
|
|
35
|
-
* `
|
|
35
|
+
* `packages/user-management/src/core/permissions.ts`) register their own pairs.
|
|
36
36
|
*
|
|
37
37
|
* Architectural role:
|
|
38
38
|
* Security-adjacent domain logic (a bug here could fail-open (grant more than
|
|
@@ -65,7 +65,7 @@ export interface PermissionMigrationRegistry {
|
|
|
65
65
|
* Register a `{from, to, reason}` rename/split pair for later fan-out.
|
|
66
66
|
* Idempotent: re-registering the same `from` overwrites the prior entry
|
|
67
67
|
* rather than duplicating it (matches `PermissionCatalog.register`'s
|
|
68
|
-
* existing overwrite semantics, `
|
|
68
|
+
* existing overwrite semantics, `packages/user-management/src/core/permissions.ts`).
|
|
69
69
|
*
|
|
70
70
|
* @complexity O(1).
|
|
71
71
|
*/
|
|
@@ -19,26 +19,7 @@ export function createTransactionalInMemoryIdentityRepos(required) {
|
|
|
19
19
|
return repo;
|
|
20
20
|
});
|
|
21
21
|
/** Preserve queue progress after rejection; descendants of a completed body cannot bypass it. */
|
|
22
|
-
|
|
23
|
-
if (context.getStore()?.active)
|
|
24
|
-
return execute();
|
|
25
|
-
const previous = tail;
|
|
26
|
-
let release;
|
|
27
|
-
tail = new Promise(resolve => { release = resolve; });
|
|
28
|
-
await previous;
|
|
29
|
-
const scope = { active: true };
|
|
30
|
-
try {
|
|
31
|
-
return await context.run(scope, execute);
|
|
32
|
-
}
|
|
33
|
-
finally {
|
|
34
|
-
scope.active = false;
|
|
35
|
-
release();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const snapshot = (repo) => {
|
|
39
|
-
const rows = repo.snapshotRows({});
|
|
40
|
-
return { restore: () => repo.restoreRows({ rows }) };
|
|
41
|
-
};
|
|
22
|
+
const exclusive = createIdentityQueue(context, { get tail() { return tail; }, set tail(value) { tail = value; } });
|
|
42
23
|
const transactions = {
|
|
43
24
|
run: ({ execute }) => exclusive(async () => {
|
|
44
25
|
// Every store was checked to be InMemoryIdentityRows when the bag was bound above.
|
|
@@ -79,4 +60,27 @@ export function createTransactionalInMemoryIdentityRepos(required) {
|
|
|
79
60
|
};
|
|
80
61
|
return { ...repos, transactions };
|
|
81
62
|
}
|
|
63
|
+
function snapshot(repo) {
|
|
64
|
+
const rows = repo.snapshotRows({});
|
|
65
|
+
return { restore: () => repo.restoreRows({ rows }) };
|
|
66
|
+
}
|
|
67
|
+
function createIdentityQueue(context, queue) {
|
|
68
|
+
async function exclusive(execute) {
|
|
69
|
+
if (context.getStore()?.active)
|
|
70
|
+
return execute();
|
|
71
|
+
const previous = queue.tail;
|
|
72
|
+
let release;
|
|
73
|
+
queue.tail = new Promise(resolve => { release = resolve; });
|
|
74
|
+
await previous;
|
|
75
|
+
const scope = { active: true };
|
|
76
|
+
try {
|
|
77
|
+
return await context.run(scope, execute);
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
scope.active = false;
|
|
81
|
+
release();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return exclusive;
|
|
85
|
+
}
|
|
82
86
|
//# sourceMappingURL=repo.memory-transactions.js.map
|
|
@@ -5,7 +5,7 @@ import type { PolicyPermissionRepoPort, PolicyRepoPort, PrincipalPolicyRepoPort,
|
|
|
5
5
|
*
|
|
6
6
|
* Purpose:
|
|
7
7
|
* Test/dev implementations of the nine identity repo ports. Mirrors the exact
|
|
8
|
-
* style of `src/features/post/repo.memory.ts` / `src/members/repo.memory.ts`:
|
|
8
|
+
* style of `src/features/post/repo.memory.ts` / the host app's `src/features/members/repo.memory.ts`:
|
|
9
9
|
* constructor takes seed rows, methods filter/mutate an internal array. No
|
|
10
10
|
* business rules live here — that belongs to `authorize.ts`/`auth-service.ts`/
|
|
11
11
|
* `seed.ts`.
|
|
@@ -28,6 +28,24 @@ export declare abstract class InMemoryIdentityRows<Row> {
|
|
|
28
28
|
rows: Row[];
|
|
29
29
|
}): void;
|
|
30
30
|
}
|
|
31
|
+
/** Workspace-scoped rows keyed by `id`: the generic find/list/save/delete every identity repo shares. */
|
|
32
|
+
export declare abstract class InMemoryWorkspaceRecords<Row extends {
|
|
33
|
+
workspaceId: string;
|
|
34
|
+
id: string;
|
|
35
|
+
}> extends InMemoryIdentityRows<Row> {
|
|
36
|
+
findById(required: {
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
id: string;
|
|
39
|
+
}, _optional?: Record<string, never>): Promise<Row | null>;
|
|
40
|
+
list(required: {
|
|
41
|
+
workspaceId: string;
|
|
42
|
+
}, _optional?: Record<string, never>): Promise<Row[]>;
|
|
43
|
+
save(record: Row, _optional?: Record<string, never>): Promise<void>;
|
|
44
|
+
delete(required: {
|
|
45
|
+
workspaceId: string;
|
|
46
|
+
id: string;
|
|
47
|
+
}, _optional?: Record<string, never>): Promise<void>;
|
|
48
|
+
}
|
|
31
49
|
export declare class InMemoryPrincipalRepo extends InMemoryIdentityRows<PrincipalRecord> implements PrincipalRepoPort {
|
|
32
50
|
constructor(_required: Record<string, never>, { initialRows }?: {
|
|
33
51
|
initialRows?: PrincipalRecord[];
|
|
@@ -84,47 +102,17 @@ export declare class InMemorySessionRepo extends InMemoryIdentityRows<SessionRec
|
|
|
84
102
|
principalId: string;
|
|
85
103
|
}): Promise<SessionRecord[]>;
|
|
86
104
|
}
|
|
87
|
-
export declare class InMemoryRoleRepo extends
|
|
88
|
-
constructor(_required: Record<string, never>, { initialRows }?: {
|
|
89
|
-
initialRows?: RoleRecord[];
|
|
90
|
-
});
|
|
91
|
-
findById(required: {
|
|
92
|
-
workspaceId: string;
|
|
93
|
-
id: string;
|
|
94
|
-
}): Promise<RoleRecord | null>;
|
|
105
|
+
export declare class InMemoryRoleRepo extends InMemoryWorkspaceRecords<RoleRecord> implements RoleRepoPort {
|
|
95
106
|
findByName(required: {
|
|
96
107
|
workspaceId: string;
|
|
97
108
|
name: string;
|
|
98
109
|
}): Promise<RoleRecord | null>;
|
|
99
|
-
list(required: {
|
|
100
|
-
workspaceId: string;
|
|
101
|
-
}): Promise<RoleRecord[]>;
|
|
102
|
-
save(record: RoleRecord): Promise<void>;
|
|
103
|
-
delete(required: {
|
|
104
|
-
workspaceId: string;
|
|
105
|
-
id: string;
|
|
106
|
-
}): Promise<void>;
|
|
107
110
|
}
|
|
108
|
-
export declare class InMemoryPolicyRepo extends
|
|
109
|
-
constructor(_required: Record<string, never>, { initialRows }?: {
|
|
110
|
-
initialRows?: PolicyRecord[];
|
|
111
|
-
});
|
|
112
|
-
findById(required: {
|
|
113
|
-
workspaceId: string;
|
|
114
|
-
id: string;
|
|
115
|
-
}): Promise<PolicyRecord | null>;
|
|
111
|
+
export declare class InMemoryPolicyRepo extends InMemoryWorkspaceRecords<PolicyRecord> implements PolicyRepoPort {
|
|
116
112
|
findByName(required: {
|
|
117
113
|
workspaceId: string;
|
|
118
114
|
name: string;
|
|
119
115
|
}): Promise<PolicyRecord | null>;
|
|
120
|
-
list(required: {
|
|
121
|
-
workspaceId: string;
|
|
122
|
-
}): Promise<PolicyRecord[]>;
|
|
123
|
-
save(record: PolicyRecord): Promise<void>;
|
|
124
|
-
delete(required: {
|
|
125
|
-
workspaceId: string;
|
|
126
|
-
id: string;
|
|
127
|
-
}): Promise<void>;
|
|
128
116
|
}
|
|
129
117
|
export declare class InMemoryPolicyPermissionRepo extends InMemoryIdentityRows<PolicyPermissionRecord> implements PolicyPermissionRepoPort {
|
|
130
118
|
constructor(_required: Record<string, never>, { initialRows }?: {
|
|
@@ -4,7 +4,7 @@ import { matchesRecordFields, upsertRecord } from "@jini-ai/core/records";
|
|
|
4
4
|
*
|
|
5
5
|
* Purpose:
|
|
6
6
|
* Test/dev implementations of the nine identity repo ports. Mirrors the exact
|
|
7
|
-
* style of `src/features/post/repo.memory.ts` / `src/members/repo.memory.ts`:
|
|
7
|
+
* style of `src/features/post/repo.memory.ts` / the host app's `src/features/members/repo.memory.ts`:
|
|
8
8
|
* constructor takes seed rows, methods filter/mutate an internal array. No
|
|
9
9
|
* business rules live here — that belongs to `authorize.ts`/`auth-service.ts`/
|
|
10
10
|
* `seed.ts`.
|
|
@@ -29,6 +29,13 @@ export class InMemoryIdentityRows {
|
|
|
29
29
|
this.rows = required.rows;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
/** Workspace-scoped rows keyed by `id`: the generic find/list/save/delete every identity repo shares. */
|
|
33
|
+
export class InMemoryWorkspaceRecords extends InMemoryIdentityRows {
|
|
34
|
+
async findById(required, _optional = {}) { return this.rows.find(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, id: required.id } })) ?? null; }
|
|
35
|
+
async list(required, _optional = {}) { return this.rows.filter(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId } })); }
|
|
36
|
+
async save(record, _optional = {}) { upsertRecord({ records: this.rows, record, identity: { workspaceId: record.workspaceId, id: record.id } }); }
|
|
37
|
+
async delete(required, _optional = {}) { this.rows = this.rows.filter(record => !matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, id: required.id } })); }
|
|
38
|
+
}
|
|
32
39
|
export class InMemoryPrincipalRepo extends InMemoryIdentityRows {
|
|
33
40
|
constructor(_required, { initialRows = [] } = {}) {
|
|
34
41
|
super(_required, { initialRows });
|
|
@@ -79,7 +86,9 @@ export class InMemorySessionRepo extends InMemoryIdentityRows {
|
|
|
79
86
|
return this.rows.find(record => matchesRecordFields({ record, fields: required })) ?? null;
|
|
80
87
|
}
|
|
81
88
|
async save(record) {
|
|
82
|
-
|
|
89
|
+
// Revocation is one-way: a record read before a logout/reset/disable carries no `revokedAt` and must not restore the session.
|
|
90
|
+
const revokedAt = (await this.findById(record))?.revokedAt;
|
|
91
|
+
upsertRecord({ records: this.rows, record: revokedAt ? { ...record, revokedAt } : record, identity: { workspaceId: record.workspaceId, id: record.id } });
|
|
83
92
|
}
|
|
84
93
|
async revoke(required) {
|
|
85
94
|
const row = this.rows.find((candidate) => candidate.workspaceId === required.workspaceId && candidate.id === required.id);
|
|
@@ -90,45 +99,15 @@ export class InMemorySessionRepo extends InMemoryIdentityRows {
|
|
|
90
99
|
return this.rows.filter(record => matchesRecordFields({ record, fields: required }));
|
|
91
100
|
}
|
|
92
101
|
}
|
|
93
|
-
export class InMemoryRoleRepo extends
|
|
94
|
-
constructor(_required, { initialRows = [] } = {}) {
|
|
95
|
-
super(_required, { initialRows });
|
|
96
|
-
}
|
|
97
|
-
async findById(required) {
|
|
98
|
-
return this.rows.find(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, id: required.id } })) ?? null;
|
|
99
|
-
}
|
|
102
|
+
export class InMemoryRoleRepo extends InMemoryWorkspaceRecords {
|
|
100
103
|
async findByName(required) {
|
|
101
104
|
return this.rows.find(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, name: required.name } })) ?? null;
|
|
102
105
|
}
|
|
103
|
-
async list(required) {
|
|
104
|
-
return this.rows.filter(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId } }));
|
|
105
|
-
}
|
|
106
|
-
async save(record) {
|
|
107
|
-
upsertRecord({ records: this.rows, record, identity: { workspaceId: record.workspaceId, id: record.id } });
|
|
108
|
-
}
|
|
109
|
-
async delete(required) {
|
|
110
|
-
this.rows = this.rows.filter(record => !matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, id: required.id } }));
|
|
111
|
-
}
|
|
112
106
|
}
|
|
113
|
-
export class InMemoryPolicyRepo extends
|
|
114
|
-
constructor(_required, { initialRows = [] } = {}) {
|
|
115
|
-
super(_required, { initialRows });
|
|
116
|
-
}
|
|
117
|
-
async findById(required) {
|
|
118
|
-
return this.rows.find(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, id: required.id } })) ?? null;
|
|
119
|
-
}
|
|
107
|
+
export class InMemoryPolicyRepo extends InMemoryWorkspaceRecords {
|
|
120
108
|
async findByName(required) {
|
|
121
109
|
return this.rows.find(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, name: required.name } })) ?? null;
|
|
122
110
|
}
|
|
123
|
-
async list(required) {
|
|
124
|
-
return this.rows.filter(record => matchesRecordFields({ record, fields: { workspaceId: required.workspaceId } }));
|
|
125
|
-
}
|
|
126
|
-
async save(record) {
|
|
127
|
-
upsertRecord({ records: this.rows, record, identity: { workspaceId: record.workspaceId, id: record.id } });
|
|
128
|
-
}
|
|
129
|
-
async delete(required) {
|
|
130
|
-
this.rows = this.rows.filter(record => !matchesRecordFields({ record, fields: { workspaceId: required.workspaceId, id: required.id } }));
|
|
131
|
-
}
|
|
132
111
|
}
|
|
133
112
|
export class InMemoryPolicyPermissionRepo extends InMemoryIdentityRows {
|
|
134
113
|
constructor(_required, { initialRows = [] } = {}) {
|
package/dist/server/seed.d.ts
CHANGED
|
@@ -59,8 +59,8 @@ export declare function seedIdentity(required: {
|
|
|
59
59
|
}, optional?: SeedIdentityOptions): Promise<SeedIdentityResult>;
|
|
60
60
|
/**
|
|
61
61
|
* Ensure a credential-free user principal, using externalId as its stable principal ID.
|
|
62
|
-
* @param required Repository and caller identity; strings are trimmed and limited to 255 characters.
|
|
63
|
-
* @param optional Workspace scope (defaults to "local" for single-owner hosts)
|
|
62
|
+
* @param required Repository, clock and caller identity; strings are trimmed and limited to 255 characters.
|
|
63
|
+
* @param optional Workspace scope (defaults to "local" for single-owner hosts).
|
|
64
64
|
* @returns The inserted or existing row, preserving existing names and disabled status.
|
|
65
65
|
* @throws IdentityValidationError for invalid input or an adapter without atomic insertion.
|
|
66
66
|
*/
|
|
@@ -68,8 +68,8 @@ export declare function ensurePrincipal(required: {
|
|
|
68
68
|
principalRepo: PrincipalRepoPort;
|
|
69
69
|
externalId: string;
|
|
70
70
|
displayName: string;
|
|
71
|
+
clock: Clock;
|
|
71
72
|
}, optional?: {
|
|
72
73
|
workspaceId?: UUID;
|
|
73
|
-
clock?: Clock;
|
|
74
74
|
}): Promise<PrincipalRecord>;
|
|
75
75
|
//# sourceMappingURL=seed.d.ts.map
|
package/dist/server/seed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { nowIso as kernelNowIso } from "@jini-ai/core/primitives";
|
|
2
2
|
import { normalizeUsername } from "./username.js";
|
|
3
3
|
import { IdentityNotFoundError, IdentityValidationError } from "../core/types.js";
|
|
4
4
|
/**
|
|
@@ -12,10 +12,10 @@ import { IdentityNotFoundError, IdentityValidationError } from "../core/types.js
|
|
|
12
12
|
* `viewer`) each 1:1 with a built-in policy; and the initial `owner` user.
|
|
13
13
|
*
|
|
14
14
|
* How it relates to the project:
|
|
15
|
-
* - Called once by each composition root (`server/app.ts` in-memory,
|
|
15
|
+
* - Called once by each composition root (the host app's `src/server/runtime/composition/app.ts` in-memory,
|
|
16
16
|
* `server/deps.ts` SQLite-content-with-in-memory-identity) before the
|
|
17
17
|
* server accepts requests. `RouteDeps.identityReady` is this call's
|
|
18
|
-
* promise — auth-adjacent middleware awaits it (see `
|
|
18
|
+
* promise — auth-adjacent middleware awaits it (see the host app's `src/server/inbound/admin-http/dev-auth.ts`).
|
|
19
19
|
*
|
|
20
20
|
* Architectural role:
|
|
21
21
|
* Seed data lives in one place so both composition roots stay identical
|
|
@@ -61,7 +61,7 @@ const BUILTIN_ADMIN_PERMISSIONS = [
|
|
|
61
61
|
// actions directly, so it never depends on migrateDeprecatedPermissionGrants(). The umbrella
|
|
62
62
|
// "media.manage" is deliberately not included here (mirrors admin.menus.manage's exclusion
|
|
63
63
|
// above). "media.write" is deliberately dropped from THIS seed list only — the string stays
|
|
64
|
-
// registered (deprecated) in
|
|
64
|
+
// registered (deprecated) in packages/user-management/src/core/permissions.ts.
|
|
65
65
|
"media.read",
|
|
66
66
|
"media.upload",
|
|
67
67
|
"media.update",
|
|
@@ -73,7 +73,7 @@ const BUILTIN_ADMIN_PERMISSIONS = [
|
|
|
73
73
|
// workspace gets the 6 new admin.menus.* CRUD strings directly, so it never depends on
|
|
74
74
|
// migrateDeprecatedPermissionGrants() for its own built-in role grants. The now-legacy
|
|
75
75
|
// "navigation.manage" is deliberately dropped from THIS seed list only — the string itself
|
|
76
|
-
// stays registered (deprecated) in
|
|
76
|
+
// stays registered (deprecated) in packages/user-management/src/core/permissions.ts. migrateDeprecatedPermissionGrants()
|
|
77
77
|
// now IS wired into live boot (identity/wiring.ts, chained right after seedIdentity resolves)
|
|
78
78
|
// so any pre-existing policy still holding navigation.manage/integration.manage also gains
|
|
79
79
|
// the new string(s) — this fresh-seed list just doesn't need to depend on that fan-out for its
|
|
@@ -146,7 +146,7 @@ const BUILTIN_EDITOR_PERMISSIONS = [
|
|
|
146
146
|
// admin.forms.submissions.* PII-split precedent rather than granting editor
|
|
147
147
|
// everything admin.write's single flat string previously implied. "media.write" is deliberately
|
|
148
148
|
// dropped from THIS seed list only — the string stays registered (deprecated) in
|
|
149
|
-
//
|
|
149
|
+
// packages/user-management/src/core/permissions.ts. Still a subset of admin's media.* set above ( owner ⊇ admin ⊇. See docs/decisions/DR-001-identity-and-session-boundary.md.
|
|
150
150
|
// editor subset property).
|
|
151
151
|
"media.read",
|
|
152
152
|
"media.upload",
|
|
@@ -464,14 +464,14 @@ export async function seedIdentity(required, optional = {}) {
|
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* Ensure a credential-free user principal, using externalId as its stable principal ID.
|
|
467
|
-
* @param required Repository and caller identity; strings are trimmed and limited to 255 characters.
|
|
468
|
-
* @param optional Workspace scope (defaults to "local" for single-owner hosts)
|
|
467
|
+
* @param required Repository, clock and caller identity; strings are trimmed and limited to 255 characters.
|
|
468
|
+
* @param optional Workspace scope (defaults to "local" for single-owner hosts).
|
|
469
469
|
* @returns The inserted or existing row, preserving existing names and disabled status.
|
|
470
470
|
* @throws IdentityValidationError for invalid input or an adapter without atomic insertion.
|
|
471
471
|
*/
|
|
472
472
|
export async function ensurePrincipal(required, optional = {}) {
|
|
473
|
-
const { principalRepo, externalId, displayName } = required;
|
|
474
|
-
const { workspaceId = "local"
|
|
473
|
+
const { principalRepo, externalId, displayName, clock } = required;
|
|
474
|
+
const { workspaceId = "local" } = optional;
|
|
475
475
|
for (const [name, value] of Object.entries({ externalId, displayName, workspaceId })) {
|
|
476
476
|
if (typeof value !== "string" || !value.trim() || value.trim().length > 255) {
|
|
477
477
|
throw new IdentityValidationError({ message: `${name} must contain 1–255 trimmed characters` });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Probes before redeeming: redemption creates a fresh long-lived session, so an
|
|
3
|
+
* existing valid session must be reused. Reports whether redemption was attempted;
|
|
4
|
+
* port rejections propagate. At most one probe and one redemption.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ensureSession(required: {
|
|
7
|
+
probe: () => Promise<boolean>;
|
|
8
|
+
redeem: () => Promise<boolean>;
|
|
9
|
+
}, _optional?: Record<string, never>): Promise<{
|
|
10
|
+
authenticated: boolean;
|
|
11
|
+
redeemed: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=ensure.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Probes before redeeming: redemption creates a fresh long-lived session, so an
|
|
3
|
+
* existing valid session must be reused. Reports whether redemption was attempted;
|
|
4
|
+
* port rejections propagate. At most one probe and one redemption.
|
|
5
|
+
*/
|
|
6
|
+
export async function ensureSession(required, _optional = {}) {
|
|
7
|
+
if (await required.probe())
|
|
8
|
+
return { authenticated: true, redeemed: false };
|
|
9
|
+
return { authenticated: await required.redeem(), redeemed: true };
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ensure.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the parsed plain-HTTP loopback URL or throws a reason-specific refusal.
|
|
3
|
+
* Call immediately before sending credentials; async transports turn refusal into
|
|
4
|
+
* rejection before issuing a request. Parsing and normalization follow URL semantics.
|
|
5
|
+
*/
|
|
6
|
+
export declare function assertLoopbackHttpUrl(required: {
|
|
7
|
+
url: string;
|
|
8
|
+
}, optional?: {
|
|
9
|
+
message?: (required: {
|
|
10
|
+
reason: 'invalid' | 'scheme' | 'host';
|
|
11
|
+
detail: string;
|
|
12
|
+
}, optional?: Record<string, never>) => string;
|
|
13
|
+
}): URL;
|
|
14
|
+
//# sourceMappingURL=loopback.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Names may resolve elsewhere; only the literal address bound by the host is admitted.
|
|
2
|
+
const LOOPBACK_HOSTS = new Set(['127.0.0.1', '::1', '[::1]']);
|
|
3
|
+
/**
|
|
4
|
+
* Returns the parsed plain-HTTP loopback URL or throws a reason-specific refusal.
|
|
5
|
+
* Call immediately before sending credentials; async transports turn refusal into
|
|
6
|
+
* rejection before issuing a request. Parsing and normalization follow URL semantics.
|
|
7
|
+
*/
|
|
8
|
+
export function assertLoopbackHttpUrl(required, optional = {}) {
|
|
9
|
+
const message = optional.message ?? (({ reason, detail }) => `loopback guard refused: ${reason}: ${detail}`);
|
|
10
|
+
let parsed;
|
|
11
|
+
try {
|
|
12
|
+
parsed = new URL(required.url);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
throw new Error(message({ reason: 'invalid', detail: required.url }));
|
|
16
|
+
}
|
|
17
|
+
if (parsed.protocol !== 'http:') {
|
|
18
|
+
throw new Error(message({ reason: 'scheme', detail: parsed.protocol }));
|
|
19
|
+
}
|
|
20
|
+
if (!LOOPBACK_HOSTS.has(parsed.hostname)) {
|
|
21
|
+
throw new Error(message({ reason: 'host', detail: parsed.hostname }));
|
|
22
|
+
}
|
|
23
|
+
return parsed;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=loopback.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SessionBootstrapPorts<T> {
|
|
2
|
+
/** Reads the ordinary identity; rejects when unauthenticated. */
|
|
3
|
+
readonly me: (required: Record<string, never>, optional?: Record<string, never>) => Promise<T>;
|
|
4
|
+
/** Performs one guarded bootstrap; rejects when refused. */
|
|
5
|
+
readonly bootstrap: (required: Record<string, never>, optional?: Record<string, never>) => Promise<unknown>;
|
|
6
|
+
/** The host's admission policy for attempting bootstrap. */
|
|
7
|
+
readonly admit: (required: Record<string, never>, optional?: Record<string, never>) => boolean;
|
|
8
|
+
/** True only for the host's unauthenticated error. */
|
|
9
|
+
readonly isUnauthenticated: (required: {
|
|
10
|
+
error: unknown;
|
|
11
|
+
}, optional?: Record<string, never>) => boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Keeps an existing identity, otherwise attempts one admitted bootstrap, never retried.
|
|
15
|
+
* A refused bootstrap or failed identity reread preserves the original error so ordinary
|
|
16
|
+
* login remains in charge; its own error goes to `onBootstrapFailed`, never dropped. Notification follows only a successful identity reread.
|
|
17
|
+
* At most one bootstrap and two identity reads; no transport is chosen here.
|
|
18
|
+
*/
|
|
19
|
+
export declare function readInitialSession<T>(required: SessionBootstrapPorts<T>, optional?: {
|
|
20
|
+
onBootstrapped?: () => void;
|
|
21
|
+
onBootstrapFailed?: (required: {
|
|
22
|
+
error: unknown;
|
|
23
|
+
}) => void;
|
|
24
|
+
}): Promise<T>;
|
|
25
|
+
//# sourceMappingURL=read-initial.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps an existing identity, otherwise attempts one admitted bootstrap, never retried.
|
|
3
|
+
* A refused bootstrap or failed identity reread preserves the original error so ordinary
|
|
4
|
+
* login remains in charge; its own error goes to `onBootstrapFailed`, never dropped. Notification follows only a successful identity reread.
|
|
5
|
+
* At most one bootstrap and two identity reads; no transport is chosen here.
|
|
6
|
+
*/
|
|
7
|
+
export async function readInitialSession(required, optional = {}) {
|
|
8
|
+
try {
|
|
9
|
+
return await required.me({});
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
if (!required.isUnauthenticated({ error }) || !required.admit({}))
|
|
13
|
+
throw error;
|
|
14
|
+
let session;
|
|
15
|
+
try {
|
|
16
|
+
await required.bootstrap({});
|
|
17
|
+
session = await required.me({});
|
|
18
|
+
}
|
|
19
|
+
catch (bootstrapError) {
|
|
20
|
+
optional.onBootstrapFailed?.({ error: bootstrapError });
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
optional.onBootstrapped?.();
|
|
24
|
+
return session;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=read-initial.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/user-management",
|
|
3
|
-
"version": "0.7.2",
|
|
3
|
+
"version": "0.7.3-next.2",
|
|
4
4
|
"description": "Runtime-separated user management contracts and Node authentication, authorization, and administration services.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
"runtime": "universal",
|
|
15
15
|
"entries": {
|
|
16
16
|
".": "universal",
|
|
17
|
+
"./session-bootstrap": "universal",
|
|
17
18
|
"./server": "node",
|
|
18
19
|
"./react": "browser",
|
|
19
20
|
"./react/testing": "browser",
|
|
21
|
+
"./react/kit": "browser",
|
|
20
22
|
"./admin": "universal",
|
|
21
23
|
"./admin/react": "browser",
|
|
22
24
|
"./admin/adapters/http": "universal",
|
|
@@ -25,9 +27,6 @@
|
|
|
25
27
|
},
|
|
26
28
|
"optionalPeers": {
|
|
27
29
|
"argon2": "opt-in: argon2 password hashing; import @jini-ai/user-management/server — Argon2 password hashing could not load argon2. Install argon2 to enable this feature, or check its installed version and native binaries.",
|
|
28
|
-
"@jini-ai/ui": "opt-in: ui integrations; import @jini-ai/user-management/react — UI integrations could not load @jini-ai/ui. Install @jini-ai/ui to enable this feature, or check its installed version and native binaries.",
|
|
29
|
-
"@jini-ai/admin": "opt-in: admin modules; import @jini-ai/user-management/react — Admin modules could not load @jini-ai/admin. Install @jini-ai/admin to enable this feature, or check its installed version and native binaries.",
|
|
30
|
-
"@jini-ai/agentic": "opt-in: agent-aware ui and protocols; import @jini-ai/user-management/react — Agent-aware UI and protocols could not load @jini-ai/agentic. Install @jini-ai/agentic to enable this feature, or check its installed version and native binaries.",
|
|
31
30
|
"@jini-ai/ui-kit": "opt-in: ui kit integrations; import @jini-ai/user-management/react — UI kit integrations could not load @jini-ai/ui-kit. Install @jini-ai/ui-kit to enable this feature, or check its installed version and native binaries.",
|
|
32
31
|
"react": "opt-in: react user-management ui; import @jini-ai/user-management/react — React user-management UI could not load react. Install react to enable this feature, or check its installed version.",
|
|
33
32
|
"react-dom": "opt-in: react user-management ui; import @jini-ai/user-management/react — React user-management UI could not load react-dom. Install react-dom to enable this feature, or check its installed version."
|
|
@@ -41,6 +40,11 @@
|
|
|
41
40
|
"import": "./dist/core/index.js",
|
|
42
41
|
"default": "./dist/core/index.js"
|
|
43
42
|
},
|
|
43
|
+
"./session-bootstrap": {
|
|
44
|
+
"types": "./dist/session-bootstrap/index.d.ts",
|
|
45
|
+
"import": "./dist/session-bootstrap/index.js",
|
|
46
|
+
"default": "./dist/session-bootstrap/index.js"
|
|
47
|
+
},
|
|
44
48
|
"./server": {
|
|
45
49
|
"types": "./dist/server/index.d.ts",
|
|
46
50
|
"import": "./dist/server/index.js",
|
|
@@ -56,6 +60,11 @@
|
|
|
56
60
|
"import": "./dist/react/testing.js",
|
|
57
61
|
"default": "./dist/react/testing.js"
|
|
58
62
|
},
|
|
63
|
+
"./react/kit": {
|
|
64
|
+
"types": "./dist/react/kit.d.ts",
|
|
65
|
+
"import": "./dist/react/kit.js",
|
|
66
|
+
"default": "./dist/react/kit.js"
|
|
67
|
+
},
|
|
59
68
|
"./admin": {
|
|
60
69
|
"types": "./dist/admin/index.d.ts",
|
|
61
70
|
"import": "./dist/admin/index.js",
|
|
@@ -99,13 +108,10 @@
|
|
|
99
108
|
"@simplewebauthn/browser": "14.0.0",
|
|
100
109
|
"@simplewebauthn/server": "14.0.3",
|
|
101
110
|
"otplib": "13.6.0",
|
|
102
|
-
"@jini-ai/core": "^0.7.2"
|
|
111
|
+
"@jini-ai/core": "^0.7.3-next.2"
|
|
103
112
|
},
|
|
104
113
|
"peerDependencies": {
|
|
105
|
-
"@jini-ai/
|
|
106
|
-
"@jini-ai/agentic": "^0.7.0",
|
|
107
|
-
"@jini-ai/ui": "^0.7.0",
|
|
108
|
-
"@jini-ai/ui-kit": "^0.7.0",
|
|
114
|
+
"@jini-ai/ui-kit": "^0.7.3-next.2",
|
|
109
115
|
"argon2": "^0.44.0",
|
|
110
116
|
"react": "^18.3.0 || ^19.0.0",
|
|
111
117
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
@@ -122,27 +128,17 @@
|
|
|
122
128
|
"react": "^19.2.0",
|
|
123
129
|
"react-dom": "^19.2.0",
|
|
124
130
|
"typescript": "^5.6.0",
|
|
125
|
-
"vitest": "^2.
|
|
126
|
-
"@jini-ai/
|
|
127
|
-
"@jini-ai/
|
|
128
|
-
"@jini-ai/
|
|
129
|
-
"@jini-ai/
|
|
130
|
-
"@jini-ai/ui": "0.7.2"
|
|
131
|
-
"@jini-ai/ui-kit": "^0.7.2"
|
|
131
|
+
"vitest": "^3.2.6",
|
|
132
|
+
"@jini-ai/admin": "0.7.3-next.2",
|
|
133
|
+
"@jini-ai/cms": "0.7.3-next.2",
|
|
134
|
+
"@jini-ai/core": "^0.7.3-next.2",
|
|
135
|
+
"@jini-ai/ui": "0.7.3-next.2",
|
|
136
|
+
"@jini-ai/ui-kit": "^0.7.3-next.2"
|
|
132
137
|
},
|
|
133
138
|
"peerDependenciesMeta": {
|
|
134
139
|
"argon2": {
|
|
135
140
|
"optional": true
|
|
136
141
|
},
|
|
137
|
-
"@jini-ai/ui": {
|
|
138
|
-
"optional": true
|
|
139
|
-
},
|
|
140
|
-
"@jini-ai/admin": {
|
|
141
|
-
"optional": true
|
|
142
|
-
},
|
|
143
|
-
"@jini-ai/agentic": {
|
|
144
|
-
"optional": true
|
|
145
|
-
},
|
|
146
142
|
"@jini-ai/ui-kit": {
|
|
147
143
|
"optional": true
|
|
148
144
|
},
|