@ancplua/qyl-api-schema 0.5.4 → 0.5.5
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/api/routes.tsp +1 -1
- package/api/streaming.tsp +1 -1
- package/generated/openapi/qyl.openapi.json +52 -0
- package/package.json +2 -2
package/api/routes.tsp
CHANGED
|
@@ -166,7 +166,7 @@ interface SessionsApi {
|
|
|
166
166
|
...ProjectScopeHeader,
|
|
167
167
|
@query startTime?: utcDateTime,
|
|
168
168
|
@query endTime?: utcDateTime,
|
|
169
|
-
): SessionStats | UnauthorizedError | InternalServerError;
|
|
169
|
+
): SessionStats | ValidationError | UnauthorizedError | InternalServerError;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
// -----------------------------------------------------------------------------
|
package/api/streaming.tsp
CHANGED
|
@@ -45,5 +45,5 @@ interface StreamingApi {
|
|
|
45
45
|
@query serviceName?: string,
|
|
46
46
|
@query @minValue(1) @maxValue(24) minSeverity?: int32,
|
|
47
47
|
@query query?: string,
|
|
48
|
-
): SSEStream<LogEvents> | UnauthorizedError | InternalServerError;
|
|
48
|
+
): SSEStream<LogEvents> | ValidationError | UnauthorizedError | InternalServerError;
|
|
49
49
|
}
|
|
@@ -1089,6 +1089,32 @@
|
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
},
|
|
1092
|
+
"400": {
|
|
1093
|
+
"description": "Bad request - validation failed (400)",
|
|
1094
|
+
"headers": {
|
|
1095
|
+
"X-Trace-Id": {
|
|
1096
|
+
"required": false,
|
|
1097
|
+
"description": "Trace ID for correlation",
|
|
1098
|
+
"schema": {
|
|
1099
|
+
"type": "string"
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
"X-Request-Id": {
|
|
1103
|
+
"required": false,
|
|
1104
|
+
"description": "Request ID for support",
|
|
1105
|
+
"schema": {
|
|
1106
|
+
"type": "string"
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
"content": {
|
|
1111
|
+
"application/problem+json": {
|
|
1112
|
+
"schema": {
|
|
1113
|
+
"$ref": "#/components/schemas/Common.Errors.ValidationError"
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1092
1118
|
"401": {
|
|
1093
1119
|
"description": "Unauthorized - authentication required (401)",
|
|
1094
1120
|
"headers": {
|
|
@@ -1519,6 +1545,32 @@
|
|
|
1519
1545
|
}
|
|
1520
1546
|
}
|
|
1521
1547
|
},
|
|
1548
|
+
"400": {
|
|
1549
|
+
"description": "Bad request - validation failed (400)",
|
|
1550
|
+
"headers": {
|
|
1551
|
+
"X-Trace-Id": {
|
|
1552
|
+
"required": false,
|
|
1553
|
+
"description": "Trace ID for correlation",
|
|
1554
|
+
"schema": {
|
|
1555
|
+
"type": "string"
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
"X-Request-Id": {
|
|
1559
|
+
"required": false,
|
|
1560
|
+
"description": "Request ID for support",
|
|
1561
|
+
"schema": {
|
|
1562
|
+
"type": "string"
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"content": {
|
|
1567
|
+
"application/problem+json": {
|
|
1568
|
+
"schema": {
|
|
1569
|
+
"$ref": "#/components/schemas/Common.Errors.ValidationError"
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1522
1574
|
"401": {
|
|
1523
1575
|
"description": "Unauthorized - authentication required (401)",
|
|
1524
1576
|
"headers": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancplua/qyl-api-schema",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "TypeSpec source of truth for qyl API contracts. Emits OpenAPI, JSON Schema, Qyl.Api.Contracts DTOs, and TypeScript contract types; not an OpenTelemetry package, storage schema, or server implementation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"format": "tsp format **/*.tsp",
|
|
90
90
|
"lint": "npm run build:emitters && tsp compile main.tsp --no-emit --warn-as-error",
|
|
91
91
|
"lint:public": "tsp compile index.tsp --no-emit --warn-as-error",
|
|
92
|
-
"verify:
|
|
92
|
+
"verify:routes": "node scripts/verify-route-contracts.mjs"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"@typespec/compiler": "^1.13.0 || >=1.13.0-dev.0",
|