Skip to content

feat: schemas for application account notices - #131

Merged
Bccorb merged 1 commit into
mainfrom
feat/application-account-notices
Oct 31, 2026
Merged

Bccorb merged 1 commit into
mainfrom
feat/application-account-notices

Conversation

@Bccorb

@Bccorb Bccorb commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

What

Schemas for the endpoint a registered application calls to send one of its users an account notice on their verified channels (fells-code/seamless-auth-api#516, ADR 0001 D14).

  • SendApplicationNoticeRequestSchema: userId, optional channels (email, sms), subject (single line, no control characters, since it becomes an email header), text (plain text, line breaks only), optional https actionUrl.
  • SendApplicationNoticeResponseSchema: per channel status, never addresses. deliveries only for a caller that owns delivery.
  • ApplicationNoticeErrorCodeSchema: invalid token, not enabled, unknown user (also used for a user with no grant), no channel, action link not allowed, rate limited.
  • account_notice_email / account_notice_sms gain an optional application (clientId, name). AccountNoticeNameSchema gains application_notice.
  • Auth events oidc_account_notice_sent and oidc_account_notice_failed.
  • APPLICATION_NOTICE_SCOPE and seamlessBuiltInResource(issuer).

Minor changeset, pre mode. Adding an enum value to AccountNoticeNameSchema affects exhaustive switches; the changeset says so.

Closes #120

Checks

npm run typecheck, npm run lint, npm run format:check, npm test (25 files, 482 tests) and npm run build all pass.

@Bccorb
Bccorb merged commit 6917730 into main Oct 31, 2026
5 checks passed
@Bccorb
Bccorb deleted the feat/application-account-notices branch October 31, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: schemas for application account notices

1 participant