Qyl.Api.Contracts 0.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Qyl.Api.Contracts --version 0.2.2
                    
NuGet\Install-Package Qyl.Api.Contracts -Version 0.2.2
                    
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.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Qyl.Api.Contracts" Version="0.2.2" />
                    
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.2.2
                    
#r "nuget: Qyl.Api.Contracts, 0.2.2"
                    
#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.2.2
                    
#: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.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Qyl.Api.Contracts&version=0.2.2
                    
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.41.0
        |
        | Weaver
        v
@ancplua/typespec-otel-semconv
        |
        | 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 lives in @ancplua/typespec-otel-semconv under ANcpLua.OpenTelemetry.SemanticConventions.Keys.*. 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 (2)

Showing the top 2 NuGet packages that depend on Qyl.Api.Contracts:

Package Downloads
Qyl.Host

qyl's distributed-app host — fluent AppHost-equivalent with Spectre.Console CLI, subprocess orchestration, and deferred endpoint resolution. Zero Aspire deps; ships on the shared Microsoft.AspNetCore.App framework plus Spectre.Console.

Qyl.Host.Mcp

MCP support for the qyl runner — initialize + tools/list readiness, connection-only stdio/HTTP resources, /runner/mcp passthrough, and OTLP export of the official MCP SDK ActivitySource. Opt-in package; the engine has no MCP assumption.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.2.0 1,035 9/17/2026
11.1.0 135 9/17/2026
11.0.1 116 9/17/2026
11.0.0 91 9/17/2026
10.0.1 441 9/11/2026
10.0.0 612 9/7/2026
9.0.0 242 9/3/2026
8.0.0 290 9/2/2026
7.4.0 225 8/30/2026
7.3.0 809 8/21/2026
7.2.0 269 8/19/2026
7.1.0 196 8/14/2026
7.0.0 582 7/31/2026
6.0.0 185 7/29/2026
5.1.0 207 7/28/2026
5.0.0 250 7/28/2026
4.0.0 178 7/27/2026
3.0.0 419 7/26/2026
2.1.0 314 7/25/2026
0.2.2 695 6/30/2026
Loading failed