@securitydept/client 0.3.0-beta.6 → 0.3.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{create-99Ksgl_O.mjs → create-i5VyYgN6.mjs} +58 -21
- package/dist/create-i5VyYgN6.mjs.map +1 -0
- package/dist/{handle-TnxwtQ4T.mjs → handle-DwMgqe7R.mjs} +34 -30
- package/dist/handle-DwMgqe7R.mjs.map +1 -0
- package/dist/{index-DmIapvr-.d.mts → index-B9SEJGU2.d.mts} +61 -63
- package/dist/{index-O1A3CdBV.d.mts → index-BjCFWcmV.d.mts} +17 -4
- package/dist/{index-Cg_iY2yY.d.mts → index-CFAJ969E.d.mts} +79 -13
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +94 -95
- package/dist/index.mjs.map +1 -1
- package/dist/{router-DUh3bhLy.mjs → router-at5bTdJQ.mjs} +3 -3
- package/dist/{router-DUh3bhLy.mjs.map → router-at5bTdJQ.mjs.map} +1 -1
- package/dist/rx/index.d.mts +1 -1
- package/dist/rx/index.mjs +1 -1
- package/dist/{rx-B3OU17wu.mjs → rx-DM6Ouv-m.mjs} +21 -7
- package/dist/rx-DM6Ouv-m.mjs.map +1 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/test/index.d.mts +2 -2
- package/dist/test/index.mjs +2 -2
- package/dist/web/index.d.mts +3 -16
- package/dist/web/index.mjs +4 -4
- package/dist/webext/index.d.mts +2 -2
- package/dist/webext/index.mjs +3 -3
- package/package.json +10 -1
- package/dist/create-99Ksgl_O.mjs.map +0 -1
- package/dist/handle-TnxwtQ4T.mjs.map +0 -1
- package/dist/rx-B3OU17wu.mjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as WritableSignalTrait, C as IdleCallbackTrait, Ct as EventStreamTrait, D as ComputedSignalTrait, Dt as InteropObservableTrait, E as TimestampProviderTrait, F as ResourceSnapshot, Ft as SecuritydeptInjector, L as ResourceTrait, O as ReadableSignalTrait, R as ResourceWhenValueOptions, Rt as DisposableTrait, T as TimeTrait, Vt as SYMBOL_DISPOSE, W as CancellationTokenTrait, X as ClientError, an as SecuritydeptInjectorTrait, gt as SpanNodeAttributes, ht as SpanCreateOptions, in as SecuritydeptInjectionToken, it as ErrorPresentationDescriptor, mt as SpanAttributes, on as SecuritydeptProvider, st as ReadErrorPresentationDescriptorOptions, ut as MutableSpanTrait, v as RxEventSubject, vt as SpanTrait, wt as EventSubjectTrait, yt as EventObserverTrait, z as SignalOptions } from "./index-CFAJ969E.mjs";
|
|
2
|
+
import { Queue } from "mnemonist";
|
|
2
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
4
|
//#region src/injection/destroy.d.ts
|
|
4
5
|
declare abstract class SecuritydeptDestroyRef implements DisposableTrait {
|
|
@@ -27,19 +28,6 @@ interface PageLifecycleTrait<TResumeEvent = unknown> {
|
|
|
27
28
|
}
|
|
28
29
|
declare const PAGE_LIFECYCLE_TRAIT_TOKEN: SecuritydeptInjectionToken<PageLifecycleTrait<unknown> | null>;
|
|
29
30
|
//#endregion
|
|
30
|
-
//#region src/errors/error-attributes.d.ts
|
|
31
|
-
interface ErrorSummary {
|
|
32
|
-
errorName: string;
|
|
33
|
-
errorKind?: ClientErrorKind;
|
|
34
|
-
errorCode?: string;
|
|
35
|
-
recovery?: UserRecovery;
|
|
36
|
-
}
|
|
37
|
-
/** Extract secret-safe diagnostic attributes without copying runtime messages. */
|
|
38
|
-
declare function describeError(error: unknown): ErrorSummary;
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/errors/presentation-descriptor.d.ts
|
|
41
|
-
declare function readErrorPresentationDescriptor(error: unknown, options?: ReadErrorPresentationDescriptorOptions): ErrorPresentationDescriptor;
|
|
42
|
-
//#endregion
|
|
43
31
|
//#region src/std/events/from-abort.d.ts
|
|
44
32
|
type AbortSignalStdSource = Pick<AbortSignal, "aborted" | "reason"> & {
|
|
45
33
|
addEventListener?: (type: "abort", listener: EventListener) => void;
|
|
@@ -64,6 +52,17 @@ declare function createEventReplaySubject<T>(bufferSize?: number): EventSubjectT
|
|
|
64
52
|
declare function createEmptyEventStream<T>(): EventStreamTrait<T>;
|
|
65
53
|
declare function createNeverEventStream<T>(): EventStreamTrait<T>;
|
|
66
54
|
//#endregion
|
|
55
|
+
//#region src/events/error.d.ts
|
|
56
|
+
type ClientErrorEvent = {
|
|
57
|
+
readonly error: ClientError;
|
|
58
|
+
} | {
|
|
59
|
+
readonly payload: {
|
|
60
|
+
readonly error: ClientError;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type ExtractClientErrorEvent<TEvent> = Extract<TEvent, ClientErrorEvent>;
|
|
64
|
+
declare function isClientErrorEvent<TEvent>(event: TEvent): event is ExtractClientErrorEvent<TEvent>;
|
|
65
|
+
//#endregion
|
|
67
66
|
//#region src/events/interop.d.ts
|
|
68
67
|
type ToEventStreamInput<T> = InteropObservableTrait<T> | Promise<T> | AsyncIterable<T> | PromiseLike<T> | ArrayLike<T> | Iterable<T> | EventStreamTrait<T> | ReadableSignalTrait<T>;
|
|
69
68
|
declare function toEventStream<T>(input: ToEventStreamInput<T>): EventStreamTrait<T>;
|
|
@@ -659,32 +658,6 @@ interface TakeCompatFragmentFromRouterOptions {
|
|
|
659
658
|
declare function takeCompatFragmentFromRouter(router: RouterTrait, options?: TakeCompatFragmentFromRouterOptions): Promise<CompatFragment | null>;
|
|
660
659
|
declare const ROUTER_TRAIT_TOKEN: SecuritydeptInjectionToken<RouterTrait | null>;
|
|
661
660
|
//#endregion
|
|
662
|
-
//#region src/span/types.d.ts
|
|
663
|
-
interface SpanCreateOptions {
|
|
664
|
-
idFactory?: () => string;
|
|
665
|
-
attributes?: Record<string, unknown>;
|
|
666
|
-
mutable?: false;
|
|
667
|
-
}
|
|
668
|
-
interface MutableSpanCreateOptions extends Omit<SpanCreateOptions, "mutable"> {
|
|
669
|
-
mutable: true;
|
|
670
|
-
}
|
|
671
|
-
interface SpanTrait {
|
|
672
|
-
readonly id: string;
|
|
673
|
-
readonly parent?: SpanTrait;
|
|
674
|
-
readonly attributes: Readonly<Record<string, unknown>>;
|
|
675
|
-
fork(options: MutableSpanCreateOptions): MutableSpanTrait;
|
|
676
|
-
fork(options?: SpanCreateOptions): SpanTrait;
|
|
677
|
-
fork(options?: SpanCreateOptions | MutableSpanCreateOptions): SpanTrait | MutableSpanTrait;
|
|
678
|
-
}
|
|
679
|
-
interface MutableSpanTrait extends SpanTrait {
|
|
680
|
-
setAttributes(attributes: Record<string, unknown>): void;
|
|
681
|
-
}
|
|
682
|
-
declare const SPAN_TRAIT_TOKEN: SecuritydeptInjectionToken<SpanTrait>;
|
|
683
|
-
interface OperationSpanTrait extends MutableSpanTrait {
|
|
684
|
-
addEvent(type: string, attributes?: Record<string, unknown>): void;
|
|
685
|
-
recordError(error: unknown, attributes?: Record<string, unknown>): void;
|
|
686
|
-
}
|
|
687
|
-
//#endregion
|
|
688
661
|
//#region src/validation/validator.d.ts
|
|
689
662
|
/**
|
|
690
663
|
* Successful validation result.
|
|
@@ -916,13 +889,20 @@ declare const OperationTraceEventType: {
|
|
|
916
889
|
readonly Ended: "operation.ended";
|
|
917
890
|
};
|
|
918
891
|
type OperationTraceEventType = (typeof OperationTraceEventType)[keyof typeof OperationTraceEventType];
|
|
892
|
+
declare const TRACING_SPAN_ATTRIBUTE_PROVIDER_ID = "@securitydept/client/tracing";
|
|
893
|
+
interface OperationSpanTrait {
|
|
894
|
+
readonly span: MutableSpanTrait;
|
|
895
|
+
setTraceAttributes(attributes: SpanAttributes): void;
|
|
896
|
+
addEvent(type: string, attributes?: SpanAttributes): void;
|
|
897
|
+
recordError(error: unknown, attributes?: SpanAttributes): void;
|
|
898
|
+
}
|
|
919
899
|
interface TracingEvent {
|
|
920
900
|
name: string;
|
|
921
901
|
at: number;
|
|
922
902
|
span: SpanTrait;
|
|
923
903
|
level: TracingLevel;
|
|
924
904
|
target: string;
|
|
925
|
-
fields?:
|
|
905
|
+
fields?: SpanAttributes;
|
|
926
906
|
}
|
|
927
907
|
interface TracingTrait extends DisposableTrait {
|
|
928
908
|
record(event: TracingEvent): void;
|
|
@@ -1491,6 +1471,14 @@ declare class JwtDecodeError extends ClientError {
|
|
|
1491
1471
|
*/
|
|
1492
1472
|
declare function parseDurationToMs(duration: string): number;
|
|
1493
1473
|
//#endregion
|
|
1474
|
+
//#region src/span/attributes.d.ts
|
|
1475
|
+
declare const SpanSharedAttributeName: {
|
|
1476
|
+
readonly ClientName: "client.name";
|
|
1477
|
+
readonly ClientId: "client.id";
|
|
1478
|
+
readonly OperationName: "operation.name";
|
|
1479
|
+
};
|
|
1480
|
+
type SpanSharedAttributeName = (typeof SpanSharedAttributeName)[keyof typeof SpanSharedAttributeName];
|
|
1481
|
+
//#endregion
|
|
1494
1482
|
//#region src/span/span.d.ts
|
|
1495
1483
|
declare function createRootSpan(options?: SpanCreateOptions & WithTraitInputValidator<TraitInputValidator>): SpanTrait;
|
|
1496
1484
|
//#endregion
|
|
@@ -1591,28 +1579,24 @@ interface RunOperationOptionsBase extends RunOperationEnvironment {
|
|
|
1591
1579
|
span: SpanTrait;
|
|
1592
1580
|
name: string;
|
|
1593
1581
|
target: string;
|
|
1594
|
-
|
|
1582
|
+
traceAttributes?: SpanAttributes;
|
|
1595
1583
|
idFactory?: () => string;
|
|
1596
|
-
|
|
1584
|
+
clientErrorFromUnknown?: (error: unknown, options: {
|
|
1585
|
+
span: SpanTrait;
|
|
1586
|
+
}) => ClientError;
|
|
1597
1587
|
}
|
|
1598
1588
|
interface RunOperationOptions<T> extends RunOperationOptionsBase {
|
|
1599
1589
|
execute: (span: OperationSpanTrait) => T;
|
|
1600
1590
|
}
|
|
1601
1591
|
declare class OperationSpan implements OperationSpanTrait {
|
|
1602
|
-
|
|
1592
|
+
readonly span: MutableSpanTrait;
|
|
1603
1593
|
private readonly _environment;
|
|
1604
|
-
private readonly _name;
|
|
1605
1594
|
private readonly _target;
|
|
1606
1595
|
private constructor();
|
|
1607
1596
|
static start(options: RunOperationOptionsBase): OperationSpan;
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
fork(options: MutableSpanCreateOptions): MutableSpanTrait;
|
|
1612
|
-
fork(options?: SpanCreateOptions): SpanTrait;
|
|
1613
|
-
setAttributes(attributes: Record<string, unknown>): void;
|
|
1614
|
-
addEvent(name: string, fields?: Record<string, unknown>): void;
|
|
1615
|
-
recordError(error: unknown, fields?: Record<string, unknown>): void;
|
|
1597
|
+
setTraceAttributes(attributes: SpanAttributes): void;
|
|
1598
|
+
addEvent(name: string, fields?: SpanAttributes): void;
|
|
1599
|
+
recordError(error: unknown, fields?: SpanAttributes): void;
|
|
1616
1600
|
recordStarted(): void;
|
|
1617
1601
|
recordEnded(outcome: "succeeded" | "failed"): void;
|
|
1618
1602
|
private _record;
|
|
@@ -1637,25 +1621,39 @@ type DefineInstrumentMethodDecoratorFactory<TFactoryArgs extends unknown[], TBas
|
|
|
1637
1621
|
declare function defineInstrumentMethodDecorator<TFactoryArgs extends unknown[], TBaseThis extends object = object>(factory: DefineInstrumentMethodDecoratorFactory<TFactoryArgs, TBaseThis>): (...factoryArgs: TFactoryArgs) => <TThis extends TBaseThis, TArgs extends unknown[], TReturn>(target: (this: TThis, ...args: TArgs) => TReturn, context: ClassMethodDecoratorContext<TThis, (this: TThis, ...args: TArgs) => TReturn>) => (this: TThis, ...args: TArgs) => TReturn;
|
|
1638
1622
|
//#endregion
|
|
1639
1623
|
//#region src/tracing/subscriber/console.d.ts
|
|
1640
|
-
declare
|
|
1624
|
+
declare class ConsoleTracingSubscriber implements TracingSubscriberTrait {
|
|
1625
|
+
record(event: TracingEvent): void;
|
|
1626
|
+
}
|
|
1627
|
+
declare function createConsoleTracingSubscriber(): ConsoleTracingSubscriber;
|
|
1641
1628
|
//#endregion
|
|
1642
1629
|
//#region src/tracing/subscriber/timeline-store.d.ts
|
|
1643
|
-
interface TraceTimelineEntry extends TracingEvent {
|
|
1630
|
+
interface TraceTimelineEntry extends Omit<TracingEvent, "span"> {
|
|
1644
1631
|
id: number;
|
|
1645
1632
|
recordedAtIso: string;
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1633
|
+
span: {
|
|
1634
|
+
readonly id: string;
|
|
1635
|
+
readonly parentId?: string;
|
|
1636
|
+
};
|
|
1637
|
+
spanAttributes: readonly SpanNodeAttributes[];
|
|
1651
1638
|
}
|
|
1652
1639
|
/**
|
|
1653
|
-
*
|
|
1640
|
+
* Bounded subscriber-side trace timeline.
|
|
1654
1641
|
*
|
|
1655
1642
|
* This store consumes tracing events through `record(event)` and keeps a
|
|
1656
1643
|
* bounded local timeline for tests and UI surfaces. It is not the tracing
|
|
1657
1644
|
* runtime itself.
|
|
1658
1645
|
*/
|
|
1646
|
+
declare class TraceTimelineStore implements TracingSubscriberTrait {
|
|
1647
|
+
protected readonly limit: number;
|
|
1648
|
+
protected nextId: number;
|
|
1649
|
+
protected readonly timeline: Queue<TraceTimelineEntry>;
|
|
1650
|
+
protected readonly latestEntrySubject: RxEventSubject<TraceTimelineEntry | null>;
|
|
1651
|
+
constructor(limit?: number);
|
|
1652
|
+
get latestEntry(): EventStreamTrait<TraceTimelineEntry | null>;
|
|
1653
|
+
get entries(): readonly TraceTimelineEntry[];
|
|
1654
|
+
record(event: TracingEvent): void;
|
|
1655
|
+
clear(): void;
|
|
1656
|
+
}
|
|
1659
1657
|
declare function createTraceTimelineStore(limit?: number): TraceTimelineStore;
|
|
1660
1658
|
//#endregion
|
|
1661
1659
|
//#region src/transport/url.d.ts
|
|
@@ -1665,5 +1663,5 @@ declare function createTraceTimelineStore(limit?: number): TraceTimelineStore;
|
|
|
1665
1663
|
*/
|
|
1666
1664
|
declare function isLoopbackHttpUrl(url: URL): boolean;
|
|
1667
1665
|
//#endregion
|
|
1668
|
-
export {
|
|
1669
|
-
//# sourceMappingURL=index-
|
|
1666
|
+
export { RequirementPlan as $, appendOrReplaceCompatFragment as $n, createJsonRpcServerAndClient as $r, Codec as $t, abortSignalToCancellationToken as A, Base64CompatErrorCode as Ai, ValidationResult as An, readPopupErrorPresentationDescriptor as Ar, SelectCandidate as At, JwtAudienceClaim as B, RouterNavigationMode as Bn, ResourceSnapshotUpdateKind as Br, EnvironmentValidators as Bt, OnceAsyncLockState as C, createEventStream as Ci, CreateAuthorizationInterceptedFetchOptions as Cn, PopupAttachResult as Cr, RequirementResolution as Ct, createJsonCodec as D, PAGE_LIFECYCLE_TRAIT_TOKEN as Di, TraitInputValidator as Dn, CreatePopupClientSessionOptions as Dr, RouteRequirementsDeclaration as Dt, createInMemoryRecordStore as E, abortSignalToEventStream as Ei, createTimeForStd as En, PopupTrait as Er, RouteBehaviourContextExtra as Et, parseDurationToMs as F, validateTraitInput as Fn, PopupServerWindowHandleTrait as Fr, isRouteStateSnapshotTrait as Ft, parseIdentityPrincipalWire as G, AppendOrReplaceCompatFragmentOptions as Gn, ResourceStreamContext as Gr, TracingSubscriberTrait as Gt, IdentityPrincipalSchema as H, RouterTrait as Hn, reduceResourceSnapshot as Hr, ServiceWorkerEnvironment as Ht, JwtDecodeError as I, validateWithSchema as In, PopupWindowHandleTrait as Ir, resolveEffectiveRequirements as It, ProjectIdentityPrincipalOptions as J, CompatFragmentParameters as Jn, ResourceErrorCode as Jr, TRACING_SPAN_ATTRIBUTE_PROVIDER_ID as Jt, projectIdentityPrincipal as K, AppendOrReplaceCompatFragmentResult as Kn, createResource as Kr, OperationSpanTrait as Kt, JwtDecodeErrorCode as L, validateWithSchemaSync as Ln, createSignal as Lr, CreateFoundationEnvironmentOptions as Lt, normalizeAbortError as M, encodeUint8ArrayToBase64 as Mi, WithTraitInputValidator as Mn, PopupClientWindowHandleTrait as Mr, StaticAttrsAuthRequirementInput as Mt, createRootSpan as N, SecuritydeptDestroyRef as Ni, formatValidationFailure as Nn, PopupMessageChannelTrait as Nr, UnauthenticatedAction as Nt, createEphemeralFlowStore as O, PageLifecycleTrait as Oi, ValidateTraitInputOptions as On, CreatePopupServerSessionOptions as Or, RouteStateSnapshotTrait as Ot, SpanSharedAttributeName as P, createSecuritydeptDestroyRef as Pi, throwValidationClientError as Pn, PopupServerWindowHandle as Pr, isRouteBehaviourContextExtra as Pt, BaseRequirementPlanner as Q, UpdateUriFragmentHash as Qn, createJsonRpcServer as Qr, TracingTrait as Qt, decodeJwtPayload as R, ROUTER_TRAIT_TOKEN as Rn, readonlySignal as Rr, createFoundationEnvironment as Rt, OnceAsyncLockRunning as S, createEventReplaySubject as Si, AuthorizationSignal as Sn, PopupAttachFailureReason as Sr, RequirementPlannerError as St, createOnceAsyncLockCallable as T, createNeverEventStream as Ti, TimeForStdCreateOptions as Tn, PopupOpenOptions as Tr, ResolutionStatus as Tt, IdentityPrincipalWireSchema as U, TakeCompatFragmentFromRouterOptions as Un, whenResourceSnapshotValue as Ur, TracingCreateOptions as Ut, JwtClaimsSet as V, RouterNavigationRequest as Vn, flattenResourceSnapshot as Vr, FoundationEnvironment as Vt, parseIdentityPrincipal as W, takeCompatFragmentFromRouter as Wn, CreateResourceOptions as Wr, createTracing as Wt, RouteCompositionRequirementPlanner as X, TakeCompatFragmentOptions as Xn, createComputed as Xr, TracingEvent as Xt, StaticRequirementPlanner as Y, SECURITYDEPT_COMPAT_FRAGMENT_VERSION as Yn, ResourceValueUnavailableErrorOptions as Yr, TRACING_TRAIT_TOKEN as Yt, MergeRequirementPlanner as Z, TakeCompatFragmentResult as Zn, createJsonRpcClient as Zr, TracingLevel as Zt, runOperation as _, toEventStream as _i, HttpResponse as _n, UriReferenceStringSchema as _r, RequirementBehaviour as _t, ConsoleTracingSubscriber as a, JsonRpcErrorResponseMessage as ai, RecoverableStateStore as an, UriReferenceString as ar, RequirementPlannerHostOptions as at, OnceAsyncLockError as b, isClientErrorEvent as bi, TransportErrorCode as bn, POPUP_TRAIT_TOKEN as br, RequirementCandidateGenerator as bt, DefineInstrumentMethodDecoratorFactory as c, JsonRpcNotificationEvent as ci, StorageChangeEventOrigin as cn, UriRelativeParts as cr, provideRequirementPlannerHost as ct, InstrumentMethodThisResolver as d, JsonRpcRequestMessage as di, SyncStorageTrait as dn, UriString as dr, CheckAuthenticated as dt, CreateJsonRpcClientOptions as ei, EphemeralFlowStore as en, isCompatFragmentBlock as er, InjectRequirementPlannerHostOptions as et, defineInstrumentMethodDecorator as f, JsonRpcRequestOptions as fi, BaseTransportForStdFetchCreateOptions as fn, SECURITYDEPT_ROUTE_METADATA_KEY as fr, OnUnauthenticated as ft, RunOperationOptionsBase as g, ToEventStreamInput as gi, HttpRequest as gn, BaseURIStringSchema as gr, PlanStatus as gt, RunOperationOptions as h, JsonRpcSuccessResponseMessage as hi, BaseTransportTrait as hn, writeSecuritydeptRouteMetadata as hr, PipelineStepResult as ht, createTraceTimelineStore as i, JsonRpcErrorPayload as ii, REALM_STORAGE_TRAIT_TOKEN as in, UriParseError as ir, RequirementPlannerHostBehaviour as it, cancellationTokenToAbortSignal as j, decodeBase64ToUint8Array as ji, ValidationSuccess as jn, PopupClientWindowHandle as jr, StaticAttrsAuthRequirement as jt, createKeyedEphemeralFlowStore as k, promisesToRacedAsyncGenerator as ki, ValidationFailure as kn, PopupErrorCode as kr, RouteTreeSegment as kt, InstrumentMethodResolvedOptions as l, JsonRpcNotificationMessage as li, StorageTrait as ln, UriRelativeString as lr, AuthRequirement as lt, RunOperationEnvironment as m, JsonRpcServerTrait as mi, createBaseTransportForStdFetch as mn, readSecuritydeptRouteMetadata as mr, PipelineRunResult as mt, TraceTimelineEntry as n, CreateJsonRpcServerOptions as ni, PERSISTENT_STORAGE_TRAIT_TOKEN as nn, takeCompatFragment as nr, REQUIREMENT_PLANNER_HOST as nt, createConsoleTracingSubscriber as o, JsonRpcId as oi, SESSION_STORAGE_TRAIT_TOKEN as on, UriReferenceStringInput as or, defaultSelectCandidate as ot, OperationSpan as p, JsonRpcServerAndClientTrait as pi, FetchTransportRedirectKind as pn, SecuritydeptRouteMetadata as pr, PipelineOutcome as pt, IdentityPrincipal as q, CompatFragment as qn, ResourceError as qr, OperationTraceEventType as qt, TraceTimelineStore as r, JsonRpcClientTrait as ri, PersistentAuthStore as rn, UriFragmentPart as rr, RequirementPlannerHost as rt, DefineInstrumentMethodDecoratorContext as s, JsonRpcMessage as si, StorageChangeEvent as sn, UriReferenceStringLike as sr, injectRequirementPlannerHost as st, isLoopbackHttpUrl as t, CreateJsonRpcServerAndClientOptions as ti, KeyedEphemeralFlowStore as tn, parseCompatFragment as tr, ProvideRequirementPlannerHostOptions as tt, InstrumentMethodThisContext as u, JsonRpcRequestEvent as ui, StoredEnvelope as un, UriSearchParamsInit as ur, AuthenticatedCheck as ut, OnceAsyncLock as v, ClientErrorEvent as vi, HttpResponseJsonBody as vn, UriRelativeStringSchema as vr, RequirementBehaviourContext as vt, OnceAsyncLockSuccess as w, createEventSubject as wi, createAuthorizationInterceptedFetch as wn, PopupAttachSuccess as wr, RequirementsComposition as wt, OnceAsyncLockInit as x, createEmptyEventStream as xi, AuthorizationInterceptedFetchPredicate as xn, PopupAttachFailure as xr, RequirementCandidateSelectionContext as xt, OnceAsyncLockCallable as y, ExtractClientErrorEvent as yi, TRANSPORT_TRAIT_TOKEN as yn, UriStringSchema as yr, RequirementBehaviourWithRouteContext as yt, DecodeJwtPayloadOptions as z, RouterNavigationIntent as zn, ResourceSnapshotUpdate as zr, ENVIRONMENT_TOKEN as zt };
|
|
1667
|
+
//# sourceMappingURL=index-B9SEJGU2.d.mts.map
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Ct as EventStreamTrait } from "./index-CFAJ969E.mjs";
|
|
2
|
+
import { Bt as EnvironmentValidators, Hn as RouterTrait, Mn as WithTraitInputValidator, Oi as PageLifecycleTrait, Vn as RouterNavigationRequest, ar as UriReferenceString } from "./index-B9SEJGU2.mjs";
|
|
3
|
+
//#region src/web/events/from-storage.d.ts
|
|
4
|
+
interface StorageEventTarget {
|
|
5
|
+
addEventListener(type: "storage", listener: EventListener): void;
|
|
6
|
+
removeEventListener(type: "storage", listener: EventListener): void;
|
|
7
|
+
}
|
|
8
|
+
interface FromStorageEventOptions {
|
|
9
|
+
storageEventTarget: StorageEventTarget;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Adapt browser `storage` events into an event stream.
|
|
13
|
+
*/
|
|
14
|
+
declare function fromStorageEvent(options: FromStorageEventOptions): EventStreamTrait<StorageEvent>;
|
|
15
|
+
//#endregion
|
|
3
16
|
//#region src/web/events/page-resume.d.ts
|
|
4
17
|
declare const PageResumeTriggerKind: {
|
|
5
18
|
readonly Visibility: "visibility";
|
|
@@ -115,5 +128,5 @@ declare class WebLegacyRouter extends NativeWebRouterBase {
|
|
|
115
128
|
navigate(request: RouterNavigationRequest): Promise<void>;
|
|
116
129
|
}
|
|
117
130
|
//#endregion
|
|
118
|
-
export { createPageResumeSource as _, NativeWebWindowLike as a, WebNavigationRouter as c, createPageLifecycleForNativeWeb as d, CreatePageResumeSourceOptions as f, PageResumeWindowTarget as g, PageResumeTriggerKind as h, NativeWebRouter as i, createRouterForNativeWeb as l, PageResumeEvent as m, NativeWebLocationLike as n, RouterForNativeWebCreateOptions as o, PageResumeDocumentTarget as p, NativeWebNavigationLike as r, WebLegacyRouter as s, NativeWebHistoryLike as t, PageLifecycleForNativeWebCreateOptions as u };
|
|
119
|
-
//# sourceMappingURL=index-
|
|
131
|
+
export { createPageResumeSource as _, NativeWebWindowLike as a, fromStorageEvent as b, WebNavigationRouter as c, createPageLifecycleForNativeWeb as d, CreatePageResumeSourceOptions as f, PageResumeWindowTarget as g, PageResumeTriggerKind as h, NativeWebRouter as i, createRouterForNativeWeb as l, PageResumeEvent as m, NativeWebLocationLike as n, RouterForNativeWebCreateOptions as o, PageResumeDocumentTarget as p, NativeWebNavigationLike as r, WebLegacyRouter as s, NativeWebHistoryLike as t, PageLifecycleForNativeWebCreateOptions as u, FromStorageEventOptions as v, StorageEventTarget as y };
|
|
132
|
+
//# sourceMappingURL=index-BjCFWcmV.d.mts.map
|
|
@@ -182,7 +182,52 @@ interface RuntimeEventEnvelope<TType extends string, TPayload> {
|
|
|
182
182
|
}
|
|
183
183
|
type EventOperatorFunction<T, R> = (stream: EventStreamTrait<T>) => EventStreamTrait<R>;
|
|
184
184
|
//#endregion
|
|
185
|
+
//#region src/span/types.d.ts
|
|
186
|
+
interface SpanCreateOptions {
|
|
187
|
+
idFactory?: () => string;
|
|
188
|
+
attributes?: SpanAttributes;
|
|
189
|
+
mutable?: false;
|
|
190
|
+
}
|
|
191
|
+
type SpanAttributeValue = string | number | boolean | null | readonly SpanAttributeValue[] | {
|
|
192
|
+
readonly [name: string]: SpanAttributeValue;
|
|
193
|
+
};
|
|
194
|
+
type SpanAttributes = Readonly<Record<string, SpanAttributeValue>>;
|
|
195
|
+
interface SpanAttributeReadOptions {
|
|
196
|
+
providerId: string;
|
|
197
|
+
withShared?: boolean;
|
|
198
|
+
}
|
|
199
|
+
interface SpanPathOptions {
|
|
200
|
+
skipSelf?: boolean;
|
|
201
|
+
}
|
|
202
|
+
interface SpanNodeAttributes {
|
|
203
|
+
readonly spanId: string;
|
|
204
|
+
readonly parentSpanId?: string;
|
|
205
|
+
readonly attributes: SpanAttributes;
|
|
206
|
+
}
|
|
207
|
+
interface MutableSpanCreateOptions extends Omit<SpanCreateOptions, "mutable"> {
|
|
208
|
+
mutable: true;
|
|
209
|
+
}
|
|
210
|
+
interface SpanTrait {
|
|
211
|
+
readonly id: string;
|
|
212
|
+
readonly parent?: SpanTrait;
|
|
213
|
+
getAttributes(options?: SpanAttributeReadOptions): SpanAttributes;
|
|
214
|
+
getRootToNodePath(options?: SpanPathOptions): readonly SpanTrait[];
|
|
215
|
+
getRootToNodeAttributes(options?: SpanPathOptions & {
|
|
216
|
+
providerId?: string;
|
|
217
|
+
}): readonly SpanNodeAttributes[];
|
|
218
|
+
fork(options: MutableSpanCreateOptions): MutableSpanTrait;
|
|
219
|
+
fork(options?: SpanCreateOptions): SpanTrait;
|
|
220
|
+
fork(options?: SpanCreateOptions | MutableSpanCreateOptions): SpanTrait | MutableSpanTrait;
|
|
221
|
+
}
|
|
222
|
+
interface MutableSpanTrait extends SpanTrait {
|
|
223
|
+
setAttributes(attributes: SpanAttributes, options?: {
|
|
224
|
+
providerId?: string;
|
|
225
|
+
}): void;
|
|
226
|
+
}
|
|
227
|
+
declare const SPAN_TRAIT_TOKEN: SecuritydeptInjectionToken<SpanTrait>;
|
|
228
|
+
//#endregion
|
|
185
229
|
//#region src/errors/types.d.ts
|
|
230
|
+
type ClientErrorSpanContext = readonly SpanNodeAttributes[];
|
|
186
231
|
/** Recovery actions the user might take. Aligned with server-side `UserRecovery`. */
|
|
187
232
|
declare const UserRecovery: {
|
|
188
233
|
readonly None: "none";
|
|
@@ -192,8 +237,8 @@ declare const UserRecovery: {
|
|
|
192
237
|
readonly ContactSupport: "contact_support";
|
|
193
238
|
};
|
|
194
239
|
type UserRecovery = (typeof UserRecovery)[keyof typeof UserRecovery];
|
|
195
|
-
/**
|
|
196
|
-
interface
|
|
240
|
+
/** Safe user-facing presentation supplied by a server error response. */
|
|
241
|
+
interface ServerErrorPresentation {
|
|
197
242
|
code: string;
|
|
198
243
|
message: string;
|
|
199
244
|
recovery: UserRecovery;
|
|
@@ -204,30 +249,29 @@ declare const ErrorPresentationTone: {
|
|
|
204
249
|
readonly Danger: "danger";
|
|
205
250
|
};
|
|
206
251
|
type ErrorPresentationTone = (typeof ErrorPresentationTone)[keyof typeof ErrorPresentationTone];
|
|
207
|
-
interface
|
|
252
|
+
interface ErrorRecoveryActionDescriptor {
|
|
208
253
|
recovery: UserRecovery;
|
|
209
254
|
label: string;
|
|
210
255
|
href: string | null;
|
|
211
256
|
}
|
|
212
257
|
interface ErrorPresentationDescriptor {
|
|
213
258
|
code: string | null;
|
|
214
|
-
kind: ClientErrorKind | null;
|
|
215
|
-
source?: string;
|
|
216
259
|
title: string;
|
|
217
260
|
description: string;
|
|
218
261
|
recovery: UserRecovery;
|
|
219
|
-
retryable: boolean;
|
|
220
262
|
tone: ErrorPresentationTone;
|
|
221
|
-
primaryAction:
|
|
263
|
+
primaryAction: ErrorRecoveryActionDescriptor | null;
|
|
222
264
|
}
|
|
223
265
|
interface ReadErrorPresentationDescriptorOptions {
|
|
224
266
|
fallbackTitle?: string;
|
|
225
267
|
fallbackDescription?: string;
|
|
226
|
-
codePresentations?: Readonly<Record<string,
|
|
268
|
+
codePresentations?: Readonly<Record<string, ErrorCodePresentation>>;
|
|
227
269
|
recoveryLinks?: Partial<Record<UserRecovery, string>>;
|
|
228
270
|
recoveryLabels?: Partial<Record<UserRecovery, string>>;
|
|
271
|
+
contextFormatter?: ClientErrorContextFormatter | null;
|
|
229
272
|
}
|
|
230
|
-
|
|
273
|
+
type ClientErrorContextFormatter = (context: ClientErrorSpanContext) => string | undefined;
|
|
274
|
+
interface ErrorCodePresentation {
|
|
231
275
|
title: string;
|
|
232
276
|
description: string;
|
|
233
277
|
tone?: ErrorPresentationTone;
|
|
@@ -257,15 +301,18 @@ declare const ClientErrorSource: {
|
|
|
257
301
|
type ClientErrorSource = (typeof ClientErrorSource)[keyof typeof ClientErrorSource];
|
|
258
302
|
//#endregion
|
|
259
303
|
//#region src/errors/client-error.d.ts
|
|
304
|
+
declare const CLIENT_ERROR_SPAN_ATTRIBUTE_PROVIDER_ID = "@securitydept/client/error";
|
|
260
305
|
interface ClientErrorFromUnknownOptions {
|
|
261
306
|
message: string;
|
|
262
307
|
code: string;
|
|
263
308
|
source: string;
|
|
309
|
+
span?: SpanTrait;
|
|
264
310
|
}
|
|
265
311
|
interface ClientErrorFromHttpResponseOptions {
|
|
266
312
|
status: number;
|
|
267
313
|
body?: unknown;
|
|
268
314
|
source?: string;
|
|
315
|
+
span?: SpanTrait;
|
|
269
316
|
}
|
|
270
317
|
/**
|
|
271
318
|
* Base client error carrying both machine-facing context and an optional
|
|
@@ -275,6 +322,7 @@ interface ClientErrorFromHttpResponseOptions {
|
|
|
275
322
|
* policy decisions without requiring callers to unwrap `presentation`.
|
|
276
323
|
*/
|
|
277
324
|
declare class ClientError extends Error {
|
|
325
|
+
private _spanContext;
|
|
278
326
|
readonly kind: ClientErrorKind;
|
|
279
327
|
/**
|
|
280
328
|
* Stable machine-readable error code.
|
|
@@ -287,19 +335,22 @@ declare class ClientError extends Error {
|
|
|
287
335
|
/** Whether this error is safe to retry. */
|
|
288
336
|
readonly retryable: boolean;
|
|
289
337
|
/** Structured user-facing error presentation from the server. */
|
|
290
|
-
readonly presentation?:
|
|
338
|
+
readonly presentation?: ServerErrorPresentation;
|
|
291
339
|
/** Source subsystem or component that produced the error. */
|
|
292
340
|
readonly source?: string;
|
|
341
|
+
get spanContext(): ClientErrorSpanContext | undefined;
|
|
293
342
|
constructor(options: {
|
|
294
343
|
kind: ClientErrorKind;
|
|
295
344
|
message: string;
|
|
296
345
|
code?: string;
|
|
297
346
|
recovery?: UserRecovery;
|
|
298
347
|
retryable?: boolean;
|
|
299
|
-
presentation?:
|
|
348
|
+
presentation?: ServerErrorPresentation;
|
|
300
349
|
source?: string;
|
|
301
350
|
cause?: unknown;
|
|
351
|
+
span?: SpanTrait;
|
|
302
352
|
});
|
|
353
|
+
captureSpanContext(span: SpanTrait): this;
|
|
303
354
|
/** Create a `ClientError` from a server error response body. */
|
|
304
355
|
static fromServerError(body: {
|
|
305
356
|
kind?: string;
|
|
@@ -314,6 +365,7 @@ declare class ClientError extends Error {
|
|
|
314
365
|
}, overrides?: {
|
|
315
366
|
kind?: ClientErrorKind;
|
|
316
367
|
source?: string;
|
|
368
|
+
span?: SpanTrait;
|
|
317
369
|
}): ClientError;
|
|
318
370
|
static fromUnknown(error: unknown, options: ClientErrorFromUnknownOptions): ClientError;
|
|
319
371
|
/**
|
|
@@ -323,6 +375,20 @@ declare class ClientError extends Error {
|
|
|
323
375
|
static fromHttpResponse(options: ClientErrorFromHttpResponseOptions): ClientError;
|
|
324
376
|
}
|
|
325
377
|
//#endregion
|
|
378
|
+
//#region src/errors/error-attributes.d.ts
|
|
379
|
+
interface ErrorSummary {
|
|
380
|
+
errorName: string;
|
|
381
|
+
errorKind?: ClientErrorKind;
|
|
382
|
+
errorCode?: string;
|
|
383
|
+
recovery?: UserRecovery;
|
|
384
|
+
}
|
|
385
|
+
/** Extract secret-safe diagnostic attributes without copying runtime messages. */
|
|
386
|
+
declare function describeError(error: unknown): ErrorSummary;
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/errors/presentation-descriptor.d.ts
|
|
389
|
+
declare const formatClientErrorContext: ClientErrorContextFormatter;
|
|
390
|
+
declare function readErrorPresentationDescriptor(error: unknown, options?: ReadErrorPresentationDescriptorOptions): ErrorPresentationDescriptor;
|
|
391
|
+
//#endregion
|
|
326
392
|
//#region src/cancellation/types.d.ts
|
|
327
393
|
/** Cancelable operation handle. */
|
|
328
394
|
interface CancelableHandle {
|
|
@@ -604,5 +670,5 @@ declare function resourceFromSnapshots<T>(source: () => ResourceSnapshot<T>): Wi
|
|
|
604
670
|
declare function mapResource<T, U>(source: ResourceTrait<T>, mapValue: (value: T) => U): WithInteropObservableTraitCompat<ResourceTrait<U>, ResourceSnapshot<U>>;
|
|
605
671
|
declare function rxResource<T, R = undefined>(options: RxResourceOptions<T, R>): WithInteropObservableTraitCompat<ResourceTrait<T>, ResourceSnapshot<T>>;
|
|
606
672
|
//#endregion
|
|
607
|
-
export {
|
|
608
|
-
//# sourceMappingURL=index-
|
|
673
|
+
export { ClientErrorContextFormatter as $, SecuritydeptClassProvider as $t, ResourceIdleSnapshot as A, SubscribableTrait as At, WritableSignalTrait as B, SYMBOL_DISPOSABLE_STACK as Bt, IdleCallbackTrait as C, EventStreamTrait as Ct, ComputedSignalTrait as D, InteropObservableTrait as Dt, TimestampProviderTrait as E, RuntimeEventEnvelope as Et, ResourceSnapshot as F, SecuritydeptInjector as Ft, formatClientErrorContext as G, injectDisposableStackFrom as Gt, CancellationTokenOptions as H, SimpleDisposableStack as Ht, ResourceStatus as I, AsyncDisposableTrait as It, describeError as J, inject$1 as Jt, readErrorPresentationDescriptor as K, withDisposableStack as Kt, ResourceTrait as L, DisposableStackTrait as Lt, ResourceLoadingSnapshot as M, WithInteropObservableTraitCompat as Mt, ResourceReloadingSnapshot as N, isInteropObservableTrait as Nt, ReadableSignalTrait as O, ObserverTrait as Ot, ResourceResolvedSnapshot as P, INJECTOR_TOKEN as Pt, ClientErrorFromUnknownOptions as Q, SecuritydeptAbstractType as Qt, ResourceWhenValueOptions as R, DisposableTrait as Rt, IDLE_CALLBACK_TRAIT_TOKEN as S, EventSourceKind as St, TimeTrait as T, EventSubscriptionTrait as Tt, CancellationTokenSourceTrait as U, StdDisposableStack as Ut, CancelableHandle as V, SYMBOL_DISPOSE as Vt, CancellationTokenTrait as W, createDisposableStack as Wt, ClientError as X, tryInjectInInjectionContext as Xt, CLIENT_ERROR_SPAN_ATTRIBUTE_PROVIDER_ID as Y, runInInjectionContext$1 as Yt, ClientErrorFromHttpResponseOptions as Z, SecurityDeptOptional as Zt, RxEventStream as _, SpanPathOptions as _t, resourceFromSnapshots as a, SecuritydeptInjectorTrait as an, ErrorPresentationTone as at, createCancellationTokenSource as b, EventOperatorFunction as bt, RxComputedSignalCompat as c, SecuritydeptValueProvider as cn, ServerErrorPresentation as ct, RxSignalWatchCanceller as d, getSecuritydeptProviderToken as dn, SPAN_TRAIT_TOKEN as dt, SecuritydeptDependencyDescriptor as en, ClientErrorKind as et, RxSignalWatchOptions as f, notMissingProvider as fn, SpanAttributeReadOptions as ft, RxEventReplaySubject as g, SpanNodeAttributes as gt, RxStateSignalCompat as h, SpanCreateOptions as ht, mapResource as i, SecuritydeptInjectionToken as in, ErrorPresentationDescriptor as it, ResourceLoadingErrorSnapshot as j, SubscriptionTrait as jt, ResourceErrorSnapshot as k, SYMBOL_OBSERVABLE as kt, RxSignalDirtyEvent as l, WithTraitDeps as ln, UserRecovery as lt, RxStateSignal as m, SpanAttributes as mt, RxResourceOptions as n, SecuritydeptExistingProvider as nn, ClientErrorSpanContext as nt, rxResource as o, SecuritydeptProvider as on, ErrorRecoveryActionDescriptor as ot, RxSignalWatchScheduler as p, SpanAttributeValue as pt, ErrorSummary as q, SecuritydeptInjectOptions as qt, RxResourceStreamContext as r, SecuritydeptFactoryProvider as rn, ErrorCodePresentation as rt, RxComputedSignal as s, SecuritydeptTypeProvider as sn, ReadErrorPresentationDescriptorOptions as st, RxResource as t, SecuritydeptDependencyToken as tn, ClientErrorSource as tt, RxSignalOptions as u, createProviderIfTokenMissing as un, MutableSpanTrait as ut, RxEventSubject as v, SpanTrait as vt, TIME_TRAIT_TOKEN as w, EventSubjectTrait as wt, isCancellationTokenTrait as x, EventSource as xt, createLinkedCancellationToken as y, EventObserverTrait as yt, SignalOptions as z, SYMBOL_ASYNC_DISPOSE as zt };
|
|
674
|
+
//# sourceMappingURL=index-CFAJ969E.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
export { type AppendOrReplaceCompatFragmentOptions, type AppendOrReplaceCompatFragmentResult, type AsyncDisposableTrait, type AuthRequirement, type AuthenticatedCheck, type AuthorizationInterceptedFetchPredicate, type AuthorizationSignal, Base64CompatErrorCode, BaseRequirementPlanner, type BaseTransportForStdFetchCreateOptions, type BaseTransportTrait, BaseURIStringSchema, type CancelableHandle, type CancellationTokenOptions, type CancellationTokenSourceTrait, type CancellationTokenTrait, type CheckAuthenticated, ClientError, type ClientErrorFromHttpResponseOptions, type ClientErrorFromUnknownOptions, ClientErrorKind, ClientErrorSource, type Codec, type CompatFragment, type CompatFragmentParameters, type ComputedSignalTrait, type CreateAuthorizationInterceptedFetchOptions, type CreateFoundationEnvironmentOptions, type CreateJsonRpcClientOptions, type CreateJsonRpcServerAndClientOptions, type CreateJsonRpcServerOptions, type CreatePopupClientSessionOptions, type CreatePopupServerSessionOptions, type CreateResourceOptions, type DecodeJwtPayloadOptions, type DefineInstrumentMethodDecoratorContext, type DefineInstrumentMethodDecoratorFactory, type DisposableStackTrait, type DisposableTrait, ENVIRONMENT_TOKEN, type EnvironmentValidators, type EphemeralFlowStore, type
|
|
1
|
+
import { $ as ClientErrorContextFormatter, $t as SecuritydeptClassProvider, A as ResourceIdleSnapshot, At as SubscribableTrait, B as WritableSignalTrait, Bt as SYMBOL_DISPOSABLE_STACK, C as IdleCallbackTrait, Ct as EventStreamTrait, D as ComputedSignalTrait, Dt as InteropObservableTrait, E as TimestampProviderTrait, Et as RuntimeEventEnvelope, F as ResourceSnapshot, Ft as SecuritydeptInjector, G as formatClientErrorContext, Gt as injectDisposableStackFrom, H as CancellationTokenOptions, Ht as SimpleDisposableStack, I as ResourceStatus, It as AsyncDisposableTrait, J as describeError, Jt as inject, K as readErrorPresentationDescriptor, Kt as withDisposableStack, L as ResourceTrait, Lt as DisposableStackTrait, M as ResourceLoadingSnapshot, Mt as WithInteropObservableTraitCompat, N as ResourceReloadingSnapshot, Nt as isInteropObservableTrait, O as ReadableSignalTrait, Ot as ObserverTrait, P as ResourceResolvedSnapshot, Pt as INJECTOR_TOKEN, Q as ClientErrorFromUnknownOptions, Qt as SecuritydeptAbstractType, R as ResourceWhenValueOptions, Rt as DisposableTrait, S as IDLE_CALLBACK_TRAIT_TOKEN, St as EventSourceKind, T as TimeTrait, Tt as EventSubscriptionTrait, U as CancellationTokenSourceTrait, Ut as StdDisposableStack, V as CancelableHandle, Vt as SYMBOL_DISPOSE, W as CancellationTokenTrait, Wt as createDisposableStack, X as ClientError, Xt as tryInjectInInjectionContext, Y as CLIENT_ERROR_SPAN_ATTRIBUTE_PROVIDER_ID, Yt as runInInjectionContext, Z as ClientErrorFromHttpResponseOptions, Zt as SecurityDeptOptional, _t as SpanPathOptions, a as resourceFromSnapshots, an as SecuritydeptInjectorTrait, at as ErrorPresentationTone, b as createCancellationTokenSource, bt as EventOperatorFunction, cn as SecuritydeptValueProvider, ct as ServerErrorPresentation, dn as getSecuritydeptProviderToken, dt as SPAN_TRAIT_TOKEN, en as SecuritydeptDependencyDescriptor, et as ClientErrorKind, fn as notMissingProvider, ft as SpanAttributeReadOptions, gt as SpanNodeAttributes, ht as SpanCreateOptions, i as mapResource, in as SecuritydeptInjectionToken, it as ErrorPresentationDescriptor, j as ResourceLoadingErrorSnapshot, jt as SubscriptionTrait, k as ResourceErrorSnapshot, kt as SYMBOL_OBSERVABLE, ln as WithTraitDeps, lt as UserRecovery, mt as SpanAttributes, nn as SecuritydeptExistingProvider, nt as ClientErrorSpanContext, on as SecuritydeptProvider, ot as ErrorRecoveryActionDescriptor, pt as SpanAttributeValue, q as ErrorSummary, qt as SecuritydeptInjectOptions, rn as SecuritydeptFactoryProvider, rt as ErrorCodePresentation, sn as SecuritydeptTypeProvider, st as ReadErrorPresentationDescriptorOptions, tn as SecuritydeptDependencyToken, tt as ClientErrorSource, un as createProviderIfTokenMissing, ut as MutableSpanTrait, vt as SpanTrait, w as TIME_TRAIT_TOKEN, wt as EventSubjectTrait, x as isCancellationTokenTrait, xt as EventSource, y as createLinkedCancellationToken, yt as EventObserverTrait, zt as SYMBOL_ASYNC_DISPOSE } from "./index-CFAJ969E.mjs";
|
|
2
|
+
import { $ as RequirementPlan, $n as appendOrReplaceCompatFragment, $r as createJsonRpcServerAndClient, $t as Codec, A as abortSignalToCancellationToken, Ai as Base64CompatErrorCode, An as ValidationResult, Ar as readPopupErrorPresentationDescriptor, At as SelectCandidate, B as JwtAudienceClaim, Bn as RouterNavigationMode, Br as ResourceSnapshotUpdateKind, Bt as EnvironmentValidators, C as OnceAsyncLockState, Ci as createEventStream, Cn as CreateAuthorizationInterceptedFetchOptions, Cr as PopupAttachResult, Ct as RequirementResolution, D as createJsonCodec, Di as PAGE_LIFECYCLE_TRAIT_TOKEN, Dn as TraitInputValidator, Dr as CreatePopupClientSessionOptions, Dt as RouteRequirementsDeclaration, E as createInMemoryRecordStore, Ei as abortSignalToEventStream, En as createTimeForStd, Er as PopupTrait, Et as RouteBehaviourContextExtra, F as parseDurationToMs, Fn as validateTraitInput, Fr as PopupServerWindowHandleTrait, Ft as isRouteStateSnapshotTrait, G as parseIdentityPrincipalWire, Gn as AppendOrReplaceCompatFragmentOptions, Gr as ResourceStreamContext, Gt as TracingSubscriberTrait, H as IdentityPrincipalSchema, Hn as RouterTrait, Hr as reduceResourceSnapshot, Ht as ServiceWorkerEnvironment, I as JwtDecodeError, In as validateWithSchema, Ir as PopupWindowHandleTrait, It as resolveEffectiveRequirements, J as ProjectIdentityPrincipalOptions, Jn as CompatFragmentParameters, Jr as ResourceErrorCode, Jt as TRACING_SPAN_ATTRIBUTE_PROVIDER_ID, K as projectIdentityPrincipal, Kn as AppendOrReplaceCompatFragmentResult, Kr as createResource, Kt as OperationSpanTrait, L as JwtDecodeErrorCode, Ln as validateWithSchemaSync, Lr as createSignal, Lt as CreateFoundationEnvironmentOptions, M as normalizeAbortError, Mi as encodeUint8ArrayToBase64, Mn as WithTraitInputValidator, Mr as PopupClientWindowHandleTrait, Mt as StaticAttrsAuthRequirementInput, N as createRootSpan, Ni as SecuritydeptDestroyRef, Nn as formatValidationFailure, Nr as PopupMessageChannelTrait, Nt as UnauthenticatedAction, O as createEphemeralFlowStore, Oi as PageLifecycleTrait, On as ValidateTraitInputOptions, Or as CreatePopupServerSessionOptions, Ot as RouteStateSnapshotTrait, P as SpanSharedAttributeName, Pi as createSecuritydeptDestroyRef, Pn as throwValidationClientError, Pr as PopupServerWindowHandle, Pt as isRouteBehaviourContextExtra, Q as BaseRequirementPlanner, Qn as UpdateUriFragmentHash, Qr as createJsonRpcServer, Qt as TracingTrait, R as decodeJwtPayload, Rn as ROUTER_TRAIT_TOKEN, Rr as readonlySignal, Rt as createFoundationEnvironment, S as OnceAsyncLockRunning, Si as createEventReplaySubject, Sn as AuthorizationSignal, Sr as PopupAttachFailureReason, St as RequirementPlannerError, T as createOnceAsyncLockCallable, Ti as createNeverEventStream, Tn as TimeForStdCreateOptions, Tr as PopupOpenOptions, Tt as ResolutionStatus, U as IdentityPrincipalWireSchema, Un as TakeCompatFragmentFromRouterOptions, Ur as whenResourceSnapshotValue, Ut as TracingCreateOptions, V as JwtClaimsSet, Vn as RouterNavigationRequest, Vr as flattenResourceSnapshot, Vt as FoundationEnvironment, W as parseIdentityPrincipal, Wn as takeCompatFragmentFromRouter, Wr as CreateResourceOptions, Wt as createTracing, X as RouteCompositionRequirementPlanner, Xn as TakeCompatFragmentOptions, Xr as createComputed, Xt as TracingEvent, Y as StaticRequirementPlanner, Yn as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, Yr as ResourceValueUnavailableErrorOptions, Yt as TRACING_TRAIT_TOKEN, Z as MergeRequirementPlanner, Zn as TakeCompatFragmentResult, Zr as createJsonRpcClient, Zt as TracingLevel, _ as runOperation, _i as toEventStream, _n as HttpResponse, _r as UriReferenceStringSchema, _t as RequirementBehaviour, a as ConsoleTracingSubscriber, ai as JsonRpcErrorResponseMessage, an as RecoverableStateStore, ar as UriReferenceString, at as RequirementPlannerHostOptions, b as OnceAsyncLockError, bi as isClientErrorEvent, bn as TransportErrorCode, br as POPUP_TRAIT_TOKEN, bt as RequirementCandidateGenerator, c as DefineInstrumentMethodDecoratorFactory, ci as JsonRpcNotificationEvent, cn as StorageChangeEventOrigin, cr as UriRelativeParts, ct as provideRequirementPlannerHost, d as InstrumentMethodThisResolver, di as JsonRpcRequestMessage, dn as SyncStorageTrait, dr as UriString, dt as CheckAuthenticated, ei as CreateJsonRpcClientOptions, en as EphemeralFlowStore, er as isCompatFragmentBlock, et as InjectRequirementPlannerHostOptions, f as defineInstrumentMethodDecorator, fi as JsonRpcRequestOptions, fn as BaseTransportForStdFetchCreateOptions, fr as SECURITYDEPT_ROUTE_METADATA_KEY, ft as OnUnauthenticated, g as RunOperationOptionsBase, gi as ToEventStreamInput, gn as HttpRequest, gr as BaseURIStringSchema, gt as PlanStatus, h as RunOperationOptions, hi as JsonRpcSuccessResponseMessage, hn as BaseTransportTrait, hr as writeSecuritydeptRouteMetadata, ht as PipelineStepResult, i as createTraceTimelineStore, ii as JsonRpcErrorPayload, in as REALM_STORAGE_TRAIT_TOKEN, ir as UriParseError, it as RequirementPlannerHostBehaviour, j as cancellationTokenToAbortSignal, ji as decodeBase64ToUint8Array, jn as ValidationSuccess, jr as PopupClientWindowHandle, jt as StaticAttrsAuthRequirement, k as createKeyedEphemeralFlowStore, ki as promisesToRacedAsyncGenerator, kn as ValidationFailure, kr as PopupErrorCode, kt as RouteTreeSegment, l as InstrumentMethodResolvedOptions, li as JsonRpcNotificationMessage, ln as StorageTrait, lr as UriRelativeString, lt as AuthRequirement, m as RunOperationEnvironment, mi as JsonRpcServerTrait, mn as createBaseTransportForStdFetch, mr as readSecuritydeptRouteMetadata, mt as PipelineRunResult, n as TraceTimelineEntry, ni as CreateJsonRpcServerOptions, nn as PERSISTENT_STORAGE_TRAIT_TOKEN, nr as takeCompatFragment, nt as REQUIREMENT_PLANNER_HOST, o as createConsoleTracingSubscriber, oi as JsonRpcId, on as SESSION_STORAGE_TRAIT_TOKEN, or as UriReferenceStringInput, ot as defaultSelectCandidate, p as OperationSpan, pi as JsonRpcServerAndClientTrait, pn as FetchTransportRedirectKind, pr as SecuritydeptRouteMetadata, pt as PipelineOutcome, q as IdentityPrincipal, qn as CompatFragment, qr as ResourceError, qt as OperationTraceEventType, r as TraceTimelineStore, ri as JsonRpcClientTrait, rn as PersistentAuthStore, rr as UriFragmentPart, rt as RequirementPlannerHost, s as DefineInstrumentMethodDecoratorContext, si as JsonRpcMessage, sn as StorageChangeEvent, sr as UriReferenceStringLike, st as injectRequirementPlannerHost, t as isLoopbackHttpUrl, ti as CreateJsonRpcServerAndClientOptions, tn as KeyedEphemeralFlowStore, tr as parseCompatFragment, tt as ProvideRequirementPlannerHostOptions, u as InstrumentMethodThisContext, ui as JsonRpcRequestEvent, un as StoredEnvelope, ur as UriSearchParamsInit, ut as AuthenticatedCheck, v as OnceAsyncLock, vi as ClientErrorEvent, vn as HttpResponseJsonBody, vr as UriRelativeStringSchema, vt as RequirementBehaviourContext, w as OnceAsyncLockSuccess, wi as createEventSubject, wn as createAuthorizationInterceptedFetch, wr as PopupAttachSuccess, wt as RequirementsComposition, x as OnceAsyncLockInit, xi as createEmptyEventStream, xn as AuthorizationInterceptedFetchPredicate, xr as PopupAttachFailure, xt as RequirementCandidateSelectionContext, y as OnceAsyncLockCallable, yi as ExtractClientErrorEvent, yn as TRANSPORT_TRAIT_TOKEN, yr as UriStringSchema, yt as RequirementBehaviourWithRouteContext, z as DecodeJwtPayloadOptions, zn as RouterNavigationIntent, zr as ResourceSnapshotUpdate, zt as ENVIRONMENT_TOKEN } from "./index-B9SEJGU2.mjs";
|
|
3
|
+
export { type AppendOrReplaceCompatFragmentOptions, type AppendOrReplaceCompatFragmentResult, type AsyncDisposableTrait, type AuthRequirement, type AuthenticatedCheck, type AuthorizationInterceptedFetchPredicate, type AuthorizationSignal, Base64CompatErrorCode, BaseRequirementPlanner, type BaseTransportForStdFetchCreateOptions, type BaseTransportTrait, BaseURIStringSchema, CLIENT_ERROR_SPAN_ATTRIBUTE_PROVIDER_ID, type CancelableHandle, type CancellationTokenOptions, type CancellationTokenSourceTrait, type CancellationTokenTrait, type CheckAuthenticated, ClientError, type ClientErrorContextFormatter, type ClientErrorEvent, type ClientErrorFromHttpResponseOptions, type ClientErrorFromUnknownOptions, ClientErrorKind, ClientErrorSource, type ClientErrorSpanContext, type Codec, type CompatFragment, type CompatFragmentParameters, type ComputedSignalTrait, ConsoleTracingSubscriber, type CreateAuthorizationInterceptedFetchOptions, type CreateFoundationEnvironmentOptions, type CreateJsonRpcClientOptions, type CreateJsonRpcServerAndClientOptions, type CreateJsonRpcServerOptions, type CreatePopupClientSessionOptions, type CreatePopupServerSessionOptions, type CreateResourceOptions, type DecodeJwtPayloadOptions, type DefineInstrumentMethodDecoratorContext, type DefineInstrumentMethodDecoratorFactory, type DisposableStackTrait, type DisposableTrait, ENVIRONMENT_TOKEN, type EnvironmentValidators, type EphemeralFlowStore, type ErrorCodePresentation, type ErrorPresentationDescriptor, ErrorPresentationTone, type ErrorRecoveryActionDescriptor, type ErrorSummary, type EventObserverTrait, type EventOperatorFunction, type EventSource, EventSourceKind, type EventStreamTrait, type EventSubjectTrait, type EventSubscriptionTrait, type ExtractClientErrorEvent, FetchTransportRedirectKind, type FoundationEnvironment, type HttpRequest, type HttpResponse, type HttpResponseJsonBody, IDLE_CALLBACK_TRAIT_TOKEN, INJECTOR_TOKEN, type IdentityPrincipal, IdentityPrincipalSchema, IdentityPrincipalWireSchema, type IdleCallbackTrait, type InjectRequirementPlannerHostOptions, type InstrumentMethodResolvedOptions, type InstrumentMethodThisContext, type InstrumentMethodThisResolver, type InteropObservableTrait, type JsonRpcClientTrait, type JsonRpcErrorPayload, type JsonRpcErrorResponseMessage, type JsonRpcId, type JsonRpcMessage, type JsonRpcNotificationEvent, type JsonRpcNotificationMessage, type JsonRpcRequestEvent, type JsonRpcRequestMessage, type JsonRpcRequestOptions, type JsonRpcServerAndClientTrait, type JsonRpcServerTrait, type JsonRpcSuccessResponseMessage, type JwtAudienceClaim, type JwtClaimsSet, JwtDecodeError, JwtDecodeErrorCode, type KeyedEphemeralFlowStore, MergeRequirementPlanner, type MutableSpanTrait, type ObserverTrait, type OnUnauthenticated, type OnceAsyncLock, type OnceAsyncLockCallable, type OnceAsyncLockError, type OnceAsyncLockInit, type OnceAsyncLockRunning, OnceAsyncLockState, type OnceAsyncLockSuccess, OperationSpan, type OperationSpanTrait, OperationTraceEventType, PAGE_LIFECYCLE_TRAIT_TOKEN, PERSISTENT_STORAGE_TRAIT_TOKEN, POPUP_TRAIT_TOKEN, type PageLifecycleTrait, type PersistentAuthStore, PipelineOutcome, type PipelineRunResult, type PipelineStepResult, PlanStatus, type PopupAttachFailure, PopupAttachFailureReason, type PopupAttachResult, type PopupAttachSuccess, PopupClientWindowHandle, type PopupClientWindowHandleTrait, PopupErrorCode, type PopupMessageChannelTrait, type PopupOpenOptions, PopupServerWindowHandle, type PopupServerWindowHandleTrait, type PopupTrait, type PopupWindowHandleTrait, type ProjectIdentityPrincipalOptions, type ProvideRequirementPlannerHostOptions, REALM_STORAGE_TRAIT_TOKEN, REQUIREMENT_PLANNER_HOST, ROUTER_TRAIT_TOKEN, type ReadErrorPresentationDescriptorOptions, type ReadableSignalTrait, type RecoverableStateStore, type RequirementBehaviour, type RequirementBehaviourContext, type RequirementBehaviourWithRouteContext, type RequirementCandidateGenerator, type RequirementCandidateSelectionContext, type RequirementPlan, RequirementPlannerError, RequirementPlannerHost, type RequirementPlannerHostBehaviour, type RequirementPlannerHostOptions, type RequirementResolution, RequirementsComposition, ResolutionStatus, ResourceError, ResourceErrorCode, type ResourceErrorSnapshot, type ResourceIdleSnapshot, type ResourceLoadingErrorSnapshot, type ResourceLoadingSnapshot, type ResourceReloadingSnapshot, type ResourceResolvedSnapshot, type ResourceSnapshot, type ResourceSnapshotUpdate, ResourceSnapshotUpdateKind, ResourceStatus, type ResourceStreamContext, type ResourceTrait, type ResourceValueUnavailableErrorOptions, type ResourceWhenValueOptions, type RouteBehaviourContextExtra, RouteCompositionRequirementPlanner, type RouteRequirementsDeclaration, type RouteStateSnapshotTrait, type RouteTreeSegment, RouterNavigationIntent, RouterNavigationMode, type RouterNavigationRequest, type RouterTrait, type RunOperationEnvironment, type RunOperationOptions, type RunOperationOptionsBase, type RuntimeEventEnvelope, SECURITYDEPT_COMPAT_FRAGMENT_VERSION, SECURITYDEPT_ROUTE_METADATA_KEY, SESSION_STORAGE_TRAIT_TOKEN, SPAN_TRAIT_TOKEN, SYMBOL_ASYNC_DISPOSE, SYMBOL_DISPOSABLE_STACK, SYMBOL_DISPOSE, SYMBOL_OBSERVABLE, SecurityDeptOptional, type SecuritydeptAbstractType, type SecuritydeptClassProvider, type SecuritydeptDependencyDescriptor, type SecuritydeptDependencyToken, SecuritydeptDestroyRef, type SecuritydeptExistingProvider, type SecuritydeptFactoryProvider, type SecuritydeptInjectOptions, SecuritydeptInjectionToken, SecuritydeptInjector, type SecuritydeptInjectorTrait, type SecuritydeptProvider, type SecuritydeptRouteMetadata, type SecuritydeptTypeProvider, type SecuritydeptValueProvider, type SelectCandidate, type ServerErrorPresentation, type ServiceWorkerEnvironment, SimpleDisposableStack, type SpanAttributeReadOptions, type SpanAttributeValue, type SpanAttributes, type SpanCreateOptions, type SpanNodeAttributes, type SpanPathOptions, SpanSharedAttributeName, type SpanTrait, StaticAttrsAuthRequirement, type StaticAttrsAuthRequirementInput, StaticRequirementPlanner, StdDisposableStack, type StorageChangeEvent, StorageChangeEventOrigin, type StorageTrait, type StoredEnvelope, type SubscribableTrait, type SubscriptionTrait, type SyncStorageTrait, TIME_TRAIT_TOKEN, TRACING_SPAN_ATTRIBUTE_PROVIDER_ID, TRACING_TRAIT_TOKEN, TRANSPORT_TRAIT_TOKEN, type TakeCompatFragmentFromRouterOptions, type TakeCompatFragmentOptions, type TakeCompatFragmentResult, type TimeForStdCreateOptions, type TimeTrait, type TimestampProviderTrait, type ToEventStreamInput, type TraceTimelineEntry, TraceTimelineStore, type TracingCreateOptions, type TracingEvent, TracingLevel, type TracingSubscriberTrait, type TracingTrait, type TraitInputValidator, TransportErrorCode, type UnauthenticatedAction, type UpdateUriFragmentHash, type UriFragmentPart, UriParseError, UriReferenceString, type UriReferenceStringInput, type UriReferenceStringLike, UriReferenceStringSchema, type UriRelativeParts, UriRelativeString, UriRelativeStringSchema, type UriSearchParamsInit, UriString, UriStringSchema, UserRecovery, type ValidateTraitInputOptions, type ValidationFailure, type ValidationResult, type ValidationSuccess, type WithInteropObservableTraitCompat, type WithTraitDeps, type WithTraitInputValidator, type WritableSignalTrait, abortSignalToCancellationToken, abortSignalToEventStream, appendOrReplaceCompatFragment, cancellationTokenToAbortSignal, createAuthorizationInterceptedFetch, createBaseTransportForStdFetch, createCancellationTokenSource, createComputed, createConsoleTracingSubscriber, createDisposableStack, createEmptyEventStream, createEphemeralFlowStore, createEventReplaySubject, createEventStream, createEventSubject, createFoundationEnvironment, createInMemoryRecordStore, createJsonCodec, createJsonRpcClient, createJsonRpcServer, createJsonRpcServerAndClient, createKeyedEphemeralFlowStore, createLinkedCancellationToken, createNeverEventStream, createOnceAsyncLockCallable, createProviderIfTokenMissing, createResource, createRootSpan, createSecuritydeptDestroyRef, createSignal, createTimeForStd, createTraceTimelineStore, createTracing, decodeBase64ToUint8Array, decodeJwtPayload, defaultSelectCandidate, defineInstrumentMethodDecorator, describeError, encodeUint8ArrayToBase64, flattenResourceSnapshot, formatClientErrorContext, formatValidationFailure, getSecuritydeptProviderToken, inject, injectDisposableStackFrom, injectRequirementPlannerHost, isCancellationTokenTrait, isClientErrorEvent, isCompatFragmentBlock, isInteropObservableTrait, isLoopbackHttpUrl, isRouteBehaviourContextExtra, isRouteStateSnapshotTrait, mapResource, normalizeAbortError, notMissingProvider, parseCompatFragment, parseDurationToMs, parseIdentityPrincipal, parseIdentityPrincipalWire, projectIdentityPrincipal, promisesToRacedAsyncGenerator, provideRequirementPlannerHost, readErrorPresentationDescriptor, readPopupErrorPresentationDescriptor, readSecuritydeptRouteMetadata, readonlySignal, reduceResourceSnapshot, resolveEffectiveRequirements, resourceFromSnapshots, runInInjectionContext, runOperation, takeCompatFragment, takeCompatFragmentFromRouter, throwValidationClientError, toEventStream, tryInjectInInjectionContext, validateTraitInput, validateWithSchema, validateWithSchemaSync, whenResourceSnapshotValue, withDisposableStack, writeSecuritydeptRouteMetadata };
|