@shivaedev/admin 0.18.0 → 0.18.1
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 +10 -0
- package/dist/client/SessionsView.d.ts +1 -1
- package/dist/client/SessionsView.d.ts.map +1 -1
- package/dist/client/SessionsView.js.map +1 -1
- package/dist/jobs/page.d.ts +1 -1
- package/dist/jobs/retryPage.d.ts +44 -44
- package/dist/server/users.d.ts +1 -1
- package/dist/server/users.d.ts.map +1 -1
- package/dist/server/users.js +1 -1
- package/dist/server/users.js.map +1 -1
- package/dist/server/usersHandlers.d.ts +1 -1
- package/dist/server/usersHandlers.d.ts.map +1 -1
- package/dist/sessions/Page.d.ts +1 -1
- package/dist/users/page.d.ts +1 -1
- package/package.json +12 -11
- package/src/client/SessionsView.ts +1 -1
- package/src/server/users.ts +1 -1
- package/src/server/usersHandlers.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.1 - 2026-11-02
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Update `@shivaedev/changes` from 0.7.0 to 0.8.0.
|
|
8
|
+
- Update `@shivaedev/contract` from 0.30.2 to 0.31.0.
|
|
9
|
+
- Update `@shivaedev/identity` from 0.18.0 to 0.19.0.
|
|
10
|
+
- Update `@shivaedev/jobs` from 0.29.2 to 0.30.0.
|
|
11
|
+
- Update `@shivaedev/react` from 0.33.0 to 0.34.0.
|
|
12
|
+
|
|
3
13
|
## 0.18.0 - 2026-11-02
|
|
4
14
|
|
|
5
15
|
### Added
|
|
@@ -2,7 +2,7 @@ import { type Effect } from "effect";
|
|
|
2
2
|
import type * as AsyncResult from "effect/reactivity/AsyncResult";
|
|
3
3
|
import type * as Atom from "effect/reactivity/Atom";
|
|
4
4
|
import type { SessionList, SessionListInput } from "@shivaedev/identity/sessions.ts";
|
|
5
|
-
import type { AtomServices } from "@shivaedev/react/
|
|
5
|
+
import type { AtomServices } from "@shivaedev/react/AtomServices.ts";
|
|
6
6
|
export interface SessionsViewProps<R, E> {
|
|
7
7
|
readonly currentSessionId: string | undefined;
|
|
8
8
|
readonly list: (input: typeof SessionListInput.Type) => Atom.Atom<AsyncResult.AsyncResult<typeof SessionList.Type, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionsView.d.ts","sourceRoot":"","sources":["../../src/client/SessionsView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,MAAM,EAAqB,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAmB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionsView.d.ts","sourceRoot":"","sources":["../../src/client/SessionsView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,MAAM,EAAqB,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAmB,MAAM,iCAAiC,CAAC;AACtG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAMrE,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7H,QAAQ,CAAC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACzC;AAMD,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;gBAmD/H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionsView.js","sourceRoot":"","sources":["../../src/client/SessionsView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionsView.js","sourceRoot":"","sources":["../../src/client/SessionsView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA2B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;AAU5D,SAAS,SAAS,CAAC,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AC,iBAAiB,EAAE;QAChC,OAAO;QACP,IAAI;QACJ,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YACZ,MAAM,CAAC,SAAS,CAAC,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;QACD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO;KACxC,CAAC,CACF,CAAC;AACH,CAAC"}
|
package/dist/jobs/page.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ export declare function jobsPage<const TQueues extends readonly JobsEntry[]>(...
|
|
|
195
195
|
readonly queryIndexes: Schema.optional<Schema.$Array<Schema.Number>>;
|
|
196
196
|
}>, Schema.Struct<{
|
|
197
197
|
readonly _tag: Schema.Literal<"Resync">;
|
|
198
|
-
}>]>, ...never[]]>, Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>[]]>>, Schema.Never, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.counts", Schema.Struct<{
|
|
198
|
+
}>]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, ...never[]]>, Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("#jobs/schemas.ts").JobsUnavailable | typeof import("#jobs/schemas.ts").JobsPayloadInvalid | typeof import("#jobs/schemas.ts").JobsQueueUnregistered)[]>[]]>>, Schema.Never, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.counts", Schema.Struct<{
|
|
199
199
|
queue: Schema.String;
|
|
200
200
|
}>, Schema.Struct<{
|
|
201
201
|
readonly activeCount: Schema.Number;
|
package/dist/jobs/retryPage.d.ts
CHANGED
|
@@ -187,7 +187,25 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
187
187
|
readonly JobsUnavailable: typeof import("./schemas.ts").JobsUnavailable;
|
|
188
188
|
readonly Forbidden: typeof Forbidden;
|
|
189
189
|
readonly JobsNotFailed: typeof JobsNotFailed;
|
|
190
|
-
}>>], import("effect/rpc/Rpc").Rpc<"admin.jobs
|
|
190
|
+
}>>], import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
191
|
+
id: Schema.String;
|
|
192
|
+
queue: Schema.String;
|
|
193
|
+
}>, Schema.OptionFromNullOr<Schema.Union<Schema.Struct<{
|
|
194
|
+
readonly attempt: Schema.Number;
|
|
195
|
+
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
196
|
+
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
197
|
+
readonly id: Schema.String;
|
|
198
|
+
readonly output: Schema.NullOr<Schema.Struct<{
|
|
199
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
200
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
201
|
+
}>>;
|
|
202
|
+
readonly retryCount: Schema.Number;
|
|
203
|
+
readonly retryLimit: Schema.Number;
|
|
204
|
+
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
205
|
+
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
206
|
+
readonly data: Schema.Unknown;
|
|
207
|
+
readonly queue: Schema.Literal<string>;
|
|
208
|
+
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.$changes", Schema.Struct<{
|
|
191
209
|
queries: Schema.$Array<Schema.Union<readonly (Schema.Struct<{
|
|
192
210
|
query: Schema.Literal<"counts">;
|
|
193
211
|
payload: Schema.Struct<{
|
|
@@ -235,17 +253,28 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
235
253
|
readonly queryIndexes: Schema.optional<Schema.$Array<Schema.Number>>;
|
|
236
254
|
}>, Schema.Struct<{
|
|
237
255
|
readonly _tag: Schema.Literal<"Resync">;
|
|
238
|
-
}>]>, ...never[]]>, Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>[]]>>, Schema.Never, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
239
|
-
id: Schema.String;
|
|
240
|
-
queue: Schema.String;
|
|
241
|
-
}>, 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<{
|
|
256
|
+
}>]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, ...never[]]>, Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>[]]>>, Schema.Never, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.counts", Schema.Struct<{
|
|
242
257
|
queue: Schema.String;
|
|
243
258
|
}>, Schema.Struct<{
|
|
244
259
|
readonly activeCount: Schema.Number;
|
|
245
260
|
readonly failedCount: Schema.Number;
|
|
246
261
|
readonly queuedCount: Schema.Number;
|
|
247
262
|
readonly totalCount: Schema.Number;
|
|
248
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
263
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.health", Schema.Void, Schema.Struct<{
|
|
264
|
+
readonly activeTotal: Schema.Number;
|
|
265
|
+
readonly deadLetteredTotal: Schema.Number;
|
|
266
|
+
readonly failedTotal: Schema.Number;
|
|
267
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
268
|
+
readonly activeCount: Schema.Number;
|
|
269
|
+
readonly deadLetteredCount: Schema.Number;
|
|
270
|
+
readonly failedCount: Schema.Number;
|
|
271
|
+
readonly name: Schema.String;
|
|
272
|
+
readonly queuedCount: Schema.Number;
|
|
273
|
+
readonly readyCount: Schema.Number;
|
|
274
|
+
}>>;
|
|
275
|
+
readonly queuedTotal: Schema.Number;
|
|
276
|
+
readonly readyTotal: Schema.Number;
|
|
277
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.failed", Schema.Struct<{
|
|
249
278
|
cursor: Schema.optionalKey<Schema.String>;
|
|
250
279
|
limit: Schema.Number;
|
|
251
280
|
queue: Schema.String;
|
|
@@ -265,15 +294,9 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
265
294
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
266
295
|
readonly data: Schema.Unknown;
|
|
267
296
|
readonly queue: Schema.Literal<string>;
|
|
268
|
-
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
269
|
-
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
270
|
-
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
271
|
-
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
272
|
-
}>>;
|
|
273
|
-
readonly sourceQueue: Schema.Literal<string>;
|
|
274
297
|
}>[]>>;
|
|
275
298
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
276
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
299
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.deadLettered", Schema.Struct<{
|
|
277
300
|
cursor: Schema.optionalKey<Schema.String>;
|
|
278
301
|
limit: Schema.Number;
|
|
279
302
|
queue: Schema.String;
|
|
@@ -293,41 +316,18 @@ export declare function jobsPageWithRetry<const TQueues extends readonly JobsEnt
|
|
|
293
316
|
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
294
317
|
readonly data: Schema.Unknown;
|
|
295
318
|
readonly queue: Schema.Literal<string>;
|
|
319
|
+
readonly sourceId: Schema.OptionFromNullOr<Schema.String>;
|
|
320
|
+
readonly sourceOutput: Schema.NullOr<Schema.Struct<{
|
|
321
|
+
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
322
|
+
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
323
|
+
}>>;
|
|
324
|
+
readonly sourceQueue: Schema.Literal<string>;
|
|
296
325
|
}>[]>>;
|
|
297
326
|
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
298
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.
|
|
299
|
-
readonly activeTotal: Schema.Number;
|
|
300
|
-
readonly deadLetteredTotal: Schema.Number;
|
|
301
|
-
readonly failedTotal: Schema.Number;
|
|
302
|
-
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
303
|
-
readonly activeCount: Schema.Number;
|
|
304
|
-
readonly deadLetteredCount: Schema.Number;
|
|
305
|
-
readonly failedCount: Schema.Number;
|
|
306
|
-
readonly name: Schema.String;
|
|
307
|
-
readonly queuedCount: Schema.Number;
|
|
308
|
-
readonly readyCount: Schema.Number;
|
|
309
|
-
}>>;
|
|
310
|
-
readonly queuedTotal: Schema.Number;
|
|
311
|
-
readonly readyTotal: Schema.Number;
|
|
312
|
-
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.job", Schema.Struct<{
|
|
327
|
+
}>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.jobs.retry", Schema.Struct<{
|
|
313
328
|
id: Schema.String;
|
|
314
329
|
queue: Schema.String;
|
|
315
|
-
}>, Schema.
|
|
316
|
-
readonly attempt: Schema.Number;
|
|
317
|
-
readonly completedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
318
|
-
readonly createdOn: Schema.DateTimeUtcFromString;
|
|
319
|
-
readonly id: Schema.String;
|
|
320
|
-
readonly output: Schema.NullOr<Schema.Struct<{
|
|
321
|
-
readonly _tag: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
322
|
-
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
323
|
-
}>>;
|
|
324
|
-
readonly retryCount: Schema.Number;
|
|
325
|
-
readonly retryLimit: Schema.Number;
|
|
326
|
-
readonly startedOn: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
327
|
-
readonly state: Schema.Literals<readonly ["created", "retry", "active", "completed", "cancelled", "failed"]>;
|
|
328
|
-
readonly data: Schema.Unknown;
|
|
329
|
-
readonly queue: Schema.Literal<string>;
|
|
330
|
-
}>[]>>, Schema.Union<readonly [Schema.Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").BadRequest | typeof import("./schemas.ts").JobsUnavailable | typeof import("./schemas.ts").JobsPayloadInvalid | typeof import("./schemas.ts").JobsQueueUnregistered)[]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied]>, typeof JobsPermission, never>, readonly [], undefined>;
|
|
330
|
+
}>, 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>;
|
|
331
331
|
} & {
|
|
332
332
|
queues: TQueues;
|
|
333
333
|
};
|
package/dist/server/users.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SqlClient } from "effect/sql";
|
|
|
3
3
|
import type { AccessPolicy } from "@shivaedev/access/roleSet.ts";
|
|
4
4
|
import { AuthUnavailable } from "@shivaedev/errors/taxonomy.ts";
|
|
5
5
|
import { SessionUser } from "@shivaedev/identity/identity.ts";
|
|
6
|
-
import { type AuthTableOptions } from "@shivaedev/identity/server/better-auth/tables.ts";
|
|
6
|
+
import { type AuthTableOptions } from "@shivaedev/identity/server/better-auth/adapters/tables.ts";
|
|
7
7
|
import { type ChangeRoleInput } from "#users/roles.ts";
|
|
8
8
|
export declare const listUsers: <TRole extends string>(access: Pick<AccessPolicy<TRole>, "Role">, input: {
|
|
9
9
|
readonly cursor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/server/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/server/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,KAAK,gBAAgB,EAAU,MAAM,2DAA2D,CAAC;AAG1G,OAAO,EAAW,KAAK,eAAe,EAAsB,MAAM,iBAAiB,CAAC;AAMpF,eAAO,MAAM,SAAS,GAA2C,KAAK,SAAS,MAAM;;;;;;;;;;;;0GAkBnF,CAAC;AAEH,eAAO,MAAM,cAAc,GAAgD,KAAK,SAAS,MAAM,+WAY7F,CAAC"}
|
package/dist/server/users.js
CHANGED
|
@@ -4,8 +4,8 @@ import { requirePermission } from "@shivaedev/access/requirePermission.ts";
|
|
|
4
4
|
import { AssignRoles } from "@shivaedev/access/roles.ts";
|
|
5
5
|
import { AuthUnavailable } from "@shivaedev/errors/taxonomy.ts";
|
|
6
6
|
import { SessionUser } from "@shivaedev/identity/identity.ts";
|
|
7
|
+
import { tables } from "@shivaedev/identity/server/better-auth/adapters/tables.ts";
|
|
7
8
|
import { assignRole } from "@shivaedev/identity/server/better-auth/assignRole.ts";
|
|
8
|
-
import { tables } from "@shivaedev/identity/server/better-auth/tables.ts";
|
|
9
9
|
import { ReadUsers } from "#permissions.ts";
|
|
10
10
|
import { AppUser } from "#users/roles.ts";
|
|
11
11
|
function unavailable() {
|
package/dist/server/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/server/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/server/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,E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,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC1D,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;IAClH,CAAC;AACF,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccessPolicy } from "@shivaedev/access/roleSet.ts";
|
|
2
|
-
import type { AuthTableOptions } from "@shivaedev/identity/server/better-auth/tables.ts";
|
|
2
|
+
import type { AuthTableOptions } from "@shivaedev/identity/server/better-auth/adapters/tables.ts";
|
|
3
3
|
import type { usersPage } from "#users/page.ts";
|
|
4
4
|
export declare function usersHandlers<const TRole extends string>(page: ReturnType<typeof usersPage<TRole>>, access: Pick<AccessPolicy<TRole>, "Role" | "hasPermission">, options?: AuthTableOptions): import("effect/Layer").Layer<import("effect/rpc/Rpc").Handler<"admin.users.changeRole"> | import("effect/rpc/Rpc").Handler<"admin.users.list">, never, import("effect/sql/SqlClient").SqlClient>;
|
|
5
5
|
//# sourceMappingURL=usersHandlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersHandlers.d.ts","sourceRoot":"","sources":["../../src/server/usersHandlers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAIjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"usersHandlers.d.ts","sourceRoot":"","sources":["../../src/server/usersHandlers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAIjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAElG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,wBAAgB,aAAa,CAAC,KAAK,CAAC,KAAK,SAAS,MAAM,EACvD,IAAI,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,EACzC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,EAC3D,OAAO,CAAC,EAAE,gBAAgB,oMAU1B"}
|
package/dist/sessions/Page.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare const SessionsPage: import("#page.ts").AdminPage & {
|
|
|
76
76
|
readonly queryIndexes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Number>>;
|
|
77
77
|
}>, import("effect/Schema").Struct<{
|
|
78
78
|
readonly _tag: import("effect/Schema").Literal<"Resync">;
|
|
79
|
-
}>]>, ...never[]]>, import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").AuthUnavailable)[]>[]]>>, import("effect/Schema").Never, typeof SessionsPermission, never> | import("effect/rpc/Rpc").Rpc<"identity.sessions.list", import("effect/Schema").Struct<{
|
|
79
|
+
}>]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, ...never[]]>, import("effect/Schema").Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...import("effect/Schema").Union<readonly (typeof import("@shivaedev/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/errors/taxonomy.ts").AuthUnavailable)[]>[]]>>, import("effect/Schema").Never, typeof SessionsPermission, never> | import("effect/rpc/Rpc").Rpc<"identity.sessions.list", import("effect/Schema").Struct<{
|
|
80
80
|
readonly cursor: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
81
81
|
readonly id: import("effect/Schema").String;
|
|
82
82
|
readonly lastActivityAt: import("effect/Schema").DateTimeUtcFromString;
|
package/dist/users/page.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare function usersPage<const TRole extends string>(access: Pick<Acces
|
|
|
78
78
|
readonly queryIndexes: Schema.optional<Schema.$Array<Schema.Number>>;
|
|
79
79
|
}>, Schema.Struct<{
|
|
80
80
|
readonly _tag: Schema.Literal<"Resync">;
|
|
81
|
-
}>]>, ...never[]]>, Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...Schema.Union<readonly (typeof Forbidden | typeof AuthUnavailable)[]>[]]>>, Schema.Never, typeof UsersPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.users.changeRole", Schema.Struct<{
|
|
81
|
+
}>]>, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, ...never[]]>, Schema.Union<readonly [typeof import("@shivaedev/contract/readPolicyErrors.ts").MissingReadPolicy, typeof import("@shivaedev/contract/readPolicyErrors.ts").QueryReadDenied, typeof import("@shivaedev/contract/WebSocketRequired.ts").WebSocketRequired, ...Schema.Union<readonly (typeof Forbidden | typeof AuthUnavailable)[]>[]]>>, Schema.Never, typeof UsersPermission, never> | import("effect/rpc/Rpc").Rpc<"admin.users.changeRole", Schema.Struct<{
|
|
82
82
|
role: Schema.Literals<TRole[]>;
|
|
83
83
|
userId: Schema.String;
|
|
84
84
|
}>, 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<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/admin",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
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": {
|
|
@@ -43,20 +43,21 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@shivaedev/access": "0.3.6",
|
|
46
|
-
"@shivaedev/changes": "0.
|
|
47
|
-
"@shivaedev/contract": "0.
|
|
46
|
+
"@shivaedev/changes": "0.8.0",
|
|
47
|
+
"@shivaedev/contract": "0.31.0",
|
|
48
48
|
"@shivaedev/errors": "0.5.0",
|
|
49
|
-
"@shivaedev/identity": "0.
|
|
50
|
-
"@shivaedev/jobs": "0.
|
|
51
|
-
"@shivaedev/react": "0.
|
|
49
|
+
"@shivaedev/identity": "0.19.0",
|
|
50
|
+
"@shivaedev/jobs": "0.30.0",
|
|
51
|
+
"@shivaedev/react": "0.34.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@effect/atom-react": "4.0.6",
|
|
55
|
-
"@shivaedev/quality": "0.
|
|
56
|
-
"@shivaedev/
|
|
57
|
-
"@shivaedev/
|
|
58
|
-
"@shivaedev/
|
|
59
|
-
"@shivaedev/test-
|
|
55
|
+
"@shivaedev/quality": "0.56.0",
|
|
56
|
+
"@shivaedev/rate-limit": "0.2.1",
|
|
57
|
+
"@shivaedev/server": "0.19.0",
|
|
58
|
+
"@shivaedev/sql": "0.33.0",
|
|
59
|
+
"@shivaedev/test-sql": "0.16.2",
|
|
60
|
+
"@shivaedev/test-story": "0.34.0",
|
|
60
61
|
"@types/node": "24.19.2",
|
|
61
62
|
"@types/react": "19.3.0",
|
|
62
63
|
"@types/react-dom": "19.3.0",
|
|
@@ -3,8 +3,8 @@ import type * as AsyncResult from "effect/reactivity/AsyncResult";
|
|
|
3
3
|
import type * as Atom from "effect/reactivity/Atom";
|
|
4
4
|
import { createElement, useState } from "react";
|
|
5
5
|
import type { SessionList, SessionListInput, SignedInSession } from "@shivaedev/identity/sessions.ts";
|
|
6
|
+
import type { AtomServices } from "@shivaedev/react/AtomServices.ts";
|
|
6
7
|
import { useAction, useQuery } from "@shivaedev/react/client/resultState.ts";
|
|
7
|
-
import type { AtomServices } from "@shivaedev/react/fieldRejection.ts";
|
|
8
8
|
import { SessionConfirmation } from "./SessionConfirmation.tsx";
|
|
9
9
|
import { SessionListView } from "./SessionListView.tsx";
|
|
10
10
|
import { SessionPagination } from "./SessionPagination.tsx";
|
package/src/server/users.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type { AccessPolicy } from "@shivaedev/access/roleSet.ts";
|
|
|
5
5
|
import { AssignRoles } from "@shivaedev/access/roles.ts";
|
|
6
6
|
import { AuthUnavailable } from "@shivaedev/errors/taxonomy.ts";
|
|
7
7
|
import { SessionUser } from "@shivaedev/identity/identity.ts";
|
|
8
|
+
import { type AuthTableOptions, tables } from "@shivaedev/identity/server/better-auth/adapters/tables.ts";
|
|
8
9
|
import { assignRole } from "@shivaedev/identity/server/better-auth/assignRole.ts";
|
|
9
|
-
import { type AuthTableOptions, tables } from "@shivaedev/identity/server/better-auth/tables.ts";
|
|
10
10
|
import { ReadUsers } from "#permissions.ts";
|
|
11
11
|
import { AppUser, type ChangeRoleInput, type UserListInput } from "#users/roles.ts";
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@ import type { AccessPolicy } from "@shivaedev/access/roleSet.ts";
|
|
|
3
3
|
import { AssignRoles } from "@shivaedev/access/roles.ts";
|
|
4
4
|
import { SessionUser } from "@shivaedev/identity/identity.ts";
|
|
5
5
|
import { hasPermission } from "@shivaedev/identity/permission.ts";
|
|
6
|
-
import type { AuthTableOptions } from "@shivaedev/identity/server/better-auth/tables.ts";
|
|
6
|
+
import type { AuthTableOptions } from "@shivaedev/identity/server/better-auth/adapters/tables.ts";
|
|
7
7
|
import { changeUserRole, listUsers } from "#server/users.ts";
|
|
8
8
|
import type { usersPage } from "#users/page.ts";
|
|
9
9
|
|