;; ported-from: src/consts.ts @ v1.2.0
;;
;; The social layer's constants. One salt namespaces every cross-app HKDF
;; derivation (an app salt would fragment the social graph per app); the
;; suite-wide X25519 key that envelopes seal to comes from id-kit
;; (SUITE_SALT) — SOCIAL_SALT here is derivation-namespacing only.
(ns ardegazu.social.consts)
(def SOCIAL-SALT "ardegazu.ro/social/v1")
;; Presence beacons: relaxed vs chat rooms — the hub is an idle tab.
(def SOC-BEACON-MS 25000)
(def SOC-STALE-MS 75000)
;; Envelope defaults.
(def ENV-DEFAULT-TTL-MS (* 7 24 3600000)) ; friend requests
(def INVITE-TTL-MS 3600000) ; invites are perishable
;; Local storage caps.
(def SEEN-ENV-CAP 500)
(def BLOCKED-CAP 200)
(def PENDING-UI-CAP 20)
(def RECEIPTS-CAP 300)
;; Compiled-in fallbacks for the managed node's endpoints (descriptor wins).
(def AP2P-DESCRIPTOR-URL "https://signal.ardegazu.ro/.well-known/ap2p")
(def MAILBOX-URL-FALLBACK "https://signal.ardegazu.ro/mailbox/v1")
(def MAILBOX-CREDS-URL-FALLBACK "https://signal.ardegazu.ro/mailbox-credentials")