@minip2p/core 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.d.ts CHANGED
@@ -1,88 +1,152 @@
1
- import type { MiniP2pBackend } from "./backend.js";
2
- import { P2pEvent_Tags } from "./types.js";
3
- import type { Bytes, IdentifyInfo, KnownPeerInfo, MiniP2pEvent, P2pEventByTag, Reachability, RelayReservationInfo, Unsubscribe } from "./types.js";
4
- type EventHandler = (event: MiniP2pEvent) => void;
1
+ import type { Minip2pBackend } from "./backend.js";
2
+ import type { Bytes, CloseReason, ConnectResult, IdentifyInfo, InboundStreamMeta, KnownPeerInfo, Minip2pEvent, Minip2pNamedEventMap, OnceOptions, OpOptions, Path, Reachability, RelayReservationInfo, Unsubscribe, WaitForOptions } from "./types.js";
3
+ type EventKind = keyof Minip2pNamedEventMap;
4
+ type NamedHandler<Kind extends EventKind> = (payload: Minip2pNamedEventMap[Kind]) => void;
5
+ type CatchAllHandler = (event: Minip2pEvent) => void;
6
+ /** A negotiated custom-protocol stream with exclusive pull or flowing reads. */
7
+ export declare class Stream {
8
+ #private;
9
+ /** Remote peer that owns the other end of this stream. */
10
+ readonly peerId: string;
11
+ /** Negotiated multistream protocol identifier. */
12
+ readonly protocolId: string;
13
+ /** Endpoint-local transport stream identifier. */
14
+ readonly streamId: number;
15
+ /** Endpoint-local connection carrying this stream. */
16
+ readonly connId: number;
17
+ /** Whether this endpoint initiated the stream. */
18
+ readonly initiatedLocally: boolean;
19
+ constructor(backend: Minip2pBackend, meta: InboundStreamMeta, onTerminal: () => void);
20
+ /** Subscribes to stream lifecycle or data events. */
21
+ on<Kind extends keyof StreamEventMap>(type: Kind, handler: (payload: StreamEventMap[Kind]) => void): Unsubscribe;
22
+ /**
23
+ * Reads the next buffered chunk, or `undefined` after the remote write side
24
+ * closes. Pull reads and flowing `data` handlers are mutually exclusive.
25
+ */
26
+ read(): Promise<Uint8Array | undefined>;
27
+ /** Writes UTF-8 text or bytes to the stream. */
28
+ write(data: string | Bytes): void;
29
+ /** Half-closes the local write side while keeping reads available. */
30
+ closeWrite(): void;
31
+ /** Abruptly resets the stream and emits `closed`. */
32
+ reset(): void;
33
+ /** Resets and relinquishes the stream, suppressing later native events. */
34
+ abandon(): void;
35
+ [Symbol.dispose](): void;
36
+ /** @internal */
37
+ receive(data: ArrayBuffer): void;
38
+ /** @internal */
39
+ remoteWriteClosed(): void;
40
+ /** @internal */
41
+ terminal(error?: unknown): void;
42
+ }
43
+ /** Events emitted by a negotiated {@link Stream}. */
44
+ export interface StreamEventMap {
45
+ /** A received binary chunk. */
46
+ data: Uint8Array;
47
+ /** The remote peer half-closed its write side. */
48
+ remoteWriteClosed: void;
49
+ /** The stream reached a terminal state. */
50
+ closed: void;
51
+ /** Incoming data exceeded the bounded pull-read buffer. */
52
+ dataOverflow: {
53
+ readonly droppedChunks: number;
54
+ readonly droppedBytes: number;
55
+ };
56
+ }
5
57
  /**
6
- * Platform-neutral owner for one native minip2p endpoint.
58
+ * Promise-first, platform-neutral owner for one native minip2p endpoint.
7
59
  *
8
- * Platform packages extend this class and expose a zero-argument `create`
9
- * method backed by their native adapter.
60
+ * Platform packages subclass this and provide a native backend factory.
10
61
  */
11
- export declare class MiniP2pBase {
62
+ export declare class Minip2pBase {
12
63
  #private;
13
- protected constructor(backend: MiniP2pBackend, relayAddresses: readonly string[]);
14
- /** Adds an event subscriber and returns an idempotent unsubscribe function. */
15
- on(handler: EventHandler): Unsubscribe;
16
- /** Resolves with the first event matching `predicate`. */
17
- waitFor<EventType extends MiniP2pEvent>(predicate: (event: MiniP2pEvent) => event is EventType, timeoutMs?: number): Promise<EventType>;
18
- waitFor(predicate: (event: MiniP2pEvent) => boolean, timeoutMs?: number): Promise<MiniP2pEvent>;
19
- /** Requests native shutdown and releases the platform backend. */
64
+ protected constructor(backend: Minip2pBackend, relayAddresses: readonly string[]);
65
+ /** Subscribes to one named event and returns an idempotent unsubscribe. */
66
+ on<Kind extends EventKind>(type: Kind, handler: NamedHandler<Kind>): Unsubscribe;
67
+ /** Subscribes to the catch-all metadata event stream. */
68
+ on(handler: CatchAllHandler): Unsubscribe;
69
+ /** Resolves with the next event of `type`. */
70
+ once<Kind extends EventKind>(type: Kind, options?: OnceOptions): Promise<{
71
+ readonly type: Kind;
72
+ } & Minip2pNamedEventMap[Kind]>;
73
+ /** Resolves with the next event of `type` accepted by `predicate`. */
74
+ waitFor<Kind extends EventKind>(type: Kind, options: WaitForOptions<{
75
+ readonly type: Kind;
76
+ } & Minip2pNamedEventMap[Kind]>): Promise<{
77
+ readonly type: Kind;
78
+ } & Minip2pNamedEventMap[Kind]>;
79
+ /** Registers a one-shot endpoint shutdown observer. */
80
+ onClose(handler: (reason: CloseReason) => void): Unsubscribe;
81
+ /** Idempotently stops the endpoint and rejects outstanding operations. */
20
82
  close(): void;
21
- /** Returns the endpoint's base58 peer ID. */
83
+ [Symbol.dispose](): void;
84
+ /** Returns this endpoint's base58 peer ID. */
22
85
  peerId(): string;
23
- /** Returns the endpoint's bound peer addresses. */
86
+ /** Returns the currently bound peer multiaddresses. */
24
87
  listenAddrs(): string[];
25
- /** Returns currently connected peer IDs. */
88
+ /** Returns peer IDs with live transport connections. */
26
89
  connectedPeers(): string[];
27
- /** Returns whether Identify has completed for a connected peer. */
90
+ /** Returns whether Identify completed for a connected peer. */
28
91
  isPeerReady(peerId: string): boolean;
29
- /** Returns the latest Identify snapshot for a connected peer. */
92
+ /** Returns the latest Identify snapshot for `peerId`. */
30
93
  peerInfo(peerId: string): IdentifyInfo | undefined;
31
- /** Returns the normalized discovery address book. */
94
+ /** Returns the normalized multi-source discovery address book. */
32
95
  knownPeers(): KnownPeerInfo[];
33
- /** Returns the native discovery monotonic clock, when discovery is enabled. */
96
+ /** Returns the discovery monotonic clock when discovery is enabled. */
34
97
  discoveryNowMs(): number | undefined;
35
- /** Returns the active relay reservation, if one exists. */
98
+ /** Returns the active relay reservation, if any. */
36
99
  activeReservation(): RelayReservationInfo | undefined;
37
- /** Returns this endpoint's currently usable circuit address, if known. */
100
+ /** Returns this endpoint's usable circuit address, if reserved. */
38
101
  get circuitAddress(): string | undefined;
39
- /** Returns the current native reachability state. */
102
+ /** Returns the latest AutoNAT reachability verdict. */
40
103
  reachability(): Reachability;
104
+ /** Returns the authoritative active path to `peerId`, if connected. */
105
+ path(peerId: string): Path | undefined;
41
106
  /** Returns whether the native driver is accepting work. */
42
107
  isRunning(): boolean;
43
- /** Selects foreground or idle native polling. */
108
+ /** Selects foreground or idle native polling behavior. */
44
109
  setActive(active: boolean): void;
45
- /** Subscribes to a pubsub topic. */
110
+ /** Subscribes to a pubsub topic; returns whether the set changed. */
46
111
  subscribe(topic: string): boolean;
47
- /** Withdraws a pubsub subscription. */
112
+ /** Unsubscribes from a pubsub topic; returns whether the set changed. */
48
113
  unsubscribe(topic: string): boolean;
49
- /** Publishes UTF-8 text or bytes. */
114
+ /** Publishes UTF-8 text or bytes to a subscribed pubsub topic. */
50
115
  publish(topic: string, data: string | Bytes): void;
51
- /** Sends an explicit ping; the result is emitted as a ping event. */
52
- ping(peerId: string): void;
53
- /** Waits until Identify completes for `peerId`. */
54
- waitPeerReady(peerId: string, timeoutMs?: number): Promise<P2pEventByTag<P2pEvent_Tags.PeerReady>>;
55
- /** Waits for the next explicit or keepalive ping RTT for `peerId`. */
56
- waitPingRtt(peerId: string, timeoutMs?: number): Promise<P2pEventByTag<P2pEvent_Tags.PingRttMeasured>>;
57
- /** Registers an application protocol at runtime. */
116
+ /** Registers an application protocol for future inbound streams. */
58
117
  addProtocol(protocolId: string): void;
59
- /** Opens a negotiated custom-protocol stream. */
60
- openStream(peerId: string, protocolId: string): number;
61
- /** Sends UTF-8 text or bytes on a custom-protocol stream. */
62
- sendStream(peerId: string, streamId: number, data: string | Bytes): void;
63
- /** Half-closes the local write side of a stream. */
64
- closeStreamWrite(peerId: string, streamId: number): void;
65
- /** Resets a stream while retaining later close events. */
66
- resetStream(peerId: string, streamId: number): void;
67
- /** Resets and forgets a stream, suppressing later stream events. */
68
- abandonStream(peerId: string, streamId: number): void;
69
- /** Starts a connection attempt and returns its endpoint-local ID. */
70
- connect(peerId: string): number;
71
- /** Starts a NAT connection attempt using an explicit ordered address set. */
72
- connectWithAddrs(peerId: string, addresses: readonly string[]): number;
73
- /** Waits for a connection attempt's first usable path or terminal failure. */
74
- waitConnectResult(connectId: number, timeoutMs?: number): Promise<P2pEventByTag<P2pEvent_Tags.PathEstablished> | P2pEventByTag<P2pEvent_Tags.ConnectFailed>>;
75
- /** Starts a direct-address connection attempt. */
76
- connectAddr(address: string): number;
77
- /** Dials a direct address on every applicable local address family. */
118
+ /** Waits for Identify readiness or rejects if the peer disconnects. */
119
+ waitPeerReady(peerId: string, options?: OpOptions): Promise<{
120
+ readonly peerId: string;
121
+ readonly protocols: readonly string[];
122
+ }>;
123
+ /** Measures round-trip latency in milliseconds, coalescing concurrent calls. */
124
+ ping(peerId: string, options?: OpOptions): Promise<number>;
125
+ /** Opens and negotiates an application-protocol stream. */
126
+ openStream(peerId: string, protocolId: string, options?: OpOptions): Promise<Stream>;
127
+ /** Starts an advanced NAT-orchestrated connection attempt. */
128
+ startConnect(peerId: string): number;
129
+ /** Starts a connection attempt with an explicit ordered address set. */
130
+ startConnectWithAddrs(peerId: string, addresses: readonly string[]): number;
131
+ /** Starts a connection attempt from one full peer multiaddress. */
132
+ startConnectAddr(address: string): number;
133
+ /** Connects to a known peer and resolves with its first usable path. */
134
+ connect(peerId: string, options?: OpOptions): Promise<ConnectResult>;
135
+ /** Connects using an explicit ordered address set. */
136
+ connectWithAddrs(peerId: string, addresses: readonly string[], options?: OpOptions): Promise<ConnectResult>;
137
+ /** Connects using one full peer multiaddress. */
138
+ connectAddr(address: string, options?: OpOptions): Promise<ConnectResult>;
139
+ /** Consumes the terminal result for a `startConnect*` attempt. */
140
+ waitConnectResult(connectId: number, options?: OpOptions): Promise<ConnectResult>;
141
+ /** Cancels an in-flight advanced connection attempt. */
142
+ cancelConnect(connectId: number): void;
143
+ /** Starts direct transport dials for every applicable local address family. */
78
144
  dial(address: string): number[];
79
- /** Dials a direct address using IPv4. */
145
+ /** Starts a direct IPv4 transport dial. */
80
146
  dialIp4(address: string): number;
81
- /** Dials a direct address using IPv6. */
147
+ /** Starts a direct IPv6 transport dial. */
82
148
  dialIp6(address: string): number;
83
- /** Suppresses future events for a known connection attempt. */
84
- cancelConnect(id: number): void;
85
- /** Closes an established connection to a peer. */
149
+ /** Closes the active connection to `peerId`. */
86
150
  disconnect(peerId: string): void;
87
151
  }
88
152
  export {};
package/dist/sdk.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOnD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EACV,KAAK,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EAEZ,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACZ,MAAM,YAAY,CAAC;AAapB,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;AAmIlD;;;;;GAKG;AACH,qBAAa,WAAW;;IAetB,SAAS,aACP,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,SAAS,MAAM,EAAE;IAcnC,+EAA+E;IAC/E,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW;IAYtC,0DAA0D;IAC1D,OAAO,CAAC,SAAS,SAAS,YAAY,EACpC,SAAS,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,IAAI,SAAS,EACtD,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,SAAS,CAAC;IACrB,OAAO,CACL,SAAS,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,OAAO,EAC3C,SAAS,CAAC,EAAE,MAAM,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