@camstack/types 1.1.8 → 1.1.10

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.
Files changed (32) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/addon-routes.cap.d.ts +4 -0
  4. package/dist/capabilities/addons.cap.d.ts +4 -0
  5. package/dist/capabilities/auth-provider.cap.d.ts +4 -0
  6. package/dist/capabilities/capability-definition.d.ts +59 -0
  7. package/dist/capabilities/climate-control.cap.d.ts +21 -0
  8. package/dist/capabilities/device-adoption.cap.d.ts +4 -0
  9. package/dist/capabilities/device-manager.cap.d.ts +4 -0
  10. package/dist/capabilities/index.d.ts +263 -265
  11. package/dist/capabilities/integrations.cap.d.ts +4 -0
  12. package/dist/capabilities/local-network.cap.d.ts +4 -0
  13. package/dist/capabilities/log-destination.cap.d.ts +4 -0
  14. package/dist/capabilities/network-quality.cap.d.ts +4 -0
  15. package/dist/capabilities/nodes.cap.d.ts +4 -0
  16. package/dist/capabilities/restreamer.cap.d.ts +4 -0
  17. package/dist/capabilities/snapshot-provider.cap.d.ts +4 -0
  18. package/dist/capabilities/streaming-engine.cap.d.ts +4 -0
  19. package/dist/capabilities/system.cap.d.ts +4 -0
  20. package/dist/capabilities/toast.cap.d.ts +4 -0
  21. package/dist/capabilities/webrtc-session.cap.d.ts +4 -0
  22. package/dist/capabilities/webrtc.cap.d.ts +4 -0
  23. package/dist/device/base-device.d.ts +8 -1
  24. package/dist/device/device-management.d.ts +8 -0
  25. package/dist/device/device-type.d.ts +19 -1
  26. package/dist/generated/addon-api.d.ts +12107 -12049
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/index.js +7296 -7186
  29. package/dist/index.mjs +7296 -7187
  30. package/dist/{sleep-DVmKHFGi.mjs → sleep-B3AOslwX.mjs} +33 -1
  31. package/dist/{sleep-Chb7wz4V.js → sleep-CKc4LLbD.js} +38 -0
  32. package/package.json +1 -1
@@ -188,6 +188,10 @@ export declare const integrationsCapability: {
188
188
  error: z.ZodOptional<z.ZodString>;
189
189
  }, z.core.$strip>, "mutation">;
190
190
  };
191
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
192
+ readonly mount: {
193
+ readonly kind: "service-backed";
194
+ };
191
195
  };
192
196
  export type IIntegrationsProvider = InferProvider<typeof integrationsCapability>;
193
197
  export { IntegrationWithStateSchema, IntegrationLiteSchema, AvailableIntegrationTypeSchema, TestConnectionResultSchema, CreateIntegrationInputSchema, UpdateIntegrationInputSchema, DeleteIntegrationResultSchema, };
@@ -208,6 +208,10 @@ export declare const localNetworkCapability: {
208
208
  addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
209
209
  }, z.core.$strip>, "mutation">;
210
210
  };
211
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
212
+ readonly mount: {
213
+ readonly kind: "hub-only";
214
+ };
211
215
  };
212
216
  export type ILocalNetworkProvider = InferProvider<typeof localNetworkCapability>;
213
217
  export type LocalInterface = z.infer<typeof LocalInterfaceSchema>;
@@ -64,6 +64,10 @@ export declare const logDestinationCapability: {
64
64
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
65
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
66
66
  };
67
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
68
+ readonly mount: {
69
+ readonly kind: "skip";
70
+ };
67
71
  };
68
72
  export type ILogDestinationProvider = InferProvider<typeof logDestinationCapability>;
69
73
  export { LogEntrySchema, LogLevelSchema };
@@ -94,6 +94,10 @@ export declare const networkQualityCapability: {
94
94
  packetLossPercent: z.ZodNumber;
95
95
  }, z.core.$strip>, z.ZodVoid, "mutation">;
96
96
  };
97
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
98
+ readonly mount: {
99
+ readonly kind: "service-backed";
100
+ };
97
101
  };
98
102
  export type INetworkQualityProvider = InferProvider<typeof networkQualityCapability>;
99
103
  export { StreamNetworkStatsSchema, ClientNetworkStatsSchema, DeviceNetworkStatsSchema };
@@ -260,6 +260,10 @@ export declare const nodesCapability: {
260
260
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
261
261
  }, z.core.$strip>, z.ZodUnknown, "mutation">;
262
262
  };
263
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
264
+ readonly mount: {
265
+ readonly kind: "service-backed";
266
+ };
263
267
  };
264
268
  export type INodesProvider = InferProvider<typeof nodesCapability>;
265
269
  export { TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, ClusterAddonStatusEntrySchema, ClusterAddonNodeDeploymentSchema, NodeAddonEntrySchema, };
@@ -45,6 +45,10 @@ export declare const restreamerCapability: {
45
45
  value: z.ZodString;
46
46
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
47
47
  };
48
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
49
+ readonly mount: {
50
+ readonly kind: "skip";
51
+ };
48
52
  };
49
53
  export type IRestreamerProvider = InferProvider<typeof restreamerCapability>;
50
54
  export { RegisteredStreamSchema, ExposedResourceSchema };
@@ -32,6 +32,10 @@ export declare const snapshotProviderCapability: {
32
32
  contentType: z.ZodString;
33
33
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
34
34
  };
35
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
36
+ readonly mount: {
37
+ readonly kind: "custom";
38
+ };
35
39
  };
36
40
  export type ISnapshotProvider = InferProvider<typeof snapshotProviderCapability> & {
37
41
  readonly id: string;
@@ -52,6 +52,10 @@ export declare const streamingEngineCapability: {
52
52
  active: z.ZodBoolean;
53
53
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
54
54
  };
55
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
56
+ readonly mount: {
57
+ readonly kind: "skip";
58
+ };
55
59
  };
56
60
  export type IStreamingEngineProvider = InferProvider<typeof streamingEngineCapability>;
57
61
  export { StreamFormatSchema, StreamInfoSchema };
@@ -80,6 +80,10 @@ export declare const systemCapability: {
80
80
  readonly setRetentionConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull, "mutation">;
81
81
  readonly forceRetentionCleanup: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
82
82
  };
83
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
84
+ readonly mount: {
85
+ readonly kind: "service-backed";
86
+ };
83
87
  };
84
88
  export type ISystemProvider = InferProvider<typeof systemCapability>;
85
89
  export { FeatureManifestSchema, HealthStatusSchema, NetworkAddressSchema };
@@ -50,6 +50,10 @@ export declare const toastCapability: {
50
50
  }, z.core.$strip>>;
51
51
  }, z.core.$strip>, "subscription">;
52
52
  };
53
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
54
+ readonly mount: {
55
+ readonly kind: "service-backed";
56
+ };
53
57
  };
54
58
  export type IToastProvider = InferProvider<typeof toastCapability>;
55
59
  export { ToastSchema };
@@ -340,5 +340,9 @@ export declare const webrtcSessionCapability: {
340
340
  }, z.core.$strip>>;
341
341
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
342
342
  };
343
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
344
+ readonly mount: {
345
+ readonly kind: "custom";
346
+ };
343
347
  };
344
348
  export type IWebrtcSessionProvider = InferProvider<typeof webrtcSessionCapability>;
@@ -67,5 +67,9 @@ export declare const webrtcCapability: {
67
67
  streamId: z.ZodString;
68
68
  }, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
69
69
  };
70
+ /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
71
+ readonly mount: {
72
+ readonly kind: "skip";
73
+ };
70
74
  };
71
75
  export type IWebrtcProvider = InferProvider<typeof webrtcCapability>;
@@ -236,7 +236,14 @@ export declare abstract class BaseDevice<T extends z.ZodObject<z.core.$ZodLooseS
236
236
  * is open (Reolink writes `hasPtz/hasIntercom`, Hikvision writes
237
237
  * `hasSupplementalLight/hasAlarmIo`, etc).
238
238
  *
239
- * Default: no-op (driver had no probe to run).
239
+ * Default: nothing to probe mark the device PROBED (set `lastProbedAt`) so
240
+ * the kernel treats it as ready immediately. A device that derives its shape
241
+ * from a spec (a container, or an accessory sensor) rather than from a
242
+ * hardware probe has no probe to "complete"; without stamping `lastProbedAt`
243
+ * it would look perpetually un-probed — logging "Initial probe did not
244
+ * complete" on every boot and spinning a pointless retry chain. Drivers that
245
+ * DO probe override this and write their own `feature-probe` slice (including
246
+ * `lastProbedAt`) once their probe actually succeeds.
240
247
  */
241
248
  onProbe(): Promise<void>;
242
249
  /**
@@ -140,6 +140,14 @@ export interface DeviceMeta {
140
140
  readonly addonId: string;
141
141
  readonly type: DeviceType;
142
142
  readonly name: string;
143
+ /** True once an operator has explicitly renamed this device via `setName`.
144
+ * Drives the reconcile name-precedence: when set, a re-registration PRESERVES
145
+ * the operator's name; when unset, the provider's fresh construction-time name
146
+ * wins (so an improved auto-name propagates instead of being frozen forever).
147
+ * Absent ⇒ treated as user-named (PRESERVE) for safety on legacy rows that
148
+ * predate this flag, so an operator's manual rename is never reset. New
149
+ * auto-derived children land with the flag unset and self-heal their names. */
150
+ readonly userNamed?: boolean;
143
151
  readonly location: string | null;
144
152
  readonly disabled: boolean;
145
153
  readonly parentDeviceId: number | null;
@@ -127,6 +127,12 @@ export declare enum DeviceFeature {
127
127
  ClimateFanMode = "climate-fan-mode",
128
128
  /** Thermostat exposes preset modes (eco / away / sleep / vendor). */
129
129
  ClimatePreset = "climate-preset",
130
+ /** Thermostat exposes a vertical louver swing toggle. Gates the
131
+ * vertical-swing switch in the climate UI. Independent of horizontal. */
132
+ ClimateSwingVertical = "climate-swing-vertical",
133
+ /** Thermostat exposes a horizontal louver swing toggle. Gates the
134
+ * horizontal-swing switch in the climate UI. Independent of vertical. */
135
+ ClimateSwingHorizontal = "climate-swing-horizontal",
130
136
  /** Cover exposes intermediate position control (0..100). Gates the
131
137
  * position slider UI. */
132
138
  CoverPositionable = "cover-positionable",
@@ -191,7 +197,19 @@ export declare enum DeviceFeature {
191
197
  ScriptVariables = "script-variables",
192
198
  /** Automation `trigger` accepts a skipCondition flag — fires the
193
199
  * automation's actions while bypassing its condition block. */
194
- AutomationSkipCondition = "automation-skip-condition"
200
+ AutomationSkipCondition = "automation-skip-condition",
201
+ /** Robot vacuum exposes a live cleaning map (image child). Gates the
202
+ * map tile in the vacuum UI. */
203
+ VacuumHasMap = "vacuum-has-map",
204
+ /** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
205
+ * switches group. */
206
+ VacuumHasAi = "vacuum-has-ai",
207
+ /** Robot mower exposes a live mowing map (SVG image child). Gates the
208
+ * mower map tile. */
209
+ MowerHasMap = "mower-has-map",
210
+ /** Robot mower exposes targeted mowing (all-area / zones / edges /
211
+ * spots) — gates the Mow action + map selectors. */
212
+ MowerHasTargetedMowing = "mower-has-targeted-mowing"
195
213
  }
196
214
  export declare enum ChargingStatus {
197
215
  ChargingDC = "charging-dc",