@company-semantics/contracts 93.1.0 → 93.2.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/package.json +1 -1
- package/src/__tests__/resource-keys.test.ts +1 -0
- package/src/api/generated-spec-hash.ts +2 -2
- package/src/api/generated.ts +74 -0
- package/src/generated/openapi-routes.ts +1 -0
- package/src/resource-key-tables.ts +1 -0
- package/src/resource-key-types.ts +3 -0
- package/src/resource-keys.ts +1 -0
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = 'a57011cbdcd2' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = 'a57011cbdcd2d9be32d330cc97eb33954aaa55d6936e0f644496644e0bb66e11' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -3928,6 +3928,23 @@ export interface paths {
|
|
|
3928
3928
|
patch?: never;
|
|
3929
3929
|
trace?: never;
|
|
3930
3930
|
};
|
|
3931
|
+
"/api/factory/production": {
|
|
3932
|
+
parameters: {
|
|
3933
|
+
query?: never;
|
|
3934
|
+
header?: never;
|
|
3935
|
+
path?: never;
|
|
3936
|
+
cookie?: never;
|
|
3937
|
+
};
|
|
3938
|
+
/** Read the production view: each production signal with its verdict, age, staleness and breach run */
|
|
3939
|
+
get: operations["factoryProduction"];
|
|
3940
|
+
put?: never;
|
|
3941
|
+
post?: never;
|
|
3942
|
+
delete?: never;
|
|
3943
|
+
options?: never;
|
|
3944
|
+
head?: never;
|
|
3945
|
+
patch?: never;
|
|
3946
|
+
trace?: never;
|
|
3947
|
+
};
|
|
3931
3948
|
"/api/factory/quality/changes": {
|
|
3932
3949
|
parameters: {
|
|
3933
3950
|
query?: never;
|
|
@@ -9461,6 +9478,29 @@ export interface components {
|
|
|
9461
9478
|
}[];
|
|
9462
9479
|
}[];
|
|
9463
9480
|
};
|
|
9481
|
+
FactoryProductionResponse: {
|
|
9482
|
+
generatedAt: string;
|
|
9483
|
+
signals: {
|
|
9484
|
+
/** @enum {string} */
|
|
9485
|
+
signal: "api_availability" | "http_5xx" | "latency_p95" | "ecs_tasks" | "database" | "deploy_lag" | "app_host_edge" | "chat_success" | "ingestion_backlog" | "release_safety";
|
|
9486
|
+
/** @enum {string} */
|
|
9487
|
+
source: "hosted" | "computed";
|
|
9488
|
+
targetText: string;
|
|
9489
|
+
cadenceMinutes: number;
|
|
9490
|
+
/** @enum {string} */
|
|
9491
|
+
verdict: "ok" | "breach" | "unavailable";
|
|
9492
|
+
value: number | null;
|
|
9493
|
+
target: number | null;
|
|
9494
|
+
unit: string | null;
|
|
9495
|
+
detail: string | null;
|
|
9496
|
+
windowMinutes: number | null;
|
|
9497
|
+
sampledAt: string | null;
|
|
9498
|
+
ageSeconds: number | null;
|
|
9499
|
+
stale: boolean;
|
|
9500
|
+
consecutiveBreaches: number;
|
|
9501
|
+
passRate30d: number | null;
|
|
9502
|
+
}[];
|
|
9503
|
+
};
|
|
9464
9504
|
CreateQualityChangeResponse: {
|
|
9465
9505
|
/** Format: uuid */
|
|
9466
9506
|
planId: string;
|
|
@@ -18006,6 +18046,40 @@ export interface operations {
|
|
|
18006
18046
|
};
|
|
18007
18047
|
};
|
|
18008
18048
|
};
|
|
18049
|
+
factoryProduction: {
|
|
18050
|
+
parameters: {
|
|
18051
|
+
query?: never;
|
|
18052
|
+
header?: never;
|
|
18053
|
+
path?: never;
|
|
18054
|
+
cookie?: never;
|
|
18055
|
+
};
|
|
18056
|
+
requestBody?: never;
|
|
18057
|
+
responses: {
|
|
18058
|
+
/** @description The ten production signals */
|
|
18059
|
+
200: {
|
|
18060
|
+
headers: {
|
|
18061
|
+
[name: string]: unknown;
|
|
18062
|
+
};
|
|
18063
|
+
content: {
|
|
18064
|
+
"application/json": components["schemas"]["FactoryProductionResponse"];
|
|
18065
|
+
};
|
|
18066
|
+
};
|
|
18067
|
+
/** @description Not authenticated */
|
|
18068
|
+
401: {
|
|
18069
|
+
headers: {
|
|
18070
|
+
[name: string]: unknown;
|
|
18071
|
+
};
|
|
18072
|
+
content?: never;
|
|
18073
|
+
};
|
|
18074
|
+
/** @description Not an internal admin */
|
|
18075
|
+
403: {
|
|
18076
|
+
headers: {
|
|
18077
|
+
[name: string]: unknown;
|
|
18078
|
+
};
|
|
18079
|
+
content?: never;
|
|
18080
|
+
};
|
|
18081
|
+
};
|
|
18082
|
+
};
|
|
18009
18083
|
createQualityChange: {
|
|
18010
18084
|
parameters: {
|
|
18011
18085
|
query?: never;
|
|
@@ -96,6 +96,7 @@ export const openApiRoutes = {
|
|
|
96
96
|
'/api/factory/floor': ['GET'],
|
|
97
97
|
'/api/factory/kpis': ['GET'],
|
|
98
98
|
'/api/factory/lineage': ['GET'],
|
|
99
|
+
'/api/factory/production': ['GET'],
|
|
99
100
|
'/api/factory/quality/changes': ['POST'],
|
|
100
101
|
'/api/factory/quality/corpus': ['GET'],
|
|
101
102
|
'/api/factory/quality/deployments': ['POST'],
|
|
@@ -162,6 +162,7 @@ export const SYSTEM_SCOPED_TYPES = [
|
|
|
162
162
|
"factorySnapshot",
|
|
163
163
|
"factoryKpis",
|
|
164
164
|
"factoryLineage",
|
|
165
|
+
"factoryProduction",
|
|
165
166
|
] as const satisfies readonly SystemScopedType[];
|
|
166
167
|
|
|
167
168
|
/** Every literal `fromQueryKey` can route, across all five tables. */
|
|
@@ -160,6 +160,9 @@ export type ResourceKey =
|
|
|
160
160
|
// Change lineage over the release ledger (ADR-CONTRACTS-222, backend
|
|
161
161
|
// ADR-BE-926): each release with its commits, PRDs, workers, run and health.
|
|
162
162
|
| { type: "factoryLineage"; scope: "system" }
|
|
163
|
+
// The production view (ADR-CONTRACTS-224, backend ADR-BE-929): the ten
|
|
164
|
+
// production signals with verdict, age, staleness and breach run.
|
|
165
|
+
| { type: "factoryProduction"; scope: "system" }
|
|
163
166
|
// Everything awaiting the viewer's decision, across every domain
|
|
164
167
|
// (ADR-CONT-104). ORG-scoped, not user-scoped, even though the content is
|
|
165
168
|
// per-viewer: the bucket differs per org, so a user-keyed entry would serve
|
package/src/resource-keys.ts
CHANGED