@camstack/addon-provider-rtsp 1.1.4 → 1.1.6

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
@@ -4642,7 +4642,7 @@ function preprocess(fn, schema) {
4642
4642
  });
4643
4643
  }
4644
4644
  //#endregion
4645
- //#region ../types/dist/sleep-_J5S7OEP.mjs
4645
+ //#region ../types/dist/sleep-NOH4yRwj.mjs
4646
4646
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4647
4647
  EventCategory["SystemBoot"] = "system.boot";
4648
4648
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -15470,7 +15470,8 @@ method(object({
15470
15470
  sessionId: string().optional()
15471
15471
  }), ConvertResultSchema, {
15472
15472
  kind: "mutation",
15473
- auth: "admin"
15473
+ auth: "admin",
15474
+ timeoutMs: 6e5
15474
15475
  });
15475
15476
  var AddonHttpRouteSchema = object({
15476
15477
  method: _enum([
@@ -17049,7 +17050,14 @@ var NotificationRuleConditionsSchema = object({
17049
17050
  /** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
17050
17051
  * carrying a matching `data.eventType` string pass this condition. Rules without this field are
17051
17052
  * unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
17052
- eventTypeTokens: array(string()).readonly().optional()
17053
+ eventTypeTokens: array(string()).readonly().optional(),
17054
+ /** Match detections whose CLIP image embedding is semantically similar to this free-text
17055
+ * description. Requires the embedding-encoder cap to have pre-warmed the text vector.
17056
+ * `minSimilarity` is the cosine similarity threshold in [0, 1]. */
17057
+ clipDescription: object({
17058
+ text: string().min(1),
17059
+ minSimilarity: number().min(0).max(1)
17060
+ }).optional()
17053
17061
  });
17054
17062
  var NotificationRuleTemplateSchema = object({
17055
17063
  title: string(),
@@ -17291,6 +17299,16 @@ var TrackedDetectionSchema = object({
17291
17299
  zones: array(string()).readonly(),
17292
17300
  state: TrackStateSchema
17293
17301
  });
17302
+ var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
17303
+ var SearchObjectEventsInput = object({
17304
+ text: string(),
17305
+ deviceId: number().optional(),
17306
+ since: number().optional(),
17307
+ until: number().optional(),
17308
+ classFilter: string().optional(),
17309
+ limit: number().default(50),
17310
+ minScore: number().min(0).max(1).default(.2)
17311
+ });
17294
17312
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
17295
17313
  deviceId: number(),
17296
17314
  trackId: string()
@@ -17325,7 +17343,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17325
17343
  }), method(object({
17326
17344
  eventId: string(),
17327
17345
  kind: MediaFileKindEnum.optional()
17328
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
17346
+ }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
17329
17347
  deviceId: number(),
17330
17348
  timestamp: number(),
17331
17349
  frameWidth: number(),
@@ -21988,6 +22006,12 @@ Object.freeze({
21988
22006
  addonId: null,
21989
22007
  access: "create"
21990
22008
  },
22009
+ "pipelineAnalytics.searchObjectEvents": {
22010
+ capName: "pipeline-analytics",
22011
+ capScope: "device",
22012
+ addonId: null,
22013
+ access: "view"
22014
+ },
21991
22015
  "pipelineExecutor.cacheFrameInPool": {
21992
22016
  capName: "pipeline-executor",
21993
22017
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -4641,7 +4641,7 @@ function preprocess(fn, schema) {
4641
4641
  });
4642
4642
  }
4643
4643
  //#endregion
4644
- //#region ../types/dist/sleep-_J5S7OEP.mjs
4644
+ //#region ../types/dist/sleep-NOH4yRwj.mjs
4645
4645
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4646
4646
  EventCategory["SystemBoot"] = "system.boot";
4647
4647
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -15469,7 +15469,8 @@ method(object({
15469
15469
  sessionId: string().optional()
15470
15470
  }), ConvertResultSchema, {
15471
15471
  kind: "mutation",
15472
- auth: "admin"
15472
+ auth: "admin",
15473
+ timeoutMs: 6e5
15473
15474
  });
15474
15475
  var AddonHttpRouteSchema = object({
15475
15476
  method: _enum([
@@ -17048,7 +17049,14 @@ var NotificationRuleConditionsSchema = object({
17048
17049
  /** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
17049
17050
  * carrying a matching `data.eventType` string pass this condition. Rules without this field are
17050
17051
  * unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
17051
- eventTypeTokens: array(string()).readonly().optional()
17052
+ eventTypeTokens: array(string()).readonly().optional(),
17053
+ /** Match detections whose CLIP image embedding is semantically similar to this free-text
17054
+ * description. Requires the embedding-encoder cap to have pre-warmed the text vector.
17055
+ * `minSimilarity` is the cosine similarity threshold in [0, 1]. */
17056
+ clipDescription: object({
17057
+ text: string().min(1),
17058
+ minSimilarity: number().min(0).max(1)
17059
+ }).optional()
17052
17060
  });
17053
17061
  var NotificationRuleTemplateSchema = object({
17054
17062
  title: string(),
@@ -17290,6 +17298,16 @@ var TrackedDetectionSchema = object({
17290
17298
  zones: array(string()).readonly(),
17291
17299
  state: TrackStateSchema
17292
17300
  });
17301
+ var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
17302
+ var SearchObjectEventsInput = object({
17303
+ text: string(),
17304
+ deviceId: number().optional(),
17305
+ since: number().optional(),
17306
+ until: number().optional(),
17307
+ classFilter: string().optional(),
17308
+ limit: number().default(50),
17309
+ minScore: number().min(0).max(1).default(.2)
17310
+ });
17293
17311
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
17294
17312
  deviceId: number(),
17295
17313
  trackId: string()
@@ -17324,7 +17342,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17324
17342
  }), method(object({
17325
17343
  eventId: string(),
17326
17344
  kind: MediaFileKindEnum.optional()
17327
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
17345
+ }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
17328
17346
  deviceId: number(),
17329
17347
  timestamp: number(),
17330
17348
  frameWidth: number(),
@@ -21987,6 +22005,12 @@ Object.freeze({
21987
22005
  addonId: null,
21988
22006
  access: "create"
21989
22007
  },
22008
+ "pipelineAnalytics.searchObjectEvents": {
22009
+ capName: "pipeline-analytics",
22010
+ capScope: "device",
22011
+ addonId: null,
22012
+ access: "view"
22013
+ },
21990
22014
  "pipelineExecutor.cacheFrameInPool": {
21991
22015
  capName: "pipeline-executor",
21992
22016
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",