@kvbox/server 0.6.17 → 0.6.18
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/kvbox-server.js +12 -4
- package/dist/kvbox-server.js.map +1 -1
- package/package.json +1 -1
package/dist/kvbox-server.js
CHANGED
|
@@ -222,9 +222,15 @@ var PricingSchema = z.object({
|
|
|
222
222
|
cronHour: z.number().nonnegative().default(0),
|
|
223
223
|
/**
|
|
224
224
|
* One backup a person starts, of anything, charged once it is ready (decision "A backup taken by hand
|
|
225
|
-
* costs a flat price…"); a failed one
|
|
225
|
+
* costs a flat price…"); a failed one costs nothing. A price list from before it charges nothing.
|
|
226
226
|
*/
|
|
227
|
-
backup: z.number().nonnegative().default(0)
|
|
227
|
+
backup: z.number().nonnegative().default(0),
|
|
228
|
+
/**
|
|
229
|
+
* One nightly backup of a box, a volume or the object storage, charged once it is ready (decision "A nightly
|
|
230
|
+
* backup you switch on is charged…"): their switch is off until someone turns it on. A managed database's
|
|
231
|
+
* nightly backup, on from its creation, is included in its price. A price list from before it charges nothing.
|
|
232
|
+
*/
|
|
233
|
+
scheduledBackup: z.number().nonnegative().default(0)
|
|
228
234
|
});
|
|
229
235
|
var PriceListSchema = PricingSchema.extend({ welcomeCredit: z.number().nonnegative() });
|
|
230
236
|
var HOUR_MS = 36e5;
|
|
@@ -2697,7 +2703,9 @@ var BackupUsageSchema = z6.object({
|
|
|
2697
2703
|
ownerKind: z6.enum(["user", "org"]).optional(),
|
|
2698
2704
|
/** How many paid backups turned ready in the window. */
|
|
2699
2705
|
count: z6.number().int(),
|
|
2700
|
-
cost: z6.object({ amount: z6.number(), currency: z6.string() })
|
|
2706
|
+
cost: z6.object({ amount: z6.number(), currency: z6.string() }),
|
|
2707
|
+
/** The part of `cost` that nightly backups someone switched on make up: it recurs, the rest is one-off. Absent when none. */
|
|
2708
|
+
nightlyCost: z6.number().optional()
|
|
2701
2709
|
});
|
|
2702
2710
|
var UsageDayItemSchema = z6.object({
|
|
2703
2711
|
id: z6.string(),
|
|
@@ -7438,7 +7446,7 @@ function versionOf(srcFileUrl, injected) {
|
|
|
7438
7446
|
}
|
|
7439
7447
|
|
|
7440
7448
|
// src/version.ts
|
|
7441
|
-
var VERSION = versionOf(import.meta.url, true ? "0.6.
|
|
7449
|
+
var VERSION = versionOf(import.meta.url, true ? "0.6.18" : void 0);
|
|
7442
7450
|
|
|
7443
7451
|
// src/caller.ts
|
|
7444
7452
|
import { createHash as createHash4, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|