1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113 | ;; ardegazu-social-kit — friends, presence, invites and leaderboard receipts
;; for the ardegazu.ro suite. Everything rides the existing relay + mailbox;
;; there is no server and nothing here weakens the suite's sealing.
;;
;; The package root: one var per public symbol of the "." export, re-exported
;; by the :index module as dist/index.js. "./net" (the hub's standalone
;; libp2p node), "./join" (the dependency-free paste chip) and "./selftest"
;; are separate modules so game main chunks stay lean and the libp2p
;; peerDependency family stays optional.
(ns ardegazu.social.index
(:require [ardegazu.social.app-boot :as app-boot]
[ardegazu.social.canon :as canon]
[ardegazu.social.consts :as consts]
[ardegazu.social.envelope :as envelope]
[ardegazu.social.friends :as friends]
[ardegazu.social.gamelb :as gamelb]
[ardegazu.social.invites :as invites]
[ardegazu.social.lbgossip :as lbgossip]
[ardegazu.social.mailbox :as mailbox]
[ardegazu.social.notify :as notify]
[ardegazu.social.pair :as pair]
[ardegazu.social.presence :as presence]
[ardegazu.social.receipts :as receipts]
[ardegazu.social.selfsync :as selfsync]
[ardegazu.social.text :as text]))
;; consts
(def SOCIAL-SALT consts/SOCIAL-SALT)
(def SOC-BEACON-MS consts/SOC-BEACON-MS)
(def SOC-STALE-MS consts/SOC-STALE-MS)
(def ENV-DEFAULT-TTL-MS consts/ENV-DEFAULT-TTL-MS)
(def INVITE-TTL-MS consts/INVITE-TTL-MS)
(def SEEN-ENV-CAP consts/SEEN-ENV-CAP)
(def BLOCKED-CAP consts/BLOCKED-CAP)
(def PENDING-UI-CAP consts/PENDING-UI-CAP)
(def RECEIPTS-CAP consts/RECEIPTS-CAP)
(def AP2P-DESCRIPTOR-URL consts/AP2P-DESCRIPTOR-URL)
(def MAILBOX-URL-FALLBACK consts/MAILBOX-URL-FALLBACK)
(def MAILBOX-CREDS-URL-FALLBACK consts/MAILBOX-CREDS-URL-FALLBACK)
;; canon
(def canon canon/canon)
(def sha256 canon/sha256)
(def sha256-b64url canon/sha256-b64url)
(def hkdf-id canon/hkdf-id)
(def hkdf-aes-key canon/hkdf-aes-key)
;; mailbox
(def mailbox-endpoints mailbox/mailbox-endpoints)
(def MailboxAuth mailbox/MailboxAuth)
(def MailboxClient mailbox/MailboxClient)
(def mailbox-for mailbox/mailbox-for)
;; envelope
(def build-envelope envelope/build-envelope)
(def open-envelope envelope/open-envelope)
(def SeenRing envelope/SeenRing)
;; pair
(def pair-channel pair/pair-channel)
(def self-channel pair/self-channel)
(def inbox-room-id pair/inbox-room-id)
(def env-ctx pair/env-ctx)
;; friends
(def sanitize-friend friends/sanitize-friend)
(def FriendStore friends/FriendStore)
(def build-friend-link friends/build-friend-link)
(def parse-friend-link friends/parse-friend-link)
(def apply-friend-envelope friends/apply-friend-envelope)
;; selfsync
(def sanitize-profile-sync selfsync/sanitize-profile-sync)
(def fold-profile-sync selfsync/fold-profile-sync)
(def sanitize-apps-sync selfsync/sanitize-apps-sync)
(def fold-apps-sync selfsync/fold-apps-sync)
;; presence
(def SocialAgent presence/SocialAgent)
;; invites
(def SUITE-APPS invites/SUITE-APPS)
(def mint-room-url invites/mint-room-url)
;; notify
(def invite-toast notify/invite-toast)
;; text
(def en-text text/en-text)
(def mk-t text/mk-t)
;; receipts
(def MIN-SIGNERS receipts/MIN-SIGNERS)
(def room-hash receipts/room-hash)
(def receipt-hash receipts/receipt-hash)
(def sign-receipt receipts/sign-receipt)
(def verify-receipt receipts/verify-receipt)
(def iso-week receipts/iso-week)
(def lb-room-id receipts/lb-room-id)
(def lb-topic receipts/lb-topic)
(def deposit-receipt receipts/deposit-receipt)
(def fetch-weekly receipts/fetch-weekly)
(def ReceiptSet receipts/ReceiptSet)
(def aggregate receipts/aggregate)
;; gamelb
(def GameLb gamelb/GameLb)
;; lbgossip
(def start-lb-gossip lbgossip/start-lb-gossip)
;; app-boot
(def attach-social app-boot/attach-social)
|