@dads-framework/identity 0.5.0 → 0.6.0

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.
Files changed (35) hide show
  1. package/README.md +4 -0
  2. package/dist/better-auth/lib/configure-better-auth.d.ts +8 -1033
  3. package/dist/better-auth/lib/configure-better-auth.d.ts.map +1 -1
  4. package/dist/better-auth/lib/configure-better-auth.js +7 -8
  5. package/dist/better-auth/lib/configure-better-auth.js.map +1 -1
  6. package/dist/better-auth/lib/create-better-auth-identity.d.ts.map +1 -1
  7. package/dist/better-auth/lib/create-better-auth-identity.js +7 -3
  8. package/dist/better-auth/lib/create-better-auth-identity.js.map +1 -1
  9. package/dist/better-auth/lib/enterprise-options.d.ts +3 -0
  10. package/dist/better-auth/lib/enterprise-options.d.ts.map +1 -1
  11. package/dist/better-auth/lib/enterprise-options.js +6 -0
  12. package/dist/better-auth/lib/enterprise-options.js.map +1 -1
  13. package/dist/better-auth/lib/enterprise-plugin.d.ts +0 -3
  14. package/dist/better-auth/lib/enterprise-plugin.d.ts.map +1 -1
  15. package/dist/better-auth/lib/enterprise-plugin.js +1 -7
  16. package/dist/better-auth/lib/enterprise-plugin.js.map +1 -1
  17. package/dist/better-auth/lib/enterprise-routes.d.ts.map +1 -1
  18. package/dist/better-auth/lib/enterprise-routes.js +1 -2
  19. package/dist/better-auth/lib/enterprise-routes.js.map +1 -1
  20. package/dist/better-auth/lib/identity-options.d.ts +3 -0
  21. package/dist/better-auth/lib/identity-options.d.ts.map +1 -1
  22. package/dist/better-auth/lib/identity-options.js.map +1 -1
  23. package/dist/better-auth/lib/identity-session-readers.d.ts.map +1 -1
  24. package/dist/better-auth/lib/identity-session-readers.js +1 -2
  25. package/dist/better-auth/lib/identity-session-readers.js.map +1 -1
  26. package/dist/identity.tsbuildinfo +1 -1
  27. package/dist/tenants/contract.d.ts +10 -0
  28. package/dist/tenants/contract.d.ts.map +1 -0
  29. package/dist/tenants/contract.js +5 -0
  30. package/dist/tenants/contract.js.map +1 -0
  31. package/dist/tenants/tenant-access.d.ts +3 -10
  32. package/dist/tenants/tenant-access.d.ts.map +1 -1
  33. package/dist/tenants/tenant-access.js +2 -4
  34. package/dist/tenants/tenant-access.js.map +1 -1
  35. package/package.json +10 -6
package/README.md CHANGED
@@ -132,6 +132,10 @@ SCIM group membership is directory data. Application roles are managed separatel
132
132
  See [SCIM Core Schema](https://www.rfc-editor.org/rfc/rfc7643) and
133
133
  [SCIM Protocol](https://www.rfc-editor.org/rfc/rfc7644).
134
134
 
135
+ ## Tenant contracts
136
+
137
+ Import `tenantIdSchema`, `assignableTenantRoleSchema`, `tenantRoles`, `TenantId`, and `TenantRole` from `@dads-framework/identity/tenants/contract` in shared or browser code. That subpath depends only on `zod` and avoids Node built-ins and database modules pulled in by `@dads-framework/identity/tenants`.
138
+
135
139
  ## Staff impersonation
136
140
 
137
141
  Use a short-lived grant to let a staff member act as a specific account in one tenant. The caller keeps their own session, so the audit trail can record who acted and on whose behalf. [Configure staff impersonation](./src/impersonation/README.md)