@camstack/addon-cloudflare 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/{dist-BWhDlowl.mjs → dist-BT1qVgA6.mjs} +28 -4
- package/dist/{dist-U7DGFcdV.js → dist-DIuCey2a.js} +28 -4
- package/dist/tunnel/cloudflare-tunnel.addon.js +1 -1
- package/dist/tunnel/cloudflare-tunnel.addon.mjs +1 -1
- package/dist/turn/cloudflare-turn.addon.js +1 -1
- package/dist/turn/cloudflare-turn.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4627
|
return inst;
|
|
4628
4628
|
}
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/sleep-
|
|
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";
|
|
@@ -12676,7 +12676,8 @@ method(object({
|
|
|
12676
12676
|
sessionId: string().optional()
|
|
12677
12677
|
}), ConvertResultSchema, {
|
|
12678
12678
|
kind: "mutation",
|
|
12679
|
-
auth: "admin"
|
|
12679
|
+
auth: "admin",
|
|
12680
|
+
timeoutMs: 6e5
|
|
12680
12681
|
});
|
|
12681
12682
|
var AddonHttpRouteSchema = object({
|
|
12682
12683
|
method: _enum([
|
|
@@ -14252,7 +14253,14 @@ var NotificationRuleConditionsSchema = object({
|
|
|
14252
14253
|
/** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
|
|
14253
14254
|
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
14254
14255
|
* unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
|
|
14255
|
-
eventTypeTokens: array(string()).readonly().optional()
|
|
14256
|
+
eventTypeTokens: array(string()).readonly().optional(),
|
|
14257
|
+
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
14258
|
+
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
14259
|
+
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
14260
|
+
clipDescription: object({
|
|
14261
|
+
text: string().min(1),
|
|
14262
|
+
minSimilarity: number().min(0).max(1)
|
|
14263
|
+
}).optional()
|
|
14256
14264
|
});
|
|
14257
14265
|
var NotificationRuleTemplateSchema = object({
|
|
14258
14266
|
title: string(),
|
|
@@ -14494,6 +14502,16 @@ var TrackedDetectionSchema = object({
|
|
|
14494
14502
|
zones: array(string()).readonly(),
|
|
14495
14503
|
state: TrackStateSchema
|
|
14496
14504
|
});
|
|
14505
|
+
var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
|
|
14506
|
+
var SearchObjectEventsInput = object({
|
|
14507
|
+
text: string(),
|
|
14508
|
+
deviceId: number().optional(),
|
|
14509
|
+
since: number().optional(),
|
|
14510
|
+
until: number().optional(),
|
|
14511
|
+
classFilter: string().optional(),
|
|
14512
|
+
limit: number().default(50),
|
|
14513
|
+
minScore: number().min(0).max(1).default(.2)
|
|
14514
|
+
});
|
|
14497
14515
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
14498
14516
|
deviceId: number(),
|
|
14499
14517
|
trackId: string()
|
|
@@ -14528,7 +14546,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
14528
14546
|
}), method(object({
|
|
14529
14547
|
eventId: string(),
|
|
14530
14548
|
kind: MediaFileKindEnum.optional()
|
|
14531
|
-
}), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
|
|
14549
|
+
}), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
|
|
14532
14550
|
deviceId: number(),
|
|
14533
14551
|
timestamp: number(),
|
|
14534
14552
|
frameWidth: number(),
|
|
@@ -19178,6 +19196,12 @@ Object.freeze({
|
|
|
19178
19196
|
addonId: null,
|
|
19179
19197
|
access: "create"
|
|
19180
19198
|
},
|
|
19199
|
+
"pipelineAnalytics.searchObjectEvents": {
|
|
19200
|
+
capName: "pipeline-analytics",
|
|
19201
|
+
capScope: "device",
|
|
19202
|
+
addonId: null,
|
|
19203
|
+
access: "view"
|
|
19204
|
+
},
|
|
19181
19205
|
"pipelineExecutor.cacheFrameInPool": {
|
|
19182
19206
|
capName: "pipeline-executor",
|
|
19183
19207
|
capScope: "system",
|
|
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4627
|
return inst;
|
|
4628
4628
|
}
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/sleep-
|
|
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";
|
|
@@ -12676,7 +12676,8 @@ method(object({
|
|
|
12676
12676
|
sessionId: string().optional()
|
|
12677
12677
|
}), ConvertResultSchema, {
|
|
12678
12678
|
kind: "mutation",
|
|
12679
|
-
auth: "admin"
|
|
12679
|
+
auth: "admin",
|
|
12680
|
+
timeoutMs: 6e5
|
|
12680
12681
|
});
|
|
12681
12682
|
var AddonHttpRouteSchema = object({
|
|
12682
12683
|
method: _enum([
|
|
@@ -14252,7 +14253,14 @@ var NotificationRuleConditionsSchema = object({
|
|
|
14252
14253
|
/** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
|
|
14253
14254
|
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
14254
14255
|
* unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
|
|
14255
|
-
eventTypeTokens: array(string()).readonly().optional()
|
|
14256
|
+
eventTypeTokens: array(string()).readonly().optional(),
|
|
14257
|
+
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
14258
|
+
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
14259
|
+
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
14260
|
+
clipDescription: object({
|
|
14261
|
+
text: string().min(1),
|
|
14262
|
+
minSimilarity: number().min(0).max(1)
|
|
14263
|
+
}).optional()
|
|
14256
14264
|
});
|
|
14257
14265
|
var NotificationRuleTemplateSchema = object({
|
|
14258
14266
|
title: string(),
|
|
@@ -14494,6 +14502,16 @@ var TrackedDetectionSchema = object({
|
|
|
14494
14502
|
zones: array(string()).readonly(),
|
|
14495
14503
|
state: TrackStateSchema
|
|
14496
14504
|
});
|
|
14505
|
+
var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: number() });
|
|
14506
|
+
var SearchObjectEventsInput = object({
|
|
14507
|
+
text: string(),
|
|
14508
|
+
deviceId: number().optional(),
|
|
14509
|
+
since: number().optional(),
|
|
14510
|
+
until: number().optional(),
|
|
14511
|
+
classFilter: string().optional(),
|
|
14512
|
+
limit: number().default(50),
|
|
14513
|
+
minScore: number().min(0).max(1).default(.2)
|
|
14514
|
+
});
|
|
14497
14515
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
14498
14516
|
deviceId: number(),
|
|
14499
14517
|
trackId: string()
|
|
@@ -14528,7 +14546,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
14528
14546
|
}), method(object({
|
|
14529
14547
|
eventId: string(),
|
|
14530
14548
|
kind: MediaFileKindEnum.optional()
|
|
14531
|
-
}), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), object({
|
|
14549
|
+
}), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), object({
|
|
14532
14550
|
deviceId: number(),
|
|
14533
14551
|
timestamp: number(),
|
|
14534
14552
|
frameWidth: number(),
|
|
@@ -19178,6 +19196,12 @@ Object.freeze({
|
|
|
19178
19196
|
addonId: null,
|
|
19179
19197
|
access: "create"
|
|
19180
19198
|
},
|
|
19199
|
+
"pipelineAnalytics.searchObjectEvents": {
|
|
19200
|
+
capName: "pipeline-analytics",
|
|
19201
|
+
capScope: "device",
|
|
19202
|
+
addonId: null,
|
|
19203
|
+
access: "view"
|
|
19204
|
+
},
|
|
19181
19205
|
"pipelineExecutor.cacheFrameInPool": {
|
|
19182
19206
|
capName: "pipeline-executor",
|
|
19183
19207
|
capScope: "system",
|
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_dist = require("../dist-
|
|
24
|
+
const require_dist = require("../dist-DIuCey2a.js");
|
|
25
25
|
let node_path = require("node:path");
|
|
26
26
|
node_path = __toESM(node_path);
|
|
27
27
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-
|
|
1
|
+
import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-BT1qVgA6.mjs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
2
|
+
const require_dist = require("../dist-DIuCey2a.js");
|
|
3
3
|
//#region src/turn/cloudflare-turn.ts
|
|
4
4
|
/**
|
|
5
5
|
* Cloudflare returns ICE servers in several flavours depending on which
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-
|
|
1
|
+
import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-BT1qVgA6.mjs";
|
|
2
2
|
//#region src/turn/cloudflare-turn.ts
|
|
3
3
|
/**
|
|
4
4
|
* Cloudflare returns ICE servers in several flavours depending on which
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-cloudflare",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|