@ancplua/qyl-api-schema 1.0.5 → 2.0.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/README.md +3 -0
- package/api/routes.tsp +19 -19
- package/api/runner.tsp +0 -703
- package/api/streaming.tsp +2 -2
- package/api/workbench.tsp +709 -0
- package/common/errors.tsp +2 -1
- package/common/pagination.tsp +8 -8
- package/generated/json-schema/qyl-api-schema.json +1435 -1446
- package/generated/openapi/qyl.openapi.json +1486 -1707
- package/generated/otel-keys.gen.tsp +90 -90
- package/generated/ts-runtime/api.d.ts +431 -431
- package/generated/ts-runtime/api.js +16 -16
- package/index.tsp +2 -1
- package/models/health.tsp +2 -0
- package/models/runner.tsp +4 -0
- package/models/session.tsp +9 -9
- package/models/workbench.tsp +1194 -0
- package/otel/resource.tsp +39 -39
- package/otel/span.tsp +6 -6
- package/package.json +10 -5
- package/models/runner-mcp.tsp +0 -1031
package/common/errors.tsp
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// =============================================================================
|
|
6
6
|
|
|
7
7
|
import "@typespec/http";
|
|
8
|
+
import "./types.tsp";
|
|
8
9
|
|
|
9
10
|
using TypeSpec.Http;
|
|
10
11
|
|
|
@@ -39,7 +40,7 @@ model ProblemDetails {
|
|
|
39
40
|
@doc("Trace ID for correlation")
|
|
40
41
|
@encodedName("application/json", "trace_id")
|
|
41
42
|
@header("X-Trace-Id")
|
|
42
|
-
traceId?:
|
|
43
|
+
traceId?: TraceId;
|
|
43
44
|
|
|
44
45
|
@doc("Request ID for support")
|
|
45
46
|
@encodedName("application/json", "request_id")
|
package/common/pagination.tsp
CHANGED
|
@@ -74,7 +74,7 @@ model OffsetPaginationParams {
|
|
|
74
74
|
page?: int32 = 1;
|
|
75
75
|
|
|
76
76
|
@doc("Items per page (1-1000)")
|
|
77
|
-
@query
|
|
77
|
+
@query("page_size")
|
|
78
78
|
@pageSize
|
|
79
79
|
@minValue(1)
|
|
80
80
|
@maxValue(1000)
|
|
@@ -119,12 +119,12 @@ model OffsetPage<T> {
|
|
|
119
119
|
@doc("Time-range based query parameters")
|
|
120
120
|
model TimeRangeParams {
|
|
121
121
|
@doc("Start of time range (inclusive)")
|
|
122
|
-
@query
|
|
122
|
+
@query("start_time")
|
|
123
123
|
@encodedName("application/json", "start_time")
|
|
124
124
|
startTime?: utcDateTime;
|
|
125
125
|
|
|
126
126
|
@doc("End of time range (exclusive)")
|
|
127
|
-
@query
|
|
127
|
+
@query("end_time")
|
|
128
128
|
@encodedName("application/json", "end_time")
|
|
129
129
|
endTime?: utcDateTime;
|
|
130
130
|
|
|
@@ -173,17 +173,17 @@ model StreamParams {
|
|
|
173
173
|
since?: utcDateTime;
|
|
174
174
|
|
|
175
175
|
@doc("Filter by trace ID")
|
|
176
|
-
@query
|
|
176
|
+
@query("trace_id")
|
|
177
177
|
@encodedName("application/json", "trace_id")
|
|
178
|
-
traceId?:
|
|
178
|
+
traceId?: TraceId;
|
|
179
179
|
|
|
180
180
|
@doc("Filter by service name")
|
|
181
|
-
@query
|
|
181
|
+
@query("service_name")
|
|
182
182
|
@encodedName("application/json", "service_name")
|
|
183
183
|
serviceName?: string;
|
|
184
184
|
|
|
185
185
|
@doc("Maximum events per second (rate limiting)")
|
|
186
|
-
@query
|
|
186
|
+
@query("max_events_per_second")
|
|
187
187
|
@encodedName("application/json", "max_events_per_second")
|
|
188
188
|
@minValue(1)
|
|
189
189
|
@maxValue(1000)
|
|
@@ -244,7 +244,7 @@ model AggregationParams {
|
|
|
244
244
|
bucket?: TimeBucket = TimeBucket.auto;
|
|
245
245
|
|
|
246
246
|
@doc("Group by these dimensions")
|
|
247
|
-
@query
|
|
247
|
+
@query("group_by")
|
|
248
248
|
@encodedName("application/json", "group_by")
|
|
249
249
|
groupBy?: string[];
|
|
250
250
|
|