@camstack/types 1.2.385 → 1.2.387

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.
@@ -177,176 +177,6 @@ declare const ApiKeySummarySchema: z.ZodObject<{
177
177
  createdAt: z.ZodNumber;
178
178
  lastUsedAt: z.ZodOptional<z.ZodNumber>;
179
179
  }, z.core.$strip>;
180
- declare const ScopedTokenSummarySchema: z.ZodObject<{
181
- id: z.ZodString;
182
- userId: z.ZodString;
183
- name: z.ZodString;
184
- tokenPrefix: z.ZodString;
185
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
186
- type: z.ZodLiteral<"category">;
187
- target: z.ZodEnum<{
188
- device: "device";
189
- system: "system";
190
- }>;
191
- access: z.ZodArray<z.ZodEnum<{
192
- create: "create";
193
- delete: "delete";
194
- view: "view";
195
- }>>;
196
- }, z.core.$strip>, z.ZodObject<{
197
- type: z.ZodLiteral<"capability">;
198
- target: z.ZodString;
199
- access: z.ZodArray<z.ZodEnum<{
200
- create: "create";
201
- delete: "delete";
202
- view: "view";
203
- }>>;
204
- }, z.core.$strip>, z.ZodObject<{
205
- type: z.ZodLiteral<"addon">;
206
- target: z.ZodString;
207
- access: z.ZodArray<z.ZodEnum<{
208
- create: "create";
209
- delete: "delete";
210
- view: "view";
211
- }>>;
212
- }, z.core.$strip>, z.ZodObject<{
213
- type: z.ZodLiteral<"device">;
214
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
215
- kind: z.ZodLiteral<"all">;
216
- }, z.core.$strip>, z.ZodObject<{
217
- kind: z.ZodLiteral<"ids">;
218
- ids: z.ZodArray<z.ZodNumber>;
219
- }, z.core.$strip>, z.ZodObject<{
220
- kind: z.ZodLiteral<"types">;
221
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
222
- }, z.core.$strip>, z.ZodObject<{
223
- kind: z.ZodLiteral<"locations">;
224
- locations: z.ZodArray<z.ZodString>;
225
- }, z.core.$strip>], "kind">;
226
- access: z.ZodArray<z.ZodEnum<{
227
- create: "create";
228
- delete: "delete";
229
- view: "view";
230
- }>>;
231
- includeLinked: z.ZodOptional<z.ZodBoolean>;
232
- }, z.core.$strip>], "type">>>;
233
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
234
- lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
235
- createdAt: z.ZodNumber;
236
- }, z.core.$strip>;
237
- declare const CreateScopedTokenInputSchema: z.ZodObject<{
238
- userId: z.ZodString;
239
- name: z.ZodString;
240
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
241
- type: z.ZodLiteral<"category">;
242
- target: z.ZodEnum<{
243
- device: "device";
244
- system: "system";
245
- }>;
246
- access: z.ZodArray<z.ZodEnum<{
247
- create: "create";
248
- delete: "delete";
249
- view: "view";
250
- }>>;
251
- }, z.core.$strip>, z.ZodObject<{
252
- type: z.ZodLiteral<"capability">;
253
- target: z.ZodString;
254
- access: z.ZodArray<z.ZodEnum<{
255
- create: "create";
256
- delete: "delete";
257
- view: "view";
258
- }>>;
259
- }, z.core.$strip>, z.ZodObject<{
260
- type: z.ZodLiteral<"addon">;
261
- target: z.ZodString;
262
- access: z.ZodArray<z.ZodEnum<{
263
- create: "create";
264
- delete: "delete";
265
- view: "view";
266
- }>>;
267
- }, z.core.$strip>, z.ZodObject<{
268
- type: z.ZodLiteral<"device">;
269
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
- kind: z.ZodLiteral<"all">;
271
- }, z.core.$strip>, z.ZodObject<{
272
- kind: z.ZodLiteral<"ids">;
273
- ids: z.ZodArray<z.ZodNumber>;
274
- }, z.core.$strip>, z.ZodObject<{
275
- kind: z.ZodLiteral<"types">;
276
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
277
- }, z.core.$strip>, z.ZodObject<{
278
- kind: z.ZodLiteral<"locations">;
279
- locations: z.ZodArray<z.ZodString>;
280
- }, z.core.$strip>], "kind">;
281
- access: z.ZodArray<z.ZodEnum<{
282
- create: "create";
283
- delete: "delete";
284
- view: "view";
285
- }>>;
286
- includeLinked: z.ZodOptional<z.ZodBoolean>;
287
- }, z.core.$strip>], "type">>>;
288
- expiresAt: z.ZodOptional<z.ZodNumber>;
289
- }, z.core.$strip>;
290
- declare const CreateScopedTokenResultSchema: z.ZodObject<{
291
- token: z.ZodString;
292
- record: z.ZodObject<{
293
- id: z.ZodString;
294
- userId: z.ZodString;
295
- name: z.ZodString;
296
- tokenPrefix: z.ZodString;
297
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
298
- type: z.ZodLiteral<"category">;
299
- target: z.ZodEnum<{
300
- device: "device";
301
- system: "system";
302
- }>;
303
- access: z.ZodArray<z.ZodEnum<{
304
- create: "create";
305
- delete: "delete";
306
- view: "view";
307
- }>>;
308
- }, z.core.$strip>, z.ZodObject<{
309
- type: z.ZodLiteral<"capability">;
310
- target: z.ZodString;
311
- access: z.ZodArray<z.ZodEnum<{
312
- create: "create";
313
- delete: "delete";
314
- view: "view";
315
- }>>;
316
- }, z.core.$strip>, z.ZodObject<{
317
- type: z.ZodLiteral<"addon">;
318
- target: z.ZodString;
319
- access: z.ZodArray<z.ZodEnum<{
320
- create: "create";
321
- delete: "delete";
322
- view: "view";
323
- }>>;
324
- }, z.core.$strip>, z.ZodObject<{
325
- type: z.ZodLiteral<"device">;
326
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
327
- kind: z.ZodLiteral<"all">;
328
- }, z.core.$strip>, z.ZodObject<{
329
- kind: z.ZodLiteral<"ids">;
330
- ids: z.ZodArray<z.ZodNumber>;
331
- }, z.core.$strip>, z.ZodObject<{
332
- kind: z.ZodLiteral<"types">;
333
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
334
- }, z.core.$strip>, z.ZodObject<{
335
- kind: z.ZodLiteral<"locations">;
336
- locations: z.ZodArray<z.ZodString>;
337
- }, z.core.$strip>], "kind">;
338
- access: z.ZodArray<z.ZodEnum<{
339
- create: "create";
340
- delete: "delete";
341
- view: "view";
342
- }>>;
343
- includeLinked: z.ZodOptional<z.ZodBoolean>;
344
- }, z.core.$strip>], "type">>>;
345
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
346
- lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
347
- createdAt: z.ZodNumber;
348
- }, z.core.$strip>;
349
- }, z.core.$strip>;
350
180
  declare const OauthSessionSummarySchema: z.ZodObject<{
351
181
  id: z.ZodString;
352
182
  userId: z.ZodString;
@@ -405,11 +235,11 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
405
235
  revokedAt: z.ZodNullable<z.ZodNumber>;
406
236
  }, z.core.$strip>;
407
237
  /**
408
- * user-management — singleton capability for user accounts, API keys,
409
- * and scoped tokens.
238
+ * user-management — singleton capability for user accounts and the
239
+ * legacy API-key rows.
410
240
  *
411
241
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
412
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
242
+ * — the subset check on `setUserScopes` is moot
413
243
  * because non-admins never reach these. If/when we open non-admin
414
244
  * delegation, structural caller-scope subset check goes inside the
415
245
  * provider.
@@ -798,241 +628,6 @@ export declare const userManagementCapability: {
798
628
  }, z.core.$strip>, z.ZodObject<{
799
629
  success: z.ZodLiteral<true>;
800
630
  }, z.core.$strip>, "mutation">;
801
- readonly createScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
802
- userId: z.ZodString;
803
- name: z.ZodString;
804
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
805
- type: z.ZodLiteral<"category">;
806
- target: z.ZodEnum<{
807
- device: "device";
808
- system: "system";
809
- }>;
810
- access: z.ZodArray<z.ZodEnum<{
811
- create: "create";
812
- delete: "delete";
813
- view: "view";
814
- }>>;
815
- }, z.core.$strip>, z.ZodObject<{
816
- type: z.ZodLiteral<"capability">;
817
- target: z.ZodString;
818
- access: z.ZodArray<z.ZodEnum<{
819
- create: "create";
820
- delete: "delete";
821
- view: "view";
822
- }>>;
823
- }, z.core.$strip>, z.ZodObject<{
824
- type: z.ZodLiteral<"addon">;
825
- target: z.ZodString;
826
- access: z.ZodArray<z.ZodEnum<{
827
- create: "create";
828
- delete: "delete";
829
- view: "view";
830
- }>>;
831
- }, z.core.$strip>, z.ZodObject<{
832
- type: z.ZodLiteral<"device">;
833
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
834
- kind: z.ZodLiteral<"all">;
835
- }, z.core.$strip>, z.ZodObject<{
836
- kind: z.ZodLiteral<"ids">;
837
- ids: z.ZodArray<z.ZodNumber>;
838
- }, z.core.$strip>, z.ZodObject<{
839
- kind: z.ZodLiteral<"types">;
840
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
841
- }, z.core.$strip>, z.ZodObject<{
842
- kind: z.ZodLiteral<"locations">;
843
- locations: z.ZodArray<z.ZodString>;
844
- }, z.core.$strip>], "kind">;
845
- access: z.ZodArray<z.ZodEnum<{
846
- create: "create";
847
- delete: "delete";
848
- view: "view";
849
- }>>;
850
- includeLinked: z.ZodOptional<z.ZodBoolean>;
851
- }, z.core.$strip>], "type">>>;
852
- expiresAt: z.ZodOptional<z.ZodNumber>;
853
- }, z.core.$strip>, z.ZodObject<{
854
- token: z.ZodString;
855
- record: z.ZodObject<{
856
- id: z.ZodString;
857
- userId: z.ZodString;
858
- name: z.ZodString;
859
- tokenPrefix: z.ZodString;
860
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
861
- type: z.ZodLiteral<"category">;
862
- target: z.ZodEnum<{
863
- device: "device";
864
- system: "system";
865
- }>;
866
- access: z.ZodArray<z.ZodEnum<{
867
- create: "create";
868
- delete: "delete";
869
- view: "view";
870
- }>>;
871
- }, z.core.$strip>, z.ZodObject<{
872
- type: z.ZodLiteral<"capability">;
873
- target: z.ZodString;
874
- access: z.ZodArray<z.ZodEnum<{
875
- create: "create";
876
- delete: "delete";
877
- view: "view";
878
- }>>;
879
- }, z.core.$strip>, z.ZodObject<{
880
- type: z.ZodLiteral<"addon">;
881
- target: z.ZodString;
882
- access: z.ZodArray<z.ZodEnum<{
883
- create: "create";
884
- delete: "delete";
885
- view: "view";
886
- }>>;
887
- }, z.core.$strip>, z.ZodObject<{
888
- type: z.ZodLiteral<"device">;
889
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
890
- kind: z.ZodLiteral<"all">;
891
- }, z.core.$strip>, z.ZodObject<{
892
- kind: z.ZodLiteral<"ids">;
893
- ids: z.ZodArray<z.ZodNumber>;
894
- }, z.core.$strip>, z.ZodObject<{
895
- kind: z.ZodLiteral<"types">;
896
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
897
- }, z.core.$strip>, z.ZodObject<{
898
- kind: z.ZodLiteral<"locations">;
899
- locations: z.ZodArray<z.ZodString>;
900
- }, z.core.$strip>], "kind">;
901
- access: z.ZodArray<z.ZodEnum<{
902
- create: "create";
903
- delete: "delete";
904
- view: "view";
905
- }>>;
906
- includeLinked: z.ZodOptional<z.ZodBoolean>;
907
- }, z.core.$strip>], "type">>>;
908
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
- lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
910
- createdAt: z.ZodNumber;
911
- }, z.core.$strip>;
912
- }, z.core.$strip>, "mutation">;
913
- readonly revokeScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
914
- id: z.ZodString;
915
- }, z.core.$strip>, z.ZodObject<{
916
- success: z.ZodLiteral<true>;
917
- }, z.core.$strip>, "mutation">;
918
- readonly validateScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
919
- token: z.ZodString;
920
- }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
921
- id: z.ZodString;
922
- userId: z.ZodString;
923
- name: z.ZodString;
924
- tokenPrefix: z.ZodString;
925
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
926
- type: z.ZodLiteral<"category">;
927
- target: z.ZodEnum<{
928
- device: "device";
929
- system: "system";
930
- }>;
931
- access: z.ZodArray<z.ZodEnum<{
932
- create: "create";
933
- delete: "delete";
934
- view: "view";
935
- }>>;
936
- }, z.core.$strip>, z.ZodObject<{
937
- type: z.ZodLiteral<"capability">;
938
- target: z.ZodString;
939
- access: z.ZodArray<z.ZodEnum<{
940
- create: "create";
941
- delete: "delete";
942
- view: "view";
943
- }>>;
944
- }, z.core.$strip>, z.ZodObject<{
945
- type: z.ZodLiteral<"addon">;
946
- target: z.ZodString;
947
- access: z.ZodArray<z.ZodEnum<{
948
- create: "create";
949
- delete: "delete";
950
- view: "view";
951
- }>>;
952
- }, z.core.$strip>, z.ZodObject<{
953
- type: z.ZodLiteral<"device">;
954
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
955
- kind: z.ZodLiteral<"all">;
956
- }, z.core.$strip>, z.ZodObject<{
957
- kind: z.ZodLiteral<"ids">;
958
- ids: z.ZodArray<z.ZodNumber>;
959
- }, z.core.$strip>, z.ZodObject<{
960
- kind: z.ZodLiteral<"types">;
961
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
962
- }, z.core.$strip>, z.ZodObject<{
963
- kind: z.ZodLiteral<"locations">;
964
- locations: z.ZodArray<z.ZodString>;
965
- }, z.core.$strip>], "kind">;
966
- access: z.ZodArray<z.ZodEnum<{
967
- create: "create";
968
- delete: "delete";
969
- view: "view";
970
- }>>;
971
- includeLinked: z.ZodOptional<z.ZodBoolean>;
972
- }, z.core.$strip>], "type">>>;
973
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
974
- lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
975
- createdAt: z.ZodNumber;
976
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
977
- readonly listScopedTokens: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
978
- userId: z.ZodString;
979
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
980
- id: z.ZodString;
981
- userId: z.ZodString;
982
- name: z.ZodString;
983
- tokenPrefix: z.ZodString;
984
- scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
985
- type: z.ZodLiteral<"category">;
986
- target: z.ZodEnum<{
987
- device: "device";
988
- system: "system";
989
- }>;
990
- access: z.ZodArray<z.ZodEnum<{
991
- create: "create";
992
- delete: "delete";
993
- view: "view";
994
- }>>;
995
- }, z.core.$strip>, z.ZodObject<{
996
- type: z.ZodLiteral<"capability">;
997
- target: z.ZodString;
998
- access: z.ZodArray<z.ZodEnum<{
999
- create: "create";
1000
- delete: "delete";
1001
- view: "view";
1002
- }>>;
1003
- }, z.core.$strip>, z.ZodObject<{
1004
- type: z.ZodLiteral<"addon">;
1005
- target: z.ZodString;
1006
- access: z.ZodArray<z.ZodEnum<{
1007
- create: "create";
1008
- delete: "delete";
1009
- view: "view";
1010
- }>>;
1011
- }, z.core.$strip>, z.ZodObject<{
1012
- type: z.ZodLiteral<"device">;
1013
- selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
1014
- kind: z.ZodLiteral<"all">;
1015
- }, z.core.$strip>, z.ZodObject<{
1016
- kind: z.ZodLiteral<"ids">;
1017
- ids: z.ZodArray<z.ZodNumber>;
1018
- }, z.core.$strip>, z.ZodObject<{
1019
- kind: z.ZodLiteral<"types">;
1020
- types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
1021
- }, z.core.$strip>, z.ZodObject<{
1022
- kind: z.ZodLiteral<"locations">;
1023
- locations: z.ZodArray<z.ZodString>;
1024
- }, z.core.$strip>], "kind">;
1025
- access: z.ZodArray<z.ZodEnum<{
1026
- create: "create";
1027
- delete: "delete";
1028
- view: "view";
1029
- }>>;
1030
- includeLinked: z.ZodOptional<z.ZodBoolean>;
1031
- }, z.core.$strip>], "type">>>;
1032
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1033
- lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1034
- createdAt: z.ZodNumber;
1035
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
1036
631
  readonly setupTotp: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1037
632
  userId: z.ZodString;
1038
633
  }, z.core.$strip>, z.ZodObject<{
@@ -1301,4 +896,4 @@ export declare const userManagementCapability: {
1301
896
  };
1302
897
  };
1303
898
  export type IUserManagementProvider = InferProvider<typeof userManagementCapability>;
1304
- export { ApiKeySummarySchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, ExternalIdentityKeySchema, ExternalIdentitySchema, OauthSessionSummarySchema, ScopedTokenSummarySchema, UpdateUserInputSchema, UserSummarySchema, };
899
+ export { ApiKeySummarySchema, CreateUserInputSchema, ExternalIdentityKeySchema, ExternalIdentitySchema, OauthSessionSummarySchema, UpdateUserInputSchema, UserSummarySchema, };
package/dist/client.js CHANGED
@@ -558,6 +558,105 @@ zod.z.object({
558
558
  codec: zod.z.string().optional(),
559
559
  resolution: CamStreamResolutionSchema.optional()
560
560
  });
561
+ //#endregion
562
+ //#region src/device/device-type.ts
563
+ var DeviceType = /* @__PURE__ */ function(DeviceType) {
564
+ DeviceType["Camera"] = "camera";
565
+ DeviceType["Hub"] = "hub";
566
+ DeviceType["Light"] = "light";
567
+ DeviceType["Siren"] = "siren";
568
+ DeviceType["Switch"] = "switch";
569
+ DeviceType["Sensor"] = "sensor";
570
+ DeviceType["Thermostat"] = "thermostat";
571
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
572
+ * `climate-control` cap surface with `Thermostat` but renders a
573
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
574
+ * independent vertical/horizontal swing). Sources: native Gree, and
575
+ * reusable by other AC integrations. */
576
+ DeviceType["Climate"] = "climate";
577
+ DeviceType["Button"] = "button";
578
+ /** Generic stateless event emitter — carries a device's EXACT declared
579
+ * event vocabulary verbatim (no normalization). Installed with the
580
+ * `event-emitter` cap. Sources: HA `event.*` entities (structured) and
581
+ * HA bus events (e.g. `zha_event`, generic). */
582
+ DeviceType["EventEmitter"] = "event-emitter";
583
+ /** Firmware/software update entity — current vs available version,
584
+ * updatable flag, update state, and an install action. Installed with
585
+ * the `update` cap. Sources: Homematic firmware-update channels (and
586
+ * reusable by other providers, e.g. HA `update.*` entities). */
587
+ DeviceType["Update"] = "update";
588
+ DeviceType["Generic"] = "generic";
589
+ /** Generic notification delivery target (HA `notify.<service>`, future
590
+ * Telegram / Discord / ntfy / SMTP, …). One device per delivery
591
+ * endpoint; the `notifier` cap defines the send surface. */
592
+ DeviceType["Notifier"] = "notifier";
593
+ /** Pre-recorded action sequence with optional parameters
594
+ * (HA `script.*`). Runnable via `script-runner` cap. */
595
+ DeviceType["Script"] = "script";
596
+ /** Automation rule (HA `automation.*`) — enable/disable + manual
597
+ * trigger surface exposed via `automation-control` cap. */
598
+ DeviceType["Automation"] = "automation";
599
+ /** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
600
+ DeviceType["Lock"] = "lock";
601
+ /** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
602
+ * `valve.*`). `cover` cap with sub-roles for variant. */
603
+ DeviceType["Cover"] = "cover";
604
+ /** Pipe / water / gas valve with open/close/stop and optional
605
+ * position (HA `valve.*`). `valve` cap — a cover-sibling actuator
606
+ * modelled on the same open/closed lifecycle. */
607
+ DeviceType["Valve"] = "valve";
608
+ /** Humidifier / dehumidifier with on/off + target humidity + mode
609
+ * (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
610
+ * modelled on the same target / mode lifecycle. */
611
+ DeviceType["Humidifier"] = "humidifier";
612
+ /** Water heater / boiler with target temperature + operation mode +
613
+ * away mode (HA `water_heater.*`). `water-heater` cap — a
614
+ * climate-family actuator. */
615
+ DeviceType["WaterHeater"] = "water-heater";
616
+ /** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
617
+ DeviceType["Fan"] = "fan";
618
+ /** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
619
+ * the camera surface — those use `Camera`. `media-player` cap. */
620
+ DeviceType["MediaPlayer"] = "media-player";
621
+ /** Security panel / alarm system (HA `alarm_control_panel.*`).
622
+ * `alarm-panel` cap. */
623
+ DeviceType["AlarmPanel"] = "alarm-panel";
624
+ /** Generic user-settable input (HA `number` / `input_number` / `select`
625
+ * / `input_select` / `text` / `input_text` / `input_datetime`).
626
+ * Sub-type via `DeviceRole`: NumericControl / SelectControl /
627
+ * TextControl / DateTimeControl. */
628
+ DeviceType["Control"] = "control";
629
+ /** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
630
+ * `presence` cap. */
631
+ DeviceType["Presence"] = "presence";
632
+ /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
633
+ * `weather` cap. */
634
+ DeviceType["Weather"] = "weather";
635
+ /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
636
+ DeviceType["Vacuum"] = "vacuum";
637
+ /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
638
+ * `lawn-mower-control` cap. */
639
+ DeviceType["LawnMower"] = "lawn-mower";
640
+ /** Physical HA device group — parent container for entity-children
641
+ * adopted from a single HA device entry. Not renderable as a
642
+ * standalone device; exists only to anchor child entities. */
643
+ DeviceType["Container"] = "container";
644
+ /** Single still-image entity (HA `image.*`). Read-only display of an
645
+ * `entity_picture` signed URL the browser loads directly. `image` cap. */
646
+ DeviceType["Image"] = "image";
647
+ /** Smart pet feeder — cloud-connected food dispenser with a bowl food
648
+ * level, battery, desiccant life, feeding state and manual-feed /
649
+ * call-pet / maintenance actions. Installed with the `pet-feeder` cap;
650
+ * dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
651
+ * native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
652
+ * integrations sharing the same food/desiccant/hopper surface. */
653
+ DeviceType["PetFeeder"] = "pet-feeder";
654
+ /** Built-in dishwasher — program lifecycle, door / remote-start gates,
655
+ * salt and rinse-aid levels. Installed with the `dishwasher` cap.
656
+ * Sources: native Bosch Home Connect, reusable by similar integrations. */
657
+ DeviceType["Dishwasher"] = "dishwasher";
658
+ return DeviceType;
659
+ }({});
561
660
  zod.z.enum(["new-session", "step-up"]);
562
661
  zod.z.enum(["en", "it"]);
563
662
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
@@ -911,105 +1010,6 @@ function optionalMethod(input, output, options) {
911
1010
  };
912
1011
  }
913
1012
  //#endregion
914
- //#region src/device/device-type.ts
915
- var DeviceType = /* @__PURE__ */ function(DeviceType) {
916
- DeviceType["Camera"] = "camera";
917
- DeviceType["Hub"] = "hub";
918
- DeviceType["Light"] = "light";
919
- DeviceType["Siren"] = "siren";
920
- DeviceType["Switch"] = "switch";
921
- DeviceType["Sensor"] = "sensor";
922
- DeviceType["Thermostat"] = "thermostat";
923
- /** Air-conditioner / heat-pump climate device (HVAC) — shares the
924
- * `climate-control` cap surface with `Thermostat` but renders a
925
- * dedicated AC-appropriate control UI (mode chips, fan speed,
926
- * independent vertical/horizontal swing). Sources: native Gree, and
927
- * reusable by other AC integrations. */
928
- DeviceType["Climate"] = "climate";
929
- DeviceType["Button"] = "button";
930
- /** Generic stateless event emitter — carries a device's EXACT declared
931
- * event vocabulary verbatim (no normalization). Installed with the
932
- * `event-emitter` cap. Sources: HA `event.*` entities (structured) and
933
- * HA bus events (e.g. `zha_event`, generic). */
934
- DeviceType["EventEmitter"] = "event-emitter";
935
- /** Firmware/software update entity — current vs available version,
936
- * updatable flag, update state, and an install action. Installed with
937
- * the `update` cap. Sources: Homematic firmware-update channels (and
938
- * reusable by other providers, e.g. HA `update.*` entities). */
939
- DeviceType["Update"] = "update";
940
- DeviceType["Generic"] = "generic";
941
- /** Generic notification delivery target (HA `notify.<service>`, future
942
- * Telegram / Discord / ntfy / SMTP, …). One device per delivery
943
- * endpoint; the `notifier` cap defines the send surface. */
944
- DeviceType["Notifier"] = "notifier";
945
- /** Pre-recorded action sequence with optional parameters
946
- * (HA `script.*`). Runnable via `script-runner` cap. */
947
- DeviceType["Script"] = "script";
948
- /** Automation rule (HA `automation.*`) — enable/disable + manual
949
- * trigger surface exposed via `automation-control` cap. */
950
- DeviceType["Automation"] = "automation";
951
- /** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
952
- DeviceType["Lock"] = "lock";
953
- /** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
954
- * `valve.*`). `cover` cap with sub-roles for variant. */
955
- DeviceType["Cover"] = "cover";
956
- /** Pipe / water / gas valve with open/close/stop and optional
957
- * position (HA `valve.*`). `valve` cap — a cover-sibling actuator
958
- * modelled on the same open/closed lifecycle. */
959
- DeviceType["Valve"] = "valve";
960
- /** Humidifier / dehumidifier with on/off + target humidity + mode
961
- * (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
962
- * modelled on the same target / mode lifecycle. */
963
- DeviceType["Humidifier"] = "humidifier";
964
- /** Water heater / boiler with target temperature + operation mode +
965
- * away mode (HA `water_heater.*`). `water-heater` cap — a
966
- * climate-family actuator. */
967
- DeviceType["WaterHeater"] = "water-heater";
968
- /** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
969
- DeviceType["Fan"] = "fan";
970
- /** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
971
- * the camera surface — those use `Camera`. `media-player` cap. */
972
- DeviceType["MediaPlayer"] = "media-player";
973
- /** Security panel / alarm system (HA `alarm_control_panel.*`).
974
- * `alarm-panel` cap. */
975
- DeviceType["AlarmPanel"] = "alarm-panel";
976
- /** Generic user-settable input (HA `number` / `input_number` / `select`
977
- * / `input_select` / `text` / `input_text` / `input_datetime`).
978
- * Sub-type via `DeviceRole`: NumericControl / SelectControl /
979
- * TextControl / DateTimeControl. */
980
- DeviceType["Control"] = "control";
981
- /** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
982
- * `presence` cap. */
983
- DeviceType["Presence"] = "presence";
984
- /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
985
- * `weather` cap. */
986
- DeviceType["Weather"] = "weather";
987
- /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
988
- DeviceType["Vacuum"] = "vacuum";
989
- /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
990
- * `lawn-mower-control` cap. */
991
- DeviceType["LawnMower"] = "lawn-mower";
992
- /** Physical HA device group — parent container for entity-children
993
- * adopted from a single HA device entry. Not renderable as a
994
- * standalone device; exists only to anchor child entities. */
995
- DeviceType["Container"] = "container";
996
- /** Single still-image entity (HA `image.*`). Read-only display of an
997
- * `entity_picture` signed URL the browser loads directly. `image` cap. */
998
- DeviceType["Image"] = "image";
999
- /** Smart pet feeder — cloud-connected food dispenser with a bowl food
1000
- * level, battery, desiccant life, feeding state and manual-feed /
1001
- * call-pet / maintenance actions. Installed with the `pet-feeder` cap;
1002
- * dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
1003
- * native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
1004
- * integrations sharing the same food/desiccant/hopper surface. */
1005
- DeviceType["PetFeeder"] = "pet-feeder";
1006
- /** Built-in dishwasher — program lifecycle, door / remote-start gates,
1007
- * salt and rinse-aid levels. Installed with the `dishwasher` cap.
1008
- * Sources: native Bosch Home Connect, reusable by similar integrations. */
1009
- DeviceType["Dishwasher"] = "dishwasher";
1010
- return DeviceType;
1011
- }({});
1012
- //#endregion
1013
1013
  //#region src/device/icon-catalog.generated.ts
1014
1014
  /** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
1015
1015
  var ICON_CATEGORY_IDS = [
@@ -27869,7 +27869,7 @@ function createSystemProxy(api) {
27869
27869
  migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
27870
27870
  deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
27871
27871
  testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
27872
- listModels: (input) => dispatch("llm", "listModels", "query", input),
27872
+ listModels: (input) => dispatch("llm", "listModels", "mutation", input),
27873
27873
  getDefaults: (input) => dispatch("llm", "getDefaults", "query", input),
27874
27874
  setDefault: (input) => dispatch("llm", "setDefault", "mutation", input),
27875
27875
  getUsage: (input) => dispatch("llm", "getUsage", "query", input),
@@ -28313,10 +28313,6 @@ function createSystemProxy(api) {
28313
28313
  validateCredentials: (input) => dispatch("userManagement", "validateCredentials", "mutation", input),
28314
28314
  listApiKeys: (input) => dispatch("userManagement", "listApiKeys", "query", input),
28315
28315
  revokeApiKey: (input) => dispatch("userManagement", "revokeApiKey", "mutation", input),
28316
- createScopedToken: (input) => dispatch("userManagement", "createScopedToken", "mutation", input),
28317
- revokeScopedToken: (input) => dispatch("userManagement", "revokeScopedToken", "mutation", input),
28318
- validateScopedToken: (input) => dispatch("userManagement", "validateScopedToken", "query", input),
28319
- listScopedTokens: (input) => dispatch("userManagement", "listScopedTokens", "query", input),
28320
28316
  setupTotp: (input) => dispatch("userManagement", "setupTotp", "mutation", input),
28321
28317
  confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
28322
28318
  disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),