@zixt/host 0.0.131 → 0.0.132
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 +35 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { homedir as homedir4 } from "node:os";
|
|
|
28
28
|
// package.json
|
|
29
29
|
var package_default = {
|
|
30
30
|
name: "@zixt/host",
|
|
31
|
-
version: "0.0.
|
|
31
|
+
version: "0.0.132",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -16864,6 +16864,14 @@ var ScheduleCadence = external_exports.discriminatedUnion("kind", [
|
|
|
16864
16864
|
dayOfWeek: external_exports.number().int().min(0).max(6),
|
|
16865
16865
|
hourUtc: external_exports.number().int().min(0).max(23),
|
|
16866
16866
|
minuteUtc: external_exports.number().int().min(0).max(59).default(0)
|
|
16867
|
+
}),
|
|
16868
|
+
external_exports.object({
|
|
16869
|
+
kind: external_exports.literal("monthly"),
|
|
16870
|
+
/** 1–28 (UTC) so the occurrence exists in every month; 29–31 is refused
|
|
16871
|
+
* rather than sliding to a guessed last day (SCH-1). */
|
|
16872
|
+
dayOfMonth: external_exports.number().int().min(1).max(28),
|
|
16873
|
+
hourUtc: external_exports.number().int().min(0).max(23),
|
|
16874
|
+
minuteUtc: external_exports.number().int().min(0).max(59).default(0)
|
|
16867
16875
|
})
|
|
16868
16876
|
]);
|
|
16869
16877
|
var ScheduleSkipReason = external_exports.enum([
|
|
@@ -19701,7 +19709,7 @@ var UpdateManagerRequest = external_exports.object({
|
|
|
19701
19709
|
/** Optimistic concurrency: refuse when another admin saved first. */
|
|
19702
19710
|
expectedRevision: external_exports.number().int().min(0).optional()
|
|
19703
19711
|
}).strict().superRefine((value, ctx) => {
|
|
19704
|
-
if (value.displayName === void 0 && value.instructions === void 0 && value.model === void 0 && value.reasoningEffort === void 0 && value.slack === void 0) {
|
|
19712
|
+
if (value.displayName === void 0 && value.instructions === void 0 && value.model === void 0 && value.reasoningEffort === void 0 && value.slack === void 0 && value.portrait === void 0) {
|
|
19705
19713
|
ctx.addIssue({ code: "custom", message: "nothing to update" });
|
|
19706
19714
|
}
|
|
19707
19715
|
});
|
|
@@ -22291,6 +22299,13 @@ var PlannedCadence = external_exports.discriminatedUnion("kind", [
|
|
|
22291
22299
|
hour: external_exports.number().int().min(0).max(23),
|
|
22292
22300
|
minute: external_exports.number().int().min(0).max(59)
|
|
22293
22301
|
}),
|
|
22302
|
+
external_exports.object({
|
|
22303
|
+
kind: external_exports.literal("monthly"),
|
|
22304
|
+
/** 1–28, the window every month has (SCH-1); month-start work lives here. */
|
|
22305
|
+
dayOfMonth: external_exports.number().int().min(1).max(28),
|
|
22306
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
22307
|
+
minute: external_exports.number().int().min(0).max(59)
|
|
22308
|
+
}),
|
|
22294
22309
|
external_exports.object({ kind: external_exports.literal("every"), minutes: external_exports.number().int().min(5).max(1440) })
|
|
22295
22310
|
]);
|
|
22296
22311
|
var PlannedAutomationTrigger = external_exports.enum(["schedule", "webhook"]);
|
|
@@ -37918,8 +37933,8 @@ import { createServer as createServer2 } from "node:http";
|
|
|
37918
37933
|
var CADENCE_PROPS = {
|
|
37919
37934
|
cadence_kind: {
|
|
37920
37935
|
type: "string",
|
|
37921
|
-
enum: ["every", "daily", "weekly"],
|
|
37922
|
-
description: "every = every N minutes; daily/weekly run at a UTC time."
|
|
37936
|
+
enum: ["every", "daily", "weekly", "monthly"],
|
|
37937
|
+
description: "every = every N minutes; daily/weekly/monthly run at a UTC time."
|
|
37923
37938
|
},
|
|
37924
37939
|
minutes: {
|
|
37925
37940
|
type: "integer",
|
|
@@ -37927,9 +37942,16 @@ var CADENCE_PROPS = {
|
|
|
37927
37942
|
maximum: 10080,
|
|
37928
37943
|
description: "every-only: interval in minutes (1 to 10080)."
|
|
37929
37944
|
},
|
|
37930
|
-
hour_utc: { type: "number", description: "daily/weekly: hour 0-23 (UTC)." },
|
|
37931
|
-
minute_utc: {
|
|
37932
|
-
|
|
37945
|
+
hour_utc: { type: "number", description: "daily/weekly/monthly: hour 0-23 (UTC)." },
|
|
37946
|
+
minute_utc: {
|
|
37947
|
+
type: "number",
|
|
37948
|
+
description: "daily/weekly/monthly: minute 0-59 (UTC), default 0."
|
|
37949
|
+
},
|
|
37950
|
+
day_of_week: { type: "number", description: "weekly-only: 0 = Sunday \u2026 6 = Saturday." },
|
|
37951
|
+
day_of_month: {
|
|
37952
|
+
type: "number",
|
|
37953
|
+
description: "monthly-only: day 1-28 (UTC); 1-28 exists in every month."
|
|
37954
|
+
}
|
|
37933
37955
|
};
|
|
37934
37956
|
var TOOLS = [
|
|
37935
37957
|
{
|
|
@@ -38377,7 +38399,12 @@ function cadenceFrom(args) {
|
|
|
38377
38399
|
if (!Number.isFinite(dayOfWeek)) throw new Error('cadence "weekly" needs `day_of_week`');
|
|
38378
38400
|
return { kind: "weekly", dayOfWeek, hourUtc, minuteUtc };
|
|
38379
38401
|
}
|
|
38380
|
-
|
|
38402
|
+
if (kind === "monthly") {
|
|
38403
|
+
const dayOfMonth = Number(args["day_of_month"]);
|
|
38404
|
+
if (!Number.isFinite(dayOfMonth)) throw new Error('cadence "monthly" needs `day_of_month`');
|
|
38405
|
+
return { kind: "monthly", dayOfMonth, hourUtc, minuteUtc };
|
|
38406
|
+
}
|
|
38407
|
+
throw new Error("cadence_kind must be every | daily | weekly | monthly");
|
|
38381
38408
|
}
|
|
38382
38409
|
function opFor(name, args) {
|
|
38383
38410
|
const str = (key, required2 = true) => {
|