@ghostlytools/sdk 1.3.2 → 1.3.3
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 +2 -2
- package/dist/{fakes-MnrUkwEP.js → fakes-BGm8YDy-.js} +36 -32
- package/dist/fakes-BGm8YDy-.js.map +1 -0
- package/dist/fakes.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{keet-identity-key-BjeN0q1Z.js → keet-identity-key-CRb0ko1T.js} +2 -2
- package/dist/{keet-identity-key-BjeN0q1Z.js.map → keet-identity-key-CRb0ko1T.js.map} +1 -1
- package/dist/{src-yaRa2Opt.js → src-DhOMxijH.js} +336 -104
- package/dist/src-DhOMxijH.js.map +1 -0
- package/dist/testing.js +3 -3
- package/dist/types/browser/src/engine/paymentAdapters/providers/testing.d.ts +2 -2
- package/dist/types/browser/src/proofs/testing.d.ts +5 -5
- package/dist/types/browser/src/shared/features.d.ts +15 -0
- package/dist/types/core/src/bytes.d.ts +6 -0
- package/dist/types/core/src/datalink.d.ts +1 -1
- package/dist/types/core/src/ghostlink.d.ts +25 -2
- package/dist/types/core/src/groupCommits.d.ts +8 -1
- package/dist/types/core/src/groupFiles.d.ts +9 -0
- package/dist/types/core/src/groupSession.d.ts +22 -0
- package/dist/types/core/src/identity.d.ts +2 -0
- package/dist/types/core/src/identityProofs.d.ts +9 -0
- package/dist/types/core/src/image.d.ts +13 -0
- package/dist/types/core/src/pkdns.d.ts +5 -1
- package/dist/types/core/src/services.d.ts +8 -0
- package/dist/types/sdk/src/fakes.d.ts +3 -1
- package/dist/{verify-BfFDG-pJ.js → verify-J0ShO67L.js} +2 -2
- package/dist/{verify-BfFDG-pJ.js.map → verify-J0ShO67L.js.map} +1 -1
- package/package.json +1 -1
- package/dist/fakes-MnrUkwEP.js.map +0 -1
- package/dist/src-yaRa2Opt.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { xsalsa20poly1305 } from "@noble/ciphers/salsa.js";
|
|
2
2
|
import { ed25519, x25519 } from "@noble/curves/ed25519.js";
|
|
3
|
-
import { hkdf } from "@noble/hashes/hkdf.js";
|
|
4
3
|
import { sha256, sha512 } from "@noble/hashes/sha2.js";
|
|
4
|
+
import { hkdf } from "@noble/hashes/hkdf.js";
|
|
5
5
|
import { base58, base64, base64urlnopad, bech32, bech32m, createBase58check } from "@scure/base";
|
|
6
6
|
import { hmac } from "@noble/hashes/hmac.js";
|
|
7
7
|
import { hexToBytes } from "@noble/hashes/utils.js";
|
|
@@ -168,6 +168,19 @@ function fromZ32(str) {
|
|
|
168
168
|
}
|
|
169
169
|
return out;
|
|
170
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* A 32-byte key written as the one z-base-32 spelling `toZ32` produces: 52 characters that decode to 32 bytes and
|
|
173
|
+
* encode back to the same string. The last character carries four zero padding bits, so each key has exactly one
|
|
174
|
+
* spelling and keys may be compared as strings (WISP 02). Any other spelling is not a key here.
|
|
175
|
+
*/
|
|
176
|
+
function isZ32Key(value) {
|
|
177
|
+
if (typeof value !== "string" || value.length !== 52) return false;
|
|
178
|
+
try {
|
|
179
|
+
return toZ32(fromZ32(value)) === value;
|
|
180
|
+
} catch {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
171
184
|
function randomBytes(length) {
|
|
172
185
|
const bytes = new Uint8Array(length);
|
|
173
186
|
crypto.getRandomValues(bytes);
|
|
@@ -313,9 +326,28 @@ function tryDecrypt(encoded, key) {
|
|
|
313
326
|
}
|
|
314
327
|
//#endregion
|
|
315
328
|
//#region ../core/src/identity.ts
|
|
329
|
+
/** How many public keys `identityFromSeed` keeps: a start with 50 chats and 20 groups derives about 400 distinct ones. */
|
|
330
|
+
var IDENTITY_MEMO_SIZE = 1024;
|
|
331
|
+
/**
|
|
332
|
+
* Public keys already derived, by the SHA-256 of their seed, the most recently used last. A chat's start derives the
|
|
333
|
+
* same few seeds' keys again and again (its link, its delivery, its capability record): ~0.25 ms each in V8, ~3.4x
|
|
334
|
+
* that in JSC. The seed itself is never kept, so a seed its owner zeroes leaves nothing behind here.
|
|
335
|
+
*/
|
|
336
|
+
var publicKeys = /* @__PURE__ */ new Map();
|
|
337
|
+
function publicKeyOf(seed) {
|
|
338
|
+
const id = toBase64Url(sha256(seed));
|
|
339
|
+
let key = publicKeys.get(id);
|
|
340
|
+
if (key) publicKeys.delete(id);
|
|
341
|
+
else {
|
|
342
|
+
key = ed25519.getPublicKey(seed);
|
|
343
|
+
if (publicKeys.size >= 1024) publicKeys.delete(publicKeys.keys().next().value);
|
|
344
|
+
}
|
|
345
|
+
publicKeys.set(id, key);
|
|
346
|
+
return key.slice();
|
|
347
|
+
}
|
|
316
348
|
function identityFromSeed(seed) {
|
|
317
349
|
if (seed.length !== 32) throw new Error("Seed must be exactly 32 bytes");
|
|
318
|
-
const publicKey =
|
|
350
|
+
const publicKey = publicKeyOf(seed);
|
|
319
351
|
return {
|
|
320
352
|
seed,
|
|
321
353
|
seedB64: toBase64Url(seed),
|
|
@@ -332,7 +364,7 @@ function createIdentity() {
|
|
|
332
364
|
function publicKeyFromZ32(z32) {
|
|
333
365
|
if (z32.length !== 52) throw new Error("Invalid public key: expected 52 z-base-32 characters");
|
|
334
366
|
const bytes = fromZ32(z32);
|
|
335
|
-
if (bytes
|
|
367
|
+
if (toZ32(bytes) !== z32) throw new Error("Invalid public key: not canonical z-base-32");
|
|
336
368
|
return bytes;
|
|
337
369
|
}
|
|
338
370
|
function sign(message, seed) {
|
|
@@ -3242,7 +3274,6 @@ function readGhostly(code) {
|
|
|
3242
3274
|
};
|
|
3243
3275
|
}
|
|
3244
3276
|
var B64_KEY = /^[A-Za-z0-9_-]{43}$/;
|
|
3245
|
-
var Z32_KEY$1 = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/;
|
|
3246
3277
|
function readSlashForm(code) {
|
|
3247
3278
|
const dht = code.startsWith("pair2d/");
|
|
3248
3279
|
const profile = dht || code.startsWith("pair1/") ? "paired-chat/1" : void 0;
|
|
@@ -3256,7 +3287,7 @@ function readSlashForm(code) {
|
|
|
3256
3287
|
reason: "not-ghostly"
|
|
3257
3288
|
};
|
|
3258
3289
|
const [seedB64, peerPubKeyZ32, encKeyB64] = parts;
|
|
3259
|
-
const bad = !B64_KEY.test(seedB64) ? "The seed" : !
|
|
3290
|
+
const bad = !B64_KEY.test(seedB64) ? "The seed" : !isZ32Key(peerPubKeyZ32) ? "The contact's key" : !B64_KEY.test(encKeyB64) ? "The shared key" : null;
|
|
3260
3291
|
if (bad) return {
|
|
3261
3292
|
ok: false,
|
|
3262
3293
|
reason: "damaged",
|
|
@@ -3549,7 +3580,7 @@ var ENROLL_CANCEL_REASONS = [
|
|
|
3549
3580
|
"full",
|
|
3550
3581
|
"failed"
|
|
3551
3582
|
];
|
|
3552
|
-
var KEY$
|
|
3583
|
+
var KEY$3 = /^[A-Za-z0-9_-]{43}$/;
|
|
3553
3584
|
var SIGNATURE$2 = /^[A-Za-z0-9_-]{86}$/;
|
|
3554
3585
|
var HASH$3 = /^[0-9a-f]{64}$/;
|
|
3555
3586
|
function checkKey(key, who) {
|
|
@@ -3601,7 +3632,7 @@ async function enrollHelloFrame(transcriptHash, inviterKey, joiner, about) {
|
|
|
3601
3632
|
* key's over this session's tuple. Null for anything else.
|
|
3602
3633
|
*/
|
|
3603
3634
|
function readEnrollHello(frame, transcriptHash, inviterKey, sessionKey) {
|
|
3604
|
-
if (frame.t !== "enroll-hello" || typeof frame.k !== "string" || !KEY$
|
|
3635
|
+
if (frame.t !== "enroll-hello" || typeof frame.k !== "string" || !KEY$3.test(frame.k) || typeof frame.s !== "string" || !SIGNATURE$2.test(frame.s)) return null;
|
|
3605
3636
|
if (typeof frame.name !== "string" || frame.name.length > 64 || typeof frame.app !== "string" || frame.app.length > 32) return null;
|
|
3606
3637
|
const key = fromBase64Url(frame.k);
|
|
3607
3638
|
if (key.length !== 32 || toBase64Url(key) !== toBase64Url(sessionKey)) return null;
|
|
@@ -3683,7 +3714,7 @@ function enrollGrantFrame(grant) {
|
|
|
3683
3714
|
* once and the inviter once, and a turn and `rev` an ordinary record can have. Null for anything else.
|
|
3684
3715
|
*/
|
|
3685
3716
|
function readEnrollGrant(frame, inviterKey, joinerKey) {
|
|
3686
|
-
if (frame.t !== "enroll-grant" || typeof frame.d !== "string" || !KEY$
|
|
3717
|
+
if (frame.t !== "enroll-grant" || typeof frame.d !== "string" || !KEY$3.test(frame.d) || !Array.isArray(frame.set) || frame.set.length > 4) return null;
|
|
3687
3718
|
if (!Number.isInteger(frame.turn) || frame.turn < 0 || frame.turn > TURN_MAX) return null;
|
|
3688
3719
|
if (!Number.isInteger(frame.rev) || frame.rev < 0 || frame.rev >= TURN_REV_LIMIT) return null;
|
|
3689
3720
|
const set = [];
|
|
@@ -3692,7 +3723,7 @@ function readEnrollGrant(frame, inviterKey, joinerKey) {
|
|
|
3692
3723
|
set.push(null);
|
|
3693
3724
|
continue;
|
|
3694
3725
|
}
|
|
3695
|
-
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$
|
|
3726
|
+
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$3.test(slot[0]) || typeof slot[1] !== "string" || slot[1].length > 64) return null;
|
|
3696
3727
|
set.push({
|
|
3697
3728
|
key: fromBase64Url(slot[0]),
|
|
3698
3729
|
name: turnName(slot[1])
|
|
@@ -3729,7 +3760,7 @@ function enrollCancelReason(frame) {
|
|
|
3729
3760
|
//#region ../core/src/setUpdate.ts
|
|
3730
3761
|
var SET_UPDATE = "set-update";
|
|
3731
3762
|
var SET_ACK = "set-ack";
|
|
3732
|
-
var KEY$
|
|
3763
|
+
var KEY$2 = /^[A-Za-z0-9_-]{43}$/;
|
|
3733
3764
|
var SIGNATURE$1 = /^[A-Za-z0-9_-]{86}$/;
|
|
3734
3765
|
/** A tombstone packet is a relay payload of 706 bytes (WISP 06 § Record); a little room above it, nothing more. */
|
|
3735
3766
|
var TOMB = /^[A-Za-z0-9_-]{100,1400}$/;
|
|
@@ -3781,7 +3812,7 @@ async function setUpdateFrame(oldAddress, update, signer) {
|
|
|
3781
3812
|
* here: that needs the old turn address (`verifySetUpdate`).
|
|
3782
3813
|
*/
|
|
3783
3814
|
function readSetUpdate(frame) {
|
|
3784
|
-
if (frame.t !== "set-update" || typeof frame.d !== "string" || !KEY$
|
|
3815
|
+
if (frame.t !== "set-update" || typeof frame.d !== "string" || !KEY$2.test(frame.d) || typeof frame.by !== "string" || !KEY$2.test(frame.by)) return null;
|
|
3785
3816
|
if (typeof frame.s !== "string" || !SIGNATURE$1.test(frame.s) || typeof frame.tomb !== "string" || !TOMB.test(frame.tomb)) return null;
|
|
3786
3817
|
if (!Array.isArray(frame.set) || frame.set.length > 4) return null;
|
|
3787
3818
|
if (frame.rec !== void 0 && (typeof frame.rec !== "string" || !TOMB.test(frame.rec))) return null;
|
|
@@ -3795,7 +3826,7 @@ function readSetUpdate(frame) {
|
|
|
3795
3826
|
signed.push(null);
|
|
3796
3827
|
continue;
|
|
3797
3828
|
}
|
|
3798
|
-
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$
|
|
3829
|
+
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$2.test(slot[0]) || typeof slot[1] !== "string" || slot[1].length > 64) return null;
|
|
3799
3830
|
if (utf8Encode(slot[1]).length > 16 || slot[1].includes("\0")) return null;
|
|
3800
3831
|
signed.push([slot[0], slot[1]]);
|
|
3801
3832
|
set.push({
|
|
@@ -3921,8 +3952,8 @@ var HANDOFF_CANCEL_REASONS = [
|
|
|
3921
3952
|
"password",
|
|
3922
3953
|
"stalled"
|
|
3923
3954
|
];
|
|
3924
|
-
var KEY$
|
|
3925
|
-
var DIGEST$2 = KEY$
|
|
3955
|
+
var KEY$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
3956
|
+
var DIGEST$2 = KEY$1;
|
|
3926
3957
|
var SIGNATURE = /^[A-Za-z0-9_-]{86}$/;
|
|
3927
3958
|
var ID$5 = /^[A-Za-z0-9_-]{22}$/;
|
|
3928
3959
|
var B64$4 = /^[A-Za-z0-9_-]*$/;
|
|
@@ -4071,7 +4102,7 @@ function handoffHelloFrame(hello) {
|
|
|
4071
4102
|
}
|
|
4072
4103
|
function readHandoffHello(frame) {
|
|
4073
4104
|
if (frame.t !== "handoff-hello" || frame.v !== 1) return null;
|
|
4074
|
-
if (!isText$2(frame.e, KEY$
|
|
4105
|
+
if (!isText$2(frame.e, KEY$1) || fromBase64Url(frame.e).length !== 32) return null;
|
|
4075
4106
|
if (!isText$2(frame.app, VERSION_TEXT) || !isCount$1(frame.db, 1e6) || !isPins(frame.pins)) return null;
|
|
4076
4107
|
if (typeof frame.room !== "number" || !Number.isSafeInteger(frame.room) || frame.room < -1) return null;
|
|
4077
4108
|
if (typeof frame.metered !== "boolean") return null;
|
|
@@ -4150,7 +4181,7 @@ function readHandoffPake(frame) {
|
|
|
4150
4181
|
wrong: true
|
|
4151
4182
|
} : null;
|
|
4152
4183
|
if (!isText$2(frame.m, B64$4) || !frame.m.length || frame.m.length > 4096) return null;
|
|
4153
|
-
if (frame.n === 3 && !isText$2(frame.c, KEY$
|
|
4184
|
+
if (frame.n === 3 && !isText$2(frame.c, KEY$1)) return null;
|
|
4154
4185
|
return {
|
|
4155
4186
|
n: frame.n,
|
|
4156
4187
|
m: frame.m,
|
|
@@ -4290,7 +4321,7 @@ var handoffReleaseFrame = (release) => ({
|
|
|
4290
4321
|
...release
|
|
4291
4322
|
});
|
|
4292
4323
|
function readHandoffRelease(frame) {
|
|
4293
|
-
if (frame.t !== "handoff-release" || !isCount$1(frame.turn, TURN_MAX) || !isText$2(frame.to, KEY$
|
|
4324
|
+
if (frame.t !== "handoff-release" || !isCount$1(frame.turn, TURN_MAX) || !isText$2(frame.to, KEY$1) || !isText$2(frame.h, DIGEST$2) || !isText$2(frame.s, SIGNATURE)) return null;
|
|
4294
4325
|
return {
|
|
4295
4326
|
turn: frame.turn,
|
|
4296
4327
|
to: frame.to,
|
|
@@ -4410,6 +4441,19 @@ var LEGACY_SERVICES = [
|
|
|
4410
4441
|
function isValidServiceId(id) {
|
|
4411
4442
|
return SERVICE_ID_PATTERN.test(id);
|
|
4412
4443
|
}
|
|
4444
|
+
var VIEWER_TAG_PATTERN = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{16}$/;
|
|
4445
|
+
/**
|
|
4446
|
+
* The label that makes the origin a contact's app opens in this side's own (WISP 04): derived from the key this
|
|
4447
|
+
* profile holds for the chat with that contact. Another profile on the device, a profile after "Clear all data", or
|
|
4448
|
+
* one made again after a delete has another chat key, so another origin, and never finds the storage, cookies or
|
|
4449
|
+
* session the app kept here. The contact already knows that key, so the label tells it nothing new.
|
|
4450
|
+
*/
|
|
4451
|
+
function viewerTag(myPubKeyZ32) {
|
|
4452
|
+
return toZ32(sha256(utf8Encode(`ghostly-viewer/1\n${myPubKeyZ32}`)).subarray(0, 10));
|
|
4453
|
+
}
|
|
4454
|
+
function isViewerTag(tag) {
|
|
4455
|
+
return VIEWER_TAG_PATTERN.test(tag);
|
|
4456
|
+
}
|
|
4413
4457
|
function serviceIdFromName(name, taken = []) {
|
|
4414
4458
|
const used = new Set(taken);
|
|
4415
4459
|
const base = name.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 24) || "service";
|
|
@@ -5068,8 +5112,12 @@ function buildSdpFromSignal(signal) {
|
|
|
5068
5112
|
function sdpHasCandidates(sdp) {
|
|
5069
5113
|
return /^a=candidate:/m.test(sdp ?? "");
|
|
5070
5114
|
}
|
|
5071
|
-
/**
|
|
5072
|
-
|
|
5115
|
+
/**
|
|
5116
|
+
* How long to keep collecting after the candidate we were waiting for showed up (a call's; a chat's data link sets its
|
|
5117
|
+
* own, the same). The host candidates are in before it, and a call's signal keeps the first reflexive one only
|
|
5118
|
+
* (`pickCallCandidates`): 400 ms held every call's offer, and its answer, back that long for nothing it carried.
|
|
5119
|
+
*/
|
|
5120
|
+
var ICE_SETTLE_MS = 150;
|
|
5073
5121
|
/** IPv4 ranges that are not reachable from the internet: this network, private, shared (CGNAT), loopback, link-local, the documentation ones, benchmarking, multicast and up. */
|
|
5074
5122
|
var NOT_GLOBAL_IPV4 = [
|
|
5075
5123
|
[0, 8],
|
|
@@ -7038,7 +7086,7 @@ var ICE_GATHERING_TIMEOUT_MS = 5e3;
|
|
|
7038
7086
|
* rather than 2 s (calls bug hunt, 2026-10-12).
|
|
7039
7087
|
*/
|
|
7040
7088
|
var OFFER_HOST_GATHER_MS = 2e3;
|
|
7041
|
-
/** The data link keeps collecting this long after the candidate it waited for came (a call
|
|
7089
|
+
/** The data link keeps collecting this long after the candidate it waited for came (a call too). */
|
|
7042
7090
|
var DATA_SETTLE_MS = 150;
|
|
7043
7091
|
/**
|
|
7044
7092
|
* A connection with no candidate at all by then has stalled: Chromium, rarely and under load, gathers none, and an
|
|
@@ -7648,7 +7696,11 @@ var GROUP_MEMBER_CAP = { max: 32 };
|
|
|
7648
7696
|
var GROUP_VERSION_LARGE = 3;
|
|
7649
7697
|
var MAX_GROUP_CHAIN = 1024;
|
|
7650
7698
|
var GROUP_ID = /^[A-Za-z0-9_-]{22}$/;
|
|
7651
|
-
|
|
7699
|
+
/**
|
|
7700
|
+
* A member's key, in its one canonical spelling (`isZ32Key`): a roster names members by string, so a key respelled in
|
|
7701
|
+
* its last character would be a second member for one key, and `publicKeyFromZ32` would throw on it past this check.
|
|
7702
|
+
*/
|
|
7703
|
+
var MEMBER_KEY = { test: isZ32Key };
|
|
7652
7704
|
var TAG$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
7653
7705
|
var SIG$6 = /^[A-Za-z0-9_-]{86}$/;
|
|
7654
7706
|
var HASH$2 = /^[a-f0-9]{64}$/;
|
|
@@ -9387,8 +9439,23 @@ var IMAGE_LIMITS = {
|
|
|
9387
9439
|
/** Pixels on either side: the most a JPEG can say, well past what anyone sends as a picture. */
|
|
9388
9440
|
maxEdge: 65535,
|
|
9389
9441
|
/** How much of a file is read for its size: past a JPEG's EXIF, thumbnails and colour profile. */
|
|
9390
|
-
headBytes: 262144
|
|
9442
|
+
headBytes: 262144,
|
|
9443
|
+
/**
|
|
9444
|
+
* The most pixels a picture drawn in a chat may have: a 50-megapixel phone photo (8160 × 6120), about 200 MB once
|
|
9445
|
+
* decoded. A few kilobytes can say far more (a PNG of 23000 × 23000 is 64 KB and 2 GB decoded): past this a picture
|
|
9446
|
+
* is kept and saved, not drawn.
|
|
9447
|
+
*/
|
|
9448
|
+
previewPixels: 5e7,
|
|
9449
|
+
/** The longest side a picture drawn in a chat may have: a wide panorama. */
|
|
9450
|
+
previewEdge: 16384
|
|
9391
9451
|
};
|
|
9452
|
+
/**
|
|
9453
|
+
* Whether a picture of this size, read from its own bytes (never from what its sender said), may be drawn: undefined
|
|
9454
|
+
* (its bytes do not say) may not either, as what draws it would find its size only by decoding it.
|
|
9455
|
+
*/
|
|
9456
|
+
function previewable(size) {
|
|
9457
|
+
return !!size && size.width <= IMAGE_LIMITS.previewEdge && size.height <= IMAGE_LIMITS.previewEdge && size.width * size.height <= IMAGE_LIMITS.previewPixels;
|
|
9458
|
+
}
|
|
9392
9459
|
/** Whether a file is a picture, by its type. */
|
|
9393
9460
|
function isImageMime(mime) {
|
|
9394
9461
|
return mime.split(";")[0].trim().toLowerCase().startsWith("image/");
|
|
@@ -12121,7 +12188,7 @@ async function verifyPeerProof(event, c, readStorage) {
|
|
|
12121
12188
|
if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
|
|
12122
12189
|
} else if (c.adapter === "keet-import") {
|
|
12123
12190
|
if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
|
|
12124
|
-
const { default: IdentityKey } = await import("./keet-identity-key-
|
|
12191
|
+
const { default: IdentityKey } = await import("./keet-identity-key-CRb0ko1T.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
12125
12192
|
if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
|
|
12126
12193
|
} else throw new Error("Unsupported proof adapter");
|
|
12127
12194
|
}
|
|
@@ -12455,10 +12522,18 @@ var IDENTITY_MAX_EVIDENCE = 16384;
|
|
|
12455
12522
|
var IDENTITY_MAX_FRAME = 32768;
|
|
12456
12523
|
/** Unanswered challenges a verifier keeps per conversation. */
|
|
12457
12524
|
var MAX_CHALLENGES = 8;
|
|
12525
|
+
/**
|
|
12526
|
+
* Proofs a verifier keeps from one contact. A newer proof of the same identity replaces the older one, and one no longer
|
|
12527
|
+
* standing (withdrawn, revoked, expired) gives its place to a new one; past that a presentation is refused before it is
|
|
12528
|
+
* checked, so a contact cannot make this side store, re-send to its pages and look up its proofs without end.
|
|
12529
|
+
*/
|
|
12530
|
+
var IDENTITY_MAX_RECEIVED = 16;
|
|
12531
|
+
/** `idp-*` frames a paired session reads from the contact per `IDENTITY_FRAME_WINDOW_MS`; the rest are dropped unread. */
|
|
12532
|
+
var IDENTITY_FRAME_LIMIT = 40;
|
|
12533
|
+
var IDENTITY_FRAME_WINDOW_MS = 6e4;
|
|
12458
12534
|
var IDENTITY_PROVIDER_ID = /^[a-z][a-z0-9-]{0,31}$/;
|
|
12459
12535
|
/** Printable ASCII without spaces, so the statement can be built but never needs parsing. */
|
|
12460
12536
|
var IDENTITY_SUBJECT = /^[\x21-\x7e]{1,512}$/;
|
|
12461
|
-
var KEY$2 = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/;
|
|
12462
12537
|
var BINDING_NONCE = /^[A-Za-z0-9_-]{22}$/;
|
|
12463
12538
|
var CHALLENGE_NONCE = /^[A-Za-z0-9_-]{43}$/;
|
|
12464
12539
|
var HEX64$2 = /^[a-f0-9]{64}$/;
|
|
@@ -12480,7 +12555,7 @@ var iso = (seconds) => (/* @__PURE__ */ new Date(seconds * 1e3)).toISOString().r
|
|
|
12480
12555
|
var isInt$2 = (v) => Number.isSafeInteger(v) && v > 0;
|
|
12481
12556
|
function isIdentityBinding(value) {
|
|
12482
12557
|
const b = value;
|
|
12483
|
-
return !!b && typeof b === "object" && !Array.isArray(b) && Object.keys(b).sort().join(",") === "expiresAt,issuedAt,key,nonce,provider,subject,v" && b.v === 1 && typeof b.provider === "string" && IDENTITY_PROVIDER_ID.test(b.provider) && typeof b.subject === "string" && IDENTITY_SUBJECT.test(b.subject) &&
|
|
12558
|
+
return !!b && typeof b === "object" && !Array.isArray(b) && Object.keys(b).sort().join(",") === "expiresAt,issuedAt,key,nonce,provider,subject,v" && b.v === 1 && typeof b.provider === "string" && IDENTITY_PROVIDER_ID.test(b.provider) && typeof b.subject === "string" && IDENTITY_SUBJECT.test(b.subject) && isZ32Key(b.key) && typeof b.nonce === "string" && BINDING_NONCE.test(b.nonce) && isInt$2(b.issuedAt) && isInt$2(b.expiresAt) && b.expiresAt > b.issuedAt && b.expiresAt - b.issuedAt <= 3456e4 && b.expiresAt < 253402300800;
|
|
12484
12559
|
}
|
|
12485
12560
|
/**
|
|
12486
12561
|
* The canonical statement, one line, so it survives every tool and clipboard (no line-ending
|
|
@@ -12540,7 +12615,7 @@ function signIdentityPresentation(seed, proofId, scope, nonce, issuedAt) {
|
|
|
12540
12615
|
return toBase64Url(sign(identityPresentationBytes(proofId, scope, nonce, issuedAt), seed));
|
|
12541
12616
|
}
|
|
12542
12617
|
function verifyIdentityPresentation(key, sig, proofId, scope, nonce, issuedAt) {
|
|
12543
|
-
if (typeof sig !== "string" || !SIG$5.test(sig) || !
|
|
12618
|
+
if (typeof sig !== "string" || !SIG$5.test(sig) || !isZ32Key(key)) return false;
|
|
12544
12619
|
return verify(fromBase64Url(sig), identityPresentationBytes(proofId, scope, nonce, issuedAt), publicKeyFromZ32(key));
|
|
12545
12620
|
}
|
|
12546
12621
|
var clean$1 = (value, max) => {
|
|
@@ -12593,6 +12668,18 @@ function receivedIdentityStatus(r, presenter, audience, now = nowSeconds()) {
|
|
|
12593
12668
|
if (Math.min(r.binding.expiresAt, r.verified.expiresAt ?? Infinity) <= now) return "expired";
|
|
12594
12669
|
return r.status === "unconfirmed" ? "unconfirmed" : "verified";
|
|
12595
12670
|
}
|
|
12671
|
+
var standing = (r, now) => r.status !== "withdrawn" && r.status !== "revoked" && Math.min(r.binding.expiresAt, r.verified.expiresAt ?? Infinity) > now;
|
|
12672
|
+
/**
|
|
12673
|
+
* `received` with room for one more proof: `replaced` (the older proof of the same identity) dropped, then the oldest ones
|
|
12674
|
+
* no longer standing; undefined when every place is still taken.
|
|
12675
|
+
*/
|
|
12676
|
+
function receivedWithRoom(received, id, replaced, now) {
|
|
12677
|
+
const kept = received.filter((r) => r.id !== id && !replaced(r));
|
|
12678
|
+
const gone = kept.filter((r) => !standing(r, now)).sort((a, b) => a.verifiedAt - b.verifiedAt);
|
|
12679
|
+
const drop = new Set(gone.slice(0, Math.max(0, kept.length - 16 + 1)));
|
|
12680
|
+
const out = kept.filter((r) => !drop.has(r));
|
|
12681
|
+
return out.length < 16 ? out : void 0;
|
|
12682
|
+
}
|
|
12596
12683
|
var shortError = (e) => clean$1(e instanceof Error ? e.message : String(e), 160) ?? "Invalid proof";
|
|
12597
12684
|
/**
|
|
12598
12685
|
* A check this side could not finish because of what its own network did: a host it refused to contact, a server
|
|
@@ -12608,6 +12695,7 @@ var IdentityCheckUnavailable = class extends Error {
|
|
|
12608
12695
|
};
|
|
12609
12696
|
/** What the contact is told when the check failed with an IdentityCheckUnavailable. */
|
|
12610
12697
|
var IDENTITY_CHECK_UNAVAILABLE = "Your contact's app could not check it. Try again later.";
|
|
12698
|
+
var TOO_MANY_RECEIVED = "Your contact keeps too many identities from you already";
|
|
12611
12699
|
var peerError = (e) => e instanceof IdentityCheckUnavailable ? IDENTITY_CHECK_UNAVAILABLE : shortError(e);
|
|
12612
12700
|
/**
|
|
12613
12701
|
* The `idp-*` exchange of one conversation. Frames (all JSON, additive, over the paired channel,
|
|
@@ -12832,31 +12920,29 @@ var IdentityExchange = class {
|
|
|
12832
12920
|
});
|
|
12833
12921
|
return;
|
|
12834
12922
|
}
|
|
12835
|
-
case "idp-withdraw":
|
|
12923
|
+
case "idp-withdraw": {
|
|
12836
12924
|
if (!id) return;
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
reason: "withdrawn"
|
|
12853
|
-
}) : next;
|
|
12854
|
-
});
|
|
12925
|
+
const r = this.options.storage.read().received.find((x) => x.id === id);
|
|
12926
|
+
if (r && r.status !== "withdrawn") await this.options.storage.update((l) => this.log({
|
|
12927
|
+
...l,
|
|
12928
|
+
received: l.received.map((x) => x.id === id ? {
|
|
12929
|
+
...x,
|
|
12930
|
+
status: "withdrawn"
|
|
12931
|
+
} : x)
|
|
12932
|
+
}, {
|
|
12933
|
+
type: "stopped",
|
|
12934
|
+
side: "theirs",
|
|
12935
|
+
proof: id,
|
|
12936
|
+
provider: r.binding.provider,
|
|
12937
|
+
subject: r.verified.subject,
|
|
12938
|
+
reason: "withdrawn"
|
|
12939
|
+
}));
|
|
12855
12940
|
this.send({
|
|
12856
12941
|
t: "idp-withdrawn",
|
|
12857
12942
|
id
|
|
12858
12943
|
});
|
|
12859
12944
|
return;
|
|
12945
|
+
}
|
|
12860
12946
|
case "idp-withdrawn": {
|
|
12861
12947
|
const s = id ? this.shared(id) : void 0;
|
|
12862
12948
|
if (s?.status === "withdrawal-pending") await this.setShared({
|
|
@@ -12874,25 +12960,11 @@ var IdentityExchange = class {
|
|
|
12874
12960
|
async onRequest(id, provider) {
|
|
12875
12961
|
if (!id) return;
|
|
12876
12962
|
if (typeof provider !== "string" || !this.options.providers().includes(provider)) {
|
|
12877
|
-
const error = "Your contact's app cannot verify this kind of identity yet";
|
|
12878
|
-
if (typeof provider === "string" && IDENTITY_PROVIDER_ID.test(provider)) await this.options.storage.update((l) => this.log(this.log(l, {
|
|
12879
|
-
type: "shared",
|
|
12880
|
-
side: "theirs",
|
|
12881
|
-
proof: id,
|
|
12882
|
-
provider
|
|
12883
|
-
}), {
|
|
12884
|
-
type: "result",
|
|
12885
|
-
side: "theirs",
|
|
12886
|
-
proof: id,
|
|
12887
|
-
provider,
|
|
12888
|
-
ok: false,
|
|
12889
|
-
error: "This app cannot verify this kind of identity yet"
|
|
12890
|
-
}));
|
|
12891
12963
|
this.send({
|
|
12892
12964
|
t: "idp-result",
|
|
12893
12965
|
id,
|
|
12894
12966
|
ok: false,
|
|
12895
|
-
error
|
|
12967
|
+
error: "Your contact's app cannot verify this kind of identity yet"
|
|
12896
12968
|
});
|
|
12897
12969
|
return;
|
|
12898
12970
|
}
|
|
@@ -12978,6 +13050,8 @@ var IdentityExchange = class {
|
|
|
12978
13050
|
/** The same, as this side's own timeline says it. */
|
|
12979
13051
|
let reason;
|
|
12980
13052
|
try {
|
|
13053
|
+
const mayReplace = (r) => r.binding.provider === binding.provider && (r.binding.subject === binding.subject || r.verified.subject === binding.subject);
|
|
13054
|
+
if (!receivedWithRoom(this.options.storage.read().received, id, mayReplace, now)) throw new Error(TOO_MANY_RECEIVED);
|
|
12981
13055
|
if (JSON.stringify(evidence ?? null).length > 16384) throw new Error("Evidence too large");
|
|
12982
13056
|
if (!verifyIdentityPresentation(binding.key, sig, id, scope, nonce, issuedAt)) throw new Error("The proof key did not sign this conversation's challenge");
|
|
12983
13057
|
if (binding.issuedAt > now + 300) throw new Error("The proof is dated in the future");
|
|
@@ -12993,6 +13067,12 @@ var IdentityExchange = class {
|
|
|
12993
13067
|
const challenge = challengeOf(l);
|
|
12994
13068
|
if (!challenge) throw new Error("Unknown or reused identity challenge");
|
|
12995
13069
|
const challenges = l.challenges.filter((c) => c.nonce !== nonce);
|
|
13070
|
+
const subject = verified?.subject;
|
|
13071
|
+
const received = verified && receivedWithRoom(l.received, id, (r) => r.binding.provider === binding.provider && r.verified.subject === subject, now);
|
|
13072
|
+
if (verified && !received) {
|
|
13073
|
+
verified = void 0;
|
|
13074
|
+
error = reason = TOO_MANY_RECEIVED;
|
|
13075
|
+
}
|
|
12996
13076
|
const logged = this.log(l, {
|
|
12997
13077
|
type: "result",
|
|
12998
13078
|
side: "theirs",
|
|
@@ -13003,7 +13083,7 @@ var IdentityExchange = class {
|
|
|
13003
13083
|
ok: !!verified,
|
|
13004
13084
|
...reason ? { error: reason } : {}
|
|
13005
13085
|
});
|
|
13006
|
-
if (!verified) return {
|
|
13086
|
+
if (!verified || !received) return {
|
|
13007
13087
|
...logged,
|
|
13008
13088
|
challenges
|
|
13009
13089
|
};
|
|
@@ -13019,7 +13099,6 @@ var IdentityExchange = class {
|
|
|
13019
13099
|
checkedAt: now,
|
|
13020
13100
|
status: "verified"
|
|
13021
13101
|
};
|
|
13022
|
-
const received = l.received.filter((r) => r.id !== id && !(r.binding.provider === binding.provider && r.verified.subject === verified.subject));
|
|
13023
13102
|
return {
|
|
13024
13103
|
...logged,
|
|
13025
13104
|
challenges,
|
|
@@ -13111,8 +13190,7 @@ var CapsRefusedError = class extends Error {
|
|
|
13111
13190
|
var IDENT = /^[a-z0-9][a-z0-9._-]*\/[0-9]+$/;
|
|
13112
13191
|
var HEX64$1 = /^[0-9a-f]{64}$/;
|
|
13113
13192
|
var SIG$4 = /^[A-Za-z0-9_-]{86}$/;
|
|
13114
|
-
var
|
|
13115
|
-
var KEY$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
13193
|
+
var KEY = /^[A-Za-z0-9_-]{43}$/;
|
|
13116
13194
|
var hexToKey = (hex) => toBase64Url(Uint8Array.from(hex.match(/../g), (b) => parseInt(b, 16)));
|
|
13117
13195
|
var keyToHex = (key) => Array.from(fromBase64Url(key), (b) => b.toString(16).padStart(2, "0")).join("");
|
|
13118
13196
|
/**
|
|
@@ -13164,14 +13242,14 @@ function parseDescriptors(value) {
|
|
|
13164
13242
|
const out = {};
|
|
13165
13243
|
const iroh = raw["iroh/1"], hyper = raw["hyperdht/1"];
|
|
13166
13244
|
if (iroh !== void 0) {
|
|
13167
|
-
if (!iroh || typeof iroh.id !== "string" || !KEY
|
|
13245
|
+
if (!iroh || typeof iroh.id !== "string" || !KEY.test(iroh.id) || iroh.relay !== void 0 && (typeof iroh.relay !== "string" || !RELAY_URL.test(iroh.relay))) return null;
|
|
13168
13246
|
out["iroh/1"] = {
|
|
13169
13247
|
id: iroh.id,
|
|
13170
13248
|
...iroh.relay !== void 0 ? { relay: iroh.relay } : {}
|
|
13171
13249
|
};
|
|
13172
13250
|
}
|
|
13173
13251
|
if (hyper !== void 0) {
|
|
13174
|
-
if (!hyper || typeof hyper.publicKey !== "string" || !KEY
|
|
13252
|
+
if (!hyper || typeof hyper.publicKey !== "string" || !KEY.test(hyper.publicKey) || hyper.relay !== void 0 && (typeof hyper.relay !== "string" || !RELAY_URL.test(hyper.relay))) return null;
|
|
13175
13253
|
out["hyperdht/1"] = {
|
|
13176
13254
|
publicKey: hyper.publicKey,
|
|
13177
13255
|
...hyper.relay !== void 0 ? { relay: hyper.relay } : {}
|
|
@@ -13315,7 +13393,7 @@ var CapsKeys = class {
|
|
|
13315
13393
|
if (body.length < 10 || body.length > 16) throw new CapsRefusedError("format", "Malformed capability record.");
|
|
13316
13394
|
const [version, rev, issued, author, versions, transports, capabilities, extensions, rawDescriptors, name, choice] = body;
|
|
13317
13395
|
const descriptors = parseDescriptors(rawDescriptors);
|
|
13318
|
-
if (version !== 1 || !Number.isSafeInteger(rev) || rev < 0 || !Number.isSafeInteger(issued) || issued <= 0 ||
|
|
13396
|
+
if (version !== 1 || !Number.isSafeInteger(rev) || rev < 0 || !Number.isSafeInteger(issued) || issued <= 0 || !isZ32Key(author) || !list$2(versions, CAPS_LIMITS.versions, (v) => Number.isSafeInteger(v) && v > 0) || !list$2(transports, CAPS_LIMITS.transports, ident) || transports.includes("dht/1") || !list$2(capabilities, CAPS_LIMITS.capabilities, ident) || !list$2(extensions, CAPS_LIMITS.extensions, ident) || !descriptors || typeof name !== "string" || utf8Encode(name).length > CAPS_LIMITS.nameBytes || choice !== void 0 && (!ident(choice) || choice === "dht/1")) throw new CapsRefusedError("format", "Malformed capability record.");
|
|
13319
13397
|
const signer = options.pinned ?? options.expected;
|
|
13320
13398
|
if (signer && author !== signer) throw new CapsRefusedError("author", "The capability record is signed by another participation key than this contact's.");
|
|
13321
13399
|
try {
|
|
@@ -14271,13 +14349,12 @@ var SESSION_RECEIVE_PENDING = {
|
|
|
14271
14349
|
frames: 1024,
|
|
14272
14350
|
bytes: 64 * SESSION_FRAME_MAX
|
|
14273
14351
|
};
|
|
14274
|
-
var KEY = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/;
|
|
14275
14352
|
var NONCE$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
14276
14353
|
var SIG$2 = /^[A-Za-z0-9_-]{86}$/;
|
|
14277
14354
|
var FINGERPRINT = /^[a-f0-9]{64}$/;
|
|
14278
14355
|
var isList = (v, maximum = 8) => Array.isArray(v) && v.length > 0 && v.length <= maximum && v.every((x) => typeof x === "string" && /^[a-z0-9/-]{1,40}$/.test(x)) && new Set(v).size === v.length;
|
|
14279
14356
|
function parseOffer(v) {
|
|
14280
|
-
if (!Array.isArray(v.versions) || v.versions.length === 0 || v.versions.length > 8 || !v.versions.every((n) => Number.isSafeInteger(n) && n > 0) || new Set(v.versions).size !== v.versions.length || !isList(v.transports) || !isList(v.capabilities, 32) ||
|
|
14357
|
+
if (!Array.isArray(v.versions) || v.versions.length === 0 || v.versions.length > 8 || !v.versions.every((n) => Number.isSafeInteger(n) && n > 0) || new Set(v.versions).size !== v.versions.length || !isList(v.transports) || !isList(v.capabilities, 32) || !isZ32Key(v.key) || typeof v.nonce !== "string" || !NONCE$1.test(v.nonce)) return null;
|
|
14281
14358
|
const extensions = isList(v.extensions, 32) ? v.extensions : void 0;
|
|
14282
14359
|
return {
|
|
14283
14360
|
t: "pair-offer",
|
|
@@ -14408,7 +14485,7 @@ var PairedSession = class {
|
|
|
14408
14485
|
}
|
|
14409
14486
|
start() {
|
|
14410
14487
|
const binding = this.options.binding;
|
|
14411
|
-
if (!(binding ? (binding.transport === "hyperdht/1" ? /^[a-f0-9]{128}$/.test(binding.context) : FINGERPRINT.test(binding.context)) && binding.identities.length === 2 && binding.identities.every((k) => FINGERPRINT.test(k)) && binding.identities[0] !== binding.identities[1] : this.options.fingerprints?.length === 2 && this.options.fingerprints.every((f) => FINGERPRINT.test(f))) || !this.offer.transports.includes(this.transport) || this.options.rendezvousKeys.some((k) => !
|
|
14488
|
+
if (!(binding ? (binding.transport === "hyperdht/1" ? /^[a-f0-9]{128}$/.test(binding.context) : FINGERPRINT.test(binding.context)) && binding.identities.length === 2 && binding.identities.every((k) => FINGERPRINT.test(k)) && binding.identities[0] !== binding.identities[1] : this.options.fingerprints?.length === 2 && this.options.fingerprints.every((f) => FINGERPRINT.test(f))) || !this.offer.transports.includes(this.transport) || this.options.rendezvousKeys.some((k) => !isZ32Key(k))) return this.fail("Invalid connection binding or unavailable transport");
|
|
14412
14489
|
this.channel.onMessage = (data) => {
|
|
14413
14490
|
if (this.stopped) return;
|
|
14414
14491
|
const size = data.length;
|
|
@@ -17723,6 +17800,10 @@ var GROUP_FILE_LIMITS = {
|
|
|
17723
17800
|
serveBytesPerDay: 1073741824,
|
|
17724
17801
|
/** Transfers a holder serves at once, all groups together. */
|
|
17725
17802
|
serveAtOnce: 3,
|
|
17803
|
+
/** Bytes a served transfer gets confirmed (or the rest of its file) for it to count as moving in `wantWaitMs`. */
|
|
17804
|
+
serveMoveBytes: 16384,
|
|
17805
|
+
/** How long a served transfer keeps its place while all are taken and another member asks: past it, the place is theirs. */
|
|
17806
|
+
servePlaceMs: 3e5,
|
|
17726
17807
|
/** File announcements a member sends to one group in a minute. */
|
|
17727
17808
|
announcePerMinute: 8,
|
|
17728
17809
|
/** File announcements of one member of a group fetched by themselves in `announceWindowMs`; past it, kept for a Download. */
|
|
@@ -17759,6 +17840,11 @@ var GROUP_FILE_LIMITS = {
|
|
|
17759
17840
|
/** File sessions opening at once, and open at once, all groups together. */
|
|
17760
17841
|
sessionsOpening: 2,
|
|
17761
17842
|
sessionsOpen: 4,
|
|
17843
|
+
/**
|
|
17844
|
+
* What a transfer must bring in `wantWaitMs` (or the rest of its file, when less) to count as moving: a holder that
|
|
17845
|
+
* sends a few bytes at a time is left as one that stalls.
|
|
17846
|
+
*/
|
|
17847
|
+
wantMoveBytes: 16384,
|
|
17762
17848
|
/** The longest file name and type kept from a description. */
|
|
17763
17849
|
nameChars: 255,
|
|
17764
17850
|
mimeChars: 255
|
|
@@ -18541,6 +18627,24 @@ var GhostLink = class {
|
|
|
18541
18627
|
/** Edit frames the contact may send per window; the rest go unconfirmed and come again. */
|
|
18542
18628
|
editsReceived = new RateWindow(30, EDIT_RATE_WINDOW_MS);
|
|
18543
18629
|
wakeReceived = new RateWindow(6, 6e4);
|
|
18630
|
+
/**
|
|
18631
|
+
* The contact's name and picture, each saved when it changes: said once a session and when changed, so a handful a
|
|
18632
|
+
* minute each. Past that only the newest waits, read once the window has room again.
|
|
18633
|
+
*/
|
|
18634
|
+
peerSaid = {
|
|
18635
|
+
"paired-nick": {
|
|
18636
|
+
window: new RateWindow(6, 6e4),
|
|
18637
|
+
read: null,
|
|
18638
|
+
timer: null
|
|
18639
|
+
},
|
|
18640
|
+
"paired-avatar": {
|
|
18641
|
+
window: new RateWindow(6, 6e4),
|
|
18642
|
+
read: null,
|
|
18643
|
+
timer: null
|
|
18644
|
+
}
|
|
18645
|
+
};
|
|
18646
|
+
/** Identity-proof frames the contact may send per window; the rest are dropped before they are read. */
|
|
18647
|
+
identityReceived = new RateWindow(40, IDENTITY_FRAME_WINDOW_MS);
|
|
18544
18648
|
livenessTimer = null;
|
|
18545
18649
|
peerAnswersPings = false;
|
|
18546
18650
|
/** When the ping awaiting its pong went, and the round trip last measured on this session. */
|
|
@@ -20009,8 +20113,9 @@ var GhostLink = class {
|
|
|
20009
20113
|
}
|
|
20010
20114
|
/**
|
|
20011
20115
|
* Ends the idle live session on this transport and lets its listener go, for a chat in use that found every one
|
|
20012
|
-
* taken. The contact hears a goodbye
|
|
20013
|
-
*
|
|
20116
|
+
* taken. The contact hears a goodbye that says so (`yield`, `peerYielded`), rather than finding out when its pings go
|
|
20117
|
+
* unanswered, and does not watch for this app as for one that quit; the record then lists the transport undescribed,
|
|
20118
|
+
* so it stops dialling here. The chat goes on over the DHT (or WebRTC),
|
|
20014
20119
|
* and takes a listener again the same way once it is in use. False when the session may not end (see above).
|
|
20015
20120
|
*/
|
|
20016
20121
|
async yieldEndpoint(transport, idleMs) {
|
|
@@ -20022,7 +20127,10 @@ var GhostLink = class {
|
|
|
20022
20127
|
this.yielding = true;
|
|
20023
20128
|
try {
|
|
20024
20129
|
try {
|
|
20025
|
-
this.channel?.send(JSON.stringify({
|
|
20130
|
+
this.channel?.send(JSON.stringify({
|
|
20131
|
+
t: "paired-bye",
|
|
20132
|
+
yield: true
|
|
20133
|
+
}));
|
|
20026
20134
|
} catch {}
|
|
20027
20135
|
await new Promise((resolve) => setTimeout(resolve, YIELD_BYE_MS));
|
|
20028
20136
|
this.disconnect();
|
|
@@ -22072,7 +22180,10 @@ var GhostLink = class {
|
|
|
22072
22180
|
return;
|
|
22073
22181
|
}
|
|
22074
22182
|
if (frame?.t === "paired-bye") {
|
|
22075
|
-
if (paired.state.status === "ready")
|
|
22183
|
+
if (paired.state.status === "ready") {
|
|
22184
|
+
if (frame.yield === true) this.peerYielded(channel);
|
|
22185
|
+
else this.peerDeparted(channel);
|
|
22186
|
+
}
|
|
22076
22187
|
return;
|
|
22077
22188
|
}
|
|
22078
22189
|
if (!frame || typeof frame !== "object") return;
|
|
@@ -22151,25 +22262,15 @@ var GhostLink = class {
|
|
|
22151
22262
|
return;
|
|
22152
22263
|
}
|
|
22153
22264
|
if (typeof frame?.t === "string" && frame.t.startsWith("idp-") && this.identitySupport) {
|
|
22154
|
-
await this.options.events?.onIdentityProof?.(frame);
|
|
22265
|
+
if (this.identityReceived.take()) await this.options.events?.onIdentityProof?.(frame);
|
|
22155
22266
|
return;
|
|
22156
22267
|
}
|
|
22157
22268
|
if (typeof frame?.t === "string" && frame.t.startsWith("proof-") && this.peerProofSupport) {
|
|
22158
22269
|
await this.options.events?.onPeerProof?.(frame);
|
|
22159
22270
|
return;
|
|
22160
22271
|
}
|
|
22161
|
-
if (frame?.t === "paired-avatar") {
|
|
22162
|
-
|
|
22163
|
-
if (avatar !== void 0) this.options.events?.onPeerAvatar?.(avatar);
|
|
22164
|
-
return;
|
|
22165
|
-
}
|
|
22166
|
-
if (frame?.t === "paired-nick") {
|
|
22167
|
-
const nick = sanitizeNick(frame.n);
|
|
22168
|
-
if (typeof frame.n === "string") this.options.events?.onPeerNick?.(nick ?? null);
|
|
22169
|
-
if (nick !== this.peerNickOverride) {
|
|
22170
|
-
this.peerNickOverride = nick ?? null;
|
|
22171
|
-
this.options.events?.onPresence?.(this.presence);
|
|
22172
|
-
}
|
|
22272
|
+
if (frame?.t === "paired-avatar" || frame?.t === "paired-nick") {
|
|
22273
|
+
this.peerSays(channel, frame.t, frame);
|
|
22173
22274
|
return;
|
|
22174
22275
|
}
|
|
22175
22276
|
if (frame?.t === "paired-capabilities") {
|
|
@@ -22526,6 +22627,18 @@ var GhostLink = class {
|
|
|
22526
22627
|
this.peerLost("bye");
|
|
22527
22628
|
}
|
|
22528
22629
|
/**
|
|
22630
|
+
* The contact gave this session's listener up to another chat (`yieldEndpoint`): its app is still there, and its
|
|
22631
|
+
* record now lists the transport undescribed, so there is nothing to dial and no return to watch for. The session
|
|
22632
|
+
* ends now, and the chat reads the contact at its own pace; the contact dials once it takes a listener back. Taken
|
|
22633
|
+
* as a goodbye, it was watched as an app that quit: 89 reads of its key in the 2 minutes after a yield on the
|
|
22634
|
+
* Desktop, against 6 at the background pace (bug hunt, 2026-10-15).
|
|
22635
|
+
*/
|
|
22636
|
+
peerYielded(channel) {
|
|
22637
|
+
if (this.channel !== channel || this.stopped) return;
|
|
22638
|
+
traceLink(this.myPubKeyZ32, "peer-yielded", {});
|
|
22639
|
+
this.disconnect();
|
|
22640
|
+
}
|
|
22641
|
+
/**
|
|
22529
22642
|
* A packet of the contact's not seen before, fresh, while nothing is live, soon after a live session ended: it is back
|
|
22530
22643
|
* (its app restarted), so the wait that the attempts since built up is over, and the next dial goes now. Once per
|
|
22531
22644
|
* loss: a contact that is there but unreachable publishes often, and the wait between attempts is what spares the
|
|
@@ -22620,6 +22733,57 @@ var GhostLink = class {
|
|
|
22620
22733
|
offered.woke = true;
|
|
22621
22734
|
if (!this.dialing) setTimeout(() => this.maybeKnockEarly(offered.epoch), 0);
|
|
22622
22735
|
}
|
|
22736
|
+
/**
|
|
22737
|
+
* A name or picture the contact said, once it is one (reading it costs little; saving it is what counts): past the
|
|
22738
|
+
* window the newest waits for room on this session, so the last word still counts.
|
|
22739
|
+
*/
|
|
22740
|
+
peerSays(channel, kind, frame) {
|
|
22741
|
+
let read;
|
|
22742
|
+
if (kind === "paired-avatar") {
|
|
22743
|
+
const avatar = sanitizeAvatar(frame.a);
|
|
22744
|
+
if (avatar === void 0) return;
|
|
22745
|
+
read = () => this.options.events?.onPeerAvatar?.(avatar);
|
|
22746
|
+
} else {
|
|
22747
|
+
const nick = sanitizeNick(frame.n) ?? null, said = typeof frame.n === "string";
|
|
22748
|
+
read = () => {
|
|
22749
|
+
if (said) this.options.events?.onPeerNick?.(nick);
|
|
22750
|
+
if (nick !== this.peerNickOverride) {
|
|
22751
|
+
this.peerNickOverride = nick;
|
|
22752
|
+
this.options.events?.onPresence?.(this.presence);
|
|
22753
|
+
}
|
|
22754
|
+
};
|
|
22755
|
+
}
|
|
22756
|
+
const held = this.peerSaid[kind];
|
|
22757
|
+
if (!held.timer && held.window.take()) {
|
|
22758
|
+
read();
|
|
22759
|
+
return;
|
|
22760
|
+
}
|
|
22761
|
+
held.read = read;
|
|
22762
|
+
if (held.timer) return;
|
|
22763
|
+
const due = () => {
|
|
22764
|
+
held.timer = null;
|
|
22765
|
+
if (this.channel !== channel || !held.read) {
|
|
22766
|
+
held.read = null;
|
|
22767
|
+
return;
|
|
22768
|
+
}
|
|
22769
|
+
if (!held.window.take()) {
|
|
22770
|
+
held.timer = setTimeout(due, held.window.wait());
|
|
22771
|
+
return;
|
|
22772
|
+
}
|
|
22773
|
+
const next = held.read;
|
|
22774
|
+
held.read = null;
|
|
22775
|
+
next();
|
|
22776
|
+
};
|
|
22777
|
+
held.timer = setTimeout(due, held.window.wait());
|
|
22778
|
+
}
|
|
22779
|
+
/** What the contact said of itself and was still waiting goes with the session: the next one says it again. */
|
|
22780
|
+
dropPeerSaid() {
|
|
22781
|
+
for (const said of Object.values(this.peerSaid)) {
|
|
22782
|
+
if (said.timer) clearTimeout(said.timer);
|
|
22783
|
+
said.timer = null;
|
|
22784
|
+
said.read = null;
|
|
22785
|
+
}
|
|
22786
|
+
}
|
|
22623
22787
|
/** A ping on the session right after a wake, with `PONG_WAIT_MS` for its answer: none, and the session is dead. */
|
|
22624
22788
|
probeAfterWake(channel) {
|
|
22625
22789
|
if (!this.peerAnswersPings || this.paired?.state.status !== "ready") return;
|
|
@@ -22662,6 +22826,7 @@ var GhostLink = class {
|
|
|
22662
22826
|
this.channel = this.httpHost = this.httpClient = this.files = null;
|
|
22663
22827
|
this.peerServicesOverride = null;
|
|
22664
22828
|
this.peerNickOverride = null;
|
|
22829
|
+
this.dropPeerSaid();
|
|
22665
22830
|
this.sessionCapabilities.reset();
|
|
22666
22831
|
this.typingSender.reset();
|
|
22667
22832
|
this.typingReceiver.clear();
|
|
@@ -23323,10 +23488,14 @@ function decodeSvcbRecords(dnsPacket) {
|
|
|
23323
23488
|
}
|
|
23324
23489
|
return records;
|
|
23325
23490
|
}
|
|
23326
|
-
/**
|
|
23491
|
+
/**
|
|
23492
|
+
* The homeserver a Pubky key's packet names: the z-base-32 key its `_pubky` record points at, or undefined. The target
|
|
23493
|
+
* is read next as a key (`pubkyRecords` checks the homeserver's packet against it), so only a canonical one names a
|
|
23494
|
+
* homeserver; a respelled one is none, not a lookup that fails as "no records".
|
|
23495
|
+
*/
|
|
23327
23496
|
function pubkyHomeserverOf(dnsPacket, userZ32) {
|
|
23328
23497
|
const record = decodeSvcbRecords(dnsPacket).find((r) => r.name === `_pubky.${userZ32}` || r.name === "_pubky");
|
|
23329
|
-
return record &&
|
|
23498
|
+
return record && isZ32Key(record.target) ? record.target : void 0;
|
|
23330
23499
|
}
|
|
23331
23500
|
/**
|
|
23332
23501
|
* The homeserver's web endpoint from its own packet: of the HTTPS/SVCB records at its root, the lowest priority one
|
|
@@ -25357,7 +25526,7 @@ function shortAtprotoDid(did) {
|
|
|
25357
25526
|
}
|
|
25358
25527
|
/** The record key of a proof: its proof key (z-base-32, already a valid record key), so removal finds it. */
|
|
25359
25528
|
function atprotoProofRkey(proofKey) {
|
|
25360
|
-
if (
|
|
25529
|
+
if (!isZ32Key(proofKey)) throw new Error("Invalid proof key");
|
|
25361
25530
|
return proofKey;
|
|
25362
25531
|
}
|
|
25363
25532
|
var fragment = (id, did, name) => id === `#${name}` || id === `${did}#${name}`;
|
|
@@ -26833,6 +27002,28 @@ var fileAad = (f) => JSON.stringify([
|
|
|
26833
27002
|
f.ts
|
|
26834
27003
|
]);
|
|
26835
27004
|
var isFileBox = isSealedBox(MAX_FILE_BOX);
|
|
27005
|
+
/** The author's name (`MAX_NICK_LENGTH` characters of up to four bytes each), sealed; signed apart from `xs` (`ns`). */
|
|
27006
|
+
var MAX_NICK_BOX = Math.ceil(1088 / 3) + 4;
|
|
27007
|
+
var nickAad = (f) => JSON.stringify([
|
|
27008
|
+
"ghostly-group/1 nick",
|
|
27009
|
+
f.g,
|
|
27010
|
+
f.e,
|
|
27011
|
+
f.s,
|
|
27012
|
+
f.n,
|
|
27013
|
+
f.ts
|
|
27014
|
+
]);
|
|
27015
|
+
var nickSigned = (f, nk) => utf8Encode(JSON.stringify([
|
|
27016
|
+
"ghostly-group/1 nick",
|
|
27017
|
+
f.g,
|
|
27018
|
+
f.e,
|
|
27019
|
+
f.s,
|
|
27020
|
+
f.n,
|
|
27021
|
+
f.ts,
|
|
27022
|
+
nk.n,
|
|
27023
|
+
nk.c
|
|
27024
|
+
]));
|
|
27025
|
+
var isNickBox = isSealedBox(MAX_NICK_BOX);
|
|
27026
|
+
var isSignature = (v) => typeof v === "string" && v.length === 86 && B64$1.test(v);
|
|
26836
27027
|
var B64$1 = /^[A-Za-z0-9_-]*$/;
|
|
26837
27028
|
var secretAad$1 = (g, e, member) => JSON.stringify([
|
|
26838
27029
|
"ghostly-group/1 secret",
|
|
@@ -26972,7 +27163,7 @@ var ownKey = (f) => `${f.e}:${f.n}`;
|
|
|
26972
27163
|
/** What a frame weighs in a log, roughly: its boxes plus the fixed fields around them. */
|
|
26973
27164
|
var frameKey$1 = (f) => `${f.s}:${f.e}:${f.n}`;
|
|
26974
27165
|
/** What a kept frame counts for against `GROUP_LIMITS.relayBytes`. */
|
|
26975
|
-
var frameBytes = (f) => f.c.length + (f.m?.c.length ?? 0) + (f.r?.c.length ?? 0) + (f.sc?.c.length ?? 0) + (f.fl?.c.length ?? 0) + 400;
|
|
27166
|
+
var frameBytes = (f) => f.c.length + (f.m?.c.length ?? 0) + (f.r?.c.length ?? 0) + (f.sc?.c.length ?? 0) + (f.fl?.c.length ?? 0) + (f.nk?.c.length ?? 0) + 400;
|
|
26976
27167
|
/** Only the fields an edit frame has, as `clean` does for a message. */
|
|
26977
27168
|
var cleanEdit = (f) => ({
|
|
26978
27169
|
t: GROUP_EDIT_FRAME,
|
|
@@ -27016,7 +27207,14 @@ function clean(f) {
|
|
|
27016
27207
|
c: f.fl.c
|
|
27017
27208
|
} } : {},
|
|
27018
27209
|
...readFirstPlace(f.o, f.e) ? { o: readFirstPlace(f.o, f.e) } : {},
|
|
27019
|
-
...typeof f.xs === "string" && f.xs.length === 86 && B64$1.test(f.xs) ? { xs: f.xs } : {}
|
|
27210
|
+
...typeof f.xs === "string" && f.xs.length === 86 && B64$1.test(f.xs) ? { xs: f.xs } : {},
|
|
27211
|
+
...isNickBox(f.nk) && isSignature(f.ns) ? {
|
|
27212
|
+
nk: {
|
|
27213
|
+
n: f.nk.n,
|
|
27214
|
+
c: f.nk.c
|
|
27215
|
+
},
|
|
27216
|
+
ns: f.ns
|
|
27217
|
+
} : {}
|
|
27020
27218
|
};
|
|
27021
27219
|
}
|
|
27022
27220
|
/** Whether the member whose sync this is lacks a frame: above what it has from that sender, or one it names as missing. */
|
|
@@ -27086,6 +27284,8 @@ var GroupSession = class {
|
|
|
27086
27284
|
asked = /* @__PURE__ */ new Map();
|
|
27087
27285
|
/** The signed leave of each member I last passed on, kept for an admin that was away (`byesHeld`). In memory only. */
|
|
27088
27286
|
byesPassed = /* @__PURE__ */ new Map();
|
|
27287
|
+
/** Member → when the name I hold for it was said: its message's time, or the moment an edge said it (`heardName`). In memory only. */
|
|
27288
|
+
nickAt = /* @__PURE__ */ new Map();
|
|
27089
27289
|
queue = Promise.resolve();
|
|
27090
27290
|
/** One metadata frame that names a commit or an epoch I do not have yet: tried again when the chain moves. */
|
|
27091
27291
|
pendingMeta;
|
|
@@ -27444,7 +27644,7 @@ var GroupSession = class {
|
|
|
27444
27644
|
rewelcome(memberKey) {
|
|
27445
27645
|
return this.serialize(async () => {
|
|
27446
27646
|
this.requireAdmin();
|
|
27447
|
-
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey) throw new Error("Not a member");
|
|
27647
|
+
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey || !isZ32Key(memberKey)) throw new Error("Not a member");
|
|
27448
27648
|
const chain = this.state.chain;
|
|
27449
27649
|
let admitted = chain.length - 1;
|
|
27450
27650
|
while (admitted >= 0 && !(chain[admitted].k === "add" && chain[admitted].s === memberKey)) admitted--;
|
|
@@ -27526,7 +27726,7 @@ var GroupSession = class {
|
|
|
27526
27726
|
await this.persist();
|
|
27527
27727
|
for (const [key] of previous.m) {
|
|
27528
27728
|
if (key === this.myKey) continue;
|
|
27529
|
-
const member = rosterHas(roster, key);
|
|
27729
|
+
const member = rosterHas(roster, key) && isZ32Key(key);
|
|
27530
27730
|
this.hooks.send(key, {
|
|
27531
27731
|
t: "group-commit",
|
|
27532
27732
|
g: this.id,
|
|
@@ -27704,6 +27904,8 @@ var GroupSession = class {
|
|
|
27704
27904
|
...extra.file ? { fl: encryptText(key, fileAad(header), JSON.stringify(extra.file)) } : {},
|
|
27705
27905
|
...o ? { o } : {}
|
|
27706
27906
|
};
|
|
27907
|
+
const nick = sanitizeNick(this.hooks.nick?.());
|
|
27908
|
+
const nk = nick === void 0 ? void 0 : encryptText(key, nickAad(header), nick);
|
|
27707
27909
|
return {
|
|
27708
27910
|
t: "group-msg",
|
|
27709
27911
|
...unsigned,
|
|
@@ -27712,7 +27914,11 @@ var GroupSession = class {
|
|
|
27712
27914
|
xs: toBase64Url(sign(messageSignedWhole({
|
|
27713
27915
|
...unsigned,
|
|
27714
27916
|
...boxes
|
|
27715
|
-
}), this.identity.seed))
|
|
27917
|
+
}), this.identity.seed)),
|
|
27918
|
+
...nk ? {
|
|
27919
|
+
nk,
|
|
27920
|
+
ns: toBase64Url(sign(nickSigned(header, nk), this.identity.seed))
|
|
27921
|
+
} : {}
|
|
27716
27922
|
};
|
|
27717
27923
|
}
|
|
27718
27924
|
/** Into my bounded log, for members who missed it. */
|
|
@@ -27906,10 +28112,12 @@ var GroupSession = class {
|
|
|
27906
28112
|
setNick(key, nick) {
|
|
27907
28113
|
return this.serialize(async () => {
|
|
27908
28114
|
const clean = sanitizeNick(nick);
|
|
28115
|
+
this.nickAt.set(key, this.clock());
|
|
27909
28116
|
if ((this.state.nicks[key] ?? void 0) === clean) return;
|
|
27910
28117
|
if (clean) this.state.nicks[key] = clean;
|
|
27911
28118
|
else delete this.state.nicks[key];
|
|
27912
|
-
await this.persist();
|
|
28119
|
+
if (key === this.myKey) await this.persist();
|
|
28120
|
+
else this.persistSoon();
|
|
27913
28121
|
this.hooks.changed();
|
|
27914
28122
|
});
|
|
27915
28123
|
}
|
|
@@ -28141,6 +28349,7 @@ var GroupSession = class {
|
|
|
28141
28349
|
const key = epochKeys(secret, this.id, raw.e).message;
|
|
28142
28350
|
const text = decryptText(key, messageAad$1(raw), raw.nn, raw.c);
|
|
28143
28351
|
if (text === null) return;
|
|
28352
|
+
if (this.heardName(key, raw)) this.hooks.changed();
|
|
28144
28353
|
const firstFrame = first && {
|
|
28145
28354
|
...raw,
|
|
28146
28355
|
e: first.e,
|
|
@@ -28254,6 +28463,26 @@ var GroupSession = class {
|
|
|
28254
28463
|
return false;
|
|
28255
28464
|
}
|
|
28256
28465
|
}
|
|
28466
|
+
/**
|
|
28467
|
+
* The author's name in a message (`nk`), when the author's signature over it (`ns`) holds: any copy, handed on or
|
|
28468
|
+
* not, whole or not, since a member handing it on can only drop it. Taken only from a message newer than the one it
|
|
28469
|
+
* last came in, or than the moment an edge last said it (`setNick`), so a catch-up's older pages never bring back a
|
|
28470
|
+
* name the member changed since. Whether the name I hold changed.
|
|
28471
|
+
*/
|
|
28472
|
+
heardName(key, raw) {
|
|
28473
|
+
if (!isNickBox(raw.nk) || !isSignature(raw.ns) || raw.ts <= (this.nickAt.get(raw.s) ?? 0)) return false;
|
|
28474
|
+
try {
|
|
28475
|
+
if (!verify(fromBase64Url(raw.ns), nickSigned(raw, raw.nk), publicKeyFromZ32(raw.s))) return false;
|
|
28476
|
+
} catch {
|
|
28477
|
+
return false;
|
|
28478
|
+
}
|
|
28479
|
+
const nick = sanitizeNick(decryptText(key, nickAad(raw), raw.nk.n, raw.nk.c));
|
|
28480
|
+
if (nick === void 0) return false;
|
|
28481
|
+
this.nickAt.set(raw.s, raw.ts);
|
|
28482
|
+
if (this.state.nicks[raw.s] === nick) return false;
|
|
28483
|
+
this.state.nicks[raw.s] = nick;
|
|
28484
|
+
return true;
|
|
28485
|
+
}
|
|
28257
28486
|
openMentions(key, raw, text, everyone) {
|
|
28258
28487
|
if (!isMentionsBox(raw.m)) return [];
|
|
28259
28488
|
const plain = decryptText(key, mentionsAad(raw), raw.m.n, raw.m.c);
|
|
@@ -28445,7 +28674,7 @@ var GroupSession = class {
|
|
|
28445
28674
|
await this.replayWaiting();
|
|
28446
28675
|
}
|
|
28447
28676
|
async receiveSync(from, frame) {
|
|
28448
|
-
if (!rosterHas(this.roster, from) || !Number.isSafeInteger(frame.e) || frame.e < 0 || typeof frame.h !== "string") return;
|
|
28677
|
+
if (!rosterHas(this.roster, from) || !isZ32Key(from) || !Number.isSafeInteger(frame.e) || frame.e < 0 || typeof frame.h !== "string") return;
|
|
28449
28678
|
let answered = this.syncsAnswered.get(from);
|
|
28450
28679
|
if (!answered) this.syncsAnswered.set(from, answered = new RateWindow(GROUP_LIMITS.syncAnswers, GROUP_LIMITS.syncWindowMs, () => this.hooks.clock?.() ?? Date.now()));
|
|
28451
28680
|
if (!answered.take()) return;
|
|
@@ -30010,7 +30239,7 @@ var CommunitySession = class {
|
|
|
30010
30239
|
commit
|
|
30011
30240
|
});
|
|
30012
30241
|
if (FRESH.has(kind)) {
|
|
30013
|
-
for (const [key] of roster) if (key !== this.myKey) this.hooks.addressed(key, {
|
|
30242
|
+
for (const [key] of roster) if (key !== this.myKey && isZ32Key(key)) this.hooks.addressed(key, {
|
|
30014
30243
|
t: "group-secret",
|
|
30015
30244
|
v: 2,
|
|
30016
30245
|
g: this.id,
|
|
@@ -30057,7 +30286,7 @@ var CommunitySession = class {
|
|
|
30057
30286
|
rewelcome(memberKey) {
|
|
30058
30287
|
return this.serialize(async () => {
|
|
30059
30288
|
this.requireMember();
|
|
30060
|
-
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey) throw new Error("Not a member");
|
|
30289
|
+
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey || !isZ32Key(memberKey)) throw new Error("Not a member");
|
|
30061
30290
|
for (let i = this.state.chain.length - 1; i >= 0; i--) {
|
|
30062
30291
|
const c = this.state.chain[i];
|
|
30063
30292
|
if (c.k === "add" && c.s === memberKey) return this.welcomeFor(memberKey, communityCommitHash(c));
|
|
@@ -30123,7 +30352,10 @@ var CommunitySession = class {
|
|
|
30123
30352
|
seedB64: entry?.seedB64 ?? ""
|
|
30124
30353
|
};
|
|
30125
30354
|
await this.persist();
|
|
30126
|
-
if (entry) for (const key of this.others)
|
|
30355
|
+
if (entry) for (const key of this.others) {
|
|
30356
|
+
const frame = this.entryFrame(key);
|
|
30357
|
+
if (frame) this.hooks.addressed(key, frame);
|
|
30358
|
+
}
|
|
30127
30359
|
this.hooks.changed();
|
|
30128
30360
|
return this.state.entry.key;
|
|
30129
30361
|
});
|
|
@@ -30739,7 +30971,7 @@ var CommunitySession = class {
|
|
|
30739
30971
|
for (const { from, frame } of ready) await this.receiveMessage(from, frame);
|
|
30740
30972
|
}
|
|
30741
30973
|
async receiveSync(from, frame) {
|
|
30742
|
-
if (!this.isRecentMember(from) || !Number.isSafeInteger(frame.e) || typeof frame.h !== "string") return;
|
|
30974
|
+
if (!this.isRecentMember(from) || !isZ32Key(from) || !Number.isSafeInteger(frame.e) || typeof frame.h !== "string") return;
|
|
30743
30975
|
let answered = this.syncsAnswered.get(from);
|
|
30744
30976
|
if (!answered) this.syncsAnswered.set(from, answered = new RateWindow(COMMUNITY_LIMITS.syncAnswers, COMMUNITY_LIMITS.syncWindowMs, () => this.hooks.clock?.() ?? Date.now()));
|
|
30745
30977
|
if (!answered.take()) return;
|
|
@@ -30854,7 +31086,7 @@ var CommunitySession = class {
|
|
|
30854
31086
|
/** The current entry seed sealed to a member, when I hold it: sealed once per seed, not on every sync answer. */
|
|
30855
31087
|
entryFrame(to) {
|
|
30856
31088
|
const { key, seedB64 } = this.state.entry;
|
|
30857
|
-
if (!key || !seedB64) return null;
|
|
31089
|
+
if (!key || !seedB64 || !isZ32Key(to)) return null;
|
|
30858
31090
|
const sealed = this.sealedEntries.get(to);
|
|
30859
31091
|
if (sealed?.seedB64 === seedB64 && sealed.frame.x === key) return { ...sealed.frame };
|
|
30860
31092
|
const frame = {
|
|
@@ -32077,6 +32309,6 @@ function appStoreDecision(held, read) {
|
|
|
32077
32309
|
return read.digest === held.digest ? "same" : "equivocation";
|
|
32078
32310
|
}
|
|
32079
32311
|
//#endregion
|
|
32080
|
-
export { decodeCommunityLink as $, setUpdateMessage as $_, parsePaymentNetworks as $a, signRelayPayload as $b, UPGRADE_CAPABILITY as $c, EDITED_FRAME as $d, wireReply as $f, NO_ATTEMPTS as $g, callRtcConfig as $h, homeserverWebEndpoint as $i, IDENTITY_CHECK_UNAVAILABLE as $l, DHT_POLL_INTERVALS as $m, txHash as $n, readBeacon as $o, canonicalJsonBytes as $p, staticDidDocument as $r, WAKE_INTERVAL_MS as $s, MAX_GROUP_META_BODY as $t, automaticTransport as $u, deviceEchoNonce as $v, turnSignedMessage as $y, isAppLicense as A, openHandoffPiece as A_, EARLY_DIAL_JOIN_MS as Aa, readRelayBody as Ab, appCloseFrame as Ac, baseMime as Ad, REACTED_FRAME as Af, HANDOFF_BUSY as Ag, LIMITS as Ah, isWalletNetwork as Ai, normalizeDomain as Al, newEpochSecret as Am, sshSignCommand as An, readGroupSignal as Ao, APP_NAME as Ap, DID_FILE_MAX_BYTES as Ar, typingActivity as As, GROUP_LIMITS as At, STORAGE_ROOT as Au, INVITE_HRP as Av, randomBytes as Ax, TURN_SEALED_BYTES as Ay, groupTypingEpoch as B, readHandoffPake as B_, PAIRING_RETRY_MS as Ba, heldBackError as Bb, BUTTONS_CAPABILITY as Bc, voiceLevelsOf as Bd, reactionFrame as Bf, HANDOFF_LATER_BYTES as Bg, DATA_CHANNEL_LABEL as Bh, BITCOIN_NETWORKS as Bi, CAPS_LIMITS as Bl, GATHER_ATTEMPTS as Bm, decodeBase64 as Bn, COMMUNITY_TOPOLOGY as Bo, isAppKey as Bp, didJwsAlg as Br, nextPinNumber as Bs, GROUP_EDIT_TEXT_BYTES as Bt, storageProofPath as Bu, inviteLink as Bv, __toCommonJS as Bx, readTurnBody as By, APP_VIEWS as C, handoffRetryAfter as C_, BLOCKED_DIAL_WAIT_MS as Ca, SLOW_DEMOTE_MS as Cb, APP_PEER_OPEN_MAX as Cc, safeBlobType as Cd, FORWARD_LIMITS as Cf, encodeServices as Cg, resolveTargetUrl as Ch, TEST_USDT_FAUCET_AMOUNT as Ci, decodeDnsResponse as Cl, GROUP_PROFILE as Cm, SSH_PUBLIC_KEY_MAX as Cn, SIGNALS_PER_MINUTE as Co, usageLeft as Cp, parseAtprotoDidKey as Cr, TYPING_STATUS_MAX as Cs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ct, IDENTITY_TIMELINE_MAX as Cu, DEVICE_INVITE_OWN_DEVICE as Cv, stripHidden as Cx, TURN_BODY_BYTES as Cy, buildAppBundle as D, handoffVersions as D_, DEMOTE_AFTER_FAILURES as Da, WRITE_FIRST_MS as Db, APP_SEND_LIMIT as Dc, RECORDING_TYPES as Dd, COMMUNITY_REACTION_FRAME as Df, servicesToWire as Dg, webLocalFetch as Dh, assertTokenUnits as Di, encodeDnsQuery as Dl, edgeParams as Dm, sameSshKey as Dn, SIGNAL_PROVEN_MS as Do, heardTime as Dp, verifyAtprotoRecordProof as Dr, parseTypingActivity as Ds, groupWakes as Dt, PROOF_CAPABILITY as Du, encodeDeviceInvite as Dv, fromBase64 as Dx, TURN_NAME_BYTES as Dy, assembleAppBundle as E, handoffVerifiedMessage as E_, CROSSED_WAIT_MS as Ea, WATCH_SHARE as Eb, APP_RESUME_GRACE_MS as Ec, PLAYABLE_AUDIO as Ed, readForwarded as Ef, servicesFromWire as Eg, viewerResponseHeaders as Eh, arkAddressPrefix as Ei, domainWellKnownFile as El, decryptText as Em, parseSshSignature as En, SIGNAL_HOLD_MS as Eo, claimedTime as Ep, unsignedCommitBytes as Er, TypingSender as Es, groupWakeFrame as Et, PROOF_ADAPTERS as Eu, deviceInviteJoinerParams as Ev, concatBytes as Ex, TURN_MAX as Ey, readAppBundleAsync as F, readHandoffDone as F_, LIVENESS_MISSED_PINGS as Fa, BREAKER_MAX_MS as Fb, isAppVersion as Fc, parseVoiceMeta as Fd, parseReactedFrame as Ff, HANDOFF_DONE as Fg, encodeChunk as Fh, SPARK_PROVIDER as Fi, txtValue as Fl, sha256Hex as Fm, BIP322_REVISION as Fn, meshHubs as Fo, appRefPublisher as Fp, DID_METHODS as Fr, PINNED_FRAME as Fs, chainPieces as Ft, proofCapability as Fu, createChatInvite as Fv, utf8Encode as Fx, TurnRecordError as Fy, CommunitySession as G, sealHandoffPiece as G_, REDESCRIBED_GRACE_MS as Ga, PacketTooLargeError as Gb, KNOWN_SESSION_CAPABILITIES as Gc, isPlayableVideoType as Gd, wireReaction as Gf, HANDOFF_PIECE_BYTES as Gg, offerIsFresh as Gh, isPubkyProofFolder as Gi, CapsRefusedError as Gl, DIRECT_EVIDENCE_MS as Gm, decodeAnyBitcoinAddress as Gn, hubRank as Go, readAppRevocations as Gp, didWebFileUrl as Gr, pinNumberHolds as Gs, parseCommunityEdit as Gt, ringAuthorization as Gu, readInviteCode as Gv, signTurnRelease as Gy, sealGroupTyping as H, readHandoffTurnFrame as H_, RACE_ANSWERED_MS as Ha, withRequestOptions as Hb, EDIT_CAPABILITY as Hc, PLAYABLE_VIDEO as Hd, readDhtReactions as Hf, HANDOFF_MANIFEST as Hg, RTC_SIGNAL_MAX_AGE_MS as Hh, PUBKY_PROOF_MAX_BYTES as Hi, CAPS_REFRESH_MS as Hl, OFFER_HOST_GATHER_MS as Hm, BitcoinAddressError as Hn, beaconRecords as Ho, isAppSignature as Hp, didWebDocumentUrl as Hr, parsePinnedFrame as Hs, communityEditFrame as Ht, verifyNostrProof as Hu, inviteQrSegments as Hv, sealTurnBody as Hy, sha256Paced as I, readHandoffFileFrame as I_, LIVENESS_PING_MS as Ia, BREAKER_THRESHOLD as Ib, isChatAppId as Ic, recordingMime as Id, parseReactionFrame as If, HANDOFF_FILE_MISSING as Ig, encodeControl as Ih, isSparkAddress as Ii, validDomainRecord as Il, ANSWER_REFUSED_REDIALS as Im, MessageRefusal as In, meshRendezvous as Io, appRevocationId as Ip, DidError as Ir, PIN_CLOCK_SKEW_MS as Is, frameBytes as It, proofHash as Iu, createLink as Iv, __commonJSMin as Ix, encodeTurnFields as Iy, communityGroupId as J, SET_UPDATE as J_, SWITCH_RETIRE_MS as Ja, measureRecords as Jb, SERVICES_CAPABILITY as Jc, IMAGE_LIMITS as Jd, REPLY_LIMITS as Jf, HANDOFF_REQUEST as Jg, CALL_SIGNAL_MAX_AGE_MS as Jh, pubkyProofCapability as Ji, dialDescriptors as Jl, DirectPathWatch as Jm, decodeWitness as Jn, mergeBeacon as Jo, signAppRevocation as Jp, parseDid as Jr, DEVICE_WAKE_TTL_SECONDS as Js, MENTION_LIMITS as Jt, validRingKey as Ju, DEVICE_ECHO_FRAME as Jv, turnName as Jy, GROUP_READ_NOTE_COMMUNITY as K, sortParts as K_, RESUME_WAIT_MS as Ka, RELAY_PAYLOAD_MAX_BYTES as Kb, PIN_CAPABILITY as Kc, isVideoMime as Kd, PAIRED_REPLY_AUTHORS as Kf, HANDOFF_PIECE_OVERHEAD as Kg, parseRtcSignal as Kh, newPubkyProofFolder as Ki, DHT_TEXT_CAPABILITY as Kl, DIRECT_OWN_ATTEMPTS as Km, decodeBitcoinAddress as Kn, lobbyKeys as Ko, readAppSignature as Kp, didWebHost as Kr, pinnedFrame as Ks, validEditText as Kt, ringClaims as Ku, DEVICES_CAPABILITY as Kv, turnInstance as Ky, yieldThread as L, readHandoffHave as L_, MAX_PAIRED_MESSAGE_FRAME as La, RelayBreaker as Lb, parseAppFrame as Lc, voiceDownloadName as Ld, queueReaction as Lf, HANDOFF_FILE_REQUEST as Lg, sendBody as Lh, sparkAddressKind as Li, wellKnownUrl as Ll, CONNECT_TIMEOUT_MS as Lm, bip322MessageHash as Ln, parseHubPolicy as Lo, appSignedBytes as Lp, checkDidJws as Lr, PIN_FRAME as Ls, groupMessageId as Lt, proofStatement as Lu, decodeInviteCode as Lv, __esmMin as Lx, firstDeviceSetSecret as Ly, isAppUrl as M, readHandoffBusy as M_, HANDLED_WAIT_MS as Ma, traceLink as Mb, appDataFrame as Mc, fileMessageText as Md, REACTION_LIMITS as Mf, HANDOFF_CANCEL as Mg, PROTOCOL_VERSION as Mh, validatePaymentTarget as Mi, recordsFromTxt as Ml, openSecret as Mm, isLegacySignature as Mn, MESH_HUBS as Mo, APP_STATEMENT_LIMITS as Mp, DID_JWS_ALGS as Mr, typingKindOf as Ms, GROUP_READ_NOTE as Mt, importedProof as Mu, INVITE_MAX_LENGTH as Mv, toBase64Url as Mx, TURN_SLOTS as My, pacer as N, readHandoffCancel as N_, INVITER_DIAL_GRACE_MS as Na, BREAKER_ALL_DOWN_PROBE_MS as Nb, appOpenFrame as Nc, formatVoiceDuration as Nd, ReactionWindow as Nf, HANDOFF_CANCEL_REASONS as Ng, decodeChunk as Nh, walletNetworkOf as Ni, recordsFromWellKnown as Nl, sealPair as Nm, legacyMessageHash as Nn, NO_HUB_POLICY as No, appFingerprint as Np, DID_JWS_MAX_LENGTH as Nr, COMMUNITY_PIN_FRAME as Ns, GroupSession as Nt, isProofAdapter as Nu, INVITE_VERSION as Nv, toZ32 as Nx, TURN_TTL as Ny, checkAppManifest as O, isHandoffPartName as O_, DEMOTE_MS as Oa, currentRelays as Ob, APP_VERSION_MAX as Oc, VOICE_LIMITS as Od, GROUP_REACTION_FRAME as Of, HANDOFF_ACK as Og, CHUNK_FLAG_END as Oh, assertWholeSats as Oi, isPublicAddress as Ol, encryptText as Om, sshFingerprint as On, SIGNAL_REPLY_MS as Oo, receivedTimestamp as Op, verifyAtprotoSignature as Or, parseTypingFrame as Os, mentionedMembers as Ot, PeerProofs as Ou, readDeviceInvite as Ov, fromBase64Url as Ox, TURN_NO_ACTIVE as Oy, readAppBundle as P, readHandoffData as P_, INVITE_TAKEN as Pa, BREAKER_BASE_MS as Pb, chatAppId as Pc, isPlayableAudioType as Pd, nextReactionNumber as Pf, HANDOFF_DATA as Pg, decodeControl as Ph, SPARK_NETWORKS as Pi, recordsName as Pl, sealSecret as Pm, verifyBitcoinMessage as Pn, mayBeHub as Po, appRef as Pp, DID_MAX_LENGTH as Pr, GROUP_PIN_FRAME as Ps, asWritten as Pt, nostrProofTemplate as Pu, OwnInviteError as Pv, utf8Decode as Px, TURN_VERSION as Py, communityUntaggedHash as Q, setUpdateFrame as Q_, pairedMessageFrame as Qa, readOwnRelayPayload as Qb, TYPING_CAPABILITY as Qc, readImageMeta as Qd, replySnippet as Qf, HANDOFF_WINDOW as Qg, buildSdpFromSignal as Qh, encodeSvcbPacket as Qi, IDENTITY_CHALLENGE_WINDOW as Ql, DEPARTED_READ_MS as Qm, sha256d as Qn, rankHubs as Qo, canonicalJson as Qp, signingKeys as Qr, WAKE_FRAME as Qs, wireMentions as Qt, TRANSPORTS as Qu, deviceEchoFrame as Qv, turnSequence as Qy, GROUP_TYPING_FRAME as R, readHandoffHello as R_, PAIRED_FRAME_TOO_LARGE as Ra, DiscoveryBudgetError as Rb, readAppFrame as Rc, voiceFileName as Rd, reactedFrame as Rf, HANDOFF_HAVE as Rg, wrapDataChannel as Rh, sparkInvoiceDetails as Ri, CAPS_ISSUED_BACK_MS as Rl, DATA_SETTLE_MS as Rm, bip322ToSign as Rn, pickMeshHubs as Ro, checkAppRevokeStatement as Rp, checkDidSignature as Rr, PIN_LIMITS as Rs, COMMUNITY_EDIT_FRAME as Rt, storageProof as Ru, encodeGhostlyInvite as Rv, __exportAll as Rx, nextTurnPosition as Ry, APP_SCREENSHOTS_DIR as S, handoffRequestFrame as S_, ANSWERS_REFUSED_PAUSE_MS as Sa, SIGNALING_WINDOW_MS as Sb, APP_FRAME as Sc, formatFileSize as Sd, sanitizePreviewImage as Sf, decodeServices as Sg, relativizeLocation as Sh, SEPOLIA_TEST_USDT_FAUCET as Si, WELL_KNOWN_PATH as Sl, verifyCommitSignature as Sm, SSH_KEY_TYPES as Sn, GROUP_VERSION_SIGNALS as So, taskProgress as Sp, parseAtprotoCar as Sr, TYPING_SEND_LIMIT as Ss, GROUP_WAKE_GROUP_WINDOW_MS as St, verifyIdentityPresentation as Su, DEVICE_INVITE_LIFETIME_S as Sv, sanitizeNick as Sx, TOMBSTONE_TURN as Sy, appViewOf as T, handoffVerifiedFrame as T_, CROSSED_PROBE_MS as Ta, TURN_SOURCE_TIMEOUT_MS as Tb, APP_RATE_WINDOW_MS as Tc, sanitizeMime as Td, forwardedMany as Tf, serviceIdFromName as Tg, sanitizeResponseHeaders as Th, WALLET_NETWORKS as Ti, domainTxtRecord as Tl, confirmationTag as Tm, parseSshPublicKey as Tn, SIGNAL_FRESH_MS as To, arrivalKey as Tp, readAtprotoCid as Tr, TypingReceiver as Ts, GroupWakeLimiter as Tt, lastSharedWithMe as Tu, deviceInviteJoinerKeyZ32 as Tv, bytesEqual as Tx, TURN_LAST_SEQUENCE as Ty, COMMUNITY_LIMITS as U, readHandoffVerified as U_, RACE_DIRECT_MS as Ua, MAX_DNS_PACKET_BYTES as Ub, FILES_BINARY_CAPABILITY as Uc, VIDEO_LIMITS as Ud, readReaction as Uf, HANDOFF_OFFER as Ug, buildDataSdp as Uh, PUBKY_PROOF_ROOT as Ui, CapsExchange as Ul, REANSWERS as Um, ByteReader as Un, doorHubs as Uo, readAppRevocation as Up, didWebFile as Ur, pinFrame as Us, communityMessageAuthor as Ut, verifyPeerProof as Uu, inviteQrText as Uv, signTurnBody as Uy, openGroupTyping as V, readHandoffRelease as V_, PONG_WAIT_MS as Va, isDiscoveryBudgetError as Vb, CALLS_CAPABILITY as Vc, voicePeaksOf as Vd, reactionIsNewer as Vf, HANDOFF_LIST_PER_FRAME as Vg, RTC_SIGNAL_FUTURE_MS as Vh, isBitcoinAddress as Vi, CAPS_PUBLISH_SPACING_MS as Vl, GATHER_STALL_MS as Vm, verifyBip322 as Vn, beaconKeys as Vo, isAppRef as Vp, didSignedMessages as Vr, parsePinFrame as Vs, carryMentions as Vt, validExternalKey as Vu, inviteOwnership as Vv, readTurnPacket as Vy, COMMUNITY_PROFILE as W, sameDigest as W_, RACE_RELAYED_MS as Wa, PKARR_FUTURE_SKEW_MS as Wb, FILES_CAPABILITY as Wc, formatVideoDuration as Wd, validReactionNumber as Wf, HANDOFF_PAKE as Wg, extractRtcParams as Wh, isPubkyKey as Wi, CapsKeys as Wl, STALLED_EVIDENCE_MS as Wm, compactSize as Wn, freshHubs as Wo, readAppRevocationShape as Wp, didWebFileNames as Wr, pinIsNewer as Ws, meshMessageRef as Wt, RING_LIFETIME as Wu, ownInviteRefusal as Wv, signTurnPacket as Wy, communityMessageId as X, readSetUpdate as X_, WAKE_LOST_MS as Xa, openRelayPayload as Xb, STATUS_CARD_CAPABILITY as Xc, isImageMime as Xd, pairedReplyAuthor as Xf, HANDOFF_VERIFIED as Xg, RTC_CONFIG as Xh, pubkyProofPath as Xi, encodePacketTransports as Xl, symmetricNat as Xm, encodeWitness as Xn, newerHead as Xo, verifyAppSignature as Xp, parseDidJws as Xr, WAKE_CALL_TTL_SECONDS as Xs, mentionsMember as Xt, verifyRingEvidence as Xu, ENROLL_CAPABILITY as Xv, turnPayloadSequence as Xy, communityHasFrame as Y, encodeSetSlots as Y_, UNPROVEN_AUTH_MS as Ya, newerPacket as Yb, SESSION_CAPABILITIES_FRAME as Yc, imageSize as Yd, groupReplyAuthor as Yf, HANDOFF_TIMINGS as Yg, PAIRED_CALL_CANDIDATES as Yh, pubkyProofFile as Yi, emptyCapsState as Yl, directBlocked as Ym, encodeTx as Yn, mergeLobby as Yo, verifyAppRevocation as Yp, parseDidDocument as Yr, WAKE_CALL_INTERVAL_MS as Ys, mentionsBytes as Yt, verifyRingAuthorization as Yu, DEVICE_PING_FRAME as Yv, turnPacket as Yy, communityRoster as Z, setAckFrame as Z_, pairedMessageFits as Za, parseRelayPayload as Zb, SessionCapabilities as Zc, parseImageMeta as Zd, readReply as Zf, HANDOFF_VERSION as Zg, answersOffer as Zh, decodeSvcbRecords as Zi, parsePacketTransports as Zl, AWAITING_PEER_MS as Zm, hash160 as Zn, pickHubs as Zo, verifyAppStatementBytes as Zp, parseDidSignaturePaste as Zr, WAKE_CALL_WAIT_MS as Zs, validMentions as Zt, RELAY_URL as Zu, HANDOFF_CAPABILITY as Zv, turnReleaseMessage as Zy, APP_CLIENTS as _, handoffHelloFrame as __, findEndpoint as _a, PREVIOUS_DEFAULT_RELAYS as _b, generateVapidKeys as _c, dhtFileElements as _d, canonicalUrl as _f, parseLinkRecords as _g, GhostlyHttpError as _h, ETHEREUM_USDT as _i, DOMAIN_FILE_MAX_BYTES as _l, rosterHas as _m, signGroupMeta as _n, readGroupWant as _o, checkStatusCard as _p, atprotoCidFor as _r, TYPING_FRAME as _s, knockRecords as _t, isIdentityBinding as _u, formatEnrollDigits as _v, jpegSize$1 as _x, TURN_VISIBLE_MS as _y, checkAppBeforeRun as a, handoffAttemptSucceeded as a_, invoiceCallbackUrl as aa, CHAT_RESERVE_MOST_SHARE as ab, parseWakeFrame as ac, transportOrder as ad, EDIT_SEND_LIMIT as af, isGlobalIpv4Host as ag, OFFER_FAST_MS as ah, DidDhtError as ai, SESSION_FRAME_MAX as al, LEGACY_GROUP_MEMBERS as am, groupMetaBody as an, parseEngineError as ao, PR_STATES as ap, ATPROTO_PROOF_COLLECTION as ar, PAIRED_CALL_FRAME as as, shortHash as at, IDENTITY_PROVIDER_ID as au, ENROLL_DONE as av, identityFromSeed as ax, deviceLinkSealKey as ay, APP_ICON_PATH as b, handoffPakeFrame as b_, parseFedimintRequestPayload as ba, RelayTransport as bb, vapidKeysMatch as bc, FileTransfers as bd, parseLinkPreview as bf, MAX_SERVICES as bg, formatLocalTarget as bh, PaymentPreflightError as bi, DOMAIN_TXT_MAX_BYTES as bl, verifyChain as bm, SSHSIG_MAX_ARMOR as bn, CarriedTransport as bo, statusCardBytes as bp, encodeDagCbor as br, TYPING_RATE_WINDOW_MS as bs, GROUP_WAKE_FRAME as bt, revokesIdentity as bu, verifyEnrollProof as bv, hasVisible as bx, turnPutSummary as by, APP_STORE_LIMITS as c, handoffContext as c_, parsePayParams as ca, DEPARTED_READS as cb, relayRequest as cc, DHT_FILE_TOO_LARGE as cd, dhtEditId as cf, sdpHasCandidates as cg, PRESENCE_HEARTBEAT as ch, didDhtFromPublicKey as ci, HOLD_DATED_BACK_MS as cl, MEMBER_KEY as cm, groupMetaPicture as cn, GROUP_HAVE_FRAME as co, STATUS_CARD_LIMITS as cp, atprotoProofRecord as cr, ChatFiles as cs, verifyCommunityCommit as ct, IDENTITY_SUBJECT as cu, ENROLL_PROOF as cv, sign as cx, newDeviceSetSecret as cy, readAppListing as d, handoffDigest as d_, BOLT11_PATTERN as da, GROUP_BURST_ONE_LINK as db, wakeRequest as dc, DHT_TEXT_REFUSED as dd, parseEditFrame as df, LABEL$1 as dg, STALLED_LOOK_MS as dh, encodeDidDhtDeactivated as di, HoldRefusedError as dl, commitHash as dm, nextGroupMetaRevision as dn, GROUP_WANT_NO_FRAME as do, buttonLabelClash as dp, isAtprotoDid as dr, FILE_LIMITS as ds, MAX_KNOCKS as dt, boundVerifiedIdentity as du, enrollDigits as dv, encrypt as dx, verifyDeviceTransports as dy, filePartDigest as e_, pubkyHomeserverOf as ea, turnStatedVerifier as eb, WAKE_SUBJECT as ec, checkedDescriptors as ed, EDIT_BUFFER_MAX as ef, callSignalHeardAt as eg, EXPECT_PEER_MS as eh, strictBase64Url as ei, WAKE_SESSION_CAPABILITY as el, readCanonicalJson as em, MAX_GROUP_NAME_BYTES as en, publishFailure as eo, ACTIVE_TASK_STATUSES as ep, u32$2 as er, readBeaconHead as es, derivedSecret as et, IDENTITY_CLOCK_SKEW as eu, signTombstone as ev, decodeDnsAnswers as ex, deviceFrameCapability as ey, readAppStore as f, handoffDoneFrame as f_, decodeBolt11 as fa, GROUP_OVER_PACE_MS as fb, PUSH_SERVICE_HOSTS as fc, DhtDelivery as fd, parseEditedFrame as ff, MAX_MSGS_PAYLOAD_B64 as fg, TRANSPORTS_GONE_MS as fh, encodeDidDhtPacket as fi, isHoldUrl as fl, commitUntaggedHash as fm, openGroupMeta as fn, fetchesByItself as fo, cardEditNumber as fp, normalizeAtprotoHandle as fr, decodeFileData as fs, decodeGroupEntryLink as ft, emptyIdentityLedger as fu, enrollDoneFrame as fv, generateEncryptionKey as fx, seedSigner as fy, APP_BUNDLE_MAGIC as g, handoffHaveFrames as g_, fedimintRequestPayload as ga, HEDGE_MS as gb, encryptPushPayload as gc, DHT_FILE_CAPABILITY as gd, LINK_PREVIEW_LIMITS as gf, isEmptyLinkPacket as gg, unusedInviteWait as gh, signDidDhtPacket as gi, DNS_TYPE as gl, rosterAdmin as gm, parseGroupMetaTag as gn, readGroupHave as go, cardUrl as gp, AtprotoProofError as gr, transferStalled as gs, knockIdentity as gt, identityStatementText as gu, enrollProofFrame as gv, MAX_AVATAR_SIDE as gx, TURN_SETTLE_MS as gy, APP_BUNDLE_LIMITS as h, handoffFileRequestFrame as h_, cashuRequestPayload as ha, HEDGE_MISSING_MS as hb, decryptPushPayload as hc, peekDhtMailbox as hd, LINK_MAX_CHARS as hf, emptyLinkRecords as hg, presenceSeenAt as hh, resolveDidDht as hi, DNS_LABEL as hl, rememberAlone as hm, parseGroupMetaStatement as hn, readGroupFileMeta as ho, cardTimeUtc as hp, AtprotoCid as hr, transferEnded as hs, groupEntryUrl as ht, identityStatement as hu, enrollMessage as hv, MAX_AVATAR_LENGTH as hx, TURN_RAISE_READ_TIMEOUT_MS as hy, appUpdateDecision as i, handoffAttemptFailed as i_, findLightningDestination as ia, CHAT_RESERVE as ib, newWakeToken as ic, relayedTransports as id, EDIT_RECEIVE_LIMIT as if, heardCallSignal as ig, MAX_DHT_TEXT_BYTES as ih, DID_DHT_VERSION as ii, PairedSession as il, GROUP_VERSION_LARGE as im, groupDisplayName as in, engineText as io, PR_CHECKS as ip, ATPROTO_FULL_SCOPE as ir, MAX_PAIRED_CALL_SIGNAL as is, rosterHash as it, IDENTITY_PROOF_CAPABILITY as iu, ENROLL_CANCEL_REASONS as iv, createIdentity as ix, deviceLinkRendezvousSeed as iy, isAppPath as j, readHandoffAck as j_, GhostLink as ja, setLinkTraceSink as jb, appDataBytes as jc, downsamplePeaks as jd, REACTION_FRAME as jf, HANDOFF_BUSY_REASONS as jg, MAX_CHUNK_PAYLOAD_BYTES as jh, parsePaymentAmount as ji, parseDomainTxt as jl, openPair as jm, verifySshSignature as jn, GROUP_VERSION_HUBS as jo, APP_PREFIXES as jp, DID_GHOSTLY_SERVICE as jr, typingFrame as js, GROUP_REACTED_FRAME as jt, emptyProofLedger as ju, INVITE_LINK_ORIGIN as jv, toBase64 as jx, TURN_SIGNED_BYTES as jy, findAppForbiddenKey as k, newHandoffId as k_, DHT_PIN_GRACE_MS as ka, normalizeRelayUrl as kb, AppSessions as kc, VOICE_METER as kd, QUICK_REACTIONS as kf, HANDOFF_ATTEMPTS as kg, CHUNK_KIND as kh, formatPaymentAmount as ki, nip05RootKey as kl, epochKeys as km, sshKeyDigestHex as kn, groupSignalFrame as ko, shownTime as kp, DID_DOCUMENT_MAX_BYTES as kr, sanitizeTypingStatus as ks, parseGroupWakeFrame as kt, STORAGE_LIFETIME as ku, DEVICE_INVITE_VERSION as kv, fromZ32 as kx, TURN_REV_LIMIT as ky, checkAppListing as l, handoffContextProof as l_, requestLnurlInvoice as la, FRESH_READ_MS as lb, wakeFrame as lc, DHT_MESSAGE_TTL as ld, editFrame as lf, signalHasVideo as lg, PRESENCE_WINDOW as lh, didDhtKey as li, HOLD_LIMITS as ll, OWN_FRAME_LIMIT as lm, groupMetaTag as ln, GROUP_VERSION_FILES as lo, TASK_STATUSES as lp, atprotoProofRkey as lr, FILE_DATA_KIND as ls, GROUP_ENTRY_PROFILE as lt, IdentityCheckUnavailable as lu, enrollCancelFrame as lv, verify as lx, signDeviceTransports as ly, signAppStore as m, handoffFileMissingFrame as m_, ENDPOINT as ma, GROUP_SIGNALING_ALLOWANCE_SHARE as mb, checkPushEndpoint as mc, emptyDhtDeliveryState as md, validEditNumber as mf, buildLinkRecords as mg, WATCH_PEER_MS as mh, openDidDhtPayload as mi, readManifest as ml, parseGroupCommit as mm, parseGroupMetaFrame as mn, isGroupMessageId as mo, cardLinkHost as mp, shortAtprotoDid as mr, refusalText as ms, entryParams as mt, identityRevocationValue as mu, enrollHelloFrame as mv, tryDecrypt as mx, TURN_PUT_WINDOW_MS as my, appRevocationFor as n, handoffAckFrame as n_, LNURL_LIMITS as na, BACKGROUND_REQUESTS_PER_MINUTE as nb, WakeLimiter as nc, irohRelayUrl as nd, EDIT_FRAME as nf, decompressSdp as ng, IDLE_THRESHOLD as nh, DID_DHT_PREFIX as ni, sessionCapabilitiesFrame as nl, GROUP_ID as nm, MAX_GROUP_PICTURE_LENGTH as nn, EngineError as no, BUTTON_STYLES as np, varBytes as nr, shouldBeHub as ns, leaveStatement as nt, IDENTITY_MAX_FRAME as nu, DEVICE_KINDS as nv, encodeTxtPacket as nx, deviceLinkPairing as ny, planAppUpdate as o, handoffBusyFrame as o_, parseInvoiceCallback as oa, CHAT_RESERVE_PER_CHAT as ob, readWake as oc, ACTIVE_DHT_POLL_MS as od, MAX_EDITS_PER_MESSAGE as of, parseCallSignal as og, OFFER_LOOK_MS as oh, decodeDidDhtPacket as oi, SESSION_RECEIVE_PENDING as ol, MAX_GROUP_CHAIN as om, groupMetaChange as on, PairingTracker as oo, ROUTINE_STATES as op, ATPROTO_PROOF_SCOPE as or, PairedCalls as os, signCommunity as ot, IDENTITY_REVOCATION_LABEL as ou, ENROLL_GRANT as ov, identityFromSeedB64 as ox, deviceLinkSecret as oy, readAppStoreSteps as p, handoffEphemeral as p_, findBolt11 as pa, GROUP_RATION_WINDOW_MS as pb, WebPushError as pc, LIVE_POLL_MS as pd, validEditMessage as pf, RECORD_TTL as pg, UNUSED_INVITE_WAIT_MAX_MS as ph, jwkThumbprint as pi, newMailbox as pl, expectedRoster as pm, parseGroupMetaBody as pn, groupFileFallback as po, cardLine as pp, parseAtprotoDidDocument as pr, encodeFileData as ps, encodeGroupEntryLink as pt, identityPresentationBytes as pu, enrollGrantFrame as pv, sealedLength as px, webCryptoSigner as py, communityCommitHash as q, SET_ACK as q_, RTC_UNSTARTED_MS as qa, createRelayPayload as qb, REACTIONS_CAPABILITY as qc, parseVideoMeta as qd, REPLY_ID as qf, HANDOFF_RELEASE as qg, CALL_SIGNAL_FUTURE_MS as qh, normalizePubkyKey as qi, capsDescriptors as ql, DIRECT_PEERS as qm, decodeTx as qn, lobbyRecords as qo, signAppObject as qp, normalizeDid as qr, readPin as qs, MENTION_EVERYONE as qt, ringEvidence as qu, DEVICE_CAPABILITIES as qv, turnKeys as qy, appStoreDecision as r, handoffAttemptAllowed as r_, fetchLnurlJson as ra, BACKGROUND_WHILE_SIGNALING as rb, deviceWakeRequest as rc, rankTransports as rd, EDIT_RATE_WINDOW_MS as rf, extractParamsFromSdp as rg, LinkSession as rh, DID_DHT_TTL as ri, PAIRED_PROFILE as rl, GROUP_MEMBER_CAP as rm, encodeGroupMetaBody as rn, engineError as ro, ITEM_STATES as rp, ATPROTO_DECLARED_SCOPE as rr, validHead as rs, leftStatement as rt, IDENTITY_MAX_VALIDITY as ru, ENROLL_CANCEL as rv, readDnsName as rx, deviceLinkParams as ry, APP_STORE_KINDS as s, handoffCancelFrame as s_, parseLightningDestination as sa, DEFAULT_RELAYS as sb, readWakePayload as sc, DHT_FILE_REFUSED as sd, RateWindow as sf, pickCallCandidates as sg, OFFER_STEP_MAX as sh, didDhtDocument as si, HOLD_CAPABILITY as sl, MAX_GROUP_MEMBERS as sm, groupMetaNewer as sn, GROUP_FILE_LIMITS as so, RUN_RESULTS as sp, atprotoDidMethod as sr, parsePairedCallFrame as ss, verifyCommunityChain as st, IDENTITY_STATEMENT_PREFIX as su, ENROLL_HELLO as sv, publicKeyFromZ32 as sx, devicePingFrame as sy, addedAppPermissions as t, filePartName as t_, LIGHTNING_DESTINATION_PATTERN as ta, turnVerifierMark as tb, WAKE_TTL_SECONDS as tc, irohDescriptor as td, EDIT_BUFFER_MS as tf, compressSdp as tg, FIRST_PUBLISH_MAX_MS as th, DID_DHT_MAX_PAYLOAD as ti, parseSessionCapabilities as tl, GROUP_ADMIN_OFF_ERROR as tm, MAX_GROUP_NAME_LENGTH as tn, ENGINE_ERRORS as to, BUTTON_ID as tp, u64 as tr, readLobby as ts, encodeCommunityLink as tt, IDENTITY_MAX_EVIDENCE as tu, verifySetUpdate as tv, decodeTxtPacket as tx, deviceKeyZ32 as ty, checkAppStoreIndex as u, handoffDataFrame as u_, resolveLightningDestination as ua, GROUP_BURST_MS as ub, wakePayload as uc, DHT_TEXT_BYTES as ud, editedFrame as uf, waitForIceGathering as ug, RELAY_POLL_INTERVALS as uh, didDhtRecords as ui, HoldKeys as ul, SAID_AGAIN as um, groupName as un, GROUP_WANT_FRAME as uo, appCardId as up, checkAtprotoProofRecord as ur, FILE_FRAMES as us, KNOCK_TTL_MS as ut, IdentityExchange as uu, enrollCancelReason as uv, decrypt as ux, unsignedDeviceTransports as uy, APP_CLIENT_NAME as v, handoffManifestFrames as v_, isFederationId as va, RELAY_REQUESTS_PER_MINUTE as vb, pushRequest as vc, dhtFileId as vd, linkEnd as vf, HTTP_SERVICE_PROTO as vg, HttpClient as vh, EVM_TEST_CHAINS as vi, DOMAIN_MAX_RECORDS as vl, signCommit as vm, verifyGroupMetaSignature as vn, readGroupWantNo as vo, readStatusCard as vp, decodeAtprotoCommit as vr, TYPING_KINDS as vs, mergeKnocks as vt, newIdentityBinding as vu, readEnrollGrant as vv, sanitizeAvatar as vx, classifyTurnRead as vy, appDigest as w, handoffStreamKey as w_, CROSSED_FRESH_MS as wa, SLOW_MS as wb, APP_RATE_LIMIT as wc, sanitizeFileName as wd, forwardedAgain as wf, isValidServiceId as wg, sanitizeRequestHeaders as wh, USDT_PUBLIC_RPC as wi, dnsProofName as wl, confirmationMatches as wm, SshSigError as wn, SIGNAL_CARRIERS as wo, MESSAGE_CLOCK_SKEW_MS as wp, parseAtprotoVerificationKey as wr, TYPING_TIMEOUT_MS as ws, GROUP_WAKE_RECEIVE_LIMIT as wt, applyIdentityEvent as wu, createDeviceInvite as wv, trimEndOf as wx, TURN_LABEL as wy, APP_PERMISSIONS as x, handoffReleaseFrame as x_, ANSWERS_REFUSED_PAUSES as xa, SIGNALING_ALLOWANCE_SHARE as xb, APP_DATA_MAX_BYTES as xc, PREVIEWABLE_IMAGE as xd, previewImageSize as xf, SERVICES_VERSION as xg, parseLocalTarget as xh, SEPOLIA_TEST_USDT as xi, NIP05_PATH as xl, verifyCommit as xm, SSHSIG_NAMESPACE as xn, GROUP_SIGNAL_FRAME as xo, statusCardText as xp, findInMst as xr, TYPING_REFRESH_MS as xs, GROUP_WAKE_GROUP_LIMIT as xt, signIdentityPresentation as xu, DEVICE_INVITE_BYTES as xv, sanitizeDisplayText as xx, TOMBSTONE_SEQUENCE as xy, APP_FORBIDDEN_KEYS as y, handoffOfferFrame as y_, parseCashuRequestPayload as ya, REQUESTS_PER_MINUTE as yb, vapidAuthorization as yc, readDhtFile as yd, linksIn as yf, LEGACY_SERVICES as yg, HttpHost as yh, ONCHAIN_PROVIDER as yi, DOMAIN_METHODS as yl, sortRoster as ym, wrapGroupMeta as yn, CARRIED_DEFER_MS as yo, sameButtonText as yp, decodeDagCbor as yr, TYPING_RATE_LIMIT as ys, readKnocks as yt, receivedIdentityStatus as yu, readEnrollHello as yv, MAX_NICK_LENGTH as yx, keptAtEqualSequence as yy, GroupTypingBoard as z, readHandoffManifest as z_, PAIRING_ATTEMPT_MS as za, budgetRetryMs as zb, APPS_CAPABILITY as zc, voiceLevel as zd, reactionEmoji as zf, HANDOFF_HELLO as zg, DATA_CHANNEL_ID as zh, sparkNetworkOf as zi, CAPS_LABEL as zl, DataLink as zm, bip322ToSpend as zn, wireHubPolicy as zo, isAppHash as zp, didGhostlyServiceEntry as zr, mayPin as zs, GROUP_EDIT_FRAME as zt, storageProofBody as zu, encodeInviteCode as zv, __require as zx, openTurnValue as zy };
|
|
32312
|
+
export { decodeCommunityLink as $, SET_ACK as $_, parsePaymentNetworks as $a, createRelayPayload as $b, UPGRADE_CAPABILITY as $c, isImageMime as $d, groupReplyAuthor as $f, HANDOFF_RELEASE as $g, PAIRED_CALL_CANDIDATES as $h, homeserverWebEndpoint as $i, IDENTITY_CHECK_UNAVAILABLE as $l, directBlocked as $m, txHash as $n, readBeacon as $o, verifyAppRevocation as $p, staticDidDocument as $r, WAKE_INTERVAL_MS as $s, MAX_GROUP_META_BODY as $t, verifyRingEvidence as $u, DEVICE_CAPABILITIES as $v, turnKeys as $y, isAppLicense as A, handoffStreamKey as A_, EARLY_DIAL_JOIN_MS as Aa, SLOW_MS as Ab, appCloseFrame as Ac, RECORDING_TYPES as Ad, readForwarded as Af, serviceIdFromName as Ag, viewerResponseHeaders as Ah, isWalletNetwork as Ai, normalizeDomain as Al, decryptText as Am, sshSignCommand as An, readGroupSignal as Ao, claimedTime as Ap, DID_FILE_MAX_BYTES as Ar, typingActivity as As, GROUP_LIMITS as At, PROOF_CAPABILITY as Au, createDeviceInvite as Av, stripHidden as Ax, TURN_LABEL as Ay, groupTypingEpoch as B, readHandoffData as B_, PAIRING_RETRY_MS as Ba, BREAKER_BASE_MS as Bb, BUTTONS_CAPABILITY as Bc, voiceDownloadName as Bd, parseReactionFrame as Bf, HANDOFF_DATA as Bg, encodeControl as Bh, BITCOIN_NETWORKS as Bi, CAPS_LIMITS as Bl, ANSWER_REFUSED_REDIALS as Bm, decodeBase64 as Bn, COMMUNITY_TOPOLOGY as Bo, appRevocationId as Bp, didJwsAlg as Br, nextPinNumber as Bs, GROUP_EDIT_TEXT_BYTES as Bt, proofStatement as Bu, OwnInviteError as Bv, toBase64Url as Bx, TURN_VERSION as By, APP_VIEWS as C, handoffHelloFrame as C_, BLOCKED_DIAL_WAIT_MS as Ca, PREVIOUS_DEFAULT_RELAYS as Cb, APP_PEER_OPEN_MAX as Cc, FileTransfers as Cd, linksIn as Cf, LEGACY_SERVICES as Cg, HttpHost as Ch, TEST_USDT_FAUCET_AMOUNT as Ci, decodeDnsResponse as Cl, sortRoster as Cm, SSH_PUBLIC_KEY_MAX as Cn, SIGNALS_PER_MINUTE as Co, sameButtonText as Cp, parseAtprotoDidKey as Cr, TYPING_STATUS_MAX as Cs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ct, revokesIdentity as Cu, formatEnrollDigits as Cv, MAX_AVATAR_SIDE as Cx, TURN_VISIBLE_MS as Cy, buildAppBundle as D, handoffReleaseFrame as D_, DEMOTE_AFTER_FAILURES as Da, SIGNALING_ALLOWANCE_SHARE as Db, APP_SEND_LIMIT as Dc, sanitizeFileName as Dd, FORWARD_LIMITS as Df, encodeServices as Dg, resolveTargetUrl as Dh, assertTokenUnits as Di, encodeDnsQuery as Dl, GROUP_PROFILE as Dm, sameSshKey as Dn, SIGNAL_PROVEN_MS as Do, usageLeft as Dp, verifyAtprotoRecordProof as Dr, parseTypingActivity as Ds, groupWakes as Dt, applyIdentityEvent as Du, DEVICE_INVITE_BYTES as Dv, hasVisible as Dx, TOMBSTONE_SEQUENCE as Dy, assembleAppBundle as E, handoffPakeFrame as E_, CROSSED_WAIT_MS as Ea, RelayTransport as Eb, APP_RESUME_GRACE_MS as Ec, safeBlobType as Ed, sanitizePreviewImage as Ef, decodeServices as Eg, relativizeLocation as Eh, arkAddressPrefix as Ei, domainWellKnownFile as El, verifyCommitSignature as Em, parseSshSignature as En, SIGNAL_HOLD_MS as Eo, taskProgress as Ep, unsignedCommitBytes as Er, TypingSender as Es, groupWakeFrame as Et, IDENTITY_TIMELINE_MAX as Eu, verifyEnrollProof as Ev, MAX_NICK_LENGTH as Ex, turnPutSummary as Ey, readAppBundleAsync as F, newHandoffId as F_, LIVENESS_MISSED_PINGS as Fa, normalizeRelayUrl as Fb, isAppVersion as Fc, fileMessageText as Fd, REACTION_FRAME as Ff, HANDOFF_ATTEMPTS as Fg, MAX_CHUNK_PAYLOAD_BYTES as Fh, SPARK_PROVIDER as Fi, txtValue as Fl, openPair as Fm, BIP322_REVISION as Fn, meshHubs as Fo, APP_PREFIXES as Fp, DID_METHODS as Fr, PINNED_FRAME as Fs, chainPieces as Ft, importedProof as Fu, DEVICE_INVITE_VERSION as Fv, fromBase64Url as Fx, TURN_REV_LIMIT as Fy, CommunitySession as G, readHandoffManifest as G_, REDESCRIBED_GRACE_MS as Ga, budgetRetryMs as Gb, KNOWN_SESSION_CAPABILITIES as Gc, PLAYABLE_VIDEO as Gd, reactionIsNewer as Gf, HANDOFF_HELLO as Gg, RTC_SIGNAL_FUTURE_MS as Gh, isPubkyProofFolder as Gi, CapsRefusedError as Gl, GATHER_STALL_MS as Gm, decodeAnyBitcoinAddress as Gn, hubRank as Go, isAppRef as Gp, didWebFileUrl as Gr, pinNumberHolds as Gs, parseCommunityEdit as Gt, verifyNostrProof as Gu, encodeInviteCode as Gv, __esmMin as Gx, openTurnValue as Gy, sealGroupTyping as H, readHandoffFileFrame as H_, RACE_ANSWERED_MS as Ha, BREAKER_THRESHOLD as Hb, EDIT_CAPABILITY as Hc, voiceLevel as Hd, reactedFrame as Hf, HANDOFF_FILE_MISSING as Hg, wrapDataChannel as Hh, PUBKY_PROOF_MAX_BYTES as Hi, CAPS_REFRESH_MS as Hl, DATA_SETTLE_MS as Hm, BitcoinAddressError as Hn, beaconRecords as Ho, checkAppRevokeStatement as Hp, didWebDocumentUrl as Hr, parsePinnedFrame as Hs, communityEditFrame as Ht, storageProofBody as Hu, createLink as Hv, utf8Decode as Hx, encodeTurnFields as Hy, sha256Paced as I, openHandoffPiece as I_, LIVENESS_PING_MS as Ia, readRelayBody as Ib, isChatAppId as Ic, formatVoiceDuration as Id, REACTION_LIMITS as If, HANDOFF_BUSY as Ig, PROTOCOL_VERSION as Ih, isSparkAddress as Ii, validDomainRecord as Il, openSecret as Im, MessageRefusal as In, meshRendezvous as Io, APP_STATEMENT_LIMITS as Ip, DidError as Ir, PIN_CLOCK_SKEW_MS as Is, frameBytes as It, isProofAdapter as Iu, INVITE_HRP as Iv, fromZ32 as Ix, TURN_SEALED_BYTES as Iy, communityGroupId as J, readHandoffTurnFrame as J_, SWITCH_RETIRE_MS as Ja, withRequestOptions as Jb, SERVICES_CAPABILITY as Jc, isPlayableVideoType as Jd, validReactionNumber as Jf, HANDOFF_MANIFEST as Jg, extractRtcParams as Jh, pubkyProofCapability as Ji, dialDescriptors as Jl, STALLED_EVIDENCE_MS as Jm, decodeWitness as Jn, mergeBeacon as Jo, readAppRevocationShape as Jp, parseDid as Jr, DEVICE_WAKE_TTL_SECONDS as Js, MENTION_LIMITS as Jt, ringAuthorization as Ju, inviteQrSegments as Jv, __toCommonJS as Jx, sealTurnBody as Jy, GROUP_READ_NOTE_COMMUNITY as K, readHandoffPake as K_, RESUME_WAIT_MS as Ka, heldBackError as Kb, PIN_CAPABILITY as Kc, VIDEO_LIMITS as Kd, readDhtReactions as Kf, HANDOFF_LATER_BYTES as Kg, RTC_SIGNAL_MAX_AGE_MS as Kh, newPubkyProofFolder as Ki, DHT_TEXT_CAPABILITY as Kl, OFFER_HOST_GATHER_MS as Km, decodeBitcoinAddress as Kn, lobbyKeys as Ko, isAppSignature as Kp, didWebHost as Kr, pinnedFrame as Ks, validEditText as Kt, verifyPeerProof as Ku, inviteLink as Kv, __exportAll as Kx, readTurnBody as Ky, yieldThread as L, readHandoffAck as L_, MAX_PAIRED_MESSAGE_FRAME as La, setLinkTraceSink as Lb, parseAppFrame as Lc, isPlayableAudioType as Ld, ReactionWindow as Lf, HANDOFF_BUSY_REASONS as Lg, decodeChunk as Lh, sparkAddressKind as Li, wellKnownUrl as Ll, sealPair as Lm, bip322MessageHash as Ln, parseHubPolicy as Lo, appFingerprint as Lp, checkDidJws as Lr, PIN_FRAME as Ls, groupMessageId as Lt, nostrProofTemplate as Lu, INVITE_LINK_ORIGIN as Lv, isZ32Key as Lx, TURN_SIGNED_BYTES as Ly, isAppUrl as M, handoffVerifiedMessage as M_, HANDLED_WAIT_MS as Ma, WATCH_SHARE as Mb, appDataFrame as Mc, VOICE_METER as Md, GROUP_REACTION_FRAME as Mf, servicesToWire as Mg, CHUNK_FLAG_END as Mh, validatePaymentTarget as Mi, recordsFromTxt as Ml, encryptText as Mm, isLegacySignature as Mn, MESH_HUBS as Mo, receivedTimestamp as Mp, DID_JWS_ALGS as Mr, typingKindOf as Ms, GROUP_READ_NOTE as Mt, STORAGE_LIFETIME as Mu, deviceInviteJoinerParams as Mv, bytesEqual as Mx, TURN_MAX as My, pacer as N, handoffVersions as N_, INVITER_DIAL_GRACE_MS as Na, WRITE_FIRST_MS as Nb, appOpenFrame as Nc, baseMime as Nd, QUICK_REACTIONS as Nf, viewerTag as Ng, CHUNK_KIND as Nh, walletNetworkOf as Ni, recordsFromWellKnown as Nl, epochKeys as Nm, legacyMessageHash as Nn, NO_HUB_POLICY as No, shownTime as Np, DID_JWS_MAX_LENGTH as Nr, COMMUNITY_PIN_FRAME as Ns, GroupSession as Nt, STORAGE_ROOT as Nu, encodeDeviceInvite as Nv, concatBytes as Nx, TURN_NAME_BYTES as Ny, checkAppManifest as O, handoffRequestFrame as O_, DEMOTE_MS as Oa, SIGNALING_WINDOW_MS as Ob, APP_VERSION_MAX as Oc, sanitizeMime as Od, forwardedAgain as Of, isValidServiceId as Og, sanitizeRequestHeaders as Oh, assertWholeSats as Oi, isPublicAddress as Ol, confirmationMatches as Om, sshFingerprint as On, SIGNAL_REPLY_MS as Oo, MESSAGE_CLOCK_SKEW_MS as Op, verifyAtprotoSignature as Or, parseTypingFrame as Os, mentionedMembers as Ot, lastSharedWithMe as Ou, DEVICE_INVITE_LIFETIME_S as Ov, sanitizeDisplayText as Ox, TOMBSTONE_TURN as Oy, readAppBundle as P, isHandoffPartName as P_, INVITE_TAKEN as Pa, currentRelays as Pb, chatAppId as Pc, downsamplePeaks as Pd, REACTED_FRAME as Pf, HANDOFF_ACK as Pg, LIMITS as Ph, SPARK_NETWORKS as Pi, recordsName as Pl, newEpochSecret as Pm, verifyBitcoinMessage as Pn, mayBeHub as Po, APP_NAME as Pp, DID_MAX_LENGTH as Pr, GROUP_PIN_FRAME as Ps, asWritten as Pt, emptyProofLedger as Pu, readDeviceInvite as Pv, fromBase64 as Px, TURN_NO_ACTIVE as Py, communityUntaggedHash as Q, sortParts as Q_, pairedMessageFrame as Qa, RELAY_PAYLOAD_MAX_BYTES as Qb, TYPING_CAPABILITY as Qc, imageSize as Qd, REPLY_LIMITS as Qf, HANDOFF_PIECE_OVERHEAD as Qg, CALL_SIGNAL_MAX_AGE_MS as Qh, encodeSvcbPacket as Qi, IDENTITY_CHALLENGE_WINDOW as Ql, DirectPathWatch as Qm, sha256d as Qn, rankHubs as Qo, signAppRevocation as Qp, signingKeys as Qr, WAKE_FRAME as Qs, wireMentions as Qt, verifyRingAuthorization as Qu, DEVICES_CAPABILITY as Qv, turnInstance as Qy, GROUP_TYPING_FRAME as R, readHandoffBusy as R_, PAIRED_FRAME_TOO_LARGE as Ra, traceLink as Rb, readAppFrame as Rc, parseVoiceMeta as Rd, nextReactionNumber as Rf, HANDOFF_CANCEL as Rg, decodeControl as Rh, sparkInvoiceDetails as Ri, CAPS_ISSUED_BACK_MS as Rl, sealSecret as Rm, bip322ToSign as Rn, pickMeshHubs as Ro, appRef as Rp, checkDidSignature as Rr, PIN_LIMITS as Rs, COMMUNITY_EDIT_FRAME as Rt, proofCapability as Ru, INVITE_MAX_LENGTH as Rv, randomBytes as Rx, TURN_SLOTS as Ry, APP_SCREENSHOTS_DIR as S, handoffHaveFrames as S_, ANSWERS_REFUSED_PAUSE_MS as Sa, HEDGE_MS as Sb, APP_FRAME as Sc, readDhtFile as Sd, linkEnd as Sf, HTTP_SERVICE_PROTO as Sg, HttpClient as Sh, SEPOLIA_TEST_USDT_FAUCET as Si, WELL_KNOWN_PATH as Sl, signCommit as Sm, SSH_KEY_TYPES as Sn, GROUP_VERSION_SIGNALS as So, readStatusCard as Sp, parseAtprotoCar as Sr, TYPING_SEND_LIMIT as Ss, GROUP_WAKE_GROUP_WINDOW_MS as St, receivedIdentityStatus as Su, enrollProofFrame as Sv, MAX_AVATAR_LENGTH as Sx, TURN_SETTLE_MS as Sy, appViewOf as T, handoffOfferFrame as T_, CROSSED_PROBE_MS as Ta, REQUESTS_PER_MINUTE as Tb, APP_RATE_WINDOW_MS as Tc, formatFileSize as Td, previewImageSize as Tf, SERVICES_VERSION as Tg, parseLocalTarget as Th, WALLET_NETWORKS as Ti, domainTxtRecord as Tl, verifyCommit as Tm, parseSshPublicKey as Tn, SIGNAL_FRESH_MS as To, statusCardText as Tp, readAtprotoCid as Tr, TypingReceiver as Ts, GroupWakeLimiter as Tt, verifyIdentityPresentation as Tu, readEnrollHello as Tv, sanitizeAvatar as Tx, keptAtEqualSequence as Ty, COMMUNITY_LIMITS as U, readHandoffHave as U_, RACE_DIRECT_MS as Ua, RelayBreaker as Ub, FILES_BINARY_CAPABILITY as Uc, voiceLevelsOf as Ud, reactionEmoji as Uf, HANDOFF_FILE_REQUEST as Ug, DATA_CHANNEL_ID as Uh, PUBKY_PROOF_ROOT as Ui, CapsExchange as Ul, DataLink as Um, ByteReader as Un, doorHubs as Uo, isAppHash as Up, didWebFile as Ur, pinFrame as Us, communityMessageAuthor as Ut, storageProofPath as Uu, decodeInviteCode as Uv, utf8Encode as Ux, firstDeviceSetSecret as Uy, openGroupTyping as V, readHandoffDone as V_, PONG_WAIT_MS as Va, BREAKER_MAX_MS as Vb, CALLS_CAPABILITY as Vc, voiceFileName as Vd, queueReaction as Vf, HANDOFF_DONE as Vg, sendBody as Vh, isBitcoinAddress as Vi, CAPS_PUBLISH_SPACING_MS as Vl, CONNECT_TIMEOUT_MS as Vm, verifyBip322 as Vn, beaconKeys as Vo, appSignedBytes as Vp, didSignedMessages as Vr, parsePinFrame as Vs, carryMentions as Vt, storageProof as Vu, createChatInvite as Vv, toZ32 as Vx, TurnRecordError as Vy, COMMUNITY_PROFILE as W, readHandoffHello as W_, RACE_RELAYED_MS as Wa, DiscoveryBudgetError as Wb, FILES_CAPABILITY as Wc, voicePeaksOf as Wd, reactionFrame as Wf, HANDOFF_HAVE as Wg, DATA_CHANNEL_LABEL as Wh, isPubkyKey as Wi, CapsKeys as Wl, GATHER_ATTEMPTS as Wm, compactSize as Wn, freshHubs as Wo, isAppKey as Wp, didWebFileNames as Wr, pinIsNewer as Ws, meshMessageRef as Wt, validExternalKey as Wu, encodeGhostlyInvite as Wv, __commonJSMin as Wx, nextTurnPosition as Wy, communityMessageId as X, sameDigest as X_, WAKE_LOST_MS as Xa, PKARR_FUTURE_SKEW_MS as Xb, STATUS_CARD_CAPABILITY as Xc, parseVideoMeta as Xd, PAIRED_REPLY_AUTHORS as Xf, HANDOFF_PAKE as Xg, parseRtcSignal as Xh, pubkyProofPath as Xi, encodePacketTransports as Xl, DIRECT_OWN_ATTEMPTS as Xm, encodeWitness as Xn, newerHead as Xo, readAppSignature as Xp, parseDidJws as Xr, WAKE_CALL_TTL_SECONDS as Xs, mentionsMember as Xt, ringEvidence as Xu, ownInviteRefusal as Xv, signTurnPacket as Xy, communityHasFrame as Y, readHandoffVerified as Y_, UNPROVEN_AUTH_MS as Ya, MAX_DNS_PACKET_BYTES as Yb, SESSION_CAPABILITIES_FRAME as Yc, isVideoMime as Yd, wireReaction as Yf, HANDOFF_OFFER as Yg, offerIsFresh as Yh, pubkyProofFile as Yi, emptyCapsState as Yl, DIRECT_EVIDENCE_MS as Ym, encodeTx as Yn, mergeLobby as Yo, readAppRevocations as Yp, parseDidDocument as Yr, WAKE_CALL_INTERVAL_MS as Ys, mentionsBytes as Yt, ringClaims as Yu, inviteQrText as Yv, signTurnBody as Yy, communityRoster as Z, sealHandoffPiece as Z_, pairedMessageFits as Za, PacketTooLargeError as Zb, SessionCapabilities as Zc, IMAGE_LIMITS as Zd, REPLY_ID as Zf, HANDOFF_PIECE_BYTES as Zg, CALL_SIGNAL_FUTURE_MS as Zh, decodeSvcbRecords as Zi, parsePacketTransports as Zl, DIRECT_PEERS as Zm, hash160 as Zn, pickHubs as Zo, signAppObject as Zp, parseDidSignaturePaste as Zr, WAKE_CALL_WAIT_MS as Zs, validMentions as Zt, validRingKey as Zu, readInviteCode as Zv, signTurnRelease as Zy, APP_CLIENTS as _, handoffDigest as __, findEndpoint as _a, GROUP_BURST_ONE_LINK as _b, generateVapidKeys as _c, emptyDhtDeliveryState as _d, validEditMessage as _f, RECORD_TTL as _g, UNUSED_INVITE_WAIT_MAX_MS as _h, ETHEREUM_USDT as _i, DOMAIN_FILE_MAX_BYTES as _l, expectedRoster as _m, signGroupMeta as _n, readGroupWant as _o, cardLine as _p, atprotoCidFor as _r, TYPING_FRAME as _s, knockRecords as _t, identityRevocationValue as _u, enrollDigits as _v, decrypt as _x, verifyDeviceTransports as _y, checkAppBeforeRun as a, NO_ATTEMPTS as a_, invoiceCallbackUrl as aa, turnSignedMessage as ab, parseWakeFrame as ac, irohRelayUrl as ad, EDIT_BUFFER_MS as af, compressSdp as ag, FIRST_PUBLISH_MAX_MS as ah, DidDhtError as ai, SESSION_FRAME_MAX as al, GROUP_ADMIN_OFF_ERROR as am, groupMetaBody as an, parseEngineError as ao, BUTTON_ID as ap, ATPROTO_PROOF_COLLECTION as ar, PAIRED_CALL_FRAME as as, shortHash as at, IDENTITY_MAX_RECEIVED as au, setUpdateMessage as av, signRelayPayload as ax, deviceEchoNonce as ay, APP_ICON_PATH as b, handoffFileMissingFrame as b_, parseFedimintRequestPayload as ba, GROUP_SIGNALING_ALLOWANCE_SHARE as bb, vapidKeysMatch as bc, dhtFileElements as bd, LINK_PREVIEW_LIMITS as bf, isEmptyLinkPacket as bg, unusedInviteWait as bh, PaymentPreflightError as bi, DOMAIN_TXT_MAX_BYTES as bl, rosterAdmin as bm, SSHSIG_MAX_ARMOR as bn, CarriedTransport as bo, cardUrl as bp, encodeDagCbor as br, TYPING_RATE_WINDOW_MS as bs, GROUP_WAKE_FRAME as bt, isIdentityBinding as bu, enrollHelloFrame as bv, sealedLength as bx, TURN_PUT_WINDOW_MS as by, APP_STORE_LIMITS as c, handoffAckFrame as c_, parsePayParams as ca, BACKGROUND_REQUESTS_PER_MINUTE as cb, relayRequest as cc, transportOrder as cd, EDIT_RECEIVE_LIMIT as cf, heardCallSignal as cg, MAX_DHT_TEXT_BYTES as ch, didDhtFromPublicKey as ci, HOLD_DATED_BACK_MS as cl, GROUP_VERSION_LARGE as cm, groupMetaPicture as cn, GROUP_HAVE_FRAME as co, PR_CHECKS as cp, atprotoProofRecord as cr, ChatFiles as cs, verifyCommunityCommit as ct, IDENTITY_PROVIDER_ID as cu, DEVICE_KINDS as cv, encodeTxtPacket as cx, deviceLinkPairing as cy, readAppListing as d, handoffAttemptSucceeded as d_, BOLT11_PATTERN as da, CHAT_RESERVE_MOST_SHARE as db, wakeRequest as dc, DHT_FILE_TOO_LARGE as dd, RateWindow as df, pickCallCandidates as dg, OFFER_STEP_MAX as dh, encodeDidDhtDeactivated as di, HoldRefusedError as dl, MAX_GROUP_MEMBERS as dm, nextGroupMetaRevision as dn, GROUP_WANT_NO_FRAME as do, RUN_RESULTS as dp, isAtprotoDid as dr, FILE_LIMITS as ds, MAX_KNOCKS as dt, IDENTITY_SUBJECT as du, ENROLL_DONE as dv, createIdentity as dx, deviceLinkSealKey as dy, HANDOFF_REQUEST as e_, pubkyHomeserverOf as ea, turnName as eb, WAKE_SUBJECT as ec, RELAY_URL as ed, parseImageMeta as ef, RTC_CONFIG as eg, symmetricNat as eh, strictBase64Url as ei, WAKE_SESSION_CAPABILITY as el, verifyAppSignature as em, MAX_GROUP_NAME_BYTES as en, publishFailure as eo, pairedReplyAuthor as ep, u32$2 as er, readBeaconHead as es, derivedSecret as et, IDENTITY_CLOCK_SKEW as eu, SET_UPDATE as ev, measureRecords as ex, DEVICE_ECHO_FRAME as ey, readAppStore as f, handoffBusyFrame as f_, decodeBolt11 as fa, CHAT_RESERVE_PER_CHAT as fb, PUSH_SERVICE_HOSTS as fc, DHT_MESSAGE_TTL as fd, dhtEditId as ff, sdpHasCandidates as fg, PRESENCE_HEARTBEAT as fh, encodeDidDhtPacket as fi, isHoldUrl as fl, MEMBER_KEY as fm, openGroupMeta as fn, fetchesByItself as fo, STATUS_CARD_LIMITS as fp, normalizeAtprotoHandle as fr, decodeFileData as fs, decodeGroupEntryLink as ft, IdentityCheckUnavailable as fu, ENROLL_GRANT as fv, identityFromSeed as fx, deviceLinkSecret as fy, APP_BUNDLE_MAGIC as g, handoffDataFrame as g_, fedimintRequestPayload as ga, GROUP_BURST_MS as gb, encryptPushPayload as gc, LIVE_POLL_MS as gd, parseEditedFrame as gf, MAX_MSGS_PAYLOAD_B64 as gg, TRANSPORTS_GONE_MS as gh, signDidDhtPacket as gi, DNS_TYPE as gl, commitUntaggedHash as gm, parseGroupMetaTag as gn, readGroupHave as go, cardEditNumber as gp, AtprotoProofError as gr, transferStalled as gs, knockIdentity as gt, identityPresentationBytes as gu, enrollCancelReason as gv, verify as gx, unsignedDeviceTransports as gy, APP_BUNDLE_LIMITS as h, handoffContextProof as h_, cashuRequestPayload as ha, FRESH_READ_MS as hb, decryptPushPayload as hc, DhtDelivery as hd, parseEditFrame as hf, LABEL$1 as hg, STALLED_LOOK_MS as hh, resolveDidDht as hi, DNS_LABEL as hl, commitHash as hm, parseGroupMetaStatement as hn, readGroupFileMeta as ho, buttonLabelClash as hp, AtprotoCid as hr, transferEnded as hs, groupEntryUrl as ht, emptyIdentityLedger as hu, enrollCancelFrame as hv, sign as hx, signDeviceTransports as hy, appUpdateDecision as i, HANDOFF_WINDOW as i_, findLightningDestination as ia, turnSequence as ib, newWakeToken as ic, irohDescriptor as id, EDIT_BUFFER_MAX as if, callSignalHeardAt as ig, EXPECT_PEER_MS as ih, DID_DHT_VERSION as ii, PairedSession as il, readCanonicalJson as im, groupDisplayName as in, engineText as io, ACTIVE_TASK_STATUSES as ip, ATPROTO_FULL_SCOPE as ir, MAX_PAIRED_CALL_SIGNAL as is, rosterHash as it, IDENTITY_MAX_FRAME as iu, setUpdateFrame as iv, readOwnRelayPayload as ix, deviceEchoFrame as iy, isAppPath as j, handoffVerifiedFrame as j_, GhostLink as ja, TURN_SOURCE_TIMEOUT_MS as jb, appDataBytes as jc, VOICE_LIMITS as jd, COMMUNITY_REACTION_FRAME as jf, servicesFromWire as jg, webLocalFetch as jh, parsePaymentAmount as ji, parseDomainTxt as jl, edgeParams as jm, verifySshSignature as jn, GROUP_VERSION_HUBS as jo, heardTime as jp, DID_GHOSTLY_SERVICE as jr, typingFrame as js, GROUP_REACTED_FRAME as jt, PeerProofs as ju, deviceInviteJoinerKeyZ32 as jv, trimEndOf as jx, TURN_LAST_SEQUENCE as jy, findAppForbiddenKey as k, handoffRetryAfter as k_, DHT_PIN_GRACE_MS as ka, SLOW_DEMOTE_MS as kb, AppSessions as kc, PLAYABLE_AUDIO as kd, forwardedMany as kf, isViewerTag as kg, sanitizeResponseHeaders as kh, formatPaymentAmount as ki, nip05RootKey as kl, confirmationTag as km, sshKeyDigestHex as kn, groupSignalFrame as ko, arrivalKey as kp, DID_DOCUMENT_MAX_BYTES as kr, sanitizeTypingStatus as ks, parseGroupWakeFrame as kt, PROOF_ADAPTERS as ku, DEVICE_INVITE_OWN_DEVICE as kv, sanitizeNick as kx, TURN_BODY_BYTES as ky, checkAppListing as l, handoffAttemptAllowed as l_, requestLnurlInvoice as la, BACKGROUND_WHILE_SIGNALING as lb, wakeFrame as lc, ACTIVE_DHT_POLL_MS as ld, EDIT_SEND_LIMIT as lf, isGlobalIpv4Host as lg, OFFER_FAST_MS as lh, didDhtKey as li, HOLD_LIMITS as ll, LEGACY_GROUP_MEMBERS as lm, groupMetaTag as ln, GROUP_VERSION_FILES as lo, PR_STATES as lp, atprotoProofRkey as lr, FILE_DATA_KIND as ls, GROUP_ENTRY_PROFILE as lt, IDENTITY_REVOCATION_LABEL as lu, ENROLL_CANCEL as lv, readDnsName as lx, deviceLinkParams as ly, signAppStore as m, handoffContext as m_, ENDPOINT as ma, DEPARTED_READS as mb, checkPushEndpoint as mc, DHT_TEXT_REFUSED as md, editedFrame as mf, waitForIceGathering as mg, RELAY_POLL_INTERVALS as mh, openDidDhtPayload as mi, readManifest as ml, SAID_AGAIN as mm, parseGroupMetaFrame as mn, isGroupMessageId as mo, appCardId as mp, shortAtprotoDid as mr, refusalText as ms, entryParams as mt, boundVerifiedIdentity as mu, ENROLL_PROOF as mv, publicKeyFromZ32 as mx, newDeviceSetSecret as my, appRevocationFor as n, HANDOFF_VERIFIED as n_, LNURL_LIMITS as na, turnPayloadSequence as nb, WakeLimiter as nc, automaticTransport as nd, readImageMeta as nf, buildSdpFromSignal as ng, DEPARTED_READ_MS as nh, DID_DHT_PREFIX as ni, sessionCapabilitiesFrame as nl, canonicalJson as nm, MAX_GROUP_PICTURE_LENGTH as nn, EngineError as no, replySnippet as np, varBytes as nr, shouldBeHub as ns, leaveStatement as nt, IDENTITY_FRAME_WINDOW_MS as nu, readSetUpdate as nv, openRelayPayload as nx, ENROLL_CAPABILITY as ny, planAppUpdate as o, filePartDigest as o_, parseInvoiceCallback as oa, turnStatedVerifier as ob, readWake as oc, rankTransports as od, EDIT_FRAME as of, decompressSdp as og, IDLE_THRESHOLD as oh, decodeDidDhtPacket as oi, SESSION_RECEIVE_PENDING as ol, GROUP_ID as om, groupMetaChange as on, PairingTracker as oo, BUTTON_STYLES as op, ATPROTO_PROOF_SCOPE as or, PairedCalls as os, signCommunity as ot, IDENTITY_MAX_VALIDITY as ou, signTombstone as ov, decodeDnsAnswers as ox, deviceFrameCapability as oy, readAppStoreSteps as p, handoffCancelFrame as p_, findBolt11 as pa, DEFAULT_RELAYS as pb, WebPushError as pc, DHT_TEXT_BYTES as pd, editFrame as pf, signalHasVideo as pg, PRESENCE_WINDOW as ph, jwkThumbprint as pi, newMailbox as pl, OWN_FRAME_LIMIT as pm, parseGroupMetaBody as pn, groupFileFallback as po, TASK_STATUSES as pp, parseAtprotoDidDocument as pr, encodeFileData as ps, encodeGroupEntryLink as pt, IdentityExchange as pu, ENROLL_HELLO as pv, identityFromSeedB64 as px, devicePingFrame as py, communityCommitHash as q, readHandoffRelease as q_, RTC_UNSTARTED_MS as qa, isDiscoveryBudgetError as qb, REACTIONS_CAPABILITY as qc, formatVideoDuration as qd, readReaction as qf, HANDOFF_LIST_PER_FRAME as qg, buildDataSdp as qh, normalizePubkyKey as qi, capsDescriptors as ql, REANSWERS as qm, decodeTx as qn, lobbyRecords as qo, readAppRevocation as qp, normalizeDid as qr, readPin as qs, MENTION_EVERYONE as qt, RING_LIFETIME as qu, inviteOwnership as qv, __require as qx, readTurnPacket as qy, appStoreDecision as r, HANDOFF_VERSION as r_, fetchLnurlJson as ra, turnReleaseMessage as rb, deviceWakeRequest as rc, checkedDescriptors as rd, EDITED_FRAME as rf, callRtcConfig as rg, DHT_POLL_INTERVALS as rh, DID_DHT_TTL as ri, PAIRED_PROFILE as rl, canonicalJsonBytes as rm, encodeGroupMetaBody as rn, engineError as ro, wireReply as rp, ATPROTO_DECLARED_SCOPE as rr, validHead as rs, leftStatement as rt, IDENTITY_MAX_EVIDENCE as ru, setAckFrame as rv, parseRelayPayload as rx, HANDOFF_CAPABILITY as ry, APP_STORE_KINDS as s, filePartName as s_, parseLightningDestination as sa, turnVerifierMark as sb, readWakePayload as sc, relayedTransports as sd, EDIT_RATE_WINDOW_MS as sf, extractParamsFromSdp as sg, LinkSession as sh, didDhtDocument as si, HOLD_CAPABILITY as sl, GROUP_MEMBER_CAP as sm, groupMetaNewer as sn, GROUP_FILE_LIMITS as so, ITEM_STATES as sp, atprotoDidMethod as sr, parsePairedCallFrame as ss, verifyCommunityChain as st, IDENTITY_PROOF_CAPABILITY as su, verifySetUpdate as sv, decodeTxtPacket as sx, deviceKeyZ32 as sy, addedAppPermissions as t, HANDOFF_TIMINGS as t_, LIGHTNING_DESTINATION_PATTERN as ta, turnPacket as tb, WAKE_TTL_SECONDS as tc, TRANSPORTS as td, previewable as tf, answersOffer as tg, AWAITING_PEER_MS as th, DID_DHT_MAX_PAYLOAD as ti, parseSessionCapabilities as tl, verifyAppStatementBytes as tm, MAX_GROUP_NAME_LENGTH as tn, ENGINE_ERRORS as to, readReply as tp, u64 as tr, readLobby as ts, encodeCommunityLink as tt, IDENTITY_FRAME_LIMIT as tu, encodeSetSlots as tv, newerPacket as tx, DEVICE_PING_FRAME as ty, checkAppStoreIndex as u, handoffAttemptFailed as u_, resolveLightningDestination as ua, CHAT_RESERVE as ub, wakePayload as uc, DHT_FILE_REFUSED as ud, MAX_EDITS_PER_MESSAGE as uf, parseCallSignal as ug, OFFER_LOOK_MS as uh, didDhtRecords as ui, HoldKeys as ul, MAX_GROUP_CHAIN as um, groupName as un, GROUP_WANT_FRAME as uo, ROUTINE_STATES as up, checkAtprotoProofRecord as ur, FILE_FRAMES as us, KNOCK_TTL_MS as ut, IDENTITY_STATEMENT_PREFIX as uu, ENROLL_CANCEL_REASONS as uv, IDENTITY_MEMO_SIZE as ux, deviceLinkRendezvousSeed as uy, APP_CLIENT_NAME as v, handoffDoneFrame as v_, isFederationId as va, GROUP_OVER_PACE_MS as vb, pushRequest as vc, peekDhtMailbox as vd, validEditNumber as vf, buildLinkRecords as vg, WATCH_PEER_MS as vh, EVM_TEST_CHAINS as vi, DOMAIN_MAX_RECORDS as vl, parseGroupCommit as vm, verifyGroupMetaSignature as vn, readGroupWantNo as vo, cardLinkHost as vp, decodeAtprotoCommit as vr, TYPING_KINDS as vs, mergeKnocks as vt, identityStatement as vu, enrollDoneFrame as vv, encrypt as vx, seedSigner as vy, appDigest as w, handoffManifestFrames as w_, CROSSED_FRESH_MS as wa, RELAY_REQUESTS_PER_MINUTE as wb, APP_RATE_LIMIT as wc, PREVIEWABLE_IMAGE as wd, parseLinkPreview as wf, MAX_SERVICES as wg, formatLocalTarget as wh, USDT_PUBLIC_RPC as wi, dnsProofName as wl, verifyChain as wm, SshSigError as wn, SIGNAL_CARRIERS as wo, statusCardBytes as wp, parseAtprotoVerificationKey as wr, TYPING_TIMEOUT_MS as ws, GROUP_WAKE_RECEIVE_LIMIT as wt, signIdentityPresentation as wu, readEnrollGrant as wv, jpegSize$1 as wx, classifyTurnRead as wy, APP_PERMISSIONS as x, handoffFileRequestFrame as x_, ANSWERS_REFUSED_PAUSES as xa, HEDGE_MISSING_MS as xb, APP_DATA_MAX_BYTES as xc, dhtFileId as xd, canonicalUrl as xf, parseLinkRecords as xg, GhostlyHttpError as xh, SEPOLIA_TEST_USDT as xi, NIP05_PATH as xl, rosterHas as xm, SSHSIG_NAMESPACE as xn, GROUP_SIGNAL_FRAME as xo, checkStatusCard as xp, findInMst as xr, TYPING_REFRESH_MS as xs, GROUP_WAKE_GROUP_LIMIT as xt, newIdentityBinding as xu, enrollMessage as xv, tryDecrypt as xx, TURN_RAISE_READ_TIMEOUT_MS as xy, APP_FORBIDDEN_KEYS as y, handoffEphemeral as y_, parseCashuRequestPayload as ya, GROUP_RATION_WINDOW_MS as yb, vapidAuthorization as yc, DHT_FILE_CAPABILITY as yd, LINK_MAX_CHARS as yf, emptyLinkRecords as yg, presenceSeenAt as yh, ONCHAIN_PROVIDER as yi, DOMAIN_METHODS as yl, rememberAlone as ym, wrapGroupMeta as yn, CARRIED_DEFER_MS as yo, cardTimeUtc as yp, decodeDagCbor as yr, TYPING_RATE_LIMIT as ys, readKnocks as yt, identityStatementText as yu, enrollGrantFrame as yv, generateEncryptionKey as yx, webCryptoSigner as yy, GroupTypingBoard as z, readHandoffCancel as z_, PAIRING_ATTEMPT_MS as za, BREAKER_ALL_DOWN_PROBE_MS as zb, APPS_CAPABILITY as zc, recordingMime as zd, parseReactedFrame as zf, HANDOFF_CANCEL_REASONS as zg, encodeChunk as zh, sparkNetworkOf as zi, CAPS_LABEL as zl, sha256Hex as zm, bip322ToSpend as zn, wireHubPolicy as zo, appRefPublisher as zp, didGhostlyServiceEntry as zr, mayPin as zs, GROUP_EDIT_FRAME as zt, proofHash as zu, INVITE_VERSION as zv, toBase64 as zx, TURN_TTL as zy };
|
|
32081
32313
|
|
|
32082
|
-
//# sourceMappingURL=src-
|
|
32314
|
+
//# sourceMappingURL=src-DhOMxijH.js.map
|