@molecule/api-resource-user 1.7.2 → 1.7.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/README.md +33 -3
- package/dist/requestHandlerMap.d.ts +11 -0
- package/dist/requestHandlerMap.d.ts.map +1 -1
- package/dist/requestHandlerMap.js +3 -0
- package/dist/requestHandlerMap.js.map +1 -1
- package/dist/resource.d.ts +9 -0
- package/dist/resource.d.ts.map +1 -1
- package/dist/resource.js +9 -0
- package/dist/resource.js.map +1 -1
- package/dist/schema.d.ts +6 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-23T11:01:24.075Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-resource-user
|
|
@@ -202,6 +202,14 @@ accept the map (e.g. `mountDefaultUserAuthRoutes`, `mountDefaultUserCrudRoutes`)
|
|
|
202
202
|
can type their parameter precisely instead of widening to
|
|
203
203
|
`Record<string, MoleculeRequestHandler>`.
|
|
204
204
|
|
|
205
|
+
`create` and `logIn` here are wrapped HTTP middleware: they send the response. To adapt a
|
|
206
|
+
request or response envelope, use this package's raw `handlers.create(resource)` or
|
|
207
|
+
`handlers.logIn(resource)` instead. They return `{ statusCode, headers?, body }`; apply or
|
|
208
|
+
adapt that result with `createRequestHandler` from `@molecule/api-resource`, preserving
|
|
209
|
+
non-success results. Signup already owns validation, hashing, same-id user/secrets rows and
|
|
210
|
+
session creation; the JSON envelope is the app's part.
|
|
211
|
+
Keep each route's authorization and rate-limit middleware around that adapter.
|
|
212
|
+
|
|
205
213
|
```typescript
|
|
206
214
|
interface UserRequestHandlerMap {
|
|
207
215
|
auth: MoleculeRequestHandler
|
|
@@ -250,7 +258,12 @@ type SecretProps = z.infer<typeof secretPropsSchema>
|
|
|
250
258
|
|
|
251
259
|
#### `CreateProps`
|
|
252
260
|
|
|
253
|
-
|
|
261
|
+
User fields accepted at signup. The password is a request field of
|
|
262
|
+
`handlers.create(resource)`, not a column in these props: that handler validates and hashes it,
|
|
263
|
+
writes the user and its same-id secrets row, and creates the session. Use the handler for
|
|
264
|
+
signup rather than inserting these props and assembling credential rows yourself. For a
|
|
265
|
+
different JSON envelope, adapt the handler's returned `{ statusCode, headers?, body }`;
|
|
266
|
+
`body.props` and `body.accessToken` are its success fields.
|
|
254
267
|
|
|
255
268
|
```typescript
|
|
256
269
|
type CreateProps = z.infer<typeof createPropsSchema>
|
|
@@ -329,6 +342,9 @@ Optional features (OAuth, payments) are conditionally included
|
|
|
329
342
|
based on bonded providers.
|
|
330
343
|
|
|
331
344
|
Handler names match the route definitions in routes.ts.
|
|
345
|
+
The map's `create` / `logIn` send HTTP responses. For a custom JSON envelope, compose the raw
|
|
346
|
+
`handlers.create(resource)` / `handlers.logIn(resource)` with `createRequestHandler` and adapt
|
|
347
|
+
their `{ statusCode, headers?, body }` result instead of reimplementing credential storage.
|
|
332
348
|
|
|
333
349
|
```typescript
|
|
334
350
|
function createRequestHandlerMap(
|
|
@@ -346,6 +362,15 @@ function createRequestHandlerMap(
|
|
|
346
362
|
|
|
347
363
|
Creates a user resource definition with optional OAuth servers and plan keys.
|
|
348
364
|
|
|
365
|
+
This defines the resource; signup and login are `handlers.create(resource)` and
|
|
366
|
+
`handlers.logIn(resource)` from this package's `handlers` namespace. Signup owns password
|
|
367
|
+
validation/hashing, the user and same-id secrets rows, and the session device. A custom JSON
|
|
368
|
+
envelope does not require custom credential writes: flatten the incoming body for the handler,
|
|
369
|
+
then adapt its returned `{ statusCode, headers?, body }`. On success `body.props` is the safe
|
|
370
|
+
user and `body.accessToken` is the token; preserve other results, including validation and
|
|
371
|
+
two-factor responses. Read `handlers.create` / `handlers.logIn` for their complete contracts.
|
|
372
|
+
Retain each route's authorization and rate-limit middleware when adapting its envelope.
|
|
373
|
+
|
|
349
374
|
```typescript
|
|
350
375
|
function createResource(options?: {
|
|
351
376
|
oauthServers?: OAuthServers
|
|
@@ -1924,7 +1949,12 @@ type SecretProps = z.infer<typeof secretPropsSchema>
|
|
|
1924
1949
|
|
|
1925
1950
|
##### `types.CreateProps`
|
|
1926
1951
|
|
|
1927
|
-
|
|
1952
|
+
User fields accepted at signup. The password is a request field of
|
|
1953
|
+
`handlers.create(resource)`, not a column in these props: that handler validates and hashes it,
|
|
1954
|
+
writes the user and its same-id secrets row, and creates the session. Use the handler for
|
|
1955
|
+
signup rather than inserting these props and assembling credential rows yourself. For a
|
|
1956
|
+
different JSON envelope, adapt the handler's returned `{ statusCode, headers?, body }`;
|
|
1957
|
+
`body.props` and `body.accessToken` are its success fields.
|
|
1928
1958
|
|
|
1929
1959
|
```typescript
|
|
1930
1960
|
type CreateProps = z.infer<typeof createPropsSchema>
|
|
@@ -6,6 +6,14 @@ type RequestHandlerCreator = typeof CreateRequestHandler;
|
|
|
6
6
|
* accept the map (e.g. `mountDefaultUserAuthRoutes`, `mountDefaultUserCrudRoutes`)
|
|
7
7
|
* can type their parameter precisely instead of widening to
|
|
8
8
|
* `Record<string, MoleculeRequestHandler>`.
|
|
9
|
+
*
|
|
10
|
+
* `create` and `logIn` here are wrapped HTTP middleware: they send the response. To adapt a
|
|
11
|
+
* request or response envelope, use this package's raw `handlers.create(resource)` or
|
|
12
|
+
* `handlers.logIn(resource)` instead. They return `{ statusCode, headers?, body }`; apply or
|
|
13
|
+
* adapt that result with `createRequestHandler` from `@molecule/api-resource`, preserving
|
|
14
|
+
* non-success results. Signup already owns validation, hashing, same-id user/secrets rows and
|
|
15
|
+
* session creation; the JSON envelope is the app's part.
|
|
16
|
+
* Keep each route's authorization and rate-limit middleware around that adapter.
|
|
9
17
|
*/
|
|
10
18
|
export interface UserRequestHandlerMap {
|
|
11
19
|
auth: MoleculeRequestHandler;
|
|
@@ -37,6 +45,9 @@ export interface UserRequestHandlerMap {
|
|
|
37
45
|
* based on bonded providers.
|
|
38
46
|
*
|
|
39
47
|
* Handler names match the route definitions in routes.ts.
|
|
48
|
+
* The map's `create` / `logIn` send HTTP responses. For a custom JSON envelope, compose the raw
|
|
49
|
+
* `handlers.create(resource)` / `handlers.logIn(resource)` with `createRequestHandler` and adapt
|
|
50
|
+
* their `{ statusCode, headers?, body }` result instead of reimplementing credential storage.
|
|
40
51
|
* @param createRequestHandler - Factory from `@molecule/api-resource` that wraps handler configs into Express middleware.
|
|
41
52
|
* @returns A `UserRequestHandlerMap` of handler names to Express middleware.
|
|
42
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestHandlerMap.d.ts","sourceRoot":"","sources":["../src/requestHandlerMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,IAAI,oBAAoB,EAC5C,sBAAsB,EACvB,MAAM,wBAAwB,CAAA;AAM/B,KAAK,qBAAqB,GAAG,OAAO,oBAAoB,CAAA;AAExD
|
|
1
|
+
{"version":3,"file":"requestHandlerMap.d.ts","sourceRoot":"","sources":["../src/requestHandlerMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,IAAI,oBAAoB,EAC5C,sBAAsB,EACvB,MAAM,wBAAwB,CAAA;AAM/B,KAAK,qBAAqB,GAAG,OAAO,oBAAoB,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,sBAAsB,CAAA;IAC5B,QAAQ,EAAE,sBAAsB,CAAA;IAChC,aAAa,EAAE,sBAAsB,CAAA;IACrC,kBAAkB,EAAE,sBAAsB,CAAA;IAC1C,MAAM,EAAE,sBAAsB,CAAA;IAC9B,KAAK,EAAE,sBAAsB,CAAA;IAC7B,cAAc,EAAE,sBAAsB,CAAA;IACtC,UAAU,EAAE,sBAAsB,CAAA;IAClC,MAAM,EAAE,sBAAsB,CAAA;IAC9B,IAAI,EAAE,sBAAsB,CAAA;IAC5B,QAAQ,EAAE,sBAAsB,CAAA;IAChC,MAAM,EAAE,sBAAsB,CAAA;IAC9B,GAAG,EAAE,sBAAsB,CAAA;IAC3B,cAAc,EAAE,sBAAsB,CAAA;IACtC,cAAc,EAAE,sBAAsB,CAAA;IACtC,aAAa,EAAE,sBAAsB,CAAA;IACrC,eAAe,EAAE,sBAAsB,CAAA;IACvC,UAAU,EAAE,sBAAsB,CAAA;IAClC,aAAa,EAAE,sBAAsB,CAAA;IACrC,aAAa,EAAE,sBAAsB,CAAA;IACrC,yBAAyB,EAAE,sBAAsB,CAAA;IACjD,0BAA0B,EAAE,sBAAsB,CAAA;CACnD;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,GAClC,sBAAsB,qBAAqB,KAC1C,qBA2DF,CAAA"}
|
|
@@ -8,6 +8,9 @@ import { resource } from './resource.js';
|
|
|
8
8
|
* based on bonded providers.
|
|
9
9
|
*
|
|
10
10
|
* Handler names match the route definitions in routes.ts.
|
|
11
|
+
* The map's `create` / `logIn` send HTTP responses. For a custom JSON envelope, compose the raw
|
|
12
|
+
* `handlers.create(resource)` / `handlers.logIn(resource)` with `createRequestHandler` and adapt
|
|
13
|
+
* their `{ statusCode, headers?, body }` result instead of reimplementing credential storage.
|
|
11
14
|
* @param createRequestHandler - Factory from `@molecule/api-resource` that wraps handler configs into Express middleware.
|
|
12
15
|
* @returns A `UserRequestHandlerMap` of handler names to Express middleware.
|
|
13
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestHandlerMap.js","sourceRoot":"","sources":["../src/requestHandlerMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,C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oBAAoB,CAAC,QAAQ,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;KAC9F,CAAA;IAED,wEAAwE;IACxE,8FAA8F;IAC9F,KAAK,MAAuB,CAAA;IAE5B,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA"}
|
package/dist/resource.d.ts
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
import type * as types from './types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Creates a user resource definition with optional OAuth servers and plan keys.
|
|
9
|
+
*
|
|
10
|
+
* This defines the resource; signup and login are `handlers.create(resource)` and
|
|
11
|
+
* `handlers.logIn(resource)` from this package's `handlers` namespace. Signup owns password
|
|
12
|
+
* validation/hashing, the user and same-id secrets rows, and the session device. A custom JSON
|
|
13
|
+
* envelope does not require custom credential writes: flatten the incoming body for the handler,
|
|
14
|
+
* then adapt its returned `{ statusCode, headers?, body }`. On success `body.props` is the safe
|
|
15
|
+
* user and `body.accessToken` is the token; preserve other results, including validation and
|
|
16
|
+
* two-factor responses. Read `handlers.create` / `handlers.logIn` for their complete contracts.
|
|
17
|
+
* Retain each route's authorization and rate-limit middleware when adapting its envelope.
|
|
9
18
|
* @param options - Optional configuration.
|
|
10
19
|
* @param options.oauthServers - Tuple of allowed OAuth server names (e.g. `['google', 'github']`). Constrains the `oauthServer` schema field.
|
|
11
20
|
* @param options.planKeys - Tuple of allowed plan key strings (e.g. `['free', 'pro']`). Constrains the `planKey` schema field.
|
package/dist/resource.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAExC
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAExC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,GACzB,YAAY,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,SAAS,GAAG,SAAS,EAC3E,QAAQ,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,SAAS,GAAG,SAAS,EACvE,UAAU;IACV,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB,KAAG,KAAK,CAAC,QAIR,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,QAA2B,CAAA"}
|
package/dist/resource.js
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
import { createSchema } from './schema.js';
|
|
7
7
|
/**
|
|
8
8
|
* Creates a user resource definition with optional OAuth servers and plan keys.
|
|
9
|
+
*
|
|
10
|
+
* This defines the resource; signup and login are `handlers.create(resource)` and
|
|
11
|
+
* `handlers.logIn(resource)` from this package's `handlers` namespace. Signup owns password
|
|
12
|
+
* validation/hashing, the user and same-id secrets rows, and the session device. A custom JSON
|
|
13
|
+
* envelope does not require custom credential writes: flatten the incoming body for the handler,
|
|
14
|
+
* then adapt its returned `{ statusCode, headers?, body }`. On success `body.props` is the safe
|
|
15
|
+
* user and `body.accessToken` is the token; preserve other results, including validation and
|
|
16
|
+
* two-factor responses. Read `handlers.create` / `handlers.logIn` for their complete contracts.
|
|
17
|
+
* Retain each route's authorization and rate-limit middleware when adapting its envelope.
|
|
9
18
|
* @param options - Optional configuration.
|
|
10
19
|
* @param options.oauthServers - Tuple of allowed OAuth server names (e.g. `['google', 'github']`). Constrains the `oauthServer` schema field.
|
|
11
20
|
* @param options.planKeys - Tuple of allowed plan key strings (e.g. `['free', 'pro']`). Constrains the `planKey` schema field.
|
package/dist/resource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAG5B,OAGD,EAAkB,EAAE,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC;CAC9B,CAAC,CAAA;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAmB,cAAc,EAAE,CAAA"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -98,7 +98,12 @@ export declare const createPropsSchema: z.ZodObject<{
|
|
|
98
98
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* User fields accepted at signup. The password is a request field of
|
|
102
|
+
* `handlers.create(resource)`, not a column in these props: that handler validates and hashes it,
|
|
103
|
+
* writes the user and its same-id secrets row, and creates the session. Use the handler for
|
|
104
|
+
* signup rather than inserting these props and assembling credential rows yourself. For a
|
|
105
|
+
* different JSON envelope, adapt the handler's returned `{ statusCode, headers?, body }`;
|
|
106
|
+
* `body.props` and `body.accessToken` are its success fields.
|
|
102
107
|
*/
|
|
103
108
|
export type CreateProps = z.infer<typeof createPropsSchema>;
|
|
104
109
|
/** Schema for creating secret props (password hash only). */
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC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O,EAAE,CAAA;AAOZ;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW;KAClD,IAAI,CAAC;IACJ,gBAAgB,EAAE,IAAI;CACvB,CAAC;KACD,OAAO,EAAE,CAAA;AAOZ;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB;KAC9D,IAAI,CAAC;IACJ,sBAAsB,EAAE,IAAI;IAC5B,eAAe,EAAE,IAAI;CACtB,CAAC;KACD,OAAO,EAAE,CAAA;AAOZ,qFAAqF;AACrF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC;;OAEG;IACH,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB;;OAEG;IACH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB;;OAEG;IACH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB;;OAEG;IACH,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AAOF;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-resource-user",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "User resource types and schema for molecule.dev.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"uuid": "14.0.
|
|
33
|
-
"zod": "4.
|
|
32
|
+
"uuid": "14.0.3",
|
|
33
|
+
"zod": "4.6.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@molecule/api-bond": "1.0.
|
|
37
|
-
"@molecule/api-config": "1.0.
|
|
36
|
+
"@molecule/api-bond": "1.0.3",
|
|
37
|
+
"@molecule/api-config": "1.0.3",
|
|
38
38
|
"@molecule/api-locales-user": "1.1.0",
|
|
39
39
|
"@molecule/api-locales-user-payments": "1.0.3",
|
|
40
|
-
"@molecule/api-payments": "1.2.
|
|
41
|
-
"@molecule/api-push-notifications": "1.0.
|
|
42
|
-
"@molecule/api-rate-limit": "1.0.
|
|
40
|
+
"@molecule/api-payments": "1.2.2",
|
|
41
|
+
"@molecule/api-push-notifications": "1.0.3",
|
|
42
|
+
"@molecule/api-rate-limit": "1.0.4",
|
|
43
43
|
"@molecule/api-two-factor": "1.0.2",
|
|
44
|
-
"@types/node": "26.
|
|
44
|
+
"@types/node": "26.6.5",
|
|
45
45
|
"typescript": "6.0.3",
|
|
46
46
|
"vitest": "4.1.12"
|
|
47
47
|
},
|