@thinkai/tai-api-contract 2.98.0 → 2.99.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.
package/src/index.ts CHANGED
@@ -31,7 +31,7 @@ export interface ScoreDto {
31
31
  createdAt?: string;
32
32
  tenantId?: string;
33
33
  personId?: string;
34
- /** Optional fingerprint of sources config used when this score was computed. */
34
+ /** Optional fingerprint of sources config used when this score was computed. */
35
35
  sourcesVersion?: string;
36
36
  metrics: Record<string, number>;
37
37
  dimensionScores: Record<string, number>;
@@ -892,11 +892,7 @@ export type AiAssistedCodeDataQuality = "estimated" | "measured";
892
892
 
893
893
  /** How AI-assisted code % was derived when not measured from productivity ingest. */
894
894
  export type AiAssistedCodeEstimationSource =
895
- | "ingest"
896
- | "token_volume"
897
- | "spend_proxy"
898
- | "adoption"
899
- | "unavailable";
895
+ "ingest" | "token_volume" | "spend_proxy" | "adoption" | "unavailable";
900
896
 
901
897
  /** One weekly bucket in the AI-assisted code percentage series. */
902
898
  export interface AiUsageSpendAiAssistedCodeWeekDto {
@@ -36,7 +36,10 @@ if (droppedUnknown.unknown?.length !== 1 || droppedUnknown.unknown[0] !== "/stal
36
36
  }
37
37
 
38
38
  const rejectUnknown = parseJourneyStepInputs(["/stale/route"], { rejectUnknown: true });
39
- if (rejectUnknown.error !== "Unknown journey step" || rejectUnknown.unknown?.[0] !== "/stale/route") {
39
+ if (
40
+ rejectUnknown.error !== "Unknown journey step" ||
41
+ rejectUnknown.unknown?.[0] !== "/stale/route"
42
+ ) {
40
43
  throw new Error(`rejectUnknown failed: ${JSON.stringify(rejectUnknown)}`);
41
44
  }
42
45