@camstack/addon-cloudflare 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.
@@ -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({
@@ -12779,7 +12785,10 @@ method(object({
12779
12785
  }), FieldProbeResultSchema, {
12780
12786
  kind: "mutation",
12781
12787
  auth: "admin"
12782
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12788
+ }), method(object({
12789
+ addonId: string(),
12790
+ integrationId: string()
12791
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12783
12792
  addonId: string(),
12784
12793
  integrationId: string()
12785
12794
  }), AdoptionStatusSchema, {
@@ -12794,7 +12803,24 @@ method(object({
12794
12803
  }), method(ResyncInputSchema, ResyncResultSchema, {
12795
12804
  kind: "mutation",
12796
12805
  auth: "admin"
12806
+ }), method(object({}), object({ providers: array(object({
12807
+ addonId: string(),
12808
+ label: string()
12809
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12810
+ addonId: string(),
12811
+ label: string(),
12812
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12813
+ error: string().nullable()
12814
+ })).readonly() }), {
12815
+ kind: "mutation",
12816
+ auth: "admin"
12797
12817
  }), method(object({
12818
+ addonId: string(),
12819
+ params: record(string(), unknown()).optional()
12820
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12821
+ kind: "mutation",
12822
+ auth: "admin"
12823
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12798
12824
  deviceId: number(),
12799
12825
  key: string(),
12800
12826
  value: unknown()
@@ -15486,6 +15512,17 @@ var AvailableIntegrationTypeSchema = object({
15486
15512
  iconUrl: string().nullable(),
15487
15513
  color: string(),
15488
15514
  instanceMode: string(),
15515
+ /**
15516
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15517
+ * immediately then add devices, no config step/button), `account` (config
15518
+ * step), or `broker` (broker step). Derived server-side by
15519
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15520
+ */
15521
+ mode: _enum([
15522
+ "standalone",
15523
+ "account",
15524
+ "broker"
15525
+ ]),
15489
15526
  discoveryMode: string(),
15490
15527
  /**
15491
15528
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17946,6 +17983,12 @@ Object.freeze({
17946
17983
  addonId: null,
17947
17984
  access: "create"
17948
17985
  },
17986
+ "deviceManager.adoptionListCandidateFilters": {
17987
+ capName: "device-manager",
17988
+ capScope: "system",
17989
+ addonId: null,
17990
+ access: "view"
17991
+ },
17949
17992
  "deviceManager.adoptionListCandidates": {
17950
17993
  capName: "device-manager",
17951
17994
  capScope: "system",
@@ -17994,12 +18037,30 @@ Object.freeze({
17994
18037
  addonId: null,
17995
18038
  access: "create"
17996
18039
  },
18040
+ "deviceManager.discoverAllProviders": {
18041
+ capName: "device-manager",
18042
+ capScope: "system",
18043
+ addonId: null,
18044
+ access: "create"
18045
+ },
17997
18046
  "deviceManager.discoverDevices": {
17998
18047
  capName: "device-manager",
17999
18048
  capScope: "system",
18000
18049
  addonId: null,
18001
18050
  access: "create"
18002
18051
  },
18052
+ "deviceManager.discoverProvider": {
18053
+ capName: "device-manager",
18054
+ capScope: "system",
18055
+ addonId: null,
18056
+ access: "create"
18057
+ },
18058
+ "deviceManager.discoveryProviders": {
18059
+ capName: "device-manager",
18060
+ capScope: "system",
18061
+ addonId: null,
18062
+ access: "view"
18063
+ },
18003
18064
  "deviceManager.enable": {
18004
18065
  capName: "device-manager",
18005
18066
  capScope: "system",
@@ -18150,6 +18211,18 @@ Object.freeze({
18150
18211
  addonId: null,
18151
18212
  access: "create"
18152
18213
  },
18214
+ "deviceManager.providerCreationType": {
18215
+ capName: "device-manager",
18216
+ capScope: "system",
18217
+ addonId: null,
18218
+ access: "view"
18219
+ },
18220
+ "deviceManager.providerDiscoveryParamsSchema": {
18221
+ capName: "device-manager",
18222
+ capScope: "system",
18223
+ addonId: null,
18224
+ access: "view"
18225
+ },
18153
18226
  "deviceManager.registerDevice": {
18154
18227
  capName: "device-manager",
18155
18228
  capScope: "system",
@@ -18366,6 +18439,18 @@ Object.freeze({
18366
18439
  addonId: null,
18367
18440
  access: "view"
18368
18441
  },
18442
+ "deviceProvider.getDiscoveryParamsSchema": {
18443
+ capName: "device-provider",
18444
+ capScope: "system",
18445
+ addonId: null,
18446
+ access: "view"
18447
+ },
18448
+ "deviceProvider.getManualCreationType": {
18449
+ capName: "device-provider",
18450
+ capScope: "system",
18451
+ addonId: null,
18452
+ access: "view"
18453
+ },
18369
18454
  "deviceProvider.getStatus": {
18370
18455
  capName: "device-provider",
18371
18456
  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({
@@ -12779,7 +12785,10 @@ method(object({
12779
12785
  }), FieldProbeResultSchema, {
12780
12786
  kind: "mutation",
12781
12787
  auth: "admin"
12782
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12788
+ }), method(object({
12789
+ addonId: string(),
12790
+ integrationId: string()
12791
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12783
12792
  addonId: string(),
12784
12793
  integrationId: string()
12785
12794
  }), AdoptionStatusSchema, {
@@ -12794,7 +12803,24 @@ method(object({
12794
12803
  }), method(ResyncInputSchema, ResyncResultSchema, {
12795
12804
  kind: "mutation",
12796
12805
  auth: "admin"
12806
+ }), method(object({}), object({ providers: array(object({
12807
+ addonId: string(),
12808
+ label: string()
12809
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12810
+ addonId: string(),
12811
+ label: string(),
12812
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12813
+ error: string().nullable()
12814
+ })).readonly() }), {
12815
+ kind: "mutation",
12816
+ auth: "admin"
12797
12817
  }), method(object({
12818
+ addonId: string(),
12819
+ params: record(string(), unknown()).optional()
12820
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12821
+ kind: "mutation",
12822
+ auth: "admin"
12823
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12798
12824
  deviceId: number(),
12799
12825
  key: string(),
12800
12826
  value: unknown()
@@ -15486,6 +15512,17 @@ var AvailableIntegrationTypeSchema = object({
15486
15512
  iconUrl: string().nullable(),
15487
15513
  color: string(),
15488
15514
  instanceMode: string(),
15515
+ /**
15516
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15517
+ * immediately then add devices, no config step/button), `account` (config
15518
+ * step), or `broker` (broker step). Derived server-side by
15519
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15520
+ */
15521
+ mode: _enum([
15522
+ "standalone",
15523
+ "account",
15524
+ "broker"
15525
+ ]),
15489
15526
  discoveryMode: string(),
15490
15527
  /**
15491
15528
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17946,6 +17983,12 @@ Object.freeze({
17946
17983
  addonId: null,
17947
17984
  access: "create"
17948
17985
  },
17986
+ "deviceManager.adoptionListCandidateFilters": {
17987
+ capName: "device-manager",
17988
+ capScope: "system",
17989
+ addonId: null,
17990
+ access: "view"
17991
+ },
17949
17992
  "deviceManager.adoptionListCandidates": {
17950
17993
  capName: "device-manager",
17951
17994
  capScope: "system",
@@ -17994,12 +18037,30 @@ Object.freeze({
17994
18037
  addonId: null,
17995
18038
  access: "create"
17996
18039
  },
18040
+ "deviceManager.discoverAllProviders": {
18041
+ capName: "device-manager",
18042
+ capScope: "system",
18043
+ addonId: null,
18044
+ access: "create"
18045
+ },
17997
18046
  "deviceManager.discoverDevices": {
17998
18047
  capName: "device-manager",
17999
18048
  capScope: "system",
18000
18049
  addonId: null,
18001
18050
  access: "create"
18002
18051
  },
18052
+ "deviceManager.discoverProvider": {
18053
+ capName: "device-manager",
18054
+ capScope: "system",
18055
+ addonId: null,
18056
+ access: "create"
18057
+ },
18058
+ "deviceManager.discoveryProviders": {
18059
+ capName: "device-manager",
18060
+ capScope: "system",
18061
+ addonId: null,
18062
+ access: "view"
18063
+ },
18003
18064
  "deviceManager.enable": {
18004
18065
  capName: "device-manager",
18005
18066
  capScope: "system",
@@ -18150,6 +18211,18 @@ Object.freeze({
18150
18211
  addonId: null,
18151
18212
  access: "create"
18152
18213
  },
18214
+ "deviceManager.providerCreationType": {
18215
+ capName: "device-manager",
18216
+ capScope: "system",
18217
+ addonId: null,
18218
+ access: "view"
18219
+ },
18220
+ "deviceManager.providerDiscoveryParamsSchema": {
18221
+ capName: "device-manager",
18222
+ capScope: "system",
18223
+ addonId: null,
18224
+ access: "view"
18225
+ },
18153
18226
  "deviceManager.registerDevice": {
18154
18227
  capName: "device-manager",
18155
18228
  capScope: "system",
@@ -18366,6 +18439,18 @@ Object.freeze({
18366
18439
  addonId: null,
18367
18440
  access: "view"
18368
18441
  },
18442
+ "deviceProvider.getDiscoveryParamsSchema": {
18443
+ capName: "device-provider",
18444
+ capScope: "system",
18445
+ addonId: null,
18446
+ access: "view"
18447
+ },
18448
+ "deviceProvider.getManualCreationType": {
18449
+ capName: "device-provider",
18450
+ capScope: "system",
18451
+ addonId: null,
18452
+ access: "view"
18453
+ },
18369
18454
  "deviceProvider.getStatus": {
18370
18455
  capName: "device-provider",
18371
18456
  capScope: "system",
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_dist = require("../dist-Cw5ibC3S.js");
24
+ const require_dist = require("../dist-alvZIZxU.js");
25
25
  let node_path = require("node:path");
26
26
  node_path = __toESM(node_path);
27
27
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-DxU3y8vO.mjs";
1
+ import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-D4SKGARh.mjs";
2
2
  import * as path from "node:path";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { spawn } from "node:child_process";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-Cw5ibC3S.js");
2
+ const require_dist = require("../dist-alvZIZxU.js");
3
3
  //#region src/turn/cloudflare-turn.ts
4
4
  /**
5
5
  * Cloudflare returns ICE servers in several flavours depending on which
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-DxU3y8vO.mjs";
1
+ import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-D4SKGARh.mjs";
2
2
  //#region src/turn/cloudflare-turn.ts
3
3
  /**
4
4
  * Cloudflare returns ICE servers in several flavours depending on which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-cloudflare",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",