Changelog

Notable additions and SDK releases for the Yuva Bot API. All changes are backward compatible with v1.

2026-11-27 — Upload rules in /meta and /me#

  • Admin-set upload rules: The accepted file types, size caps, daily quota and keep time are now set by site admins in Yönetim → Dosyalar instead of being fixed. GET /meta returns them for a trusted member as uploads (UploadPolicy: extensions, maxMb, memberMaxMb, perTypeMb, ttlHours, dailyFiles, dailyMb), and GET /me returns the bot's own (null while untrusted). SDK types: UploadPolicy in yuva-bot and yuva_bot. The defaults match the earlier fixed limits; csv, json, 7z, gz, tar, msi and apk can now be opened.

2026-11-25 — Bot API v1.1 (yuva-bot 2.1.0, yuva_bot 0.3.0)#

  • Machine-readable error codes: Every error response now includes code, docs (https://yuva.chat/gelistirici#<code>), optional field, and retryAfter on 429.

  • Standard headers: Added X-Request-Id (echoed if valid [A-Za-z0-9_-]{1,64}), X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After on 429, and Allow on 405.

  • New endpoints: GET /meta (and GET /api/bot/v1), GET /openapi.json, GET /messages/{id}, DELETE /messages/{id}/reactions/{emoji}, DELETE /messages/{id}/pin, POST /channels/{id}/typing, and GET /lodges/{id}/members (limit 1–200, cursor / nextCursor).

  • Expanded GET /me: Also returns active token metadata (id, label, scopes, createdAt, expiresAt) and grants per lodge.

  • Idempotency: POST /channels/{id}/messages and POST /channels/{id}/files accept Idempotency-Key (24-hour deduplication). Both SDKs attach it automatically.

  • Scoped tokens: Up to 5 labelled tokens per bot with read, write, voice scopes and optional expiry (SCOPE_MISSING on 403).

  • Webhooks: Optional HTTPS event delivery with X-Yuva-Signature, 5-step backoff retries, SSRF protection, test button, and verifyWebhook / verify_webhook helpers in the SDKs.

  • Developer panel: Added token scopes, webhook config, 24h/7d usage metrics + last 50 requests, and an in-memory API test console.

2026-11-12 — LiveKit SFU voice (yuva-bot 2.0.0, yuva_bot 0.2.0)#

  • Added POST /lodges/{id}/voice/media and sfu: true voice handshake for LiveKit-backed lodges.

  • Added 409 VOICE_UPGRADE_REQUIRED when joining a LiveKit lodge without sfu: true.

2026-10-29 — Initial Bot API v1 (yuva-bot 1.0.0, yuva_bot 0.1.0)#

  • Initial release with token auth, lodges, channels, messages, file uploads, reactions, pins, /events, and mesh voice.