@camstack/addon-static-turn 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.
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
4628
4628
  return inst;
4629
4629
  }
4630
4630
  //#endregion
4631
- //#region ../types/dist/sleep-_J5S7OEP.mjs
4631
+ //#region ../types/dist/sleep-NOH4yRwj.mjs
4632
4632
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4633
4633
  EventCategory["SystemBoot"] = "system.boot";
4634
4634
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -12656,7 +12656,8 @@ method(object({
12656
12656
  sessionId: string().optional()
12657
12657
  }), ConvertResultSchema, {
12658
12658
  kind: "mutation",
12659
- auth: "admin"
12659
+ auth: "admin",
12660
+ timeoutMs: 6e5
12660
12661
  });
12661
12662
  var AddonHttpRouteSchema = object({
12662
12663
  method: _enum([
@@ -14215,7 +14216,14 @@ var NotificationRuleConditionsSchema = object({
14215
14216
  /** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
14216
14217
  * carrying a matching `data.eventType` string pass this condition. Rules without this field are
14217
14218
  * unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
14218
- eventTypeTokens: array(string()).readonly().optional()
14219
+ eventTypeTokens: array(string()).readonly().optional(),
14220
+ /** Match detections whose CLIP image embedding is semantically similar to this free-text
14221
+ * description. Requires the embedding-encoder cap to have pre-warmed the text vector.
14222
+ * `minSimilarity` is the cosine similarity threshold in [0, 1]. */
14223
+ clipDescription: object({
14224
+ text: string().min(1),
14225
+ minSimilarity: number().min(0).max(1)
14226
+ }).optional()
14219
14227
  });
14220
14228
  var NotificationRuleTemplateSchema = object({
14221
14229
  title: string(),
@@ -14457,6 +14465,16 @@ var TrackedDetectionSchema = object({
14457
14465
  zones: array(string()).readonly(),
14458
14466
  state: TrackStateSchema
14459
14467
  });
14468
+ var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
14469
+ var SearchObjectEventsInput = object({
14470
+ text: string(),
14471
+ deviceId: number().optional(),
14472
+ since: number().optional(),
14473
+ until: number().optional(),
14474
+ classFilter: string().optional(),
14475
+ limit: number().default(50),
14476
+ minScore: number().min(0).max(1).default(.2)
14477
+ });
14460
14478
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
14461
14479
  deviceId: number(),
14462
14480
  trackId: string()
@@ -14491,7 +14509,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
14491
14509
  }), method(object({
14492
14510
  eventId: string(),
14493
14511
  kind: MediaFileKindEnum.optional()
14494
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
14512
+ }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
14495
14513
  deviceId: number(),
14496
14514
  timestamp: number(),
14497
14515
  frameWidth: number(),
@@ -19141,6 +19159,12 @@ Object.freeze({
19141
19159
  addonId: null,
19142
19160
  access: "create"
19143
19161
  },
19162
+ "pipelineAnalytics.searchObjectEvents": {
19163
+ capName: "pipeline-analytics",
19164
+ capScope: "device",
19165
+ addonId: null,
19166
+ access: "view"
19167
+ },
19144
19168
  "pipelineExecutor.cacheFrameInPool": {
19145
19169
  capName: "pipeline-executor",
19146
19170
  capScope: "system",
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-_J5S7OEP.mjs
4630
+ //#region ../types/dist/sleep-NOH4yRwj.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -12655,7 +12655,8 @@ method(object({
12655
12655
  sessionId: string().optional()
12656
12656
  }), ConvertResultSchema, {
12657
12657
  kind: "mutation",
12658
- auth: "admin"
12658
+ auth: "admin",
12659
+ timeoutMs: 6e5
12659
12660
  });
12660
12661
  var AddonHttpRouteSchema = object({
12661
12662
  method: _enum([
@@ -14214,7 +14215,14 @@ var NotificationRuleConditionsSchema = object({
14214
14215
  /** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
14215
14216
  * carrying a matching `data.eventType` string pass this condition. Rules without this field are
14216
14217
  * unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
14217
- eventTypeTokens: array(string()).readonly().optional()
14218
+ eventTypeTokens: array(string()).readonly().optional(),
14219
+ /** Match detections whose CLIP image embedding is semantically similar to this free-text
14220
+ * description. Requires the embedding-encoder cap to have pre-warmed the text vector.
14221
+ * `minSimilarity` is the cosine similarity threshold in [0, 1]. */
14222
+ clipDescription: object({
14223
+ text: string().min(1),
14224
+ minSimilarity: number().min(0).max(1)
14225
+ }).optional()
14218
14226
  });
14219
14227
  var NotificationRuleTemplateSchema = object({
14220
14228
  title: string(),
@@ -14456,6 +14464,16 @@ var TrackedDetectionSchema = object({
14456
14464
  zones: array(string()).readonly(),
14457
14465
  state: TrackStateSchema
14458
14466
  });
14467
+ var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
14468
+ var SearchObjectEventsInput = object({
14469
+ text: string(),
14470
+ deviceId: number().optional(),
14471
+ since: number().optional(),
14472
+ until: number().optional(),
14473
+ classFilter: string().optional(),
14474
+ limit: number().default(50),
14475
+ minScore: number().min(0).max(1).default(.2)
14476
+ });
14459
14477
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
14460
14478
  deviceId: number(),
14461
14479
  trackId: string()
@@ -14490,7 +14508,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
14490
14508
  }), method(object({
14491
14509
  eventId: string(),
14492
14510
  kind: MediaFileKindEnum.optional()
14493
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
14511
+ }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
14494
14512
  deviceId: number(),
14495
14513
  timestamp: number(),
14496
14514
  frameWidth: number(),
@@ -19140,6 +19158,12 @@ Object.freeze({
19140
19158
  addonId: null,
19141
19159
  access: "create"
19142
19160
  },
19161
+ "pipelineAnalytics.searchObjectEvents": {
19162
+ capName: "pipeline-analytics",
19163
+ capScope: "device",
19164
+ addonId: null,
19165
+ access: "view"
19166
+ },
19143
19167
  "pipelineExecutor.cacheFrameInPool": {
19144
19168
  capName: "pipeline-executor",
19145
19169
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-static-turn",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Static / self-hosted (coturn) TURN provider for CamStack",
5
5
  "keywords": [
6
6
  "camstack",