@seamless-auth/types 0.25.0 → 0.27.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.
- package/CHANGELOG.md +27 -0
- package/LICENSE +202 -661
- package/README.md +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/auth/auth.schema.d.ts +27 -0
- package/dist/schemas/auth/auth.schema.d.ts.map +1 -1
- package/dist/schemas/auth/auth.schema.js +10 -0
- package/dist/schemas/auth/auth.schema.js.map +1 -1
- package/dist/schemas/authEvent/schema.d.ts +4 -1
- package/dist/schemas/authEvent/schema.d.ts.map +1 -1
- package/dist/schemas/authEvent/schema.js +1 -0
- package/dist/schemas/authEvent/schema.js.map +1 -1
- package/dist/schemas/enrollment/schema.d.ts +171 -0
- package/dist/schemas/enrollment/schema.d.ts.map +1 -0
- package/dist/schemas/enrollment/schema.js +89 -0
- package/dist/schemas/enrollment/schema.js.map +1 -0
- package/dist/schemas/messaging/schema.d.ts +4 -0
- package/dist/schemas/messaging/schema.d.ts.map +1 -1
- package/dist/schemas/messaging/schema.js +6 -0
- package/dist/schemas/messaging/schema.js.map +1 -1
- package/dist/schemas/oauth/schema.js +2 -2
- package/dist/schemas/oauth/schema.js.map +1 -1
- package/dist/schemas/systemConfig/schema.d.ts +8 -0
- package/dist/schemas/systemConfig/schema.d.ts.map +1 -1
- package/dist/schemas/systemConfig/schema.js +17 -0
- package/dist/schemas/systemConfig/schema.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -0
- package/src/schemas/auth/auth.schema.ts +13 -0
- package/src/schemas/authEvent/schema.ts +1 -0
- package/src/schemas/enrollment/schema.ts +118 -0
- package/src/schemas/messaging/schema.ts +6 -0
- package/src/schemas/oauth/schema.ts +2 -2
- package/src/schemas/systemConfig/schema.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @seamless-auth/types
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d34c2ef: Add `phishing_resistant_only` to `SystemConfigSchema` (default `false`) and `SystemConfigPatchSchema`. When it is on, the API starts a session only from a passkey, and refuses email and phone codes, magic links, TOTP and OAuth whatever `login_methods` says. A code is still accepted once, to verify a new account's address before its first passkey is enrolled.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 46a83af: Support Node 22 and newer. The `engines` field now requires `>=22` instead of `>=24 <25`, and CI runs on Node 22, 24, and the latest release (fells-code/seamless-auth-api#339).
|
|
12
|
+
|
|
13
|
+
## 0.26.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 8bd5f71: Add the schemas for tracking and inviting passkey enrollment (fells-code/seamless-auth-api#338).
|
|
18
|
+
|
|
19
|
+
- `EnrollmentStatusSchema` (`none`, `one`, `two_or_more`).
|
|
20
|
+
- `AdminEnrollmentQuerySchema` and `AdminEnrollmentResponseSchema`, for the enrollment list and its per-status summary, optionally scoped to one organization or to imported users.
|
|
21
|
+
- `EnrollmentInviteRequestSchema` and `EnrollmentInviteResponseSchema`, for inviting listed users or an organization's unenrolled members.
|
|
22
|
+
- `AuthDeliverySchema` gains `enrollment_invite_email` for external delivery.
|
|
23
|
+
- `AUTH_EVENT_TYPES` gains `admin_enrollment_invite_sent`.
|
|
24
|
+
- `SystemConfigSchema` gains `prompt_passkey_enrollment` (default `false`). With it set, `OTPVerifyTokenSuccessSchema` and `MagicLinkPollSuccessSchema` carry `nextStep: 'enroll_passkey'` for a user with no passkey.
|
|
25
|
+
- `NextStepSchema` is shared by those responses and by `OAuthLoginSuccessResponseSchema`.
|
|
26
|
+
|
|
27
|
+
Code that switches exhaustively over `AuthDeliverySchema`'s `kind` needs the new value.
|
|
28
|
+
- 5fdf38d: Relicense from AGPL-3.0-only to the Apache License, Version 2.0 (fells-code/seamless-auth-api#335). The `LICENSE` file, the `license` field and the license header in source files now say Apache-2.0.
|
|
29
|
+
|
|
3
30
|
## 0.25.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|