@ancplua/qyl-api-schema 0.5.6 → 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 CHANGED
@@ -46,6 +46,7 @@ interface TracesApi {
46
46
  list(
47
47
  ...ProjectScopeHeader,
48
48
  @query @minValue(1) @maxValue(1000) limit?: int32 = 100,
49
+ @query cursor?: string,
49
50
  ): CursorPage<Trace> | ValidationError | UnauthorizedError | InternalServerError;
50
51
 
51
52
  @get
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,8 +42,9 @@ 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,
48
- ): SSEStream<LogEvents> | ValidationError | UnauthorizedError | InternalServerError;
49
+ ): SSEStream<LogEvents> | ValidationError | UnauthorizedError | ServiceUnavailableError | InternalServerError;
49
50
  }
@@ -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",
@@ -1629,6 +1637,40 @@
1629
1637
  }
1630
1638
  }
1631
1639
  }
1640
+ },
1641
+ "503": {
1642
+ "description": "Service unavailable (503)",
1643
+ "headers": {
1644
+ "Retry-After": {
1645
+ "required": false,
1646
+ "description": "Expected availability time",
1647
+ "schema": {
1648
+ "type": "integer",
1649
+ "format": "int32"
1650
+ }
1651
+ },
1652
+ "X-Trace-Id": {
1653
+ "required": false,
1654
+ "description": "Trace ID for correlation",
1655
+ "schema": {
1656
+ "type": "string"
1657
+ }
1658
+ },
1659
+ "X-Request-Id": {
1660
+ "required": false,
1661
+ "description": "Request ID for support",
1662
+ "schema": {
1663
+ "type": "string"
1664
+ }
1665
+ }
1666
+ },
1667
+ "content": {
1668
+ "application/problem+json": {
1669
+ "schema": {
1670
+ "$ref": "#/components/schemas/Common.Errors.ServiceUnavailableError"
1671
+ }
1672
+ }
1673
+ }
1632
1674
  }
1633
1675
  },
1634
1676
  "tags": [
@@ -1660,6 +1702,15 @@
1660
1702
  "default": 100
1661
1703
  },
1662
1704
  "explode": false
1705
+ },
1706
+ {
1707
+ "name": "cursor",
1708
+ "in": "query",
1709
+ "required": false,
1710
+ "schema": {
1711
+ "type": "string"
1712
+ },
1713
+ "explode": false
1663
1714
  }
1664
1715
  ],
1665
1716
  "responses": {
@@ -3151,6 +3202,14 @@
3151
3202
  "schema": {
3152
3203
  "type": "string"
3153
3204
  }
3205
+ },
3206
+ {
3207
+ "name": "Last-Event-ID",
3208
+ "in": "header",
3209
+ "required": false,
3210
+ "schema": {
3211
+ "type": "string"
3212
+ }
3154
3213
  }
3155
3214
  ],
3156
3215
  "responses": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancplua/qyl-api-schema",
3
- "version": "0.5.6",
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": {