terse-types 0.19.1 → 0.20.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/Billing.d.ts CHANGED
@@ -47,6 +47,7 @@ export declare const balanceSummarySchema: z.ZodObject<{
47
47
  effectiveAt: z.ZodCoercedDate<unknown>;
48
48
  period: z.ZodEnum<typeof TimePeriods>;
49
49
  }, z.core.$strip>], "kind">>;
50
+ estimatedOverageUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
51
  }, z.core.$strip>;
51
52
  export type BalanceSummary = z.infer<typeof balanceSummarySchema>;
52
53
  export declare const usageBucketSchema: z.ZodObject<{
@@ -94,6 +95,7 @@ export declare const billingContextResponseSchema: z.ZodObject<{
94
95
  effectiveAt: z.ZodCoercedDate<unknown>;
95
96
  period: z.ZodEnum<typeof TimePeriods>;
96
97
  }, z.core.$strip>], "kind">>;
98
+ estimatedOverageUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
99
  }, z.core.$strip>;
98
100
  }, z.core.$strip>;
99
101
  export type BillingContextResponse = z.infer<typeof billingContextResponseSchema>;
package/dist/Billing.js CHANGED
@@ -44,7 +44,9 @@ export const balanceSummarySchema = z.object({
44
44
  periodEnd: z.coerce.date(),
45
45
  hardCap: z.number(),
46
46
  canBuyTopups: z.boolean(),
47
- scheduledChange: billingScheduledChangeSchema.nullable()
47
+ scheduledChange: billingScheduledChangeSchema.nullable(),
48
+ /** Overage charged so far this period, in USD, on plans that bill usage past their included credits. Null on plans that stop at zero. */
49
+ estimatedOverageUsd: z.number().nullable().optional()
48
50
  });
49
51
  export const usageBucketSchema = z.object({
50
52
  startTimestamp: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.19.1",
3
+ "version": "0.20.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",