@ancplua/qyl-api-schema 0.5.11 → 0.5.13
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.
|
@@ -848,7 +848,6 @@
|
|
|
848
848
|
"cluster_id",
|
|
849
849
|
"workflow_key",
|
|
850
850
|
"service_name",
|
|
851
|
-
"span_name",
|
|
852
851
|
"output_contract",
|
|
853
852
|
"task_family",
|
|
854
853
|
"call_count",
|
|
@@ -876,13 +875,14 @@
|
|
|
876
875
|
},
|
|
877
876
|
"workflow_key": {
|
|
878
877
|
"type": "string",
|
|
879
|
-
"description": "Privacy-safe
|
|
878
|
+
"description": "Privacy-safe derived grouping identity used to group repeated calls."
|
|
880
879
|
},
|
|
881
880
|
"service_name": {
|
|
882
881
|
"type": "string"
|
|
883
882
|
},
|
|
884
883
|
"span_name": {
|
|
885
|
-
"type": "string"
|
|
884
|
+
"type": "string",
|
|
885
|
+
"description": "Present only when an upstream source proves or canonicalizes a low-cardinality, privacy-safe span name."
|
|
886
886
|
},
|
|
887
887
|
"operation_name": {
|
|
888
888
|
"type": "string"
|
|
@@ -1514,6 +1514,7 @@
|
|
|
1514
1514
|
"type": "string",
|
|
1515
1515
|
"enum": [
|
|
1516
1516
|
"unconfigured",
|
|
1517
|
+
"pending",
|
|
1517
1518
|
"current",
|
|
1518
1519
|
"stale",
|
|
1519
1520
|
"sync_failed",
|
|
@@ -1803,11 +1804,6 @@
|
|
|
1803
1804
|
"type": "string"
|
|
1804
1805
|
},
|
|
1805
1806
|
"description": "Providers used in session"
|
|
1806
|
-
},
|
|
1807
|
-
"estimated_cost_usd": {
|
|
1808
|
-
"type": "number",
|
|
1809
|
-
"format": "double",
|
|
1810
|
-
"description": "Estimated cost in USD"
|
|
1811
1807
|
}
|
|
1812
1808
|
},
|
|
1813
1809
|
"description": "Session GenAI usage summary"
|
|
@@ -4844,7 +4844,6 @@
|
|
|
4844
4844
|
"cluster_id",
|
|
4845
4845
|
"workflow_key",
|
|
4846
4846
|
"service_name",
|
|
4847
|
-
"span_name",
|
|
4848
4847
|
"output_contract",
|
|
4849
4848
|
"task_family",
|
|
4850
4849
|
"call_count",
|
|
@@ -4872,13 +4871,14 @@
|
|
|
4872
4871
|
},
|
|
4873
4872
|
"workflow_key": {
|
|
4874
4873
|
"type": "string",
|
|
4875
|
-
"description": "Privacy-safe
|
|
4874
|
+
"description": "Privacy-safe derived grouping identity used to group repeated calls."
|
|
4876
4875
|
},
|
|
4877
4876
|
"service_name": {
|
|
4878
4877
|
"type": "string"
|
|
4879
4878
|
},
|
|
4880
4879
|
"span_name": {
|
|
4881
|
-
"type": "string"
|
|
4880
|
+
"type": "string",
|
|
4881
|
+
"description": "Present only when an upstream source proves or canonicalizes a low-cardinality, privacy-safe span name."
|
|
4882
4882
|
},
|
|
4883
4883
|
"operation_name": {
|
|
4884
4884
|
"type": "string"
|
|
@@ -5510,6 +5510,7 @@
|
|
|
5510
5510
|
"type": "string",
|
|
5511
5511
|
"enum": [
|
|
5512
5512
|
"unconfigured",
|
|
5513
|
+
"pending",
|
|
5513
5514
|
"current",
|
|
5514
5515
|
"stale",
|
|
5515
5516
|
"sync_failed",
|
|
@@ -5799,11 +5800,6 @@
|
|
|
5799
5800
|
"type": "string"
|
|
5800
5801
|
},
|
|
5801
5802
|
"description": "Providers used in session"
|
|
5802
|
-
},
|
|
5803
|
-
"estimated_cost_usd": {
|
|
5804
|
-
"type": "number",
|
|
5805
|
-
"format": "double",
|
|
5806
|
-
"description": "Estimated cost in USD"
|
|
5807
5803
|
}
|
|
5808
5804
|
},
|
|
5809
5805
|
"description": "Session GenAI usage summary"
|
|
@@ -296,6 +296,7 @@ export declare const ProviderCostSourceKindValues: {
|
|
|
296
296
|
export type ProviderCostSourceKind = typeof ProviderCostSourceKindValues[keyof typeof ProviderCostSourceKindValues];
|
|
297
297
|
export declare const ProviderCostSourceStatusValues: {
|
|
298
298
|
readonly unconfigured: "unconfigured";
|
|
299
|
+
readonly pending: "pending";
|
|
299
300
|
readonly current: "current";
|
|
300
301
|
readonly stale: "stale";
|
|
301
302
|
readonly syncFailed: "sync_failed";
|
|
@@ -795,7 +796,6 @@ export interface SessionGenAiUsage {
|
|
|
795
796
|
"total_output_tokens": number;
|
|
796
797
|
"models_used": string[];
|
|
797
798
|
"providers_used": string[];
|
|
798
|
-
"estimated_cost_usd"?: number;
|
|
799
799
|
}
|
|
800
800
|
export interface SessionStats {
|
|
801
801
|
"active_sessions": number;
|
|
@@ -1078,7 +1078,7 @@ export interface GenAiEtlAuditCluster {
|
|
|
1078
1078
|
"cluster_id": string;
|
|
1079
1079
|
"workflow_key": string;
|
|
1080
1080
|
"service_name": string;
|
|
1081
|
-
"span_name"
|
|
1081
|
+
"span_name"?: string;
|
|
1082
1082
|
"operation_name"?: string;
|
|
1083
1083
|
"provider"?: string;
|
|
1084
1084
|
"model"?: string;
|
|
@@ -24,6 +24,9 @@ enum ProviderCostSourceStatus {
|
|
|
24
24
|
@doc("The source has no configured provider credential or cloud identity.")
|
|
25
25
|
unconfigured: "unconfigured",
|
|
26
26
|
|
|
27
|
+
@doc("A provider credential or cloud identity is configured, but no fetch has completed yet.")
|
|
28
|
+
pending: "pending",
|
|
29
|
+
|
|
27
30
|
@doc("The most recent provider fetch completed inside its freshness window.")
|
|
28
31
|
current: "current",
|
|
29
32
|
|
|
@@ -217,15 +220,16 @@ model GenAiEtlAuditCluster {
|
|
|
217
220
|
@encodedName("application/json", "cluster_id")
|
|
218
221
|
clusterId: string;
|
|
219
222
|
|
|
220
|
-
@doc("Privacy-safe
|
|
223
|
+
@doc("Privacy-safe derived grouping identity used to group repeated calls.")
|
|
221
224
|
@encodedName("application/json", "workflow_key")
|
|
222
225
|
workflowKey: string;
|
|
223
226
|
|
|
224
227
|
@encodedName("application/json", "service_name")
|
|
225
228
|
serviceName: string;
|
|
226
229
|
|
|
230
|
+
@doc("Present only when an upstream source proves or canonicalizes a low-cardinality, privacy-safe span name.")
|
|
227
231
|
@encodedName("application/json", "span_name")
|
|
228
|
-
spanName
|
|
232
|
+
spanName?: string;
|
|
229
233
|
|
|
230
234
|
@encodedName("application/json", "operation_name")
|
|
231
235
|
operationName?: string;
|
package/models/session.tsp
CHANGED
|
@@ -236,10 +236,6 @@ model SessionGenAiUsage {
|
|
|
236
236
|
@doc("Providers used in session")
|
|
237
237
|
@encodedName("application/json", "providers_used")
|
|
238
238
|
providersUsed: string[];
|
|
239
|
-
|
|
240
|
-
@doc("Estimated cost in USD")
|
|
241
|
-
@encodedName("application/json", "estimated_cost_usd")
|
|
242
|
-
estimatedCostUsd?: float64;
|
|
243
239
|
}
|
|
244
240
|
|
|
245
241
|
// =============================================================================
|
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.13",
|
|
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": {
|