@camstack/server 1.2.937 → 1.2.938
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/CHANGELOG.md +6 -0
- package/package.json +9 -11
- package/system/dist/{addon-pages.cap-CdvuO-QW.js → addon-pages.cap-B3gHFDYW.js} +4 -2
- package/system/dist/{addon-pages.cap-B-NaVAk8.mjs → addon-pages.cap-BLNN6ypr.mjs} +4 -2
- package/system/dist/{addon-settings.cap-BlsqpQXD.mjs → addon-settings.cap-CZ4MC7ha.mjs} +9 -1
- package/system/dist/{addon-settings.cap-B44t-Kbx.js → addon-settings.cap-DrLdMFIe.js} +9 -1
- package/system/dist/{addon-widgets.cap-BY-wN_Zi.mjs → addon-widgets.cap-BbmWMzIH.mjs} +4 -2
- package/system/dist/{addon-widgets.cap-CQRbYspY.js → addon-widgets.cap-DuCe2VRj.js} +4 -2
- package/system/dist/{base-device-B-jLBwhX.mjs → base-device-BcGO6LTT.mjs} +2 -2
- package/system/dist/{base-device-BOZCZY4S.js → base-device-CH8rfD9j.js} +2 -2
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +2 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +4 -4
- package/system/dist/builtins/camera-grid/index.mjs +4 -4
- package/system/dist/builtins/composer/composer.addon.js +8 -8
- package/system/dist/builtins/composer/composer.addon.mjs +8 -8
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -11
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -11
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +3 -3
- package/system/dist/builtins/device-history/device-history.addon.mjs +3 -3
- package/system/dist/builtins/device-manager/device-manager.addon.js +9 -9
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +9 -9
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +1 -1
- package/system/dist/builtins/keychain/index.mjs +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +3 -3
- package/system/dist/builtins/loki-logging/index.mjs +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +2 -2
- package/system/dist/builtins/snapshot/index.mjs +2 -2
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -7
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -7
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +2 -2
- package/system/dist/builtins/winston-logging/index.mjs +2 -2
- package/system/dist/{calendars.cap-KbMVKbM5.js → calendars.cap-CGeOtL7Q.js} +7 -1
- package/system/dist/{calendars.cap-DyQFPDr1.mjs → calendars.cap-DQc6Q6qS.mjs} +7 -1
- package/system/dist/{capability-definition-BRoGprGl.js → capability-definition-BEVd01Xj.js} +8 -4
- package/system/dist/{capability-definition-DLD3HR3U.mjs → capability-definition-C1TLUVJR.mjs} +8 -4
- package/system/dist/{capture-engine-DceE_Lxa.mjs → capture-engine-CUZ3W0oZ.mjs} +1 -1
- package/system/dist/{capture-engine-oWy4DQn8.js → capture-engine-mtDXEBAq.js} +1 -1
- package/system/dist/{composition-sources-DSf2fQ9L.js → composition-sources-DCi-ldEb.js} +2 -2
- package/system/dist/{composition-sources-2yNL7KIF.mjs → composition-sources-DgayqgHH.mjs} +2 -2
- package/system/dist/{core-blocks.cap-XUCnn7lE.mjs → core-blocks.cap-CWKQSevR.mjs} +38 -3
- package/system/dist/{core-blocks.cap-COZ5qkRy.js → core-blocks.cap-yLx6soaY.js} +38 -3
- package/system/dist/{database-snapshot.cap-BHWr6SRl.js → database-snapshot.cap-BNS5c60M.js} +2 -2
- package/system/dist/{database-snapshot.cap-Dgsn_9hb.mjs → database-snapshot.cap-a3lSf4hl.mjs} +2 -2
- package/system/dist/{device-manager.cap-B0XOXW5n.mjs → device-manager.cap-DIBK62-r.mjs} +14 -3
- package/system/dist/{device-manager.cap-DD66WJGT.js → device-manager.cap-DyHOIh5T.js} +14 -3
- package/system/dist/{device-provider.cap-meVxP-ZT.js → device-provider.cap-BKUGJSo0.js} +9 -1
- package/system/dist/{device-provider.cap-DNbklrhV.mjs → device-provider.cap-DU6HMUXH.mjs} +9 -1
- package/system/dist/{device-row-store-Bq3_mCoZ.mjs → device-row-store-C-_R-h1Z.mjs} +1 -1
- package/system/dist/{device-row-store-CSnsi_ri.js → device-row-store-O4mNbp5q.js} +1 -1
- package/system/dist/{device-transitions.cap-DETXRGXI.mjs → device-transitions.cap-DCXP3zwY.mjs} +7 -1
- package/system/dist/{device-transitions.cap-BDn0butT.js → device-transitions.cap-zOGvAIHz.js} +7 -1
- package/system/dist/{error.cap-BgBtdpm5.js → error.cap-BxLEHP6z.js} +1 -1
- package/system/dist/{error.cap-Xydi4TyZ.mjs → error.cap-DCwbIGEF.mjs} +1 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{integration-instances.cap-DskCCCIu.mjs → integration-instances.cap-BWttO42A.mjs} +10 -1
- package/system/dist/{integration-instances.cap-BZdT6WIs.js → integration-instances.cap-DSieF1w3.js} +10 -1
- package/system/dist/{keychain-admin.cap-CKdAe74a.mjs → keychain-admin.cap-DOvL8TMG.mjs} +5 -1
- package/system/dist/{keychain-admin.cap-BnsWz44L.js → keychain-admin.cap-DcRCRWtu.js} +5 -1
- package/system/dist/{log-destination.cap-Dz-Fli-t.js → log-destination.cap-BzTWMj-T.js} +4 -1
- package/system/dist/{log-destination.cap-rHxFjAsU.mjs → log-destination.cap-QYMJPJwK.mjs} +4 -1
- package/system/dist/{low-power-sleep.cap-DJH5wJpA.js → low-power-sleep.cap-B6mz6ojP.js} +1 -1
- package/system/dist/{low-power-sleep.cap-CwQkEFVD.mjs → low-power-sleep.cap-C3Vi8Vxj.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-l39Ma4BH.mjs → metrics-provider.cap-01SwpLu5.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-CmKvAp5K.js → metrics-provider.cap-BMKD5FH3.js} +1 -1
- package/system/dist/{migration-DKotTSc0.js → migration-BOQlFZCN.js} +1 -1
- package/system/dist/{migration-CpbO0xPG.mjs → migration-DGAc6ywR.mjs} +1 -1
- package/system/dist/{network-access.cap-XvDFK4J2.js → network-access.cap-BEN_uRVb.js} +12 -2
- package/system/dist/{network-access.cap-CTdzeqnQ.mjs → network-access.cap-Dy8FNNVs.mjs} +12 -2
- package/system/dist/{notification-rules.cap-JQPEAUwq.mjs → notification-rules.cap-0vVvsxQ1.mjs} +14 -1
- package/system/dist/{notification-rules.cap-v-cuIrwq.js → notification-rules.cap-Drwz-A4n.js} +14 -1
- package/system/dist/{notification-targets-_vr0nUsl.js → notification-targets-Cc_3OBH9.js} +1 -1
- package/system/dist/{notification-targets-CPSDChxA.mjs → notification-targets-DR-D-vIt.mjs} +1 -1
- package/system/dist/{platform-probe.cap-UOsI8bJL.js → platform-probe.cap-C0N9CugQ.js} +5 -1
- package/system/dist/{platform-probe.cap-BfGw4FsA.mjs → platform-probe.cap-DzZ7xUfS.mjs} +5 -1
- package/system/dist/{prefix-walk-MNJLhOQ4.js → prefix-walk-BRlQiqVg.js} +2 -2
- package/system/dist/{prefix-walk-_jmw00Vw.mjs → prefix-walk-BrrMuJBM.mjs} +2 -2
- package/system/dist/{ptz-autotrack.cap-CVm6a1Y-.mjs → ptz-autotrack.cap-CDF6FeTK.mjs} +1 -1
- package/system/dist/{ptz-autotrack.cap-E_n2XU8K.js → ptz-autotrack.cap-DOz0xL0O.js} +1 -1
- package/system/dist/{record-entries.cap-DWtLFTqk.mjs → record-entries.cap-BINjYZ1Q.mjs} +5 -2
- package/system/dist/{record-entries.cap-BM5lZzWh.js → record-entries.cap-NYExLM0O.js} +5 -2
- package/system/dist/{recording-archive.cap-BkI6Y-n1.js → recording-archive.cap-BPJ7kvnd.js} +6 -1
- package/system/dist/{recording-archive.cap-CzQ8cKsc.mjs → recording-archive.cap-RHAN45fa.mjs} +6 -1
- package/system/dist/{records.cap-BKJ9vylh.mjs → records.cap-DRwT1JbL.mjs} +10 -1
- package/system/dist/{records.cap-yxP6a69W.js → records.cap-wLi7r4Hj.js} +10 -1
- package/system/dist/{rename-composition-block-BkuT7Q9a.js → rename-composition-block-D44wnN_m.js} +401 -45
- package/system/dist/{rename-composition-block-BGsOdbXV.mjs → rename-composition-block-SPaUkmam.mjs} +401 -45
- package/system/dist/{restore-archive-D_Q_WeLG.mjs → restore-archive-BHkSRJYW.mjs} +2 -2
- package/system/dist/{restore-archive-BxpEs8a_.js → restore-archive-DRv1bPY7.js} +2 -2
- package/system/dist/{settings-store.cap-CBBKWyVh.js → settings-store.cap-BhOIBtO4.js} +1 -1
- package/system/dist/{settings-store.cap-DMRr0OD7.mjs → settings-store.cap-CaDSOqgK.mjs} +1 -1
- package/system/dist/{snapshot.cap-B6-9cwt9.mjs → snapshot.cap-BkfHpJVO.mjs} +3 -1
- package/system/dist/{snapshot.cap-CuP-6HSJ.js → snapshot.cap-Cis6JRwn.js} +3 -1
- package/system/dist/{storage-admin.cap-Dh59lsb1.mjs → storage-admin.cap-Ci4QbL6P.mjs} +4 -4
- package/system/dist/{storage-admin.cap-jCrZczO9.js → storage-admin.cap-DqW1ol4j.js} +4 -4
- package/system/dist/{storage-migration.cap-BN70KR6v.js → storage-migration.cap-CDOhpCQw.js} +23 -1
- package/system/dist/{storage-migration.cap-DlkRRFM8.mjs → storage-migration.cap-Ciw84XPm.mjs} +23 -1
- package/system/dist/{storage-occupancy.cap-DlDL_YBp.js → storage-occupancy.cap-B-Z8f8TZ.js} +5 -3
- package/system/dist/{storage-occupancy.cap-B85IBCO3.mjs → storage-occupancy.cap-B-wbMPmx.mjs} +5 -3
- package/system/dist/{storage-provider.cap-CplEGm7y.js → storage-provider.cap-B3Hm_BGM.js} +15 -1
- package/system/dist/{storage-provider.cap-B7mvKa0M.mjs → storage-provider.cap-CnN9ULbc.mjs} +15 -1
- package/system/dist/{stream-catalog.cap-Cp9GxHl8.mjs → stream-catalog.cap-D1Hy19Yc.mjs} +30 -2
- package/system/dist/{stream-catalog.cap-CG9R-dD2.js → stream-catalog.cap-D8Y-uXcy.js} +30 -2
- package/system/dist/{user-management.cap-Zpc4grqS.mjs → user-management.cap-Ctd4c_im.mjs} +26 -1
- package/system/dist/{user-management.cap-CPtvvmgp.js → user-management.cap-DyVb68rY.js} +26 -1
- package/system/dist/{vector-store.cap-q9AkgqSQ.js → vector-store.cap-DEVI-XJC.js} +6 -1
- package/system/dist/{vector-store.cap-CYcwQuWa.mjs → vector-store.cap-Df60cnrJ.mjs} +6 -1
- package/system/dist/{wal-maintenance-hh3FWtz2.mjs → wal-maintenance-O6zTzaI7.mjs} +0 -0
- package/system/dist/{wal-maintenance-Cb1i3shp.js → wal-maintenance-mV4OR3LR.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as CamStreamResolutionSchema, i as CamStreamKindSchema, l as FrameHandleSchema, r as CamProfileSchema, t as AudioStreamPickSchema } from "./streaming-shared-B8cXatuU.mjs";
|
|
2
2
|
import { b as EventCategory } from "./base-addon-Md14i7pe.mjs";
|
|
3
|
-
import { c as method } from "./capability-definition-
|
|
3
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
4
4
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
5
5
|
import { n as OpsLogQueryInputSchema, r as OpsLogReasonSchema, t as OpsLogEntrySchema } from "./ops-log-CB4pIdqi.mjs";
|
|
6
6
|
import { a as readingMeta } from "./quantity-D3g5SxsZ.mjs";
|
|
@@ -1019,6 +1019,7 @@ var motionDetectionCapability = {
|
|
|
1019
1019
|
deviceTypes: [DeviceType.Camera],
|
|
1020
1020
|
exposesDeviceSettings: true,
|
|
1021
1021
|
methods: {
|
|
1022
|
+
/** Analyse a frame of a camera for motion and return the motion regions. */
|
|
1022
1023
|
analyze: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
1023
1024
|
deviceId: /* @__PURE__ */ z.number(),
|
|
1024
1025
|
frame: /* @__PURE__ */ FrameInputSchema.optional(),
|
|
@@ -1028,11 +1029,13 @@ var motionDetectionCapability = {
|
|
|
1028
1029
|
kind: "mutation",
|
|
1029
1030
|
notOperatorFacing: "the pipeline feeds it frames — an internal stage, never called by a person"
|
|
1030
1031
|
}),
|
|
1032
|
+
/** Forget the motion state kept for a camera. */
|
|
1031
1033
|
removeCamera: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
|
|
1032
1034
|
role: "admin",
|
|
1033
1035
|
kind: "mutation",
|
|
1034
1036
|
notOperatorFacing: "pipeline housekeeping when a camera leaves"
|
|
1035
1037
|
}),
|
|
1038
|
+
/** Reset the motion detector's state for every camera. */
|
|
1036
1039
|
reset: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), {
|
|
1037
1040
|
role: "admin",
|
|
1038
1041
|
kind: "mutation",
|
|
@@ -3232,7 +3235,9 @@ var pipelineAnalyticsCapability = {
|
|
|
3232
3235
|
deviceTypes: [DeviceType.Camera],
|
|
3233
3236
|
exposesDeviceSettings: true,
|
|
3234
3237
|
methods: {
|
|
3238
|
+
/** List the tracks currently active on a camera. */
|
|
3235
3239
|
getActiveTracks: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.array(TrackSchema).readonly()),
|
|
3240
|
+
/** Fetch one track of a camera by its id; null when unknown. */
|
|
3236
3241
|
getTrack: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
3237
3242
|
deviceId: /* @__PURE__ */ z.number(),
|
|
3238
3243
|
trackId: /* @__PURE__ */ z.string()
|
|
@@ -3285,12 +3290,16 @@ var pipelineAnalyticsCapability = {
|
|
|
3285
3290
|
* are not included (same contract as `listTracks`).
|
|
3286
3291
|
*/
|
|
3287
3292
|
listRecentTracks: /* @__PURE__ */ method(RecentTracksQueryInput, RecentTracksPageSchema),
|
|
3293
|
+
/** Drop every active track of a camera. */
|
|
3288
3294
|
clearTracks: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
|
|
3289
3295
|
kind: "mutation",
|
|
3290
3296
|
auth: "admin"
|
|
3291
3297
|
}),
|
|
3298
|
+
/** Query a camera's recorded motion events in a time window. */
|
|
3292
3299
|
getMotionEvents: /* @__PURE__ */ method(DeviceEventQueryInput, /* @__PURE__ */ z.array(MotionEventSchema).readonly()),
|
|
3300
|
+
/** Query a camera's recorded object-detection events in a time window. */
|
|
3293
3301
|
getObjectEvents: /* @__PURE__ */ method(ObjectEventQueryInput, /* @__PURE__ */ z.array(ObjectEventSchema).readonly()),
|
|
3302
|
+
/** Query a camera's recorded audio events in a time window. */
|
|
3294
3303
|
getAudioEvents: /* @__PURE__ */ method(DeviceEventQueryInput, /* @__PURE__ */ z.array(AudioEventSchema).readonly()),
|
|
3295
3304
|
/**
|
|
3296
3305
|
* Every event kind the device can produce: built-ins (motion + audio),
|
|
@@ -3381,6 +3390,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3381
3390
|
to: /* @__PURE__ */ z.number(),
|
|
3382
3391
|
limit: /* @__PURE__ */ z.number().int().positive().optional()
|
|
3383
3392
|
}), /* @__PURE__ */ z.array(LtsBucketSchema).readonly()),
|
|
3393
|
+
/** Event counts per time bucket for a camera between two timestamps, for activity charts. */
|
|
3384
3394
|
getEventDensity: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
3385
3395
|
deviceId: /* @__PURE__ */ z.number(),
|
|
3386
3396
|
since: /* @__PURE__ */ z.number(),
|
|
@@ -3412,6 +3422,8 @@ var pipelineAnalyticsCapability = {
|
|
|
3412
3422
|
bucketMs: /* @__PURE__ */ z.number().int().positive()
|
|
3413
3423
|
}), /* @__PURE__ */ z.array(EventDensityForDeviceSchema).readonly()),
|
|
3414
3424
|
/**
|
|
3425
|
+
* Delete a camera's motion, object and audio events older than a cutoff and report how many were removed.
|
|
3426
|
+
*
|
|
3415
3427
|
* @deprecated Prefer `pruneTracksBefore` — the track is the ROOT of the
|
|
3416
3428
|
* analytics model and retention must cascade from it (design §5.1). This
|
|
3417
3429
|
* event-only prune leaves orphaned tracks/faces/plates/embeddings behind.
|
|
@@ -3683,6 +3695,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3683
3695
|
kind: "mutation",
|
|
3684
3696
|
auth: "admin"
|
|
3685
3697
|
}),
|
|
3698
|
+
/** Resume the analytics media work that was paused for a storage migration. */
|
|
3686
3699
|
resumeForStorageMigration: /* @__PURE__ */ method(StorageMigrationLeaseInputSchema, /* @__PURE__ */ z.object({ resumed: /* @__PURE__ */ z.literal(true) }), {
|
|
3687
3700
|
kind: "mutation",
|
|
3688
3701
|
auth: "admin"
|
|
@@ -3693,11 +3706,14 @@ var pipelineAnalyticsCapability = {
|
|
|
3693
3706
|
kind: "mutation",
|
|
3694
3707
|
auth: "admin"
|
|
3695
3708
|
}),
|
|
3709
|
+
/** Start moving analytics media to its new storage location and return the job id. */
|
|
3696
3710
|
startStorageMigrationMove: /* @__PURE__ */ method(StorageMigrationMediaMoveInputSchema, /* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string() }), {
|
|
3697
3711
|
kind: "mutation",
|
|
3698
3712
|
auth: "admin"
|
|
3699
3713
|
}),
|
|
3714
|
+
/** Progress of an analytics media move job; null when the job is unknown. */
|
|
3700
3715
|
getStorageMigrationMoveStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ RelocateJobSchema.nullable(), { auth: "admin" }),
|
|
3716
|
+
/** Cancel a running analytics media move job. */
|
|
3701
3717
|
cancelStorageMigrationMove: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ cancelled: /* @__PURE__ */ z.boolean() }), {
|
|
3702
3718
|
kind: "mutation",
|
|
3703
3719
|
auth: "admin"
|
|
@@ -3776,6 +3792,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3776
3792
|
kind: "mutation",
|
|
3777
3793
|
auth: "admin"
|
|
3778
3794
|
}),
|
|
3795
|
+
/** List entries of the analytics operations log (what ran, when, with what outcome). */
|
|
3779
3796
|
listOpsLog: /* @__PURE__ */ method(OpsLogQueryInputSchema, /* @__PURE__ */ z.array(OpsLogEntrySchema).readonly(), {
|
|
3780
3797
|
kind: "query",
|
|
3781
3798
|
auth: "admin"
|
|
@@ -3790,6 +3807,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3790
3807
|
kind: "mutation",
|
|
3791
3808
|
auth: "admin"
|
|
3792
3809
|
}),
|
|
3810
|
+
/** Status of the media space-reclaim pass. */
|
|
3793
3811
|
getMediaReclaimStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), MediaReclaimStatusSchema, {
|
|
3794
3812
|
kind: "query",
|
|
3795
3813
|
auth: "admin"
|
|
@@ -4219,6 +4237,7 @@ var pipelineAnalyticsCapability = {
|
|
|
4219
4237
|
auth: "admin",
|
|
4220
4238
|
timeoutMs: 6e4
|
|
4221
4239
|
}),
|
|
4240
|
+
/** Rename a retrain collection. */
|
|
4222
4241
|
renameRetrainCollection: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
4223
4242
|
id: /* @__PURE__ */ z.string(),
|
|
4224
4243
|
name: /* @__PURE__ */ z.string().max(120)
|
|
@@ -4406,14 +4425,17 @@ var pipelineAnalyticsCapability = {
|
|
|
4406
4425
|
* `minScore`, sorted descending by score.
|
|
4407
4426
|
*/
|
|
4408
4427
|
searchObjectEvents: /* @__PURE__ */ method(SearchObjectEventsInput, /* @__PURE__ */ z.array(ScoredObjectEventSchema).readonly(), { caller: "required" }),
|
|
4428
|
+
/** Delete every stored object embedding so the vector index can be rebuilt from scratch. */
|
|
4409
4429
|
wipeObjectEmbeddings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), WipeObjectEmbeddingsResultSchema, {
|
|
4410
4430
|
kind: "mutation",
|
|
4411
4431
|
auth: "admin"
|
|
4412
4432
|
}),
|
|
4433
|
+
/** Start rebuilding the object embeddings from stored media. */
|
|
4413
4434
|
rebuildObjectEmbeddings: /* @__PURE__ */ method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
4414
4435
|
kind: "mutation",
|
|
4415
4436
|
auth: "admin"
|
|
4416
4437
|
}),
|
|
4438
|
+
/** Progress of the object-embedding rebuild. */
|
|
4417
4439
|
getObjectEmbeddingRebuildStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), RebuildStatusSchema)
|
|
4418
4440
|
},
|
|
4419
4441
|
events: {
|
|
@@ -4607,7 +4629,9 @@ var zonesCapability = {
|
|
|
4607
4629
|
mode: "singleton",
|
|
4608
4630
|
deviceTypes: [DeviceType.Camera],
|
|
4609
4631
|
methods: {
|
|
4632
|
+
/** List the zones drawn on a camera. */
|
|
4610
4633
|
listZones: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.array(ZoneSchema).readonly()),
|
|
4634
|
+
/** Add a zone to a camera. */
|
|
4611
4635
|
addZone: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
4612
4636
|
deviceId: /* @__PURE__ */ z.number(),
|
|
4613
4637
|
zone: ZoneSchema
|
|
@@ -4615,6 +4639,7 @@ var zonesCapability = {
|
|
|
4615
4639
|
kind: "mutation",
|
|
4616
4640
|
auth: "admin"
|
|
4617
4641
|
}),
|
|
4642
|
+
/** Remove a zone from a camera. */
|
|
4618
4643
|
removeZone: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
4619
4644
|
deviceId: /* @__PURE__ */ z.number(),
|
|
4620
4645
|
zoneId: /* @__PURE__ */ z.string()
|
|
@@ -4622,6 +4647,7 @@ var zonesCapability = {
|
|
|
4622
4647
|
kind: "mutation",
|
|
4623
4648
|
auth: "admin"
|
|
4624
4649
|
}),
|
|
4650
|
+
/** Replace a zone's geometry and name. */
|
|
4625
4651
|
updateZone: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
4626
4652
|
deviceId: /* @__PURE__ */ z.number(),
|
|
4627
4653
|
zone: ZoneSchema
|
|
@@ -6617,7 +6643,9 @@ var streamCatalogCapability = {
|
|
|
6617
6643
|
deviceNative: true,
|
|
6618
6644
|
mode: "singleton",
|
|
6619
6645
|
deviceTypes: [DeviceType.Camera],
|
|
6620
|
-
methods: {
|
|
6646
|
+
methods: {
|
|
6647
|
+
/** List the streams a camera offers. */
|
|
6648
|
+
getCatalog: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.array(CamStreamDescriptorSchema).readonly()) },
|
|
6621
6649
|
runtimeState: StreamCatalogStateSchema,
|
|
6622
6650
|
/**
|
|
6623
6651
|
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_streaming_shared = require("./streaming-shared-DQwFZOSi.js");
|
|
2
2
|
const require_base_addon = require("./base-addon-DD5dIfcZ.js");
|
|
3
|
-
const require_capability_definition = require("./capability-definition-
|
|
3
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
4
4
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
5
5
|
const require_ops_log = require("./ops-log-pxt9176Z.js");
|
|
6
6
|
const require_quantity = require("./quantity-lY1KiTSZ.js");
|
|
@@ -1019,6 +1019,7 @@ var motionDetectionCapability = {
|
|
|
1019
1019
|
deviceTypes: [require_device_type.DeviceType.Camera],
|
|
1020
1020
|
exposesDeviceSettings: true,
|
|
1021
1021
|
methods: {
|
|
1022
|
+
/** Analyse a frame of a camera for motion and return the motion regions. */
|
|
1022
1023
|
analyze: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
1023
1024
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
1024
1025
|
frame: /* @__PURE__ */ FrameInputSchema.optional(),
|
|
@@ -1028,11 +1029,13 @@ var motionDetectionCapability = {
|
|
|
1028
1029
|
kind: "mutation",
|
|
1029
1030
|
notOperatorFacing: "the pipeline feeds it frames — an internal stage, never called by a person"
|
|
1030
1031
|
}),
|
|
1032
|
+
/** Forget the motion state kept for a camera. */
|
|
1031
1033
|
removeCamera: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
|
|
1032
1034
|
role: "admin",
|
|
1033
1035
|
kind: "mutation",
|
|
1034
1036
|
notOperatorFacing: "pipeline housekeeping when a camera leaves"
|
|
1035
1037
|
}),
|
|
1038
|
+
/** Reset the motion detector's state for every camera. */
|
|
1036
1039
|
reset: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), {
|
|
1037
1040
|
role: "admin",
|
|
1038
1041
|
kind: "mutation",
|
|
@@ -3232,7 +3235,9 @@ var pipelineAnalyticsCapability = {
|
|
|
3232
3235
|
deviceTypes: [require_device_type.DeviceType.Camera],
|
|
3233
3236
|
exposesDeviceSettings: true,
|
|
3234
3237
|
methods: {
|
|
3238
|
+
/** List the tracks currently active on a camera. */
|
|
3235
3239
|
getActiveTracks: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.array(TrackSchema).readonly()),
|
|
3240
|
+
/** Fetch one track of a camera by its id; null when unknown. */
|
|
3236
3241
|
getTrack: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
3237
3242
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
3238
3243
|
trackId: /* @__PURE__ */ zod.z.string()
|
|
@@ -3285,12 +3290,16 @@ var pipelineAnalyticsCapability = {
|
|
|
3285
3290
|
* are not included (same contract as `listTracks`).
|
|
3286
3291
|
*/
|
|
3287
3292
|
listRecentTracks: /* @__PURE__ */ require_capability_definition.method(RecentTracksQueryInput, RecentTracksPageSchema),
|
|
3293
|
+
/** Drop every active track of a camera. */
|
|
3288
3294
|
clearTracks: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
|
|
3289
3295
|
kind: "mutation",
|
|
3290
3296
|
auth: "admin"
|
|
3291
3297
|
}),
|
|
3298
|
+
/** Query a camera's recorded motion events in a time window. */
|
|
3292
3299
|
getMotionEvents: /* @__PURE__ */ require_capability_definition.method(DeviceEventQueryInput, /* @__PURE__ */ zod.z.array(MotionEventSchema).readonly()),
|
|
3300
|
+
/** Query a camera's recorded object-detection events in a time window. */
|
|
3293
3301
|
getObjectEvents: /* @__PURE__ */ require_capability_definition.method(ObjectEventQueryInput, /* @__PURE__ */ zod.z.array(ObjectEventSchema).readonly()),
|
|
3302
|
+
/** Query a camera's recorded audio events in a time window. */
|
|
3294
3303
|
getAudioEvents: /* @__PURE__ */ require_capability_definition.method(DeviceEventQueryInput, /* @__PURE__ */ zod.z.array(AudioEventSchema).readonly()),
|
|
3295
3304
|
/**
|
|
3296
3305
|
* Every event kind the device can produce: built-ins (motion + audio),
|
|
@@ -3381,6 +3390,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3381
3390
|
to: /* @__PURE__ */ zod.z.number(),
|
|
3382
3391
|
limit: /* @__PURE__ */ zod.z.number().int().positive().optional()
|
|
3383
3392
|
}), /* @__PURE__ */ zod.z.array(LtsBucketSchema).readonly()),
|
|
3393
|
+
/** Event counts per time bucket for a camera between two timestamps, for activity charts. */
|
|
3384
3394
|
getEventDensity: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
3385
3395
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
3386
3396
|
since: /* @__PURE__ */ zod.z.number(),
|
|
@@ -3412,6 +3422,8 @@ var pipelineAnalyticsCapability = {
|
|
|
3412
3422
|
bucketMs: /* @__PURE__ */ zod.z.number().int().positive()
|
|
3413
3423
|
}), /* @__PURE__ */ zod.z.array(EventDensityForDeviceSchema).readonly()),
|
|
3414
3424
|
/**
|
|
3425
|
+
* Delete a camera's motion, object and audio events older than a cutoff and report how many were removed.
|
|
3426
|
+
*
|
|
3415
3427
|
* @deprecated Prefer `pruneTracksBefore` — the track is the ROOT of the
|
|
3416
3428
|
* analytics model and retention must cascade from it (design §5.1). This
|
|
3417
3429
|
* event-only prune leaves orphaned tracks/faces/plates/embeddings behind.
|
|
@@ -3683,6 +3695,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3683
3695
|
kind: "mutation",
|
|
3684
3696
|
auth: "admin"
|
|
3685
3697
|
}),
|
|
3698
|
+
/** Resume the analytics media work that was paused for a storage migration. */
|
|
3686
3699
|
resumeForStorageMigration: /* @__PURE__ */ require_capability_definition.method(require_relocate.StorageMigrationLeaseInputSchema, /* @__PURE__ */ zod.z.object({ resumed: /* @__PURE__ */ zod.z.literal(true) }), {
|
|
3687
3700
|
kind: "mutation",
|
|
3688
3701
|
auth: "admin"
|
|
@@ -3693,11 +3706,14 @@ var pipelineAnalyticsCapability = {
|
|
|
3693
3706
|
kind: "mutation",
|
|
3694
3707
|
auth: "admin"
|
|
3695
3708
|
}),
|
|
3709
|
+
/** Start moving analytics media to its new storage location and return the job id. */
|
|
3696
3710
|
startStorageMigrationMove: /* @__PURE__ */ require_capability_definition.method(require_relocate.StorageMigrationMediaMoveInputSchema, /* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string() }), {
|
|
3697
3711
|
kind: "mutation",
|
|
3698
3712
|
auth: "admin"
|
|
3699
3713
|
}),
|
|
3714
|
+
/** Progress of an analytics media move job; null when the job is unknown. */
|
|
3700
3715
|
getStorageMigrationMoveStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ require_relocate.RelocateJobSchema.nullable(), { auth: "admin" }),
|
|
3716
|
+
/** Cancel a running analytics media move job. */
|
|
3701
3717
|
cancelStorageMigrationMove: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ cancelled: /* @__PURE__ */ zod.z.boolean() }), {
|
|
3702
3718
|
kind: "mutation",
|
|
3703
3719
|
auth: "admin"
|
|
@@ -3776,6 +3792,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3776
3792
|
kind: "mutation",
|
|
3777
3793
|
auth: "admin"
|
|
3778
3794
|
}),
|
|
3795
|
+
/** List entries of the analytics operations log (what ran, when, with what outcome). */
|
|
3779
3796
|
listOpsLog: /* @__PURE__ */ require_capability_definition.method(require_ops_log.OpsLogQueryInputSchema, /* @__PURE__ */ zod.z.array(require_ops_log.OpsLogEntrySchema).readonly(), {
|
|
3780
3797
|
kind: "query",
|
|
3781
3798
|
auth: "admin"
|
|
@@ -3790,6 +3807,7 @@ var pipelineAnalyticsCapability = {
|
|
|
3790
3807
|
kind: "mutation",
|
|
3791
3808
|
auth: "admin"
|
|
3792
3809
|
}),
|
|
3810
|
+
/** Status of the media space-reclaim pass. */
|
|
3793
3811
|
getMediaReclaimStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), MediaReclaimStatusSchema, {
|
|
3794
3812
|
kind: "query",
|
|
3795
3813
|
auth: "admin"
|
|
@@ -4219,6 +4237,7 @@ var pipelineAnalyticsCapability = {
|
|
|
4219
4237
|
auth: "admin",
|
|
4220
4238
|
timeoutMs: 6e4
|
|
4221
4239
|
}),
|
|
4240
|
+
/** Rename a retrain collection. */
|
|
4222
4241
|
renameRetrainCollection: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
4223
4242
|
id: /* @__PURE__ */ zod.z.string(),
|
|
4224
4243
|
name: /* @__PURE__ */ zod.z.string().max(120)
|
|
@@ -4406,14 +4425,17 @@ var pipelineAnalyticsCapability = {
|
|
|
4406
4425
|
* `minScore`, sorted descending by score.
|
|
4407
4426
|
*/
|
|
4408
4427
|
searchObjectEvents: /* @__PURE__ */ require_capability_definition.method(SearchObjectEventsInput, /* @__PURE__ */ zod.z.array(ScoredObjectEventSchema).readonly(), { caller: "required" }),
|
|
4428
|
+
/** Delete every stored object embedding so the vector index can be rebuilt from scratch. */
|
|
4409
4429
|
wipeObjectEmbeddings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), WipeObjectEmbeddingsResultSchema, {
|
|
4410
4430
|
kind: "mutation",
|
|
4411
4431
|
auth: "admin"
|
|
4412
4432
|
}),
|
|
4433
|
+
/** Start rebuilding the object embeddings from stored media. */
|
|
4413
4434
|
rebuildObjectEmbeddings: /* @__PURE__ */ require_capability_definition.method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
4414
4435
|
kind: "mutation",
|
|
4415
4436
|
auth: "admin"
|
|
4416
4437
|
}),
|
|
4438
|
+
/** Progress of the object-embedding rebuild. */
|
|
4417
4439
|
getObjectEmbeddingRebuildStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), RebuildStatusSchema)
|
|
4418
4440
|
},
|
|
4419
4441
|
events: {
|
|
@@ -4607,7 +4629,9 @@ var zonesCapability = {
|
|
|
4607
4629
|
mode: "singleton",
|
|
4608
4630
|
deviceTypes: [require_device_type.DeviceType.Camera],
|
|
4609
4631
|
methods: {
|
|
4632
|
+
/** List the zones drawn on a camera. */
|
|
4610
4633
|
listZones: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.array(ZoneSchema).readonly()),
|
|
4634
|
+
/** Add a zone to a camera. */
|
|
4611
4635
|
addZone: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
4612
4636
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
4613
4637
|
zone: ZoneSchema
|
|
@@ -4615,6 +4639,7 @@ var zonesCapability = {
|
|
|
4615
4639
|
kind: "mutation",
|
|
4616
4640
|
auth: "admin"
|
|
4617
4641
|
}),
|
|
4642
|
+
/** Remove a zone from a camera. */
|
|
4618
4643
|
removeZone: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
4619
4644
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
4620
4645
|
zoneId: /* @__PURE__ */ zod.z.string()
|
|
@@ -4622,6 +4647,7 @@ var zonesCapability = {
|
|
|
4622
4647
|
kind: "mutation",
|
|
4623
4648
|
auth: "admin"
|
|
4624
4649
|
}),
|
|
4650
|
+
/** Replace a zone's geometry and name. */
|
|
4625
4651
|
updateZone: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
4626
4652
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
4627
4653
|
zone: ZoneSchema
|
|
@@ -6617,7 +6643,9 @@ var streamCatalogCapability = {
|
|
|
6617
6643
|
deviceNative: true,
|
|
6618
6644
|
mode: "singleton",
|
|
6619
6645
|
deviceTypes: [require_device_type.DeviceType.Camera],
|
|
6620
|
-
methods: {
|
|
6646
|
+
methods: {
|
|
6647
|
+
/** List the streams a camera offers. */
|
|
6648
|
+
getCatalog: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.array(CamStreamDescriptorSchema).readonly()) },
|
|
6621
6649
|
runtimeState: StreamCatalogStateSchema,
|
|
6622
6650
|
/**
|
|
6623
6651
|
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
4
4
|
import { t as canonicalStoredDeviceType } from "./device-kind-BJ2pfsjw.mjs";
|
|
@@ -261,12 +261,16 @@ var authProviderCapability = {
|
|
|
261
261
|
mode: "collection",
|
|
262
262
|
internal: true,
|
|
263
263
|
methods: {
|
|
264
|
+
/** Check a username and password with this provider; null when invalid. */
|
|
264
265
|
validateCredentials: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
265
266
|
username: /* @__PURE__ */ z.string(),
|
|
266
267
|
password: /* @__PURE__ */ z.string()
|
|
267
268
|
}), /* @__PURE__ */ AuthResultSchema.nullable(), { kind: "mutation" }),
|
|
269
|
+
/** The provider's sign-in URL for an external login flow, carrying the given state. */
|
|
268
270
|
getLoginUrl: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ state: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.string()),
|
|
271
|
+
/** Complete an external login flow from the callback parameters. */
|
|
269
272
|
handleCallback: /* @__PURE__ */ method(/* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()), AuthResultSchema, { kind: "mutation" }),
|
|
273
|
+
/** Check a token with this provider; null when invalid. */
|
|
270
274
|
validateToken: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ token: /* @__PURE__ */ z.string() }), /* @__PURE__ */ AuthResultSchema.nullable())
|
|
271
275
|
},
|
|
272
276
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
|
|
@@ -350,6 +354,7 @@ var deviceCredentialsCapability = {
|
|
|
350
354
|
* unaffected. Hub-wide only (no per-role switch).
|
|
351
355
|
*/
|
|
352
356
|
getDeviceCertificateSettings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), DeviceCertificateSettingsSchema, { auth: "admin" }),
|
|
357
|
+
/** Set the certificate settings used to reach devices and return the stored ones. */
|
|
353
358
|
setDeviceCertificateSettings: /* @__PURE__ */ method(DeviceCertificateSettingsSchema, DeviceCertificateSettingsSchema, {
|
|
354
359
|
kind: "mutation",
|
|
355
360
|
auth: "admin"
|
|
@@ -515,6 +520,7 @@ var ssoBridgeCapability = {
|
|
|
515
520
|
*/
|
|
516
521
|
ttlSec: /* @__PURE__ */ z.union([/* @__PURE__ */ z.number().int().positive(), /* @__PURE__ */ z.literal("never")]).optional()
|
|
517
522
|
}), /* @__PURE__ */ z.object({ token: /* @__PURE__ */ z.string() }), { auth: "admin" }),
|
|
523
|
+
/** Verify a signed SSO bridge token and return its claims; null when invalid. */
|
|
518
524
|
verifyBridgeToken: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ token: /* @__PURE__ */ z.string() }), /* @__PURE__ */ SsoBridgeClaimsSchema.nullable(), { auth: "admin" })
|
|
519
525
|
},
|
|
520
526
|
vocabulary: { notOperatorFacing: NOT_A_DEVICE.IDENTITY }
|
|
@@ -606,6 +612,7 @@ var userManagementCapability = {
|
|
|
606
612
|
scope: "system",
|
|
607
613
|
mode: "singleton",
|
|
608
614
|
methods: {
|
|
615
|
+
/** List every user account. */
|
|
609
616
|
listUsers: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(UserSummarySchema), { auth: "admin" }),
|
|
610
617
|
/**
|
|
611
618
|
* Read-only: does an admin account still carry the first-boot password
|
|
@@ -613,21 +620,25 @@ var userManagementCapability = {
|
|
|
613
620
|
* the hub. Backs the `setup_wizard` admin step.
|
|
614
621
|
*/
|
|
615
622
|
getAdminBootstrapStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.object({ defaultPasswordInUse: /* @__PURE__ */ z.boolean() }), { auth: "admin" }),
|
|
623
|
+
/** Create a user account. */
|
|
616
624
|
createUser: /* @__PURE__ */ method(CreateUserInputSchema, UserSummarySchema, {
|
|
617
625
|
kind: "mutation",
|
|
618
626
|
auth: "admin",
|
|
619
627
|
access: "create"
|
|
620
628
|
}),
|
|
629
|
+
/** Update a user's admin flag, allowed providers and devices, or scopes. */
|
|
621
630
|
updateUser: /* @__PURE__ */ method(UpdateUserInputSchema, /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
|
|
622
631
|
kind: "mutation",
|
|
623
632
|
auth: "admin",
|
|
624
633
|
access: "create"
|
|
625
634
|
}),
|
|
635
|
+
/** Delete a user account. */
|
|
626
636
|
deleteUser: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
|
|
627
637
|
kind: "mutation",
|
|
628
638
|
auth: "admin",
|
|
629
639
|
access: "delete"
|
|
630
640
|
}),
|
|
641
|
+
/** Set a new password for a user. */
|
|
631
642
|
resetPassword: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
632
643
|
id: /* @__PURE__ */ z.string(),
|
|
633
644
|
newPassword: /* @__PURE__ */ z.string().min(6)
|
|
@@ -636,6 +647,7 @@ var userManagementCapability = {
|
|
|
636
647
|
auth: "admin",
|
|
637
648
|
access: "create"
|
|
638
649
|
}),
|
|
650
|
+
/** Replace the camera and feature scopes a user is allowed to access. */
|
|
639
651
|
setUserScopes: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
640
652
|
userId: /* @__PURE__ */ z.string(),
|
|
641
653
|
scopes: /* @__PURE__ */ z.array(UserScopeSchema)
|
|
@@ -644,6 +656,7 @@ var userManagementCapability = {
|
|
|
644
656
|
auth: "admin",
|
|
645
657
|
access: "create"
|
|
646
658
|
}),
|
|
659
|
+
/** Check a username and password; returns the user when valid, otherwise null. */
|
|
647
660
|
validateCredentials: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
648
661
|
username: /* @__PURE__ */ z.string(),
|
|
649
662
|
password: /* @__PURE__ */ z.string()
|
|
@@ -651,11 +664,13 @@ var userManagementCapability = {
|
|
|
651
664
|
kind: "mutation",
|
|
652
665
|
access: "view"
|
|
653
666
|
}),
|
|
667
|
+
/** Start two-factor setup for a user and return the secret and QR data to enrol. */
|
|
654
668
|
setupTotp: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ userId: /* @__PURE__ */ z.string() }), TotpSetupResultSchema, {
|
|
655
669
|
kind: "mutation",
|
|
656
670
|
auth: "admin",
|
|
657
671
|
access: "create"
|
|
658
672
|
}),
|
|
673
|
+
/** Confirm two-factor setup by checking the first code from the authenticator. */
|
|
659
674
|
confirmTotp: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
660
675
|
userId: /* @__PURE__ */ z.string(),
|
|
661
676
|
code: /* @__PURE__ */ z.string()
|
|
@@ -664,11 +679,13 @@ var userManagementCapability = {
|
|
|
664
679
|
auth: "admin",
|
|
665
680
|
access: "create"
|
|
666
681
|
}),
|
|
682
|
+
/** Turn off two-factor authentication for a user. */
|
|
667
683
|
disableTotp: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ userId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
|
|
668
684
|
kind: "mutation",
|
|
669
685
|
auth: "admin",
|
|
670
686
|
access: "delete"
|
|
671
687
|
}),
|
|
688
|
+
/** Whether two-factor authentication is enabled for a user. */
|
|
672
689
|
getTotpStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ userId: /* @__PURE__ */ z.string() }), TotpStatusSchema, { auth: "admin" }),
|
|
673
690
|
/**
|
|
674
691
|
* D878: move every TOTP seed stored in plaintext into the keychain (owner
|
|
@@ -680,6 +697,7 @@ var userManagementCapability = {
|
|
|
680
697
|
auth: "admin",
|
|
681
698
|
access: "create"
|
|
682
699
|
}),
|
|
700
|
+
/** Check a two-factor code for a user. */
|
|
683
701
|
verifyTotp: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
684
702
|
userId: /* @__PURE__ */ z.string(),
|
|
685
703
|
code: /* @__PURE__ */ z.string()
|
|
@@ -687,6 +705,7 @@ var userManagementCapability = {
|
|
|
687
705
|
kind: "mutation",
|
|
688
706
|
access: "view"
|
|
689
707
|
}),
|
|
708
|
+
/** Issue a one-time OAuth authorization code that links a user to an integration instance. */
|
|
690
709
|
oauthIssueCode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
691
710
|
integrationId: /* @__PURE__ */ z.string(),
|
|
692
711
|
/** The integration instance the link is for. Omit for the default
|
|
@@ -709,6 +728,7 @@ var userManagementCapability = {
|
|
|
709
728
|
kind: "mutation",
|
|
710
729
|
access: "create"
|
|
711
730
|
}),
|
|
731
|
+
/** Exchange an OAuth authorization code (with PKCE verifier when required) for access and refresh tokens. */
|
|
712
732
|
oauthExchangeCode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
713
733
|
code: /* @__PURE__ */ z.string(),
|
|
714
734
|
redirectUri: /* @__PURE__ */ z.string(),
|
|
@@ -722,6 +742,7 @@ var userManagementCapability = {
|
|
|
722
742
|
kind: "mutation",
|
|
723
743
|
access: "view"
|
|
724
744
|
}),
|
|
745
|
+
/** Exchange a refresh token for a new access and refresh token pair; null when invalid. */
|
|
725
746
|
oauthRefresh: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ refreshToken: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({
|
|
726
747
|
accessToken: /* @__PURE__ */ z.string(),
|
|
727
748
|
refreshToken: /* @__PURE__ */ z.string(),
|
|
@@ -730,6 +751,7 @@ var userManagementCapability = {
|
|
|
730
751
|
kind: "mutation",
|
|
731
752
|
access: "view"
|
|
732
753
|
}),
|
|
754
|
+
/** Validate an OAuth access token and return its user, scopes and linked instance; null when invalid. */
|
|
733
755
|
oauthVerifyAccessToken: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ token: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({
|
|
734
756
|
userId: /* @__PURE__ */ z.string(),
|
|
735
757
|
username: /* @__PURE__ */ z.string(),
|
|
@@ -741,6 +763,7 @@ var userManagementCapability = {
|
|
|
741
763
|
* per-instance route, T3, is the first consumer). */
|
|
742
764
|
instanceId: /* @__PURE__ */ z.string().optional()
|
|
743
765
|
}).nullable(), { access: "view" }),
|
|
766
|
+
/** List the external identities (SSO accounts) linked to a user. */
|
|
744
767
|
listExternalIdentities: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ userId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(ExternalIdentitySchema), { auth: "admin" }),
|
|
745
768
|
/** The user an identity is linked to, or `null`. */
|
|
746
769
|
findUserByExternalIdentity: /* @__PURE__ */ method(ExternalIdentityKeySchema, /* @__PURE__ */ z.object({
|
|
@@ -753,7 +776,9 @@ var userManagementCapability = {
|
|
|
753
776
|
auth: "admin",
|
|
754
777
|
access: "delete"
|
|
755
778
|
}),
|
|
779
|
+
/** List the active OAuth sessions of all users. */
|
|
756
780
|
listOauthSessions: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(OauthSessionSummarySchema), { auth: "admin" }),
|
|
781
|
+
/** Revoke one OAuth session so its tokens stop working. */
|
|
757
782
|
revokeOauthSession: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.boolean() }), {
|
|
758
783
|
kind: "mutation",
|
|
759
784
|
auth: "admin",
|