@camstack/addon-smtp-nodemailer 1.2.23 → 1.2.25
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/smtp.addon.js +76 -6
- package/dist/smtp.addon.mjs +76 -6
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
}) : target, mod));
|
|
37
37
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../types/dist/event-category-
|
|
39
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
40
40
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
41
41
|
EventCategory["SystemBoot"] = "system.boot";
|
|
42
42
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -52,6 +52,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
52
52
|
*/
|
|
53
53
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
54
54
|
/**
|
|
55
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
56
|
+
* Emitted only when the material on disk actually changed, so an
|
|
57
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
58
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
59
|
+
*
|
|
60
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
61
|
+
*/
|
|
62
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
63
|
+
/**
|
|
55
64
|
* A newer addon or server-root package version was found by the
|
|
56
65
|
* authoritative registry check. Emitted once when any observed
|
|
57
66
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -18660,6 +18669,12 @@ var CameraStatusSchema = object({
|
|
|
18660
18669
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18661
18670
|
fetchedAt: number()
|
|
18662
18671
|
});
|
|
18672
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18673
|
+
"disabled",
|
|
18674
|
+
"unavailable",
|
|
18675
|
+
"cannot-host-camera-root",
|
|
18676
|
+
"accelerator-preferred"
|
|
18677
|
+
]);
|
|
18663
18678
|
var NodeInferenceDeviceSchema = object({
|
|
18664
18679
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18665
18680
|
key: string(),
|
|
@@ -18690,7 +18705,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18690
18705
|
* available per format; this is the stored selection that becomes the
|
|
18691
18706
|
* default for EVERY camera landing on this accelerator.
|
|
18692
18707
|
*/
|
|
18693
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18708
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18709
|
+
/**
|
|
18710
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18711
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18712
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18713
|
+
* never disagree with the election — deriving it in the UI from
|
|
18714
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18715
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18716
|
+
* "an accelerator is serving" predicate).
|
|
18717
|
+
*/
|
|
18718
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18694
18719
|
});
|
|
18695
18720
|
var NodeInferenceDevicesSchema = object({
|
|
18696
18721
|
nodeId: string(),
|
|
@@ -22461,7 +22486,12 @@ var ListResultSchema = object({
|
|
|
22461
22486
|
probedAt: number()
|
|
22462
22487
|
});
|
|
22463
22488
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22464
|
-
|
|
22489
|
+
/**
|
|
22490
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22491
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22492
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22493
|
+
*/
|
|
22494
|
+
var ConnectionEndpointSchema = object({
|
|
22465
22495
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22466
22496
|
label: string(),
|
|
22467
22497
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22504,7 +22534,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22504
22534
|
* ordering between polls.
|
|
22505
22535
|
*/
|
|
22506
22536
|
priority: number()
|
|
22507
|
-
})
|
|
22537
|
+
});
|
|
22538
|
+
/**
|
|
22539
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22540
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22541
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22542
|
+
*/
|
|
22543
|
+
var LocalPortSourceEnum = _enum([
|
|
22544
|
+
"server-config",
|
|
22545
|
+
"server-env",
|
|
22546
|
+
"caller-hint",
|
|
22547
|
+
"default"
|
|
22548
|
+
]);
|
|
22549
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22550
|
+
var AdvertisedLocalPortSchema = object({
|
|
22551
|
+
port: number().int().min(1).max(65535),
|
|
22552
|
+
source: LocalPortSourceEnum
|
|
22553
|
+
});
|
|
22554
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22555
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22556
|
+
/**
|
|
22557
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22558
|
+
* came from.
|
|
22559
|
+
*
|
|
22560
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22561
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22562
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22563
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22564
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22565
|
+
* `caller-hint` is the hub's own socket.
|
|
22566
|
+
*
|
|
22567
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22568
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22569
|
+
* `caller-hint`.
|
|
22570
|
+
*/
|
|
22571
|
+
localPort: AdvertisedLocalPortSchema
|
|
22572
|
+
});
|
|
22508
22573
|
/**
|
|
22509
22574
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22510
22575
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22525,8 +22590,13 @@ var AllowedAddressesSchema = object({
|
|
|
22525
22590
|
*/
|
|
22526
22591
|
addresses: array(string()).readonly() });
|
|
22527
22592
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22528
|
-
/**
|
|
22529
|
-
|
|
22593
|
+
/**
|
|
22594
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22595
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22596
|
+
* only when it cannot read its own port, and says so via
|
|
22597
|
+
* `localPort.source === 'caller-hint'`.
|
|
22598
|
+
*/
|
|
22599
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22530
22600
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22531
22601
|
* candidate. Default `true`. */
|
|
22532
22602
|
includeLoopback: boolean().optional(),
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -50,6 +50,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
50
50
|
*/
|
|
51
51
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
52
52
|
/**
|
|
53
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
54
|
+
* Emitted only when the material on disk actually changed, so an
|
|
55
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
56
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
57
|
+
*
|
|
58
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
59
|
+
*/
|
|
60
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
61
|
+
/**
|
|
53
62
|
* A newer addon or server-root package version was found by the
|
|
54
63
|
* authoritative registry check. Emitted once when any observed
|
|
55
64
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -18658,6 +18667,12 @@ var CameraStatusSchema = object({
|
|
|
18658
18667
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18659
18668
|
fetchedAt: number()
|
|
18660
18669
|
});
|
|
18670
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18671
|
+
"disabled",
|
|
18672
|
+
"unavailable",
|
|
18673
|
+
"cannot-host-camera-root",
|
|
18674
|
+
"accelerator-preferred"
|
|
18675
|
+
]);
|
|
18661
18676
|
var NodeInferenceDeviceSchema = object({
|
|
18662
18677
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18663
18678
|
key: string(),
|
|
@@ -18688,7 +18703,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18688
18703
|
* available per format; this is the stored selection that becomes the
|
|
18689
18704
|
* default for EVERY camera landing on this accelerator.
|
|
18690
18705
|
*/
|
|
18691
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18706
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18707
|
+
/**
|
|
18708
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18709
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18710
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18711
|
+
* never disagree with the election — deriving it in the UI from
|
|
18712
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18713
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18714
|
+
* "an accelerator is serving" predicate).
|
|
18715
|
+
*/
|
|
18716
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18692
18717
|
});
|
|
18693
18718
|
var NodeInferenceDevicesSchema = object({
|
|
18694
18719
|
nodeId: string(),
|
|
@@ -22459,7 +22484,12 @@ var ListResultSchema = object({
|
|
|
22459
22484
|
probedAt: number()
|
|
22460
22485
|
});
|
|
22461
22486
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22462
|
-
|
|
22487
|
+
/**
|
|
22488
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22489
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22490
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22491
|
+
*/
|
|
22492
|
+
var ConnectionEndpointSchema = object({
|
|
22463
22493
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22464
22494
|
label: string(),
|
|
22465
22495
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22502,7 +22532,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22502
22532
|
* ordering between polls.
|
|
22503
22533
|
*/
|
|
22504
22534
|
priority: number()
|
|
22505
|
-
})
|
|
22535
|
+
});
|
|
22536
|
+
/**
|
|
22537
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22538
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22539
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22540
|
+
*/
|
|
22541
|
+
var LocalPortSourceEnum = _enum([
|
|
22542
|
+
"server-config",
|
|
22543
|
+
"server-env",
|
|
22544
|
+
"caller-hint",
|
|
22545
|
+
"default"
|
|
22546
|
+
]);
|
|
22547
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22548
|
+
var AdvertisedLocalPortSchema = object({
|
|
22549
|
+
port: number().int().min(1).max(65535),
|
|
22550
|
+
source: LocalPortSourceEnum
|
|
22551
|
+
});
|
|
22552
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22553
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22554
|
+
/**
|
|
22555
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22556
|
+
* came from.
|
|
22557
|
+
*
|
|
22558
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22559
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22560
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22561
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22562
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22563
|
+
* `caller-hint` is the hub's own socket.
|
|
22564
|
+
*
|
|
22565
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22566
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22567
|
+
* `caller-hint`.
|
|
22568
|
+
*/
|
|
22569
|
+
localPort: AdvertisedLocalPortSchema
|
|
22570
|
+
});
|
|
22506
22571
|
/**
|
|
22507
22572
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22508
22573
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22523,8 +22588,13 @@ var AllowedAddressesSchema = object({
|
|
|
22523
22588
|
*/
|
|
22524
22589
|
addresses: array(string()).readonly() });
|
|
22525
22590
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22526
|
-
/**
|
|
22527
|
-
|
|
22591
|
+
/**
|
|
22592
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22593
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22594
|
+
* only when it cannot read its own port, and says so via
|
|
22595
|
+
* `localPort.source === 'caller-hint'`.
|
|
22596
|
+
*/
|
|
22597
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22528
22598
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22529
22599
|
* candidate. Default `true`. */
|
|
22530
22600
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|