@fairfox/polly 0.21.0 → 0.22.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.
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @fairfox/polly/mesh — mesh-networked CRDT state with end-to-end encryption.
3
+ *
4
+ * Wraps the peer-first primitives with WebRTC mesh transport and
5
+ * sign-then-encrypt envelopes. This subpath export isolates the
6
+ * @automerge/* and tweetnacl dependency trees so consumers who only
7
+ * use $sharedState / $syncedState / $resource never pull them in.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * import { $meshState, configureMeshState } from "@fairfox/polly/mesh";
12
+ * ```
13
+ */
14
+ export type { EncryptedEnvelope, SealedBytes, } from "./shared/lib/encryption";
15
+ export { decrypt, decryptOrThrow, EncryptionError, encrypt, generateDocumentKey, KEY_BYTES as ENCRYPTION_KEY_BYTES, NONCE_BYTES as ENCRYPTION_NONCE_BYTES, TAG_BYTES as ENCRYPTION_TAG_BYTES, } from "./shared/lib/encryption";
16
+ export type { MeshKeyring, MeshNetworkAdapterOptions, } from "./shared/lib/mesh-network-adapter";
17
+ export { DEFAULT_MESH_KEY_ID, MeshNetworkAdapter, } from "./shared/lib/mesh-network-adapter";
18
+ export type { MeshSignalingClientOptions, SignalingMessage as MeshSignalingMessage, } from "./shared/lib/mesh-signaling-client";
19
+ export { MeshSignalingClient } from "./shared/lib/mesh-signaling-client";
20
+ export type { MeshStateOptions } from "./shared/lib/mesh-state";
21
+ export { $meshCounter, $meshList, $meshState, $meshText, configureMeshState, resetMeshState, } from "./shared/lib/mesh-state";
22
+ export type { MeshWebRTCAdapterOptions } from "./shared/lib/mesh-webrtc-adapter";
23
+ export { DEFAULT_ICE_SERVERS, MeshWebRTCAdapter } from "./shared/lib/mesh-webrtc-adapter";
24
+ export type { CreatePairingTokenOptions, PairingToken, } from "./shared/lib/pairing";
25
+ export { applyPairingToken, createPairingToken, createPairingTokenWithFreshIdentity, DEFAULT_PAIRING_TTL_MS, decodePairingToken, encodePairingToken, isPairingTokenExpired, PAIRING_NONCE_BYTES, PAIRING_TOKEN_VERSION, PairingError, parsePairingToken, serialisePairingToken, } from "./shared/lib/pairing";
26
+ export type { CreateRevocationOptions, RevocationRecord, } from "./shared/lib/revocation";
27
+ export { applyRevocation, createRevocation, decodeRevocation, encodeRevocation, REVOCATION_MAGIC, REVOCATION_RECORD_VERSION, RevocationError, revokePeerLocally, } from "./shared/lib/revocation";
28
+ export type { SignedEnvelope, SigningKeyPair } from "./shared/lib/signing";
29
+ export { generateSigningKeyPair, PUBLIC_KEY_BYTES as SIGNING_PUBLIC_KEY_BYTES, SECRET_KEY_BYTES as SIGNING_SECRET_KEY_BYTES, SIGNATURE_BYTES as SIGNING_SIGNATURE_BYTES, SigningError, sign, signingKeyPairFromSecret, verify, } from "./shared/lib/signing";