@camstack/addon-auth 1.2.144 → 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.
- package/dist/{dist-ChwITXNa.mjs → dist-B2h4Ziv7.mjs} +442 -8
- package/dist/{dist-0YTEFDYk.js → dist-Be0i-dLp.js} +465 -7
- package/dist/oidc/auth-oidc.addon.js +126 -15
- package/dist/oidc/auth-oidc.addon.mjs +126 -15
- package/dist/webauthn/_stub.js +1 -1
- package/dist/webauthn/{_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-ZRpCO_gp.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-DuRYyuGp.mjs} +2 -2
- package/dist/webauthn/_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DSXWgur5.mjs +26 -0
- package/dist/webauthn/auth-webauthn.addon.js +16 -4
- package/dist/webauthn/auth-webauthn.addon.mjs +16 -5
- package/dist/webauthn/{hostInit-YhJ9npQM.mjs → hostInit-B5ByDlK7.mjs} +2 -2
- package/dist/webauthn/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/webauthn/_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-xhY74yma.mjs +0 -26
|
@@ -5386,7 +5386,7 @@ var ZodIssueCode = {
|
|
|
5386
5386
|
var ZodFirstPartyTypeKind;
|
|
5387
5387
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5388
5388
|
//#endregion
|
|
5389
|
-
//#region ../types/dist/sleep-
|
|
5389
|
+
//#region ../types/dist/sleep-DAX0-2v9.mjs
|
|
5390
5390
|
/**
|
|
5391
5391
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5392
5392
|
* window to float samples (D455).
|
|
@@ -12279,6 +12279,123 @@ var ConvertResultSchema = object({
|
|
|
12279
12279
|
})).readonly()
|
|
12280
12280
|
});
|
|
12281
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
|
+
/**
|
|
12282
12399
|
* The cookie that binds an SSO sign-in to the browser that started it.
|
|
12283
12400
|
*
|
|
12284
12401
|
* An IdP `/start` sets it to a random value and keeps only its SHA-256 in the
|
|
@@ -12451,7 +12568,9 @@ object({
|
|
|
12451
12568
|
signature: literal(DEVICE_CERT_SIGNATURE),
|
|
12452
12569
|
messageVersion: literal(DEVICE_SIGNATURE_MESSAGE_VERSION),
|
|
12453
12570
|
/** Which clients can execute it: a native app silently, a browser with a non-extractable WebCrypto key. */
|
|
12454
|
-
clients: array(_enum(["native", "web"]))
|
|
12571
|
+
clients: array(_enum(["native", "web"])),
|
|
12572
|
+
/** The app executes it itself, silently (D858). */
|
|
12573
|
+
app: AppLoginPathSchema.nullable()
|
|
12455
12574
|
});
|
|
12456
12575
|
/** host[:port] — a DNS name, IPv4 or bracketed IPv6. No userinfo, path or spaces. */
|
|
12457
12576
|
var AUTHORITY_RE = /^(?:[a-z0-9.-]+|\[[0-9a-f:.]+\])(?::\d{1,5})?$/i;
|
|
@@ -16134,6 +16253,208 @@ method(object({
|
|
|
16134
16253
|
kind: "mutation",
|
|
16135
16254
|
auth: "admin"
|
|
16136
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" });
|
|
16137
16458
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
16138
16459
|
object({ state: literal("absent") }),
|
|
16139
16460
|
object({
|
|
@@ -16251,6 +16572,9 @@ method(object({}), object({
|
|
|
16251
16572
|
}), {
|
|
16252
16573
|
kind: "mutation",
|
|
16253
16574
|
auth: "admin"
|
|
16575
|
+
}), method(object({}), object({ ok: literal(true) }), {
|
|
16576
|
+
kind: "mutation",
|
|
16577
|
+
auth: "admin"
|
|
16254
16578
|
}), method(object({
|
|
16255
16579
|
certPem: string().min(1),
|
|
16256
16580
|
caCertPem: string().min(1),
|
|
@@ -39016,7 +39340,13 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
39016
39340
|
* `beginExternalLink` offer exactly the redirect methods that set this,
|
|
39017
39341
|
* whatever their id. Absent / false — a login button only.
|
|
39018
39342
|
*/
|
|
39019
|
-
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()
|
|
39020
39350
|
}),
|
|
39021
39351
|
object({
|
|
39022
39352
|
kind: literal("widget"),
|
|
@@ -39028,7 +39358,9 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
39028
39358
|
bundle: string(),
|
|
39029
39359
|
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
39030
39360
|
remote: WidgetRemoteSchema,
|
|
39031
|
-
stage: LoginStageEnum
|
|
39361
|
+
stage: LoginStageEnum,
|
|
39362
|
+
/** Widgets are web ceremonies: no native app path (D858). Absent reads as `null`. */
|
|
39363
|
+
app: AppLoginPathSchema.nullable().optional()
|
|
39032
39364
|
}),
|
|
39033
39365
|
object({
|
|
39034
39366
|
kind: literal("passkey"),
|
|
@@ -39040,7 +39372,9 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
39040
39372
|
/** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
|
|
39041
39373
|
rpId: string(),
|
|
39042
39374
|
/** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
|
|
39043
|
-
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()
|
|
39044
39378
|
})
|
|
39045
39379
|
]);
|
|
39046
39380
|
var loginMethodCapability = {
|
|
@@ -49597,7 +49931,20 @@ var SsoBridgeClaimsSchema = object({
|
|
|
49597
49931
|
* request to present the matching cookie — a login bridge is useless in
|
|
49598
49932
|
* any other browser.
|
|
49599
49933
|
*/
|
|
49600
|
-
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()
|
|
49601
49948
|
});
|
|
49602
49949
|
method(object({
|
|
49603
49950
|
claims: SsoBridgeClaimsSchema,
|
|
@@ -55037,7 +55384,7 @@ var MotionOnMotionChangedDataSchema = object({
|
|
|
55037
55384
|
/** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
|
|
55038
55385
|
triggeredBy: MotionTriggeredBySchema.optional()
|
|
55039
55386
|
});
|
|
55040
|
-
DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean());
|
|
55387
|
+
DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean()), DeviceType.Camera;
|
|
55041
55388
|
object({
|
|
55042
55389
|
enabled: boolean(),
|
|
55043
55390
|
/** Ms epoch of the last operator-driven change. */
|
|
@@ -62394,6 +62741,66 @@ Object.freeze({
|
|
|
62394
62741
|
addonId: null,
|
|
62395
62742
|
access: "create"
|
|
62396
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
|
+
},
|
|
62397
62804
|
"deviceManager.addLocation": {
|
|
62398
62805
|
capName: "device-manager",
|
|
62399
62806
|
capScope: "system",
|
|
@@ -64458,6 +64865,12 @@ Object.freeze({
|
|
|
64458
64865
|
addonId: null,
|
|
64459
64866
|
access: "create"
|
|
64460
64867
|
},
|
|
64868
|
+
"nodeCertificates.forgetHub": {
|
|
64869
|
+
capName: "node-certificates",
|
|
64870
|
+
capScope: "system",
|
|
64871
|
+
addonId: null,
|
|
64872
|
+
access: "delete"
|
|
64873
|
+
},
|
|
64461
64874
|
"nodeCertificates.getCertificates": {
|
|
64462
64875
|
capName: "node-certificates",
|
|
64463
64876
|
capScope: "system",
|
|
@@ -69185,6 +69598,26 @@ Object.freeze({
|
|
|
69185
69598
|
form: "single",
|
|
69186
69599
|
optional: false
|
|
69187
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
|
+
}],
|
|
69188
69621
|
"deviceManager.adoptionRelease": [{
|
|
69189
69622
|
name: "camDeviceId",
|
|
69190
69623
|
form: "single",
|
|
@@ -71363,6 +71796,7 @@ Object.freeze({
|
|
|
71363
71796
|
"network-access": "ingress",
|
|
71364
71797
|
"smtp-provider": "email"
|
|
71365
71798
|
});
|
|
71799
|
+
DeviceType.Camera;
|
|
71366
71800
|
var G711_SCALE_CORRECTION_DB = {
|
|
71367
71801
|
PCMU: 20 * Math.log10(4),
|
|
71368
71802
|
PCMA: 20 * Math.log10(8)
|
|
@@ -72429,4 +72863,4 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
|
72429
72863
|
var MB = 1024 * 1024;
|
|
72430
72864
|
1024 * MB, 3072 * MB;
|
|
72431
72865
|
//#endregion
|
|
72432
|
-
export {
|
|
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 };
|