@syncended/dsh-usage 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21,7 +21,9 @@ const PriceSchema = z.object({
21
21
  cacheWrite: z.number().min(0).default(0),
22
22
  minPromptTokens: z.number().min(0),
23
23
  maxPromptTokens: z.number().min(0),
24
- utcWindows: z.array(UtcWindowSchema),
24
+ // Schemastery arrays default to [], so wrap this optional field in a union
25
+ // to preserve undefined for ordinary flat/context-tiered prices.
26
+ utcWindows: z.union([z.array(UtcWindowSchema), z.const(undefined)]),
25
27
  outsideUtcWindows: z.boolean(),
26
28
  validFrom: z.string(),
27
29
  validTo: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncended/dsh-usage",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Token usage, model cost analytics, trends, and activity heatmaps for DeepSeek Harness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",