@camstack/types 1.2.392 → 1.2.394
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/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +13 -0
- package/dist/capabilities/storage-admin.cap.d.ts +5 -34
- package/dist/client.d.ts +1 -1
- package/dist/client.js +190 -0
- package/dist/client.mjs +186 -1
- package/dist/generated/addon-api.d.ts +0 -7
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/geometry/subject-path.d.ts +104 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +224 -59
- package/dist/index.mjs +216 -58
- package/dist/notification/media-image.d.ts +8 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* one event and a boxed scene on the next depending on what had landed. The
|
|
8
8
|
* picture is now rendered at send time from a clean frame, and the rule says
|
|
9
9
|
* only what it wants to SEE: `image` (`scene-boxes` | `crop` | `clean` |
|
|
10
|
-
* `none`) plus `showTriggerZone
|
|
10
|
+
* `none`) plus `showTriggerZone` and `showSubjectPath` (D903).
|
|
11
11
|
*
|
|
12
12
|
* This module is the only reader of the legacy triple. The rule store applies
|
|
13
13
|
* {@link normalizeNcMediaPolicy} on load (a READ projection, like the retired
|
|
@@ -53,12 +53,19 @@ export interface NcMediaRuleSubject extends NcRuleSectionSubject {
|
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* The stored shape of a media policy: `image` set, the legacy triple gone.
|
|
56
|
+
* `showSubjectPath` survives on a kind with a tracked subject and a picture.
|
|
56
57
|
* `showTriggerZone` survives only where it can be drawn — a zone trigger and a
|
|
57
58
|
* mode other than `crop`/`none`; a legacy `zoneCrop` on a zone rule becomes it.
|
|
58
59
|
* Every other field (gif, clip, rolls, speed, profile, linked cameras) is
|
|
59
60
|
* carried through untouched. Pure; never throws.
|
|
60
61
|
*/
|
|
61
62
|
export declare function normalizeNcMediaPolicy(media: NcMediaPolicy, rule: NcMediaRuleSubject): NcMediaPolicy;
|
|
63
|
+
/**
|
|
64
|
+
* True when a rule of this kind has a TRACKED subject whose path can be drawn
|
|
65
|
+
* (`showSubjectPath`): the kinds whose subject owns a region of the frame. A
|
|
66
|
+
* sound owns none, and a kind that carries no media has no picture.
|
|
67
|
+
*/
|
|
68
|
+
export declare function subjectHasPath(kind: NcRuleKind): boolean;
|
|
62
69
|
/**
|
|
63
70
|
* Why a media policy cannot be SAVED on this rule, or null. Server-side and
|
|
64
71
|
* editor alike: `showTriggerZone` on a rule whose trigger is not a zone, and a
|