pricetoken 0.7.0 → 0.8.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/dist/index.d.mts CHANGED
@@ -1,5 +1,11 @@
1
1
  type ModelStatus = 'active' | 'deprecated' | 'preview';
2
- type DataConfidence = 'high' | 'low';
2
+ type DataConfidence = 'high' | 'medium' | 'low';
3
+ type ConfidenceLevel = 'high' | 'medium' | 'low';
4
+ interface FreshnessInfo {
5
+ lastVerified: string;
6
+ ageHours: number;
7
+ stale: boolean;
8
+ }
3
9
  interface ModelPricing {
4
10
  modelId: string;
5
11
  provider: string;
@@ -8,9 +14,12 @@ interface ModelPricing {
8
14
  outputPerMTok: number;
9
15
  contextWindow: number | null;
10
16
  maxOutputTokens: number | null;
11
- source: 'fetched' | 'seed' | 'admin' | 'verified';
17
+ source: 'fetched' | 'seed' | 'admin' | 'verified' | 'carried';
12
18
  status: ModelStatus | null;
13
19
  confidence: DataConfidence;
20
+ confidenceScore: number;
21
+ confidenceLevel: ConfidenceLevel;
22
+ freshness: FreshnessInfo;
14
23
  lastUpdated: string | null;
15
24
  launchDate: string | null;
16
25
  }
@@ -64,9 +73,12 @@ interface ImageModelPricing {
64
73
  qualityTier: ImageQualityTier;
65
74
  maxResolution: string | null;
66
75
  supportedFormats: string[];
67
- source: 'fetched' | 'seed' | 'admin';
76
+ source: 'fetched' | 'seed' | 'admin' | 'verified' | 'carried';
68
77
  status: ModelStatus | null;
69
78
  confidence: DataConfidence;
79
+ confidenceScore: number;
80
+ confidenceLevel: ConfidenceLevel;
81
+ freshness: FreshnessInfo;
70
82
  lastUpdated: string | null;
71
83
  launchDate: string | null;
72
84
  }
@@ -100,9 +112,12 @@ interface VideoModelPricing {
100
112
  resolution: string | null;
101
113
  maxDuration: number | null;
102
114
  qualityMode: string | null;
103
- source: 'fetched' | 'seed' | 'admin' | 'verified';
115
+ source: 'fetched' | 'seed' | 'admin' | 'verified' | 'carried';
104
116
  status: ModelStatus | null;
105
117
  confidence: DataConfidence;
118
+ confidenceScore: number;
119
+ confidenceLevel: ConfidenceLevel;
120
+ freshness: FreshnessInfo;
106
121
  lastUpdated: string | null;
107
122
  launchDate: string | null;
108
123
  }
@@ -231,4 +246,4 @@ declare const STATIC_IMAGE_PRICING: ImageModelPricing[];
231
246
 
232
247
  declare const STATIC_VIDEO_PRICING: VideoModelPricing[];
233
248
 
234
- export { type ClientOptions, type CostEstimate, type DataConfidence, type ImageCostEstimate, type ImageModelHistory, type ImageModelPricing, type ImagePriceHistoryPoint, type ImageProviderSummary, type ImageQualityTier, type ModelHistory, type ModelPricing, type ModelStatus, type PriceHistoryPoint, PriceTokenClient, type PriceTokenError, type PriceTokenResponse, type ProviderSummary, STATIC_IMAGE_PRICING, STATIC_PRICING, STATIC_VIDEO_PRICING, type VideoCostEstimate, type VideoModelHistory, type VideoModelPricing, type VideoPriceHistoryPoint, type VideoProviderSummary, calculateCost, calculateImageCost, calculateImageModelCost, calculateModelCost, calculateVideoCost, calculateVideoModelCost };
249
+ export { type ClientOptions, type ConfidenceLevel, type CostEstimate, type DataConfidence, type FreshnessInfo, type ImageCostEstimate, type ImageModelHistory, type ImageModelPricing, type ImagePriceHistoryPoint, type ImageProviderSummary, type ImageQualityTier, type ModelHistory, type ModelPricing, type ModelStatus, type PriceHistoryPoint, PriceTokenClient, type PriceTokenError, type PriceTokenResponse, type ProviderSummary, STATIC_IMAGE_PRICING, STATIC_PRICING, STATIC_VIDEO_PRICING, type VideoCostEstimate, type VideoModelHistory, type VideoModelPricing, type VideoPriceHistoryPoint, type VideoProviderSummary, calculateCost, calculateImageCost, calculateImageModelCost, calculateModelCost, calculateVideoCost, calculateVideoModelCost };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  type ModelStatus = 'active' | 'deprecated' | 'preview';
2
- type DataConfidence = 'high' | 'low';
2
+ type DataConfidence = 'high' | 'medium' | 'low';
3
+ type ConfidenceLevel = 'high' | 'medium' | 'low';
4
+ interface FreshnessInfo {
5
+ lastVerified: string;
6
+ ageHours: number;
7
+ stale: boolean;
8
+ }
3
9
  interface ModelPricing {
4
10
  modelId: string;
5
11
  provider: string;
@@ -8,9 +14,12 @@ interface ModelPricing {
8
14
  outputPerMTok: number;
9
15
  contextWindow: number | null;
10
16
  maxOutputTokens: number | null;
11
- source: 'fetched' | 'seed' | 'admin' | 'verified';
17
+ source: 'fetched' | 'seed' | 'admin' | 'verified' | 'carried';
12
18
  status: ModelStatus | null;
13
19
  confidence: DataConfidence;
20
+ confidenceScore: number;
21
+ confidenceLevel: ConfidenceLevel;
22
+ freshness: FreshnessInfo;
14
23
  lastUpdated: string | null;
15
24
  launchDate: string | null;
16
25
  }
@@ -64,9 +73,12 @@ interface ImageModelPricing {
64
73
  qualityTier: ImageQualityTier;
65
74
  maxResolution: string | null;
66
75
  supportedFormats: string[];
67
- source: 'fetched' | 'seed' | 'admin';
76
+ source: 'fetched' | 'seed' | 'admin' | 'verified' | 'carried';
68
77
  status: ModelStatus | null;
69
78
  confidence: DataConfidence;
79
+ confidenceScore: number;
80
+ confidenceLevel: ConfidenceLevel;
81
+ freshness: FreshnessInfo;
70
82
  lastUpdated: string | null;
71
83
  launchDate: string | null;
72
84
  }
@@ -100,9 +112,12 @@ interface VideoModelPricing {
100
112
  resolution: string | null;
101
113
  maxDuration: number | null;
102
114
  qualityMode: string | null;
103
- source: 'fetched' | 'seed' | 'admin' | 'verified';
115
+ source: 'fetched' | 'seed' | 'admin' | 'verified' | 'carried';
104
116
  status: ModelStatus | null;
105
117
  confidence: DataConfidence;
118
+ confidenceScore: number;
119
+ confidenceLevel: ConfidenceLevel;
120
+ freshness: FreshnessInfo;
106
121
  lastUpdated: string | null;
107
122
  launchDate: string | null;
108
123
  }
@@ -231,4 +246,4 @@ declare const STATIC_IMAGE_PRICING: ImageModelPricing[];
231
246
 
232
247
  declare const STATIC_VIDEO_PRICING: VideoModelPricing[];
233
248
 
234
- export { type ClientOptions, type CostEstimate, type DataConfidence, type ImageCostEstimate, type ImageModelHistory, type ImageModelPricing, type ImagePriceHistoryPoint, type ImageProviderSummary, type ImageQualityTier, type ModelHistory, type ModelPricing, type ModelStatus, type PriceHistoryPoint, PriceTokenClient, type PriceTokenError, type PriceTokenResponse, type ProviderSummary, STATIC_IMAGE_PRICING, STATIC_PRICING, STATIC_VIDEO_PRICING, type VideoCostEstimate, type VideoModelHistory, type VideoModelPricing, type VideoPriceHistoryPoint, type VideoProviderSummary, calculateCost, calculateImageCost, calculateImageModelCost, calculateModelCost, calculateVideoCost, calculateVideoModelCost };
249
+ export { type ClientOptions, type ConfidenceLevel, type CostEstimate, type DataConfidence, type FreshnessInfo, type ImageCostEstimate, type ImageModelHistory, type ImageModelPricing, type ImagePriceHistoryPoint, type ImageProviderSummary, type ImageQualityTier, type ModelHistory, type ModelPricing, type ModelStatus, type PriceHistoryPoint, PriceTokenClient, type PriceTokenError, type PriceTokenResponse, type ProviderSummary, STATIC_IMAGE_PRICING, STATIC_PRICING, STATIC_VIDEO_PRICING, type VideoCostEstimate, type VideoModelHistory, type VideoModelPricing, type VideoPriceHistoryPoint, type VideoProviderSummary, calculateCost, calculateImageCost, calculateImageModelCost, calculateModelCost, calculateVideoCost, calculateVideoModelCost };