@camstack/addon-agent-ui 1.1.9 → 1.1.11

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 CHANGED
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
4629
4629
  return inst;
4630
4630
  }
4631
4631
  //#endregion
4632
- //#region ../types/dist/sleep-B3AOslwX.mjs
4632
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4633
4633
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4634
4634
  EventCategory["SystemBoot"] = "system.boot";
4635
4635
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6197,6 +6197,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6197
6197
  DeviceType["Switch"] = "switch";
6198
6198
  DeviceType["Sensor"] = "sensor";
6199
6199
  DeviceType["Thermostat"] = "thermostat";
6200
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6201
+ * `climate-control` cap surface with `Thermostat` but renders a
6202
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6203
+ * independent vertical/horizontal swing). Sources: native Gree, and
6204
+ * reusable by other AC integrations. */
6205
+ DeviceType["Climate"] = "climate";
6200
6206
  DeviceType["Button"] = "button";
6201
6207
  /** Generic stateless event emitter — carries a device's EXACT declared
6202
6208
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8360,7 +8366,7 @@ object({
8360
8366
  /** Ms epoch when the slice was last updated (push or command). */
8361
8367
  lastFetchedAt: number()
8362
8368
  });
8363
- DeviceType.Thermostat, method(object({
8369
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8364
8370
  deviceId: number().int().nonnegative(),
8365
8371
  mode: HvacModeSchema
8366
8372
  }), _void(), {
@@ -11045,10 +11051,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11045
11051
  id: string(),
11046
11052
  name: string(),
11047
11053
  type: string()
11048
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11054
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11049
11055
  kind: "mutation",
11050
11056
  auth: "admin"
11051
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11057
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11052
11058
  kind: "mutation",
11053
11059
  auth: "admin"
11054
11060
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12769,7 +12775,10 @@ method(object({
12769
12775
  }), FieldProbeResultSchema, {
12770
12776
  kind: "mutation",
12771
12777
  auth: "admin"
12772
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12778
+ }), method(object({
12779
+ addonId: string(),
12780
+ integrationId: string()
12781
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12773
12782
  addonId: string(),
12774
12783
  integrationId: string()
12775
12784
  }), AdoptionStatusSchema, {
@@ -12784,7 +12793,24 @@ method(object({
12784
12793
  }), method(ResyncInputSchema, ResyncResultSchema, {
12785
12794
  kind: "mutation",
12786
12795
  auth: "admin"
12796
+ }), method(object({}), object({ providers: array(object({
12797
+ addonId: string(),
12798
+ label: string()
12799
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12800
+ addonId: string(),
12801
+ label: string(),
12802
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12803
+ error: string().nullable()
12804
+ })).readonly() }), {
12805
+ kind: "mutation",
12806
+ auth: "admin"
12787
12807
  }), method(object({
12808
+ addonId: string(),
12809
+ params: record(string(), unknown()).optional()
12810
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12811
+ kind: "mutation",
12812
+ auth: "admin"
12813
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12788
12814
  deviceId: number(),
12789
12815
  key: string(),
12790
12816
  value: unknown()
@@ -15436,6 +15462,17 @@ var AvailableIntegrationTypeSchema = object({
15436
15462
  iconUrl: string().nullable(),
15437
15463
  color: string(),
15438
15464
  instanceMode: string(),
15465
+ /**
15466
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15467
+ * immediately then add devices, no config step/button), `account` (config
15468
+ * step), or `broker` (broker step). Derived server-side by
15469
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15470
+ */
15471
+ mode: _enum([
15472
+ "standalone",
15473
+ "account",
15474
+ "broker"
15475
+ ]),
15439
15476
  discoveryMode: string(),
15440
15477
  /**
15441
15478
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17896,6 +17933,12 @@ Object.freeze({
17896
17933
  addonId: null,
17897
17934
  access: "create"
17898
17935
  },
17936
+ "deviceManager.adoptionListCandidateFilters": {
17937
+ capName: "device-manager",
17938
+ capScope: "system",
17939
+ addonId: null,
17940
+ access: "view"
17941
+ },
17899
17942
  "deviceManager.adoptionListCandidates": {
17900
17943
  capName: "device-manager",
17901
17944
  capScope: "system",
@@ -17944,12 +17987,30 @@ Object.freeze({
17944
17987
  addonId: null,
17945
17988
  access: "create"
17946
17989
  },
17990
+ "deviceManager.discoverAllProviders": {
17991
+ capName: "device-manager",
17992
+ capScope: "system",
17993
+ addonId: null,
17994
+ access: "create"
17995
+ },
17947
17996
  "deviceManager.discoverDevices": {
17948
17997
  capName: "device-manager",
17949
17998
  capScope: "system",
17950
17999
  addonId: null,
17951
18000
  access: "create"
17952
18001
  },
18002
+ "deviceManager.discoverProvider": {
18003
+ capName: "device-manager",
18004
+ capScope: "system",
18005
+ addonId: null,
18006
+ access: "create"
18007
+ },
18008
+ "deviceManager.discoveryProviders": {
18009
+ capName: "device-manager",
18010
+ capScope: "system",
18011
+ addonId: null,
18012
+ access: "view"
18013
+ },
17953
18014
  "deviceManager.enable": {
17954
18015
  capName: "device-manager",
17955
18016
  capScope: "system",
@@ -18100,6 +18161,18 @@ Object.freeze({
18100
18161
  addonId: null,
18101
18162
  access: "create"
18102
18163
  },
18164
+ "deviceManager.providerCreationType": {
18165
+ capName: "device-manager",
18166
+ capScope: "system",
18167
+ addonId: null,
18168
+ access: "view"
18169
+ },
18170
+ "deviceManager.providerDiscoveryParamsSchema": {
18171
+ capName: "device-manager",
18172
+ capScope: "system",
18173
+ addonId: null,
18174
+ access: "view"
18175
+ },
18103
18176
  "deviceManager.registerDevice": {
18104
18177
  capName: "device-manager",
18105
18178
  capScope: "system",
@@ -18316,6 +18389,18 @@ Object.freeze({
18316
18389
  addonId: null,
18317
18390
  access: "view"
18318
18391
  },
18392
+ "deviceProvider.getDiscoveryParamsSchema": {
18393
+ capName: "device-provider",
18394
+ capScope: "system",
18395
+ addonId: null,
18396
+ access: "view"
18397
+ },
18398
+ "deviceProvider.getManualCreationType": {
18399
+ capName: "device-provider",
18400
+ capScope: "system",
18401
+ addonId: null,
18402
+ access: "view"
18403
+ },
18319
18404
  "deviceProvider.getStatus": {
18320
18405
  capName: "device-provider",
18321
18406
  capScope: "system",
@@ -21174,7 +21259,7 @@ var AgentUIAddon = class extends BaseAddon {
21174
21259
  capability: adminUiCapability,
21175
21260
  provider: {
21176
21261
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
21177
- getVersion: async () => ({ version: "1.1.9" })
21262
+ getVersion: async () => ({ version: "1.1.11" })
21178
21263
  }
21179
21264
  }];
21180
21265
  }