@shivaedev/admin 0.19.2 → 0.19.4
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 +20 -0
- package/README.md +1 -1
- package/dist/jobs/retryPage.d.ts +5 -5
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.4 - 2026-11-04
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Update `@shivaedev/access` from 0.4.1 to 0.4.2.
|
|
8
|
+
- Update `@shivaedev/contract` from 0.33.1 to 0.34.0.
|
|
9
|
+
- Update `@shivaedev/errors` from 0.7.0 to 0.8.0.
|
|
10
|
+
- Update `@shivaedev/identity` from 0.22.1 to 0.23.0.
|
|
11
|
+
- Update `@shivaedev/jobs` from 0.33.0 to 0.34.0.
|
|
12
|
+
- Update `@shivaedev/react` from 0.38.0 to 0.38.1.
|
|
13
|
+
|
|
14
|
+
## 0.19.3 - 2026-11-03
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Update `@shivaedev/contract` from 0.33.0 to 0.33.1.
|
|
19
|
+
- Update `@shivaedev/identity` from 0.22.0 to 0.22.1.
|
|
20
|
+
- Update `@shivaedev/jobs` from 0.32.0 to 0.33.0.
|
|
21
|
+
- Update `@shivaedev/react` from 0.37.0 to 0.38.0.
|
|
22
|
+
|
|
3
23
|
## 0.19.2 - 2026-11-03
|
|
4
24
|
|
|
5
25
|
### 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
|
|
package/dist/jobs/retryPage.d.ts
CHANGED
|
@@ -243,7 +243,10 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
243
243
|
"~ClientError": never;
|
|
244
244
|
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]>;
|
|
245
245
|
requiredForClient: false;
|
|
246
|
-
}), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
246
|
+
}), never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.retry", Schema.Struct<{
|
|
247
|
+
id: Schema.String;
|
|
248
|
+
queue: Schema.String;
|
|
249
|
+
}>, Schema.Void, Schema.Union<readonly (typeof Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered | typeof JobsNotFailed)[]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.counts", Schema.Struct<{
|
|
247
250
|
queue: Schema.String;
|
|
248
251
|
}>, Schema.Struct<{
|
|
249
252
|
readonly activeCount: Schema.Number;
|
|
@@ -372,10 +375,7 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
372
375
|
"~ClientError": never;
|
|
373
376
|
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]>;
|
|
374
377
|
requiredForClient: false;
|
|
375
|
-
}), never
|
|
376
|
-
id: Schema.String;
|
|
377
|
-
queue: Schema.String;
|
|
378
|
-
}>, Schema.Void, Schema.Union<readonly (typeof Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered | typeof JobsNotFailed)[]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
378
|
+
}), never>, readonly [], undefined>;
|
|
379
379
|
} & {
|
|
380
380
|
queues: TQueues;
|
|
381
381
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/admin",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4",
|
|
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.
|
|
45
|
+
"@shivaedev/access": "0.4.2",
|
|
46
46
|
"@shivaedev/changes": "0.9.0",
|
|
47
|
-
"@shivaedev/contract": "0.
|
|
48
|
-
"@shivaedev/errors": "0.
|
|
49
|
-
"@shivaedev/identity": "0.
|
|
50
|
-
"@shivaedev/jobs": "0.
|
|
47
|
+
"@shivaedev/contract": "0.34.0",
|
|
48
|
+
"@shivaedev/errors": "0.8.0",
|
|
49
|
+
"@shivaedev/identity": "0.23.0",
|
|
50
|
+
"@shivaedev/jobs": "0.34.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@effect/atom-react": "4.0.6",
|
|
54
|
-
"@shivaedev/quality": "0.
|
|
55
|
-
"@shivaedev/rate-limit": "0.3.
|
|
56
|
-
"@shivaedev/react": "0.
|
|
57
|
-
"@shivaedev/server": "0.
|
|
58
|
-
"@shivaedev/sql": "0.
|
|
59
|
-
"@shivaedev/test-sql": "0.18.
|
|
60
|
-
"@shivaedev/test-story": "0.
|
|
54
|
+
"@shivaedev/quality": "0.58.0",
|
|
55
|
+
"@shivaedev/rate-limit": "0.3.3",
|
|
56
|
+
"@shivaedev/react": "0.38.1",
|
|
57
|
+
"@shivaedev/server": "0.22.0",
|
|
58
|
+
"@shivaedev/sql": "0.36.1",
|
|
59
|
+
"@shivaedev/test-sql": "0.18.2",
|
|
60
|
+
"@shivaedev/test-story": "0.37.0",
|
|
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.
|
|
73
|
+
"@shivaedev/react": "0.38.1",
|
|
74
74
|
"effect": "4.0.6",
|
|
75
75
|
"react": "19.3.1"
|
|
76
76
|
},
|