@hediet/linkrpc-hub 0.0.2 → 0.0.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/chunks/{hubConnectionAcceptor-B5-8JsFY.js → hubConnectionAcceptor-CCxcwnI4.js} +40 -115
- package/dist/chunks/hubConnectionAcceptor-CCxcwnI4.js.map +1 -0
- package/dist/chunks/{hubConnectionAcceptor-BwydvFa4.d.ts → hubConnectionAcceptor-CRBR3wry.d.ts} +12 -14
- package/dist/chunks/{index-CLIUrV88.d.ts → index-BoxUtARp.d.ts} +2 -2
- package/dist/chunks/{runHub-P3YUwwdv.js → runHub-IV1W4Olz.js} +3 -3
- package/dist/chunks/{runHub-P3YUwwdv.js.map → runHub-IV1W4Olz.js.map} +1 -1
- package/dist/chunks/{server-BAxchQhy.js → server-cTYnojbZ.js} +2 -2
- package/dist/chunks/{server-BAxchQhy.js.map → server-cTYnojbZ.js.map} +1 -1
- package/dist/engine/runHub.d.ts +2 -2
- package/dist/engine/runHub.js +1 -1
- package/dist/hub/server/client.d.ts +1 -1
- package/dist/hub/server/client.js +1 -1
- package/dist/hub/server/index.d.ts +3 -3
- package/dist/hub/server/index.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/serve.js +1 -1
- package/package.json +9 -4
- package/dist/chunks/hubConnectionAcceptor-B5-8JsFY.js.map +0 -1
package/dist/chunks/{hubConnectionAcceptor-BwydvFa4.d.ts → hubConnectionAcceptor-CRBR3wry.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as NodeTransit, s as NodeTransitObserver } from "./nodeTransit-cmtZgdpW.js";
|
|
2
2
|
import { Capability, ChannelTransport, IMessageTransport, Identity, JsonRpcMessage, JsonValue, LinkRpcConnection, ManagedIdentityStorageBackend, MessageWithCtx, Pattern, Permission, PrincipalId, RequestId, RootPrincipalSet, SignedCapability, SigningIdentity } from "@hediet/linkrpc";
|
|
3
3
|
import { ITransportServer, ServiceId, Transport } from "@hediet/linkrpc/hub/common";
|
|
4
|
-
import { NodeInfo, ParticipantDescriptorSource, TopologyGraph, TopologyIdGenerator, TopologyTransportInfo, TrafficEvent, TrafficSubscription, TrafficSubscriptionOptions, TrafficTransitEvent } from "@hediet/linkrpc/inspection";
|
|
4
|
+
import { InspectionHost, InspectionSource, NodeInfo, ParticipantDescriptorSource, TopologyFragment, TopologyGraph, TopologyIdGenerator, TopologyTransportInfo, TrafficEvent, TrafficSubscription, TrafficSubscriptionOptions, TrafficTransitEvent } from "@hediet/linkrpc/inspection";
|
|
5
5
|
//#region src/hub/server/routing/routingTopology.d.ts
|
|
6
6
|
interface ManagedRoutingTopology {
|
|
7
7
|
readonly node: TopologyGraph['nodes'][number];
|
|
@@ -382,22 +382,20 @@ interface HubTrafficSource {
|
|
|
382
382
|
}
|
|
383
383
|
/** Publishes dynamically observed raw node transits through bounded traffic streams. */
|
|
384
384
|
declare class HubInspector implements IDisposable {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
private readonly _trafficSources;
|
|
388
|
-
private readonly _trafficWatches;
|
|
389
|
-
private readonly _observation;
|
|
390
|
-
constructor(_hub: Hub);
|
|
385
|
+
readonly host: InspectionHost;
|
|
386
|
+
constructor(hub: Hub);
|
|
391
387
|
get observerCount(): number;
|
|
392
388
|
subscribe(options: HubTrafficWatchOptions, send: (event: TrafficEvent) => Promise<void>): HubTrafficSubscription;
|
|
393
389
|
dispose(): void;
|
|
394
390
|
/** Add an endpoint traffic source managed by this Hub inspection service. */
|
|
395
391
|
addTrafficSource(source: HubTrafficSource): IDisposable;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
private
|
|
399
|
-
|
|
400
|
-
|
|
392
|
+
}
|
|
393
|
+
declare class HubInspectionSource implements InspectionSource {
|
|
394
|
+
private readonly _hub;
|
|
395
|
+
constructor(_hub: Hub);
|
|
396
|
+
snapshotTopology(): TopologyFragment;
|
|
397
|
+
onTopologyChanged(listener: () => void): IDisposable;
|
|
398
|
+
observeTraffic(observer: (event: TrafficTransitEvent) => void): IDisposable;
|
|
401
399
|
}
|
|
402
400
|
//#endregion
|
|
403
401
|
//#region src/hub/server/routing/overlaySplitter.d.ts
|
|
@@ -1556,5 +1554,5 @@ declare class HubConnectionAcceptor<TTransport extends Transport> {
|
|
|
1556
1554
|
dispose(): void;
|
|
1557
1555
|
}
|
|
1558
1556
|
//#endregion
|
|
1559
|
-
export { AccessSlotRequest as $, AccessCallIntent as A,
|
|
1560
|
-
//# sourceMappingURL=hubConnectionAcceptor-
|
|
1557
|
+
export { AccessSlotRequest as $, AccessCallIntent as A, IHubLogger as At, AccessRequestArgs as B, staticTokenHandler as C, HubTrafficSource as Ct, TokenIdentityBinding as D, Hub as Dt, MintedToken as E, AttachedLink as Et, AccessDirectPermission as F, AccessDurationName as G, HubAccessHandlers as H, AccessDuration as I, ProposeArgs as J, CapabilityProposal as K, AccessExtendArgs as L, AccessDecision as M, AccessDirectArgs as N, TokenIdentityStore as O, HubOptions as Ot, AccessDirectDecision as P, AccessSlotCandidate as Q, AccessExtendDecision as R, resolveConnectionHandler as S, HubInspector as St, registerConnectionTokenBinderService as T, HubTrafficWatchOptions as Tt, RegisterHubAccessOptions as U, AccessSlotBinding as V, registerHubAccessService as W, AccessInterfaceRequirement as X, durationToExp as Y, AccessMemberRequirement as Z, RootProvision as _, RootOverlay as _t, PrefixPolicy as a, resolveAccessCandidates as at, fixedProvisionHandler as b, OverlaySplitterInspection as bt, ConnectionProvenance as c, createHubServiceInterfaces as ct, WithProvenance as d, registerHubServiceIdRegistry as dt, DirectoryEntry as et, WithProvenanceOptions as f, withRequestIdContext as ft, ConnectionHandlerFactory as g, registerIdentityServices as gt, ConnectionHandler as h, registerHubServices as ht, ClaimContext as i, fetchFullDirectory as it, AccessConsumer as j, PendingRequestInfo as jt, TokenIdentityStoreOptions as k, IDisposable as kt, ConnectionProvenanceProvider as l, HubRegisterOptions as lt, ConnectionContext as m, RegisterIdentityServicesOptions as mt, HubConnectionAcceptor as n, ResolvedCandidates as nt, PrincipalIdPrefixPolicy as o, HubServices as ot, withProvenance as p, RegisterHubServicesOptions as pt, CapabilityProposalIssuer as q, HubConnectionAcceptorOptions as r, candidatesForSlot as rt, PrincipalIdPrefixPolicyOptions as s, HubServicesOptions as st, HubAccessConfig as t, ResolvedAccessSlot as tt, ITransportWithProvenance as u, RegisterCallContext as ut, anonymousHandler as v, RootOverlayOptions as vt, RegisterConnectionTokenBinderOptions as w, HubTrafficSubscription as wt, provisionRoot as x, HubInspectionSource as xt, boundTokenHandler as y, OverlaySplitter as yt, AccessExtendMember as z };
|
|
1558
|
+
//# sourceMappingURL=hubConnectionAcceptor-CRBR3wry.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./nodeTransit-cmtZgdpW.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Dt as Hub, Et as AttachedLink, kt as IDisposable } from "./hubConnectionAcceptor-CRBR3wry.js";
|
|
3
3
|
import { AcceptedRootIssuer, Base64Sha256, Capability, IMessageTransport, Identity, Keypair, LinkRpcConnection, ManagedIdentityStorageBackend, Permission, PrincipalId, PublicSigningIdentity, SignedCapability, SigningIdentity, X25519Keypair } from "@hediet/linkrpc";
|
|
4
4
|
import { ServiceId } from "@hediet/linkrpc/hub/common";
|
|
5
5
|
//#region src/hub/server/routing/forwardingTable.d.ts
|
|
@@ -478,4 +478,4 @@ interface SqliteIdentityKeystoreOptions {
|
|
|
478
478
|
declare function createSqliteIdentityKeystore(opts: SqliteIdentityKeystoreOptions): SqliteIdentityKeystore;
|
|
479
479
|
//#endregion
|
|
480
480
|
export { validatePrefix as C, ForwardingTable as S, withVerifiedSignature as _, IdentityKeystore as a, RegisteredServiceId as b, IdentitySnooze as c, SlotByIdAndTimeResult as d, SlotId as f, withFullyQualifiedCallGate as g, withForwardedCallGate as h, createSqliteIdentityKeystore as i, SlotAccessKey as l, ForwardedCallGateOptions as m, SqliteIdentityKeystoreOptions as n, IdentityKeystoreOptions as o, createIdentityKeystore as p, SqliteIdentitySlot as r, IdentitySlot as s, SqliteIdentityKeystore as t, SlotByIdAndKeyResult as u, MintCapabilityOptions as v, hubRegisterServiceId as x, mintCapability as y };
|
|
481
|
-
//# sourceMappingURL=index-
|
|
481
|
+
//# sourceMappingURL=index-BoxUtARp.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as anonymousHandler,
|
|
1
|
+
import { a as anonymousHandler, d as registerConnectionTokenBinderService, f as createHubServiceInterfaces, l as resolveConnectionHandler, o as boundTokenHandler, t as HubConnectionAcceptor, u as staticTokenHandler, x as Hub } from "./hubConnectionAcceptor-CCxcwnI4.js";
|
|
2
2
|
import { r as createFlowLogger } from "./nodeTransit-CWeFnbwt.js";
|
|
3
|
-
import { a as TokenIdentityStore, c as durationToExp, d as fetchFullDirectory, n as createSqliteIdentityKeystore, s as CapabilityProposalIssuer, u as candidatesForSlot } from "./server-
|
|
3
|
+
import { a as TokenIdentityStore, c as durationToExp, d as fetchFullDirectory, n as createSqliteIdentityKeystore, s as CapabilityProposalIssuer, u as candidatesForSlot } from "./server-cTYnojbZ.js";
|
|
4
4
|
import { spawnCommand } from "../spawn.js";
|
|
5
5
|
import { i as SocketServer, n as WebSocketServer } from "./node-CTXsQ6oa.js";
|
|
6
6
|
import { DEFAULT_RPC_TIMEOUT_MS, HUBRPC_META_KEY, KeypairSigningIdentity, requireObjectParams, signedHash, withRpcTimeout } from "@hediet/linkrpc";
|
|
@@ -1794,4 +1794,4 @@ function _provisionDir() {
|
|
|
1794
1794
|
//#endregion
|
|
1795
1795
|
export { ApproveClient as a, buildSlotPermissions as c, computeCallBindHash as d, createTerminalConsentPrompt as f, toSignedPermissions as h, runManifestApprover as i, createHubAccessConfig as l, raceConsent as m, configureParticipants as n, HubAccessManifestHost as o, describePermissions as p, validateConfiguredParticipants as r, registerHubAccessManifest as s, runHub as t, describeRequest as u };
|
|
1796
1796
|
|
|
1797
|
-
//# sourceMappingURL=runHub-
|
|
1797
|
+
//# sourceMappingURL=runHub-IV1W4Olz.js.map
|