@camstack/types 1.2.356 → 1.2.357
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 +4 -0
- package/dist/addon.mjs +4 -0
- package/dist/capabilities/battery.cap.d.ts +4 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
package/dist/addon.mjs
CHANGED
|
@@ -19,6 +19,7 @@ export declare const BatteryStatusSchema: z.ZodObject<{
|
|
|
19
19
|
sleeping: z.ZodBoolean;
|
|
20
20
|
lastUpdated: z.ZodNumber;
|
|
21
21
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
22
23
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
23
24
|
}, z.core.$strip>;
|
|
24
25
|
export type BatteryStatus = z.infer<typeof BatteryStatusSchema>;
|
|
@@ -89,6 +90,7 @@ export declare const batteryCapability: {
|
|
|
89
90
|
sleeping: z.ZodBoolean;
|
|
90
91
|
lastUpdated: z.ZodNumber;
|
|
91
92
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
92
94
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
93
95
|
}, z.core.$strip>;
|
|
94
96
|
}, z.core.$strip>;
|
|
@@ -106,6 +108,7 @@ export declare const batteryCapability: {
|
|
|
106
108
|
sleeping: z.ZodBoolean;
|
|
107
109
|
lastUpdated: z.ZodNumber;
|
|
108
110
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
109
112
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
110
113
|
}, z.core.$strip>;
|
|
111
114
|
readonly kind: 'push';
|
|
@@ -136,6 +139,7 @@ export declare const batteryCapability: {
|
|
|
136
139
|
sleeping: z.ZodBoolean;
|
|
137
140
|
lastUpdated: z.ZodNumber;
|
|
138
141
|
lastContactAt: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
lastFullRefreshAt: z.ZodOptional<z.ZodNumber>;
|
|
139
143
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
140
144
|
}, z.core.$strip>;
|
|
141
145
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps, 71 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 71 caps with 341 state leaves.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
package/dist/index.js
CHANGED
|
@@ -37086,6 +37086,17 @@ var BatteryStatusSchema = zod.z.object({
|
|
|
37086
37086
|
*/
|
|
37087
37087
|
lastContactAt: zod.z.number().optional(),
|
|
37088
37088
|
/**
|
|
37089
|
+
* Ms epoch of the last COMPLETE scheduled refresh — every fact the provider
|
|
37090
|
+
* holds for the device (level, charging, link, device info, state slices) and
|
|
37091
|
+
* its cached snapshot, read together. Absent = never since this slice was
|
|
37092
|
+
* born. Unlike `lastUpdated` (any write, even a push of one field) this is
|
|
37093
|
+
* the staleness an operator can trust: the provider owns the device fact and
|
|
37094
|
+
* so owns the window on its age (D224, D847). Not a clock in the
|
|
37095
|
+
* runtime-state-durability sense: it moves once per window and must survive
|
|
37096
|
+
* a restart, or every restart would owe the camera a wake.
|
|
37097
|
+
*/
|
|
37098
|
+
lastFullRefreshAt: zod.z.number().optional(),
|
|
37099
|
+
/**
|
|
37089
37100
|
* True when the source is a BINARY low-battery indicator (HA
|
|
37090
37101
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
37091
37102
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
package/dist/index.mjs
CHANGED
|
@@ -37085,6 +37085,17 @@ var BatteryStatusSchema = z.object({
|
|
|
37085
37085
|
*/
|
|
37086
37086
|
lastContactAt: z.number().optional(),
|
|
37087
37087
|
/**
|
|
37088
|
+
* Ms epoch of the last COMPLETE scheduled refresh — every fact the provider
|
|
37089
|
+
* holds for the device (level, charging, link, device info, state slices) and
|
|
37090
|
+
* its cached snapshot, read together. Absent = never since this slice was
|
|
37091
|
+
* born. Unlike `lastUpdated` (any write, even a push of one field) this is
|
|
37092
|
+
* the staleness an operator can trust: the provider owns the device fact and
|
|
37093
|
+
* so owns the window on its age (D224, D847). Not a clock in the
|
|
37094
|
+
* runtime-state-durability sense: it moves once per window and must survive
|
|
37095
|
+
* a restart, or every restart would owe the camera a wake.
|
|
37096
|
+
*/
|
|
37097
|
+
lastFullRefreshAt: z.number().optional(),
|
|
37098
|
+
/**
|
|
37088
37099
|
* True when the source is a BINARY low-battery indicator (HA
|
|
37089
37100
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
37090
37101
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|