@camstack/addon-smtp-nodemailer 1.2.1 → 1.2.3
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 +68 -7
- package/dist/smtp.addon.mjs +68 -7
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -11051,7 +11051,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
11051
11051
|
modelId: string().optional(),
|
|
11052
11052
|
enabled: boolean().default(true),
|
|
11053
11053
|
children: array(PipelineStepInputSchema).optional(),
|
|
11054
|
-
settings: record(string(), unknown()).optional()
|
|
11054
|
+
settings: record(string(), unknown()).optional(),
|
|
11055
|
+
jumpDeviceKey: string().optional()
|
|
11055
11056
|
}));
|
|
11056
11057
|
var ModelSubstitutionSchema = object({
|
|
11057
11058
|
addonId: string(),
|
|
@@ -11357,8 +11358,24 @@ var NativeCropBboxSchema = object({
|
|
|
11357
11358
|
});
|
|
11358
11359
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
11359
11360
|
var NativeCropResultSchema = object({
|
|
11360
|
-
/**
|
|
11361
|
-
|
|
11361
|
+
/**
|
|
11362
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
11363
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
11364
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
11365
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
11366
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
11367
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
11368
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
11369
|
+
*/
|
|
11370
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
11371
|
+
/**
|
|
11372
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
11373
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
11374
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
11375
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
11376
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
11377
|
+
*/
|
|
11378
|
+
jpeg: string().optional(),
|
|
11362
11379
|
width: number().int().positive(),
|
|
11363
11380
|
height: number().int().positive(),
|
|
11364
11381
|
/**
|
|
@@ -11504,6 +11521,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
11504
11521
|
hubHostnameOverride: string().optional()
|
|
11505
11522
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
11506
11523
|
/**
|
|
11524
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
11525
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
11526
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
11527
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
11528
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
11529
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
11530
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
11531
|
+
*/
|
|
11532
|
+
var RunnerInferenceDeviceSchema = object({
|
|
11533
|
+
deviceKey: string(),
|
|
11534
|
+
weight: number().positive().default(1),
|
|
11535
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
11536
|
+
});
|
|
11537
|
+
/**
|
|
11507
11538
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
11508
11539
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
11509
11540
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -11621,7 +11652,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
11621
11652
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11622
11653
|
* this only selects WHICH device pool of that node runs the session.
|
|
11623
11654
|
*/
|
|
11624
|
-
deviceKey: string().optional()
|
|
11655
|
+
deviceKey: string().optional(),
|
|
11656
|
+
/**
|
|
11657
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
11658
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
11659
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
11660
|
+
* step whose model has no build for the elected device's format onto another
|
|
11661
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
11662
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
11663
|
+
*/
|
|
11664
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
11625
11665
|
});
|
|
11626
11666
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
11627
11667
|
/**
|
|
@@ -11677,7 +11717,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11677
11717
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
11678
11718
|
handle: FrameHandleSchema,
|
|
11679
11719
|
bbox: NativeCropBboxSchema,
|
|
11680
|
-
maxWidth: number().int().positive().optional()
|
|
11720
|
+
maxWidth: number().int().positive().optional(),
|
|
11721
|
+
/**
|
|
11722
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
11723
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
11724
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
11725
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
11726
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
11727
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
11728
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
11729
|
+
* the caller falls back to encoding locally.
|
|
11730
|
+
*/
|
|
11731
|
+
encodeJpeg: boolean().optional()
|
|
11681
11732
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
11682
11733
|
deviceId: number(),
|
|
11683
11734
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -16475,7 +16526,8 @@ var MediaFileKindEnum = _enum([
|
|
|
16475
16526
|
"faceCrop",
|
|
16476
16527
|
"plateCrop",
|
|
16477
16528
|
"keyFrame",
|
|
16478
|
-
"keyFrameSmall"
|
|
16529
|
+
"keyFrameSmall",
|
|
16530
|
+
"thumbnailSmall"
|
|
16479
16531
|
]);
|
|
16480
16532
|
var MediaFileSchema = object({
|
|
16481
16533
|
key: string(),
|
|
@@ -16806,7 +16858,16 @@ var PipelineTemplateSchema = object({
|
|
|
16806
16858
|
});
|
|
16807
16859
|
var DeviceStepConfigSchema = object({
|
|
16808
16860
|
modelId: string().optional(),
|
|
16809
|
-
settings: record(string(), unknown()).optional()
|
|
16861
|
+
settings: record(string(), unknown()).optional(),
|
|
16862
|
+
/**
|
|
16863
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
16864
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
16865
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
16866
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
16867
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
16868
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
16869
|
+
*/
|
|
16870
|
+
jumpDeviceKey: string().optional()
|
|
16810
16871
|
});
|
|
16811
16872
|
var AgentPipelineSettingsSchema = object({
|
|
16812
16873
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -11049,7 +11049,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
11049
11049
|
modelId: string().optional(),
|
|
11050
11050
|
enabled: boolean().default(true),
|
|
11051
11051
|
children: array(PipelineStepInputSchema).optional(),
|
|
11052
|
-
settings: record(string(), unknown()).optional()
|
|
11052
|
+
settings: record(string(), unknown()).optional(),
|
|
11053
|
+
jumpDeviceKey: string().optional()
|
|
11053
11054
|
}));
|
|
11054
11055
|
var ModelSubstitutionSchema = object({
|
|
11055
11056
|
addonId: string(),
|
|
@@ -11355,8 +11356,24 @@ var NativeCropBboxSchema = object({
|
|
|
11355
11356
|
});
|
|
11356
11357
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
11357
11358
|
var NativeCropResultSchema = object({
|
|
11358
|
-
/**
|
|
11359
|
-
|
|
11359
|
+
/**
|
|
11360
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
11361
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
11362
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
11363
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
11364
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
11365
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
11366
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
11367
|
+
*/
|
|
11368
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
11369
|
+
/**
|
|
11370
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
11371
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
11372
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
11373
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
11374
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
11375
|
+
*/
|
|
11376
|
+
jpeg: string().optional(),
|
|
11360
11377
|
width: number().int().positive(),
|
|
11361
11378
|
height: number().int().positive(),
|
|
11362
11379
|
/**
|
|
@@ -11502,6 +11519,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
11502
11519
|
hubHostnameOverride: string().optional()
|
|
11503
11520
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
11504
11521
|
/**
|
|
11522
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
11523
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
11524
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
11525
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
11526
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
11527
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
11528
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
11529
|
+
*/
|
|
11530
|
+
var RunnerInferenceDeviceSchema = object({
|
|
11531
|
+
deviceKey: string(),
|
|
11532
|
+
weight: number().positive().default(1),
|
|
11533
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
11534
|
+
});
|
|
11535
|
+
/**
|
|
11505
11536
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
11506
11537
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
11507
11538
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -11619,7 +11650,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
11619
11650
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11620
11651
|
* this only selects WHICH device pool of that node runs the session.
|
|
11621
11652
|
*/
|
|
11622
|
-
deviceKey: string().optional()
|
|
11653
|
+
deviceKey: string().optional(),
|
|
11654
|
+
/**
|
|
11655
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
11656
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
11657
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
11658
|
+
* step whose model has no build for the elected device's format onto another
|
|
11659
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
11660
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
11661
|
+
*/
|
|
11662
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
11623
11663
|
});
|
|
11624
11664
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
11625
11665
|
/**
|
|
@@ -11675,7 +11715,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11675
11715
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
11676
11716
|
handle: FrameHandleSchema,
|
|
11677
11717
|
bbox: NativeCropBboxSchema,
|
|
11678
|
-
maxWidth: number().int().positive().optional()
|
|
11718
|
+
maxWidth: number().int().positive().optional(),
|
|
11719
|
+
/**
|
|
11720
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
11721
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
11722
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
11723
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
11724
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
11725
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
11726
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
11727
|
+
* the caller falls back to encoding locally.
|
|
11728
|
+
*/
|
|
11729
|
+
encodeJpeg: boolean().optional()
|
|
11679
11730
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
11680
11731
|
deviceId: number(),
|
|
11681
11732
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -16473,7 +16524,8 @@ var MediaFileKindEnum = _enum([
|
|
|
16473
16524
|
"faceCrop",
|
|
16474
16525
|
"plateCrop",
|
|
16475
16526
|
"keyFrame",
|
|
16476
|
-
"keyFrameSmall"
|
|
16527
|
+
"keyFrameSmall",
|
|
16528
|
+
"thumbnailSmall"
|
|
16477
16529
|
]);
|
|
16478
16530
|
var MediaFileSchema = object({
|
|
16479
16531
|
key: string(),
|
|
@@ -16804,7 +16856,16 @@ var PipelineTemplateSchema = object({
|
|
|
16804
16856
|
});
|
|
16805
16857
|
var DeviceStepConfigSchema = object({
|
|
16806
16858
|
modelId: string().optional(),
|
|
16807
|
-
settings: record(string(), unknown()).optional()
|
|
16859
|
+
settings: record(string(), unknown()).optional(),
|
|
16860
|
+
/**
|
|
16861
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
16862
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
16863
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
16864
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
16865
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
16866
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
16867
|
+
*/
|
|
16868
|
+
jumpDeviceKey: string().optional()
|
|
16808
16869
|
});
|
|
16809
16870
|
var AgentPipelineSettingsSchema = object({
|
|
16810
16871
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
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.3",
|
|
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",
|