@indxsearch/indx-types 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/problem.d.ts +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.4.0] - 2026-09-14
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `rateLimited` in `IndxProblemCode`, with `retryAfterSeconds` on `IndxProblem`: the
|
|
13
|
+
server's anonymous auth endpoints (login, register, password reset) answer 429 with it
|
|
14
|
+
after too many attempts from one address; so do API calls over a key's per-second budget
|
|
15
|
+
(where the operator enabled it), heavy operations beyond the server's concurrency cap, and
|
|
16
|
+
searches beyond its queue.
|
|
17
|
+
|
|
8
18
|
## [2.3.0] - 2026-09-12
|
|
9
19
|
|
|
10
20
|
### Changed
|
package/dist/problem.d.ts
CHANGED
|
@@ -11,8 +11,14 @@
|
|
|
11
11
|
* `currentState`, `allowedStates` and `retryable`; when retryable (Loading / Indexing) the
|
|
12
12
|
* response also has a `Retry-After` header.
|
|
13
13
|
* - `shadowBusy` (409): a field-configuration or replace build is in progress; try again later.
|
|
14
|
+
* - `rateLimited` (429): too many attempts from this address on an anonymous auth endpoint
|
|
15
|
+
* (login, register, password reset); this API key exceeded its per-second budget where the
|
|
16
|
+
* operator enabled per-key limits; or the server is at capacity — its cap on concurrent
|
|
17
|
+
* heavy operations (load, replace, index, wake-up, batch document changes) is reached, or
|
|
18
|
+
* its search queue is full. Carries `retryAfterSeconds` and a `Retry-After` header; wait that
|
|
19
|
+
* long and retry.
|
|
14
20
|
*/
|
|
15
|
-
export type IndxProblemCode = 'invalidArgument' | 'invalidDatasetName' | 'loadFailed' | 'operationFailed' | 'unknownFilter' | 'invalidCredentials' | 'emailNotConfirmed' | 'insufficientRole' | 'datasetNotFound' | 'documentNotFound' | 'teamNotFound' | 'invalidState' | 'shadowBusy';
|
|
21
|
+
export type IndxProblemCode = 'invalidArgument' | 'invalidDatasetName' | 'loadFailed' | 'operationFailed' | 'unknownFilter' | 'invalidCredentials' | 'emailNotConfirmed' | 'insufficientRole' | 'datasetNotFound' | 'documentNotFound' | 'teamNotFound' | 'invalidState' | 'shadowBusy' | 'rateLimited';
|
|
16
22
|
/**
|
|
17
23
|
* An Indx error response body (`application/problem+json`, RFC 9457) with the `code`
|
|
18
24
|
* extension every endpoint adds. 401 from the JWT middleware comes without a body.
|
|
@@ -36,6 +42,8 @@ export interface IndxProblem {
|
|
|
36
42
|
retryable?: boolean;
|
|
37
43
|
/** `invalidState` in the Error state: the engine's error message. */
|
|
38
44
|
errorMessage?: string;
|
|
45
|
+
/** `rateLimited` only: seconds until the window opens again (also the `Retry-After` header). */
|
|
46
|
+
retryAfterSeconds?: number;
|
|
39
47
|
/** Registration / password endpoints: per-field validation messages. */
|
|
40
48
|
errors?: string[];
|
|
41
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indxsearch/indx-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "TypeScript type definitions for Indx v2. Provides complete types for search queries, filters, boosts, results, and system status based on the official Swagger specification.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indx",
|