@ancplua/qyl-api-schema 0.5.7 → 0.5.8
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 -0
- package/api/runner.tsp +1 -0
- package/api/streaming.tsp +1 -0
- package/generated/openapi/qyl.openapi.json +25 -0
- package/package.json +1 -1
package/api/routes.tsp
CHANGED
package/api/runner.tsp
CHANGED
|
@@ -44,6 +44,7 @@ namespace Qyl.Api.Contracts.Runner {
|
|
|
44
44
|
@route("/{resource}/logs/stream")
|
|
45
45
|
streamLogs(
|
|
46
46
|
@path resource: string,
|
|
47
|
+
@header("Last-Event-ID") lastEventId?: string,
|
|
47
48
|
): SSEStream<RunnerLogEvents> | ForbiddenError | NotFoundError | ServiceUnavailableError | InternalServerError;
|
|
48
49
|
|
|
49
50
|
@post
|
package/api/streaming.tsp
CHANGED
|
@@ -42,6 +42,7 @@ interface StreamingApi {
|
|
|
42
42
|
@useAuth(Qyl.Api.Contracts.QylApiKeyHeaderAuth)
|
|
43
43
|
streamLogs(
|
|
44
44
|
...Qyl.Api.Contracts.ProjectScopeHeader,
|
|
45
|
+
@header("Last-Event-ID") lastEventId?: string,
|
|
45
46
|
@query serviceName?: string,
|
|
46
47
|
@query @minValue(1) @maxValue(24) minSeverity?: int32,
|
|
47
48
|
@query query?: string,
|
|
@@ -1464,6 +1464,14 @@
|
|
|
1464
1464
|
{
|
|
1465
1465
|
"$ref": "#/components/parameters/ProjectScopeHeader"
|
|
1466
1466
|
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "Last-Event-ID",
|
|
1469
|
+
"in": "header",
|
|
1470
|
+
"required": false,
|
|
1471
|
+
"schema": {
|
|
1472
|
+
"type": "string"
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1467
1475
|
{
|
|
1468
1476
|
"name": "serviceName",
|
|
1469
1477
|
"in": "query",
|
|
@@ -1694,6 +1702,15 @@
|
|
|
1694
1702
|
"default": 100
|
|
1695
1703
|
},
|
|
1696
1704
|
"explode": false
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"name": "cursor",
|
|
1708
|
+
"in": "query",
|
|
1709
|
+
"required": false,
|
|
1710
|
+
"schema": {
|
|
1711
|
+
"type": "string"
|
|
1712
|
+
},
|
|
1713
|
+
"explode": false
|
|
1697
1714
|
}
|
|
1698
1715
|
],
|
|
1699
1716
|
"responses": {
|
|
@@ -3185,6 +3202,14 @@
|
|
|
3185
3202
|
"schema": {
|
|
3186
3203
|
"type": "string"
|
|
3187
3204
|
}
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
"name": "Last-Event-ID",
|
|
3208
|
+
"in": "header",
|
|
3209
|
+
"required": false,
|
|
3210
|
+
"schema": {
|
|
3211
|
+
"type": "string"
|
|
3212
|
+
}
|
|
3188
3213
|
}
|
|
3189
3214
|
],
|
|
3190
3215
|
"responses": {
|
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.8",
|
|
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": {
|