Qyl.Api.Contracts 0.4.0

dotnet add package Qyl.Api.Contracts --version 0.4.0
                    
NuGet\Install-Package Qyl.Api.Contracts -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Qyl.Api.Contracts" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Qyl.Api.Contracts" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Qyl.Api.Contracts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Qyl.Api.Contracts --version 0.4.0
                    
#r "nuget: Qyl.Api.Contracts, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Qyl.Api.Contracts@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Qyl.Api.Contracts&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Qyl.Api.Contracts&version=0.4.0
                    
Install as a Cake Tool

@ancplua/qyl-api-schema

qyl-api-schema is the TypeSpec source of truth for qyl's public observability API.

It is not an OpenTelemetry package and it is not a server implementation. OpenTelemetry is one compatibility layer for qyl ingestion and instrumentation; qyl's API contracts are product contracts owned by qyl.

Contract pipeline

open-telemetry/semantic-conventions @ v1.43.0  +  semantic-conventions-genai (dev registry)
        |
        | Weaver (Qyl.OpenTelemetry.SemanticConventions repo:
        |   generate.sh -> resolved-registry.json -> emit_typespec_keys.py)
        v
generated/otel-keys.gen.tsp
        |
        | TypeSpec import / lockstep key projection
        v
@ancplua/qyl-api-schema
        |
        | TypeSpec emit
        v
OpenAPI JSON + JSON Schema + Qyl.Api.Contracts + TS contract types
        |
        v
qyl services, dashboard, tools, and generated clients

The generic OpenTelemetry key projection is the checked-in generated/otel-keys.gen.tsp under ANcpLua.OpenTelemetry.SemanticConventions.Keys.*, regenerated by the Qyl.OpenTelemetry.SemanticConventions repo's Weaver pipeline. This repo defines qyl domain models, routes, and response contracts under Qyl.Api.Contracts.*.

Published artifacts

Ecosystem Package Purpose
TypeSpec/npm @ancplua/qyl-api-schema Source schema for qyl API consumers and generators
NuGet Qyl.Api.Contracts BCL-only generated C# DTOs for qyl services and consumers

Client packages are intentionally not committed here. Generate clients from the OpenAPI document when needed, or add a dedicated Qyl.Api.Client package later. Do not generate a second C# model world through a client emitter.

Repository layout

Path Role
main.tsp Local compile entry point. Includes build-only emit routing.
index.tsp Published TypeSpec entry point. Excludes local emitter wiring.
api/ REST and streaming API operations.
common/, models/, otel/, intelligence/ qyl contract models.
emitters/ Local TypeSpec emitters for C#, TS types, and qyl schema linting.
generated/ Generated artifacts from npm run compile; never edit by hand.
packaging/Qyl.Api.Contracts.csproj Packs generated/contracts as the Qyl.Api.Contracts NuGet.

Local development

npm ci
npm run lint
npm run lint:public
npm run compile
./build.sh PackContractsNuget

npm run compile emits:

  • generated/openapi/qyl.openapi.json
  • generated/json-schema/qyl-api-schema.json
  • generated/contracts/**/*.cs
  • generated/ts-types/**

Hard boundaries

  • Do not add TypeSpec C# server scaffold emitters.
  • Do not add DuckDB/storage schema emitters. Physical storage schema lives in qyl runtime mapping specs.
  • Do not commit generated ASP.NET projects, controllers, mocks, or starter docs that tell maintainers to fill in mock business logic.
  • Do not add compatibility shims for old package IDs or namespaces.
  • Do not hand-edit generated output. Fix TypeSpec, emitter code, or generator inputs, then regenerate.
  • Do not reintroduce legacy qyl API package IDs or namespaces.

Publishing

Publishing is fully automated via GitHub Actions OIDC trusted publishing — no stored secrets, no API keys. Publish a GitHub Release whose tag is vMAJOR.MINOR.PATCH[-prerelease]; publish.yml then, all-or-nothing, packs and validates the artifacts, stamps that single tag-derived version onto both, pushes Qyl.Api.Contracts to nuget.org (NuGet/login OIDC) and publishes @ancplua/qyl-api-schema to npmjs.org (npm trusted publishing + provenance). NuGet pushes first (idempotent) and npm last (immutable), so a partial failure re-runs cleanly. See VERSIONING.md for how the version is derived from the tag. There are no long-lived publish tokens to manage or rotate.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 144 7/11/2026
0.3.0 42 7/11/2026
0.2.3 37 7/11/2026
0.2.2 534 6/30/2026
0.2.1 117 6/26/2026
0.2.0 151 6/12/2026
0.1.9 232 6/3/2026
0.1.8 111 6/3/2026
0.1.7 121 6/3/2026
0.1.6 105 6/3/2026
0.1.5 111 6/3/2026
0.1.4 213 6/2/2026
0.1.3 118 6/2/2026
0.1.0 107 6/2/2026