@ghostlytools/cli 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{api-jRUXnBdX.js → api-CVtg7MpI.js} +2 -2
  3. package/dist/assets/{api-BwEgbvvK.js → api-CjOaoG-v.js} +16 -16
  4. package/dist/assets/api-CjOaoG-v.js.map +1 -0
  5. package/dist/assets/{apiKit-BlsNk-Cx.js → apiKit-BAGvlQtm.js} +2 -2
  6. package/dist/assets/{apiKit-BlsNk-Cx.js.map → apiKit-BAGvlQtm.js.map} +1 -1
  7. package/dist/assets/{appFetch-CW9fJPHh.js → appFetch-BwJd-kNq.js} +2 -2
  8. package/dist/assets/{appFetch-CW9fJPHh.js.map → appFetch-BwJd-kNq.js.map} +1 -1
  9. package/dist/assets/{apps-CL8TXHhu.js → apps-Cuk45sz5.js} +5 -5
  10. package/dist/assets/{apps-CL8TXHhu.js.map → apps-Cuk45sz5.js.map} +1 -1
  11. package/dist/assets/{apps-BcG4u6SM.js → apps-DjY095Af.js} +1 -1
  12. package/dist/assets/{backup-xZfV-ytw.js → backup-B56sQqoQ.js} +1 -1
  13. package/dist/assets/{backup-BA41EDvh.js → backup-DekVCDWv.js} +3 -3
  14. package/dist/assets/{backup-BA41EDvh.js.map → backup-DekVCDWv.js.map} +1 -1
  15. package/dist/assets/bark_ffi_wasm_bg-CcafsJla.js.map +1 -1
  16. package/dist/assets/{bitcoind-Dh7n9amb.js → bitcoind-B2bbVSzh.js} +2 -2
  17. package/dist/assets/{bitcoind-Dh7n9amb.js.map → bitcoind-B2bbVSzh.js.map} +1 -1
  18. package/dist/assets/bitcoindevkit_bg-BWQHx7vd.js.map +1 -1
  19. package/dist/assets/{buttons-SH1tNRh7.js → buttons-BGxzOtrq.js} +26 -5
  20. package/dist/assets/buttons-BGxzOtrq.js.map +1 -0
  21. package/dist/assets/buttons-CsN2WJOf.js +1 -0
  22. package/dist/assets/{client-DGS-atRu.js → client-DcQAfc3h.js} +2 -2
  23. package/dist/assets/{client-DGS-atRu.js.map → client-DcQAfc3h.js.map} +1 -1
  24. package/dist/assets/{fixedHosts-CPSsGOI2.js → fixedHosts-C3hBliM9.js} +2 -2
  25. package/dist/assets/{fixedHosts-CPSsGOI2.js.map → fixedHosts-C3hBliM9.js.map} +1 -1
  26. package/dist/assets/{groupMeta-DxuJzko_.js → groupMeta-goASqzOt.js} +94 -17
  27. package/dist/assets/{groupMeta-DxuJzko_.js.map → groupMeta-goASqzOt.js.map} +1 -1
  28. package/dist/assets/{host-BxM-HMr0.js → host-C2WRKj3g.js} +52 -32
  29. package/dist/assets/host-C2WRKj3g.js.map +1 -0
  30. package/dist/assets/{irohWeb-CbnGtUo6.js → irohWeb-NfthOL98.js} +6 -6
  31. package/dist/assets/{irohWeb-CbnGtUo6.js.map → irohWeb-NfthOL98.js.map} +1 -1
  32. package/dist/assets/{main-CwTaepxR.js → main-Dh7fePd8.js} +19 -19
  33. package/dist/assets/main-Dh7fePd8.js.map +1 -0
  34. package/dist/assets/{mainline-CVrd0C1n.js → mainline-DY95WbuK.js} +2 -2
  35. package/dist/assets/{mainline-CVrd0C1n.js.map → mainline-DY95WbuK.js.map} +1 -1
  36. package/dist/assets/{ownDid-DY3rYqDI.js → ownDid-BErplN7N.js} +2 -2
  37. package/dist/assets/{ownDid-DY3rYqDI.js.map → ownDid-BErplN7N.js.map} +1 -1
  38. package/dist/assets/{ownStatus-DtzIllg2.js → ownStatus-ClrFjd7h.js} +4 -3
  39. package/dist/assets/ownStatus-ClrFjd7h.js.map +1 -0
  40. package/dist/assets/{profiles-BOYGlmu2.js → profiles-B8xO8-oj.js} +2 -2
  41. package/dist/assets/{profiles-BOYGlmu2.js.map → profiles-B8xO8-oj.js.map} +1 -1
  42. package/dist/assets/{registry-4W1LGlCF.js → registry--Rg2YvOH.js} +1 -1
  43. package/dist/assets/{registry-Bep4umOM.js → registry-CU8PevhI.js} +3 -3
  44. package/dist/assets/{registry-Bep4umOM.js.map → registry-CU8PevhI.js.map} +1 -1
  45. package/dist/assets/{relay-Cjfmdec0.js → relay-CHWg5hpZ.js} +73 -11
  46. package/dist/assets/relay-CHWg5hpZ.js.map +1 -0
  47. package/dist/assets/{resolve-CIc3KZMV.js → resolve-B1upovPM.js} +2 -2
  48. package/dist/assets/{resolve-CIc3KZMV.js.map → resolve-B1upovPM.js.map} +1 -1
  49. package/dist/assets/{server-D4gf-LnD.js → server-Dgxx_DaN.js} +221 -22
  50. package/dist/assets/server-Dgxx_DaN.js.map +1 -0
  51. package/dist/assets/{waitNotice-DQvZgz2T.js → waitNotice-ylU3XwjO.js} +2 -2
  52. package/dist/assets/{waitNotice-DQvZgz2T.js.map → waitNotice-ylU3XwjO.js.map} +1 -1
  53. package/dist/ghostly.mjs +1 -1
  54. package/npm-shrinkwrap.json +2 -2
  55. package/package.json +1 -1
  56. package/dist/assets/api-BwEgbvvK.js.map +0 -1
  57. package/dist/assets/buttons-CsGdQNnR.js +0 -1
  58. package/dist/assets/buttons-SH1tNRh7.js.map +0 -1
  59. package/dist/assets/host-BxM-HMr0.js.map +0 -1
  60. package/dist/assets/main-CwTaepxR.js.map +0 -1
  61. package/dist/assets/ownStatus-DtzIllg2.js.map +0 -1
  62. package/dist/assets/relay-Cjfmdec0.js.map +0 -1
  63. package/dist/assets/server-D4gf-LnD.js.map +0 -1
@@ -1,24 +1,24 @@
1
- import { $ as beaconRecords, $a as INVITE_HRP, $i as REQUEST_LIFETIME_MS, $n as readReaction, $r as verifyCommitSignature, $t as APP_RANGE_LIMITS, Aa as appFingerprint, Ai as parseLocalTarget, An as fileMessageText, Ar as arrivalKey, Bn as dhtEditId, Br as OWN_FRAME_LIMIT, Bt as WAKE_INTERVAL_MS, C as PAIRED_FRAME_TOO_LARGE, Ci as PRESENCE_WINDOW, Cn as sanitizeFileName, Ct as personStatus, D as GROUP_FILE_LIMITS, Da as sha256Paced, Di as GhostlyHttpError, Dr as statusCardBytes, E as pairedMessageFrame, Ea as readAppBundleAsync, Ei as presenceSeenAt, Er as sameButtonText, Fa as isAppKey, Fn as EDIT_BUFFER_MS, Fr as GROUP_ADMIN_OFF_ERROR, Ft as nextPinNumber, G as MESH_HUBS, Gi as parseCallSignal, Gn as COMMUNITY_REACTION_FRAME, Gr as parseGroupCommit, Gt as deviceWakeRequest, Hn as validRemovalNumber, Hr as commitHash, Ht as WAKE_ONLINE_DELAY_MS, In as EDIT_RATE_WINDOW_MS, Ir as GROUP_ID, It as pinIsNewer, J as meshHubs, Ja as parseImageMeta, Ji as HTTP_SERVICE_PROTO, Jn as ReactionWindow, Jr as rosterHas, Jt as relayRequest, K as NO_HUB_POLICY, Kn as GROUP_REACTION_FRAME, Kr as rememberAlone, Kt as newWakeToken, La as isAppRef, Ln as MAX_REMOVAL_NUMBER, Lr as GROUP_MEMBER_CAP, Lt as pinNumberHolds, M as groupFileFallback, Ma as appRefPublisher, Mi as LIMITS, Mr as heardTime, Mt as GROUP_PIN_FRAME, Ni as decodeControl, Nr as receivedTimestamp, Nt as PIN_LIMITS, O as GROUP_HAVE_FRAME, Or as statusCardText, Ot as TypingReceiver, P as readGroupFileMeta, Pa as isAppHash, Pi as encodeControl, Pn as parseVideoMeta, Pr as shownTime, Pt as mayPin, Q as beaconKeys, Qa as readCanonicalJson, Qi as ContactRequestError, Qn as reactionIsNewer, Qr as verifyCommit, Qt as vapidKeysMatch, R as CarriedTransport, Ra as readAppRevocation, Ri as RTC_CONFIG, Rn as REMOVED_TEXT, Rt as readPin, S as LIVENESS_PING_MS, Sn as formatFileSize, St as liveStatus, T as pairedMessageFits, Ti as WATCH_PEER_MS, Tr as readStatusCard, Tt as TYPING_FRAME, U as groupSignalFrame, Ui as contactRtcConfig, Un as forwardedAgain, Ur as commitUntaggedHash, Vn as validEditNumber, Vr as SAID_AGAIN, Vt as WAKE_ONLINE_BATCH_MS, W as readGroupSignal, Wn as readForwarded, Wr as expectedRoster, Wt as WakeLimiter, X as pickMeshHubs, Xa as canonicalJson, Xi as MAX_SHARED_APPS, Xn as queueReaction, Xr as sortRoster, Xt as wakeRequest, Y as meshRendezvous, Yi as LEGACY_SERVICES, Yn as nextReactionNumber, Yr as signCommit, Yt as wakeFrame, Z as COMMUNITY_TOPOLOGY, Za as canonicalJsonBytes, Zi as serviceIdFromName, Zn as reactionEmoji, Zr as verifyChain, Zt as checkPushEndpoint, _ as signGroupMeta, _i as ratchetSessionOf, _o as newDeviceSetSecret, _t as sentWhole, a as groupMetaChange, aa as knockSlotOf, ai as encryptText, an as BUTTONS_CAPABILITY, ao as inviteLink, ar as readReply, at as mergeBeacon, b as GhostLink, bn as DHT_FILE_CAPABILITY, c as groupMetaTag, ca as makeStampPaced, ci as newEpochSecret, cn as UPGRADE_CAPABILITY, co as pastedAgain, cr as BUTTON_ID, ct as pickHubs, d as keepPastGroupMeta, da as readKnockSlot, di as sealPair, dn as capsDescriptors, do as HANDOFF_CAPABILITY, dt as readBeaconHead, ea as contactAskerFrame, ei as GROUP_PROFILE, en as isServeId, eo as INVITE_MAX_LENGTH, er as validReactionNumber, et as doorHubs, f as nextGroupMetaRevision, fa as readLinkRecord, fi as sealSecret, fn as dialDescriptors, fo as deviceEchoFrame, ft as readLobby, g as parseGroupMetaTag, ga as APP_BUNDLE_MAGIC, gi as emptyRatchetState, go as devicePingFrame, gr as STATUS_CARD_LIMITS, h as parseGroupMetaFrame, ha as APP_BUNDLE_LIMITS, hi as RatchetBox, hn as validExternalKey, ho as deviceLinkPairing, ht as FILE_LIMITS, i as groupMetaBody, ia as knockSlotIdentity, ii as edgeParams, in as APPS_CAPABILITY, io as encodeInviteCode, ir as pairedReplyAuthor, it as lobbyRecords, ja as appRef, ji as webLocalFetch, jn as parseVoiceMeta, jr as claimedTime, jt as typingActivity, ka as APP_STATEMENT_LIMITS, ki as formatLocalTarget, kt as TypingSender, l as groupMetaToHand, la as mergeContactKnocks, li as openPair, ln as CapsExchange, lo as DEVICES_CAPABILITY, lt as rankHubs, m as parseGroupMetaBody, ma as seenEntry, mi as RATCHET_CAPABILITY, mn as emptyProofLedger, mo as deviceKeyZ32, mt as ChatFiles, na as contactDay, ni as confirmationTag, nn as chatAppId, no as createChatInvite, nr as REPLY_LIMITS, nt as hubRank, o as groupMetaNewer, oa as knockSlotRecords, oi as epochKeys, on as EDIT_CAPABILITY, oo as inviteOwnership, or as replySnippet, ot as mergeLobby, p as openGroupMeta, pa as requestRecords, pi as sha256Hex, pn as PeerProofs, po as deviceEchoNonce, pt as shouldBeHub, q as mayBeHub, qi as emptyLinkRecords, qn as REACTION_LIMITS, qr as rosterAdmin, qt as parseWakeFrame, r as groupDisplayName, ra as knockHolds, ri as decryptText, rn as isAppVersion, ro as decodeInviteCode, rr as groupReplyAuthor, rt as lobbyKeys, s as groupMetaPicture, sa as linkRecords, si as groupCallKey, sn as STATUS_CARD_CAPABILITY, sr as wireReply, st as newerHead, t as encodeGroupMetaBody, ta as contactAskerHolds, ti as confirmationMatches, to as OwnInviteError, tr as wireReaction, tt as freshHubs, u as groupName, ua as openRequest, ui as openSecret, un as DHT_TEXT_CAPABILITY, uo as ENROLL_CAPABILITY, ut as readBeacon, v as verifyGroupMetaSignature, va as appDigest, vi as DirectPathWatch, vn as DHT_MESSAGE_TTL, vt as transferEnded, w as pairedEditFits, wa as pacer, wi as RELAY_POLL_INTERVALS, wn as sanitizeMime, wr as checkStatusCard, x as INVITE_TAKEN, xi as DHT_POLL_INTERVALS, xn as dhtFileId, xr as cardEditNumber, xt as STATUS_IDLE_AFTER_MS, y as wrapGroupMeta, ya as appViewOf, yn as peekDhtMailbox, yt as transferStalled, za as readAppRevocationShape, zn as RateWindow, zr as MEMBER_KEY, zt as WAKE_CALL_INTERVAL_MS } from "./groupMeta-DxuJzko_.js";
1
+ import { $ as beaconRecords, $a as INVITE_HRP, $i as REQUEST_LIFETIME_MS, $n as readReaction, $r as verifyCommitSignature, $t as APP_RANGE_LIMITS, Aa as appFingerprint, Ai as parseLocalTarget, An as fileMessageText, Ar as arrivalKey, Bn as dhtEditId, Br as OWN_FRAME_LIMIT, Bt as WAKE_INTERVAL_MS, C as PAIRED_FRAME_TOO_LARGE, Ci as PRESENCE_WINDOW, Cn as sanitizeFileName, Ct as personStatus, D as GROUP_FILE_LIMITS, Da as sha256Paced, Di as GhostlyHttpError, Dr as statusCardBytes, E as pairedMessageFrame, Ea as readAppBundleAsync, Ei as presenceSeenAt, Er as sameButtonText, Fa as isAppKey, Fn as EDIT_BUFFER_MS, Fr as GROUP_ADMIN_OFF_ERROR, Ft as nextPinNumber, G as MESH_HUBS, Gi as parseCallSignal, Gn as COMMUNITY_REACTION_FRAME, Gr as parseGroupCommit, Gt as deviceWakeRequest, Hn as validRemovalNumber, Hr as commitHash, Ht as WAKE_ONLINE_DELAY_MS, In as EDIT_RATE_WINDOW_MS, Ir as GROUP_ID, It as pinIsNewer, J as meshHubs, Ja as parseImageMeta, Ji as HTTP_SERVICE_PROTO, Jn as ReactionWindow, Jr as rosterHas, Jt as relayRequest, K as NO_HUB_POLICY, Kn as GROUP_REACTION_FRAME, Kr as rememberAlone, Kt as newWakeToken, La as isAppRef, Ln as MAX_REMOVAL_NUMBER, Lr as GROUP_MEMBER_CAP, Lt as pinNumberHolds, M as groupFileFallback, Ma as appRefPublisher, Mi as LIMITS, Mr as heardTime, Mt as GROUP_PIN_FRAME, Ni as decodeControl, Nr as receivedTimestamp, Nt as PIN_LIMITS, O as GROUP_HAVE_FRAME, Or as statusCardText, Ot as TypingReceiver, P as readGroupFileMeta, Pa as isAppHash, Pi as encodeControl, Pn as parseVideoMeta, Pr as shownTime, Pt as mayPin, Q as beaconKeys, Qa as readCanonicalJson, Qi as ContactRequestError, Qn as reactionIsNewer, Qr as verifyCommit, Qt as vapidKeysMatch, R as CarriedTransport, Ra as readAppRevocation, Ri as RTC_CONFIG, Rn as REMOVED_TEXT, Rt as readPin, S as LIVENESS_PING_MS, Sn as formatFileSize, St as liveStatus, T as pairedMessageFits, Ti as WATCH_PEER_MS, Tr as readStatusCard, Tt as TYPING_FRAME, U as groupSignalFrame, Ui as contactRtcConfig, Un as forwardedAgain, Ur as commitUntaggedHash, Vn as validEditNumber, Vr as SAID_AGAIN, Vt as WAKE_ONLINE_BATCH_MS, W as readGroupSignal, Wn as readForwarded, Wr as expectedRoster, Wt as WakeLimiter, X as pickMeshHubs, Xa as canonicalJson, Xi as MAX_SHARED_APPS, Xn as queueReaction, Xr as sortRoster, Xt as wakeRequest, Y as meshRendezvous, Yi as LEGACY_SERVICES, Yn as nextReactionNumber, Yr as signCommit, Yt as wakeFrame, Z as COMMUNITY_TOPOLOGY, Za as canonicalJsonBytes, Zi as serviceIdFromName, Zn as reactionEmoji, Zr as verifyChain, Zt as checkPushEndpoint, _ as signGroupMeta, _i as ratchetSessionOf, _o as newDeviceSetSecret, _t as sentWhole, a as groupMetaChange, aa as knockSlotOf, ai as encryptText, an as BUTTONS_CAPABILITY, ao as inviteLink, ar as readReply, at as mergeBeacon, b as GhostLink, bn as DHT_FILE_CAPABILITY, c as groupMetaTag, ca as makeStampPaced, ci as newEpochSecret, cn as UPGRADE_CAPABILITY, co as pastedAgain, cr as BUTTON_ID, ct as pickHubs, d as keepPastGroupMeta, da as readKnockSlot, di as sealPair, dn as capsDescriptors, do as HANDOFF_CAPABILITY, dt as readBeaconHead, ea as contactAskerFrame, ei as GROUP_PROFILE, en as isServeId, eo as INVITE_MAX_LENGTH, er as validReactionNumber, et as doorHubs, f as nextGroupMetaRevision, fa as readLinkRecord, fi as sealSecret, fn as dialDescriptors, fo as deviceEchoFrame, ft as readLobby, g as parseGroupMetaTag, ga as APP_BUNDLE_MAGIC, gi as emptyRatchetState, go as devicePingFrame, gr as STATUS_CARD_LIMITS, h as parseGroupMetaFrame, ha as APP_BUNDLE_LIMITS, hi as RatchetBox, hn as validExternalKey, ho as deviceLinkPairing, ht as FILE_LIMITS, i as groupMetaBody, ia as knockSlotIdentity, ii as edgeParams, in as APPS_CAPABILITY, io as encodeInviteCode, ir as pairedReplyAuthor, it as lobbyRecords, ja as appRef, ji as webLocalFetch, jn as parseVoiceMeta, jr as claimedTime, jt as typingActivity, ka as APP_STATEMENT_LIMITS, ki as formatLocalTarget, kt as TypingSender, l as groupMetaToHand, la as mergeContactKnocks, li as openPair, ln as CapsExchange, lo as DEVICES_CAPABILITY, lt as rankHubs, m as parseGroupMetaBody, ma as seenEntry, mi as RATCHET_CAPABILITY, mn as emptyProofLedger, mo as deviceKeyZ32, mt as ChatFiles, na as contactDay, ni as confirmationTag, nn as chatAppId, no as createChatInvite, nr as REPLY_LIMITS, nt as hubRank, o as groupMetaNewer, oa as knockSlotRecords, oi as epochKeys, on as EDIT_CAPABILITY, oo as inviteOwnership, or as replySnippet, ot as mergeLobby, p as openGroupMeta, pa as requestRecords, pi as sha256Hex, pn as PeerProofs, po as deviceEchoNonce, pt as shouldBeHub, q as mayBeHub, qi as emptyLinkRecords, qn as REACTION_LIMITS, qr as rosterAdmin, qt as parseWakeFrame, r as groupDisplayName, ra as knockHolds, ri as decryptText, rn as isAppVersion, ro as decodeInviteCode, rr as groupReplyAuthor, rt as lobbyKeys, s as groupMetaPicture, sa as linkRecords, si as groupCallKey, sn as STATUS_CARD_CAPABILITY, sr as wireReply, st as newerHead, t as encodeGroupMetaBody, ta as contactAskerHolds, ti as confirmationMatches, to as OwnInviteError, tr as wireReaction, tt as freshHubs, u as groupName, ua as openRequest, ui as openSecret, un as DHT_TEXT_CAPABILITY, uo as ENROLL_CAPABILITY, ut as readBeacon, v as verifyGroupMetaSignature, va as appDigest, vi as DirectPathWatch, vn as DHT_MESSAGE_TTL, vt as transferEnded, w as pairedEditFits, wa as pacer, wi as RELAY_POLL_INTERVALS, wn as sanitizeMime, wr as checkStatusCard, x as INVITE_TAKEN, xi as DHT_POLL_INTERVALS, xn as dhtFileId, xr as cardEditNumber, xt as STATUS_IDLE_AFTER_MS, y as wrapGroupMeta, ya as appViewOf, yn as peekDhtMailbox, yt as transferStalled, za as readAppRevocationShape, zn as RateWindow, zr as MEMBER_KEY, zt as WAKE_CALL_INTERVAL_MS } from "./groupMeta-goASqzOt.js";
2
2
  import { _ as receivedIdentityStatus, d as emptyIdentityLedger, y as lastSharedWithMe } from "./identityProofs-Cksc_K7_.js";
3
3
  import { _ as openDb, a as GROUP_LIGHT_RANGE, b as transact, c as clearProfileStores, d as deleteDatabase, f as errorLine, g as newestWalletTx, h as groupLiveKey, i as FILE_INDEX, l as committed, m as groupLightKey, n as APP_STORAGE_SCOPE_INDEX, o as GROUP_LIVE_RANGE, p as fileStore, r as CARD_INDEX, s as STORES$1, t as APP_STORAGE_CHAT_INDEX, u as databaseName, v as profileOpenFailure, x as wrap, y as store } from "./idb-ewvbqyDI.js";
4
4
  import { c as fileSpace, f as FILE_BYTES_STEP, o as fileBytes, r as blobDigest, s as fileBytesOf, u as removeFileBytes } from "./fileBytes-CfvUXdSy.js";
5
5
  import { a as sealSeed, c as openRow, d as sealRow, f as sealedStore, g as whenDataKeyDropped, h as sealSecret$1, i as newDeviceKey, l as openRows, m as openSecret$1, o as unsealSeed, p as hasDataKey, r as intentRepository, s as RowSeals, u as proofKey } from "./networkReason-Be-hMghr.js";
6
- import { $ as lightningPaying, A as paymentNetworksOf, At as mergeKnocks, B as removeStored, Bt as validEditText, C as paymentWireId, Ct as setSingleWriterGate, D as createTiming, Dt as entryParams, E as createFailure, Et as encodeGroupEntryLink, F as copyForForward, Ft as carryMentions, G as IdentityProofs, Gt as wireMentions, H as streamStored, Ht as mentionsBytes, I as forwardError, It as communityEditFrame, J as cardsKey, K as CASHU_CARD, L as forwardKind, Lt as communityMessageAuthor, N as WALLET_TYPES, Nt as GROUP_EDIT_FRAME, O as crossNetwork, Ot as knockIdentity, P as FORWARD_MESSAGE_GONE, Pt as GROUP_EDIT_TEXT_BYTES, Q as journaledPayment, R as FileAppender, Rt as meshMessageRef, S as paymentAlias, St as setAwayWallets, T as assertConfirmedReal, Tt as decodeGroupEntryLink, Ut as mentionsMember, V as storedSize, Vt as MENTION_LIMITS, Wt as validMentions, X as breez, Y as BREEZ_SOURCE, Z as normalizePhrase, _ as groupReply, _t as WrongNetworkError, at as cashuMint, b as replyRef, bt as refuseAway, ct as loadBreezSdk, d as parsePayLink, dt as breezDatabasesFor, et as INVOICE_PACE, f as GroupFileDesk, ft as iceServerProblem, g as storedGroupFiles, gt as ModeGate, h as groupOfFile, ht as ModeChanged, i as onPublicIrohRelay, it as CASHU_MINT_SOURCE, j as walletInstances, jt as readKnocks, k as paymentNetwork, kt as knockRecords, l as groupLinkId, lt as openBreez, m as groupFileText, mt as relayOnlyProblem, n as createIrohWebEndpoint, nt as ProviderSources, o as groupPayLineId, ot as AskBackoff, p as groupFileId, pt as iceServerSetting, q as LightningCards, r as irohRelayProblem, rt as sourceKey, st as forgetBreez, t as DEFAULT_IROH_RELAYS, tt as nextInvoiceAsk, u as pairLinkId, ut as breezDatabaseInUse, v as pairedWireReply, vt as networkLabel, w as WALLET_NAMES, x as replyTo, xt as requireTurn, y as receivedPairedReply, yt as awayFrom, z as readStored$2, zt as parseCommunityEdit } from "./irohWeb-CbnGtUo6.js";
6
+ import { $ as lightningPaying, A as paymentNetworksOf, At as mergeKnocks, B as removeStored, Bt as validEditText, C as paymentWireId, Ct as setSingleWriterGate, D as createTiming, Dt as entryParams, E as createFailure, Et as encodeGroupEntryLink, F as copyForForward, Ft as carryMentions, G as IdentityProofs, Gt as wireMentions, H as streamStored, Ht as mentionsBytes, I as forwardError, It as communityEditFrame, J as cardsKey, K as CASHU_CARD, L as forwardKind, Lt as communityMessageAuthor, N as WALLET_TYPES, Nt as GROUP_EDIT_FRAME, O as crossNetwork, Ot as knockIdentity, P as FORWARD_MESSAGE_GONE, Pt as GROUP_EDIT_TEXT_BYTES, Q as journaledPayment, R as FileAppender, Rt as meshMessageRef, S as paymentAlias, St as setAwayWallets, T as assertConfirmedReal, Tt as decodeGroupEntryLink, Ut as mentionsMember, V as storedSize, Vt as MENTION_LIMITS, Wt as validMentions, X as breez, Y as BREEZ_SOURCE, Z as normalizePhrase, _ as groupReply, _t as WrongNetworkError, at as cashuMint, b as replyRef, bt as refuseAway, ct as loadBreezSdk, d as parsePayLink, dt as breezDatabasesFor, et as INVOICE_PACE, f as GroupFileDesk, ft as iceServerProblem, g as storedGroupFiles, gt as ModeGate, h as groupOfFile, ht as ModeChanged, i as onPublicIrohRelay, it as CASHU_MINT_SOURCE, j as walletInstances, jt as readKnocks, k as paymentNetwork, kt as knockRecords, l as groupLinkId, lt as openBreez, m as groupFileText, mt as relayOnlyProblem, n as createIrohWebEndpoint, nt as ProviderSources, o as groupPayLineId, ot as AskBackoff, p as groupFileId, pt as iceServerSetting, q as LightningCards, r as irohRelayProblem, rt as sourceKey, st as forgetBreez, t as DEFAULT_IROH_RELAYS, tt as nextInvoiceAsk, u as pairLinkId, ut as breezDatabaseInUse, v as pairedWireReply, vt as networkLabel, w as WALLET_NAMES, x as replyTo, xt as requireTurn, y as receivedPairedReply, yt as awayFrom, z as readStored$2, zt as parseCommunityEdit } from "./irohWeb-NfthOL98.js";
7
7
  import { C as cashuRequestPayload, D as parseCashuRequestPayload, E as isFederationId, O as parseFedimintRequestPayload, S as ENDPOINT, T as findEndpoint, _ as SPARK_NETWORKS, a as SEPOLIA_TEST_USDT, b as sparkInvoiceDetails, c as USDT_PUBLIC_RPC, d as assertTokenUnits, f as assertWholeSats, g as walletNetworkOf, h as validatePaymentTarget, i as PaymentPreflightError, l as WALLET_NETWORKS, n as EVM_TEST_CHAINS, p as formatPaymentAmount, r as ONCHAIN_PROVIDER, s as TEST_USDT_FAUCET_AMOUNT, t as ETHEREUM_USDT, u as arkAddressPrefix, v as SPARK_PROVIDER, w as fedimintRequestPayload, x as isBitcoinAddress, y as sparkAddressKind } from "./paymentIntent-DySU3Ajm.js";
8
8
  import { a as decodeBolt11, t as nwc } from "./nwcProvider-pL2XqSbW.js";
9
9
  import { i as parseEngineError, n as engineError, r as engineText, t as EngineError } from "./engineErrors--9hfgKlK.js";
10
10
  import { r as loadFedimintSdk, t as fedimintDatabase } from "./fedimintSdk-D-6H9Pe7.js";
11
11
  import { i as SourceUnreachableError, n as PROVIDER_PLATFORMS, o as isNothingSpentError, r as SourceConfigError, t as NothingSpentError, u as redact } from "./types-CdWwgvyt.js";
12
12
  import { c as isTestMint, d as mintUrlSpelling, f as paysItsOwnInvoices, l as isWorthlessMint, n as DEFAULT_MINTS, o as fakesLightning, r as TEST_MINT, t as BITCOIN_INVOICE_ON_TESTNET, u as mintNetwork } from "./mints-CMDLbMeH.js";
13
- import { a as registeredLightningProviders, b as isPubkyKey, c as boundedIdentityFetch, d as testSwitch, g as encodeDidDhtPacket, h as encodeDidDhtDeactivated, m as didDhtFromPublicKey, n as setOwnDidSource, o as registeredOnchainProviders, p as didDhtDocument, r as onAdaptersChanged, s as reserveAdapterIds, u as testBuild, v as signDidDhtPacket } from "./ownDid-DY3rYqDI.js";
13
+ import { a as registeredLightningProviders, b as isPubkyKey, c as boundedIdentityFetch, d as testSwitch, g as encodeDidDhtPacket, h as encodeDidDhtDeactivated, m as didDhtFromPublicKey, n as setOwnDidSource, o as registeredOnchainProviders, p as didDhtDocument, r as onAdaptersChanged, s as reserveAdapterIds, u as testBuild, v as signDidDhtPacket } from "./ownDid-BErplN7N.js";
14
14
  import { S as verify, _ as identityFromSeed, a as createRelayPayload, c as openRelayPayload, d as signRelayPayload, f as decodeDnsAnswers, g as createIdentity, m as encodeTxtPacket, p as decodeTxtPacket, r as PacketTooLargeError, v as identityFromSeedB64, x as sign, y as publicKeyFromZ32 } from "./pkarr-BQo4PcCg.js";
15
- import { c as normalizeRelayUrl, d as traceLink, g as withRequestOptions, i as RelayTransport, m as isDiscoveryBudgetError, p as budgetRetryMs, s as currentRelays, t as DEFAULT_RELAYS } from "./relay-Cjfmdec0.js";
15
+ import { c as normalizeRelayUrl, d as traceLink, g as withRequestOptions, i as RelayTransport, m as isDiscoveryBudgetError, p as budgetRetryMs, s as currentRelays, t as DEFAULT_RELAYS } from "./relay-CHWg5hpZ.js";
16
16
  import { a as stripHidden, i as sanitizeNick, n as hasVisible, r as sanitizeDisplayText, s as unwrapPasted, t as dropLoneJoiners } from "./text-li76pThX.js";
17
17
  import { a as fromZ32, d as utf8Decode, f as utf8Encode, i as fromBase64Url, l as toBase64Url, n as concatBytes$1, o as isZ32Key, s as randomBytes, t as bytesEqual, u as toZ32 } from "./bytes-C1DNGY18.js";
18
18
  import { C as generateEncryptionKey, _ as HoldKeys, b as newMailbox, g as HOLD_LIMITS, h as HOLD_DATED_BACK_MS, i as automaticTransport, m as HOLD_CAPABILITY, r as TRANSPORTS, v as HoldRefusedError, x as readManifest, y as isHoldUrl } from "./pairedTransports-BKmvlKz1.js";
19
19
  import { i as parseLinkPreview, o as sanitizeAvatar } from "./linkPreview-DdMf-YAc.js";
20
- import { C as normalizeAtprotoHandle, S as isAtprotoDid, d as chosenResolver, m as setPkarrRelaySource, r as resolveAtprotoDid, t as assertPublicServer } from "./resolve-CIc3KZMV.js";
21
- import { S as webCryptoSigner, a as besideUrl, c as isGitHubPage, d as appStoreDecision, f as appUpdateDecision, h as APP_STORE_LIMITS, i as appPasteUrl, l as addedAppPermissions, m as planAppUpdate, n as APP_FETCH_LIMITS, o as boundedAppFetch, p as checkAppBeforeRun, r as AppFetchError, s as isAppFetchUrl, u as appRevocationFor, v as readAppStoreSteps, x as seedSigner } from "./appFetch-CW9fJPHh.js";
20
+ import { C as normalizeAtprotoHandle, S as isAtprotoDid, d as chosenResolver, m as setPkarrRelaySource, r as resolveAtprotoDid, t as assertPublicServer } from "./resolve-B1upovPM.js";
21
+ import { S as webCryptoSigner, a as besideUrl, c as isGitHubPage, d as appStoreDecision, f as appUpdateDecision, h as APP_STORE_LIMITS, i as appPasteUrl, l as addedAppPermissions, m as planAppUpdate, n as APP_FETCH_LIMITS, o as boundedAppFetch, p as checkAppBeforeRun, r as AppFetchError, s as isAppFetchUrl, u as appRevocationFor, v as readAppStoreSteps, x as seedSigner } from "./appFetch-BwJd-kNq.js";
22
22
  import { n as traceJoin } from "./joinTrace-xKBe73j9.js";
23
23
  import { n as MAX_BACKUP_BYTES, t as BACKUP_MEDIA_TYPE } from "./envelope-Bi2kMqbp.js";
24
24
  import { t as hyperdhtRelayProblem } from "./hyperdhtRelay-bjNGacf5.js";
@@ -8124,6 +8124,69 @@ function signCommunity(commit, seed) {
8124
8124
  sig: toBase64Url(sign(utf8Encode(tuple(commit)), seed))
8125
8125
  };
8126
8126
  }
8127
+ /** A group's call room: `g_` and the group id, a namespace no guest pass may enter. */
8128
+ var groupCallRoom = (g) => `g_${g}`;
8129
+ /**
8130
+ * An admin's request to act on a member in its group's call (WISP 602 · Group Calls § Moderation): what it sends to
8131
+ * `POST <sfu>/sfu/group-moderate`, signed by its group key over the node's origin as a token request is, under its own
8132
+ * tag, so neither request can stand for the other.
8133
+ *
8134
+ * {"v":1,"g":"<group>","k":"<admin key>","room":"g_<group>","act":"mute","target":"<member key>","src":["microphone"],
8135
+ * "ts":1794700800,"n":"<nonce>","sig":"…"}
8136
+ *
8137
+ * `mute` takes `src` away from `target`, `allow` gives it back, `remove` takes `target` out of the call and keeps it
8138
+ * out, `unban` lets it back in, and `state` changes nothing (the reply says who is muted and banned). Whether `k` is
8139
+ * the group's admin is the node's to say, from its roster.
8140
+ */
8141
+ /** What an admin can take from a member, in the sorted order a request lists them in. */
8142
+ var GROUP_CALL_SOURCES = [
8143
+ "camera",
8144
+ "microphone",
8145
+ "screen_share"
8146
+ ];
8147
+ var GROUP_CALL_MODERATION_ACTS = [
8148
+ "mute",
8149
+ "allow",
8150
+ "remove",
8151
+ "unban",
8152
+ "state"
8153
+ ];
8154
+ var takesSources = (act) => act === "mute" || act === "allow";
8155
+ /** Exactly the bytes an admin signs: the array form, as the token request's. */
8156
+ var groupCallModerationBytes = (sfu, g, room, k, act, target, src, ts, n) => utf8Encode(JSON.stringify([
8157
+ "ghostly-sfu/1 moderate",
8158
+ sfu,
8159
+ g,
8160
+ room,
8161
+ k,
8162
+ act,
8163
+ target,
8164
+ src,
8165
+ ts,
8166
+ n
8167
+ ]));
8168
+ /** A moderation request for `sfu`, signed by the admin's group key `seed`; `src` is listed unique and sorted. */
8169
+ function signGroupCallModeration(input, seed) {
8170
+ const k = identityFromSeed(seed).pubKeyZ32;
8171
+ const room = groupCallRoom(input.g);
8172
+ const target = input.act === "state" ? "" : input.target ?? "";
8173
+ const src = takesSources(input.act) ? [...new Set(input.src ?? [])].sort() : [];
8174
+ const ts = input.ts ?? Math.floor(Date.now() / 1e3);
8175
+ const n = input.n ?? toBase64Url(randomBytes(16));
8176
+ const sig = toBase64Url(sign(groupCallModerationBytes(input.sfu, input.g, room, k, input.act, target, src, ts, n), seed));
8177
+ return {
8178
+ v: 1,
8179
+ g: input.g,
8180
+ k,
8181
+ room,
8182
+ act: input.act,
8183
+ target,
8184
+ src,
8185
+ ts,
8186
+ n,
8187
+ sig
8188
+ };
8189
+ }
8127
8190
  // ../core/src/groupTyping.ts
8128
8191
  /**
8129
8192
  * The typing indicator of a private group (WISP 902 · Group Mesh § Typing): "Ana is typing", said on the group's
@@ -8618,7 +8681,7 @@ var bitcoindRpc = {
8618
8681
  if (!user || !password) throw new Error("Enter the RPC user and password, or paste the .cookie file");
8619
8682
  },
8620
8683
  async create(settings, host) {
8621
- const { BitcoindOnchain, tauriTransport } = await import("./bitcoind-Dh7n9amb.js");
8684
+ const { BitcoindOnchain, tauriTransport } = await import("./bitcoind-B2bbVSzh.js");
8622
8685
  return BitcoindOnchain.connect({
8623
8686
  url: settings.config.url.trim(),
8624
8687
  wallet: settings.config.wallet?.trim() ?? "",
@@ -17977,7 +18040,7 @@ var HostNotContacted = class extends Error {};
17977
18040
  */
17978
18041
  function fixedHostsFetch(fetch) {
17979
18042
  return async (url, options) => {
17980
- const { fixedIdentityHosts } = await import("./fixedHosts-CPSsGOI2.js");
18043
+ const { fixedIdentityHosts } = await import("./fixedHosts-C3hBliM9.js");
17981
18044
  const host = hostOf$1(url);
17982
18045
  if (!fixedIdentityHosts().has(host) && host !== hostOf$1("https://public.api.bsky.app") && host !== hostOf$1("https://nexus.pubky.app")) throw new HostNotContacted(`Hide my IP from contacts is on: ${host}, a server your contact chose, was not contacted`);
17983
18046
  return fetch(url, options);
@@ -29798,7 +29861,7 @@ var FileDesk = class {
29798
29861
  /** A files/3 transfer of this chat's under way on its session: offered, moving, or being checked. */
29799
29862
  moving(linkId) {
29800
29863
  const files = this.chats.get(linkId)?.files;
29801
- return !!files?.live && files.records().some((r) => r.state === "offered" || r.state === "active" || r.state === "verifying");
29864
+ return !!files?.live && files.underWay();
29802
29865
  }
29803
29866
  /**
29804
29867
  * Offers a file whose record and bytes are stored under its local id (`outgoingFileId`). Offered before (Retry, a
@@ -29971,21 +30034,20 @@ var FileDesk = class {
29971
30034
  const taken = this.deps.receivedBytes(linkId) + this.autoTaken(linkId);
29972
30035
  return file.size <= FILE_LIMITS.askAboveBytes && taken + file.size <= FILE_LIMITS.autoAcceptBytesPerPeer ? "accept" : "ask";
29973
30036
  }
29974
- /** Bytes still to come of the files taken here (every chat's, not ended): the room they will take. */
30037
+ /**
30038
+ * Bytes still to come of the files taken here (every chat's, not ended): the room they will take. Read from each
30039
+ * chat's unfinished files only: copying every record each chat ever had cost every offer ~10 ms at 100,000 files.
30040
+ */
29975
30041
  stillComing() {
29976
30042
  let due = 0;
29977
- for (const chat of this.chats.values()) for (const r of chat.files.records()) if (r.direction === "in" && r.state !== "asking" && !transferEnded(r)) due += Math.max(0, r.file.size - r.confirmed);
30043
+ for (const chat of this.chats.values()) due += chat.files.stillToCome();
29978
30044
  return due;
29979
30045
  }
29980
30046
  /** files/3 files this contact sent that were taken without asking and are kept (or on their way). */
29981
30047
  autoTaken(linkId) {
29982
30048
  const chat = this.chats.get(linkId);
29983
30049
  if (!chat) return 0;
29984
- return chat.files.records().filter((r) => r.direction === "in" && !r.consented && r.state !== "asking" && ![
29985
- "failed",
29986
- "declined",
29987
- "cancelled"
29988
- ].includes(r.state)).reduce((sum, r) => sum + r.file.size, 0);
30050
+ return chat.files.takenUnasked();
29989
30051
  }
29990
30052
  /** Where a received file is written: from what is durably there, cut back to that if more was written after. */
29991
30053
  async openTarget(linkId, record) {
@@ -30544,6 +30606,97 @@ async function fetchGroupCallToken(ask) {
30544
30606
  return pass;
30545
30607
  }
30546
30608
  }
30609
+ /** A 429 that says no time (or says it badly) is asked again after the node's window, a minute; one that says more, an hour at most. */
30610
+ var DEFAULT_RETRY_AFTER_S = 60;
30611
+ var MAX_RETRY_AFTER_S = 3600;
30612
+ /**
30613
+ * Sends the admin's signed request to `<sfu>/sfu/group-moderate` (WISP 602 § Moderation) once, as a token request goes
30614
+ * (no redirect, no cookie, the same timeout and capped read), and says what came back as a code, never as a throw.
30615
+ */
30616
+ async function sendGroupCallModeration(ask) {
30617
+ const doFetch = ask.fetch ?? ((...args) => fetch(...args));
30618
+ const now = ask.now ?? Date.now;
30619
+ const request = signGroupCallModeration({
30620
+ sfu: ask.sfu,
30621
+ g: ask.g,
30622
+ act: ask.act,
30623
+ target: ask.target,
30624
+ src: ask.src,
30625
+ ts: Math.floor(now() / 1e3)
30626
+ }, ask.seed);
30627
+ let response;
30628
+ try {
30629
+ response = await doFetch(`${ask.sfu}/sfu/group-moderate`, {
30630
+ method: "POST",
30631
+ headers: { "Content-Type": "application/json" },
30632
+ body: JSON.stringify(request),
30633
+ signal: AbortSignal.timeout(GROUP_CALL_TIMEOUT_MS),
30634
+ redirect: "error",
30635
+ credentials: "omit",
30636
+ referrerPolicy: "no-referrer",
30637
+ cache: "no-store"
30638
+ });
30639
+ } catch {
30640
+ return {
30641
+ ok: false,
30642
+ code: "unreachable"
30643
+ };
30644
+ }
30645
+ if (response.status === 403) return {
30646
+ ok: false,
30647
+ code: "refused"
30648
+ };
30649
+ if (response.status === 429) return {
30650
+ ok: false,
30651
+ code: "rate_limited",
30652
+ retryAfter: retryAfterS(response.headers.get("Retry-After"), now())
30653
+ };
30654
+ if (response.status === 404 || response.status === 405) return {
30655
+ ok: false,
30656
+ code: "unsupported"
30657
+ };
30658
+ let raw = null;
30659
+ if (response.ok) try {
30660
+ const text = await readCapped(response, MAX_REPLY_BYTES);
30661
+ raw = text === null ? null : JSON.parse(text);
30662
+ } catch {
30663
+ raw = null;
30664
+ }
30665
+ const state = parseGroupCallRoomState(raw);
30666
+ return state ? {
30667
+ ok: true,
30668
+ state
30669
+ } : {
30670
+ ok: false,
30671
+ code: "unreachable"
30672
+ };
30673
+ }
30674
+ /** `Retry-After` in seconds, given as seconds or as an HTTP date. */
30675
+ function retryAfterS(header, now) {
30676
+ const value = header?.trim() ?? "";
30677
+ if (/^\d{1,10}$/.test(value)) return Math.min(Number(value), MAX_RETRY_AFTER_S);
30678
+ const at = value ? Date.parse(value) : NaN;
30679
+ return Number.isFinite(at) ? Math.min(Math.max(0, Math.ceil((at - now) / 1e3)), MAX_RETRY_AFTER_S) : DEFAULT_RETRY_AFTER_S;
30680
+ }
30681
+ /**
30682
+ * The reply's room state, or null when it is none: its keys are member keys and its sources known ones, listed once and
30683
+ * sorted, as the WISP has the node write them. A key with no source left is not muted.
30684
+ */
30685
+ function parseGroupCallRoomState(raw) {
30686
+ const state = raw?.state;
30687
+ if (!state || typeof state !== "object" || !state.muted || typeof state.muted !== "object" || Array.isArray(state.muted) || !Array.isArray(state.banned)) return null;
30688
+ const muted = {};
30689
+ for (const [key, src] of Object.entries(state.muted)) {
30690
+ if (!isZ32Key(key) || !Array.isArray(src)) return null;
30691
+ const known = GROUP_CALL_SOURCES.filter((s) => src.includes(s));
30692
+ if (known.length) muted[key] = known;
30693
+ }
30694
+ if (!state.banned.every(isZ32Key)) return null;
30695
+ return {
30696
+ muted,
30697
+ banned: [...new Set(state.banned)].sort()
30698
+ };
30699
+ }
30547
30700
  /**
30548
30701
  * The reply's text, or null past `max` bytes: read as it comes and stopped there, so a node's endless (or gzip-bombed)
30549
30702
  * reply never sits whole in the engine's memory.
@@ -34140,13 +34293,14 @@ var Communities = class {
34140
34293
  couldRead: (key, messageId) => session.couldRead(key, messageId)
34141
34294
  };
34142
34295
  }
34143
- /** Me in a community I am a member of, for its call (WISP 602): my member key, its seed, and the admin's metadata. */
34296
+ /** Me in a community I am a member of, for its call (WISP 602): my member key, its seed, the admin's metadata, and whether I am the admin. */
34144
34297
  callMember(groupId) {
34145
34298
  const session = this.live.get(groupId)?.session;
34146
34299
  return session?.isMember ? {
34147
34300
  key: session.myKey,
34148
34301
  seedB64: session.state.seedB64,
34149
- meta: session.state.meta
34302
+ meta: session.state.meta,
34303
+ isAdmin: session.isAdmin
34150
34304
  } : void 0;
34151
34305
  }
34152
34306
  /** Is this device a hub of the group? (tests and the load harness) */
@@ -38711,14 +38865,15 @@ var Groups = class {
38711
38865
  couldRead: (key, messageId, ts) => session.couldRead(key, messageId, ts)
38712
38866
  };
38713
38867
  }
38714
- /** Me in a group I am active in, private or community alike, for its call (WISP 602): my member key, its seed, and the admin's metadata. */
38868
+ /** Me in a group I am active in, private or community alike, for its call (WISP 602): my member key, its seed, the admin's metadata, and whether I am the admin. */
38715
38869
  callMember(groupId) {
38716
38870
  if (this.isCommunity(groupId)) return this.communities.callMember(groupId);
38717
38871
  const session = this.sessions.get(groupId);
38718
38872
  return session?.status === "active" ? {
38719
38873
  key: session.myKey,
38720
38874
  seedB64: session.state.seedB64,
38721
- meta: session.state.meta
38875
+ meta: session.state.meta,
38876
+ isAdmin: session.isAdmin
38722
38877
  } : void 0;
38723
38878
  }
38724
38879
  /**
@@ -44819,14 +44974,22 @@ var MELT_REQUEST = "/v1/melt/bolt11";
44819
44974
  */
44820
44975
  var MINT_REQUEST = "/v1/mint/bolt11";
44821
44976
  var MINT_QUOTE_STATE = /\/v1\/mint\/quote\/bolt11\/[^/]+$/;
44977
+ /**
44978
+ * What `melt` and `settleMelt` ask under the mint's lock: where a Lightning payment's quote stands, and the keysets its
44979
+ * change may be on. Nothing is paid on a read: one cut short is asked again (`melt` before it pays, `pollMelts` after).
44980
+ */
44981
+ var MELT_QUOTE_STATE = /\/v1\/melt\/quote\/bolt11\/[^/]+$/;
44982
+ var KEYSET_REQUESTS = /\/v1\/(keysets|keys(\/[^/]+)?)$/;
44822
44983
  /** How long a request to this path may last, its retries included; undefined: cashu-ts' defaults. */
44823
44984
  function requestLimit(pathname) {
44824
44985
  if (SWAP_REQUESTS.some((path) => pathname.endsWith(path))) return CASHU_REQUEST_TIMEOUT_MS;
44825
44986
  if (pathname.endsWith(MINT_REQUEST) || MINT_QUOTE_STATE.test(pathname)) return CASHU_REQUEST_TIMEOUT_MS;
44987
+ if (MELT_QUOTE_STATE.test(pathname) || KEYSET_REQUESTS.test(pathname)) return CASHU_REQUEST_TIMEOUT_MS;
44826
44988
  if (pathname.endsWith(MELT_REQUEST)) return MELT_REQUEST_TIMEOUT_MS;
44827
44989
  }
44828
44990
  /**
44829
- * Each of `SWAP_REQUESTS` and a paid invoice's (`MINT_REQUEST`, `MINT_QUOTE_STATE`) ends within
44991
+ * Each of `SWAP_REQUESTS`, a paid invoice's (`MINT_REQUEST`, `MINT_QUOTE_STATE`) and a melt's reads (`MELT_QUOTE_STATE`,
44992
+ * `KEYSET_REQUESTS`) ends within
44830
44993
  * `CASHU_REQUEST_TIMEOUT_MS`, and a melt's within `MELT_REQUEST_TIMEOUT_MS`, retries
44831
44994
  * included. cashu-ts' `requestTimeout` is per try, and NUT-19 tries a cached endpoint again after a timeout, each try
44832
44995
  * with a timeout of its own, for as long as the mint's `ttl` (endless when it gives none): one deadline for the whole
@@ -54555,6 +54718,7 @@ var GhostlyNode = class GhostlyNode {
54555
54718
  const wireId = toBase64Url(randomBytes(16)), id = `me_${wireId}`;
54556
54719
  const delivery = link.isDataLinkOpen ? "stream" : link.textDelivery === "dht" ? "dht" : "unavailable";
54557
54720
  if (delivery !== "stream") this.wakePeer(live);
54721
+ let tooBig;
54558
54722
  if (delivery === "stream" || delivery === "dht" && bytes <= 256) {
54559
54723
  const validationError = link.validateText(trimmed, timestamp, wireId, reply && pairedWireReply(reply));
54560
54724
  if (!validationError) {
@@ -54579,6 +54743,7 @@ var GhostlyNode = class GhostlyNode {
54579
54743
  error: validationError,
54580
54744
  refused: true
54581
54745
  };
54746
+ if (/packet budget/.test(validationError)) tooBig = validationError;
54582
54747
  }
54583
54748
  if (this.holdingFor(live) && bytes <= HOLD_LIMITS.maxTextBytes) {
54584
54749
  await this.storeMessage({
@@ -54606,6 +54771,10 @@ var GhostlyNode = class GhostlyNode {
54606
54771
  messageId: id
54607
54772
  };
54608
54773
  }
54774
+ if (tooBig) return {
54775
+ error: tooBig,
54776
+ refused: true
54777
+ };
54609
54778
  const reason = delivery === "dht" && bytes <= 256 ? "Waits for the text before it to be confirmed." : delivery === "dht" ? `Longer than the 256 bytes the DHT carries: it is sent when you are live.` : "Sent when your contact is reachable.";
54610
54779
  await this.storeMessage({
54611
54780
  linkId,
@@ -57572,6 +57741,36 @@ var GhostlyNode = class GhostlyNode {
57572
57741
  });
57573
57742
  }
57574
57743
  /**
57744
+ * The group's admin acts on a member in its call (WISP 602 § Moderation): `mute` or `allow` the sources `src` of
57745
+ * `target`, `remove` `target` from the call (and ban it), `unban` it, or read the room's `state`. Signed with my
57746
+ * member key for the node the group's `call` names. Answers the room's state after the act, or a code: `not_admin`
57747
+ * and `unsupported` (no node named) before anything is sent. A request that is not one of these throws.
57748
+ */
57749
+ async groupCallModerate({ groupId, act, target, src }) {
57750
+ if (!GROUP_CALL_MODERATION_ACTS.includes(act)) throw new Error(`act must be one of ${GROUP_CALL_MODERATION_ACTS.join(", ")}`);
57751
+ const me = typeof groupId === "string" ? this.groups.callMember(groupId) : void 0;
57752
+ if (act !== "state" && (!isZ32Key(target) || target === me?.key)) throw new Error("target must be the key of another member");
57753
+ const takesSources = act === "mute" || act === "allow";
57754
+ if (takesSources && (!Array.isArray(src) || !src.length || !src.every((s) => GROUP_CALL_SOURCES.includes(s)))) throw new Error(`src must list one or more of ${GROUP_CALL_SOURCES.join(", ")}`);
57755
+ if (!me?.isAdmin) return {
57756
+ ok: false,
57757
+ code: "not_admin"
57758
+ };
57759
+ const sfu = groupCallSfu(me.meta);
57760
+ if (!sfu) return {
57761
+ ok: false,
57762
+ code: "unsupported"
57763
+ };
57764
+ return sendGroupCallModeration({
57765
+ sfu,
57766
+ g: groupId,
57767
+ seed: identityFromSeedB64(me.seedB64).seed,
57768
+ act,
57769
+ target: act === "state" ? "" : target,
57770
+ src: takesSources ? src : []
57771
+ });
57772
+ }
57773
+ /**
57575
57774
  * The key that seals the group's call media end to end for its newest epoch (WISP 602 § End-to-end encryption), as
57576
57775
  * base64url of its 32 bytes, with that epoch. Null until the epoch's secret arrives, once I am out of the group, and
57577
57776
  * in a group that is not a community (only a community's epochs give one). A page asks again when the group's
@@ -62504,4 +62703,4 @@ function signalKind(signal) {
62504
62703
  }
62505
62704
  export { EngineServer, credentials as n, bitcoindRpc as t };
62506
62705
 
62507
- //# sourceMappingURL=server-D4gf-LnD.js.map
62706
+ //# sourceMappingURL=server-Dgxx_DaN.js.map