@shivaedev/admin 0.19.2 → 0.19.5

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.5 - 2026-11-04
4
+
5
+ ### Changed
6
+
7
+ - Update `@shivaedev/contract` from 0.34.0 to 0.35.0.
8
+ - Update `@shivaedev/identity` from 0.23.0 to 0.23.1.
9
+ - Update `@shivaedev/react` from 0.38.1 to 0.39.0.
10
+
11
+ ## 0.19.4 - 2026-11-04
12
+
13
+ ### Changed
14
+
15
+ - Update `@shivaedev/access` from 0.4.1 to 0.4.2.
16
+ - Update `@shivaedev/contract` from 0.33.1 to 0.34.0.
17
+ - Update `@shivaedev/errors` from 0.7.0 to 0.8.0.
18
+ - Update `@shivaedev/identity` from 0.22.1 to 0.23.0.
19
+ - Update `@shivaedev/jobs` from 0.33.0 to 0.34.0.
20
+ - Update `@shivaedev/react` from 0.38.0 to 0.38.1.
21
+
22
+ ## 0.19.3 - 2026-11-03
23
+
24
+ ### Changed
25
+
26
+ - Update `@shivaedev/contract` from 0.33.0 to 0.33.1.
27
+ - Update `@shivaedev/identity` from 0.22.0 to 0.22.1.
28
+ - Update `@shivaedev/jobs` from 0.32.0 to 0.33.0.
29
+ - Update `@shivaedev/react` from 0.37.0 to 0.38.0.
30
+
3
31
  ## 0.19.2 - 2026-11-03
4
32
 
5
33
  ### Changed
package/README.md CHANGED
@@ -217,7 +217,7 @@ A successful bound retry invalidates health, the affected queue's counts and bot
217
217
 
218
218
  ### Built-in Users page
219
219
 
220
- Call `usersPage(AppAccess)` from `@shivaedev/admin/users/page.ts` with the application's code-defined role set. Add the returned page to the same registry as Jobs and register `users: usersHandlers(UsersPage)` from `@shivaedev/admin/server/usersHandlers.ts`. The handlers require identity's `UserDirectory` service. Provide `betterAuthUserDirectory(AppAccess, authOptions)` from `@shivaedev/identity/server/better-auth/adapters/userDirectory.ts` with the same options used by `betterAuthMount`. Identity owns the PostgreSQL reads and role writes, including custom auth mappings. The page reads identity's exported `userKeys.list` collection, so role changes refresh open user lists.
220
+ Call `usersPage(AppAccess)` from `@shivaedev/admin/users/page.ts` with the application's code-defined role set. Add the returned page to the same registry as Jobs and register `users: usersHandlers(UsersPage)` from `@shivaedev/admin/server/usersHandlers.ts`. The handlers require identity's `UserDirectory` service. Provide `betterAuthUserDirectory(AppAccess, authOptions)` from `@shivaedev/identity/server/better-auth/adapters/userDirectory.ts` with the same options used by `betterAuthMount`. Identity owns the PostgreSQL reads and role writes, including custom auth mappings. For example, `authOptions.user.modelName: "users"` makes the Users view open and page through `users`; mapped name, email, role and creation-time columns are used as well. The page reads identity's exported `userKeys.list` collection, so role changes refresh open user lists.
221
221
 
222
222
  Each user stores one role string accepted by `AppAccess.Role`. Each role declares an explicit permission list in application code. The Users area assigns roles; it does not edit their grants.
223
223
 
@@ -86,10 +86,7 @@ export declare function usersPage<const TRole extends string>(access: Pick<Acces
86
86
  "~ClientError": never;
87
87
  error: Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
88
88
  requiredForClient: false;
89
- }), never> | import("effect/rpc/Rpc").Rpc<"admin.users.changeRole", Schema.Struct<{
90
- role: Schema.Literals<TRole[]>;
91
- userId: Schema.String;
92
- }>, Schema.Void, Schema.Union<readonly (typeof NotFound | typeof Forbidden | typeof AuthUnavailable | typeof LastRoleAssigner)[]>, typeof UsersPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.users.list", Schema.Struct<{
89
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.users.list", Schema.Struct<{
93
90
  readonly cursor: Schema.optionalKey<Schema.String>;
94
91
  readonly limit: Schema.Number;
95
92
  }>, Schema.Struct<{
@@ -110,6 +107,9 @@ export declare function usersPage<const TRole extends string>(access: Pick<Acces
110
107
  "~ClientError": never;
111
108
  error: Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired]>;
112
109
  requiredForClient: false;
113
- }), never>, readonly [], undefined>;
110
+ }), never> | import("effect/rpc/Rpc").Rpc<"admin.users.changeRole", Schema.Struct<{
111
+ role: Schema.Literals<TRole[]>;
112
+ userId: Schema.String;
113
+ }>, Schema.Void, Schema.Union<readonly (typeof NotFound | typeof Forbidden | typeof AuthUnavailable | typeof LastRoleAssigner)[]>, typeof UsersPermission, never>, readonly [], undefined>;
114
114
  };
115
115
  //# sourceMappingURL=page.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/admin",
3
- "version": "0.19.2",
3
+ "version": "0.19.5",
4
4
  "description": "Explicit admin page contracts and a protected native Effect RPC registry",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/admin#readme",
6
6
  "bugs": {
@@ -42,22 +42,22 @@
42
42
  "README.md"
43
43
  ],
44
44
  "dependencies": {
45
- "@shivaedev/access": "0.4.1",
45
+ "@shivaedev/access": "0.4.2",
46
46
  "@shivaedev/changes": "0.9.0",
47
- "@shivaedev/contract": "0.33.0",
48
- "@shivaedev/errors": "0.7.0",
49
- "@shivaedev/identity": "0.22.0",
50
- "@shivaedev/jobs": "0.32.0"
47
+ "@shivaedev/contract": "0.35.0",
48
+ "@shivaedev/errors": "0.8.0",
49
+ "@shivaedev/identity": "0.23.1",
50
+ "@shivaedev/jobs": "0.34.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@effect/atom-react": "4.0.6",
54
- "@shivaedev/quality": "0.57.1",
55
- "@shivaedev/rate-limit": "0.3.1",
56
- "@shivaedev/react": "0.37.0",
57
- "@shivaedev/server": "0.20.2",
58
- "@shivaedev/sql": "0.35.0",
59
- "@shivaedev/test-sql": "0.18.0",
60
- "@shivaedev/test-story": "0.36.0",
54
+ "@shivaedev/quality": "0.59.0",
55
+ "@shivaedev/rate-limit": "0.3.3",
56
+ "@shivaedev/react": "0.39.0",
57
+ "@shivaedev/server": "0.23.0",
58
+ "@shivaedev/sql": "0.36.1",
59
+ "@shivaedev/test-sql": "0.19.0",
60
+ "@shivaedev/test-story": "0.37.1",
61
61
  "@types/node": "24.19.2",
62
62
  "@types/react": "19.3.0",
63
63
  "@types/react-dom": "19.3.0",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@effect/atom-react": "4.0.6",
73
- "@shivaedev/react": "0.37.0",
73
+ "@shivaedev/react": "0.39.0",
74
74
  "effect": "4.0.6",
75
75
  "react": "19.3.1"
76
76
  },