@hediet/linkrpc 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.
Files changed (33) hide show
  1. package/README.md +141 -3
  2. package/dist/chunks/{hub.interfaces-Bf4VfWNX.js → hub.interfaces-BWqqhgtT.js} +2 -2
  3. package/dist/chunks/{hub.interfaces-Bf4VfWNX.js.map → hub.interfaces-BWqqhgtT.js.map} +1 -1
  4. package/dist/chunks/{hubAccess-C06qAKao.d.ts → hubAccess-DKl7hDrh.d.ts} +2 -2
  5. package/dist/chunks/{hubAccess-C06qAKao.d.ts.map → hubAccess-DKl7hDrh.d.ts.map} +1 -1
  6. package/dist/chunks/{hubFacade-DtQpGpUy.d.ts → hubFacade-CLgLIvBa.d.ts} +2 -2
  7. package/dist/chunks/{hubFacade-DtQpGpUy.d.ts.map → hubFacade-CLgLIvBa.d.ts.map} +1 -1
  8. package/dist/chunks/{hubFacade-BIB9CoAv.js → hubFacade-rlsBq0ZU.js} +2 -2
  9. package/dist/chunks/{hubFacade-BIB9CoAv.js.map → hubFacade-rlsBq0ZU.js.map} +1 -1
  10. package/dist/chunks/{boundedTrafficSubscription-XZ1KwXZC.js → inspectionHost-BA08eF6h.js} +766 -4
  11. package/dist/chunks/inspectionHost-BA08eF6h.js.map +1 -0
  12. package/dist/chunks/{linkRpcConnection-BadD37ok.d.ts → linkRpcConnection-C_Gs4nZ9.d.ts} +2061 -1682
  13. package/dist/chunks/linkRpcConnection-C_Gs4nZ9.d.ts.map +1 -0
  14. package/dist/chunks/{src-CAhXne71.js → src-BaCs8mWd.js} +2512 -2657
  15. package/dist/chunks/src-BaCs8mWd.js.map +1 -0
  16. package/dist/hub/client/index.d.ts +3 -3
  17. package/dist/hub/client/index.js +3 -3
  18. package/dist/hub/common/index.d.ts +2 -325
  19. package/dist/hub/common/index.d.ts.map +1 -1
  20. package/dist/hub/common/index.js +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +3 -3
  23. package/dist/inspection/index.d.ts +87 -2
  24. package/dist/inspection/index.d.ts.map +1 -1
  25. package/dist/inspection/index.js +2 -2
  26. package/dist/node.d.ts +3 -3
  27. package/dist/node.js +4 -4
  28. package/dist/web.d.ts +2 -2
  29. package/dist/web.js +3 -3
  30. package/package.json +7 -2
  31. package/dist/chunks/boundedTrafficSubscription-XZ1KwXZC.js.map +0 -1
  32. package/dist/chunks/linkRpcConnection-BadD37ok.d.ts.map +0 -1
  33. package/dist/chunks/src-CAhXne71.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { $r as zTopologyLinkEndpoint, Ar as nodeInterface, Br as TopologyTransportInfo, Fr as TopologyLink, Gr as TrafficWatchResult, Hr as TrafficOverflowEvent, Ir as TopologyLinkEndpoint, Jr as zParticipantDescriptor, Kr as topologyInterface, Lr as TopologyNode, Mr as ParticipantDescriptorSource, Nr as RouteClaim, Or as NodeInfo, Pr as TopologyGraph, Qr as zTopologyLink, Rr as TopologyPort, Ur as TrafficTransitEndpoint, Vr as TrafficEvent, Wr as TrafficTransitEvent, Xr as zRouteClaim, Yr as zParticipantDescriptorSource, Zr as zTopologyGraph, ai as zTrafficOverflowEvent, ci as zTrafficWatchResult, ei as zTopologyNode, ii as zTrafficEvent, jr as ParticipantDescriptor, kr as TopologyIdGenerator, ni as zTopologyTransportEndpoint, oi as zTrafficTransitEndpoint, qr as trafficInterface, ri as zTopologyTransportInfo, si as zTrafficTransitEvent, ti as zTopologyPort, zr as TopologyTransportEndpoint } from "../chunks/linkRpcConnection-BadD37ok.js";
5
+ import { $t as zParticipantDescriptorSource, Bt as TopologyLinkEndpoint, Ft as ParticipantDescriptor, Gt as TrafficEvent, Ht as TopologyPort, It as ParticipantDescriptorSource, Jt as TrafficTransitEvent, Kt as TrafficOverflowEvent, Lt as RouteClaim, Mt as NodeInfo, Nt as TopologyIdGenerator, Pt as nodeInterface, Qt as zParticipantDescriptor, Rt as TopologyGraph, Ut as TopologyTransportEndpoint, Vt as TopologyNode, Wt as TopologyTransportInfo, Xt as topologyInterface, Yt as TrafficWatchResult, Zt as trafficInterface, a as LinkRpcConnection, an as zTopologyPort, cn as zTrafficEvent, dn as zTrafficTransitEvent, en as zRouteClaim, fn as zTrafficWatchResult, i as InterfaceRegistration, in as zTopologyNode, ln as zTrafficOverflowEvent, nn as zTopologyLink, on as zTopologyTransportEndpoint, qt as TrafficTransitEndpoint, rn as zTopologyLinkEndpoint, sn as zTopologyTransportInfo, tn as zTopologyGraph, un as zTrafficTransitEndpoint, zt as TopologyLink } from "../chunks/linkRpcConnection-C_Gs4nZ9.js";
6
6
  //#region src/inspection/trafficFlowFilter.d.ts
7
7
  interface TrafficRequestRef {
8
8
  readonly portId: string;
@@ -24,6 +24,7 @@ declare class TrafficWatchFlowTracker {
24
24
  private _removeFlow;
25
25
  claim(trafficIgnoreKey: string): boolean;
26
26
  clear(): void;
27
+ forgetPort(portId: string): void;
27
28
  }
28
29
  //#endregion
29
30
  //#region src/inspection/boundedTrafficSubscription.d.ts
@@ -62,5 +63,89 @@ declare class BoundedTrafficSubscription implements TrafficSubscription {
62
63
  private _complete;
63
64
  }
64
65
  //#endregion
65
- export { BoundedTrafficSubscription, NodeInfo, ParticipantDescriptor, ParticipantDescriptorSource, RouteClaim, TopologyGraph, TopologyIdGenerator, TopologyLink, TopologyLinkEndpoint, TopologyNode, TopologyPort, TopologyTransportEndpoint, TopologyTransportInfo, TrafficEvent, TrafficFlowFilter, type TrafficFlowFilterOptions, TrafficOverflowEvent, type TrafficRequestRef, type TrafficSubscription, type TrafficSubscriptionOptions, TrafficTransitEndpoint, TrafficTransitEvent, TrafficWatchFlowTracker, TrafficWatchResult, nodeInterface, topologyInterface, trafficInterface, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult };
66
+ //#region src/inspection/connectionInspectionSource.d.ts
67
+ interface TrackConnectionOptions {
68
+ readonly portId: string;
69
+ readonly label?: string;
70
+ /** Explicit peer identity; foreign protocols need not support discovery. */
71
+ readonly peer?: {
72
+ readonly nodeId: string;
73
+ readonly portId: string;
74
+ readonly label?: string;
75
+ };
76
+ readonly transport?: TopologyLink['transport'];
77
+ }
78
+ declare class ConnectionInspectionSource<TIn, TOut> implements InspectionSource {
79
+ private readonly _connection;
80
+ private readonly _nodeId;
81
+ private readonly _options;
82
+ private readonly _isObserved;
83
+ constructor(_connection: LinkRpcConnection<TIn, TOut>, _nodeId: string, _options: TrackConnectionOptions, _isObserved: () => boolean);
84
+ snapshotTopology(): TopologyFragment;
85
+ onTopologyChanged(_listener: () => void): InterfaceRegistration;
86
+ observeTraffic(listener: (event: TrafficTransitEvent) => void): InterfaceRegistration;
87
+ }
88
+ //#endregion
89
+ //#region src/inspection/inspectionHost.d.ts
90
+ interface TopologyFragment {
91
+ readonly nodes: TopologyGraph['nodes'];
92
+ readonly links: TopologyGraph['links'];
93
+ readonly routes: TopologyGraph['routes'];
94
+ }
95
+ interface InspectionSource {
96
+ snapshotTopology(): TopologyFragment;
97
+ onTopologyChanged(listener: () => void): InterfaceRegistration;
98
+ /** Includes watch control traffic so self-observation can be excluded. */
99
+ observeTraffic(listener: (event: TrafficTransitEvent) => void): InterfaceRegistration;
100
+ }
101
+ interface InspectionHostOptions {
102
+ readonly nodeId: string;
103
+ readonly kind?: 'endpoint' | 'hub';
104
+ readonly label?: string;
105
+ readonly descriptors?: readonly ParticipantDescriptorSource[];
106
+ }
107
+ interface InspectionExposureOptions {
108
+ readonly serviceId: string;
109
+ readonly portId?: string;
110
+ readonly descriptors?: readonly ParticipantDescriptorSource[];
111
+ /** False when the source already supplies the service's route. */
112
+ readonly includeRoute?: boolean;
113
+ }
114
+ interface InspectionTrafficSource {
115
+ observe(listener: (event: TrafficTransitEvent) => void): InterfaceRegistration;
116
+ }
117
+ /** A shared inspection scope, independent of both routing and its RPC connections. */
118
+ declare class InspectionHost {
119
+ private readonly _options;
120
+ private readonly _sources;
121
+ private readonly _trackedConnections;
122
+ private readonly _bindings;
123
+ private readonly _subscribers;
124
+ private readonly _observers;
125
+ private readonly _topologyListeners;
126
+ private readonly _trafficSources;
127
+ private readonly _trafficWatches;
128
+ private _disposed;
129
+ readonly nodeId: string;
130
+ constructor(_options: InspectionHostOptions);
131
+ get observerCount(): number;
132
+ addSource(source: InspectionSource): InterfaceRegistration;
133
+ trackConnection<TIn, TOut>(connection: LinkRpcConnection<TIn, TOut>, options: TrackConnectionOptions): InterfaceRegistration;
134
+ expose<TIn, TOut>(connection: LinkRpcConnection<TIn, TOut>, options: InspectionExposureOptions): InterfaceRegistration;
135
+ getGraph(observerServiceId: string, routePortId?: string): TopologyGraph;
136
+ publishTransit(event: TrafficTransitEvent): void;
137
+ subscribe(options: TrafficSubscriptionOptions, send: (event: TrafficEvent) => Promise<void>): TrafficSubscription;
138
+ observeTraffic(observer: (event: TrafficTransitEvent) => void): InterfaceRegistration;
139
+ addTrafficSource(source: InspectionTrafficSource): InterfaceRegistration;
140
+ dispose(): void;
141
+ private _startTrafficSources;
142
+ private _stopUnusedTrafficSources;
143
+ private _invalidateTopology;
144
+ private _forgetUnusedPorts;
145
+ private _watchGraph;
146
+ private _watchTraffic;
147
+ private _assertActive;
148
+ }
149
+ //#endregion
150
+ export { BoundedTrafficSubscription, ConnectionInspectionSource, type InspectionExposureOptions, InspectionHost, type InspectionHostOptions, type InspectionSource, type InspectionTrafficSource, NodeInfo, ParticipantDescriptor, ParticipantDescriptorSource, RouteClaim, type TopologyFragment, TopologyGraph, TopologyIdGenerator, TopologyLink, TopologyLinkEndpoint, TopologyNode, TopologyPort, TopologyTransportEndpoint, TopologyTransportInfo, type TrackConnectionOptions, TrafficEvent, TrafficFlowFilter, type TrafficFlowFilterOptions, TrafficOverflowEvent, type TrafficRequestRef, type TrafficSubscription, type TrafficSubscriptionOptions, TrafficTransitEndpoint, TrafficTransitEvent, TrafficWatchFlowTracker, TrafficWatchResult, nodeInterface, topologyInterface, trafficInterface, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult };
66
151
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/inspection/trafficFlowFilter.ts","../../src/inspection/boundedTrafficSubscription.ts"],"mappings":";;;;;;UAKiB;WACJ;WACA;;UAGI;WACJ,QAAQ;;cAGR;mBACQ;EAEL,YAAA,SAAS;EAMd,cAAc,SAAS;;cAMrB;mBACQ;mBACA;EAEV,OAAO,SAAS;UA+Bf;UAOA;EAOD,MAAM;EAIN;;;;UCrEM;WACJ;WACA;WACA;WACA,eAAe;;UAGX;WACJ,QAAQ,QAAQ;EACzB;;;;;;cAOS,sCAAsC;mBAY1B;mBACA;mBACA;mBACA;mBAdJ;UACT;UACA;UACA;UACA;UACA;mBACS;mBACA;WACD,QAAQ,QAAQ;EAGX,YAAA,UAAU,4BACV,QAAQ,OAAO,iBAAiB,eAChC,wBACA;EAUd,QAAQ,SAAS;EAyBjB;UAUO;UA2BN"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/inspection/trafficFlowFilter.ts","../../src/inspection/boundedTrafficSubscription.ts","../../src/inspection/connectionInspectionSource.ts","../../src/inspection/inspectionHost.ts"],"mappings":";;;;;;UAKiB;WACJ;WACA;;UAGI;WACJ,QAAQ;;cAGR;mBACQ;EAEL,YAAA,SAAS;EAMd,cAAc,SAAS;;cAMrB;mBACQ;mBACA;EAEV,OAAO,SAAS;UA+Bf;UAOA;EAOD,MAAM;EAIN;EAKA,WAAW;;;;UC1EL;WACJ;WACA;WACA;WACA,eAAe;;UAGX;WACJ,QAAQ,QAAQ;EACzB;;;;;;cAOS,sCAAsC;mBAY1B;mBACA;mBACA;mBACA;mBAdJ;UACT;UACA;UACA;UACA;UACA;mBACS;mBACA;WACD,QAAQ,QAAQ;EAGX,YAAA,UAAU,4BACV,QAAQ,OAAO,iBAAiB,eAChC,wBACA;EAUd,QAAQ,SAAS;EAyBjB;UAUO;UA2BN;;;;UC/GK;WACJ;WACA;;WAEA;aACI;aACA;aACA;;WAEJ,YAAY;;cAGZ,2BAA2B,KAAK,iBAAiB;mBAErC;mBACA;mBACA;mBACA;EAHA,YAAA,aAAa,kBAAkB,KAAK,OACpC,iBACA,UAAU,wBACV;EAGd,oBAAoB;EAuBpB,kBAAkB,wBAAwB;EAI1C,eAAe,WAAW,OAAO,+BAA+B;;;;UCpC1D;WACJ,OAAO;WACP,OAAO;WACP,QAAQ;;UAGJ;EACb,oBAAoB;EACpB,kBAAkB,uBAAuB;;EAEzC,eAAe,WAAW,OAAO,+BAA+B;;UAGnD;WACJ;WACA;WACA;WACA,uBAAuB;;UAGnB;WACJ;WACA;WACA,uBAAuB;;WAEvB;;UAGI;EACb,QAAQ,WAAW,OAAO,+BAA+B;;;cAShD;mBAaoB;mBAZZ;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;WAEQ;EAEa,YAAA,UAAU;MAI5B;EAIJ,UAAU,QAAQ,mBAAmB;EAmCrC,gBAAgB,KAAK,MACxB,YAAY,kBAAkB,KAAK,OACnC,SAAS,yBACV;EA4BI,OAAO,KAAK,MACf,YAAY,kBAAkB,KAAK,OACnC,SAAS,4BACV;EAiDI,SAAS,2BAA2B,uBAAuB;EAuC3D,eAAe,OAAO;EAYtB,UACH,SAAS,4BACT,OAAO,OAAO,iBAAiB,gBAChC;EAmBI,eAAe,WAAW,OAAO,+BAA+B;EAgBhE,iBAAiB,QAAQ,0BAA0B;EAiBnD;UAcC;UAOA;UAQA;UAKA;UAQA;UAiCM;UAmBN"}
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { _ as zTrafficEvent, a as topologyInterface, b as zTrafficTransitEvent, c as zParticipantDescriptorSource, d as zTopologyLink, f as zTopologyLinkEndpoint, g as zTopologyTransportInfo, h as zTopologyTransportEndpoint, i as nodeInterface, l as zRouteClaim, m as zTopologyPort, n as TrafficFlowFilter, o as trafficInterface, p as zTopologyNode, r as TrafficWatchFlowTracker, s as zParticipantDescriptor, t as BoundedTrafficSubscription, u as zTopologyGraph, v as zTrafficOverflowEvent, x as zTrafficWatchResult, y as zTrafficTransitEndpoint } from "../chunks/boundedTrafficSubscription-XZ1KwXZC.js";
6
- export { BoundedTrafficSubscription, TrafficFlowFilter, TrafficWatchFlowTracker, nodeInterface, topologyInterface, trafficInterface, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult };
5
+ import { C as zTopologyTransportInfo, D as zTrafficTransitEvent, E as zTrafficTransitEndpoint, O as zTrafficWatchResult, S as zTopologyTransportEndpoint, T as zTrafficOverflowEvent, _ as zTopologyGraph, a as TrafficWatchFlowTracker, b as zTopologyNode, d as nodeInterface, f as topologyInterface, g as zRouteClaim, h as zParticipantDescriptorSource, i as TrafficFlowFilter, m as zParticipantDescriptor, n as ConnectionInspectionSource, p as trafficInterface, r as BoundedTrafficSubscription, t as InspectionHost, v as zTopologyLink, w as zTrafficEvent, x as zTopologyPort, y as zTopologyLinkEndpoint } from "../chunks/inspectionHost-BA08eF6h.js";
6
+ export { BoundedTrafficSubscription, ConnectionInspectionSource, InspectionHost, TrafficFlowFilter, TrafficWatchFlowTracker, nodeInterface, topologyInterface, trafficInterface, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult };
package/dist/node.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { $ as ManagedIdentityStorageBackend, $i as RequestType, $n as signedHash, $r as zTopologyLinkEndpoint, $t as Result, A as VerifyRpcCallResult, Aa as JsonRpcNotification, Ai as InterfaceHandlers, An as Capability, Ar as nodeInterface, At as WsNoInitEndpoint, B as OneShotCapStaging, Bi as defineInterface, Bn as permissionPermits, Br as TopologyTransportInfo, Bt as ExpBackoffOptions, C as VerifyCallOptions, Ca as SchemaBase, Ci as EXTENSION_PREFIX, Cn as ParsedMethodName, Cr as StreamControlReason, Ct as CmdEnvEndpoint, D as SignRpcCallOptions, Da as ErrorCode, Di as InterfaceClient, Dn as Call, Dr as streamInterface, Dt as ResolvedEndpoint, E as verifyCall, Ea as UnionSchema, Ei as CheckedCallResult, En as Ability, Er as StreamSendParams, Et as FormatEndpointOptions, F as identityStorageInterface, Fa as isNotification, Fi as MemberMap, Fn as TargetPattern, Fr as TopologyLink, Ft as DEFAULT_RPC_TIMEOUT_MS, G as createManagedPrincipal, Gi as ApplicationErrorValue, Gn as LINKRPC_META_KEY, Gr as TrafficWatchResult, Gt as Channel, H as SigningSender, Hi as ApplicationErrorDescriptor, Hn as HUBRPC_META_KEY, Hr as TrafficOverflowEvent, Ht as OnChannelConnect, I as crypto_d_exports, Ia as isRequest, Ii as RemoteRpcError, In as capabilityPermits, Ir as TopologyLinkEndpoint, It as withRpcTimeout, J as CapBagOptions, Ji as DeclaredApplicationErrorOf, Jn as SignDomain, Jr as zParticipantDescriptor, Jt as IRequestSender, K as Principal, Ki as ApplicationErrorsOf, Kn as LINKRPC_SIGNATURE_KEY, Kr as topologyInterface, Kt as ChannelTransport, L as CapProvider, La as isResponse, Li as StreamApi, Ln as hasSignedCapabilityShape, Lr as TopologyNode, Lt as JsonRpcChannel, M as signRpcCall, Ma as JsonRpcResponse, Mi as InterfaceMemberRef, Mn as Pattern, Mr as ParticipantDescriptorSource, Mt as isHubEndpoint, N as verifyRpcCall, Na as JsonRpcSuccess, Ni as InterfaceMemberRefMap, Nn as Permission, Nr as RouteClaim, Nt as parseEndpointUri, O as SignedRpcCall, Oa as JsonRpcError, Oi as InterfaceDefinition, On as CallBind, Or as NodeInfo, Ot as SocketEndpoint, P as identityInterface, Pa as RequestId, Pi as LocalRpcError, Pn as SignedCapability, Pr as TopologyGraph, Pt as CancellableRequest, Q as ManagedIdentityStorage, Qi as PublicApplicationErrorOf, Qn as readSignature, Qr as zTopologyLink, Qt as RawStreamingCall, R as CapProviderResult, Ra as JsonValue, Ri as StreamCallOptions, Rn as matchParams, Rr as TopologyPort, Rt as ChannelConnector, S as SignParamsOptions, Sa as RefSchema, Si as normalizeJsonSchema, Sn as stripLinkRpcWireMeta, Sr as STREAM_METHOD, St as WrappingIdentity, T as signParams, Ta as TupleSchema, Ti as CheckedCall, Tn as parseMethodName, Tr as StreamDir, Tt as EndpointCommand, U as SigningSenderConfig, Ui as ApplicationErrorDescriptorBase, Un as HUBRPC_SIGNATURE_KEY, Ur as TrafficTransitEndpoint, Ut as BareInterfaceTarget, V as SigningCallCtx, Vi as interfaceFromSchema, Vn as Base64Sha256, Vr as TrafficEvent, Vt as KeepConnectedHandle, W as PrincipalWithStore, Wi as ApplicationErrorOf, Wn as HUBRPC_UNSIGNED_KEY, Wr as TrafficTransitEvent, Wt as bareInterfaceTarget, X as InMemoryManagedIdentityStorage, Xi as MemberType, Xn as Signatures, Xr as zRouteClaim, Xt as IncomingStream, Y as InMemoryManagedIdentity, Yi as MemberDocs, Yn as SignatureEnvelope, Yr as zParticipantDescriptorSource, Yt as IncomingCall, Z as ManagedIdentity, Zi as NotificationType, Zn as getKeyId, Zr as zTopologyGraph, Zt as MessageWithCtx, _ as SeededPrincipalOptions, _a as LinkRpcJsonSchema, _i as componentSchemaName, _n as LinkRpcJsonRpcRequest, _r as principalForPublicKey, _t as KeypairSigningIdentity, a as LinkRpcConnection, aa as requestType, ai as zTrafficOverflowEvent, an as IMessageTransport, ar as Keypair, at as ParamMatcherFor, b as createSeededSigningIdentity, ba as ObjectSchema, bi as isAssignable, bn as LinkRpcWireParams, br as jcsCanonicalize, bt as SerializedKeypairSigningIdentity, c as ServiceHandle, ca as LinkRpcInterfaceSchema, ci as zTrafficWatchResult, cn as MessageTransportWithContext, cr as PrivateKey, ct as capBagFreshAt, d as ServiceIdPattern, da as ArraySchema, di as SchemaToZodContext, dn as connectTransports, dr as Signature, dt as issueCapability, ea as Schema, ei as zTopologyNode, en as RpcError, er as signingDomainValue, et as createManagedIdentity, f as defaultsInterface, fa as BooleanSchema, fi as createSchemaToZod, fn as traceMessageTransport, fr as X25519Keypair, ft as permits, g as zServiceIdPattern, ga as IntegerSchema, gi as assertSchemaReferences, gn as LinkRpcJsonRpcNotification, gr as keyIdForPublicKey, gt as KeypairIdentity, h as schemasInterface, ha as EnumSchema, hi as materializeJsonSchema, hn as LinkRpcJsonRpcMessage, hr as keyIdForPrincipal, ht as Identity, i as InterfaceRegistration, ia as notificationType, ii as zTrafficEvent, in as MuxEnvelope, ir as KeyId, it as IssueCapabilityOptions, j as attachCapabilities, ja as JsonRpcRequest, ji as InterfaceInfo, jn as ParamMatcher, jr as ParticipantDescriptor, jt as formatEndpointUri, k as VerifyRpcCallOptions, ka as JsonRpcMessage, ki as InterfaceDefinitionOpts, kn as CallTarget, kr as TopologyIdGenerator, kt as WsEndpoint, l as RootPrincipalReq, la as MemberAnnotations, li as GenerateInterfaceOptions, ln as MessageWithContext, lr as PublicKey, lt as capabilityFreshAt, m as directoryWatchNever, ma as DiscriminatorSchema, mi as MaterializedJsonSchema, mn as CallMeta, mr as bytesToBase64Url, mt as signCapability, n as GetOptions, na as applicationError, ni as zTopologyTransportEndpoint, nn as StreamSendOpts, nr as withSignature, nt as registerLazyIdentityOnOverlay, o as LinkRpcConnectionOptions, oa as zodToSvcJsonSchema, oi as zTrafficTransitEndpoint, on as MessageTransportDirection, or as PRINCIPAL_PREFIX, ot as ParamMatchers, p as directoryInterface, pa as ConstSchema, pi as schemaToZod, pn as IDisposable, pr as base64UrlToBytes, pt as prefix, q as CapBag, qi as CreatedApplicationErrorValue, qn as LINKRPC_UNSIGNED_KEY, qr as trafficInterface, qt as IRequestHandler, r as InspectionRegistration, ra as isApplicationErrorValue, ri as zTopologyTransportInfo, rn as MultiplexedTransport, rr as KEY_ID_PREFIX, rt as AcceptedRootIssuer, s as RegisterOptions, sa as ErrorSchema, si as zTrafficTransitEvent, sn as MessageTransportTrace, sr as PrincipalId, st as PermitResult, t as BareGetOptions, ta as ZodToSvcJsonSchemaOptions, ti as zTopologyPort, tn as SendOpts, tr as signingInput, tt as registerIdentityOnOverlay, u as RootPrincipalSet, ua as MethodSchema, ui as generateTsInterface, un as TransportPair, ur as ResolveSigningKeyArgs, ut as invoke, v as createMemoryPrincipal, va as NullSchema, vi as componentSchemaRef, vn as LinkRpcUnsigned, vr as publicKeyForKeyId, vt as PublicSigningIdentity, w as VerifyResult, wa as StringSchema, wi as computeInterfaceHash, wn as methodNameToTarget, wr as StreamControlType, wt as CmdStdioEndpoint, x as JsonObject, xa as OneOfSchema, xi as matchesJsonSchema, xn as requireObjectParams, xr as jcsCanonicalizeBytes, xt as SigningIdentity, y as createSeededMemoryPrincipal, ya as NumberSchema, yi as Components, yn as LinkRpcWireMeta, yr as resolveSigningKey, yt as PublicWrappingIdentity, z as ManagedSigningChannel, zi as StreamingCall, zn as permissionMatchesTarget, zr as TopologyTransportEndpoint, zt as ConnectableChannel } from "./chunks/linkRpcConnection-BadD37ok.js";
6
- import { t as Hub } from "./chunks/hubFacade-DtQpGpUy.js";
5
+ import { $ as ExpBackoffOptions, $a as BooleanSchema, $i as createSchemaToZod, $n as InMemoryManagedIdentityStorage, $r as readSignature, $t as zParticipantDescriptorSource, A as VerifyRpcCallResult, Aa as ApplicationErrorDescriptorBase, Ai as RpcError, Ar as CallTarget, At as StreamSendParams, B as FormatEndpointOptions, Ba as RequestType, Bi as traceMessageTransport, Bn as CapProvider, Br as permissionMatchesTarget, Bt as TopologyLinkEndpoint, C as VerifyCallOptions, Ca as RemoteRpcError, Ci as IRequestHandler, Co as isRequest, Cr as PublicWrappingIdentity, Ct as parseMethodName, D as SignRpcCallOptions, Da as defineInterface, Di as MessageWithCtx, Dr as Ability, Dt as StreamControlReason, E as verifyCall, Ea as StreamingCall, Ei as IncomingStream, Er as WrappingIdentity, Et as STREAM_METHOD, F as identityStorageInterface, Fa as DeclaredApplicationErrorOf, Fi as MessageTransportTrace, Fr as SignedCapability, Ft as ParticipantDescriptor, G as formatEndpointUri, Ga as notificationType, Gi as StaticHubSchema, Gn as SigningSender, Gr as HUBRPC_UNSIGNED_KEY, Gt as TrafficEvent, H as SocketEndpoint, Ha as ZodToSvcJsonSchemaOptions, Hi as GenerateContractOptions, Hn as ManagedSigningChannel, Hr as Base64Sha256, Ht as TopologyPort, I as crypto_d_exports, Ia as MemberDocs, Ii as MessageTransportWithContext, Ir as TargetPattern, It as ParticipantDescriptorSource, J as CancellableRequest, Ja as ErrorSchema, Ji as StaticService, Jn as createManagedPrincipal, Jr as LINKRPC_UNSIGNED_KEY, Jt as TrafficTransitEvent, K as isHubEndpoint, Ka as requestType, Ki as StaticHubSchemaDocument, Kn as SigningSenderConfig, Kr as LINKRPC_META_KEY, Kt as TrafficOverflowEvent, L as CmdEnvEndpoint, La as MemberType, Li as MessageWithContext, Lr as capabilityPermits, Lt as RouteClaim, M as signRpcCall, Ma as ApplicationErrorValue, Mi as StreamSendOpts, Mr as ParamMatcher, Mt as NodeInfo, N as verifyRpcCall, Na as ApplicationErrorsOf, Ni as IMessageTransport, Nr as Pattern, Nt as TopologyIdGenerator, O as SignedRpcCall, Oa as interfaceFromSchema, Oi as RawStreamingCall, Or as Call, Ot as StreamControlType, P as identityInterface, Pa as CreatedApplicationErrorValue, Pi as MessageTransportDirection, Pr as Permission, Pt as nodeInterface, Q as ConnectableChannel, Qa as ArraySchema, Qi as SchemaToZodContext, Qn as InMemoryManagedIdentity, Qr as getKeyId, Qt as zParticipantDescriptor, R as CmdStdioEndpoint, Ra as NotificationType, Ri as TransportPair, Rr as hasSignedCapabilityShape, Rt as TopologyGraph, S as SignParamsOptions, Sa as MemberMap, Si as ChannelTransport, So as isNotification, Sr as PublicSigningIdentity, St as methodNameToTarget, T as signParams, Ta as StreamCallOptions, Ti as IncomingCall, To as JsonValue, Tr as SigningIdentity, Tt as jcsCanonicalizeBytes, U as WsEndpoint, Ua as applicationError, Ui as generateTsContract, Un as OneShotCapStaging, Ur as HUBRPC_META_KEY, Ut as TopologyTransportEndpoint, V as ResolvedEndpoint, Va as Schema, Vi as IDisposable, Vn as CapProviderResult, Vr as permissionPermits, Vt as TopologyNode, W as WsNoInitEndpoint, Wa as isApplicationErrorValue, Wi as InterfaceRef, Wn as SigningCallCtx, Wr as HUBRPC_SIGNATURE_KEY, Wt as TopologyTransportInfo, X as withRpcTimeout, Xa as MemberAnnotations, Xi as GenerateInterfaceOptions, Xn as CapBag, Xr as SignatureEnvelope, Xt as topologyInterface, Y as DEFAULT_RPC_TIMEOUT_MS, Ya as LinkRpcInterfaceSchema, Yi as parseStaticHubSchema, Yn as Principal, Yr as SignDomain, Yt as TrafficWatchResult, Z as ChannelConnector, Za as MethodSchema, Zi as generateTsInterface, Zn as CapBagOptions, Zr as Signatures, Zt as trafficInterface, _ as SeededPrincipalOptions, _a as InterfaceHandlers, _i as keyIdForPublicKey, _o as JsonRpcNotification, _r as prefix, _t as LinkRpcWireMeta, a as LinkRpcConnection, aa as componentSchemaRef, ai as KeyId, an as zTopologyPort, ao as NullSchema, ar as registerLazyIdentityOnOverlay, at as defaultInterfaceTarget, b as createSeededSigningIdentity, ba as InterfaceMemberRefMap, bi as resolveSigningKey, bo as JsonRpcSuccess, br as KeypairIdentity, bt as stripLinkRpcWireMeta, c as ServiceHandle, ca as matchesJsonSchema, ci as PrincipalId, cn as zTrafficEvent, co as OneOfSchema, cr as IssueCapabilityOptions, ct as BareInterfaceTarget, d as ServiceIdPattern, da as computeInterfaceHash, di as ResolveSigningKeyArgs, dn as zTrafficTransitEvent, do as StringSchema, dr as PermitResult, dt as MuxEnvelope, ea as schemaToZod, ei as signedHash, en as zRouteClaim, eo as ConstSchema, er as ManagedIdentity, et as KeepConnectedHandle, f as defaultsInterface, fa as CheckedCall, fi as Signature, fn as zTrafficWatchResult, fo as TupleSchema, fr as capBagFreshAt, ft as CallMeta, g as zServiceIdPattern, ga as InterfaceDefinitionOpts, gi as keyIdForPrincipal, go as JsonRpcMessage, gr as permits, gt as LinkRpcUnsigned, h as schemasInterface, ha as InterfaceDefinition, hi as bytesToBase64Url, ho as JsonRpcError, hr as issueCapability, ht as LinkRpcJsonRpcRequest, i as InterfaceRegistration, ia as componentSchemaName, ii as KEY_ID_PREFIX, in as zTopologyNode, io as LinkRpcJsonSchema, ir as registerIdentityOnOverlay, it as QualifiedInterfaceTarget, j as attachCapabilities, ja as ApplicationErrorOf, ji as SendOpts, jr as Capability, jt as streamInterface, k as VerifyRpcCallOptions, ka as ApplicationErrorDescriptor, ki as Result, kr as CallBind, kt as StreamDir, l as RootPrincipalReq, la as normalizeJsonSchema, li as PrivateKey, ln as zTrafficOverflowEvent, lo as RefSchema, lr as ParamMatcherFor, lt as bareInterfaceTarget, m as directoryWatchNever, ma as InterfaceClient, mi as base64UrlToBytes, mn as exportStaticHubSchema, mo as ErrorCode, mr as invoke, mt as LinkRpcJsonRpcNotification, n as GetOptions, na as materializeJsonSchema, ni as signingInput, nn as zTopologyLink, no as EnumSchema, nr as ManagedIdentityStorageBackend, nt as DefaultInterfaceTarget, o as LinkRpcConnectionOptions, oa as Components, oi as Keypair, on as zTopologyTransportEndpoint, oo as NumberSchema, or as JsonRpcChannel, ot as interfaceTarget, p as directoryInterface, pa as CheckedCallResult, pi as X25519Keypair, pn as ExportStaticHubSchemaOptions, po as UnionSchema, pr as capabilityFreshAt, pt as LinkRpcJsonRpcMessage, q as parseEndpointUri, qa as zodToSvcJsonSchema, qi as StaticInterfaceReference, qn as PrincipalWithStore, qr as LINKRPC_SIGNATURE_KEY, qt as TrafficTransitEndpoint, r as InspectionRegistration, ra as assertSchemaReferences, ri as withSignature, rn as zTopologyLinkEndpoint, ro as IntegerSchema, rr as createManagedIdentity, rt as InterfaceTarget, s as RegisterOptions, sa as isAssignable, si as PRINCIPAL_PREFIX, sn as zTopologyTransportInfo, so as ObjectSchema, sr as AcceptedRootIssuer, st as isInterfaceTarget, t as BareGetOptions, ta as MaterializedJsonSchema, ti as signingDomainValue, tn as zTopologyGraph, to as DiscriminatorSchema, tr as ManagedIdentityStorage, tt as OnChannelConnect, u as RootPrincipalSet, ua as EXTENSION_PREFIX, ui as PublicKey, un as zTrafficTransitEndpoint, uo as SchemaBase, ur as ParamMatchers, ut as MultiplexedTransport, v as createMemoryPrincipal, va as InterfaceInfo, vi as principalForPublicKey, vo as JsonRpcRequest, vr as signCapability, vt as LinkRpcWireParams, w as VerifyResult, wa as StreamApi, wi as IRequestSender, wo as isResponse, wr as SerializedKeypairSigningIdentity, wt as jcsCanonicalize, x as JsonObject, xa as LocalRpcError, xi as Channel, xo as RequestId, xr as KeypairSigningIdentity, xt as ParsedMethodName, y as createSeededMemoryPrincipal, ya as InterfaceMemberRef, yi as publicKeyForKeyId, yo as JsonRpcResponse, yr as Identity, yt as requireObjectParams, z as EndpointCommand, za as PublicApplicationErrorOf, zi as connectTransports, zr as matchParams, zt as TopologyLink } from "./chunks/linkRpcConnection-C_Gs4nZ9.js";
6
+ import { t as Hub } from "./chunks/hubFacade-CLgLIvBa.js";
7
7
  //#region src/node/stdio.d.ts
8
8
  /**
9
9
  * Spawn a child process and connect to its stdio as a linkrpc connection.
@@ -544,5 +544,5 @@ interface OpenWebSocketOptions {
544
544
  */
545
545
  declare function openWebSocket(url: string, opts?: OpenWebSocketOptions): Promise<WebSocket>;
546
546
  //#endregion
547
- export { Ability, type AcceptedRootIssuer, ApplicationErrorDescriptor, ApplicationErrorDescriptorBase, ApplicationErrorOf, ApplicationErrorValue, ApplicationErrorsOf, ArraySchema, BareGetOptions, type BareInterfaceTarget, Base64Sha256, BooleanSchema, Call, CallBind, CallMeta, CallTarget, type CancellableRequest, CapBag, CapBagOptions, type CapProvider, type CapProviderResult, Capability, Channel, ChannelConnector, type ChannelTransport, CheckedCall, CheckedCallResult, type CmdEnvEndpoint, type CmdStdioEndpoint, Components, type ConnectNdjsonOptions, type ConnectToHubOptions, type ConnectableChannel, type ConnectedNdjson, ConstSchema, CreatedApplicationErrorValue, DEFAULT_RPC_TIMEOUT_MS, DeclaredApplicationErrorOf, DiscriminatorSchema, EXTENSION_PREFIX, type EndpointCommand, EnumSchema, ErrorCode, ErrorSchema, type ExpBackoffOptions, type FormatEndpointOptions, GenerateInterfaceOptions, GetOptions, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, HeaderDelimitedTransport, type HeaderDelimitedTransportOptions, type HubChannel, type HubClientHandle, type HubPrefixClaimer, type HubPrefixClaimerOptions, IMessageTransport, INITIALIZE_METHOD, INITIALIZE_PROTOCOL_VERSION, type IRequestHandler, type IRequestSender, Identity, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, type IncomingCall, type IncomingStream, type InitializeParams, type InitializeResult, type InitializeRole, InspectionRegistration, IntegerSchema, InterfaceClient, InterfaceDefinition, InterfaceDefinitionOpts, InterfaceHandlers, InterfaceInfo, InterfaceMemberRef, InterfaceMemberRefMap, InterfaceRegistration, type IssueCapabilityOptions, JsonObject, JsonRpcChannel, JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccess, JsonValue, KEY_ID_PREFIX, type KeepConnectedHandle, KeyId, Keypair, KeypairIdentity, KeypairSigningIdentity, LINKRPC_ENDPOINT_VAR, LINKRPC_INITIALIZE_METHOD_ALIAS, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_TOKEN_VAR, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, LinkRpcConnectionOptions, LinkRpcInterfaceSchema, LinkRpcJsonRpcMessage, LinkRpcJsonRpcNotification, LinkRpcJsonRpcRequest, LinkRpcJsonSchema, LinkRpcUnsigned, LinkRpcWireMeta, LinkRpcWireParams, type LoadOrCreateIdentityOptions, LocalRpcError, ManagedIdentity, ManagedIdentityStorage, ManagedIdentityStorageBackend, type ManagedSigningChannel, MaterializedJsonSchema, MemberAnnotations, MemberDocs, MemberMap, MemberType, MessageTransportDirection, MessageTransportTrace, MessageTransportWithContext, MessageWithContext, type MessageWithCtx, MethodSchema, MultiplexedTransport, MuxEnvelope, NodeInfo, NotificationType, NullSchema, NumberSchema, ObjectSchema, type OnChannelConnect, OneOfSchema, OneShotCapStaging, type OpenHubChannelOptions, type OpenWebSocketOptions, PRINCIPAL_PREFIX, ParamMatcher, type ParamMatcherFor, type ParamMatchers, ParsedMethodName, ParticipantDescriptor, ParticipantDescriptorSource, Pattern, Permission, type PermitResult, type PersistedIdentity, Principal, PrincipalId, PrincipalWithStore, PrivateKey, PublicApplicationErrorOf, PublicKey, PublicSigningIdentity, PublicWrappingIdentity, type RawStreamingCall, RefSchema, type RegisterHubPrefixOptions, RegisterOptions, RemoteRpcError, RequestId, RequestType, ResolveSigningKeyArgs, type ResolvedEndpoint, type Result, RootPrincipalReq, RootPrincipalSet, RouteClaim, RpcError, type RunInitializeHandshakeOptions, STREAM_METHOD, Schema, SchemaBase, SchemaToZodContext, SeededPrincipalOptions, type SendOpts, SerializedKeypairSigningIdentity, type ServeOverHubController, type ServeOverHubIdentityOptions, type ServeOverHubOptions, ServiceHandle, ServiceIdPattern, SignDomain, SignParamsOptions, SignRpcCallOptions, Signature, SignatureEnvelope, Signatures, SignedCapability, SignedRpcCall, type SigningCallCtx, SigningIdentity, SigningSender, type SigningSenderConfig, type SocketEndpoint, type StdioChannel, StreamApi, StreamCallOptions, StreamControlReason, StreamControlType, StreamDir, type StreamSendOpts, StreamSendParams, StreamingCall, StringSchema, TargetPattern, TopologyGraph, TopologyIdGenerator, TopologyLink, TopologyLinkEndpoint, TopologyNode, TopologyPort, TopologyTransportEndpoint, TopologyTransportInfo, TrafficEvent, TrafficOverflowEvent, TrafficTransitEndpoint, TrafficTransitEvent, TrafficWatchResult, TransportPair, TupleSchema, UnionSchema, VerifyCallOptions, VerifyResult, VerifyRpcCallOptions, VerifyRpcCallResult, WebSocketTransport, WrappingIdentity, type WsEndpoint, type WsNoInitEndpoint, X25519Keypair, ZodToSvcJsonSchemaOptions, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectNdjson, connectToCmdStdio, connectToHub, connectTransports, createHubPrefixClaimer, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, createSelfManagedPrincipal, createSelfManagedPrincipalFromFile, crypto_d_exports as crypto, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, fileManagedIdentityStorage, formatEndpointUri, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, loadOrCreateIdentity, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, openHubChannel, openStdioChannel, openWebSocket, parseEndpointUri, parseMethodName, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerHubPrefix, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, runInitializeHandshake, schemaToZod, schemasInterface, serveOnStdio, serveOverHubWithReconnect, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
547
+ export { Ability, type AcceptedRootIssuer, ApplicationErrorDescriptor, ApplicationErrorDescriptorBase, ApplicationErrorOf, ApplicationErrorValue, ApplicationErrorsOf, ArraySchema, BareGetOptions, type BareInterfaceTarget, Base64Sha256, BooleanSchema, Call, CallBind, CallMeta, CallTarget, type CancellableRequest, CapBag, CapBagOptions, type CapProvider, type CapProviderResult, Capability, Channel, ChannelConnector, type ChannelTransport, CheckedCall, CheckedCallResult, type CmdEnvEndpoint, type CmdStdioEndpoint, Components, type ConnectNdjsonOptions, type ConnectToHubOptions, type ConnectableChannel, type ConnectedNdjson, ConstSchema, CreatedApplicationErrorValue, DEFAULT_RPC_TIMEOUT_MS, DeclaredApplicationErrorOf, DefaultInterfaceTarget, DiscriminatorSchema, EXTENSION_PREFIX, type EndpointCommand, EnumSchema, ErrorCode, ErrorSchema, type ExpBackoffOptions, ExportStaticHubSchemaOptions, type FormatEndpointOptions, GenerateContractOptions, GenerateInterfaceOptions, GetOptions, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, HeaderDelimitedTransport, type HeaderDelimitedTransportOptions, type HubChannel, type HubClientHandle, type HubPrefixClaimer, type HubPrefixClaimerOptions, IMessageTransport, INITIALIZE_METHOD, INITIALIZE_PROTOCOL_VERSION, type IRequestHandler, type IRequestSender, Identity, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, type IncomingCall, type IncomingStream, type InitializeParams, type InitializeResult, type InitializeRole, InspectionRegistration, IntegerSchema, InterfaceClient, InterfaceDefinition, InterfaceDefinitionOpts, InterfaceHandlers, InterfaceInfo, InterfaceMemberRef, InterfaceMemberRefMap, InterfaceRef, InterfaceRegistration, InterfaceTarget, type IssueCapabilityOptions, JsonObject, JsonRpcChannel, JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccess, JsonValue, KEY_ID_PREFIX, type KeepConnectedHandle, KeyId, Keypair, KeypairIdentity, KeypairSigningIdentity, LINKRPC_ENDPOINT_VAR, LINKRPC_INITIALIZE_METHOD_ALIAS, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_TOKEN_VAR, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, LinkRpcConnectionOptions, LinkRpcInterfaceSchema, LinkRpcJsonRpcMessage, LinkRpcJsonRpcNotification, LinkRpcJsonRpcRequest, LinkRpcJsonSchema, LinkRpcUnsigned, LinkRpcWireMeta, LinkRpcWireParams, type LoadOrCreateIdentityOptions, LocalRpcError, ManagedIdentity, ManagedIdentityStorage, ManagedIdentityStorageBackend, type ManagedSigningChannel, MaterializedJsonSchema, MemberAnnotations, MemberDocs, MemberMap, MemberType, MessageTransportDirection, MessageTransportTrace, MessageTransportWithContext, MessageWithContext, type MessageWithCtx, MethodSchema, MultiplexedTransport, MuxEnvelope, NodeInfo, NotificationType, NullSchema, NumberSchema, ObjectSchema, type OnChannelConnect, OneOfSchema, OneShotCapStaging, type OpenHubChannelOptions, type OpenWebSocketOptions, PRINCIPAL_PREFIX, ParamMatcher, type ParamMatcherFor, type ParamMatchers, ParsedMethodName, ParticipantDescriptor, ParticipantDescriptorSource, Pattern, Permission, type PermitResult, type PersistedIdentity, Principal, PrincipalId, PrincipalWithStore, PrivateKey, PublicApplicationErrorOf, PublicKey, PublicSigningIdentity, PublicWrappingIdentity, QualifiedInterfaceTarget, type RawStreamingCall, RefSchema, type RegisterHubPrefixOptions, RegisterOptions, RemoteRpcError, RequestId, RequestType, ResolveSigningKeyArgs, type ResolvedEndpoint, type Result, RootPrincipalReq, RootPrincipalSet, RouteClaim, RpcError, type RunInitializeHandshakeOptions, STREAM_METHOD, Schema, SchemaBase, SchemaToZodContext, SeededPrincipalOptions, type SendOpts, SerializedKeypairSigningIdentity, type ServeOverHubController, type ServeOverHubIdentityOptions, type ServeOverHubOptions, ServiceHandle, ServiceIdPattern, SignDomain, SignParamsOptions, SignRpcCallOptions, Signature, SignatureEnvelope, Signatures, SignedCapability, SignedRpcCall, type SigningCallCtx, SigningIdentity, SigningSender, type SigningSenderConfig, type SocketEndpoint, StaticHubSchema, StaticHubSchemaDocument, StaticInterfaceReference, StaticService, type StdioChannel, StreamApi, StreamCallOptions, StreamControlReason, StreamControlType, StreamDir, type StreamSendOpts, StreamSendParams, StreamingCall, StringSchema, TargetPattern, TopologyGraph, TopologyIdGenerator, TopologyLink, TopologyLinkEndpoint, TopologyNode, TopologyPort, TopologyTransportEndpoint, TopologyTransportInfo, TrafficEvent, TrafficOverflowEvent, TrafficTransitEndpoint, TrafficTransitEvent, TrafficWatchResult, TransportPair, TupleSchema, UnionSchema, VerifyCallOptions, VerifyResult, VerifyRpcCallOptions, VerifyRpcCallResult, WebSocketTransport, WrappingIdentity, type WsEndpoint, type WsNoInitEndpoint, X25519Keypair, ZodToSvcJsonSchemaOptions, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectNdjson, connectToCmdStdio, connectToHub, connectTransports, createHubPrefixClaimer, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, createSelfManagedPrincipal, createSelfManagedPrincipalFromFile, crypto_d_exports as crypto, defaultInterfaceTarget, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, exportStaticHubSchema, fileManagedIdentityStorage, formatEndpointUri, generateTsContract, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, interfaceTarget, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isInterfaceTarget, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, loadOrCreateIdentity, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, openHubChannel, openStdioChannel, openWebSocket, parseEndpointUri, parseMethodName, parseStaticHubSchema, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerHubPrefix, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, runInitializeHandshake, schemaToZod, schemasInterface, serveOnStdio, serveOverHubWithReconnect, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
548
548
  //# sourceMappingURL=node.d.ts.map
package/dist/node.js CHANGED
@@ -2,9 +2,9 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { A as EXTENSION_PREFIX, B as requestType, C as defineInterface, D as assertSchemaReferences, E as schemaToZod, F as NotificationType, H as normalizeJsonSchema, I as RequestType, L as applicationError, M as sha256, N as jcsCanonicalize, O as componentSchemaName, P as jcsCanonicalizeBytes, R as isApplicationErrorValue, S as InterfaceDefinition, T as createSchemaToZod, V as zodToSvcJsonSchema, _ as zTrafficEvent, a as topologyInterface, b as zTrafficTransitEvent, c as zParticipantDescriptorSource, d as zTopologyLink, f as zTopologyLinkEndpoint, g as zTopologyTransportInfo, h as zTopologyTransportEndpoint, i as nodeInterface, j as computeInterfaceHash, k as componentSchemaRef, l as zRouteClaim, m as zTopologyPort, o as trafficInterface, p as zTopologyNode, s as zParticipantDescriptor, u as zTopologyGraph, v as zTrafficOverflowEvent, w as interfaceFromSchema, x as zTrafficWatchResult, y as zTrafficTransitEndpoint, z as notificationType } from "./chunks/boundedTrafficSubscription-XZ1KwXZC.js";
6
- import { $t as bareInterfaceTarget, A as attachCapabilities, At as PRINCIPAL_PREFIX, B as LinkRpcConnection, Bt as isRequest, C as identityStorageInterface, Ct as getKeyId, D as PublicWrappingIdentity, Dt as signingInput, E as PublicSigningIdentity, Et as signingDomainValue, F as generateX25519Keypair, Ft as principalForPublicKey, Gt as StreamDir, H as JsonRpcChannel, Ht as STREAM_METHOD, I as formatEndpointUri, It as publicKeyForKeyId, Jt as directoryInterface, Kt as streamInterface, L as isHubEndpoint, Lt as resolveSigningKey, M as verifyRpcCall, Mt as bytesToBase64Url, N as crypto_exports, Nt as keyIdForPrincipal, O as Principal, Ot as withSignature, P as generateKeypair, Pt as keyIdForPublicKey, Qt as generateTsInterface, R as parseEndpointUri, Rt as ErrorCode, S as identityInterface, St as LINKRPC_UNSIGNED_KEY, T as KeypairSigningIdentity, Tt as signedHash, Ut as StreamControlReason, V as ServiceHandle, Vt as isResponse, Wt as StreamControlType, Xt as schemasInterface, Yt as directoryWatchNever, Zt as zServiceIdPattern, _ as InMemoryManagedIdentity, _t as HUBRPC_META_KEY, a as verifyCall, at as TransportPair, b as registerIdentityOnOverlay, bt as LINKRPC_META_KEY, c as invoke, ct as requireObjectParams, d as prefix, dt as parseMethodName, en as materializeJsonSchema, et as DEFAULT_RPC_TIMEOUT_MS, f as signCapability, ft as capabilityPermits, g as createManagedPrincipal, gt as permissionPermits, h as PrincipalWithStore, ht as permissionMatchesTarget, i as signParams, it as MultiplexedTransport, j as signRpcCall, jt as base64UrlToBytes, k as CapBag, kt as KEY_ID_PREFIX, l as issueCapability, lt as stripLinkRpcWireMeta, m as SigningSender, mt as matchParams, n as createSeededMemoryPrincipal, nn as matchesJsonSchema, nt as Channel, o as capBagFreshAt, ot as connectTransports, p as OneShotCapStaging, pt as hasSignedCapabilityShape, qt as defaultsInterface, r as createSeededSigningIdentity, rt as RpcError, s as capabilityFreshAt, st as traceMessageTransport, t as createMemoryPrincipal, tn as isAssignable, tt as withRpcTimeout, u as permits, ut as methodNameToTarget, v as InMemoryManagedIdentityStorage, vt as HUBRPC_SIGNATURE_KEY, w as KeypairIdentity, wt as readSignature, x as registerLazyIdentityOnOverlay, xt as LINKRPC_SIGNATURE_KEY, y as createManagedIdentity, yt as HUBRPC_UNSIGNED_KEY, z as ChannelConnector, zt as isNotification } from "./chunks/src-CAhXne71.js";
7
- import { n as hubFromConnection } from "./chunks/hubFacade-BIB9CoAv.js";
5
+ import { $ as jcsCanonicalize, A as PRINCIPAL_PREFIX, B as isRequest, C as zTopologyTransportInfo, D as zTrafficTransitEvent, E as zTrafficTransitEndpoint, F as principalForPublicKey, G as createSchemaToZod, H as InterfaceDefinition, I as publicKeyForKeyId, J as componentSchemaName, K as schemaToZod, L as resolveSigningKey, M as bytesToBase64Url, N as keyIdForPrincipal, O as zTrafficWatchResult, P as keyIdForPublicKey, Q as sha256, R as ErrorCode, S as zTopologyTransportEndpoint, T as zTrafficOverflowEvent, U as defineInterface, V as isResponse, W as interfaceFromSchema, X as EXTENSION_PREFIX, Y as componentSchemaRef, Z as computeInterfaceHash, _ as zTopologyGraph, at as notificationType, b as zTopologyNode, c as StreamControlType, ct as normalizeJsonSchema, d as nodeInterface, et as jcsCanonicalizeBytes, f as topologyInterface, g as zRouteClaim, h as zParticipantDescriptorSource, it as isApplicationErrorValue, j as base64UrlToBytes, k as KEY_ID_PREFIX, l as StreamDir, m as zParticipantDescriptor, nt as RequestType, o as STREAM_METHOD, ot as requestType, p as trafficInterface, q as assertSchemaReferences, rt as applicationError, s as StreamControlReason, st as zodToSvcJsonSchema, tt as NotificationType, u as streamInterface, v as zTopologyLink, w as zTrafficEvent, x as zTopologyPort, y as zTopologyLinkEndpoint, z as isNotification } from "./chunks/inspectionHost-BA08eF6h.js";
6
+ import { $ as interfaceTarget, A as attachCapabilities, At as getKeyId, B as MultiplexedTransport, Bt as generateTsInterface, C as identityStorageInterface, Ct as stripLinkRpcWireMeta, D as PublicWrappingIdentity, Dt as LINKRPC_META_KEY, E as PublicSigningIdentity, Et as HUBRPC_UNSIGNED_KEY, F as generateX25519Keypair, Ft as withSignature, G as hasSignedCapabilityShape, H as connectTransports, Ht as materializeJsonSchema, I as formatEndpointUri, It as methodNameToTarget, J as permissionPermits, K as matchParams, L as isHubEndpoint, Lt as parseMethodName, M as verifyRpcCall, Mt as signedHash, N as crypto_exports, Nt as signingDomainValue, O as Principal, Ot as LINKRPC_SIGNATURE_KEY, P as generateKeypair, Pt as signingInput, Q as defaultInterfaceTarget, R as parseEndpointUri, Rt as generateTsContract, S as identityInterface, St as requireObjectParams, T as KeypairSigningIdentity, Tt as HUBRPC_SIGNATURE_KEY, U as traceMessageTransport, Ut as isAssignable, V as TransportPair, Vt as bareInterfaceTarget, W as capabilityPermits, Wt as matchesJsonSchema, X as LinkRpcConnection, Y as exportStaticHubSchema, Z as ServiceHandle, _ as InMemoryManagedIdentity, _t as defaultsInterface, a as verifyCall, b as registerIdentityOnOverlay, bt as schemasInterface, c as invoke, d as prefix, et as isInterfaceTarget, f as signCapability, g as createManagedPrincipal, gt as withRpcTimeout, h as PrincipalWithStore, ht as DEFAULT_RPC_TIMEOUT_MS, i as signParams, j as signRpcCall, jt as readSignature, k as CapBag, kt as LINKRPC_UNSIGNED_KEY, l as issueCapability, m as SigningSender, n as createSeededMemoryPrincipal, nt as Channel, o as capBagFreshAt, p as OneShotCapStaging, q as permissionMatchesTarget, r as createSeededSigningIdentity, rt as RpcError, s as capabilityFreshAt, t as createMemoryPrincipal, tt as JsonRpcChannel, u as permits, v as InMemoryManagedIdentityStorage, vt as directoryInterface, w as KeypairIdentity, wt as HUBRPC_META_KEY, x as registerLazyIdentityOnOverlay, xt as zServiceIdPattern, y as createManagedIdentity, yt as directoryWatchNever, z as ChannelConnector, zt as parseStaticHubSchema } from "./chunks/src-BaCs8mWd.js";
7
+ import { n as hubFromConnection } from "./chunks/hubFacade-rlsBq0ZU.js";
8
8
  import { spawn } from "node:child_process";
9
9
  import * as fs from "node:fs/promises";
10
10
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -1082,6 +1082,6 @@ function positiveLimit(value, fallback, name) {
1082
1082
  return result;
1083
1083
  }
1084
1084
  //#endregion
1085
- export { CapBag, Channel, ChannelConnector, DEFAULT_RPC_TIMEOUT_MS, EXTENSION_PREFIX, ErrorCode, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, HeaderDelimitedTransport, INITIALIZE_METHOD, INITIALIZE_PROTOCOL_VERSION, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, InterfaceDefinition, JsonRpcChannel, KEY_ID_PREFIX, KeypairIdentity, KeypairSigningIdentity, LINKRPC_ENDPOINT_VAR, LINKRPC_INITIALIZE_METHOD_ALIAS, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_TOKEN_VAR, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, MultiplexedTransport, NotificationType, OneShotCapStaging, PRINCIPAL_PREFIX, Principal, PrincipalWithStore, PublicSigningIdentity, PublicWrappingIdentity, RequestType, RpcError, STREAM_METHOD, ServiceHandle, SigningSender, StreamControlReason, StreamControlType, StreamDir, TransportPair, WebSocketTransport, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectNdjson, connectToCmdStdio, connectToHub, connectTransports, createHubPrefixClaimer, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, createSelfManagedPrincipal, createSelfManagedPrincipalFromFile, crypto_exports as crypto, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, fileManagedIdentityStorage, formatEndpointUri, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, loadOrCreateIdentity, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, openHubChannel, openStdioChannel, openWebSocket, parseEndpointUri, parseMethodName, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerHubPrefix, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, runInitializeHandshake, schemaToZod, schemasInterface, serveOnStdio, serveOverHubWithReconnect, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
1085
+ export { CapBag, Channel, ChannelConnector, DEFAULT_RPC_TIMEOUT_MS, EXTENSION_PREFIX, ErrorCode, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, HeaderDelimitedTransport, INITIALIZE_METHOD, INITIALIZE_PROTOCOL_VERSION, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, InterfaceDefinition, JsonRpcChannel, KEY_ID_PREFIX, KeypairIdentity, KeypairSigningIdentity, LINKRPC_ENDPOINT_VAR, LINKRPC_INITIALIZE_METHOD_ALIAS, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_TOKEN_VAR, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, MultiplexedTransport, NotificationType, OneShotCapStaging, PRINCIPAL_PREFIX, Principal, PrincipalWithStore, PublicSigningIdentity, PublicWrappingIdentity, RequestType, RpcError, STREAM_METHOD, ServiceHandle, SigningSender, StreamControlReason, StreamControlType, StreamDir, TransportPair, WebSocketTransport, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectNdjson, connectToCmdStdio, connectToHub, connectTransports, createHubPrefixClaimer, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, createSelfManagedPrincipal, createSelfManagedPrincipalFromFile, crypto_exports as crypto, defaultInterfaceTarget, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, exportStaticHubSchema, fileManagedIdentityStorage, formatEndpointUri, generateTsContract, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, interfaceTarget, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isInterfaceTarget, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, loadOrCreateIdentity, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, openHubChannel, openStdioChannel, openWebSocket, parseEndpointUri, parseMethodName, parseStaticHubSchema, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerHubPrefix, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, runInitializeHandshake, schemaToZod, schemasInterface, serveOnStdio, serveOverHubWithReconnect, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
1086
1086
 
1087
1087
  //# sourceMappingURL=node.js.map
package/dist/web.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { $ as ManagedIdentityStorageBackend, $i as RequestType, $n as signedHash, $r as zTopologyLinkEndpoint, $t as Result, A as VerifyRpcCallResult, Aa as JsonRpcNotification, Ai as InterfaceHandlers, An as Capability, Ar as nodeInterface, B as OneShotCapStaging, Bi as defineInterface, Bn as permissionPermits, Br as TopologyTransportInfo, Bt as ExpBackoffOptions, C as VerifyCallOptions, Ca as SchemaBase, Ci as EXTENSION_PREFIX, Cn as ParsedMethodName, Cr as StreamControlReason, Ct as CmdEnvEndpoint, D as SignRpcCallOptions, Da as ErrorCode, Di as InterfaceClient, Dn as Call, Dr as streamInterface, Dt as ResolvedEndpoint, E as verifyCall, Ea as UnionSchema, Ei as CheckedCallResult, En as Ability, Er as StreamSendParams, Et as FormatEndpointOptions, F as identityStorageInterface, Fa as isNotification, Fi as MemberMap, Fn as TargetPattern, Fr as TopologyLink, Ft as DEFAULT_RPC_TIMEOUT_MS, G as createManagedPrincipal, Gi as ApplicationErrorValue, Gn as LINKRPC_META_KEY, Gr as TrafficWatchResult, Gt as Channel, H as SigningSender, Hi as ApplicationErrorDescriptor, Hn as HUBRPC_META_KEY, Hr as TrafficOverflowEvent, Ht as OnChannelConnect, I as crypto_d_exports, Ia as isRequest, Ii as RemoteRpcError, In as capabilityPermits, Ir as TopologyLinkEndpoint, It as withRpcTimeout, J as CapBagOptions, Ji as DeclaredApplicationErrorOf, Jn as SignDomain, Jr as zParticipantDescriptor, Jt as IRequestSender, K as Principal, Ki as ApplicationErrorsOf, Kn as LINKRPC_SIGNATURE_KEY, Kr as topologyInterface, Kt as ChannelTransport, L as CapProvider, La as isResponse, Li as StreamApi, Ln as hasSignedCapabilityShape, Lr as TopologyNode, Lt as JsonRpcChannel, M as signRpcCall, Ma as JsonRpcResponse, Mi as InterfaceMemberRef, Mn as Pattern, Mr as ParticipantDescriptorSource, Mt as isHubEndpoint, N as verifyRpcCall, Na as JsonRpcSuccess, Ni as InterfaceMemberRefMap, Nn as Permission, Nr as RouteClaim, Nt as parseEndpointUri, O as SignedRpcCall, Oa as JsonRpcError, Oi as InterfaceDefinition, On as CallBind, Or as NodeInfo, Ot as SocketEndpoint, P as identityInterface, Pa as RequestId, Pi as LocalRpcError, Pn as SignedCapability, Pr as TopologyGraph, Pt as CancellableRequest, Q as ManagedIdentityStorage, Qi as PublicApplicationErrorOf, Qn as readSignature, Qr as zTopologyLink, Qt as RawStreamingCall, R as CapProviderResult, Ra as JsonValue, Ri as StreamCallOptions, Rn as matchParams, Rr as TopologyPort, Rt as ChannelConnector, S as SignParamsOptions, Sa as RefSchema, Si as normalizeJsonSchema, Sn as stripLinkRpcWireMeta, Sr as STREAM_METHOD, St as WrappingIdentity, T as signParams, Ta as TupleSchema, Ti as CheckedCall, Tn as parseMethodName, Tr as StreamDir, Tt as EndpointCommand, U as SigningSenderConfig, Ui as ApplicationErrorDescriptorBase, Un as HUBRPC_SIGNATURE_KEY, Ur as TrafficTransitEndpoint, Ut as BareInterfaceTarget, V as SigningCallCtx, Vi as interfaceFromSchema, Vn as Base64Sha256, Vr as TrafficEvent, Vt as KeepConnectedHandle, W as PrincipalWithStore, Wi as ApplicationErrorOf, Wn as HUBRPC_UNSIGNED_KEY, Wr as TrafficTransitEvent, Wt as bareInterfaceTarget, X as InMemoryManagedIdentityStorage, Xi as MemberType, Xn as Signatures, Xr as zRouteClaim, Xt as IncomingStream, Y as InMemoryManagedIdentity, Yi as MemberDocs, Yn as SignatureEnvelope, Yr as zParticipantDescriptorSource, Yt as IncomingCall, Z as ManagedIdentity, Zi as NotificationType, Zn as getKeyId, Zr as zTopologyGraph, Zt as MessageWithCtx, _ as SeededPrincipalOptions, _a as LinkRpcJsonSchema, _i as componentSchemaName, _n as LinkRpcJsonRpcRequest, _r as principalForPublicKey, _t as KeypairSigningIdentity, a as LinkRpcConnection, aa as requestType, ai as zTrafficOverflowEvent, an as IMessageTransport, ar as Keypair, at as ParamMatcherFor, b as createSeededSigningIdentity, ba as ObjectSchema, bi as isAssignable, bn as LinkRpcWireParams, br as jcsCanonicalize, bt as SerializedKeypairSigningIdentity, c as ServiceHandle, ca as LinkRpcInterfaceSchema, ci as zTrafficWatchResult, cn as MessageTransportWithContext, cr as PrivateKey, ct as capBagFreshAt, d as ServiceIdPattern, da as ArraySchema, di as SchemaToZodContext, dn as connectTransports, dr as Signature, dt as issueCapability, ea as Schema, ei as zTopologyNode, en as RpcError, er as signingDomainValue, et as createManagedIdentity, f as defaultsInterface, fa as BooleanSchema, fi as createSchemaToZod, fn as traceMessageTransport, fr as X25519Keypair, ft as permits, g as zServiceIdPattern, ga as IntegerSchema, gi as assertSchemaReferences, gn as LinkRpcJsonRpcNotification, gr as keyIdForPublicKey, gt as KeypairIdentity, h as schemasInterface, ha as EnumSchema, hi as materializeJsonSchema, hn as LinkRpcJsonRpcMessage, hr as keyIdForPrincipal, ht as Identity, i as InterfaceRegistration, ia as notificationType, ii as zTrafficEvent, in as MuxEnvelope, ir as KeyId, it as IssueCapabilityOptions, j as attachCapabilities, ja as JsonRpcRequest, ji as InterfaceInfo, jn as ParamMatcher, jr as ParticipantDescriptor, jt as formatEndpointUri, k as VerifyRpcCallOptions, ka as JsonRpcMessage, ki as InterfaceDefinitionOpts, kn as CallTarget, kr as TopologyIdGenerator, kt as WsEndpoint, l as RootPrincipalReq, la as MemberAnnotations, li as GenerateInterfaceOptions, ln as MessageWithContext, lr as PublicKey, lt as capabilityFreshAt, m as directoryWatchNever, ma as DiscriminatorSchema, mi as MaterializedJsonSchema, mn as CallMeta, mr as bytesToBase64Url, mt as signCapability, n as GetOptions, na as applicationError, ni as zTopologyTransportEndpoint, nn as StreamSendOpts, nr as withSignature, nt as registerLazyIdentityOnOverlay, o as LinkRpcConnectionOptions, oa as zodToSvcJsonSchema, oi as zTrafficTransitEndpoint, on as MessageTransportDirection, or as PRINCIPAL_PREFIX, ot as ParamMatchers, p as directoryInterface, pa as ConstSchema, pi as schemaToZod, pr as base64UrlToBytes, pt as prefix, q as CapBag, qi as CreatedApplicationErrorValue, qn as LINKRPC_UNSIGNED_KEY, qr as trafficInterface, qt as IRequestHandler, r as InspectionRegistration, ra as isApplicationErrorValue, ri as zTopologyTransportInfo, rn as MultiplexedTransport, rr as KEY_ID_PREFIX, rt as AcceptedRootIssuer, s as RegisterOptions, sa as ErrorSchema, si as zTrafficTransitEvent, sn as MessageTransportTrace, sr as PrincipalId, st as PermitResult, t as BareGetOptions, ta as ZodToSvcJsonSchemaOptions, ti as zTopologyPort, tn as SendOpts, tr as signingInput, tt as registerIdentityOnOverlay, u as RootPrincipalSet, ua as MethodSchema, ui as generateTsInterface, un as TransportPair, ur as ResolveSigningKeyArgs, ut as invoke, v as createMemoryPrincipal, va as NullSchema, vi as componentSchemaRef, vn as LinkRpcUnsigned, vr as publicKeyForKeyId, vt as PublicSigningIdentity, w as VerifyResult, wa as StringSchema, wi as computeInterfaceHash, wn as methodNameToTarget, wr as StreamControlType, wt as CmdStdioEndpoint, x as JsonObject, xa as OneOfSchema, xi as matchesJsonSchema, xn as requireObjectParams, xr as jcsCanonicalizeBytes, xt as SigningIdentity, y as createSeededMemoryPrincipal, ya as NumberSchema, yi as Components, yn as LinkRpcWireMeta, yr as resolveSigningKey, yt as PublicWrappingIdentity, z as ManagedSigningChannel, zi as StreamingCall, zn as permissionMatchesTarget, zr as TopologyTransportEndpoint, zt as ConnectableChannel } from "./chunks/linkRpcConnection-BadD37ok.js";
5
+ import { $ as ExpBackoffOptions, $a as BooleanSchema, $i as createSchemaToZod, $n as InMemoryManagedIdentityStorage, $r as readSignature, $t as zParticipantDescriptorSource, A as VerifyRpcCallResult, Aa as ApplicationErrorDescriptorBase, Ai as RpcError, Ar as CallTarget, At as StreamSendParams, B as FormatEndpointOptions, Ba as RequestType, Bi as traceMessageTransport, Bn as CapProvider, Br as permissionMatchesTarget, Bt as TopologyLinkEndpoint, C as VerifyCallOptions, Ca as RemoteRpcError, Ci as IRequestHandler, Co as isRequest, Cr as PublicWrappingIdentity, Ct as parseMethodName, D as SignRpcCallOptions, Da as defineInterface, Di as MessageWithCtx, Dr as Ability, Dt as StreamControlReason, E as verifyCall, Ea as StreamingCall, Ei as IncomingStream, Er as WrappingIdentity, Et as STREAM_METHOD, F as identityStorageInterface, Fa as DeclaredApplicationErrorOf, Fi as MessageTransportTrace, Fr as SignedCapability, Ft as ParticipantDescriptor, G as formatEndpointUri, Ga as notificationType, Gi as StaticHubSchema, Gn as SigningSender, Gr as HUBRPC_UNSIGNED_KEY, Gt as TrafficEvent, H as SocketEndpoint, Ha as ZodToSvcJsonSchemaOptions, Hi as GenerateContractOptions, Hn as ManagedSigningChannel, Hr as Base64Sha256, Ht as TopologyPort, I as crypto_d_exports, Ia as MemberDocs, Ii as MessageTransportWithContext, Ir as TargetPattern, It as ParticipantDescriptorSource, J as CancellableRequest, Ja as ErrorSchema, Ji as StaticService, Jn as createManagedPrincipal, Jr as LINKRPC_UNSIGNED_KEY, Jt as TrafficTransitEvent, K as isHubEndpoint, Ka as requestType, Ki as StaticHubSchemaDocument, Kn as SigningSenderConfig, Kr as LINKRPC_META_KEY, Kt as TrafficOverflowEvent, L as CmdEnvEndpoint, La as MemberType, Li as MessageWithContext, Lr as capabilityPermits, Lt as RouteClaim, M as signRpcCall, Ma as ApplicationErrorValue, Mi as StreamSendOpts, Mr as ParamMatcher, Mt as NodeInfo, N as verifyRpcCall, Na as ApplicationErrorsOf, Ni as IMessageTransport, Nr as Pattern, Nt as TopologyIdGenerator, O as SignedRpcCall, Oa as interfaceFromSchema, Oi as RawStreamingCall, Or as Call, Ot as StreamControlType, P as identityInterface, Pa as CreatedApplicationErrorValue, Pi as MessageTransportDirection, Pr as Permission, Pt as nodeInterface, Q as ConnectableChannel, Qa as ArraySchema, Qi as SchemaToZodContext, Qn as InMemoryManagedIdentity, Qr as getKeyId, Qt as zParticipantDescriptor, R as CmdStdioEndpoint, Ra as NotificationType, Ri as TransportPair, Rr as hasSignedCapabilityShape, Rt as TopologyGraph, S as SignParamsOptions, Sa as MemberMap, Si as ChannelTransport, So as isNotification, Sr as PublicSigningIdentity, St as methodNameToTarget, T as signParams, Ta as StreamCallOptions, Ti as IncomingCall, To as JsonValue, Tr as SigningIdentity, Tt as jcsCanonicalizeBytes, U as WsEndpoint, Ua as applicationError, Ui as generateTsContract, Un as OneShotCapStaging, Ur as HUBRPC_META_KEY, Ut as TopologyTransportEndpoint, V as ResolvedEndpoint, Va as Schema, Vn as CapProviderResult, Vr as permissionPermits, Vt as TopologyNode, Wa as isApplicationErrorValue, Wi as InterfaceRef, Wn as SigningCallCtx, Wr as HUBRPC_SIGNATURE_KEY, Wt as TopologyTransportInfo, X as withRpcTimeout, Xa as MemberAnnotations, Xi as GenerateInterfaceOptions, Xn as CapBag, Xr as SignatureEnvelope, Xt as topologyInterface, Y as DEFAULT_RPC_TIMEOUT_MS, Ya as LinkRpcInterfaceSchema, Yi as parseStaticHubSchema, Yn as Principal, Yr as SignDomain, Yt as TrafficWatchResult, Z as ChannelConnector, Za as MethodSchema, Zi as generateTsInterface, Zn as CapBagOptions, Zr as Signatures, Zt as trafficInterface, _ as SeededPrincipalOptions, _a as InterfaceHandlers, _i as keyIdForPublicKey, _o as JsonRpcNotification, _r as prefix, _t as LinkRpcWireMeta, a as LinkRpcConnection, aa as componentSchemaRef, ai as KeyId, an as zTopologyPort, ao as NullSchema, ar as registerLazyIdentityOnOverlay, at as defaultInterfaceTarget, b as createSeededSigningIdentity, ba as InterfaceMemberRefMap, bi as resolveSigningKey, bo as JsonRpcSuccess, br as KeypairIdentity, bt as stripLinkRpcWireMeta, c as ServiceHandle, ca as matchesJsonSchema, ci as PrincipalId, cn as zTrafficEvent, co as OneOfSchema, cr as IssueCapabilityOptions, ct as BareInterfaceTarget, d as ServiceIdPattern, da as computeInterfaceHash, di as ResolveSigningKeyArgs, dn as zTrafficTransitEvent, do as StringSchema, dr as PermitResult, dt as MuxEnvelope, ea as schemaToZod, ei as signedHash, en as zRouteClaim, eo as ConstSchema, er as ManagedIdentity, et as KeepConnectedHandle, f as defaultsInterface, fa as CheckedCall, fi as Signature, fn as zTrafficWatchResult, fo as TupleSchema, fr as capBagFreshAt, ft as CallMeta, g as zServiceIdPattern, ga as InterfaceDefinitionOpts, gi as keyIdForPrincipal, go as JsonRpcMessage, gr as permits, gt as LinkRpcUnsigned, h as schemasInterface, ha as InterfaceDefinition, hi as bytesToBase64Url, ho as JsonRpcError, hr as issueCapability, ht as LinkRpcJsonRpcRequest, i as InterfaceRegistration, ia as componentSchemaName, ii as KEY_ID_PREFIX, in as zTopologyNode, io as LinkRpcJsonSchema, ir as registerIdentityOnOverlay, it as QualifiedInterfaceTarget, j as attachCapabilities, ja as ApplicationErrorOf, ji as SendOpts, jr as Capability, jt as streamInterface, k as VerifyRpcCallOptions, ka as ApplicationErrorDescriptor, ki as Result, kr as CallBind, kt as StreamDir, l as RootPrincipalReq, la as normalizeJsonSchema, li as PrivateKey, ln as zTrafficOverflowEvent, lo as RefSchema, lr as ParamMatcherFor, lt as bareInterfaceTarget, m as directoryWatchNever, ma as InterfaceClient, mi as base64UrlToBytes, mn as exportStaticHubSchema, mo as ErrorCode, mr as invoke, mt as LinkRpcJsonRpcNotification, n as GetOptions, na as materializeJsonSchema, ni as signingInput, nn as zTopologyLink, no as EnumSchema, nr as ManagedIdentityStorageBackend, nt as DefaultInterfaceTarget, o as LinkRpcConnectionOptions, oa as Components, oi as Keypair, on as zTopologyTransportEndpoint, oo as NumberSchema, or as JsonRpcChannel, ot as interfaceTarget, p as directoryInterface, pa as CheckedCallResult, pi as X25519Keypair, pn as ExportStaticHubSchemaOptions, po as UnionSchema, pr as capabilityFreshAt, pt as LinkRpcJsonRpcMessage, q as parseEndpointUri, qa as zodToSvcJsonSchema, qi as StaticInterfaceReference, qn as PrincipalWithStore, qr as LINKRPC_SIGNATURE_KEY, qt as TrafficTransitEndpoint, r as InspectionRegistration, ra as assertSchemaReferences, ri as withSignature, rn as zTopologyLinkEndpoint, ro as IntegerSchema, rr as createManagedIdentity, rt as InterfaceTarget, s as RegisterOptions, sa as isAssignable, si as PRINCIPAL_PREFIX, sn as zTopologyTransportInfo, so as ObjectSchema, sr as AcceptedRootIssuer, st as isInterfaceTarget, t as BareGetOptions, ta as MaterializedJsonSchema, ti as signingDomainValue, tn as zTopologyGraph, to as DiscriminatorSchema, tr as ManagedIdentityStorage, tt as OnChannelConnect, u as RootPrincipalSet, ua as EXTENSION_PREFIX, ui as PublicKey, un as zTrafficTransitEndpoint, uo as SchemaBase, ur as ParamMatchers, ut as MultiplexedTransport, v as createMemoryPrincipal, va as InterfaceInfo, vi as principalForPublicKey, vo as JsonRpcRequest, vr as signCapability, vt as LinkRpcWireParams, w as VerifyResult, wa as StreamApi, wi as IRequestSender, wo as isResponse, wr as SerializedKeypairSigningIdentity, wt as jcsCanonicalize, x as JsonObject, xa as LocalRpcError, xi as Channel, xo as RequestId, xr as KeypairSigningIdentity, xt as ParsedMethodName, y as createSeededMemoryPrincipal, ya as InterfaceMemberRef, yi as publicKeyForKeyId, yo as JsonRpcResponse, yr as Identity, yt as requireObjectParams, z as EndpointCommand, za as PublicApplicationErrorOf, zi as connectTransports, zr as matchParams, zt as TopologyLink } from "./chunks/linkRpcConnection-C_Gs4nZ9.js";
6
6
  //#region src/transport/windowMessageTransport.d.ts
7
7
  /**
8
8
  * Minimal shape of `window` we need. Kept as a structural type so this module
@@ -40,5 +40,5 @@ declare class WindowMessageTransport implements IMessageTransport {
40
40
  dispose(): void;
41
41
  }
42
42
  //#endregion
43
- export { Ability, type AcceptedRootIssuer, ApplicationErrorDescriptor, ApplicationErrorDescriptorBase, ApplicationErrorOf, ApplicationErrorValue, ApplicationErrorsOf, ArraySchema, BareGetOptions, type BareInterfaceTarget, Base64Sha256, BooleanSchema, Call, CallBind, CallMeta, CallTarget, type CancellableRequest, CapBag, CapBagOptions, type CapProvider, type CapProviderResult, Capability, Channel, ChannelConnector, type ChannelTransport, CheckedCall, CheckedCallResult, type CmdEnvEndpoint, type CmdStdioEndpoint, Components, type ConnectableChannel, ConstSchema, CreatedApplicationErrorValue, DEFAULT_RPC_TIMEOUT_MS, DeclaredApplicationErrorOf, DiscriminatorSchema, EXTENSION_PREFIX, type EndpointCommand, EnumSchema, ErrorCode, ErrorSchema, type ExpBackoffOptions, type FormatEndpointOptions, GenerateInterfaceOptions, GetOptions, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, IMessageTransport, type IRequestHandler, type IRequestSender, Identity, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, type IncomingCall, type IncomingStream, InspectionRegistration, IntegerSchema, InterfaceClient, InterfaceDefinition, InterfaceDefinitionOpts, InterfaceHandlers, InterfaceInfo, InterfaceMemberRef, InterfaceMemberRefMap, InterfaceRegistration, type IssueCapabilityOptions, JsonObject, JsonRpcChannel, JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccess, JsonValue, KEY_ID_PREFIX, type KeepConnectedHandle, KeyId, Keypair, KeypairIdentity, KeypairSigningIdentity, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, LinkRpcConnectionOptions, LinkRpcInterfaceSchema, LinkRpcJsonRpcMessage, LinkRpcJsonRpcNotification, LinkRpcJsonRpcRequest, LinkRpcJsonSchema, LinkRpcUnsigned, LinkRpcWireMeta, LinkRpcWireParams, LocalRpcError, ManagedIdentity, ManagedIdentityStorage, ManagedIdentityStorageBackend, type ManagedSigningChannel, MaterializedJsonSchema, MemberAnnotations, MemberDocs, MemberMap, MemberType, type MessageEndpoint, type MessageLikeEvent, MessageTransportDirection, MessageTransportTrace, MessageTransportWithContext, MessageWithContext, type MessageWithCtx, MethodSchema, MultiplexedTransport, MuxEnvelope, NodeInfo, NotificationType, NullSchema, NumberSchema, ObjectSchema, type OnChannelConnect, OneOfSchema, OneShotCapStaging, PRINCIPAL_PREFIX, ParamMatcher, type ParamMatcherFor, type ParamMatchers, ParsedMethodName, ParticipantDescriptor, ParticipantDescriptorSource, Pattern, Permission, type PermitResult, Principal, PrincipalId, PrincipalWithStore, PrivateKey, PublicApplicationErrorOf, PublicKey, PublicSigningIdentity, PublicWrappingIdentity, type RawStreamingCall, RefSchema, RegisterOptions, RemoteRpcError, RequestId, RequestType, ResolveSigningKeyArgs, type ResolvedEndpoint, type Result, RootPrincipalReq, RootPrincipalSet, RouteClaim, RpcError, STREAM_METHOD, Schema, SchemaBase, SchemaToZodContext, SeededPrincipalOptions, type SendOpts, SerializedKeypairSigningIdentity, ServiceHandle, ServiceIdPattern, SignDomain, SignParamsOptions, SignRpcCallOptions, Signature, SignatureEnvelope, Signatures, SignedCapability, SignedRpcCall, type SigningCallCtx, SigningIdentity, SigningSender, type SigningSenderConfig, type SocketEndpoint, StreamApi, StreamCallOptions, StreamControlReason, StreamControlType, StreamDir, type StreamSendOpts, StreamSendParams, StreamingCall, StringSchema, TargetPattern, TopologyGraph, TopologyIdGenerator, TopologyLink, TopologyLinkEndpoint, TopologyNode, TopologyPort, TopologyTransportEndpoint, TopologyTransportInfo, TrafficEvent, TrafficOverflowEvent, TrafficTransitEndpoint, TrafficTransitEvent, TrafficWatchResult, TransportPair, TupleSchema, UnionSchema, VerifyCallOptions, VerifyResult, VerifyRpcCallOptions, VerifyRpcCallResult, WindowMessageTransport, WrappingIdentity, type WsEndpoint, X25519Keypair, ZodToSvcJsonSchemaOptions, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectTransports, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, crypto_d_exports as crypto, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, formatEndpointUri, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, parseEndpointUri, parseMethodName, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, schemaToZod, schemasInterface, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
43
+ export { Ability, type AcceptedRootIssuer, ApplicationErrorDescriptor, ApplicationErrorDescriptorBase, ApplicationErrorOf, ApplicationErrorValue, ApplicationErrorsOf, ArraySchema, BareGetOptions, type BareInterfaceTarget, Base64Sha256, BooleanSchema, Call, CallBind, CallMeta, CallTarget, type CancellableRequest, CapBag, CapBagOptions, type CapProvider, type CapProviderResult, Capability, Channel, ChannelConnector, type ChannelTransport, CheckedCall, CheckedCallResult, type CmdEnvEndpoint, type CmdStdioEndpoint, Components, type ConnectableChannel, ConstSchema, CreatedApplicationErrorValue, DEFAULT_RPC_TIMEOUT_MS, DeclaredApplicationErrorOf, DefaultInterfaceTarget, DiscriminatorSchema, EXTENSION_PREFIX, type EndpointCommand, EnumSchema, ErrorCode, ErrorSchema, type ExpBackoffOptions, ExportStaticHubSchemaOptions, type FormatEndpointOptions, GenerateContractOptions, GenerateInterfaceOptions, GetOptions, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, IMessageTransport, type IRequestHandler, type IRequestSender, Identity, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, type IncomingCall, type IncomingStream, InspectionRegistration, IntegerSchema, InterfaceClient, InterfaceDefinition, InterfaceDefinitionOpts, InterfaceHandlers, InterfaceInfo, InterfaceMemberRef, InterfaceMemberRefMap, InterfaceRef, InterfaceRegistration, InterfaceTarget, type IssueCapabilityOptions, JsonObject, JsonRpcChannel, JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccess, JsonValue, KEY_ID_PREFIX, type KeepConnectedHandle, KeyId, Keypair, KeypairIdentity, KeypairSigningIdentity, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, LinkRpcConnectionOptions, LinkRpcInterfaceSchema, LinkRpcJsonRpcMessage, LinkRpcJsonRpcNotification, LinkRpcJsonRpcRequest, LinkRpcJsonSchema, LinkRpcUnsigned, LinkRpcWireMeta, LinkRpcWireParams, LocalRpcError, ManagedIdentity, ManagedIdentityStorage, ManagedIdentityStorageBackend, type ManagedSigningChannel, MaterializedJsonSchema, MemberAnnotations, MemberDocs, MemberMap, MemberType, type MessageEndpoint, type MessageLikeEvent, MessageTransportDirection, MessageTransportTrace, MessageTransportWithContext, MessageWithContext, type MessageWithCtx, MethodSchema, MultiplexedTransport, MuxEnvelope, NodeInfo, NotificationType, NullSchema, NumberSchema, ObjectSchema, type OnChannelConnect, OneOfSchema, OneShotCapStaging, PRINCIPAL_PREFIX, ParamMatcher, type ParamMatcherFor, type ParamMatchers, ParsedMethodName, ParticipantDescriptor, ParticipantDescriptorSource, Pattern, Permission, type PermitResult, Principal, PrincipalId, PrincipalWithStore, PrivateKey, PublicApplicationErrorOf, PublicKey, PublicSigningIdentity, PublicWrappingIdentity, QualifiedInterfaceTarget, type RawStreamingCall, RefSchema, RegisterOptions, RemoteRpcError, RequestId, RequestType, ResolveSigningKeyArgs, type ResolvedEndpoint, type Result, RootPrincipalReq, RootPrincipalSet, RouteClaim, RpcError, STREAM_METHOD, Schema, SchemaBase, SchemaToZodContext, SeededPrincipalOptions, type SendOpts, SerializedKeypairSigningIdentity, ServiceHandle, ServiceIdPattern, SignDomain, SignParamsOptions, SignRpcCallOptions, Signature, SignatureEnvelope, Signatures, SignedCapability, SignedRpcCall, type SigningCallCtx, SigningIdentity, SigningSender, type SigningSenderConfig, type SocketEndpoint, StaticHubSchema, StaticHubSchemaDocument, StaticInterfaceReference, StaticService, StreamApi, StreamCallOptions, StreamControlReason, StreamControlType, StreamDir, type StreamSendOpts, StreamSendParams, StreamingCall, StringSchema, TargetPattern, TopologyGraph, TopologyIdGenerator, TopologyLink, TopologyLinkEndpoint, TopologyNode, TopologyPort, TopologyTransportEndpoint, TopologyTransportInfo, TrafficEvent, TrafficOverflowEvent, TrafficTransitEndpoint, TrafficTransitEvent, TrafficWatchResult, TransportPair, TupleSchema, UnionSchema, VerifyCallOptions, VerifyResult, VerifyRpcCallOptions, VerifyRpcCallResult, WindowMessageTransport, WrappingIdentity, type WsEndpoint, X25519Keypair, ZodToSvcJsonSchemaOptions, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectTransports, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, crypto_d_exports as crypto, defaultInterfaceTarget, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, exportStaticHubSchema, formatEndpointUri, generateTsContract, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, interfaceTarget, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isInterfaceTarget, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, parseEndpointUri, parseMethodName, parseStaticHubSchema, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, schemaToZod, schemasInterface, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
44
44
  //# sourceMappingURL=web.d.ts.map
package/dist/web.js CHANGED
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { A as EXTENSION_PREFIX, B as requestType, C as defineInterface, D as assertSchemaReferences, E as schemaToZod, F as NotificationType, H as normalizeJsonSchema, I as RequestType, L as applicationError, N as jcsCanonicalize, O as componentSchemaName, P as jcsCanonicalizeBytes, R as isApplicationErrorValue, S as InterfaceDefinition, T as createSchemaToZod, V as zodToSvcJsonSchema, _ as zTrafficEvent, a as topologyInterface, b as zTrafficTransitEvent, c as zParticipantDescriptorSource, d as zTopologyLink, f as zTopologyLinkEndpoint, g as zTopologyTransportInfo, h as zTopologyTransportEndpoint, i as nodeInterface, j as computeInterfaceHash, k as componentSchemaRef, l as zRouteClaim, m as zTopologyPort, o as trafficInterface, p as zTopologyNode, s as zParticipantDescriptor, u as zTopologyGraph, v as zTrafficOverflowEvent, w as interfaceFromSchema, x as zTrafficWatchResult, y as zTrafficTransitEndpoint, z as notificationType } from "./chunks/boundedTrafficSubscription-XZ1KwXZC.js";
6
- import { $t as bareInterfaceTarget, A as attachCapabilities, At as PRINCIPAL_PREFIX, B as LinkRpcConnection, Bt as isRequest, C as identityStorageInterface, Ct as getKeyId, D as PublicWrappingIdentity, Dt as signingInput, E as PublicSigningIdentity, Et as signingDomainValue, Ft as principalForPublicKey, Gt as StreamDir, H as JsonRpcChannel, Ht as STREAM_METHOD, I as formatEndpointUri, It as publicKeyForKeyId, Jt as directoryInterface, Kt as streamInterface, L as isHubEndpoint, Lt as resolveSigningKey, M as verifyRpcCall, Mt as bytesToBase64Url, N as crypto_exports, Nt as keyIdForPrincipal, O as Principal, Ot as withSignature, Pt as keyIdForPublicKey, Qt as generateTsInterface, R as parseEndpointUri, Rt as ErrorCode, S as identityInterface, St as LINKRPC_UNSIGNED_KEY, T as KeypairSigningIdentity, Tt as signedHash, Ut as StreamControlReason, V as ServiceHandle, Vt as isResponse, Wt as StreamControlType, Xt as schemasInterface, Yt as directoryWatchNever, Zt as zServiceIdPattern, _ as InMemoryManagedIdentity, _t as HUBRPC_META_KEY, a as verifyCall, at as TransportPair, b as registerIdentityOnOverlay, bt as LINKRPC_META_KEY, c as invoke, ct as requireObjectParams, d as prefix, dt as parseMethodName, en as materializeJsonSchema, et as DEFAULT_RPC_TIMEOUT_MS, f as signCapability, ft as capabilityPermits, g as createManagedPrincipal, gt as permissionPermits, h as PrincipalWithStore, ht as permissionMatchesTarget, i as signParams, it as MultiplexedTransport, j as signRpcCall, jt as base64UrlToBytes, k as CapBag, kt as KEY_ID_PREFIX, l as issueCapability, lt as stripLinkRpcWireMeta, m as SigningSender, mt as matchParams, n as createSeededMemoryPrincipal, nn as matchesJsonSchema, nt as Channel, o as capBagFreshAt, ot as connectTransports, p as OneShotCapStaging, pt as hasSignedCapabilityShape, qt as defaultsInterface, r as createSeededSigningIdentity, rt as RpcError, s as capabilityFreshAt, st as traceMessageTransport, t as createMemoryPrincipal, tn as isAssignable, tt as withRpcTimeout, u as permits, ut as methodNameToTarget, v as InMemoryManagedIdentityStorage, vt as HUBRPC_SIGNATURE_KEY, w as KeypairIdentity, wt as readSignature, x as registerLazyIdentityOnOverlay, xt as LINKRPC_SIGNATURE_KEY, y as createManagedIdentity, yt as HUBRPC_UNSIGNED_KEY, z as ChannelConnector, zt as isNotification } from "./chunks/src-CAhXne71.js";
5
+ import { $ as jcsCanonicalize, A as PRINCIPAL_PREFIX, B as isRequest, C as zTopologyTransportInfo, D as zTrafficTransitEvent, E as zTrafficTransitEndpoint, F as principalForPublicKey, G as createSchemaToZod, H as InterfaceDefinition, I as publicKeyForKeyId, J as componentSchemaName, K as schemaToZod, L as resolveSigningKey, M as bytesToBase64Url, N as keyIdForPrincipal, O as zTrafficWatchResult, P as keyIdForPublicKey, R as ErrorCode, S as zTopologyTransportEndpoint, T as zTrafficOverflowEvent, U as defineInterface, V as isResponse, W as interfaceFromSchema, X as EXTENSION_PREFIX, Y as componentSchemaRef, Z as computeInterfaceHash, _ as zTopologyGraph, at as notificationType, b as zTopologyNode, c as StreamControlType, ct as normalizeJsonSchema, d as nodeInterface, et as jcsCanonicalizeBytes, f as topologyInterface, g as zRouteClaim, h as zParticipantDescriptorSource, it as isApplicationErrorValue, j as base64UrlToBytes, k as KEY_ID_PREFIX, l as StreamDir, m as zParticipantDescriptor, nt as RequestType, o as STREAM_METHOD, ot as requestType, p as trafficInterface, q as assertSchemaReferences, rt as applicationError, s as StreamControlReason, st as zodToSvcJsonSchema, tt as NotificationType, u as streamInterface, v as zTopologyLink, w as zTrafficEvent, x as zTopologyPort, y as zTopologyLinkEndpoint, z as isNotification } from "./chunks/inspectionHost-BA08eF6h.js";
6
+ import { $ as interfaceTarget, A as attachCapabilities, At as getKeyId, B as MultiplexedTransport, Bt as generateTsInterface, C as identityStorageInterface, Ct as stripLinkRpcWireMeta, D as PublicWrappingIdentity, Dt as LINKRPC_META_KEY, E as PublicSigningIdentity, Et as HUBRPC_UNSIGNED_KEY, Ft as withSignature, G as hasSignedCapabilityShape, H as connectTransports, Ht as materializeJsonSchema, I as formatEndpointUri, It as methodNameToTarget, J as permissionPermits, K as matchParams, L as isHubEndpoint, Lt as parseMethodName, M as verifyRpcCall, Mt as signedHash, N as crypto_exports, Nt as signingDomainValue, O as Principal, Ot as LINKRPC_SIGNATURE_KEY, Pt as signingInput, Q as defaultInterfaceTarget, R as parseEndpointUri, Rt as generateTsContract, S as identityInterface, St as requireObjectParams, T as KeypairSigningIdentity, Tt as HUBRPC_SIGNATURE_KEY, U as traceMessageTransport, Ut as isAssignable, V as TransportPair, Vt as bareInterfaceTarget, W as capabilityPermits, Wt as matchesJsonSchema, X as LinkRpcConnection, Y as exportStaticHubSchema, Z as ServiceHandle, _ as InMemoryManagedIdentity, _t as defaultsInterface, a as verifyCall, b as registerIdentityOnOverlay, bt as schemasInterface, c as invoke, d as prefix, et as isInterfaceTarget, f as signCapability, g as createManagedPrincipal, gt as withRpcTimeout, h as PrincipalWithStore, ht as DEFAULT_RPC_TIMEOUT_MS, i as signParams, j as signRpcCall, jt as readSignature, k as CapBag, kt as LINKRPC_UNSIGNED_KEY, l as issueCapability, m as SigningSender, n as createSeededMemoryPrincipal, nt as Channel, o as capBagFreshAt, p as OneShotCapStaging, q as permissionMatchesTarget, r as createSeededSigningIdentity, rt as RpcError, s as capabilityFreshAt, t as createMemoryPrincipal, tt as JsonRpcChannel, u as permits, v as InMemoryManagedIdentityStorage, vt as directoryInterface, w as KeypairIdentity, wt as HUBRPC_META_KEY, x as registerLazyIdentityOnOverlay, xt as zServiceIdPattern, y as createManagedIdentity, yt as directoryWatchNever, z as ChannelConnector, zt as parseStaticHubSchema } from "./chunks/src-BaCs8mWd.js";
7
7
  //#region src/transport/windowMessageTransport.ts
8
8
  /**
9
9
  * IMessageTransport for two `window`-like endpoints exchanging JSON-RPC
@@ -53,6 +53,6 @@ function isJsonRpcMessage(value) {
53
53
  return typeof value === "object" && value !== null && value.jsonrpc === "2.0";
54
54
  }
55
55
  //#endregion
56
- export { CapBag, Channel, ChannelConnector, DEFAULT_RPC_TIMEOUT_MS, EXTENSION_PREFIX, ErrorCode, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, InterfaceDefinition, JsonRpcChannel, KEY_ID_PREFIX, KeypairIdentity, KeypairSigningIdentity, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, MultiplexedTransport, NotificationType, OneShotCapStaging, PRINCIPAL_PREFIX, Principal, PrincipalWithStore, PublicSigningIdentity, PublicWrappingIdentity, RequestType, RpcError, STREAM_METHOD, ServiceHandle, SigningSender, StreamControlReason, StreamControlType, StreamDir, TransportPair, WindowMessageTransport, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectTransports, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, crypto_exports as crypto, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, formatEndpointUri, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, parseEndpointUri, parseMethodName, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, schemaToZod, schemasInterface, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
56
+ export { CapBag, Channel, ChannelConnector, DEFAULT_RPC_TIMEOUT_MS, EXTENSION_PREFIX, ErrorCode, HUBRPC_META_KEY, HUBRPC_SIGNATURE_KEY, HUBRPC_UNSIGNED_KEY, InMemoryManagedIdentity, InMemoryManagedIdentityStorage, InterfaceDefinition, JsonRpcChannel, KEY_ID_PREFIX, KeypairIdentity, KeypairSigningIdentity, LINKRPC_META_KEY, LINKRPC_SIGNATURE_KEY, LINKRPC_UNSIGNED_KEY, LinkRpcConnection, MultiplexedTransport, NotificationType, OneShotCapStaging, PRINCIPAL_PREFIX, Principal, PrincipalWithStore, PublicSigningIdentity, PublicWrappingIdentity, RequestType, RpcError, STREAM_METHOD, ServiceHandle, SigningSender, StreamControlReason, StreamControlType, StreamDir, TransportPair, WindowMessageTransport, applicationError, assertSchemaReferences, attachCapabilities, bareInterfaceTarget, base64UrlToBytes, bytesToBase64Url, capBagFreshAt, capabilityFreshAt, capabilityPermits, componentSchemaName, componentSchemaRef, computeInterfaceHash, connectTransports, createManagedIdentity, createManagedPrincipal, createMemoryPrincipal, createSchemaToZod, createSeededMemoryPrincipal, createSeededSigningIdentity, crypto_exports as crypto, defaultInterfaceTarget, defaultsInterface, defineInterface, directoryInterface, directoryWatchNever, exportStaticHubSchema, formatEndpointUri, generateTsContract, generateTsInterface, getKeyId, hasSignedCapabilityShape, identityInterface, identityStorageInterface, interfaceFromSchema, interfaceTarget, invoke, isApplicationErrorValue, isAssignable, isHubEndpoint, isInterfaceTarget, isNotification, isRequest, isResponse, issueCapability, jcsCanonicalize, jcsCanonicalizeBytes, keyIdForPrincipal, keyIdForPublicKey, matchParams, matchesJsonSchema, materializeJsonSchema, methodNameToTarget, nodeInterface, normalizeJsonSchema, notificationType, parseEndpointUri, parseMethodName, parseStaticHubSchema, permissionMatchesTarget, permissionPermits, permits, prefix, principalForPublicKey, publicKeyForKeyId, readSignature, registerIdentityOnOverlay, registerLazyIdentityOnOverlay, requestType, requireObjectParams, resolveSigningKey, schemaToZod, schemasInterface, signCapability, signParams, signRpcCall, signedHash, signingDomainValue, signingInput, streamInterface, stripLinkRpcWireMeta, topologyInterface, traceMessageTransport, trafficInterface, verifyCall, verifyRpcCall, withRpcTimeout, withSignature, zParticipantDescriptor, zParticipantDescriptorSource, zRouteClaim, zServiceIdPattern, zTopologyGraph, zTopologyLink, zTopologyLinkEndpoint, zTopologyNode, zTopologyPort, zTopologyTransportEndpoint, zTopologyTransportInfo, zTrafficEvent, zTrafficOverflowEvent, zTrafficTransitEndpoint, zTrafficTransitEvent, zTrafficWatchResult, zodToSvcJsonSchema };
57
57
 
58
58
  //# sourceMappingURL=web.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hediet/linkrpc",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -55,5 +55,10 @@
55
55
  "pack": "pnpm build && pnpm pack",
56
56
  "test": "vitest --run",
57
57
  "test:watch": "vitest"
58
+ },
59
+ "gitHead": "b2c0900b9a4223c06d2d438e7063211950c3b2e8",
60
+ "gitDirty": false,
61
+ "publishConfig": {
62
+ "tag": "latest"
58
63
  }
59
- }
64
+ }