@camstack/addon-auth 1.2.146 → 1.2.148
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-DtqB-MTf.js → dist-C2ZA1nlf.js} +214 -7
- package/dist/{dist-BtJOajm3.mjs → dist-roKTj364.mjs} +209 -8
- package/dist/oidc/auth-oidc.addon.js +5 -3
- package/dist/oidc/auth-oidc.addon.mjs +5 -3
- package/dist/webauthn/_stub.js +290 -235
- package/dist/webauthn/{_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-C3_j2tlC.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-DDuFEkrD.mjs} +3 -3
- package/dist/webauthn/_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Jb_VAQPj.mjs +26 -0
- package/dist/webauthn/auth-webauthn.addon.js +1 -1
- package/dist/webauthn/auth-webauthn.addon.mjs +1 -1
- package/dist/webauthn/{hostInit-H35G8h3o.mjs → hostInit-BnyCwNxS.mjs} +3 -3
- 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-C_j9tv24.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-DRqxtc0C.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).
|
|
@@ -8154,8 +8154,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
|
|
|
8154
8154
|
kind: "mutation",
|
|
8155
8155
|
auth: "admin"
|
|
8156
8156
|
}), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
8157
|
+
object({
|
|
8158
|
+
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
8159
|
+
params: record(string(), union([string(), number()])).optional()
|
|
8160
|
+
});
|
|
8157
8161
|
//#endregion
|
|
8158
|
-
//#region ../types/dist/err-msg-
|
|
8162
|
+
//#region ../types/dist/err-msg-DLerKiVO.mjs
|
|
8159
8163
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8160
8164
|
DeviceType["Camera"] = "camera";
|
|
8161
8165
|
DeviceType["Hub"] = "hub";
|
|
@@ -8405,6 +8409,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
8405
8409
|
DeviceRole["Nightvision"] = "nightvision";
|
|
8406
8410
|
DeviceRole["PrivacyMask"] = "privacy-mask";
|
|
8407
8411
|
DeviceRole["Doorbell"] = "doorbell";
|
|
8412
|
+
/** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
|
|
8413
|
+
DeviceRole["CoverBlind"] = "cover-blind";
|
|
8414
|
+
/** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
|
|
8415
|
+
DeviceRole["CoverShutter"] = "cover-shutter";
|
|
8416
|
+
/** Exterior awning. HA `device_class: awning`. */
|
|
8417
|
+
DeviceRole["CoverAwning"] = "cover-awning";
|
|
8418
|
+
/** Curtain / drape. HA `device_class: curtain`. */
|
|
8419
|
+
DeviceRole["CoverCurtain"] = "cover-curtain";
|
|
8420
|
+
/** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
|
|
8421
|
+
DeviceRole["CoverGarage"] = "cover-garage";
|
|
8422
|
+
/** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
|
|
8423
|
+
DeviceRole["CoverGate"] = "cover-gate";
|
|
8424
|
+
/** Door. HA `device_class: door`. A security actuator: exports gate it. */
|
|
8425
|
+
DeviceRole["CoverDoor"] = "cover-door";
|
|
8426
|
+
/** Window. HA `device_class: window`. */
|
|
8427
|
+
DeviceRole["CoverWindow"] = "cover-window";
|
|
8408
8428
|
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
8409
8429
|
* real Switch device for UI rendering / export adapters. */
|
|
8410
8430
|
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
@@ -8485,7 +8505,7 @@ function errMsg(err) {
|
|
|
8485
8505
|
return String(err);
|
|
8486
8506
|
}
|
|
8487
8507
|
//#endregion
|
|
8488
|
-
//#region ../types/dist/composition-
|
|
8508
|
+
//#region ../types/dist/composition-EQ9Ok0Ee.mjs
|
|
8489
8509
|
/**
|
|
8490
8510
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8491
8511
|
*
|
|
@@ -12327,6 +12347,13 @@ function parseAppAuthCallback(raw) {
|
|
|
12327
12347
|
*/
|
|
12328
12348
|
/** What the app redeems the code for. `step-up` yields a proof, never a session. */
|
|
12329
12349
|
var AppFlowPurposeSchema = _enum(["new-session", "step-up"]);
|
|
12350
|
+
/** The languages the hub's app landing pages are written in (D858). */
|
|
12351
|
+
var AppPageLangSchema = _enum(["en", "it"]);
|
|
12352
|
+
/** Narrows an untrusted `lang` value to the allow-list; anything else is `undefined`, never echoed. */
|
|
12353
|
+
function parseAppPageLang(value) {
|
|
12354
|
+
const parsed = AppPageLangSchema.safeParse(value);
|
|
12355
|
+
return parsed.success ? parsed.data : void 0;
|
|
12356
|
+
}
|
|
12330
12357
|
/** Where the app is sent when the request names no `redirect`. */
|
|
12331
12358
|
var APP_FLOW_DEFAULT_REDIRECT = "camstack://auth-callback";
|
|
12332
12359
|
/** S256 challenge: base64url of 32 bytes = 43 characters, no padding. */
|
|
@@ -12343,7 +12370,8 @@ var STATE_PATTERN = /^[A-Za-z0-9._~-]{1,256}$/;
|
|
|
12343
12370
|
var APP_REFUSED_PATH = "/auth/app/refused";
|
|
12344
12371
|
/**
|
|
12345
12372
|
* Read the app parameters off a start query: `code_challenge`,
|
|
12346
|
-
* `code_challenge_method`, `state`, `purpose`, `redirect
|
|
12373
|
+
* `code_challenge_method`, `state`, `purpose`, `redirect`, and the optional `lang` (an unknown value is
|
|
12374
|
+
* dropped, not refused). Anything missing or
|
|
12347
12375
|
* malformed is refused - there is no lenient default for PKCE or state.
|
|
12348
12376
|
*/
|
|
12349
12377
|
function parseAppFlowRequest(query) {
|
|
@@ -12372,13 +12400,15 @@ function parseAppFlowRequest(query) {
|
|
|
12372
12400
|
ok: false,
|
|
12373
12401
|
reason: "bad-redirect"
|
|
12374
12402
|
};
|
|
12403
|
+
const lang = parseAppPageLang(query["lang"]);
|
|
12375
12404
|
return {
|
|
12376
12405
|
ok: true,
|
|
12377
12406
|
request: {
|
|
12378
12407
|
codeChallenge: challenge,
|
|
12379
12408
|
state,
|
|
12380
12409
|
purpose: purpose.data,
|
|
12381
|
-
redirect
|
|
12410
|
+
redirect,
|
|
12411
|
+
...lang !== void 0 ? { lang } : {}
|
|
12382
12412
|
}
|
|
12383
12413
|
};
|
|
12384
12414
|
}
|
|
@@ -12994,7 +13024,9 @@ var ConfigTabDeclarationSchema = object({
|
|
|
12994
13024
|
var ConfigSectionWithValuesSchema = object({
|
|
12995
13025
|
id: string(),
|
|
12996
13026
|
title: string(),
|
|
13027
|
+
titleKey: string().optional(),
|
|
12997
13028
|
description: string().optional(),
|
|
13029
|
+
descriptionKey: string().optional(),
|
|
12998
13030
|
style: _enum(["card", "accordion"]).optional(),
|
|
12999
13031
|
defaultCollapsed: boolean().optional(),
|
|
13000
13032
|
columns: union([
|
|
@@ -16252,6 +16284,9 @@ method(object({
|
|
|
16252
16284
|
}), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
|
|
16253
16285
|
kind: "mutation",
|
|
16254
16286
|
auth: "admin"
|
|
16287
|
+
}), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
|
|
16288
|
+
kind: "mutation",
|
|
16289
|
+
auth: "admin"
|
|
16255
16290
|
}), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
|
|
16256
16291
|
/**
|
|
16257
16292
|
* device-history — the ONE mechanism for numeric history (D850).
|
|
@@ -37673,6 +37708,38 @@ var DeviceRegisterPayloadSchema = object({
|
|
|
37673
37708
|
* omits it and the keyword backstop applies. */
|
|
37674
37709
|
secretConfigPaths: array(string()).optional()
|
|
37675
37710
|
});
|
|
37711
|
+
/** One deleted device, kept by device-manager so an addon that missed the
|
|
37712
|
+
* deletion can still learn of it (D865). Written by the delete path ONLY. */
|
|
37713
|
+
var DeviceTombstoneSchema = object({
|
|
37714
|
+
deviceId: number().int().positive(),
|
|
37715
|
+
/** Epoch ms the device was deleted. */
|
|
37716
|
+
deletedAt: number(),
|
|
37717
|
+
/** The addon that owned the device when it was deleted. */
|
|
37718
|
+
providerAddonId: string()
|
|
37719
|
+
});
|
|
37720
|
+
/** Data held for one device that device-manager no longer knows. */
|
|
37721
|
+
var OrphanDeviceDataSchema = object({
|
|
37722
|
+
deviceId: number().int().positive(),
|
|
37723
|
+
/** Rows/files per store (`<addonId>:<store>`). */
|
|
37724
|
+
stores: record(string(), number().int().nonnegative())
|
|
37725
|
+
});
|
|
37726
|
+
var CleanupDeletedDevicesResultSchema = object({
|
|
37727
|
+
/**
|
|
37728
|
+
* `skipped` — the absence check could not be trusted (a device-list read
|
|
37729
|
+
* failed or the two reads disagreed); nothing was listed or deleted.
|
|
37730
|
+
* `dry-run` — `devices` is what a confirmed run would delete.
|
|
37731
|
+
* `cleaned` — `devices` is what was deleted.
|
|
37732
|
+
*/
|
|
37733
|
+
status: _enum([
|
|
37734
|
+
"skipped",
|
|
37735
|
+
"dry-run",
|
|
37736
|
+
"cleaned"
|
|
37737
|
+
]),
|
|
37738
|
+
reason: string().nullable(),
|
|
37739
|
+
devices: array(OrphanDeviceDataSchema),
|
|
37740
|
+
/** Implementers that could not be asked (their stores are not in `devices`). */
|
|
37741
|
+
unreachable: array(string())
|
|
37742
|
+
});
|
|
37676
37743
|
var DeviceRemovePayloadSchema = object({ deviceId: number() });
|
|
37677
37744
|
var DevicePersistConfigPayloadSchema = object({
|
|
37678
37745
|
deviceId: number(),
|
|
@@ -37911,6 +37978,9 @@ method(object({
|
|
|
37911
37978
|
}), method(object({ deviceId: number() }), object({ success: literal(true) }), {
|
|
37912
37979
|
kind: "mutation",
|
|
37913
37980
|
auth: "admin"
|
|
37981
|
+
}), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
|
|
37982
|
+
kind: "mutation",
|
|
37983
|
+
auth: "admin"
|
|
37914
37984
|
}), method(object({ integrationId: string() }), object({ removed: number() }), {
|
|
37915
37985
|
kind: "mutation",
|
|
37916
37986
|
auth: "admin"
|
|
@@ -38373,6 +38443,72 @@ method(object({
|
|
|
38373
38443
|
auth: "admin"
|
|
38374
38444
|
});
|
|
38375
38445
|
/**
|
|
38446
|
+
* `device-removal-hook` — the reliable way an addon learns a device was DELETED,
|
|
38447
|
+
* so it can delete what it keeps for that device (D865).
|
|
38448
|
+
*
|
|
38449
|
+
* ## Why an event was not enough
|
|
38450
|
+
*
|
|
38451
|
+
* `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
|
|
38452
|
+
* hung its per-device clean-up on it left durable garbage whenever the event was
|
|
38453
|
+
* lost, the addon was down, or it was restarting at that moment — footage,
|
|
38454
|
+
* analytics rows and settings of device 4483 outlived the device. Loss of this
|
|
38455
|
+
* signal corrupts durable state, so it travels by RPC with a recorded fact
|
|
38456
|
+
* behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
|
|
38457
|
+
*
|
|
38458
|
+
* ## The three pieces
|
|
38459
|
+
*
|
|
38460
|
+
* 1. device-manager records a TOMBSTONE per deleted device
|
|
38461
|
+
* (`deviceManager.listDeletedSince`). The tombstone is written by the delete
|
|
38462
|
+
* path only — a device that is unregistered, offline or whose provider is
|
|
38463
|
+
* restarting is NOT deleted and gets none.
|
|
38464
|
+
* 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
|
|
38465
|
+
* this collection, one by one, with bounded retries, logged.
|
|
38466
|
+
* 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
|
|
38467
|
+
* (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
|
|
38468
|
+
* may have missed. Reconcile is driven by tombstones, never by "the device is
|
|
38469
|
+
* not in the current list": a failed or partial list read must not destroy data.
|
|
38470
|
+
*
|
|
38471
|
+
* ## Contract for an implementer
|
|
38472
|
+
*
|
|
38473
|
+
* - **Idempotent.** It is called again by a retry, by a reconcile and by the
|
|
38474
|
+
* admin cleanup of data that predates tombstones. A device with nothing left
|
|
38475
|
+
* answers zero counts.
|
|
38476
|
+
* - **One key per store** in `counts`, deleted rows/files per store, so the log
|
|
38477
|
+
* line and the admin dry run can say where the data was.
|
|
38478
|
+
* - **Training datasets are NOT device data** and are never deleted by a hook.
|
|
38479
|
+
* - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
|
|
38480
|
+
* per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
|
|
38481
|
+
* for every addon centrally at delete time. This hook is for device DATA
|
|
38482
|
+
* that is not settings: footage, event media, analytics rows, history.
|
|
38483
|
+
* - A provider that cannot tell is allowed to throw; the caller retries it.
|
|
38484
|
+
*
|
|
38485
|
+
* `listDeviceData` is the read side of the admin "Clean data of deleted devices"
|
|
38486
|
+
* action: which device ids this addon holds data for, and how much per store. It
|
|
38487
|
+
* never deletes. device-manager decides which of those ids are absent from the
|
|
38488
|
+
* fleet, from TWO consistent reads of the device list (D49).
|
|
38489
|
+
*/
|
|
38490
|
+
/** What a hook is told about the deletion. */
|
|
38491
|
+
var DeviceRemovedInputSchema = object({
|
|
38492
|
+
deviceId: number().int().positive(),
|
|
38493
|
+
/** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
|
|
38494
|
+
deletedAt: number(),
|
|
38495
|
+
/** The addon that owned the device, as device-manager last knew it. */
|
|
38496
|
+
providerAddonId: string()
|
|
38497
|
+
});
|
|
38498
|
+
/** Rows/files/refs deleted, per store this implementer owns. */
|
|
38499
|
+
var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
|
|
38500
|
+
/** One (store, device) pair an implementer holds data for. */
|
|
38501
|
+
var DeviceDataEntrySchema = object({
|
|
38502
|
+
store: string(),
|
|
38503
|
+
deviceId: number().int().positive(),
|
|
38504
|
+
/** Rows (or files) held for the device in the store. */
|
|
38505
|
+
count: number().int().nonnegative()
|
|
38506
|
+
});
|
|
38507
|
+
method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
|
|
38508
|
+
kind: "mutation",
|
|
38509
|
+
auth: "admin"
|
|
38510
|
+
}), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
|
|
38511
|
+
/**
|
|
38376
38512
|
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
38377
38513
|
* through, per camera, with the denominator attached. It stores nothing.
|
|
38378
38514
|
*
|
|
@@ -49957,7 +50093,9 @@ var SsoBridgeClaimsSchema = object({
|
|
|
49957
50093
|
codeChallenge: string(),
|
|
49958
50094
|
state: string(),
|
|
49959
50095
|
purpose: _enum(["new-session", "step-up"]),
|
|
49960
|
-
redirect: string()
|
|
50096
|
+
redirect: string(),
|
|
50097
|
+
/** The page language the app asked for (D858); the confirm page speaks it. */
|
|
50098
|
+
lang: _enum(["en", "it"]).optional()
|
|
49961
50099
|
}).optional()
|
|
49962
50100
|
});
|
|
49963
50101
|
method(object({
|
|
@@ -59356,6 +59494,21 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
|
|
|
59356
59494
|
on: boolean(),
|
|
59357
59495
|
lastChangedAt: number()
|
|
59358
59496
|
});
|
|
59497
|
+
/** C0 controls, DEL and the C1 range: none of them belongs in a name. */
|
|
59498
|
+
function hasControlCharacter(value) {
|
|
59499
|
+
for (const char of value) {
|
|
59500
|
+
const code = char.codePointAt(0) ?? 0;
|
|
59501
|
+
if (code <= 31 || code >= 127 && code <= 159) return true;
|
|
59502
|
+
}
|
|
59503
|
+
return false;
|
|
59504
|
+
}
|
|
59505
|
+
string().transform((value) => value.trim()).pipe(string().min(1, "The server name cannot be empty").max(48, `The server name is at most 48 characters`).refine((value) => !hasControlCharacter(value), { message: "The server name cannot contain control characters" }));
|
|
59506
|
+
/** What every reader gets: the name to show, and whether the hub chose it itself. */
|
|
59507
|
+
var ServerNameInfoSchema = object({
|
|
59508
|
+
name: string(),
|
|
59509
|
+
/** `true` when nobody named the hub: `name` is the machine hostname. */
|
|
59510
|
+
isDefault: boolean()
|
|
59511
|
+
});
|
|
59359
59512
|
/**
|
|
59360
59513
|
* system — system-scoped singleton capability exposing hub-level
|
|
59361
59514
|
* health, feature flags, network interface enumeration, and the
|
|
@@ -59385,6 +59538,12 @@ var FeatureManifestSchema = object({
|
|
|
59385
59538
|
backup: boolean(),
|
|
59386
59539
|
repl: boolean()
|
|
59387
59540
|
});
|
|
59541
|
+
/**
|
|
59542
|
+
* `system.info`: the feature flags plus the hub's human name (D861). The name is
|
|
59543
|
+
* `{ name, isDefault }` — `isDefault: true` means nobody named the hub and `name`
|
|
59544
|
+
* is the machine hostname.
|
|
59545
|
+
*/
|
|
59546
|
+
var SystemInfoSchema = FeatureManifestSchema.extend({ serverName: ServerNameInfoSchema });
|
|
59388
59547
|
var HealthStatusSchema = object({
|
|
59389
59548
|
status: literal("ok"),
|
|
59390
59549
|
uptime: number()
|
|
@@ -59857,7 +60016,7 @@ var LoggingSettingsStateSchema = object({
|
|
|
59857
60016
|
opsLogRetentionDays: number().int().min(0),
|
|
59858
60017
|
persisted: boolean()
|
|
59859
60018
|
});
|
|
59860
|
-
method(_void(),
|
|
60019
|
+
method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
59861
60020
|
kind: "mutation",
|
|
59862
60021
|
auth: "admin"
|
|
59863
60022
|
}), method(_void(), _void(), {
|
|
@@ -62908,6 +63067,12 @@ Object.freeze({
|
|
|
62908
63067
|
addonId: null,
|
|
62909
63068
|
access: "create"
|
|
62910
63069
|
},
|
|
63070
|
+
"deviceManager.cleanupDeletedDevicesData": {
|
|
63071
|
+
capName: "device-manager",
|
|
63072
|
+
capScope: "system",
|
|
63073
|
+
addonId: null,
|
|
63074
|
+
access: "create"
|
|
63075
|
+
},
|
|
62911
63076
|
"deviceManager.createDevice": {
|
|
62912
63077
|
capName: "device-manager",
|
|
62913
63078
|
capScope: "system",
|
|
@@ -63088,6 +63253,12 @@ Object.freeze({
|
|
|
63088
63253
|
addonId: null,
|
|
63089
63254
|
access: "view"
|
|
63090
63255
|
},
|
|
63256
|
+
"deviceManager.listDeletedSince": {
|
|
63257
|
+
capName: "device-manager",
|
|
63258
|
+
capScope: "system",
|
|
63259
|
+
addonId: null,
|
|
63260
|
+
access: "view"
|
|
63261
|
+
},
|
|
63091
63262
|
"deviceManager.listDeviceIdsByCaps": {
|
|
63092
63263
|
capName: "device-manager",
|
|
63093
63264
|
capScope: "system",
|
|
@@ -63496,6 +63667,18 @@ Object.freeze({
|
|
|
63496
63667
|
addonId: null,
|
|
63497
63668
|
access: "create"
|
|
63498
63669
|
},
|
|
63670
|
+
"deviceRemovalHook.listDeviceData": {
|
|
63671
|
+
capName: "device-removal-hook",
|
|
63672
|
+
capScope: "system",
|
|
63673
|
+
addonId: null,
|
|
63674
|
+
access: "view"
|
|
63675
|
+
},
|
|
63676
|
+
"deviceRemovalHook.onDeviceRemoved": {
|
|
63677
|
+
capName: "device-removal-hook",
|
|
63678
|
+
capScope: "system",
|
|
63679
|
+
addonId: null,
|
|
63680
|
+
access: "create"
|
|
63681
|
+
},
|
|
63499
63682
|
"deviceState.claimFields": {
|
|
63500
63683
|
capName: "device-state",
|
|
63501
63684
|
capScope: "system",
|
|
@@ -63928,6 +64111,12 @@ Object.freeze({
|
|
|
63928
64111
|
addonId: null,
|
|
63929
64112
|
access: "delete"
|
|
63930
64113
|
},
|
|
64114
|
+
"keychain.deleteDeviceScope": {
|
|
64115
|
+
capName: "keychain",
|
|
64116
|
+
capScope: "system",
|
|
64117
|
+
addonId: null,
|
|
64118
|
+
access: "delete"
|
|
64119
|
+
},
|
|
63931
64120
|
"keychain.getState": {
|
|
63932
64121
|
capName: "keychain",
|
|
63933
64122
|
capScope: "system",
|
|
@@ -69940,6 +70129,11 @@ Object.freeze({
|
|
|
69940
70129
|
form: "single",
|
|
69941
70130
|
optional: false
|
|
69942
70131
|
}],
|
|
70132
|
+
"deviceRemovalHook.onDeviceRemoved": [{
|
|
70133
|
+
name: "deviceId",
|
|
70134
|
+
form: "single",
|
|
70135
|
+
optional: false
|
|
70136
|
+
}],
|
|
69943
70137
|
"deviceState.claimFields": [{
|
|
69944
70138
|
name: "deviceId",
|
|
69945
70139
|
form: "single",
|
|
@@ -70129,6 +70323,11 @@ Object.freeze({
|
|
|
70129
70323
|
form: "single",
|
|
70130
70324
|
optional: false
|
|
70131
70325
|
}],
|
|
70326
|
+
"keychain.deleteDeviceScope": [{
|
|
70327
|
+
name: "deviceId",
|
|
70328
|
+
form: "single",
|
|
70329
|
+
optional: false
|
|
70330
|
+
}],
|
|
70132
70331
|
"lawnMowerControl.dock": [{
|
|
70133
70332
|
name: "deviceId",
|
|
70134
70333
|
form: "single",
|
|
@@ -72477,6 +72676,8 @@ new Set([
|
|
|
72477
72676
|
"audio-tools",
|
|
72478
72677
|
"audio-silence"
|
|
72479
72678
|
]);
|
|
72679
|
+
AppPageLangSchema.options;
|
|
72680
|
+
record(string().min(1), string());
|
|
72480
72681
|
/**
|
|
72481
72682
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
72482
72683
|
*
|
|
@@ -72892,4 +73093,4 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
|
72892
73093
|
var MB = 1024 * 1024;
|
|
72893
73094
|
1024 * MB, 3072 * MB;
|
|
72894
73095
|
//#endregion
|
|
72895
|
-
export {
|
|
73096
|
+
export { number as A, arrayItemFieldPath as C, toSecretFieldView as D, isSecretMarker as E, string as M, array as O, SECRET_CLEAR as S, isSecretClear as T, requestMountPrefix as _, addonWidgetsSourceCapability as a, errMsg as b, authProviderCapability as c, loginMethodCapability as d, normalizeOrigin as f, pickRequestOrigin as g, parseAppPageLang as h, addonRoutesCapability as i, object as j, boolean as k, buildAddonRouteProvider as l, parseAppFlowRequest as m, APP_REFUSED_PATH 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, resolveIconKey as v, globalSecretScope as w, BaseAddon as x, userPasskeysCapability as y };
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-C2ZA1nlf.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
node_crypto = require_dist.__toESM(node_crypto);
|
|
8
8
|
//#region ../../node_modules/jose/dist/webapi/lib/buffer_utils.js
|
|
@@ -1411,7 +1411,8 @@ var AuthOidcAddon = class extends require_dist.BaseAddon {
|
|
|
1411
1411
|
const reason = parsed.ok ? "combined-flow" : parsed.reason;
|
|
1412
1412
|
reply.code(303);
|
|
1413
1413
|
reply.header("Cache-Control", "no-store");
|
|
1414
|
-
|
|
1414
|
+
const lang = require_dist.parseAppPageLang(query["lang"]);
|
|
1415
|
+
reply.header("Location", `${require_dist.APP_REFUSED_PATH}?reason=${reason}${lang !== void 0 ? `&lang=${lang}` : ""}`);
|
|
1415
1416
|
reply.send("");
|
|
1416
1417
|
return;
|
|
1417
1418
|
}
|
|
@@ -1524,7 +1525,8 @@ var AuthOidcAddon = class extends require_dist.BaseAddon {
|
|
|
1524
1525
|
codeChallenge: result.app.codeChallenge,
|
|
1525
1526
|
state: result.app.state,
|
|
1526
1527
|
purpose: result.app.purpose,
|
|
1527
|
-
redirect: result.app.redirect
|
|
1528
|
+
redirect: result.app.redirect,
|
|
1529
|
+
...result.app.lang !== void 0 ? { lang: result.app.lang } : {}
|
|
1528
1530
|
} } : {}
|
|
1529
1531
|
} });
|
|
1530
1532
|
const finish = new URLSearchParams({ bridge: bridgeToken });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as arrayItemFieldPath, D as toSecretFieldView, E as isSecretMarker, S as SECRET_CLEAR, T as isSecretClear, _ as requestMountPrefix, b as errMsg, c as authProviderCapability, d as loginMethodCapability, f as normalizeOrigin, g as pickRequestOrigin, h as parseAppPageLang, i as addonRoutesCapability, l as buildAddonRouteProvider, m as parseAppFlowRequest, n as APP_REFUSED_PATH, o as advertisedHubOrigins, p as oidcConnectionsCapability, r as SSO_STATE_COOKIE, s as appFlowLocation, t as APP_FLOW_DEFAULT_REDIRECT, u as claimedRequestOrigins, v as resolveIconKey, w as globalSecretScope, x as BaseAddon } from "../dist-roKTj364.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(), decoder = new TextDecoder(), strictDecoder = new TextDecoder("utf-8", { fatal: !0 });
|
|
@@ -1406,7 +1406,8 @@ var AuthOidcAddon = class extends BaseAddon {
|
|
|
1406
1406
|
const reason = parsed.ok ? "combined-flow" : parsed.reason;
|
|
1407
1407
|
reply.code(303);
|
|
1408
1408
|
reply.header("Cache-Control", "no-store");
|
|
1409
|
-
|
|
1409
|
+
const lang = parseAppPageLang(query["lang"]);
|
|
1410
|
+
reply.header("Location", `${APP_REFUSED_PATH}?reason=${reason}${lang !== void 0 ? `&lang=${lang}` : ""}`);
|
|
1410
1411
|
reply.send("");
|
|
1411
1412
|
return;
|
|
1412
1413
|
}
|
|
@@ -1519,7 +1520,8 @@ var AuthOidcAddon = class extends BaseAddon {
|
|
|
1519
1520
|
codeChallenge: result.app.codeChallenge,
|
|
1520
1521
|
state: result.app.state,
|
|
1521
1522
|
purpose: result.app.purpose,
|
|
1522
|
-
redirect: result.app.redirect
|
|
1523
|
+
redirect: result.app.redirect,
|
|
1524
|
+
...result.app.lang !== void 0 ? { lang: result.app.lang } : {}
|
|
1523
1525
|
} } : {}
|
|
1524
1526
|
} });
|
|
1525
1527
|
const finish = new URLSearchParams({ bridge: bridgeToken });
|