@camstack/addon-smtp-nodemailer 1.2.95 → 1.2.96

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.
@@ -20351,6 +20351,14 @@ var NativeCropResultSchema = object({
20351
20351
  * set `encodeJpeg: true`; `bytes` is then absent.
20352
20352
  */
20353
20353
  jpeg: string().optional(),
20354
+ /**
20355
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20356
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20357
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20358
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20359
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20360
+ */
20361
+ jpegBytes: _instanceof(Uint8Array).optional(),
20354
20362
  width: number().int().positive(),
20355
20363
  height: number().int().positive(),
20356
20364
  /**
@@ -20417,7 +20425,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20417
20425
  })]);
20418
20426
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20419
20427
  var ParkedTrackFrameSchema = object({
20420
- jpeg: string(),
20428
+ /**
20429
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20430
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20431
+ * Exactly one of the two is present.
20432
+ */
20433
+ jpeg: string().optional(),
20434
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20435
+ jpegBytes: _instanceof(Uint8Array).optional(),
20421
20436
  width: number().int().positive(),
20422
20437
  height: number().int().positive(),
20423
20438
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21004,6 +21019,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21004
21019
  bbox: NativeCropBboxSchema,
21005
21020
  maxWidth: number().int().positive().optional(),
21006
21021
  /**
21022
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21023
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21024
+ * wire — never assume consent: a pre-D462 caller parses the field as
21025
+ * base64 and bytes would decode to garbage rather than fail.
21026
+ */
21027
+ acceptJpegBytes: boolean().optional(),
21028
+ /**
21007
21029
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21008
21030
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21009
21031
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21071,7 +21093,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21071
21093
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21072
21094
  deviceId: number(),
21073
21095
  trackId: string(),
21074
- kind: ParkedFrameKindSchema
21096
+ kind: ParkedFrameKindSchema,
21097
+ /**
21098
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21099
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21100
+ * wire — never assume consent: a pre-D462 caller parses the field as
21101
+ * base64 and bytes would decode to garbage rather than fail.
21102
+ */
21103
+ acceptJpegBytes: boolean().optional()
21075
21104
  }), ParkedTrackFrameSchema.nullable()), method(object({
21076
21105
  deviceId: number(),
21077
21106
  trackId: string()
@@ -20349,6 +20349,14 @@ var NativeCropResultSchema = object({
20349
20349
  * set `encodeJpeg: true`; `bytes` is then absent.
20350
20350
  */
20351
20351
  jpeg: string().optional(),
20352
+ /**
20353
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20354
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20355
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20356
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20357
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20358
+ */
20359
+ jpegBytes: _instanceof(Uint8Array).optional(),
20352
20360
  width: number().int().positive(),
20353
20361
  height: number().int().positive(),
20354
20362
  /**
@@ -20415,7 +20423,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20415
20423
  })]);
20416
20424
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20417
20425
  var ParkedTrackFrameSchema = object({
20418
- jpeg: string(),
20426
+ /**
20427
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20428
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20429
+ * Exactly one of the two is present.
20430
+ */
20431
+ jpeg: string().optional(),
20432
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20433
+ jpegBytes: _instanceof(Uint8Array).optional(),
20419
20434
  width: number().int().positive(),
20420
20435
  height: number().int().positive(),
20421
20436
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21002,6 +21017,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21002
21017
  bbox: NativeCropBboxSchema,
21003
21018
  maxWidth: number().int().positive().optional(),
21004
21019
  /**
21020
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21021
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21022
+ * wire — never assume consent: a pre-D462 caller parses the field as
21023
+ * base64 and bytes would decode to garbage rather than fail.
21024
+ */
21025
+ acceptJpegBytes: boolean().optional(),
21026
+ /**
21005
21027
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21006
21028
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21007
21029
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21069,7 +21091,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21069
21091
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21070
21092
  deviceId: number(),
21071
21093
  trackId: string(),
21072
- kind: ParkedFrameKindSchema
21094
+ kind: ParkedFrameKindSchema,
21095
+ /**
21096
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21097
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21098
+ * wire — never assume consent: a pre-D462 caller parses the field as
21099
+ * base64 and bytes would decode to garbage rather than fail.
21100
+ */
21101
+ acceptJpegBytes: boolean().optional()
21073
21102
  }), ParkedTrackFrameSchema.nullable()), method(object({
21074
21103
  deviceId: number(),
21075
21104
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.95",
3
+ "version": "1.2.96",
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",