rebranding work
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
|
||||
## Dependencies
|
||||
|
||||
- `@shieldai/db`: Database schemas (exists)
|
||||
- `@kordant/db`: Database schemas (exists)
|
||||
- `libphonenumber-js`: Phone validation (already in package.json)
|
||||
- `ws`: WebSocket library (needs to be added to package.json)
|
||||
- Twilio/Plivo SDKs: For carrier integration (using direct HTTP)
|
||||
|
||||
@@ -11,7 +11,7 @@ Create a new `spam-rate-limit.middleware.ts` file that implements Redis-backed r
|
||||
|
||||
### Requirements
|
||||
The middleware should:
|
||||
1. Use the RedisService from `@shieldai/shared-notifications`
|
||||
1. Use the RedisService from `@kordant/shared-notifications`
|
||||
2. Implement per-minute AND daily rate limit tracking
|
||||
3. Check rate limits before processing spam classification requests
|
||||
4. Return appropriate HTTP 429 responses when limits are exceeded
|
||||
@@ -46,7 +46,7 @@ if (rateLimitCheck.exceeded) {
|
||||
|
||||
## Acceptance Criteria
|
||||
- [ ] Create `services/spamshield/src/middleware/spam-rate-limit.middleware.ts`
|
||||
- [ ] Import and use RedisService from `@shieldai/shared-notifications`
|
||||
- [ ] Import and use RedisService from `@kordant/shared-notifications`
|
||||
- [ ] Implement `checkLimit(userId, tier)` method returning rate limit status
|
||||
- [ ] Implement `incrementCounter(userId, tier)` method
|
||||
- [ ] Support per-minute and per-day limit tracking
|
||||
@@ -59,7 +59,7 @@ if (rateLimitCheck.exceeded) {
|
||||
|
||||
## Dependencies
|
||||
- FRE-4522 (spamshield.config.ts with rate limit structure)
|
||||
- `@shieldai/shared-notifications` (RedisService)
|
||||
- `@kordant/shared-notifications` (RedisService)
|
||||
|
||||
## Priority
|
||||
HIGH (Core middleware implementation)
|
||||
|
||||
@@ -119,7 +119,7 @@ Get current rate limit status for a user.
|
||||
## Dependencies
|
||||
- FRE-4522 (spamshield.config.ts with rate limit structure)
|
||||
- FRE-4523 (spam-rate-limit.middleware.ts)
|
||||
- `@shieldai/types` (for type definitions)
|
||||
- `@kordant/types` (for type definitions)
|
||||
|
||||
## Priority
|
||||
MEDIUM (Depends on middleware implementation)
|
||||
|
||||
@@ -52,7 +52,7 @@ This document describes how to integrate the waitlist email templates into the w
|
||||
In `packages/api/src/routes/waitlist.routes.ts`, after `prisma.waitlistEntry.create()` succeeds:
|
||||
|
||||
```typescript
|
||||
import { EmailService } from '@shieldai/shared-notifications';
|
||||
import { EmailService } from '@kordant/shared-notifications';
|
||||
|
||||
// Send confirmation immediately
|
||||
await EmailService.getInstance().sendWithTemplate(email, {
|
||||
|
||||
Reference in New Issue
Block a user