rebranding work

This commit is contained in:
2026-05-25 21:53:01 -04:00
parent 89822dedb8
commit c01c1a5636
52 changed files with 3090 additions and 70 deletions

View File

@@ -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)