@ethlete/query 6.0.0-next.48 → 6.0.0-next.49

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.
@@ -1,6 +1,6 @@
1
1
  import { CanMatchFn, CanActivateFn, UrlTree, Router, NavigationBehaviorOptions } from '@angular/router';
2
2
  import * as rxjs from 'rxjs';
3
- import { Observable, Subscribable, BehaviorSubject } from 'rxjs';
3
+ import { Observable, Subscribable, BehaviorSubject, Subject } from 'rxjs';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { DestroyRef, EnvironmentInjector, ErrorHandler, WritableSignal, Signal, Injector, CreateEffectOptions, EnvironmentProviders, CreateComputedOptions, InjectionToken, TrackByFunction, PipeTransform, OnInit, OnDestroy } from '@angular/core';
6
6
  import * as _ethlete_core from '@ethlete/core';
@@ -122,11 +122,17 @@ type QueryDependencies = {
122
122
  */
123
123
  hostElement: HTMLElement | null;
124
124
  };
125
- declare const setupQueryDependencies: (options: SetupQueryDependenciesOptions) => QueryDependencies;
126
125
 
127
126
  type ShouldRetryRequestOptions = {
128
127
  retryCount: number;
129
128
  error: HttpErrorResponse;
129
+ /** The HTTP method of the failed request, or `null` when the error was built outside a request. */
130
+ method: QueryMethod | null;
131
+ /**
132
+ * Whether sending the request again is safe: `false` for a `POST` or `PATCH`, and for a GraphQL
133
+ * mutation whatever its transport; `true` for everything else, a GraphQL query sent via `POST` included.
134
+ */
135
+ idempotent: boolean;
130
136
  };
131
137
  type ShouldRetryRequestResult = {
132
138
  retry: false;
@@ -166,6 +172,14 @@ type DefaultRetryOptions = {
166
172
  * @default a connection failure (`0`), `408`, `425`, `429`, and every 5xx above `500`
167
173
  */
168
174
  retryableStatusCodes?: number[];
175
+ /**
176
+ * Also retries a request that is not idempotent (see {@link ShouldRetryRequestOptions.idempotent}). A
177
+ * `POST` whose response was lost may already have been applied, so retrying it can create a
178
+ * duplicate - enable this only for an endpoint that deduplicates on its own, e.g. by an idempotency key.
179
+ *
180
+ * @default false
181
+ */
182
+ retryNonIdempotent?: boolean;
169
183
  };
170
184
  /**
171
185
  * Builds a retry policy: an exponentially backing off, jittered {@link ShouldRetryRequestFn} bounded by
@@ -181,11 +195,13 @@ declare const createDefaultRetryFn: (options?: DefaultRetryOptions) => ShouldRet
181
195
  /**
182
196
  * The SDK's default retry policy, installed by {@link withDefaultRetry}: three retries with an
183
197
  * exponentially backing off, jittered delay, for a connection failure, a `408`, a `425`, a `429`
184
- * (honouring `retry-after`) and a 5xx above `500`.
198
+ * (honouring `retry-after`) and a 5xx above `500` - never for a `POST`, a `PATCH` or a GraphQL mutation.
185
199
  *
186
200
  * Pass {@link createDefaultRetryFn} options to {@link withDefaultRetry} to configure it.
187
201
  */
188
202
  declare const shouldRetryRequest: (options: ShouldRetryRequestOptions | HttpErrorResponse) => ShouldRetryRequestResult;
203
+ /** Whether a request with this method may be sent again without changing the outcome - everything but `POST` and `PATCH`. */
204
+ declare const isIdempotentQueryMethod: (method: QueryMethod) => method is "GET" | "OPTIONS" | "HEAD" | "PUT" | "DELETE" | "TRACE" | "CONNECT";
189
205
 
190
206
  type QueryErrorResponseList = {
191
207
  isList: true;
@@ -228,6 +244,8 @@ declare const queryErrorMessage: (error: QueryErrorResponse | null | undefined)
228
244
  declare const createQueryErrorResponse: (error: unknown, retry?: {
229
245
  retryCount: number;
230
246
  retryFn?: ShouldRetryRequestFn;
247
+ method?: QueryMethod | null;
248
+ idempotent?: boolean;
231
249
  }) => QueryErrorResponse;
232
250
 
233
251
  type ResetExecuteStateOptions<TArgs extends QueryArgs> = {
@@ -398,7 +416,8 @@ type QueryRepositoryRequestOptions<TArgs extends QueryArgs> = {
398
416
  /**
399
417
  * Whether re-running the request on its own is safe, i.e. whether {@link QueryRepository.refreshInUse}
400
418
  * may fire it again. Defaults to the method being a read (`GET`/`HEAD`/`OPTIONS`); the GraphQL
401
- * execute path passes `true` for a query transported via `POST`.
419
+ * execute path passes `true` for a query transported via `POST`. Also what the retry policy receives
420
+ * as `idempotent`; unset, that falls back to the method not being `POST` or `PATCH`.
402
421
  */
403
422
  isRefreshable?: boolean;
404
423
  };
@@ -1115,14 +1134,33 @@ declare const createQueryFeature: <TArgs extends QueryArgs>(config: {
1115
1134
  */
1116
1135
  declare const withArgs: <TArgs extends QueryArgs>(args: () => NoInfer<RequestArgs<TArgs>> | null) => QueryFeature<TArgs>;
1117
1136
  type WithPollingFeatureOptions = {
1118
- /** The interval in milliseconds at which the query should be executed */
1119
- interval: number;
1137
+ /**
1138
+ * The interval in milliseconds at which the query should be executed. A function is read
1139
+ * reactively (pass a signal): a new value re-times the next tick from the last one.
1140
+ */
1141
+ interval: number | (() => number);
1120
1142
  /**
1121
1143
  * Whether the query should be executed initially.
1122
1144
  * By default, the query will be executed after the first interval.
1123
1145
  * @default false
1124
1146
  */
1125
1147
  executeInitially?: boolean;
1148
+ /**
1149
+ * Stop polling while the document is hidden. On becoming visible, a tick that fell due while
1150
+ * hidden runs at once; otherwise polling resumes on its cadence.
1151
+ * @default false
1152
+ */
1153
+ pauseWhileHidden?: boolean;
1154
+ /**
1155
+ * Execute the query when the window regains focus, and restart the interval from there.
1156
+ * @default false
1157
+ */
1158
+ refetchOnFocus?: boolean;
1159
+ /**
1160
+ * Execute the query when the browser comes back online, and restart the interval from there.
1161
+ * @default false
1162
+ */
1163
+ refetchOnReconnect?: boolean;
1126
1164
  };
1127
1165
  /**
1128
1166
  * A query feature that will automatically execute the query at a given interval.
@@ -2043,7 +2081,6 @@ type CreateQuerySyncEngineOptions = {
2043
2081
  transport: QuerySyncTransport;
2044
2082
  lockManager: QueryKeyLockManager;
2045
2083
  };
2046
- declare const createQuerySyncEngine: (options: CreateQuerySyncEngineOptions) => QuerySyncEngine;
2047
2084
 
2048
2085
  declare const QueryClientFeatureType: {
2049
2086
  readonly PERSISTENCE: "PERSISTENCE";
@@ -2172,7 +2209,8 @@ declare const withSymfonyErrors: () => QueryClientFeatureFn;
2172
2209
  /**
2173
2210
  * Gives this client the SDK's default retry policy for every request that does not bring its own `retryFn`: a
2174
2211
  * connection failure, a 5xx above 500, a 408/425 and a 429 (honouring `retry-after`) are retried three
2175
- * times with an exponentially backing off, jittered delay - and a Pagerfanta out-of-range page never is.
2212
+ * times with an exponentially backing off, jittered delay - and a Pagerfanta out-of-range page never is. A `POST`,
2213
+ * a `PATCH` and a GraphQL mutation are never retried unless the options set `retryNonIdempotent`.
2176
2214
  *
2177
2215
  * The policy belongs to the client the feature is on, so another client of the same app is not
2178
2216
  * affected. Without it nothing is retried automatically and `error.retryState` always reads
@@ -2205,6 +2243,13 @@ declare const withEthleteApiErrors: (options?: {
2205
2243
  retry?: DefaultRetryOptions;
2206
2244
  }) => QueryClientFeatureFn;
2207
2245
 
2246
+ /** Request headers, either as Angular `HttpHeaders` or as a plain record of header names to values. */
2247
+ type QueryHeaders = HttpHeaders | Record<string, string | string[]>;
2248
+ /** Request headers, or a function returning them that is called on every execution. */
2249
+ type QueryHeadersInput = QueryHeaders | (() => QueryHeaders);
2250
+ /** Resolves a {@link QueryHeadersInput} to `HttpHeaders`, or `undefined` when none is given. */
2251
+ declare const resolveQueryHeaders: (input: QueryHeadersInput | undefined) => HttpHeaders | undefined;
2252
+
2208
2253
  type CacheAdapterFn = (headers: HttpHeaders) => number | null;
2209
2254
  type CreateQueryClientConfigOptions = {
2210
2255
  /**
@@ -2216,10 +2261,11 @@ type CreateQueryClientConfigOptions = {
2216
2261
  queryString?: BuildQueryStringConfig;
2217
2262
  /**
2218
2263
  * Headers sent with every request of this client - an API token, a tenant id, a preview
2219
- * credential. Per-query `args.headers` are merged on top and win per header name.
2264
+ * credential. A plain record or `HttpHeaders`. Per-query `args.headers` are merged on top and win
2265
+ * per header name.
2220
2266
  *
2221
- * Pass a function to make them dynamic: it is called on every execution, so reading a signal
2222
- * inside means later requests pick the new value up on their own.
2267
+ * Pass a function to make them dynamic: it is called on every execution, so reading a signal or a
2268
+ * variable inside means later requests pick the new value up on their own.
2223
2269
  *
2224
2270
  * Client headers are deliberately **not** part of the cache key: they are the same for every
2225
2271
  * query of the client, so including them would only ever churn the whole cache at once. That
@@ -2235,14 +2281,14 @@ type CreateQueryClientConfigOptions = {
2235
2281
  * baseUrl: 'https://api.example.com',
2236
2282
  * headers: () => {
2237
2283
  * const token = previewToken();
2238
- * return token ? new HttpHeaders({ 'X-Preview-Token': token }) : new HttpHeaders();
2284
+ * return token ? { 'X-Preview-Token': token } : {};
2239
2285
  * },
2240
2286
  * });
2241
2287
  *
2242
2288
  * export const provideMyClient = toProvideFn(MY_CLIENT);
2243
2289
  * export const injectMyClient = toInjectFn(MY_CLIENT);
2244
2290
  */
2245
- headers?: HttpHeaders | (() => HttpHeaders);
2291
+ headers?: QueryHeadersInput;
2246
2292
  /** The name of the client */
2247
2293
  name: string;
2248
2294
  /**
@@ -2287,7 +2333,7 @@ type CreateQueryClientConfigOptions = {
2287
2333
  * - {@link withQueryPersistence} keeps successful reads on disk so a reload renders them right away,
2288
2334
  * - {@link withHtmlErrorParsing} reads the sentence out of an HTML error page,
2289
2335
  * - {@link withSymfonyErrors} reads Symfony / class-validator violation lists,
2290
- * - {@link withDefaultRetry} retries connection failures, 5xx, 408/425 and 429,
2336
+ * - {@link withDefaultRetry} retries idempotent requests on connection failures, 5xx, 408/425 and 429,
2291
2337
  * - {@link withEthleteApiErrors} is the three error features above in one.
2292
2338
  *
2293
2339
  * Each feature may be used at most once. The error **parsers** are installed process-wide rather
@@ -2429,7 +2475,7 @@ type CreateHttpRequestOptions<TArgs extends QueryArgs> = {
2429
2475
  *
2430
2476
  * @see CreateQueryClientConfigOptions.headers
2431
2477
  */
2432
- clientHeaders?: HttpHeaders | (() => HttpHeaders);
2478
+ clientHeaders?: QueryHeadersInput;
2433
2479
  /**
2434
2480
  * The cache adapter function to use for the request
2435
2481
  * @default extractExpiresInSeconds()
@@ -2440,6 +2486,11 @@ type CreateHttpRequestOptions<TArgs extends QueryArgs> = {
2440
2486
  * @default the `withDefaultRetry()` policy, or no retry at all without that client feature
2441
2487
  */
2442
2488
  retryFn?: ShouldRetryRequestFn;
2489
+ /**
2490
+ * Whether sending the request again is safe, handed to `retryFn` as `idempotent`.
2491
+ * @default `false` for a `POST` or `PATCH`, `true` for every other method
2492
+ */
2493
+ idempotent?: boolean;
2443
2494
  };
2444
2495
  type HttpRequestLoadingState = {
2445
2496
  /** The time when the request was executed in ms */
@@ -2659,7 +2710,7 @@ type QueryArgs = {
2659
2710
  pathParams?: Record<string, string | number>;
2660
2711
  queryParams?: any;
2661
2712
  body?: any;
2662
- headers?: HttpHeaders | (() => HttpHeaders);
2713
+ headers?: QueryHeadersInput;
2663
2714
  };
2664
2715
  type ResponseType<T extends QueryArgs | null> = T extends QueryArgs ? T['response'] : never;
2665
2716
  type RawResponseType<T extends QueryArgs | null> = T extends QueryArgs ? T['rawResponse'] extends undefined ? T['response'] : T['rawResponse'] : never;
@@ -2768,12 +2819,41 @@ type BaseQueryCreatorFactoryOptions<TArgs extends QueryArgs, TOptions, TInternal
2768
2819
  };
2769
2820
  declare const createBaseQueryCreator: <TArgs extends QueryArgs, TOptions, TInternals>(config: BaseQueryCreatorFactoryOptions<TArgs, TOptions, TInternals>) => QueryCreator<TArgs>;
2770
2821
 
2822
+ /** One entry of a GraphQL response's `errors` array, as the GraphQL specification defines it. */
2823
+ type GqlError = {
2824
+ message: string;
2825
+ locations?: {
2826
+ line: number;
2827
+ column: number;
2828
+ }[];
2829
+ path?: (string | number)[];
2830
+ extensions?: Record<string, unknown>;
2831
+ };
2832
+ /** The GraphQL-over-HTTP envelope: `data`, and the `errors` a server may send next to it. */
2833
+ type GqlEnvelope<TData> = {
2834
+ data?: TData | null;
2835
+ errors?: GqlError[];
2836
+ };
2837
+ /**
2838
+ * The response of a query whose creator passes `transformResponse: unwrapGqlResponseWithErrors`:
2839
+ * the data plus the `errors` the server sent next to it (empty when it sent none).
2840
+ */
2841
+ type GqlDataWithErrors<TData> = {
2842
+ data: TData;
2843
+ errors: GqlError[];
2844
+ };
2845
+ /**
2846
+ * A GQL `transformResponse` that keeps the server's `errors` next to partial data. Declare the
2847
+ * args' `response` as `GqlDataWithErrors<TData>`; a response without data still fails with ET601.
2848
+ */
2849
+ declare const unwrapGqlResponseWithErrors: <TData>(rawResponse: GqlEnvelope<TData>) => GqlDataWithErrors<TData>;
2850
+
2771
2851
  /**
2772
- * The envelope a GraphQL endpoint puts on the wire: whatever the args declare as `rawResponse`, or
2773
- * `{ data: TResponse }` - the GraphQL-over-HTTP envelope the default unwrapping reads - when they
2774
- * declare none.
2852
+ * The envelope a GraphQL endpoint puts on the wire: whatever the args declare as `rawResponse`, the
2853
+ * `GqlEnvelope` around `TData` when the response is a `GqlDataWithErrors<TData>`, or
2854
+ * `{ data: TResponse }` - the GraphQL-over-HTTP envelope the default unwrapping reads.
2775
2855
  */
2776
- type GqlRawResponseType<TArgs extends GqlQueryArgs> = 'rawResponse' extends keyof TArgs ? RawResponseType<TArgs> : {
2856
+ type GqlRawResponseType<TArgs extends GqlQueryArgs> = 'rawResponse' extends keyof TArgs ? RawResponseType<TArgs> : ResponseType<TArgs> extends GqlDataWithErrors<infer TData> ? GqlEnvelope<TData> : {
2777
2857
  data: ResponseType<TArgs>;
2778
2858
  };
2779
2859
  type CreateGqlQueryCreatorOptions<TArgs extends GqlQueryArgs> = Omit<CreateQueryCreatorOptions<TArgs>, 'route' | 'transformResponse'> & {
@@ -4024,7 +4104,7 @@ type TokenRefreshQueryConfig<TArgs extends QueryArgs> = AuthQueryConfig<TArgs> &
4024
4104
  refreshIfExpired?: boolean;
4025
4105
  /**
4026
4106
  * Configuration for retry behavior on failed refresh attempts.
4027
- * @default { retryableStatusCodes: [0, 408, 425, 429, 500, 502, 503, 504], maxRetryDelayMs: 30000 }
4107
+ * @default { retryableStatusCodes: [0, 408, 425, 429, 500, 502, 503, 504], maxRetryDelayMs: 30000, maxAttempts: 8 }
4028
4108
  */
4029
4109
  retryConfig?: {
4030
4110
  /**
@@ -4040,9 +4120,8 @@ type TokenRefreshQueryConfig<TArgs extends QueryArgs> = AuthQueryConfig<TArgs> &
4040
4120
  */
4041
4121
  maxRetryDelayMs?: number;
4042
4122
  /**
4043
- * Maximum number of retry attempts.
4044
- * Set to 0 for unlimited retries.
4045
- * @default 0 (unlimited)
4123
+ * Maximum number of retry attempts. Set to 0 for unlimited retries.
4124
+ * @default 8
4046
4125
  */
4047
4126
  maxAttempts?: number;
4048
4127
  };
@@ -4289,10 +4368,10 @@ type PersistentAuthConfig<TBuilders extends readonly AnyQueryBuilder[], TKey ext
4289
4368
  */
4290
4369
  queryKey: TKey;
4291
4370
  /**
4292
- * A function that turns the token gotten from the cookie into the body for the auto-login request
4293
- * @default (token) => ({ body: { token } })
4371
+ * Turns the refresh token read from the cookie into the args of the auto-login request.
4372
+ * @default the `buildArgs` of the refresh query when `queryKey` names it, otherwise `(token) => ({ body: { token } })`
4294
4373
  */
4295
- buildArgs: (token: string) => RequestArgs<ExtractQueryArgs<Extract<TBuilders[number], {
4374
+ buildArgs?: (token: string) => RequestArgs<ExtractQueryArgs<Extract<TBuilders[number], {
4296
4375
  key: TKey;
4297
4376
  }>>>;
4298
4377
  /**
@@ -4355,8 +4434,7 @@ type TokenExpirationWarningConfig = {
4355
4434
  checkInterval?: number;
4356
4435
  /**
4357
4436
  * Name of the claim in the decoded access token that carries the expiry, as seconds since the epoch.
4358
- * Must match the `expiresInPropertyName` of the refresh query.
4359
- * @default 'exp'
4437
+ * @default the refresh query's `expiresInPropertyName`, otherwise `'exp'`
4360
4438
  */
4361
4439
  expiresInPropertyName?: string;
4362
4440
  };
@@ -4389,9 +4467,9 @@ type TokenRevocationConfig<TBuilders extends readonly AnyQueryBuilder[], TKey ex
4389
4467
  */
4390
4468
  queryKey: TKey;
4391
4469
  /**
4392
- * Function to build the revocation request args from tokens
4470
+ * Function to build the revocation request args from tokens. Leave it out for a query that takes no args.
4393
4471
  */
4394
- buildArgs: (tokens: {
4472
+ buildArgs?: (tokens: {
4395
4473
  accessToken: string | null;
4396
4474
  refreshToken: string | null;
4397
4475
  }) => RequestArgs<ExtractQueryArgs<Extract<TBuilders[number], {
@@ -4402,6 +4480,16 @@ type TokenRevocationConfig<TBuilders extends readonly AnyQueryBuilder[], TKey ex
4402
4480
  * @default true
4403
4481
  */
4404
4482
  revokeOnLogout?: boolean;
4483
+ /**
4484
+ * The session end causes that revoke automatically. Leave it out to revoke on every cause.
4485
+ * @example revokeOn: ['user'] // for an API whose revocation ends the sessions on all devices
4486
+ */
4487
+ revokeOn?: readonly BearerAuthSessionEndCause[];
4488
+ /**
4489
+ * Send the revoked access token as `Authorization: Bearer <token>`, unless the built args already set that header.
4490
+ * @default false
4491
+ */
4492
+ bearer?: boolean;
4405
4493
  };
4406
4494
  type TokenRevocationFeature<TQuerySnapshot extends AnyQuerySnapshot> = {
4407
4495
  /**
@@ -4557,6 +4645,15 @@ type BearerAuthSessionEndCause =
4557
4645
  | 'expired'
4558
4646
  /** Another tab logged out and `withBearerAuthMultiTabSync` carried it here. */
4559
4647
  | 'otherTab';
4648
+ /**
4649
+ * The provider's session state as one value, so a consumer that reacts to several parts of it reads
4650
+ * them from the same moment - `toObservable()` of separate signals emits them one at a time.
4651
+ */
4652
+ type BearerAuthSession<TType extends string = string> = {
4653
+ status: BearerAuthSessionStatus;
4654
+ endCause: BearerAuthSessionEndCause | null;
4655
+ executionState: BearerAuthExecutionState<TType> | null;
4656
+ };
4560
4657
  declare const BearerAuthFeatureType: {
4561
4658
  readonly PERSISTENT_AUTH: "PERSISTENT_AUTH";
4562
4659
  readonly TOKEN_EXPIRATION_WARNING: "TOKEN_EXPIRATION_WARNING";
@@ -4791,6 +4888,8 @@ type BearerAuthProvider<TBuilders extends readonly AnyQueryBuilder[], TFeatures
4791
4888
  * Cleared as soon as tokens are applied again.
4792
4889
  */
4793
4890
  sessionEndCause: Signal<BearerAuthSessionEndCause | null>;
4891
+ /** {@link sessionStatus}, {@link sessionEndCause} and {@link executionState} as one signal. */
4892
+ session: Signal<BearerAuthSession<ExtractQueryKey<TBuilders[number]> | 'autoLogin' | 'tokenRefresh' | 'logout' | 'revocation' | 'tokenSeed'>>;
4794
4893
  /**
4795
4894
  * Seeds the provider with tokens that were issued outside of it - an SSO/OIDC callback that
4796
4895
  * arrives with both tokens in the URL, a token handed over by a native shell, a test harness.
@@ -4850,6 +4949,8 @@ type BearerAuthProviderFeatureContext<TBearerData = unknown, TBuilders extends r
4850
4949
  */
4851
4950
  activityCoordination?: BearerAuthActivityCoordination;
4852
4951
  queries: QueryRegistry<TBuilders>;
4952
+ /** The query builders the provider was created with, so a feature can read a query's own config. */
4953
+ queryBuilders: TBuilders;
4853
4954
  latestExecutedQuery: Signal<{
4854
4955
  key: string;
4855
4956
  snapshot: QuerySnapshot<QueryArgs>;
@@ -4901,7 +5002,7 @@ type AnyCreateBearerAuthProviderResult = BearerAuthProviderRef<any, any, any>;
4901
5002
  * export const myApiAuthProviderRef = createBearerAuthProvider({ ... });
4902
5003
  * export type MyApiAuthProvider = BearerAuthProviderOf<typeof myApiAuthProviderRef>;
4903
5004
  *
4904
- * const doLogin = (provider: MyApiAuthProvider) => provider.queries.login({ body: { ... } });
5005
+ * const doLogin = (provider: MyApiAuthProvider) => provider.queries.login.execute({ body: { ... } });
4905
5006
  * ```
4906
5007
  */
4907
5008
  type BearerAuthProviderOf<TRef extends AnyCreateBearerAuthProviderResult> = NonNullable<ReturnType<TRef['inject']>>;
@@ -4942,8 +5043,40 @@ type AuthGuardConfig = {
4942
5043
  * @default { replaceUrl: true }
4943
5044
  */
4944
5045
  navigationBehaviorOptions?: NavigationBehaviorOptions;
5046
+ /**
5047
+ * How long a guard waits for a session restore before it decides on the session as it stands, which
5048
+ * sends the visitor to {@link loginUrl}. `false` waits for as long as the restore takes.
5049
+ *
5050
+ * @default 10000
5051
+ */
5052
+ restoreTimeoutMs?: number | false;
5053
+ /**
5054
+ * The session end causes that send a visitor on a route this guard protects to {@link loginUrl}, with
5055
+ * the URL they were on as the return URL (except for `'user'`). Nothing is redirected by default.
5056
+ *
5057
+ * @example
5058
+ * createAuthGuard(authProviderRef, { loginUrl: '/login', redirectOnSessionEnd: ['expired', 'inactivity', 'otherTab'] });
5059
+ */
5060
+ redirectOnSessionEnd?: readonly BearerAuthSessionEndCause[];
5061
+ /**
5062
+ * Sends a visitor on a route guarded by `canMatchAnonymous` or `canActivateAnonymous` to the return
5063
+ * URL, or to {@link defaultUrl}, when a session starts there - a restore that ends after
5064
+ * {@link restoreTimeoutMs}, or a login in another tab.
5065
+ *
5066
+ * @default false
5067
+ */
5068
+ redirectOnSessionStart?: boolean;
4945
5069
  };
4946
- type AuthGuard = {
5070
+ /** Decides whether an authenticated visitor may enter a route. Runs in the guard's injection context. */
5071
+ type AuthGuardPermission<TRef extends AnyCreateBearerAuthProviderResult = AnyCreateBearerAuthProviderResult> = (provider: BearerAuthProviderOf<TRef>) => boolean;
5072
+ type AuthGuardPermissionOptions = {
5073
+ /**
5074
+ * Where an authenticated visitor the permission turns away is sent.
5075
+ * @default the guard's `defaultUrl`
5076
+ */
5077
+ redirectTo?: AuthGuardTarget;
5078
+ };
5079
+ type AuthGuard<TRef extends AnyCreateBearerAuthProviderResult = AnyCreateBearerAuthProviderResult> = {
4947
5080
  /**
4948
5081
  * Requires a session. On a lazy route this is the one to use - a visitor without a session never
4949
5082
  * downloads the child bundle.
@@ -4951,6 +5084,17 @@ type AuthGuard = {
4951
5084
  canMatch: CanMatchFn;
4952
5085
  /** Requires a session, as a `canActivate` guard. */
4953
5086
  canActivate: CanActivateFn;
5087
+ /**
5088
+ * Requires a session the permission accepts. Without a session the visitor goes to the login, like
5089
+ * {@link canMatch}; with one the permission rejects, to `options.redirectTo`.
5090
+ *
5091
+ * ```ts
5092
+ * { path: 'admin', canMatch: [authGuard.canMatchWith((auth) => !!auth.bearerData()?.isAdmin)], loadChildren: … }
5093
+ * ```
5094
+ */
5095
+ canMatchWith: (permission: AuthGuardPermission<TRef>, options?: AuthGuardPermissionOptions) => CanMatchFn;
5096
+ /** {@link canMatchWith}, as a `canActivate` guard. */
5097
+ canActivateWith: (permission: AuthGuardPermission<TRef>, options?: AuthGuardPermissionOptions) => CanActivateFn;
4954
5098
  /** Requires _no_ session - keeps a signed-in visitor off the login route. */
4955
5099
  canMatchAnonymous: CanMatchFn;
4956
5100
  /** Requires _no_ session, as a `canActivate` guard. */
@@ -4978,10 +5122,11 @@ type AuthGuard = {
4978
5122
  * ];
4979
5123
  * ```
4980
5124
  *
4981
- * A guard pends while a session restore is in flight rather than redirecting against a session that
4982
- * is about to exist, so a hard reload of a protected URL stays on that URL.
5125
+ * A guard pends while a session restore is in flight, for up to `restoreTimeoutMs`, rather than
5126
+ * redirecting against a session that is about to exist, so a hard reload of a protected URL stays on
5127
+ * that URL.
4983
5128
  */
4984
- declare const createAuthGuard: (providerRef: AnyCreateBearerAuthProviderResult, config: AuthGuardConfig) => AuthGuard;
5129
+ declare const createAuthGuard: <TRef extends AnyCreateBearerAuthProviderResult>(providerRef: TRef, config: AuthGuardConfig) => AuthGuard<TRef>;
4985
5130
 
4986
5131
  /**
4987
5132
  * Free-form build information about the application itself - version, commit SHA, environment name,
@@ -5365,7 +5510,8 @@ declare const clearQueryDevtoolsStore: (key: string) => void;
5365
5510
  * Whether the session vault may be kept in `localStorage`. Only a development build may: the vault
5366
5511
  * holds live access and refresh tokens plus the credentials somebody typed in, and a deployed
5367
5512
  * application that mounts the panel for its debugging value must not leave those on the machine of
5368
- * whoever opened it. Every other scope stays on offer, so the vault still works for one tab.
5513
+ * whoever opened it. Outside a development build a stored or default `local` reads back as `none`, so a
5514
+ * plain login keeps nothing; `session` stays on offer for whoever picks it in Settings.
5369
5515
  *
5370
5516
  * Part of the devtools contract. **Not part of the general public contract.**
5371
5517
  */
@@ -6286,7 +6432,6 @@ type CreateGqlQueryExecuteOptions<TArgs extends QueryArgs> = {
6286
6432
  creatorInternals: InternalCreateGqlQueryCreatorOptions;
6287
6433
  queryConfig: QueryConfig;
6288
6434
  };
6289
- declare const createGqlExecuteFn: <TArgs extends GqlQueryArgs>(executeOptions: CreateGqlQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
6290
6435
 
6291
6436
  type InternalSecureCreateGqlQueryCreatorOptions = {
6292
6437
  method: 'QUERY' | 'MUTATE';
@@ -6309,7 +6454,6 @@ type CreateSecureGqlQueryExecuteOptions<TArgs extends GqlQueryArgs> = {
6309
6454
  creatorInternals: InternalSecureCreateGqlQueryCreatorOptions;
6310
6455
  queryConfig: QueryConfig;
6311
6456
  };
6312
- declare const createSecureGqlExecuteFn: <TArgs extends GqlQueryArgs>(executeOptions: CreateSecureGqlQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
6313
6457
 
6314
6458
  /**
6315
6459
  * @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.
@@ -9156,6 +9300,31 @@ type QueryFormSignalsObserveOptions = {
9156
9300
  * @default false
9157
9301
  */
9158
9302
  readonly replaceUrl?: boolean;
9303
+ /**
9304
+ * Keep the committed value in a storage and restore it when the URL carries none of the persisted fields.
9305
+ * Off unless set.
9306
+ */
9307
+ readonly persistence?: QueryFormPersistence;
9308
+ };
9309
+ /**
9310
+ * The storage a query form persists into. `sessionStorage` and `localStorage` satisfy it. Both methods are
9311
+ * synchronous and may throw; the form swallows the error.
9312
+ */
9313
+ type QueryFormStorage = {
9314
+ getItem(key: string): string | null;
9315
+ setItem(key: string, value: string): void;
9316
+ };
9317
+ /** Where and what a query form persists - the `persistence` option of `observe()`. */
9318
+ type QueryFormPersistence = {
9319
+ /** The storage key. Scope it per list, e.g. `'players-list'`. */
9320
+ readonly key: string;
9321
+ /**
9322
+ * `'session'` or `'local'` resolve to the browser's Web Storage, and to nothing on the server. Pass your own
9323
+ * {@link QueryFormStorage} for anything else.
9324
+ */
9325
+ readonly storage: 'session' | 'local' | QueryFormStorage;
9326
+ /** The fields to persist and to check the URL for. Defaults to every field. */
9327
+ readonly fields?: readonly string[];
9159
9328
  };
9160
9329
  /**
9161
9330
  * Options for a single programmatic write (`setValue`/`patchValue`/reset).
@@ -9171,6 +9340,12 @@ type QueryFormSignalsWriteOptions = {
9171
9340
  * @default false
9172
9341
  */
9173
9342
  readonly skipResets?: boolean;
9343
+ /**
9344
+ * Wait the changed fields' `debounce` before committing, as a bound control does. Without it a write
9345
+ * commits at once and `value()` reflects it on the next line.
9346
+ * @default false
9347
+ */
9348
+ readonly debounce?: boolean;
9174
9349
  };
9175
9350
 
9176
9351
  /**
@@ -9193,11 +9368,13 @@ type QueryFormBranch<TFields extends QueryFormFields> = {
9193
9368
  readonly liveValue: Signal<QueryFormModel<TFields>>;
9194
9369
  /** The number of active (non-default) filters in the branch. */
9195
9370
  readonly activeFilterCount: Signal<number>;
9196
- setValue(value: QueryFormModel<TFields>): void;
9197
- patchValue(value: Partial<QueryFormModel<TFields>>): void;
9198
- resetFieldToDefault(key: keyof QueryFormModel<TFields>): void;
9199
- resetAllFieldsToDefault(): void;
9371
+ setValue(value: QueryFormModel<TFields>, options?: QueryFormBranchWriteOptions): void;
9372
+ patchValue(value: Partial<QueryFormModel<TFields>>, options?: QueryFormBranchWriteOptions): void;
9373
+ resetFieldToDefault(key: keyof QueryFormModel<TFields>, options?: QueryFormBranchWriteOptions): void;
9374
+ resetAllFieldsToDefault(options?: QueryFormBranchWriteOptions): void;
9200
9375
  };
9376
+ /** Options for a write to a {@link QueryFormBranch}. */
9377
+ type QueryFormBranchWriteOptions = Pick<QueryFormSignalsWriteOptions, 'debounce'>;
9201
9378
  type DefineQueryFormConfig<TFields extends QueryFormFields> = {
9202
9379
  readonly fields: TFields;
9203
9380
  /**
@@ -9339,7 +9516,10 @@ type WebSocketClientIoOptions = {
9339
9516
  withCredentials: boolean;
9340
9517
  autoConnect: boolean;
9341
9518
  transports: CreateWebSocketClientTransport[] | undefined;
9519
+ auth?: (cb: (data: object) => void) => void;
9342
9520
  };
9521
+ /** The payload socket.io sends in the handshake of every (re)connect. */
9522
+ type WebSocketClientAuth = Record<string, unknown>;
9343
9523
  /** The slice of a socket io `Socket` this client drives. */
9344
9524
  type WebSocketClientSocket = {
9345
9525
  connect: () => void;
@@ -9377,6 +9557,20 @@ type CreateWebSocketClientConfigOptions = {
9377
9557
  io: WebSocketClientIo;
9378
9558
  /** 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. */
9379
9559
  transports?: CreateWebSocketClientTransport[];
9560
+ /**
9561
+ * Whether the polling transport sends cookies to a cross-origin server. Defaults to `true`.
9562
+ */
9563
+ withCredentials?: boolean;
9564
+ /**
9565
+ * The handshake payload, sent on every connect and reconnect. Pass a function to read a fresh value
9566
+ * (e.g. the current access token) each time.
9567
+ *
9568
+ * @example
9569
+ * ```ts
9570
+ * createWebSocketClient({ name: 'match', url, io, auth: () => ({ token: auth.accessToken() }) });
9571
+ * ```
9572
+ */
9573
+ auth?: WebSocketClientAuth | (() => WebSocketClientAuth);
9380
9574
  };
9381
9575
  /** A default socket io message view */
9382
9576
  type SocketMessageView<TMessageData = unknown> = {
@@ -9402,11 +9596,18 @@ type WebSocketClient<TMessageData extends SocketMessageView> = {
9402
9596
  joinRoom: (room: string | (() => string | null)) => Signal<WebSocketRoom<TMessageData> | null>;
9403
9597
  /** Whether the client is connected to the server */
9404
9598
  isConnected: Signal<boolean>;
9599
+ /** Sends a message to the server. socket.io buffers it while the connection is down. */
9600
+ send: (message: {
9601
+ event: string;
9602
+ data: unknown;
9603
+ }) => void;
9405
9604
  /** Advanced web socket features. **WARNING!** Incorrectly using these features will likely **BREAK** your application. You have been warned! */
9406
9605
  subtle: WebSocketClientSubtle;
9407
9606
  };
9408
9607
  type InternalWebSocketRoom<TMessageData extends SocketMessageView> = {
9409
9608
  latestMessage: WritableSignal<TMessageData | null>;
9609
+ messages: Subject<TMessageData>;
9610
+ messages$: Observable<TMessageData>;
9410
9611
  /**
9411
9612
  * How many callers currently hold this room. Joiners share one room object, so the room may only be
9412
9613
  * left once this reaches zero - otherwise the first caller to unmount stops the messages for the rest.
@@ -9414,15 +9615,17 @@ type InternalWebSocketRoom<TMessageData extends SocketMessageView> = {
9414
9615
  joinCount: number;
9415
9616
  };
9416
9617
  type WebSocketRoom<TMessageData extends SocketMessageView> = {
9417
- /** The latest message received in the room */
9618
+ /** The latest message received in the room. Messages that arrive in one tick collapse into the last. */
9418
9619
  latestMessage: Signal<TMessageData | null>;
9620
+ /** Every message received in the room from the moment of subscribing. Completes when the room is left. */
9621
+ messages$: Observable<TMessageData>;
9419
9622
  };
9420
9623
  type WebSocketClientResult<TMessageData extends SocketMessageView = SocketMessageView> = ProviderDefinition<WebSocketClient<TMessageData>>;
9421
9624
  type AnyWebSocketClient<TMessageData extends SocketMessageView = SocketMessageView> = WebSocketClientResult<TMessageData>;
9422
9625
  declare const createWebSocketClient: <TMessageData extends SocketMessageView = SocketMessageView>(options: CreateWebSocketClientConfigOptions) => WebSocketClientResult<TMessageData>;
9423
9626
 
9424
9627
  /** The version of `@ethlete/query` this build was cut from. */
9425
- declare const QUERY_VERSION = "6.0.0-next.48";
9628
+ declare const QUERY_VERSION = "6.0.0-next.49";
9426
9629
 
9427
- export { AuthBearerRefreshStrategy, BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, 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_QUERY_BATCH_TOMBSTONES, MAX_QUERY_DEVTOOLS_TOMBSTONES, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_DEVTOOLS_TOKEN_TTL_LIMIT, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QUERY_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStateType, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, addQueryDevtoolsAuthAccount, applyQueryDevtoolsOverrides, applyQueryDevtoolsTokenTtl, applyQueryFeatures, armAllQueryDevtoolsMocks, armQueryDevtoolsMock, armQueryDevtoolsOverrideTransfer, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, canOverrideQueryDevtoolsTokenTtl, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsArmedMocks, clearQueryDevtoolsAuthCredentials, clearQueryDevtoolsAuthSessions, clearQueryDevtoolsFaults, clearQueryDevtoolsMockStore, clearQueryDevtoolsOverrideStore, clearQueryDevtoolsStore, clearQueryDevtoolsTokenTtl, clearQueryDevtoolsTombstones, clearRestoredQueryDevtoolsOverrides, collectLeafPaths, collectQueryDevtoolsSchemaComponents, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, contentfulGqlLikePaginationAdapter, countUnresolvedQueryDevtoolsOverrides, createAuthGuard, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDefaultRetryFn, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHeadQuery, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createOptionsQuery, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryBatch, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryCreator, createQueryDevtoolsOverrides, createQueryErrorResponse, createQueryFeature, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySubmission, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecureHeadQuery, createSecureOptionsQuery, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, defineQueryForm, deleteQueryDevtoolsMock, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, forgetQueryDevtoolsAuthSession, forgetQueryDevtoolsAuthSessionsFor, generateQueryDevtoolsNumberPreset, generateQueryDevtoolsSampleNumber, generateQueryDevtoolsStringPreset, getDefaultHeaders, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, gqlErrorsInResponse, hasHeader, hasQueryDevtoolsOverridesAtPath, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, injectInfinityQueryResponseDelay, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsEnabled, isQueryDevtoolsFaultArmed, isQueryDevtoolsRepositoryLive, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareWithoutInjectionContext, loadQueryDevtoolsSchema, loginQueryDevtoolsAuthAccount, logoutQueryDevtoolsAuthSession, mapToPaginated, mapViolationsToFormErrors, matchesQueryDevtoolsMockPattern, matchesQueryDevtoolsMockQuery, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, parseQueryDevtoolsOverrideTransfer, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryBatchAlreadyRunning, queryBatchWithArgsUsed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsAbout, queryDevtoolsAllowsLocalAuthSessions, queryDevtoolsApiEnvIds, queryDevtoolsApiEnvIsProduction, queryDevtoolsApiEnvScope, queryDevtoolsApiEnvValues, queryDevtoolsApiEnvs, queryDevtoolsArmedMocks, queryDevtoolsArmedMocksRestored, queryDevtoolsAuthAccountsFor, queryDevtoolsAuthActive, queryDevtoolsAuthFieldsFor, queryDevtoolsAuthOtherScopeCount, queryDevtoolsAuthSessions, queryDevtoolsAuthSessionsFor, queryDevtoolsAuthTabLocal, queryDevtoolsEntries, queryDevtoolsFaults, queryDevtoolsFaultsRestored, queryDevtoolsMockId, queryDevtoolsMocks, queryDevtoolsOverridePersistence, queryDevtoolsRequestPath, queryDevtoolsResponseHistory, queryDevtoolsRestoredOverridesScope, queryDevtoolsSchemaNames, queryDevtoolsSchemaRoutes, queryDevtoolsSchemaState, queryDevtoolsSettings, queryDevtoolsStorage, queryDevtoolsTokenTtls, queryErrorMessage, queryErrorMessages, queryExecute, queryExecutedAfterDestroyMessage, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, readQueryDevtoolsStore, registerEthleteVersion, registerQueryErrorParser, removeFrom, removeQueryDevtoolsAuthAccount, renameQueryDevtoolsAuthSession, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, restoredQueryDevtoolsOverrides, saveQueryDevtoolsMock, searchQueryField, seedQueryDevtoolsSchemaBody, seedQueryDevtoolsSchemaRoute, serializeBody, serializeQueryDevtoolsOverrideTransfer, setQueryDevtoolsApiEnv, setQueryDevtoolsAppInfo, setQueryDevtoolsArmedMocksScope, setQueryDevtoolsAuthCredentials, setQueryDevtoolsAuthTabLocal, setQueryDevtoolsFault, setQueryDevtoolsFaultsScope, setQueryDevtoolsOverridePersistence, setQueryDevtoolsOverridesScope, setQueryDevtoolsSettings, setQueryDevtoolsTokenTtl, setQueryDevtoolsUiMounted, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, snapshotQueryDevtoolsHandle, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, switchQueryCollectionState, switchQueryDevtoolsAuthSession, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, tombstoneOf, 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, withLongPolling, withLongPollingUsedOnUnsupportedHttpMethod, withLongPollingUsedWithPolling, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage, writeQueryDevtoolsStore };
9428
- export type { AnyBearerAuthProvider, AnyCreateBearerAuthProviderResult, AnyCreateGqlQueryCreatorOptions, AnyCreateQueryClientResult, AnyGqlQueryConfig, AnyInfinityQuery, AnyInfinityQueryConfig, AnyLegacyQuery, AnyLegacyQueryCreator, AnyNewQuery, AnyPagedQueryStack, AnyQueryBatch, AnyQueryBatchItemResult, AnyQueryBuilder, AnyQueryClient, AnyQueryCollection, AnyQueryCollectionData, AnyQueryCollectionResponse, AnyQueryCreator, AnyQueryCreatorCollection, AnyQueryForm, AnyQuerySnapshot, AnyQueryStack, AnyRestQueryConfig, AnyRoute, AnyV2Query, AnyV2QueryCreator, AnyWebSocketClient, AppendItemsLocation, ApplyExternalResponseOptions, ApplyPersistedResponseOptions, AuthGuard, AuthGuardConfig, AuthGuardTarget, AuthProvider, AuthProviderBasicConfig, AuthProviderBearerConfig, AuthProviderCustomHeaderConfig, AuthQueryBuilder, AuthQueryConfig, BaseArguments, BaseQueryCreatorFactoryOptions, BaseQueryCreatorOptions, BaseQueryCreatorOptionsSubtle, BearerAuthActivityCoordination, BearerAuthExecutionState, BearerAuthExecutionStateError, BearerAuthExecutionStateLoading, BearerAuthExecutionStateLogout, BearerAuthExecutionStateSuccess, BearerAuthExecutionStateTokenSeed, BearerAuthFeature, BearerAuthMultiTabSyncConfig, BearerAuthMultiTabSyncFeature, BearerAuthProvider, BearerAuthProviderEarlySetup, BearerAuthProviderEarlySetupContext, BearerAuthProviderEarlySetupResult, BearerAuthProviderFeatureContext, BearerAuthProviderOf, BearerAuthProviderQueryContext, BearerAuthProviderRef, BearerAuthProviderTokens, BearerAuthRefreshCoordination, BearerAuthSessionAdoption, BearerAuthSessionEndCause, BearerAuthSessionStatus, BearerRefreshConfig, BodyType, BuildQueryStringConfig, CacheAdapterFn, Cancelled, ClassValidatorError, ConstructQuery, CreateBaseQueryOptions, CreateBearerAuthProviderConfig, CreateGqlQueryCreatorOptions, CreateGqlQueryExecuteOptions, CreateGqlQueryOptions, CreateHttpRequestDependencies, CreateHttpRequestOptions, CreateIndexedDbQueryPersistenceAdapterOptions, CreateLegacyQueryCreatorOptions, CreateLegacyQueryOptions, CreatePagedQueryStackOptions, CreateQueryBatchOptions, CreateQueryClientConfigOptions, CreateQueryCreatorOptions, CreateQueryExecuteOptions, CreateQueryObjectOptions, CreateQueryOptions, CreateQueryPersistenceEngineOptions, CreateQueryRepositoryConfig, CreateQuerySnapshotOptions, CreateQueryStackOptions, CreateQuerySubmissionConfig, CreateQuerySyncEngineOptions, CreateSecureGqlQueryExecuteOptions, CreateSecureGqlQueryOptions, CreateSecureQueryExecuteOptions, CreateSecureQueryOptions, CreateWebSocketClientConfigOptions, CreateWebSocketClientTransport, DefaultRetryOptions, DefineQueryFormConfig, DescribableFeature, DestroyCleanupCallback, EmptyObject, EntityGetParams, EntityIdParams, EntityKey, EntitySetParams, EntityStoreConfig, ExecuteFactory, ExecuteQueryOptions, ExtractQueryArgs, ExtractQueryKey, Failure, FeatureRegistry, GQL, GqlQueryArgs, GqlQueryConfig, GqlQueryConfigWithoutMethod, GqlQueryMethod, GqlQueryTransport, GqlRawResponseType, GqlTransferOption, GqlTransformer, GqlVariablesType, HttpCancelEvent, 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, LogoutEventData, 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, QueryBatch, QueryBatchDevtoolsHandle, QueryBatchItemCancelled, QueryBatchItemError, QueryBatchItemResult, QueryBatchItemSkipped, QueryBatchItemSuccess, QueryBatchResult, QueryBatchStatus, QueryClient, QueryClientDevtoolsOptions, QueryClientErrorPipelineFeature, QueryClientFeature, QueryClientFeatureContext, QueryClientFeatureFn, QueryClientMultiTabSyncFeature, QueryClientPersistenceFeature, QueryClientRef, QueryClientSubtle, QueryCollectionKeysOf, QueryCollectionOf, QueryCollectionWithNullableQuery, QueryConfig, QueryConfigBase, QueryConfigWithoutMethod, QueryContainerConfig, QueryCreator, QueryDataOf, QueryDependencies, QueryDevtoolsAbout, QueryDevtoolsApiEnv, QueryDevtoolsApiEnvSwitch, QueryDevtoolsAppInfo, QueryDevtoolsAuthAccount, QueryDevtoolsAuthAccountView, QueryDevtoolsAuthField, QueryDevtoolsAuthLocalAccount, QueryDevtoolsAuthProviderHandle, QueryDevtoolsAuthProviderRegistration, QueryDevtoolsAuthQuery, QueryDevtoolsAuthSeed, QueryDevtoolsAuthSession, QueryDevtoolsEntry, QueryDevtoolsEntryKind, QueryDevtoolsEntryMeta, QueryDevtoolsFault, QueryDevtoolsFaultTarget, QueryDevtoolsFeature, QueryDevtoolsFeatureDescriber, QueryDevtoolsFeatureDetail, QueryDevtoolsFormField, QueryDevtoolsFormHandle, QueryDevtoolsFormLinksHandle, QueryDevtoolsFormLinksRecorder, QueryDevtoolsMock, QueryDevtoolsMockTarget, QueryDevtoolsOptions, QueryDevtoolsOverrideEntry, QueryDevtoolsOverrideTransfer, QueryDevtoolsOverrideTransferParse, QueryDevtoolsOverridesHandle, QueryDevtoolsOverridesRecorder, QueryDevtoolsPayload, QueryDevtoolsRegistrar, QueryDevtoolsRegistration, QueryDevtoolsResolvedFault, QueryDevtoolsResolvedMock, QueryDevtoolsRoutePart, QueryDevtoolsRun, QueryDevtoolsRunError, QueryDevtoolsRunStatus, QueryDevtoolsSchemaComponents, QueryDevtoolsSchemaLoader, QueryDevtoolsSchemaLoaders, QueryDevtoolsSchemaRoute, QueryDevtoolsSchemaSeed, QueryDevtoolsSchemaState, QueryDevtoolsSeedStyle, QueryDevtoolsSettings, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsStatsRecorder, QueryDevtoolsStorageScope, QueryDirectiveContext, QueryDirectiveType, QueryEntityConfig, QueryErrorParser, QueryErrorResponse, QueryErrorResponseItem, QueryErrorResponseList, QueryErrorResponseSingle, QueryExecute, QueryExecuteArgs, QueryExecuteEventData, QueryExecuteOptions, QueryExecuteState, QueryExecutionState, QueryExecutionStateFailure, QueryExecutionStateFailureWithCachedResponse, QueryExecutionStateFailureWithNoResponse, QueryExecutionStateLoading, QueryExecutionStateLoadingWithCachedResponse, QueryExecutionStateLoadingWithNoResponse, QueryExecutionStateSuccess, QueryFailureEventData, QueryFeature, QueryFeatureContext, QueryFeatureFlags, QueryFeatureFn, QueryFieldConfig, QueryFieldDef, QueryFieldOptions, QueryFieldValue, QueryFilterConfig, QueryFormBranch, QueryFormChange, QueryFormFields, QueryFormGroup, QueryFormGroupControls, QueryFormModel, QueryFormObserveOptions, QueryFormOf, QueryFormOptions, QueryFormSignals, QueryFormSignalsObserveOptions, QueryFormSignalsWriteOptions, QueryFormValue, QueryFormValueEvent, QueryFormWriteOptions, QueryInvalidationCandidate, QueryInvalidationFilterFn, QueryInvalidationOptions, QueryKey, QueryKeyLockHold, QueryKeyLockHoldOptions, QueryKeyLockManager, QueryKeyLockState, QueryMethod, QueryMockConfig, QueryMultiTabSyncConfig, QueryOf, QueryParams, QueryParamsType, QueryPersistenceAdapter, QueryPersistenceCandidate, QueryPersistenceConfig, QueryPersistenceEngine, QueryPrepareFn, QueryRefreshCause, QueryRegistry, QueryRegistryEntry, QueryRepository, QueryRepositoryCacheEntry, QueryRepositoryDependencies, QueryRepositoryEntryDestroyedCause, QueryRepositoryEvent, QueryRepositoryItem, QueryRepositoryRefreshFilterFn, QueryRepositoryRequestOptions, QueryRepositorySubtle, QueryResponseOf, QueryRouteOf, QuerySequence, QuerySequenceResult, QuerySequenceStatus, QuerySequenceStepArgs, QuerySnapshot, QueryStack, QueryStackSubtle, QueryState, QueryStateMeta, QueryStateResponseOf, QueryStateSignal, QueryStateSubtle, QueryStateSuccessMeta, QueryStoreIdOf, QueryStoreOf, QuerySubmissionRef, QuerySubtle, QuerySuccessEventData, QuerySyncEngine, QuerySyncEnvelope, QuerySyncInvalidateMessage, QuerySyncMessage, QuerySyncMessageListener, QuerySyncMutation, QuerySyncMutationFilterFn, QuerySyncMutationMessage, QuerySyncRefreshCandidate, QuerySyncRefreshOnMutationConfig, QuerySyncResponseMessage, QuerySyncTransport, QueryTrigger, RawResponseType, ReadonlyQuery, RefreshFailure, RemoveFromConfig, RequestArgs, RequestConfig, RequestError, RequestEvent, RequestHeaders, RequestHeadersMethodMap, RequestHttpEvent, RequestProgress, RequestRetryFn, RequestRetryFnConfig, RequestRetryFnResult, RequiresTransform, ResetExecuteStateOptions, ResetPageOnErrorOperatorConfig, ResponseType, RestQueryConfig, RestoredQueryDevtoolsOverrides, 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, WithLongPollingFeatureOptions, WithMock, WithPageResetOnErrorFeatureOptions, WithPathParams, WithPollingFeatureOptions, WithQueryParams, WithResponseUpdateFeatureFnData, WithResponseUpdateFeatureOptions, WithSuccessHandlingFeatureOptions, WithVariables };
9630
+ export { AuthBearerRefreshStrategy, BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, 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_QUERY_BATCH_TOMBSTONES, MAX_QUERY_DEVTOOLS_TOMBSTONES, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_DEVTOOLS_TOKEN_TTL_LIMIT, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QUERY_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStateType, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, addQueryDevtoolsAuthAccount, applyQueryDevtoolsOverrides, applyQueryDevtoolsTokenTtl, applyQueryFeatures, armAllQueryDevtoolsMocks, armQueryDevtoolsMock, armQueryDevtoolsOverrideTransfer, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, canOverrideQueryDevtoolsTokenTtl, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsArmedMocks, clearQueryDevtoolsAuthCredentials, clearQueryDevtoolsAuthSessions, clearQueryDevtoolsFaults, clearQueryDevtoolsMockStore, clearQueryDevtoolsOverrideStore, clearQueryDevtoolsStore, clearQueryDevtoolsTokenTtl, clearQueryDevtoolsTombstones, clearRestoredQueryDevtoolsOverrides, collectLeafPaths, collectQueryDevtoolsSchemaComponents, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, contentfulGqlLikePaginationAdapter, countUnresolvedQueryDevtoolsOverrides, createAuthGuard, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDefaultRetryFn, createDeleteQuery, createExecuteFn, createGetQuery, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHeadQuery, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createOptionsQuery, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryBatch, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryCreator, createQueryDevtoolsOverrides, createQueryErrorResponse, createQueryFeature, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySubmission, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecureHeadQuery, createSecureOptionsQuery, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, defineQueryForm, deleteQueryDevtoolsMock, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, forgetQueryDevtoolsAuthSession, forgetQueryDevtoolsAuthSessionsFor, generateQueryDevtoolsNumberPreset, generateQueryDevtoolsSampleNumber, generateQueryDevtoolsStringPreset, getDefaultHeaders, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, gqlErrorsInResponse, hasHeader, hasQueryDevtoolsOverridesAtPath, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, injectInfinityQueryResponseDelay, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isIdempotentQueryMethod, isLegacyQuery, isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsEnabled, isQueryDevtoolsFaultArmed, isQueryDevtoolsRepositoryLive, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareWithoutInjectionContext, loadQueryDevtoolsSchema, loginQueryDevtoolsAuthAccount, logoutQueryDevtoolsAuthSession, mapToPaginated, mapViolationsToFormErrors, matchesQueryDevtoolsMockPattern, matchesQueryDevtoolsMockQuery, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, parseQueryDevtoolsOverrideTransfer, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryBatchAlreadyRunning, queryBatchWithArgsUsed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsAbout, queryDevtoolsAllowsLocalAuthSessions, queryDevtoolsApiEnvIds, queryDevtoolsApiEnvIsProduction, queryDevtoolsApiEnvScope, queryDevtoolsApiEnvValues, queryDevtoolsApiEnvs, queryDevtoolsArmedMocks, queryDevtoolsArmedMocksRestored, queryDevtoolsAuthAccountsFor, queryDevtoolsAuthActive, queryDevtoolsAuthFieldsFor, queryDevtoolsAuthOtherScopeCount, queryDevtoolsAuthSessions, queryDevtoolsAuthSessionsFor, queryDevtoolsAuthTabLocal, queryDevtoolsEntries, queryDevtoolsFaults, queryDevtoolsFaultsRestored, queryDevtoolsMockId, queryDevtoolsMocks, queryDevtoolsOverridePersistence, queryDevtoolsRequestPath, queryDevtoolsResponseHistory, queryDevtoolsRestoredOverridesScope, queryDevtoolsSchemaNames, queryDevtoolsSchemaRoutes, queryDevtoolsSchemaState, queryDevtoolsSettings, queryDevtoolsStorage, queryDevtoolsTokenTtls, queryErrorMessage, queryErrorMessages, queryExecute, queryExecutedAfterDestroyMessage, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, readQueryDevtoolsStore, registerEthleteVersion, registerQueryErrorParser, removeFrom, removeQueryDevtoolsAuthAccount, renameQueryDevtoolsAuthSession, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, resolveQueryHeaders, restoredQueryDevtoolsOverrides, saveQueryDevtoolsMock, searchQueryField, seedQueryDevtoolsSchemaBody, seedQueryDevtoolsSchemaRoute, serializeBody, serializeQueryDevtoolsOverrideTransfer, setQueryDevtoolsApiEnv, setQueryDevtoolsAppInfo, setQueryDevtoolsArmedMocksScope, setQueryDevtoolsAuthCredentials, setQueryDevtoolsAuthTabLocal, setQueryDevtoolsFault, setQueryDevtoolsFaultsScope, setQueryDevtoolsOverridePersistence, setQueryDevtoolsOverridesScope, setQueryDevtoolsSettings, setQueryDevtoolsTokenTtl, setQueryDevtoolsUiMounted, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, snapshotQueryDevtoolsHandle, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, switchQueryCollectionState, switchQueryDevtoolsAuthSession, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, tombstoneOf, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapGqlResponseWithErrors, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withLongPolling, withLongPollingUsedOnUnsupportedHttpMethod, withLongPollingUsedWithPolling, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage, writeQueryDevtoolsStore };
9631
+ export type { AnyBearerAuthProvider, AnyCreateBearerAuthProviderResult, AnyCreateGqlQueryCreatorOptions, AnyCreateQueryClientResult, AnyGqlQueryConfig, AnyInfinityQuery, AnyInfinityQueryConfig, AnyLegacyQuery, AnyLegacyQueryCreator, AnyNewQuery, AnyPagedQueryStack, AnyQueryBatch, AnyQueryBatchItemResult, AnyQueryBuilder, AnyQueryClient, AnyQueryCollection, AnyQueryCollectionData, AnyQueryCollectionResponse, AnyQueryCreator, AnyQueryCreatorCollection, AnyQueryForm, AnyQuerySnapshot, AnyQueryStack, AnyRestQueryConfig, AnyRoute, AnyV2Query, AnyV2QueryCreator, AnyWebSocketClient, AppendItemsLocation, ApplyExternalResponseOptions, ApplyPersistedResponseOptions, AuthGuard, AuthGuardConfig, AuthGuardPermission, AuthGuardPermissionOptions, AuthGuardTarget, AuthProvider, AuthProviderBasicConfig, AuthProviderBearerConfig, AuthProviderCustomHeaderConfig, AuthQueryBuilder, AuthQueryConfig, BaseArguments, BaseQueryCreatorFactoryOptions, BaseQueryCreatorOptions, BaseQueryCreatorOptionsSubtle, BearerAuthActivityCoordination, BearerAuthExecutionState, BearerAuthExecutionStateError, BearerAuthExecutionStateLoading, BearerAuthExecutionStateLogout, BearerAuthExecutionStateSuccess, BearerAuthExecutionStateTokenSeed, BearerAuthFeature, BearerAuthMultiTabSyncConfig, BearerAuthMultiTabSyncFeature, BearerAuthProvider, BearerAuthProviderEarlySetup, BearerAuthProviderEarlySetupContext, BearerAuthProviderEarlySetupResult, BearerAuthProviderFeatureContext, BearerAuthProviderOf, BearerAuthProviderQueryContext, BearerAuthProviderRef, BearerAuthProviderTokens, BearerAuthRefreshCoordination, BearerAuthSession, BearerAuthSessionAdoption, BearerAuthSessionEndCause, BearerAuthSessionStatus, BearerRefreshConfig, BodyType, BuildQueryStringConfig, CacheAdapterFn, Cancelled, ClassValidatorError, ConstructQuery, CreateBaseQueryOptions, CreateBearerAuthProviderConfig, CreateGqlQueryCreatorOptions, CreateGqlQueryExecuteOptions, CreateGqlQueryOptions, CreateHttpRequestDependencies, CreateHttpRequestOptions, CreateIndexedDbQueryPersistenceAdapterOptions, CreateLegacyQueryCreatorOptions, CreateLegacyQueryOptions, CreatePagedQueryStackOptions, CreateQueryBatchOptions, CreateQueryClientConfigOptions, CreateQueryCreatorOptions, CreateQueryExecuteOptions, CreateQueryObjectOptions, CreateQueryOptions, CreateQueryPersistenceEngineOptions, CreateQueryRepositoryConfig, CreateQuerySnapshotOptions, CreateQueryStackOptions, CreateQuerySubmissionConfig, CreateQuerySyncEngineOptions, CreateSecureGqlQueryExecuteOptions, CreateSecureGqlQueryOptions, CreateSecureQueryExecuteOptions, CreateSecureQueryOptions, CreateWebSocketClientConfigOptions, CreateWebSocketClientTransport, DefaultRetryOptions, DefineQueryFormConfig, DescribableFeature, DestroyCleanupCallback, EmptyObject, EntityGetParams, EntityIdParams, EntityKey, EntitySetParams, EntityStoreConfig, ExecuteFactory, ExecuteQueryOptions, ExtractQueryArgs, ExtractQueryKey, Failure, FeatureRegistry, GQL, GqlDataWithErrors, GqlEnvelope, GqlError, GqlQueryArgs, GqlQueryConfig, GqlQueryConfigWithoutMethod, GqlQueryMethod, GqlQueryTransport, GqlRawResponseType, GqlTransferOption, GqlTransformer, GqlVariablesType, HttpCancelEvent, 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, LogoutEventData, 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, QueryBatch, QueryBatchDevtoolsHandle, QueryBatchItemCancelled, QueryBatchItemError, QueryBatchItemResult, QueryBatchItemSkipped, QueryBatchItemSuccess, QueryBatchResult, QueryBatchStatus, QueryClient, QueryClientDevtoolsOptions, QueryClientErrorPipelineFeature, QueryClientFeature, QueryClientFeatureContext, QueryClientFeatureFn, QueryClientMultiTabSyncFeature, QueryClientPersistenceFeature, QueryClientRef, QueryClientSubtle, QueryCollectionKeysOf, QueryCollectionOf, QueryCollectionWithNullableQuery, QueryConfig, QueryConfigBase, QueryConfigWithoutMethod, QueryContainerConfig, QueryCreator, QueryDataOf, QueryDependencies, QueryDevtoolsAbout, QueryDevtoolsApiEnv, QueryDevtoolsApiEnvSwitch, QueryDevtoolsAppInfo, QueryDevtoolsAuthAccount, QueryDevtoolsAuthAccountView, QueryDevtoolsAuthField, QueryDevtoolsAuthLocalAccount, QueryDevtoolsAuthProviderHandle, QueryDevtoolsAuthProviderRegistration, QueryDevtoolsAuthQuery, QueryDevtoolsAuthSeed, QueryDevtoolsAuthSession, QueryDevtoolsEntry, QueryDevtoolsEntryKind, QueryDevtoolsEntryMeta, QueryDevtoolsFault, QueryDevtoolsFaultTarget, QueryDevtoolsFeature, QueryDevtoolsFeatureDescriber, QueryDevtoolsFeatureDetail, QueryDevtoolsFormField, QueryDevtoolsFormHandle, QueryDevtoolsFormLinksHandle, QueryDevtoolsFormLinksRecorder, QueryDevtoolsMock, QueryDevtoolsMockTarget, QueryDevtoolsOptions, QueryDevtoolsOverrideEntry, QueryDevtoolsOverrideTransfer, QueryDevtoolsOverrideTransferParse, QueryDevtoolsOverridesHandle, QueryDevtoolsOverridesRecorder, QueryDevtoolsPayload, QueryDevtoolsRegistrar, QueryDevtoolsRegistration, QueryDevtoolsResolvedFault, QueryDevtoolsResolvedMock, QueryDevtoolsRoutePart, QueryDevtoolsRun, QueryDevtoolsRunError, QueryDevtoolsRunStatus, QueryDevtoolsSchemaComponents, QueryDevtoolsSchemaLoader, QueryDevtoolsSchemaLoaders, QueryDevtoolsSchemaRoute, QueryDevtoolsSchemaSeed, QueryDevtoolsSchemaState, QueryDevtoolsSeedStyle, QueryDevtoolsSettings, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsStatsRecorder, QueryDevtoolsStorageScope, QueryDirectiveContext, QueryDirectiveType, QueryEntityConfig, QueryErrorParser, QueryErrorResponse, QueryErrorResponseItem, QueryErrorResponseList, QueryErrorResponseSingle, QueryExecute, QueryExecuteArgs, QueryExecuteEventData, QueryExecuteOptions, QueryExecuteState, QueryExecutionState, QueryExecutionStateFailure, QueryExecutionStateFailureWithCachedResponse, QueryExecutionStateFailureWithNoResponse, QueryExecutionStateLoading, QueryExecutionStateLoadingWithCachedResponse, QueryExecutionStateLoadingWithNoResponse, QueryExecutionStateSuccess, QueryFailureEventData, QueryFeature, QueryFeatureContext, QueryFeatureFlags, QueryFeatureFn, QueryFieldConfig, QueryFieldDef, QueryFieldOptions, QueryFieldValue, QueryFilterConfig, QueryFormBranch, QueryFormBranchWriteOptions, QueryFormChange, QueryFormFields, QueryFormGroup, QueryFormGroupControls, QueryFormModel, QueryFormObserveOptions, QueryFormOf, QueryFormOptions, QueryFormPersistence, QueryFormSignals, QueryFormSignalsObserveOptions, QueryFormSignalsWriteOptions, QueryFormStorage, QueryFormValue, QueryFormValueEvent, QueryFormWriteOptions, QueryHeaders, QueryHeadersInput, QueryInvalidationCandidate, QueryInvalidationFilterFn, QueryInvalidationOptions, QueryKey, QueryKeyLockHold, QueryKeyLockHoldOptions, QueryKeyLockManager, QueryKeyLockState, QueryMethod, QueryMockConfig, QueryMultiTabSyncConfig, QueryOf, QueryParams, QueryParamsType, QueryPersistenceAdapter, QueryPersistenceCandidate, QueryPersistenceConfig, QueryPersistenceEngine, QueryPrepareFn, QueryRefreshCause, QueryRegistry, QueryRegistryEntry, QueryRepository, QueryRepositoryCacheEntry, QueryRepositoryDependencies, QueryRepositoryEntryDestroyedCause, QueryRepositoryEvent, QueryRepositoryItem, QueryRepositoryRefreshFilterFn, QueryRepositoryRequestOptions, QueryRepositorySubtle, QueryResponseOf, QueryRouteOf, QuerySequence, QuerySequenceResult, QuerySequenceStatus, QuerySequenceStepArgs, QuerySnapshot, QueryStack, QueryStackSubtle, QueryState, QueryStateMeta, QueryStateResponseOf, QueryStateSignal, QueryStateSubtle, QueryStateSuccessMeta, QueryStoreIdOf, QueryStoreOf, QuerySubmissionRef, QuerySubtle, QuerySuccessEventData, QuerySyncEngine, QuerySyncEnvelope, QuerySyncInvalidateMessage, QuerySyncMessage, QuerySyncMessageListener, QuerySyncMutation, QuerySyncMutationFilterFn, QuerySyncMutationMessage, QuerySyncRefreshCandidate, QuerySyncRefreshOnMutationConfig, QuerySyncResponseMessage, QuerySyncTransport, QueryTrigger, RawResponseType, ReadonlyQuery, RefreshFailure, RemoveFromConfig, RequestArgs, RequestConfig, RequestError, RequestEvent, RequestHeaders, RequestHeadersMethodMap, RequestHttpEvent, RequestProgress, RequestRetryFn, RequestRetryFnConfig, RequestRetryFnResult, RequiresTransform, ResetExecuteStateOptions, ResetPageOnErrorOperatorConfig, ResponseType, RestQueryConfig, RestoredQueryDevtoolsOverrides, 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, WebSocketClientAuth, WebSocketClientIo, WebSocketClientIoOptions, WebSocketClientResult, WebSocketClientSocket, WebSocketClientSubtle, WebSocketDevtoolsHandle, WebSocketDevtoolsMessage, WebSocketRoom, WithAutoRefreshFeatureOptions, WithBody, WithConfig, WithErrorHandlingFeatureOptions, WithHeaders, WithInjector, WithLegacyConfig, WithLoggingFeatureOptions, WithLongPollingFeatureOptions, WithMock, WithPageResetOnErrorFeatureOptions, WithPathParams, WithPollingFeatureOptions, WithQueryParams, WithResponseUpdateFeatureFnData, WithResponseUpdateFeatureOptions, WithSuccessHandlingFeatureOptions, WithVariables };