@ghostlytools/sdk 1.12.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +416 -30
- package/dist/core.js.map +1 -1
- package/dist/types/core/src/chatFiles.d.ts +16 -0
- package/dist/types/core/src/clipboardGuard.d.ts +5 -3
- package/dist/types/core/src/dhtDelivery.d.ts +18 -0
- package/dist/types/core/src/groupCalls.d.ts +56 -0
- package/dist/types/core/src/relay.d.ts +14 -1
- package/dist/types/core/src/viewerGuard.d.ts +10 -3
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -755,6 +755,13 @@ var READ_STARVED_MS = 6e4;
|
|
|
755
755
|
/** How long a read that let an older one go first waits before it asks again. */
|
|
756
756
|
var TURN_WAIT_MS = 1e3;
|
|
757
757
|
/**
|
|
758
|
+
* A background read the budget held back far down the turns asks again no later than this (`backgroundTurnIn`). The
|
|
759
|
+
* requests past the background share go to a read held back long (`READ_STARVED_MS`) that is there when one frees: asked
|
|
760
|
+
* only at its estimated turn, a web app with 200 chats away read each contact every 7 to 8 minutes, not every 6, and
|
|
761
|
+
* one with 100 left half the writes' share unused at 20 s.
|
|
762
|
+
*/
|
|
763
|
+
var BACKGROUND_TURN_MAX_MS = 15e3;
|
|
764
|
+
/**
|
|
758
765
|
* Once a group's read found a relay's minute full, the groups' reads there are spread over the minute for a minute
|
|
759
766
|
* (`GROUP_RATION_MS`): at most a sixth of it in any 10 s (5 on a relay of 30), the key read longest ago first. A sliding
|
|
760
767
|
* minute that demand keeps full hands out its requests in bursts: the minute is spent in 25 to 35 s as requests age
|
|
@@ -786,6 +793,12 @@ var FRESH_READ_MS = 500;
|
|
|
786
793
|
/** A relay that missed a key's newest packet gets it (`catchUpLater`) no sooner than this, and tries again this often. */
|
|
787
794
|
var CATCH_UP_MIN_MS = 1e3;
|
|
788
795
|
var CATCH_UP_RETRY_MS = 5e3;
|
|
796
|
+
/**
|
|
797
|
+
* The longest another background write is told to wait behind the packets queued for a relay (`catchUpLater`): the
|
|
798
|
+
* link and the DHT floor try again within a minute anyway, and longer kept a chat's upkeep off a relay with a long queue
|
|
799
|
+
* for most of the presence window.
|
|
800
|
+
*/
|
|
801
|
+
var CATCH_UP_BEHIND_MAX_MS = 6e4;
|
|
789
802
|
/** A catch-up put waits behind every link's request: a background write. A group edge's offer or answer goes as its own (`putEverywhere`). */
|
|
790
803
|
var CATCH_UP_ASKER = {
|
|
791
804
|
background: true,
|
|
@@ -1025,6 +1038,8 @@ var RelayTransport = class {
|
|
|
1025
1038
|
lastPut = /* @__PURE__ */ new Map();
|
|
1026
1039
|
/** Per relay and key, the newest packet that relay held back for its budget while another relay took it (`catchUpLater`). */
|
|
1027
1040
|
catchUp = /* @__PURE__ */ new Map();
|
|
1041
|
+
/** Per relay, how many packets wait in `catchUp` for it: background reads leave them their share (`heldFor`). */
|
|
1042
|
+
catchUpWaiting = /* @__PURE__ */ new Map();
|
|
1028
1043
|
catchUpTimer = null;
|
|
1029
1044
|
/**
|
|
1030
1045
|
* Per key whose reads the budget held back since its last read went out: when a request frees for it
|
|
@@ -1401,7 +1416,6 @@ var RelayTransport = class {
|
|
|
1401
1416
|
putEverywhere(pubKeyZ32, payload, timestamp, options, conflict) {
|
|
1402
1417
|
this.readAt.delete(pubKeyZ32);
|
|
1403
1418
|
this.missing.delete(pubKeyZ32);
|
|
1404
|
-
for (const relay of this.relays) this.catchUp.delete(`${relay} ${pubKeyZ32}`);
|
|
1405
1419
|
const waitingBefore = new Map(this.writeWaiting);
|
|
1406
1420
|
const writer = firstWriter(asker(options, true));
|
|
1407
1421
|
const noWriteWaits = () => {
|
|
@@ -1433,8 +1447,10 @@ var RelayTransport = class {
|
|
|
1433
1447
|
} catch (error) {
|
|
1434
1448
|
if (!isDiscoveryBudgetError(error) && !(error instanceof RelayLeftAloneError)) failed.add(relay);
|
|
1435
1449
|
nowhere[i] = isDiscoveryBudgetError(error) || error instanceof RelayLeftAloneError || error instanceof RelayNoAnswerError && !error.sent;
|
|
1450
|
+
if (this.catchUp.has(slot) && isDiscoveryBudgetError(error)) this.catchUpLater(relay, pubKeyZ32, payload, timestamp, asker(options, true));
|
|
1436
1451
|
throw error;
|
|
1437
1452
|
}
|
|
1453
|
+
if (response.ok && (this.catchUp.get(slot)?.timestamp ?? 0n) <= timestamp) this.dropCatchUp(relay, pubKeyZ32);
|
|
1438
1454
|
nowhere[i] = response.status >= 400 && response.status < 500;
|
|
1439
1455
|
if (response.status >= 500 || response.status === 428) failed.add(relay);
|
|
1440
1456
|
if (response.status === 409) conflict?.(relay);
|
|
@@ -1626,6 +1642,7 @@ var RelayTransport = class {
|
|
|
1626
1642
|
}
|
|
1627
1643
|
const resting = this.relays.every((r) => this.isCoolingDown(r, "GET") || this.breaker.blockedFor(r) > 0 || this.heldFor(r, who, Date.now(), pubKeyZ32) > 0);
|
|
1628
1644
|
const known = down ? this.newest.get(pubKeyZ32) : newerPacket(this.newest.get(pubKeyZ32), this.written.get(pubKeyZ32));
|
|
1645
|
+
if (!down && budgetWait < Infinity) budgetWait = Math.max(budgetWait, this.backgroundTurnIn(pubKeyZ32, who, Date.now()));
|
|
1629
1646
|
if (resting && known) {
|
|
1630
1647
|
if (down && !keptOnFailure) throw new RelaysFailedError(known);
|
|
1631
1648
|
if (!down && budgetWait < Infinity) this.heldBackUntil(pubKeyZ32, Date.now() + budgetWait);
|
|
@@ -1761,7 +1778,8 @@ var RelayTransport = class {
|
|
|
1761
1778
|
/**
|
|
1762
1779
|
* A relay whose budget (this client's, or its own rate limit) held a packet back that another relay took: it gets
|
|
1763
1780
|
* that packet when it frees a request, as a background write (`who`: a group edge's offer or answer as its own, also
|
|
1764
|
-
* after that relay failed it). Only the newest per key and relay
|
|
1781
|
+
* after that relay failed it). Only the newest per key and relay, until that relay takes this packet or a newer one (one
|
|
1782
|
+
* the budget holds there takes its place). Without this,
|
|
1765
1783
|
* that relay kept the key's older packet for good, and an app that restarted and read it first found a contact's offer
|
|
1766
1784
|
* long answered, answered it again, and waited on it (bug hunt r7a).
|
|
1767
1785
|
*/
|
|
@@ -1770,7 +1788,7 @@ var RelayTransport = class {
|
|
|
1770
1788
|
if ((this.lastPut.get(slot) ?? 0n) > timestamp) return;
|
|
1771
1789
|
const pending = this.catchUp.get(slot);
|
|
1772
1790
|
if (pending && pending.timestamp >= timestamp) return;
|
|
1773
|
-
this.
|
|
1791
|
+
this.keepCatchUp(slot, {
|
|
1774
1792
|
relay,
|
|
1775
1793
|
key,
|
|
1776
1794
|
payload,
|
|
@@ -1779,6 +1797,16 @@ var RelayTransport = class {
|
|
|
1779
1797
|
});
|
|
1780
1798
|
this.scheduleCatchUp(CATCH_UP_MIN_MS);
|
|
1781
1799
|
}
|
|
1800
|
+
keepCatchUp(slot, item) {
|
|
1801
|
+
if (!this.catchUp.has(slot)) this.catchUpWaiting.set(item.relay, (this.catchUpWaiting.get(item.relay) ?? 0) + 1);
|
|
1802
|
+
this.catchUp.set(slot, item);
|
|
1803
|
+
}
|
|
1804
|
+
dropCatchUp(relay, key) {
|
|
1805
|
+
if (!this.catchUp.delete(`${relay} ${key}`)) return;
|
|
1806
|
+
const left = (this.catchUpWaiting.get(relay) ?? 1) - 1;
|
|
1807
|
+
if (left > 0) this.catchUpWaiting.set(relay, left);
|
|
1808
|
+
else this.catchUpWaiting.delete(relay);
|
|
1809
|
+
}
|
|
1782
1810
|
scheduleCatchUp(inMs) {
|
|
1783
1811
|
if (this.catchUpTimer || this.catchUp.size === 0) return;
|
|
1784
1812
|
this.catchUpTimer = setTimeout(() => {
|
|
@@ -1791,21 +1819,25 @@ var RelayTransport = class {
|
|
|
1791
1819
|
for (const [slot, item] of [...this.catchUp]) {
|
|
1792
1820
|
if (this.catchUp.get(slot) !== item) continue;
|
|
1793
1821
|
const coolingDown = (this.networkCooldown.get(`PUT ${item.relay}`) ?? 0) - Date.now();
|
|
1794
|
-
const
|
|
1822
|
+
const who = {
|
|
1823
|
+
...item.who,
|
|
1824
|
+
catchUp: true
|
|
1825
|
+
};
|
|
1826
|
+
const wait = Math.max(this.heldFor(item.relay, who), this.rateLimitedFor(item.relay), this.breaker.blockedFor(item.relay), coolingDown);
|
|
1795
1827
|
if (wait > 0) {
|
|
1796
1828
|
next = Math.min(next, wait);
|
|
1797
1829
|
continue;
|
|
1798
1830
|
}
|
|
1799
|
-
this.
|
|
1831
|
+
this.dropCatchUp(item.relay, item.key);
|
|
1800
1832
|
try {
|
|
1801
|
-
const response = await this.put(item.relay, item.key, item.payload, void 0,
|
|
1833
|
+
const response = await this.put(item.relay, item.key, item.payload, void 0, who);
|
|
1802
1834
|
if ((response.status === 428 || response.status === 429) && !this.catchUp.has(slot)) {
|
|
1803
|
-
this.
|
|
1835
|
+
this.keepCatchUp(slot, item);
|
|
1804
1836
|
next = Math.min(next, CATCH_UP_RETRY_MS);
|
|
1805
1837
|
}
|
|
1806
1838
|
} catch (error) {
|
|
1807
1839
|
if (isDiscoveryBudgetError(error) && !this.catchUp.has(slot)) {
|
|
1808
|
-
this.
|
|
1840
|
+
this.keepCatchUp(slot, item);
|
|
1809
1841
|
next = Math.min(next, error.retryInMs);
|
|
1810
1842
|
}
|
|
1811
1843
|
}
|
|
@@ -1961,10 +1993,17 @@ var RelayTransport = class {
|
|
|
1961
1993
|
const groupOver = within$1(this.spentGroupOver.get(relay) ?? [], now, GROUP_OVER_PACE_MS);
|
|
1962
1994
|
this.spentGroupOver.set(relay, groupOver);
|
|
1963
1995
|
if (isGroupSignal(who) && !who.write && recent.length >= limit && groupOver.length > 0) wait = Math.max(wait, groupOver[groupOver.length - 1] + GROUP_OVER_PACE_MS - now);
|
|
1996
|
+
const backgroundShare = Math.min(this.backgroundPerMinute, Math.ceil(limit * 2 / 3));
|
|
1997
|
+
const writesShare = Math.max(1, Math.floor(backgroundShare * BACKGROUND_WRITES_SHARE));
|
|
1998
|
+
const caughtUp = this.catchUpWaiting.get(relay) ?? 0;
|
|
1999
|
+
if (who.background && !who.write && caughtUp) {
|
|
2000
|
+
const writesLeft = writesShare - recentBackgroundWrites.length;
|
|
2001
|
+
if (writesLeft > 0) wait = Math.max(wait, over(recent, Math.max(1, limit - writesLeft)), over(recentBackground, Math.max(1, backgroundShare - writesLeft)));
|
|
2002
|
+
}
|
|
2003
|
+
if (who.background && who.write && !who.catchUp && caughtUp) wait = Math.max(wait, Math.min(CATCH_UP_BEHIND_MAX_MS, Math.ceil(caughtUp * 6e4 / writesShare)));
|
|
1964
2004
|
if (who.background && !starved) {
|
|
1965
|
-
const backgroundShare = Math.min(this.backgroundPerMinute, Math.ceil(limit * 2 / 3));
|
|
1966
2005
|
wait = Math.max(wait, over(recentBackground, backgroundShare));
|
|
1967
|
-
if (who.write) wait = Math.max(wait, over(recentBackgroundWrites,
|
|
2006
|
+
if (who.write) wait = Math.max(wait, over(recentBackgroundWrites, writesShare));
|
|
1968
2007
|
const signaling = this.urgentAt + SIGNALING_WINDOW_MS - now;
|
|
1969
2008
|
if (signaling > 0 && !who.door) wait = Math.max(wait, Math.min(signaling, over(recentBackground, Math.min(this.backgroundWhileSignaling, Math.ceil(limit / 6)))));
|
|
1970
2009
|
}
|
|
@@ -2128,6 +2167,29 @@ var RelayTransport = class {
|
|
|
2128
2167
|
}
|
|
2129
2168
|
return false;
|
|
2130
2169
|
}
|
|
2170
|
+
/**
|
|
2171
|
+
* How long until a background read of `key` the budget held back is likely to have its turn: the background reads of
|
|
2172
|
+
* keys ahead of it in turn (read longer ago, still asking; `turnAhead`), one after the other at the relays' background
|
|
2173
|
+
* share. Told only when the budget frees the next request, every held key asked again then, and lost it to the key
|
|
2174
|
+
* whose turn it was: a daemon whose 50 contacts were away asked about 600 times a minute for some 50 reads, and one
|
|
2175
|
+
* with 200 three times as often after four hours as after 15 minutes (bug hunts, 2026-11-06 and 2026-11-14).
|
|
2176
|
+
*/
|
|
2177
|
+
backgroundTurnIn(key, who, now) {
|
|
2178
|
+
if (!who.background || !isTurnRead(who)) return 0;
|
|
2179
|
+
const mine = this.keyTurns.get(key);
|
|
2180
|
+
if (!mine) return 0;
|
|
2181
|
+
const since = (k) => this.heldBack.get(k)?.since ?? now;
|
|
2182
|
+
const mineSince = since(key);
|
|
2183
|
+
let ahead = 0, read = 0;
|
|
2184
|
+
for (const [other, turn] of this.keyTurns) {
|
|
2185
|
+
if (other !== key && turn.who.background && now - turn.servedAt < 6e4) read++;
|
|
2186
|
+
if (other === key || !turn.waiting || !turn.who.background || staleTurn(turn, now)) continue;
|
|
2187
|
+
if (turn.servedAt < mine.servedAt || turn.servedAt === mine.servedAt && (since(other) < mineSince || since(other) === mineSince && other < key)) ahead++;
|
|
2188
|
+
}
|
|
2189
|
+
if (ahead === 0) return 0;
|
|
2190
|
+
const perMinute = this.relays.reduce((sum, relay) => sum + Math.min(this.backgroundPerMinute, Math.ceil(this.limitOf(relay) * 2 / 3)), 0);
|
|
2191
|
+
return Math.min(BACKGROUND_TURN_MAX_MS, Math.ceil(ahead * 6e4 / Math.max(1, perMinute, read)));
|
|
2192
|
+
}
|
|
2131
2193
|
/** A 1:1 chat's read of `key` the budget has held back for `READ_STARVED_MS` without a break. */
|
|
2132
2194
|
starved(key, who, now) {
|
|
2133
2195
|
const since = this.heldBack.get(key)?.since;
|
|
@@ -8422,7 +8484,14 @@ var HttpClient = class {
|
|
|
8422
8484
|
* refuses `javascript:` URLs (its own Trusted Types default policy: one passes every other string on as it is);
|
|
8423
8485
|
* - refuses a declarative shadow root the page's script would make (`setHTMLUnsafe`, `Document.parseHTMLUnsafe`,
|
|
8424
8486
|
* `document.write`, a write split in two too): its `srcdoc` frames would be out of the guard's sight;
|
|
8425
|
-
* - listens for frames' loads again after `document.open()`, which takes every listener of the document away
|
|
8487
|
+
* - listens for frames' loads again after `document.open()`, which takes every listener of the document away;
|
|
8488
|
+
* - starts a worker made from a `blob:` URL of the page's own (`URL.createObjectURL` in that window) from a script of its
|
|
8489
|
+
* own that makes a pass-through Trusted Types `default` policy there first and then runs the page's (`importScripts`;
|
|
8490
|
+
* for a module worker, a static `import` of the policy's module, then of the page's): such a worker takes the page's
|
|
8491
|
+
* policy, Trusted Types included, and no guard runs in it to make one. A `SharedWorker` made twice from one blob gets
|
|
8492
|
+
* the same script, so it is the same worker; the page's revoke of the blob's URL drops the guard's own a minute later.
|
|
8493
|
+
* A `data:` worker, and a blob made in another window, in a worker or already revoked, run as they were. Once per
|
|
8494
|
+
* window, whichever guard runs first (`ghostlyWorkerGuard`, `CLIPBOARD_GUARD_SCRIPT` does the same).
|
|
8426
8495
|
* It uses nothing the page can change after it ran (the page's own code runs later, in the same realm).
|
|
8427
8496
|
*
|
|
8428
8497
|
* What a script put in the page cannot do, so where the viewer does not run it per document this is not a guarantee:
|
|
@@ -8545,12 +8614,71 @@ var VIEWER_GUARD_SCRIPT = `(function noWebRtc(w) {
|
|
|
8545
8614
|
return root;
|
|
8546
8615
|
};
|
|
8547
8616
|
}
|
|
8617
|
+
if (w.trustedTypes && w.URL && w.Blob && !describe(w, "ghostlyWorkerGuard")) {
|
|
8618
|
+
try {
|
|
8619
|
+
define(w, "ghostlyWorkerGuard", { value: true });
|
|
8620
|
+
const construct = Reflect.construct;
|
|
8621
|
+
const json = JSON.stringify;
|
|
8622
|
+
const later = w.setTimeout;
|
|
8623
|
+
const Blob = w.Blob;
|
|
8624
|
+
const sized = describe(Blob.prototype, "size").get;
|
|
8625
|
+
const make = w.URL.createObjectURL;
|
|
8626
|
+
const revoke = w.URL.revokeObjectURL;
|
|
8627
|
+
const policy = "if (self.trustedTypes && !self.trustedTypes.defaultPolicy) { try { self.trustedTypes.createPolicy('default', { createHTML: (s) => s, createScript: (s) => s, createScriptURL: (s) => s }); } catch (e) {} }";
|
|
8628
|
+
const script = (code) => apply(make, null, [new Blob([code], { type: "text/javascript" })]);
|
|
8629
|
+
const known = { __proto__: null };
|
|
8630
|
+
let first = null;
|
|
8631
|
+
w.URL.createObjectURL = function createObjectURL(object) {
|
|
8632
|
+
const made = apply(make, this, arguments);
|
|
8633
|
+
try { apply(sized, object, []); known[made] = { blob: object, inner: null, classic: null, module: null }; } catch (e) {}
|
|
8634
|
+
return made;
|
|
8635
|
+
};
|
|
8636
|
+
w.URL.revokeObjectURL = function revokeObjectURL(url) {
|
|
8637
|
+
try {
|
|
8638
|
+
const key = text(url);
|
|
8639
|
+
const entry = known[key];
|
|
8640
|
+
if (entry) {
|
|
8641
|
+
delete known[key];
|
|
8642
|
+
const ours = [entry.inner, entry.classic, entry.module];
|
|
8643
|
+
apply(later, w, [() => { for (let i = 0; i < 3; i++) { if (ours[i] !== null) apply(revoke, null, [ours[i]]); } }, 60000]);
|
|
8644
|
+
}
|
|
8645
|
+
} catch (e) {}
|
|
8646
|
+
return apply(revoke, this, arguments);
|
|
8647
|
+
};
|
|
8648
|
+
const start = (url, options) => {
|
|
8649
|
+
const entry = known[text(url)];
|
|
8650
|
+
if (!entry) return url;
|
|
8651
|
+
const kind = options && typeof options === "object" && options.type === "module" ? "module" : "classic";
|
|
8652
|
+
if (entry[kind] === null) {
|
|
8653
|
+
if (entry.inner === null) entry.inner = apply(make, null, [entry.blob]);
|
|
8654
|
+
if (kind === "module" && first === null) first = script(policy);
|
|
8655
|
+
entry[kind] = script(kind === "module" ? "import " + json(first) + "; import " + json(entry.inner) + ";" : policy + " importScripts(" + json(entry.inner) + ");");
|
|
8656
|
+
}
|
|
8657
|
+
return entry[kind];
|
|
8658
|
+
};
|
|
8659
|
+
for (const name of ["Worker", "SharedWorker"]) {
|
|
8660
|
+
const Real = w[name];
|
|
8661
|
+
if (typeof Real !== "function") continue;
|
|
8662
|
+
const started = function (url) {
|
|
8663
|
+
if (new.target === undefined) return apply(Real, this, arguments);
|
|
8664
|
+
const args = [];
|
|
8665
|
+
for (let i = 0; i < arguments.length; i++) args[i] = arguments[i];
|
|
8666
|
+
if (args.length > 0) { try { args[0] = start(url, args[1]); } catch (e) {} }
|
|
8667
|
+
return construct(Real, args, new.target);
|
|
8668
|
+
};
|
|
8669
|
+
define(started, "name", { value: name });
|
|
8670
|
+
started.prototype = Real.prototype;
|
|
8671
|
+
define(Real.prototype, "constructor", { value: started, writable: true, enumerable: false, configurable: true });
|
|
8672
|
+
w[name] = started;
|
|
8673
|
+
}
|
|
8674
|
+
} catch (e) {}
|
|
8675
|
+
}
|
|
8548
8676
|
apply(listen, home, ["load", sweep, true]);
|
|
8549
8677
|
watch(home, w.Document.prototype.querySelectorAll);
|
|
8550
8678
|
} catch (e) {}
|
|
8551
8679
|
})(window)`;
|
|
8552
8680
|
/** `VIEWER_GUARD_SCRIPT`'s hash, as a CSP source: a contact's own policy that would refuse it is given it (`allowingViewerGuard`). */
|
|
8553
|
-
var VIEWER_GUARD_HASH = "'sha256-
|
|
8681
|
+
var VIEWER_GUARD_HASH = "'sha256-DweV0mr/eyHFWESxtsRrzk0i6VjF4GSCokjozAiXkbQ='";
|
|
8554
8682
|
/**
|
|
8555
8683
|
* With the guard, where it is put in the page and not run by the viewer in every frame: frames only from the app's own
|
|
8556
8684
|
* origin (a `data:` or `blob:` frame would run before the guard could), and Trusted Types, which hands each
|
|
@@ -8792,7 +8920,9 @@ async function guardViewerAnswer(headers, body, destination, guards = [WEBRTC_GU
|
|
|
8792
8920
|
* this script first, a declarative shadow root the page's script would make is refused, and with `VIEWER_GUARD_CSP`
|
|
8793
8921
|
* a `javascript:` URL is refused (its own Trusted Types default policy; one passes every other string on as it is,
|
|
8794
8922
|
* or, once the page made its own `default` policy, to that one's rules: the page's `createPolicy("default")` gets the
|
|
8795
|
-
* guard's policy back with them, and the copy of itself it puts in a `srcdoc` frame skips them)
|
|
8923
|
+
* guard's policy back with them, and the copy of itself it puts in a `srcdoc` frame skips them);
|
|
8924
|
+
* - starts a worker made from a `blob:` URL of the page's own from a script that makes a pass-through Trusted Types
|
|
8925
|
+
* `default` policy in it first, as the WebRTC guard does (`VIEWER_GUARD_SCRIPT`, whichever of the two runs first).
|
|
8796
8926
|
* A frame's window keeps what was run in it on its first, empty page when the page it loads is of the same origin (the
|
|
8797
8927
|
* bridge's guard reaches the app's frame then): there this script only watches the new document. Each document it
|
|
8798
8928
|
* watches is marked (`ghostlyClipboardGuard`, fixed in place): the bridge reads that to know the guard ran in the page
|
|
@@ -8972,6 +9102,66 @@ var CLIPBOARD_GUARD_SCRIPT = `(function noClipboardWrites(w) {
|
|
|
8972
9102
|
};
|
|
8973
9103
|
} catch (e) {}
|
|
8974
9104
|
}
|
|
9105
|
+
if (types && w.URL && w.Blob && !describe(w, "ghostlyWorkerGuard")) {
|
|
9106
|
+
try {
|
|
9107
|
+
define(w, "ghostlyWorkerGuard", { value: true });
|
|
9108
|
+
const construct = w.Reflect.construct;
|
|
9109
|
+
const json = w.JSON.stringify;
|
|
9110
|
+
const later = w.setTimeout;
|
|
9111
|
+
const Blob = w.Blob;
|
|
9112
|
+
const sized = describe(Blob.prototype, "size").get;
|
|
9113
|
+
const make = w.URL.createObjectURL;
|
|
9114
|
+
const revoke = w.URL.revokeObjectURL;
|
|
9115
|
+
const policy = "if (self.trustedTypes && !self.trustedTypes.defaultPolicy) { try { self.trustedTypes.createPolicy('default', { createHTML: (s) => s, createScript: (s) => s, createScriptURL: (s) => s }); } catch (e) {} }";
|
|
9116
|
+
const script = (code) => apply(make, null, [new Blob([code], { type: "text/javascript" })]);
|
|
9117
|
+
const known = { __proto__: null };
|
|
9118
|
+
let first = null;
|
|
9119
|
+
w.URL.createObjectURL = function createObjectURL(object) {
|
|
9120
|
+
const made = apply(make, this, arguments);
|
|
9121
|
+
try { apply(sized, object, []); known[made] = { blob: object, inner: null, classic: null, module: null }; } catch (e) {}
|
|
9122
|
+
return made;
|
|
9123
|
+
};
|
|
9124
|
+
w.URL.revokeObjectURL = function revokeObjectURL(url) {
|
|
9125
|
+
try {
|
|
9126
|
+
const key = text(url);
|
|
9127
|
+
const entry = known[key];
|
|
9128
|
+
if (entry) {
|
|
9129
|
+
delete known[key];
|
|
9130
|
+
const ours = [entry.inner, entry.classic, entry.module];
|
|
9131
|
+
apply(later, w, [() => { for (let i = 0; i < 3; i++) { if (ours[i] !== null) apply(revoke, null, [ours[i]]); } }, 60000]);
|
|
9132
|
+
}
|
|
9133
|
+
} catch (e) {}
|
|
9134
|
+
return apply(revoke, this, arguments);
|
|
9135
|
+
};
|
|
9136
|
+
const start = (url, options) => {
|
|
9137
|
+
const entry = known[text(url)];
|
|
9138
|
+
if (!entry) return url;
|
|
9139
|
+
const kind = options && typeof options === "object" && options.type === "module" ? "module" : "classic";
|
|
9140
|
+
if (entry[kind] === null) {
|
|
9141
|
+
if (entry.inner === null) entry.inner = apply(make, null, [entry.blob]);
|
|
9142
|
+
if (kind === "module" && first === null) first = script(policy);
|
|
9143
|
+
entry[kind] = script(kind === "module" ? "import " + json(first) + "; import " + json(entry.inner) + ";" : policy + " importScripts(" + json(entry.inner) + ");");
|
|
9144
|
+
}
|
|
9145
|
+
return entry[kind];
|
|
9146
|
+
};
|
|
9147
|
+
const makers = ["Worker", "SharedWorker"];
|
|
9148
|
+
for (let i = 0; i < makers.length; i++) {
|
|
9149
|
+
const Real = w[makers[i]];
|
|
9150
|
+
if (typeof Real !== "function") continue;
|
|
9151
|
+
const started = function (url) {
|
|
9152
|
+
if (new.target === undefined) return apply(Real, this, arguments);
|
|
9153
|
+
const args = [];
|
|
9154
|
+
for (let j = 0; j < arguments.length; j++) args[j] = arguments[j];
|
|
9155
|
+
if (args.length > 0) { try { args[0] = start(url, args[1]); } catch (e) {} }
|
|
9156
|
+
return construct(Real, args, new.target);
|
|
9157
|
+
};
|
|
9158
|
+
define(started, "name", { value: makers[i] });
|
|
9159
|
+
started.prototype = Real.prototype;
|
|
9160
|
+
define(Real.prototype, "constructor", { value: started, writable: true, enumerable: false, configurable: true });
|
|
9161
|
+
w[makers[i]] = started;
|
|
9162
|
+
}
|
|
9163
|
+
} catch (e) {}
|
|
9164
|
+
}
|
|
8975
9165
|
const reopen = proto.open;
|
|
8976
9166
|
proto.open = function () {
|
|
8977
9167
|
const got = apply(reopen, this, arguments);
|
|
@@ -9037,7 +9227,7 @@ var CLIPBOARD_GUARD_SCRIPT = `(function noClipboardWrites(w) {
|
|
|
9037
9227
|
} catch (e) {}
|
|
9038
9228
|
})(window)`;
|
|
9039
9229
|
/** `CLIPBOARD_GUARD_SCRIPT`'s hash, as a CSP source: the bridge's policy and a contact's own are given it. */
|
|
9040
|
-
var CLIPBOARD_GUARD_HASH = "'sha256-
|
|
9230
|
+
var CLIPBOARD_GUARD_HASH = "'sha256-D8U3zSg1xP77RbZuV/DekRuM6nx80gIN5mh2TQAtZ40='";
|
|
9041
9231
|
// ../core/src/link.ts
|
|
9042
9232
|
/** What Ghostly Desktop uses against the DHT. */
|
|
9043
9233
|
var DHT_POLL_INTERVALS = {
|
|
@@ -13446,6 +13636,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
13446
13636
|
* one any more), not at the next keep-alive four minutes on. Any envelope that goes out replaces it.
|
|
13447
13637
|
*/
|
|
13448
13638
|
withdrawal;
|
|
13639
|
+
/** When the last withdrawal's envelope went (its `lastPublish`), for `withdrawalWaits`. */
|
|
13640
|
+
withdrewAt = -1;
|
|
13449
13641
|
/** The sequence of the last envelope of the contact that was past its expiry (traced once). */
|
|
13450
13642
|
expiredSeen = 0;
|
|
13451
13643
|
controlDue = 0;
|
|
@@ -13487,6 +13679,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
13487
13679
|
namedRev;
|
|
13488
13680
|
/** A reaction of this side waits to ride on an envelope, or the contact's reactions wait to be said taken. */
|
|
13489
13681
|
reactionsDue = false;
|
|
13682
|
+
/** The text on the floor whose envelope left the reactions no room (its id): they wait for the ones its backoff publishes. */
|
|
13683
|
+
crowdedBy;
|
|
13490
13684
|
constructor(options) {
|
|
13491
13685
|
this.options = options;
|
|
13492
13686
|
const { peerRejected: _peerRejected, ...state } = structuredClone(options.state ?? emptyDhtDeliveryState());
|
|
@@ -13906,23 +14100,25 @@ var DhtDelivery = class DhtDelivery {
|
|
|
13906
14100
|
if (edit !== void 0 && (reply !== void 0 || !ID$3.test(edit[0]) || !validEditNumber(edit[1]))) return "Invalid message.";
|
|
13907
14101
|
if (utf8Encode(text).length > 256) return DHT_TEXT_TOO_LONG;
|
|
13908
14102
|
if (/cashu[AB][A-Za-z0-9_-]+/i.test(text)) return "Payment tokens cannot be sent through DHT delivery.";
|
|
13909
|
-
const now = this.clock(), pending = this.state.pending;
|
|
13910
|
-
|
|
13911
|
-
if (pending?.message[0] === id && pending.expires > now && pending.attempts >= MAX_ATTEMPTS) return "DHT retry budget exhausted. Wait for expiry before retrying this message.";
|
|
13912
|
-
const next = pending?.message[0] === id && pending.expires > now ? pending : {
|
|
14103
|
+
const now = this.clock(), pending = this.state.pending, mine = pending?.message[0] === id && pending.expires > now ? pending : void 0;
|
|
14104
|
+
const next = mine ?? {
|
|
13913
14105
|
message: [
|
|
13914
14106
|
id,
|
|
13915
14107
|
timestamp,
|
|
13916
14108
|
text
|
|
13917
14109
|
],
|
|
13918
|
-
expires: now +
|
|
14110
|
+
expires: now + 3e5,
|
|
13919
14111
|
attempts: 0,
|
|
13920
14112
|
next: now,
|
|
13921
14113
|
...reply && { reply },
|
|
13922
14114
|
...edit && { edit }
|
|
13923
14115
|
};
|
|
13924
14116
|
const error = this.packetError(next.message, next.expires, next.reply, next.edit);
|
|
13925
|
-
|
|
14117
|
+
const tooBig = error && next.reply ? this.packetError(next.message, next.expires) : error;
|
|
14118
|
+
if (tooBig) return tooBig;
|
|
14119
|
+
if (pending && pending.expires > now && !mine) return "One DHT text can await a receipt at a time. Wait for its receipt or expiry before sending another.";
|
|
14120
|
+
if (mine && mine.attempts >= MAX_ATTEMPTS) return "DHT retry budget exhausted. Wait for expiry before retrying this message.";
|
|
14121
|
+
return null;
|
|
13926
14122
|
}
|
|
13927
14123
|
/**
|
|
13928
14124
|
* Measured, not built (`bodyFits`): the outbox asks it of every waiting text at each look, and a text that waits as no
|
|
@@ -13975,6 +14171,10 @@ var DhtDelivery = class DhtDelivery {
|
|
|
13975
14171
|
pending: next
|
|
13976
14172
|
});
|
|
13977
14173
|
this.changed();
|
|
14174
|
+
if (this.withdrawalWaits()) {
|
|
14175
|
+
this.schedule();
|
|
14176
|
+
return null;
|
|
14177
|
+
}
|
|
13978
14178
|
try {
|
|
13979
14179
|
await this.publish(true);
|
|
13980
14180
|
this.schedule();
|
|
@@ -14078,6 +14278,10 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14078
14278
|
pending: next
|
|
14079
14279
|
});
|
|
14080
14280
|
this.changed();
|
|
14281
|
+
if (this.withdrawalWaits()) {
|
|
14282
|
+
this.schedule();
|
|
14283
|
+
return null;
|
|
14284
|
+
}
|
|
14081
14285
|
try {
|
|
14082
14286
|
await this.publish(true);
|
|
14083
14287
|
} catch (error) {
|
|
@@ -14101,6 +14305,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14101
14305
|
* one's place on the relays, so a contact who looks later finds no text. Resolves once the state without it is saved;
|
|
14102
14306
|
* the new envelope goes after. One that does not go (no relay reachable) is tried again within seconds (`withdrawal`):
|
|
14103
14307
|
* a reader takes the withdrawn envelope until its expiry and the clock skew allowed past it (`DHT_EXPIRY_SKEW_MS`).
|
|
14308
|
+
* It goes at once, spacing or not: the deleted text is out of reach from then on. The text that takes the floor next
|
|
14309
|
+
* waits out the spacing instead (`withdrawalWaits`).
|
|
14104
14310
|
*/
|
|
14105
14311
|
async withdraw(wireId) {
|
|
14106
14312
|
const expires = await this.serialize(async () => {
|
|
@@ -14122,9 +14328,19 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14122
14328
|
try {
|
|
14123
14329
|
await this.publish(true);
|
|
14124
14330
|
} catch {}
|
|
14331
|
+
this.withdrewAt = this.lastPublish;
|
|
14125
14332
|
this.schedule();
|
|
14126
14333
|
});
|
|
14127
14334
|
}
|
|
14335
|
+
/**
|
|
14336
|
+
* The last envelope was a withdrawal's, inside the publication spacing: the text that takes the floor now goes once
|
|
14337
|
+
* the spacing allows (`schedule`), not in an envelope of its own at once. Deleted then, it never went, so it costs
|
|
14338
|
+
* no withdrawal: deleting 10 texts queued for an away contact one after the other, each one's withdrawal and the next
|
|
14339
|
+
* text's envelope put 10 envelopes on every relay in under 2 s, each replaced a moment later (bug hunt, 2026-11-15).
|
|
14340
|
+
*/
|
|
14341
|
+
withdrawalWaits() {
|
|
14342
|
+
return this.withdrewAt === this.lastPublish && this.clock() - this.lastPublish < 4e3;
|
|
14343
|
+
}
|
|
14128
14344
|
/** The id of what awaits its receipt on the floor now, if anything does. */
|
|
14129
14345
|
get pendingId() {
|
|
14130
14346
|
const now = this.clock(), pending = this.state.pending;
|
|
@@ -14159,6 +14375,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14159
14375
|
async announceReactions() {
|
|
14160
14376
|
if (!this.options.reactions?.().length) return;
|
|
14161
14377
|
this.reactionsDue = true;
|
|
14378
|
+
this.crowdedBy = void 0;
|
|
14162
14379
|
await this.serialize(async () => {
|
|
14163
14380
|
try {
|
|
14164
14381
|
await this.publish();
|
|
@@ -14242,7 +14459,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14242
14459
|
const reseal = this.resealDue;
|
|
14243
14460
|
const withdrawal = this.withdrawal && this.withdrawal.until > now && this.withdrawal.attempts < MAX_ATTEMPTS ? this.withdrawal : void 0;
|
|
14244
14461
|
if (!withdrawal) this.withdrawal = void 0;
|
|
14245
|
-
const keepAlive = !force && (!pending || pending.next > now) && !receiptDue && !this.
|
|
14462
|
+
const keepAlive = !force && (!pending || pending.next > now) && !receiptDue && !this.reactionsPress && !reseal && !(withdrawal && withdrawal.next <= now);
|
|
14246
14463
|
if (keepAlive && (this.controlDue > now || this.state.inviteTaken)) return;
|
|
14247
14464
|
const expires = pending?.expires ?? now - 12e4 + CONTROL_TTL;
|
|
14248
14465
|
const issued = Math.min(now, Math.max(now - DHT_ISSUED_BACK_MS, expires - (pending ? DHT_MESSAGE_TTL : CONTROL_TTL), (pending?.message[1] ?? 0) - 3e4));
|
|
@@ -14257,10 +14474,16 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14257
14474
|
}, void 0, void 0);
|
|
14258
14475
|
throw held;
|
|
14259
14476
|
}
|
|
14477
|
+
if (withdrawal) this.withdrawal = {
|
|
14478
|
+
...withdrawal,
|
|
14479
|
+
attempts: withdrawal.attempts + 1,
|
|
14480
|
+
next: now + backoff(withdrawal.attempts)
|
|
14481
|
+
};
|
|
14260
14482
|
const fittedEnvelope = this.fitted(this.sequence + 1, issued, expires, pending?.message ?? null, receipt?.id ?? null, pending?.reply, pending?.edit, pending?.forwarded, pending?.file);
|
|
14261
14483
|
const { body, reactions } = fittedEnvelope;
|
|
14262
14484
|
const reactionsWereDue = this.reactionsDue;
|
|
14263
14485
|
this.reactionsDue = !reactions && !!this.options.reactions?.().length;
|
|
14486
|
+
this.crowdedBy = this.reactionsDue && pending ? pending.message[0] : void 0;
|
|
14264
14487
|
const sequence = body[1];
|
|
14265
14488
|
await this.persist({
|
|
14266
14489
|
...this.state,
|
|
@@ -14292,11 +14515,6 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14292
14515
|
...records[0]?.label === "_dr" && { ratchet: true }
|
|
14293
14516
|
});
|
|
14294
14517
|
if (pending) this.lastPublished = DhtDelivery.facts(body, records, identity.pubKeyZ32);
|
|
14295
|
-
if (withdrawal) this.withdrawal = {
|
|
14296
|
-
...withdrawal,
|
|
14297
|
-
attempts: withdrawal.attempts + 1,
|
|
14298
|
-
next: now + backoff(withdrawal.attempts)
|
|
14299
|
-
};
|
|
14300
14518
|
try {
|
|
14301
14519
|
await this.options.transport.publish(identity, records, options);
|
|
14302
14520
|
} catch (error) {
|
|
@@ -14319,6 +14537,14 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14319
14537
|
return this.unsealedOut && !!this.options.credentials.peerKey;
|
|
14320
14538
|
}
|
|
14321
14539
|
/**
|
|
14540
|
+
* Reactions due (`reactionsDue`) that force an envelope of their own: not while the text that left them no room
|
|
14541
|
+
* (`crowdedBy`) is still retried, or each publication spends one of its attempts 4 s apart instead of at its backoff.
|
|
14542
|
+
*/
|
|
14543
|
+
get reactionsPress() {
|
|
14544
|
+
const pending = this.state.pending, now = Date.now();
|
|
14545
|
+
return this.reactionsDue && !(pending && pending.message[0] === this.crowdedBy && pending.expires > now && pending.attempts < MAX_ATTEMPTS);
|
|
14546
|
+
}
|
|
14547
|
+
/**
|
|
14322
14548
|
* The relays' request budget held the envelope back: nothing went out, so it was no attempt (a text keeps its eight),
|
|
14323
14549
|
* and what it carried (a text, a receipt, a new mode) goes the moment the budget frees a request: the text and the
|
|
14324
14550
|
* receipt as they were before, and no publication before then (`budgetUntil`) but a forced one.
|
|
@@ -14556,7 +14782,10 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14556
14782
|
const theirs = this.options.reaction ? readDhtReactions(reactions) : [];
|
|
14557
14783
|
for (const reaction of theirs) await this.options.reaction?.(reaction);
|
|
14558
14784
|
const newest = theirs.reduce((max, r) => Math.max(max, r.n), 0);
|
|
14559
|
-
if (theirs.length)
|
|
14785
|
+
if (theirs.length) {
|
|
14786
|
+
this.reactionsDue = true;
|
|
14787
|
+
this.crowdedBy = void 0;
|
|
14788
|
+
}
|
|
14560
14789
|
const confirmed = receipt && this.state.pending?.message[0] === receipt ? receipt : this.state.confirmed;
|
|
14561
14790
|
if (mode !== this.state.peerMode) traceLink(this.from, "dht-peer-mode", { peerMode: mode });
|
|
14562
14791
|
if (peerPinned !== this.state.peerPinned) traceLink(this.from, "dht-peer-pinned", { peerPinned });
|
|
@@ -14776,11 +15005,13 @@ var DhtDelivery = class DhtDelivery {
|
|
|
14776
15005
|
if (!this.running || this.ticking) return;
|
|
14777
15006
|
if (this.timer) clearTimeout(this.timer);
|
|
14778
15007
|
const held = this.budgetUntil - this.clock();
|
|
14779
|
-
const due = this.
|
|
15008
|
+
const due = this.reactionsPress || this.resealDue && !this.errors.publish ? Math.max(0, this.lastPublish + 4e3 - Date.now(), held) : Infinity;
|
|
14780
15009
|
const withdrawal = this.withdrawal, now = Date.now();
|
|
14781
15010
|
const retry = withdrawal && withdrawal.until > now && withdrawal.attempts < MAX_ATTEMPTS ? Math.max(0, withdrawal.next - now, this.lastPublish + 4e3 - now, held) : Infinity;
|
|
15011
|
+
const pending = this.state.pending;
|
|
15012
|
+
const waiting = pending && pending.attempts === 0 && pending.expires > now ? Math.max(0, this.lastPublish + 4e3 - now, held) : Infinity;
|
|
14782
15013
|
const readHeld = this.readHeldUntil > 0 ? Math.max(1e3, this.readHeldUntil - Date.now()) : Infinity;
|
|
14783
|
-
this.timer = setTimeout(() => void this.tick(), Math.min(held > 0 ? Math.min(this.pollMs, held) : this.pollMs, due, retry, readHeld));
|
|
15014
|
+
this.timer = setTimeout(() => void this.tick(), Math.min(held > 0 ? Math.min(this.pollMs, held) : this.pollMs, due, retry, waiting, readHeld));
|
|
14784
15015
|
}
|
|
14785
15016
|
};
|
|
14786
15017
|
var DHT_TEXT_REFUSED = "Your contact's app does not accept text over the DHT. It is sent when you are live.";
|
|
@@ -19293,6 +19524,11 @@ var ChatFiles = class {
|
|
|
19293
19524
|
/** Files that stopped sending for the chat's window alone: they go on once another's bytes are confirmed. */
|
|
19294
19525
|
held = /* @__PURE__ */ new Set();
|
|
19295
19526
|
/**
|
|
19527
|
+
* The entries not ended (`track`): what is still to come or under way is read from these, not from every file the
|
|
19528
|
+
* chat ever had, which it keeps for good. An offer read all of them, in every chat, at 100,000 files about 10 ms each.
|
|
19529
|
+
*/
|
|
19530
|
+
unended = /* @__PURE__ */ new Set();
|
|
19531
|
+
/**
|
|
19296
19532
|
* Files this side cancelled while no session carried the cancel (`pf-abort`), said on the next one. The session also
|
|
19297
19533
|
* goes for a moment when a move swaps it (its capabilities are agreed again): unsaid, the receiver showed the file
|
|
19298
19534
|
* moving, its bytes kept, until its idle nudge asked 30 s later.
|
|
@@ -19344,7 +19580,10 @@ var ChatFiles = class {
|
|
|
19344
19580
|
checkpointed: record.confirmed,
|
|
19345
19581
|
writing: Promise.resolve()
|
|
19346
19582
|
};
|
|
19583
|
+
const replaced = this.entries.get(key(record.direction, record.id));
|
|
19584
|
+
if (replaced) this.unended.delete(replaced);
|
|
19347
19585
|
this.entries.set(key(record.direction, record.id), entry);
|
|
19586
|
+
this.track(entry);
|
|
19348
19587
|
}
|
|
19349
19588
|
}
|
|
19350
19589
|
get live() {
|
|
@@ -19357,6 +19596,23 @@ var ChatFiles = class {
|
|
|
19357
19596
|
records() {
|
|
19358
19597
|
return [...this.entries.values()].map((e) => ({ ...e.record }));
|
|
19359
19598
|
}
|
|
19599
|
+
/** Bytes still to come of the files taken here, not ended (one still asked about is not taken yet). */
|
|
19600
|
+
stillToCome() {
|
|
19601
|
+
let due = 0;
|
|
19602
|
+
for (const { record } of this.unended) if (record.direction === "in" && record.state !== "asking" && !transferEnded(record)) due += Math.max(0, record.file.size - record.confirmed);
|
|
19603
|
+
return due;
|
|
19604
|
+
}
|
|
19605
|
+
/** A transfer under way: offered, moving, or being checked. */
|
|
19606
|
+
underWay() {
|
|
19607
|
+
for (const { record } of this.unended) if (record.state === "offered" || record.state === "active" || record.state === "verifying") return true;
|
|
19608
|
+
return false;
|
|
19609
|
+
}
|
|
19610
|
+
/** Bytes of the files received here that were taken without asking and are kept (or on their way). */
|
|
19611
|
+
takenUnasked() {
|
|
19612
|
+
let taken = 0;
|
|
19613
|
+
for (const { record } of this.entries.values()) if (record.direction === "in" && !record.consented && record.state !== "asking" && record.state !== "failed" && record.state !== "declined" && record.state !== "cancelled") taken += record.file.size;
|
|
19614
|
+
return taken;
|
|
19615
|
+
}
|
|
19360
19616
|
get(direction, id) {
|
|
19361
19617
|
const record = this.entries.get(key(direction, id))?.record;
|
|
19362
19618
|
return record && { ...record };
|
|
@@ -19374,8 +19630,17 @@ var ChatFiles = class {
|
|
|
19374
19630
|
return entry.in && !transferEnded(entry.record) ? Math.max(entry.in.stored, entry.record.confirmed) : entry.record.confirmed;
|
|
19375
19631
|
}
|
|
19376
19632
|
changed(entry, progress = false) {
|
|
19633
|
+
this.track(entry);
|
|
19377
19634
|
this.host.changed({ ...entry.record }, this.moved(entry), progress);
|
|
19378
19635
|
}
|
|
19636
|
+
/**
|
|
19637
|
+
* Keeps `unended` to the entries of this chat not ended. Each change of a record's state is reported (`changed`),
|
|
19638
|
+
* so that is where a file that ended leaves it, and one taken or sent again comes back.
|
|
19639
|
+
*/
|
|
19640
|
+
track(entry) {
|
|
19641
|
+
if (!transferEnded(entry.record) && this.entries.get(key(entry.record.direction, entry.record.id)) === entry) this.unended.add(entry);
|
|
19642
|
+
else this.unended.delete(entry);
|
|
19643
|
+
}
|
|
19379
19644
|
send(frame) {
|
|
19380
19645
|
return this.attached && this.host.send(frame);
|
|
19381
19646
|
}
|
|
@@ -20361,6 +20626,7 @@ var ChatFiles = class {
|
|
|
20361
20626
|
const entry = this.entries.get(key("in", id));
|
|
20362
20627
|
if (!entry || transferEnded(entry.record)) return;
|
|
20363
20628
|
this.entries.delete(key("in", id));
|
|
20629
|
+
this.unended.delete(entry);
|
|
20364
20630
|
const incoming = entry.in;
|
|
20365
20631
|
entry.record.state = "failed";
|
|
20366
20632
|
clearTimeout(incoming.timer);
|
|
@@ -20497,6 +20763,7 @@ var ChatFiles = class {
|
|
|
20497
20763
|
if (!entry) return;
|
|
20498
20764
|
if (!transferEnded(entry.record)) this.cancel(direction, id);
|
|
20499
20765
|
this.entries.delete(key(direction, id));
|
|
20766
|
+
this.unended.delete(entry);
|
|
20500
20767
|
}
|
|
20501
20768
|
};
|
|
20502
20769
|
// ../core/src/pairedCalls.ts
|
|
@@ -40574,6 +40841,125 @@ function verifyGroupCallRequest(raw, sfu, now, seen) {
|
|
|
40574
40841
|
}
|
|
40575
40842
|
};
|
|
40576
40843
|
}
|
|
40844
|
+
/**
|
|
40845
|
+
* An admin's request to act on a member in its group's call (WISP 602 · Group Calls § Moderation): what it sends to
|
|
40846
|
+
* `POST <sfu>/sfu/group-moderate`, signed by its group key over the node's origin as a token request is, under its own
|
|
40847
|
+
* tag, so neither request can stand for the other.
|
|
40848
|
+
*
|
|
40849
|
+
* {"v":1,"g":"<group>","k":"<admin key>","room":"g_<group>","act":"mute","target":"<member key>","src":["microphone"],
|
|
40850
|
+
* "ts":1794700800,"n":"<nonce>","sig":"…"}
|
|
40851
|
+
*
|
|
40852
|
+
* `mute` takes `src` away from `target`, `allow` gives it back, `remove` takes `target` out of the call and keeps it
|
|
40853
|
+
* out, `unban` lets it back in, and `state` changes nothing (the reply says who is muted and banned). Whether `k` is
|
|
40854
|
+
* the group's admin is the node's to say, from its roster.
|
|
40855
|
+
*/
|
|
40856
|
+
/** What an admin can take from a member, in the sorted order a request lists them in. */
|
|
40857
|
+
var GROUP_CALL_SOURCES = [
|
|
40858
|
+
"camera",
|
|
40859
|
+
"microphone",
|
|
40860
|
+
"screen_share"
|
|
40861
|
+
];
|
|
40862
|
+
var GROUP_CALL_MODERATION_ACTS = [
|
|
40863
|
+
"mute",
|
|
40864
|
+
"allow",
|
|
40865
|
+
"remove",
|
|
40866
|
+
"unban",
|
|
40867
|
+
"state"
|
|
40868
|
+
];
|
|
40869
|
+
var takesSources = (act) => act === "mute" || act === "allow";
|
|
40870
|
+
/** Exactly the bytes an admin signs: the array form, as the token request's. */
|
|
40871
|
+
var groupCallModerationBytes = (sfu, g, room, k, act, target, src, ts, n) => utf8Encode(JSON.stringify([
|
|
40872
|
+
"ghostly-sfu/1 moderate",
|
|
40873
|
+
sfu,
|
|
40874
|
+
g,
|
|
40875
|
+
room,
|
|
40876
|
+
k,
|
|
40877
|
+
act,
|
|
40878
|
+
target,
|
|
40879
|
+
src,
|
|
40880
|
+
ts,
|
|
40881
|
+
n
|
|
40882
|
+
]));
|
|
40883
|
+
/** A moderation request for `sfu`, signed by the admin's group key `seed`; `src` is listed unique and sorted. */
|
|
40884
|
+
function signGroupCallModeration(input, seed) {
|
|
40885
|
+
const k = identityFromSeed(seed).pubKeyZ32;
|
|
40886
|
+
const room = groupCallRoom(input.g);
|
|
40887
|
+
const target = input.act === "state" ? "" : input.target ?? "";
|
|
40888
|
+
const src = takesSources(input.act) ? [...new Set(input.src ?? [])].sort() : [];
|
|
40889
|
+
const ts = input.ts ?? Math.floor(Date.now() / 1e3);
|
|
40890
|
+
const n = input.n ?? toBase64Url(randomBytes(16));
|
|
40891
|
+
const sig = toBase64Url(sign(groupCallModerationBytes(input.sfu, input.g, room, k, input.act, target, src, ts, n), seed));
|
|
40892
|
+
return {
|
|
40893
|
+
v: 1,
|
|
40894
|
+
g: input.g,
|
|
40895
|
+
k,
|
|
40896
|
+
room,
|
|
40897
|
+
act: input.act,
|
|
40898
|
+
target,
|
|
40899
|
+
src,
|
|
40900
|
+
ts,
|
|
40901
|
+
n,
|
|
40902
|
+
sig
|
|
40903
|
+
};
|
|
40904
|
+
}
|
|
40905
|
+
/** `src` as an act takes it: unique known sources in sorted order, at least one, for `mute` and `allow`; none otherwise. */
|
|
40906
|
+
function sourcesFit(act, src) {
|
|
40907
|
+
if (!Array.isArray(src)) return false;
|
|
40908
|
+
if (!takesSources(act)) return src.length === 0;
|
|
40909
|
+
return src.length > 0 && src.every((s, i) => GROUP_CALL_SOURCES.includes(s) && (i === 0 || src[i - 1] < s));
|
|
40910
|
+
}
|
|
40911
|
+
/**
|
|
40912
|
+
* The node's checks of a moderation request but the roster, in order: the shape (a known act, a `target` that is a
|
|
40913
|
+
* member key other than `k`, or `""` for `state`, and `src` as the act takes it), the time within `GROUP_CALL_SKEW_S`
|
|
40914
|
+
* of `now` (ms), a nonce not in `seen`, and the signature over the node's own origin `sfu`. A request that passes has
|
|
40915
|
+
* its nonce added to `seen`; entries older than `GROUP_CALL_NONCE_S` are dropped on the way.
|
|
40916
|
+
*/
|
|
40917
|
+
function verifyGroupCallModeration(raw, sfu, now, seen) {
|
|
40918
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {
|
|
40919
|
+
ok: false,
|
|
40920
|
+
reason: "malformed"
|
|
40921
|
+
};
|
|
40922
|
+
const f = raw;
|
|
40923
|
+
const act = f.act;
|
|
40924
|
+
if (f.v !== 1 || typeof f.g !== "string" || !GROUP_ID.test(f.g) || !isZ32Key(f.k) || f.room !== groupCallRoom(f.g) || !GROUP_CALL_MODERATION_ACTS.includes(act) || (act === "state" ? f.target !== "" : !isZ32Key(f.target) || f.target === f.k) || !sourcesFit(act, f.src) || !Number.isSafeInteger(f.ts) || f.ts <= 0 || typeof f.n !== "string" || !NONCE.test(f.n) || toBase64Url(fromBase64Url(f.n)) !== f.n || typeof f.sig !== "string" || !SIG.test(f.sig)) return {
|
|
40925
|
+
ok: false,
|
|
40926
|
+
reason: "malformed"
|
|
40927
|
+
};
|
|
40928
|
+
const room = groupCallRoom(f.g), target = f.target, src = f.src, ts = f.ts, nowS = Math.floor(now / 1e3);
|
|
40929
|
+
if (Math.abs(nowS - ts) > 60) return {
|
|
40930
|
+
ok: false,
|
|
40931
|
+
reason: "stale"
|
|
40932
|
+
};
|
|
40933
|
+
for (const [n, at] of seen) if (nowS - at > 120) seen.delete(n);
|
|
40934
|
+
if (seen.has(f.n)) return {
|
|
40935
|
+
ok: false,
|
|
40936
|
+
reason: "replayed"
|
|
40937
|
+
};
|
|
40938
|
+
let holds = false;
|
|
40939
|
+
try {
|
|
40940
|
+
holds = verify(fromBase64Url(f.sig), groupCallModerationBytes(sfu, f.g, room, f.k, act, target, src, ts, f.n), publicKeyFromZ32(f.k));
|
|
40941
|
+
} catch {}
|
|
40942
|
+
if (!holds) return {
|
|
40943
|
+
ok: false,
|
|
40944
|
+
reason: "signature"
|
|
40945
|
+
};
|
|
40946
|
+
seen.set(f.n, nowS);
|
|
40947
|
+
return {
|
|
40948
|
+
ok: true,
|
|
40949
|
+
request: {
|
|
40950
|
+
v: 1,
|
|
40951
|
+
g: f.g,
|
|
40952
|
+
k: f.k,
|
|
40953
|
+
room,
|
|
40954
|
+
act,
|
|
40955
|
+
target,
|
|
40956
|
+
src: [...src],
|
|
40957
|
+
ts,
|
|
40958
|
+
n: f.n,
|
|
40959
|
+
sig: f.sig
|
|
40960
|
+
}
|
|
40961
|
+
};
|
|
40962
|
+
}
|
|
40577
40963
|
// ../core/src/groupTyping.ts
|
|
40578
40964
|
/**
|
|
40579
40965
|
* The typing indicator of a private group (WISP 902 · Group Mesh § Typing): "Ana is typing", said on the group's
|
|
@@ -41996,6 +42382,6 @@ function x401ApprovalDigest(subject) {
|
|
|
41996
42382
|
]);
|
|
41997
42383
|
return toBase64Url(sha256(utf8Encode(canonical)));
|
|
41998
42384
|
}
|
|
41999
|
-
export { ACTIVE_DHT_POLL_MS, ACTIVE_TASK_STATUSES, ANSWERS_REFUSED_PAUSES, ANSWERS_REFUSED_PAUSE_MS, ANSWER_READ_ALLOWANCE, ANSWER_READ_FIRST_MS, ANSWER_READ_SPACING_MS, ANSWER_REFUSED_REDIALS, APPS_CAPABILITY, APP_BUNDLE_LIMITS, APP_BUNDLE_MAGIC, APP_CLIENTS, APP_CLIENT_NAME, APP_DATA_MAX_BYTES, APP_FORBIDDEN_KEYS, APP_FRAME, APP_ICON_PATH, APP_NAME, APP_PEER_OPEN_MAX, APP_PERMISSIONS, APP_PREFIXES, APP_RANGES_CAPABILITY, APP_RANGE_DATA_KIND, APP_RANGE_ERRORS, APP_RANGE_FRAMES, APP_RANGE_LIMITS, APP_RATE_LIMIT, APP_RATE_WINDOW_MS, APP_RESUME_GRACE_MS, APP_SCREENSHOTS_DIR, APP_SEND_LIMIT, APP_STATEMENT_LIMITS, APP_STORE_KINDS, APP_STORE_LIMITS, APP_VERSION_MAX, APP_VIEWS, ATPROTO_DECLARED_SCOPE, ATPROTO_FULL_SCOPE, ATPROTO_PROOF_COLLECTION, ATPROTO_PROOF_SCOPE, AUDIO_METADATA_LIMITS, AUTOMATIC_ORDER, AWAITED_READS, AWAITING_PEER_MS, AppRanges, AppSessions, AtprotoCid, AtprotoProofError, BACKGROUND_REQUESTS_PER_MINUTE, BACKGROUND_WHILE_SIGNALING, BACKGROUND_WRITES_SHARE, BIP322_REVISION, BITCOIN_NETWORKS, BLOCKED_DIAL_WAIT_MS, BOLT11_PATTERN, BREAKER_ALL_DOWN_PROBE_MS, BREAKER_BASE_MS, BREAKER_MAX_MS, BREAKER_THRESHOLD, BURST_RING_MS, BUTTONS_CAPABILITY, BUTTON_ID, BUTTON_STYLES, BitcoinAddressError, ByteReader, CALLS_CAPABILITY, CALL_RATE_WINDOW_MS, CALL_RECEIVE_LIMIT, CALL_SIGNAL_FUTURE_MS, CALL_SIGNAL_MAX_AGE_MS, CAPS_ISSUED_BACK_MS, CAPS_LABEL, CAPS_LIMITS, CAPS_PUBLISH_SPACING_MS, CAPS_REFRESH_MS, CARRIED_DEFER_MS, CATCH_UP_PAUSE_MS, CATCH_UP_SLICE, CHAT_RESERVE, CHAT_RESERVE_MOST_SHARE, CHAT_RESERVE_PER_CHAT, CHAT_WATCH_SHARE, CHUNK_FLAG_END, CHUNK_KIND, CLIPBOARD_GUARD_HASH, CLIPBOARD_GUARD_SCRIPT, CLOCK_EVIDENCE_MS, CLOCK_OFF_MS, CLOCK_PEERS, CLOCK_PEER_READ_GAP_MS, CLOCK_SERVERS, COMMUNITY_EDIT_FRAME, COMMUNITY_LIMITS, COMMUNITY_PIN_FRAME, COMMUNITY_PROFILE, COMMUNITY_REACTION_FRAME, COMMUNITY_TAKEOVER_META_MS, COMMUNITY_TOPOLOGY, CONNECT_TIMEOUT_MS, CONTACT_ASKER_FRAME, CONTACT_LINK_BYTES, CONTACT_LINK_VERSION, CONTACT_RECORD_TTL, CRON_LINE, CROSSED_FRESH_MS, CROSSED_PROBE_MS, CROSSED_WAIT_MS, CapsExchange, CapsKeys, CapsRefusedError, CarriedTransport, CatchUpAnswers, ChatFiles, ClockWatch, CommunitySession, ContactRequestError, DAEMON_WATCH_PEER_IDLE_MS, DATA_CHANNEL_ID, DATA_CHANNEL_LABEL, DATA_SETTLE_MS, DEFAULT_RELAYS, DEMOTE_AFTER_FAILURES, DEMOTE_MS, DEPARTED_READS, DEPARTED_READ_MS, DEVICES_CAPABILITY, DEVICE_CAPABILITIES, DEVICE_ECHO_FRAME, DEVICE_INVITE_BYTES, DEVICE_INVITE_LIFETIME_S, DEVICE_INVITE_OWN_DEVICE, DEVICE_INVITE_VERSION, DEVICE_KINDS, DEVICE_PING_FRAME, DEVICE_WAKE_TTL_SECONDS, DHT_FILE_CAPABILITY, DHT_FILE_REFUSED, DHT_FILE_TOO_LARGE, DHT_MESSAGE_TTL, DHT_PIN_GRACE_MS, DHT_POLL_INTERVALS, DHT_TEXT_BYTES, DHT_TEXT_CAPABILITY, DHT_TEXT_REFUSED, DIALED_IN_CONTENDERS, DID_DHT_MAX_PAYLOAD, DID_DHT_PREFIX, DID_DHT_TTL, DID_DHT_VERSION, DID_DOCUMENT_MAX_BYTES, DID_FILE_MAX_BYTES, DID_GHOSTLY_SERVICE, DID_JWS_ALGS, DID_JWS_MAX_LENGTH, DID_MAX_LENGTH, DID_METHODS, DIRECT_EVIDENCE_MS, DIRECT_OWN_ATTEMPTS, DIRECT_PEERS, DNS_LABEL, DNS_TYPE, DOMAIN_FILE_MAX_BYTES, DOMAIN_MAX_RECORDS, DOMAIN_METHODS, DOMAIN_TXT_MAX_BYTES, DataLink, DhtDelivery, DidDhtError, DidError, DirectPathWatch, DiscoveryBudgetError, EARLY_DIAL_JOIN_MS, EDITED_FRAME, EDIT_BUFFER_MAX, EDIT_BUFFER_MS, EDIT_CAPABILITY, EDIT_FRAME, EDIT_RATE_WINDOW_MS, EDIT_RECEIVE_LIMIT, EDIT_SEND_LIMIT, ENDPOINT, ENGINE_ERRORS, ENROLL_CANCEL, ENROLL_CANCEL_REASONS, ENROLL_CAPABILITY, ENROLL_DONE, ENROLL_GRANT, ENROLL_HELLO, ENROLL_PROOF, ETHEREUM_USDT, EVM_TEST_CHAINS, EXPECT_PEER_MS, EngineError, FILES_BINARY_CAPABILITY, FILES_CAPABILITY, FILE_DATA_KIND, FILE_FRAMES, FILE_LIMITS, FIRST_PAIRING_PACE_MS, FIRST_PUBLISH_MAX_MS, FLOOD_PER_DAY, FOLLOW_MS, FORWARD_LIMITS, FRESH_READ_MS, FileTransfers, FileUplink, GATHER_ATTEMPTS, GATHER_STALL_MS, GROUP_ADMIN_OFF_ERROR, GROUP_BURST_MS, GROUP_BURST_ONE_LINK, GROUP_CALL_NONCE_S, GROUP_CALL_SKEW_S, GROUP_CALL_VERSION, GROUP_EDIT_FRAME, GROUP_EDIT_TEXT_BYTES, GROUP_ENTRY_PROFILE, GROUP_FILE_LIMITS, GROUP_HAVE_FRAME, GROUP_ID, GROUP_LIMITS, GROUP_MEMBER_CAP, GROUP_META_PAST, GROUP_META_PAST_CHARS, GROUP_OVER_PACE_MS, GROUP_PIN_FRAME, GROUP_PROFILE, GROUP_RATION_WINDOW_MS, GROUP_REACTED_FRAME, GROUP_REACTION_FRAME, GROUP_READ_NOTE, GROUP_READ_NOTE_COMMUNITY, GROUP_SIGNALING_ALLOWANCE_SHARE, GROUP_SIGNAL_FRAME, GROUP_TAKEOVER_META_MS, GROUP_TYPING_FRAME, GROUP_VERSION_FILES, GROUP_VERSION_HUBS, GROUP_VERSION_LARGE, GROUP_VERSION_SIGNALS, GROUP_WAKE_FRAME, GROUP_WAKE_GROUP_LIMIT, GROUP_WAKE_GROUP_WINDOW_MS, GROUP_WAKE_MEMBER_INTERVAL_MS, GROUP_WAKE_RECEIVE_LIMIT, GROUP_WANT_FRAME, GROUP_WANT_NO_FRAME, GhostLink, GhostlyHttpError, GroupSession, GroupTypingBoard, GroupWakeLimiter, HANDLED_WAIT_MS, HANDOFF_ACK, HANDOFF_ATTEMPTS, HANDOFF_BUSY, HANDOFF_BUSY_REASONS, HANDOFF_CANCEL, HANDOFF_CANCEL_REASONS, HANDOFF_CAPABILITY, HANDOFF_DATA, HANDOFF_DONE, HANDOFF_FILE_MISSING, HANDOFF_FILE_REQUEST, HANDOFF_HAVE, HANDOFF_HELLO, HANDOFF_LATER_BYTES, HANDOFF_LIST_PER_FRAME, HANDOFF_MANIFEST, HANDOFF_OFFER, HANDOFF_PAKE, HANDOFF_PIECE_BYTES, HANDOFF_PIECE_OVERHEAD, HANDOFF_RELEASE, HANDOFF_REQUEST, HANDOFF_TIMINGS, HANDOFF_VERIFIED, HANDOFF_VERSION, HANDOFF_WINDOW, HEDGE_MISSING_MS, HEDGE_MS, HOLD_CAPABILITY, HOLD_DATED_BACK_MS, HOLD_LIMITS, HTTP_SERVICE_PROTO, HoldKeys, HoldRefusedError, HttpClient, HttpHost, IDENTITY_CHALLENGE_WINDOW, IDENTITY_CHECK_UNAVAILABLE, IDENTITY_CLOCK_SKEW, IDENTITY_FRAME_LIMIT, IDENTITY_FRAME_WINDOW_MS, IDENTITY_MAX_CHECKS_PER_HOUR, IDENTITY_MAX_EVIDENCE, IDENTITY_MAX_FRAME, IDENTITY_MAX_RECEIVED, IDENTITY_MAX_VALIDITY, IDENTITY_MEMO_IDLE_MS, IDENTITY_MEMO_MAX, IDENTITY_MEMO_SIZE, IDENTITY_PROOF_CAPABILITY, IDENTITY_PROVIDER_ID, IDENTITY_REUSE_CHECK_S, IDENTITY_REVOCATION_LABEL, IDENTITY_STATEMENT_PREFIX, IDENTITY_SUBJECT, IDENTITY_TIMELINE_MAX, IDLE_THRESHOLD, IMAGE_LIMITS, INVITER_DIAL_GRACE_MS, INVITE_HRP, INVITE_LINK_ORIGIN, INVITE_MAX_LENGTH, INVITE_TAKEN, INVITE_VERSION, ITEM_STATES, IdentityCheckUnavailable, IdentityExchange, KNOCK_SLOTS, KNOCK_SLOT_LABEL, KNOCK_TTL_MS, KNOWN_SESSION_CAPABILITIES, LABEL, LATE_ANSWER_MS, LEGACY_GROUP_MEMBERS, LEGACY_SERVICES, LIGHTNING_DESTINATION_PATTERN, LIMITS, LINK_MAX_CHARS, LINK_PREVIEW_LIMITS, LINK_RECORD_LABEL, LINK_TRAILING, LIVENESS_MISSED_PINGS, LIVENESS_PING_MS, LIVE_POLL_MS, LNURL_LIMITS, LinkSession, MAX_AVATAR_LENGTH, MAX_AVATAR_SIDE, MAX_CHUNK_PAYLOAD_BYTES, MAX_DHT_TEXT_BYTES, MAX_DNS_PACKET_BYTES, MAX_DONE, MAX_EDITS_PER_MESSAGE, MAX_GROUP_CALL_NAME, MAX_GROUP_CALL_SFU, MAX_GROUP_CHAIN, MAX_GROUP_MEMBERS, MAX_GROUP_META_BODY, MAX_GROUP_NAME_BYTES, MAX_GROUP_NAME_LENGTH, MAX_GROUP_PICTURE_LENGTH, MAX_KNOCKS, MAX_MISSED, MAX_MSGS_PAYLOAD_B64, MAX_NICK_LENGTH, MAX_PAIRED_CALL_SIGNAL, MAX_PAIRED_MESSAGE_FRAME, MAX_REMOVAL_NUMBER, MAX_SEEN, MAX_SERVICES, MAX_SHARED_APPS, MAX_SKIP, MAX_SKIPPED_KEYS, MAX_SLOT_KNOCKS, MAX_WAITING, MEMBER_KEY, MENTION_EVERYONE, MENTION_LIMITS, MESH_HUBS, MESSAGE_CLOCK_SKEW_MS, MESSAGE_RECEIVE_LIMITS, MessageRefusal, NEW_PER_HOUR, NIP05_PATH, NO_ATTEMPTS, NO_AUDIO_METADATA, NO_HUB_POLICY, NO_PICTURE_METADATA, NO_VIDEO_METADATA, OFFER_FAST_MS, OFFER_HOST_GATHER_MS, OFFER_LOOK_MS, OFFER_STEP_MAX, ONCHAIN_PROVIDER, OWN_FRAME_LIMIT, OwnInviteError, PAIRED_CALL_CANDIDATES, PAIRED_CALL_FRAME, PAIRED_FRAME_TOO_LARGE, PAIRED_PROFILE, PAIRED_REPLY_AUTHORS, PAIRING_ATTEMPT_MS, PAIRING_RETRY_MS, PICTURE_METADATA_LIMITS, PINNED_FRAME, PIN_CAPABILITY, PIN_CLOCK_SKEW_MS, PIN_FRAME, PIN_LIMITS, PKARR_FUTURE_SKEW_MS, PLAYABLE_AUDIO, PLAYABLE_VIDEO, PONG_WAIT_MS, PRESENCES, PRESENCE_HEARTBEAT, PRESENCE_WINDOW, PREVIEWABLE_IMAGE, PREVIOUS_DEFAULT_RELAYS, PROOF_ADAPTERS, PROOF_CAPABILITY, PROTOCOL_VERSION, PR_CHECKS, PR_STATES, PUBKY_PROOF_MAX_BYTES, PUBKY_PROOF_ROOT, PUSH_PAD_BYTES, PUSH_SERVICE_HOSTS, PacketTooLargeError, PairedCalls, PairedSession, PairingTracker, PaymentPreflightError, PeerProofs, PublishFailedError, QUICK_REACTIONS, QUICK_REDIAL_MS, RACE_ANSWERED_MS, RACE_DIRECT_MS, RACE_RELAYED_MS, RATCHET_CAPABILITY, RATCHET_HEADER_BYTES, RATCHET_KEEP_MS, RATCHET_OVERHEAD, REACTED_FRAME, REACTIONS_CAPABILITY, REACTION_FRAME, REACTION_LIMITS, REANSWERS, RECORDING_TYPES, RECORD_TTL, REDESCRIBED_GRACE_MS, RELAYED_FIRST_MS, RELAY_PAYLOAD_MAX_BYTES, RELAY_POLL_INTERVALS, RELAY_REQUESTS_PER_MINUTE, RELAY_URL, RELAY_WITH_SECRETS, REMOVABLE_KINDS, REMOVED_TEXT, REOPEN_BELOW, REPLY_ID, REPLY_LIMITS, REQUESTS_PER_MINUTE, REQUEST_CLOCK_SKEW_MS, REQUEST_LABEL, REQUEST_LIFETIME_MS, REQUEST_NAME_UNITS, REQUEST_PACKET_BYTES, REQUEST_TEXT_BYTES, RESUME_WAIT_MS, RING_LIFETIME, ROUTINE_STATES, RTC_CONFIG, RTC_SIGNAL_FUTURE_MS, RTC_SIGNAL_MAX_AGE_MS, RTC_SIGNAL_RATE_WINDOW_MS, RTC_SIGNAL_RECEIVE_LIMIT, RTC_UNSTARTED_MS, RUN_RESULTS, RatchetBox, RateWindow, ReactionWindow, RelayBreaker, RelayTransport, RelaysFailedError, SAID_AGAIN, SEPOLIA_TEST_USDT, SEPOLIA_TEST_USDT_FAUCET, SERVICES_CAPABILITY, SERVICES_VERSION, SESSION_CAPABILITIES_FRAME, SESSION_FRAME_MAX, SESSION_RECEIVE_PENDING, SET_ACK, SET_UPDATE, SIGNALING_ALLOWANCE_SHARE, SIGNALING_WINDOW_MS, SIGNALS_PER_MINUTE, SIGNAL_CARRIERS, SIGNAL_DUE_READS, SIGNAL_FRESH_MS, SIGNAL_HOLD_MS, SIGNAL_OUT_READS, SIGNAL_PROVEN_MS, SIGNAL_REPLY_MS, SLOW_DEMOTE_MS, SLOW_MS, SPARK_NETWORKS, SPARK_PROVIDER, SSHSIG_MAX_ARMOR, SSHSIG_NAMESPACE, SSH_KEY_TYPES, SSH_PUBLIC_KEY_MAX, STALLED_EVIDENCE_MS, STALLED_LOOK_MS, STAMP_BITS_DEFAULT, STAMP_BITS_MAX, STAMP_BITS_MIN, STATUS_AVAILABILITIES, STATUS_CAPABILITY, STATUS_CARD_CAPABILITY, STATUS_CARD_LIMITS, STATUS_FRAME, STATUS_IDLE_AFTER_MS, STATUS_RATE_LIMIT, STATUS_RATE_WINDOW_MS, STATUS_SEND_INTERVAL_MS, STATUS_TEXT_MAX, STORAGE_LIFETIME, STORAGE_ROOT, SWITCH_RETIRE_MS, SessionCapabilities, SshSigError, StatusReceiver, StatusSender, TASK_STATUSES, TEST_USDT_FAUCET_AMOUNT, TOMBSTONE_SEQUENCE, TOMBSTONE_TURN, TRANSPORTS, TRANSPORTS_GONE_MS, TURN_BODY_BYTES, TURN_LABEL, TURN_LAST_SEQUENCE, TURN_MAX, TURN_NAME_BYTES, TURN_NO_ACTIVE, TURN_PUT_WINDOW_MS, TURN_RAISE_READ_TIMEOUT_MS, TURN_REV_LIMIT, TURN_SEALED_BYTES, TURN_SETTLE_MS, TURN_SIGNED_BYTES, TURN_SLOTS, TURN_SOURCE_TIMEOUT_MS, TURN_TTL, TURN_VERSION, TURN_VISIBLE_MS, TYPING_CAPABILITY, TYPING_FRAME, TYPING_KINDS, TYPING_RATE_LIMIT, TYPING_RATE_WINDOW_MS, TYPING_REFRESH_MS, TYPING_SEND_LIMIT, TYPING_STATUS_MAX, TYPING_TIMEOUT_MS, TurnRecordError, TypingReceiver, TypingSender, UNPROVEN_AUTH_MS, UNUSED_INVITE_READS_PER_MINUTE, UNUSED_INVITE_UPKEEP_MS, UNUSED_INVITE_WAIT_MAX_MS, UPGRADE_CAPABILITY, USDT_PUBLIC_RPC, VIDEO_LIMITS, VIDEO_METADATA_LIMITS, VIEWER_DROPPED_DIRECTIVES, VIEWER_DROPPED_HEADERS, VIEWER_GUARD_CSP, VIEWER_GUARD_HASH, VIEWER_GUARD_SCRIPT, VIEWER_PERMISSIONS_POLICY, VIEWER_SERVICE_CSP, VIEWER_SERVICE_CSP_RELAY_ONLY, VIEWER_WORKER_GUARD_CSP, VOICE_LIMITS, VOICE_METER, WAKE_ANSWER_GRACE_MS, WAKE_CALL_INTERVAL_MS, WAKE_CALL_TTL_SECONDS, WAKE_CALL_WAIT_MS, WAKE_SESSION_CAPABILITY as WAKE_CAPABILITY, WAKE_SESSION_CAPABILITY, WAKE_FRAME, WAKE_INTERVAL_MS, WAKE_LOST_MS, WAKE_ONLINE_BATCH, WAKE_ONLINE_BATCH_MS, WAKE_ONLINE_DELAY_MS, WAKE_ONLINE_INTERVAL_MS, WAKE_ONLINE_TTL_SECONDS, WAKE_RETRY_MS, WAKE_SUBJECT, WAKE_TTL_SECONDS, WALLET_NETWORKS, WATCH_PEER_MS, WATCH_SHARE, WAY_BACK_SHARE, WEBRTC_GUARD, WELL_KNOWN_PATH, WRITE_FIRST_MS, WakeLimiter, WebPushError, X401_CREDENTIAL_LIMITS, X401_DCQL_LIMITS, X401_HEADERS, X401_LIMITS, X401_PROTOCOLS, X401_REQUEST_LIMITS, X401_RESPONSE_MODES, X401_SCHEME, X401_VERSION, addedAppPermissions, allowingViewerGuard, answersOffer, appCardId, appCardUrl, appCloseFrame, appDataBytes, appDataFrame, appDigest, appFingerprint, appOpenFrame, appRangeCancelFrame, appRangeChunk, appRangeDataFrame, appRangeEndFrame, appRangeErrorFrame, appRangeGetFrame, appRef, appRefPublisher, appRevocationFor, appRevocationId, appSignedBytes, appStoreDecision, appUpdateDecision, appViewOf, applyIdentityEvent, arkAddressPrefix, arrivalKey, asWritten, assembleAppBundle, assertTokenUnits, assertWholeSats, atprotoCidFor, atprotoDidMethod, atprotoProofRecord, atprotoProofRkey, audioMetadataPatches, automaticTransport, baseMime, beaconKeys, beaconRecords, bip322MessageHash, bip322ToSign, bip322ToSpend, boundIdentityDisplay, boundVerifiedIdentity, budgetRetryMs, buildAppBundle, buildDataSdp, buildLinkRecords, buildSdpFromSignal, buildX401ProofRequest, buildX401ProofResult, buildX401ResultArtifact, buildX401TokenObject, buttonLabelClash, bytesEqual, callRtcConfig, callSignalHeardAt, canonicalJson, canonicalJsonBytes, canonicalUrl, capsDescriptors, cardEditNumber, cardLine, cardLinkHost, cardTimeUtc, cardUrl, carryMentions, cashuRequestPayload, chainPieces, chatAppId, checkAppBeforeRun, checkAppListing, checkAppManifest, checkAppRevokeStatement, checkAppStoreIndex, checkAtprotoProofRecord, checkDidJws, checkDidSignature, checkPushEndpoint, checkStatusCard, checkedDescriptors, claimedTime, classifyTurnRead, clearMissed, clockOffset, commitHash, commitUntaggedHash, communityCommitHash, communityEditFrame, communityGroupId, communityHasFrame, communityMessageAuthor, communityMessageId, communityRoster, communityUntaggedHash, compactSize, compareVersions, compressSdp, concatBytes, confirmationMatches, confirmationTag, contactAskerFrame, contactAskerHolds, contactDay, contactRtcConfig, countUnusedInvite, createChatInvite, createContactLink, createDeviceInvite, createIdentity, createLink, createRelayPayload, currentRelays, decodeAnyBitcoinAddress, decodeAppRangeData, decodeAtprotoCommit, decodeBase64, decodeBitcoinAddress, decodeBolt11, decodeChunk, decodeCommunityLink, decodeControl, decodeDagCbor, decodeDidDhtPacket, decodeDnsAnswers, decodeDnsResponse, decodeFileData, decodeGroupEntryLink, decodeInviteCode, decodeServices, decodeSvcbRecords, decodeTx, decodeTxtPacket, decodeWitness, decodeX401Header, decompressSdp, decrypt, decryptPushPayload, decryptText, derivedSecret, deviceEchoFrame, deviceEchoNonce, deviceFrameCapability, deviceInviteJoinerKeyZ32, deviceInviteJoinerParams, deviceKeyZ32, deviceLinkPairing, deviceLinkParams, deviceLinkRendezvousSeed, deviceLinkSealKey, deviceLinkSecret, devicePingFrame, deviceWakeRequest, dhtEditId, dhtFileElements, dhtFileId, dialDescriptors, dialableIrohRelay, didDhtDocument, didDhtFromPublicKey, didDhtKey, didDhtRecords, didGhostlyServiceEntry, didJwsAlg, didSignedMessages, didWebDocumentUrl, didWebFile, didWebFileNames, didWebFileUrl, didWebHost, directBlocked, dnsProofName, domainTxtRecord, domainWellKnownFile, doorHubs, downsamplePeaks, dropLoneJoiners, edgeParams, editFrame, editedFrame, emptyCapsState, emptyDhtDeliveryState, emptyIdentityLedger, emptyLinkRecords, emptyProofLedger, emptyRatchetState, encodeAppRangeData, encodeChunk, encodeCommunityLink, encodeContactLink, encodeControl, encodeDagCbor, encodeDeviceInvite, encodeDidDhtDeactivated, encodeDidDhtPacket, encodeDnsQuery, encodeFileData, encodeGhostlyInvite, encodeGroupEntryLink, encodeGroupMetaBody, encodeInviteCode, encodePacketTransports, encodeServices, encodeSetSlots, encodeSvcbPacket, encodeTurnFields, encodeTx, encodeTxtPacket, encodeWitness, encodeX401Header, encrypt, encryptPushPayload, encryptText, endedRequests, engineError, engineText, enrollCancelFrame, enrollCancelReason, enrollDigits, enrollDoneFrame, enrollGrantFrame, enrollHelloFrame, enrollMessage, enrollProofFrame, entryParams, epochKeys, exifOrientation, expectedRoster, extractParamsFromSdp, extractRtcParams, fedimintRequestPayload, fetchLnurlJson, fetchesByItself, fileMessageText, filePartDigest, filePartName, findAppForbiddenKey, findBolt11, findEndpoint, findInMst, findLightningDestination, firstDeviceSetSecret, formatEnrollDigits, formatFileSize, formatLocalTarget, formatPaymentAmount, formatVideoDuration, formatVoiceDuration, forwardedAgain, forwardedMany, frameBytes, freshHubs, fromBase64, fromBase64Url, fromZ32, generateEncryptionKey, generateVapidKeys, groupCallE2ee, groupCallKey, groupCallRequestBytes, groupCallRoom, groupCallSfu, groupDisplayName, groupEntryUrl, groupFileFallback, groupMessageId, groupMetaBody, groupMetaChange, groupMetaNewer, groupMetaPicture, groupMetaTag, groupMetaToHand, groupName, groupReplyAuthor, groupSignalFrame, groupTypingEpoch, groupWakeFrame, groupWakes, guardViewerAnswer, handoffAckFrame, handoffAttemptAllowed, handoffAttemptFailed, handoffAttemptSucceeded, handoffBusyFrame, handoffCancelFrame, handoffContext, handoffContextProof, handoffDataFrame, handoffDigest, handoffDoneFrame, handoffEphemeral, handoffFileMissingFrame, handoffFileRequestFrame, handoffHaveFrames, handoffHelloFrame, handoffManifestFrames, handoffOfferFrame, handoffPakeFrame, handoffReleaseFrame, handoffRequestFrame, handoffRetryAfter, handoffStreamKey, handoffVerifiedFrame, handoffVerifiedMessage, handoffVersions, hasVisible, hash160, heardCallSignal, heardTime, heldBackError, homeserverWebEndpoint, hubRank, identityFromSeed, identityFromSeedB64, identityPresentationBytes, identityRefusal, identityRevocationValue, identityStatement, identityStatementText, imageSize, importedProof, inboxRecord, inviteLink, inviteOwnership, inviteQrSegments, inviteQrText, invoiceCallbackUrl, irohDescriptor, irohRelayUrl, isAppHash, isAppKey, isAppLicense, isAppLine, isAppPath, isAppRef, isAppSignature, isAppUrl, isAppVersion, isAsf, isAtprotoDid, isBitcoinAddress, isCandidateAddress, isChatAppId, isDiscoveryBudgetError, isEmptyLinkPacket, isFederationId, isGlobalIpv4Host, isGroupMessageId, isHandoffPartName, isHoldUrl, isIdentityBinding, isImageMime, isLegacySignature, isNewerVersion, isPlayableAudioType, isPlayableVideoType, isProofAdapter, isPubkyKey, isPubkyProofFolder, isPublicAddress, isRatcheted, isServeId, isSparkAddress, isStrippedPicture, isValidServiceId, isVideoMime, isViewerTag, isWalletNetwork, isX401Protocol, isZ32Key, jpegSize, jwkThumbprint, keepPastGroupMeta, keepsToRelays, keptAtEqualSequence, knockHolds, knockIdentity, knockRecords, knockSlotIdentity, knockSlotOf, knockSlotRecords, lastSharedWithMe, leaveStands, leaveStatement, leaveStatement3, leftStatement, legacyMessageHash, linkEnd, linkRecords, linkStop, linkTail, linksIn, liveStatus, lobbyKeys, lobbyRecords, makeStamp, makeStampPaced, matchX401Dcql, mayBeHub, mayPin, measureRecords, memberAdmissions, mentionedMembers, mentionsBytes, mentionsMember, mergeBeacon, mergeContactKnocks, mergeKnocks, mergeLobby, meshHubs, meshMessageRef, meshRendezvous, newDeviceSetSecret, newEpochSecret, newHandoffId, newMailbox as newHoldMailbox, newIdentityBinding, newInbox, newPubkyProofFolder, newWakeToken, newX401HolderKey, newerHead, newerPacket, nextGroupMetaRevision, nextPinNumber, nextReactionNumber, nextTurnPosition, nip05RootKey, normalizeAtprotoHandle, normalizeDid, normalizeDomain, normalizePubkyKey, normalizeRelayUrl, nostrProofTemplate, offerIsFresh, openDidDhtPayload, openGroupMeta, openGroupTyping, openHandoffPiece, openPair, openRelayPayload, openRequest, openSecret, openTurnValue, ownInviteRefusal, pacer, pairedEditFits, pairedMessageFits, pairedMessageFrame, pairedReplyAuthor, parseAppFrame, parseAppRangeFrame, parseAtprotoCar, parseAtprotoDidDocument, parseAtprotoDidKey, parseAtprotoVerificationKey, parseCallSignal, parseCashuRequestPayload, parseCommunityEdit, parseDid, parseDidDocument, parseDidJws, parseDidSignaturePaste, parseDomainTxt, parseEditFrame, parseEditedFrame, parseEngineError, parseFedimintRequestPayload, parseGroupCommit, parseGroupMetaBody, parseGroupMetaFrame, parseGroupMetaStatement, parseGroupMetaTag, parseGroupWakeFrame, parseHubPolicy, parseImageMeta, parseInvoiceCallback, parseLightningDestination, parseLinkPreview, parseLinkRecords, parseLocalTarget, parsePacketTransports, parsePairedCallFrame, parsePayParams, parsePaymentAmount, parsePaymentNetworks, parsePinFrame, parsePinnedFrame, parseReactedFrame, parseReactionFrame, parseRelayPayload, parseRtcSignal, parseSessionCapabilities, parseSshPublicKey, parseSshSignature, parseStatusFrame, parseTypingActivity, parseTypingFrame, parseVideoMeta, parseVoiceMeta, parseWakeFrame, pastedAgain, paymentUri, peekDhtMailbox, personStatus, pickCallCandidates, pickHubs, pickMeshHubs, pinFrame, pinIsNewer, pinNumberHolds, pinnedFrame, plainStatusLine, planAppUpdate, planKnocks, presenceSeenAt, presentX401SdJwtVc, previewImageSize, previewable, proofCapability, proofHash, proofStatement, pubkyHomeserverOf, pubkyProofCapability, pubkyProofFile, pubkyProofPath, publicKeyFromZ32, publishFailure, publishedNowhere, pushRequest, qrText, queueReaction, randomBytes, rankHubs, rankTransports, ratchetHeard, ratchetOn, ratchetOpen, ratchetRoot, ratchetSeal, ratchetSessionOf, ratchetUnknownSession, reactedFrame, reactionEmoji, reactionFrame, reactionIsNewer, readAppBundle, readAppBundleAsync, readAppFrame, readAppListing, readAppRangeFrame, readAppRevocation, readAppRevocationShape, readAppRevocations, readAppSignature, readAppStore, readAppStoreSteps, readAtprotoCid, readBeacon, readBeaconHead, readCanonicalJson, readContactLink, readDeviceInvite, readDhtFile, readDhtReactions, readDnsName, readEnrollGrant, readEnrollHello, readForwarded, readGroupFileMeta, readGroupHave, readGroupSignal, readGroupWant, readGroupWantNo, readHandoffAck, readHandoffBusy, readHandoffCancel, readHandoffData, readHandoffDone, readHandoffFileFrame, readHandoffHave, readHandoffHello, readHandoffManifest, readHandoffPake, readHandoffRelease, readHandoffTurnFrame, readHandoffVerified, readImageMeta, readInviteCode, readKnockSlot, readKnocks, readLinkRecord, readLobby, readManifest, readOwnRelayPayload, readPin, readReaction, readRelayBody, readReply, readSetUpdate, readStatusCard, readTurnBody, readTurnPacket, readWake, readWakePayload, readX401DcqlQuery, readX401OpenId4VpRequest, readX401ProofRequest, readX401ProofRequestHeader, readX401ProofResponse, readX401ProofResponseHeader, readX401ProofResult, readX401ProofResultHeader, readX401SdJwtVc, readingAhead, receivedIdentityStatus, receivedTimestamp, recordingMime, recordsFromTxt, recordsFromWellKnown, recordsName, refusalText, relativizeLocation, relayRequest, relayUrl, relayUrlProblem, relayUrlTooLong, relayedTransports, rememberAlone, removedCardText, repeatedJsonKey, replySnippet, requestLnurlInvoice, requestPlaintextBytes, requestRecords, resolveDidDht, resolveLightningDestination, resolveTargetUrl, revokesIdentity, ringAuthorization, ringClaims, ringEvidence, rosterAdmin, rosterHas, rosterHash, routedCommunityFrame, safeBlobType, sameButtonText, sameSshKey, sameStatusState, sameX401HolderJwk, sanitizeAvatar, sanitizeDisplayText, sanitizeFileName, sanitizeMime, sanitizeNick, sanitizePreviewImage, sanitizeRequestHeaders, sanitizeResponseHeaders, sanitizeStatusText, sanitizeTypingStatus, satsToBtc, sdpHasCandidates, sealGroupTyping, sealHandoffPiece, sealPair, sealSecret, sealTurnBody, sealedLength, seedSigner, seenEntry, sendBody, sentWhole, serviceIdFromName, servicesFromWire, servicesToWire, sessionCapabilitiesFrame, setAckFrame, setAppSignatureFastPath, setLinkTraceSink, setPublicKeyFastPath, setUpdateFrame, setUpdateMessage, settleRequest, sha256Hex, sha256Paced, sha256d, shortAtprotoDid, shortHash, shouldBeHub, shownTime, sign, signAppObject, signAppRevocation, signAppStore, signCommit, signCommunity, signDeviceTransports, signDidDhtPacket, signGroupCallRequest, signGroupMeta, signIdentityPresentation, signRelayPayload, signTombstone, signTurnBody, signTurnPacket, signTurnRelease, signalHasVideo, signingKeys, sortParts, sortRoster, sparkAddressKind, sparkInvoiceDetails, sparkNetworkOf, sshFingerprint, sshKeyDigestHex, sshSignCommand, stampHolds, staticDidDocument, statusCardBytes, statusCardText, statusFrame, statusState, storageProof, storageProofBody, storageProofPath, strictBase64Url, stripHidden, stripPictureMetadata, symmetricNat, takeRequest, taskProgress, toBase64, toBase64Url, toZ32, traceLink, transferEnded, transferStalled, transportOrder, trimEndOf, tryDecrypt, turnInstance, turnKeys, turnName, turnOff, turnPacket, turnPayloadSequence, turnPutSummary, turnReleaseMessage, turnSequence, turnSignedMessage, turnStatedVerifier, turnVerifierMark, txHash, txtValue, typingActivity, typingFrame, typingKindOf, u32, u64, unsignedCommitBytes, unsignedDeviceTransports, unusedInviteWait, unwrapPasted, uriEnd, usageLeft, utf8Decode, utf8Encode, validDomainRecord, validEditMessage, validEditNumber, validEditText, validExternalKey, validHead, validMentions, validReactionNumber, validRemovalNumber, validRingKey, validatePaymentTarget, vapidAuthorization, vapidKeysMatch, varBytes, verify, verifyAppRevocation, verifyAppSignature, verifyAppStatementBytes, verifyAtprotoRecordProof, verifyAtprotoSignature, verifyBip322, verifyBitcoinMessage, verifyChain, verifyCommit, verifyCommitSignature, verifyCommunityChain, verifyCommunityChainPaced, verifyCommunityCommit, verifyDeviceTransports, verifyEnrollProof, verifyGroupCallRequest, verifyGroupMetaSignature, verifyIdentityPresentation, verifyNostrProof, verifyPeerProof, verifyRingAuthorization, verifyRingEvidence, verifySetUpdate, verifySshSignature, videoMetadataPatches, viewerGuardOffset, viewerResponseHeaders, viewerServicePolicy, viewerTag, voiceDownloadName, voiceFileName, voiceLevel, voiceLevelsOf, voicePeaksOf, waitForIceGathering, wakeFrame, wakePayload, wakeRequest, walletNetworkOf, webCryptoSigner, webLocalFetch, wellKnownUrl, wireHubPolicy, wireMentions, wireReaction, wireReply, withRequestOptions, withViewerPolicy, withoutAudioMetadata, withoutPictureMetadata, withoutVideoMetadata, wrapDataChannel, wrapGroupMeta, x401AnswerableRequests, x401ApprovalDigest, x401HolderJwk, x401VpToken, yieldThread };
|
|
42385
|
+
export { ACTIVE_DHT_POLL_MS, ACTIVE_TASK_STATUSES, ANSWERS_REFUSED_PAUSES, ANSWERS_REFUSED_PAUSE_MS, ANSWER_READ_ALLOWANCE, ANSWER_READ_FIRST_MS, ANSWER_READ_SPACING_MS, ANSWER_REFUSED_REDIALS, APPS_CAPABILITY, APP_BUNDLE_LIMITS, APP_BUNDLE_MAGIC, APP_CLIENTS, APP_CLIENT_NAME, APP_DATA_MAX_BYTES, APP_FORBIDDEN_KEYS, APP_FRAME, APP_ICON_PATH, APP_NAME, APP_PEER_OPEN_MAX, APP_PERMISSIONS, APP_PREFIXES, APP_RANGES_CAPABILITY, APP_RANGE_DATA_KIND, APP_RANGE_ERRORS, APP_RANGE_FRAMES, APP_RANGE_LIMITS, APP_RATE_LIMIT, APP_RATE_WINDOW_MS, APP_RESUME_GRACE_MS, APP_SCREENSHOTS_DIR, APP_SEND_LIMIT, APP_STATEMENT_LIMITS, APP_STORE_KINDS, APP_STORE_LIMITS, APP_VERSION_MAX, APP_VIEWS, ATPROTO_DECLARED_SCOPE, ATPROTO_FULL_SCOPE, ATPROTO_PROOF_COLLECTION, ATPROTO_PROOF_SCOPE, AUDIO_METADATA_LIMITS, AUTOMATIC_ORDER, AWAITED_READS, AWAITING_PEER_MS, AppRanges, AppSessions, AtprotoCid, AtprotoProofError, BACKGROUND_REQUESTS_PER_MINUTE, BACKGROUND_WHILE_SIGNALING, BACKGROUND_WRITES_SHARE, BIP322_REVISION, BITCOIN_NETWORKS, BLOCKED_DIAL_WAIT_MS, BOLT11_PATTERN, BREAKER_ALL_DOWN_PROBE_MS, BREAKER_BASE_MS, BREAKER_MAX_MS, BREAKER_THRESHOLD, BURST_RING_MS, BUTTONS_CAPABILITY, BUTTON_ID, BUTTON_STYLES, BitcoinAddressError, ByteReader, CALLS_CAPABILITY, CALL_RATE_WINDOW_MS, CALL_RECEIVE_LIMIT, CALL_SIGNAL_FUTURE_MS, CALL_SIGNAL_MAX_AGE_MS, CAPS_ISSUED_BACK_MS, CAPS_LABEL, CAPS_LIMITS, CAPS_PUBLISH_SPACING_MS, CAPS_REFRESH_MS, CARRIED_DEFER_MS, CATCH_UP_PAUSE_MS, CATCH_UP_SLICE, CHAT_RESERVE, CHAT_RESERVE_MOST_SHARE, CHAT_RESERVE_PER_CHAT, CHAT_WATCH_SHARE, CHUNK_FLAG_END, CHUNK_KIND, CLIPBOARD_GUARD_HASH, CLIPBOARD_GUARD_SCRIPT, CLOCK_EVIDENCE_MS, CLOCK_OFF_MS, CLOCK_PEERS, CLOCK_PEER_READ_GAP_MS, CLOCK_SERVERS, COMMUNITY_EDIT_FRAME, COMMUNITY_LIMITS, COMMUNITY_PIN_FRAME, COMMUNITY_PROFILE, COMMUNITY_REACTION_FRAME, COMMUNITY_TAKEOVER_META_MS, COMMUNITY_TOPOLOGY, CONNECT_TIMEOUT_MS, CONTACT_ASKER_FRAME, CONTACT_LINK_BYTES, CONTACT_LINK_VERSION, CONTACT_RECORD_TTL, CRON_LINE, CROSSED_FRESH_MS, CROSSED_PROBE_MS, CROSSED_WAIT_MS, CapsExchange, CapsKeys, CapsRefusedError, CarriedTransport, CatchUpAnswers, ChatFiles, ClockWatch, CommunitySession, ContactRequestError, DAEMON_WATCH_PEER_IDLE_MS, DATA_CHANNEL_ID, DATA_CHANNEL_LABEL, DATA_SETTLE_MS, DEFAULT_RELAYS, DEMOTE_AFTER_FAILURES, DEMOTE_MS, DEPARTED_READS, DEPARTED_READ_MS, DEVICES_CAPABILITY, DEVICE_CAPABILITIES, DEVICE_ECHO_FRAME, DEVICE_INVITE_BYTES, DEVICE_INVITE_LIFETIME_S, DEVICE_INVITE_OWN_DEVICE, DEVICE_INVITE_VERSION, DEVICE_KINDS, DEVICE_PING_FRAME, DEVICE_WAKE_TTL_SECONDS, DHT_FILE_CAPABILITY, DHT_FILE_REFUSED, DHT_FILE_TOO_LARGE, DHT_MESSAGE_TTL, DHT_PIN_GRACE_MS, DHT_POLL_INTERVALS, DHT_TEXT_BYTES, DHT_TEXT_CAPABILITY, DHT_TEXT_REFUSED, DIALED_IN_CONTENDERS, DID_DHT_MAX_PAYLOAD, DID_DHT_PREFIX, DID_DHT_TTL, DID_DHT_VERSION, DID_DOCUMENT_MAX_BYTES, DID_FILE_MAX_BYTES, DID_GHOSTLY_SERVICE, DID_JWS_ALGS, DID_JWS_MAX_LENGTH, DID_MAX_LENGTH, DID_METHODS, DIRECT_EVIDENCE_MS, DIRECT_OWN_ATTEMPTS, DIRECT_PEERS, DNS_LABEL, DNS_TYPE, DOMAIN_FILE_MAX_BYTES, DOMAIN_MAX_RECORDS, DOMAIN_METHODS, DOMAIN_TXT_MAX_BYTES, DataLink, DhtDelivery, DidDhtError, DidError, DirectPathWatch, DiscoveryBudgetError, EARLY_DIAL_JOIN_MS, EDITED_FRAME, EDIT_BUFFER_MAX, EDIT_BUFFER_MS, EDIT_CAPABILITY, EDIT_FRAME, EDIT_RATE_WINDOW_MS, EDIT_RECEIVE_LIMIT, EDIT_SEND_LIMIT, ENDPOINT, ENGINE_ERRORS, ENROLL_CANCEL, ENROLL_CANCEL_REASONS, ENROLL_CAPABILITY, ENROLL_DONE, ENROLL_GRANT, ENROLL_HELLO, ENROLL_PROOF, ETHEREUM_USDT, EVM_TEST_CHAINS, EXPECT_PEER_MS, EngineError, FILES_BINARY_CAPABILITY, FILES_CAPABILITY, FILE_DATA_KIND, FILE_FRAMES, FILE_LIMITS, FIRST_PAIRING_PACE_MS, FIRST_PUBLISH_MAX_MS, FLOOD_PER_DAY, FOLLOW_MS, FORWARD_LIMITS, FRESH_READ_MS, FileTransfers, FileUplink, GATHER_ATTEMPTS, GATHER_STALL_MS, GROUP_ADMIN_OFF_ERROR, GROUP_BURST_MS, GROUP_BURST_ONE_LINK, GROUP_CALL_MODERATION_ACTS, GROUP_CALL_NONCE_S, GROUP_CALL_SKEW_S, GROUP_CALL_SOURCES, GROUP_CALL_VERSION, GROUP_EDIT_FRAME, GROUP_EDIT_TEXT_BYTES, GROUP_ENTRY_PROFILE, GROUP_FILE_LIMITS, GROUP_HAVE_FRAME, GROUP_ID, GROUP_LIMITS, GROUP_MEMBER_CAP, GROUP_META_PAST, GROUP_META_PAST_CHARS, GROUP_OVER_PACE_MS, GROUP_PIN_FRAME, GROUP_PROFILE, GROUP_RATION_WINDOW_MS, GROUP_REACTED_FRAME, GROUP_REACTION_FRAME, GROUP_READ_NOTE, GROUP_READ_NOTE_COMMUNITY, GROUP_SIGNALING_ALLOWANCE_SHARE, GROUP_SIGNAL_FRAME, GROUP_TAKEOVER_META_MS, GROUP_TYPING_FRAME, GROUP_VERSION_FILES, GROUP_VERSION_HUBS, GROUP_VERSION_LARGE, GROUP_VERSION_SIGNALS, GROUP_WAKE_FRAME, GROUP_WAKE_GROUP_LIMIT, GROUP_WAKE_GROUP_WINDOW_MS, GROUP_WAKE_MEMBER_INTERVAL_MS, GROUP_WAKE_RECEIVE_LIMIT, GROUP_WANT_FRAME, GROUP_WANT_NO_FRAME, GhostLink, GhostlyHttpError, GroupSession, GroupTypingBoard, GroupWakeLimiter, HANDLED_WAIT_MS, HANDOFF_ACK, HANDOFF_ATTEMPTS, HANDOFF_BUSY, HANDOFF_BUSY_REASONS, HANDOFF_CANCEL, HANDOFF_CANCEL_REASONS, HANDOFF_CAPABILITY, HANDOFF_DATA, HANDOFF_DONE, HANDOFF_FILE_MISSING, HANDOFF_FILE_REQUEST, HANDOFF_HAVE, HANDOFF_HELLO, HANDOFF_LATER_BYTES, HANDOFF_LIST_PER_FRAME, HANDOFF_MANIFEST, HANDOFF_OFFER, HANDOFF_PAKE, HANDOFF_PIECE_BYTES, HANDOFF_PIECE_OVERHEAD, HANDOFF_RELEASE, HANDOFF_REQUEST, HANDOFF_TIMINGS, HANDOFF_VERIFIED, HANDOFF_VERSION, HANDOFF_WINDOW, HEDGE_MISSING_MS, HEDGE_MS, HOLD_CAPABILITY, HOLD_DATED_BACK_MS, HOLD_LIMITS, HTTP_SERVICE_PROTO, HoldKeys, HoldRefusedError, HttpClient, HttpHost, IDENTITY_CHALLENGE_WINDOW, IDENTITY_CHECK_UNAVAILABLE, IDENTITY_CLOCK_SKEW, IDENTITY_FRAME_LIMIT, IDENTITY_FRAME_WINDOW_MS, IDENTITY_MAX_CHECKS_PER_HOUR, IDENTITY_MAX_EVIDENCE, IDENTITY_MAX_FRAME, IDENTITY_MAX_RECEIVED, IDENTITY_MAX_VALIDITY, IDENTITY_MEMO_IDLE_MS, IDENTITY_MEMO_MAX, IDENTITY_MEMO_SIZE, IDENTITY_PROOF_CAPABILITY, IDENTITY_PROVIDER_ID, IDENTITY_REUSE_CHECK_S, IDENTITY_REVOCATION_LABEL, IDENTITY_STATEMENT_PREFIX, IDENTITY_SUBJECT, IDENTITY_TIMELINE_MAX, IDLE_THRESHOLD, IMAGE_LIMITS, INVITER_DIAL_GRACE_MS, INVITE_HRP, INVITE_LINK_ORIGIN, INVITE_MAX_LENGTH, INVITE_TAKEN, INVITE_VERSION, ITEM_STATES, IdentityCheckUnavailable, IdentityExchange, KNOCK_SLOTS, KNOCK_SLOT_LABEL, KNOCK_TTL_MS, KNOWN_SESSION_CAPABILITIES, LABEL, LATE_ANSWER_MS, LEGACY_GROUP_MEMBERS, LEGACY_SERVICES, LIGHTNING_DESTINATION_PATTERN, LIMITS, LINK_MAX_CHARS, LINK_PREVIEW_LIMITS, LINK_RECORD_LABEL, LINK_TRAILING, LIVENESS_MISSED_PINGS, LIVENESS_PING_MS, LIVE_POLL_MS, LNURL_LIMITS, LinkSession, MAX_AVATAR_LENGTH, MAX_AVATAR_SIDE, MAX_CHUNK_PAYLOAD_BYTES, MAX_DHT_TEXT_BYTES, MAX_DNS_PACKET_BYTES, MAX_DONE, MAX_EDITS_PER_MESSAGE, MAX_GROUP_CALL_NAME, MAX_GROUP_CALL_SFU, MAX_GROUP_CHAIN, MAX_GROUP_MEMBERS, MAX_GROUP_META_BODY, MAX_GROUP_NAME_BYTES, MAX_GROUP_NAME_LENGTH, MAX_GROUP_PICTURE_LENGTH, MAX_KNOCKS, MAX_MISSED, MAX_MSGS_PAYLOAD_B64, MAX_NICK_LENGTH, MAX_PAIRED_CALL_SIGNAL, MAX_PAIRED_MESSAGE_FRAME, MAX_REMOVAL_NUMBER, MAX_SEEN, MAX_SERVICES, MAX_SHARED_APPS, MAX_SKIP, MAX_SKIPPED_KEYS, MAX_SLOT_KNOCKS, MAX_WAITING, MEMBER_KEY, MENTION_EVERYONE, MENTION_LIMITS, MESH_HUBS, MESSAGE_CLOCK_SKEW_MS, MESSAGE_RECEIVE_LIMITS, MessageRefusal, NEW_PER_HOUR, NIP05_PATH, NO_ATTEMPTS, NO_AUDIO_METADATA, NO_HUB_POLICY, NO_PICTURE_METADATA, NO_VIDEO_METADATA, OFFER_FAST_MS, OFFER_HOST_GATHER_MS, OFFER_LOOK_MS, OFFER_STEP_MAX, ONCHAIN_PROVIDER, OWN_FRAME_LIMIT, OwnInviteError, PAIRED_CALL_CANDIDATES, PAIRED_CALL_FRAME, PAIRED_FRAME_TOO_LARGE, PAIRED_PROFILE, PAIRED_REPLY_AUTHORS, PAIRING_ATTEMPT_MS, PAIRING_RETRY_MS, PICTURE_METADATA_LIMITS, PINNED_FRAME, PIN_CAPABILITY, PIN_CLOCK_SKEW_MS, PIN_FRAME, PIN_LIMITS, PKARR_FUTURE_SKEW_MS, PLAYABLE_AUDIO, PLAYABLE_VIDEO, PONG_WAIT_MS, PRESENCES, PRESENCE_HEARTBEAT, PRESENCE_WINDOW, PREVIEWABLE_IMAGE, PREVIOUS_DEFAULT_RELAYS, PROOF_ADAPTERS, PROOF_CAPABILITY, PROTOCOL_VERSION, PR_CHECKS, PR_STATES, PUBKY_PROOF_MAX_BYTES, PUBKY_PROOF_ROOT, PUSH_PAD_BYTES, PUSH_SERVICE_HOSTS, PacketTooLargeError, PairedCalls, PairedSession, PairingTracker, PaymentPreflightError, PeerProofs, PublishFailedError, QUICK_REACTIONS, QUICK_REDIAL_MS, RACE_ANSWERED_MS, RACE_DIRECT_MS, RACE_RELAYED_MS, RATCHET_CAPABILITY, RATCHET_HEADER_BYTES, RATCHET_KEEP_MS, RATCHET_OVERHEAD, REACTED_FRAME, REACTIONS_CAPABILITY, REACTION_FRAME, REACTION_LIMITS, REANSWERS, RECORDING_TYPES, RECORD_TTL, REDESCRIBED_GRACE_MS, RELAYED_FIRST_MS, RELAY_PAYLOAD_MAX_BYTES, RELAY_POLL_INTERVALS, RELAY_REQUESTS_PER_MINUTE, RELAY_URL, RELAY_WITH_SECRETS, REMOVABLE_KINDS, REMOVED_TEXT, REOPEN_BELOW, REPLY_ID, REPLY_LIMITS, REQUESTS_PER_MINUTE, REQUEST_CLOCK_SKEW_MS, REQUEST_LABEL, REQUEST_LIFETIME_MS, REQUEST_NAME_UNITS, REQUEST_PACKET_BYTES, REQUEST_TEXT_BYTES, RESUME_WAIT_MS, RING_LIFETIME, ROUTINE_STATES, RTC_CONFIG, RTC_SIGNAL_FUTURE_MS, RTC_SIGNAL_MAX_AGE_MS, RTC_SIGNAL_RATE_WINDOW_MS, RTC_SIGNAL_RECEIVE_LIMIT, RTC_UNSTARTED_MS, RUN_RESULTS, RatchetBox, RateWindow, ReactionWindow, RelayBreaker, RelayTransport, RelaysFailedError, SAID_AGAIN, SEPOLIA_TEST_USDT, SEPOLIA_TEST_USDT_FAUCET, SERVICES_CAPABILITY, SERVICES_VERSION, SESSION_CAPABILITIES_FRAME, SESSION_FRAME_MAX, SESSION_RECEIVE_PENDING, SET_ACK, SET_UPDATE, SIGNALING_ALLOWANCE_SHARE, SIGNALING_WINDOW_MS, SIGNALS_PER_MINUTE, SIGNAL_CARRIERS, SIGNAL_DUE_READS, SIGNAL_FRESH_MS, SIGNAL_HOLD_MS, SIGNAL_OUT_READS, SIGNAL_PROVEN_MS, SIGNAL_REPLY_MS, SLOW_DEMOTE_MS, SLOW_MS, SPARK_NETWORKS, SPARK_PROVIDER, SSHSIG_MAX_ARMOR, SSHSIG_NAMESPACE, SSH_KEY_TYPES, SSH_PUBLIC_KEY_MAX, STALLED_EVIDENCE_MS, STALLED_LOOK_MS, STAMP_BITS_DEFAULT, STAMP_BITS_MAX, STAMP_BITS_MIN, STATUS_AVAILABILITIES, STATUS_CAPABILITY, STATUS_CARD_CAPABILITY, STATUS_CARD_LIMITS, STATUS_FRAME, STATUS_IDLE_AFTER_MS, STATUS_RATE_LIMIT, STATUS_RATE_WINDOW_MS, STATUS_SEND_INTERVAL_MS, STATUS_TEXT_MAX, STORAGE_LIFETIME, STORAGE_ROOT, SWITCH_RETIRE_MS, SessionCapabilities, SshSigError, StatusReceiver, StatusSender, TASK_STATUSES, TEST_USDT_FAUCET_AMOUNT, TOMBSTONE_SEQUENCE, TOMBSTONE_TURN, TRANSPORTS, TRANSPORTS_GONE_MS, TURN_BODY_BYTES, TURN_LABEL, TURN_LAST_SEQUENCE, TURN_MAX, TURN_NAME_BYTES, TURN_NO_ACTIVE, TURN_PUT_WINDOW_MS, TURN_RAISE_READ_TIMEOUT_MS, TURN_REV_LIMIT, TURN_SEALED_BYTES, TURN_SETTLE_MS, TURN_SIGNED_BYTES, TURN_SLOTS, TURN_SOURCE_TIMEOUT_MS, TURN_TTL, TURN_VERSION, TURN_VISIBLE_MS, TYPING_CAPABILITY, TYPING_FRAME, TYPING_KINDS, TYPING_RATE_LIMIT, TYPING_RATE_WINDOW_MS, TYPING_REFRESH_MS, TYPING_SEND_LIMIT, TYPING_STATUS_MAX, TYPING_TIMEOUT_MS, TurnRecordError, TypingReceiver, TypingSender, UNPROVEN_AUTH_MS, UNUSED_INVITE_READS_PER_MINUTE, UNUSED_INVITE_UPKEEP_MS, UNUSED_INVITE_WAIT_MAX_MS, UPGRADE_CAPABILITY, USDT_PUBLIC_RPC, VIDEO_LIMITS, VIDEO_METADATA_LIMITS, VIEWER_DROPPED_DIRECTIVES, VIEWER_DROPPED_HEADERS, VIEWER_GUARD_CSP, VIEWER_GUARD_HASH, VIEWER_GUARD_SCRIPT, VIEWER_PERMISSIONS_POLICY, VIEWER_SERVICE_CSP, VIEWER_SERVICE_CSP_RELAY_ONLY, VIEWER_WORKER_GUARD_CSP, VOICE_LIMITS, VOICE_METER, WAKE_ANSWER_GRACE_MS, WAKE_CALL_INTERVAL_MS, WAKE_CALL_TTL_SECONDS, WAKE_CALL_WAIT_MS, WAKE_SESSION_CAPABILITY as WAKE_CAPABILITY, WAKE_SESSION_CAPABILITY, WAKE_FRAME, WAKE_INTERVAL_MS, WAKE_LOST_MS, WAKE_ONLINE_BATCH, WAKE_ONLINE_BATCH_MS, WAKE_ONLINE_DELAY_MS, WAKE_ONLINE_INTERVAL_MS, WAKE_ONLINE_TTL_SECONDS, WAKE_RETRY_MS, WAKE_SUBJECT, WAKE_TTL_SECONDS, WALLET_NETWORKS, WATCH_PEER_MS, WATCH_SHARE, WAY_BACK_SHARE, WEBRTC_GUARD, WELL_KNOWN_PATH, WRITE_FIRST_MS, WakeLimiter, WebPushError, X401_CREDENTIAL_LIMITS, X401_DCQL_LIMITS, X401_HEADERS, X401_LIMITS, X401_PROTOCOLS, X401_REQUEST_LIMITS, X401_RESPONSE_MODES, X401_SCHEME, X401_VERSION, addedAppPermissions, allowingViewerGuard, answersOffer, appCardId, appCardUrl, appCloseFrame, appDataBytes, appDataFrame, appDigest, appFingerprint, appOpenFrame, appRangeCancelFrame, appRangeChunk, appRangeDataFrame, appRangeEndFrame, appRangeErrorFrame, appRangeGetFrame, appRef, appRefPublisher, appRevocationFor, appRevocationId, appSignedBytes, appStoreDecision, appUpdateDecision, appViewOf, applyIdentityEvent, arkAddressPrefix, arrivalKey, asWritten, assembleAppBundle, assertTokenUnits, assertWholeSats, atprotoCidFor, atprotoDidMethod, atprotoProofRecord, atprotoProofRkey, audioMetadataPatches, automaticTransport, baseMime, beaconKeys, beaconRecords, bip322MessageHash, bip322ToSign, bip322ToSpend, boundIdentityDisplay, boundVerifiedIdentity, budgetRetryMs, buildAppBundle, buildDataSdp, buildLinkRecords, buildSdpFromSignal, buildX401ProofRequest, buildX401ProofResult, buildX401ResultArtifact, buildX401TokenObject, buttonLabelClash, bytesEqual, callRtcConfig, callSignalHeardAt, canonicalJson, canonicalJsonBytes, canonicalUrl, capsDescriptors, cardEditNumber, cardLine, cardLinkHost, cardTimeUtc, cardUrl, carryMentions, cashuRequestPayload, chainPieces, chatAppId, checkAppBeforeRun, checkAppListing, checkAppManifest, checkAppRevokeStatement, checkAppStoreIndex, checkAtprotoProofRecord, checkDidJws, checkDidSignature, checkPushEndpoint, checkStatusCard, checkedDescriptors, claimedTime, classifyTurnRead, clearMissed, clockOffset, commitHash, commitUntaggedHash, communityCommitHash, communityEditFrame, communityGroupId, communityHasFrame, communityMessageAuthor, communityMessageId, communityRoster, communityUntaggedHash, compactSize, compareVersions, compressSdp, concatBytes, confirmationMatches, confirmationTag, contactAskerFrame, contactAskerHolds, contactDay, contactRtcConfig, countUnusedInvite, createChatInvite, createContactLink, createDeviceInvite, createIdentity, createLink, createRelayPayload, currentRelays, decodeAnyBitcoinAddress, decodeAppRangeData, decodeAtprotoCommit, decodeBase64, decodeBitcoinAddress, decodeBolt11, decodeChunk, decodeCommunityLink, decodeControl, decodeDagCbor, decodeDidDhtPacket, decodeDnsAnswers, decodeDnsResponse, decodeFileData, decodeGroupEntryLink, decodeInviteCode, decodeServices, decodeSvcbRecords, decodeTx, decodeTxtPacket, decodeWitness, decodeX401Header, decompressSdp, decrypt, decryptPushPayload, decryptText, derivedSecret, deviceEchoFrame, deviceEchoNonce, deviceFrameCapability, deviceInviteJoinerKeyZ32, deviceInviteJoinerParams, deviceKeyZ32, deviceLinkPairing, deviceLinkParams, deviceLinkRendezvousSeed, deviceLinkSealKey, deviceLinkSecret, devicePingFrame, deviceWakeRequest, dhtEditId, dhtFileElements, dhtFileId, dialDescriptors, dialableIrohRelay, didDhtDocument, didDhtFromPublicKey, didDhtKey, didDhtRecords, didGhostlyServiceEntry, didJwsAlg, didSignedMessages, didWebDocumentUrl, didWebFile, didWebFileNames, didWebFileUrl, didWebHost, directBlocked, dnsProofName, domainTxtRecord, domainWellKnownFile, doorHubs, downsamplePeaks, dropLoneJoiners, edgeParams, editFrame, editedFrame, emptyCapsState, emptyDhtDeliveryState, emptyIdentityLedger, emptyLinkRecords, emptyProofLedger, emptyRatchetState, encodeAppRangeData, encodeChunk, encodeCommunityLink, encodeContactLink, encodeControl, encodeDagCbor, encodeDeviceInvite, encodeDidDhtDeactivated, encodeDidDhtPacket, encodeDnsQuery, encodeFileData, encodeGhostlyInvite, encodeGroupEntryLink, encodeGroupMetaBody, encodeInviteCode, encodePacketTransports, encodeServices, encodeSetSlots, encodeSvcbPacket, encodeTurnFields, encodeTx, encodeTxtPacket, encodeWitness, encodeX401Header, encrypt, encryptPushPayload, encryptText, endedRequests, engineError, engineText, enrollCancelFrame, enrollCancelReason, enrollDigits, enrollDoneFrame, enrollGrantFrame, enrollHelloFrame, enrollMessage, enrollProofFrame, entryParams, epochKeys, exifOrientation, expectedRoster, extractParamsFromSdp, extractRtcParams, fedimintRequestPayload, fetchLnurlJson, fetchesByItself, fileMessageText, filePartDigest, filePartName, findAppForbiddenKey, findBolt11, findEndpoint, findInMst, findLightningDestination, firstDeviceSetSecret, formatEnrollDigits, formatFileSize, formatLocalTarget, formatPaymentAmount, formatVideoDuration, formatVoiceDuration, forwardedAgain, forwardedMany, frameBytes, freshHubs, fromBase64, fromBase64Url, fromZ32, generateEncryptionKey, generateVapidKeys, groupCallE2ee, groupCallKey, groupCallModerationBytes, groupCallRequestBytes, groupCallRoom, groupCallSfu, groupDisplayName, groupEntryUrl, groupFileFallback, groupMessageId, groupMetaBody, groupMetaChange, groupMetaNewer, groupMetaPicture, groupMetaTag, groupMetaToHand, groupName, groupReplyAuthor, groupSignalFrame, groupTypingEpoch, groupWakeFrame, groupWakes, guardViewerAnswer, handoffAckFrame, handoffAttemptAllowed, handoffAttemptFailed, handoffAttemptSucceeded, handoffBusyFrame, handoffCancelFrame, handoffContext, handoffContextProof, handoffDataFrame, handoffDigest, handoffDoneFrame, handoffEphemeral, handoffFileMissingFrame, handoffFileRequestFrame, handoffHaveFrames, handoffHelloFrame, handoffManifestFrames, handoffOfferFrame, handoffPakeFrame, handoffReleaseFrame, handoffRequestFrame, handoffRetryAfter, handoffStreamKey, handoffVerifiedFrame, handoffVerifiedMessage, handoffVersions, hasVisible, hash160, heardCallSignal, heardTime, heldBackError, homeserverWebEndpoint, hubRank, identityFromSeed, identityFromSeedB64, identityPresentationBytes, identityRefusal, identityRevocationValue, identityStatement, identityStatementText, imageSize, importedProof, inboxRecord, inviteLink, inviteOwnership, inviteQrSegments, inviteQrText, invoiceCallbackUrl, irohDescriptor, irohRelayUrl, isAppHash, isAppKey, isAppLicense, isAppLine, isAppPath, isAppRef, isAppSignature, isAppUrl, isAppVersion, isAsf, isAtprotoDid, isBitcoinAddress, isCandidateAddress, isChatAppId, isDiscoveryBudgetError, isEmptyLinkPacket, isFederationId, isGlobalIpv4Host, isGroupMessageId, isHandoffPartName, isHoldUrl, isIdentityBinding, isImageMime, isLegacySignature, isNewerVersion, isPlayableAudioType, isPlayableVideoType, isProofAdapter, isPubkyKey, isPubkyProofFolder, isPublicAddress, isRatcheted, isServeId, isSparkAddress, isStrippedPicture, isValidServiceId, isVideoMime, isViewerTag, isWalletNetwork, isX401Protocol, isZ32Key, jpegSize, jwkThumbprint, keepPastGroupMeta, keepsToRelays, keptAtEqualSequence, knockHolds, knockIdentity, knockRecords, knockSlotIdentity, knockSlotOf, knockSlotRecords, lastSharedWithMe, leaveStands, leaveStatement, leaveStatement3, leftStatement, legacyMessageHash, linkEnd, linkRecords, linkStop, linkTail, linksIn, liveStatus, lobbyKeys, lobbyRecords, makeStamp, makeStampPaced, matchX401Dcql, mayBeHub, mayPin, measureRecords, memberAdmissions, mentionedMembers, mentionsBytes, mentionsMember, mergeBeacon, mergeContactKnocks, mergeKnocks, mergeLobby, meshHubs, meshMessageRef, meshRendezvous, newDeviceSetSecret, newEpochSecret, newHandoffId, newMailbox as newHoldMailbox, newIdentityBinding, newInbox, newPubkyProofFolder, newWakeToken, newX401HolderKey, newerHead, newerPacket, nextGroupMetaRevision, nextPinNumber, nextReactionNumber, nextTurnPosition, nip05RootKey, normalizeAtprotoHandle, normalizeDid, normalizeDomain, normalizePubkyKey, normalizeRelayUrl, nostrProofTemplate, offerIsFresh, openDidDhtPayload, openGroupMeta, openGroupTyping, openHandoffPiece, openPair, openRelayPayload, openRequest, openSecret, openTurnValue, ownInviteRefusal, pacer, pairedEditFits, pairedMessageFits, pairedMessageFrame, pairedReplyAuthor, parseAppFrame, parseAppRangeFrame, parseAtprotoCar, parseAtprotoDidDocument, parseAtprotoDidKey, parseAtprotoVerificationKey, parseCallSignal, parseCashuRequestPayload, parseCommunityEdit, parseDid, parseDidDocument, parseDidJws, parseDidSignaturePaste, parseDomainTxt, parseEditFrame, parseEditedFrame, parseEngineError, parseFedimintRequestPayload, parseGroupCommit, parseGroupMetaBody, parseGroupMetaFrame, parseGroupMetaStatement, parseGroupMetaTag, parseGroupWakeFrame, parseHubPolicy, parseImageMeta, parseInvoiceCallback, parseLightningDestination, parseLinkPreview, parseLinkRecords, parseLocalTarget, parsePacketTransports, parsePairedCallFrame, parsePayParams, parsePaymentAmount, parsePaymentNetworks, parsePinFrame, parsePinnedFrame, parseReactedFrame, parseReactionFrame, parseRelayPayload, parseRtcSignal, parseSessionCapabilities, parseSshPublicKey, parseSshSignature, parseStatusFrame, parseTypingActivity, parseTypingFrame, parseVideoMeta, parseVoiceMeta, parseWakeFrame, pastedAgain, paymentUri, peekDhtMailbox, personStatus, pickCallCandidates, pickHubs, pickMeshHubs, pinFrame, pinIsNewer, pinNumberHolds, pinnedFrame, plainStatusLine, planAppUpdate, planKnocks, presenceSeenAt, presentX401SdJwtVc, previewImageSize, previewable, proofCapability, proofHash, proofStatement, pubkyHomeserverOf, pubkyProofCapability, pubkyProofFile, pubkyProofPath, publicKeyFromZ32, publishFailure, publishedNowhere, pushRequest, qrText, queueReaction, randomBytes, rankHubs, rankTransports, ratchetHeard, ratchetOn, ratchetOpen, ratchetRoot, ratchetSeal, ratchetSessionOf, ratchetUnknownSession, reactedFrame, reactionEmoji, reactionFrame, reactionIsNewer, readAppBundle, readAppBundleAsync, readAppFrame, readAppListing, readAppRangeFrame, readAppRevocation, readAppRevocationShape, readAppRevocations, readAppSignature, readAppStore, readAppStoreSteps, readAtprotoCid, readBeacon, readBeaconHead, readCanonicalJson, readContactLink, readDeviceInvite, readDhtFile, readDhtReactions, readDnsName, readEnrollGrant, readEnrollHello, readForwarded, readGroupFileMeta, readGroupHave, readGroupSignal, readGroupWant, readGroupWantNo, readHandoffAck, readHandoffBusy, readHandoffCancel, readHandoffData, readHandoffDone, readHandoffFileFrame, readHandoffHave, readHandoffHello, readHandoffManifest, readHandoffPake, readHandoffRelease, readHandoffTurnFrame, readHandoffVerified, readImageMeta, readInviteCode, readKnockSlot, readKnocks, readLinkRecord, readLobby, readManifest, readOwnRelayPayload, readPin, readReaction, readRelayBody, readReply, readSetUpdate, readStatusCard, readTurnBody, readTurnPacket, readWake, readWakePayload, readX401DcqlQuery, readX401OpenId4VpRequest, readX401ProofRequest, readX401ProofRequestHeader, readX401ProofResponse, readX401ProofResponseHeader, readX401ProofResult, readX401ProofResultHeader, readX401SdJwtVc, readingAhead, receivedIdentityStatus, receivedTimestamp, recordingMime, recordsFromTxt, recordsFromWellKnown, recordsName, refusalText, relativizeLocation, relayRequest, relayUrl, relayUrlProblem, relayUrlTooLong, relayedTransports, rememberAlone, removedCardText, repeatedJsonKey, replySnippet, requestLnurlInvoice, requestPlaintextBytes, requestRecords, resolveDidDht, resolveLightningDestination, resolveTargetUrl, revokesIdentity, ringAuthorization, ringClaims, ringEvidence, rosterAdmin, rosterHas, rosterHash, routedCommunityFrame, safeBlobType, sameButtonText, sameSshKey, sameStatusState, sameX401HolderJwk, sanitizeAvatar, sanitizeDisplayText, sanitizeFileName, sanitizeMime, sanitizeNick, sanitizePreviewImage, sanitizeRequestHeaders, sanitizeResponseHeaders, sanitizeStatusText, sanitizeTypingStatus, satsToBtc, sdpHasCandidates, sealGroupTyping, sealHandoffPiece, sealPair, sealSecret, sealTurnBody, sealedLength, seedSigner, seenEntry, sendBody, sentWhole, serviceIdFromName, servicesFromWire, servicesToWire, sessionCapabilitiesFrame, setAckFrame, setAppSignatureFastPath, setLinkTraceSink, setPublicKeyFastPath, setUpdateFrame, setUpdateMessage, settleRequest, sha256Hex, sha256Paced, sha256d, shortAtprotoDid, shortHash, shouldBeHub, shownTime, sign, signAppObject, signAppRevocation, signAppStore, signCommit, signCommunity, signDeviceTransports, signDidDhtPacket, signGroupCallModeration, signGroupCallRequest, signGroupMeta, signIdentityPresentation, signRelayPayload, signTombstone, signTurnBody, signTurnPacket, signTurnRelease, signalHasVideo, signingKeys, sortParts, sortRoster, sparkAddressKind, sparkInvoiceDetails, sparkNetworkOf, sshFingerprint, sshKeyDigestHex, sshSignCommand, stampHolds, staticDidDocument, statusCardBytes, statusCardText, statusFrame, statusState, storageProof, storageProofBody, storageProofPath, strictBase64Url, stripHidden, stripPictureMetadata, symmetricNat, takeRequest, taskProgress, toBase64, toBase64Url, toZ32, traceLink, transferEnded, transferStalled, transportOrder, trimEndOf, tryDecrypt, turnInstance, turnKeys, turnName, turnOff, turnPacket, turnPayloadSequence, turnPutSummary, turnReleaseMessage, turnSequence, turnSignedMessage, turnStatedVerifier, turnVerifierMark, txHash, txtValue, typingActivity, typingFrame, typingKindOf, u32, u64, unsignedCommitBytes, unsignedDeviceTransports, unusedInviteWait, unwrapPasted, uriEnd, usageLeft, utf8Decode, utf8Encode, validDomainRecord, validEditMessage, validEditNumber, validEditText, validExternalKey, validHead, validMentions, validReactionNumber, validRemovalNumber, validRingKey, validatePaymentTarget, vapidAuthorization, vapidKeysMatch, varBytes, verify, verifyAppRevocation, verifyAppSignature, verifyAppStatementBytes, verifyAtprotoRecordProof, verifyAtprotoSignature, verifyBip322, verifyBitcoinMessage, verifyChain, verifyCommit, verifyCommitSignature, verifyCommunityChain, verifyCommunityChainPaced, verifyCommunityCommit, verifyDeviceTransports, verifyEnrollProof, verifyGroupCallModeration, verifyGroupCallRequest, verifyGroupMetaSignature, verifyIdentityPresentation, verifyNostrProof, verifyPeerProof, verifyRingAuthorization, verifyRingEvidence, verifySetUpdate, verifySshSignature, videoMetadataPatches, viewerGuardOffset, viewerResponseHeaders, viewerServicePolicy, viewerTag, voiceDownloadName, voiceFileName, voiceLevel, voiceLevelsOf, voicePeaksOf, waitForIceGathering, wakeFrame, wakePayload, wakeRequest, walletNetworkOf, webCryptoSigner, webLocalFetch, wellKnownUrl, wireHubPolicy, wireMentions, wireReaction, wireReply, withRequestOptions, withViewerPolicy, withoutAudioMetadata, withoutPictureMetadata, withoutVideoMetadata, wrapDataChannel, wrapGroupMeta, x401AnswerableRequests, x401ApprovalDigest, x401HolderJwk, x401VpToken, yieldThread };
|
|
42000
42386
|
|
|
42001
42387
|
//# sourceMappingURL=core.js.map
|