@agent-finops/core 0.9.2 → 0.9.4

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.
@@ -89,14 +89,14 @@ declare const documentSchema: z.ZodObject<{
89
89
  contextTokens: z.ZodNumber;
90
90
  totalTokens: z.ZodNumber;
91
91
  source: z.ZodEnum<{
92
- assistant_message_usage: "assistant_message_usage";
93
92
  transcript_last_token_usage: "transcript_last_token_usage";
93
+ assistant_message_usage: "assistant_message_usage";
94
94
  call_usage: "call_usage";
95
95
  }>;
96
96
  }, z.core.$strict>>;
97
97
  usageScope: z.ZodOptional<z.ZodEnum<{
98
- turn: "turn";
99
98
  session_cumulative: "session_cumulative";
99
+ turn: "turn";
100
100
  }>>;
101
101
  usageSupport: z.ZodOptional<z.ZodEnum<{
102
102
  complete: "complete";
@@ -111,9 +111,9 @@ declare const documentSchema: z.ZodObject<{
111
111
  not_separately_reported: "not_separately_reported";
112
112
  }>;
113
113
  cacheWriteTokens: z.ZodEnum<{
114
+ partial: "partial";
114
115
  observed: "observed";
115
116
  not_separately_reported: "not_separately_reported";
116
- partial: "partial";
117
117
  }>;
118
118
  thoughtTokens: z.ZodEnum<{
119
119
  observed: "observed";
@@ -128,8 +128,8 @@ declare const documentSchema: z.ZodObject<{
128
128
  calculated_partial: "calculated_partial";
129
129
  }>;
130
130
  reportedTotalTokens: z.ZodEnum<{
131
- provider_reported: "provider_reported";
132
131
  not_reported: "not_reported";
132
+ provider_reported: "provider_reported";
133
133
  }>;
134
134
  }, z.core.$strict>>;
135
135
  sourceVersion: z.ZodOptional<z.ZodString>;
@@ -150,8 +150,8 @@ declare const documentSchema: z.ZodObject<{
150
150
  total: z.ZodOptional<z.ZodNumber>;
151
151
  cacheAccounting: z.ZodEnum<{
152
152
  unknown: "unknown";
153
- included: "included";
154
153
  none: "none";
154
+ included: "included";
155
155
  }>;
156
156
  }, z.core.$strict>>;
157
157
  usage: z.ZodObject<{
@@ -188,13 +188,14 @@ declare const documentSchema: z.ZodObject<{
188
188
  activity: z.ZodOptional<z.ZodObject<{
189
189
  summary: z.ZodString;
190
190
  kind: z.ZodEnum<{
191
- project: "project";
192
- agent: "agent";
193
191
  file: "file";
192
+ agent: "agent";
194
193
  task: "task";
194
+ project: "project";
195
195
  automation: "automation";
196
196
  }>;
197
197
  action: z.ZodEnum<{
198
+ working: "working";
198
199
  building: "building";
199
200
  refining: "refining";
200
201
  fixing: "fixing";
@@ -204,12 +205,11 @@ declare const documentSchema: z.ZodObject<{
204
205
  configuring: "configuring";
205
206
  publishing: "publishing";
206
207
  running: "running";
207
- working: "working";
208
208
  }>;
209
209
  source: z.ZodEnum<{
210
+ user_prompts: "user_prompts";
210
211
  project: "project";
211
212
  agent_title: "agent_title";
212
- user_prompts: "user_prompts";
213
213
  file_activity: "file_activity";
214
214
  }>;
215
215
  promptCount: z.ZodNumber;
@@ -261,9 +261,9 @@ declare const documentSchema: z.ZodObject<{
261
261
  }, z.core.$strict>>;
262
262
  diagnostics: z.ZodArray<z.ZodObject<{
263
263
  code: z.ZodEnum<{
264
- unsupported_token_shape: "unsupported_token_shape";
265
264
  malformed_jsonl: "malformed_jsonl";
266
265
  malformed_session_file: "malformed_session_file";
266
+ unsupported_token_shape: "unsupported_token_shape";
267
267
  }>;
268
268
  count: z.ZodNumber;
269
269
  }, z.core.$strict>>;
@@ -307,14 +307,14 @@ declare const documentSchema: z.ZodObject<{
307
307
  contextTokens: z.ZodNumber;
308
308
  totalTokens: z.ZodNumber;
309
309
  source: z.ZodEnum<{
310
- assistant_message_usage: "assistant_message_usage";
311
310
  transcript_last_token_usage: "transcript_last_token_usage";
311
+ assistant_message_usage: "assistant_message_usage";
312
312
  call_usage: "call_usage";
313
313
  }>;
314
314
  }, z.core.$strict>>;
315
315
  usageScope: z.ZodOptional<z.ZodEnum<{
316
- turn: "turn";
317
316
  session_cumulative: "session_cumulative";
317
+ turn: "turn";
318
318
  }>>;
319
319
  usageSupport: z.ZodOptional<z.ZodEnum<{
320
320
  complete: "complete";
@@ -329,9 +329,9 @@ declare const documentSchema: z.ZodObject<{
329
329
  not_separately_reported: "not_separately_reported";
330
330
  }>;
331
331
  cacheWriteTokens: z.ZodEnum<{
332
+ partial: "partial";
332
333
  observed: "observed";
333
334
  not_separately_reported: "not_separately_reported";
334
- partial: "partial";
335
335
  }>;
336
336
  thoughtTokens: z.ZodEnum<{
337
337
  observed: "observed";
@@ -346,8 +346,8 @@ declare const documentSchema: z.ZodObject<{
346
346
  calculated_partial: "calculated_partial";
347
347
  }>;
348
348
  reportedTotalTokens: z.ZodEnum<{
349
- provider_reported: "provider_reported";
350
349
  not_reported: "not_reported";
350
+ provider_reported: "provider_reported";
351
351
  }>;
352
352
  }, z.core.$strict>>;
353
353
  sourceVersion: z.ZodOptional<z.ZodString>;
@@ -368,8 +368,8 @@ declare const documentSchema: z.ZodObject<{
368
368
  total: z.ZodOptional<z.ZodNumber>;
369
369
  cacheAccounting: z.ZodEnum<{
370
370
  unknown: "unknown";
371
- included: "included";
372
371
  none: "none";
372
+ included: "included";
373
373
  }>;
374
374
  }, z.core.$strict>>;
375
375
  usage: z.ZodObject<{
@@ -406,13 +406,14 @@ declare const documentSchema: z.ZodObject<{
406
406
  activity: z.ZodOptional<z.ZodObject<{
407
407
  summary: z.ZodString;
408
408
  kind: z.ZodEnum<{
409
- project: "project";
410
- agent: "agent";
411
409
  file: "file";
410
+ agent: "agent";
412
411
  task: "task";
412
+ project: "project";
413
413
  automation: "automation";
414
414
  }>;
415
415
  action: z.ZodEnum<{
416
+ working: "working";
416
417
  building: "building";
417
418
  refining: "refining";
418
419
  fixing: "fixing";
@@ -422,12 +423,11 @@ declare const documentSchema: z.ZodObject<{
422
423
  configuring: "configuring";
423
424
  publishing: "publishing";
424
425
  running: "running";
425
- working: "working";
426
426
  }>;
427
427
  source: z.ZodEnum<{
428
+ user_prompts: "user_prompts";
428
429
  project: "project";
429
430
  agent_title: "agent_title";
430
- user_prompts: "user_prompts";
431
431
  file_activity: "file_activity";
432
432
  }>;
433
433
  promptCount: z.ZodNumber;
@@ -479,9 +479,9 @@ declare const documentSchema: z.ZodObject<{
479
479
  }, z.core.$strict>>;
480
480
  diagnostics: z.ZodArray<z.ZodObject<{
481
481
  code: z.ZodEnum<{
482
- unsupported_token_shape: "unsupported_token_shape";
483
482
  malformed_jsonl: "malformed_jsonl";
484
483
  malformed_session_file: "malformed_session_file";
484
+ unsupported_token_shape: "unsupported_token_shape";
485
485
  }>;
486
486
  count: z.ZodNumber;
487
487
  }, z.core.$strict>>;
@@ -60,14 +60,14 @@ declare const valueSchema: z.ZodObject<{
60
60
  contextTokens: z.ZodNumber;
61
61
  totalTokens: z.ZodNumber;
62
62
  source: z.ZodEnum<{
63
- assistant_message_usage: "assistant_message_usage";
64
63
  transcript_last_token_usage: "transcript_last_token_usage";
64
+ assistant_message_usage: "assistant_message_usage";
65
65
  call_usage: "call_usage";
66
66
  }>;
67
67
  }, z.core.$strict>>;
68
68
  usageScope: z.ZodOptional<z.ZodEnum<{
69
- turn: "turn";
70
69
  session_cumulative: "session_cumulative";
70
+ turn: "turn";
71
71
  }>>;
72
72
  usageSupport: z.ZodOptional<z.ZodEnum<{
73
73
  complete: "complete";
@@ -82,9 +82,9 @@ declare const valueSchema: z.ZodObject<{
82
82
  not_separately_reported: "not_separately_reported";
83
83
  }>;
84
84
  cacheWriteTokens: z.ZodEnum<{
85
+ partial: "partial";
85
86
  observed: "observed";
86
87
  not_separately_reported: "not_separately_reported";
87
- partial: "partial";
88
88
  }>;
89
89
  thoughtTokens: z.ZodEnum<{
90
90
  observed: "observed";
@@ -99,8 +99,8 @@ declare const valueSchema: z.ZodObject<{
99
99
  calculated_partial: "calculated_partial";
100
100
  }>;
101
101
  reportedTotalTokens: z.ZodEnum<{
102
- provider_reported: "provider_reported";
103
102
  not_reported: "not_reported";
103
+ provider_reported: "provider_reported";
104
104
  }>;
105
105
  }, z.core.$strict>>;
106
106
  sourceVersion: z.ZodOptional<z.ZodString>;
@@ -121,8 +121,8 @@ declare const valueSchema: z.ZodObject<{
121
121
  total: z.ZodOptional<z.ZodNumber>;
122
122
  cacheAccounting: z.ZodEnum<{
123
123
  unknown: "unknown";
124
- included: "included";
125
124
  none: "none";
125
+ included: "included";
126
126
  }>;
127
127
  }, z.core.$strict>>;
128
128
  usage: z.ZodObject<{
@@ -159,13 +159,14 @@ declare const valueSchema: z.ZodObject<{
159
159
  activity: z.ZodOptional<z.ZodObject<{
160
160
  summary: z.ZodString;
161
161
  kind: z.ZodEnum<{
162
- project: "project";
163
- agent: "agent";
164
162
  file: "file";
163
+ agent: "agent";
165
164
  task: "task";
165
+ project: "project";
166
166
  automation: "automation";
167
167
  }>;
168
168
  action: z.ZodEnum<{
169
+ working: "working";
169
170
  building: "building";
170
171
  refining: "refining";
171
172
  fixing: "fixing";
@@ -175,12 +176,11 @@ declare const valueSchema: z.ZodObject<{
175
176
  configuring: "configuring";
176
177
  publishing: "publishing";
177
178
  running: "running";
178
- working: "working";
179
179
  }>;
180
180
  source: z.ZodEnum<{
181
+ user_prompts: "user_prompts";
181
182
  project: "project";
182
183
  agent_title: "agent_title";
183
- user_prompts: "user_prompts";
184
184
  file_activity: "file_activity";
185
185
  }>;
186
186
  promptCount: z.ZodNumber;
@@ -232,9 +232,9 @@ declare const valueSchema: z.ZodObject<{
232
232
  }, z.core.$strict>>;
233
233
  diagnostics: z.ZodArray<z.ZodObject<{
234
234
  code: z.ZodEnum<{
235
- unsupported_token_shape: "unsupported_token_shape";
236
235
  malformed_jsonl: "malformed_jsonl";
237
236
  malformed_session_file: "malformed_session_file";
237
+ unsupported_token_shape: "unsupported_token_shape";
238
238
  }>;
239
239
  count: z.ZodNumber;
240
240
  }, z.core.$strict>>;
@@ -285,14 +285,14 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
285
285
  contextTokens: z.ZodNumber;
286
286
  totalTokens: z.ZodNumber;
287
287
  source: z.ZodEnum<{
288
- assistant_message_usage: "assistant_message_usage";
289
288
  transcript_last_token_usage: "transcript_last_token_usage";
289
+ assistant_message_usage: "assistant_message_usage";
290
290
  call_usage: "call_usage";
291
291
  }>;
292
292
  }, z.core.$strict>>;
293
293
  usageScope: z.ZodOptional<z.ZodEnum<{
294
- turn: "turn";
295
294
  session_cumulative: "session_cumulative";
295
+ turn: "turn";
296
296
  }>>;
297
297
  usageSupport: z.ZodOptional<z.ZodEnum<{
298
298
  complete: "complete";
@@ -307,9 +307,9 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
307
307
  not_separately_reported: "not_separately_reported";
308
308
  }>;
309
309
  cacheWriteTokens: z.ZodEnum<{
310
+ partial: "partial";
310
311
  observed: "observed";
311
312
  not_separately_reported: "not_separately_reported";
312
- partial: "partial";
313
313
  }>;
314
314
  thoughtTokens: z.ZodEnum<{
315
315
  observed: "observed";
@@ -324,8 +324,8 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
324
324
  calculated_partial: "calculated_partial";
325
325
  }>;
326
326
  reportedTotalTokens: z.ZodEnum<{
327
- provider_reported: "provider_reported";
328
327
  not_reported: "not_reported";
328
+ provider_reported: "provider_reported";
329
329
  }>;
330
330
  }, z.core.$strict>>;
331
331
  sourceVersion: z.ZodOptional<z.ZodString>;
@@ -346,8 +346,8 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
346
346
  total: z.ZodOptional<z.ZodNumber>;
347
347
  cacheAccounting: z.ZodEnum<{
348
348
  unknown: "unknown";
349
- included: "included";
350
349
  none: "none";
350
+ included: "included";
351
351
  }>;
352
352
  }, z.core.$strict>>;
353
353
  usage: z.ZodObject<{
@@ -384,13 +384,14 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
384
384
  activity: z.ZodOptional<z.ZodObject<{
385
385
  summary: z.ZodString;
386
386
  kind: z.ZodEnum<{
387
- project: "project";
388
- agent: "agent";
389
387
  file: "file";
388
+ agent: "agent";
390
389
  task: "task";
390
+ project: "project";
391
391
  automation: "automation";
392
392
  }>;
393
393
  action: z.ZodEnum<{
394
+ working: "working";
394
395
  building: "building";
395
396
  refining: "refining";
396
397
  fixing: "fixing";
@@ -400,12 +401,11 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
400
401
  configuring: "configuring";
401
402
  publishing: "publishing";
402
403
  running: "running";
403
- working: "working";
404
404
  }>;
405
405
  source: z.ZodEnum<{
406
+ user_prompts: "user_prompts";
406
407
  project: "project";
407
408
  agent_title: "agent_title";
408
- user_prompts: "user_prompts";
409
409
  file_activity: "file_activity";
410
410
  }>;
411
411
  promptCount: z.ZodNumber;
@@ -457,9 +457,9 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
457
457
  }, z.core.$strict>>;
458
458
  diagnostics: z.ZodArray<z.ZodObject<{
459
459
  code: z.ZodEnum<{
460
- unsupported_token_shape: "unsupported_token_shape";
461
460
  malformed_jsonl: "malformed_jsonl";
462
461
  malformed_session_file: "malformed_session_file";
462
+ unsupported_token_shape: "unsupported_token_shape";
463
463
  }>;
464
464
  count: z.ZodNumber;
465
465
  }, z.core.$strict>>;
@@ -27,9 +27,9 @@ export declare const receiptShareCardV0Schema: z.ZodObject<{
27
27
  currency: z.ZodLiteral<"USD">;
28
28
  windowDays: z.ZodNumber;
29
29
  mode: z.ZodEnum<{
30
- "local-logs": "local-logs";
31
- connected: "connected";
32
30
  mixed: "mixed";
31
+ connected: "connected";
32
+ "local-logs": "local-logs";
33
33
  }>;
34
34
  financials: z.ZodObject<{
35
35
  subscriptionCommitted: z.ZodObject<{
@@ -47,8 +47,8 @@ export declare const receiptShareCardV0Schema: z.ZodObject<{
47
47
  providerBilled: z.ZodObject<{
48
48
  amountUsd: z.ZodNullable<z.ZodNumber>;
49
49
  financialEvidence: z.ZodEnum<{
50
- missing: "missing";
51
50
  verified: "verified";
51
+ missing: "missing";
52
52
  }>;
53
53
  }, z.core.$strict>;
54
54
  blended: z.ZodNull;
@@ -58,9 +58,9 @@ export declare const receiptShareCardV0Schema: z.ZodObject<{
58
58
  recordCount: z.ZodNumber;
59
59
  confidence: z.ZodEnum<{
60
60
  estimated: "estimated";
61
- missing: "missing";
62
61
  verified: "verified";
63
62
  detected_unverified: "detected_unverified";
63
+ missing: "missing";
64
64
  }>;
65
65
  cuts: z.ZodArray<z.ZodObject<{
66
66
  template: z.ZodEnum<{
@@ -89,9 +89,9 @@ export declare const receiptEmailRequestV0Schema: z.ZodObject<{
89
89
  currency: z.ZodLiteral<"USD">;
90
90
  windowDays: z.ZodNumber;
91
91
  mode: z.ZodEnum<{
92
- "local-logs": "local-logs";
93
- connected: "connected";
94
92
  mixed: "mixed";
93
+ connected: "connected";
94
+ "local-logs": "local-logs";
95
95
  }>;
96
96
  financials: z.ZodObject<{
97
97
  subscriptionCommitted: z.ZodObject<{
@@ -109,8 +109,8 @@ export declare const receiptEmailRequestV0Schema: z.ZodObject<{
109
109
  providerBilled: z.ZodObject<{
110
110
  amountUsd: z.ZodNullable<z.ZodNumber>;
111
111
  financialEvidence: z.ZodEnum<{
112
- missing: "missing";
113
112
  verified: "verified";
113
+ missing: "missing";
114
114
  }>;
115
115
  }, z.core.$strict>;
116
116
  blended: z.ZodNull;
@@ -120,9 +120,9 @@ export declare const receiptEmailRequestV0Schema: z.ZodObject<{
120
120
  recordCount: z.ZodNumber;
121
121
  confidence: z.ZodEnum<{
122
122
  estimated: "estimated";
123
- missing: "missing";
124
123
  verified: "verified";
125
124
  detected_unverified: "detected_unverified";
125
+ missing: "missing";
126
126
  }>;
127
127
  cuts: z.ZodArray<z.ZodObject<{
128
128
  template: z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-finops/core",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "funding": "https://asktilden.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",