@zixt/host 0.0.19 → 0.0.20
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 +100 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { homedir } from "node:os";
|
|
|
31
31
|
// package.json
|
|
32
32
|
var package_default = {
|
|
33
33
|
name: "@zixt/host",
|
|
34
|
-
version: "0.0.
|
|
34
|
+
version: "0.0.20",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -15457,6 +15457,17 @@ var ScheduleSkipReason = external_exports.enum([
|
|
|
15457
15457
|
"agent_archived",
|
|
15458
15458
|
"agent_missing"
|
|
15459
15459
|
]);
|
|
15460
|
+
var ScheduleActionRequiredCode = external_exports.enum(["pinned_machine_removed"]);
|
|
15461
|
+
var ScheduleActionRequired = external_exports.object({
|
|
15462
|
+
code: ScheduleActionRequiredCode,
|
|
15463
|
+
/**
|
|
15464
|
+
* The Machine's name as it was when it went away. Null when the Automation was
|
|
15465
|
+
* paused by a later tick rather than by the removal itself — the row is gone by
|
|
15466
|
+
* then, so claiming a name would be inventing one.
|
|
15467
|
+
*/
|
|
15468
|
+
machineName: external_exports.string().min(1).max(120).nullable(),
|
|
15469
|
+
at: IsoDate
|
|
15470
|
+
});
|
|
15460
15471
|
var Schedule = external_exports.object({
|
|
15461
15472
|
id: ScheduleId,
|
|
15462
15473
|
orgId: OrgId,
|
|
@@ -15474,6 +15485,8 @@ var Schedule = external_exports.object({
|
|
|
15474
15485
|
skippedRuns: external_exports.number().int().min(0).default(0),
|
|
15475
15486
|
lastSkipAt: IsoDate.nullable().default(null),
|
|
15476
15487
|
lastSkipReason: ScheduleSkipReason.nullable().default(null),
|
|
15488
|
+
/** Set only while this Automation is paused waiting for a person to decide. */
|
|
15489
|
+
actionRequired: ScheduleActionRequired.nullable().default(null),
|
|
15477
15490
|
nextRunAt: IsoDate,
|
|
15478
15491
|
createdAt: IsoDate,
|
|
15479
15492
|
updatedAt: IsoDate
|
|
@@ -17660,6 +17673,70 @@ var AdminHostProjection = Host.extend({
|
|
|
17660
17673
|
telemetryRedacted: external_exports.literal(false),
|
|
17661
17674
|
operations: AdminHostOperations
|
|
17662
17675
|
});
|
|
17676
|
+
var ImpactedTasks = external_exports.object({
|
|
17677
|
+
count: external_exports.number().int().min(0),
|
|
17678
|
+
samples: external_exports.array(external_exports.object({ id: TaskId, title: external_exports.string().max(500) }))
|
|
17679
|
+
});
|
|
17680
|
+
var HostRemovalImpact = external_exports.object({
|
|
17681
|
+
hostId: HostId,
|
|
17682
|
+
hostName: external_exports.string().min(1).max(120),
|
|
17683
|
+
/** Non-terminal Tasks currently placed on this Machine. */
|
|
17684
|
+
runningTasks: ImpactedTasks,
|
|
17685
|
+
/** Queued Tasks pinned to it. These move to automatic placement. */
|
|
17686
|
+
queuedPinnedTasks: ImpactedTasks,
|
|
17687
|
+
/** Automations pinned to it. These need an explicit decision. */
|
|
17688
|
+
pinnedAutomations: external_exports.object({
|
|
17689
|
+
count: external_exports.number().int().min(0),
|
|
17690
|
+
samples: external_exports.array(
|
|
17691
|
+
external_exports.object({
|
|
17692
|
+
id: ScheduleId,
|
|
17693
|
+
name: external_exports.string().max(120),
|
|
17694
|
+
agentId: AgentId,
|
|
17695
|
+
agentName: external_exports.string().max(120)
|
|
17696
|
+
})
|
|
17697
|
+
)
|
|
17698
|
+
}),
|
|
17699
|
+
/** Teammates restricted to this Machine alone, which will be able to run nowhere. */
|
|
17700
|
+
strandedAgents: external_exports.object({
|
|
17701
|
+
count: external_exports.number().int().min(0),
|
|
17702
|
+
samples: external_exports.array(external_exports.object({ id: AgentId, name: external_exports.string().max(120) }))
|
|
17703
|
+
}),
|
|
17704
|
+
/** Working folders no other Machine currently reports as usable. */
|
|
17705
|
+
exclusiveWorkspaces: external_exports.array(external_exports.string().max(1e3)),
|
|
17706
|
+
/**
|
|
17707
|
+
* Losses Zixt cannot undo, in plain language: a Host-local browser profile and
|
|
17708
|
+
* its website sessions, and any local work never pushed anywhere.
|
|
17709
|
+
*/
|
|
17710
|
+
unrecoverableLosses: external_exports.array(external_exports.string().min(1).max(500)),
|
|
17711
|
+
/** True when pinned Automations exist and `DELETE` therefore needs a decision. */
|
|
17712
|
+
requiresAutomationDecision: external_exports.boolean(),
|
|
17713
|
+
evaluatedAt: IsoDate2
|
|
17714
|
+
});
|
|
17715
|
+
var PinnedAutomationResolution = external_exports.enum(["move_to_auto", "pause"]);
|
|
17716
|
+
var RevokeHostRequest = external_exports.object({
|
|
17717
|
+
/** Required when the impact reports pinned Automations. */
|
|
17718
|
+
pinnedAutomations: PinnedAutomationResolution.optional(),
|
|
17719
|
+
/**
|
|
17720
|
+
* Idempotency key for the whole resolution. A retried removal after a lost
|
|
17721
|
+
* response replays the recorded outcome instead of reporting the Machine
|
|
17722
|
+
* missing.
|
|
17723
|
+
*/
|
|
17724
|
+
requestId: external_exports.string().min(8).max(120).optional()
|
|
17725
|
+
}).strict();
|
|
17726
|
+
var HostRemovalOutcome = external_exports.object({
|
|
17727
|
+
hostId: HostId,
|
|
17728
|
+
hostName: external_exports.string().min(1).max(120),
|
|
17729
|
+
queuedTasksMovedToAuto: external_exports.number().int().min(0),
|
|
17730
|
+
automationsMovedToAuto: external_exports.number().int().min(0),
|
|
17731
|
+
automationsPaused: external_exports.number().int().min(0),
|
|
17732
|
+
runningTasksInterrupted: external_exports.number().int().min(0),
|
|
17733
|
+
/** True when this response replayed an earlier identical request. */
|
|
17734
|
+
replayed: external_exports.boolean()
|
|
17735
|
+
});
|
|
17736
|
+
var RevokeHostResponse = external_exports.object({
|
|
17737
|
+
host: AdminHostProjection,
|
|
17738
|
+
removal: HostRemovalOutcome
|
|
17739
|
+
});
|
|
17663
17740
|
var MemberHostProjection = Host.pick({
|
|
17664
17741
|
id: true,
|
|
17665
17742
|
orgId: true,
|
|
@@ -17932,7 +18009,9 @@ var AttentionItemType = external_exports.enum([
|
|
|
17932
18009
|
"review",
|
|
17933
18010
|
"handoff",
|
|
17934
18011
|
"task_failure",
|
|
17935
|
-
"dependency"
|
|
18012
|
+
"dependency",
|
|
18013
|
+
/** An Automation paused itself and cannot resume without a person's decision. */
|
|
18014
|
+
"automation_paused"
|
|
17936
18015
|
]);
|
|
17937
18016
|
var AttentionItem = external_exports.object({
|
|
17938
18017
|
id: external_exports.string().min(1),
|
|
@@ -17945,14 +18024,31 @@ var AttentionItem = external_exports.object({
|
|
|
17945
18024
|
originTrust: external_exports.enum(["internal", "external"]).nullable(),
|
|
17946
18025
|
createdAt: IsoDate,
|
|
17947
18026
|
source: external_exports.object({
|
|
17948
|
-
kind: external_exports.enum([
|
|
18027
|
+
kind: external_exports.enum([
|
|
18028
|
+
"approval",
|
|
18029
|
+
"attempt",
|
|
18030
|
+
"handoff",
|
|
18031
|
+
"task",
|
|
18032
|
+
"readiness",
|
|
18033
|
+
"integration",
|
|
18034
|
+
"schedule"
|
|
18035
|
+
]),
|
|
17949
18036
|
id: external_exports.string().min(1),
|
|
17950
18037
|
version: external_exports.string().min(1)
|
|
17951
18038
|
}),
|
|
17952
18039
|
href: external_exports.string().min(1),
|
|
17953
18040
|
actions: external_exports.array(
|
|
17954
18041
|
external_exports.object({
|
|
17955
|
-
kind: external_exports.enum([
|
|
18042
|
+
kind: external_exports.enum([
|
|
18043
|
+
"answer",
|
|
18044
|
+
"decide_approval",
|
|
18045
|
+
"review",
|
|
18046
|
+
"decide_handoff",
|
|
18047
|
+
"retry",
|
|
18048
|
+
"repair",
|
|
18049
|
+
/** Choose a Machine for a paused Automation, or set it back to automatic. */
|
|
18050
|
+
"resume_automation"
|
|
18051
|
+
]),
|
|
17956
18052
|
allowed: external_exports.boolean()
|
|
17957
18053
|
})
|
|
17958
18054
|
)
|