@phosphorco/bb-thread-metrics 0.0.0-stage → 0.2.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.
@@ -0,0 +1,1661 @@
1
+ import { z } from 'zod';
2
+ /** Data-only0.2 prototype. Byte bounds apply to canonical JSON AFTER transport parsing. */
3
+ export declare const RECENT_LIMITS: Readonly<{
4
+ rows: 1000;
5
+ bytes: number;
6
+ rowBytes: number;
7
+ inputBytes: 1024;
8
+ providers: 32;
9
+ windowMs: number;
10
+ }>;
11
+ /** An explicit floor zero is a supplier attestation; clients never infer it from omission. */
12
+ export declare const recentDollarSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ kind: z.ZodLiteral<"estimate">;
14
+ amount: z.ZodNumber;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ kind: z.ZodLiteral<"floor">;
17
+ amount: z.ZodNumber;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ kind: z.ZodLiteral<"unavailable">;
20
+ amount: z.ZodNull;
21
+ }, z.core.$strip>], "kind">;
22
+ export declare const recentWindowsSchema: z.ZodObject<{
23
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
24
+ kind: z.ZodLiteral<"estimate">;
25
+ amount: z.ZodNumber;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ kind: z.ZodLiteral<"floor">;
28
+ amount: z.ZodNumber;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ kind: z.ZodLiteral<"unavailable">;
31
+ amount: z.ZodNull;
32
+ }, z.core.$strip>], "kind">;
33
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
+ kind: z.ZodLiteral<"estimate">;
35
+ amount: z.ZodNumber;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"floor">;
38
+ amount: z.ZodNumber;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ kind: z.ZodLiteral<"unavailable">;
41
+ amount: z.ZodNull;
42
+ }, z.core.$strip>], "kind">;
43
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ kind: z.ZodLiteral<"estimate">;
45
+ amount: z.ZodNumber;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ kind: z.ZodLiteral<"floor">;
48
+ amount: z.ZodNumber;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ kind: z.ZodLiteral<"unavailable">;
51
+ amount: z.ZodNull;
52
+ }, z.core.$strip>], "kind">;
53
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ kind: z.ZodLiteral<"estimate">;
55
+ amount: z.ZodNumber;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"floor">;
58
+ amount: z.ZodNumber;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"unavailable">;
61
+ amount: z.ZodNull;
62
+ }, z.core.$strip>], "kind">;
63
+ }, z.core.$strip>;
64
+ /** Compact pricing/model provenance is independent of observation completeness.
65
+ * Per-model rate associations remain available through readV1/detail. */
66
+ export declare const recentApproximationSchema: z.ZodObject<{
67
+ approximate: z.ZodBoolean;
68
+ reasons: z.ZodArray<z.ZodEnum<{
69
+ "closest-model": "closest-model";
70
+ "provider-default": "provider-default";
71
+ "model-attribution": "model-attribution";
72
+ "bucket-boundary": "bucket-boundary";
73
+ "missing-price": "missing-price";
74
+ "source-gap": "source-gap";
75
+ }>>;
76
+ }, z.core.$strip>;
77
+ export declare const recentScopeSchema: z.ZodObject<{
78
+ memberCount: z.ZodNumber;
79
+ coverage: z.ZodEnum<{
80
+ complete: "complete";
81
+ partial: "partial";
82
+ unknown: "unknown";
83
+ }>;
84
+ coverageReasons: z.ZodArray<z.ZodString>;
85
+ priceVersion: z.ZodString;
86
+ approximation: z.ZodObject<{
87
+ approximate: z.ZodBoolean;
88
+ reasons: z.ZodArray<z.ZodEnum<{
89
+ "closest-model": "closest-model";
90
+ "provider-default": "provider-default";
91
+ "model-attribution": "model-attribution";
92
+ "bucket-boundary": "bucket-boundary";
93
+ "missing-price": "missing-price";
94
+ "source-gap": "source-gap";
95
+ }>>;
96
+ }, z.core.$strip>;
97
+ windows: z.ZodObject<{
98
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
99
+ kind: z.ZodLiteral<"estimate">;
100
+ amount: z.ZodNumber;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ kind: z.ZodLiteral<"floor">;
103
+ amount: z.ZodNumber;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ kind: z.ZodLiteral<"unavailable">;
106
+ amount: z.ZodNull;
107
+ }, z.core.$strip>], "kind">;
108
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
109
+ kind: z.ZodLiteral<"estimate">;
110
+ amount: z.ZodNumber;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ kind: z.ZodLiteral<"floor">;
113
+ amount: z.ZodNumber;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ kind: z.ZodLiteral<"unavailable">;
116
+ amount: z.ZodNull;
117
+ }, z.core.$strip>], "kind">;
118
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
119
+ kind: z.ZodLiteral<"estimate">;
120
+ amount: z.ZodNumber;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ kind: z.ZodLiteral<"floor">;
123
+ amount: z.ZodNumber;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ kind: z.ZodLiteral<"unavailable">;
126
+ amount: z.ZodNull;
127
+ }, z.core.$strip>], "kind">;
128
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ kind: z.ZodLiteral<"estimate">;
130
+ amount: z.ZodNumber;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ kind: z.ZodLiteral<"floor">;
133
+ amount: z.ZodNumber;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ kind: z.ZodLiteral<"unavailable">;
136
+ amount: z.ZodNull;
137
+ }, z.core.$strip>], "kind">;
138
+ }, z.core.$strip>;
139
+ scores: z.ZodObject<{
140
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
141
+ kind: z.ZodLiteral<"estimate">;
142
+ amount: z.ZodNumber;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ kind: z.ZodLiteral<"floor">;
145
+ amount: z.ZodNumber;
146
+ }, z.core.$strip>, z.ZodObject<{
147
+ kind: z.ZodLiteral<"unavailable">;
148
+ amount: z.ZodNull;
149
+ }, z.core.$strip>], "kind">;
150
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
151
+ kind: z.ZodLiteral<"estimate">;
152
+ amount: z.ZodNumber;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"floor">;
155
+ amount: z.ZodNumber;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ kind: z.ZodLiteral<"unavailable">;
158
+ amount: z.ZodNull;
159
+ }, z.core.$strip>], "kind">;
160
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
161
+ kind: z.ZodLiteral<"estimate">;
162
+ amount: z.ZodNumber;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ kind: z.ZodLiteral<"floor">;
165
+ amount: z.ZodNumber;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ kind: z.ZodLiteral<"unavailable">;
168
+ amount: z.ZodNull;
169
+ }, z.core.$strip>], "kind">;
170
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ kind: z.ZodLiteral<"estimate">;
172
+ amount: z.ZodNumber;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ kind: z.ZodLiteral<"floor">;
175
+ amount: z.ZodNumber;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ kind: z.ZodLiteral<"unavailable">;
178
+ amount: z.ZodNull;
179
+ }, z.core.$strip>], "kind">;
180
+ }, z.core.$strip>;
181
+ providers: z.ZodArray<z.ZodObject<{
182
+ providerId: z.ZodString;
183
+ windows: z.ZodObject<{
184
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
185
+ kind: z.ZodLiteral<"estimate">;
186
+ amount: z.ZodNumber;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ kind: z.ZodLiteral<"floor">;
189
+ amount: z.ZodNumber;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ kind: z.ZodLiteral<"unavailable">;
192
+ amount: z.ZodNull;
193
+ }, z.core.$strip>], "kind">;
194
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
195
+ kind: z.ZodLiteral<"estimate">;
196
+ amount: z.ZodNumber;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ kind: z.ZodLiteral<"floor">;
199
+ amount: z.ZodNumber;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ kind: z.ZodLiteral<"unavailable">;
202
+ amount: z.ZodNull;
203
+ }, z.core.$strip>], "kind">;
204
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
205
+ kind: z.ZodLiteral<"estimate">;
206
+ amount: z.ZodNumber;
207
+ }, z.core.$strip>, z.ZodObject<{
208
+ kind: z.ZodLiteral<"floor">;
209
+ amount: z.ZodNumber;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ kind: z.ZodLiteral<"unavailable">;
212
+ amount: z.ZodNull;
213
+ }, z.core.$strip>], "kind">;
214
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
215
+ kind: z.ZodLiteral<"estimate">;
216
+ amount: z.ZodNumber;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ kind: z.ZodLiteral<"floor">;
219
+ amount: z.ZodNumber;
220
+ }, z.core.$strip>, z.ZodObject<{
221
+ kind: z.ZodLiteral<"unavailable">;
222
+ amount: z.ZodNull;
223
+ }, z.core.$strip>], "kind">;
224
+ }, z.core.$strip>;
225
+ approximation: z.ZodObject<{
226
+ approximate: z.ZodBoolean;
227
+ reasons: z.ZodArray<z.ZodEnum<{
228
+ "closest-model": "closest-model";
229
+ "provider-default": "provider-default";
230
+ "model-attribution": "model-attribution";
231
+ "bucket-boundary": "bucket-boundary";
232
+ "missing-price": "missing-price";
233
+ "source-gap": "source-gap";
234
+ }>>;
235
+ }, z.core.$strip>;
236
+ }, z.core.$strip>>;
237
+ omittedProviders: z.ZodNumber;
238
+ dollarRanks: z.ZodObject<{
239
+ m20: z.ZodNullable<z.ZodNumber>;
240
+ h24: z.ZodNullable<z.ZodNumber>;
241
+ d7: z.ZodNullable<z.ZodNumber>;
242
+ }, z.core.$strip>;
243
+ scoreRanks: z.ZodObject<{
244
+ m20: z.ZodNullable<z.ZodNumber>;
245
+ h24: z.ZodNullable<z.ZodNumber>;
246
+ d7: z.ZodNullable<z.ZodNumber>;
247
+ }, z.core.$strip>;
248
+ }, z.core.$strip>;
249
+ export declare const recentRowSchema: z.ZodObject<{
250
+ threadId: z.ZodString;
251
+ revision: z.ZodString;
252
+ configRevision: z.ZodString;
253
+ asOf: z.ZodNumber;
254
+ ownLastFoldAt: z.ZodNullable<z.ZodNumber>;
255
+ familyLastFoldAt: z.ZodNullable<z.ZodNumber>;
256
+ own: z.ZodObject<{
257
+ memberCount: z.ZodNumber;
258
+ coverage: z.ZodEnum<{
259
+ complete: "complete";
260
+ partial: "partial";
261
+ unknown: "unknown";
262
+ }>;
263
+ coverageReasons: z.ZodArray<z.ZodString>;
264
+ priceVersion: z.ZodString;
265
+ approximation: z.ZodObject<{
266
+ approximate: z.ZodBoolean;
267
+ reasons: z.ZodArray<z.ZodEnum<{
268
+ "closest-model": "closest-model";
269
+ "provider-default": "provider-default";
270
+ "model-attribution": "model-attribution";
271
+ "bucket-boundary": "bucket-boundary";
272
+ "missing-price": "missing-price";
273
+ "source-gap": "source-gap";
274
+ }>>;
275
+ }, z.core.$strip>;
276
+ windows: z.ZodObject<{
277
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
278
+ kind: z.ZodLiteral<"estimate">;
279
+ amount: z.ZodNumber;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ kind: z.ZodLiteral<"floor">;
282
+ amount: z.ZodNumber;
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ kind: z.ZodLiteral<"unavailable">;
285
+ amount: z.ZodNull;
286
+ }, z.core.$strip>], "kind">;
287
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
288
+ kind: z.ZodLiteral<"estimate">;
289
+ amount: z.ZodNumber;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ kind: z.ZodLiteral<"floor">;
292
+ amount: z.ZodNumber;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ kind: z.ZodLiteral<"unavailable">;
295
+ amount: z.ZodNull;
296
+ }, z.core.$strip>], "kind">;
297
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
298
+ kind: z.ZodLiteral<"estimate">;
299
+ amount: z.ZodNumber;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ kind: z.ZodLiteral<"floor">;
302
+ amount: z.ZodNumber;
303
+ }, z.core.$strip>, z.ZodObject<{
304
+ kind: z.ZodLiteral<"unavailable">;
305
+ amount: z.ZodNull;
306
+ }, z.core.$strip>], "kind">;
307
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ kind: z.ZodLiteral<"estimate">;
309
+ amount: z.ZodNumber;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ kind: z.ZodLiteral<"floor">;
312
+ amount: z.ZodNumber;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"unavailable">;
315
+ amount: z.ZodNull;
316
+ }, z.core.$strip>], "kind">;
317
+ }, z.core.$strip>;
318
+ scores: z.ZodObject<{
319
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ kind: z.ZodLiteral<"estimate">;
321
+ amount: z.ZodNumber;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ kind: z.ZodLiteral<"floor">;
324
+ amount: z.ZodNumber;
325
+ }, z.core.$strip>, z.ZodObject<{
326
+ kind: z.ZodLiteral<"unavailable">;
327
+ amount: z.ZodNull;
328
+ }, z.core.$strip>], "kind">;
329
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
330
+ kind: z.ZodLiteral<"estimate">;
331
+ amount: z.ZodNumber;
332
+ }, z.core.$strip>, z.ZodObject<{
333
+ kind: z.ZodLiteral<"floor">;
334
+ amount: z.ZodNumber;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ kind: z.ZodLiteral<"unavailable">;
337
+ amount: z.ZodNull;
338
+ }, z.core.$strip>], "kind">;
339
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
340
+ kind: z.ZodLiteral<"estimate">;
341
+ amount: z.ZodNumber;
342
+ }, z.core.$strip>, z.ZodObject<{
343
+ kind: z.ZodLiteral<"floor">;
344
+ amount: z.ZodNumber;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ kind: z.ZodLiteral<"unavailable">;
347
+ amount: z.ZodNull;
348
+ }, z.core.$strip>], "kind">;
349
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ kind: z.ZodLiteral<"estimate">;
351
+ amount: z.ZodNumber;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ kind: z.ZodLiteral<"floor">;
354
+ amount: z.ZodNumber;
355
+ }, z.core.$strip>, z.ZodObject<{
356
+ kind: z.ZodLiteral<"unavailable">;
357
+ amount: z.ZodNull;
358
+ }, z.core.$strip>], "kind">;
359
+ }, z.core.$strip>;
360
+ providers: z.ZodArray<z.ZodObject<{
361
+ providerId: z.ZodString;
362
+ windows: z.ZodObject<{
363
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
364
+ kind: z.ZodLiteral<"estimate">;
365
+ amount: z.ZodNumber;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"floor">;
368
+ amount: z.ZodNumber;
369
+ }, z.core.$strip>, z.ZodObject<{
370
+ kind: z.ZodLiteral<"unavailable">;
371
+ amount: z.ZodNull;
372
+ }, z.core.$strip>], "kind">;
373
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
+ kind: z.ZodLiteral<"estimate">;
375
+ amount: z.ZodNumber;
376
+ }, z.core.$strip>, z.ZodObject<{
377
+ kind: z.ZodLiteral<"floor">;
378
+ amount: z.ZodNumber;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ kind: z.ZodLiteral<"unavailable">;
381
+ amount: z.ZodNull;
382
+ }, z.core.$strip>], "kind">;
383
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
+ kind: z.ZodLiteral<"estimate">;
385
+ amount: z.ZodNumber;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ kind: z.ZodLiteral<"floor">;
388
+ amount: z.ZodNumber;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ kind: z.ZodLiteral<"unavailable">;
391
+ amount: z.ZodNull;
392
+ }, z.core.$strip>], "kind">;
393
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ kind: z.ZodLiteral<"estimate">;
395
+ amount: z.ZodNumber;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"floor">;
398
+ amount: z.ZodNumber;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ kind: z.ZodLiteral<"unavailable">;
401
+ amount: z.ZodNull;
402
+ }, z.core.$strip>], "kind">;
403
+ }, z.core.$strip>;
404
+ approximation: z.ZodObject<{
405
+ approximate: z.ZodBoolean;
406
+ reasons: z.ZodArray<z.ZodEnum<{
407
+ "closest-model": "closest-model";
408
+ "provider-default": "provider-default";
409
+ "model-attribution": "model-attribution";
410
+ "bucket-boundary": "bucket-boundary";
411
+ "missing-price": "missing-price";
412
+ "source-gap": "source-gap";
413
+ }>>;
414
+ }, z.core.$strip>;
415
+ }, z.core.$strip>>;
416
+ omittedProviders: z.ZodNumber;
417
+ dollarRanks: z.ZodObject<{
418
+ m20: z.ZodNullable<z.ZodNumber>;
419
+ h24: z.ZodNullable<z.ZodNumber>;
420
+ d7: z.ZodNullable<z.ZodNumber>;
421
+ }, z.core.$strip>;
422
+ scoreRanks: z.ZodObject<{
423
+ m20: z.ZodNullable<z.ZodNumber>;
424
+ h24: z.ZodNullable<z.ZodNumber>;
425
+ d7: z.ZodNullable<z.ZodNumber>;
426
+ }, z.core.$strip>;
427
+ }, z.core.$strip>;
428
+ family: z.ZodObject<{
429
+ memberCount: z.ZodNumber;
430
+ coverage: z.ZodEnum<{
431
+ complete: "complete";
432
+ partial: "partial";
433
+ unknown: "unknown";
434
+ }>;
435
+ coverageReasons: z.ZodArray<z.ZodString>;
436
+ priceVersion: z.ZodString;
437
+ approximation: z.ZodObject<{
438
+ approximate: z.ZodBoolean;
439
+ reasons: z.ZodArray<z.ZodEnum<{
440
+ "closest-model": "closest-model";
441
+ "provider-default": "provider-default";
442
+ "model-attribution": "model-attribution";
443
+ "bucket-boundary": "bucket-boundary";
444
+ "missing-price": "missing-price";
445
+ "source-gap": "source-gap";
446
+ }>>;
447
+ }, z.core.$strip>;
448
+ windows: z.ZodObject<{
449
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ kind: z.ZodLiteral<"estimate">;
451
+ amount: z.ZodNumber;
452
+ }, z.core.$strip>, z.ZodObject<{
453
+ kind: z.ZodLiteral<"floor">;
454
+ amount: z.ZodNumber;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ kind: z.ZodLiteral<"unavailable">;
457
+ amount: z.ZodNull;
458
+ }, z.core.$strip>], "kind">;
459
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
460
+ kind: z.ZodLiteral<"estimate">;
461
+ amount: z.ZodNumber;
462
+ }, z.core.$strip>, z.ZodObject<{
463
+ kind: z.ZodLiteral<"floor">;
464
+ amount: z.ZodNumber;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ kind: z.ZodLiteral<"unavailable">;
467
+ amount: z.ZodNull;
468
+ }, z.core.$strip>], "kind">;
469
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
+ kind: z.ZodLiteral<"estimate">;
471
+ amount: z.ZodNumber;
472
+ }, z.core.$strip>, z.ZodObject<{
473
+ kind: z.ZodLiteral<"floor">;
474
+ amount: z.ZodNumber;
475
+ }, z.core.$strip>, z.ZodObject<{
476
+ kind: z.ZodLiteral<"unavailable">;
477
+ amount: z.ZodNull;
478
+ }, z.core.$strip>], "kind">;
479
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
+ kind: z.ZodLiteral<"estimate">;
481
+ amount: z.ZodNumber;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ kind: z.ZodLiteral<"floor">;
484
+ amount: z.ZodNumber;
485
+ }, z.core.$strip>, z.ZodObject<{
486
+ kind: z.ZodLiteral<"unavailable">;
487
+ amount: z.ZodNull;
488
+ }, z.core.$strip>], "kind">;
489
+ }, z.core.$strip>;
490
+ scores: z.ZodObject<{
491
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
492
+ kind: z.ZodLiteral<"estimate">;
493
+ amount: z.ZodNumber;
494
+ }, z.core.$strip>, z.ZodObject<{
495
+ kind: z.ZodLiteral<"floor">;
496
+ amount: z.ZodNumber;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ kind: z.ZodLiteral<"unavailable">;
499
+ amount: z.ZodNull;
500
+ }, z.core.$strip>], "kind">;
501
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
502
+ kind: z.ZodLiteral<"estimate">;
503
+ amount: z.ZodNumber;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ kind: z.ZodLiteral<"floor">;
506
+ amount: z.ZodNumber;
507
+ }, z.core.$strip>, z.ZodObject<{
508
+ kind: z.ZodLiteral<"unavailable">;
509
+ amount: z.ZodNull;
510
+ }, z.core.$strip>], "kind">;
511
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
512
+ kind: z.ZodLiteral<"estimate">;
513
+ amount: z.ZodNumber;
514
+ }, z.core.$strip>, z.ZodObject<{
515
+ kind: z.ZodLiteral<"floor">;
516
+ amount: z.ZodNumber;
517
+ }, z.core.$strip>, z.ZodObject<{
518
+ kind: z.ZodLiteral<"unavailable">;
519
+ amount: z.ZodNull;
520
+ }, z.core.$strip>], "kind">;
521
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
522
+ kind: z.ZodLiteral<"estimate">;
523
+ amount: z.ZodNumber;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ kind: z.ZodLiteral<"floor">;
526
+ amount: z.ZodNumber;
527
+ }, z.core.$strip>, z.ZodObject<{
528
+ kind: z.ZodLiteral<"unavailable">;
529
+ amount: z.ZodNull;
530
+ }, z.core.$strip>], "kind">;
531
+ }, z.core.$strip>;
532
+ providers: z.ZodArray<z.ZodObject<{
533
+ providerId: z.ZodString;
534
+ windows: z.ZodObject<{
535
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
536
+ kind: z.ZodLiteral<"estimate">;
537
+ amount: z.ZodNumber;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ kind: z.ZodLiteral<"floor">;
540
+ amount: z.ZodNumber;
541
+ }, z.core.$strip>, z.ZodObject<{
542
+ kind: z.ZodLiteral<"unavailable">;
543
+ amount: z.ZodNull;
544
+ }, z.core.$strip>], "kind">;
545
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
546
+ kind: z.ZodLiteral<"estimate">;
547
+ amount: z.ZodNumber;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"floor">;
550
+ amount: z.ZodNumber;
551
+ }, z.core.$strip>, z.ZodObject<{
552
+ kind: z.ZodLiteral<"unavailable">;
553
+ amount: z.ZodNull;
554
+ }, z.core.$strip>], "kind">;
555
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
556
+ kind: z.ZodLiteral<"estimate">;
557
+ amount: z.ZodNumber;
558
+ }, z.core.$strip>, z.ZodObject<{
559
+ kind: z.ZodLiteral<"floor">;
560
+ amount: z.ZodNumber;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ kind: z.ZodLiteral<"unavailable">;
563
+ amount: z.ZodNull;
564
+ }, z.core.$strip>], "kind">;
565
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
566
+ kind: z.ZodLiteral<"estimate">;
567
+ amount: z.ZodNumber;
568
+ }, z.core.$strip>, z.ZodObject<{
569
+ kind: z.ZodLiteral<"floor">;
570
+ amount: z.ZodNumber;
571
+ }, z.core.$strip>, z.ZodObject<{
572
+ kind: z.ZodLiteral<"unavailable">;
573
+ amount: z.ZodNull;
574
+ }, z.core.$strip>], "kind">;
575
+ }, z.core.$strip>;
576
+ approximation: z.ZodObject<{
577
+ approximate: z.ZodBoolean;
578
+ reasons: z.ZodArray<z.ZodEnum<{
579
+ "closest-model": "closest-model";
580
+ "provider-default": "provider-default";
581
+ "model-attribution": "model-attribution";
582
+ "bucket-boundary": "bucket-boundary";
583
+ "missing-price": "missing-price";
584
+ "source-gap": "source-gap";
585
+ }>>;
586
+ }, z.core.$strip>;
587
+ }, z.core.$strip>>;
588
+ omittedProviders: z.ZodNumber;
589
+ dollarRanks: z.ZodObject<{
590
+ m20: z.ZodNullable<z.ZodNumber>;
591
+ h24: z.ZodNullable<z.ZodNumber>;
592
+ d7: z.ZodNullable<z.ZodNumber>;
593
+ }, z.core.$strip>;
594
+ scoreRanks: z.ZodObject<{
595
+ m20: z.ZodNullable<z.ZodNumber>;
596
+ h24: z.ZodNullable<z.ZodNumber>;
597
+ d7: z.ZodNullable<z.ZodNumber>;
598
+ }, z.core.$strip>;
599
+ }, z.core.$strip>;
600
+ }, z.core.$strip>;
601
+ export declare const recentSnapshotInputSchema: z.ZodObject<{
602
+ ifRevision: z.ZodOptional<z.ZodString>;
603
+ }, z.core.$strict>;
604
+ export declare const scoringConfigV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
605
+ mode: z.ZodLiteral<"percentile">;
606
+ gates: z.ZodObject<{
607
+ m20: z.ZodNumber;
608
+ h24: z.ZodNumber;
609
+ d7: z.ZodNumber;
610
+ }, z.core.$strip>;
611
+ schemaVersion: z.ZodLiteral<2>;
612
+ providerWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ mode: z.ZodLiteral<"absolute">;
615
+ thresholds: z.ZodObject<{
616
+ m20: z.ZodNumber;
617
+ h24: z.ZodNumber;
618
+ d7: z.ZodNumber;
619
+ lifetime: z.ZodNumber;
620
+ }, z.core.$strip>;
621
+ schemaVersion: z.ZodLiteral<2>;
622
+ providerWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
623
+ }, z.core.$strip>], "mode">;
624
+ export type ScoringConfigV2 = z.infer<typeof scoringConfigV2Schema>;
625
+ export declare const DEFAULT_SCORING_CONFIG_V2: Readonly<ScoringConfigV2>;
626
+ /** Missing weights mean1; weighting influences heat, never the retained dollar estimate. */
627
+ export declare function weightedScoreV2(values: readonly {
628
+ providerId: string;
629
+ amount: number | null;
630
+ }[], providerWeights: ScoringConfigV2['providerWeights']): number | null;
631
+ export declare const recentSnapshotFullSchema: z.ZodObject<{
632
+ version: z.ZodLiteral<1>;
633
+ revision: z.ZodString;
634
+ unchanged: z.ZodLiteral<false>;
635
+ currency: z.ZodLiteral<"USD">;
636
+ estimated: z.ZodLiteral<true>;
637
+ cutoffLastFoldAt: z.ZodNullable<z.ZodNumber>;
638
+ asOf: z.ZodNumber;
639
+ rankAsOf: z.ZodNumber;
640
+ recentWindowMs: z.ZodLiteral<number>;
641
+ config: z.ZodObject<{
642
+ revision: z.ZodString;
643
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
644
+ mode: z.ZodLiteral<"percentile">;
645
+ gates: z.ZodObject<{
646
+ m20: z.ZodNumber;
647
+ h24: z.ZodNumber;
648
+ d7: z.ZodNumber;
649
+ }, z.core.$strip>;
650
+ schemaVersion: z.ZodLiteral<2>;
651
+ providerWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ mode: z.ZodLiteral<"absolute">;
654
+ thresholds: z.ZodObject<{
655
+ m20: z.ZodNumber;
656
+ h24: z.ZodNumber;
657
+ d7: z.ZodNumber;
658
+ lifetime: z.ZodNumber;
659
+ }, z.core.$strip>;
660
+ schemaVersion: z.ZodLiteral<2>;
661
+ providerWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
662
+ }, z.core.$strip>], "mode">;
663
+ }, z.core.$strip>;
664
+ coverage: z.ZodEnum<{
665
+ complete: "complete";
666
+ partial: "partial";
667
+ unknown: "unknown";
668
+ }>;
669
+ coverageReasons: z.ZodArray<z.ZodString>;
670
+ materializationPending: z.ZodNumber;
671
+ omittedRows: z.ZodObject<{
672
+ count: z.ZodNumber;
673
+ exact: z.ZodBoolean;
674
+ }, z.core.$strip>;
675
+ population: z.ZodObject<{
676
+ own: z.ZodObject<{
677
+ dollars: z.ZodObject<{
678
+ m20: z.ZodObject<{
679
+ count: z.ZodNumber;
680
+ coverage: z.ZodEnum<{
681
+ complete: "complete";
682
+ partial: "partial";
683
+ unknown: "unknown";
684
+ }>;
685
+ }, z.core.$strip>;
686
+ h24: z.ZodObject<{
687
+ count: z.ZodNumber;
688
+ coverage: z.ZodEnum<{
689
+ complete: "complete";
690
+ partial: "partial";
691
+ unknown: "unknown";
692
+ }>;
693
+ }, z.core.$strip>;
694
+ d7: z.ZodObject<{
695
+ count: z.ZodNumber;
696
+ coverage: z.ZodEnum<{
697
+ complete: "complete";
698
+ partial: "partial";
699
+ unknown: "unknown";
700
+ }>;
701
+ }, z.core.$strip>;
702
+ }, z.core.$strip>;
703
+ scores: z.ZodObject<{
704
+ m20: z.ZodObject<{
705
+ count: z.ZodNumber;
706
+ coverage: z.ZodEnum<{
707
+ complete: "complete";
708
+ partial: "partial";
709
+ unknown: "unknown";
710
+ }>;
711
+ }, z.core.$strip>;
712
+ h24: z.ZodObject<{
713
+ count: z.ZodNumber;
714
+ coverage: z.ZodEnum<{
715
+ complete: "complete";
716
+ partial: "partial";
717
+ unknown: "unknown";
718
+ }>;
719
+ }, z.core.$strip>;
720
+ d7: z.ZodObject<{
721
+ count: z.ZodNumber;
722
+ coverage: z.ZodEnum<{
723
+ complete: "complete";
724
+ partial: "partial";
725
+ unknown: "unknown";
726
+ }>;
727
+ }, z.core.$strip>;
728
+ }, z.core.$strip>;
729
+ }, z.core.$strip>;
730
+ family: z.ZodObject<{
731
+ dollars: z.ZodObject<{
732
+ m20: z.ZodObject<{
733
+ count: z.ZodNumber;
734
+ coverage: z.ZodEnum<{
735
+ complete: "complete";
736
+ partial: "partial";
737
+ unknown: "unknown";
738
+ }>;
739
+ }, z.core.$strip>;
740
+ h24: z.ZodObject<{
741
+ count: z.ZodNumber;
742
+ coverage: z.ZodEnum<{
743
+ complete: "complete";
744
+ partial: "partial";
745
+ unknown: "unknown";
746
+ }>;
747
+ }, z.core.$strip>;
748
+ d7: z.ZodObject<{
749
+ count: z.ZodNumber;
750
+ coverage: z.ZodEnum<{
751
+ complete: "complete";
752
+ partial: "partial";
753
+ unknown: "unknown";
754
+ }>;
755
+ }, z.core.$strip>;
756
+ }, z.core.$strip>;
757
+ scores: z.ZodObject<{
758
+ m20: z.ZodObject<{
759
+ count: z.ZodNumber;
760
+ coverage: z.ZodEnum<{
761
+ complete: "complete";
762
+ partial: "partial";
763
+ unknown: "unknown";
764
+ }>;
765
+ }, z.core.$strip>;
766
+ h24: z.ZodObject<{
767
+ count: z.ZodNumber;
768
+ coverage: z.ZodEnum<{
769
+ complete: "complete";
770
+ partial: "partial";
771
+ unknown: "unknown";
772
+ }>;
773
+ }, z.core.$strip>;
774
+ d7: z.ZodObject<{
775
+ count: z.ZodNumber;
776
+ coverage: z.ZodEnum<{
777
+ complete: "complete";
778
+ partial: "partial";
779
+ unknown: "unknown";
780
+ }>;
781
+ }, z.core.$strip>;
782
+ }, z.core.$strip>;
783
+ }, z.core.$strip>;
784
+ }, z.core.$strip>;
785
+ rows: z.ZodArray<z.ZodObject<{
786
+ threadId: z.ZodString;
787
+ revision: z.ZodString;
788
+ configRevision: z.ZodString;
789
+ asOf: z.ZodNumber;
790
+ ownLastFoldAt: z.ZodNullable<z.ZodNumber>;
791
+ familyLastFoldAt: z.ZodNullable<z.ZodNumber>;
792
+ own: z.ZodObject<{
793
+ memberCount: z.ZodNumber;
794
+ coverage: z.ZodEnum<{
795
+ complete: "complete";
796
+ partial: "partial";
797
+ unknown: "unknown";
798
+ }>;
799
+ coverageReasons: z.ZodArray<z.ZodString>;
800
+ priceVersion: z.ZodString;
801
+ approximation: z.ZodObject<{
802
+ approximate: z.ZodBoolean;
803
+ reasons: z.ZodArray<z.ZodEnum<{
804
+ "closest-model": "closest-model";
805
+ "provider-default": "provider-default";
806
+ "model-attribution": "model-attribution";
807
+ "bucket-boundary": "bucket-boundary";
808
+ "missing-price": "missing-price";
809
+ "source-gap": "source-gap";
810
+ }>>;
811
+ }, z.core.$strip>;
812
+ windows: z.ZodObject<{
813
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
814
+ kind: z.ZodLiteral<"estimate">;
815
+ amount: z.ZodNumber;
816
+ }, z.core.$strip>, z.ZodObject<{
817
+ kind: z.ZodLiteral<"floor">;
818
+ amount: z.ZodNumber;
819
+ }, z.core.$strip>, z.ZodObject<{
820
+ kind: z.ZodLiteral<"unavailable">;
821
+ amount: z.ZodNull;
822
+ }, z.core.$strip>], "kind">;
823
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
824
+ kind: z.ZodLiteral<"estimate">;
825
+ amount: z.ZodNumber;
826
+ }, z.core.$strip>, z.ZodObject<{
827
+ kind: z.ZodLiteral<"floor">;
828
+ amount: z.ZodNumber;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ kind: z.ZodLiteral<"unavailable">;
831
+ amount: z.ZodNull;
832
+ }, z.core.$strip>], "kind">;
833
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
834
+ kind: z.ZodLiteral<"estimate">;
835
+ amount: z.ZodNumber;
836
+ }, z.core.$strip>, z.ZodObject<{
837
+ kind: z.ZodLiteral<"floor">;
838
+ amount: z.ZodNumber;
839
+ }, z.core.$strip>, z.ZodObject<{
840
+ kind: z.ZodLiteral<"unavailable">;
841
+ amount: z.ZodNull;
842
+ }, z.core.$strip>], "kind">;
843
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
844
+ kind: z.ZodLiteral<"estimate">;
845
+ amount: z.ZodNumber;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ kind: z.ZodLiteral<"floor">;
848
+ amount: z.ZodNumber;
849
+ }, z.core.$strip>, z.ZodObject<{
850
+ kind: z.ZodLiteral<"unavailable">;
851
+ amount: z.ZodNull;
852
+ }, z.core.$strip>], "kind">;
853
+ }, z.core.$strip>;
854
+ scores: z.ZodObject<{
855
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
856
+ kind: z.ZodLiteral<"estimate">;
857
+ amount: z.ZodNumber;
858
+ }, z.core.$strip>, z.ZodObject<{
859
+ kind: z.ZodLiteral<"floor">;
860
+ amount: z.ZodNumber;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ kind: z.ZodLiteral<"unavailable">;
863
+ amount: z.ZodNull;
864
+ }, z.core.$strip>], "kind">;
865
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
866
+ kind: z.ZodLiteral<"estimate">;
867
+ amount: z.ZodNumber;
868
+ }, z.core.$strip>, z.ZodObject<{
869
+ kind: z.ZodLiteral<"floor">;
870
+ amount: z.ZodNumber;
871
+ }, z.core.$strip>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"unavailable">;
873
+ amount: z.ZodNull;
874
+ }, z.core.$strip>], "kind">;
875
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
876
+ kind: z.ZodLiteral<"estimate">;
877
+ amount: z.ZodNumber;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ kind: z.ZodLiteral<"floor">;
880
+ amount: z.ZodNumber;
881
+ }, z.core.$strip>, z.ZodObject<{
882
+ kind: z.ZodLiteral<"unavailable">;
883
+ amount: z.ZodNull;
884
+ }, z.core.$strip>], "kind">;
885
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
886
+ kind: z.ZodLiteral<"estimate">;
887
+ amount: z.ZodNumber;
888
+ }, z.core.$strip>, z.ZodObject<{
889
+ kind: z.ZodLiteral<"floor">;
890
+ amount: z.ZodNumber;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ kind: z.ZodLiteral<"unavailable">;
893
+ amount: z.ZodNull;
894
+ }, z.core.$strip>], "kind">;
895
+ }, z.core.$strip>;
896
+ providers: z.ZodArray<z.ZodObject<{
897
+ providerId: z.ZodString;
898
+ windows: z.ZodObject<{
899
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
900
+ kind: z.ZodLiteral<"estimate">;
901
+ amount: z.ZodNumber;
902
+ }, z.core.$strip>, z.ZodObject<{
903
+ kind: z.ZodLiteral<"floor">;
904
+ amount: z.ZodNumber;
905
+ }, z.core.$strip>, z.ZodObject<{
906
+ kind: z.ZodLiteral<"unavailable">;
907
+ amount: z.ZodNull;
908
+ }, z.core.$strip>], "kind">;
909
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
910
+ kind: z.ZodLiteral<"estimate">;
911
+ amount: z.ZodNumber;
912
+ }, z.core.$strip>, z.ZodObject<{
913
+ kind: z.ZodLiteral<"floor">;
914
+ amount: z.ZodNumber;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ kind: z.ZodLiteral<"unavailable">;
917
+ amount: z.ZodNull;
918
+ }, z.core.$strip>], "kind">;
919
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
920
+ kind: z.ZodLiteral<"estimate">;
921
+ amount: z.ZodNumber;
922
+ }, z.core.$strip>, z.ZodObject<{
923
+ kind: z.ZodLiteral<"floor">;
924
+ amount: z.ZodNumber;
925
+ }, z.core.$strip>, z.ZodObject<{
926
+ kind: z.ZodLiteral<"unavailable">;
927
+ amount: z.ZodNull;
928
+ }, z.core.$strip>], "kind">;
929
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
930
+ kind: z.ZodLiteral<"estimate">;
931
+ amount: z.ZodNumber;
932
+ }, z.core.$strip>, z.ZodObject<{
933
+ kind: z.ZodLiteral<"floor">;
934
+ amount: z.ZodNumber;
935
+ }, z.core.$strip>, z.ZodObject<{
936
+ kind: z.ZodLiteral<"unavailable">;
937
+ amount: z.ZodNull;
938
+ }, z.core.$strip>], "kind">;
939
+ }, z.core.$strip>;
940
+ approximation: z.ZodObject<{
941
+ approximate: z.ZodBoolean;
942
+ reasons: z.ZodArray<z.ZodEnum<{
943
+ "closest-model": "closest-model";
944
+ "provider-default": "provider-default";
945
+ "model-attribution": "model-attribution";
946
+ "bucket-boundary": "bucket-boundary";
947
+ "missing-price": "missing-price";
948
+ "source-gap": "source-gap";
949
+ }>>;
950
+ }, z.core.$strip>;
951
+ }, z.core.$strip>>;
952
+ omittedProviders: z.ZodNumber;
953
+ dollarRanks: z.ZodObject<{
954
+ m20: z.ZodNullable<z.ZodNumber>;
955
+ h24: z.ZodNullable<z.ZodNumber>;
956
+ d7: z.ZodNullable<z.ZodNumber>;
957
+ }, z.core.$strip>;
958
+ scoreRanks: z.ZodObject<{
959
+ m20: z.ZodNullable<z.ZodNumber>;
960
+ h24: z.ZodNullable<z.ZodNumber>;
961
+ d7: z.ZodNullable<z.ZodNumber>;
962
+ }, z.core.$strip>;
963
+ }, z.core.$strip>;
964
+ family: z.ZodObject<{
965
+ memberCount: z.ZodNumber;
966
+ coverage: z.ZodEnum<{
967
+ complete: "complete";
968
+ partial: "partial";
969
+ unknown: "unknown";
970
+ }>;
971
+ coverageReasons: z.ZodArray<z.ZodString>;
972
+ priceVersion: z.ZodString;
973
+ approximation: z.ZodObject<{
974
+ approximate: z.ZodBoolean;
975
+ reasons: z.ZodArray<z.ZodEnum<{
976
+ "closest-model": "closest-model";
977
+ "provider-default": "provider-default";
978
+ "model-attribution": "model-attribution";
979
+ "bucket-boundary": "bucket-boundary";
980
+ "missing-price": "missing-price";
981
+ "source-gap": "source-gap";
982
+ }>>;
983
+ }, z.core.$strip>;
984
+ windows: z.ZodObject<{
985
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
986
+ kind: z.ZodLiteral<"estimate">;
987
+ amount: z.ZodNumber;
988
+ }, z.core.$strip>, z.ZodObject<{
989
+ kind: z.ZodLiteral<"floor">;
990
+ amount: z.ZodNumber;
991
+ }, z.core.$strip>, z.ZodObject<{
992
+ kind: z.ZodLiteral<"unavailable">;
993
+ amount: z.ZodNull;
994
+ }, z.core.$strip>], "kind">;
995
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ kind: z.ZodLiteral<"estimate">;
997
+ amount: z.ZodNumber;
998
+ }, z.core.$strip>, z.ZodObject<{
999
+ kind: z.ZodLiteral<"floor">;
1000
+ amount: z.ZodNumber;
1001
+ }, z.core.$strip>, z.ZodObject<{
1002
+ kind: z.ZodLiteral<"unavailable">;
1003
+ amount: z.ZodNull;
1004
+ }, z.core.$strip>], "kind">;
1005
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1006
+ kind: z.ZodLiteral<"estimate">;
1007
+ amount: z.ZodNumber;
1008
+ }, z.core.$strip>, z.ZodObject<{
1009
+ kind: z.ZodLiteral<"floor">;
1010
+ amount: z.ZodNumber;
1011
+ }, z.core.$strip>, z.ZodObject<{
1012
+ kind: z.ZodLiteral<"unavailable">;
1013
+ amount: z.ZodNull;
1014
+ }, z.core.$strip>], "kind">;
1015
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1016
+ kind: z.ZodLiteral<"estimate">;
1017
+ amount: z.ZodNumber;
1018
+ }, z.core.$strip>, z.ZodObject<{
1019
+ kind: z.ZodLiteral<"floor">;
1020
+ amount: z.ZodNumber;
1021
+ }, z.core.$strip>, z.ZodObject<{
1022
+ kind: z.ZodLiteral<"unavailable">;
1023
+ amount: z.ZodNull;
1024
+ }, z.core.$strip>], "kind">;
1025
+ }, z.core.$strip>;
1026
+ scores: z.ZodObject<{
1027
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1028
+ kind: z.ZodLiteral<"estimate">;
1029
+ amount: z.ZodNumber;
1030
+ }, z.core.$strip>, z.ZodObject<{
1031
+ kind: z.ZodLiteral<"floor">;
1032
+ amount: z.ZodNumber;
1033
+ }, z.core.$strip>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"unavailable">;
1035
+ amount: z.ZodNull;
1036
+ }, z.core.$strip>], "kind">;
1037
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1038
+ kind: z.ZodLiteral<"estimate">;
1039
+ amount: z.ZodNumber;
1040
+ }, z.core.$strip>, z.ZodObject<{
1041
+ kind: z.ZodLiteral<"floor">;
1042
+ amount: z.ZodNumber;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ kind: z.ZodLiteral<"unavailable">;
1045
+ amount: z.ZodNull;
1046
+ }, z.core.$strip>], "kind">;
1047
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1048
+ kind: z.ZodLiteral<"estimate">;
1049
+ amount: z.ZodNumber;
1050
+ }, z.core.$strip>, z.ZodObject<{
1051
+ kind: z.ZodLiteral<"floor">;
1052
+ amount: z.ZodNumber;
1053
+ }, z.core.$strip>, z.ZodObject<{
1054
+ kind: z.ZodLiteral<"unavailable">;
1055
+ amount: z.ZodNull;
1056
+ }, z.core.$strip>], "kind">;
1057
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
+ kind: z.ZodLiteral<"estimate">;
1059
+ amount: z.ZodNumber;
1060
+ }, z.core.$strip>, z.ZodObject<{
1061
+ kind: z.ZodLiteral<"floor">;
1062
+ amount: z.ZodNumber;
1063
+ }, z.core.$strip>, z.ZodObject<{
1064
+ kind: z.ZodLiteral<"unavailable">;
1065
+ amount: z.ZodNull;
1066
+ }, z.core.$strip>], "kind">;
1067
+ }, z.core.$strip>;
1068
+ providers: z.ZodArray<z.ZodObject<{
1069
+ providerId: z.ZodString;
1070
+ windows: z.ZodObject<{
1071
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1072
+ kind: z.ZodLiteral<"estimate">;
1073
+ amount: z.ZodNumber;
1074
+ }, z.core.$strip>, z.ZodObject<{
1075
+ kind: z.ZodLiteral<"floor">;
1076
+ amount: z.ZodNumber;
1077
+ }, z.core.$strip>, z.ZodObject<{
1078
+ kind: z.ZodLiteral<"unavailable">;
1079
+ amount: z.ZodNull;
1080
+ }, z.core.$strip>], "kind">;
1081
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
+ kind: z.ZodLiteral<"estimate">;
1083
+ amount: z.ZodNumber;
1084
+ }, z.core.$strip>, z.ZodObject<{
1085
+ kind: z.ZodLiteral<"floor">;
1086
+ amount: z.ZodNumber;
1087
+ }, z.core.$strip>, z.ZodObject<{
1088
+ kind: z.ZodLiteral<"unavailable">;
1089
+ amount: z.ZodNull;
1090
+ }, z.core.$strip>], "kind">;
1091
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1092
+ kind: z.ZodLiteral<"estimate">;
1093
+ amount: z.ZodNumber;
1094
+ }, z.core.$strip>, z.ZodObject<{
1095
+ kind: z.ZodLiteral<"floor">;
1096
+ amount: z.ZodNumber;
1097
+ }, z.core.$strip>, z.ZodObject<{
1098
+ kind: z.ZodLiteral<"unavailable">;
1099
+ amount: z.ZodNull;
1100
+ }, z.core.$strip>], "kind">;
1101
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1102
+ kind: z.ZodLiteral<"estimate">;
1103
+ amount: z.ZodNumber;
1104
+ }, z.core.$strip>, z.ZodObject<{
1105
+ kind: z.ZodLiteral<"floor">;
1106
+ amount: z.ZodNumber;
1107
+ }, z.core.$strip>, z.ZodObject<{
1108
+ kind: z.ZodLiteral<"unavailable">;
1109
+ amount: z.ZodNull;
1110
+ }, z.core.$strip>], "kind">;
1111
+ }, z.core.$strip>;
1112
+ approximation: z.ZodObject<{
1113
+ approximate: z.ZodBoolean;
1114
+ reasons: z.ZodArray<z.ZodEnum<{
1115
+ "closest-model": "closest-model";
1116
+ "provider-default": "provider-default";
1117
+ "model-attribution": "model-attribution";
1118
+ "bucket-boundary": "bucket-boundary";
1119
+ "missing-price": "missing-price";
1120
+ "source-gap": "source-gap";
1121
+ }>>;
1122
+ }, z.core.$strip>;
1123
+ }, z.core.$strip>>;
1124
+ omittedProviders: z.ZodNumber;
1125
+ dollarRanks: z.ZodObject<{
1126
+ m20: z.ZodNullable<z.ZodNumber>;
1127
+ h24: z.ZodNullable<z.ZodNumber>;
1128
+ d7: z.ZodNullable<z.ZodNumber>;
1129
+ }, z.core.$strip>;
1130
+ scoreRanks: z.ZodObject<{
1131
+ m20: z.ZodNullable<z.ZodNumber>;
1132
+ h24: z.ZodNullable<z.ZodNumber>;
1133
+ d7: z.ZodNullable<z.ZodNumber>;
1134
+ }, z.core.$strip>;
1135
+ }, z.core.$strip>;
1136
+ }, z.core.$strip>>;
1137
+ }, z.core.$strip>;
1138
+ export declare const recentSnapshotResultSchema: z.ZodUnion<readonly [z.ZodObject<{
1139
+ version: z.ZodLiteral<1>;
1140
+ revision: z.ZodString;
1141
+ unchanged: z.ZodLiteral<true>;
1142
+ }, z.core.$strip>, z.ZodObject<{
1143
+ version: z.ZodLiteral<1>;
1144
+ revision: z.ZodString;
1145
+ unchanged: z.ZodLiteral<false>;
1146
+ currency: z.ZodLiteral<"USD">;
1147
+ estimated: z.ZodLiteral<true>;
1148
+ cutoffLastFoldAt: z.ZodNullable<z.ZodNumber>;
1149
+ asOf: z.ZodNumber;
1150
+ rankAsOf: z.ZodNumber;
1151
+ recentWindowMs: z.ZodLiteral<number>;
1152
+ config: z.ZodObject<{
1153
+ revision: z.ZodString;
1154
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
+ mode: z.ZodLiteral<"percentile">;
1156
+ gates: z.ZodObject<{
1157
+ m20: z.ZodNumber;
1158
+ h24: z.ZodNumber;
1159
+ d7: z.ZodNumber;
1160
+ }, z.core.$strip>;
1161
+ schemaVersion: z.ZodLiteral<2>;
1162
+ providerWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
1163
+ }, z.core.$strip>, z.ZodObject<{
1164
+ mode: z.ZodLiteral<"absolute">;
1165
+ thresholds: z.ZodObject<{
1166
+ m20: z.ZodNumber;
1167
+ h24: z.ZodNumber;
1168
+ d7: z.ZodNumber;
1169
+ lifetime: z.ZodNumber;
1170
+ }, z.core.$strip>;
1171
+ schemaVersion: z.ZodLiteral<2>;
1172
+ providerWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
1173
+ }, z.core.$strip>], "mode">;
1174
+ }, z.core.$strip>;
1175
+ coverage: z.ZodEnum<{
1176
+ complete: "complete";
1177
+ partial: "partial";
1178
+ unknown: "unknown";
1179
+ }>;
1180
+ coverageReasons: z.ZodArray<z.ZodString>;
1181
+ materializationPending: z.ZodNumber;
1182
+ omittedRows: z.ZodObject<{
1183
+ count: z.ZodNumber;
1184
+ exact: z.ZodBoolean;
1185
+ }, z.core.$strip>;
1186
+ population: z.ZodObject<{
1187
+ own: z.ZodObject<{
1188
+ dollars: z.ZodObject<{
1189
+ m20: z.ZodObject<{
1190
+ count: z.ZodNumber;
1191
+ coverage: z.ZodEnum<{
1192
+ complete: "complete";
1193
+ partial: "partial";
1194
+ unknown: "unknown";
1195
+ }>;
1196
+ }, z.core.$strip>;
1197
+ h24: z.ZodObject<{
1198
+ count: z.ZodNumber;
1199
+ coverage: z.ZodEnum<{
1200
+ complete: "complete";
1201
+ partial: "partial";
1202
+ unknown: "unknown";
1203
+ }>;
1204
+ }, z.core.$strip>;
1205
+ d7: z.ZodObject<{
1206
+ count: z.ZodNumber;
1207
+ coverage: z.ZodEnum<{
1208
+ complete: "complete";
1209
+ partial: "partial";
1210
+ unknown: "unknown";
1211
+ }>;
1212
+ }, z.core.$strip>;
1213
+ }, z.core.$strip>;
1214
+ scores: z.ZodObject<{
1215
+ m20: z.ZodObject<{
1216
+ count: z.ZodNumber;
1217
+ coverage: z.ZodEnum<{
1218
+ complete: "complete";
1219
+ partial: "partial";
1220
+ unknown: "unknown";
1221
+ }>;
1222
+ }, z.core.$strip>;
1223
+ h24: z.ZodObject<{
1224
+ count: z.ZodNumber;
1225
+ coverage: z.ZodEnum<{
1226
+ complete: "complete";
1227
+ partial: "partial";
1228
+ unknown: "unknown";
1229
+ }>;
1230
+ }, z.core.$strip>;
1231
+ d7: z.ZodObject<{
1232
+ count: z.ZodNumber;
1233
+ coverage: z.ZodEnum<{
1234
+ complete: "complete";
1235
+ partial: "partial";
1236
+ unknown: "unknown";
1237
+ }>;
1238
+ }, z.core.$strip>;
1239
+ }, z.core.$strip>;
1240
+ }, z.core.$strip>;
1241
+ family: z.ZodObject<{
1242
+ dollars: z.ZodObject<{
1243
+ m20: z.ZodObject<{
1244
+ count: z.ZodNumber;
1245
+ coverage: z.ZodEnum<{
1246
+ complete: "complete";
1247
+ partial: "partial";
1248
+ unknown: "unknown";
1249
+ }>;
1250
+ }, z.core.$strip>;
1251
+ h24: z.ZodObject<{
1252
+ count: z.ZodNumber;
1253
+ coverage: z.ZodEnum<{
1254
+ complete: "complete";
1255
+ partial: "partial";
1256
+ unknown: "unknown";
1257
+ }>;
1258
+ }, z.core.$strip>;
1259
+ d7: z.ZodObject<{
1260
+ count: z.ZodNumber;
1261
+ coverage: z.ZodEnum<{
1262
+ complete: "complete";
1263
+ partial: "partial";
1264
+ unknown: "unknown";
1265
+ }>;
1266
+ }, z.core.$strip>;
1267
+ }, z.core.$strip>;
1268
+ scores: z.ZodObject<{
1269
+ m20: z.ZodObject<{
1270
+ count: z.ZodNumber;
1271
+ coverage: z.ZodEnum<{
1272
+ complete: "complete";
1273
+ partial: "partial";
1274
+ unknown: "unknown";
1275
+ }>;
1276
+ }, z.core.$strip>;
1277
+ h24: z.ZodObject<{
1278
+ count: z.ZodNumber;
1279
+ coverage: z.ZodEnum<{
1280
+ complete: "complete";
1281
+ partial: "partial";
1282
+ unknown: "unknown";
1283
+ }>;
1284
+ }, z.core.$strip>;
1285
+ d7: z.ZodObject<{
1286
+ count: z.ZodNumber;
1287
+ coverage: z.ZodEnum<{
1288
+ complete: "complete";
1289
+ partial: "partial";
1290
+ unknown: "unknown";
1291
+ }>;
1292
+ }, z.core.$strip>;
1293
+ }, z.core.$strip>;
1294
+ }, z.core.$strip>;
1295
+ }, z.core.$strip>;
1296
+ rows: z.ZodArray<z.ZodObject<{
1297
+ threadId: z.ZodString;
1298
+ revision: z.ZodString;
1299
+ configRevision: z.ZodString;
1300
+ asOf: z.ZodNumber;
1301
+ ownLastFoldAt: z.ZodNullable<z.ZodNumber>;
1302
+ familyLastFoldAt: z.ZodNullable<z.ZodNumber>;
1303
+ own: z.ZodObject<{
1304
+ memberCount: z.ZodNumber;
1305
+ coverage: z.ZodEnum<{
1306
+ complete: "complete";
1307
+ partial: "partial";
1308
+ unknown: "unknown";
1309
+ }>;
1310
+ coverageReasons: z.ZodArray<z.ZodString>;
1311
+ priceVersion: z.ZodString;
1312
+ approximation: z.ZodObject<{
1313
+ approximate: z.ZodBoolean;
1314
+ reasons: z.ZodArray<z.ZodEnum<{
1315
+ "closest-model": "closest-model";
1316
+ "provider-default": "provider-default";
1317
+ "model-attribution": "model-attribution";
1318
+ "bucket-boundary": "bucket-boundary";
1319
+ "missing-price": "missing-price";
1320
+ "source-gap": "source-gap";
1321
+ }>>;
1322
+ }, z.core.$strip>;
1323
+ windows: z.ZodObject<{
1324
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1325
+ kind: z.ZodLiteral<"estimate">;
1326
+ amount: z.ZodNumber;
1327
+ }, z.core.$strip>, z.ZodObject<{
1328
+ kind: z.ZodLiteral<"floor">;
1329
+ amount: z.ZodNumber;
1330
+ }, z.core.$strip>, z.ZodObject<{
1331
+ kind: z.ZodLiteral<"unavailable">;
1332
+ amount: z.ZodNull;
1333
+ }, z.core.$strip>], "kind">;
1334
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1335
+ kind: z.ZodLiteral<"estimate">;
1336
+ amount: z.ZodNumber;
1337
+ }, z.core.$strip>, z.ZodObject<{
1338
+ kind: z.ZodLiteral<"floor">;
1339
+ amount: z.ZodNumber;
1340
+ }, z.core.$strip>, z.ZodObject<{
1341
+ kind: z.ZodLiteral<"unavailable">;
1342
+ amount: z.ZodNull;
1343
+ }, z.core.$strip>], "kind">;
1344
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1345
+ kind: z.ZodLiteral<"estimate">;
1346
+ amount: z.ZodNumber;
1347
+ }, z.core.$strip>, z.ZodObject<{
1348
+ kind: z.ZodLiteral<"floor">;
1349
+ amount: z.ZodNumber;
1350
+ }, z.core.$strip>, z.ZodObject<{
1351
+ kind: z.ZodLiteral<"unavailable">;
1352
+ amount: z.ZodNull;
1353
+ }, z.core.$strip>], "kind">;
1354
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1355
+ kind: z.ZodLiteral<"estimate">;
1356
+ amount: z.ZodNumber;
1357
+ }, z.core.$strip>, z.ZodObject<{
1358
+ kind: z.ZodLiteral<"floor">;
1359
+ amount: z.ZodNumber;
1360
+ }, z.core.$strip>, z.ZodObject<{
1361
+ kind: z.ZodLiteral<"unavailable">;
1362
+ amount: z.ZodNull;
1363
+ }, z.core.$strip>], "kind">;
1364
+ }, z.core.$strip>;
1365
+ scores: z.ZodObject<{
1366
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1367
+ kind: z.ZodLiteral<"estimate">;
1368
+ amount: z.ZodNumber;
1369
+ }, z.core.$strip>, z.ZodObject<{
1370
+ kind: z.ZodLiteral<"floor">;
1371
+ amount: z.ZodNumber;
1372
+ }, z.core.$strip>, z.ZodObject<{
1373
+ kind: z.ZodLiteral<"unavailable">;
1374
+ amount: z.ZodNull;
1375
+ }, z.core.$strip>], "kind">;
1376
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1377
+ kind: z.ZodLiteral<"estimate">;
1378
+ amount: z.ZodNumber;
1379
+ }, z.core.$strip>, z.ZodObject<{
1380
+ kind: z.ZodLiteral<"floor">;
1381
+ amount: z.ZodNumber;
1382
+ }, z.core.$strip>, z.ZodObject<{
1383
+ kind: z.ZodLiteral<"unavailable">;
1384
+ amount: z.ZodNull;
1385
+ }, z.core.$strip>], "kind">;
1386
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1387
+ kind: z.ZodLiteral<"estimate">;
1388
+ amount: z.ZodNumber;
1389
+ }, z.core.$strip>, z.ZodObject<{
1390
+ kind: z.ZodLiteral<"floor">;
1391
+ amount: z.ZodNumber;
1392
+ }, z.core.$strip>, z.ZodObject<{
1393
+ kind: z.ZodLiteral<"unavailable">;
1394
+ amount: z.ZodNull;
1395
+ }, z.core.$strip>], "kind">;
1396
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1397
+ kind: z.ZodLiteral<"estimate">;
1398
+ amount: z.ZodNumber;
1399
+ }, z.core.$strip>, z.ZodObject<{
1400
+ kind: z.ZodLiteral<"floor">;
1401
+ amount: z.ZodNumber;
1402
+ }, z.core.$strip>, z.ZodObject<{
1403
+ kind: z.ZodLiteral<"unavailable">;
1404
+ amount: z.ZodNull;
1405
+ }, z.core.$strip>], "kind">;
1406
+ }, z.core.$strip>;
1407
+ providers: z.ZodArray<z.ZodObject<{
1408
+ providerId: z.ZodString;
1409
+ windows: z.ZodObject<{
1410
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1411
+ kind: z.ZodLiteral<"estimate">;
1412
+ amount: z.ZodNumber;
1413
+ }, z.core.$strip>, z.ZodObject<{
1414
+ kind: z.ZodLiteral<"floor">;
1415
+ amount: z.ZodNumber;
1416
+ }, z.core.$strip>, z.ZodObject<{
1417
+ kind: z.ZodLiteral<"unavailable">;
1418
+ amount: z.ZodNull;
1419
+ }, z.core.$strip>], "kind">;
1420
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1421
+ kind: z.ZodLiteral<"estimate">;
1422
+ amount: z.ZodNumber;
1423
+ }, z.core.$strip>, z.ZodObject<{
1424
+ kind: z.ZodLiteral<"floor">;
1425
+ amount: z.ZodNumber;
1426
+ }, z.core.$strip>, z.ZodObject<{
1427
+ kind: z.ZodLiteral<"unavailable">;
1428
+ amount: z.ZodNull;
1429
+ }, z.core.$strip>], "kind">;
1430
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1431
+ kind: z.ZodLiteral<"estimate">;
1432
+ amount: z.ZodNumber;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ kind: z.ZodLiteral<"floor">;
1435
+ amount: z.ZodNumber;
1436
+ }, z.core.$strip>, z.ZodObject<{
1437
+ kind: z.ZodLiteral<"unavailable">;
1438
+ amount: z.ZodNull;
1439
+ }, z.core.$strip>], "kind">;
1440
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1441
+ kind: z.ZodLiteral<"estimate">;
1442
+ amount: z.ZodNumber;
1443
+ }, z.core.$strip>, z.ZodObject<{
1444
+ kind: z.ZodLiteral<"floor">;
1445
+ amount: z.ZodNumber;
1446
+ }, z.core.$strip>, z.ZodObject<{
1447
+ kind: z.ZodLiteral<"unavailable">;
1448
+ amount: z.ZodNull;
1449
+ }, z.core.$strip>], "kind">;
1450
+ }, z.core.$strip>;
1451
+ approximation: z.ZodObject<{
1452
+ approximate: z.ZodBoolean;
1453
+ reasons: z.ZodArray<z.ZodEnum<{
1454
+ "closest-model": "closest-model";
1455
+ "provider-default": "provider-default";
1456
+ "model-attribution": "model-attribution";
1457
+ "bucket-boundary": "bucket-boundary";
1458
+ "missing-price": "missing-price";
1459
+ "source-gap": "source-gap";
1460
+ }>>;
1461
+ }, z.core.$strip>;
1462
+ }, z.core.$strip>>;
1463
+ omittedProviders: z.ZodNumber;
1464
+ dollarRanks: z.ZodObject<{
1465
+ m20: z.ZodNullable<z.ZodNumber>;
1466
+ h24: z.ZodNullable<z.ZodNumber>;
1467
+ d7: z.ZodNullable<z.ZodNumber>;
1468
+ }, z.core.$strip>;
1469
+ scoreRanks: z.ZodObject<{
1470
+ m20: z.ZodNullable<z.ZodNumber>;
1471
+ h24: z.ZodNullable<z.ZodNumber>;
1472
+ d7: z.ZodNullable<z.ZodNumber>;
1473
+ }, z.core.$strip>;
1474
+ }, z.core.$strip>;
1475
+ family: z.ZodObject<{
1476
+ memberCount: z.ZodNumber;
1477
+ coverage: z.ZodEnum<{
1478
+ complete: "complete";
1479
+ partial: "partial";
1480
+ unknown: "unknown";
1481
+ }>;
1482
+ coverageReasons: z.ZodArray<z.ZodString>;
1483
+ priceVersion: z.ZodString;
1484
+ approximation: z.ZodObject<{
1485
+ approximate: z.ZodBoolean;
1486
+ reasons: z.ZodArray<z.ZodEnum<{
1487
+ "closest-model": "closest-model";
1488
+ "provider-default": "provider-default";
1489
+ "model-attribution": "model-attribution";
1490
+ "bucket-boundary": "bucket-boundary";
1491
+ "missing-price": "missing-price";
1492
+ "source-gap": "source-gap";
1493
+ }>>;
1494
+ }, z.core.$strip>;
1495
+ windows: z.ZodObject<{
1496
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1497
+ kind: z.ZodLiteral<"estimate">;
1498
+ amount: z.ZodNumber;
1499
+ }, z.core.$strip>, z.ZodObject<{
1500
+ kind: z.ZodLiteral<"floor">;
1501
+ amount: z.ZodNumber;
1502
+ }, z.core.$strip>, z.ZodObject<{
1503
+ kind: z.ZodLiteral<"unavailable">;
1504
+ amount: z.ZodNull;
1505
+ }, z.core.$strip>], "kind">;
1506
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1507
+ kind: z.ZodLiteral<"estimate">;
1508
+ amount: z.ZodNumber;
1509
+ }, z.core.$strip>, z.ZodObject<{
1510
+ kind: z.ZodLiteral<"floor">;
1511
+ amount: z.ZodNumber;
1512
+ }, z.core.$strip>, z.ZodObject<{
1513
+ kind: z.ZodLiteral<"unavailable">;
1514
+ amount: z.ZodNull;
1515
+ }, z.core.$strip>], "kind">;
1516
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1517
+ kind: z.ZodLiteral<"estimate">;
1518
+ amount: z.ZodNumber;
1519
+ }, z.core.$strip>, z.ZodObject<{
1520
+ kind: z.ZodLiteral<"floor">;
1521
+ amount: z.ZodNumber;
1522
+ }, z.core.$strip>, z.ZodObject<{
1523
+ kind: z.ZodLiteral<"unavailable">;
1524
+ amount: z.ZodNull;
1525
+ }, z.core.$strip>], "kind">;
1526
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1527
+ kind: z.ZodLiteral<"estimate">;
1528
+ amount: z.ZodNumber;
1529
+ }, z.core.$strip>, z.ZodObject<{
1530
+ kind: z.ZodLiteral<"floor">;
1531
+ amount: z.ZodNumber;
1532
+ }, z.core.$strip>, z.ZodObject<{
1533
+ kind: z.ZodLiteral<"unavailable">;
1534
+ amount: z.ZodNull;
1535
+ }, z.core.$strip>], "kind">;
1536
+ }, z.core.$strip>;
1537
+ scores: z.ZodObject<{
1538
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1539
+ kind: z.ZodLiteral<"estimate">;
1540
+ amount: z.ZodNumber;
1541
+ }, z.core.$strip>, z.ZodObject<{
1542
+ kind: z.ZodLiteral<"floor">;
1543
+ amount: z.ZodNumber;
1544
+ }, z.core.$strip>, z.ZodObject<{
1545
+ kind: z.ZodLiteral<"unavailable">;
1546
+ amount: z.ZodNull;
1547
+ }, z.core.$strip>], "kind">;
1548
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1549
+ kind: z.ZodLiteral<"estimate">;
1550
+ amount: z.ZodNumber;
1551
+ }, z.core.$strip>, z.ZodObject<{
1552
+ kind: z.ZodLiteral<"floor">;
1553
+ amount: z.ZodNumber;
1554
+ }, z.core.$strip>, z.ZodObject<{
1555
+ kind: z.ZodLiteral<"unavailable">;
1556
+ amount: z.ZodNull;
1557
+ }, z.core.$strip>], "kind">;
1558
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1559
+ kind: z.ZodLiteral<"estimate">;
1560
+ amount: z.ZodNumber;
1561
+ }, z.core.$strip>, z.ZodObject<{
1562
+ kind: z.ZodLiteral<"floor">;
1563
+ amount: z.ZodNumber;
1564
+ }, z.core.$strip>, z.ZodObject<{
1565
+ kind: z.ZodLiteral<"unavailable">;
1566
+ amount: z.ZodNull;
1567
+ }, z.core.$strip>], "kind">;
1568
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1569
+ kind: z.ZodLiteral<"estimate">;
1570
+ amount: z.ZodNumber;
1571
+ }, z.core.$strip>, z.ZodObject<{
1572
+ kind: z.ZodLiteral<"floor">;
1573
+ amount: z.ZodNumber;
1574
+ }, z.core.$strip>, z.ZodObject<{
1575
+ kind: z.ZodLiteral<"unavailable">;
1576
+ amount: z.ZodNull;
1577
+ }, z.core.$strip>], "kind">;
1578
+ }, z.core.$strip>;
1579
+ providers: z.ZodArray<z.ZodObject<{
1580
+ providerId: z.ZodString;
1581
+ windows: z.ZodObject<{
1582
+ m20: z.ZodDiscriminatedUnion<[z.ZodObject<{
1583
+ kind: z.ZodLiteral<"estimate">;
1584
+ amount: z.ZodNumber;
1585
+ }, z.core.$strip>, z.ZodObject<{
1586
+ kind: z.ZodLiteral<"floor">;
1587
+ amount: z.ZodNumber;
1588
+ }, z.core.$strip>, z.ZodObject<{
1589
+ kind: z.ZodLiteral<"unavailable">;
1590
+ amount: z.ZodNull;
1591
+ }, z.core.$strip>], "kind">;
1592
+ h24: z.ZodDiscriminatedUnion<[z.ZodObject<{
1593
+ kind: z.ZodLiteral<"estimate">;
1594
+ amount: z.ZodNumber;
1595
+ }, z.core.$strip>, z.ZodObject<{
1596
+ kind: z.ZodLiteral<"floor">;
1597
+ amount: z.ZodNumber;
1598
+ }, z.core.$strip>, z.ZodObject<{
1599
+ kind: z.ZodLiteral<"unavailable">;
1600
+ amount: z.ZodNull;
1601
+ }, z.core.$strip>], "kind">;
1602
+ d7: z.ZodDiscriminatedUnion<[z.ZodObject<{
1603
+ kind: z.ZodLiteral<"estimate">;
1604
+ amount: z.ZodNumber;
1605
+ }, z.core.$strip>, z.ZodObject<{
1606
+ kind: z.ZodLiteral<"floor">;
1607
+ amount: z.ZodNumber;
1608
+ }, z.core.$strip>, z.ZodObject<{
1609
+ kind: z.ZodLiteral<"unavailable">;
1610
+ amount: z.ZodNull;
1611
+ }, z.core.$strip>], "kind">;
1612
+ lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
1613
+ kind: z.ZodLiteral<"estimate">;
1614
+ amount: z.ZodNumber;
1615
+ }, z.core.$strip>, z.ZodObject<{
1616
+ kind: z.ZodLiteral<"floor">;
1617
+ amount: z.ZodNumber;
1618
+ }, z.core.$strip>, z.ZodObject<{
1619
+ kind: z.ZodLiteral<"unavailable">;
1620
+ amount: z.ZodNull;
1621
+ }, z.core.$strip>], "kind">;
1622
+ }, z.core.$strip>;
1623
+ approximation: z.ZodObject<{
1624
+ approximate: z.ZodBoolean;
1625
+ reasons: z.ZodArray<z.ZodEnum<{
1626
+ "closest-model": "closest-model";
1627
+ "provider-default": "provider-default";
1628
+ "model-attribution": "model-attribution";
1629
+ "bucket-boundary": "bucket-boundary";
1630
+ "missing-price": "missing-price";
1631
+ "source-gap": "source-gap";
1632
+ }>>;
1633
+ }, z.core.$strip>;
1634
+ }, z.core.$strip>>;
1635
+ omittedProviders: z.ZodNumber;
1636
+ dollarRanks: z.ZodObject<{
1637
+ m20: z.ZodNullable<z.ZodNumber>;
1638
+ h24: z.ZodNullable<z.ZodNumber>;
1639
+ d7: z.ZodNullable<z.ZodNumber>;
1640
+ }, z.core.$strip>;
1641
+ scoreRanks: z.ZodObject<{
1642
+ m20: z.ZodNullable<z.ZodNumber>;
1643
+ h24: z.ZodNullable<z.ZodNumber>;
1644
+ d7: z.ZodNullable<z.ZodNumber>;
1645
+ }, z.core.$strip>;
1646
+ }, z.core.$strip>;
1647
+ }, z.core.$strip>>;
1648
+ }, z.core.$strip>]>;
1649
+ export type RecentSnapshotInput = z.infer<typeof recentSnapshotInputSchema>;
1650
+ export type RecentSnapshotResult = z.infer<typeof recentSnapshotResultSchema>;
1651
+ export type RecentSnapshot = z.infer<typeof recentSnapshotFullSchema>;
1652
+ export type RecentRow = z.infer<typeof recentRowSchema>;
1653
+ export type RecentScope = z.infer<typeof recentScopeSchema>;
1654
+ export declare function validateRecentSnapshot(input: RecentSnapshotInput, value: unknown): RecentSnapshotResult;
1655
+ /** Older rank epochs may be retained; a heat decision must also check CURRENT
1656
+ * supported positive amounts. Legacy heat(ranks) alone is insufficient here. */
1657
+ export declare function recentPercentileHeat(projection: RecentScope, gates?: {
1658
+ m20: number;
1659
+ h24: number;
1660
+ d7: number;
1661
+ }): 'on-fire' | 'hot' | 'heavy' | null;