@kangentic/protocol 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +5 -0
- package/README.md +27 -0
- package/dist/capabilities/verbs.d.ts +18 -0
- package/dist/crypto/noise/cipher-state.d.ts +9 -0
- package/dist/crypto/noise/handshake-state.d.ts +64 -0
- package/dist/crypto/noise/kk.d.ts +11 -0
- package/dist/crypto/noise/patterns.d.ts +48 -0
- package/dist/crypto/noise/symmetric-state.d.ts +28 -0
- package/dist/crypto/pairing-handshake.d.ts +20 -0
- package/dist/crypto/primitives.d.ts +53 -0
- package/dist/crypto/sas.d.ts +7 -0
- package/dist/crypto/secretstream.d.ts +39 -0
- package/dist/events/event.d.ts +29 -0
- package/dist/index.cjs +4571 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.mjs +4504 -0
- package/dist/pairing/qr.d.ts +19 -0
- package/dist/roster/roster.d.ts +33 -0
- package/dist/transport/transport.d.ts +22 -0
- package/dist/version.d.ts +12 -0
- package/dist/wire/base64url.d.ts +2 -0
- package/dist/wire/framing.d.ts +4 -0
- package/dist/wire/messages.d.ts +45 -0
- package/dist/wire/session-frame.d.ts +23 -0
- package/package.json +51 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { PROTOCOL_VERSION, encodeProtocolVersion } from './version';
|
|
2
|
+
export { randomBytes, generateX25519KeyPair, x25519PublicKeyFrom, generateEd25519KeyPair, hexToBytes, bytesToHex, X25519_KEY_LENGTH, ED25519_KEY_LENGTH, type X25519KeyPair, type Ed25519KeyPair, } from './crypto/primitives';
|
|
3
|
+
export { HandshakeState, type HandshakeStateOptions, type HandshakeWriteResult, type HandshakeReadResult } from './crypto/noise/handshake-state';
|
|
4
|
+
export { CipherState } from './crypto/noise/cipher-state';
|
|
5
|
+
export { KK_PATTERN, IKPSK0_PATTERN, type NoisePattern, type NoiseToken } from './crypto/noise/patterns';
|
|
6
|
+
export { createKKHandshake, type KKHandshakeOptions } from './crypto/noise/kk';
|
|
7
|
+
export { createPairingInitiatorHandshake, createPairingResponderHandshake, type PairingInitiatorOptions, type PairingResponderOptions, } from './crypto/pairing-handshake';
|
|
8
|
+
export { SecretstreamState, deriveSecretstreamPair, FrameTag, type SecretstreamDirectionPair, } from './crypto/secretstream';
|
|
9
|
+
export { deriveShortAuthenticationString, type ShortAuthenticationString } from './crypto/sas';
|
|
10
|
+
export type { JsonValue, BridgeMessage, HeartbeatMessage, CapabilityRequestMessage, CapabilityResponseMessage, EventMessage } from './wire/messages';
|
|
11
|
+
export { encodeMessage, decodeMessage, MAX_FRAME_LENGTH } from './wire/framing';
|
|
12
|
+
export { SessionFrameKind, wrapSessionFrame, unwrapSessionFrame } from './wire/session-frame';
|
|
13
|
+
export { PAIRING_URI_SCHEME, encodePairingQrPayload, decodePairingQrPayload, type PairingQrPayload, } from './pairing/qr';
|
|
14
|
+
export { signRosterEntry, verifyRosterEntry, encodeRosterEntryForSigning, isRosterEntryExpired, findRosterDevice, rosterDeviceCapabilitySet, capabilitySetToRosterCapabilities, type RosterDeviceEntry, type DeviceRoster, } from './roster/roster';
|
|
15
|
+
export { CAPABILITY_VERBS, isCapabilityVerb, capabilitySetFromArray, capabilitySetToArray, type CapabilityVerb, type CapabilitySet, } from './capabilities/verbs';
|
|
16
|
+
export type { BridgeEvent, TranscriptEvent, BoardEvent, ActivityEvent } from './events/event';
|
|
17
|
+
export type { Transport, TransportState, Unsubscribe } from './transport/transport';
|