@ancplua/qyl-api-schema 0.5.13 → 0.5.15

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.
@@ -94,7 +94,6 @@ export declare const MetricTypeValues: {
94
94
  };
95
95
  export type MetricType = typeof MetricTypeValues[keyof typeof MetricTypeValues];
96
96
  export declare const AggregationTemporalityValues: {
97
- readonly unspecified: 0;
98
97
  readonly delta: 1;
99
98
  readonly cumulative: 2;
100
99
  };
@@ -289,27 +288,48 @@ export declare const FetchTelemetryViewValues: {
289
288
  readonly mcpStats: "mcp_stats";
290
289
  };
291
290
  export type FetchTelemetryView = typeof FetchTelemetryViewValues[keyof typeof FetchTelemetryViewValues];
292
- export declare const ProviderCostSourceKindValues: {
293
- readonly actualBilledCost: "actual_billed_cost";
294
- readonly officialPublicCatalog: "official_public_catalog";
295
- };
296
- export type ProviderCostSourceKind = typeof ProviderCostSourceKindValues[keyof typeof ProviderCostSourceKindValues];
297
- export declare const ProviderCostSourceStatusValues: {
291
+ export declare const ProviderBillingSourceStatusValues: {
298
292
  readonly unconfigured: "unconfigured";
299
293
  readonly pending: "pending";
300
294
  readonly current: "current";
301
295
  readonly stale: "stale";
302
296
  readonly syncFailed: "sync_failed";
303
- readonly notAttributable: "not_attributable";
304
297
  };
305
- export type ProviderCostSourceStatus = typeof ProviderCostSourceStatusValues[keyof typeof ProviderCostSourceStatusValues];
306
- export declare const ProviderCostAttributionValues: {
298
+ export type ProviderBillingSourceStatus = typeof ProviderBillingSourceStatusValues[keyof typeof ProviderBillingSourceStatusValues];
299
+ export declare const ProviderBillingAttributionValues: {
307
300
  readonly providerModelPeriod: "provider_model_period";
308
301
  readonly providerPeriod: "provider_period";
309
- readonly scenario: "scenario";
310
302
  readonly unavailable: "unavailable";
311
303
  };
312
- export type ProviderCostAttribution = typeof ProviderCostAttributionValues[keyof typeof ProviderCostAttributionValues];
304
+ export type ProviderBillingAttribution = typeof ProviderBillingAttributionValues[keyof typeof ProviderBillingAttributionValues];
305
+ export declare const ModelCatalogSourceStatusValues: {
306
+ readonly unconfigured: "unconfigured";
307
+ readonly pending: "pending";
308
+ readonly current: "current";
309
+ readonly stale: "stale";
310
+ readonly syncFailed: "sync_failed";
311
+ };
312
+ export type ModelCatalogSourceStatus = typeof ModelCatalogSourceStatusValues[keyof typeof ModelCatalogSourceStatusValues];
313
+ export declare const ModelCatalogPriceSemanticsValues: {
314
+ readonly minimumAvailableRate: "minimum_available_rate";
315
+ readonly publishedRate: "published_rate";
316
+ };
317
+ export type ModelCatalogPriceSemantics = typeof ModelCatalogPriceSemanticsValues[keyof typeof ModelCatalogPriceSemanticsValues];
318
+ export declare const ModelCatalogObservedIdentityBasisValues: {
319
+ readonly responseModel: "response_model";
320
+ readonly requestModelFallback: "request_model_fallback";
321
+ };
322
+ export type ModelCatalogObservedIdentityBasis = typeof ModelCatalogObservedIdentityBasisValues[keyof typeof ModelCatalogObservedIdentityBasisValues];
323
+ export declare const ModelCatalogMatchKindValues: {
324
+ readonly exactModelId: "exact_model_id";
325
+ readonly exactCanonicalSlug: "exact_canonical_slug";
326
+ };
327
+ export type ModelCatalogMatchKind = typeof ModelCatalogMatchKindValues[keyof typeof ModelCatalogMatchKindValues];
328
+ export declare const ModelCatalogBillingModeValues: {
329
+ readonly perUnit: "per_unit";
330
+ readonly perRequest: "per_request";
331
+ };
332
+ export type ModelCatalogBillingMode = typeof ModelCatalogBillingModeValues[keyof typeof ModelCatalogBillingModeValues];
313
333
  export declare const GenAiEtlPromotionGateKindValues: {
314
334
  readonly contractStability: "contract_stability";
315
335
  readonly offlineReplay: "offline_replay";
@@ -350,6 +370,11 @@ export declare const GenAiEtlTaskFamilyValues: {
350
370
  readonly unknown: "unknown";
351
371
  };
352
372
  export type GenAiEtlTaskFamily = typeof GenAiEtlTaskFamilyValues[keyof typeof GenAiEtlTaskFamilyValues];
373
+ export declare const GenAiEtlCandidateStatusValues: {
374
+ readonly hypothesisOnly: "hypothesis_only";
375
+ readonly insufficientEvidence: "insufficient_evidence";
376
+ };
377
+ export type GenAiEtlCandidateStatus = typeof GenAiEtlCandidateStatusValues[keyof typeof GenAiEtlCandidateStatusValues];
353
378
  export declare const GenAiEtlCandidatePathValues: {
354
379
  readonly exactCache: "exact_cache";
355
380
  readonly deterministicCode: "deterministic_code";
@@ -363,6 +388,9 @@ export type GenAiEtlCandidatePath = typeof GenAiEtlCandidatePathValues[keyof typ
363
388
  export declare const GenAiEtlValidationMetricValues: {
364
389
  readonly accuracy: "accuracy";
365
390
  readonly macroF1: "macro_f1";
391
+ readonly calibrationError: "calibration_error";
392
+ readonly spanPrecision: "span_precision";
393
+ readonly spanRecall: "span_recall";
366
394
  readonly spanF1: "span_f1";
367
395
  readonly fieldExactMatch: "field_exact_match";
368
396
  readonly schemaValidity: "schema_validity";
@@ -390,7 +418,7 @@ export declare const GenAiEtlEvidenceSignalValues: {
390
418
  readonly outputContract: "output_contract";
391
419
  readonly providerModel: "provider_model";
392
420
  readonly tokenUsage: "token_usage";
393
- readonly providerCost: "provider_cost";
421
+ readonly catalogTokenEstimate: "catalog_token_estimate";
394
422
  readonly recurringSchema: "recurring_schema";
395
423
  readonly boundedReference: "bounded_reference";
396
424
  readonly taskMetric: "task_metric";
@@ -401,18 +429,42 @@ export declare const GenAiEtlEvidenceSignalValues: {
401
429
  readonly fallbackPolicy: "fallback_policy";
402
430
  };
403
431
  export type GenAiEtlEvidenceSignal = typeof GenAiEtlEvidenceSignalValues[keyof typeof GenAiEtlEvidenceSignalValues];
404
- export declare const GenAiEtlCalculationStatusValues: {
405
- readonly calculated: "calculated";
406
- readonly missingFrontierCost: "missing_frontier_cost";
432
+ export declare const ModelCatalogRateRelationValues: {
433
+ readonly baseRate: "base_rate";
434
+ readonly additiveSurcharge: "additive_surcharge";
435
+ readonly replacesInclusiveBaseRate: "replaces_inclusive_base_rate";
436
+ readonly replacesPublishedRate: "replaces_published_rate";
437
+ };
438
+ export type ModelCatalogRateRelation = typeof ModelCatalogRateRelationValues[keyof typeof ModelCatalogRateRelationValues];
439
+ export declare const ModelCatalogTokenExclusionReasonValues: {
440
+ readonly usageNotObserved: "usage_not_observed";
441
+ readonly conditionalAdjustmentNotApplied: "conditional_adjustment_not_applied";
442
+ readonly supersededByLaterOverride: "superseded_by_later_override";
443
+ readonly outsideTokenEstimateScope: "outside_token_estimate_scope";
444
+ readonly unsupportedUsageDimension: "unsupported_usage_dimension";
445
+ readonly unsupportedBillingMode: "unsupported_billing_mode";
407
446
  };
408
- export type GenAiEtlCalculationStatus = typeof GenAiEtlCalculationStatusValues[keyof typeof GenAiEtlCalculationStatusValues];
447
+ export type ModelCatalogTokenExclusionReason = typeof ModelCatalogTokenExclusionReasonValues[keyof typeof ModelCatalogTokenExclusionReasonValues];
448
+ export declare const GenAiEtlFrontierCostBasisValues: {
449
+ readonly scenario: "scenario";
450
+ readonly catalogTokenEstimate: "catalog_token_estimate";
451
+ readonly unavailable: "unavailable";
452
+ };
453
+ export type GenAiEtlFrontierCostBasis = typeof GenAiEtlFrontierCostBasisValues[keyof typeof GenAiEtlFrontierCostBasisValues];
409
454
  export type AttributeValue = string | boolean | number | AttributeBytesValue | AttributeValue[] | AttributeKeyValueListValue;
410
455
  export type ApiError = NotFoundError | ValidationError | UnauthorizedError | ForbiddenError | ConflictError | RateLimitError | InternalServerError | BadGatewayError | ServiceUnavailableError;
411
456
  export type LogBody = LogBodyString | LogBodyKvList | LogBodyArray | LogBodyBytes;
457
+ export type MetricNumberValue = MetricIntegerValue | MetricDoubleValue;
458
+ export type MetricPoint = GaugeMetricPoint | SumMetricPoint | HistogramMetricPoint | ExponentialHistogramMetricPoint | SummaryMetricPoint;
412
459
  export type RunnerMcpResourceContent = RunnerMcpTextResourceContent | RunnerMcpBlobResourceContent;
413
460
  export type RunnerMcpContent = RunnerMcpTextContent | RunnerMcpImageContent | RunnerMcpAudioContent | RunnerMcpEmbeddedResourceContent | RunnerMcpResourceLinkContent | RunnerMcpToolUseContent | RunnerMcpToolResultContent;
414
461
  export type RunnerResourceEvents = RunnerResourceState;
415
462
  export type RunnerLogEvents = RunnerLogLine;
463
+ export type ModelCatalogExclusionRateEvidence = ModelCatalogBaseRateEvidence | ModelCatalogAdditiveSurchargeEvidence | ModelCatalogInclusiveReplacementEvidence | ModelCatalogPublishedReplacementEvidence;
464
+ export type ModelCatalogTokenEstimateComponent = ModelCatalogTokenBaseRateComponent | ModelCatalogTokenAdditiveSurchargeComponent | ModelCatalogTokenInclusiveReplacementRateComponent | ModelCatalogTokenConditionalOverrideRateComponent;
465
+ export type ModelCatalogTokenEstimateExclusion = ModelCatalogUsageNotObservedExclusion | ModelCatalogConditionalAdjustmentNotAppliedExclusion | ModelCatalogSupersededOverrideExclusion | ModelCatalogOutsideTokenScopeExclusion | ModelCatalogUnsupportedUsageExclusion | ModelCatalogUnsupportedBillingExclusion;
466
+ export type GenAiEtlCatalogTokenCostEstimate = GenAiEtlCatalogTokenCalculatedEstimate | GenAiEtlCatalogTokenSourceUnavailableEstimate | GenAiEtlCatalogTokenStaleSourceEstimate | GenAiEtlCatalogTokenMissingModelIdentityEstimate | GenAiEtlCatalogTokenModelNotFoundEstimate | GenAiEtlCatalogTokenAmbiguousModelEstimate | GenAiEtlCatalogTokenIncompleteUsageEstimate | GenAiEtlCatalogTokenConditionalPricingUnresolvableEstimate | GenAiEtlCatalogTokenUnsupportedPricingEstimate;
467
+ export type GenAiEtlClusterEvaluation = GenAiEtlScenarioClusterEvaluation | GenAiEtlCatalogTokenClusterEvaluation | GenAiEtlUnavailableClusterEvaluation;
416
468
  export type LogEvents = LogStreamEvent | HeartbeatEvent;
417
469
  export interface AttributeBytesValue {
418
470
  "type": "bytes";
@@ -660,6 +712,84 @@ export interface LogTemplate {
660
712
  "parameters": Attribute[];
661
713
  "rendered_message"?: string;
662
714
  }
715
+ export interface MetricIntegerValue {
716
+ "as_int": string;
717
+ }
718
+ export interface MetricDoubleValue {
719
+ "as_double": number;
720
+ }
721
+ export interface MetricExemplar {
722
+ "time_unix_nano": string;
723
+ "value": MetricNumberValue;
724
+ "span_id"?: SpanId;
725
+ "trace_id"?: TraceId;
726
+ "filtered_attributes"?: Attribute[];
727
+ }
728
+ export interface ExponentialHistogramBuckets {
729
+ "offset": number;
730
+ "bucket_counts": string[];
731
+ }
732
+ export interface SummaryQuantileValue {
733
+ "quantile": number;
734
+ "value": number;
735
+ }
736
+ export interface MetricPointBase {
737
+ "name": string;
738
+ "description"?: string;
739
+ "unit"?: string;
740
+ "metadata"?: Attribute[];
741
+ "attributes"?: Attribute[];
742
+ "start_time_unix_nano": string;
743
+ "time_unix_nano": string;
744
+ "flags": number;
745
+ "resource": Resource;
746
+ "resource_schema_url"?: string;
747
+ "instrumentation_scope"?: InstrumentationScope;
748
+ "scope_schema_url"?: string;
749
+ }
750
+ export interface GaugeMetricPoint extends MetricPointBase {
751
+ "type": "gauge";
752
+ "value": MetricNumberValue;
753
+ "exemplars"?: MetricExemplar[];
754
+ }
755
+ export interface SumMetricPoint extends MetricPointBase {
756
+ "type": "sum";
757
+ "value": MetricNumberValue;
758
+ "aggregation_temporality": AggregationTemporality;
759
+ "is_monotonic": boolean;
760
+ "exemplars"?: MetricExemplar[];
761
+ }
762
+ export interface HistogramMetricPoint extends MetricPointBase {
763
+ "type": "histogram";
764
+ "count": string;
765
+ "sum"?: number;
766
+ "bucket_counts": string[];
767
+ "explicit_bounds": number[];
768
+ "min"?: number;
769
+ "max"?: number;
770
+ "aggregation_temporality": AggregationTemporality;
771
+ "exemplars"?: MetricExemplar[];
772
+ }
773
+ export interface ExponentialHistogramMetricPoint extends MetricPointBase {
774
+ "type": "exponential_histogram";
775
+ "count": string;
776
+ "sum"?: number;
777
+ "scale": number;
778
+ "zero_count": string;
779
+ "zero_threshold": number;
780
+ "positive": ExponentialHistogramBuckets;
781
+ "negative": ExponentialHistogramBuckets;
782
+ "min"?: number;
783
+ "max"?: number;
784
+ "aggregation_temporality": AggregationTemporality;
785
+ "exemplars"?: MetricExemplar[];
786
+ }
787
+ export interface SummaryMetricPoint extends MetricPointBase {
788
+ "type": "summary";
789
+ "count": string;
790
+ "sum": number;
791
+ "quantile_values": SummaryQuantileValue[];
792
+ }
663
793
  export interface Profile {
664
794
  "profile_id": string;
665
795
  "sample_type"?: ProfileValueType;
@@ -1054,12 +1184,11 @@ export interface FetchTelemetryOutput {
1054
1184
  "stats"?: McpDashboardStats;
1055
1185
  "mode": McpDataMode;
1056
1186
  }
1057
- export interface ProviderCostSource {
1187
+ export interface ProviderBillingSource {
1058
1188
  "provider": string;
1059
- "kind": ProviderCostSourceKind;
1060
- "status": ProviderCostSourceStatus;
1189
+ "status": ProviderBillingSourceStatus;
1061
1190
  "source_endpoint": string;
1062
- "attribution": ProviderCostAttribution;
1191
+ "attribution": ProviderBillingAttribution;
1063
1192
  "last_attempt_at"?: string;
1064
1193
  "last_success_at"?: string;
1065
1194
  "period_start"?: string;
@@ -1069,6 +1198,155 @@ export interface ProviderCostSource {
1069
1198
  "model"?: string;
1070
1199
  "failure_category"?: string;
1071
1200
  }
1201
+ export interface ModelCatalogSource {
1202
+ "source_id": string;
1203
+ "priority": number;
1204
+ "status": ModelCatalogSourceStatus;
1205
+ "price_semantics"?: ModelCatalogPriceSemantics;
1206
+ "source_endpoint": string;
1207
+ "last_attempt_at"?: string;
1208
+ "last_verified_at"?: string;
1209
+ "retrieved_at"?: string;
1210
+ "active_snapshot_id"?: string;
1211
+ "model_count"?: number;
1212
+ "failure_category"?: string;
1213
+ }
1214
+ export interface ModelCatalogPriceProvenance {
1215
+ "source_id": string;
1216
+ "source_endpoint": string;
1217
+ "snapshot_id": string;
1218
+ "price_model_id": string;
1219
+ "observed_model_id": string;
1220
+ "observed_model_identity_basis": ModelCatalogObservedIdentityBasis;
1221
+ "model_match_kind": ModelCatalogMatchKind;
1222
+ "retrieved_at": string;
1223
+ "price_semantics": ModelCatalogPriceSemantics;
1224
+ }
1225
+ export interface ModelCatalogConditionalRateEvidence {
1226
+ "source_order": number;
1227
+ "condition_usage_dimension": string;
1228
+ "exclusive_minimum_quantity": number;
1229
+ "observed_per_call_quantity": number;
1230
+ }
1231
+ export interface ModelCatalogTokenEstimateComponentBase {
1232
+ "component": string;
1233
+ "usage_dimension": string;
1234
+ "unit": string;
1235
+ "source_billing_mode": string;
1236
+ "billing_mode": ModelCatalogBillingMode;
1237
+ "quantity": number;
1238
+ "unit_price_usd": number;
1239
+ "estimated_cost_usd": number;
1240
+ }
1241
+ export interface ModelCatalogTokenBaseRateComponent extends ModelCatalogTokenEstimateComponentBase {
1242
+ "rate_relation": "base_rate";
1243
+ }
1244
+ export interface ModelCatalogTokenAdditiveSurchargeComponent extends ModelCatalogTokenEstimateComponentBase {
1245
+ "rate_relation": "additive_surcharge";
1246
+ }
1247
+ export interface ModelCatalogTokenInclusiveReplacementRateComponent extends ModelCatalogTokenEstimateComponentBase {
1248
+ "rate_relation": "replaces_inclusive_base_rate";
1249
+ "replaces_usage_dimension": string;
1250
+ "conditional_evidence"?: ModelCatalogConditionalRateEvidence;
1251
+ }
1252
+ export interface ModelCatalogTokenConditionalOverrideRateComponent extends ModelCatalogTokenEstimateComponentBase {
1253
+ "rate_relation": "replaces_published_rate";
1254
+ "replaces_usage_dimension": string;
1255
+ "conditional_evidence": ModelCatalogConditionalRateEvidence;
1256
+ }
1257
+ export interface ModelCatalogBaseRateEvidence {
1258
+ "rate_relation": "base_rate";
1259
+ }
1260
+ export interface ModelCatalogAdditiveSurchargeEvidence {
1261
+ "rate_relation": "additive_surcharge";
1262
+ }
1263
+ export interface ModelCatalogInclusiveReplacementEvidence {
1264
+ "rate_relation": "replaces_inclusive_base_rate";
1265
+ "replaces_usage_dimension": string;
1266
+ "conditional_evidence"?: ModelCatalogConditionalRateEvidence;
1267
+ }
1268
+ export interface ModelCatalogPublishedReplacementEvidence {
1269
+ "rate_relation": "replaces_published_rate";
1270
+ "replaces_usage_dimension": string;
1271
+ "conditional_evidence": ModelCatalogConditionalRateEvidence;
1272
+ }
1273
+ export interface ModelCatalogTokenEstimateExclusionBase {
1274
+ "component": string;
1275
+ "usage_dimension": string;
1276
+ "unit": string;
1277
+ "source_billing_mode": string;
1278
+ "rate_evidence": ModelCatalogExclusionRateEvidence;
1279
+ "unit_price_usd"?: number;
1280
+ }
1281
+ export interface ModelCatalogSupportedBillingExclusionBase extends ModelCatalogTokenEstimateExclusionBase {
1282
+ "billing_mode": ModelCatalogBillingMode;
1283
+ }
1284
+ export interface ModelCatalogOptionallyNormalizedBillingExclusionBase extends ModelCatalogTokenEstimateExclusionBase {
1285
+ "billing_mode"?: ModelCatalogBillingMode;
1286
+ }
1287
+ export interface ModelCatalogUsageNotObservedExclusion extends ModelCatalogSupportedBillingExclusionBase {
1288
+ "reason": "usage_not_observed";
1289
+ }
1290
+ export interface ModelCatalogOutsideTokenScopeExclusion extends ModelCatalogOptionallyNormalizedBillingExclusionBase {
1291
+ "reason": "outside_token_estimate_scope";
1292
+ }
1293
+ export interface ModelCatalogUnsupportedUsageExclusion extends ModelCatalogOptionallyNormalizedBillingExclusionBase {
1294
+ "reason": "unsupported_usage_dimension";
1295
+ }
1296
+ export interface ModelCatalogUnsupportedBillingExclusion extends ModelCatalogTokenEstimateExclusionBase {
1297
+ "billing_mode"?: ModelCatalogBillingMode;
1298
+ "reason": "unsupported_billing_mode";
1299
+ }
1300
+ export interface ModelCatalogConditionalExclusionBase {
1301
+ "component": string;
1302
+ "usage_dimension": string;
1303
+ "unit": string;
1304
+ "source_billing_mode": string;
1305
+ "billing_mode"?: ModelCatalogBillingMode;
1306
+ "rate_evidence": ModelCatalogPublishedReplacementEvidence;
1307
+ "unit_price_usd"?: number;
1308
+ }
1309
+ export interface ModelCatalogConditionalAdjustmentNotAppliedExclusion extends ModelCatalogConditionalExclusionBase {
1310
+ "reason": "conditional_adjustment_not_applied";
1311
+ }
1312
+ export interface ModelCatalogSupersededOverrideExclusion extends ModelCatalogConditionalExclusionBase {
1313
+ "reason": "superseded_by_later_override";
1314
+ }
1315
+ export interface GenAiEtlCatalogTokenCalculatedEstimate {
1316
+ "status": "calculated";
1317
+ "estimated_catalog_token_cost_usd": number;
1318
+ "estimated_catalog_token_cost_per_call_usd": number;
1319
+ "provenance": ModelCatalogPriceProvenance;
1320
+ "components": ModelCatalogTokenEstimateComponent[];
1321
+ "exclusions"?: ModelCatalogTokenEstimateExclusion[];
1322
+ }
1323
+ export interface GenAiEtlCatalogTokenEstimateFailureBase {
1324
+ "exclusions"?: ModelCatalogTokenEstimateExclusion[];
1325
+ }
1326
+ export interface GenAiEtlCatalogTokenSourceUnavailableEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1327
+ "status": "source_unavailable";
1328
+ }
1329
+ export interface GenAiEtlCatalogTokenStaleSourceEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1330
+ "status": "stale_source";
1331
+ }
1332
+ export interface GenAiEtlCatalogTokenMissingModelIdentityEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1333
+ "status": "missing_model_identity";
1334
+ }
1335
+ export interface GenAiEtlCatalogTokenModelNotFoundEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1336
+ "status": "model_not_found";
1337
+ }
1338
+ export interface GenAiEtlCatalogTokenAmbiguousModelEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1339
+ "status": "ambiguous_model";
1340
+ }
1341
+ export interface GenAiEtlCatalogTokenIncompleteUsageEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1342
+ "status": "incomplete_usage";
1343
+ }
1344
+ export interface GenAiEtlCatalogTokenConditionalPricingUnresolvableEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1345
+ "status": "conditional_pricing_unresolvable";
1346
+ }
1347
+ export interface GenAiEtlCatalogTokenUnsupportedPricingEstimate extends GenAiEtlCatalogTokenEstimateFailureBase {
1348
+ "status": "unsupported_pricing";
1349
+ }
1072
1350
  export interface GenAiEtlPromotionGate {
1073
1351
  "gate": GenAiEtlPromotionGateKind;
1074
1352
  "state": GenAiEtlPromotionGateState;
@@ -1094,14 +1372,12 @@ export interface GenAiEtlAuditCluster {
1094
1372
  "error_rate": number;
1095
1373
  "average_latency_ms": number;
1096
1374
  "p95_latency_ms": number;
1097
- "observed_cost_usd"?: number;
1098
- "cost_per_call_usd"?: number;
1099
- "cost_attribution": ProviderCostAttribution;
1100
- "spend_share"?: number;
1375
+ "catalog_token_estimate": GenAiEtlCatalogTokenCostEstimate;
1101
1376
  "measurable_coverage"?: number;
1102
1377
  "safe_deferral_coverage"?: number;
1378
+ "candidate_status": GenAiEtlCandidateStatus;
1103
1379
  "candidate_path": GenAiEtlCandidatePath;
1104
- "validation_metric": GenAiEtlValidationMetric;
1380
+ "validation_metrics": GenAiEtlValidationMetric[];
1105
1381
  "residual_path": GenAiEtlResidualPath;
1106
1382
  "evidence_signals": GenAiEtlEvidenceSignal[];
1107
1383
  "missing_evidence": GenAiEtlEvidenceSignal[];
@@ -1111,19 +1387,20 @@ export interface GenAiEtlAuditSummary {
1111
1387
  "total_calls": number;
1112
1388
  "total_input_tokens": number;
1113
1389
  "total_output_tokens": number;
1114
- "attributed_cost_usd"?: number;
1115
- "priced_call_coverage": number;
1116
- "economic_concentration"?: number;
1390
+ "estimated_catalog_token_cost_usd"?: number;
1391
+ "catalog_token_priced_call_coverage": number;
1392
+ "estimated_token_economic_concentration"?: number;
1117
1393
  "measurable_coverage"?: number;
1118
1394
  "safe_deferral_coverage"?: number;
1119
- "candidate_etl_spend_share"?: number;
1395
+ "candidate_etl_estimated_token_spend_share"?: number;
1120
1396
  }
1121
1397
  export interface GenAiEtlAuditReport {
1122
1398
  "generated_at": string;
1123
1399
  "period_start": string;
1124
1400
  "period_end": string;
1125
1401
  "summary": GenAiEtlAuditSummary;
1126
- "cost_sources": ProviderCostSource[];
1402
+ "billing_sources": ProviderBillingSource[];
1403
+ "catalog_sources": ModelCatalogSource[];
1127
1404
  "clusters": GenAiEtlAuditCluster[];
1128
1405
  }
1129
1406
  export interface GenAiEtlClusterScenario {
@@ -1137,21 +1414,33 @@ export interface GenAiEtlClusterScenario {
1137
1414
  export interface GenAiEtlAuditEvaluationRequest {
1138
1415
  "scenarios": GenAiEtlClusterScenario[];
1139
1416
  }
1140
- export interface GenAiEtlClusterEvaluation {
1417
+ export interface GenAiEtlClusterEvaluationBase {
1141
1418
  "cluster_id": string;
1142
- "status": GenAiEtlCalculationStatus;
1143
1419
  "call_count": number;
1144
1420
  "coverage": number;
1145
1421
  "served_call_count": number;
1146
1422
  "residual_call_count": number;
1147
- "frontier_cost_per_call_usd"?: number;
1148
- "frontier_cost_basis": ProviderCostAttribution;
1149
1423
  "alternative_cost_per_call_usd": number;
1150
- "current_period_cost_usd"?: number;
1151
- "gross_replaceable_value_usd"?: number;
1152
1424
  "period_maintenance_cost_usd": number;
1153
1425
  "period_error_cost_usd": number;
1154
- "net_replaceable_value_usd"?: number;
1426
+ }
1427
+ export interface GenAiEtlCalculatedClusterEvaluationBase extends GenAiEtlClusterEvaluationBase {
1428
+ "status": "calculated";
1429
+ "frontier_cost_per_call_usd": number;
1430
+ "current_period_cost_usd": number;
1431
+ "gross_replaceable_value_usd": number;
1432
+ "net_replaceable_value_usd": number;
1433
+ }
1434
+ export interface GenAiEtlScenarioClusterEvaluation extends GenAiEtlCalculatedClusterEvaluationBase {
1435
+ "frontier_cost_basis": "scenario";
1436
+ }
1437
+ export interface GenAiEtlCatalogTokenClusterEvaluation extends GenAiEtlCalculatedClusterEvaluationBase {
1438
+ "frontier_cost_basis": "catalog_token_estimate";
1439
+ "catalog_provenance": ModelCatalogPriceProvenance;
1440
+ }
1441
+ export interface GenAiEtlUnavailableClusterEvaluation extends GenAiEtlClusterEvaluationBase {
1442
+ "status": "missing_frontier_cost";
1443
+ "frontier_cost_basis": "unavailable";
1155
1444
  }
1156
1445
  export interface GenAiEtlAuditEvaluationResponse {
1157
1446
  "generated_at": string;
@@ -1186,6 +1475,12 @@ export interface CursorPageLogRecord {
1186
1475
  "prev_cursor"?: string;
1187
1476
  "has_more": boolean;
1188
1477
  }
1478
+ export interface CursorPageMetricPoint {
1479
+ "items": MetricPoint[];
1480
+ "next_cursor"?: string;
1481
+ "prev_cursor"?: string;
1482
+ "has_more": boolean;
1483
+ }
1189
1484
  export interface CursorPageSessionEntity {
1190
1485
  "items": SessionEntity[];
1191
1486
  "next_cursor"?: string;
@@ -75,7 +75,6 @@ export const MetricTypeValues = {
75
75
  "summary": "summary",
76
76
  };
77
77
  export const AggregationTemporalityValues = {
78
- "unspecified": 0,
79
78
  "delta": 1,
80
79
  "cumulative": 2,
81
80
  };
@@ -248,24 +247,41 @@ export const FetchTelemetryViewValues = {
248
247
  "logs": "logs",
249
248
  "mcpStats": "mcp_stats",
250
249
  };
251
- export const ProviderCostSourceKindValues = {
252
- "actualBilledCost": "actual_billed_cost",
253
- "officialPublicCatalog": "official_public_catalog",
254
- };
255
- export const ProviderCostSourceStatusValues = {
250
+ export const ProviderBillingSourceStatusValues = {
256
251
  "unconfigured": "unconfigured",
257
252
  "pending": "pending",
258
253
  "current": "current",
259
254
  "stale": "stale",
260
255
  "syncFailed": "sync_failed",
261
- "notAttributable": "not_attributable",
262
256
  };
263
- export const ProviderCostAttributionValues = {
257
+ export const ProviderBillingAttributionValues = {
264
258
  "providerModelPeriod": "provider_model_period",
265
259
  "providerPeriod": "provider_period",
266
- "scenario": "scenario",
267
260
  "unavailable": "unavailable",
268
261
  };
262
+ export const ModelCatalogSourceStatusValues = {
263
+ "unconfigured": "unconfigured",
264
+ "pending": "pending",
265
+ "current": "current",
266
+ "stale": "stale",
267
+ "syncFailed": "sync_failed",
268
+ };
269
+ export const ModelCatalogPriceSemanticsValues = {
270
+ "minimumAvailableRate": "minimum_available_rate",
271
+ "publishedRate": "published_rate",
272
+ };
273
+ export const ModelCatalogObservedIdentityBasisValues = {
274
+ "responseModel": "response_model",
275
+ "requestModelFallback": "request_model_fallback",
276
+ };
277
+ export const ModelCatalogMatchKindValues = {
278
+ "exactModelId": "exact_model_id",
279
+ "exactCanonicalSlug": "exact_canonical_slug",
280
+ };
281
+ export const ModelCatalogBillingModeValues = {
282
+ "perUnit": "per_unit",
283
+ "perRequest": "per_request",
284
+ };
269
285
  export const GenAiEtlPromotionGateKindValues = {
270
286
  "contractStability": "contract_stability",
271
287
  "offlineReplay": "offline_replay",
@@ -302,6 +318,10 @@ export const GenAiEtlTaskFamilyValues = {
302
318
  "numericAnalytical": "numeric_analytical",
303
319
  "unknown": "unknown",
304
320
  };
321
+ export const GenAiEtlCandidateStatusValues = {
322
+ "hypothesisOnly": "hypothesis_only",
323
+ "insufficientEvidence": "insufficient_evidence",
324
+ };
305
325
  export const GenAiEtlCandidatePathValues = {
306
326
  "exactCache": "exact_cache",
307
327
  "deterministicCode": "deterministic_code",
@@ -314,6 +334,9 @@ export const GenAiEtlCandidatePathValues = {
314
334
  export const GenAiEtlValidationMetricValues = {
315
335
  "accuracy": "accuracy",
316
336
  "macroF1": "macro_f1",
337
+ "calibrationError": "calibration_error",
338
+ "spanPrecision": "span_precision",
339
+ "spanRecall": "span_recall",
317
340
  "spanF1": "span_f1",
318
341
  "fieldExactMatch": "field_exact_match",
319
342
  "schemaValidity": "schema_validity",
@@ -339,7 +362,7 @@ export const GenAiEtlEvidenceSignalValues = {
339
362
  "outputContract": "output_contract",
340
363
  "providerModel": "provider_model",
341
364
  "tokenUsage": "token_usage",
342
- "providerCost": "provider_cost",
365
+ "catalogTokenEstimate": "catalog_token_estimate",
343
366
  "recurringSchema": "recurring_schema",
344
367
  "boundedReference": "bounded_reference",
345
368
  "taskMetric": "task_metric",
@@ -349,7 +372,22 @@ export const GenAiEtlEvidenceSignalValues = {
349
372
  "shadowComparison": "shadow_comparison",
350
373
  "fallbackPolicy": "fallback_policy",
351
374
  };
352
- export const GenAiEtlCalculationStatusValues = {
353
- "calculated": "calculated",
354
- "missingFrontierCost": "missing_frontier_cost",
375
+ export const ModelCatalogRateRelationValues = {
376
+ "baseRate": "base_rate",
377
+ "additiveSurcharge": "additive_surcharge",
378
+ "replacesInclusiveBaseRate": "replaces_inclusive_base_rate",
379
+ "replacesPublishedRate": "replaces_published_rate",
380
+ };
381
+ export const ModelCatalogTokenExclusionReasonValues = {
382
+ "usageNotObserved": "usage_not_observed",
383
+ "conditionalAdjustmentNotApplied": "conditional_adjustment_not_applied",
384
+ "supersededByLaterOverride": "superseded_by_later_override",
385
+ "outsideTokenEstimateScope": "outside_token_estimate_scope",
386
+ "unsupportedUsageDimension": "unsupported_usage_dimension",
387
+ "unsupportedBillingMode": "unsupported_billing_mode",
388
+ };
389
+ export const GenAiEtlFrontierCostBasisValues = {
390
+ "scenario": "scenario",
391
+ "catalogTokenEstimate": "catalog_token_estimate",
392
+ "unavailable": "unavailable",
355
393
  };
package/index.tsp CHANGED
@@ -16,6 +16,7 @@ import "./otel/enums.tsp";
16
16
  import "./otel/resource.tsp";
17
17
  import "./otel/span.tsp";
18
18
  import "./otel/logs.tsp";
19
+ import "./otel/metrics.tsp";
19
20
  import "./otel/profiles.tsp";
20
21
 
21
22
  import "./models/session.tsp";