@molecule/api-resource-user 1.7.1 → 1.7.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/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-21T08:49:08.924Z
6
+ Generated: 2026-10-22T04:59:30.347Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-user
@@ -314,7 +314,7 @@ type VerifyTwoFactorSecretProps = z.infer<typeof verifyTwoFactorSecretPropsSchem
314
314
 
315
315
  #### `Session`
316
316
 
317
- User session data (userId, email, role, permissions, metadata) inferred from sessionSchema.
317
+ JWT session payload inferred from sessionSchema: required userId and deviceId; optional id, oauthServer and oauthId. See sessionSchema for the field schema.
318
318
 
319
319
  ```typescript
320
320
  type Session = z.infer<typeof sessionSchema>
@@ -1988,7 +1988,7 @@ type VerifyTwoFactorSecretProps = z.infer<typeof verifyTwoFactorSecretPropsSchem
1988
1988
 
1989
1989
  ##### `types.Session`
1990
1990
 
1991
- User session data (userId, email, role, permissions, metadata) inferred from sessionSchema.
1991
+ JWT session payload inferred from sessionSchema: required userId and deviceId; optional id, oauthServer and oauthId. See sessionSchema for the field schema.
1992
1992
 
1993
1993
  ```typescript
1994
1994
  type Session = z.infer<typeof sessionSchema>
package/dist/schema.d.ts CHANGED
@@ -187,7 +187,7 @@ export declare const sessionSchema: z.ZodObject<{
187
187
  oauthId: z.ZodOptional<z.ZodString>;
188
188
  }, z.core.$strip>;
189
189
  /**
190
- * User session data (userId, email, role, permissions, metadata) inferred from sessionSchema.
190
+ * JWT session payload inferred from sessionSchema: required userId and deviceId; optional id, oauthServer and oauthId. See sessionSchema for the field schema.
191
191
  */
192
192
  export type Session = z.infer<typeof sessionSchema>;
193
193
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-user",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "User resource types and schema for molecule.dev.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "@molecule/api-two-factor": "1.0.2",
44
44
  "@types/node": "26.1.2",
45
45
  "typescript": "6.0.3",
46
- "vitest": "4.1.11"
46
+ "vitest": "4.1.12"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@molecule/api-bond": "^1.0.1",