@camstack/types 1.2.530 → 1.2.532
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/CHANGELOG.md +14 -0
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/calendar-source.cap.d.ts +2 -0
- package/dist/capabilities/calendars.cap.d.ts +2 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/integration-instances.cap.d.ts +3 -0
- package/dist/capabilities/integrations.cap.d.ts +3 -28
- package/dist/capabilities/remote-layout-components.cap.d.ts +1 -0
- package/dist/capabilities/remote.cap.d.ts +11 -29
- package/dist/client.js +0 -1
- package/dist/client.mjs +0 -1
- package/dist/generated/addon-api.d.ts +0 -7
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +53 -64
- package/dist/index.mjs +54 -61
- package/dist/interfaces/addon.d.ts +1 -1
- package/dist/interfaces/storage-location.d.ts +0 -15
- package/dist/remote/remote-components.d.ts +2 -0
- package/dist/remote/remote-config.d.ts +3 -13
- package/dist/remote/remote-layout-ops.d.ts +6 -0
- package/dist/remote/remote-sources.d.ts +2 -2
- package/dist/remote/smartir-draft.d.ts +1 -4
- package/dist/{sleep-CfYvHNFz.mjs → sleep-CS5Xp1iQ.mjs} +2 -1
- package/dist/{sleep-CqsZMKxq.js → sleep-ComzlWyT.js} +2 -1
- package/package.json +1 -1
|
@@ -1062,7 +1062,7 @@ export interface AddonDeclaration {
|
|
|
1062
1062
|
* adding/discovering the first device. No config step, no config
|
|
1063
1063
|
* button on the detail page. (Reolink/ONVIF/Ecowitt/Gree.)
|
|
1064
1064
|
* - `'account'` — account/connection config; wizard shows the config
|
|
1065
|
-
* step, then `
|
|
1065
|
+
* step, then `integrationInstances.createInstance` with those settings.
|
|
1066
1066
|
* (Dreo/Wyze/Dreame.)
|
|
1067
1067
|
* - `'broker'` — the shared-bus/session broker step. (HomeAssistant/MQTT.)
|
|
1068
1068
|
* Optional/transitional: when absent, `getAvailableTypes` DERIVES the mode
|
|
@@ -69,21 +69,6 @@ export declare const StorageLocationSchema: z.ZodObject<{
|
|
|
69
69
|
updatedAt: z.ZodNumber;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
export type StorageLocation = z.infer<typeof StorageLocationSchema>;
|
|
72
|
-
/**
|
|
73
|
-
* The retired `isDefault` key, DECLARED rather than dropped.
|
|
74
|
-
*
|
|
75
|
-
* A key removed from a non-strict `z.object` is stripped in silence (D380,
|
|
76
|
-
* D381): a reader that still needs the old value gets `undefined` and cannot
|
|
77
|
-
* tell "absent" from "never sent". The one reader that legitimately needs it —
|
|
78
|
-
* the location store's boot migration, which turns the old default flag into
|
|
79
|
-
* the `enabled` write set — parses THIS schema against the raw row instead, so
|
|
80
|
-
* the migration is explicit and the live schema stays clean. Nothing else in
|
|
81
|
-
* the repo may read it; `scripts/check-no-storage-default.ts` enforces that.
|
|
82
|
-
*/
|
|
83
|
-
export declare const LegacyStorageLocationDefaultSchema: z.ZodObject<{
|
|
84
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
export type LegacyStorageLocationDefault = z.infer<typeof LegacyStorageLocationDefaultSchema>;
|
|
87
72
|
/**
|
|
88
73
|
* Is this location a write target?
|
|
89
74
|
*
|
|
@@ -44,6 +44,7 @@ export declare const RemoteComponentButtonSchema: z.ZodObject<{
|
|
|
44
44
|
red: "red";
|
|
45
45
|
yellow: "yellow";
|
|
46
46
|
}>>;
|
|
47
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
47
48
|
}, z.core.$strip>;
|
|
48
49
|
export type RemoteComponentButton = z.infer<typeof RemoteComponentButtonSchema>;
|
|
49
50
|
export declare const RemoteLayoutComponentSchema: z.ZodObject<{
|
|
@@ -104,6 +105,7 @@ export declare const RemoteLayoutComponentSchema: z.ZodObject<{
|
|
|
104
105
|
red: "red";
|
|
105
106
|
yellow: "yellow";
|
|
106
107
|
}>>;
|
|
108
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
107
109
|
}, z.core.$strip>>;
|
|
108
110
|
}, z.core.$strip>;
|
|
109
111
|
export type RemoteLayoutComponent = z.infer<typeof RemoteLayoutComponentSchema>;
|
|
@@ -35,12 +35,6 @@ export declare const RemoteCustomButtonSchema: z.ZodObject<{
|
|
|
35
35
|
name: z.ZodString;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
export type RemoteCustomButton = z.infer<typeof RemoteCustomButtonSchema>;
|
|
38
|
-
export declare const REMOTE_POWER_MODES: readonly ['toggle', 'discrete'];
|
|
39
|
-
export declare const RemotePowerModeSchema: z.ZodEnum<{
|
|
40
|
-
discrete: "discrete";
|
|
41
|
-
toggle: "toggle";
|
|
42
|
-
}>;
|
|
43
|
-
export type RemotePowerMode = z.infer<typeof RemotePowerModeSchema>;
|
|
44
38
|
export declare const MAX_REMOTE_BINDINGS = 200;
|
|
45
39
|
export declare const MAX_REMOTE_CUSTOM_BUTTONS = 100;
|
|
46
40
|
/** A stored source that was left out of a read, and why (the UI shows it). */
|
|
@@ -82,7 +76,7 @@ export declare const RemoteConfigSchema: z.ZodObject<{
|
|
|
82
76
|
id: z.ZodString;
|
|
83
77
|
name: z.ZodString;
|
|
84
78
|
kind: z.ZodLiteral<"ir">;
|
|
85
|
-
transmitterId: z.ZodNumber
|
|
79
|
+
transmitterId: z.ZodOptional<z.ZodNumber>;
|
|
86
80
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
87
81
|
kind: z.ZodLiteral<"raw">;
|
|
88
82
|
timings: z.ZodArray<z.ZodNumber>;
|
|
@@ -98,12 +92,6 @@ export declare const RemoteConfigSchema: z.ZodObject<{
|
|
|
98
92
|
}, z.core.$strip>], "kind">;
|
|
99
93
|
}, z.core.$strip>], "kind">>>;
|
|
100
94
|
stepDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
101
|
-
power: z.ZodObject<{
|
|
102
|
-
mode: z.ZodEnum<{
|
|
103
|
-
discrete: "discrete";
|
|
104
|
-
toggle: "toggle";
|
|
105
|
-
}>;
|
|
106
|
-
}, z.core.$strip>;
|
|
107
95
|
refusedSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
96
|
index: z.ZodNumber;
|
|
109
97
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -213,6 +201,7 @@ export declare const RemoteLayoutButtonSchema: z.ZodObject<{
|
|
|
213
201
|
red: "red";
|
|
214
202
|
yellow: "yellow";
|
|
215
203
|
}>>;
|
|
204
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
216
205
|
groupId: z.ZodOptional<z.ZodString>;
|
|
217
206
|
}, z.core.$strip>;
|
|
218
207
|
export type RemoteLayoutButton = z.infer<typeof RemoteLayoutButtonSchema>;
|
|
@@ -280,6 +269,7 @@ export declare const RemoteLayoutPayloadSchema: z.ZodObject<{
|
|
|
280
269
|
red: "red";
|
|
281
270
|
yellow: "yellow";
|
|
282
271
|
}>>;
|
|
272
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
283
273
|
groupId: z.ZodOptional<z.ZodString>;
|
|
284
274
|
}, z.core.$strip>>;
|
|
285
275
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -38,6 +38,12 @@ export interface InsertOptions {
|
|
|
38
38
|
readonly extras?: readonly ComponentButtonSpec[];
|
|
39
39
|
/** Replaces the component's own frame title ("Section" -> "Volume"). */
|
|
40
40
|
readonly title?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Legends printed on a component's keys, by button `idSuffix`: the label
|
|
43
|
+
* changes and the key shows it even on a colour tone (Samsung's A B C D on
|
|
44
|
+
* the red / green / yellow / blue keys).
|
|
45
|
+
*/
|
|
46
|
+
readonly legends?: Readonly<Record<string, string>>;
|
|
41
47
|
}
|
|
42
48
|
/** The columns a component must be scaled by to span the whole grid width, or null when it does not divide. */
|
|
43
49
|
export declare function fillWidthScale(layout: RemoteLayoutPayload, component: RemoteLayoutComponent): number | null;
|
|
@@ -44,7 +44,7 @@ export declare const RemoteIrSourceSchema: z.ZodObject<{
|
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
name: z.ZodString;
|
|
46
46
|
kind: z.ZodLiteral<"ir">;
|
|
47
|
-
transmitterId: z.ZodNumber
|
|
47
|
+
transmitterId: z.ZodOptional<z.ZodNumber>;
|
|
48
48
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
49
|
kind: z.ZodLiteral<"raw">;
|
|
50
50
|
timings: z.ZodArray<z.ZodNumber>;
|
|
@@ -74,7 +74,7 @@ export declare const RemoteSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
74
74
|
id: z.ZodString;
|
|
75
75
|
name: z.ZodString;
|
|
76
76
|
kind: z.ZodLiteral<"ir">;
|
|
77
|
-
transmitterId: z.ZodNumber
|
|
77
|
+
transmitterId: z.ZodOptional<z.ZodNumber>;
|
|
78
78
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
79
|
kind: z.ZodLiteral<"raw">;
|
|
80
80
|
timings: z.ZodArray<z.ZodNumber>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RemoteCommandTable } from '../ir/smartir.js';
|
|
2
|
-
import type { RemoteBinding, RemoteCustomButton
|
|
2
|
+
import type { RemoteBinding, RemoteCustomButton } from './remote-config.js';
|
|
3
3
|
/** The transmitter that sends a draft's codes unless a command names its own. */
|
|
4
4
|
export interface SmartIrTarget {
|
|
5
5
|
readonly transmitterDeviceId: number;
|
|
@@ -15,9 +15,6 @@ export interface SmartIrDraftOptions {
|
|
|
15
15
|
export interface SmartIrDraft {
|
|
16
16
|
readonly bindings: Record<string, RemoteBinding>;
|
|
17
17
|
readonly customButtons: RemoteCustomButton[];
|
|
18
|
-
readonly power: {
|
|
19
|
-
readonly mode: RemotePowerMode;
|
|
20
|
-
};
|
|
21
18
|
readonly skipped: SmartIrSkipped[];
|
|
22
19
|
}
|
|
23
20
|
/**
|
|
@@ -12755,7 +12755,8 @@ var CALLER_STAMPED_CAPABILITIES = [
|
|
|
12755
12755
|
"device-manager",
|
|
12756
12756
|
"core-blocks",
|
|
12757
12757
|
"migrations",
|
|
12758
|
-
"device-transitions"
|
|
12758
|
+
"device-transitions",
|
|
12759
|
+
"integration-instances"
|
|
12759
12760
|
];
|
|
12760
12761
|
/** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
|
|
12761
12762
|
function withoutCallerStamp(input) {
|
|
@@ -12755,7 +12755,8 @@ var CALLER_STAMPED_CAPABILITIES = [
|
|
|
12755
12755
|
"device-manager",
|
|
12756
12756
|
"core-blocks",
|
|
12757
12757
|
"migrations",
|
|
12758
|
-
"device-transitions"
|
|
12758
|
+
"device-transitions",
|
|
12759
|
+
"integration-instances"
|
|
12759
12760
|
];
|
|
12760
12761
|
/** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
|
|
12761
12762
|
function withoutCallerStamp(input) {
|