@ancplua/qyl-api-schema 11.6.0 → 12.1.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 +31 -2
- package/api/analysis.tsp +165 -0
- package/api/routes.tsp +55 -78
- package/api/streaming.tsp +6 -1
- package/api/workbench.tsp +70 -75
- package/common/errors.tsp +113 -140
- package/common/pagination.tsp +25 -228
- package/common/resource.tsp +0 -7
- package/common/telemetry-query.tsp +62 -0
- package/common/types.tsp +10 -2
- package/generated/json-schema/qyl-api-schema.json +8871 -2838
- package/generated/openapi/qyl.openapi.json +12981 -11500
- package/generated/ts-runtime/api.d.ts +1227 -107
- package/generated/ts-runtime/api.js +87 -24
- package/generated/ts-runtime/schemas.d.ts +294 -12
- package/generated/ts-runtime/schemas.js +292 -10
- package/index.tsp +2 -0
- package/models/annotations.tsp +31 -1
- package/models/mcp-analysis.tsp +1108 -0
- package/models/mcp-tools.tsp +335 -10
- package/models/metrics.tsp +17 -15
- package/models/saved-queries.tsp +15 -4
- package/models/workbench.tsp +20 -5
- package/otel/span.tsp +0 -49
- package/package.json +7 -3
|
@@ -28,18 +28,51 @@ export function parseSessionId(value) {
|
|
|
28
28
|
return value;
|
|
29
29
|
}
|
|
30
30
|
export const ProblemDetailsMediaType = "application/problem+json";
|
|
31
|
-
export const
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
31
|
+
export const ProblemTypeValues = {
|
|
32
|
+
"validationFailed": "https://qyl.at/problems/validation-failed",
|
|
33
|
+
"unauthorized": "https://qyl.at/problems/unauthorized",
|
|
34
|
+
"forbidden": "https://qyl.at/problems/forbidden",
|
|
35
|
+
"notFound": "https://qyl.at/problems/not-found",
|
|
36
|
+
"conflict": "https://qyl.at/problems/conflict",
|
|
37
|
+
"preconditionFailed": "https://qyl.at/problems/precondition-failed",
|
|
38
|
+
"preconditionRequired": "https://qyl.at/problems/precondition-required",
|
|
39
|
+
"internalError": "https://qyl.at/problems/internal-error",
|
|
40
|
+
"badGateway": "https://qyl.at/problems/bad-gateway",
|
|
41
|
+
"serviceUnavailable": "https://qyl.at/problems/service-unavailable",
|
|
42
|
+
};
|
|
43
|
+
export const ProblemCodeValues = {
|
|
44
|
+
"validationFailed": "validation_failed",
|
|
45
|
+
"unauthorized": "unauthorized",
|
|
46
|
+
"forbidden": "forbidden",
|
|
47
|
+
"notFound": "not_found",
|
|
48
|
+
"conflict": "conflict",
|
|
49
|
+
"preconditionFailed": "precondition_failed",
|
|
50
|
+
"preconditionRequired": "precondition_required",
|
|
51
|
+
"internalError": "internal_error",
|
|
52
|
+
"badGateway": "bad_gateway",
|
|
53
|
+
"serviceUnavailable": "service_unavailable",
|
|
54
|
+
};
|
|
55
|
+
export const FailureStatusValues = {
|
|
56
|
+
"open": "open",
|
|
57
|
+
"resolved": "resolved",
|
|
58
|
+
"ignored": "ignored",
|
|
59
|
+
};
|
|
60
|
+
export const MatcherOpValues = {
|
|
61
|
+
"eq": "eq",
|
|
62
|
+
"neq": "neq",
|
|
63
|
+
"in": "in",
|
|
64
|
+
"prefix": "prefix",
|
|
65
|
+
"contains": "contains",
|
|
66
|
+
"exists": "exists",
|
|
67
|
+
"gt": "gt",
|
|
68
|
+
"gte": "gte",
|
|
69
|
+
"lt": "lt",
|
|
70
|
+
"lte": "lte",
|
|
71
|
+
};
|
|
72
|
+
export const MatcherScopeValues = {
|
|
73
|
+
"span": "span",
|
|
74
|
+
"resource": "resource",
|
|
75
|
+
"log": "log",
|
|
43
76
|
};
|
|
44
77
|
export const CollectorKeyRoleValues = {
|
|
45
78
|
"ingest": "ingest",
|
|
@@ -168,17 +201,6 @@ export const OsTypeValues = {
|
|
|
168
201
|
"solaris": "solaris",
|
|
169
202
|
"zOs": "z_os",
|
|
170
203
|
};
|
|
171
|
-
export const MetricKindValues = {
|
|
172
|
-
"gauge": "gauge",
|
|
173
|
-
"sum": "sum",
|
|
174
|
-
"histogram": "histogram",
|
|
175
|
-
"exponential_histogram": "exponential_histogram",
|
|
176
|
-
};
|
|
177
|
-
export const MetricTemporalityValues = {
|
|
178
|
-
"unspecified": "unspecified",
|
|
179
|
-
"delta": "delta",
|
|
180
|
-
"cumulative": "cumulative",
|
|
181
|
-
};
|
|
182
204
|
export const MetricAggregationValues = {
|
|
183
205
|
"avg": "avg",
|
|
184
206
|
"min": "min",
|
|
@@ -191,9 +213,28 @@ export const MetricAggregationValues = {
|
|
|
191
213
|
"p95": "p95",
|
|
192
214
|
"p99": "p99",
|
|
193
215
|
};
|
|
216
|
+
export const MetricKindValues = {
|
|
217
|
+
"gauge": "gauge",
|
|
218
|
+
"sum": "sum",
|
|
219
|
+
"histogram": "histogram",
|
|
220
|
+
"exponential_histogram": "exponential_histogram",
|
|
221
|
+
};
|
|
222
|
+
export const MetricTemporalityValues = {
|
|
223
|
+
"unspecified": "unspecified",
|
|
224
|
+
"delta": "delta",
|
|
225
|
+
"cumulative": "cumulative",
|
|
226
|
+
};
|
|
194
227
|
export const MetricMatcherOpValues = {
|
|
195
228
|
"eq": "eq",
|
|
229
|
+
"neq": "neq",
|
|
230
|
+
"in": "in",
|
|
196
231
|
"prefix": "prefix",
|
|
232
|
+
"contains": "contains",
|
|
233
|
+
"exists": "exists",
|
|
234
|
+
"gt": "gt",
|
|
235
|
+
"gte": "gte",
|
|
236
|
+
"lt": "lt",
|
|
237
|
+
"lte": "lte",
|
|
197
238
|
};
|
|
198
239
|
export const SessionEventNameValues = {
|
|
199
240
|
"sessionStart": "session.start",
|
|
@@ -340,10 +381,24 @@ export const WorkbenchTransportKindValues = {
|
|
|
340
381
|
"streamableHttp": "streamable_http",
|
|
341
382
|
"builtin": "builtin",
|
|
342
383
|
};
|
|
384
|
+
export const McpFailureClassValues = {
|
|
385
|
+
"transport": "transport",
|
|
386
|
+
"protocol": "protocol",
|
|
387
|
+
"tool_result": "tool_result",
|
|
388
|
+
"authentication": "authentication",
|
|
389
|
+
"cancellation": "cancellation",
|
|
390
|
+
"timeout": "timeout",
|
|
391
|
+
};
|
|
343
392
|
export const McpDataModeValues = {
|
|
344
393
|
"live": "live",
|
|
345
394
|
"demo": "demo",
|
|
346
395
|
};
|
|
396
|
+
export const AnnotationClassificationValues = {
|
|
397
|
+
"note": "note",
|
|
398
|
+
"hypothesis": "hypothesis",
|
|
399
|
+
"finding": "finding",
|
|
400
|
+
"rejected": "rejected",
|
|
401
|
+
};
|
|
347
402
|
export const CiPhaseStatusValues = {
|
|
348
403
|
"ok": "ok",
|
|
349
404
|
"error": "error",
|
|
@@ -358,6 +413,13 @@ export const DeletableKindValues = {
|
|
|
358
413
|
"annotation": "annotation",
|
|
359
414
|
"savedQuery": "saved_query",
|
|
360
415
|
};
|
|
416
|
+
export const FailureChangeValues = {
|
|
417
|
+
"new": "new",
|
|
418
|
+
"worsening": "worsening",
|
|
419
|
+
"ongoing": "ongoing",
|
|
420
|
+
"recovering": "recovering",
|
|
421
|
+
"regressed": "regressed",
|
|
422
|
+
};
|
|
361
423
|
export const McpScopeValues = {
|
|
362
424
|
"read": "qyl:read",
|
|
363
425
|
"write": "qyl:write",
|
|
@@ -368,7 +430,8 @@ export const FetchTelemetryViewValues = {
|
|
|
368
430
|
"trace": "trace",
|
|
369
431
|
"logs": "logs",
|
|
370
432
|
"mcpStats": "mcp_stats",
|
|
433
|
+
"compare": "compare",
|
|
371
434
|
};
|
|
372
435
|
// --- contract revision (scripts/emit-contract-revision.mjs) ---
|
|
373
436
|
/** Revision of the API contract these types were emitted from; compare against HealthReport.contract_revision. */
|
|
374
|
-
export const CONTRACT_REVISION = "sha256:
|
|
437
|
+
export const CONTRACT_REVISION = "sha256:0e9a41ff2d51993e";
|