@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.
- package/dist/addon.js +4 -4
- package/dist/addon.mjs +4 -4
- package/dist/auth/credential-scope.d.ts +262 -0
- package/dist/auth/principal-scope.d.ts +1 -1
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/llm.cap.d.ts +252 -309
- package/dist/capabilities/user-management.cap.d.ts +4 -409
- package/dist/client.js +100 -104
- package/dist/client.mjs +100 -104
- package/dist/generated/addon-api.d.ts +459 -175
- package/dist/generated/collection-array-methods.d.ts +1 -1
- 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 -0
- package/dist/index.js +591 -303
- package/dist/index.mjs +548 -301
- package/dist/interfaces/addon-data-plane.d.ts +4 -4
- package/dist/interfaces/addon-peer-bytes.d.ts +1 -1
- package/dist/schemas/auth-records.d.ts +1 -1
- package/dist/schemas/user-preferences.d.ts +103 -0
- package/dist/{sleep-BE7_6UnC.js → sleep-6sOPE0EV.js} +31 -4
- package/dist/{sleep-BxjU_fJM.mjs → sleep-yKL5gfrH.mjs} +31 -4
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -557,6 +557,105 @@ z.object({
|
|
|
557
557
|
codec: z.string().optional(),
|
|
558
558
|
resolution: CamStreamResolutionSchema.optional()
|
|
559
559
|
});
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region src/device/device-type.ts
|
|
562
|
+
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
563
|
+
DeviceType["Camera"] = "camera";
|
|
564
|
+
DeviceType["Hub"] = "hub";
|
|
565
|
+
DeviceType["Light"] = "light";
|
|
566
|
+
DeviceType["Siren"] = "siren";
|
|
567
|
+
DeviceType["Switch"] = "switch";
|
|
568
|
+
DeviceType["Sensor"] = "sensor";
|
|
569
|
+
DeviceType["Thermostat"] = "thermostat";
|
|
570
|
+
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
571
|
+
* `climate-control` cap surface with `Thermostat` but renders a
|
|
572
|
+
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
573
|
+
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
574
|
+
* reusable by other AC integrations. */
|
|
575
|
+
DeviceType["Climate"] = "climate";
|
|
576
|
+
DeviceType["Button"] = "button";
|
|
577
|
+
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
578
|
+
* event vocabulary verbatim (no normalization). Installed with the
|
|
579
|
+
* `event-emitter` cap. Sources: HA `event.*` entities (structured) and
|
|
580
|
+
* HA bus events (e.g. `zha_event`, generic). */
|
|
581
|
+
DeviceType["EventEmitter"] = "event-emitter";
|
|
582
|
+
/** Firmware/software update entity — current vs available version,
|
|
583
|
+
* updatable flag, update state, and an install action. Installed with
|
|
584
|
+
* the `update` cap. Sources: Homematic firmware-update channels (and
|
|
585
|
+
* reusable by other providers, e.g. HA `update.*` entities). */
|
|
586
|
+
DeviceType["Update"] = "update";
|
|
587
|
+
DeviceType["Generic"] = "generic";
|
|
588
|
+
/** Generic notification delivery target (HA `notify.<service>`, future
|
|
589
|
+
* Telegram / Discord / ntfy / SMTP, …). One device per delivery
|
|
590
|
+
* endpoint; the `notifier` cap defines the send surface. */
|
|
591
|
+
DeviceType["Notifier"] = "notifier";
|
|
592
|
+
/** Pre-recorded action sequence with optional parameters
|
|
593
|
+
* (HA `script.*`). Runnable via `script-runner` cap. */
|
|
594
|
+
DeviceType["Script"] = "script";
|
|
595
|
+
/** Automation rule (HA `automation.*`) — enable/disable + manual
|
|
596
|
+
* trigger surface exposed via `automation-control` cap. */
|
|
597
|
+
DeviceType["Automation"] = "automation";
|
|
598
|
+
/** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
|
|
599
|
+
DeviceType["Lock"] = "lock";
|
|
600
|
+
/** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
|
|
601
|
+
* `valve.*`). `cover` cap with sub-roles for variant. */
|
|
602
|
+
DeviceType["Cover"] = "cover";
|
|
603
|
+
/** Pipe / water / gas valve with open/close/stop and optional
|
|
604
|
+
* position (HA `valve.*`). `valve` cap — a cover-sibling actuator
|
|
605
|
+
* modelled on the same open/closed lifecycle. */
|
|
606
|
+
DeviceType["Valve"] = "valve";
|
|
607
|
+
/** Humidifier / dehumidifier with on/off + target humidity + mode
|
|
608
|
+
* (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
|
|
609
|
+
* modelled on the same target / mode lifecycle. */
|
|
610
|
+
DeviceType["Humidifier"] = "humidifier";
|
|
611
|
+
/** Water heater / boiler with target temperature + operation mode +
|
|
612
|
+
* away mode (HA `water_heater.*`). `water-heater` cap — a
|
|
613
|
+
* climate-family actuator. */
|
|
614
|
+
DeviceType["WaterHeater"] = "water-heater";
|
|
615
|
+
/** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
|
|
616
|
+
DeviceType["Fan"] = "fan";
|
|
617
|
+
/** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
|
|
618
|
+
* the camera surface — those use `Camera`. `media-player` cap. */
|
|
619
|
+
DeviceType["MediaPlayer"] = "media-player";
|
|
620
|
+
/** Security panel / alarm system (HA `alarm_control_panel.*`).
|
|
621
|
+
* `alarm-panel` cap. */
|
|
622
|
+
DeviceType["AlarmPanel"] = "alarm-panel";
|
|
623
|
+
/** Generic user-settable input (HA `number` / `input_number` / `select`
|
|
624
|
+
* / `input_select` / `text` / `input_text` / `input_datetime`).
|
|
625
|
+
* Sub-type via `DeviceRole`: NumericControl / SelectControl /
|
|
626
|
+
* TextControl / DateTimeControl. */
|
|
627
|
+
DeviceType["Control"] = "control";
|
|
628
|
+
/** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
|
|
629
|
+
* `presence` cap. */
|
|
630
|
+
DeviceType["Presence"] = "presence";
|
|
631
|
+
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
632
|
+
* `weather` cap. */
|
|
633
|
+
DeviceType["Weather"] = "weather";
|
|
634
|
+
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
635
|
+
DeviceType["Vacuum"] = "vacuum";
|
|
636
|
+
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
637
|
+
* `lawn-mower-control` cap. */
|
|
638
|
+
DeviceType["LawnMower"] = "lawn-mower";
|
|
639
|
+
/** Physical HA device group — parent container for entity-children
|
|
640
|
+
* adopted from a single HA device entry. Not renderable as a
|
|
641
|
+
* standalone device; exists only to anchor child entities. */
|
|
642
|
+
DeviceType["Container"] = "container";
|
|
643
|
+
/** Single still-image entity (HA `image.*`). Read-only display of an
|
|
644
|
+
* `entity_picture` signed URL the browser loads directly. `image` cap. */
|
|
645
|
+
DeviceType["Image"] = "image";
|
|
646
|
+
/** Smart pet feeder — cloud-connected food dispenser with a bowl food
|
|
647
|
+
* level, battery, desiccant life, feeding state and manual-feed /
|
|
648
|
+
* call-pet / maintenance actions. Installed with the `pet-feeder` cap;
|
|
649
|
+
* dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
|
|
650
|
+
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
651
|
+
* integrations sharing the same food/desiccant/hopper surface. */
|
|
652
|
+
DeviceType["PetFeeder"] = "pet-feeder";
|
|
653
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
654
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
655
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
656
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
657
|
+
return DeviceType;
|
|
658
|
+
}({});
|
|
560
659
|
z.enum(["new-session", "step-up"]);
|
|
561
660
|
z.enum(["en", "it"]);
|
|
562
661
|
/** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
|
|
@@ -910,105 +1009,6 @@ function optionalMethod(input, output, options) {
|
|
|
910
1009
|
};
|
|
911
1010
|
}
|
|
912
1011
|
//#endregion
|
|
913
|
-
//#region src/device/device-type.ts
|
|
914
|
-
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
915
|
-
DeviceType["Camera"] = "camera";
|
|
916
|
-
DeviceType["Hub"] = "hub";
|
|
917
|
-
DeviceType["Light"] = "light";
|
|
918
|
-
DeviceType["Siren"] = "siren";
|
|
919
|
-
DeviceType["Switch"] = "switch";
|
|
920
|
-
DeviceType["Sensor"] = "sensor";
|
|
921
|
-
DeviceType["Thermostat"] = "thermostat";
|
|
922
|
-
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
923
|
-
* `climate-control` cap surface with `Thermostat` but renders a
|
|
924
|
-
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
925
|
-
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
926
|
-
* reusable by other AC integrations. */
|
|
927
|
-
DeviceType["Climate"] = "climate";
|
|
928
|
-
DeviceType["Button"] = "button";
|
|
929
|
-
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
930
|
-
* event vocabulary verbatim (no normalization). Installed with the
|
|
931
|
-
* `event-emitter` cap. Sources: HA `event.*` entities (structured) and
|
|
932
|
-
* HA bus events (e.g. `zha_event`, generic). */
|
|
933
|
-
DeviceType["EventEmitter"] = "event-emitter";
|
|
934
|
-
/** Firmware/software update entity — current vs available version,
|
|
935
|
-
* updatable flag, update state, and an install action. Installed with
|
|
936
|
-
* the `update` cap. Sources: Homematic firmware-update channels (and
|
|
937
|
-
* reusable by other providers, e.g. HA `update.*` entities). */
|
|
938
|
-
DeviceType["Update"] = "update";
|
|
939
|
-
DeviceType["Generic"] = "generic";
|
|
940
|
-
/** Generic notification delivery target (HA `notify.<service>`, future
|
|
941
|
-
* Telegram / Discord / ntfy / SMTP, …). One device per delivery
|
|
942
|
-
* endpoint; the `notifier` cap defines the send surface. */
|
|
943
|
-
DeviceType["Notifier"] = "notifier";
|
|
944
|
-
/** Pre-recorded action sequence with optional parameters
|
|
945
|
-
* (HA `script.*`). Runnable via `script-runner` cap. */
|
|
946
|
-
DeviceType["Script"] = "script";
|
|
947
|
-
/** Automation rule (HA `automation.*`) — enable/disable + manual
|
|
948
|
-
* trigger surface exposed via `automation-control` cap. */
|
|
949
|
-
DeviceType["Automation"] = "automation";
|
|
950
|
-
/** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
|
|
951
|
-
DeviceType["Lock"] = "lock";
|
|
952
|
-
/** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
|
|
953
|
-
* `valve.*`). `cover` cap with sub-roles for variant. */
|
|
954
|
-
DeviceType["Cover"] = "cover";
|
|
955
|
-
/** Pipe / water / gas valve with open/close/stop and optional
|
|
956
|
-
* position (HA `valve.*`). `valve` cap — a cover-sibling actuator
|
|
957
|
-
* modelled on the same open/closed lifecycle. */
|
|
958
|
-
DeviceType["Valve"] = "valve";
|
|
959
|
-
/** Humidifier / dehumidifier with on/off + target humidity + mode
|
|
960
|
-
* (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
|
|
961
|
-
* modelled on the same target / mode lifecycle. */
|
|
962
|
-
DeviceType["Humidifier"] = "humidifier";
|
|
963
|
-
/** Water heater / boiler with target temperature + operation mode +
|
|
964
|
-
* away mode (HA `water_heater.*`). `water-heater` cap — a
|
|
965
|
-
* climate-family actuator. */
|
|
966
|
-
DeviceType["WaterHeater"] = "water-heater";
|
|
967
|
-
/** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
|
|
968
|
-
DeviceType["Fan"] = "fan";
|
|
969
|
-
/** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
|
|
970
|
-
* the camera surface — those use `Camera`. `media-player` cap. */
|
|
971
|
-
DeviceType["MediaPlayer"] = "media-player";
|
|
972
|
-
/** Security panel / alarm system (HA `alarm_control_panel.*`).
|
|
973
|
-
* `alarm-panel` cap. */
|
|
974
|
-
DeviceType["AlarmPanel"] = "alarm-panel";
|
|
975
|
-
/** Generic user-settable input (HA `number` / `input_number` / `select`
|
|
976
|
-
* / `input_select` / `text` / `input_text` / `input_datetime`).
|
|
977
|
-
* Sub-type via `DeviceRole`: NumericControl / SelectControl /
|
|
978
|
-
* TextControl / DateTimeControl. */
|
|
979
|
-
DeviceType["Control"] = "control";
|
|
980
|
-
/** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
|
|
981
|
-
* `presence` cap. */
|
|
982
|
-
DeviceType["Presence"] = "presence";
|
|
983
|
-
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
984
|
-
* `weather` cap. */
|
|
985
|
-
DeviceType["Weather"] = "weather";
|
|
986
|
-
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
987
|
-
DeviceType["Vacuum"] = "vacuum";
|
|
988
|
-
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
989
|
-
* `lawn-mower-control` cap. */
|
|
990
|
-
DeviceType["LawnMower"] = "lawn-mower";
|
|
991
|
-
/** Physical HA device group — parent container for entity-children
|
|
992
|
-
* adopted from a single HA device entry. Not renderable as a
|
|
993
|
-
* standalone device; exists only to anchor child entities. */
|
|
994
|
-
DeviceType["Container"] = "container";
|
|
995
|
-
/** Single still-image entity (HA `image.*`). Read-only display of an
|
|
996
|
-
* `entity_picture` signed URL the browser loads directly. `image` cap. */
|
|
997
|
-
DeviceType["Image"] = "image";
|
|
998
|
-
/** Smart pet feeder — cloud-connected food dispenser with a bowl food
|
|
999
|
-
* level, battery, desiccant life, feeding state and manual-feed /
|
|
1000
|
-
* call-pet / maintenance actions. Installed with the `pet-feeder` cap;
|
|
1001
|
-
* dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
|
|
1002
|
-
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
1003
|
-
* integrations sharing the same food/desiccant/hopper surface. */
|
|
1004
|
-
DeviceType["PetFeeder"] = "pet-feeder";
|
|
1005
|
-
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
1006
|
-
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
1007
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
1008
|
-
DeviceType["Dishwasher"] = "dishwasher";
|
|
1009
|
-
return DeviceType;
|
|
1010
|
-
}({});
|
|
1011
|
-
//#endregion
|
|
1012
1012
|
//#region src/device/icon-catalog.generated.ts
|
|
1013
1013
|
/** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
|
|
1014
1014
|
var ICON_CATEGORY_IDS = [
|
|
@@ -27868,7 +27868,7 @@ function createSystemProxy(api) {
|
|
|
27868
27868
|
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27869
27869
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27870
27870
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27871
|
-
listModels: (input) => dispatch("llm", "listModels", "
|
|
27871
|
+
listModels: (input) => dispatch("llm", "listModels", "mutation", input),
|
|
27872
27872
|
getDefaults: (input) => dispatch("llm", "getDefaults", "query", input),
|
|
27873
27873
|
setDefault: (input) => dispatch("llm", "setDefault", "mutation", input),
|
|
27874
27874
|
getUsage: (input) => dispatch("llm", "getUsage", "query", input),
|
|
@@ -28312,10 +28312,6 @@ function createSystemProxy(api) {
|
|
|
28312
28312
|
validateCredentials: (input) => dispatch("userManagement", "validateCredentials", "mutation", input),
|
|
28313
28313
|
listApiKeys: (input) => dispatch("userManagement", "listApiKeys", "query", input),
|
|
28314
28314
|
revokeApiKey: (input) => dispatch("userManagement", "revokeApiKey", "mutation", input),
|
|
28315
|
-
createScopedToken: (input) => dispatch("userManagement", "createScopedToken", "mutation", input),
|
|
28316
|
-
revokeScopedToken: (input) => dispatch("userManagement", "revokeScopedToken", "mutation", input),
|
|
28317
|
-
validateScopedToken: (input) => dispatch("userManagement", "validateScopedToken", "query", input),
|
|
28318
|
-
listScopedTokens: (input) => dispatch("userManagement", "listScopedTokens", "query", input),
|
|
28319
28315
|
setupTotp: (input) => dispatch("userManagement", "setupTotp", "mutation", input),
|
|
28320
28316
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28321
28317
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|