@camstack/addon-auth 1.2.103 → 1.2.104

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.
@@ -20503,6 +20503,14 @@ var NativeCropResultSchema = object({
20503
20503
  * set `encodeJpeg: true`; `bytes` is then absent.
20504
20504
  */
20505
20505
  jpeg: string().optional(),
20506
+ /**
20507
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20508
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20509
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20510
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20511
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20512
+ */
20513
+ jpegBytes: _instanceof(Uint8Array).optional(),
20506
20514
  width: number().int().positive(),
20507
20515
  height: number().int().positive(),
20508
20516
  /**
@@ -20569,7 +20577,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20569
20577
  })]);
20570
20578
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20571
20579
  var ParkedTrackFrameSchema = object({
20572
- jpeg: string(),
20580
+ /**
20581
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20582
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20583
+ * Exactly one of the two is present.
20584
+ */
20585
+ jpeg: string().optional(),
20586
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20587
+ jpegBytes: _instanceof(Uint8Array).optional(),
20573
20588
  width: number().int().positive(),
20574
20589
  height: number().int().positive(),
20575
20590
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21156,6 +21171,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21156
21171
  bbox: NativeCropBboxSchema,
21157
21172
  maxWidth: number().int().positive().optional(),
21158
21173
  /**
21174
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21175
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21176
+ * wire — never assume consent: a pre-D462 caller parses the field as
21177
+ * base64 and bytes would decode to garbage rather than fail.
21178
+ */
21179
+ acceptJpegBytes: boolean().optional(),
21180
+ /**
21159
21181
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21160
21182
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21161
21183
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21223,7 +21245,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21223
21245
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21224
21246
  deviceId: number(),
21225
21247
  trackId: string(),
21226
- kind: ParkedFrameKindSchema
21248
+ kind: ParkedFrameKindSchema,
21249
+ /**
21250
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21251
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21252
+ * wire — never assume consent: a pre-D462 caller parses the field as
21253
+ * base64 and bytes would decode to garbage rather than fail.
21254
+ */
21255
+ acceptJpegBytes: boolean().optional()
21227
21256
  }), ParkedTrackFrameSchema.nullable()), method(object({
21228
21257
  deviceId: number(),
21229
21258
  trackId: string()
@@ -20503,6 +20503,14 @@ var NativeCropResultSchema = object({
20503
20503
  * set `encodeJpeg: true`; `bytes` is then absent.
20504
20504
  */
20505
20505
  jpeg: string().optional(),
20506
+ /**
20507
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20508
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20509
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20510
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20511
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20512
+ */
20513
+ jpegBytes: _instanceof(Uint8Array).optional(),
20506
20514
  width: number().int().positive(),
20507
20515
  height: number().int().positive(),
20508
20516
  /**
@@ -20569,7 +20577,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20569
20577
  })]);
20570
20578
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20571
20579
  var ParkedTrackFrameSchema = object({
20572
- jpeg: string(),
20580
+ /**
20581
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20582
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20583
+ * Exactly one of the two is present.
20584
+ */
20585
+ jpeg: string().optional(),
20586
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20587
+ jpegBytes: _instanceof(Uint8Array).optional(),
20573
20588
  width: number().int().positive(),
20574
20589
  height: number().int().positive(),
20575
20590
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21156,6 +21171,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21156
21171
  bbox: NativeCropBboxSchema,
21157
21172
  maxWidth: number().int().positive().optional(),
21158
21173
  /**
21174
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21175
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21176
+ * wire — never assume consent: a pre-D462 caller parses the field as
21177
+ * base64 and bytes would decode to garbage rather than fail.
21178
+ */
21179
+ acceptJpegBytes: boolean().optional(),
21180
+ /**
21159
21181
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21160
21182
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21161
21183
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21223,7 +21245,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21223
21245
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21224
21246
  deviceId: number(),
21225
21247
  trackId: string(),
21226
- kind: ParkedFrameKindSchema
21248
+ kind: ParkedFrameKindSchema,
21249
+ /**
21250
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21251
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21252
+ * wire — never assume consent: a pre-D462 caller parses the field as
21253
+ * base64 and bytes would decode to garbage rather than fail.
21254
+ */
21255
+ acceptJpegBytes: boolean().optional()
21227
21256
  }), ParkedTrackFrameSchema.nullable()), method(object({
21228
21257
  deviceId: number(),
21229
21258
  trackId: string()
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-C7Wygqtf.js");
6
+ const require_dist = require("../dist-8X9r8Q38.js");
7
7
  //#region src/magic-link/auth-magic-link.addon.ts
8
8
  /**
9
9
  * Magic-link authentication addon.
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CeTETBzP.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-hSt4yxCt.mjs";
2
2
  //#region src/magic-link/auth-magic-link.addon.ts
3
3
  /**
4
4
  * Magic-link authentication addon.
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-C7Wygqtf.js");
6
+ const require_dist = require("../dist-8X9r8Q38.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  node_crypto = require_chunk.__toESM(node_crypto);
9
9
  //#region node_modules/jose/dist/webapi/lib/buffer_utils.js
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CeTETBzP.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-hSt4yxCt.mjs";
2
2
  import * as crypto$1 from "node:crypto";
3
3
  //#region node_modules/jose/dist/webapi/lib/buffer_utils.js
4
4
  var encoder = new TextEncoder();
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.99",
6
+ version: "1.2.100",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_auth_webauthn_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.179",
21
+ version: "1.2.180",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_auth_webauthn_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.147",
36
+ version: "1.2.148",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_auth_webauthn_widgets",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-C7Wygqtf.js");
6
+ const require_dist = require("../dist-8X9r8Q38.js");
7
7
  let stream = require("stream");
8
8
  stream = require_chunk.__toESM(stream, 1);
9
9
  let http = require("http");
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, d as number, f as object, l as array, n as addonWidgetsSourceCapability, o as userPasskeysCapability, p as string, u as boolean } from "../dist-CeTETBzP.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, d as number, f as object, l as array, n as addonWidgetsSourceCapability, o as userPasskeysCapability, p as string, u as boolean } from "../dist-hSt4yxCt.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import Stream from "stream";
4
4
  import http from "http";
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.179",
39
+ version: "1.2.180",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.99",
48
+ version: "1.2.100",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.147",
84
+ version: "1.2.148",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-MhcWorg1.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-Cs0yCUzm.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-auth",
3
- "version": "1.2.103",
3
+ "version": "1.2.104",
4
4
  "description": "Authentication bundle — magic-link, OIDC, and WebAuthn/passkey. Multi-entry npm package shipping 3 addons under a single bundle; each addon keeps its own id, capabilities, and runner.",
5
5
  "keywords": [
6
6
  "camstack",