@ethlete/query 6.0.0-next.46 → 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'> & {
@@ -3397,7 +3477,6 @@ declare const QueryRuntimeErrorCode: {
3397
3477
  readonly PAGED_QUERY_STACK_PREVIOUS_PAGE_CALLED_BUT_ALREADY_AT_FIRST_PAGE: 402;
3398
3478
  readonly QUERY_STACK_WITH_ARGS_USED: 500;
3399
3479
  readonly QUERY_STACK_WITH_RESPONSE_UPDATE_USED: 501;
3400
- readonly QUERY_STACK_TOTAL_QUERIES_AND_EXPECTED_QUERIES_MISMATCH: 502;
3401
3480
  readonly GQL_DATA_PROPERTY_MISSING_IN_RESPONSE: 600;
3402
3481
  readonly GQL_ERRORS_IN_RESPONSE: 601;
3403
3482
  readonly TOKENS_NOT_AVAILABLE_INSIDE_AUTH_AND_EXEC: 700;
@@ -3433,7 +3512,6 @@ declare const pagedQueryStackNextPageCalledWithoutPreviousPage: () => RuntimeErr
3433
3512
  declare const pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage: () => RuntimeError<402>;
3434
3513
  declare const queryStackWithArgsUsed: () => RuntimeError<500>;
3435
3514
  declare const queryStackWithResponseUpdateUsed: () => RuntimeError<501>;
3436
- declare const queryStackTotalQueriesAndExpectedQueriesMismatch: (totalQueries: number, expectedQueries: number) => RuntimeError<502>;
3437
3515
  declare const gqlDataPropertyMissingInResponse: () => RuntimeError<600>;
3438
3516
  declare const gqlErrorsInResponse: (errors: unknown[]) => HttpErrorResponse;
3439
3517
  declare const tokensNotAvailableInsideAuthAndExec: () => RuntimeError<700>;
@@ -4026,7 +4104,7 @@ type TokenRefreshQueryConfig<TArgs extends QueryArgs> = AuthQueryConfig<TArgs> &
4026
4104
  refreshIfExpired?: boolean;
4027
4105
  /**
4028
4106
  * Configuration for retry behavior on failed refresh attempts.
4029
- * @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 }
4030
4108
  */
4031
4109
  retryConfig?: {
4032
4110
  /**
@@ -4042,9 +4120,8 @@ type TokenRefreshQueryConfig<TArgs extends QueryArgs> = AuthQueryConfig<TArgs> &
4042
4120
  */
4043
4121
  maxRetryDelayMs?: number;
4044
4122
  /**
4045
- * Maximum number of retry attempts.
4046
- * Set to 0 for unlimited retries.
4047
- * @default 0 (unlimited)
4123
+ * Maximum number of retry attempts. Set to 0 for unlimited retries.
4124
+ * @default 8
4048
4125
  */
4049
4126
  maxAttempts?: number;
4050
4127
  };
@@ -4291,10 +4368,10 @@ type PersistentAuthConfig<TBuilders extends readonly AnyQueryBuilder[], TKey ext
4291
4368
  */
4292
4369
  queryKey: TKey;
4293
4370
  /**
4294
- * A function that turns the token gotten from the cookie into the body for the auto-login request
4295
- * @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 } })`
4296
4373
  */
4297
- buildArgs: (token: string) => RequestArgs<ExtractQueryArgs<Extract<TBuilders[number], {
4374
+ buildArgs?: (token: string) => RequestArgs<ExtractQueryArgs<Extract<TBuilders[number], {
4298
4375
  key: TKey;
4299
4376
  }>>>;
4300
4377
  /**
@@ -4357,8 +4434,7 @@ type TokenExpirationWarningConfig = {
4357
4434
  checkInterval?: number;
4358
4435
  /**
4359
4436
  * Name of the claim in the decoded access token that carries the expiry, as seconds since the epoch.
4360
- * Must match the `expiresInPropertyName` of the refresh query.
4361
- * @default 'exp'
4437
+ * @default the refresh query's `expiresInPropertyName`, otherwise `'exp'`
4362
4438
  */
4363
4439
  expiresInPropertyName?: string;
4364
4440
  };
@@ -4391,9 +4467,9 @@ type TokenRevocationConfig<TBuilders extends readonly AnyQueryBuilder[], TKey ex
4391
4467
  */
4392
4468
  queryKey: TKey;
4393
4469
  /**
4394
- * 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.
4395
4471
  */
4396
- buildArgs: (tokens: {
4472
+ buildArgs?: (tokens: {
4397
4473
  accessToken: string | null;
4398
4474
  refreshToken: string | null;
4399
4475
  }) => RequestArgs<ExtractQueryArgs<Extract<TBuilders[number], {
@@ -4404,6 +4480,16 @@ type TokenRevocationConfig<TBuilders extends readonly AnyQueryBuilder[], TKey ex
4404
4480
  * @default true
4405
4481
  */
4406
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;
4407
4493
  };
4408
4494
  type TokenRevocationFeature<TQuerySnapshot extends AnyQuerySnapshot> = {
4409
4495
  /**
@@ -4559,6 +4645,15 @@ type BearerAuthSessionEndCause =
4559
4645
  | 'expired'
4560
4646
  /** Another tab logged out and `withBearerAuthMultiTabSync` carried it here. */
4561
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
+ };
4562
4657
  declare const BearerAuthFeatureType: {
4563
4658
  readonly PERSISTENT_AUTH: "PERSISTENT_AUTH";
4564
4659
  readonly TOKEN_EXPIRATION_WARNING: "TOKEN_EXPIRATION_WARNING";
@@ -4793,6 +4888,8 @@ type BearerAuthProvider<TBuilders extends readonly AnyQueryBuilder[], TFeatures
4793
4888
  * Cleared as soon as tokens are applied again.
4794
4889
  */
4795
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'>>;
4796
4893
  /**
4797
4894
  * Seeds the provider with tokens that were issued outside of it - an SSO/OIDC callback that
4798
4895
  * arrives with both tokens in the URL, a token handed over by a native shell, a test harness.
@@ -4852,6 +4949,8 @@ type BearerAuthProviderFeatureContext<TBearerData = unknown, TBuilders extends r
4852
4949
  */
4853
4950
  activityCoordination?: BearerAuthActivityCoordination;
4854
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;
4855
4954
  latestExecutedQuery: Signal<{
4856
4955
  key: string;
4857
4956
  snapshot: QuerySnapshot<QueryArgs>;
@@ -4903,7 +5002,7 @@ type AnyCreateBearerAuthProviderResult = BearerAuthProviderRef<any, any, any>;
4903
5002
  * export const myApiAuthProviderRef = createBearerAuthProvider({ ... });
4904
5003
  * export type MyApiAuthProvider = BearerAuthProviderOf<typeof myApiAuthProviderRef>;
4905
5004
  *
4906
- * const doLogin = (provider: MyApiAuthProvider) => provider.queries.login({ body: { ... } });
5005
+ * const doLogin = (provider: MyApiAuthProvider) => provider.queries.login.execute({ body: { ... } });
4907
5006
  * ```
4908
5007
  */
4909
5008
  type BearerAuthProviderOf<TRef extends AnyCreateBearerAuthProviderResult> = NonNullable<ReturnType<TRef['inject']>>;
@@ -4944,8 +5043,40 @@ type AuthGuardConfig = {
4944
5043
  * @default { replaceUrl: true }
4945
5044
  */
4946
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;
4947
5069
  };
4948
- 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> = {
4949
5080
  /**
4950
5081
  * Requires a session. On a lazy route this is the one to use - a visitor without a session never
4951
5082
  * downloads the child bundle.
@@ -4953,6 +5084,17 @@ type AuthGuard = {
4953
5084
  canMatch: CanMatchFn;
4954
5085
  /** Requires a session, as a `canActivate` guard. */
4955
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;
4956
5098
  /** Requires _no_ session - keeps a signed-in visitor off the login route. */
4957
5099
  canMatchAnonymous: CanMatchFn;
4958
5100
  /** Requires _no_ session, as a `canActivate` guard. */
@@ -4980,10 +5122,11 @@ type AuthGuard = {
4980
5122
  * ];
4981
5123
  * ```
4982
5124
  *
4983
- * A guard pends while a session restore is in flight rather than redirecting against a session that
4984
- * 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.
4985
5128
  */
4986
- declare const createAuthGuard: (providerRef: AnyCreateBearerAuthProviderResult, config: AuthGuardConfig) => AuthGuard;
5129
+ declare const createAuthGuard: <TRef extends AnyCreateBearerAuthProviderResult>(providerRef: TRef, config: AuthGuardConfig) => AuthGuard<TRef>;
4987
5130
 
4988
5131
  /**
4989
5132
  * Free-form build information about the application itself - version, commit SHA, environment name,
@@ -5367,7 +5510,8 @@ declare const clearQueryDevtoolsStore: (key: string) => void;
5367
5510
  * Whether the session vault may be kept in `localStorage`. Only a development build may: the vault
5368
5511
  * holds live access and refresh tokens plus the credentials somebody typed in, and a deployed
5369
5512
  * application that mounts the panel for its debugging value must not leave those on the machine of
5370
- * 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.
5371
5515
  *
5372
5516
  * Part of the devtools contract. **Not part of the general public contract.**
5373
5517
  */
@@ -6288,7 +6432,6 @@ type CreateGqlQueryExecuteOptions<TArgs extends QueryArgs> = {
6288
6432
  creatorInternals: InternalCreateGqlQueryCreatorOptions;
6289
6433
  queryConfig: QueryConfig;
6290
6434
  };
6291
- declare const createGqlExecuteFn: <TArgs extends GqlQueryArgs>(executeOptions: CreateGqlQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
6292
6435
 
6293
6436
  type InternalSecureCreateGqlQueryCreatorOptions = {
6294
6437
  method: 'QUERY' | 'MUTATE';
@@ -6311,7 +6454,6 @@ type CreateSecureGqlQueryExecuteOptions<TArgs extends GqlQueryArgs> = {
6311
6454
  creatorInternals: InternalSecureCreateGqlQueryCreatorOptions;
6312
6455
  queryConfig: QueryConfig;
6313
6456
  };
6314
- declare const createSecureGqlExecuteFn: <TArgs extends GqlQueryArgs>(executeOptions: CreateSecureGqlQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
6315
6457
 
6316
6458
  /**
6317
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.
@@ -9158,6 +9300,31 @@ type QueryFormSignalsObserveOptions = {
9158
9300
  * @default false
9159
9301
  */
9160
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[];
9161
9328
  };
9162
9329
  /**
9163
9330
  * Options for a single programmatic write (`setValue`/`patchValue`/reset).
@@ -9173,6 +9340,12 @@ type QueryFormSignalsWriteOptions = {
9173
9340
  * @default false
9174
9341
  */
9175
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;
9176
9349
  };
9177
9350
 
9178
9351
  /**
@@ -9195,11 +9368,13 @@ type QueryFormBranch<TFields extends QueryFormFields> = {
9195
9368
  readonly liveValue: Signal<QueryFormModel<TFields>>;
9196
9369
  /** The number of active (non-default) filters in the branch. */
9197
9370
  readonly activeFilterCount: Signal<number>;
9198
- setValue(value: QueryFormModel<TFields>): void;
9199
- patchValue(value: Partial<QueryFormModel<TFields>>): void;
9200
- resetFieldToDefault(key: keyof QueryFormModel<TFields>): void;
9201
- 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;
9202
9375
  };
9376
+ /** Options for a write to a {@link QueryFormBranch}. */
9377
+ type QueryFormBranchWriteOptions = Pick<QueryFormSignalsWriteOptions, 'debounce'>;
9203
9378
  type DefineQueryFormConfig<TFields extends QueryFormFields> = {
9204
9379
  readonly fields: TFields;
9205
9380
  /**
@@ -9341,7 +9516,10 @@ type WebSocketClientIoOptions = {
9341
9516
  withCredentials: boolean;
9342
9517
  autoConnect: boolean;
9343
9518
  transports: CreateWebSocketClientTransport[] | undefined;
9519
+ auth?: (cb: (data: object) => void) => void;
9344
9520
  };
9521
+ /** The payload socket.io sends in the handshake of every (re)connect. */
9522
+ type WebSocketClientAuth = Record<string, unknown>;
9345
9523
  /** The slice of a socket io `Socket` this client drives. */
9346
9524
  type WebSocketClientSocket = {
9347
9525
  connect: () => void;
@@ -9379,6 +9557,20 @@ type CreateWebSocketClientConfigOptions = {
9379
9557
  io: WebSocketClientIo;
9380
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. */
9381
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);
9382
9574
  };
9383
9575
  /** A default socket io message view */
9384
9576
  type SocketMessageView<TMessageData = unknown> = {
@@ -9404,11 +9596,18 @@ type WebSocketClient<TMessageData extends SocketMessageView> = {
9404
9596
  joinRoom: (room: string | (() => string | null)) => Signal<WebSocketRoom<TMessageData> | null>;
9405
9597
  /** Whether the client is connected to the server */
9406
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;
9407
9604
  /** Advanced web socket features. **WARNING!** Incorrectly using these features will likely **BREAK** your application. You have been warned! */
9408
9605
  subtle: WebSocketClientSubtle;
9409
9606
  };
9410
9607
  type InternalWebSocketRoom<TMessageData extends SocketMessageView> = {
9411
9608
  latestMessage: WritableSignal<TMessageData | null>;
9609
+ messages: Subject<TMessageData>;
9610
+ messages$: Observable<TMessageData>;
9412
9611
  /**
9413
9612
  * How many callers currently hold this room. Joiners share one room object, so the room may only be
9414
9613
  * left once this reaches zero - otherwise the first caller to unmount stops the messages for the rest.
@@ -9416,15 +9615,17 @@ type InternalWebSocketRoom<TMessageData extends SocketMessageView> = {
9416
9615
  joinCount: number;
9417
9616
  };
9418
9617
  type WebSocketRoom<TMessageData extends SocketMessageView> = {
9419
- /** 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. */
9420
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>;
9421
9622
  };
9422
9623
  type WebSocketClientResult<TMessageData extends SocketMessageView = SocketMessageView> = ProviderDefinition<WebSocketClient<TMessageData>>;
9423
9624
  type AnyWebSocketClient<TMessageData extends SocketMessageView = SocketMessageView> = WebSocketClientResult<TMessageData>;
9424
9625
  declare const createWebSocketClient: <TMessageData extends SocketMessageView = SocketMessageView>(options: CreateWebSocketClientConfigOptions) => WebSocketClientResult<TMessageData>;
9425
9626
 
9426
9627
  /** The version of `@ethlete/query` this build was cut from. */
9427
- declare const QUERY_VERSION = "6.0.0-next.46";
9628
+ declare const QUERY_VERSION = "6.0.0-next.49";
9428
9629
 
9429
- 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, queryStackTotalQueriesAndExpectedQueriesMismatch, 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 };
9430
- 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 };