@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/index.mjs CHANGED
@@ -1,12 +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-B3OU17wu.mjs";
2
- import { a as createJsonRpcServerAndClient, c as createSignal, i as createJsonRpcServer, l as readonlySignal, n as PopupServerWindowHandle, o as PopupErrorCode, r as createJsonRpcClient, s as readPopupErrorPresentationDescriptor, t as PopupClientWindowHandle, u as readErrorPresentationDescriptor } from "./handle-TnxwtQ4T.mjs";
3
- import { A as appendOrReplaceCompatFragment, B as validateWithSchemaSync, C as IDLE_CALLBACK_TRAIT_TOKEN, D as RouterNavigationMode, E as RouterNavigationIntent, F as PopupAttachFailureReason, G as PARENT_INJECTOR_TOKEN, H as EventSourceKind, I as formatValidationFailure, J as SecurityDeptOptional, K as SecuritydeptInjector, L as throwValidationClientError, M as parseCompatFragment, N as takeCompatFragment, O as takeCompatFragmentFromRouter, P as POPUP_TRAIT_TOKEN, Q as notMissingProvider, R as validateTraitInput, S as SPAN_TRAIT_TOKEN, T as ROUTER_TRAIT_TOKEN, U as isEventStreamTrait, V as PAGE_LIFECYCLE_TRAIT_TOKEN, W as INJECTOR_TOKEN, X as createProviderIfTokenMissing, Y as SecuritydeptInjectionToken, Z as getSecuritydeptProviderToken, _ as abortSignalToCancellationToken, a as TracingLevel, b as abortSignalToEventStream, c as PERSISTENT_STORAGE_TRAIT_TOKEN, d as StorageChangeEventOrigin, f as FetchTransportRedirectKind, g as createTimeForStd, h as TransportErrorCode, i as TRACING_TRAIT_TOKEN, j as isCompatFragmentBlock, k as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, l as REALM_STORAGE_TRAIT_TOKEN, m as TRANSPORT_TRAIT_TOKEN, n as ENVIRONMENT_TOKEN, o as createTracing, p as createBaseTransportForStdFetch, q as toRuntimeInjector, r as OperationTraceEventType, s as createInMemoryRecordStore, t as createFoundationEnvironment, u as SESSION_STORAGE_TRAIT_TOKEN, v as cancellationTokenToAbortSignal, w as TIME_TRAIT_TOKEN, x as createRootSpan, y as normalizeAbortError, z as validateWithSchema } from "./create-99Ksgl_O.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
4
  import { i as UriString, n as UriReferenceString, r as UriRelativeString, t as UriParseError } from "./uri-string-BPNbIMgv.mjs";
5
5
  import { v7 } from "uuid";
6
6
  import { inject as inject$1, runInInjectionContext as runInInjectionContext$1 } from "injection-js";
7
7
  import { EMPTY, NEVER, ReplaySubject, filter, from, merge, take, takeUntil } from "rxjs";
8
8
  import { type } from "arktype";
9
9
  import { isPromise } from "es-toolkit/predicate";
10
+ import { Queue } from "mnemonist";
10
11
  //#region src/auth-coordination/contract.ts
11
12
  var StaticAttrsAuthRequirement = class StaticAttrsAuthRequirement {
12
13
  id;
@@ -345,39 +346,27 @@ function createAuthorizationInterceptedFetch(fetchImpl, options) {
345
346
  //#endregion
346
347
  //#region src/tracing/operation-runner.ts
347
348
  var OperationSpan = class OperationSpan {
348
- _span;
349
+ span;
349
350
  _environment;
350
- _name;
351
351
  _target;
352
- constructor(_span, _environment, _name, _target) {
353
- this._span = _span;
352
+ constructor(span, _environment, _target) {
353
+ this.span = span;
354
354
  this._environment = _environment;
355
- this._name = _name;
356
355
  this._target = _target;
357
356
  }
358
357
  static start(options) {
359
- const operationSpan = new OperationSpan(options.span.fork({
358
+ const span = options.span.fork({
360
359
  mutable: true,
361
360
  idFactory: options.idFactory,
362
- attributes: options.fields
363
- }), 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);
364
365
  operationSpan.recordStarted();
365
366
  return operationSpan;
366
367
  }
367
- get id() {
368
- return this._span.id;
369
- }
370
- get parent() {
371
- return this._span.parent;
372
- }
373
- get attributes() {
374
- return this._span.attributes;
375
- }
376
- fork(options = {}) {
377
- return this._span.fork(options);
378
- }
379
- setAttributes(attributes) {
380
- this._span.setAttributes(attributes);
368
+ setTraceAttributes(attributes) {
369
+ this.span.setAttributes(attributes, { providerId: TRACING_SPAN_ATTRIBUTE_PROVIDER_ID });
381
370
  }
382
371
  addEvent(name, fields) {
383
372
  this._record(OperationTraceEventType.Event, TracingLevel.Info, {
@@ -401,38 +390,34 @@ var OperationSpan = class OperationSpan {
401
390
  this._environment.tracing.record({
402
391
  name,
403
392
  at: this._environment.time.now(),
404
- span: this,
393
+ span: this.span,
405
394
  level,
406
395
  target: this._target,
407
- fields: {
408
- operationName: this._name,
409
- ...this.attributes,
410
- ...fields ?? {}
411
- }
396
+ fields
412
397
  });
413
398
  }
414
399
  };
415
400
  function runOperation(options) {
416
401
  const operationSpan = OperationSpan.start(options);
417
- const complete = (result) => {
418
- operationSpan.recordEnded("succeeded");
419
- return result;
420
- };
421
- const fail = (error) => {
422
- const normalizedError = options.normalizeError?.(error) ?? error;
423
- operationSpan.recordError(normalizedError);
424
- operationSpan.recordEnded("failed");
425
- throw normalizedError;
426
- };
427
- const invoke = () => options.execute(operationSpan);
428
402
  try {
429
- const result = invoke();
430
- if (isPromise(result)) return result.then(complete, fail);
431
- 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);
432
406
  } catch (error) {
433
- return fail(error);
407
+ return failOperation(operationSpan, error, options.clientErrorFromUnknown);
434
408
  }
435
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
+ }
436
421
  //#endregion
437
422
  //#region src/tracing/operation-method.ts
438
423
  function defineInstrumentMethodDecorator(factory) {
@@ -452,9 +437,9 @@ function defineInstrumentMethodDecorator(factory) {
452
437
  span: resolvedOptions.span,
453
438
  name: resolvedOptions.name ?? methodName,
454
439
  target: resolvedOptions.target,
455
- fields: resolvedOptions.fields,
440
+ traceAttributes: resolvedOptions.traceAttributes,
456
441
  idFactory: resolvedOptions.idFactory,
457
- normalizeError: resolvedOptions.normalizeError,
442
+ clientErrorFromUnknown: resolvedOptions.clientErrorFromUnknown,
458
443
  execute: (span) => target.call(this, ...args, span)
459
444
  });
460
445
  };
@@ -462,71 +447,78 @@ function defineInstrumentMethodDecorator(factory) {
462
447
  }
463
448
  //#endregion
464
449
  //#region src/tracing/subscriber/console.ts
465
- function createConsoleTracingSubscriber() {
466
- return { record(event) {
450
+ var ConsoleTracingSubscriber = class {
451
+ record(event) {
467
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
+ };
468
457
  switch (event.level) {
469
458
  case "debug":
470
- console.debug(label, event.fields ?? {});
459
+ console.debug(label, details);
471
460
  break;
472
461
  case "info":
473
- console.info(label, event.fields ?? {});
462
+ console.info(label, details);
474
463
  break;
475
464
  case "warn":
476
- console.warn(label, event.fields ?? {});
465
+ console.warn(label, details);
477
466
  break;
478
- case "error": console.error(label, event.fields ?? {});
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
@@ -895,6 +887,13 @@ function createNeverEventStream() {
895
887
  return RxEventStream.fromObservableInput(NEVER);
896
888
  }
897
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
898
897
  //#region src/events/interop.ts
899
898
  function toEventStream(input) {
900
899
  if (isEventStreamTrait(input)) return input;
@@ -1254,6 +1253,6 @@ function isLoopbackHttpUrl(url) {
1254
1253
  return url.protocol === "http:" && (url.hostname === "localhost" || url.hostname === "127.0.0.1" || url.hostname === "::1" || url.hostname === "[::1]");
1255
1254
  }
1256
1255
  //#endregion
1257
- 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 };
1258
1257
 
1259
1258
  //# sourceMappingURL=index.mjs.map