@camstack/addon-tailscale 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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-DDAvsWK1.js");
27
+ const require_dist = require("../dist-CWHKWdKw.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-C-euZDTO.mjs";
1
+ import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-DEJ-eXxc.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-B3AOslwX.mjs
4630
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6195,6 +6195,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6195
6195
  DeviceType["Switch"] = "switch";
6196
6196
  DeviceType["Sensor"] = "sensor";
6197
6197
  DeviceType["Thermostat"] = "thermostat";
6198
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6199
+ * `climate-control` cap surface with `Thermostat` but renders a
6200
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6201
+ * independent vertical/horizontal swing). Sources: native Gree, and
6202
+ * reusable by other AC integrations. */
6203
+ DeviceType["Climate"] = "climate";
6198
6204
  DeviceType["Button"] = "button";
6199
6205
  /** Generic stateless event emitter — carries a device's EXACT declared
6200
6206
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8349,7 +8355,7 @@ object({
8349
8355
  /** Ms epoch when the slice was last updated (push or command). */
8350
8356
  lastFetchedAt: number()
8351
8357
  });
8352
- DeviceType.Thermostat, method(object({
8358
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8353
8359
  deviceId: number().int().nonnegative(),
8354
8360
  mode: HvacModeSchema
8355
8361
  }), _void(), {
@@ -11034,10 +11040,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11034
11040
  id: string(),
11035
11041
  name: string(),
11036
11042
  type: string()
11037
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11043
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11038
11044
  kind: "mutation",
11039
11045
  auth: "admin"
11040
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11046
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11041
11047
  kind: "mutation",
11042
11048
  auth: "admin"
11043
11049
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12758,7 +12764,10 @@ method(object({
12758
12764
  }), FieldProbeResultSchema, {
12759
12765
  kind: "mutation",
12760
12766
  auth: "admin"
12761
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12767
+ }), method(object({
12768
+ addonId: string(),
12769
+ integrationId: string()
12770
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12762
12771
  addonId: string(),
12763
12772
  integrationId: string()
12764
12773
  }), AdoptionStatusSchema, {
@@ -12773,7 +12782,24 @@ method(object({
12773
12782
  }), method(ResyncInputSchema, ResyncResultSchema, {
12774
12783
  kind: "mutation",
12775
12784
  auth: "admin"
12785
+ }), method(object({}), object({ providers: array(object({
12786
+ addonId: string(),
12787
+ label: string()
12788
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12789
+ addonId: string(),
12790
+ label: string(),
12791
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12792
+ error: string().nullable()
12793
+ })).readonly() }), {
12794
+ kind: "mutation",
12795
+ auth: "admin"
12776
12796
  }), method(object({
12797
+ addonId: string(),
12798
+ params: record(string(), unknown()).optional()
12799
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12800
+ kind: "mutation",
12801
+ auth: "admin"
12802
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12777
12803
  deviceId: number(),
12778
12804
  key: string(),
12779
12805
  value: unknown()
@@ -15442,6 +15468,17 @@ var AvailableIntegrationTypeSchema = object({
15442
15468
  iconUrl: string().nullable(),
15443
15469
  color: string(),
15444
15470
  instanceMode: string(),
15471
+ /**
15472
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15473
+ * immediately then add devices, no config step/button), `account` (config
15474
+ * step), or `broker` (broker step). Derived server-side by
15475
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15476
+ */
15477
+ mode: _enum([
15478
+ "standalone",
15479
+ "account",
15480
+ "broker"
15481
+ ]),
15445
15482
  discoveryMode: string(),
15446
15483
  /**
15447
15484
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17963,6 +18000,12 @@ Object.freeze({
17963
18000
  addonId: null,
17964
18001
  access: "create"
17965
18002
  },
18003
+ "deviceManager.adoptionListCandidateFilters": {
18004
+ capName: "device-manager",
18005
+ capScope: "system",
18006
+ addonId: null,
18007
+ access: "view"
18008
+ },
17966
18009
  "deviceManager.adoptionListCandidates": {
17967
18010
  capName: "device-manager",
17968
18011
  capScope: "system",
@@ -18011,12 +18054,30 @@ Object.freeze({
18011
18054
  addonId: null,
18012
18055
  access: "create"
18013
18056
  },
18057
+ "deviceManager.discoverAllProviders": {
18058
+ capName: "device-manager",
18059
+ capScope: "system",
18060
+ addonId: null,
18061
+ access: "create"
18062
+ },
18014
18063
  "deviceManager.discoverDevices": {
18015
18064
  capName: "device-manager",
18016
18065
  capScope: "system",
18017
18066
  addonId: null,
18018
18067
  access: "create"
18019
18068
  },
18069
+ "deviceManager.discoverProvider": {
18070
+ capName: "device-manager",
18071
+ capScope: "system",
18072
+ addonId: null,
18073
+ access: "create"
18074
+ },
18075
+ "deviceManager.discoveryProviders": {
18076
+ capName: "device-manager",
18077
+ capScope: "system",
18078
+ addonId: null,
18079
+ access: "view"
18080
+ },
18020
18081
  "deviceManager.enable": {
18021
18082
  capName: "device-manager",
18022
18083
  capScope: "system",
@@ -18167,6 +18228,18 @@ Object.freeze({
18167
18228
  addonId: null,
18168
18229
  access: "create"
18169
18230
  },
18231
+ "deviceManager.providerCreationType": {
18232
+ capName: "device-manager",
18233
+ capScope: "system",
18234
+ addonId: null,
18235
+ access: "view"
18236
+ },
18237
+ "deviceManager.providerDiscoveryParamsSchema": {
18238
+ capName: "device-manager",
18239
+ capScope: "system",
18240
+ addonId: null,
18241
+ access: "view"
18242
+ },
18170
18243
  "deviceManager.registerDevice": {
18171
18244
  capName: "device-manager",
18172
18245
  capScope: "system",
@@ -18383,6 +18456,18 @@ Object.freeze({
18383
18456
  addonId: null,
18384
18457
  access: "view"
18385
18458
  },
18459
+ "deviceProvider.getDiscoveryParamsSchema": {
18460
+ capName: "device-provider",
18461
+ capScope: "system",
18462
+ addonId: null,
18463
+ access: "view"
18464
+ },
18465
+ "deviceProvider.getManualCreationType": {
18466
+ capName: "device-provider",
18467
+ capScope: "system",
18468
+ addonId: null,
18469
+ access: "view"
18470
+ },
18386
18471
  "deviceProvider.getStatus": {
18387
18472
  capName: "device-provider",
18388
18473
  capScope: "system",
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-B3AOslwX.mjs
4630
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6195,6 +6195,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6195
6195
  DeviceType["Switch"] = "switch";
6196
6196
  DeviceType["Sensor"] = "sensor";
6197
6197
  DeviceType["Thermostat"] = "thermostat";
6198
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6199
+ * `climate-control` cap surface with `Thermostat` but renders a
6200
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6201
+ * independent vertical/horizontal swing). Sources: native Gree, and
6202
+ * reusable by other AC integrations. */
6203
+ DeviceType["Climate"] = "climate";
6198
6204
  DeviceType["Button"] = "button";
6199
6205
  /** Generic stateless event emitter — carries a device's EXACT declared
6200
6206
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8349,7 +8355,7 @@ object({
8349
8355
  /** Ms epoch when the slice was last updated (push or command). */
8350
8356
  lastFetchedAt: number()
8351
8357
  });
8352
- DeviceType.Thermostat, method(object({
8358
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8353
8359
  deviceId: number().int().nonnegative(),
8354
8360
  mode: HvacModeSchema
8355
8361
  }), _void(), {
@@ -11034,10 +11040,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11034
11040
  id: string(),
11035
11041
  name: string(),
11036
11042
  type: string()
11037
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11043
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11038
11044
  kind: "mutation",
11039
11045
  auth: "admin"
11040
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11046
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11041
11047
  kind: "mutation",
11042
11048
  auth: "admin"
11043
11049
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12758,7 +12764,10 @@ method(object({
12758
12764
  }), FieldProbeResultSchema, {
12759
12765
  kind: "mutation",
12760
12766
  auth: "admin"
12761
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12767
+ }), method(object({
12768
+ addonId: string(),
12769
+ integrationId: string()
12770
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12762
12771
  addonId: string(),
12763
12772
  integrationId: string()
12764
12773
  }), AdoptionStatusSchema, {
@@ -12773,7 +12782,24 @@ method(object({
12773
12782
  }), method(ResyncInputSchema, ResyncResultSchema, {
12774
12783
  kind: "mutation",
12775
12784
  auth: "admin"
12785
+ }), method(object({}), object({ providers: array(object({
12786
+ addonId: string(),
12787
+ label: string()
12788
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12789
+ addonId: string(),
12790
+ label: string(),
12791
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12792
+ error: string().nullable()
12793
+ })).readonly() }), {
12794
+ kind: "mutation",
12795
+ auth: "admin"
12776
12796
  }), method(object({
12797
+ addonId: string(),
12798
+ params: record(string(), unknown()).optional()
12799
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12800
+ kind: "mutation",
12801
+ auth: "admin"
12802
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12777
12803
  deviceId: number(),
12778
12804
  key: string(),
12779
12805
  value: unknown()
@@ -15442,6 +15468,17 @@ var AvailableIntegrationTypeSchema = object({
15442
15468
  iconUrl: string().nullable(),
15443
15469
  color: string(),
15444
15470
  instanceMode: string(),
15471
+ /**
15472
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15473
+ * immediately then add devices, no config step/button), `account` (config
15474
+ * step), or `broker` (broker step). Derived server-side by
15475
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15476
+ */
15477
+ mode: _enum([
15478
+ "standalone",
15479
+ "account",
15480
+ "broker"
15481
+ ]),
15445
15482
  discoveryMode: string(),
15446
15483
  /**
15447
15484
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17963,6 +18000,12 @@ Object.freeze({
17963
18000
  addonId: null,
17964
18001
  access: "create"
17965
18002
  },
18003
+ "deviceManager.adoptionListCandidateFilters": {
18004
+ capName: "device-manager",
18005
+ capScope: "system",
18006
+ addonId: null,
18007
+ access: "view"
18008
+ },
17966
18009
  "deviceManager.adoptionListCandidates": {
17967
18010
  capName: "device-manager",
17968
18011
  capScope: "system",
@@ -18011,12 +18054,30 @@ Object.freeze({
18011
18054
  addonId: null,
18012
18055
  access: "create"
18013
18056
  },
18057
+ "deviceManager.discoverAllProviders": {
18058
+ capName: "device-manager",
18059
+ capScope: "system",
18060
+ addonId: null,
18061
+ access: "create"
18062
+ },
18014
18063
  "deviceManager.discoverDevices": {
18015
18064
  capName: "device-manager",
18016
18065
  capScope: "system",
18017
18066
  addonId: null,
18018
18067
  access: "create"
18019
18068
  },
18069
+ "deviceManager.discoverProvider": {
18070
+ capName: "device-manager",
18071
+ capScope: "system",
18072
+ addonId: null,
18073
+ access: "create"
18074
+ },
18075
+ "deviceManager.discoveryProviders": {
18076
+ capName: "device-manager",
18077
+ capScope: "system",
18078
+ addonId: null,
18079
+ access: "view"
18080
+ },
18020
18081
  "deviceManager.enable": {
18021
18082
  capName: "device-manager",
18022
18083
  capScope: "system",
@@ -18167,6 +18228,18 @@ Object.freeze({
18167
18228
  addonId: null,
18168
18229
  access: "create"
18169
18230
  },
18231
+ "deviceManager.providerCreationType": {
18232
+ capName: "device-manager",
18233
+ capScope: "system",
18234
+ addonId: null,
18235
+ access: "view"
18236
+ },
18237
+ "deviceManager.providerDiscoveryParamsSchema": {
18238
+ capName: "device-manager",
18239
+ capScope: "system",
18240
+ addonId: null,
18241
+ access: "view"
18242
+ },
18170
18243
  "deviceManager.registerDevice": {
18171
18244
  capName: "device-manager",
18172
18245
  capScope: "system",
@@ -18383,6 +18456,18 @@ Object.freeze({
18383
18456
  addonId: null,
18384
18457
  access: "view"
18385
18458
  },
18459
+ "deviceProvider.getDiscoveryParamsSchema": {
18460
+ capName: "device-provider",
18461
+ capScope: "system",
18462
+ addonId: null,
18463
+ access: "view"
18464
+ },
18465
+ "deviceProvider.getManualCreationType": {
18466
+ capName: "device-provider",
18467
+ capScope: "system",
18468
+ addonId: null,
18469
+ access: "view"
18470
+ },
18386
18471
  "deviceProvider.getStatus": {
18387
18472
  capName: "device-provider",
18388
18473
  capScope: "system",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DDAvsWK1.js");
5
+ const require_dist = require("../dist-CWHKWdKw.js");
6
6
  let node_child_process = require("node:child_process");
7
7
  let node_util = require("node:util");
8
8
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-C-euZDTO.mjs";
1
+ import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-DEJ-eXxc.mjs";
2
2
  import { execFile } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import { randomUUID } from "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",