@ancplua/qyl-api-schema 1.0.2 → 1.0.3

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 c321d7eb4443ae1d1d88c2e24eda849f62049008 (c321d7eb4443ae1d1d88c2e24eda849f62049008)
4
+ // open-telemetry/semantic-conventions-genai 33b7f9da9ade6162d4a5c16247d0bc6ad5f8b469 (33b7f9da9ade6162d4a5c16247d0bc6ad5f8b469)
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)
@@ -414,169 +414,6 @@ export declare const FetchTelemetryViewValues: {
414
414
  readonly mcpStats: "mcp_stats";
415
415
  };
416
416
  export type FetchTelemetryView = typeof FetchTelemetryViewValues[keyof typeof FetchTelemetryViewValues];
417
- export declare const ProviderBillingSourceStatusValues: {
418
- readonly unconfigured: "unconfigured";
419
- readonly pending: "pending";
420
- readonly current: "current";
421
- readonly stale: "stale";
422
- readonly syncFailed: "sync_failed";
423
- };
424
- export type ProviderBillingSourceStatus = typeof ProviderBillingSourceStatusValues[keyof typeof ProviderBillingSourceStatusValues];
425
- export declare const ProviderBillingAttributionValues: {
426
- readonly providerModelPeriod: "provider_model_period";
427
- readonly providerPeriod: "provider_period";
428
- readonly unavailable: "unavailable";
429
- };
430
- export type ProviderBillingAttribution = typeof ProviderBillingAttributionValues[keyof typeof ProviderBillingAttributionValues];
431
- export declare const ModelCatalogSourceStatusValues: {
432
- readonly unconfigured: "unconfigured";
433
- readonly pending: "pending";
434
- readonly current: "current";
435
- readonly stale: "stale";
436
- readonly syncFailed: "sync_failed";
437
- };
438
- export type ModelCatalogSourceStatus = typeof ModelCatalogSourceStatusValues[keyof typeof ModelCatalogSourceStatusValues];
439
- export declare const ModelCatalogPriceSemanticsValues: {
440
- readonly minimumAvailableRate: "minimum_available_rate";
441
- readonly publishedRate: "published_rate";
442
- };
443
- export type ModelCatalogPriceSemantics = typeof ModelCatalogPriceSemanticsValues[keyof typeof ModelCatalogPriceSemanticsValues];
444
- export declare const ModelCatalogObservedIdentityBasisValues: {
445
- readonly responseModel: "response_model";
446
- readonly requestModelFallback: "request_model_fallback";
447
- };
448
- export type ModelCatalogObservedIdentityBasis = typeof ModelCatalogObservedIdentityBasisValues[keyof typeof ModelCatalogObservedIdentityBasisValues];
449
- export declare const ModelCatalogMatchKindValues: {
450
- readonly exactModelId: "exact_model_id";
451
- readonly exactCanonicalSlug: "exact_canonical_slug";
452
- };
453
- export type ModelCatalogMatchKind = typeof ModelCatalogMatchKindValues[keyof typeof ModelCatalogMatchKindValues];
454
- export declare const ModelCatalogBillingModeValues: {
455
- readonly perUnit: "per_unit";
456
- readonly perRequest: "per_request";
457
- };
458
- export type ModelCatalogBillingMode = typeof ModelCatalogBillingModeValues[keyof typeof ModelCatalogBillingModeValues];
459
- export declare const GenAiEtlPromotionGateKindValues: {
460
- readonly contractStability: "contract_stability";
461
- readonly offlineReplay: "offline_replay";
462
- readonly calibratedConfidence: "calibrated_confidence";
463
- readonly shadowTraffic: "shadow_traffic";
464
- readonly limitedServing: "limited_serving";
465
- readonly rollbackResidualPolicy: "rollback_residual_policy";
466
- };
467
- export type GenAiEtlPromotionGateKind = typeof GenAiEtlPromotionGateKindValues[keyof typeof GenAiEtlPromotionGateKindValues];
468
- export declare const GenAiEtlPromotionGateStateValues: {
469
- readonly passed: "passed";
470
- readonly failed: "failed";
471
- readonly notEvaluated: "not_evaluated";
472
- readonly blockedMissingEvidence: "blocked_missing_evidence";
473
- };
474
- export type GenAiEtlPromotionGateState = typeof GenAiEtlPromotionGateStateValues[keyof typeof GenAiEtlPromotionGateStateValues];
475
- export declare const GenAiEtlOutputContractValues: {
476
- readonly prose: "prose";
477
- readonly label: "label";
478
- readonly spanList: "span_list";
479
- readonly record: "record";
480
- readonly vector: "vector";
481
- readonly catalogReference: "catalog_reference";
482
- readonly number: "number";
483
- readonly boolean: "boolean";
484
- readonly unknown: "unknown";
485
- };
486
- export type GenAiEtlOutputContract = typeof GenAiEtlOutputContractValues[keyof typeof GenAiEtlOutputContractValues];
487
- export declare const GenAiEtlTaskFamilyValues: {
488
- readonly openReasoningGeneration: "open_reasoning_generation";
489
- readonly classification: "classification";
490
- readonly sequenceLabeling: "sequence_labeling";
491
- readonly structuredExtraction: "structured_extraction";
492
- readonly retrievalEntityResolution: "retrieval_entity_resolution";
493
- readonly similarityClustering: "similarity_clustering";
494
- readonly normalizationTransformation: "normalization_transformation";
495
- readonly numericAnalytical: "numeric_analytical";
496
- readonly unknown: "unknown";
497
- };
498
- export type GenAiEtlTaskFamily = typeof GenAiEtlTaskFamilyValues[keyof typeof GenAiEtlTaskFamilyValues];
499
- export declare const GenAiEtlCandidateStatusValues: {
500
- readonly hypothesisOnly: "hypothesis_only";
501
- readonly insufficientEvidence: "insufficient_evidence";
502
- };
503
- export type GenAiEtlCandidateStatus = typeof GenAiEtlCandidateStatusValues[keyof typeof GenAiEtlCandidateStatusValues];
504
- export declare const GenAiEtlCandidatePathValues: {
505
- readonly exactCache: "exact_cache";
506
- readonly deterministicCode: "deterministic_code";
507
- readonly boundedRetrieval: "bounded_retrieval";
508
- readonly smallClassifierExtractor: "small_classifier_extractor";
509
- readonly smallerGenerativeModel: "smaller_generative_model";
510
- readonly frontierModel: "frontier_model";
511
- readonly insufficientEvidence: "insufficient_evidence";
512
- };
513
- export type GenAiEtlCandidatePath = typeof GenAiEtlCandidatePathValues[keyof typeof GenAiEtlCandidatePathValues];
514
- export declare const GenAiEtlValidationMetricValues: {
515
- readonly accuracy: "accuracy";
516
- readonly macroF1: "macro_f1";
517
- readonly calibrationError: "calibration_error";
518
- readonly spanPrecision: "span_precision";
519
- readonly spanRecall: "span_recall";
520
- readonly spanF1: "span_f1";
521
- readonly fieldExactMatch: "field_exact_match";
522
- readonly schemaValidity: "schema_validity";
523
- readonly matchAccuracy: "match_accuracy";
524
- readonly recallAtK: "recall_at_k";
525
- readonly meanReciprocalRank: "mean_reciprocal_rank";
526
- readonly exactMatch: "exact_match";
527
- readonly numericTolerance: "numeric_tolerance";
528
- readonly humanPreference: "human_preference";
529
- readonly taskSuccess: "task_success";
530
- readonly unavailable: "unavailable";
531
- };
532
- export type GenAiEtlValidationMetric = typeof GenAiEtlValidationMetricValues[keyof typeof GenAiEtlValidationMetricValues];
533
- export declare const GenAiEtlResidualPathValues: {
534
- readonly frontierModel: "frontier_model";
535
- readonly humanReview: "human_review";
536
- readonly retry: "retry";
537
- readonly degradedResponse: "degraded_response";
538
- readonly none: "none";
539
- readonly undetermined: "undetermined";
540
- };
541
- export type GenAiEtlResidualPath = typeof GenAiEtlResidualPathValues[keyof typeof GenAiEtlResidualPathValues];
542
- export declare const GenAiEtlEvidenceSignalValues: {
543
- readonly workflowIdentity: "workflow_identity";
544
- readonly outputContract: "output_contract";
545
- readonly providerModel: "provider_model";
546
- readonly tokenUsage: "token_usage";
547
- readonly catalogTokenEstimate: "catalog_token_estimate";
548
- readonly recurringSchema: "recurring_schema";
549
- readonly boundedReference: "bounded_reference";
550
- readonly taskMetric: "task_metric";
551
- readonly acceptedOutputReplay: "accepted_output_replay";
552
- readonly downstreamFate: "downstream_fate";
553
- readonly calibratedConfidence: "calibrated_confidence";
554
- readonly shadowComparison: "shadow_comparison";
555
- readonly fallbackPolicy: "fallback_policy";
556
- };
557
- export type GenAiEtlEvidenceSignal = typeof GenAiEtlEvidenceSignalValues[keyof typeof GenAiEtlEvidenceSignalValues];
558
- export declare const ModelCatalogRateRelationValues: {
559
- readonly baseRate: "base_rate";
560
- readonly additiveSurcharge: "additive_surcharge";
561
- readonly replacesInclusiveBaseRate: "replaces_inclusive_base_rate";
562
- readonly replacesPublishedRate: "replaces_published_rate";
563
- };
564
- export type ModelCatalogRateRelation = typeof ModelCatalogRateRelationValues[keyof typeof ModelCatalogRateRelationValues];
565
- export declare const ModelCatalogTokenExclusionReasonValues: {
566
- readonly usageNotObserved: "usage_not_observed";
567
- readonly conditionalAdjustmentNotApplied: "conditional_adjustment_not_applied";
568
- readonly supersededByLaterOverride: "superseded_by_later_override";
569
- readonly outsideTokenEstimateScope: "outside_token_estimate_scope";
570
- readonly unsupportedUsageDimension: "unsupported_usage_dimension";
571
- readonly unsupportedBillingMode: "unsupported_billing_mode";
572
- };
573
- export type ModelCatalogTokenExclusionReason = typeof ModelCatalogTokenExclusionReasonValues[keyof typeof ModelCatalogTokenExclusionReasonValues];
574
- export declare const GenAiEtlFrontierCostBasisValues: {
575
- readonly scenario: "scenario";
576
- readonly catalogTokenEstimate: "catalog_token_estimate";
577
- readonly unavailable: "unavailable";
578
- };
579
- export type GenAiEtlFrontierCostBasis = typeof GenAiEtlFrontierCostBasisValues[keyof typeof GenAiEtlFrontierCostBasisValues];
580
417
  export type AttributeDouble = number | "NaN" | "Infinity" | "-Infinity";
581
418
  export type AttributeValue = null | string | boolean | AttributeIntValue | AttributeDoubleValue | AttributeBytesValue | AttributeValue[] | AttributeKeyValueListValue;
582
419
  export type ApiError = NotFoundError | ValidationError | UnauthorizedError | ForbiddenError | ConflictError | RateLimitError | InternalServerError | BadGatewayError | ServiceUnavailableError;
@@ -592,11 +429,6 @@ export type RunnerResourceEvents = RunnerResourceState;
592
429
  export type RunnerLogEvents = RunnerLogLine;
593
430
  export type RunnerMcpProtocolEvents = RunnerMcpProtocolEvent;
594
431
  export type RunnerMcpExecutionUpdateEvents = RunnerMcpExecutionRecord;
595
- export type ModelCatalogExclusionRateEvidence = ModelCatalogBaseRateEvidence | ModelCatalogAdditiveSurchargeEvidence | ModelCatalogInclusiveReplacementEvidence | ModelCatalogPublishedReplacementEvidence;
596
- export type ModelCatalogTokenEstimateComponent = ModelCatalogTokenBaseRateComponent | ModelCatalogTokenAdditiveSurchargeComponent | ModelCatalogTokenInclusiveReplacementRateComponent | ModelCatalogTokenConditionalOverrideRateComponent;
597
- export type ModelCatalogTokenEstimateExclusion = ModelCatalogUsageNotObservedExclusion | ModelCatalogConditionalAdjustmentNotAppliedExclusion | ModelCatalogSupersededOverrideExclusion | ModelCatalogOutsideTokenScopeExclusion | ModelCatalogUnsupportedUsageExclusion | ModelCatalogUnsupportedBillingExclusion;
598
- export type GenAiEtlCatalogTokenCostEstimate = GenAiEtlCatalogTokenCalculatedEstimate | GenAiEtlCatalogTokenSourceUnavailableEstimate | GenAiEtlCatalogTokenStaleSourceEstimate | GenAiEtlCatalogTokenMissingModelIdentityEstimate | GenAiEtlCatalogTokenModelNotFoundEstimate | GenAiEtlCatalogTokenAmbiguousModelEstimate | GenAiEtlCatalogTokenIncompleteUsageEstimate | GenAiEtlCatalogTokenConditionalPricingUnresolvableEstimate | GenAiEtlCatalogTokenUnsupportedPricingEstimate;
599
- export type GenAiEtlClusterEvaluation = GenAiEtlScenarioClusterEvaluation | GenAiEtlCatalogTokenClusterEvaluation | GenAiEtlUnavailableClusterEvaluation;
600
432
  export type LogEvents = LogStreamEvent | HeartbeatEvent;
601
433
  export interface AttributeBytesValue {
602
434
  "type": "bytes";
@@ -1722,270 +1554,6 @@ export interface FetchTelemetryOutput {
1722
1554
  "stats"?: McpDashboardStats;
1723
1555
  "mode": McpDataMode;
1724
1556
  }
1725
- export interface ProviderBillingSource {
1726
- "provider": string;
1727
- "status": ProviderBillingSourceStatus;
1728
- "source_endpoint": string;
1729
- "attribution": ProviderBillingAttribution;
1730
- "last_attempt_at"?: string;
1731
- "last_success_at"?: string;
1732
- "period_start"?: string;
1733
- "period_end"?: string;
1734
- "currency_code"?: string;
1735
- "reported_cost_usd"?: number;
1736
- "model"?: string;
1737
- "failure_category"?: string;
1738
- }
1739
- export interface ModelCatalogSource {
1740
- "source_id": string;
1741
- "priority": number;
1742
- "status": ModelCatalogSourceStatus;
1743
- "price_semantics"?: ModelCatalogPriceSemantics;
1744
- "source_endpoint": string;
1745
- "last_attempt_at"?: string;
1746
- "last_verified_at"?: string;
1747
- "retrieved_at"?: string;
1748
- "active_snapshot_id"?: string;
1749
- "model_count"?: number;
1750
- "failure_category"?: string;
1751
- }
1752
- export interface ModelCatalogPriceProvenance {
1753
- "source_id": string;
1754
- "source_endpoint": string;
1755
- "snapshot_id": string;
1756
- "price_model_id": string;
1757
- "observed_model_id": string;
1758
- "observed_model_identity_basis": ModelCatalogObservedIdentityBasis;
1759
- "model_match_kind": ModelCatalogMatchKind;
1760
- "retrieved_at": string;
1761
- "price_semantics": ModelCatalogPriceSemantics;
1762
- }
1763
- export interface ModelCatalogConditionalRateEvidence {
1764
- "source_order": number;
1765
- "condition_usage_dimension": string;
1766
- "exclusive_minimum_quantity": number;
1767
- "observed_per_call_quantity": number;
1768
- }
1769
- export interface ModelCatalogTokenEstimateComponentBase {
1770
- "component": string;
1771
- "usage_dimension": string;
1772
- "unit": string;
1773
- "source_billing_mode": string;
1774
- "billing_mode": ModelCatalogBillingMode;
1775
- "quantity": number;
1776
- "unit_price_usd": number;
1777
- "estimated_cost_usd": number;
1778
- }
1779
- export interface ModelCatalogTokenBaseRateComponent extends ModelCatalogTokenEstimateComponentBase {
1780
- "rate_relation": "base_rate";
1781
- }
1782
- export interface ModelCatalogTokenAdditiveSurchargeComponent extends ModelCatalogTokenEstimateComponentBase {
1783
- "rate_relation": "additive_surcharge";
1784
- }
1785
- export interface ModelCatalogTokenInclusiveReplacementRateComponent extends ModelCatalogTokenEstimateComponentBase {
1786
- "rate_relation": "replaces_inclusive_base_rate";
1787
- "replaces_usage_dimension": string;
1788
- "conditional_evidence"?: ModelCatalogConditionalRateEvidence;
1789
- }
1790
- export interface ModelCatalogTokenConditionalOverrideRateComponent extends ModelCatalogTokenEstimateComponentBase {
1791
- "rate_relation": "replaces_published_rate";
1792
- "replaces_usage_dimension": string;
1793
- "conditional_evidence": ModelCatalogConditionalRateEvidence;
1794
- }
1795
- export interface ModelCatalogBaseRateEvidence {
1796
- "rate_relation": "base_rate";
1797
- }
1798
- export interface ModelCatalogAdditiveSurchargeEvidence {
1799
- "rate_relation": "additive_surcharge";
1800
- }
1801
- export interface ModelCatalogInclusiveReplacementEvidence {
1802
- "rate_relation": "replaces_inclusive_base_rate";
1803
- "replaces_usage_dimension": string;
1804
- "conditional_evidence"?: ModelCatalogConditionalRateEvidence;
1805
- }
1806
- export interface ModelCatalogPublishedReplacementEvidence {
1807
- "rate_relation": "replaces_published_rate";
1808
- "replaces_usage_dimension": string;
1809
- "conditional_evidence": ModelCatalogConditionalRateEvidence;
1810
- }
1811
- export interface ModelCatalogTokenEstimateExclusionBase {
1812
- "component": string;
1813
- "usage_dimension": string;
1814
- "unit": string;
1815
- "source_billing_mode": string;
1816
- "rate_evidence": ModelCatalogExclusionRateEvidence;
1817
- "unit_price_usd"?: number;
1818
- }
1819
- export interface ModelCatalogSupportedBillingExclusionBase extends ModelCatalogTokenEstimateExclusionBase {
1820
- "billing_mode": ModelCatalogBillingMode;
1821
- }
1822
- export interface ModelCatalogOptionallyNormalizedBillingExclusionBase extends ModelCatalogTokenEstimateExclusionBase {
1823
- "billing_mode"?: ModelCatalogBillingMode;
1824
- }
1825
- export interface ModelCatalogUsageNotObservedExclusion extends ModelCatalogSupportedBillingExclusionBase {
1826
- "reason": "usage_not_observed";
1827
- }
1828
- export interface ModelCatalogOutsideTokenScopeExclusion extends ModelCatalogOptionallyNormalizedBillingExclusionBase {
1829
- "reason": "outside_token_estimate_scope";
1830
- }
1831
- export interface ModelCatalogUnsupportedUsageExclusion extends ModelCatalogOptionallyNormalizedBillingExclusionBase {
1832
- "reason": "unsupported_usage_dimension";
1833
- }
1834
- export interface ModelCatalogUnsupportedBillingExclusion extends ModelCatalogTokenEstimateExclusionBase {
1835
- "billing_mode"?: ModelCatalogBillingMode;
1836
- "reason": "unsupported_billing_mode";
1837
- }
1838
- export interface ModelCatalogConditionalExclusionBase {
1839
- "component": string;
1840
- "usage_dimension": string;
1841
- "unit": string;
1842
- "source_billing_mode": string;
1843
- "billing_mode"?: ModelCatalogBillingMode;
1844
- "rate_evidence": ModelCatalogPublishedReplacementEvidence;
1845
- "unit_price_usd"?: number;
1846
- }
1847
- export interface ModelCatalogConditionalAdjustmentNotAppliedExclusion extends ModelCatalogConditionalExclusionBase {
1848
- "reason": "conditional_adjustment_not_applied";
1849
- }
1850
- export interface ModelCatalogSupersededOverrideExclusion extends ModelCatalogConditionalExclusionBase {
1851
- "reason": "superseded_by_later_override";
1852
- }
1853
- export interface GenAiEtlCatalogTokenCalculatedEstimate {
1854
- "status": "calculated";
1855
- "estimated_catalog_token_cost_usd": number;
1856
- "estimated_catalog_token_cost_per_call_usd": number;
1857
- "provenance": ModelCatalogPriceProvenance;
1858
- "components": ModelCatalogTokenEstimateComponent[];
1859
- "exclusions"?: ModelCatalogTokenEstimateExclusion[];
1860
- }
1861
- export interface GenAiEtlCatalogTokenEstimateFailureBase {
1862
- "exclusions"?: ModelCatalogTokenEstimateExclusion[];
1863
- }
1864
- export interface GenAiEtlCatalogTokenSourceUnavailableEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1865
- "status": "source_unavailable";
1866
- }
1867
- export interface GenAiEtlCatalogTokenStaleSourceEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1868
- "status": "stale_source";
1869
- }
1870
- export interface GenAiEtlCatalogTokenMissingModelIdentityEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1871
- "status": "missing_model_identity";
1872
- }
1873
- export interface GenAiEtlCatalogTokenModelNotFoundEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1874
- "status": "model_not_found";
1875
- }
1876
- export interface GenAiEtlCatalogTokenAmbiguousModelEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1877
- "status": "ambiguous_model";
1878
- }
1879
- export interface GenAiEtlCatalogTokenIncompleteUsageEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1880
- "status": "incomplete_usage";
1881
- }
1882
- export interface GenAiEtlCatalogTokenConditionalPricingUnresolvableEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1883
- "status": "conditional_pricing_unresolvable";
1884
- }
1885
- export interface GenAiEtlCatalogTokenUnsupportedPricingEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1886
- "status": "unsupported_pricing";
1887
- }
1888
- export interface GenAiEtlPromotionGate {
1889
- "gate": GenAiEtlPromotionGateKind;
1890
- "state": GenAiEtlPromotionGateState;
1891
- "reason"?: string;
1892
- }
1893
- export interface GenAiEtlAuditCluster {
1894
- "cluster_id": string;
1895
- "workflow_key": string;
1896
- "service_name": string;
1897
- "span_name"?: string;
1898
- "operation_name"?: string;
1899
- "provider"?: string;
1900
- "model"?: string;
1901
- "output_contract": GenAiEtlOutputContract;
1902
- "task_family": GenAiEtlTaskFamily;
1903
- "call_count": number;
1904
- "input_tokens": number;
1905
- "output_tokens": number;
1906
- "cache_read_input_tokens": number;
1907
- "cache_creation_input_tokens": number;
1908
- "reasoning_output_tokens": number;
1909
- "error_count": number;
1910
- "error_rate": number;
1911
- "average_latency_ms": number;
1912
- "p95_latency_ms": number;
1913
- "catalog_token_estimate": GenAiEtlCatalogTokenCostEstimate;
1914
- "measurable_coverage"?: number;
1915
- "safe_deferral_coverage"?: number;
1916
- "candidate_status": GenAiEtlCandidateStatus;
1917
- "candidate_path": GenAiEtlCandidatePath;
1918
- "validation_metrics": GenAiEtlValidationMetric[];
1919
- "residual_path": GenAiEtlResidualPath;
1920
- "evidence_signals": GenAiEtlEvidenceSignal[];
1921
- "missing_evidence": GenAiEtlEvidenceSignal[];
1922
- "promotion_gates": GenAiEtlPromotionGate[];
1923
- }
1924
- export interface GenAiEtlAuditSummary {
1925
- "total_calls": number;
1926
- "total_input_tokens": number;
1927
- "total_output_tokens": number;
1928
- "estimated_catalog_token_cost_usd"?: number;
1929
- "catalog_token_priced_call_coverage": number;
1930
- "estimated_token_economic_concentration"?: number;
1931
- "measurable_coverage"?: number;
1932
- "safe_deferral_coverage"?: number;
1933
- "candidate_etl_estimated_token_spend_share"?: number;
1934
- }
1935
- export interface GenAiEtlAuditReport {
1936
- "generated_at": string;
1937
- "period_start": string;
1938
- "period_end": string;
1939
- "summary": GenAiEtlAuditSummary;
1940
- "billing_sources": ProviderBillingSource[];
1941
- "catalog_sources": ModelCatalogSource[];
1942
- "clusters": GenAiEtlAuditCluster[];
1943
- }
1944
- export interface GenAiEtlClusterScenario {
1945
- "cluster_id": string;
1946
- "coverage": number;
1947
- "frontier_cost_per_call_usd"?: number;
1948
- "alternative_cost_per_call_usd": number;
1949
- "period_maintenance_cost_usd": number;
1950
- "period_error_cost_usd": number;
1951
- }
1952
- export interface GenAiEtlAuditEvaluationRequest {
1953
- "scenarios": GenAiEtlClusterScenario[];
1954
- }
1955
- export interface GenAiEtlClusterEvaluationBase {
1956
- "cluster_id": string;
1957
- "call_count": number;
1958
- "coverage": number;
1959
- "served_call_count": number;
1960
- "residual_call_count": number;
1961
- "alternative_cost_per_call_usd": number;
1962
- "period_maintenance_cost_usd": number;
1963
- "period_error_cost_usd": number;
1964
- }
1965
- export interface GenAiEtlCalculatedClusterEvaluationBase extends GenAiEtlClusterEvaluationBase {
1966
- "status": "calculated";
1967
- "frontier_cost_per_call_usd": number;
1968
- "current_period_cost_usd": number;
1969
- "gross_replaceable_value_usd": number;
1970
- "net_replaceable_value_usd": number;
1971
- }
1972
- export interface GenAiEtlScenarioClusterEvaluation extends GenAiEtlCalculatedClusterEvaluationBase {
1973
- "frontier_cost_basis": "scenario";
1974
- }
1975
- export interface GenAiEtlCatalogTokenClusterEvaluation extends GenAiEtlCalculatedClusterEvaluationBase {
1976
- "frontier_cost_basis": "catalog_token_estimate";
1977
- "catalog_provenance": ModelCatalogPriceProvenance;
1978
- }
1979
- export interface GenAiEtlUnavailableClusterEvaluation extends GenAiEtlClusterEvaluationBase {
1980
- "status": "missing_frontier_cost";
1981
- "frontier_cost_basis": "unavailable";
1982
- }
1983
- export interface GenAiEtlAuditEvaluationResponse {
1984
- "generated_at": string;
1985
- "period_start": string;
1986
- "period_end": string;
1987
- "results": GenAiEtlClusterEvaluation[];
1988
- }
1989
1557
  export interface LogStreamEvent {
1990
1558
  "type": "log";
1991
1559
  "data": LogRecord;
@@ -335,147 +335,3 @@ export const FetchTelemetryViewValues = {
335
335
  "logs": "logs",
336
336
  "mcpStats": "mcp_stats",
337
337
  };
338
- export const ProviderBillingSourceStatusValues = {
339
- "unconfigured": "unconfigured",
340
- "pending": "pending",
341
- "current": "current",
342
- "stale": "stale",
343
- "syncFailed": "sync_failed",
344
- };
345
- export const ProviderBillingAttributionValues = {
346
- "providerModelPeriod": "provider_model_period",
347
- "providerPeriod": "provider_period",
348
- "unavailable": "unavailable",
349
- };
350
- export const ModelCatalogSourceStatusValues = {
351
- "unconfigured": "unconfigured",
352
- "pending": "pending",
353
- "current": "current",
354
- "stale": "stale",
355
- "syncFailed": "sync_failed",
356
- };
357
- export const ModelCatalogPriceSemanticsValues = {
358
- "minimumAvailableRate": "minimum_available_rate",
359
- "publishedRate": "published_rate",
360
- };
361
- export const ModelCatalogObservedIdentityBasisValues = {
362
- "responseModel": "response_model",
363
- "requestModelFallback": "request_model_fallback",
364
- };
365
- export const ModelCatalogMatchKindValues = {
366
- "exactModelId": "exact_model_id",
367
- "exactCanonicalSlug": "exact_canonical_slug",
368
- };
369
- export const ModelCatalogBillingModeValues = {
370
- "perUnit": "per_unit",
371
- "perRequest": "per_request",
372
- };
373
- export const GenAiEtlPromotionGateKindValues = {
374
- "contractStability": "contract_stability",
375
- "offlineReplay": "offline_replay",
376
- "calibratedConfidence": "calibrated_confidence",
377
- "shadowTraffic": "shadow_traffic",
378
- "limitedServing": "limited_serving",
379
- "rollbackResidualPolicy": "rollback_residual_policy",
380
- };
381
- export const GenAiEtlPromotionGateStateValues = {
382
- "passed": "passed",
383
- "failed": "failed",
384
- "notEvaluated": "not_evaluated",
385
- "blockedMissingEvidence": "blocked_missing_evidence",
386
- };
387
- export const GenAiEtlOutputContractValues = {
388
- "prose": "prose",
389
- "label": "label",
390
- "spanList": "span_list",
391
- "record": "record",
392
- "vector": "vector",
393
- "catalogReference": "catalog_reference",
394
- "number": "number",
395
- "boolean": "boolean",
396
- "unknown": "unknown",
397
- };
398
- export const GenAiEtlTaskFamilyValues = {
399
- "openReasoningGeneration": "open_reasoning_generation",
400
- "classification": "classification",
401
- "sequenceLabeling": "sequence_labeling",
402
- "structuredExtraction": "structured_extraction",
403
- "retrievalEntityResolution": "retrieval_entity_resolution",
404
- "similarityClustering": "similarity_clustering",
405
- "normalizationTransformation": "normalization_transformation",
406
- "numericAnalytical": "numeric_analytical",
407
- "unknown": "unknown",
408
- };
409
- export const GenAiEtlCandidateStatusValues = {
410
- "hypothesisOnly": "hypothesis_only",
411
- "insufficientEvidence": "insufficient_evidence",
412
- };
413
- export const GenAiEtlCandidatePathValues = {
414
- "exactCache": "exact_cache",
415
- "deterministicCode": "deterministic_code",
416
- "boundedRetrieval": "bounded_retrieval",
417
- "smallClassifierExtractor": "small_classifier_extractor",
418
- "smallerGenerativeModel": "smaller_generative_model",
419
- "frontierModel": "frontier_model",
420
- "insufficientEvidence": "insufficient_evidence",
421
- };
422
- export const GenAiEtlValidationMetricValues = {
423
- "accuracy": "accuracy",
424
- "macroF1": "macro_f1",
425
- "calibrationError": "calibration_error",
426
- "spanPrecision": "span_precision",
427
- "spanRecall": "span_recall",
428
- "spanF1": "span_f1",
429
- "fieldExactMatch": "field_exact_match",
430
- "schemaValidity": "schema_validity",
431
- "matchAccuracy": "match_accuracy",
432
- "recallAtK": "recall_at_k",
433
- "meanReciprocalRank": "mean_reciprocal_rank",
434
- "exactMatch": "exact_match",
435
- "numericTolerance": "numeric_tolerance",
436
- "humanPreference": "human_preference",
437
- "taskSuccess": "task_success",
438
- "unavailable": "unavailable",
439
- };
440
- export const GenAiEtlResidualPathValues = {
441
- "frontierModel": "frontier_model",
442
- "humanReview": "human_review",
443
- "retry": "retry",
444
- "degradedResponse": "degraded_response",
445
- "none": "none",
446
- "undetermined": "undetermined",
447
- };
448
- export const GenAiEtlEvidenceSignalValues = {
449
- "workflowIdentity": "workflow_identity",
450
- "outputContract": "output_contract",
451
- "providerModel": "provider_model",
452
- "tokenUsage": "token_usage",
453
- "catalogTokenEstimate": "catalog_token_estimate",
454
- "recurringSchema": "recurring_schema",
455
- "boundedReference": "bounded_reference",
456
- "taskMetric": "task_metric",
457
- "acceptedOutputReplay": "accepted_output_replay",
458
- "downstreamFate": "downstream_fate",
459
- "calibratedConfidence": "calibrated_confidence",
460
- "shadowComparison": "shadow_comparison",
461
- "fallbackPolicy": "fallback_policy",
462
- };
463
- export const ModelCatalogRateRelationValues = {
464
- "baseRate": "base_rate",
465
- "additiveSurcharge": "additive_surcharge",
466
- "replacesInclusiveBaseRate": "replaces_inclusive_base_rate",
467
- "replacesPublishedRate": "replaces_published_rate",
468
- };
469
- export const ModelCatalogTokenExclusionReasonValues = {
470
- "usageNotObserved": "usage_not_observed",
471
- "conditionalAdjustmentNotApplied": "conditional_adjustment_not_applied",
472
- "supersededByLaterOverride": "superseded_by_later_override",
473
- "outsideTokenEstimateScope": "outside_token_estimate_scope",
474
- "unsupportedUsageDimension": "unsupported_usage_dimension",
475
- "unsupportedBillingMode": "unsupported_billing_mode",
476
- };
477
- export const GenAiEtlFrontierCostBasisValues = {
478
- "scenario": "scenario",
479
- "catalogTokenEstimate": "catalog_token_estimate",
480
- "unavailable": "unavailable",
481
- };
package/index.tsp CHANGED
@@ -24,7 +24,6 @@ import "./models/health.tsp";
24
24
  import "./models/runner.tsp";
25
25
  import "./models/runner-mcp.tsp";
26
26
  import "./models/mcp-tools.tsp";
27
- import "./models/cost-etl-audit.tsp";
28
27
 
29
28
  import "./api/routes.tsp";
30
29
  import "./api/streaming.tsp";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancplua/qyl-api-schema",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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": {
@@ -58,7 +58,6 @@
58
58
  "models/runner.tsp",
59
59
  "models/mcp-tools.tsp",
60
60
  "models/session.tsp",
61
- "models/cost-etl-audit.tsp",
62
61
  "otel/enums.tsp",
63
62
  "otel/logs.tsp",
64
63
  "otel/metrics.tsp",
@@ -126,7 +125,7 @@
126
125
  "@ancplua/typespec-emit-csharp": "file:./emitters/csharp",
127
126
  "@ancplua/typespec-emit-ts-types": "file:./emitters/ts-types",
128
127
  "@types/node": "25.9.5",
129
- "@typespec/compiler": "1.13.0",
128
+ "@typespec/compiler": "1.14.0",
130
129
  "@typespec/events": "0.83.0",
131
130
  "@typespec/http": "1.13.0",
132
131
  "@typespec/openapi": "1.13.0",