@blinkdotnew/sdk 0.10.3 → 0.10.4

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 (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -719,10 +719,15 @@ const sendBulkEmails = async (recipients: string[], subject: string, htmlContent
719
719
  }
720
720
 
721
721
  // Response format details:
722
- // ✅ Success response: { success: true, messageId: "msg_abc123..." }
722
+ // ✅ Success response: { success: true, messageId: "msg_abc123...", from: "noreply@project.blink-email.com", to: ["recipient@example.com"], subject: "Email Subject", timestamp: "2024-01-20T10:30:00.000Z" }
723
723
  // ❌ The method throws BlinkNotificationsError on failure
724
724
  // 🔍 Error types: validation errors, rate limits, network issues, invalid attachments
725
725
 
726
+ // API Response Format:
727
+ // The notifications API returns data directly (not wrapped in {data: ..., error: ...})
728
+ // This is consistent with other Blink APIs like database and storage
729
+ // All Blink APIs follow this pattern for clean, predictable responses
730
+
726
731
  // Best practices:
727
732
  // 1. Always include both HTML and text versions for better deliverability
728
733
  // 2. Use valid email addresses for 'from' field (not display names)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkdotnew/sdk",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Blink TypeScript SDK for client-side applications - Zero-boilerplate CRUD + auth + AI + analytics + notifications for modern SaaS/AI apps",
5
5
  "keywords": [
6
6
  "blink",