harvester_sdk 1.0.62 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -3
- package/dist/index.js +3 -1
- package/dist/types.d.ts +15 -5
- package/dist/types.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -1
- package/types.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -994,7 +994,9 @@ export declare const MongoEventMonitoringSchema: Schema<any, import("mongoose").
|
|
|
994
994
|
total_tokens: number;
|
|
995
995
|
prompt_tokens: number;
|
|
996
996
|
completion_tokens: number;
|
|
997
|
-
|
|
997
|
+
prompt_tokens_cost: number;
|
|
998
|
+
completion_tokens_cost: number;
|
|
999
|
+
total_cost: number;
|
|
998
1000
|
model?: string | null | undefined;
|
|
999
1001
|
} | null | undefined;
|
|
1000
1002
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -1013,7 +1015,9 @@ export declare const MongoEventMonitoringSchema: Schema<any, import("mongoose").
|
|
|
1013
1015
|
total_tokens: number;
|
|
1014
1016
|
prompt_tokens: number;
|
|
1015
1017
|
completion_tokens: number;
|
|
1016
|
-
|
|
1018
|
+
prompt_tokens_cost: number;
|
|
1019
|
+
completion_tokens_cost: number;
|
|
1020
|
+
total_cost: number;
|
|
1017
1021
|
model?: string | null | undefined;
|
|
1018
1022
|
} | null | undefined;
|
|
1019
1023
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
@@ -1032,7 +1036,9 @@ export declare const MongoEventMonitoringSchema: Schema<any, import("mongoose").
|
|
|
1032
1036
|
total_tokens: number;
|
|
1033
1037
|
prompt_tokens: number;
|
|
1034
1038
|
completion_tokens: number;
|
|
1035
|
-
|
|
1039
|
+
prompt_tokens_cost: number;
|
|
1040
|
+
completion_tokens_cost: number;
|
|
1041
|
+
total_cost: number;
|
|
1036
1042
|
model?: string | null | undefined;
|
|
1037
1043
|
} | null | undefined;
|
|
1038
1044
|
}> & {
|
package/dist/index.js
CHANGED
|
@@ -409,7 +409,9 @@ exports.MongoEventMonitoringSchema = new mongoose_1.Schema({
|
|
|
409
409
|
total_tokens: { type: Number, default: 0 },
|
|
410
410
|
prompt_tokens: { type: Number, default: 0 },
|
|
411
411
|
completion_tokens: { type: Number, default: 0 },
|
|
412
|
-
|
|
412
|
+
prompt_tokens_cost: { type: Number, default: 0 },
|
|
413
|
+
completion_tokens_cost: { type: Number, default: 0 },
|
|
414
|
+
total_cost: { type: Number, default: 0 },
|
|
413
415
|
},
|
|
414
416
|
}, {
|
|
415
417
|
versionKey: false,
|
package/dist/types.d.ts
CHANGED
|
@@ -2388,19 +2388,25 @@ export declare const zodEventMonitoringSchema: z.ZodObject<{
|
|
|
2388
2388
|
total_tokens: z.ZodNumber;
|
|
2389
2389
|
prompt_tokens: z.ZodNumber;
|
|
2390
2390
|
completion_tokens: z.ZodNumber;
|
|
2391
|
-
|
|
2391
|
+
prompt_tokens_cost: z.ZodNumber;
|
|
2392
|
+
completion_tokens_cost: z.ZodNumber;
|
|
2393
|
+
total_cost: z.ZodNumber;
|
|
2392
2394
|
}, "strip", z.ZodTypeAny, {
|
|
2393
2395
|
model: string;
|
|
2394
2396
|
total_tokens: number;
|
|
2395
2397
|
prompt_tokens: number;
|
|
2396
2398
|
completion_tokens: number;
|
|
2397
|
-
|
|
2399
|
+
prompt_tokens_cost: number;
|
|
2400
|
+
completion_tokens_cost: number;
|
|
2401
|
+
total_cost: number;
|
|
2398
2402
|
}, {
|
|
2399
2403
|
model: string;
|
|
2400
2404
|
total_tokens: number;
|
|
2401
2405
|
prompt_tokens: number;
|
|
2402
2406
|
completion_tokens: number;
|
|
2403
|
-
|
|
2407
|
+
prompt_tokens_cost: number;
|
|
2408
|
+
completion_tokens_cost: number;
|
|
2409
|
+
total_cost: number;
|
|
2404
2410
|
}>;
|
|
2405
2411
|
}, "strip", z.ZodTypeAny, {
|
|
2406
2412
|
created_at: number;
|
|
@@ -2417,7 +2423,9 @@ export declare const zodEventMonitoringSchema: z.ZodObject<{
|
|
|
2417
2423
|
total_tokens: number;
|
|
2418
2424
|
prompt_tokens: number;
|
|
2419
2425
|
completion_tokens: number;
|
|
2420
|
-
|
|
2426
|
+
prompt_tokens_cost: number;
|
|
2427
|
+
completion_tokens_cost: number;
|
|
2428
|
+
total_cost: number;
|
|
2421
2429
|
};
|
|
2422
2430
|
geo_selection_group_id?: string | undefined;
|
|
2423
2431
|
event_ids?: string[] | undefined;
|
|
@@ -2436,7 +2444,9 @@ export declare const zodEventMonitoringSchema: z.ZodObject<{
|
|
|
2436
2444
|
total_tokens: number;
|
|
2437
2445
|
prompt_tokens: number;
|
|
2438
2446
|
completion_tokens: number;
|
|
2439
|
-
|
|
2447
|
+
prompt_tokens_cost: number;
|
|
2448
|
+
completion_tokens_cost: number;
|
|
2449
|
+
total_cost: number;
|
|
2440
2450
|
};
|
|
2441
2451
|
geo_selection_group_id?: string | undefined;
|
|
2442
2452
|
event_ids?: string[] | undefined;
|
package/dist/types.js
CHANGED
|
@@ -500,6 +500,8 @@ exports.zodEventMonitoringSchema = zod_1.z.object({
|
|
|
500
500
|
total_tokens: zod_1.z.number(),
|
|
501
501
|
prompt_tokens: zod_1.z.number(),
|
|
502
502
|
completion_tokens: zod_1.z.number(),
|
|
503
|
-
|
|
503
|
+
prompt_tokens_cost: zod_1.z.number(),
|
|
504
|
+
completion_tokens_cost: zod_1.z.number(),
|
|
505
|
+
total_cost: zod_1.z.number(),
|
|
504
506
|
}),
|
|
505
507
|
});
|
package/index.ts
CHANGED
|
@@ -452,7 +452,9 @@ export const MongoEventMonitoringSchema = new Schema(
|
|
|
452
452
|
total_tokens: { type: Number, default: 0 },
|
|
453
453
|
prompt_tokens: { type: Number, default: 0 },
|
|
454
454
|
completion_tokens: { type: Number, default: 0 },
|
|
455
|
-
|
|
455
|
+
prompt_tokens_cost: { type: Number, default: 0 },
|
|
456
|
+
completion_tokens_cost: { type: Number, default: 0 },
|
|
457
|
+
total_cost: { type: Number, default: 0 },
|
|
456
458
|
},
|
|
457
459
|
},
|
|
458
460
|
{
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -575,7 +575,9 @@ export const zodEventMonitoringSchema = z.object({
|
|
|
575
575
|
total_tokens: z.number(),
|
|
576
576
|
prompt_tokens: z.number(),
|
|
577
577
|
completion_tokens: z.number(),
|
|
578
|
-
|
|
578
|
+
prompt_tokens_cost: z.number(),
|
|
579
|
+
completion_tokens_cost: z.number(),
|
|
580
|
+
total_cost: z.number(),
|
|
579
581
|
}),
|
|
580
582
|
});
|
|
581
583
|
|