@camstack/addon-auth 1.2.143 → 1.2.145

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.
@@ -1,37 +1,3 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
9
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
- var __exportAll = (all, no_symbols) => {
11
- let target = {};
12
- for (var name in all) __defProp(target, name, {
13
- get: all[name],
14
- enumerable: true
15
- });
16
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
- return target;
18
- };
19
- var __copyProps = (to, from, except, desc) => {
20
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
- key = keys[i];
22
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
- get: ((k) => from[k]).bind(null, key),
24
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
- });
26
- }
27
- return to;
28
- };
29
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
- require("node:crypto");
35
1
  //#region ../types/dist/event-category-C4hVnRo8.mjs
36
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
37
3
  EventCategory["SystemBoot"] = "system.boot";
@@ -5420,7 +5386,7 @@ var ZodIssueCode = {
5420
5386
  var ZodFirstPartyTypeKind;
5421
5387
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5422
5388
  //#endregion
5423
- //#region ../types/dist/sleep-BBF1iXUi.mjs
5389
+ //#region ../types/dist/sleep-DAX0-2v9.mjs
5424
5390
  /**
5425
5391
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5426
5392
  * window to float samples (D455).
@@ -12313,6 +12279,123 @@ var ConvertResultSchema = object({
12313
12279
  })).readonly()
12314
12280
  });
12315
12281
  /**
12282
+ * The viewer app's custom-scheme callback — the ONE list of URLs a hub flow
12283
+ * may hand a browser back to the native app at.
12284
+ *
12285
+ * Two readers, one answer: the admin-ui login page (`redirect=` for the
12286
+ * native sign-in handoff) and the hub itself (`auth.beginExternalLink`'s
12287
+ * `returnTo` for a native account link, D801). Both validate against this
12288
+ * list, so a scheme added for one flow can never be accepted by one side and
12289
+ * refused by the other.
12290
+ *
12291
+ * `camstack` is the production app; `camstack.dev` the dev client
12292
+ * (`APP_VARIANT=development`). Exact match after canonicalisation — no
12293
+ * query or fragment riders, no http(s).
12294
+ */
12295
+ var APP_AUTH_CALLBACK_URLS = ["camstack://auth-callback", "camstack.dev://auth-callback"];
12296
+ /**
12297
+ * The variants the OS / linking layer produces for the same callback:
12298
+ * `scheme:///auth-callback` (expo-linking's empty-host standalone form — three
12299
+ * slashes) and a trailing `/` both mean `scheme://auth-callback`. Nothing else
12300
+ * is normalised: riders keep failing the exact match.
12301
+ */
12302
+ function canonicalizeAppCallback(raw) {
12303
+ return raw.replace(/^([a-z][a-z0-9.+-]*):\/\/\/(?!\/)/i, "$1://").replace(/\/$/, "");
12304
+ }
12305
+ /** The canonical allowlisted callback `raw` names, or `null`. */
12306
+ function parseAppAuthCallback(raw) {
12307
+ if (typeof raw !== "string" || raw.length === 0 || raw.length > 512) return null;
12308
+ const canonical = canonicalizeAppCallback(raw);
12309
+ return APP_AUTH_CALLBACK_URLS.includes(canonical) ? canonical : null;
12310
+ }
12311
+ /**
12312
+ * The native-app browser sign-in flows the hub serves itself (D858).
12313
+ *
12314
+ * The viewer app opens the system browser at a hub START route (OIDC
12315
+ * `/addon/auth-oidc/<id>/start`, the passkey page `/auth/app/passkey`) and gets
12316
+ * a one-shot handoff code back at its custom scheme. These helpers are the one
12317
+ * reading of the request every leg shares - the OIDC addon, the finish leg and
12318
+ * the passkey page - so a rule tightened for one is tightened for all:
12319
+ *
12320
+ * - PKCE is mandatory and S256 only (`code_challenge` = base64url of a SHA-256);
12321
+ * - `state` is echoed back exactly;
12322
+ * - the return URL is one of {@link APP_AUTH_CALLBACK_URLS}, never a free URL;
12323
+ * - the purpose is `new-session` or `step-up` (the legacy `renew` has no browser flow).
12324
+ *
12325
+ * Pure and dependency-free (zod only) so an addon, the backend and a spec read
12326
+ * the same code.
12327
+ */
12328
+ /** What the app redeems the code for. `step-up` yields a proof, never a session. */
12329
+ var AppFlowPurposeSchema = _enum(["new-session", "step-up"]);
12330
+ /** Where the app is sent when the request names no `redirect`. */
12331
+ var APP_FLOW_DEFAULT_REDIRECT = "camstack://auth-callback";
12332
+ /** S256 challenge: base64url of 32 bytes = 43 characters, no padding. */
12333
+ var CHALLENGE_PATTERN = /^[A-Za-z0-9_-]{43}$/;
12334
+ /** The app's own `state`: URL-safe characters only, bounded. */
12335
+ var STATE_PATTERN = /^[A-Za-z0-9._~-]{1,256}$/;
12336
+ /** Operator-facing words for a refusal (the "clear page", D858). */
12337
+ var APP_FLOW_REFUSAL_MESSAGES = {
12338
+ "bad-challenge": "The sign-in request has no valid PKCE challenge (S256).",
12339
+ "bad-challenge-method": "Only the S256 PKCE method is supported.",
12340
+ "bad-state": "The sign-in request has no valid state.",
12341
+ "bad-purpose": "The sign-in request names an unknown purpose.",
12342
+ "bad-redirect": "The sign-in request names a return address this hub does not accept."
12343
+ };
12344
+ /**
12345
+ * Read the app parameters off a start query: `code_challenge`,
12346
+ * `code_challenge_method`, `state`, `purpose`, `redirect`. Anything missing or
12347
+ * malformed is refused - there is no lenient default for PKCE or state.
12348
+ */
12349
+ function parseAppFlowRequest(query) {
12350
+ const challenge = query["code_challenge"];
12351
+ if (challenge === void 0 || !CHALLENGE_PATTERN.test(challenge)) return {
12352
+ ok: false,
12353
+ reason: "bad-challenge"
12354
+ };
12355
+ if (query["code_challenge_method"] !== "S256") return {
12356
+ ok: false,
12357
+ reason: "bad-challenge-method"
12358
+ };
12359
+ const state = query["state"];
12360
+ if (state === void 0 || !STATE_PATTERN.test(state)) return {
12361
+ ok: false,
12362
+ reason: "bad-state"
12363
+ };
12364
+ const purpose = AppFlowPurposeSchema.safeParse(query["purpose"]);
12365
+ if (!purpose.success) return {
12366
+ ok: false,
12367
+ reason: "bad-purpose"
12368
+ };
12369
+ const redirectParam = query["redirect"];
12370
+ const redirect = redirectParam === void 0 ? APP_FLOW_DEFAULT_REDIRECT : parseAppAuthCallback(redirectParam);
12371
+ if (redirect === null) return {
12372
+ ok: false,
12373
+ reason: "bad-redirect"
12374
+ };
12375
+ return {
12376
+ ok: true,
12377
+ request: {
12378
+ codeChallenge: challenge,
12379
+ state,
12380
+ purpose: purpose.data,
12381
+ redirect
12382
+ }
12383
+ };
12384
+ }
12385
+ /** The app's callback with `code` (success) or `error` (refusal), and the echoed `state` when known. */
12386
+ function appFlowLocation(redirect, result, state) {
12387
+ const params = new URLSearchParams();
12388
+ if ("code" in result) params.set("code", result.code);
12389
+ else params.set("error", result.error);
12390
+ if (state !== void 0) params.set("state", state);
12391
+ return `${redirect}?${params.toString()}`;
12392
+ }
12393
+ /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12394
+ var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12395
+ kind: literal("browser"),
12396
+ startPath: string().startsWith("/")
12397
+ })]);
12398
+ /**
12316
12399
  * The cookie that binds an SSO sign-in to the browser that started it.
12317
12400
  *
12318
12401
  * An IdP `/start` sets it to a random value and keeps only its SHA-256 in the
@@ -12326,6 +12409,244 @@ var ConvertResultSchema = object({
12326
12409
  * One name, two readers (the OIDC addon that sets it, the hub that checks it).
12327
12410
  */
12328
12411
  var SSO_STATE_COOKIE = "camstack_sso_state";
12412
+ /**
12413
+ * Device certificates (D855) — the wire contract shared by the hub, the admin
12414
+ * UI and the native viewer.
12415
+ *
12416
+ * A device (a phone) generates its OWN P-256 key pair in hardware (Secure
12417
+ * Enclave / Android Keystore / a non-extractable WebCrypto key). The private
12418
+ * key never travels. The hub signs the PUBLIC key into an X.509 leaf under a
12419
+ * dedicated device CA; the device later proves possession of the key by
12420
+ * signing a hub-issued nonce, and the hub answers with the same session a
12421
+ * password login opens.
12422
+ *
12423
+ * Everything on the wire is a small string (a PEM, a base64url signature):
12424
+ * D613 is about bulk bytes, and a certificate is ~600 bytes.
12425
+ */
12426
+ /** Signature algorithm of every device credential: ECDSA, curve P-256, SHA-256. */
12427
+ var DEVICE_CERT_SIGNATURE = "ecdsa-p256-sha256";
12428
+ /** First line of every signed message; a change of format bumps the version. */
12429
+ var DEVICE_SIGNATURE_MESSAGE_VERSION = "camstack-device-cert-v1";
12430
+ _enum([
12431
+ "login",
12432
+ "renew",
12433
+ "revoke"
12434
+ ]);
12435
+ var DevicePlatformSchema = _enum([
12436
+ "ios",
12437
+ "android",
12438
+ "web",
12439
+ "other"
12440
+ ]);
12441
+ var Base64UrlSchema = string().min(1).max(4096).regex(/^[A-Za-z0-9_-]+$/);
12442
+ var PemSchema = string().min(1).max(16384);
12443
+ /**
12444
+ * Why a device-certificate endpoint said no. Distinct from a transport / 5xx
12445
+ * failure: those carry no reason and mean "try again", never "the credential is
12446
+ * dead". The viewer switches on this exhaustively.
12447
+ */
12448
+ var DeviceRefusalReasonSchema = _enum([
12449
+ "revoked",
12450
+ "unknown-credential",
12451
+ "expired",
12452
+ "bad-signature",
12453
+ "nonce-invalid",
12454
+ "rate-limited",
12455
+ "invalid-certificate",
12456
+ "superseded",
12457
+ "user-gone",
12458
+ "unavailable",
12459
+ "code-invalid",
12460
+ "self-enrollment-disabled",
12461
+ "step-up-required",
12462
+ "bad-public-key"
12463
+ ]);
12464
+ var DeviceRefusalSchema = object({
12465
+ ok: literal(false),
12466
+ reason: DeviceRefusalReasonSchema,
12467
+ definitive: boolean(),
12468
+ retryAfterSeconds: number().optional()
12469
+ });
12470
+ object({
12471
+ code: string().min(1).max(256),
12472
+ /** SubjectPublicKeyInfo DER of the device's P-256 public key, base64url. */
12473
+ publicKeySpki: Base64UrlSchema,
12474
+ deviceName: string().min(1).max(80).optional(),
12475
+ platform: DevicePlatformSchema
12476
+ });
12477
+ discriminatedUnion("ok", [object({
12478
+ credentialId: string(),
12479
+ certPem: PemSchema,
12480
+ /** The device CA certificate the leaf chains to. */
12481
+ chainPem: PemSchema,
12482
+ notAfter: number(),
12483
+ user: object({
12484
+ id: string(),
12485
+ username: string()
12486
+ })
12487
+ }).extend({ ok: literal(true) }), DeviceRefusalSchema]);
12488
+ object({
12489
+ /** The single-use step-up proof (`auth.deviceEnrollProofFrom…`). */
12490
+ proof: string().min(1).max(512),
12491
+ publicKeySpki: Base64UrlSchema,
12492
+ deviceName: string().min(1).max(80),
12493
+ platform: DevicePlatformSchema
12494
+ });
12495
+ object({
12496
+ proof: string(),
12497
+ expiresAt: number()
12498
+ });
12499
+ discriminatedUnion("ok", [object({
12500
+ nonce: string(),
12501
+ /** The origin to put in the signed message. The app compares it to the hub it dialled. */
12502
+ origin: string(),
12503
+ expiresAt: number(),
12504
+ signature: literal(DEVICE_CERT_SIGNATURE)
12505
+ }).extend({ ok: literal(true) }), DeviceRefusalSchema]);
12506
+ object({
12507
+ certPem: PemSchema,
12508
+ nonce: string().min(1).max(256),
12509
+ /** ECDSA P-256 SHA-256 over {@link buildDeviceSignatureMessage}; raw r||s or DER, base64url. */
12510
+ signature: Base64UrlSchema
12511
+ });
12512
+ discriminatedUnion("ok", [object({
12513
+ credentialId: string(),
12514
+ certPem: PemSchema,
12515
+ chainPem: PemSchema,
12516
+ notAfter: number()
12517
+ }).extend({ ok: literal(true) }), DeviceRefusalSchema]);
12518
+ discriminatedUnion("ok", [object({
12519
+ ok: literal(true),
12520
+ credentialId: string(),
12521
+ sessionsEnded: number().int()
12522
+ }), DeviceRefusalSchema]);
12523
+ var DeviceCredentialStatusSchema = _enum([
12524
+ "active",
12525
+ "expired",
12526
+ "revoked"
12527
+ ]);
12528
+ var DeviceCredentialSchema = object({
12529
+ id: string(),
12530
+ userId: string(),
12531
+ username: string().nullable(),
12532
+ deviceName: string(),
12533
+ platform: DevicePlatformSchema,
12534
+ enrolledVia: _enum(["qr", "self"]),
12535
+ /** SHA-256 of the leaf certificate DER, colon-hex. */
12536
+ fingerprint: string(),
12537
+ issuedAt: number(),
12538
+ expiresAt: number(),
12539
+ lastUsedAt: number().nullable(),
12540
+ lastUsedFrom: string().nullable(),
12541
+ revokedAt: number().nullable(),
12542
+ /** `admin:<userId>` | `user:<userId>` | `device` | `user-deleted`. */
12543
+ revokedBy: string().nullable(),
12544
+ status: DeviceCredentialStatusSchema
12545
+ });
12546
+ var StartEnrollmentOutputSchema = object({
12547
+ /** Shown once; only its hash is kept. */
12548
+ code: string(),
12549
+ expiresAt: number(),
12550
+ /** `camstack://enroll?hub=…&code=…` — what the QR encodes. */
12551
+ enrollUrl: string(),
12552
+ /** The hub origin in the link, or `null` when the hub could not name one (the link then has no `hub`). */
12553
+ hubOrigin: string().nullable(),
12554
+ /** Every origin the apps may try (role `appConnections`). */
12555
+ hubOrigins: array(string())
12556
+ });
12557
+ object({
12558
+ kind: literal("device-certificate"),
12559
+ id: literal("device-certificate"),
12560
+ label: string(),
12561
+ stage: literal("primary"),
12562
+ /** tRPC paths under the hub's `auth` router, so a client names no literal. */
12563
+ challengePath: literal("auth.getDeviceChallenge"),
12564
+ revokePath: literal("auth.revokeOwnDeviceCertificate"),
12565
+ enrollSelfPath: literal("auth.enrollSelf"),
12566
+ loginPath: literal("auth.loginWithDeviceCertificate"),
12567
+ renewPath: literal("auth.renewDeviceCertificate"),
12568
+ signature: literal(DEVICE_CERT_SIGNATURE),
12569
+ messageVersion: literal(DEVICE_SIGNATURE_MESSAGE_VERSION),
12570
+ /** Which clients can execute it: a native app silently, a browser with a non-extractable WebCrypto key. */
12571
+ clients: array(_enum(["native", "web"])),
12572
+ /** The app executes it itself, silently (D858). */
12573
+ app: AppLoginPathSchema.nullable()
12574
+ });
12575
+ /** host[:port] — a DNS name, IPv4 or bracketed IPv6. No userinfo, path or spaces. */
12576
+ var AUTHORITY_RE = /^(?:[a-z0-9.-]+|\[[0-9a-f:.]+\])(?::\d{1,5})?$/i;
12577
+ /** Same grammar as the hub's `parseForwardedPrefix` (spa-mount.ts). */
12578
+ var PREFIX_RE = /^\/[A-Za-z0-9_\-.]+(?:\/[A-Za-z0-9_\-.]+)*$/;
12579
+ var MAX_PREFIX_LENGTH = 512;
12580
+ /** First value of a possibly comma-joined forwarded header (the client-most proxy). */
12581
+ function firstValue(value) {
12582
+ if (value === void 0) return null;
12583
+ const first = value.split(",")[0]?.trim() ?? "";
12584
+ return first.length === 0 ? null : first;
12585
+ }
12586
+ /** `scheme://host[:port]` normalised by WHATWG URL, or `null` if it is not an http(s) origin. */
12587
+ function normalizeOrigin(value) {
12588
+ try {
12589
+ const url = new URL(value);
12590
+ if (url.protocol !== "https:" && url.protocol !== "http:") return null;
12591
+ if (url.username !== "" || url.password !== "") return null;
12592
+ return url.origin;
12593
+ } catch {
12594
+ return null;
12595
+ }
12596
+ }
12597
+ /** The mount prefix the relay named (no trailing slash), or `''`. Invalid = absent. */
12598
+ function requestMountPrefix(headers) {
12599
+ const raw = headers["x-forwarded-prefix"];
12600
+ if (raw === void 0 || raw.length === 0 || raw.length > MAX_PREFIX_LENGTH) return "";
12601
+ const trimmed = raw.endsWith("/") ? raw.slice(0, -1) : raw;
12602
+ if (trimmed === "" || !PREFIX_RE.test(trimmed)) return "";
12603
+ if (trimmed.split("/").some((segment) => segment === ".." || segment === ".")) return "";
12604
+ return trimmed;
12605
+ }
12606
+ /**
12607
+ * The origins the request CLAIMS, most specific first: the proxy's
12608
+ * `X-Forwarded-Host` over `Host`; the named `X-Forwarded-Proto`, or https
12609
+ * then http when none is named (the hub terminates TLS itself on 4443).
12610
+ */
12611
+ function claimedRequestOrigins(headers) {
12612
+ const authority = firstValue(headers["x-forwarded-host"]) ?? firstValue(headers["host"]);
12613
+ if (authority === null || !AUTHORITY_RE.test(authority)) return [];
12614
+ const proto = firstValue(headers["x-forwarded-proto"])?.toLowerCase() ?? null;
12615
+ const schemes = proto === "https" || proto === "http" ? [proto] : proto === null ? ["https", "http"] : [];
12616
+ const out = [];
12617
+ for (const scheme of schemes) {
12618
+ const origin = normalizeOrigin(`${scheme}://${authority}`);
12619
+ if (origin !== null) out.push(origin);
12620
+ }
12621
+ return out;
12622
+ }
12623
+ /** Every origin the hub advertises itself at, normalised. Never the app link, never loopback. */
12624
+ function advertisedHubOrigins(book) {
12625
+ const candidates = [];
12626
+ for (const row of book.rows) {
12627
+ if (row.kind === "app-link" || row.kind === "loopback") continue;
12628
+ candidates.push(row.baseUrl);
12629
+ }
12630
+ const { publicEndpoint, internal, appConnections } = book.roles;
12631
+ if (publicEndpoint.resolved !== null) candidates.push(publicEndpoint.resolved);
12632
+ if (internal.resolved !== null) candidates.push(internal.resolved);
12633
+ candidates.push(...appConnections.resolved);
12634
+ candidates.push(...book.listenerOrigins ?? []);
12635
+ const out = /* @__PURE__ */ new Set();
12636
+ for (const candidate of candidates) {
12637
+ const origin = normalizeOrigin(candidate);
12638
+ if (origin !== null) out.add(origin);
12639
+ }
12640
+ return out;
12641
+ }
12642
+ /**
12643
+ * The origin to send the browser back to: the first claimed origin that is in
12644
+ * `allowed`, or `null` (the caller then uses its default address).
12645
+ */
12646
+ function pickRequestOrigin(headers, allowed) {
12647
+ for (const origin of claimedRequestOrigins(headers)) if (allowed.has(origin)) return origin;
12648
+ return null;
12649
+ }
12329
12650
  var ExpressionBindingSourceSchema = union([
12330
12651
  object({
12331
12652
  kind: literal("field").optional(),
@@ -15932,6 +16253,341 @@ method(object({
15932
16253
  kind: "mutation",
15933
16254
  auth: "admin"
15934
16255
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
16256
+ /**
16257
+ * device-history — the ONE mechanism for numeric history (D850).
16258
+ *
16259
+ * A device value is recorded because its capability says so (the `history`
16260
+ * block of a `*.cap.ts`, captured hub-side from `DeviceStateChanged`); any
16261
+ * other series is DECLARED by the addon that produces it and fed with points
16262
+ * (`record`) or closed five-minute buckets (`recordBuckets`). Rollups 5m / 1h /
16263
+ * 1d are computed here and nowhere else. Storage is `history.db` (D851).
16264
+ *
16265
+ * Who the PRODUCER is: `declareSeries`, `record` and `recordBuckets` are owner
16266
+ * checked against the `callerAddonId` the transport stamps into a call that
16267
+ * crossed a process (never in an input schema, so a session cannot supply it).
16268
+ * A call with no stamp is refused `not-owner`. The methods are `admin` so a
16269
+ * non-admin session never reaches them; an addon's `ctx.api` call bypasses the
16270
+ * tier by design.
16271
+ */
16272
+ /** Whose history: a real device, or a cluster node (load, memory). */
16273
+ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
16274
+ kind: literal("device"),
16275
+ deviceId: number().int()
16276
+ }), object({
16277
+ kind: literal("node"),
16278
+ nodeId: string().min(1)
16279
+ })]);
16280
+ var DeviceHistoryKindSchema = _enum([
16281
+ "gauge",
16282
+ "counter",
16283
+ "boolean"
16284
+ ]);
16285
+ var DeviceHistoryResolutionSchema = _enum([
16286
+ "raw",
16287
+ "5m",
16288
+ "1h",
16289
+ "1d"
16290
+ ]);
16291
+ /** Why a producer's point or bucket was not stored. Counted, never silent (D391). */
16292
+ var DeviceHistoryRefusalReasonSchema = _enum([
16293
+ "undeclared",
16294
+ "not-owner",
16295
+ "opted-out",
16296
+ "not-a-real-device",
16297
+ "rate",
16298
+ "ingest-mismatch",
16299
+ "out-of-range"
16300
+ ]);
16301
+ var RefusalSchema = object({
16302
+ key: string(),
16303
+ reason: DeviceHistoryRefusalReasonSchema,
16304
+ count: number().int()
16305
+ });
16306
+ var IngestResultSchema = object({
16307
+ accepted: number().int(),
16308
+ refused: array(RefusalSchema).readonly()
16309
+ });
16310
+ var SeriesInfoSchema = object({
16311
+ key: string(),
16312
+ scope: string(),
16313
+ kind: DeviceHistoryKindSchema,
16314
+ /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
16315
+ unit: string().nullable(),
16316
+ displayName: string(),
16317
+ source: _enum(["cap", "addon"]),
16318
+ firstTs: number(),
16319
+ lastTs: number()
16320
+ });
16321
+ var QueryPointSchema = object({
16322
+ /** Raw: the point's time. Rollup: the bucket start. */
16323
+ t: number(),
16324
+ samples: number().int(),
16325
+ /** `sum / samples`. */
16326
+ mean: number().nullable(),
16327
+ /** Time-weighted mean (`tw_sum / tw_ms`); `null` for bucket-ingested series. For a boolean: the fraction of time true. */
16328
+ twMean: number().nullable(),
16329
+ min: number(),
16330
+ max: number(),
16331
+ /** `null` is unknown, never zero (D393). */
16332
+ last: number().nullable()
16333
+ });
16334
+ var QuerySeriesSchema = object({
16335
+ scope: string(),
16336
+ /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
16337
+ before: object({
16338
+ t: number(),
16339
+ value: number().nullable()
16340
+ }).nullable(),
16341
+ points: array(QueryPointSchema).readonly()
16342
+ });
16343
+ /** The window part of a query, shared by the device and node forms. */
16344
+ var QueryWindowShape = {
16345
+ key: string(),
16346
+ scope: string().optional(),
16347
+ from: number(),
16348
+ to: number(),
16349
+ resolution: union([DeviceHistoryResolutionSchema, literal("auto")]).default("auto"),
16350
+ maxPoints: number().int().positive().max(5e3).default(1e3)
16351
+ };
16352
+ var QueryResultSchema = object({
16353
+ resolution: DeviceHistoryResolutionSchema,
16354
+ series: array(QuerySeriesSchema).readonly(),
16355
+ truncated: boolean()
16356
+ });
16357
+ var TierStatusSchema = object({
16358
+ tier: DeviceHistoryResolutionSchema,
16359
+ /** `null` until the first background count answered. */
16360
+ rows: number().int().nullable(),
16361
+ /** `rows` times a fixed per-row estimate — approximate, labelled so. */
16362
+ approxBytes: number().nullable(),
16363
+ countedAt: number().nullable()
16364
+ });
16365
+ /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16366
+ var DeviceHistoryStatusSchema = object({
16367
+ startedAt: number(),
16368
+ /** The store is declared, series loaded and the first reconcile has answered. */
16369
+ ready: boolean(),
16370
+ series: number().int(),
16371
+ metrics: number().int(),
16372
+ optedOutDevices: number().int(),
16373
+ tiers: array(TierStatusSchema).readonly(),
16374
+ capture: object({
16375
+ eventsSeen: number().int(),
16376
+ pointsEmitted: number().int(),
16377
+ pointsWritten: number().int(),
16378
+ pointsDropped: number().int(),
16379
+ bufferDepth: number().int(),
16380
+ trailingEmitted: number().int(),
16381
+ reconciledPoints: number().int(),
16382
+ reconcileRuns: number().int(),
16383
+ reconcileFailures: number().int(),
16384
+ lastReconcileAt: number().nullable(),
16385
+ lastFlushAt: number().nullable(),
16386
+ flushFailures: number().int(),
16387
+ skipped: record(string(), number().int())
16388
+ }),
16389
+ ingest: object({
16390
+ accepted: number().int(),
16391
+ refused: record(string(), number().int())
16392
+ }),
16393
+ rollup: object({
16394
+ last5mAt: number().nullable(),
16395
+ last1hAt: number().nullable(),
16396
+ last1dAt: number().nullable(),
16397
+ errors: number().int(),
16398
+ dirty5m: number().int(),
16399
+ dirty1h: number().int(),
16400
+ dirty1d: number().int()
16401
+ }),
16402
+ retention: object({
16403
+ lastRunAt: number().nullable(),
16404
+ deleted: record(string(), number().int()),
16405
+ purgedSeries: number().int()
16406
+ }),
16407
+ directory: object({
16408
+ devices: number().int(),
16409
+ lastRefreshAt: number().nullable()
16410
+ })
16411
+ });
16412
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
16413
+ deviceId: number().int(),
16414
+ ...QueryWindowShape
16415
+ }), QueryResultSchema), method(object({
16416
+ nodeId: string().min(1),
16417
+ ...QueryWindowShape
16418
+ }), QueryResultSchema, { auth: "admin" }), method(object({
16419
+ name: string().regex(/^[a-z0-9-]+$/),
16420
+ subjectKind: _enum(["device", "node"]),
16421
+ kind: DeviceHistoryKindSchema,
16422
+ unit: string().optional(),
16423
+ displayName: string().min(1),
16424
+ ingest: _enum(["points", "buckets"])
16425
+ }), object({ key: string() }), {
16426
+ kind: "mutation",
16427
+ auth: "admin"
16428
+ }), method(object({ points: array(object({
16429
+ key: string(),
16430
+ subject: DeviceHistorySubjectSchema,
16431
+ scope: string().default(""),
16432
+ ts: number(),
16433
+ value: number()
16434
+ })).max(5e3) }), IngestResultSchema, {
16435
+ kind: "mutation",
16436
+ auth: "admin"
16437
+ }), method(object({ buckets: array(object({
16438
+ key: string(),
16439
+ subject: DeviceHistorySubjectSchema,
16440
+ scope: string().default(""),
16441
+ bucketStart: number(),
16442
+ samples: number().int().positive(),
16443
+ sum: number(),
16444
+ min: number(),
16445
+ max: number(),
16446
+ last: number().nullable(),
16447
+ lastTs: number().nullable()
16448
+ })).max(5e3) }), IngestResultSchema, {
16449
+ kind: "mutation",
16450
+ auth: "admin"
16451
+ }), method(object({ deviceId: number().int() }), object({ enabled: boolean() })), method(object({
16452
+ deviceId: number().int(),
16453
+ enabled: boolean()
16454
+ }), object({ enabled: boolean() }), {
16455
+ kind: "mutation",
16456
+ auth: "admin"
16457
+ }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
16458
+ var DeviceCaStatusSchema = discriminatedUnion("state", [
16459
+ object({ state: literal("absent") }),
16460
+ object({
16461
+ state: literal("ready"),
16462
+ subject: string(),
16463
+ fingerprintSha256: string(),
16464
+ validTo: string()
16465
+ }),
16466
+ object({
16467
+ state: literal("unavailable"),
16468
+ reason: string()
16469
+ })
16470
+ ]);
16471
+ var DeviceCertificateSettingsSchema = object({ selfEnrollment: _enum(["allowed", "disabled"]) });
16472
+ method(object({
16473
+ userId: string().min(1).optional(),
16474
+ includeRevoked: boolean().default(false)
16475
+ }), array(DeviceCredentialSchema).readonly(), { auth: "admin" }), method(object({
16476
+ userId: string().min(1),
16477
+ deviceName: string().min(1).max(80)
16478
+ }), StartEnrollmentOutputSchema, {
16479
+ kind: "mutation",
16480
+ auth: "admin",
16481
+ caller: "required"
16482
+ }), method(object({ id: string().min(1) }), object({
16483
+ revoked: boolean(),
16484
+ sessionsEnded: number().int(),
16485
+ status: DeviceCredentialStatusSchema
16486
+ }), {
16487
+ kind: "mutation",
16488
+ auth: "admin",
16489
+ caller: "required"
16490
+ }), method(object({}), DeviceCertificateSettingsSchema, { auth: "admin" }), method(DeviceCertificateSettingsSchema, DeviceCertificateSettingsSchema, {
16491
+ kind: "mutation",
16492
+ auth: "admin"
16493
+ }), method(object({ id: string().min(1) }), object({ result: _enum([
16494
+ "deleted",
16495
+ "live",
16496
+ "unknown"
16497
+ ]) }), {
16498
+ kind: "mutation",
16499
+ auth: "admin",
16500
+ caller: "required"
16501
+ }), method(object({}), DeviceCaStatusSchema, { auth: "admin" }), method(object({
16502
+ id: string().min(1),
16503
+ deviceName: string().min(1).max(80)
16504
+ }), object({ renamed: boolean() }), {
16505
+ kind: "mutation",
16506
+ auth: "admin"
16507
+ });
16508
+ /**
16509
+ * `node-certificates` - what a node holds and the two renewals the hub drives
16510
+ * (D856): the node's MESH leaf (mutual TLS to the hub) and its HTTPS leaf (issued
16511
+ * from the hub's local CA so a device that trusts the hub root trusts the node).
16512
+ *
16513
+ * Provided by the AGENT RUNTIME (the synthetic `agent-runtime` addon id, like
16514
+ * `server-management`): the hub reaches it through the ordinary node-pinned
16515
+ * capability call - no new Moleculer action. The hub's own certificates are
16516
+ * handled in-process by the hub (`certificates` router), so this cap has no hub
16517
+ * provider.
16518
+ *
16519
+ * No private key ever crosses the mesh: the node generates its key pair, sends a
16520
+ * CSR, and the hub returns only the signed certificate.
16521
+ */
16522
+ var MeshLeafInfoSchema = object({
16523
+ cn: string(),
16524
+ serial: string(),
16525
+ fingerprintSha256: string(),
16526
+ notBefore: number(),
16527
+ notAfter: number()
16528
+ });
16529
+ var HttpsLeafInfoSchema = object({
16530
+ fingerprintSha256: string(),
16531
+ issuer: string(),
16532
+ sans: array(string()),
16533
+ notBefore: number(),
16534
+ notAfter: number()
16535
+ });
16536
+ var NodeHttpsStateSchema = discriminatedUnion("state", [object({
16537
+ state: literal("served"),
16538
+ leaf: HttpsLeafInfoSchema
16539
+ }), object({
16540
+ state: literal("not-issued"),
16541
+ reason: string()
16542
+ })]);
16543
+ method(object({}), object({
16544
+ nodeId: string(),
16545
+ mesh: MeshLeafInfoSchema.nullable(),
16546
+ https: NodeHttpsStateSchema
16547
+ }), { auth: "admin" }), method(object({}), object({ csrPem: string() }), {
16548
+ kind: "mutation",
16549
+ auth: "admin"
16550
+ }), method(object({
16551
+ certPem: string().min(1),
16552
+ caCertPem: string().min(1),
16553
+ confirmWithinMs: number().int().min(1e4).max(6e5)
16554
+ }), object({
16555
+ fingerprintSha256: string(),
16556
+ serial: string()
16557
+ }), {
16558
+ kind: "mutation",
16559
+ auth: "admin"
16560
+ }), method(object({ fingerprintSha256: string() }), object({ confirmed: boolean() }), {
16561
+ kind: "mutation",
16562
+ auth: "admin"
16563
+ }), method(object({}), object({ rolledBack: boolean() }), {
16564
+ kind: "mutation",
16565
+ auth: "admin"
16566
+ }), method(object({}), object({
16567
+ csrPem: string(),
16568
+ hostnames: array(string()),
16569
+ addresses: array(string()),
16570
+ /** SHA-256 of the hub local CA this node pinned at its first install; `null` before one. */
16571
+ pinnedCaFingerprintSha256: string().nullable()
16572
+ }), {
16573
+ kind: "mutation",
16574
+ auth: "admin"
16575
+ }), method(object({}), object({ ok: literal(true) }), {
16576
+ kind: "mutation",
16577
+ auth: "admin"
16578
+ }), method(object({
16579
+ certPem: string().min(1),
16580
+ caCertPem: string().min(1),
16581
+ /**
16582
+ * The hub signals that its local CA was rotated (D227) and this leaf chains to the NEW
16583
+ * one. Only the hub, over the authenticated mesh, can say so; a leaf with a different CA
16584
+ * and no signal is refused.
16585
+ */
16586
+ caRotation: boolean().optional()
16587
+ }), HttpsLeafInfoSchema, {
16588
+ kind: "mutation",
16589
+ auth: "admin"
16590
+ });
15935
16591
  var KeychainKeySourceSchema = object({
15936
16592
  kind: _enum([
15937
16593
  "config-file",
@@ -38684,7 +39340,13 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
38684
39340
  * `beginExternalLink` offer exactly the redirect methods that set this,
38685
39341
  * whatever their id. Absent / false — a login button only.
38686
39342
  */
38687
- linkable: boolean().optional()
39343
+ linkable: boolean().optional(),
39344
+ /**
39345
+ * How a NATIVE app starts this method (D858): `{ kind: 'browser', startPath }`
39346
+ * when the route understands the app flow query (`app=1&code_challenge=…`),
39347
+ * `null`/absent when there is no app path - the app hides the method.
39348
+ */
39349
+ app: AppLoginPathSchema.nullable().optional()
38688
39350
  }),
38689
39351
  object({
38690
39352
  kind: literal("widget"),
@@ -38696,7 +39358,9 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
38696
39358
  bundle: string(),
38697
39359
  /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
38698
39360
  remote: WidgetRemoteSchema,
38699
- stage: LoginStageEnum
39361
+ stage: LoginStageEnum,
39362
+ /** Widgets are web ceremonies: no native app path (D858). Absent reads as `null`. */
39363
+ app: AppLoginPathSchema.nullable().optional()
38700
39364
  }),
38701
39365
  object({
38702
39366
  kind: literal("passkey"),
@@ -38708,7 +39372,9 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
38708
39372
  /** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
38709
39373
  rpId: string(),
38710
39374
  /** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
38711
- origin: string().nullable()
39375
+ origin: string().nullable(),
39376
+ /** Set by the hub for the primary arm; a second-factor passkey has no app path (D858). */
39377
+ app: AppLoginPathSchema.nullable().optional()
38712
39378
  })
38713
39379
  ]);
38714
39380
  var loginMethodCapability = {
@@ -49265,7 +49931,20 @@ var SsoBridgeClaimsSchema = object({
49265
49931
  * request to present the matching cookie — a login bridge is useless in
49266
49932
  * any other browser.
49267
49933
  */
49268
- browserBinding: string().optional()
49934
+ browserBinding: string().optional(),
49935
+ /**
49936
+ * The native app that started this sign-in (D858): its PKCE challenge,
49937
+ * `state`, purpose and allow-listed return URL, copied from the server-side
49938
+ * pending OIDC state. A bridge carrying it is finished ONLY at
49939
+ * `/api/auth/sso/finish-app` (which mints a handoff code, never a web
49940
+ * session); `/api/auth/sso/finish` refuses it.
49941
+ */
49942
+ app: object({
49943
+ codeChallenge: string(),
49944
+ state: string(),
49945
+ purpose: _enum(["new-session", "step-up"]),
49946
+ redirect: string()
49947
+ }).optional()
49269
49948
  });
49270
49949
  method(object({
49271
49950
  claims: SsoBridgeClaimsSchema,
@@ -54705,7 +55384,7 @@ var MotionOnMotionChangedDataSchema = object({
54705
55384
  /** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
54706
55385
  triggeredBy: MotionTriggeredBySchema.optional()
54707
55386
  });
54708
- DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean());
55387
+ DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean()), DeviceType.Camera;
54709
55388
  object({
54710
55389
  enabled: boolean(),
54711
55390
  /** Ms epoch of the last operator-driven change. */
@@ -61912,6 +62591,54 @@ Object.freeze({
61912
62591
  addonId: null,
61913
62592
  access: "create"
61914
62593
  },
62594
+ "deviceCredentials.deleteDeviceCredential": {
62595
+ capName: "device-credentials",
62596
+ capScope: "system",
62597
+ addonId: null,
62598
+ access: "delete"
62599
+ },
62600
+ "deviceCredentials.getDeviceCaStatus": {
62601
+ capName: "device-credentials",
62602
+ capScope: "system",
62603
+ addonId: null,
62604
+ access: "view"
62605
+ },
62606
+ "deviceCredentials.getDeviceCertificateSettings": {
62607
+ capName: "device-credentials",
62608
+ capScope: "system",
62609
+ addonId: null,
62610
+ access: "view"
62611
+ },
62612
+ "deviceCredentials.listDeviceCredentials": {
62613
+ capName: "device-credentials",
62614
+ capScope: "system",
62615
+ addonId: null,
62616
+ access: "view"
62617
+ },
62618
+ "deviceCredentials.renameDeviceCredential": {
62619
+ capName: "device-credentials",
62620
+ capScope: "system",
62621
+ addonId: null,
62622
+ access: "create"
62623
+ },
62624
+ "deviceCredentials.revokeDeviceCredential": {
62625
+ capName: "device-credentials",
62626
+ capScope: "system",
62627
+ addonId: null,
62628
+ access: "delete"
62629
+ },
62630
+ "deviceCredentials.setDeviceCertificateSettings": {
62631
+ capName: "device-credentials",
62632
+ capScope: "system",
62633
+ addonId: null,
62634
+ access: "create"
62635
+ },
62636
+ "deviceCredentials.startEnrollment": {
62637
+ capName: "device-credentials",
62638
+ capScope: "system",
62639
+ addonId: null,
62640
+ access: "create"
62641
+ },
61915
62642
  "deviceDiscovery.adoptDevice": {
61916
62643
  capName: "device-discovery",
61917
62644
  capScope: "device",
@@ -62014,6 +62741,66 @@ Object.freeze({
62014
62741
  addonId: null,
62015
62742
  access: "create"
62016
62743
  },
62744
+ "deviceHistory.declareSeries": {
62745
+ capName: "device-history",
62746
+ capScope: "system",
62747
+ addonId: null,
62748
+ access: "create"
62749
+ },
62750
+ "deviceHistory.getDeviceEnabled": {
62751
+ capName: "device-history",
62752
+ capScope: "system",
62753
+ addonId: null,
62754
+ access: "view"
62755
+ },
62756
+ "deviceHistory.getStatus": {
62757
+ capName: "device-history",
62758
+ capScope: "system",
62759
+ addonId: null,
62760
+ access: "view"
62761
+ },
62762
+ "deviceHistory.listNodeSeries": {
62763
+ capName: "device-history",
62764
+ capScope: "system",
62765
+ addonId: null,
62766
+ access: "view"
62767
+ },
62768
+ "deviceHistory.listSeries": {
62769
+ capName: "device-history",
62770
+ capScope: "system",
62771
+ addonId: null,
62772
+ access: "view"
62773
+ },
62774
+ "deviceHistory.query": {
62775
+ capName: "device-history",
62776
+ capScope: "system",
62777
+ addonId: null,
62778
+ access: "view"
62779
+ },
62780
+ "deviceHistory.queryNode": {
62781
+ capName: "device-history",
62782
+ capScope: "system",
62783
+ addonId: null,
62784
+ access: "view"
62785
+ },
62786
+ "deviceHistory.record": {
62787
+ capName: "device-history",
62788
+ capScope: "system",
62789
+ addonId: null,
62790
+ access: "create"
62791
+ },
62792
+ "deviceHistory.recordBuckets": {
62793
+ capName: "device-history",
62794
+ capScope: "system",
62795
+ addonId: null,
62796
+ access: "create"
62797
+ },
62798
+ "deviceHistory.setDeviceEnabled": {
62799
+ capName: "device-history",
62800
+ capScope: "system",
62801
+ addonId: null,
62802
+ access: "create"
62803
+ },
62017
62804
  "deviceManager.addLocation": {
62018
62805
  capName: "device-manager",
62019
62806
  capScope: "system",
@@ -64072,6 +64859,54 @@ Object.freeze({
64072
64859
  addonId: null,
64073
64860
  access: "create"
64074
64861
  },
64862
+ "nodeCertificates.confirmMeshLeaf": {
64863
+ capName: "node-certificates",
64864
+ capScope: "system",
64865
+ addonId: null,
64866
+ access: "create"
64867
+ },
64868
+ "nodeCertificates.forgetHub": {
64869
+ capName: "node-certificates",
64870
+ capScope: "system",
64871
+ addonId: null,
64872
+ access: "delete"
64873
+ },
64874
+ "nodeCertificates.getCertificates": {
64875
+ capName: "node-certificates",
64876
+ capScope: "system",
64877
+ addonId: null,
64878
+ access: "view"
64879
+ },
64880
+ "nodeCertificates.installHttpsCertificate": {
64881
+ capName: "node-certificates",
64882
+ capScope: "system",
64883
+ addonId: null,
64884
+ access: "create"
64885
+ },
64886
+ "nodeCertificates.installMeshLeaf": {
64887
+ capName: "node-certificates",
64888
+ capScope: "system",
64889
+ addonId: null,
64890
+ access: "create"
64891
+ },
64892
+ "nodeCertificates.prepareHttpsCertificate": {
64893
+ capName: "node-certificates",
64894
+ capScope: "system",
64895
+ addonId: null,
64896
+ access: "create"
64897
+ },
64898
+ "nodeCertificates.prepareMeshRenewal": {
64899
+ capName: "node-certificates",
64900
+ capScope: "system",
64901
+ addonId: null,
64902
+ access: "create"
64903
+ },
64904
+ "nodeCertificates.rollbackMeshLeaf": {
64905
+ capName: "node-certificates",
64906
+ capScope: "system",
64907
+ addonId: null,
64908
+ access: "create"
64909
+ },
64075
64910
  "nodes.clusterAddonStatus": {
64076
64911
  capName: "nodes",
64077
64912
  capScope: "system",
@@ -68763,6 +69598,26 @@ Object.freeze({
68763
69598
  form: "single",
68764
69599
  optional: false
68765
69600
  }],
69601
+ "deviceHistory.getDeviceEnabled": [{
69602
+ name: "deviceId",
69603
+ form: "single",
69604
+ optional: false
69605
+ }],
69606
+ "deviceHistory.listSeries": [{
69607
+ name: "deviceId",
69608
+ form: "single",
69609
+ optional: false
69610
+ }],
69611
+ "deviceHistory.query": [{
69612
+ name: "deviceId",
69613
+ form: "single",
69614
+ optional: false
69615
+ }],
69616
+ "deviceHistory.setDeviceEnabled": [{
69617
+ name: "deviceId",
69618
+ form: "single",
69619
+ optional: false
69620
+ }],
68766
69621
  "deviceManager.adoptionRelease": [{
68767
69622
  name: "camDeviceId",
68768
69623
  form: "single",
@@ -70941,6 +71796,7 @@ Object.freeze({
70941
71796
  "network-access": "ingress",
70942
71797
  "smtp-provider": "email"
70943
71798
  });
71799
+ DeviceType.Camera;
70944
71800
  var G711_SCALE_CORRECTION_DB = {
70945
71801
  PCMU: 20 * Math.log10(4),
70946
71802
  PCMA: 20 * Math.log10(8)
@@ -72007,165 +72863,4 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
72007
72863
  var MB = 1024 * 1024;
72008
72864
  1024 * MB, 3072 * MB;
72009
72865
  //#endregion
72010
- Object.defineProperty(exports, "BaseAddon", {
72011
- enumerable: true,
72012
- get: function() {
72013
- return BaseAddon;
72014
- }
72015
- });
72016
- Object.defineProperty(exports, "SECRET_CLEAR", {
72017
- enumerable: true,
72018
- get: function() {
72019
- return SECRET_CLEAR;
72020
- }
72021
- });
72022
- Object.defineProperty(exports, "SSO_STATE_COOKIE", {
72023
- enumerable: true,
72024
- get: function() {
72025
- return SSO_STATE_COOKIE;
72026
- }
72027
- });
72028
- Object.defineProperty(exports, "__commonJSMin", {
72029
- enumerable: true,
72030
- get: function() {
72031
- return __commonJSMin;
72032
- }
72033
- });
72034
- Object.defineProperty(exports, "__esmMin", {
72035
- enumerable: true,
72036
- get: function() {
72037
- return __esmMin;
72038
- }
72039
- });
72040
- Object.defineProperty(exports, "__exportAll", {
72041
- enumerable: true,
72042
- get: function() {
72043
- return __exportAll;
72044
- }
72045
- });
72046
- Object.defineProperty(exports, "__toCommonJS", {
72047
- enumerable: true,
72048
- get: function() {
72049
- return __toCommonJS;
72050
- }
72051
- });
72052
- Object.defineProperty(exports, "__toESM", {
72053
- enumerable: true,
72054
- get: function() {
72055
- return __toESM;
72056
- }
72057
- });
72058
- Object.defineProperty(exports, "addonRoutesCapability", {
72059
- enumerable: true,
72060
- get: function() {
72061
- return addonRoutesCapability;
72062
- }
72063
- });
72064
- Object.defineProperty(exports, "addonWidgetsSourceCapability", {
72065
- enumerable: true,
72066
- get: function() {
72067
- return addonWidgetsSourceCapability;
72068
- }
72069
- });
72070
- Object.defineProperty(exports, "array", {
72071
- enumerable: true,
72072
- get: function() {
72073
- return array;
72074
- }
72075
- });
72076
- Object.defineProperty(exports, "arrayItemFieldPath", {
72077
- enumerable: true,
72078
- get: function() {
72079
- return arrayItemFieldPath;
72080
- }
72081
- });
72082
- Object.defineProperty(exports, "authProviderCapability", {
72083
- enumerable: true,
72084
- get: function() {
72085
- return authProviderCapability;
72086
- }
72087
- });
72088
- Object.defineProperty(exports, "boolean", {
72089
- enumerable: true,
72090
- get: function() {
72091
- return boolean;
72092
- }
72093
- });
72094
- Object.defineProperty(exports, "buildAddonRouteProvider", {
72095
- enumerable: true,
72096
- get: function() {
72097
- return buildAddonRouteProvider;
72098
- }
72099
- });
72100
- Object.defineProperty(exports, "errMsg", {
72101
- enumerable: true,
72102
- get: function() {
72103
- return errMsg;
72104
- }
72105
- });
72106
- Object.defineProperty(exports, "globalSecretScope", {
72107
- enumerable: true,
72108
- get: function() {
72109
- return globalSecretScope;
72110
- }
72111
- });
72112
- Object.defineProperty(exports, "isSecretClear", {
72113
- enumerable: true,
72114
- get: function() {
72115
- return isSecretClear;
72116
- }
72117
- });
72118
- Object.defineProperty(exports, "isSecretMarker", {
72119
- enumerable: true,
72120
- get: function() {
72121
- return isSecretMarker;
72122
- }
72123
- });
72124
- Object.defineProperty(exports, "loginMethodCapability", {
72125
- enumerable: true,
72126
- get: function() {
72127
- return loginMethodCapability;
72128
- }
72129
- });
72130
- Object.defineProperty(exports, "number", {
72131
- enumerable: true,
72132
- get: function() {
72133
- return number;
72134
- }
72135
- });
72136
- Object.defineProperty(exports, "object", {
72137
- enumerable: true,
72138
- get: function() {
72139
- return object;
72140
- }
72141
- });
72142
- Object.defineProperty(exports, "oidcConnectionsCapability", {
72143
- enumerable: true,
72144
- get: function() {
72145
- return oidcConnectionsCapability;
72146
- }
72147
- });
72148
- Object.defineProperty(exports, "resolveIconKey", {
72149
- enumerable: true,
72150
- get: function() {
72151
- return resolveIconKey;
72152
- }
72153
- });
72154
- Object.defineProperty(exports, "string", {
72155
- enumerable: true,
72156
- get: function() {
72157
- return string;
72158
- }
72159
- });
72160
- Object.defineProperty(exports, "toSecretFieldView", {
72161
- enumerable: true,
72162
- get: function() {
72163
- return toSecretFieldView;
72164
- }
72165
- });
72166
- Object.defineProperty(exports, "userPasskeysCapability", {
72167
- enumerable: true,
72168
- get: function() {
72169
- return userPasskeysCapability;
72170
- }
72171
- });
72866
+ export { object as A, globalSecretScope as C, array as D, toSecretFieldView as E, boolean as O, arrayItemFieldPath as S, isSecretMarker as T, resolveIconKey as _, addonWidgetsSourceCapability as a, BaseAddon as b, authProviderCapability as c, loginMethodCapability as d, normalizeOrigin as f, requestMountPrefix as g, pickRequestOrigin as h, addonRoutesCapability as i, string as j, number as k, buildAddonRouteProvider as l, parseAppFlowRequest as m, APP_FLOW_REFUSAL_MESSAGES as n, advertisedHubOrigins as o, oidcConnectionsCapability as p, SSO_STATE_COOKIE as r, appFlowLocation as s, APP_FLOW_DEFAULT_REDIRECT as t, claimedRequestOrigins as u, userPasskeysCapability as v, isSecretClear as w, SECRET_CLEAR as x, errMsg as y };