@securitydept/client 0.3.0-beta.5 → 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.
Files changed (33) hide show
  1. package/dist/{create-Bm-XRA3G.mjs → create-i5VyYgN6.mjs} +68 -652
  2. package/dist/create-i5VyYgN6.mjs.map +1 -0
  3. package/dist/handle-DwMgqe7R.mjs +638 -0
  4. package/dist/handle-DwMgqe7R.mjs.map +1 -0
  5. package/dist/{index-D5mW18cM.d.mts → index-B9SEJGU2.d.mts} +108 -89
  6. package/dist/{index-BT-u3qNI.d.mts → index-BjCFWcmV.d.mts} +3 -4
  7. package/dist/{index-Ch8lrE44.d.mts → index-CFAJ969E.d.mts} +81 -32
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +99 -99
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/{router-BJ8LqNJ1.mjs → router-at5bTdJQ.mjs} +4 -4
  12. package/dist/{router-BJ8LqNJ1.mjs.map → router-at5bTdJQ.mjs.map} +1 -1
  13. package/dist/rx/index.d.mts +1 -2
  14. package/dist/rx/index.mjs +1 -1
  15. package/dist/{rx-BoB32Dzg.mjs → rx-DM6Ouv-m.mjs} +21 -8
  16. package/dist/rx-DM6Ouv-m.mjs.map +1 -0
  17. package/dist/server/index.d.mts +1 -2
  18. package/dist/server/index.mjs +1 -1
  19. package/dist/server/index.mjs.map +1 -1
  20. package/dist/test/index.d.mts +2 -3
  21. package/dist/test/index.mjs +3 -3
  22. package/dist/test/index.mjs.map +1 -1
  23. package/dist/{uri-string-BfnIT4gJ.mjs → uri-string-BPNbIMgv.mjs} +5 -3
  24. package/dist/{uri-string-BfnIT4gJ.mjs.map → uri-string-BPNbIMgv.mjs.map} +1 -1
  25. package/dist/web/index.d.mts +3 -4
  26. package/dist/web/index.mjs +27 -21
  27. package/dist/web/index.mjs.map +1 -1
  28. package/dist/webext/index.d.mts +2 -3
  29. package/dist/webext/index.mjs +12 -10
  30. package/dist/webext/index.mjs.map +1 -1
  31. package/package.json +14 -5
  32. package/dist/create-Bm-XRA3G.mjs.map +0 -1
  33. package/dist/rx-BoB32Dzg.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,11 +1,13 @@
1
- import { A as RxEventSubject, B as withDisposableStack, E as RxComputedSignal, F as SYMBOL_DISPOSE, G as UserRecovery, H as ClientErrorKind, I as SimpleDisposableStack, L as StdDisposableStack, M as isInteropObservableTrait, N as SYMBOL_ASYNC_DISPOSE, O as RxEventReplaySubject, P as SYMBOL_DISPOSABLE_STACK, R as createDisposableStack, U as ClientErrorSource, V as ClientError, W as ErrorPresentationTone, a as ResourceSnapshotUpdateKind, c as whenResourceSnapshotValue, d as ResourceErrorCode, f as CancellationToken, i as rxResource, j as SYMBOL_OBSERVABLE, k as RxEventStream, l as ResourceStatus, m as isCancellationTokenTrait, n as mapResource, o as flattenResourceSnapshot, p as createCancellationTokenSource, r as resourceFromSnapshots, s as reduceResourceSnapshot, u as ResourceError, z as injectDisposableStackFrom } from "./rx-BoB32Dzg.mjs";
2
- import { $ as INJECTOR_TOKEN, A as appendOrReplaceCompatFragment, B as createJsonRpcServerAndClient, C as IDLE_CALLBACK_TRAIT_TOKEN, D as RouterNavigationMode, E as RouterNavigationIntent, F as PopupAttachFailureReason, G as validateWithSchemaSync, H as throwValidationClientError, I as PopupClientWindowHandle, J as PAGE_LIFECYCLE_TRAIT_TOKEN, K as PopupErrorCode, L as PopupServerWindowHandle, M as parseCompatFragment, N as takeCompatFragment, O as takeCompatFragmentFromRouter, P as POPUP_TRAIT_TOKEN, Q as readonlySignal, R as createJsonRpcClient, S as SPAN_TRAIT_TOKEN, T as ROUTER_TRAIT_TOKEN, U as validateTraitInput, V as formatValidationFailure, W as validateWithSchema, X as isEventStreamTrait, Y as EventSourceKind, Z as createSignal, _ as abortSignalToCancellationToken, a as TracingLevel, at as createProviderIfTokenMissing, b as abortSignalToEventStream, c as PERSISTENT_STORAGE_TRAIT_TOKEN, ct as readErrorPresentationDescriptor, d as StorageChangeEventOrigin, et as PARENT_INJECTOR_TOKEN, f as FetchTransportRedirectKind, g as createTimeForStd, h as TransportErrorCode, i as TRACING_TRAIT_TOKEN, it as SecuritydeptInjectionToken, j as isCompatFragmentBlock, k as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, l as REALM_STORAGE_TRAIT_TOKEN, m as TRANSPORT_TRAIT_TOKEN, n as ENVIRONMENT_TOKEN, nt as toRuntimeInjector, o as createTracing, ot as getSecuritydeptProviderToken, p as createBaseTransportForStdFetch, q as readPopupErrorPresentationDescriptor, r as OperationTraceEventType, rt as SecurityDeptOptional, s as createInMemoryRecordStore, st as notMissingProvider, t as createFoundationEnvironment, tt as SecuritydeptInjector, u as SESSION_STORAGE_TRAIT_TOKEN, v as cancellationTokenToAbortSignal, w as TIME_TRAIT_TOKEN, x as createRootSpan, y as normalizeAbortError, z as createJsonRpcServer } from "./create-Bm-XRA3G.mjs";
3
- import { i as UriString, n as UriReferenceString, r as UriRelativeString, t as UriParseError } from "./uri-string-BfnIT4gJ.mjs";
1
+ import { A as RxEventSubject, B as withDisposableStack, E as RxComputedSignal, F as SYMBOL_DISPOSE, G as ErrorPresentationTone, H as ClientError, I as SimpleDisposableStack, K as UserRecovery, L as StdDisposableStack, M as isInteropObservableTrait, N as SYMBOL_ASYNC_DISPOSE, O as RxEventReplaySubject, P as SYMBOL_DISPOSABLE_STACK, R as createDisposableStack, U as ClientErrorKind, V as CLIENT_ERROR_SPAN_ATTRIBUTE_PROVIDER_ID, W as ClientErrorSource, a as ResourceSnapshotUpdateKind, c as whenResourceSnapshotValue, d as ResourceErrorCode, f as CancellationToken, i as rxResource, j as SYMBOL_OBSERVABLE, k as RxEventStream, l as ResourceStatus, m as isCancellationTokenTrait, n as mapResource, o as flattenResourceSnapshot, p as createCancellationTokenSource, r as resourceFromSnapshots, s as reduceResourceSnapshot, u as ResourceError, z as injectDisposableStackFrom } from "./rx-DM6Ouv-m.mjs";
2
+ import { a as createJsonRpcServerAndClient, c as createSignal, d as readErrorPresentationDescriptor, f as SpanSharedAttributeName, i as createJsonRpcServer, l as readonlySignal, n as PopupServerWindowHandle, o as PopupErrorCode, r as createJsonRpcClient, s as readPopupErrorPresentationDescriptor, t as PopupClientWindowHandle, u as formatClientErrorContext } from "./handle-DwMgqe7R.mjs";
3
+ import { $ as notMissingProvider, A as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, B as validateWithSchema, C as SPAN_TRAIT_TOKEN, D as RouterNavigationIntent, E as ROUTER_TRAIT_TOKEN, F as POPUP_TRAIT_TOKEN, G as INJECTOR_TOKEN, H as PAGE_LIFECYCLE_TRAIT_TOKEN, I as PopupAttachFailureReason, J as toRuntimeInjector, K as PARENT_INJECTOR_TOKEN, L as formatValidationFailure, M as isCompatFragmentBlock, N as parseCompatFragment, O as RouterNavigationMode, P as takeCompatFragment, Q as getSecuritydeptProviderToken, R as throwValidationClientError, S as createRootSpan, T as TIME_TRAIT_TOKEN, U as EventSourceKind, V as validateWithSchemaSync, W as isEventStreamTrait, X as SecuritydeptInjectionToken, Y as SecurityDeptOptional, Z as createProviderIfTokenMissing, _ as createTimeForStd, a as TRACING_TRAIT_TOKEN, b as normalizeAbortError, c as createInMemoryRecordStore, d as SESSION_STORAGE_TRAIT_TOKEN, f as StorageChangeEventOrigin, g as TransportErrorCode, h as TRANSPORT_TRAIT_TOKEN, i as TRACING_SPAN_ATTRIBUTE_PROVIDER_ID, j as appendOrReplaceCompatFragment, k as takeCompatFragmentFromRouter, l as PERSISTENT_STORAGE_TRAIT_TOKEN, m as createBaseTransportForStdFetch, n as ENVIRONMENT_TOKEN, o as TracingLevel, p as FetchTransportRedirectKind, q as SecuritydeptInjector, r as OperationTraceEventType, s as createTracing, t as createFoundationEnvironment, u as REALM_STORAGE_TRAIT_TOKEN, v as abortSignalToCancellationToken, w as IDLE_CALLBACK_TRAIT_TOKEN, x as abortSignalToEventStream, y as cancellationTokenToAbortSignal, z as validateTraitInput } from "./create-i5VyYgN6.mjs";
4
+ import { i as UriString, n as UriReferenceString, r as UriRelativeString, t as UriParseError } from "./uri-string-BPNbIMgv.mjs";
4
5
  import { v7 } from "uuid";
5
6
  import { inject as inject$1, runInInjectionContext as runInInjectionContext$1 } from "injection-js";
6
7
  import { EMPTY, NEVER, ReplaySubject, filter, from, merge, take, takeUntil } from "rxjs";
7
8
  import { type } from "arktype";
8
9
  import { isPromise } from "es-toolkit/predicate";
10
+ import { Queue } from "mnemonist";
9
11
  //#region src/auth-coordination/contract.ts
10
12
  var StaticAttrsAuthRequirement = class StaticAttrsAuthRequirement {
11
13
  id;
@@ -316,8 +318,9 @@ function readSecuritydeptRouteMetadata(data) {
316
318
  /** Merge SecurityDept route metadata into a route `data` bag. */
317
319
  function writeSecuritydeptRouteMetadata(base, patch) {
318
320
  const data = { ...base ?? {} };
321
+ const previous = data["__securitydept__"] ?? {};
319
322
  data[SECURITYDEPT_ROUTE_METADATA_KEY] = {
320
- ...data["__securitydept__"] ?? {},
323
+ ...previous,
321
324
  ...patch
322
325
  };
323
326
  return data;
@@ -343,39 +346,27 @@ function createAuthorizationInterceptedFetch(fetchImpl, options) {
343
346
  //#endregion
344
347
  //#region src/tracing/operation-runner.ts
345
348
  var OperationSpan = class OperationSpan {
346
- _span;
349
+ span;
347
350
  _environment;
348
- _name;
349
351
  _target;
350
- constructor(_span, _environment, _name, _target) {
351
- this._span = _span;
352
+ constructor(span, _environment, _target) {
353
+ this.span = span;
352
354
  this._environment = _environment;
353
- this._name = _name;
354
355
  this._target = _target;
355
356
  }
356
357
  static start(options) {
357
- const operationSpan = new OperationSpan(options.span.fork({
358
+ const span = options.span.fork({
358
359
  mutable: true,
359
360
  idFactory: options.idFactory,
360
- attributes: options.fields
361
- }), options.environment, options.name, options.target);
361
+ attributes: { [SpanSharedAttributeName.OperationName]: options.name }
362
+ });
363
+ if (options.traceAttributes) span.setAttributes(options.traceAttributes, { providerId: TRACING_SPAN_ATTRIBUTE_PROVIDER_ID });
364
+ const operationSpan = new OperationSpan(span, options.environment, options.target);
362
365
  operationSpan.recordStarted();
363
366
  return operationSpan;
364
367
  }
365
- get id() {
366
- return this._span.id;
367
- }
368
- get parent() {
369
- return this._span.parent;
370
- }
371
- get attributes() {
372
- return this._span.attributes;
373
- }
374
- fork(options = {}) {
375
- return this._span.fork(options);
376
- }
377
- setAttributes(attributes) {
378
- this._span.setAttributes(attributes);
368
+ setTraceAttributes(attributes) {
369
+ this.span.setAttributes(attributes, { providerId: TRACING_SPAN_ATTRIBUTE_PROVIDER_ID });
379
370
  }
380
371
  addEvent(name, fields) {
381
372
  this._record(OperationTraceEventType.Event, TracingLevel.Info, {
@@ -399,38 +390,34 @@ var OperationSpan = class OperationSpan {
399
390
  this._environment.tracing.record({
400
391
  name,
401
392
  at: this._environment.time.now(),
402
- span: this,
393
+ span: this.span,
403
394
  level,
404
395
  target: this._target,
405
- fields: {
406
- operationName: this._name,
407
- ...this.attributes,
408
- ...fields ?? {}
409
- }
396
+ fields
410
397
  });
411
398
  }
412
399
  };
413
400
  function runOperation(options) {
414
401
  const operationSpan = OperationSpan.start(options);
415
- const complete = (result) => {
416
- operationSpan.recordEnded("succeeded");
417
- return result;
418
- };
419
- const fail = (error) => {
420
- const normalizedError = options.normalizeError?.(error) ?? error;
421
- operationSpan.recordError(normalizedError);
422
- operationSpan.recordEnded("failed");
423
- throw normalizedError;
424
- };
425
- const invoke = () => options.execute(operationSpan);
426
402
  try {
427
- const result = invoke();
428
- if (isPromise(result)) return result.then(complete, fail);
429
- return complete(result);
403
+ const result = options.execute(operationSpan);
404
+ if (isPromise(result)) return result.then((value) => completeOperation(operationSpan, value), (error) => failOperation(operationSpan, error, options.clientErrorFromUnknown));
405
+ return completeOperation(operationSpan, result);
430
406
  } catch (error) {
431
- return fail(error);
407
+ return failOperation(operationSpan, error, options.clientErrorFromUnknown);
432
408
  }
433
409
  }
410
+ function completeOperation(operationSpan, result) {
411
+ operationSpan.recordEnded("succeeded");
412
+ return result;
413
+ }
414
+ function failOperation(operationSpan, error, clientErrorFromUnknown) {
415
+ const clientError = clientErrorFromUnknown ? clientErrorFromUnknown(error, { span: operationSpan.span }) : error;
416
+ if (clientError instanceof ClientError) clientError.captureSpanContext(operationSpan.span);
417
+ operationSpan.recordError(clientError);
418
+ operationSpan.recordEnded("failed");
419
+ throw clientError;
420
+ }
434
421
  //#endregion
435
422
  //#region src/tracing/operation-method.ts
436
423
  function defineInstrumentMethodDecorator(factory) {
@@ -450,9 +437,9 @@ function defineInstrumentMethodDecorator(factory) {
450
437
  span: resolvedOptions.span,
451
438
  name: resolvedOptions.name ?? methodName,
452
439
  target: resolvedOptions.target,
453
- fields: resolvedOptions.fields,
440
+ traceAttributes: resolvedOptions.traceAttributes,
454
441
  idFactory: resolvedOptions.idFactory,
455
- normalizeError: resolvedOptions.normalizeError,
442
+ clientErrorFromUnknown: resolvedOptions.clientErrorFromUnknown,
456
443
  execute: (span) => target.call(this, ...args, span)
457
444
  });
458
445
  };
@@ -460,73 +447,78 @@ function defineInstrumentMethodDecorator(factory) {
460
447
  }
461
448
  //#endregion
462
449
  //#region src/tracing/subscriber/console.ts
463
- function createConsoleTracingSubscriber() {
464
- return { record(event) {
450
+ var ConsoleTracingSubscriber = class {
451
+ record(event) {
465
452
  const label = `[${event.target}] ${event.name}`;
453
+ const details = {
454
+ ...event.fields ?? {},
455
+ spanAttributes: event.span.getRootToNodeAttributes({ providerId: TRACING_SPAN_ATTRIBUTE_PROVIDER_ID })
456
+ };
466
457
  switch (event.level) {
467
458
  case "debug":
468
- console.debug(label, event.fields ?? {});
459
+ console.debug(label, details);
469
460
  break;
470
461
  case "info":
471
- console.info(label, event.fields ?? {});
462
+ console.info(label, details);
472
463
  break;
473
464
  case "warn":
474
- console.warn(label, event.fields ?? {});
475
- break;
476
- case "error":
477
- console.error(label, event.fields ?? {});
465
+ console.warn(label, details);
478
466
  break;
467
+ case "error": console.error(label, details);
479
468
  }
480
- } };
469
+ }
470
+ };
471
+ function createConsoleTracingSubscriber() {
472
+ return new ConsoleTracingSubscriber();
481
473
  }
482
474
  //#endregion
483
475
  //#region src/tracing/subscriber/timeline-store.ts
484
476
  /**
485
- * Create a subscriber-side trace timeline store.
477
+ * Bounded subscriber-side trace timeline.
486
478
  *
487
479
  * This store consumes tracing events through `record(event)` and keeps a
488
480
  * bounded local timeline for tests and UI surfaces. It is not the tracing
489
481
  * runtime itself.
490
482
  */
491
- function createTraceTimelineStore(limit = 200) {
492
- let nextId = 1;
493
- let entries = [];
494
- const listeners = /* @__PURE__ */ new Set();
495
- function readRecordedAtIso(at) {
496
- if (!Number.isFinite(at)) return "invalid-timestamp";
497
- const date = new Date(at);
498
- const timestamp = date.getTime();
499
- if (!Number.isFinite(timestamp)) return "invalid-timestamp";
500
- return date.toISOString();
501
- }
502
- function notify() {
503
- for (const listener of listeners) listener();
504
- }
505
- return {
506
- record(event) {
507
- const entry = {
508
- ...event,
509
- id: nextId++,
510
- recordedAtIso: readRecordedAtIso(event.at)
511
- };
512
- entries = [...entries, entry].slice(-limit);
513
- notify();
514
- },
515
- get() {
516
- return entries;
517
- },
518
- subscribe(listener) {
519
- listeners.add(listener);
520
- return () => {
521
- listeners.delete(listener);
522
- };
523
- },
524
- clear() {
525
- if (entries.length === 0) return;
526
- entries = [];
527
- notify();
483
+ var TraceTimelineStore = class {
484
+ limit;
485
+ nextId = 1;
486
+ timeline = new Queue();
487
+ latestEntrySubject = new RxEventSubject();
488
+ constructor(limit = 200) {
489
+ this.limit = limit;
490
+ }
491
+ get latestEntry() {
492
+ return this.latestEntrySubject;
493
+ }
494
+ get entries() {
495
+ return this.timeline.toArray();
496
+ }
497
+ record(event) {
498
+ const { span, ...eventWithoutSpan } = event;
499
+ const entry = {
500
+ ...eventWithoutSpan,
501
+ id: this.nextId++,
502
+ recordedAtIso: new Date(event.at).toISOString(),
503
+ span: {
504
+ id: span.id,
505
+ ...span.parent ? { parentId: span.parent.id } : {}
506
+ },
507
+ spanAttributes: span.getRootToNodeAttributes({ providerId: TRACING_SPAN_ATTRIBUTE_PROVIDER_ID })
508
+ };
509
+ this.timeline.enqueue(entry);
510
+ if (this.timeline.size > this.limit) this.timeline.dequeue();
511
+ this.latestEntrySubject.next(entry);
512
+ }
513
+ clear() {
514
+ if (this.timeline.size > 0) {
515
+ this.timeline.clear();
516
+ this.latestEntrySubject.next(null);
528
517
  }
529
- };
518
+ }
519
+ };
520
+ function createTraceTimelineStore(limit = 200) {
521
+ return new TraceTimelineStore(limit);
530
522
  }
531
523
  //#endregion
532
524
  //#region src/auth-coordination/planner-host.ts
@@ -817,7 +809,8 @@ var RouteCompositionRequirementPlanner = class RouteCompositionRequirementPlanne
817
809
  const nextEffective = foldSegments(currentSegments);
818
810
  const shared = sharedPrefixLength(previousPlanner.effectiveRequirements, nextEffective);
819
811
  const sharedIds = new Set(nextEffective.slice(0, shared).map((requirement) => requirement.id));
820
- return new RouteCompositionRequirementPlanner(host, currentSegments, routeState, previousPlan.resolutionList.filter((resolution) => sharedIds.has(resolution.requirementId)));
812
+ const preserved = previousPlan.resolutionList.filter((resolution) => sharedIds.has(resolution.requirementId));
813
+ return new RouteCompositionRequirementPlanner(host, currentSegments, routeState, preserved);
821
814
  }
822
815
  get planContext() {
823
816
  return this._planContext;
@@ -894,6 +887,13 @@ function createNeverEventStream() {
894
887
  return RxEventStream.fromObservableInput(NEVER);
895
888
  }
896
889
  //#endregion
890
+ //#region src/events/error.ts
891
+ function isClientErrorEvent(event) {
892
+ if (typeof event !== "object" || event === null) return false;
893
+ if ("error" in event && event.error instanceof ClientError) return true;
894
+ return "payload" in event && typeof event.payload === "object" && event.payload !== null && "error" in event.payload && event.payload.error instanceof ClientError;
895
+ }
896
+ //#endregion
897
897
  //#region src/events/interop.ts
898
898
  function toEventStream(input) {
899
899
  if (isEventStreamTrait(input)) return input;
@@ -1253,6 +1253,6 @@ function isLoopbackHttpUrl(url) {
1253
1253
  return url.protocol === "http:" && (url.hostname === "localhost" || url.hostname === "127.0.0.1" || url.hostname === "::1" || url.hostname === "[::1]");
1254
1254
  }
1255
1255
  //#endregion
1256
- export { Base64CompatErrorCode, BaseRequirementPlanner, BaseURIStringSchema, ClientError, ClientErrorKind, ClientErrorSource, ENVIRONMENT_TOKEN, ErrorPresentationTone, EventSourceKind, FetchTransportRedirectKind, IDLE_CALLBACK_TRAIT_TOKEN, INJECTOR_TOKEN, IdentityPrincipalSchema, IdentityPrincipalWireSchema, JwtDecodeError, JwtDecodeErrorCode, MergeRequirementPlanner, OnceAsyncLockState, OperationSpan, OperationTraceEventType, PAGE_LIFECYCLE_TRAIT_TOKEN, PERSISTENT_STORAGE_TRAIT_TOKEN, POPUP_TRAIT_TOKEN, PipelineOutcome, PlanStatus, PopupAttachFailureReason, PopupClientWindowHandle, PopupErrorCode, PopupServerWindowHandle, REALM_STORAGE_TRAIT_TOKEN, REQUIREMENT_PLANNER_HOST, ROUTER_TRAIT_TOKEN, RequirementPlannerError, RequirementPlannerHost, RequirementsComposition, ResolutionStatus, ResourceError, ResourceErrorCode, ResourceSnapshotUpdateKind, ResourceStatus, RouteCompositionRequirementPlanner, RouterNavigationIntent, RouterNavigationMode, 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, SecuritydeptDestroyRef, SecuritydeptInjectionToken, SecuritydeptInjector, SimpleDisposableStack, StaticAttrsAuthRequirement, StaticRequirementPlanner, StdDisposableStack, StorageChangeEventOrigin, TIME_TRAIT_TOKEN, TRACING_TRAIT_TOKEN, TRANSPORT_TRAIT_TOKEN, TracingLevel, TransportErrorCode, UriParseError, UriReferenceString, UriReferenceStringSchema, UriRelativeString, UriRelativeStringSchema, UriString, UriStringSchema, UserRecovery, 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, formatValidationFailure, getSecuritydeptProviderToken, inject, injectDisposableStackFrom, injectRequirementPlannerHost, isCancellationTokenTrait, 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 };
1256
+ export { Base64CompatErrorCode, BaseRequirementPlanner, BaseURIStringSchema, CLIENT_ERROR_SPAN_ATTRIBUTE_PROVIDER_ID, ClientError, ClientErrorKind, ClientErrorSource, ConsoleTracingSubscriber, ENVIRONMENT_TOKEN, ErrorPresentationTone, EventSourceKind, FetchTransportRedirectKind, IDLE_CALLBACK_TRAIT_TOKEN, INJECTOR_TOKEN, IdentityPrincipalSchema, IdentityPrincipalWireSchema, JwtDecodeError, JwtDecodeErrorCode, MergeRequirementPlanner, OnceAsyncLockState, OperationSpan, OperationTraceEventType, PAGE_LIFECYCLE_TRAIT_TOKEN, PERSISTENT_STORAGE_TRAIT_TOKEN, POPUP_TRAIT_TOKEN, PipelineOutcome, PlanStatus, PopupAttachFailureReason, PopupClientWindowHandle, PopupErrorCode, PopupServerWindowHandle, REALM_STORAGE_TRAIT_TOKEN, REQUIREMENT_PLANNER_HOST, ROUTER_TRAIT_TOKEN, RequirementPlannerError, RequirementPlannerHost, RequirementsComposition, ResolutionStatus, ResourceError, ResourceErrorCode, ResourceSnapshotUpdateKind, ResourceStatus, RouteCompositionRequirementPlanner, RouterNavigationIntent, RouterNavigationMode, 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, SecuritydeptDestroyRef, SecuritydeptInjectionToken, SecuritydeptInjector, SimpleDisposableStack, SpanSharedAttributeName, StaticAttrsAuthRequirement, StaticRequirementPlanner, StdDisposableStack, StorageChangeEventOrigin, TIME_TRAIT_TOKEN, TRACING_SPAN_ATTRIBUTE_PROVIDER_ID, TRACING_TRAIT_TOKEN, TRANSPORT_TRAIT_TOKEN, TraceTimelineStore, TracingLevel, TransportErrorCode, UriParseError, UriReferenceString, UriReferenceStringSchema, UriRelativeString, UriRelativeStringSchema, UriString, UriStringSchema, UserRecovery, 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 };
1257
1257
 
1258
1258
  //# sourceMappingURL=index.mjs.map