@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.
- package/dist/index.js +3 -1
- 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
|
-
|
|
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(),
|