@agent-finops/core 0.6.1 → 0.7.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/activitySnapshot.d.ts +47 -47
- package/dist/schema.d.ts +29 -29
- package/package.json +1 -1
|
@@ -53,9 +53,9 @@ export declare const activitySnapshotApiEquivalentWindowSchema: z.ZodObject<{
|
|
|
53
53
|
missing: "missing";
|
|
54
54
|
}>;
|
|
55
55
|
coverage: z.ZodEnum<{
|
|
56
|
+
missing: "missing";
|
|
56
57
|
complete: "complete";
|
|
57
58
|
partial: "partial";
|
|
58
|
-
missing: "missing";
|
|
59
59
|
}>;
|
|
60
60
|
}, z.core.$strict>;
|
|
61
61
|
export type ActivitySnapshotApiEquivalentWindow = z.infer<typeof activitySnapshotApiEquivalentWindowSchema>;
|
|
@@ -64,13 +64,13 @@ export declare const activitySnapshotBilledWindowSchema: z.ZodObject<{
|
|
|
64
64
|
recordCount: z.ZodNumber;
|
|
65
65
|
basis: z.ZodLiteral<"provider_billed">;
|
|
66
66
|
financialEvidence: z.ZodEnum<{
|
|
67
|
-
missing: "missing";
|
|
68
67
|
verified: "verified";
|
|
68
|
+
missing: "missing";
|
|
69
69
|
}>;
|
|
70
70
|
coverage: z.ZodEnum<{
|
|
71
|
+
missing: "missing";
|
|
71
72
|
complete: "complete";
|
|
72
73
|
partial: "partial";
|
|
73
|
-
missing: "missing";
|
|
74
74
|
}>;
|
|
75
75
|
}, z.core.$strict>;
|
|
76
76
|
export type ActivitySnapshotBilledWindow = z.infer<typeof activitySnapshotBilledWindowSchema>;
|
|
@@ -84,9 +84,9 @@ export declare const activitySnapshotApiEquivalentWindowsSchema: z.ZodObject<{
|
|
|
84
84
|
missing: "missing";
|
|
85
85
|
}>;
|
|
86
86
|
coverage: z.ZodEnum<{
|
|
87
|
+
missing: "missing";
|
|
87
88
|
complete: "complete";
|
|
88
89
|
partial: "partial";
|
|
89
|
-
missing: "missing";
|
|
90
90
|
}>;
|
|
91
91
|
}, z.core.$strict>;
|
|
92
92
|
sevenDays: z.ZodObject<{
|
|
@@ -98,9 +98,9 @@ export declare const activitySnapshotApiEquivalentWindowsSchema: z.ZodObject<{
|
|
|
98
98
|
missing: "missing";
|
|
99
99
|
}>;
|
|
100
100
|
coverage: z.ZodEnum<{
|
|
101
|
+
missing: "missing";
|
|
101
102
|
complete: "complete";
|
|
102
103
|
partial: "partial";
|
|
103
|
-
missing: "missing";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strict>;
|
|
106
106
|
thirtyDays: z.ZodObject<{
|
|
@@ -112,9 +112,9 @@ export declare const activitySnapshotApiEquivalentWindowsSchema: z.ZodObject<{
|
|
|
112
112
|
missing: "missing";
|
|
113
113
|
}>;
|
|
114
114
|
coverage: z.ZodEnum<{
|
|
115
|
+
missing: "missing";
|
|
115
116
|
complete: "complete";
|
|
116
117
|
partial: "partial";
|
|
117
|
-
missing: "missing";
|
|
118
118
|
}>;
|
|
119
119
|
}, z.core.$strict>;
|
|
120
120
|
}, z.core.$strict>;
|
|
@@ -125,13 +125,13 @@ export declare const activitySnapshotBilledWindowsSchema: z.ZodObject<{
|
|
|
125
125
|
recordCount: z.ZodNumber;
|
|
126
126
|
basis: z.ZodLiteral<"provider_billed">;
|
|
127
127
|
financialEvidence: z.ZodEnum<{
|
|
128
|
-
missing: "missing";
|
|
129
128
|
verified: "verified";
|
|
129
|
+
missing: "missing";
|
|
130
130
|
}>;
|
|
131
131
|
coverage: z.ZodEnum<{
|
|
132
|
+
missing: "missing";
|
|
132
133
|
complete: "complete";
|
|
133
134
|
partial: "partial";
|
|
134
|
-
missing: "missing";
|
|
135
135
|
}>;
|
|
136
136
|
}, z.core.$strict>;
|
|
137
137
|
sevenDays: z.ZodObject<{
|
|
@@ -139,13 +139,13 @@ export declare const activitySnapshotBilledWindowsSchema: z.ZodObject<{
|
|
|
139
139
|
recordCount: z.ZodNumber;
|
|
140
140
|
basis: z.ZodLiteral<"provider_billed">;
|
|
141
141
|
financialEvidence: z.ZodEnum<{
|
|
142
|
-
missing: "missing";
|
|
143
142
|
verified: "verified";
|
|
143
|
+
missing: "missing";
|
|
144
144
|
}>;
|
|
145
145
|
coverage: z.ZodEnum<{
|
|
146
|
+
missing: "missing";
|
|
146
147
|
complete: "complete";
|
|
147
148
|
partial: "partial";
|
|
148
|
-
missing: "missing";
|
|
149
149
|
}>;
|
|
150
150
|
}, z.core.$strict>;
|
|
151
151
|
thirtyDays: z.ZodObject<{
|
|
@@ -153,13 +153,13 @@ export declare const activitySnapshotBilledWindowsSchema: z.ZodObject<{
|
|
|
153
153
|
recordCount: z.ZodNumber;
|
|
154
154
|
basis: z.ZodLiteral<"provider_billed">;
|
|
155
155
|
financialEvidence: z.ZodEnum<{
|
|
156
|
-
missing: "missing";
|
|
157
156
|
verified: "verified";
|
|
157
|
+
missing: "missing";
|
|
158
158
|
}>;
|
|
159
159
|
coverage: z.ZodEnum<{
|
|
160
|
+
missing: "missing";
|
|
160
161
|
complete: "complete";
|
|
161
162
|
partial: "partial";
|
|
162
|
-
missing: "missing";
|
|
163
163
|
}>;
|
|
164
164
|
}, z.core.$strict>;
|
|
165
165
|
}, z.core.$strict>;
|
|
@@ -183,9 +183,9 @@ export declare const activitySnapshotSubscriptionAgentSchema: z.ZodObject<{
|
|
|
183
183
|
}>;
|
|
184
184
|
billing: z.ZodLiteral<"subscription">;
|
|
185
185
|
planId: z.ZodNullable<z.ZodEnum<{
|
|
186
|
-
"claude-pro": "claude-pro";
|
|
187
|
-
"claude-max-5x": "claude-max-5x";
|
|
188
186
|
"claude-max-20x": "claude-max-20x";
|
|
187
|
+
"claude-max-5x": "claude-max-5x";
|
|
188
|
+
"claude-pro": "claude-pro";
|
|
189
189
|
"chatgpt-plus": "chatgpt-plus";
|
|
190
190
|
"chatgpt-pro": "chatgpt-pro";
|
|
191
191
|
}>>;
|
|
@@ -199,9 +199,9 @@ export declare const activitySnapshotSubscriptionAgentSchema: z.ZodObject<{
|
|
|
199
199
|
missing: "missing";
|
|
200
200
|
}>;
|
|
201
201
|
coverage: z.ZodEnum<{
|
|
202
|
+
missing: "missing";
|
|
202
203
|
complete: "complete";
|
|
203
204
|
partial: "partial";
|
|
204
|
-
missing: "missing";
|
|
205
205
|
}>;
|
|
206
206
|
}, z.core.$strict>;
|
|
207
207
|
sevenDays: z.ZodObject<{
|
|
@@ -213,9 +213,9 @@ export declare const activitySnapshotSubscriptionAgentSchema: z.ZodObject<{
|
|
|
213
213
|
missing: "missing";
|
|
214
214
|
}>;
|
|
215
215
|
coverage: z.ZodEnum<{
|
|
216
|
+
missing: "missing";
|
|
216
217
|
complete: "complete";
|
|
217
218
|
partial: "partial";
|
|
218
|
-
missing: "missing";
|
|
219
219
|
}>;
|
|
220
220
|
}, z.core.$strict>;
|
|
221
221
|
thirtyDays: z.ZodObject<{
|
|
@@ -227,9 +227,9 @@ export declare const activitySnapshotSubscriptionAgentSchema: z.ZodObject<{
|
|
|
227
227
|
missing: "missing";
|
|
228
228
|
}>;
|
|
229
229
|
coverage: z.ZodEnum<{
|
|
230
|
+
missing: "missing";
|
|
230
231
|
complete: "complete";
|
|
231
232
|
partial: "partial";
|
|
232
|
-
missing: "missing";
|
|
233
233
|
}>;
|
|
234
234
|
}, z.core.$strict>;
|
|
235
235
|
}, z.core.$strict>;
|
|
@@ -287,11 +287,11 @@ export declare const activitySnapshotCoverageSchema: z.ZodObject<{
|
|
|
287
287
|
}, z.core.$strict>>;
|
|
288
288
|
providers: z.ZodArray<z.ZodObject<{
|
|
289
289
|
provider: z.ZodEnum<{
|
|
290
|
-
openai: "openai";
|
|
291
290
|
anthropic: "anthropic";
|
|
291
|
+
openai: "openai";
|
|
292
292
|
cursor: "cursor";
|
|
293
|
-
"github-copilot": "github-copilot";
|
|
294
293
|
other: "other";
|
|
294
|
+
"github-copilot": "github-copilot";
|
|
295
295
|
}>;
|
|
296
296
|
status: z.ZodEnum<{
|
|
297
297
|
error: "error";
|
|
@@ -315,9 +315,9 @@ export declare const activitySnapshotCoverageSchema: z.ZodObject<{
|
|
|
315
315
|
recordsUnpriced: z.ZodNumber;
|
|
316
316
|
validationStatus: z.ZodEnum<{
|
|
317
317
|
complete: "complete";
|
|
318
|
-
partial: "partial";
|
|
319
318
|
failed: "failed";
|
|
320
319
|
not_checked: "not_checked";
|
|
320
|
+
partial: "partial";
|
|
321
321
|
}>;
|
|
322
322
|
pricingAsOf: z.ZodString;
|
|
323
323
|
networkUploaded: z.ZodLiteral<false>;
|
|
@@ -336,21 +336,21 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
336
336
|
}, z.core.$strict>, z.ZodObject<{
|
|
337
337
|
status: z.ZodLiteral<"error">;
|
|
338
338
|
errorCode: z.ZodEnum<{
|
|
339
|
+
unknown: "unknown";
|
|
339
340
|
scan_failed: "scan_failed";
|
|
340
341
|
source_unreadable: "source_unreadable";
|
|
341
342
|
invalid_evidence: "invalid_evidence";
|
|
342
343
|
timeout: "timeout";
|
|
343
344
|
cache_write_failed: "cache_write_failed";
|
|
344
|
-
unknown: "unknown";
|
|
345
345
|
}>;
|
|
346
346
|
}, z.core.$strict>], "status">;
|
|
347
347
|
mode: z.ZodEnum<{
|
|
348
|
-
|
|
348
|
+
error: "error";
|
|
349
349
|
subscription: "subscription";
|
|
350
|
+
metered: "metered";
|
|
350
351
|
mixed: "mixed";
|
|
351
352
|
unresolved: "unresolved";
|
|
352
353
|
empty: "empty";
|
|
353
|
-
error: "error";
|
|
354
354
|
}>;
|
|
355
355
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
356
356
|
agents: z.ZodArray<z.ZodObject<{
|
|
@@ -360,9 +360,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
360
360
|
}>;
|
|
361
361
|
billing: z.ZodLiteral<"subscription">;
|
|
362
362
|
planId: z.ZodNullable<z.ZodEnum<{
|
|
363
|
-
"claude-pro": "claude-pro";
|
|
364
|
-
"claude-max-5x": "claude-max-5x";
|
|
365
363
|
"claude-max-20x": "claude-max-20x";
|
|
364
|
+
"claude-max-5x": "claude-max-5x";
|
|
365
|
+
"claude-pro": "claude-pro";
|
|
366
366
|
"chatgpt-plus": "chatgpt-plus";
|
|
367
367
|
"chatgpt-pro": "chatgpt-pro";
|
|
368
368
|
}>>;
|
|
@@ -376,9 +376,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
376
376
|
missing: "missing";
|
|
377
377
|
}>;
|
|
378
378
|
coverage: z.ZodEnum<{
|
|
379
|
+
missing: "missing";
|
|
379
380
|
complete: "complete";
|
|
380
381
|
partial: "partial";
|
|
381
|
-
missing: "missing";
|
|
382
382
|
}>;
|
|
383
383
|
}, z.core.$strict>;
|
|
384
384
|
sevenDays: z.ZodObject<{
|
|
@@ -390,9 +390,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
390
390
|
missing: "missing";
|
|
391
391
|
}>;
|
|
392
392
|
coverage: z.ZodEnum<{
|
|
393
|
+
missing: "missing";
|
|
393
394
|
complete: "complete";
|
|
394
395
|
partial: "partial";
|
|
395
|
-
missing: "missing";
|
|
396
396
|
}>;
|
|
397
397
|
}, z.core.$strict>;
|
|
398
398
|
thirtyDays: z.ZodObject<{
|
|
@@ -404,9 +404,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
404
404
|
missing: "missing";
|
|
405
405
|
}>;
|
|
406
406
|
coverage: z.ZodEnum<{
|
|
407
|
+
missing: "missing";
|
|
407
408
|
complete: "complete";
|
|
408
409
|
partial: "partial";
|
|
409
|
-
missing: "missing";
|
|
410
410
|
}>;
|
|
411
411
|
}, z.core.$strict>;
|
|
412
412
|
}, z.core.$strict>;
|
|
@@ -434,9 +434,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
434
434
|
}>;
|
|
435
435
|
billing: z.ZodLiteral<"api_key">;
|
|
436
436
|
planId: z.ZodNullable<z.ZodEnum<{
|
|
437
|
-
"claude-pro": "claude-pro";
|
|
438
|
-
"claude-max-5x": "claude-max-5x";
|
|
439
437
|
"claude-max-20x": "claude-max-20x";
|
|
438
|
+
"claude-max-5x": "claude-max-5x";
|
|
439
|
+
"claude-pro": "claude-pro";
|
|
440
440
|
"chatgpt-plus": "chatgpt-plus";
|
|
441
441
|
"chatgpt-pro": "chatgpt-pro";
|
|
442
442
|
}>>;
|
|
@@ -451,9 +451,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
451
451
|
missing: "missing";
|
|
452
452
|
}>;
|
|
453
453
|
coverage: z.ZodEnum<{
|
|
454
|
+
missing: "missing";
|
|
454
455
|
complete: "complete";
|
|
455
456
|
partial: "partial";
|
|
456
|
-
missing: "missing";
|
|
457
457
|
}>;
|
|
458
458
|
}, z.core.$strict>;
|
|
459
459
|
sevenDays: z.ZodObject<{
|
|
@@ -465,9 +465,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
465
465
|
missing: "missing";
|
|
466
466
|
}>;
|
|
467
467
|
coverage: z.ZodEnum<{
|
|
468
|
+
missing: "missing";
|
|
468
469
|
complete: "complete";
|
|
469
470
|
partial: "partial";
|
|
470
|
-
missing: "missing";
|
|
471
471
|
}>;
|
|
472
472
|
}, z.core.$strict>;
|
|
473
473
|
thirtyDays: z.ZodObject<{
|
|
@@ -479,9 +479,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
479
479
|
missing: "missing";
|
|
480
480
|
}>;
|
|
481
481
|
coverage: z.ZodEnum<{
|
|
482
|
+
missing: "missing";
|
|
482
483
|
complete: "complete";
|
|
483
484
|
partial: "partial";
|
|
484
|
-
missing: "missing";
|
|
485
485
|
}>;
|
|
486
486
|
}, z.core.$strict>;
|
|
487
487
|
}, z.core.$strict>;
|
|
@@ -491,13 +491,13 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
491
491
|
recordCount: z.ZodNumber;
|
|
492
492
|
basis: z.ZodLiteral<"provider_billed">;
|
|
493
493
|
financialEvidence: z.ZodEnum<{
|
|
494
|
-
missing: "missing";
|
|
495
494
|
verified: "verified";
|
|
495
|
+
missing: "missing";
|
|
496
496
|
}>;
|
|
497
497
|
coverage: z.ZodEnum<{
|
|
498
|
+
missing: "missing";
|
|
498
499
|
complete: "complete";
|
|
499
500
|
partial: "partial";
|
|
500
|
-
missing: "missing";
|
|
501
501
|
}>;
|
|
502
502
|
}, z.core.$strict>;
|
|
503
503
|
sevenDays: z.ZodObject<{
|
|
@@ -505,13 +505,13 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
505
505
|
recordCount: z.ZodNumber;
|
|
506
506
|
basis: z.ZodLiteral<"provider_billed">;
|
|
507
507
|
financialEvidence: z.ZodEnum<{
|
|
508
|
-
missing: "missing";
|
|
509
508
|
verified: "verified";
|
|
509
|
+
missing: "missing";
|
|
510
510
|
}>;
|
|
511
511
|
coverage: z.ZodEnum<{
|
|
512
|
+
missing: "missing";
|
|
512
513
|
complete: "complete";
|
|
513
514
|
partial: "partial";
|
|
514
|
-
missing: "missing";
|
|
515
515
|
}>;
|
|
516
516
|
}, z.core.$strict>;
|
|
517
517
|
thirtyDays: z.ZodObject<{
|
|
@@ -519,13 +519,13 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
519
519
|
recordCount: z.ZodNumber;
|
|
520
520
|
basis: z.ZodLiteral<"provider_billed">;
|
|
521
521
|
financialEvidence: z.ZodEnum<{
|
|
522
|
-
missing: "missing";
|
|
523
522
|
verified: "verified";
|
|
523
|
+
missing: "missing";
|
|
524
524
|
}>;
|
|
525
525
|
coverage: z.ZodEnum<{
|
|
526
|
+
missing: "missing";
|
|
526
527
|
complete: "complete";
|
|
527
528
|
partial: "partial";
|
|
528
|
-
missing: "missing";
|
|
529
529
|
}>;
|
|
530
530
|
}, z.core.$strict>;
|
|
531
531
|
}, z.core.$strict>;
|
|
@@ -538,9 +538,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
538
538
|
}>;
|
|
539
539
|
billing: z.ZodLiteral<"unknown">;
|
|
540
540
|
planId: z.ZodNullable<z.ZodEnum<{
|
|
541
|
-
"claude-pro": "claude-pro";
|
|
542
|
-
"claude-max-5x": "claude-max-5x";
|
|
543
541
|
"claude-max-20x": "claude-max-20x";
|
|
542
|
+
"claude-max-5x": "claude-max-5x";
|
|
543
|
+
"claude-pro": "claude-pro";
|
|
544
544
|
"chatgpt-plus": "chatgpt-plus";
|
|
545
545
|
"chatgpt-pro": "chatgpt-pro";
|
|
546
546
|
}>>;
|
|
@@ -555,9 +555,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
555
555
|
missing: "missing";
|
|
556
556
|
}>;
|
|
557
557
|
coverage: z.ZodEnum<{
|
|
558
|
+
missing: "missing";
|
|
558
559
|
complete: "complete";
|
|
559
560
|
partial: "partial";
|
|
560
|
-
missing: "missing";
|
|
561
561
|
}>;
|
|
562
562
|
}, z.core.$strict>;
|
|
563
563
|
sevenDays: z.ZodObject<{
|
|
@@ -569,9 +569,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
569
569
|
missing: "missing";
|
|
570
570
|
}>;
|
|
571
571
|
coverage: z.ZodEnum<{
|
|
572
|
+
missing: "missing";
|
|
572
573
|
complete: "complete";
|
|
573
574
|
partial: "partial";
|
|
574
|
-
missing: "missing";
|
|
575
575
|
}>;
|
|
576
576
|
}, z.core.$strict>;
|
|
577
577
|
thirtyDays: z.ZodObject<{
|
|
@@ -583,9 +583,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
583
583
|
missing: "missing";
|
|
584
584
|
}>;
|
|
585
585
|
coverage: z.ZodEnum<{
|
|
586
|
+
missing: "missing";
|
|
586
587
|
complete: "complete";
|
|
587
588
|
partial: "partial";
|
|
588
|
-
missing: "missing";
|
|
589
589
|
}>;
|
|
590
590
|
}, z.core.$strict>;
|
|
591
591
|
}, z.core.$strict>;
|
|
@@ -627,11 +627,11 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
627
627
|
}, z.core.$strict>>;
|
|
628
628
|
providers: z.ZodArray<z.ZodObject<{
|
|
629
629
|
provider: z.ZodEnum<{
|
|
630
|
-
openai: "openai";
|
|
631
630
|
anthropic: "anthropic";
|
|
631
|
+
openai: "openai";
|
|
632
632
|
cursor: "cursor";
|
|
633
|
-
"github-copilot": "github-copilot";
|
|
634
633
|
other: "other";
|
|
634
|
+
"github-copilot": "github-copilot";
|
|
635
635
|
}>;
|
|
636
636
|
status: z.ZodEnum<{
|
|
637
637
|
error: "error";
|
|
@@ -655,9 +655,9 @@ export declare const activitySnapshotSchema: z.ZodObject<{
|
|
|
655
655
|
recordsUnpriced: z.ZodNumber;
|
|
656
656
|
validationStatus: z.ZodEnum<{
|
|
657
657
|
complete: "complete";
|
|
658
|
-
partial: "partial";
|
|
659
658
|
failed: "failed";
|
|
660
659
|
not_checked: "not_checked";
|
|
660
|
+
partial: "partial";
|
|
661
661
|
}>;
|
|
662
662
|
pricingAsOf: z.ZodString;
|
|
663
663
|
networkUploaded: z.ZodLiteral<false>;
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const costConfidenceValues: readonly ["verified", "estimated", "detected_unverified", "missing"];
|
|
3
3
|
export declare const costConfidenceSchema: z.ZodEnum<{
|
|
4
|
-
estimated: "estimated";
|
|
5
4
|
verified: "verified";
|
|
5
|
+
estimated: "estimated";
|
|
6
6
|
detected_unverified: "detected_unverified";
|
|
7
7
|
missing: "missing";
|
|
8
8
|
}>;
|
|
@@ -12,8 +12,8 @@ export declare const spendSourceSchema: z.ZodObject<{
|
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
provider: z.ZodString;
|
|
14
14
|
confidence: z.ZodEnum<{
|
|
15
|
-
estimated: "estimated";
|
|
16
15
|
verified: "verified";
|
|
16
|
+
estimated: "estimated";
|
|
17
17
|
detected_unverified: "detected_unverified";
|
|
18
18
|
missing: "missing";
|
|
19
19
|
}>;
|
|
@@ -59,8 +59,8 @@ export declare const usageRecordSchema: z.ZodObject<{
|
|
|
59
59
|
name: z.ZodString;
|
|
60
60
|
provider: z.ZodString;
|
|
61
61
|
confidence: z.ZodEnum<{
|
|
62
|
-
estimated: "estimated";
|
|
63
62
|
verified: "verified";
|
|
63
|
+
estimated: "estimated";
|
|
64
64
|
detected_unverified: "detected_unverified";
|
|
65
65
|
missing: "missing";
|
|
66
66
|
}>;
|
|
@@ -71,8 +71,8 @@ export declare const usageRecordSchema: z.ZodObject<{
|
|
|
71
71
|
outputTokens: z.ZodNumber;
|
|
72
72
|
amountUsd: z.ZodNullable<z.ZodNumber>;
|
|
73
73
|
costConfidence: z.ZodEnum<{
|
|
74
|
-
estimated: "estimated";
|
|
75
74
|
verified: "verified";
|
|
75
|
+
estimated: "estimated";
|
|
76
76
|
detected_unverified: "detected_unverified";
|
|
77
77
|
missing: "missing";
|
|
78
78
|
}>;
|
|
@@ -134,10 +134,10 @@ export declare function downgradeSampleUsageEvidence(records: UsageRecord[]): Us
|
|
|
134
134
|
export declare function spendComparisonKey(record: UsageRecord): string | undefined;
|
|
135
135
|
export declare const attributionCandidateSchema: z.ZodObject<{
|
|
136
136
|
entityType: z.ZodEnum<{
|
|
137
|
-
|
|
137
|
+
client: "client";
|
|
138
138
|
project: "project";
|
|
139
139
|
agent: "agent";
|
|
140
|
-
|
|
140
|
+
user: "user";
|
|
141
141
|
workspace: "workspace";
|
|
142
142
|
api_key: "api_key";
|
|
143
143
|
}>;
|
|
@@ -150,10 +150,10 @@ export declare const attributionMappingSchema: z.ZodObject<{
|
|
|
150
150
|
usageRecordId: z.ZodString;
|
|
151
151
|
candidates: z.ZodArray<z.ZodObject<{
|
|
152
152
|
entityType: z.ZodEnum<{
|
|
153
|
-
|
|
153
|
+
client: "client";
|
|
154
154
|
project: "project";
|
|
155
155
|
agent: "agent";
|
|
156
|
-
|
|
156
|
+
user: "user";
|
|
157
157
|
workspace: "workspace";
|
|
158
158
|
api_key: "api_key";
|
|
159
159
|
}>;
|
|
@@ -163,10 +163,10 @@ export declare const attributionMappingSchema: z.ZodObject<{
|
|
|
163
163
|
}, z.core.$strip>>;
|
|
164
164
|
selected: z.ZodOptional<z.ZodObject<{
|
|
165
165
|
entityType: z.ZodEnum<{
|
|
166
|
-
|
|
166
|
+
client: "client";
|
|
167
167
|
project: "project";
|
|
168
168
|
agent: "agent";
|
|
169
|
-
|
|
169
|
+
user: "user";
|
|
170
170
|
workspace: "workspace";
|
|
171
171
|
api_key: "api_key";
|
|
172
172
|
}>;
|
|
@@ -188,8 +188,8 @@ export declare const spendBreakdownEntrySchema: z.ZodObject<{
|
|
|
188
188
|
amountUsd: z.ZodNumber;
|
|
189
189
|
recordCount: z.ZodNumber;
|
|
190
190
|
confidence: z.ZodEnum<{
|
|
191
|
-
estimated: "estimated";
|
|
192
191
|
verified: "verified";
|
|
192
|
+
estimated: "estimated";
|
|
193
193
|
detected_unverified: "detected_unverified";
|
|
194
194
|
missing: "missing";
|
|
195
195
|
}>;
|
|
@@ -206,8 +206,8 @@ export declare const spendAnomalySchema: z.ZodObject<{
|
|
|
206
206
|
currentAmountUsd: z.ZodNumber;
|
|
207
207
|
multiplier: z.ZodNumber;
|
|
208
208
|
confidence: z.ZodEnum<{
|
|
209
|
-
estimated: "estimated";
|
|
210
209
|
verified: "verified";
|
|
210
|
+
estimated: "estimated";
|
|
211
211
|
detected_unverified: "detected_unverified";
|
|
212
212
|
missing: "missing";
|
|
213
213
|
}>;
|
|
@@ -223,8 +223,8 @@ export declare const workflowWatchEntrySchema: z.ZodObject<{
|
|
|
223
223
|
shareOfSpend: z.ZodNumber;
|
|
224
224
|
recordCount: z.ZodNumber;
|
|
225
225
|
confidence: z.ZodEnum<{
|
|
226
|
-
estimated: "estimated";
|
|
227
226
|
verified: "verified";
|
|
227
|
+
estimated: "estimated";
|
|
228
228
|
detected_unverified: "detected_unverified";
|
|
229
229
|
missing: "missing";
|
|
230
230
|
}>;
|
|
@@ -248,8 +248,8 @@ export declare const recommendationSchema: z.ZodObject<{
|
|
|
248
248
|
}>;
|
|
249
249
|
estimatedImpactUsd: z.ZodNumber;
|
|
250
250
|
confidence: z.ZodEnum<{
|
|
251
|
-
estimated: "estimated";
|
|
252
251
|
verified: "verified";
|
|
252
|
+
estimated: "estimated";
|
|
253
253
|
detected_unverified: "detected_unverified";
|
|
254
254
|
missing: "missing";
|
|
255
255
|
}>;
|
|
@@ -293,8 +293,8 @@ export declare const spendInsightSchema: z.ZodObject<{
|
|
|
293
293
|
affectedModels: z.ZodArray<z.ZodString>;
|
|
294
294
|
estimatedImpactUsd: z.ZodNumber;
|
|
295
295
|
confidence: z.ZodEnum<{
|
|
296
|
-
estimated: "estimated";
|
|
297
296
|
verified: "verified";
|
|
297
|
+
estimated: "estimated";
|
|
298
298
|
detected_unverified: "detected_unverified";
|
|
299
299
|
missing: "missing";
|
|
300
300
|
}>;
|
|
@@ -306,14 +306,14 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
306
306
|
totalUsd: z.ZodNumber;
|
|
307
307
|
recordCount: z.ZodNumber;
|
|
308
308
|
confidence: z.ZodEnum<{
|
|
309
|
-
estimated: "estimated";
|
|
310
309
|
verified: "verified";
|
|
310
|
+
estimated: "estimated";
|
|
311
311
|
detected_unverified: "detected_unverified";
|
|
312
312
|
missing: "missing";
|
|
313
313
|
}>;
|
|
314
314
|
confidenceBreakdown: z.ZodRecord<z.ZodEnum<{
|
|
315
|
-
estimated: "estimated";
|
|
316
315
|
verified: "verified";
|
|
316
|
+
estimated: "estimated";
|
|
317
317
|
detected_unverified: "detected_unverified";
|
|
318
318
|
missing: "missing";
|
|
319
319
|
}>, z.ZodNumber>;
|
|
@@ -322,8 +322,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
322
322
|
amountUsd: z.ZodNumber;
|
|
323
323
|
recordCount: z.ZodNumber;
|
|
324
324
|
confidence: z.ZodEnum<{
|
|
325
|
-
estimated: "estimated";
|
|
326
325
|
verified: "verified";
|
|
326
|
+
estimated: "estimated";
|
|
327
327
|
detected_unverified: "detected_unverified";
|
|
328
328
|
missing: "missing";
|
|
329
329
|
}>;
|
|
@@ -333,8 +333,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
333
333
|
amountUsd: z.ZodNumber;
|
|
334
334
|
recordCount: z.ZodNumber;
|
|
335
335
|
confidence: z.ZodEnum<{
|
|
336
|
-
estimated: "estimated";
|
|
337
336
|
verified: "verified";
|
|
337
|
+
estimated: "estimated";
|
|
338
338
|
detected_unverified: "detected_unverified";
|
|
339
339
|
missing: "missing";
|
|
340
340
|
}>;
|
|
@@ -344,8 +344,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
344
344
|
amountUsd: z.ZodNumber;
|
|
345
345
|
recordCount: z.ZodNumber;
|
|
346
346
|
confidence: z.ZodEnum<{
|
|
347
|
-
estimated: "estimated";
|
|
348
347
|
verified: "verified";
|
|
348
|
+
estimated: "estimated";
|
|
349
349
|
detected_unverified: "detected_unverified";
|
|
350
350
|
missing: "missing";
|
|
351
351
|
}>;
|
|
@@ -355,8 +355,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
355
355
|
amountUsd: z.ZodNumber;
|
|
356
356
|
recordCount: z.ZodNumber;
|
|
357
357
|
confidence: z.ZodEnum<{
|
|
358
|
-
estimated: "estimated";
|
|
359
358
|
verified: "verified";
|
|
359
|
+
estimated: "estimated";
|
|
360
360
|
detected_unverified: "detected_unverified";
|
|
361
361
|
missing: "missing";
|
|
362
362
|
}>;
|
|
@@ -366,8 +366,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
366
366
|
amountUsd: z.ZodNumber;
|
|
367
367
|
recordCount: z.ZodNumber;
|
|
368
368
|
confidence: z.ZodEnum<{
|
|
369
|
-
estimated: "estimated";
|
|
370
369
|
verified: "verified";
|
|
370
|
+
estimated: "estimated";
|
|
371
371
|
detected_unverified: "detected_unverified";
|
|
372
372
|
missing: "missing";
|
|
373
373
|
}>;
|
|
@@ -377,8 +377,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
377
377
|
amountUsd: z.ZodNumber;
|
|
378
378
|
recordCount: z.ZodNumber;
|
|
379
379
|
confidence: z.ZodEnum<{
|
|
380
|
-
estimated: "estimated";
|
|
381
380
|
verified: "verified";
|
|
381
|
+
estimated: "estimated";
|
|
382
382
|
detected_unverified: "detected_unverified";
|
|
383
383
|
missing: "missing";
|
|
384
384
|
}>;
|
|
@@ -388,8 +388,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
388
388
|
amountUsd: z.ZodNumber;
|
|
389
389
|
recordCount: z.ZodNumber;
|
|
390
390
|
confidence: z.ZodEnum<{
|
|
391
|
-
estimated: "estimated";
|
|
392
391
|
verified: "verified";
|
|
392
|
+
estimated: "estimated";
|
|
393
393
|
detected_unverified: "detected_unverified";
|
|
394
394
|
missing: "missing";
|
|
395
395
|
}>;
|
|
@@ -399,8 +399,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
399
399
|
amountUsd: z.ZodNumber;
|
|
400
400
|
recordCount: z.ZodNumber;
|
|
401
401
|
confidence: z.ZodEnum<{
|
|
402
|
-
estimated: "estimated";
|
|
403
402
|
verified: "verified";
|
|
403
|
+
estimated: "estimated";
|
|
404
404
|
detected_unverified: "detected_unverified";
|
|
405
405
|
missing: "missing";
|
|
406
406
|
}>;
|
|
@@ -415,8 +415,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
415
415
|
shareOfSpend: z.ZodNumber;
|
|
416
416
|
recordCount: z.ZodNumber;
|
|
417
417
|
confidence: z.ZodEnum<{
|
|
418
|
-
estimated: "estimated";
|
|
419
418
|
verified: "verified";
|
|
419
|
+
estimated: "estimated";
|
|
420
420
|
detected_unverified: "detected_unverified";
|
|
421
421
|
missing: "missing";
|
|
422
422
|
}>;
|
|
@@ -437,8 +437,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
437
437
|
currentAmountUsd: z.ZodNumber;
|
|
438
438
|
multiplier: z.ZodNumber;
|
|
439
439
|
confidence: z.ZodEnum<{
|
|
440
|
-
estimated: "estimated";
|
|
441
440
|
verified: "verified";
|
|
441
|
+
estimated: "estimated";
|
|
442
442
|
detected_unverified: "detected_unverified";
|
|
443
443
|
missing: "missing";
|
|
444
444
|
}>;
|
|
@@ -456,8 +456,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
456
456
|
}>;
|
|
457
457
|
estimatedImpactUsd: z.ZodNumber;
|
|
458
458
|
confidence: z.ZodEnum<{
|
|
459
|
-
estimated: "estimated";
|
|
460
459
|
verified: "verified";
|
|
460
|
+
estimated: "estimated";
|
|
461
461
|
detected_unverified: "detected_unverified";
|
|
462
462
|
missing: "missing";
|
|
463
463
|
}>;
|
|
@@ -494,8 +494,8 @@ export declare const spendSummarySchema: z.ZodObject<{
|
|
|
494
494
|
affectedModels: z.ZodArray<z.ZodString>;
|
|
495
495
|
estimatedImpactUsd: z.ZodNumber;
|
|
496
496
|
confidence: z.ZodEnum<{
|
|
497
|
-
estimated: "estimated";
|
|
498
497
|
verified: "verified";
|
|
498
|
+
estimated: "estimated";
|
|
499
499
|
detected_unverified: "detected_unverified";
|
|
500
500
|
missing: "missing";
|
|
501
501
|
}>;
|