@securitydept/client 0.3.0-beta.2 → 0.3.0-beta.5

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 (57) hide show
  1. package/README.md +6 -0
  2. package/dist/create-Bm-XRA3G.mjs +1573 -0
  3. package/dist/create-Bm-XRA3G.mjs.map +1 -0
  4. package/dist/index-BT-u3qNI.d.mts +133 -0
  5. package/dist/index-Ch8lrE44.d.mts +625 -0
  6. package/dist/index-D5mW18cM.d.mts +1648 -0
  7. package/dist/index.d.mts +3 -353
  8. package/dist/index.mjs +1124 -362
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/router-BJ8LqNJ1.mjs +245 -0
  11. package/dist/router-BJ8LqNJ1.mjs.map +1 -0
  12. package/dist/rx/index.d.mts +69 -0
  13. package/dist/rx/index.mjs +2 -0
  14. package/dist/rx-BoB32Dzg.mjs +1106 -0
  15. package/dist/rx-BoB32Dzg.mjs.map +1 -0
  16. package/dist/server/index.d.mts +21 -0
  17. package/dist/server/index.mjs +29 -0
  18. package/dist/server/index.mjs.map +1 -0
  19. package/dist/test/index.d.mts +102 -0
  20. package/dist/test/index.mjs +270 -0
  21. package/dist/test/index.mjs.map +1 -0
  22. package/dist/uri-string-BfnIT4gJ.mjs +298 -0
  23. package/dist/uri-string-BfnIT4gJ.mjs.map +1 -0
  24. package/dist/web/index.d.mts +82 -336
  25. package/dist/web/index.mjs +328 -337
  26. package/dist/web/index.mjs.map +1 -1
  27. package/dist/webext/index.d.mts +74 -0
  28. package/dist/webext/index.mjs +229 -0
  29. package/dist/webext/index.mjs.map +1 -0
  30. package/package.json +28 -21
  31. package/dist/auth-coordination/index.d.mts +0 -198
  32. package/dist/auth-coordination/index.mjs +0 -107
  33. package/dist/auth-coordination/index.mjs.map +0 -1
  34. package/dist/events/index.d.mts +0 -2
  35. package/dist/events/index.mjs +0 -2
  36. package/dist/events-BUlfsRfl.mjs +0 -127
  37. package/dist/events-BUlfsRfl.mjs.map +0 -1
  38. package/dist/fetch-transport-Bd5RyWj2.d.mts +0 -339
  39. package/dist/fetch-transport-DtnSRWAH.mjs +0 -631
  40. package/dist/fetch-transport-DtnSRWAH.mjs.map +0 -1
  41. package/dist/index-C_wgl6dW.d.mts +0 -102
  42. package/dist/index-DbYSFHDe.d.mts +0 -39
  43. package/dist/persistence/index.d.mts +0 -3
  44. package/dist/persistence/index.mjs +0 -2
  45. package/dist/persistence/web/index.d.mts +0 -16
  46. package/dist/persistence/web/index.mjs +0 -51
  47. package/dist/persistence/web/index.mjs.map +0 -1
  48. package/dist/persistence-CSB8770k.mjs +0 -108
  49. package/dist/persistence-CSB8770k.mjs.map +0 -1
  50. package/dist/planner-host-CPyGNyQV.d.mts +0 -190
  51. package/dist/planner-host-CV38bMSn.mjs +0 -195
  52. package/dist/planner-host-CV38bMSn.mjs.map +0 -1
  53. package/dist/types-C59fcM5W.d.mts +0 -52
  54. package/dist/types-DQc088ZP.d.mts +0 -32
  55. package/dist/web-router/index.d.mts +0 -259
  56. package/dist/web-router/index.mjs +0 -395
  57. package/dist/web-router/index.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,353 +1,3 @@
1
- import { C as EventSource, D as ReplaySubjectTrait, E as EventSubscriptionTrait, O as RuntimeEventEnvelope, S as EventObserver, T as EventStreamTrait, _ as createEventStream, a as filter, b as fromRxObservable, c as merge, d as shareReplay, f as switchMap, g as withLatestFromSignal, h as throttleTime, i as exhaustMap, k as SubjectTrait, l as pipe, m as tap, n as concatMap, o as finalize, p as takeUntil, r as debounceTime, s as map, t as EventOperator, u as share, v as createReplaySubject, w as EventSourceKind, x as toRxObservable, y as createSubject } from "./index-C_wgl6dW.mjs";
2
- import { n as ReadableSignalTrait, r as WritableSignalTrait, t as ComputedSignalTrait } from "./types-DQc088ZP.mjs";
3
- import { A as OperationTraceEventType, C as CancelableHandle$1, D as LogLevel, E as LogEntry, F as CancellationTokenSourceTrait, I as CancellationTokenTrait, L as DisposableTrait, M as TraceEvent, N as TraceEventSinkTrait, O as LoggerTrait, P as CancelableHandle, S as HttpTransport, T as Scheduler, _ as scheduleAt, a as FromPromiseOptions, b as HttpRequest, c as PromiseSettlement, d as Subscription, f as TimerOptions, g as interval, h as fromSignal, i as FromEventPatternOptions, j as OperationTracerTrait, k as OperationScope, l as PromiseSettlementKind, m as fromPromise, n as FetchTransportRedirectKind, o as FromSignalOptions, p as fromEventPattern, s as IntervalOptions, u as ScheduleAtOptions, v as timer, w as Clock, x as HttpResponse, y as ClientRuntime } from "./fetch-transport-Bd5RyWj2.mjs";
4
- import { a as RecordStore, i as PersistentAuthStore, n as EphemeralFlowStore, o as RecoverableStateStore, r as KeyedEphemeralFlowStore, s as StoredEnvelope, t as Codec } from "./types-C59fcM5W.mjs";
5
- import { a as createEphemeralFlowStore, n as createJsonCodec, o as createKeyedEphemeralFlowStore, t as createInMemoryRecordStore } from "./index-DbYSFHDe.mjs";
6
- import { StandardSchemaV1 } from "@standard-schema/spec";
7
-
8
- //#region src/signals/computed.d.ts
9
- /**
10
- * Create a computed signal that derives its value from other signals.
11
- *
12
- * Semantics: lazy + cached.
13
- * - The compute function is NOT called at construction time.
14
- * - `get()` recomputes only when dirty (a dependency changed since last read).
15
- * - Subscribers are notified only when a dependency changes (dirty-flagged),
16
- * and the next `get()` will produce the fresh value.
17
- *
18
- * Dependency subscriptions are permanent for the lifetime of the computed signal.
19
- */
20
- declare function createComputed<T>(compute: () => T, deps: ReadableSignalTrait<unknown>[]): ComputedSignalTrait<T>;
21
- //#endregion
22
- //#region src/signals/signal.d.ts
23
- /**
24
- * Minimal writable signal implementation.
25
- * Snapshot-first: values are immutable snapshots, mutations go through `set()`.
26
- */
27
- declare function createSignal<T>(initial: T): WritableSignalTrait<T>;
28
- /**
29
- * Create a read-only view of a writable signal.
30
- */
31
- declare function readonlySignal<T>(signal: WritableSignalTrait<T>): ReadableSignalTrait<T>;
32
- //#endregion
33
- //#region src/cancellation/cancellation-token.d.ts
34
- /**
35
- * Create a `CancellationTokenSource` that produces a cooperative cancellation token.
36
- */
37
- declare function createCancellationTokenSource(): CancellationTokenSourceTrait;
38
- //#endregion
39
- //#region src/cancellation/linked-cancellation-token.d.ts
40
- /**
41
- * Create a cancellation token that fires when ANY of the given source tokens
42
- * is cancelled.
43
- *
44
- * - Zero sources → returns a token that is never cancelled.
45
- * - One source → returns that source directly (no allocation).
46
- * - N sources → creates a linked source, subscribes to all, and cleans up
47
- * subscriptions once the linked token fires.
48
- *
49
- * @example
50
- * const cts = createCancellationTokenSource();
51
- * const linked = createLinkedCancellationToken(clientRoot.token, cts.token);
52
- * await transport.execute({ ..., cancellationToken: linked });
53
- */
54
- declare function createLinkedCancellationToken(...sources: CancellationTokenTrait[]): CancellationTokenTrait;
55
- //#endregion
56
- //#region src/errors/types.d.ts
57
- /** Recovery actions the user might take. Aligned with server-side `UserRecovery`. */
58
- declare const UserRecovery: {
59
- readonly None: "none";
60
- readonly Retry: "retry";
61
- readonly RestartFlow: "restart_flow";
62
- readonly Reauthenticate: "reauthenticate";
63
- readonly ContactSupport: "contact_support";
64
- };
65
- type UserRecovery = (typeof UserRecovery)[keyof typeof UserRecovery];
66
- /** User-facing error presentation. `code` is the cross-platform stable contract. */
67
- interface ErrorPresentation {
68
- code: string;
69
- message: string;
70
- recovery: UserRecovery;
71
- }
72
- declare const ErrorPresentationTone: {
73
- readonly Neutral: "neutral";
74
- readonly Warning: "warning";
75
- readonly Danger: "danger";
76
- };
77
- type ErrorPresentationTone = (typeof ErrorPresentationTone)[keyof typeof ErrorPresentationTone];
78
- interface ErrorPresentationActionDescriptor {
79
- recovery: UserRecovery;
80
- label: string;
81
- href: string | null;
82
- }
83
- interface ErrorPresentationDescriptor {
84
- code: string | null;
85
- kind: ClientErrorKind | null;
86
- source?: string;
87
- title: string;
88
- description: string;
89
- recovery: UserRecovery;
90
- retryable: boolean;
91
- tone: ErrorPresentationTone;
92
- primaryAction: ErrorPresentationActionDescriptor | null;
93
- }
94
- interface ReadErrorPresentationDescriptorOptions {
95
- fallbackTitle?: string;
96
- fallbackDescription?: string;
97
- recoveryLinks?: Partial<Record<UserRecovery, string>>;
98
- recoveryLabels?: Partial<Record<UserRecovery, string>>;
99
- }
100
- /** Machine-facing error kind discriminator. */
101
- declare const ClientErrorKind: {
102
- readonly Authorization: "authorization";
103
- readonly Transport: "transport";
104
- readonly Server: "server";
105
- readonly Protocol: "protocol";
106
- readonly Presentation: "presentation";
107
- readonly Validation: "validation";
108
- readonly Storage: "storage";
109
- readonly Scheduler: "scheduler";
110
- readonly Configuration: "configuration";
111
- readonly Unauthenticated: "unauthenticated";
112
- readonly Unauthorized: "unauthorized";
113
- readonly RedirectRequired: "redirect_required";
114
- readonly Cancelled: "cancelled";
115
- readonly Timeout: "timeout";
116
- readonly Internal: "internal";
117
- };
118
- type ClientErrorKind = (typeof ClientErrorKind)[keyof typeof ClientErrorKind];
119
- /** Stable source vocabulary for common client error producers. */
120
- declare const ClientErrorSource: {
121
- readonly Transport: "transport";
122
- readonly Server: "server";
123
- readonly ClientRuntime: "client_runtime";
124
- };
125
- type ClientErrorSource = (typeof ClientErrorSource)[keyof typeof ClientErrorSource];
126
- //#endregion
127
- //#region src/errors/client-error.d.ts
128
- /**
129
- * Base client error carrying both machine-facing context and an optional
130
- * user-facing presentation layer.
131
- *
132
- * Top-level `code` and `recovery` provide stable machine contracts for
133
- * policy decisions without requiring callers to unwrap `presentation`.
134
- */
135
- declare class ClientError extends Error {
136
- readonly kind: ClientErrorKind;
137
- /**
138
- * Stable machine-readable error code.
139
- * Matches `presentation.code` when present, otherwise a default
140
- * derived from `kind`.
141
- */
142
- readonly code: string;
143
- /** Recovery hint at the machine level. */
144
- readonly recovery: UserRecovery;
145
- /** Whether this error is safe to retry. */
146
- readonly retryable: boolean;
147
- /** Structured user-facing error presentation from the server. */
148
- readonly presentation?: ErrorPresentation;
149
- /** Source subsystem or component that produced the error. */
150
- readonly source?: string;
151
- constructor(options: {
152
- kind: ClientErrorKind;
153
- message: string;
154
- code?: string;
155
- recovery?: UserRecovery;
156
- retryable?: boolean;
157
- presentation?: ErrorPresentation;
158
- source?: string;
159
- cause?: unknown;
160
- });
161
- /** Create a `ClientError` from a server error response body. */
162
- static fromServerError(body: {
163
- kind?: string;
164
- code?: string;
165
- message?: string;
166
- recovery?: string;
167
- presentation?: {
168
- code?: string;
169
- message?: string;
170
- recovery?: string;
171
- };
172
- }, overrides?: {
173
- kind?: ClientErrorKind;
174
- source?: string;
175
- }): ClientError;
176
- /**
177
- * Create a `ClientError` from an HTTP response status and optional body.
178
- * Used when a non-success status is unexpected.
179
- */
180
- static fromHttpResponse(status: number, body?: unknown): ClientError;
181
- }
182
- //#endregion
183
- //#region src/errors/presentation-descriptor.d.ts
184
- declare function readErrorPresentationDescriptor(error: unknown, options?: ReadErrorPresentationDescriptorOptions): ErrorPresentationDescriptor;
185
- //#endregion
186
- //#region src/identity/principal.d.ts
187
- interface AuthenticatedPrincipal {
188
- subject: string;
189
- displayName: string;
190
- picture?: string;
191
- issuer?: string;
192
- claims?: Record<string, unknown>;
193
- }
194
- type PrincipalObject = Record<string, unknown>;
195
- declare function normalizeAuthenticatedPrincipal(input: PrincipalObject): AuthenticatedPrincipal | null;
196
- declare function normalizeAuthenticatedPrincipalWire(input: PrincipalObject): AuthenticatedPrincipal | null;
197
- interface ProjectAuthenticatedPrincipalOptions {
198
- principal?: AuthenticatedPrincipal | null;
199
- fallbackDisplayName?: string;
200
- fallbackSubject?: string;
201
- fallbackIssuer?: string;
202
- fallbackClaims?: Record<string, unknown>;
203
- }
204
- declare function projectAuthenticatedPrincipal(options: ProjectAuthenticatedPrincipalOptions): AuthenticatedPrincipal;
205
- //#endregion
206
- //#region src/logging/console-logger.d.ts
207
- /** Simple console-based logger implementation. */
208
- declare function createConsoleLogger(scope?: string): LoggerTrait;
209
- //#endregion
210
- //#region src/logging/noop-logger.d.ts
211
- /** No-op logger — default when no logger is provided. */
212
- declare function createNoopLogger(): LoggerTrait;
213
- //#endregion
214
- //#region src/logging/operation-tracer.d.ts
215
- interface CreateOperationTracerOptions {
216
- traceSink?: TraceEventSinkTrait;
217
- logger?: LoggerTrait;
218
- clock?: Clock;
219
- scope?: string;
220
- source?: string;
221
- idFactory?: () => string;
222
- }
223
- declare function createOperationTracer(options?: CreateOperationTracerOptions): OperationTracerTrait;
224
- //#endregion
225
- //#region src/logging/trace-timeline-store.d.ts
226
- interface TraceTimelineEntry extends TraceEvent {
227
- id: number;
228
- recordedAtIso: string;
229
- }
230
- interface TraceTimelineStore extends TraceEventSinkTrait {
231
- get(): readonly TraceTimelineEntry[];
232
- subscribe(listener: () => void): () => void;
233
- clear(): void;
234
- }
235
- declare function createTraceTimelineStore(limit?: number): TraceTimelineStore;
236
- //#endregion
237
- //#region src/runtime/create-runtime.d.ts
238
- interface CreateRuntimeOptions extends Partial<Omit<ClientRuntime, "transport">> {
239
- transport: HttpTransport;
240
- }
241
- /**
242
- * Create a `ClientRuntime` with non-host-specific defaults filled in for
243
- * convenience.
244
- *
245
- * Host-specific capabilities such as browser `fetch` should be supplied
246
- * explicitly or composed via adapter-specific helpers such as
247
- * `@securitydept/client/web`.
248
- */
249
- declare function createRuntime(overrides: CreateRuntimeOptions): ClientRuntime;
250
- //#endregion
251
- //#region src/scheduling/default-clock.d.ts
252
- /** Default clock backed by `Date.now()`. */
253
- declare function createDefaultClock(): Clock;
254
- //#endregion
255
- //#region src/scheduling/default-scheduler.d.ts
256
- /** Default scheduler backed by platform `setTimeout`. */
257
- declare function createDefaultScheduler(): Scheduler;
258
- //#endregion
259
- //#region src/validation/index.d.ts
260
- /**
261
- * Successful validation result.
262
- *
263
- * Contains the parsed, typed output value from the schema.
264
- */
265
- interface ValidationSuccess<T> {
266
- readonly success: true;
267
- readonly value: T;
268
- }
269
- /**
270
- * Failed validation result.
271
- *
272
- * Contains the list of issues reported by the schema.
273
- */
274
- interface ValidationFailure {
275
- readonly success: false;
276
- readonly issues: ReadonlyArray<StandardSchemaV1.Issue>;
277
- }
278
- /**
279
- * Discriminated union of validation outcomes.
280
- *
281
- * Consumers can narrow on `success` to access either the typed value
282
- * or the issue list.
283
- */
284
- type ValidationResult<T> = ValidationSuccess<T> | ValidationFailure;
285
- /**
286
- * Validate an unknown input against a `@standard-schema`-compatible schema.
287
- *
288
- * This is the foundation-level entry point for SDK validation. It accepts
289
- * any schema implementing `StandardSchemaV1` and returns a discriminated
290
- * `ValidationResult`.
291
- *
292
- * @example
293
- * ```ts
294
- * import { validateWithSchema } from "@securitydept/client";
295
- * import { z } from "zod";
296
- *
297
- * const UserSchema = z.object({ name: z.string() });
298
- * const result = await validateWithSchema(UserSchema, { name: "Alice" });
299
- * if (result.success) {
300
- * console.log(result.value.name);
301
- * } else {
302
- * console.error(result.issues);
303
- * }
304
- * ```
305
- */
306
- declare function validateWithSchema<I, O>(schema: StandardSchemaV1<I, O>, input: unknown): Promise<ValidationResult<O>>;
307
- /**
308
- * Validate an unknown input synchronously against a `@standard-schema`-compatible schema.
309
- *
310
- * Only use this when you know the schema's validate function returns synchronously.
311
- * Throws if the schema returns a Promise.
312
- */
313
- declare function validateWithSchemaSync<I, O>(schema: StandardSchemaV1<I, O>, input: unknown): ValidationResult<O>;
314
- /**
315
- * Options for creating a foundation schema.
316
- */
317
- interface CreateSchemaOptions<O> {
318
- /** Validation function: returns typed output or returns issues. */
319
- readonly validate: (input: unknown) => {
320
- readonly value: O;
321
- } | {
322
- readonly issues: ReadonlyArray<StandardSchemaV1.Issue>;
323
- };
324
- }
325
- /**
326
- * Create a minimal `@standard-schema`-compatible schema without requiring
327
- * an external validation library.
328
- *
329
- * This is useful for SDK-internal schemas where pulling in zod/valibot
330
- * would be excessive. For adopter-facing schemas, prefer a real validation
331
- * library.
332
- *
333
- * @example
334
- * ```ts
335
- * import { createSchema, validateWithSchema } from "@securitydept/client";
336
- *
337
- * const NameSchema = createSchema<unknown, { name: string }>({
338
- * validate(input) {
339
- * if (typeof input === "object" && input !== null && "name" in input &&
340
- * typeof (input as any).name === "string") {
341
- * return { value: { name: (input as any).name } };
342
- * }
343
- * return { issues: [{ message: "Expected object with string 'name'" }] };
344
- * },
345
- * });
346
- *
347
- * const result = await validateWithSchema(NameSchema, { name: "Alice" });
348
- * ```
349
- */
350
- declare function createSchema<O>(options: CreateSchemaOptions<O>): StandardSchemaV1<unknown, O>;
351
- //#endregion
352
- export { type AuthenticatedPrincipal, type CancelableHandle, type CancellationTokenSourceTrait, type CancellationTokenTrait, ClientError, ClientErrorKind, ClientErrorSource, type ClientRuntime, type Clock, type Codec, type ComputedSignalTrait, type CreateOperationTracerOptions, type CreateRuntimeOptions, type DisposableTrait, type EphemeralFlowStore, type ErrorPresentation, type ErrorPresentationActionDescriptor, type ErrorPresentationDescriptor, ErrorPresentationTone, type EventObserver, type EventOperator, type EventSource, EventSourceKind, type EventStreamTrait, type EventSubscriptionTrait, FetchTransportRedirectKind, type FromEventPatternOptions, type FromPromiseOptions, type FromSignalOptions, type HttpRequest, type HttpResponse, type HttpTransport, type IntervalOptions, type KeyedEphemeralFlowStore, type LogEntry, LogLevel, type LoggerTrait, type OperationScope, OperationTraceEventType, type OperationTracerTrait, type PersistentAuthStore, type ProjectAuthenticatedPrincipalOptions, type PromiseSettlement, PromiseSettlementKind, type ReadErrorPresentationDescriptorOptions, type ReadableSignalTrait, type RecordStore, type RecoverableStateStore, type ReplaySubjectTrait, type RuntimeEventEnvelope, type ScheduleAtOptions, type Scheduler, type CancelableHandle$1 as SchedulerCancelableHandle, type StoredEnvelope, type SubjectTrait, type Subscription, type TimerOptions, type TraceEvent, type TraceEventSinkTrait, type TraceTimelineEntry, type TraceTimelineStore, UserRecovery, type ValidationFailure, type ValidationResult, type ValidationSuccess, type WritableSignalTrait, concatMap, createCancellationTokenSource, createComputed, createConsoleLogger, createDefaultClock, createDefaultScheduler, createEphemeralFlowStore, createEventStream, createInMemoryRecordStore, createJsonCodec, createKeyedEphemeralFlowStore, createLinkedCancellationToken, createNoopLogger, createOperationTracer, createReplaySubject, createRuntime, createSchema, createSignal, createSubject, createTraceTimelineStore, debounceTime, exhaustMap, filter, finalize, fromEventPattern, fromPromise, fromRxObservable, fromSignal, interval, map, merge, normalizeAuthenticatedPrincipal, normalizeAuthenticatedPrincipalWire, pipe, projectAuthenticatedPrincipal, readErrorPresentationDescriptor, readonlySignal, scheduleAt, share, shareReplay, switchMap, takeUntil, tap, throttleTime, timer, toRxObservable, validateWithSchema, validateWithSchemaSync, withLatestFromSignal };
353
- //# sourceMappingURL=index.d.mts.map
1
+ import { $ as ErrorPresentationActionDescriptor, $t as notMissingProvider, A as ResourceErrorSnapshot, At as StdDisposableStack, Bt as SecuritydeptClassProvider, C as IDLE_CALLBACK_TRAIT_TOKEN, Ct as AsyncDisposableTrait, D as TimestampProviderTrait, Dt as SYMBOL_DISPOSABLE_STACK, E as TimeTrait, Et as SYMBOL_ASYNC_DISPOSE, F as ResourceResolvedSnapshot, Ft as inject, G as CancellationTokenTrait, Gt as SecuritydeptInjectionToken, H as CancelableHandle, Ht as SecuritydeptDependencyToken, I as ResourceSnapshot, It as runInInjectionContext, J as ClientErrorFromUnknownOptions, Jt as SecuritydeptTypeProvider, K as ClientError, Kt as SecuritydeptInjectorTrait, L as ResourceStatus, Lt as tryInjectInInjectionContext, M as ResourceLoadingErrorSnapshot, Mt as injectDisposableStackFrom, N as ResourceLoadingSnapshot, Nt as withDisposableStack, O as ComputedSignalTrait, Ot as SYMBOL_DISPOSE, P as ResourceReloadingSnapshot, Pt as SecuritydeptInjectOptions, Q as ErrorPresentation, Qt as getSecuritydeptProviderToken, R as ResourceTrait, Rt as SecurityDeptOptional, S as isCancellationTokenTrait, St as createSecuritydeptDestroyRef, T as TIME_TRAIT_TOKEN, Tt as DisposableTrait, U as CancellationTokenOptions, Ut as SecuritydeptExistingProvider, V as WritableSignalTrait, Vt as SecuritydeptDependencyDescriptor, W as CancellationTokenSourceTrait, Wt as SecuritydeptFactoryProvider, X as ClientErrorSource, Xt as WithTraitDeps, Y as ClientErrorKind, Yt as SecuritydeptValueProvider, Z as ErrorCodePresentationDescriptor, Zt as createProviderIfTokenMissing, _t as WithInteropObservableTraitCompat, a as mapResource, at as EventOperatorFunction, b as createLinkedCancellationToken, bt as SecuritydeptInjector, ct as EventStreamTrait, dt as RuntimeEventEnvelope, et as ErrorPresentationDescriptor, ft as InteropObservableTrait, gt as SubscriptionTrait, ht as SubscribableTrait, it as EventObserverTrait, j as ResourceIdleSnapshot, jt as createDisposableStack, k as ReadableSignalTrait, kt as SimpleDisposableStack, lt as EventSubjectTrait, mt as SYMBOL_OBSERVABLE, nt as ReadErrorPresentationDescriptorOptions, o as resourceFromSnapshots, ot as EventSource, pt as ObserverTrait, q as ClientErrorFromHttpResponseOptions, qt as SecuritydeptProvider, rt as UserRecovery, st as EventSourceKind, t as parseDurationToMs, tt as ErrorPresentationTone, ut as EventSubscriptionTrait, vt as isInteropObservableTrait, w as IdleCallbackTrait, wt as DisposableStackTrait, x as createCancellationTokenSource, xt as SecuritydeptDestroyRef, yt as INJECTOR_TOKEN, z as ResourceWhenValueOptions, zt as SecuritydeptAbstractType } from "./index-Ch8lrE44.mjs";
2
+ import { $ as REQUIREMENT_PLANNER_HOST, $n as isCompatFragmentBlock, $r as CreateJsonRpcClientOptions, $t as REALM_STORAGE_TRAIT_TOKEN, A as cancellationTokenToAbortSignal, Ai as decodeBase64ToUint8Array, An as validateTraitInput, Ar as PopupClientWindowHandle, At as UnauthenticatedAction, B as IdentityPrincipalWireSchema, Bn as RouterNavigationRequest, Br as flattenResourceSnapshot, Bt as TracingCreateOptions, C as OnceAsyncLockSuccess, Ci as readErrorPresentationDescriptor, Cn as ValidateTraitInputOptions, Cr as PopupAttachSuccess, Ct as RouteBehaviourContextExtra, D as createEphemeralFlowStore, Di as PageLifecycleTrait, Dn as WithTraitInputValidator, Dr as CreatePopupServerSessionOptions, Dt as SelectCandidate, E as createJsonCodec, Ei as PAGE_LIFECYCLE_TRAIT_TOKEN, En as ValidationSuccess, Er as CreatePopupClientSessionOptions, Et as RouteTreeSegment, F as decodeJwtPayload, Fn as SpanCreateOptions, Fr as PopupWindowHandleTrait, Ft as createFoundationEnvironment, G as ProjectIdentityPrincipalOptions, Gn as AppendOrReplaceCompatFragmentResult, Gr as createResource, Gt as TracingEvent, H as parseIdentityPrincipalWire, Hn as TakeCompatFragmentFromRouterOptions, Hr as whenResourceSnapshotValue, Ht as TracingSubscriberTrait, I as DecodeJwtPayloadOptions, In as SpanTrait, Ir as createSignal, It as ENVIRONMENT_TOKEN, J as MergeRequirementPlanner, Jn as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, Jr as ResourceValueUnavailableErrorOptions, Jt as Codec, K as StaticRequirementPlanner, Kn as CompatFragment, Kr as ResourceError, Kt as TracingLevel, L as JwtAudienceClaim, Ln as ROUTER_TRAIT_TOKEN, Lr as readonlySignal, Lt as EnvironmentValidators, M as createRootSpan, Mn as validateWithSchemaSync, Mr as PopupMessageChannelTrait, Mt as isRouteStateSnapshotTrait, N as JwtDecodeError, Nn as OperationSpanTrait, Nr as PopupServerWindowHandle, Nt as resolveEffectiveRequirements, O as createKeyedEphemeralFlowStore, Oi as promisesToRacedAsyncGenerator, On as formatValidationFailure, Or as PopupErrorCode, Ot as StaticAttrsAuthRequirement, P as JwtDecodeErrorCode, Pn as SPAN_TRAIT_TOKEN, Pr as PopupServerWindowHandleTrait, Pt as CreateFoundationEnvironmentOptions, Q as ProvideRequirementPlannerHostOptions, Qn as appendOrReplaceCompatFragment, Qr as createJsonRpcServerAndClient, Qt as PersistentAuthStore, R as JwtClaimsSet, Rn as RouterNavigationIntent, Rr as ResourceSnapshotUpdate, Rt as FoundationEnvironment, S as OnceAsyncLockState, Si as abortSignalToEventStream, Sn as TraitInputValidator, Sr as PopupAttachResult, St as ResolutionStatus, T as createInMemoryRecordStore, Ti as describeError, Tn as ValidationResult, Tr as PopupTrait, Tt as RouteStateSnapshotTrait, U as projectIdentityPrincipal, Un as takeCompatFragmentFromRouter, Ur as CreateResourceOptions, Ut as OperationTraceEventType, V as parseIdentityPrincipal, Vn as RouterTrait, Vr as reduceResourceSnapshot, Vt as createTracing, W as IdentityPrincipal, Wn as AppendOrReplaceCompatFragmentOptions, Wr as ResourceStreamContext, Wt as TRACING_TRAIT_TOKEN, X as RequirementPlan, Xn as TakeCompatFragmentResult, Xr as createJsonRpcClient, Xt as KeyedEphemeralFlowStore, Y as BaseRequirementPlanner, Yn as TakeCompatFragmentOptions, Yr as createComputed, Yt as EphemeralFlowStore, Z as InjectRequirementPlannerHostOptions, Zn as UpdateUriFragmentHash, Zr as createJsonRpcServer, Zt as PERSISTENT_STORAGE_TRAIT_TOKEN, _ as OnceAsyncLock, _i as createEmptyEventStream, _n as AuthorizationSignal, _r as UriRelativeStringSchema, _t as RequirementCandidateGenerator, a as createConsoleTracingSubscriber, ai as JsonRpcId, an as StoredEnvelope, ar as UriReferenceStringInput, at as provideRequirementPlannerHost, b as OnceAsyncLockInit, bi as createEventSubject, bn as TimeForStdCreateOptions, br as PopupAttachFailure, bt as RequirementResolution, c as InstrumentMethodResolvedOptions, ci as JsonRpcNotificationMessage, cn as FetchTransportRedirectKind, cr as UriRelativeString, ct as CheckAuthenticated, d as defineInstrumentMethodDecorator, di as JsonRpcRequestOptions, dn as HttpRequest, dr as SECURITYDEPT_ROUTE_METADATA_KEY, dt as PipelineRunResult, ei as CreateJsonRpcServerAndClientOptions, en as RecoverableStateStore, er as parseCompatFragment, et as RequirementPlannerHost, f as OperationSpan, fi as JsonRpcServerAndClientTrait, fn as HttpResponse, fr as SecuritydeptRouteMetadata, ft as PipelineStepResult, g as runOperation, gi as toEventStream, gn as AuthorizationInterceptedFetchPredicate, gr as UriReferenceStringSchema, gt as RequirementBehaviourWithRouteContext, h as RunOperationOptionsBase, hi as ToEventStreamInput, hn as TransportErrorCode, hr as BaseURIStringSchema, ht as RequirementBehaviourContext, i as createTraceTimelineStore, ii as JsonRpcErrorResponseMessage, in as StorageTrait, ir as UriReferenceString, it as injectRequirementPlannerHost, j as normalizeAbortError, ji as encodeUint8ArrayToBase64, jn as validateWithSchema, jr as PopupClientWindowHandleTrait, jt as isRouteBehaviourContextExtra, k as abortSignalToCancellationToken, ki as Base64CompatErrorCode, kn as throwValidationClientError, kr as readPopupErrorPresentationDescriptor, kt as StaticAttrsAuthRequirementInput, l as InstrumentMethodThisContext, li as JsonRpcRequestEvent, ln as createBaseTransportForStdFetch, lr as UriSearchParamsInit, lt as OnUnauthenticated, m as RunOperationOptions, mi as JsonRpcSuccessResponseMessage, mn as TRANSPORT_TRAIT_TOKEN, mr as writeSecuritydeptRouteMetadata, mt as RequirementBehaviour, n as TraceTimelineEntry, ni as JsonRpcClientTrait, nn as StorageChangeEvent, nr as UriFragmentPart, nt as RequirementPlannerHostOptions, o as DefineInstrumentMethodDecoratorContext, oi as JsonRpcMessage, on as SyncStorageTrait, or as UriReferenceStringLike, ot as AuthRequirement, p as RunOperationEnvironment, pi as JsonRpcServerTrait, pn as HttpResponseJsonBody, pr as readSecuritydeptRouteMetadata, pt as PlanStatus, q as RouteCompositionRequirementPlanner, qn as CompatFragmentParameters, qr as ResourceErrorCode, qt as TracingTrait, r as TraceTimelineStore, ri as JsonRpcErrorPayload, rn as StorageChangeEventOrigin, rr as UriParseError, rt as defaultSelectCandidate, s as DefineInstrumentMethodDecoratorFactory, si as JsonRpcNotificationEvent, sn as BaseTransportForStdFetchCreateOptions, sr as UriRelativeParts, st as AuthenticatedCheck, t as isLoopbackHttpUrl, ti as CreateJsonRpcServerOptions, tn as SESSION_STORAGE_TRAIT_TOKEN, tr as takeCompatFragment, tt as RequirementPlannerHostBehaviour, u as InstrumentMethodThisResolver, ui as JsonRpcRequestMessage, un as BaseTransportTrait, ur as UriString, ut as PipelineOutcome, v as OnceAsyncLockCallable, vi as createEventReplaySubject, vn as CreateAuthorizationInterceptedFetchOptions, vr as UriStringSchema, vt as RequirementCandidateSelectionContext, w as createOnceAsyncLockCallable, wi as ErrorSummary, wn as ValidationFailure, wr as PopupOpenOptions, wt as RouteRequirementsDeclaration, x as OnceAsyncLockRunning, xi as createNeverEventStream, xn as createTimeForStd, xr as PopupAttachFailureReason, xt as RequirementsComposition, y as OnceAsyncLockError, yi as createEventStream, yn as createAuthorizationInterceptedFetch, yr as POPUP_TRAIT_TOKEN, yt as RequirementPlannerError, z as IdentityPrincipalSchema, zn as RouterNavigationMode, zr as ResourceSnapshotUpdateKind, zt as ServiceWorkerEnvironment } from "./index-D5mW18cM.mjs";
3
+ export { AppendOrReplaceCompatFragmentOptions, AppendOrReplaceCompatFragmentResult, AsyncDisposableTrait, AuthRequirement, AuthenticatedCheck, AuthorizationInterceptedFetchPredicate, AuthorizationSignal, Base64CompatErrorCode, BaseRequirementPlanner, BaseTransportForStdFetchCreateOptions, BaseTransportTrait, BaseURIStringSchema, CancelableHandle, CancellationTokenOptions, CancellationTokenSourceTrait, CancellationTokenTrait, CheckAuthenticated, ClientError, ClientErrorFromHttpResponseOptions, ClientErrorFromUnknownOptions, ClientErrorKind, ClientErrorSource, Codec, CompatFragment, CompatFragmentParameters, ComputedSignalTrait, CreateAuthorizationInterceptedFetchOptions, CreateFoundationEnvironmentOptions, CreateJsonRpcClientOptions, CreateJsonRpcServerAndClientOptions, CreateJsonRpcServerOptions, CreatePopupClientSessionOptions, CreatePopupServerSessionOptions, CreateResourceOptions, DecodeJwtPayloadOptions, DefineInstrumentMethodDecoratorContext, DefineInstrumentMethodDecoratorFactory, DisposableStackTrait, DisposableTrait, ENVIRONMENT_TOKEN, EnvironmentValidators, EphemeralFlowStore, ErrorCodePresentationDescriptor, ErrorPresentation, ErrorPresentationActionDescriptor, ErrorPresentationDescriptor, ErrorPresentationTone, ErrorSummary, EventObserverTrait, EventOperatorFunction, EventSource, EventSourceKind, EventStreamTrait, EventSubjectTrait, EventSubscriptionTrait, FetchTransportRedirectKind, FoundationEnvironment, HttpRequest, HttpResponse, HttpResponseJsonBody, IDLE_CALLBACK_TRAIT_TOKEN, INJECTOR_TOKEN, IdentityPrincipal, IdentityPrincipalSchema, IdentityPrincipalWireSchema, IdleCallbackTrait, InjectRequirementPlannerHostOptions, InstrumentMethodResolvedOptions, InstrumentMethodThisContext, InstrumentMethodThisResolver, InteropObservableTrait, JsonRpcClientTrait, JsonRpcErrorPayload, JsonRpcErrorResponseMessage, JsonRpcId, JsonRpcMessage, JsonRpcNotificationEvent, JsonRpcNotificationMessage, JsonRpcRequestEvent, JsonRpcRequestMessage, JsonRpcRequestOptions, JsonRpcServerAndClientTrait, JsonRpcServerTrait, JsonRpcSuccessResponseMessage, JwtAudienceClaim, JwtClaimsSet, JwtDecodeError, JwtDecodeErrorCode, KeyedEphemeralFlowStore, MergeRequirementPlanner, ObserverTrait, OnUnauthenticated, OnceAsyncLock, OnceAsyncLockCallable, OnceAsyncLockError, OnceAsyncLockInit, OnceAsyncLockRunning, OnceAsyncLockState, OnceAsyncLockSuccess, OperationSpan, OperationSpanTrait, OperationTraceEventType, PAGE_LIFECYCLE_TRAIT_TOKEN, PERSISTENT_STORAGE_TRAIT_TOKEN, POPUP_TRAIT_TOKEN, PageLifecycleTrait, PersistentAuthStore, PipelineOutcome, PipelineRunResult, PipelineStepResult, PlanStatus, PopupAttachFailure, PopupAttachFailureReason, PopupAttachResult, PopupAttachSuccess, PopupClientWindowHandle, PopupClientWindowHandleTrait, PopupErrorCode, PopupMessageChannelTrait, PopupOpenOptions, PopupServerWindowHandle, PopupServerWindowHandleTrait, PopupTrait, PopupWindowHandleTrait, ProjectIdentityPrincipalOptions, ProvideRequirementPlannerHostOptions, REALM_STORAGE_TRAIT_TOKEN, REQUIREMENT_PLANNER_HOST, ROUTER_TRAIT_TOKEN, ReadErrorPresentationDescriptorOptions, ReadableSignalTrait, RecoverableStateStore, RequirementBehaviour, RequirementBehaviourContext, RequirementBehaviourWithRouteContext, RequirementCandidateGenerator, RequirementCandidateSelectionContext, RequirementPlan, RequirementPlannerError, RequirementPlannerHost, RequirementPlannerHostBehaviour, RequirementPlannerHostOptions, RequirementResolution, RequirementsComposition, ResolutionStatus, ResourceError, ResourceErrorCode, ResourceErrorSnapshot, ResourceIdleSnapshot, ResourceLoadingErrorSnapshot, ResourceLoadingSnapshot, ResourceReloadingSnapshot, ResourceResolvedSnapshot, ResourceSnapshot, ResourceSnapshotUpdate, ResourceSnapshotUpdateKind, ResourceStatus, ResourceStreamContext, ResourceTrait, ResourceValueUnavailableErrorOptions, ResourceWhenValueOptions, RouteBehaviourContextExtra, RouteCompositionRequirementPlanner, RouteRequirementsDeclaration, RouteStateSnapshotTrait, RouteTreeSegment, RouterNavigationIntent, RouterNavigationMode, RouterNavigationRequest, RouterTrait, RunOperationEnvironment, RunOperationOptions, RunOperationOptionsBase, 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, SecuritydeptAbstractType, SecuritydeptClassProvider, SecuritydeptDependencyDescriptor, SecuritydeptDependencyToken, SecuritydeptDestroyRef, SecuritydeptExistingProvider, SecuritydeptFactoryProvider, SecuritydeptInjectOptions, SecuritydeptInjectionToken, SecuritydeptInjector, SecuritydeptInjectorTrait, SecuritydeptProvider, SecuritydeptRouteMetadata, SecuritydeptTypeProvider, SecuritydeptValueProvider, SelectCandidate, ServiceWorkerEnvironment, SimpleDisposableStack, SpanCreateOptions, SpanTrait, StaticAttrsAuthRequirement, StaticAttrsAuthRequirementInput, StaticRequirementPlanner, StdDisposableStack, StorageChangeEvent, StorageChangeEventOrigin, StorageTrait, StoredEnvelope, SubscribableTrait, SubscriptionTrait, SyncStorageTrait, TIME_TRAIT_TOKEN, TRACING_TRAIT_TOKEN, TRANSPORT_TRAIT_TOKEN, TakeCompatFragmentFromRouterOptions, TakeCompatFragmentOptions, TakeCompatFragmentResult, TimeForStdCreateOptions, TimeTrait, TimestampProviderTrait, ToEventStreamInput, TraceTimelineEntry, TraceTimelineStore, TracingCreateOptions, TracingEvent, TracingLevel, TracingSubscriberTrait, TracingTrait, TraitInputValidator, TransportErrorCode, UnauthenticatedAction, UpdateUriFragmentHash, UriFragmentPart, UriParseError, UriReferenceString, UriReferenceStringInput, UriReferenceStringLike, UriReferenceStringSchema, UriRelativeParts, UriRelativeString, UriRelativeStringSchema, UriSearchParamsInit, UriString, UriStringSchema, UserRecovery, ValidateTraitInputOptions, ValidationFailure, ValidationResult, ValidationSuccess, WithInteropObservableTraitCompat, WithTraitDeps, WithTraitInputValidator, 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, 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 };