@ethlete/query 6.0.0-next.24 → 6.0.0-next.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/query",
3
- "version": "6.0.0-next.24",
3
+ "version": "6.0.0-next.26",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -13,7 +13,6 @@
13
13
  "@ethlete/types": "^2.0.0-beta.4",
14
14
  "@nx/devkit": "23.1.0",
15
15
  "rxjs": "7.8.2",
16
- "socket.io-client": "4.8.3",
17
16
  "typescript": "6.0.3",
18
17
  "vite": "8.1.5"
19
18
  },
@@ -24,9 +23,6 @@
24
23
  "@nx/devkit": {
25
24
  "optional": true
26
25
  },
27
- "socket.io-client": {
28
- "optional": true
29
- },
30
26
  "typescript": {
31
27
  "optional": true
32
28
  },
@@ -1,4 +1,4 @@
1
- import { AnyCreateQueryClientResult, QueryClientRef, createGetQuery, createPostQuery, createPutQuery, createPatchQuery, createDeleteQuery, BearerAuthProviderFeatureContext, AnyQueryBuilder, BearerAuthProvider, AuthQueryBuilder, TokenRefreshQueryBuilder, TokenRefreshQueryConfig, QueryPersistenceAdapter, PersistedQueryEntry } from '@ethlete/query';
1
+ import { AnyCreateQueryClientResult, QueryClientRef, createGetQuery, createPostQuery, createPutQuery, createPatchQuery, createDeleteQuery, BearerAuthProviderFeatureContext, AnyQueryBuilder, BearerAuthProvider, AuthQueryBuilder, TokenRefreshQueryBuilder, TokenRefreshQueryConfig, QueryPersistenceAdapter, PersistedQueryEntry, WebSocketClientIo, SocketMessageView } from '@ethlete/query';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { HttpTestingController } from '@angular/common/http/testing';
4
4
  import { Injector } from '@angular/core';
@@ -249,5 +249,44 @@ declare const expectFlushAndWait: <T = unknown>(httpTesting: HttpTestingControll
249
249
  statusText: string;
250
250
  }) => void;
251
251
 
252
- export { createFakeQueryPersistenceStore, expectAndFlush, expectFlushAndWait, flushMultiTabSync, installFakeBroadcastChannel, installFakeWebLocks, setupAuthTest, setupQueryTest };
253
- export type { AnyFeatureBuilder, AuthTestSetup, AuthTestSetupConfig, FakeBroadcastChannelHandle, FakeBroadcastMessage, FakeQueryPersistenceStoreHandle, FakeWebLocksHandle, QueryTestSetup, QueryTestSetupConfig };
252
+ /** A scripted stand-in for `socket.io-client`'s `io`, driven from a spec. */
253
+ type WebSocketTestDouble = {
254
+ /** Pass this as `createWebSocketClient({ io })`. */
255
+ io: WebSocketClientIo;
256
+ /** The url and options the client called the factory with, or `null` until it did. */
257
+ connection: () => {
258
+ url: string;
259
+ transports: string[] | undefined;
260
+ } | null;
261
+ /** Every message the client sent, newest last - room joins and leaves included. */
262
+ sent: () => {
263
+ event: string;
264
+ data: unknown;
265
+ }[];
266
+ /** Whether the client asked the socket to connect, and whether it has since disconnected it. */
267
+ state: () => {
268
+ connectRequested: boolean;
269
+ disconnected: boolean;
270
+ };
271
+ /** Complete the handshake, so the client's `isConnected` turns true and queued rooms re-join. */
272
+ serverConnect: () => void;
273
+ /** Drop the connection, so `isConnected` turns false. */
274
+ serverDisconnect: () => void;
275
+ /** Deliver a message the way the server would. */
276
+ serverSend: (message: SocketMessageView) => void;
277
+ /** Deliver a raw frame, for the malformed-payload path. */
278
+ serverSendRaw: (frame: string) => void;
279
+ };
280
+ /**
281
+ * A socket io test double, for specs around `createWebSocketClient` - which takes its `io` factory as
282
+ * an option precisely so a spec (or an app that never opens a socket) needs no `socket.io-client`.
283
+ *
284
+ * Nothing here connects on its own: the client's own `connect()` only flips
285
+ * {@link WebSocketTestDouble.state}, and it is {@link WebSocketTestDouble.serverConnect} that fires
286
+ * the `connect` listener. That split is what makes "joined a room while disconnected, and the join
287
+ * was re-sent on connect" testable.
288
+ */
289
+ declare const createWebSocketTestDouble: () => WebSocketTestDouble;
290
+
291
+ export { createFakeQueryPersistenceStore, createWebSocketTestDouble, expectAndFlush, expectFlushAndWait, flushMultiTabSync, installFakeBroadcastChannel, installFakeWebLocks, setupAuthTest, setupQueryTest };
292
+ export type { AnyFeatureBuilder, AuthTestSetup, AuthTestSetupConfig, FakeBroadcastChannelHandle, FakeBroadcastMessage, FakeQueryPersistenceStoreHandle, FakeWebLocksHandle, QueryTestSetup, QueryTestSetupConfig, WebSocketTestDouble };
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { DestroyRef, EnvironmentInjector, ErrorHandler, WritableSignal, Signal, Injector, CreateEffectOptions, EnvironmentProviders, CreateComputedOptions, InjectionToken, TrackByFunction, PipeTransform, OnInit, OnDestroy } from '@angular/core';
3
3
  import * as _ethlete_core from '@ethlete/core';
4
- import { ProviderDefinition, RuntimeError } from '@ethlete/core';
4
+ import { RuntimeError, ProviderDefinition } from '@ethlete/core';
5
5
  import * as rxjs from 'rxjs';
6
6
  import { Observable, Subscribable, BehaviorSubject } from 'rxjs';
7
7
  import * as _angular_common_http from '@angular/common/http';
@@ -40,18 +40,9 @@ type DescribableFeature = {
40
40
  devtools?: QueryDevtoolsFeatureDescriber;
41
41
  };
42
42
 
43
- /**
44
- * Route building, query-string serialization and the token clock - shared by the current generation and
45
- * the legacy V2 client, which re-exports them under their original names.
46
- */
47
- declare const buildErrorMessage: (code: string, message: string) => string;
48
- declare class QueryError extends Error {
49
- data?: unknown;
50
- constructor(code: string, message: string, data?: unknown);
51
- }
52
- declare const invalidBaseRouteError: (data: unknown) => QueryError;
53
- declare const invalidRouteError: (data: unknown) => QueryError;
54
- declare const pathParamsMissingInRouteFunctionError: (data: unknown) => QueryError;
43
+ declare const invalidBaseRouteError: (data: unknown) => RuntimeError<1>;
44
+ declare const invalidRouteError: (data: unknown) => RuntimeError<2>;
45
+ declare const pathParamsMissingInRouteFunctionError: (data: unknown) => RuntimeError<3>;
55
46
  type QueryParams = object;
56
47
  type PathParams = Record<string, string | number>;
57
48
  /** A literal route, or a function building one from path params. Structurally the legacy `AnyRoute`. */
@@ -514,6 +505,121 @@ type QueryDevtoolsFormLinksRecorder = QueryDevtoolsFormLinksHandle & {
514
505
  track: <T>(build: () => T) => T;
515
506
  };
516
507
 
508
+ /**
509
+ * A JSON-pointer-style path into a response body: object keys and array indices, root first. Captured
510
+ * by the devtools panel from wherever the user opened the overrides menu in the value explorer.
511
+ */
512
+ type JsonPath = (string | number)[];
513
+ /**
514
+ * One path-addressed edit an override registry replays against the live response on every fetch. Unlike
515
+ * the panel's raw-JSON JIT editor, an op describes *how* to change a value rather than freezing the
516
+ * whole body, which is what lets it survive a refetch that returns a differently-valued but same-shaped
517
+ * response.
518
+ *
519
+ * `reset` is never stored or replayed - arming one clears the other ops already armed at its exact path
520
+ * instead, so the panel's "reset this value" action and its "arm an edit" actions share one entry point.
521
+ */
522
+ type OverrideOp = {
523
+ type: 'set';
524
+ path: JsonPath;
525
+ value: unknown;
526
+ } | {
527
+ type: 'stringPreset';
528
+ path: JsonPath;
529
+ preset: 'short' | 'long' | 'unicode' | 'custom';
530
+ custom?: string;
531
+ } | {
532
+ type: 'numberPreset';
533
+ path: JsonPath;
534
+ preset: 'zero' | 'negative' | 'huge' | 'custom';
535
+ custom?: number;
536
+ } | {
537
+ type: 'booleanFlip';
538
+ path: JsonPath;
539
+ } | {
540
+ type: 'datePreset';
541
+ path: JsonPath;
542
+ preset: 'now' | 'plusDay' | 'minusDay' | 'farFuture' | 'farPast' | 'invalid';
543
+ } | {
544
+ type: 'duplicateArrayItem';
545
+ path: JsonPath;
546
+ index: number;
547
+ } | {
548
+ type: 'duplicateArray';
549
+ path: JsonPath;
550
+ } | {
551
+ type: 'paginationResize';
552
+ path: JsonPath;
553
+ mode: 'shrink' | 'extend';
554
+ amount: number;
555
+ } | {
556
+ type: 'reset';
557
+ path: JsonPath;
558
+ };
559
+ /** One op armed on a query, with the id its owning {@link QueryDevtoolsOverridesHandle} lists it under. */
560
+ type QueryDevtoolsOverrideEntry = {
561
+ id: string;
562
+ op: OverrideOp;
563
+ };
564
+ /** The read side of an overrides recorder, as a {@link QueryDevtoolsEntry} exposes it to the panel. */
565
+ type QueryDevtoolsOverridesHandle = {
566
+ /** Every op currently armed on this query, oldest first - the order {@link applyQueryDevtoolsOverrides} replays them in. */
567
+ list: Signal<readonly QueryDevtoolsOverrideEntry[]>;
568
+ /** Disarms one op by id. */
569
+ clear: (id: string) => void;
570
+ /** Disarms every op on this query. */
571
+ clearAll: () => void;
572
+ };
573
+ /** The write side, used by the instrumentation inside the query itself. */
574
+ type QueryDevtoolsOverridesRecorder = QueryDevtoolsOverridesHandle & {
575
+ /**
576
+ * Arms a new op, or - for `{ type: 'reset' }` - disarms whatever op(s) already sit at that exact path
577
+ * instead of adding one.
578
+ */
579
+ arm: (op: OverrideOp) => void;
580
+ };
581
+ /**
582
+ * Clones `item` (a plain object array element) with every identity-shaped field replaced by a fresh
583
+ * value, so a duplicated row never collides with the one it was copied from. A field counts as identity
584
+ * when its key looks like one (`id`, `fooId`, `uuid`, `key`) or every sibling in `siblings` holds a
585
+ * distinct value for it - without this, `track` bindings and detail-by-id lookups can't tell the copy
586
+ * from the original.
587
+ */
588
+ declare const smartDuplicateArrayItem: (item: unknown, siblings: readonly unknown[]) => unknown;
589
+ /**
590
+ * The shape of a paginated response this module knows how to resize, matching the variants declared in
591
+ * `@ethlete/types`' pagination types.
592
+ */
593
+ type PaginationShape = 'gg-like' | 'dyn-like' | 'normalized' | 'contentful-gql-like';
594
+ /**
595
+ * Whether `value` structurally matches one of the pagination shapes shrink/extend know how to resize -
596
+ * an `items` array plus a recognized combination of total/page/limit counters. Exported so the panel's
597
+ * menu can offer shrink/extend only where it would actually apply.
598
+ */
599
+ declare const detectPaginationShape: (value: unknown) => PaginationShape | null;
600
+ /**
601
+ * Whether a leaf is offered date presets instead of string presets: its key looks date-shaped
602
+ * (`date`, `fooAt`, `fooTimestamp`) and its value round-trips through `Date.parse`, or the value
603
+ * itself matches an ISO-8601 date/datetime pattern regardless of what its key is called. Exported so
604
+ * the panel's menu can decide which preset list to show without duplicating the check.
605
+ */
606
+ declare const isDateShapedLeaf: (key: string | number | null, value: unknown) => boolean;
607
+ /**
608
+ * Every path under `value` (relative to it, not absolute) whose leaf is of `kind` - the paths a "fill
609
+ * recursively" menu action turns into one `set`-family op each. Exported so the panel's menu builds the
610
+ * op list with the exact same walk the docs describe, rather than a second, possibly-drifted one.
611
+ */
612
+ declare const collectLeafPaths: (value: unknown, kind: "string" | "number" | "boolean") => JsonPath[];
613
+ /**
614
+ * Replays `entries` against `raw`, in order, and reports which ones no longer resolve. Shared by the
615
+ * pipeline (which only needs {@link value}) and the panel's menu (which previews a value and marks stale
616
+ * ops before arming a new one) - one implementation, so the two cannot drift.
617
+ */
618
+ declare const applyQueryDevtoolsOverrides: (entries: readonly QueryDevtoolsOverrideEntry[], raw: unknown) => {
619
+ value: unknown;
620
+ staleIds: string[];
621
+ };
622
+
517
623
  /**
518
624
  * What a query did over its lifetime, as the devtools panel accounts for it: how often it ran, how many
519
625
  * of those runs reached the network, and how much payload they moved.
@@ -556,6 +662,13 @@ type QueryDevtoolsStats = {
556
662
  lastDurationMs: number | null;
557
663
  /** The sum of every response's duration, which together with {@link responses} gives the average. */
558
664
  totalDurationMs: number;
665
+ /**
666
+ * Whether the query's last completed run ended in a devtools fault rather than a real server
667
+ * response or failure - the fact the panel's tamper indicator badges on. Cleared by the next real
668
+ * response; a run that exhausts its retries on a real error also clears it, since nothing about that
669
+ * outcome was altered by the devtools.
670
+ */
671
+ lastResponseWasFaulted: boolean;
559
672
  };
560
673
  /** A payload whose transferred size is to be measured, plus the headers it came with (if any). */
561
674
  type QueryDevtoolsPayload = {
@@ -630,7 +743,9 @@ type QueryDevtoolsStatsRecorder = QueryDevtoolsStatsHandle & {
630
743
  url?: string;
631
744
  }) => void;
632
745
  recordResponse: (payload: QueryDevtoolsPayload) => void;
633
- recordError: () => void;
746
+ recordError: (options?: {
747
+ faulted?: boolean;
748
+ }) => void;
634
749
  /**
635
750
  * Raises the attempt count of the run in flight. Idempotent per attempt, so a caller driven off a
636
751
  * signal may report the same attempt more than once without inflating {@link QueryDevtoolsStats.retries}.
@@ -639,6 +754,17 @@ type QueryDevtoolsStatsRecorder = QueryDevtoolsStatsHandle & {
639
754
  attempt: number;
640
755
  }) => void;
641
756
  };
757
+ /**
758
+ * The size of a payload in bytes, and whether that size is the one that went over the wire. Only a
759
+ * `content-length` header is exact; everything else is measured by serializing the body.
760
+ *
761
+ * Part of the devtools contract - the panel measures the cache and the event log with it. **Not part of
762
+ * the general public contract.**
763
+ */
764
+ declare const measureQueryDevtoolsPayload: (payload: QueryDevtoolsPayload) => {
765
+ bytes: number;
766
+ isExact: boolean;
767
+ };
642
768
  /**
643
769
  * Adds up the stats of several entries, for a stack's or a client's total. `lastDurationMs` is taken from
644
770
  * whichever entry responded most recently rather than summed.
@@ -657,6 +783,11 @@ type SetupQueryStateOptions<TArgs extends QueryArgs> = {
657
783
  * not installed.
658
784
  */
659
785
  devtoolsFormLinks?: QueryDevtoolsFormLinksRecorder | null;
786
+ /**
787
+ * The recorder of response overrides armed on this query, or nothing when the devtools are not
788
+ * installed. Replayed against every response that settles into {@link QueryState.rawResponse}.
789
+ */
790
+ devtoolsOverrides?: QueryDevtoolsOverridesRecorder | null;
660
791
  };
661
792
  type QueryStateSubtle<TArgs extends QueryArgs> = {
662
793
  request: WritableSignal<HttpRequest<TArgs> | null>;
@@ -2041,7 +2172,7 @@ type HttpRequestLoadingProgressState = {
2041
2172
  loaded: number;
2042
2173
  /** The percentage of the transfer that is completed */
2043
2174
  percentage: number;
2044
- /** The speed of the transfer in bytes per millisecond */
2175
+ /** The speed of the transfer in bytes per second */
2045
2176
  speed: number | null;
2046
2177
  /** The estimated remaining time in milliseconds */
2047
2178
  remainingTime: number | null;
@@ -2128,6 +2259,13 @@ type HttpRequestSubtle<TArgs extends QueryArgs> = {
2128
2259
  attempts: Signal<number>;
2129
2260
  /** The retry currently being waited out, or `null` when none is. @see HttpRequestRetryState */
2130
2261
  retryState: Signal<HttpRequestRetryState | null>;
2262
+ /**
2263
+ * How long the last settled execution took, measured from the `execute()` that started it - so it
2264
+ * covers every attempt and the backoff between them, not just the last round trip. `null` until one
2265
+ * has settled, and untouched by a response adopted from another tab or from disk, neither of which
2266
+ * this request spent any time on.
2267
+ */
2268
+ lastDurationMs: Signal<number | null>;
2131
2269
  };
2132
2270
  type HttpRequest<TArgs extends QueryArgs> = {
2133
2271
  /** The HTTP method of the request. */
@@ -2187,6 +2325,11 @@ type HttpRequest<TArgs extends QueryArgs> = {
2187
2325
  type HttpErrorEvent = {
2188
2326
  type: 'error';
2189
2327
  error: QueryErrorResponse;
2328
+ /**
2329
+ * Whether this error is a devtools fault the panel armed, rather than a real server failure - the
2330
+ * fact `lastResponseWasFaulted` (`query-devtools-stats.ts`) is built from.
2331
+ */
2332
+ faulted?: boolean;
2190
2333
  };
2191
2334
  type RequestHttpEvent<TArgs extends QueryArgs> = HttpEvent<ResponseType<TArgs>> | HttpErrorEvent;
2192
2335
  declare const createHttpRequest: <TArgs extends QueryArgs>(options: CreateHttpRequestOptions<TArgs>) => HttpRequest<TArgs>;
@@ -2745,6 +2888,10 @@ declare const QueryRuntimeErrorCode: {
2745
2888
  readonly CIRCULAR_QUERY_DEPENDENCY: 800;
2746
2889
  readonly QUERY_SEQUENCE_ALREADY_RUNNING: 900;
2747
2890
  readonly LEGACY_PREPARE_WITHOUT_INJECTION_CONTEXT: 950;
2891
+ readonly LEGACY_QUERY_STATE_ALREADY_HAS_KEY: 951;
2892
+ readonly LEGACY_QUERY_STATE_DOES_NOT_CONTAIN_KEY: 952;
2893
+ readonly LEGACY_QUERY_STATE_CANNOT_TRANSFORM: 953;
2894
+ readonly LEGACY_INVALID_BODY: 954;
2748
2895
  };
2749
2896
  type QueryRuntimeErrorCode = (typeof QueryRuntimeErrorCode)[keyof typeof QueryRuntimeErrorCode];
2750
2897
  declare const queryFeatureUsedMultipleTimes: (type: QueryFeatureType) => RuntimeError<0>;
@@ -3645,7 +3792,11 @@ type BearerAuthExecutionStateLogout = {
3645
3792
  type: 'logout';
3646
3793
  state: 'success';
3647
3794
  };
3648
- type BearerAuthExecutionState<TType extends string = string> = BearerAuthExecutionStateLoading<TType> | BearerAuthExecutionStateSuccess<TType> | BearerAuthExecutionStateError<TType> | BearerAuthExecutionStateLogout;
3795
+ type BearerAuthExecutionStateTokenSeed = {
3796
+ type: 'tokenSeed';
3797
+ state: 'success';
3798
+ };
3799
+ type BearerAuthExecutionState<TType extends string = string> = BearerAuthExecutionStateLoading<TType> | BearerAuthExecutionStateSuccess<TType> | BearerAuthExecutionStateError<TType> | BearerAuthExecutionStateLogout | BearerAuthExecutionStateTokenSeed;
3649
3800
  declare const BearerAuthFeatureType: {
3650
3801
  readonly PERSISTENT_AUTH: "PERSISTENT_AUTH";
3651
3802
  readonly TOKEN_EXPIRATION_WARNING: "TOKEN_EXPIRATION_WARNING";
@@ -3791,15 +3942,16 @@ type BearerAuthProvider<TBuilders extends readonly AnyQueryBuilder[], TFeatures
3791
3942
  * The current execution state of the auth provider.
3792
3943
  * Tracks the latest auth operation (login, autoLogin, tokenRefresh, logout, revocation) with its state and payload.
3793
3944
  */
3794
- executionState: Signal<BearerAuthExecutionState<ExtractQueryKey<TBuilders[number]> | 'autoLogin' | 'tokenRefresh' | 'logout' | 'revocation'> | null>;
3945
+ executionState: Signal<BearerAuthExecutionState<ExtractQueryKey<TBuilders[number]> | 'autoLogin' | 'tokenRefresh' | 'logout' | 'revocation' | 'tokenSeed'> | null>;
3795
3946
  /**
3796
3947
  * Seeds the provider with tokens that were issued outside of it - an SSO/OIDC callback that
3797
3948
  * arrives with both tokens in the URL, a token handed over by a native shell, a test harness.
3798
3949
  *
3799
- * Behaves exactly like a successful auth query: the tokens are applied, `bearerData` /
3800
- * `isAuthenticated` update, `afterTokenRefresh$` emits so waiting secure queries run, and (unless
3801
- * disabled) other tabs are synced. Without it the only way in is to execute the refresh query with
3802
- * the refresh token and throw the access token away.
3950
+ * Behaves like a successful auth query: the tokens are applied, `bearerData` / `isAuthenticated`
3951
+ * update, `executionState` becomes `{ type: 'tokenSeed', state: 'success' }`, `afterTokenRefresh$`
3952
+ * emits so waiting secure queries run, and (unless disabled) other tabs are synced. Without it the
3953
+ * only way in is to execute the refresh query with the refresh token and throw the access token
3954
+ * away.
3803
3955
  *
3804
3956
  * Does **not** persist anything by itself - `withPersistentAuth` picks the tokens up through the
3805
3957
  * same signals it watches for query-issued ones.
@@ -4067,6 +4219,12 @@ type QueryDevtoolsEntry = {
4067
4219
  stats?: QueryDevtoolsStatsHandle;
4068
4220
  /** The query forms this entry's args read, for queries created with a `withArgs` feature. */
4069
4221
  formLinks?: QueryDevtoolsFormLinksHandle;
4222
+ /**
4223
+ * The response overrides armed on this entry, for queries. Unlike {@link stats}/{@link formLinks} -
4224
+ * whose write side is internal instrumentation the panel only ever reads - the panel itself is what
4225
+ * arms an override, so this exposes the full recorder rather than a read-only handle.
4226
+ */
4227
+ overrides?: QueryDevtoolsOverridesRecorder;
4070
4228
  };
4071
4229
  /**
4072
4230
  * What an instrumentation site hands to the registry. Raw values (`route`, `clientRef`) are rendered
@@ -4097,6 +4255,8 @@ type QueryDevtoolsRegistration = {
4097
4255
  stats?: QueryDevtoolsStatsHandle;
4098
4256
  /** @see QueryDevtoolsEntry.formLinks */
4099
4257
  formLinks?: QueryDevtoolsFormLinksHandle;
4258
+ /** @see QueryDevtoolsEntry.overrides */
4259
+ overrides?: QueryDevtoolsOverridesRecorder;
4100
4260
  };
4101
4261
  /** The registry {@link provideQueryDevtools} installs. */
4102
4262
  type QueryDevtoolsRegistrar = (entry: QueryDevtoolsRegistration) => () => void;
@@ -6375,8 +6535,8 @@ declare class QueryDevtoolsComponent {
6375
6535
  readonly refreshBuffer: number | "30000 (default)";
6376
6536
  readonly expiresInPropertyName: string;
6377
6537
  readonly strategy: _ethlete_query.AuthBearerRefreshStrategy | "AuthBearerRefreshStrategy.BeforeExpiration (default)";
6378
- readonly requestArgsAdapter: "default" | "custom";
6379
- readonly responseAdapter: "default" | "custom";
6538
+ readonly requestArgsAdapter: "custom" | "default";
6539
+ readonly responseAdapter: "custom" | "default";
6380
6540
  };
6381
6541
  readonly name?: undefined;
6382
6542
  readonly value?: undefined;
@@ -6736,19 +6896,19 @@ declare class QueryDirective<Q extends QueryDirectiveType | null> {
6736
6896
  /**
6737
6897
  * @deprecated Part of the legacy (v2) query system. Migrate to the current query API - see https://ethlete-sdk-docs.web.app/query/migrating-from-v2, and run `nx g @ethlete/query:migrate-to-query-v3` to rewrite the mechanical parts. Intent to remove in v7.
6738
6898
  */
6739
- declare const queryStateAlreadyHasKeyError: (data: unknown) => QueryError;
6899
+ declare const queryStateAlreadyHasKeyError: (data: unknown) => RuntimeError<951>;
6740
6900
  /**
6741
6901
  * @deprecated Part of the legacy (v2) query system. Migrate to the current query API - see https://ethlete-sdk-docs.web.app/query/migrating-from-v2, and run `nx g @ethlete/query:migrate-to-query-v3` to rewrite the mechanical parts. Intent to remove in v7.
6742
6902
  */
6743
- declare const queryStateDoesNotContainKeyError: (data: unknown) => QueryError;
6903
+ declare const queryStateDoesNotContainKeyError: (data: unknown) => RuntimeError<952>;
6744
6904
  /**
6745
6905
  * @deprecated Part of the legacy (v2) query system. Migrate to the current query API - see https://ethlete-sdk-docs.web.app/query/migrating-from-v2, and run `nx g @ethlete/query:migrate-to-query-v3` to rewrite the mechanical parts. Intent to remove in v7.
6746
6906
  */
6747
- declare const queryStateCannotTransformError: (data: unknown) => QueryError;
6907
+ declare const queryStateCannotTransformError: (data: unknown) => RuntimeError<953>;
6748
6908
  /**
6749
6909
  * @deprecated Part of the legacy (v2) query system. Migrate to the current query API - see https://ethlete-sdk-docs.web.app/query/migrating-from-v2, and run `nx g @ethlete/query:migrate-to-query-v3` to rewrite the mechanical parts. Intent to remove in v7.
6750
6910
  */
6751
- declare const invalidBodyError: (data: unknown) => QueryError;
6911
+ declare const invalidBodyError: (data: unknown) => RuntimeError<954>;
6752
6912
 
6753
6913
  /**
6754
6914
  * The args accepted by the creator's `prepare()` - includes `mock`/`config` extras.
@@ -7132,6 +7292,11 @@ type WebSocketDevtoolsMessage = {
7132
7292
  room: string;
7133
7293
  event: string;
7134
7294
  data: unknown;
7295
+ /**
7296
+ * Whether the message arrived from the server or was sent by this client - room joins and leaves
7297
+ * included, which is what makes "the room was never joined" tellable from "the room is quiet".
7298
+ */
7299
+ direction: 'in' | 'out';
7135
7300
  };
7136
7301
  /**
7137
7302
  * The live handle a web socket client registers with the devtools. Read by the `<et-query-devtools>`
@@ -7141,13 +7306,55 @@ type WebSocketDevtoolsHandle = {
7141
7306
  connected: Signal<boolean>;
7142
7307
  rooms: Signal<string[]>;
7143
7308
  messages: Signal<WebSocketDevtoolsMessage[]>;
7309
+ /**
7310
+ * Sends a message the way the app would, so the panel can provoke a server that only answers a
7311
+ * client that asked. Recorded in {@link messages} like any other outgoing one.
7312
+ */
7313
+ emit: (options: {
7314
+ event: string;
7315
+ data: unknown;
7316
+ }) => void;
7144
7317
  };
7145
7318
  type CreateWebSocketClientTransport = 'polling' | 'websocket' | 'webtransport';
7319
+ /** The options {@link createWebSocketClient} passes to the socket io factory. */
7320
+ type WebSocketClientIoOptions = {
7321
+ withCredentials: boolean;
7322
+ autoConnect: boolean;
7323
+ transports: CreateWebSocketClientTransport[] | undefined;
7324
+ };
7325
+ /** The slice of a socket io `Socket` this client drives. */
7326
+ type WebSocketClientSocket = {
7327
+ connect: () => void;
7328
+ disconnect: () => void;
7329
+ emit: (event: string, data: unknown) => void;
7330
+ on: (event: 'connect' | 'disconnect', listener: () => void) => void;
7331
+ onAny: (listener: (data: string) => void) => void;
7332
+ };
7333
+ /**
7334
+ * The `io` factory of `socket.io-client`, declared structurally.
7335
+ *
7336
+ * `@ethlete/query` never imports `socket.io-client` itself: the package ships no `sideEffects: false`,
7337
+ * so a single static import of it is unshakeable and would cost *every* consumer ~13 kB gz - a
7338
+ * REST-only app included, which could then not even build without installing the optional peer.
7339
+ * Passing `io` in keeps that cost with the apps that actually open a socket.
7340
+ */
7341
+ type WebSocketClientIo = (url: string, options: WebSocketClientIoOptions) => WebSocketClientSocket;
7146
7342
  type CreateWebSocketClientConfigOptions = {
7147
7343
  /** A unique name for the client */
7148
7344
  name: string;
7149
7345
  /** The URL of the socket io server */
7150
7346
  url: string;
7347
+ /**
7348
+ * The `io` factory, imported by the app: `import { io } from 'socket.io-client'`.
7349
+ *
7350
+ * @example
7351
+ * ```ts
7352
+ * import { io } from 'socket.io-client';
7353
+ *
7354
+ * const MATCH_SOCKET = createWebSocketClient({ name: 'match', url: env.wsUrl, io });
7355
+ * ```
7356
+ */
7357
+ io: WebSocketClientIo;
7151
7358
  /** A list of transports to try (in order). Engine.io always attempts to connect directly with the first one, provided the feature detection test for it passes. */
7152
7359
  transports?: CreateWebSocketClientTransport[];
7153
7360
  };
@@ -7185,5 +7392,5 @@ type WebSocketClientResult<TMessageData extends SocketMessageView = SocketMessag
7185
7392
  type AnyWebSocketClient<TMessageData extends SocketMessageView = SocketMessageView> = WebSocketClientResult<TMessageData>;
7186
7393
  declare const createWebSocketClient: <TMessageData extends SocketMessageView = SocketMessageView>(options: CreateWebSocketClientConfigOptions) => WebSocketClientResult<TMessageData>;
7187
7394
 
7188
- export { AuthBearerRefreshStrategy, BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, CLEAR_QUERY_ARGS, CustomHeaderAuthProvider, DEFAULT_KEEP_UNUSED_FOR, DEFAULT_QUERY_PERSISTENCE_MAX_AGE, DEFAULT_QUERY_PERSISTENCE_MAX_ENTRIES, DEFAULT_QUERY_PERSISTENCE_VERSION, DEFAULT_QUERY_PERSISTENCE_WRITE_DELAY, DateArrayQueryField, DateQueryField, EMPTY_QUERY_DEVTOOLS_FAULT, EntityStore, IGNORED_FILTER_COUNT_FIELDS, INFINITY_QUERY_TOKEN, InfinityQuery, InfinityQueryDirective, InfinityQueryTriggerDirective, LegacyQuery, LegacyQueryCreator, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryError, QueryFeatureType, QueryField, QueryForm, QueryFormSignals, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStateType, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, applyQueryFeatures, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildErrorMessage, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsFaults, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, contentfulGqlLikePaginationAdapter, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryContext, createQueryCreator, createQueryErrorResponse, createQueryFeature, createQueryForm, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, detectContentTypeHeader, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, getDefaultHeaders, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, hasHeader, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, injectInfinityQueryResponseDelay, injectQueryContext, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsFaultArmed, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareWithoutInjectionContext, mapToPaginated, mapViolationsToFormErrors, maybeExecute, mergeHeaders, nestedEffect, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsEntries, queryDevtoolsFaults, queryErrorMessage, queryErrorMessages, queryExecute, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackTotalQueriesAndExpectedQueriesMismatch, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, registerQueryErrorParser, removeFrom, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, searchQueryField, serializeBody, setDefaultQueryRetryFn, setQueryDevtoolsFault, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, switchQueryCollectionState, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage };
7189
- export type { AnyBearerAuthProvider, AnyCreateBearerAuthProviderResult, AnyCreateGqlQueryCreatorOptions, AnyCreateQueryClientResult, AnyGqlQueryConfig, AnyInfinityQuery, AnyInfinityQueryConfig, AnyLegacyQuery, AnyLegacyQueryCreator, AnyNewQuery, AnyPagedQueryStack, AnyQueryBuilder, AnyQueryClient, AnyQueryCollection, AnyQueryCollectionData, AnyQueryCollectionResponse, AnyQueryCreator, AnyQueryCreatorCollection, AnyQueryForm, AnyQuerySnapshot, AnyQueryStack, AnyRestQueryConfig, AnyRoute, AnyV2Query, AnyV2QueryCreator, AnyWebSocketClient, AppendItemsLocation, ApplyExternalResponseOptions, ApplyPersistedResponseOptions, AuthProvider, AuthProviderBasicConfig, AuthProviderBearerConfig, AuthProviderCustomHeaderConfig, AuthQueryBuilder, AuthQueryConfig, BaseArguments, BaseQueryCreatorFactoryOptions, BaseQueryCreatorOptions, BaseQueryCreatorOptionsSubtle, BearerAuthExecutionState, BearerAuthExecutionStateError, BearerAuthExecutionStateLoading, BearerAuthExecutionStateLogout, BearerAuthExecutionStateSuccess, BearerAuthFeature, BearerAuthMultiTabSyncConfig, BearerAuthMultiTabSyncFeature, BearerAuthProvider, BearerAuthProviderEarlySetup, BearerAuthProviderEarlySetupContext, BearerAuthProviderEarlySetupResult, BearerAuthProviderFeatureContext, BearerAuthProviderOf, BearerAuthProviderQueryContext, BearerAuthProviderRef, BearerAuthProviderTokens, BearerRefreshConfig, BodyType, BuildQueryStringConfig, CacheAdapterFn, Cancelled, ClassValidatorError, ClearQueryArgs, ConstructQuery, CreateBaseQueryOptions, CreateBearerAuthProviderConfig, CreateGqlQueryCreatorOptions, CreateGqlQueryExecuteOptions, CreateGqlQueryOptions, CreateHttpRequestDependencies, CreateHttpRequestOptions, CreateIndexedDbQueryPersistenceAdapterOptions, CreateLegacyQueryCreatorOptions, CreateLegacyQueryOptions, CreatePagedQueryStackOptions, CreateQueryClientConfigOptions, CreateQueryCreatorOptions, CreateQueryExecuteOptions, CreateQueryFormConfig, CreateQueryObjectOptions, CreateQueryOptions, CreateQueryPersistenceEngineOptions, CreateQueryRepositoryConfig, CreateQuerySnapshotOptions, CreateQueryStackOptions, CreateQuerySyncEngineOptions, CreateSecureGqlQueryExecuteOptions, CreateSecureGqlQueryOptions, CreateSecureQueryExecuteOptions, CreateSecureQueryOptions, CreateWebSocketClientConfigOptions, CreateWebSocketClientTransport, DescribableFeature, DestroyCleanupCallback, EmptyObject, EntityGetParams, EntityIdParams, EntityKey, EntitySetParams, EntityStoreConfig, ExecuteFactory, ExecuteQueryOptions, ExtractQueryArgs, ExtractQueryKey, Failure, FeatureRegistry, GQL, GqlQueryArgs, GqlQueryConfig, GqlQueryConfigWithoutMethod, GqlQueryMethod, GqlQueryTransport, GqlTransferOption, GqlTransformer, GqlVariablesType, HttpErrorEvent, HttpRequest, HttpRequestLoadingProgressState, HttpRequestLoadingState, HttpRequestResponseType, HttpRequestRetryState, HttpRequestSubtle, HttpRequestTransferCacheConfig, InactivityLogoutConfig, InactivityLogoutFeature, InfinityQueryConfig, InfinityQueryConfigType, InfinityQueryOf, InfinityQueryParamLocation, InsertFromConfig, InternalCreateGqlQueryCreatorOptions, InternalCreateQueryCreatorOptions, InternalQueryExecute, InternalSecureCreateGqlQueryCreatorOptions, InternalSecureCreateQueryCreatorOptions, InternalWebSocketRoom, LeaderInstanceCountChangeEventData, LeaderStatusChangeEventData, LegacyArgumentsOfQueryArgs, LegacyQueryPrepareFn, Loading, MapViolationsToFormErrorsOptions, Method, ObservableSignal, OptionalQueryFieldOptions, PageParamCalculatorOptions, PagedQueryStack, PagedQueryStackDirection, PagedQueryStackExecuteOptions, PagedQueryStackResetOptions, PartialXhrState, PathParams, PathParamsType, PersistedQueryBody, PersistedQueryEntry, PersistedQueryEntryMeta, PersistentAuthConfig, PersistentAuthFeature, PollConfig, Prepared, Query, QueryArgs, QueryArgsOf, QueryArgsOfLegacyArguments, QueryAutoRefreshConfig, QueryBase, QueryClient, QueryClientDevtoolsOptions, QueryClientErrorPipelineFeature, QueryClientFeature, QueryClientFeatureContext, QueryClientFeatureFn, QueryClientMultiTabSyncFeature, QueryClientPersistenceFeature, QueryClientRef, QueryClientSubtle, QueryCollectionKeysOf, QueryCollectionOf, QueryCollectionWithNullableQuery, QueryConfig, QueryConfigBase, QueryConfigWithoutMethod, QueryContainerConfig, QueryContext, QueryCreator, QueryDataOf, QueryDependencies, QueryDevtoolsAuthQuery, QueryDevtoolsEntry, QueryDevtoolsEntryKind, QueryDevtoolsEntryMeta, QueryDevtoolsFault, QueryDevtoolsFaultTarget, QueryDevtoolsFeature, QueryDevtoolsFeatureDescriber, QueryDevtoolsFeatureDetail, QueryDevtoolsFormField, QueryDevtoolsFormHandle, QueryDevtoolsFormLinksHandle, QueryDevtoolsFormLinksRecorder, QueryDevtoolsPayload, QueryDevtoolsRegistrar, QueryDevtoolsRegistration, QueryDevtoolsResolvedFault, QueryDevtoolsRoutePart, QueryDevtoolsRun, QueryDevtoolsRunStatus, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsStatsRecorder, QueryDirectiveContext, QueryDirectiveType, QueryEntityConfig, QueryErrorParser, QueryErrorResponse, QueryErrorResponseItem, QueryErrorResponseList, QueryErrorResponseSingle, QueryExecute, QueryExecuteArgs, QueryExecuteEventData, QueryExecuteOptions, QueryExecuteState, QueryExecutionState, QueryExecutionStateFailure, QueryExecutionStateLoading, QueryExecutionStateLoadingWithCachedResponse, QueryExecutionStateLoadingWithNoResponse, QueryExecutionStateSuccess, QueryFailureEventData, QueryFeature, QueryFeatureContext, QueryFeatureFlags, QueryFeatureFn, QueryFieldConfig, QueryFieldDef, QueryFieldOptions, QueryFieldValue, QueryFilterConfig, QueryFormBranch, QueryFormChange, QueryFormFields, QueryFormGroup, QueryFormGroupControls, QueryFormModel, QueryFormObserveOptions, QueryFormOf, QueryFormOptions, QueryFormSignalsObserveOptions, QueryFormSignalsWriteOptions, QueryFormValue, QueryFormValueEvent, QueryFormWriteOptions, QueryInvalidationCandidate, QueryInvalidationFilterFn, QueryInvalidationOptions, QueryKey, QueryKeyLockHold, QueryKeyLockManager, QueryKeyLockState, QueryMethod, QueryMockConfig, QueryMultiTabSyncConfig, QueryOf, QueryParams, QueryParamsType, QueryPersistenceAdapter, QueryPersistenceCandidate, QueryPersistenceConfig, QueryPersistenceEngine, QueryPrepareFn, QueryRefreshCause, QueryRegistry, QueryRegistryEntry, QueryRepository, QueryRepositoryCacheEntry, QueryRepositoryDependencies, QueryRepositoryEvent, QueryRepositoryItem, QueryRepositoryRefreshFilterFn, QueryRepositoryRequestOptions, QueryRepositorySubtle, QueryResponseOf, QueryRouteOf, QuerySequence, QuerySequenceResult, QuerySequenceStatus, QuerySequenceStepArgs, QuerySnapshot, QueryStack, QueryStackSubtle, QueryState, QueryStateMeta, QueryStateResponseOf, QueryStateSignal, QueryStateSubtle, QueryStateSuccessMeta, QueryStoreIdOf, QueryStoreOf, QuerySubtle, QuerySuccessEventData, QuerySyncEngine, QuerySyncEnvelope, QuerySyncInvalidateMessage, QuerySyncMessage, QuerySyncMessageListener, QuerySyncMutation, QuerySyncMutationFilterFn, QuerySyncMutationMessage, QuerySyncRefreshCandidate, QuerySyncRefreshOnMutationConfig, QuerySyncResponseMessage, QuerySyncTransport, QueryTrigger, RawResponseType, ReadonlyQuery, RemoveFromConfig, RequestArgs, RequestConfig, RequestError, RequestEvent, RequestHeaders, RequestHeadersMethodMap, RequestHttpEvent, RequestProgress, RequestRetryFn, RequestRetryFnConfig, RequestRetryFnResult, RequiresTransform, ResetExecuteStateOptions, ResetPageOnErrorOperatorConfig, ResponseType, RestQueryConfig, RouteString, RouteType, RunQueryCreator, RunQueryExecuteOptions, SecureExecuteFactoryOptions, ServerValidationError, ServerViolationValidationError, SetupQueryDependenciesOptions, SetupQueryStateOptions, ShouldRetryRequestFn, ShouldRetryRequestOptions, ShouldRetryRequestResult, SocketMessageView, Sort, SortDirection, Success, SymfonyError, SymfonyErrorTrace, TokenExpirationWarningConfig, TokenExpirationWarningFeature, TokenRefreshEventData, TokenRefreshQueryBuilder, TokenRefreshQueryConfig, TokenResponse, TokenRevocationConfig, TokenRevocationFeature, TotalPagesExtractorOptions, TrackingConfig, TrackingEventDataMap, TrackingEventHandler, TrackingEventName, TrackingFeature, TransformedGqlQuery, V2CacheAdapterFn, V2PrepareArgsOf, V2QueryArgsOf, V2QueryClientConfig, V2QueryConfig, V2QueryState, V2RouteString, V2RouteType, ValidateWithQueryConfig, ValidateWithV2QueryConfig, WebSocketClient, WebSocketClientResult, WebSocketClientSubtle, WebSocketDevtoolsHandle, WebSocketDevtoolsMessage, WebSocketRoom, WithAutoRefreshFeatureOptions, WithBody, WithConfig, WithErrorHandlingFeatureOptions, WithHeaders, WithInjector, WithLegacyConfig, WithLoggingFeatureOptions, WithMock, WithPageResetOnErrorFeatureOptions, WithPathParams, WithPollingFeatureOptions, WithQueryParams, WithResponseUpdateFeatureFnData, WithResponseUpdateFeatureOptions, WithSuccessHandlingFeatureOptions, WithVariables };
7395
+ export { AuthBearerRefreshStrategy, BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, CLEAR_QUERY_ARGS, CustomHeaderAuthProvider, DEFAULT_KEEP_UNUSED_FOR, DEFAULT_QUERY_PERSISTENCE_MAX_AGE, DEFAULT_QUERY_PERSISTENCE_MAX_ENTRIES, DEFAULT_QUERY_PERSISTENCE_VERSION, DEFAULT_QUERY_PERSISTENCE_WRITE_DELAY, DateArrayQueryField, DateQueryField, EMPTY_QUERY_DEVTOOLS_FAULT, EntityStore, IGNORED_FILTER_COUNT_FIELDS, INFINITY_QUERY_TOKEN, InfinityQuery, InfinityQueryDirective, InfinityQueryTriggerDirective, LegacyQuery, LegacyQueryCreator, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryFormSignals, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStateType, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, applyQueryDevtoolsOverrides, applyQueryFeatures, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsFaults, collectLeafPaths, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, contentfulGqlLikePaginationAdapter, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryContext, createQueryCreator, createQueryErrorResponse, createQueryFeature, createQueryForm, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, getDefaultHeaders, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, hasHeader, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, injectInfinityQueryResponseDelay, injectQueryContext, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsFaultArmed, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareWithoutInjectionContext, mapToPaginated, mapViolationsToFormErrors, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsEntries, queryDevtoolsFaults, queryErrorMessage, queryErrorMessages, queryExecute, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackTotalQueriesAndExpectedQueriesMismatch, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, registerQueryErrorParser, removeFrom, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, searchQueryField, serializeBody, setDefaultQueryRetryFn, setQueryDevtoolsFault, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, switchQueryCollectionState, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage };
7396
+ export type { AnyBearerAuthProvider, AnyCreateBearerAuthProviderResult, AnyCreateGqlQueryCreatorOptions, AnyCreateQueryClientResult, AnyGqlQueryConfig, AnyInfinityQuery, AnyInfinityQueryConfig, AnyLegacyQuery, AnyLegacyQueryCreator, AnyNewQuery, AnyPagedQueryStack, AnyQueryBuilder, AnyQueryClient, AnyQueryCollection, AnyQueryCollectionData, AnyQueryCollectionResponse, AnyQueryCreator, AnyQueryCreatorCollection, AnyQueryForm, AnyQuerySnapshot, AnyQueryStack, AnyRestQueryConfig, AnyRoute, AnyV2Query, AnyV2QueryCreator, AnyWebSocketClient, AppendItemsLocation, ApplyExternalResponseOptions, ApplyPersistedResponseOptions, AuthProvider, AuthProviderBasicConfig, AuthProviderBearerConfig, AuthProviderCustomHeaderConfig, AuthQueryBuilder, AuthQueryConfig, BaseArguments, BaseQueryCreatorFactoryOptions, BaseQueryCreatorOptions, BaseQueryCreatorOptionsSubtle, BearerAuthExecutionState, BearerAuthExecutionStateError, BearerAuthExecutionStateLoading, BearerAuthExecutionStateLogout, BearerAuthExecutionStateSuccess, BearerAuthExecutionStateTokenSeed, BearerAuthFeature, BearerAuthMultiTabSyncConfig, BearerAuthMultiTabSyncFeature, BearerAuthProvider, BearerAuthProviderEarlySetup, BearerAuthProviderEarlySetupContext, BearerAuthProviderEarlySetupResult, BearerAuthProviderFeatureContext, BearerAuthProviderOf, BearerAuthProviderQueryContext, BearerAuthProviderRef, BearerAuthProviderTokens, BearerRefreshConfig, BodyType, BuildQueryStringConfig, CacheAdapterFn, Cancelled, ClassValidatorError, ClearQueryArgs, ConstructQuery, CreateBaseQueryOptions, CreateBearerAuthProviderConfig, CreateGqlQueryCreatorOptions, CreateGqlQueryExecuteOptions, CreateGqlQueryOptions, CreateHttpRequestDependencies, CreateHttpRequestOptions, CreateIndexedDbQueryPersistenceAdapterOptions, CreateLegacyQueryCreatorOptions, CreateLegacyQueryOptions, CreatePagedQueryStackOptions, CreateQueryClientConfigOptions, CreateQueryCreatorOptions, CreateQueryExecuteOptions, CreateQueryFormConfig, CreateQueryObjectOptions, CreateQueryOptions, CreateQueryPersistenceEngineOptions, CreateQueryRepositoryConfig, CreateQuerySnapshotOptions, CreateQueryStackOptions, CreateQuerySyncEngineOptions, CreateSecureGqlQueryExecuteOptions, CreateSecureGqlQueryOptions, CreateSecureQueryExecuteOptions, CreateSecureQueryOptions, CreateWebSocketClientConfigOptions, CreateWebSocketClientTransport, DescribableFeature, DestroyCleanupCallback, EmptyObject, EntityGetParams, EntityIdParams, EntityKey, EntitySetParams, EntityStoreConfig, ExecuteFactory, ExecuteQueryOptions, ExtractQueryArgs, ExtractQueryKey, Failure, FeatureRegistry, GQL, GqlQueryArgs, GqlQueryConfig, GqlQueryConfigWithoutMethod, GqlQueryMethod, GqlQueryTransport, GqlTransferOption, GqlTransformer, GqlVariablesType, HttpErrorEvent, HttpRequest, HttpRequestLoadingProgressState, HttpRequestLoadingState, HttpRequestResponseType, HttpRequestRetryState, HttpRequestSubtle, HttpRequestTransferCacheConfig, InactivityLogoutConfig, InactivityLogoutFeature, InfinityQueryConfig, InfinityQueryConfigType, InfinityQueryOf, InfinityQueryParamLocation, InsertFromConfig, InternalCreateGqlQueryCreatorOptions, InternalCreateQueryCreatorOptions, InternalQueryExecute, InternalSecureCreateGqlQueryCreatorOptions, InternalSecureCreateQueryCreatorOptions, InternalWebSocketRoom, JsonPath, LeaderInstanceCountChangeEventData, LeaderStatusChangeEventData, LegacyArgumentsOfQueryArgs, LegacyQueryPrepareFn, Loading, MapViolationsToFormErrorsOptions, Method, ObservableSignal, OptionalQueryFieldOptions, OverrideOp, PageParamCalculatorOptions, PagedQueryStack, PagedQueryStackDirection, PagedQueryStackExecuteOptions, PagedQueryStackResetOptions, PartialXhrState, PathParams, PathParamsType, PersistedQueryBody, PersistedQueryEntry, PersistedQueryEntryMeta, PersistentAuthConfig, PersistentAuthFeature, PollConfig, Prepared, Query, QueryArgs, QueryArgsOf, QueryArgsOfLegacyArguments, QueryAutoRefreshConfig, QueryBase, QueryClient, QueryClientDevtoolsOptions, QueryClientErrorPipelineFeature, QueryClientFeature, QueryClientFeatureContext, QueryClientFeatureFn, QueryClientMultiTabSyncFeature, QueryClientPersistenceFeature, QueryClientRef, QueryClientSubtle, QueryCollectionKeysOf, QueryCollectionOf, QueryCollectionWithNullableQuery, QueryConfig, QueryConfigBase, QueryConfigWithoutMethod, QueryContainerConfig, QueryContext, QueryCreator, QueryDataOf, QueryDependencies, QueryDevtoolsAuthQuery, QueryDevtoolsEntry, QueryDevtoolsEntryKind, QueryDevtoolsEntryMeta, QueryDevtoolsFault, QueryDevtoolsFaultTarget, QueryDevtoolsFeature, QueryDevtoolsFeatureDescriber, QueryDevtoolsFeatureDetail, QueryDevtoolsFormField, QueryDevtoolsFormHandle, QueryDevtoolsFormLinksHandle, QueryDevtoolsFormLinksRecorder, QueryDevtoolsOverrideEntry, QueryDevtoolsOverridesHandle, QueryDevtoolsOverridesRecorder, QueryDevtoolsPayload, QueryDevtoolsRegistrar, QueryDevtoolsRegistration, QueryDevtoolsResolvedFault, QueryDevtoolsRoutePart, QueryDevtoolsRun, QueryDevtoolsRunStatus, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsStatsRecorder, QueryDirectiveContext, QueryDirectiveType, QueryEntityConfig, QueryErrorParser, QueryErrorResponse, QueryErrorResponseItem, QueryErrorResponseList, QueryErrorResponseSingle, QueryExecute, QueryExecuteArgs, QueryExecuteEventData, QueryExecuteOptions, QueryExecuteState, QueryExecutionState, QueryExecutionStateFailure, QueryExecutionStateLoading, QueryExecutionStateLoadingWithCachedResponse, QueryExecutionStateLoadingWithNoResponse, QueryExecutionStateSuccess, QueryFailureEventData, QueryFeature, QueryFeatureContext, QueryFeatureFlags, QueryFeatureFn, QueryFieldConfig, QueryFieldDef, QueryFieldOptions, QueryFieldValue, QueryFilterConfig, QueryFormBranch, QueryFormChange, QueryFormFields, QueryFormGroup, QueryFormGroupControls, QueryFormModel, QueryFormObserveOptions, QueryFormOf, QueryFormOptions, QueryFormSignalsObserveOptions, QueryFormSignalsWriteOptions, QueryFormValue, QueryFormValueEvent, QueryFormWriteOptions, QueryInvalidationCandidate, QueryInvalidationFilterFn, QueryInvalidationOptions, QueryKey, QueryKeyLockHold, QueryKeyLockManager, QueryKeyLockState, QueryMethod, QueryMockConfig, QueryMultiTabSyncConfig, QueryOf, QueryParams, QueryParamsType, QueryPersistenceAdapter, QueryPersistenceCandidate, QueryPersistenceConfig, QueryPersistenceEngine, QueryPrepareFn, QueryRefreshCause, QueryRegistry, QueryRegistryEntry, QueryRepository, QueryRepositoryCacheEntry, QueryRepositoryDependencies, QueryRepositoryEvent, QueryRepositoryItem, QueryRepositoryRefreshFilterFn, QueryRepositoryRequestOptions, QueryRepositorySubtle, QueryResponseOf, QueryRouteOf, QuerySequence, QuerySequenceResult, QuerySequenceStatus, QuerySequenceStepArgs, QuerySnapshot, QueryStack, QueryStackSubtle, QueryState, QueryStateMeta, QueryStateResponseOf, QueryStateSignal, QueryStateSubtle, QueryStateSuccessMeta, QueryStoreIdOf, QueryStoreOf, QuerySubtle, QuerySuccessEventData, QuerySyncEngine, QuerySyncEnvelope, QuerySyncInvalidateMessage, QuerySyncMessage, QuerySyncMessageListener, QuerySyncMutation, QuerySyncMutationFilterFn, QuerySyncMutationMessage, QuerySyncRefreshCandidate, QuerySyncRefreshOnMutationConfig, QuerySyncResponseMessage, QuerySyncTransport, QueryTrigger, RawResponseType, ReadonlyQuery, RemoveFromConfig, RequestArgs, RequestConfig, RequestError, RequestEvent, RequestHeaders, RequestHeadersMethodMap, RequestHttpEvent, RequestProgress, RequestRetryFn, RequestRetryFnConfig, RequestRetryFnResult, RequiresTransform, ResetExecuteStateOptions, ResetPageOnErrorOperatorConfig, ResponseType, RestQueryConfig, RouteString, RouteType, RunQueryCreator, RunQueryExecuteOptions, SecureExecuteFactoryOptions, ServerValidationError, ServerViolationValidationError, SetupQueryDependenciesOptions, SetupQueryStateOptions, ShouldRetryRequestFn, ShouldRetryRequestOptions, ShouldRetryRequestResult, SocketMessageView, Sort, SortDirection, Success, SymfonyError, SymfonyErrorTrace, TokenExpirationWarningConfig, TokenExpirationWarningFeature, TokenRefreshEventData, TokenRefreshQueryBuilder, TokenRefreshQueryConfig, TokenResponse, TokenRevocationConfig, TokenRevocationFeature, TotalPagesExtractorOptions, TrackingConfig, TrackingEventDataMap, TrackingEventHandler, TrackingEventName, TrackingFeature, TransformedGqlQuery, V2CacheAdapterFn, V2PrepareArgsOf, V2QueryArgsOf, V2QueryClientConfig, V2QueryConfig, V2QueryState, V2RouteString, V2RouteType, ValidateWithQueryConfig, ValidateWithV2QueryConfig, WebSocketClient, WebSocketClientIo, WebSocketClientIoOptions, WebSocketClientResult, WebSocketClientSocket, WebSocketClientSubtle, WebSocketDevtoolsHandle, WebSocketDevtoolsMessage, WebSocketRoom, WithAutoRefreshFeatureOptions, WithBody, WithConfig, WithErrorHandlingFeatureOptions, WithHeaders, WithInjector, WithLegacyConfig, WithLoggingFeatureOptions, WithMock, WithPageResetOnErrorFeatureOptions, WithPathParams, WithPollingFeatureOptions, WithQueryParams, WithResponseUpdateFeatureFnData, WithResponseUpdateFeatureOptions, WithSuccessHandlingFeatureOptions, WithVariables };