Skip to content

feat(push): mirror rich notification payload fields on send#14

Merged
Tsabary merged 1 commit into
mainfrom
feat/push-rich-payload-fields
Jun 29, 2026
Merged

feat(push): mirror rich notification payload fields on send#14
Tsabary merged 1 commit into
mainfrom
feat/push-rich-payload-fields

Conversation

@Tsabary

@Tsabary Tsabary commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Mirrors the new server-side rich push payload fields on push.send (@sublay/node). Adds the optional sound, badge, channelId, priority, subtitle, imageUrl, tag, collapseId, threadId, ttl, and mutableContent fields to SendPushProps, matching the server zod schema exactly — same names, same types, no aliases. The request body is forwarded verbatim with no reshaping.

Pairs with sublay-io/server-hosted#46.

Changes

  • src/modules/push/send.ts — extend SendPushProps (documented per field, including the iOS NSE / Android channel caveats)
  • __tests__/push.test.ts — assert the rich fields forward verbatim
  • CLAUDE.md — update the push module signature

Testing

  • npx jest push → 3 passed
  • npm run build clean (ESM + CJS + DTS)

🤖 Generated with Claude Code

Add the optional sound, badge, channelId, priority, subtitle, imageUrl,
tag, collapseId, threadId, ttl, and mutableContent fields to
SendPushProps, matching the server zod schema exactly. The request body is
forwarded verbatim with no reshaping.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Tsabary Tsabary self-assigned this Jun 29, 2026
@Tsabary Tsabary merged commit a0ea40d into main Jun 29, 2026
1 check passed
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.

1 participant