@oro-ai/sdk 1.0.71 → 1.0.72
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/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +13 -5
- package/src/generated/types.gen.ts +1 -3
package/dist/index.d.mts
CHANGED
|
@@ -3129,9 +3129,7 @@ type HealthCheckResponse = ({
|
|
|
3129
3129
|
[key: string]: unknown;
|
|
3130
3130
|
});
|
|
3131
3131
|
type HealthCheckError = unknown;
|
|
3132
|
-
type DeepHealthCheckResponse = (
|
|
3133
|
-
[key: string]: unknown;
|
|
3134
|
-
});
|
|
3132
|
+
type DeepHealthCheckResponse = (unknown);
|
|
3135
3133
|
type DeepHealthCheckError = unknown;
|
|
3136
3134
|
type ListSuitesResponse = (Array<SuitePublic>);
|
|
3137
3135
|
type ListSuitesError = unknown;
|
|
@@ -3948,13 +3946,21 @@ declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
3948
3946
|
* Deep Health Check
|
|
3949
3947
|
* Deep readiness check that exercises the SQLAlchemy pool (ORO-1121).
|
|
3950
3948
|
*
|
|
3951
|
-
* Acquires a session and runs SELECT 1 with a hard timeout
|
|
3952
|
-
*
|
|
3953
|
-
*
|
|
3954
|
-
*
|
|
3955
|
-
*
|
|
3949
|
+
* Acquires a session and runs SELECT 1 with a hard timeout, retrying
|
|
3950
|
+
* once on failure to ride out transient pool stalls or one-shot
|
|
3951
|
+
* network blips (ORO-1168). If the pool is wedged (phantom-checked-out
|
|
3952
|
+
* slots) or RDS is unreachable across both attempts, the check fails
|
|
3953
|
+
* and the ALB pulls the task out of rotation after its own
|
|
3954
|
+
* unhealthy_threshold_count consecutive failures.
|
|
3955
|
+
*
|
|
3956
|
+
* On final failure we return 503 directly via `JSONResponse` instead
|
|
3957
|
+
* of raising `HTTPException`. The status to the ALB is identical, but
|
|
3958
|
+
* the Sentry FastAPI integration only captures *exceptions* — so this
|
|
3959
|
+
* path no longer triggers the "new unhandled error" PD rule on a
|
|
3960
|
+
* transient blip. Sustained DB-unreachable is correctly surfaced by
|
|
3961
|
+
* the ALB target-health alarm, not the Sentry new-issue rule.
|
|
3956
3962
|
*/
|
|
3957
|
-
declare const deepHealthCheck: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
3963
|
+
declare const deepHealthCheck: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
3958
3964
|
/**
|
|
3959
3965
|
* List all suites
|
|
3960
3966
|
* Get all problem suites, ordered by version descending (newest first).
|
package/dist/index.d.ts
CHANGED
|
@@ -3129,9 +3129,7 @@ type HealthCheckResponse = ({
|
|
|
3129
3129
|
[key: string]: unknown;
|
|
3130
3130
|
});
|
|
3131
3131
|
type HealthCheckError = unknown;
|
|
3132
|
-
type DeepHealthCheckResponse = (
|
|
3133
|
-
[key: string]: unknown;
|
|
3134
|
-
});
|
|
3132
|
+
type DeepHealthCheckResponse = (unknown);
|
|
3135
3133
|
type DeepHealthCheckError = unknown;
|
|
3136
3134
|
type ListSuitesResponse = (Array<SuitePublic>);
|
|
3137
3135
|
type ListSuitesError = unknown;
|
|
@@ -3948,13 +3946,21 @@ declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
3948
3946
|
* Deep Health Check
|
|
3949
3947
|
* Deep readiness check that exercises the SQLAlchemy pool (ORO-1121).
|
|
3950
3948
|
*
|
|
3951
|
-
* Acquires a session and runs SELECT 1 with a hard timeout
|
|
3952
|
-
*
|
|
3953
|
-
*
|
|
3954
|
-
*
|
|
3955
|
-
*
|
|
3949
|
+
* Acquires a session and runs SELECT 1 with a hard timeout, retrying
|
|
3950
|
+
* once on failure to ride out transient pool stalls or one-shot
|
|
3951
|
+
* network blips (ORO-1168). If the pool is wedged (phantom-checked-out
|
|
3952
|
+
* slots) or RDS is unreachable across both attempts, the check fails
|
|
3953
|
+
* and the ALB pulls the task out of rotation after its own
|
|
3954
|
+
* unhealthy_threshold_count consecutive failures.
|
|
3955
|
+
*
|
|
3956
|
+
* On final failure we return 503 directly via `JSONResponse` instead
|
|
3957
|
+
* of raising `HTTPException`. The status to the ALB is identical, but
|
|
3958
|
+
* the Sentry FastAPI integration only captures *exceptions* — so this
|
|
3959
|
+
* path no longer triggers the "new unhandled error" PD rule on a
|
|
3960
|
+
* transient blip. Sustained DB-unreachable is correctly surfaced by
|
|
3961
|
+
* the ALB target-health alarm, not the Sentry new-issue rule.
|
|
3956
3962
|
*/
|
|
3957
|
-
declare const deepHealthCheck: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
3963
|
+
declare const deepHealthCheck: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
3958
3964
|
/**
|
|
3959
3965
|
* List all suites
|
|
3960
3966
|
* Get all problem suites, ordered by version descending (newest first).
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -22,11 +22,19 @@ export const healthCheck = <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
22
22
|
* Deep Health Check
|
|
23
23
|
* Deep readiness check that exercises the SQLAlchemy pool (ORO-1121).
|
|
24
24
|
*
|
|
25
|
-
* Acquires a session and runs SELECT 1 with a hard timeout
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
25
|
+
* Acquires a session and runs SELECT 1 with a hard timeout, retrying
|
|
26
|
+
* once on failure to ride out transient pool stalls or one-shot
|
|
27
|
+
* network blips (ORO-1168). If the pool is wedged (phantom-checked-out
|
|
28
|
+
* slots) or RDS is unreachable across both attempts, the check fails
|
|
29
|
+
* and the ALB pulls the task out of rotation after its own
|
|
30
|
+
* unhealthy_threshold_count consecutive failures.
|
|
31
|
+
*
|
|
32
|
+
* On final failure we return 503 directly via `JSONResponse` instead
|
|
33
|
+
* of raising `HTTPException`. The status to the ALB is identical, but
|
|
34
|
+
* the Sentry FastAPI integration only captures *exceptions* — so this
|
|
35
|
+
* path no longer triggers the "new unhandled error" PD rule on a
|
|
36
|
+
* transient blip. Sustained DB-unreachable is correctly surfaced by
|
|
37
|
+
* the ALB target-health alarm, not the Sentry new-issue rule.
|
|
30
38
|
*/
|
|
31
39
|
export const deepHealthCheck = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
32
40
|
return (options?.client ?? client).get<DeepHealthCheckResponse, DeepHealthCheckError, ThrowOnError>({
|
|
@@ -3291,9 +3291,7 @@ export type HealthCheckResponse = ({
|
|
|
3291
3291
|
|
|
3292
3292
|
export type HealthCheckError = unknown;
|
|
3293
3293
|
|
|
3294
|
-
export type DeepHealthCheckResponse = (
|
|
3295
|
-
[key: string]: unknown;
|
|
3296
|
-
});
|
|
3294
|
+
export type DeepHealthCheckResponse = (unknown);
|
|
3297
3295
|
|
|
3298
3296
|
export type DeepHealthCheckError = unknown;
|
|
3299
3297
|
|