@zixt/host 0.0.163 → 0.0.164
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 +37 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { homedir as homedir6 } 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.164",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -14672,6 +14672,8 @@ var ID_PREFIXES = {
|
|
|
14672
14672
|
conversationEvent: "cve",
|
|
14673
14673
|
/** One human-confirmed integration action prepared by the Manager. */
|
|
14674
14674
|
managerIntegrationAction: "mia",
|
|
14675
|
+
/** One human-confirmed destructive cleanup prepared by the Manager (MG-16). */
|
|
14676
|
+
managerDestructiveAction: "mda",
|
|
14675
14677
|
/** One Manager-prepared secure Credential entry card (MG-17). */
|
|
14676
14678
|
managerCredentialRequest: "mcr",
|
|
14677
14679
|
/** One Manager-prepared generic API setup or invocation card (MG-20). */
|
|
@@ -14774,6 +14776,10 @@ var ManagerIntegrationActionId = idSchema(
|
|
|
14774
14776
|
ID_PREFIXES.managerIntegrationAction,
|
|
14775
14777
|
"Manager integration action id"
|
|
14776
14778
|
);
|
|
14779
|
+
var ManagerDestructiveActionId = idSchema(
|
|
14780
|
+
ID_PREFIXES.managerDestructiveAction,
|
|
14781
|
+
"Manager destructive action id"
|
|
14782
|
+
);
|
|
14777
14783
|
var ManagerCredentialRequestId = idSchema(
|
|
14778
14784
|
ID_PREFIXES.managerCredentialRequest,
|
|
14779
14785
|
"Manager credential request id"
|
|
@@ -20363,6 +20369,8 @@ var ConversationEventProjection = external_exports.discriminatedUnion("kind", [
|
|
|
20363
20369
|
agentId: AgentId.nullable(),
|
|
20364
20370
|
/** Present only for a confirmation card; OAuth authority never appears here. */
|
|
20365
20371
|
integrationActionId: ManagerIntegrationActionId.nullable().optional(),
|
|
20372
|
+
/** Present only for a permanent-deletion confirmation card (MG-16). */
|
|
20373
|
+
destructiveActionId: ManagerDestructiveActionId.nullable().optional(),
|
|
20366
20374
|
/** Present only for a secure Credential entry card; never a value (MG-17). */
|
|
20367
20375
|
credentialRequestId: ManagerCredentialRequestId.nullable().optional(),
|
|
20368
20376
|
/** Present only for a generic API setup/invocation card; never credentials (MG-20). */
|
|
@@ -20458,6 +20466,33 @@ var ManagerIntegrationActionResponse = external_exports.object({
|
|
|
20458
20466
|
action: ManagerIntegrationActionProjection,
|
|
20459
20467
|
oauth: ManagerIntegrationOAuthStart.nullable()
|
|
20460
20468
|
}).strict();
|
|
20469
|
+
var ManagerDestructiveActionStatus = external_exports.enum([
|
|
20470
|
+
"awaiting_confirmation",
|
|
20471
|
+
"working",
|
|
20472
|
+
"completed",
|
|
20473
|
+
"cancelled",
|
|
20474
|
+
"failed",
|
|
20475
|
+
"expired"
|
|
20476
|
+
]);
|
|
20477
|
+
var ManagerDestructiveActionProjection = external_exports.object({
|
|
20478
|
+
id: ManagerDestructiveActionId,
|
|
20479
|
+
conversationId: ConversationId,
|
|
20480
|
+
status: ManagerDestructiveActionStatus,
|
|
20481
|
+
title: external_exports.string().min(1).max(200),
|
|
20482
|
+
/** The exact inventory of what Confirm destroys, one line per item. */
|
|
20483
|
+
description: external_exports.string().min(1).max(4e3),
|
|
20484
|
+
/**
|
|
20485
|
+
* Rises whenever the Manager adds to the card. Confirmation binds to the
|
|
20486
|
+
* revision the person read, so an inventory that grew after they looked
|
|
20487
|
+
* authorizes nothing (GR-3).
|
|
20488
|
+
*/
|
|
20489
|
+
revision: external_exports.number().int().min(1),
|
|
20490
|
+
confirmLabel: external_exports.string().min(1).max(100),
|
|
20491
|
+
outcome: external_exports.string().max(2e3).nullable(),
|
|
20492
|
+
createdAt: external_exports.string(),
|
|
20493
|
+
expiresAt: external_exports.string()
|
|
20494
|
+
}).strict();
|
|
20495
|
+
var ConfirmManagerDestructiveActionRequest = external_exports.object({ requestId: external_exports.string().uuid(), revision: external_exports.number().int().min(1) }).strict();
|
|
20461
20496
|
var ManagerEmailSetupPrefill = external_exports.object({
|
|
20462
20497
|
/** Connection name as it will appear under Integrations. */
|
|
20463
20498
|
name: external_exports.string().min(1).max(120).optional(),
|
|
@@ -28045,7 +28080,7 @@ function probeFailureText(err) {
|
|
|
28045
28080
|
const cause = err instanceof Error ? err.cause : void 0;
|
|
28046
28081
|
const code = cause && typeof cause === "object" && "code" in cause && typeof cause.code === "string" ? cause.code : cause instanceof Error && cause.message ? cause.message : "";
|
|
28047
28082
|
const reason = code === "ENOTFOUND" || code === "EAI_AGAIN" ? "the server address could not be found" : code === "ECONNREFUSED" ? "nothing is listening at that address" : code === "ETIMEDOUT" || code === "UND_ERR_CONNECT_TIMEOUT" ? "the server did not answer in time" : /certificate|TLS|SSL/i.test(code) ? "the secure connection could not be established" : "the server could not be reached";
|
|
28048
|
-
return `The Machine could not connect: ${reason}
|
|
28083
|
+
return `The Machine could not connect: ${reason}. Check the URL and that the server is running${code ? ` (${code})` : ""}`;
|
|
28049
28084
|
}
|
|
28050
28085
|
|
|
28051
28086
|
// src/updater.ts
|