@camstack/addon-osd-manager 0.1.233 → 0.1.235

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.
Files changed (18) hide show
  1. package/dist/{MotionZonesSettings-BGTzmty7.mjs → MotionZonesSettings-CXYmJeEj.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-wElvVviL.mjs → PrivacyMaskSettings-s1lxaThA.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-DsYkgb5P.mjs → SceneMonitorEditor-DVTGOyG4.mjs} +3 -3
  4. package/dist/_stub.js +22 -11
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CoDHKGxB.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-HPUeQ2rW.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-M-4Jyqe4.mjs +26 -0
  7. package/dist/{hostInit-DWuTgdTp.mjs → hostInit-CVNfJUNs.mjs} +2 -2
  8. package/dist/index.js +677 -2
  9. package/dist/index.mjs +677 -2
  10. package/dist/{player-overlays-g5nnMIf3.mjs → player-overlays-Dww91Wz6.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-BAd3l1Cq.mjs → responsive-Hqunukz5.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-D_UXd-vB.mjs → scene-monitor-copy-Cg3vheyc.mjs} +1 -1
  14. package/dist/{square-CnHXcvE6.mjs → square-DLF3YKUK.mjs} +1 -1
  15. package/dist/{trash-2-Bl0J0QJm.mjs → trash-2-DZZ-mygA.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Dar1zAug.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-D4ppKOBm.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DTIq2p4w.mjs +0 -26
package/dist/index.js CHANGED
@@ -5390,7 +5390,7 @@ var ZodIssueCode = {
5390
5390
  var ZodFirstPartyTypeKind;
5391
5391
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5392
5392
  //#endregion
5393
- //#region ../types/dist/sleep-BBF1iXUi.mjs
5393
+ //#region ../types/dist/sleep--g-h2_c_.mjs
5394
5394
  /**
5395
5395
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5396
5396
  * window to float samples (D455).
@@ -12155,6 +12155,167 @@ var ConvertResultSchema = object({
12155
12155
  files: array(string()).readonly()
12156
12156
  })).readonly()
12157
12157
  });
12158
+ /**
12159
+ * Device certificates (D855) — the wire contract shared by the hub, the admin
12160
+ * UI and the native viewer.
12161
+ *
12162
+ * A device (a phone) generates its OWN P-256 key pair in hardware (Secure
12163
+ * Enclave / Android Keystore / a non-extractable WebCrypto key). The private
12164
+ * key never travels. The hub signs the PUBLIC key into an X.509 leaf under a
12165
+ * dedicated device CA; the device later proves possession of the key by
12166
+ * signing a hub-issued nonce, and the hub answers with the same session a
12167
+ * password login opens.
12168
+ *
12169
+ * Everything on the wire is a small string (a PEM, a base64url signature):
12170
+ * D613 is about bulk bytes, and a certificate is ~600 bytes.
12171
+ */
12172
+ /** Signature algorithm of every device credential: ECDSA, curve P-256, SHA-256. */
12173
+ var DEVICE_CERT_SIGNATURE = "ecdsa-p256-sha256";
12174
+ /** First line of every signed message; a change of format bumps the version. */
12175
+ var DEVICE_SIGNATURE_MESSAGE_VERSION = "camstack-device-cert-v1";
12176
+ _enum([
12177
+ "login",
12178
+ "renew",
12179
+ "revoke"
12180
+ ]);
12181
+ var DevicePlatformSchema = _enum([
12182
+ "ios",
12183
+ "android",
12184
+ "web",
12185
+ "other"
12186
+ ]);
12187
+ var Base64UrlSchema = string().min(1).max(4096).regex(/^[A-Za-z0-9_-]+$/);
12188
+ var PemSchema = string().min(1).max(16384);
12189
+ /**
12190
+ * Why a device-certificate endpoint said no. Distinct from a transport / 5xx
12191
+ * failure: those carry no reason and mean "try again", never "the credential is
12192
+ * dead". The viewer switches on this exhaustively.
12193
+ */
12194
+ var DeviceRefusalReasonSchema = _enum([
12195
+ "revoked",
12196
+ "unknown-credential",
12197
+ "expired",
12198
+ "bad-signature",
12199
+ "nonce-invalid",
12200
+ "rate-limited",
12201
+ "invalid-certificate",
12202
+ "superseded",
12203
+ "user-gone",
12204
+ "unavailable",
12205
+ "code-invalid",
12206
+ "self-enrollment-disabled",
12207
+ "step-up-required",
12208
+ "bad-public-key"
12209
+ ]);
12210
+ var DeviceRefusalSchema = object({
12211
+ ok: literal(false),
12212
+ reason: DeviceRefusalReasonSchema,
12213
+ definitive: boolean(),
12214
+ retryAfterSeconds: number().optional()
12215
+ });
12216
+ object({
12217
+ code: string().min(1).max(256),
12218
+ /** SubjectPublicKeyInfo DER of the device's P-256 public key, base64url. */
12219
+ publicKeySpki: Base64UrlSchema,
12220
+ deviceName: string().min(1).max(80).optional(),
12221
+ platform: DevicePlatformSchema
12222
+ });
12223
+ discriminatedUnion("ok", [object({
12224
+ credentialId: string(),
12225
+ certPem: PemSchema,
12226
+ /** The device CA certificate the leaf chains to. */
12227
+ chainPem: PemSchema,
12228
+ notAfter: number(),
12229
+ user: object({
12230
+ id: string(),
12231
+ username: string()
12232
+ })
12233
+ }).extend({ ok: literal(true) }), DeviceRefusalSchema]);
12234
+ object({
12235
+ /** The single-use step-up proof (`auth.deviceEnrollProofFrom…`). */
12236
+ proof: string().min(1).max(512),
12237
+ publicKeySpki: Base64UrlSchema,
12238
+ deviceName: string().min(1).max(80),
12239
+ platform: DevicePlatformSchema
12240
+ });
12241
+ object({
12242
+ proof: string(),
12243
+ expiresAt: number()
12244
+ });
12245
+ discriminatedUnion("ok", [object({
12246
+ nonce: string(),
12247
+ /** The origin to put in the signed message. The app compares it to the hub it dialled. */
12248
+ origin: string(),
12249
+ expiresAt: number(),
12250
+ signature: literal(DEVICE_CERT_SIGNATURE)
12251
+ }).extend({ ok: literal(true) }), DeviceRefusalSchema]);
12252
+ object({
12253
+ certPem: PemSchema,
12254
+ nonce: string().min(1).max(256),
12255
+ /** ECDSA P-256 SHA-256 over {@link buildDeviceSignatureMessage}; raw r||s or DER, base64url. */
12256
+ signature: Base64UrlSchema
12257
+ });
12258
+ discriminatedUnion("ok", [object({
12259
+ credentialId: string(),
12260
+ certPem: PemSchema,
12261
+ chainPem: PemSchema,
12262
+ notAfter: number()
12263
+ }).extend({ ok: literal(true) }), DeviceRefusalSchema]);
12264
+ discriminatedUnion("ok", [object({
12265
+ ok: literal(true),
12266
+ credentialId: string(),
12267
+ sessionsEnded: number().int()
12268
+ }), DeviceRefusalSchema]);
12269
+ var DeviceCredentialStatusSchema = _enum([
12270
+ "active",
12271
+ "expired",
12272
+ "revoked"
12273
+ ]);
12274
+ var DeviceCredentialSchema = object({
12275
+ id: string(),
12276
+ userId: string(),
12277
+ username: string().nullable(),
12278
+ deviceName: string(),
12279
+ platform: DevicePlatformSchema,
12280
+ enrolledVia: _enum(["qr", "self"]),
12281
+ /** SHA-256 of the leaf certificate DER, colon-hex. */
12282
+ fingerprint: string(),
12283
+ issuedAt: number(),
12284
+ expiresAt: number(),
12285
+ lastUsedAt: number().nullable(),
12286
+ lastUsedFrom: string().nullable(),
12287
+ revokedAt: number().nullable(),
12288
+ /** `admin:<userId>` | `user:<userId>` | `device` | `user-deleted`. */
12289
+ revokedBy: string().nullable(),
12290
+ status: DeviceCredentialStatusSchema
12291
+ });
12292
+ var StartEnrollmentOutputSchema = object({
12293
+ /** Shown once; only its hash is kept. */
12294
+ code: string(),
12295
+ expiresAt: number(),
12296
+ /** `camstack://enroll?hub=…&code=…` — what the QR encodes. */
12297
+ enrollUrl: string(),
12298
+ /** The hub origin in the link, or `null` when the hub could not name one (the link then has no `hub`). */
12299
+ hubOrigin: string().nullable(),
12300
+ /** Every origin the apps may try (role `appConnections`). */
12301
+ hubOrigins: array(string())
12302
+ });
12303
+ object({
12304
+ kind: literal("device-certificate"),
12305
+ id: literal("device-certificate"),
12306
+ label: string(),
12307
+ stage: literal("primary"),
12308
+ /** tRPC paths under the hub's `auth` router, so a client names no literal. */
12309
+ challengePath: literal("auth.getDeviceChallenge"),
12310
+ revokePath: literal("auth.revokeOwnDeviceCertificate"),
12311
+ enrollSelfPath: literal("auth.enrollSelf"),
12312
+ loginPath: literal("auth.loginWithDeviceCertificate"),
12313
+ renewPath: literal("auth.renewDeviceCertificate"),
12314
+ signature: literal(DEVICE_CERT_SIGNATURE),
12315
+ messageVersion: literal(DEVICE_SIGNATURE_MESSAGE_VERSION),
12316
+ /** Which clients can execute it: a native app silently, a browser with a non-extractable WebCrypto key. */
12317
+ clients: array(_enum(["native", "web"]))
12318
+ });
12158
12319
  var ExpressionBindingSourceSchema = union([
12159
12320
  object({
12160
12321
  kind: literal("field").optional(),
@@ -15727,6 +15888,338 @@ method(object({
15727
15888
  kind: "mutation",
15728
15889
  auth: "admin"
15729
15890
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
15891
+ /**
15892
+ * device-history — the ONE mechanism for numeric history (D850).
15893
+ *
15894
+ * A device value is recorded because its capability says so (the `history`
15895
+ * block of a `*.cap.ts`, captured hub-side from `DeviceStateChanged`); any
15896
+ * other series is DECLARED by the addon that produces it and fed with points
15897
+ * (`record`) or closed five-minute buckets (`recordBuckets`). Rollups 5m / 1h /
15898
+ * 1d are computed here and nowhere else. Storage is `history.db` (D851).
15899
+ *
15900
+ * Who the PRODUCER is: `declareSeries`, `record` and `recordBuckets` are owner
15901
+ * checked against the `callerAddonId` the transport stamps into a call that
15902
+ * crossed a process (never in an input schema, so a session cannot supply it).
15903
+ * A call with no stamp is refused `not-owner`. The methods are `admin` so a
15904
+ * non-admin session never reaches them; an addon's `ctx.api` call bypasses the
15905
+ * tier by design.
15906
+ */
15907
+ /** Whose history: a real device, or a cluster node (load, memory). */
15908
+ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
15909
+ kind: literal("device"),
15910
+ deviceId: number().int()
15911
+ }), object({
15912
+ kind: literal("node"),
15913
+ nodeId: string().min(1)
15914
+ })]);
15915
+ var DeviceHistoryKindSchema = _enum([
15916
+ "gauge",
15917
+ "counter",
15918
+ "boolean"
15919
+ ]);
15920
+ var DeviceHistoryResolutionSchema = _enum([
15921
+ "raw",
15922
+ "5m",
15923
+ "1h",
15924
+ "1d"
15925
+ ]);
15926
+ /** Why a producer's point or bucket was not stored. Counted, never silent (D391). */
15927
+ var DeviceHistoryRefusalReasonSchema = _enum([
15928
+ "undeclared",
15929
+ "not-owner",
15930
+ "opted-out",
15931
+ "not-a-real-device",
15932
+ "rate",
15933
+ "ingest-mismatch",
15934
+ "out-of-range"
15935
+ ]);
15936
+ var RefusalSchema = object({
15937
+ key: string(),
15938
+ reason: DeviceHistoryRefusalReasonSchema,
15939
+ count: number().int()
15940
+ });
15941
+ var IngestResultSchema = object({
15942
+ accepted: number().int(),
15943
+ refused: array(RefusalSchema).readonly()
15944
+ });
15945
+ var SeriesInfoSchema = object({
15946
+ key: string(),
15947
+ scope: string(),
15948
+ kind: DeviceHistoryKindSchema,
15949
+ /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
15950
+ unit: string().nullable(),
15951
+ displayName: string(),
15952
+ source: _enum(["cap", "addon"]),
15953
+ firstTs: number(),
15954
+ lastTs: number()
15955
+ });
15956
+ var QueryPointSchema = object({
15957
+ /** Raw: the point's time. Rollup: the bucket start. */
15958
+ t: number(),
15959
+ samples: number().int(),
15960
+ /** `sum / samples`. */
15961
+ mean: number().nullable(),
15962
+ /** Time-weighted mean (`tw_sum / tw_ms`); `null` for bucket-ingested series. For a boolean: the fraction of time true. */
15963
+ twMean: number().nullable(),
15964
+ min: number(),
15965
+ max: number(),
15966
+ /** `null` is unknown, never zero (D393). */
15967
+ last: number().nullable()
15968
+ });
15969
+ var QuerySeriesSchema = object({
15970
+ scope: string(),
15971
+ /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
15972
+ before: object({
15973
+ t: number(),
15974
+ value: number().nullable()
15975
+ }).nullable(),
15976
+ points: array(QueryPointSchema).readonly()
15977
+ });
15978
+ /** The window part of a query, shared by the device and node forms. */
15979
+ var QueryWindowShape = {
15980
+ key: string(),
15981
+ scope: string().optional(),
15982
+ from: number(),
15983
+ to: number(),
15984
+ resolution: union([DeviceHistoryResolutionSchema, literal("auto")]).default("auto"),
15985
+ maxPoints: number().int().positive().max(5e3).default(1e3)
15986
+ };
15987
+ var QueryResultSchema = object({
15988
+ resolution: DeviceHistoryResolutionSchema,
15989
+ series: array(QuerySeriesSchema).readonly(),
15990
+ truncated: boolean()
15991
+ });
15992
+ var TierStatusSchema = object({
15993
+ tier: DeviceHistoryResolutionSchema,
15994
+ /** `null` until the first background count answered. */
15995
+ rows: number().int().nullable(),
15996
+ /** `rows` times a fixed per-row estimate — approximate, labelled so. */
15997
+ approxBytes: number().nullable(),
15998
+ countedAt: number().nullable()
15999
+ });
16000
+ /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16001
+ var DeviceHistoryStatusSchema = object({
16002
+ startedAt: number(),
16003
+ /** The store is declared, series loaded and the first reconcile has answered. */
16004
+ ready: boolean(),
16005
+ series: number().int(),
16006
+ metrics: number().int(),
16007
+ optedOutDevices: number().int(),
16008
+ tiers: array(TierStatusSchema).readonly(),
16009
+ capture: object({
16010
+ eventsSeen: number().int(),
16011
+ pointsEmitted: number().int(),
16012
+ pointsWritten: number().int(),
16013
+ pointsDropped: number().int(),
16014
+ bufferDepth: number().int(),
16015
+ trailingEmitted: number().int(),
16016
+ reconciledPoints: number().int(),
16017
+ reconcileRuns: number().int(),
16018
+ reconcileFailures: number().int(),
16019
+ lastReconcileAt: number().nullable(),
16020
+ lastFlushAt: number().nullable(),
16021
+ flushFailures: number().int(),
16022
+ skipped: record(string(), number().int())
16023
+ }),
16024
+ ingest: object({
16025
+ accepted: number().int(),
16026
+ refused: record(string(), number().int())
16027
+ }),
16028
+ rollup: object({
16029
+ last5mAt: number().nullable(),
16030
+ last1hAt: number().nullable(),
16031
+ last1dAt: number().nullable(),
16032
+ errors: number().int(),
16033
+ dirty5m: number().int(),
16034
+ dirty1h: number().int(),
16035
+ dirty1d: number().int()
16036
+ }),
16037
+ retention: object({
16038
+ lastRunAt: number().nullable(),
16039
+ deleted: record(string(), number().int()),
16040
+ purgedSeries: number().int()
16041
+ }),
16042
+ directory: object({
16043
+ devices: number().int(),
16044
+ lastRefreshAt: number().nullable()
16045
+ })
16046
+ });
16047
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
16048
+ deviceId: number().int(),
16049
+ ...QueryWindowShape
16050
+ }), QueryResultSchema), method(object({
16051
+ nodeId: string().min(1),
16052
+ ...QueryWindowShape
16053
+ }), QueryResultSchema, { auth: "admin" }), method(object({
16054
+ name: string().regex(/^[a-z0-9-]+$/),
16055
+ subjectKind: _enum(["device", "node"]),
16056
+ kind: DeviceHistoryKindSchema,
16057
+ unit: string().optional(),
16058
+ displayName: string().min(1),
16059
+ ingest: _enum(["points", "buckets"])
16060
+ }), object({ key: string() }), {
16061
+ kind: "mutation",
16062
+ auth: "admin"
16063
+ }), method(object({ points: array(object({
16064
+ key: string(),
16065
+ subject: DeviceHistorySubjectSchema,
16066
+ scope: string().default(""),
16067
+ ts: number(),
16068
+ value: number()
16069
+ })).max(5e3) }), IngestResultSchema, {
16070
+ kind: "mutation",
16071
+ auth: "admin"
16072
+ }), method(object({ buckets: array(object({
16073
+ key: string(),
16074
+ subject: DeviceHistorySubjectSchema,
16075
+ scope: string().default(""),
16076
+ bucketStart: number(),
16077
+ samples: number().int().positive(),
16078
+ sum: number(),
16079
+ min: number(),
16080
+ max: number(),
16081
+ last: number().nullable(),
16082
+ lastTs: number().nullable()
16083
+ })).max(5e3) }), IngestResultSchema, {
16084
+ kind: "mutation",
16085
+ auth: "admin"
16086
+ }), method(object({ deviceId: number().int() }), object({ enabled: boolean() })), method(object({
16087
+ deviceId: number().int(),
16088
+ enabled: boolean()
16089
+ }), object({ enabled: boolean() }), {
16090
+ kind: "mutation",
16091
+ auth: "admin"
16092
+ }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
16093
+ var DeviceCaStatusSchema = discriminatedUnion("state", [
16094
+ object({ state: literal("absent") }),
16095
+ object({
16096
+ state: literal("ready"),
16097
+ subject: string(),
16098
+ fingerprintSha256: string(),
16099
+ validTo: string()
16100
+ }),
16101
+ object({
16102
+ state: literal("unavailable"),
16103
+ reason: string()
16104
+ })
16105
+ ]);
16106
+ var DeviceCertificateSettingsSchema = object({ selfEnrollment: _enum(["allowed", "disabled"]) });
16107
+ method(object({
16108
+ userId: string().min(1).optional(),
16109
+ includeRevoked: boolean().default(false)
16110
+ }), array(DeviceCredentialSchema).readonly(), { auth: "admin" }), method(object({
16111
+ userId: string().min(1),
16112
+ deviceName: string().min(1).max(80)
16113
+ }), StartEnrollmentOutputSchema, {
16114
+ kind: "mutation",
16115
+ auth: "admin",
16116
+ caller: "required"
16117
+ }), method(object({ id: string().min(1) }), object({
16118
+ revoked: boolean(),
16119
+ sessionsEnded: number().int(),
16120
+ status: DeviceCredentialStatusSchema
16121
+ }), {
16122
+ kind: "mutation",
16123
+ auth: "admin",
16124
+ caller: "required"
16125
+ }), method(object({}), DeviceCertificateSettingsSchema, { auth: "admin" }), method(DeviceCertificateSettingsSchema, DeviceCertificateSettingsSchema, {
16126
+ kind: "mutation",
16127
+ auth: "admin"
16128
+ }), method(object({ id: string().min(1) }), object({ result: _enum([
16129
+ "deleted",
16130
+ "live",
16131
+ "unknown"
16132
+ ]) }), {
16133
+ kind: "mutation",
16134
+ auth: "admin",
16135
+ caller: "required"
16136
+ }), method(object({}), DeviceCaStatusSchema, { auth: "admin" }), method(object({
16137
+ id: string().min(1),
16138
+ deviceName: string().min(1).max(80)
16139
+ }), object({ renamed: boolean() }), {
16140
+ kind: "mutation",
16141
+ auth: "admin"
16142
+ });
16143
+ /**
16144
+ * `node-certificates` - what a node holds and the two renewals the hub drives
16145
+ * (D856): the node's MESH leaf (mutual TLS to the hub) and its HTTPS leaf (issued
16146
+ * from the hub's local CA so a device that trusts the hub root trusts the node).
16147
+ *
16148
+ * Provided by the AGENT RUNTIME (the synthetic `agent-runtime` addon id, like
16149
+ * `server-management`): the hub reaches it through the ordinary node-pinned
16150
+ * capability call - no new Moleculer action. The hub's own certificates are
16151
+ * handled in-process by the hub (`certificates` router), so this cap has no hub
16152
+ * provider.
16153
+ *
16154
+ * No private key ever crosses the mesh: the node generates its key pair, sends a
16155
+ * CSR, and the hub returns only the signed certificate.
16156
+ */
16157
+ var MeshLeafInfoSchema = object({
16158
+ cn: string(),
16159
+ serial: string(),
16160
+ fingerprintSha256: string(),
16161
+ notBefore: number(),
16162
+ notAfter: number()
16163
+ });
16164
+ var HttpsLeafInfoSchema = object({
16165
+ fingerprintSha256: string(),
16166
+ issuer: string(),
16167
+ sans: array(string()),
16168
+ notBefore: number(),
16169
+ notAfter: number()
16170
+ });
16171
+ var NodeHttpsStateSchema = discriminatedUnion("state", [object({
16172
+ state: literal("served"),
16173
+ leaf: HttpsLeafInfoSchema
16174
+ }), object({
16175
+ state: literal("not-issued"),
16176
+ reason: string()
16177
+ })]);
16178
+ method(object({}), object({
16179
+ nodeId: string(),
16180
+ mesh: MeshLeafInfoSchema.nullable(),
16181
+ https: NodeHttpsStateSchema
16182
+ }), { auth: "admin" }), method(object({}), object({ csrPem: string() }), {
16183
+ kind: "mutation",
16184
+ auth: "admin"
16185
+ }), method(object({
16186
+ certPem: string().min(1),
16187
+ caCertPem: string().min(1),
16188
+ confirmWithinMs: number().int().min(1e4).max(6e5)
16189
+ }), object({
16190
+ fingerprintSha256: string(),
16191
+ serial: string()
16192
+ }), {
16193
+ kind: "mutation",
16194
+ auth: "admin"
16195
+ }), method(object({ fingerprintSha256: string() }), object({ confirmed: boolean() }), {
16196
+ kind: "mutation",
16197
+ auth: "admin"
16198
+ }), method(object({}), object({ rolledBack: boolean() }), {
16199
+ kind: "mutation",
16200
+ auth: "admin"
16201
+ }), method(object({}), object({
16202
+ csrPem: string(),
16203
+ hostnames: array(string()),
16204
+ addresses: array(string()),
16205
+ /** SHA-256 of the hub local CA this node pinned at its first install; `null` before one. */
16206
+ pinnedCaFingerprintSha256: string().nullable()
16207
+ }), {
16208
+ kind: "mutation",
16209
+ auth: "admin"
16210
+ }), method(object({
16211
+ certPem: string().min(1),
16212
+ caCertPem: string().min(1),
16213
+ /**
16214
+ * The hub signals that its local CA was rotated (D227) and this leaf chains to the NEW
16215
+ * one. Only the hub, over the authenticated mesh, can say so; a leaf with a different CA
16216
+ * and no signal is refused.
16217
+ */
16218
+ caRotation: boolean().optional()
16219
+ }), HttpsLeafInfoSchema, {
16220
+ kind: "mutation",
16221
+ auth: "admin"
16222
+ });
15730
16223
  var KeychainKeySourceSchema = object({
15731
16224
  kind: _enum([
15732
16225
  "config-file",
@@ -55036,7 +55529,7 @@ var MotionOnMotionChangedDataSchema = object({
55036
55529
  /** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
55037
55530
  triggeredBy: MotionTriggeredBySchema.optional()
55038
55531
  });
55039
- DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean());
55532
+ DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean()), DeviceType.Camera;
55040
55533
  object({
55041
55534
  enabled: boolean(),
55042
55535
  /** Ms epoch of the last operator-driven change. */
@@ -62621,6 +63114,54 @@ Object.freeze({
62621
63114
  addonId: null,
62622
63115
  access: "create"
62623
63116
  },
63117
+ "deviceCredentials.deleteDeviceCredential": {
63118
+ capName: "device-credentials",
63119
+ capScope: "system",
63120
+ addonId: null,
63121
+ access: "delete"
63122
+ },
63123
+ "deviceCredentials.getDeviceCaStatus": {
63124
+ capName: "device-credentials",
63125
+ capScope: "system",
63126
+ addonId: null,
63127
+ access: "view"
63128
+ },
63129
+ "deviceCredentials.getDeviceCertificateSettings": {
63130
+ capName: "device-credentials",
63131
+ capScope: "system",
63132
+ addonId: null,
63133
+ access: "view"
63134
+ },
63135
+ "deviceCredentials.listDeviceCredentials": {
63136
+ capName: "device-credentials",
63137
+ capScope: "system",
63138
+ addonId: null,
63139
+ access: "view"
63140
+ },
63141
+ "deviceCredentials.renameDeviceCredential": {
63142
+ capName: "device-credentials",
63143
+ capScope: "system",
63144
+ addonId: null,
63145
+ access: "create"
63146
+ },
63147
+ "deviceCredentials.revokeDeviceCredential": {
63148
+ capName: "device-credentials",
63149
+ capScope: "system",
63150
+ addonId: null,
63151
+ access: "delete"
63152
+ },
63153
+ "deviceCredentials.setDeviceCertificateSettings": {
63154
+ capName: "device-credentials",
63155
+ capScope: "system",
63156
+ addonId: null,
63157
+ access: "create"
63158
+ },
63159
+ "deviceCredentials.startEnrollment": {
63160
+ capName: "device-credentials",
63161
+ capScope: "system",
63162
+ addonId: null,
63163
+ access: "create"
63164
+ },
62624
63165
  "deviceDiscovery.adoptDevice": {
62625
63166
  capName: "device-discovery",
62626
63167
  capScope: "device",
@@ -62723,6 +63264,66 @@ Object.freeze({
62723
63264
  addonId: null,
62724
63265
  access: "create"
62725
63266
  },
63267
+ "deviceHistory.declareSeries": {
63268
+ capName: "device-history",
63269
+ capScope: "system",
63270
+ addonId: null,
63271
+ access: "create"
63272
+ },
63273
+ "deviceHistory.getDeviceEnabled": {
63274
+ capName: "device-history",
63275
+ capScope: "system",
63276
+ addonId: null,
63277
+ access: "view"
63278
+ },
63279
+ "deviceHistory.getStatus": {
63280
+ capName: "device-history",
63281
+ capScope: "system",
63282
+ addonId: null,
63283
+ access: "view"
63284
+ },
63285
+ "deviceHistory.listNodeSeries": {
63286
+ capName: "device-history",
63287
+ capScope: "system",
63288
+ addonId: null,
63289
+ access: "view"
63290
+ },
63291
+ "deviceHistory.listSeries": {
63292
+ capName: "device-history",
63293
+ capScope: "system",
63294
+ addonId: null,
63295
+ access: "view"
63296
+ },
63297
+ "deviceHistory.query": {
63298
+ capName: "device-history",
63299
+ capScope: "system",
63300
+ addonId: null,
63301
+ access: "view"
63302
+ },
63303
+ "deviceHistory.queryNode": {
63304
+ capName: "device-history",
63305
+ capScope: "system",
63306
+ addonId: null,
63307
+ access: "view"
63308
+ },
63309
+ "deviceHistory.record": {
63310
+ capName: "device-history",
63311
+ capScope: "system",
63312
+ addonId: null,
63313
+ access: "create"
63314
+ },
63315
+ "deviceHistory.recordBuckets": {
63316
+ capName: "device-history",
63317
+ capScope: "system",
63318
+ addonId: null,
63319
+ access: "create"
63320
+ },
63321
+ "deviceHistory.setDeviceEnabled": {
63322
+ capName: "device-history",
63323
+ capScope: "system",
63324
+ addonId: null,
63325
+ access: "create"
63326
+ },
62726
63327
  "deviceManager.addLocation": {
62727
63328
  capName: "device-manager",
62728
63329
  capScope: "system",
@@ -64781,6 +65382,48 @@ Object.freeze({
64781
65382
  addonId: null,
64782
65383
  access: "create"
64783
65384
  },
65385
+ "nodeCertificates.confirmMeshLeaf": {
65386
+ capName: "node-certificates",
65387
+ capScope: "system",
65388
+ addonId: null,
65389
+ access: "create"
65390
+ },
65391
+ "nodeCertificates.getCertificates": {
65392
+ capName: "node-certificates",
65393
+ capScope: "system",
65394
+ addonId: null,
65395
+ access: "view"
65396
+ },
65397
+ "nodeCertificates.installHttpsCertificate": {
65398
+ capName: "node-certificates",
65399
+ capScope: "system",
65400
+ addonId: null,
65401
+ access: "create"
65402
+ },
65403
+ "nodeCertificates.installMeshLeaf": {
65404
+ capName: "node-certificates",
65405
+ capScope: "system",
65406
+ addonId: null,
65407
+ access: "create"
65408
+ },
65409
+ "nodeCertificates.prepareHttpsCertificate": {
65410
+ capName: "node-certificates",
65411
+ capScope: "system",
65412
+ addonId: null,
65413
+ access: "create"
65414
+ },
65415
+ "nodeCertificates.prepareMeshRenewal": {
65416
+ capName: "node-certificates",
65417
+ capScope: "system",
65418
+ addonId: null,
65419
+ access: "create"
65420
+ },
65421
+ "nodeCertificates.rollbackMeshLeaf": {
65422
+ capName: "node-certificates",
65423
+ capScope: "system",
65424
+ addonId: null,
65425
+ access: "create"
65426
+ },
64784
65427
  "nodes.clusterAddonStatus": {
64785
65428
  capName: "nodes",
64786
65429
  capScope: "system",
@@ -69472,6 +70115,26 @@ Object.freeze({
69472
70115
  form: "single",
69473
70116
  optional: false
69474
70117
  }],
70118
+ "deviceHistory.getDeviceEnabled": [{
70119
+ name: "deviceId",
70120
+ form: "single",
70121
+ optional: false
70122
+ }],
70123
+ "deviceHistory.listSeries": [{
70124
+ name: "deviceId",
70125
+ form: "single",
70126
+ optional: false
70127
+ }],
70128
+ "deviceHistory.query": [{
70129
+ name: "deviceId",
70130
+ form: "single",
70131
+ optional: false
70132
+ }],
70133
+ "deviceHistory.setDeviceEnabled": [{
70134
+ name: "deviceId",
70135
+ form: "single",
70136
+ optional: false
70137
+ }],
69475
70138
  "deviceManager.adoptionRelease": [{
69476
70139
  name: "camDeviceId",
69477
70140
  form: "single",
@@ -71650,6 +72313,7 @@ Object.freeze({
71650
72313
  "network-access": "ingress",
71651
72314
  "smtp-provider": "email"
71652
72315
  });
72316
+ DeviceType.Camera;
71653
72317
  var G711_SCALE_CORRECTION_DB = {
71654
72318
  PCMU: 20 * Math.log10(4),
71655
72319
  PCMA: 20 * Math.log10(8)
@@ -73493,6 +74157,17 @@ Object.freeze({
73493
74157
  "page": 1,
73494
74158
  "pageSize": 50
73495
74159
  } },
74160
+ "device-credentials": { "listDeviceCredentials": { "includeRevoked": false } },
74161
+ "device-history": {
74162
+ "query": {
74163
+ "resolution": "auto",
74164
+ "maxPoints": 1e3
74165
+ },
74166
+ "queryNode": {
74167
+ "resolution": "auto",
74168
+ "maxPoints": 1e3
74169
+ }
74170
+ },
73496
74171
  "device-manager": { "adoptionListCandidates": {
73497
74172
  "page": 1,
73498
74173
  "pageSize": 50