@ancplua/qyl-api-schema 1.0.3 → 1.0.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/README.md +4 -0
- package/api/routes.tsp +0 -90
- package/api/runner.tsp +0 -48
- package/generated/json-schema/qyl-api-schema.json +48 -1413
- package/generated/openapi/qyl.openapi.json +3907 -6541
- package/generated/ts-runtime/api.d.ts +1 -240
- package/generated/ts-runtime/api.js +0 -45
- package/index.tsp +0 -2
- package/models/runner-mcp.tsp +0 -23
- package/otel/enums.tsp +0 -119
- package/otel/otel-conventions.tsp +0 -2
- package/package.json +1 -3
- package/otel/metrics.tsp +0 -237
- package/otel/profiles.tsp +0 -335
|
@@ -109,34 +109,6 @@ export declare const SeverityTextValues: {
|
|
|
109
109
|
readonly FATAL: "FATAL";
|
|
110
110
|
};
|
|
111
111
|
export type SeverityText = typeof SeverityTextValues[keyof typeof SeverityTextValues];
|
|
112
|
-
export declare const MetricTypeValues: {
|
|
113
|
-
readonly gauge: "gauge";
|
|
114
|
-
readonly sum: "sum";
|
|
115
|
-
readonly histogram: "histogram";
|
|
116
|
-
readonly exponentialHistogram: "exponential_histogram";
|
|
117
|
-
readonly summary: "summary";
|
|
118
|
-
};
|
|
119
|
-
export type MetricType = typeof MetricTypeValues[keyof typeof MetricTypeValues];
|
|
120
|
-
export declare const AggregationTemporalityValues: {
|
|
121
|
-
readonly delta: 1;
|
|
122
|
-
readonly cumulative: 2;
|
|
123
|
-
};
|
|
124
|
-
export type AggregationTemporality = typeof AggregationTemporalityValues[keyof typeof AggregationTemporalityValues];
|
|
125
|
-
export declare const DataPointFlagsValues: {
|
|
126
|
-
readonly none: 0;
|
|
127
|
-
readonly noRecordedValue: 1;
|
|
128
|
-
};
|
|
129
|
-
export type DataPointFlags = typeof DataPointFlagsValues[keyof typeof DataPointFlagsValues];
|
|
130
|
-
export declare const InstrumentKindValues: {
|
|
131
|
-
readonly counter: "Counter";
|
|
132
|
-
readonly upDownCounter: "UpDownCounter";
|
|
133
|
-
readonly histogram: "Histogram";
|
|
134
|
-
readonly gauge: "Gauge";
|
|
135
|
-
readonly observableCounter: "ObservableCounter";
|
|
136
|
-
readonly observableGauge: "ObservableGauge";
|
|
137
|
-
readonly observableUpDownCounter: "ObservableUpDownCounter";
|
|
138
|
-
};
|
|
139
|
-
export type InstrumentKind = typeof InstrumentKindValues[keyof typeof InstrumentKindValues];
|
|
140
112
|
export declare const TelemetrySdkLanguageValues: {
|
|
141
113
|
readonly cpp: "cpp";
|
|
142
114
|
readonly dotnet: "dotnet";
|
|
@@ -176,27 +148,6 @@ export declare const EventDomainValues: {
|
|
|
176
148
|
readonly log: "log";
|
|
177
149
|
};
|
|
178
150
|
export type EventDomain = typeof EventDomainValues[keyof typeof EventDomainValues];
|
|
179
|
-
export declare const OriginalPayloadFormatValues: {
|
|
180
|
-
readonly pprof: "pprof";
|
|
181
|
-
readonly jfr: "jfr";
|
|
182
|
-
readonly linuxPerf: "linux_perf";
|
|
183
|
-
};
|
|
184
|
-
export type OriginalPayloadFormat = typeof OriginalPayloadFormatValues[keyof typeof OriginalPayloadFormatValues];
|
|
185
|
-
export declare const ProfileFrameTypeValues: {
|
|
186
|
-
readonly beam: "beam";
|
|
187
|
-
readonly cpython: "cpython";
|
|
188
|
-
readonly dotnet: "dotnet";
|
|
189
|
-
readonly go: "go";
|
|
190
|
-
readonly jvm: "jvm";
|
|
191
|
-
readonly kernel: "kernel";
|
|
192
|
-
readonly native: "native";
|
|
193
|
-
readonly perl: "perl";
|
|
194
|
-
readonly php: "php";
|
|
195
|
-
readonly ruby: "ruby";
|
|
196
|
-
readonly rust: "rust";
|
|
197
|
-
readonly v8js: "v8js";
|
|
198
|
-
};
|
|
199
|
-
export type ProfileFrameType = typeof ProfileFrameTypeValues[keyof typeof ProfileFrameTypeValues];
|
|
200
151
|
export declare const CloudProviderValues: {
|
|
201
152
|
readonly alibabaCloud: "alibaba_cloud";
|
|
202
153
|
readonly aws: "aws";
|
|
@@ -397,8 +348,6 @@ export type RunnerMcpEvaluationExportStatus = typeof RunnerMcpEvaluationExportSt
|
|
|
397
348
|
export declare const RunnerMcpTransportKindValues: {
|
|
398
349
|
readonly stdio: "stdio";
|
|
399
350
|
readonly streamableHttp: "streamable_http";
|
|
400
|
-
readonly sse: "sse";
|
|
401
|
-
readonly inproc: "inproc";
|
|
402
351
|
readonly builtin: "builtin";
|
|
403
352
|
};
|
|
404
353
|
export type RunnerMcpTransportKind = typeof RunnerMcpTransportKindValues[keyof typeof RunnerMcpTransportKindValues];
|
|
@@ -418,11 +367,7 @@ export type AttributeDouble = number | "NaN" | "Infinity" | "-Infinity";
|
|
|
418
367
|
export type AttributeValue = null | string | boolean | AttributeIntValue | AttributeDoubleValue | AttributeBytesValue | AttributeValue[] | AttributeKeyValueListValue;
|
|
419
368
|
export type ApiError = NotFoundError | ValidationError | UnauthorizedError | ForbiddenError | ConflictError | RateLimitError | InternalServerError | BadGatewayError | ServiceUnavailableError;
|
|
420
369
|
export type LogBody = LogBodyString | LogBodyKvList | LogBodyArray | LogBodyBytes;
|
|
421
|
-
export type
|
|
422
|
-
export type MetricNumberValue = MetricIntegerValue | MetricDoubleValue;
|
|
423
|
-
export type SummaryQuantileDouble = number | "Infinity";
|
|
424
|
-
export type MetricPoint = GaugeMetricPoint | SumMetricPoint | HistogramMetricPoint | ExponentialHistogramMetricPoint | SummaryMetricPoint;
|
|
425
|
-
export type RunnerMcpServerConfiguration = RunnerMcpStdioServerConfiguration | RunnerMcpStreamableHttpServerConfiguration | RunnerMcpSseServerConfiguration | RunnerMcpInProcessServerConfiguration | RunnerMcpBuiltinServerConfiguration;
|
|
370
|
+
export type RunnerMcpServerConfiguration = RunnerMcpStdioServerConfiguration | RunnerMcpStreamableHttpServerConfiguration | RunnerMcpBuiltinServerConfiguration;
|
|
426
371
|
export type RunnerMcpTestAssertion = RunnerMcpStatusAssertion | RunnerMcpExactAssertion | RunnerMcpPartialAssertion | RunnerMcpSchemaAssertion | RunnerMcpPatternAssertion | RunnerMcpLatencyAssertion;
|
|
427
372
|
export type RunnerMcpEvaluationExportPayload = RunnerMcpEvaluationJsonExportPayload | RunnerMcpEvaluationReportExportPayload;
|
|
428
373
|
export type RunnerResourceEvents = RunnerResourceState;
|
|
@@ -693,173 +638,6 @@ export interface LogTemplate {
|
|
|
693
638
|
"parameters": Attribute[];
|
|
694
639
|
"rendered_message"?: string;
|
|
695
640
|
}
|
|
696
|
-
export interface MetricIntegerValue {
|
|
697
|
-
"as_int": string;
|
|
698
|
-
}
|
|
699
|
-
export interface MetricDoubleValue {
|
|
700
|
-
"as_double": MetricDouble;
|
|
701
|
-
}
|
|
702
|
-
export interface MetricExemplar {
|
|
703
|
-
"time_unix_nano": string;
|
|
704
|
-
"value": MetricNumberValue;
|
|
705
|
-
"span_id"?: SpanId;
|
|
706
|
-
"trace_id"?: TraceId;
|
|
707
|
-
"filtered_attributes"?: Attribute[];
|
|
708
|
-
}
|
|
709
|
-
export interface ExponentialHistogramBuckets {
|
|
710
|
-
"offset": number;
|
|
711
|
-
"bucket_counts": string[];
|
|
712
|
-
}
|
|
713
|
-
export interface SummaryQuantileValue {
|
|
714
|
-
"quantile": number;
|
|
715
|
-
"value": SummaryQuantileDouble;
|
|
716
|
-
}
|
|
717
|
-
export interface MetricPointBase {
|
|
718
|
-
"name": string;
|
|
719
|
-
"description"?: string;
|
|
720
|
-
"unit"?: string;
|
|
721
|
-
"metadata"?: Attribute[];
|
|
722
|
-
"attributes"?: Attribute[];
|
|
723
|
-
"start_time_unix_nano": string;
|
|
724
|
-
"time_unix_nano": string;
|
|
725
|
-
"flags": number;
|
|
726
|
-
"resource": Resource;
|
|
727
|
-
"resource_schema_url"?: string;
|
|
728
|
-
"instrumentation_scope"?: InstrumentationScope;
|
|
729
|
-
"scope_schema_url"?: string;
|
|
730
|
-
}
|
|
731
|
-
export interface GaugeMetricPoint extends MetricPointBase {
|
|
732
|
-
"type": "gauge";
|
|
733
|
-
"value"?: MetricNumberValue;
|
|
734
|
-
"exemplars"?: MetricExemplar[];
|
|
735
|
-
}
|
|
736
|
-
export interface SumMetricPoint extends MetricPointBase {
|
|
737
|
-
"type": "sum";
|
|
738
|
-
"value"?: MetricNumberValue;
|
|
739
|
-
"aggregation_temporality": AggregationTemporality;
|
|
740
|
-
"is_monotonic": boolean;
|
|
741
|
-
"exemplars"?: MetricExemplar[];
|
|
742
|
-
}
|
|
743
|
-
export interface HistogramMetricPoint extends MetricPointBase {
|
|
744
|
-
"type": "histogram";
|
|
745
|
-
"count": string;
|
|
746
|
-
"sum"?: MetricDouble;
|
|
747
|
-
"bucket_counts": string[];
|
|
748
|
-
"explicit_bounds": number[];
|
|
749
|
-
"min"?: MetricDouble;
|
|
750
|
-
"max"?: MetricDouble;
|
|
751
|
-
"aggregation_temporality": AggregationTemporality;
|
|
752
|
-
"exemplars"?: MetricExemplar[];
|
|
753
|
-
}
|
|
754
|
-
export interface ExponentialHistogramMetricPoint extends MetricPointBase {
|
|
755
|
-
"type": "exponential_histogram";
|
|
756
|
-
"count": string;
|
|
757
|
-
"sum"?: MetricDouble;
|
|
758
|
-
"scale": number;
|
|
759
|
-
"zero_count": string;
|
|
760
|
-
"zero_threshold": MetricDouble;
|
|
761
|
-
"positive": ExponentialHistogramBuckets;
|
|
762
|
-
"negative": ExponentialHistogramBuckets;
|
|
763
|
-
"min"?: MetricDouble;
|
|
764
|
-
"max"?: MetricDouble;
|
|
765
|
-
"aggregation_temporality": AggregationTemporality;
|
|
766
|
-
"exemplars"?: MetricExemplar[];
|
|
767
|
-
}
|
|
768
|
-
export interface SummaryMetricPoint extends MetricPointBase {
|
|
769
|
-
"type": "summary";
|
|
770
|
-
"count": string;
|
|
771
|
-
"sum": MetricDouble;
|
|
772
|
-
"quantile_values": SummaryQuantileValue[];
|
|
773
|
-
}
|
|
774
|
-
export interface Profile {
|
|
775
|
-
"profile_id": string;
|
|
776
|
-
"sample_type"?: ProfileValueType;
|
|
777
|
-
"samples"?: ProfileSample[];
|
|
778
|
-
"time_unix_nano": number;
|
|
779
|
-
"duration_nano": number;
|
|
780
|
-
"period_type"?: ProfileValueType;
|
|
781
|
-
"period"?: number;
|
|
782
|
-
"original_payload_format"?: OriginalPayloadFormat;
|
|
783
|
-
"original_payload"?: string;
|
|
784
|
-
"attributes"?: Attribute[];
|
|
785
|
-
"dropped_attributes_count"?: number;
|
|
786
|
-
"resource": Resource;
|
|
787
|
-
"instrumentation_scope"?: InstrumentationScope;
|
|
788
|
-
"string_table"?: string[];
|
|
789
|
-
"function_table"?: ProfileFunction[];
|
|
790
|
-
"location_table"?: ProfileLocation[];
|
|
791
|
-
"mapping_table"?: ProfileMapping[];
|
|
792
|
-
"link_table"?: ProfileLink[];
|
|
793
|
-
"stack_table"?: ProfileStack[];
|
|
794
|
-
}
|
|
795
|
-
export interface ProfileValueType {
|
|
796
|
-
"type_strindex"?: number;
|
|
797
|
-
"unit_strindex"?: number;
|
|
798
|
-
}
|
|
799
|
-
export interface ProfileSample {
|
|
800
|
-
"stack_index"?: number;
|
|
801
|
-
"attribute_indices"?: number[];
|
|
802
|
-
"link_index"?: number;
|
|
803
|
-
"values"?: number[];
|
|
804
|
-
"timestamps_unix_nano"?: number[];
|
|
805
|
-
}
|
|
806
|
-
export interface ProfileFunction {
|
|
807
|
-
"name_strindex"?: number;
|
|
808
|
-
"system_name_strindex"?: number;
|
|
809
|
-
"filename_strindex"?: number;
|
|
810
|
-
"start_line"?: number;
|
|
811
|
-
}
|
|
812
|
-
export interface ProfileLocation {
|
|
813
|
-
"mapping_index"?: number;
|
|
814
|
-
"address"?: number;
|
|
815
|
-
"lines"?: ProfileLine[];
|
|
816
|
-
"attribute_indices"?: number[];
|
|
817
|
-
}
|
|
818
|
-
export interface ProfileLine {
|
|
819
|
-
"function_index"?: number;
|
|
820
|
-
"line"?: number;
|
|
821
|
-
"column"?: number;
|
|
822
|
-
}
|
|
823
|
-
export interface ProfileMapping {
|
|
824
|
-
"memory_start"?: number;
|
|
825
|
-
"memory_limit"?: number;
|
|
826
|
-
"file_offset"?: number;
|
|
827
|
-
"filename_strindex"?: number;
|
|
828
|
-
"attribute_indices"?: number[];
|
|
829
|
-
}
|
|
830
|
-
export interface ProfileLink {
|
|
831
|
-
"trace_id"?: TraceId;
|
|
832
|
-
"span_id"?: SpanId;
|
|
833
|
-
}
|
|
834
|
-
export interface ProfileStack {
|
|
835
|
-
"location_indices"?: number[];
|
|
836
|
-
}
|
|
837
|
-
export interface ProfileQueryFilters {
|
|
838
|
-
"trace_id"?: TraceId;
|
|
839
|
-
"span_id"?: SpanId;
|
|
840
|
-
"session_id"?: SessionId;
|
|
841
|
-
"service_name"?: string;
|
|
842
|
-
"sample_type"?: string;
|
|
843
|
-
"profile_frame_type"?: string;
|
|
844
|
-
"original_payload_format"?: OriginalPayloadFormat;
|
|
845
|
-
"min_duration_nano"?: number;
|
|
846
|
-
"time_from"?: string;
|
|
847
|
-
"time_to"?: string;
|
|
848
|
-
}
|
|
849
|
-
export interface ProfileStats {
|
|
850
|
-
"total_count": number;
|
|
851
|
-
"total_sample_count": number;
|
|
852
|
-
"avg_duration_nano": number;
|
|
853
|
-
"by_sample_type"?: ProfileStatsByDimension[];
|
|
854
|
-
"by_service"?: ProfileStatsByDimension[];
|
|
855
|
-
"by_frame_type"?: ProfileStatsByDimension[];
|
|
856
|
-
}
|
|
857
|
-
export interface ProfileStatsByDimension {
|
|
858
|
-
"dimension": string;
|
|
859
|
-
"count": number;
|
|
860
|
-
"sample_count": number;
|
|
861
|
-
"avg_duration_nano": number;
|
|
862
|
-
}
|
|
863
641
|
export interface SessionAttributes {
|
|
864
642
|
"session.id": SessionId;
|
|
865
643
|
"session.previous_id"?: SessionId;
|
|
@@ -1018,15 +796,6 @@ export interface RunnerMcpStreamableHttpServerConfiguration {
|
|
|
1018
796
|
"endpoint": string;
|
|
1019
797
|
"headers"?: RunnerMcpHeaderSecretReference[];
|
|
1020
798
|
}
|
|
1021
|
-
export interface RunnerMcpSseServerConfiguration {
|
|
1022
|
-
"transport": "sse";
|
|
1023
|
-
"endpoint": string;
|
|
1024
|
-
"headers"?: RunnerMcpHeaderSecretReference[];
|
|
1025
|
-
}
|
|
1026
|
-
export interface RunnerMcpInProcessServerConfiguration {
|
|
1027
|
-
"transport": "inproc";
|
|
1028
|
-
"implementation": string;
|
|
1029
|
-
}
|
|
1030
799
|
export interface RunnerMcpBuiltinServerConfiguration {
|
|
1031
800
|
"transport": "builtin";
|
|
1032
801
|
"name": string;
|
|
@@ -1193,7 +962,6 @@ export interface RunnerMcpTelemetrySignalAvailability {
|
|
|
1193
962
|
export interface RunnerMcpTelemetrySignalSummary {
|
|
1194
963
|
"traces": RunnerMcpTelemetrySignalAvailability;
|
|
1195
964
|
"logs": RunnerMcpTelemetrySignalAvailability;
|
|
1196
|
-
"metrics": RunnerMcpTelemetrySignalAvailability;
|
|
1197
965
|
"exceptions": RunnerMcpTelemetrySignalAvailability;
|
|
1198
966
|
"toolCallEvents": RunnerMcpTelemetrySignalAvailability;
|
|
1199
967
|
}
|
|
@@ -1202,7 +970,6 @@ export interface RunnerMcpExecutionTelemetryResponse {
|
|
|
1202
970
|
"correlation": RunnerMcpTelemetryCorrelation;
|
|
1203
971
|
"traces": Trace[];
|
|
1204
972
|
"logs": LogRecord[];
|
|
1205
|
-
"metrics": MetricPoint[];
|
|
1206
973
|
"queriedAt": string;
|
|
1207
974
|
"selfExportSuppressed": true;
|
|
1208
975
|
}
|
|
@@ -1581,12 +1348,6 @@ export interface CursorPageLogRecord {
|
|
|
1581
1348
|
"prev_cursor"?: string;
|
|
1582
1349
|
"has_more": boolean;
|
|
1583
1350
|
}
|
|
1584
|
-
export interface CursorPageMetricPoint {
|
|
1585
|
-
"items": MetricPoint[];
|
|
1586
|
-
"next_cursor"?: string;
|
|
1587
|
-
"prev_cursor"?: string;
|
|
1588
|
-
"has_more": boolean;
|
|
1589
|
-
}
|
|
1590
1351
|
export interface CursorPageSessionEntity {
|
|
1591
1352
|
"items": SessionEntity[];
|
|
1592
1353
|
"next_cursor"?: string;
|
|
@@ -67,30 +67,6 @@ export const SeverityTextValues = {
|
|
|
67
67
|
"ERROR": "ERROR",
|
|
68
68
|
"FATAL": "FATAL",
|
|
69
69
|
};
|
|
70
|
-
export const MetricTypeValues = {
|
|
71
|
-
"gauge": "gauge",
|
|
72
|
-
"sum": "sum",
|
|
73
|
-
"histogram": "histogram",
|
|
74
|
-
"exponentialHistogram": "exponential_histogram",
|
|
75
|
-
"summary": "summary",
|
|
76
|
-
};
|
|
77
|
-
export const AggregationTemporalityValues = {
|
|
78
|
-
"delta": 1,
|
|
79
|
-
"cumulative": 2,
|
|
80
|
-
};
|
|
81
|
-
export const DataPointFlagsValues = {
|
|
82
|
-
"none": 0,
|
|
83
|
-
"noRecordedValue": 1,
|
|
84
|
-
};
|
|
85
|
-
export const InstrumentKindValues = {
|
|
86
|
-
"counter": "Counter",
|
|
87
|
-
"upDownCounter": "UpDownCounter",
|
|
88
|
-
"histogram": "Histogram",
|
|
89
|
-
"gauge": "Gauge",
|
|
90
|
-
"observableCounter": "ObservableCounter",
|
|
91
|
-
"observableGauge": "ObservableGauge",
|
|
92
|
-
"observableUpDownCounter": "ObservableUpDownCounter",
|
|
93
|
-
};
|
|
94
70
|
export const TelemetrySdkLanguageValues = {
|
|
95
71
|
"cpp": "cpp",
|
|
96
72
|
"dotnet": "dotnet",
|
|
@@ -127,25 +103,6 @@ export const EventDomainValues = {
|
|
|
127
103
|
"exception": "exception",
|
|
128
104
|
"log": "log",
|
|
129
105
|
};
|
|
130
|
-
export const OriginalPayloadFormatValues = {
|
|
131
|
-
"pprof": "pprof",
|
|
132
|
-
"jfr": "jfr",
|
|
133
|
-
"linuxPerf": "linux_perf",
|
|
134
|
-
};
|
|
135
|
-
export const ProfileFrameTypeValues = {
|
|
136
|
-
"beam": "beam",
|
|
137
|
-
"cpython": "cpython",
|
|
138
|
-
"dotnet": "dotnet",
|
|
139
|
-
"go": "go",
|
|
140
|
-
"jvm": "jvm",
|
|
141
|
-
"kernel": "kernel",
|
|
142
|
-
"native": "native",
|
|
143
|
-
"perl": "perl",
|
|
144
|
-
"php": "php",
|
|
145
|
-
"ruby": "ruby",
|
|
146
|
-
"rust": "rust",
|
|
147
|
-
"v8js": "v8js",
|
|
148
|
-
};
|
|
149
106
|
export const CloudProviderValues = {
|
|
150
107
|
"alibabaCloud": "alibaba_cloud",
|
|
151
108
|
"aws": "aws",
|
|
@@ -321,8 +278,6 @@ export const RunnerMcpEvaluationExportStatusValues = {
|
|
|
321
278
|
export const RunnerMcpTransportKindValues = {
|
|
322
279
|
"stdio": "stdio",
|
|
323
280
|
"streamableHttp": "streamable_http",
|
|
324
|
-
"sse": "sse",
|
|
325
|
-
"inproc": "inproc",
|
|
326
281
|
"builtin": "builtin",
|
|
327
282
|
};
|
|
328
283
|
export const McpDataModeValues = {
|
package/index.tsp
CHANGED
package/models/runner-mcp.tsp
CHANGED
|
@@ -3,14 +3,12 @@ import "@typespec/openapi3";
|
|
|
3
3
|
|
|
4
4
|
import "../common/types.tsp";
|
|
5
5
|
import "../otel/logs.tsp";
|
|
6
|
-
import "../otel/metrics.tsp";
|
|
7
6
|
import "../otel/span.tsp";
|
|
8
7
|
|
|
9
8
|
using TypeSpec.Http;
|
|
10
9
|
using TypeSpec.OpenAPI;
|
|
11
10
|
using Qyl.Api.Contracts.Common;
|
|
12
11
|
using Qyl.Api.Contracts.OTel.Logs;
|
|
13
|
-
using Qyl.Api.Contracts.OTel.Metrics;
|
|
14
12
|
using Qyl.Api.Contracts.OTel.Traces;
|
|
15
13
|
|
|
16
14
|
namespace Qyl.Api.Contracts.Runner.Mcp;
|
|
@@ -156,8 +154,6 @@ model RunnerMcpWorkspacePreferencesUpdateRequest {
|
|
|
156
154
|
enum RunnerMcpTransportKind {
|
|
157
155
|
stdio: "stdio",
|
|
158
156
|
streamableHttp: "streamable_http",
|
|
159
|
-
sse: "sse",
|
|
160
|
-
inproc: "inproc",
|
|
161
157
|
builtin: "builtin",
|
|
162
158
|
}
|
|
163
159
|
|
|
@@ -213,21 +209,6 @@ model RunnerMcpStreamableHttpServerConfiguration {
|
|
|
213
209
|
headers?: RunnerMcpHeaderSecretReference[];
|
|
214
210
|
}
|
|
215
211
|
|
|
216
|
-
@doc("Sanitized legacy MCP SSE transport configuration.")
|
|
217
|
-
model RunnerMcpSseServerConfiguration {
|
|
218
|
-
transport: "sse";
|
|
219
|
-
endpoint: url;
|
|
220
|
-
headers?: RunnerMcpHeaderSecretReference[];
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
@doc("Sanitized in-process MCP server configuration.")
|
|
224
|
-
model RunnerMcpInProcessServerConfiguration {
|
|
225
|
-
transport: "inproc";
|
|
226
|
-
|
|
227
|
-
@minLength(1)
|
|
228
|
-
implementation: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
212
|
@doc("Sanitized built-in MCP server configuration.")
|
|
232
213
|
model RunnerMcpBuiltinServerConfiguration {
|
|
233
214
|
transport: "builtin";
|
|
@@ -241,8 +222,6 @@ model RunnerMcpBuiltinServerConfiguration {
|
|
|
241
222
|
union RunnerMcpServerConfiguration {
|
|
242
223
|
stdio: RunnerMcpStdioServerConfiguration,
|
|
243
224
|
streamableHttp: RunnerMcpStreamableHttpServerConfiguration,
|
|
244
|
-
sse: RunnerMcpSseServerConfiguration,
|
|
245
|
-
inproc: RunnerMcpInProcessServerConfiguration,
|
|
246
225
|
builtin: RunnerMcpBuiltinServerConfiguration,
|
|
247
226
|
}
|
|
248
227
|
|
|
@@ -578,7 +557,6 @@ model RunnerMcpTelemetrySignalAvailability {
|
|
|
578
557
|
model RunnerMcpTelemetrySignalSummary {
|
|
579
558
|
traces: RunnerMcpTelemetrySignalAvailability;
|
|
580
559
|
logs: RunnerMcpTelemetrySignalAvailability;
|
|
581
|
-
metrics: RunnerMcpTelemetrySignalAvailability;
|
|
582
560
|
exceptions: RunnerMcpTelemetrySignalAvailability;
|
|
583
561
|
toolCallEvents: RunnerMcpTelemetrySignalAvailability;
|
|
584
562
|
}
|
|
@@ -589,7 +567,6 @@ model RunnerMcpExecutionTelemetryResponse {
|
|
|
589
567
|
correlation: RunnerMcpTelemetryCorrelation;
|
|
590
568
|
traces: Trace[];
|
|
591
569
|
logs: LogRecord[];
|
|
592
|
-
metrics: MetricPoint[];
|
|
593
570
|
queriedAt: utcDateTime;
|
|
594
571
|
|
|
595
572
|
@doc("Confirms that workbench telemetry querying is excluded from workbench export instrumentation.")
|
package/otel/enums.tsp
CHANGED
|
@@ -158,70 +158,6 @@ enum SeverityText {
|
|
|
158
158
|
FATAL: "FATAL",
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// =============================================================================
|
|
162
|
-
// Metric Enumerations
|
|
163
|
-
// =============================================================================
|
|
164
|
-
|
|
165
|
-
@doc("Metric data type")
|
|
166
|
-
enum MetricType {
|
|
167
|
-
@doc("Gauge - instantaneous value")
|
|
168
|
-
gauge: "gauge",
|
|
169
|
-
|
|
170
|
-
@doc("Sum - monotonic or non-monotonic counter")
|
|
171
|
-
sum: "sum",
|
|
172
|
-
|
|
173
|
-
@doc("Histogram - distribution of values")
|
|
174
|
-
histogram: "histogram",
|
|
175
|
-
|
|
176
|
-
@doc("Exponential histogram - distribution with exponential buckets")
|
|
177
|
-
exponentialHistogram: "exponential_histogram",
|
|
178
|
-
|
|
179
|
-
@doc("Summary - pre-aggregated quantiles")
|
|
180
|
-
summary: "summary",
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
@doc("Aggregation temporality for metrics")
|
|
184
|
-
enum AggregationTemporality {
|
|
185
|
-
@doc("Delta - values since last report")
|
|
186
|
-
delta: 1,
|
|
187
|
-
|
|
188
|
-
@doc("Cumulative - values since start")
|
|
189
|
-
cumulative: 2,
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
@doc("Data point flags")
|
|
193
|
-
enum DataPointFlags {
|
|
194
|
-
@doc("No flags set")
|
|
195
|
-
none: 0,
|
|
196
|
-
|
|
197
|
-
@doc("Value is absent (no measurement)")
|
|
198
|
-
noRecordedValue: 1,
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@doc("Metric instrument kinds per OTel specification")
|
|
202
|
-
enum InstrumentKind {
|
|
203
|
-
@doc("Counter - monotonically increasing cumulative sum")
|
|
204
|
-
counter: "Counter",
|
|
205
|
-
|
|
206
|
-
@doc("UpDownCounter - can increase or decrease")
|
|
207
|
-
upDownCounter: "UpDownCounter",
|
|
208
|
-
|
|
209
|
-
@doc("Histogram - distribution of values with buckets")
|
|
210
|
-
histogram: "Histogram",
|
|
211
|
-
|
|
212
|
-
@doc("Gauge - instantaneous value at read time")
|
|
213
|
-
gauge: "Gauge",
|
|
214
|
-
|
|
215
|
-
@doc("Observable counter - async counter with callback")
|
|
216
|
-
observableCounter: "ObservableCounter",
|
|
217
|
-
|
|
218
|
-
@doc("Observable gauge - async gauge with callback")
|
|
219
|
-
observableGauge: "ObservableGauge",
|
|
220
|
-
|
|
221
|
-
@doc("Observable up-down counter - async up-down with callback")
|
|
222
|
-
observableUpDownCounter: "ObservableUpDownCounter",
|
|
223
|
-
}
|
|
224
|
-
|
|
225
161
|
// =============================================================================
|
|
226
162
|
// Resource Enumerations
|
|
227
163
|
// =============================================================================
|
|
@@ -332,58 +268,3 @@ enum EventDomain {
|
|
|
332
268
|
@doc("Log events")
|
|
333
269
|
log: "log",
|
|
334
270
|
}
|
|
335
|
-
|
|
336
|
-
// =============================================================================
|
|
337
|
-
// Profile Enumerations (v1development, Development stability)
|
|
338
|
-
// =============================================================================
|
|
339
|
-
|
|
340
|
-
@doc("Original payload format for profile data")
|
|
341
|
-
enum OriginalPayloadFormat {
|
|
342
|
-
@doc("Google pprof format (original_payload SHOULD NOT be populated — lossless mapping)")
|
|
343
|
-
pprof: "pprof",
|
|
344
|
-
|
|
345
|
-
@doc("Java Flight Recorder")
|
|
346
|
-
jfr: "jfr",
|
|
347
|
-
|
|
348
|
-
@doc("Linux perf.data format")
|
|
349
|
-
linuxPerf: "linux_perf",
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
@doc("Profile frame type — interpreter or compiler of a single frame")
|
|
353
|
-
enum ProfileFrameType {
|
|
354
|
-
@doc("Erlang (BEAM VM)")
|
|
355
|
-
beam: "beam",
|
|
356
|
-
|
|
357
|
-
@doc("Python (CPython)")
|
|
358
|
-
cpython: "cpython",
|
|
359
|
-
|
|
360
|
-
@doc(".NET")
|
|
361
|
-
dotnet: "dotnet",
|
|
362
|
-
|
|
363
|
-
@doc("Go")
|
|
364
|
-
go: "go",
|
|
365
|
-
|
|
366
|
-
@doc("JVM")
|
|
367
|
-
jvm: "jvm",
|
|
368
|
-
|
|
369
|
-
@doc("OS Kernel")
|
|
370
|
-
kernel: "kernel",
|
|
371
|
-
|
|
372
|
-
@doc("C, C++, Go, Rust (use more precise value if possible)")
|
|
373
|
-
native: "native",
|
|
374
|
-
|
|
375
|
-
@doc("Perl")
|
|
376
|
-
perl: "perl",
|
|
377
|
-
|
|
378
|
-
@doc("PHP")
|
|
379
|
-
php: "php",
|
|
380
|
-
|
|
381
|
-
@doc("Ruby")
|
|
382
|
-
ruby: "ruby",
|
|
383
|
-
|
|
384
|
-
@doc("Rust")
|
|
385
|
-
rust: "rust",
|
|
386
|
-
|
|
387
|
-
@doc("V8 JavaScript engine")
|
|
388
|
-
v8js: "v8js",
|
|
389
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancplua/qyl-api-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.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": {
|
|
@@ -60,9 +60,7 @@
|
|
|
60
60
|
"models/session.tsp",
|
|
61
61
|
"otel/enums.tsp",
|
|
62
62
|
"otel/logs.tsp",
|
|
63
|
-
"otel/metrics.tsp",
|
|
64
63
|
"otel/otel-conventions.tsp",
|
|
65
|
-
"otel/profiles.tsp",
|
|
66
64
|
"otel/resource.tsp",
|
|
67
65
|
"otel/span.tsp",
|
|
68
66
|
"generated/otel-keys.gen.tsp",
|