@camstack/addon-provider-reolink 1.1.4 → 1.1.5

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/addon.js CHANGED
@@ -4655,7 +4655,7 @@ function _instanceof(cls, params = {}) {
4655
4655
  return inst;
4656
4656
  }
4657
4657
  //#endregion
4658
- //#region ../types/dist/sleep-_J5S7OEP.mjs
4658
+ //#region ../types/dist/sleep-NOH4yRwj.mjs
4659
4659
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4660
4660
  EventCategory["SystemBoot"] = "system.boot";
4661
4661
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -15701,7 +15701,8 @@ method(object({
15701
15701
  sessionId: string().optional()
15702
15702
  }), ConvertResultSchema, {
15703
15703
  kind: "mutation",
15704
- auth: "admin"
15704
+ auth: "admin",
15705
+ timeoutMs: 6e5
15705
15706
  });
15706
15707
  var AddonHttpRouteSchema = object({
15707
15708
  method: _enum([
@@ -17280,7 +17281,14 @@ var NotificationRuleConditionsSchema = object({
17280
17281
  /** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
17281
17282
  * carrying a matching `data.eventType` string pass this condition. Rules without this field are
17282
17283
  * unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
17283
- eventTypeTokens: array(string()).readonly().optional()
17284
+ eventTypeTokens: array(string()).readonly().optional(),
17285
+ /** Match detections whose CLIP image embedding is semantically similar to this free-text
17286
+ * description. Requires the embedding-encoder cap to have pre-warmed the text vector.
17287
+ * `minSimilarity` is the cosine similarity threshold in [0, 1]. */
17288
+ clipDescription: object({
17289
+ text: string().min(1),
17290
+ minSimilarity: number().min(0).max(1)
17291
+ }).optional()
17284
17292
  });
17285
17293
  var NotificationRuleTemplateSchema = object({
17286
17294
  title: string(),
@@ -17522,6 +17530,16 @@ var TrackedDetectionSchema = object({
17522
17530
  zones: array(string()).readonly(),
17523
17531
  state: TrackStateSchema
17524
17532
  });
17533
+ var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
17534
+ var SearchObjectEventsInput = object({
17535
+ text: string(),
17536
+ deviceId: number().optional(),
17537
+ since: number().optional(),
17538
+ until: number().optional(),
17539
+ classFilter: string().optional(),
17540
+ limit: number().default(50),
17541
+ minScore: number().min(0).max(1).default(.2)
17542
+ });
17525
17543
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
17526
17544
  deviceId: number(),
17527
17545
  trackId: string()
@@ -17556,7 +17574,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17556
17574
  }), method(object({
17557
17575
  eventId: string(),
17558
17576
  kind: MediaFileKindEnum.optional()
17559
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
17577
+ }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
17560
17578
  deviceId: number(),
17561
17579
  timestamp: number(),
17562
17580
  frameWidth: number(),
@@ -22535,6 +22553,12 @@ Object.freeze({
22535
22553
  addonId: null,
22536
22554
  access: "create"
22537
22555
  },
22556
+ "pipelineAnalytics.searchObjectEvents": {
22557
+ capName: "pipeline-analytics",
22558
+ capScope: "device",
22559
+ addonId: null,
22560
+ access: "view"
22561
+ },
22538
22562
  "pipelineExecutor.cacheFrameInPool": {
22539
22563
  capName: "pipeline-executor",
22540
22564
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -4650,7 +4650,7 @@ function _instanceof(cls, params = {}) {
4650
4650
  return inst;
4651
4651
  }
4652
4652
  //#endregion
4653
- //#region ../types/dist/sleep-_J5S7OEP.mjs
4653
+ //#region ../types/dist/sleep-NOH4yRwj.mjs
4654
4654
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4655
4655
  EventCategory["SystemBoot"] = "system.boot";
4656
4656
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -15696,7 +15696,8 @@ method(object({
15696
15696
  sessionId: string().optional()
15697
15697
  }), ConvertResultSchema, {
15698
15698
  kind: "mutation",
15699
- auth: "admin"
15699
+ auth: "admin",
15700
+ timeoutMs: 6e5
15700
15701
  });
15701
15702
  var AddonHttpRouteSchema = object({
15702
15703
  method: _enum([
@@ -17275,7 +17276,14 @@ var NotificationRuleConditionsSchema = object({
17275
17276
  /** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
17276
17277
  * carrying a matching `data.eventType` string pass this condition. Rules without this field are
17277
17278
  * unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
17278
- eventTypeTokens: array(string()).readonly().optional()
17279
+ eventTypeTokens: array(string()).readonly().optional(),
17280
+ /** Match detections whose CLIP image embedding is semantically similar to this free-text
17281
+ * description. Requires the embedding-encoder cap to have pre-warmed the text vector.
17282
+ * `minSimilarity` is the cosine similarity threshold in [0, 1]. */
17283
+ clipDescription: object({
17284
+ text: string().min(1),
17285
+ minSimilarity: number().min(0).max(1)
17286
+ }).optional()
17279
17287
  });
17280
17288
  var NotificationRuleTemplateSchema = object({
17281
17289
  title: string(),
@@ -17517,6 +17525,16 @@ var TrackedDetectionSchema = object({
17517
17525
  zones: array(string()).readonly(),
17518
17526
  state: TrackStateSchema
17519
17527
  });
17528
+ var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
17529
+ var SearchObjectEventsInput = object({
17530
+ text: string(),
17531
+ deviceId: number().optional(),
17532
+ since: number().optional(),
17533
+ until: number().optional(),
17534
+ classFilter: string().optional(),
17535
+ limit: number().default(50),
17536
+ minScore: number().min(0).max(1).default(.2)
17537
+ });
17520
17538
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
17521
17539
  deviceId: number(),
17522
17540
  trackId: string()
@@ -17551,7 +17569,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17551
17569
  }), method(object({
17552
17570
  eventId: string(),
17553
17571
  kind: MediaFileKindEnum.optional()
17554
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
17572
+ }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
17555
17573
  deviceId: number(),
17556
17574
  timestamp: number(),
17557
17575
  frameWidth: number(),
@@ -22530,6 +22548,12 @@ Object.freeze({
22530
22548
  addonId: null,
22531
22549
  access: "create"
22532
22550
  },
22551
+ "pipelineAnalytics.searchObjectEvents": {
22552
+ capName: "pipeline-analytics",
22553
+ capScope: "device",
22554
+ addonId: null,
22555
+ access: "view"
22556
+ },
22533
22557
  "pipelineExecutor.cacheFrameInPool": {
22534
22558
  capName: "pipeline-executor",
22535
22559
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",