@ancplua/qyl-api-schema 2.0.0 → 3.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.
@@ -1,7 +1,7 @@
1
1
  // <auto-generated/>
2
2
  // Generated by qyl's Weaver pipeline (emit_typespec_keys.py) from:
3
3
  // open-telemetry/semantic-conventions v1.43.0 (89aae438b3b3b0a8dd33003c9d70592baf7dbd0d)
4
- // open-telemetry/semantic-conventions-genai 33b7f9da9ade6162d4a5c16247d0bc6ad5f8b469 (33b7f9da9ade6162d4a5c16247d0bc6ad5f8b469)
4
+ // open-telemetry/semantic-conventions-genai 74fd2e0f77267ce26d55cf8991200df5a265ef74 (74fd2e0f77267ce26d55cf8991200df5a265ef74)
5
5
  // Schema: https://opentelemetry.io/schemas/1.43.0
6
6
  // GenAI schema: https://opentelemetry.io/schemas/gen-ai-dev/1.42.0-dev
7
7
  // Licensed under Apache-2.0 (inherited from OpenTelemetry upstream)
@@ -881,6 +881,8 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.GenAi {
881
881
  const RequestModel: string = "gen_ai.request.model";
882
882
  /** The presence penalty setting for the GenAI request. */
883
883
  const RequestPresencePenalty: string = "gen_ai.request.presence_penalty";
884
+ /** The unique identifier of a previous response or interaction used to provide context for the current operation. */
885
+ const RequestPreviousResponseId: string = "gen_ai.request.previous_response.id";
884
886
  /** The reasoning or thinking effort level requested for a GenAI model. */
885
887
  const RequestReasoningLevel: string = "gen_ai.request.reasoning.level";
886
888
  /** Requests with same seed value more likely to return same result. */
@@ -531,8 +531,8 @@ export interface Span {
531
531
  "trace_state"?: string;
532
532
  "name": string;
533
533
  "kind": SpanKind;
534
- "start_time_unix_nano": number;
535
- "end_time_unix_nano": number;
534
+ "start_time_unix_nano": string;
535
+ "end_time_unix_nano": string;
536
536
  "attributes"?: Attribute[];
537
537
  "dropped_attributes_count"?: number;
538
538
  "events"?: SpanEvent[];
@@ -546,7 +546,7 @@ export interface Span {
546
546
  }
547
547
  export interface SpanEvent {
548
548
  "name": string;
549
- "time_unix_nano": number;
549
+ "time_unix_nano": string;
550
550
  "attributes"?: Attribute[];
551
551
  "dropped_attributes_count"?: number;
552
552
  }
@@ -566,7 +566,7 @@ export interface TraceSummary {
566
566
  "trace_id": TraceId;
567
567
  "root_span"?: Span;
568
568
  "span_count": number;
569
- "duration_ns": number;
569
+ "duration_ns": string;
570
570
  "start_time": string;
571
571
  "end_time": string;
572
572
  "services": string[];
@@ -582,8 +582,8 @@ export interface SpanQueryFilters {
582
582
  "kind"?: SpanKind;
583
583
  "service_name"?: string;
584
584
  "status_code"?: SpanStatusCode;
585
- "min_duration_ns"?: number;
586
- "max_duration_ns"?: number;
585
+ "min_duration_ns"?: string;
586
+ "max_duration_ns"?: string;
587
587
  "attribute"?: string;
588
588
  }
589
589
  export interface SpanStats {
@@ -591,11 +591,11 @@ export interface SpanStats {
591
591
  "error_count": number;
592
592
  "error_rate": number;
593
593
  "avg_duration_ns": number;
594
- "p50_duration_ns": number;
595
- "p90_duration_ns": number;
596
- "p99_duration_ns": number;
597
- "min_duration_ns": number;
598
- "max_duration_ns": number;
594
+ "p50_duration_ns": string;
595
+ "p90_duration_ns": string;
596
+ "p99_duration_ns": string;
597
+ "min_duration_ns": string;
598
+ "max_duration_ns": string;
599
599
  "throughput_per_second": number;
600
600
  "by_service"?: SpanStatsByDimension[];
601
601
  "by_operation"?: SpanStatsByDimension[];
@@ -607,8 +607,8 @@ export interface SpanStatsByDimension {
607
607
  "error_rate": number;
608
608
  }
609
609
  export interface LogRecord {
610
- "time_unix_nano": number;
611
- "observed_time_unix_nano": number;
610
+ "time_unix_nano": string;
611
+ "observed_time_unix_nano": string;
612
612
  "severity_number": SeverityNumber;
613
613
  "severity_text"?: SeverityText;
614
614
  "body": LogBody;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancplua/qyl-api-schema",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
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": {
@@ -93,7 +93,8 @@
93
93
  "lint": "npm run build:emitters && tsp compile main.tsp --no-emit --warn-as-error",
94
94
  "lint:public": "npm run build:emitters && tsp compile index.tsp --no-emit --warn-as-error",
95
95
  "verify:routes": "node scripts/verify-route-contracts.mjs",
96
- "verify:contracts": "node scripts/verify-contract-fixtures.mjs"
96
+ "verify:contracts": "node scripts/verify-contract-fixtures.mjs",
97
+ "verify:lint-rules": "npm run build:emitters && node scripts/verify-lint-rules.mjs"
97
98
  },
98
99
  "peerDependencies": {
99
100
  "@typespec/compiler": "^1.13.0 || >=1.13.0-dev.0",
@@ -127,13 +128,13 @@
127
128
  "@ancplua/typespec-emit-csharp": "file:./emitters/csharp",
128
129
  "@ancplua/typespec-emit-ts-types": "file:./emitters/ts-types",
129
130
  "@ancplua/typespec-qyl-lint": "file:./emitters/qyl-lint",
130
- "@types/node": "24.13.3",
131
+ "@types/node": "26.1.1",
131
132
  "@typespec/compiler": "1.14.0",
132
- "@typespec/events": "0.83.0",
133
- "@typespec/http": "1.13.0",
134
- "@typespec/openapi": "1.13.0",
135
- "@typespec/openapi3": "1.13.0",
136
- "@typespec/sse": "0.83.0",
133
+ "@typespec/events": "0.84.0",
134
+ "@typespec/http": "1.14.0",
135
+ "@typespec/openapi": "1.14.0",
136
+ "@typespec/openapi3": "1.14.0",
137
+ "@typespec/sse": "0.84.0",
137
138
  "ajv": "8.20.0",
138
139
  "typescript": "7.0.2"
139
140
  }