@camstack/types 1.2.248 → 1.2.250
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +1224 -11
- package/dist/capabilities/osd-manager.cap.d.ts +24 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1047 -24
- package/dist/index.mjs +1033 -25
- package/dist/notification/template-vars.d.ts +24 -0
- package/dist/{sleep-9gM_dS-5.js → sleep-CvwUEq16.js} +2 -0
- package/dist/{sleep-PEo0-Fz9.mjs → sleep-pM_J7YnY.mjs} +2 -0
- package/package.json +1 -1
|
@@ -168,6 +168,10 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
168
168
|
"alarm-disarmed": "alarm-disarmed";
|
|
169
169
|
"alarm-arming": "alarm-arming";
|
|
170
170
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
171
|
+
"alarm-pending": "alarm-pending";
|
|
172
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
173
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
174
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
171
175
|
"addon-updated": "addon-updated";
|
|
172
176
|
"server-updated": "server-updated";
|
|
173
177
|
"export-completed": "export-completed";
|
|
@@ -339,6 +343,10 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
339
343
|
"alarm-disarmed": "alarm-disarmed";
|
|
340
344
|
"alarm-arming": "alarm-arming";
|
|
341
345
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
346
|
+
"alarm-pending": "alarm-pending";
|
|
347
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
348
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
349
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
342
350
|
"addon-updated": "addon-updated";
|
|
343
351
|
"server-updated": "server-updated";
|
|
344
352
|
"export-completed": "export-completed";
|
|
@@ -582,6 +590,10 @@ export declare const osdManagerCapability: {
|
|
|
582
590
|
"alarm-disarmed": "alarm-disarmed";
|
|
583
591
|
"alarm-arming": "alarm-arming";
|
|
584
592
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
593
|
+
"alarm-pending": "alarm-pending";
|
|
594
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
595
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
596
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
585
597
|
"addon-updated": "addon-updated";
|
|
586
598
|
"server-updated": "server-updated";
|
|
587
599
|
"export-completed": "export-completed";
|
|
@@ -842,6 +854,10 @@ export declare const osdManagerCapability: {
|
|
|
842
854
|
"alarm-disarmed": "alarm-disarmed";
|
|
843
855
|
"alarm-arming": "alarm-arming";
|
|
844
856
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
857
|
+
"alarm-pending": "alarm-pending";
|
|
858
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
859
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
860
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
845
861
|
"addon-updated": "addon-updated";
|
|
846
862
|
"server-updated": "server-updated";
|
|
847
863
|
"export-completed": "export-completed";
|
|
@@ -1012,6 +1028,10 @@ export declare const osdManagerCapability: {
|
|
|
1012
1028
|
"alarm-disarmed": "alarm-disarmed";
|
|
1013
1029
|
"alarm-arming": "alarm-arming";
|
|
1014
1030
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
1031
|
+
"alarm-pending": "alarm-pending";
|
|
1032
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
1033
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
1034
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1015
1035
|
"addon-updated": "addon-updated";
|
|
1016
1036
|
"server-updated": "server-updated";
|
|
1017
1037
|
"export-completed": "export-completed";
|
|
@@ -1214,6 +1234,10 @@ export declare const osdManagerCapability: {
|
|
|
1214
1234
|
"alarm-disarmed": "alarm-disarmed";
|
|
1215
1235
|
"alarm-arming": "alarm-arming";
|
|
1216
1236
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
1237
|
+
"alarm-pending": "alarm-pending";
|
|
1238
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
1239
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
1240
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1217
1241
|
"addon-updated": "addon-updated";
|
|
1218
1242
|
"server-updated": "server-updated";
|
|
1219
1243
|
"export-completed": "export-completed";
|
|
@@ -4875,6 +4875,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4875
4875
|
output: z.infer<typeof notificationRulesCapability.methods.getConditionCatalog.output>;
|
|
4876
4876
|
meta: object;
|
|
4877
4877
|
}>;
|
|
4878
|
+
getTemplateCatalog: TRPCQueryProcedure<{
|
|
4879
|
+
input: {
|
|
4880
|
+
[x: string]: unknown;
|
|
4881
|
+
} & z.input<typeof notificationRulesCapability.methods.getTemplateCatalog.input>;
|
|
4882
|
+
output: z.infer<typeof notificationRulesCapability.methods.getTemplateCatalog.output>;
|
|
4883
|
+
meta: object;
|
|
4884
|
+
}>;
|
|
4885
|
+
previewTemplate: TRPCMutationProcedure<{
|
|
4886
|
+
input: {
|
|
4887
|
+
[x: string]: unknown;
|
|
4888
|
+
} & z.input<typeof notificationRulesCapability.methods.previewTemplate.input>;
|
|
4889
|
+
output: z.infer<typeof notificationRulesCapability.methods.previewTemplate.output>;
|
|
4890
|
+
meta: object;
|
|
4891
|
+
}>;
|
|
4878
4892
|
getHistory: TRPCQueryProcedure<{
|
|
4879
4893
|
input: {
|
|
4880
4894
|
[x: string]: unknown;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1172 method paths across 160 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
package/dist/index.d.ts
CHANGED
|
@@ -228,6 +228,7 @@ export { type PreparedAction, type PreparedAttachment, type PreparedNotification
|
|
|
228
228
|
export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
|
|
229
229
|
export { conditionExclusionReason, conditionVisibleForKind, defaultDeliveryForSection, droppedConditionsForKind, isAudioRule, isOccupancyRule, isSystemDelivery, NC_AUDIO_SEED, NC_OCCUPANCY_DEFAULTS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SYSTEM_DELIVERY, type NcDroppedCondition, type NcKindVisibilitySubject, type NcRuleEditorSection, type NcRuleEditorSectionKey, type NcRuleKind, type NcRuleKindSpec, type NcRuleOwningSectionKey, type NcRuleSection, type NcRuleSectionKey, type NcRuleSectionSubject, type NcRuleSeed, parseRuleSection, ruleEditorSectionsForKind, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, } from './notification/rule-kinds.js';
|
|
230
230
|
export { isScheduleActive } from './notification/schedule.js';
|
|
231
|
+
export { NC_TEMPLATE_VARS, isKnownTemplateVar, templateVarsFor, } from './notification/template-vars.js';
|
|
231
232
|
export { NC_SYSTEM_EVENT_FILTER_KEYS, type NcSystemEventFilterKey, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, } from './notification/system-event-filters.js';
|
|
232
233
|
export type { TimelapseCadencePair, TimelapsePreviewMode, TimelapseRule, TimelapseRuleInput, TimelapseRulePatch, TimelapseTemplate, } from './notification/timelapse-rule.js';
|
|
233
234
|
export { assertTimelapseCadences, DEFAULT_TIMELAPSE_PREVIEW_TEXT, readTimelapseGeneratedAt, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, } from './notification/timelapse-rule.js';
|