@camstack/types 1.2.544 → 1.2.546

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CiqzUHwB.js");
2
+ const require_sleep = require("./sleep-vzHEmsrO.js");
3
3
  const require_event_category = require("./event-category-BC4RRerT.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-DrGLxjVF.js");
5
5
  const require_implemented_methods = require("./implemented-methods-8AU92riC.js");
@@ -36993,6 +36993,266 @@ function prepareRecipeUnits(recipe, resolver) {
36993
36993
  }
36994
36994
  }
36995
36995
  //#endregion
36996
+ //#region src/automation/leaf-catalog.ts
36997
+ /** Picker groups, in display order. */
36998
+ var AUTOMATION_LEAF_CATEGORIES = [
36999
+ "devices",
37000
+ "time",
37001
+ "cameras",
37002
+ "events",
37003
+ "logic",
37004
+ "system"
37005
+ ];
37006
+ var EVENT_CONTEXTS = ["trigger", "any"];
37007
+ var STATE_CONTEXTS = [
37008
+ "trigger",
37009
+ "guard",
37010
+ "any"
37011
+ ];
37012
+ var AUTOMATION_LEAF_CATALOG = {
37013
+ detection: {
37014
+ kind: "detection",
37015
+ category: "cameras",
37016
+ role: "event",
37017
+ allowedIn: EVENT_CONTEXTS,
37018
+ i18nKey: "automation.leafCatalog.detection",
37019
+ keywords: [
37020
+ "camera",
37021
+ "person",
37022
+ "vehicle",
37023
+ "animal",
37024
+ "object",
37025
+ "motion",
37026
+ "detected"
37027
+ ],
37028
+ needsDeviceValue: false,
37029
+ seed: () => ({
37030
+ kind: "detection",
37031
+ subjects: [{ macro: "person" }],
37032
+ deviceIds: []
37033
+ })
37034
+ },
37035
+ stationary: {
37036
+ kind: "stationary",
37037
+ category: "cameras",
37038
+ role: "event",
37039
+ allowedIn: EVENT_CONTEXTS,
37040
+ i18nKey: "automation.leafCatalog.stationary",
37041
+ keywords: [
37042
+ "camera",
37043
+ "parked",
37044
+ "stops",
37045
+ "leaves",
37046
+ "left",
37047
+ "appeared",
37048
+ "object"
37049
+ ],
37050
+ needsDeviceValue: false,
37051
+ seed: () => ({
37052
+ kind: "stationary",
37053
+ deviceIds: [],
37054
+ phase: "appeared"
37055
+ })
37056
+ },
37057
+ "device-becomes": {
37058
+ kind: "device-becomes",
37059
+ category: "devices",
37060
+ role: "event",
37061
+ allowedIn: EVENT_CONTEXTS,
37062
+ i18nKey: "automation.leafCatalog.device-becomes",
37063
+ keywords: [
37064
+ "device",
37065
+ "value",
37066
+ "changes",
37067
+ "turns",
37068
+ "on",
37069
+ "off",
37070
+ "above",
37071
+ "below",
37072
+ "state"
37073
+ ],
37074
+ needsDeviceValue: true,
37075
+ seed: () => ({
37076
+ kind: "device-becomes",
37077
+ deviceId: 0,
37078
+ cap: "",
37079
+ fieldPath: ""
37080
+ })
37081
+ },
37082
+ "device-event": {
37083
+ kind: "device-event",
37084
+ category: "events",
37085
+ role: "event",
37086
+ allowedIn: EVENT_CONTEXTS,
37087
+ i18nKey: "automation.leafCatalog.device-event",
37088
+ keywords: [
37089
+ "event",
37090
+ "system",
37091
+ "button",
37092
+ "press",
37093
+ "doorbell",
37094
+ "alarm",
37095
+ "category"
37096
+ ],
37097
+ needsDeviceValue: false,
37098
+ seed: () => ({
37099
+ kind: "device-event",
37100
+ category: ""
37101
+ })
37102
+ },
37103
+ schedule: {
37104
+ kind: "schedule",
37105
+ category: "time",
37106
+ role: "event",
37107
+ allowedIn: EVENT_CONTEXTS,
37108
+ i18nKey: "automation.leafCatalog.schedule",
37109
+ keywords: [
37110
+ "time",
37111
+ "clock",
37112
+ "daily",
37113
+ "cron",
37114
+ "sunrise",
37115
+ "sunset",
37116
+ "at",
37117
+ "weekday"
37118
+ ],
37119
+ needsDeviceValue: false,
37120
+ seed: () => ({
37121
+ kind: "schedule",
37122
+ cron: "0 30 23 * * *"
37123
+ })
37124
+ },
37125
+ interval: {
37126
+ kind: "interval",
37127
+ category: "time",
37128
+ role: "event",
37129
+ allowedIn: EVENT_CONTEXTS,
37130
+ i18nKey: "automation.leafCatalog.interval",
37131
+ keywords: [
37132
+ "time",
37133
+ "every",
37134
+ "minutes",
37135
+ "repeat",
37136
+ "periodic",
37137
+ "timer"
37138
+ ],
37139
+ needsDeviceValue: false,
37140
+ seed: () => ({
37141
+ kind: "interval",
37142
+ minutes: 5
37143
+ })
37144
+ },
37145
+ manual: {
37146
+ kind: "manual",
37147
+ category: "system",
37148
+ role: "event",
37149
+ allowedIn: EVENT_CONTEXTS,
37150
+ i18nKey: "automation.leafCatalog.manual",
37151
+ keywords: [
37152
+ "run",
37153
+ "button",
37154
+ "hand",
37155
+ "test",
37156
+ "on demand"
37157
+ ],
37158
+ needsDeviceValue: false,
37159
+ seed: () => ({ kind: "manual" })
37160
+ },
37161
+ "device-is": {
37162
+ kind: "device-is",
37163
+ category: "devices",
37164
+ role: "state",
37165
+ allowedIn: STATE_CONTEXTS,
37166
+ i18nKey: "automation.leafCatalog.device-is",
37167
+ keywords: [
37168
+ "device",
37169
+ "value",
37170
+ "is",
37171
+ "equals",
37172
+ "above",
37173
+ "below",
37174
+ "held",
37175
+ "stable",
37176
+ "for"
37177
+ ],
37178
+ needsDeviceValue: true,
37179
+ seed: () => ({
37180
+ kind: "device-is",
37181
+ deviceId: 0,
37182
+ cap: "",
37183
+ fieldPath: "",
37184
+ operator: "eq",
37185
+ value: ""
37186
+ })
37187
+ },
37188
+ "stationary-present": {
37189
+ kind: "stationary-present",
37190
+ category: "cameras",
37191
+ role: "state",
37192
+ allowedIn: STATE_CONTEXTS,
37193
+ i18nKey: "automation.leafCatalog.stationary-present",
37194
+ keywords: [
37195
+ "camera",
37196
+ "parked",
37197
+ "present",
37198
+ "car",
37199
+ "object",
37200
+ "still there"
37201
+ ],
37202
+ needsDeviceValue: false,
37203
+ seed: () => ({
37204
+ kind: "stationary-present",
37205
+ deviceId: 0
37206
+ })
37207
+ },
37208
+ expression: {
37209
+ kind: "expression",
37210
+ category: "logic",
37211
+ role: "state",
37212
+ allowedIn: STATE_CONTEXTS,
37213
+ i18nKey: "automation.leafCatalog.expression",
37214
+ keywords: [
37215
+ "formula",
37216
+ "math",
37217
+ "arithmetic",
37218
+ "sum",
37219
+ "compare",
37220
+ "calculate",
37221
+ "held"
37222
+ ],
37223
+ needsDeviceValue: false,
37224
+ seed: () => ({
37225
+ kind: "expression",
37226
+ expr: "",
37227
+ bindings: {}
37228
+ })
37229
+ }
37230
+ };
37231
+ /** Every kind in display order: events first, then states. */
37232
+ var AUTOMATION_LEAF_KINDS = [
37233
+ "detection",
37234
+ "stationary",
37235
+ "device-becomes",
37236
+ "device-event",
37237
+ "schedule",
37238
+ "interval",
37239
+ "manual",
37240
+ "device-is",
37241
+ "stationary-present",
37242
+ "expression"
37243
+ ];
37244
+ function leafCatalogEntry(kind) {
37245
+ return AUTOMATION_LEAF_CATALOG[kind];
37246
+ }
37247
+ /** A blank row of one kind. */
37248
+ function seedLeaf(kind) {
37249
+ return AUTOMATION_LEAF_CATALOG[kind].seed();
37250
+ }
37251
+ /** The kinds a context may add, in display order. */
37252
+ function leafKindsFor(context) {
37253
+ return AUTOMATION_LEAF_KINDS.filter((kind) => AUTOMATION_LEAF_CATALOG[kind].allowedIn.includes(context));
37254
+ }
37255
+ //#endregion
36996
37256
  //#region src/automation/export-entities.ts
36997
37257
  function errorText(err) {
36998
37258
  return err instanceof Error ? err.message : String(err);
@@ -46252,7 +46512,7 @@ async function runFanOut(calls, invoke) {
46252
46512
  //#region src/generated/history-catalog.ts
46253
46513
  /**
46254
46514
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
46255
- * 44 caps with series (87 series), 37 caps answered `'none'`.
46515
+ * 44 caps with series (89 series), 36 caps answered `'none'`.
46256
46516
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
46257
46517
  */
46258
46518
  var HISTORY_CATALOG = {
@@ -46528,6 +46788,8 @@ var HISTORY_CATALOG = {
46528
46788
  minIntervalMs: 3e4
46529
46789
  } },
46530
46790
  "pet-feeder": {
46791
+ "feeding": { kind: "boolean" },
46792
+ "eating": { kind: "boolean" },
46531
46793
  "foodLevel": { kind: "gauge" },
46532
46794
  "bowlFood": { kind: "gauge" },
46533
46795
  "food1": { kind: "gauge" },
@@ -46736,7 +46998,6 @@ var HISTORY_NONE_CAPS = [
46736
46998
  "color",
46737
46999
  "control",
46738
47000
  "day-night",
46739
- "device-discovery",
46740
47001
  "doorbell",
46741
47002
  "event-emitter",
46742
47003
  "feature-probe",
@@ -49577,29 +49838,37 @@ var deviceAdminLinkCapability = {
49577
49838
  getAdminLink: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" }) }
49578
49839
  };
49579
49840
  //#endregion
49580
- //#region src/capabilities/device-discovery.cap.ts
49581
- /**
49582
- * device-discovery — device-scoped capability for parents that host /
49583
- * enumerate child devices (Reolink Hub / NVR, ONVIF gateway, future
49584
- * integrations). The parent advertises a list of discoverable children,
49585
- * and the operator promotes a subset to real devices via `adoptDevice`.
49586
- * Child lifecycle (kernel device create/remove, parent reference) is
49587
- * owned by the framework so a single shared `<DiscoveryPanel />` can
49588
- * drive any integration.
49589
- *
49590
- * Boundaries:
49591
- * - The cap exposes ENUMERATION + ADOPT/RELEASE only. The protocol
49592
- * used to discover children (CGI poll, mDNS, push from hub, ...)
49593
- * is the integration's business; results land in `runtimeState`
49594
- * so the panel can render without a fresh round-trip.
49595
- * - `childNativeId` is integration-defined and must be stable across
49596
- * reboots so re-discovery doesn't duplicate adopted children.
49597
- * - `adoptDevice` returns the new `deviceId` so the UI can navigate
49598
- * directly to the freshly-created child's settings page.
49599
- */
49600
- /**
49601
- * Status enum for a discovered device. Mirrors the Reolink simpleEvent
49602
- * lifecycle (`online` / `sleeping` / `offline`) — generic enough for
49841
+ //#region src/capabilities/device-adoption.cap.ts
49842
+ /**
49843
+ * `device-adoption` — generic discovery + adoption surface,
49844
+ * system-scoped collection (one provider per integration addon), routed
49845
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
49846
+ * pin model as `connection-test`. The admin UI keeps using
49847
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
49848
+ * successor to `ha-discovery`:
49849
+ * keyed by `integrationId` (the addon resolves integrationId → broker
49850
+ * internally) rather than a connection-specific `brokerId`, and it
49851
+ * OWNS the shared `DiscoveredChildDevice` candidate type
49852
+ * (declared below) so a single shared adoption modal renders any integration's
49853
+ * candidate tree.
49854
+ *
49855
+ * UI flow (Integrations page → integration detail):
49856
+ * 1. `listCandidates({integrationId, page, pageSize, filter})` →
49857
+ * paginated candidate list, each row collapsed.
49858
+ * 2. User expands a row → `getCandidate({integrationId,
49859
+ * childNativeId})` returns the single candidate (with its nested
49860
+ * `children`) for the accordion render.
49861
+ * 3. User clicks "Adopt" on one or more candidates →
49862
+ * `adopt({integrationId, childNativeIds, perCandidate?})`
49863
+ * materialises one parent CamStack device per candidate plus its
49864
+ * accessory children. `perCandidate[childNativeId]` carries an
49865
+ * optional display-name override + a `hiddenChildIds` pre-hide set
49866
+ * (the parent's `accessories.hiddenChildIds` gates UI visibility).
49867
+ * 4. User clicks "Release" → `release({integrationId, camDeviceId})`
49868
+ * removes the parent + every child from the kernel registry.
49869
+ */
49870
+ /**
49871
+ * Status enum for a discovered device. Generic enough for
49603
49872
  * battery cams, awake cams, and unreachable cams alike.
49604
49873
  */
49605
49874
  var DiscoveredChildStatusSchema = zod.z.enum([
@@ -49616,12 +49885,12 @@ var DiscoveredChildDeviceSchema = zod.z.lazy(() => zod.z.object({
49616
49885
  /** DeviceType the child should be created with on adopt. */
49617
49886
  type: zod.z.enum(require_composed_stable_id.DeviceType),
49618
49887
  status: DiscoveredChildStatusSchema,
49619
- /** Free-form integration-specific metadata surfaced in the panel. */
49888
+ /** Free-form integration-specific metadata surfaced in the adoption modal. */
49620
49889
  metadata: zod.z.object({
49621
49890
  model: zod.z.string().optional(),
49622
49891
  serialNumber: zod.z.string().optional(),
49623
49892
  uid: zod.z.string().optional(),
49624
- /** Reolink: 0-based channel index inside the parent NVR/Hub. */
49893
+ /** Reolink: 0-based channel index inside the parent NVR. */
49625
49894
  rtspChannel: zod.z.number().int().nonnegative().optional(),
49626
49895
  isBattery: zod.z.boolean().optional(),
49627
49896
  isDoorbell: zod.z.boolean().optional(),
@@ -49637,139 +49906,24 @@ var DiscoveredChildDeviceSchema = zod.z.lazy(() => zod.z.object({
49637
49906
  }).default({}),
49638
49907
  /**
49639
49908
  * `true` when the framework already created a child device for this
49640
- * `childNativeId` under the current parent. The panel uses it to
49909
+ * `childNativeId` under the current parent. The adoption modal uses it to
49641
49910
  * gate the Add/Remove button and surface the existing `deviceId`.
49642
49911
  */
49643
49912
  alreadyAdopted: zod.z.boolean(),
49644
49913
  /** When `alreadyAdopted=true`, the framework-assigned child device id. */
49645
49914
  adoptedDeviceId: zod.z.number().int().nonnegative().nullable(),
49646
- /** Capability names the candidate advertises — integrations populate, Hubs omit. */
49915
+ /** Capability names the candidate advertises — integrations populate, flat enumerations omit. */
49647
49916
  capabilities: zod.z.array(zod.z.string()).readonly().optional(),
49648
- /** Feature flags the candidate advertises — integrations populate, Hubs omit. */
49917
+ /** Feature flags the candidate advertises — integrations populate, flat enumerations omit. */
49649
49918
  features: zod.z.array(zod.z.string()).readonly().optional(),
49650
49919
  /** Upstream-system identity + rendering hints for the candidate. */
49651
49920
  sourceInfo: SourceInfoSchema.optional(),
49652
- /** Nested entity-children for accordion preview — integrations populate, Hubs omit. */
49921
+ /** Nested entity-children for accordion preview — integrations populate, flat enumerations omit. */
49653
49922
  children: zod.z.array(DiscoveredChildDeviceSchema).readonly().optional(),
49654
49923
  /** `childNativeId` of the gateway candidate in the same list this device sits behind. */
49655
49924
  parentStableId: zod.z.string().optional()
49656
49925
  }));
49657
49926
  /**
49658
- * Status block — populated by the integration after each
49659
- * `refreshDiscovery` (or push-driven update). The runtime-state slice
49660
- * is what the panel reads via the per-device proxy; `getStatus`
49661
- * returns the same payload via the codegen'd auto-injection.
49662
- */
49663
- var DeviceDiscoveryStatusSchema = zod.z.object({
49664
- discovered: zod.z.array(DiscoveredChildDeviceSchema),
49665
- /** Wall-clock ms of the last successful enumeration. */
49666
- lastDiscoveryAt: zod.z.number().int().nonnegative().nullable(),
49667
- /** Last error surfaced from the source (rendered as a banner). */
49668
- lastError: zod.z.string().nullable()
49669
- });
49670
- var deviceDiscoveryCapability = {
49671
- name: "device-discovery",
49672
- scope: "device",
49673
- deviceNative: true,
49674
- mode: "singleton",
49675
- deviceTypes: [require_composed_stable_id.DeviceType.Hub],
49676
- status: {
49677
- schema: DeviceDiscoveryStatusSchema,
49678
- kind: "poll"
49679
- },
49680
- runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: zod.z.number().int().nonnegative() }),
49681
- /**
49682
- * Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
49683
- *
49684
- * See `RuntimeStateDurability`. Enforced by
49685
- * `scripts/check-runtime-state-durability.ts`.
49686
- */
49687
- durability: "session",
49688
- /**
49689
- * History (D850): none — inventory.
49690
- */
49691
- history: "none",
49692
- methods: {
49693
- /**
49694
- * Snapshot of the current `discovered` list. Returns the
49695
- * runtime-state cache — call `refreshDiscovery` first if a
49696
- * fresh round-trip to the source is required.
49697
- */
49698
- listDiscovered: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.array(DiscoveredChildDeviceSchema).readonly()),
49699
- /**
49700
- * Force the integration to re-enumerate and update the
49701
- * runtime-state slice. Returns the freshly-enumerated list (also
49702
- * available via `listDiscovered` post-call).
49703
- */
49704
- refreshDiscovery: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.array(DiscoveredChildDeviceSchema).readonly(), {
49705
- kind: "mutation",
49706
- auth: "admin"
49707
- }),
49708
- /**
49709
- * Promote a discovered entry to a real child device. The framework
49710
- * creates the child via `kernel.devices.create()` with
49711
- * `parentDeviceId = parent.id` and seeds the child's config from
49712
- * `childInitialConfig` (driver-defined; usually carries channel +
49713
- * uid + parent reference). Returns the kernel-assigned numeric id.
49714
- */
49715
- adoptDevice: require_sleep.method(zod.z.object({
49716
- deviceId: zod.z.number().int().nonnegative(),
49717
- childNativeId: zod.z.string(),
49718
- /** Optional override for the child's display name. */
49719
- name: zod.z.string().optional()
49720
- }), zod.z.object({
49721
- deviceId: zod.z.number().int().nonnegative(),
49722
- stableId: zod.z.string()
49723
- }), {
49724
- kind: "mutation",
49725
- auth: "admin"
49726
- }),
49727
- /**
49728
- * Inverse of `adoptDevice`: removes the child device from the
49729
- * kernel registry. The discovered entry remains in the
49730
- * enumeration (status updates resume) so the operator can re-adopt
49731
- * it later without a fresh refresh.
49732
- */
49733
- releaseDevice: require_sleep.method(zod.z.object({
49734
- deviceId: zod.z.number().int().nonnegative(),
49735
- childDeviceId: zod.z.number().int().nonnegative()
49736
- }), zod.z.void(), {
49737
- kind: "mutation",
49738
- auth: "admin"
49739
- })
49740
- }
49741
- };
49742
- //#endregion
49743
- //#region src/capabilities/device-adoption.cap.ts
49744
- /**
49745
- * `device-adoption` — generic discovery + adoption surface,
49746
- * system-scoped collection (one provider per integration addon), routed
49747
- * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
49748
- * pin model as `connection-test`. The admin UI keeps using
49749
- * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
49750
- * successor to `ha-discovery`:
49751
- * keyed by `integrationId` (the addon resolves integrationId → broker
49752
- * internally) rather than a connection-specific `brokerId`, and it
49753
- * REUSES the shared `DiscoveredChildDevice` candidate type from
49754
- * `device-discovery.cap.ts` so a single shared adoption panel renders
49755
- * any integration's candidate tree.
49756
- *
49757
- * UI flow (Integrations page → integration detail):
49758
- * 1. `listCandidates({integrationId, page, pageSize, filter})` →
49759
- * paginated candidate list, each row collapsed.
49760
- * 2. User expands a row → `getCandidate({integrationId,
49761
- * childNativeId})` returns the single candidate (with its nested
49762
- * `children`) for the accordion render.
49763
- * 3. User clicks "Adopt" on one or more candidates →
49764
- * `adopt({integrationId, childNativeIds, perCandidate?})`
49765
- * materialises one parent CamStack device per candidate plus its
49766
- * accessory children. `perCandidate[childNativeId]` carries an
49767
- * optional display-name override + a `hiddenChildIds` pre-hide set
49768
- * (the parent's `accessories.hiddenChildIds` gates UI visibility).
49769
- * 4. User clicks "Release" → `release({integrationId, camDeviceId})`
49770
- * removes the parent + every child from the kernel registry.
49771
- */
49772
- /**
49773
49927
  * Provider-declared discovery *granularity* filter (the keystone of the
49774
49928
  * single-entity-import design). A provider advertises which discovery
49775
49929
  * granularities it supports via `listCandidateFilters`; the operator picks
@@ -76435,9 +76589,13 @@ var petFeederCapability = {
76435
76589
  */
76436
76590
  durability: "session",
76437
76591
  /**
76438
- * History (D850): recorded series.
76592
+ * History (D850): recorded series. `feeding` / `eating` are the meals the
76593
+ * device hero's "Meals" button names — change-only booleans, so a dispense
76594
+ * or a pet at the bowl is one span on the history.
76439
76595
  */
76440
76596
  history: { fields: {
76597
+ feeding: { kind: "boolean" },
76598
+ eating: { kind: "boolean" },
76441
76599
  foodLevel: { kind: "gauge" },
76442
76600
  bowlFood: { kind: "gauge" },
76443
76601
  food1: { kind: "gauge" },
@@ -91469,7 +91627,6 @@ var CAPABILITY_NAMES = {
91469
91627
  deviceAdminLink: "device-admin-link",
91470
91628
  deviceAdoption: "device-adoption",
91471
91629
  deviceCredentials: "device-credentials",
91472
- deviceDiscovery: "device-discovery",
91473
91630
  deviceExport: "device-export",
91474
91631
  deviceExtension: "device-extension",
91475
91632
  deviceHistory: "device-history",
@@ -91840,10 +91997,6 @@ var CAPABILITY_ROUTER_KEYS = [
91840
91997
  key: "deviceCredentials",
91841
91998
  name: "device-credentials"
91842
91999
  },
91843
- {
91844
- key: "deviceDiscovery",
91845
- name: "device-discovery"
91846
- },
91847
92000
  {
91848
92001
  key: "deviceExport",
91849
92002
  name: "device-export"
@@ -92513,7 +92666,6 @@ var ALL_CAPABILITY_DEFINITIONS = [
92513
92666
  deviceAdminLinkCapability,
92514
92667
  deviceAdoptionCapability,
92515
92668
  deviceCredentialsCapability,
92516
- deviceDiscoveryCapability,
92517
92669
  deviceExportCapability,
92518
92670
  deviceExtensionCapability,
92519
92671
  deviceHistoryCapability,
@@ -100091,7 +100243,6 @@ var DEVICE_LOCAL_STATE_CAPS = {
100091
100243
  control: controlCapability,
100092
100244
  cover: coverCapability,
100093
100245
  dayNight: dayNightCapability,
100094
- deviceDiscovery: deviceDiscoveryCapability,
100095
100246
  deviceStatus: deviceStatusCapability,
100096
100247
  dishwasher: dishwasherCapability,
100097
100248
  doNotDisturb: doNotDisturbCapability,
@@ -106355,7 +106506,6 @@ var HERO_CAP_COVERAGE = {
106355
106506
  "day-night": { none: NOT_A_HERO_FACT },
106356
106507
  "detection-pipeline": { none: NOT_A_HERO_FACT },
106357
106508
  "device-admin-link": { none: NOT_A_HERO_FACT },
106358
- "device-discovery": { none: NOT_A_HERO_FACT },
106359
106509
  "device-extension": { none: NOT_A_HERO_FACT },
106360
106510
  "device-ops": { none: NOT_A_HERO_FACT },
106361
106511
  "device-runs": { none: NOT_A_HERO_FACT },
@@ -108286,41 +108436,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
108286
108436
  access: "create",
108287
108437
  role: "admin"
108288
108438
  },
108289
- "deviceDiscovery.adoptDevice": {
108290
- capName: "device-discovery",
108291
- capScope: "device",
108292
- addonId: null,
108293
- access: "create",
108294
- role: "admin"
108295
- },
108296
- "deviceDiscovery.getStatus": {
108297
- capName: "device-discovery",
108298
- capScope: "device",
108299
- addonId: null,
108300
- access: "view",
108301
- role: "viewer"
108302
- },
108303
- "deviceDiscovery.listDiscovered": {
108304
- capName: "device-discovery",
108305
- capScope: "device",
108306
- addonId: null,
108307
- access: "view",
108308
- role: "viewer"
108309
- },
108310
- "deviceDiscovery.refreshDiscovery": {
108311
- capName: "device-discovery",
108312
- capScope: "device",
108313
- addonId: null,
108314
- access: "create",
108315
- role: "admin"
108316
- },
108317
- "deviceDiscovery.releaseDevice": {
108318
- capName: "device-discovery",
108319
- capScope: "device",
108320
- addonId: null,
108321
- access: "create",
108322
- role: "admin"
108323
- },
108324
108439
  "deviceExport.applyDeviceSettingsPatch": {
108325
108440
  capName: "device-export",
108326
108441
  capScope: "system",
@@ -116904,7 +117019,6 @@ var KNOWN_CAP_NAMES = [
116904
117019
  "device-admin-link",
116905
117020
  "device-adoption",
116906
117021
  "device-credentials",
116907
- "device-discovery",
116908
117022
  "device-export",
116909
117023
  "device-extension",
116910
117024
  "device-history",
@@ -117085,7 +117199,6 @@ var DEVICE_CAP_NAMES = [
117085
117199
  "day-night",
117086
117200
  "detection-pipeline",
117087
117201
  "device-admin-link",
117088
- "device-discovery",
117089
117202
  "device-extension",
117090
117203
  "device-ops",
117091
117204
  "device-runs",
@@ -119178,7 +119291,6 @@ var CAP_NAMES_WITH_STATUS = [
119178
119291
  "cover",
119179
119292
  "day-night",
119180
119293
  "device-adoption",
119181
- "device-discovery",
119182
119294
  "device-export",
119183
119295
  "device-status",
119184
119296
  "dishwasher",
@@ -119675,35 +119787,6 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
119675
119787
  form: "single",
119676
119788
  optional: false
119677
119789
  }],
119678
- "deviceDiscovery.adoptDevice": [{
119679
- name: "deviceId",
119680
- form: "single",
119681
- optional: false
119682
- }],
119683
- "deviceDiscovery.getStatus": [{
119684
- name: "deviceId",
119685
- form: "single",
119686
- optional: false
119687
- }],
119688
- "deviceDiscovery.listDiscovered": [{
119689
- name: "deviceId",
119690
- form: "single",
119691
- optional: false
119692
- }],
119693
- "deviceDiscovery.refreshDiscovery": [{
119694
- name: "deviceId",
119695
- form: "single",
119696
- optional: false
119697
- }],
119698
- "deviceDiscovery.releaseDevice": [{
119699
- name: "childDeviceId",
119700
- form: "single",
119701
- optional: false
119702
- }, {
119703
- name: "deviceId",
119704
- form: "single",
119705
- optional: false
119706
- }],
119707
119790
  "deviceExport.applyDeviceSettingsPatch": [{
119708
119791
  name: "deviceId",
119709
119792
  form: "single",
@@ -122599,7 +122682,7 @@ function getCapsByProviderKind(kind) {
122599
122682
  //#region src/generated/runtime-state-durability.ts
122600
122683
  /**
122601
122684
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
122602
- * `runtimeState`. 82 caps: 41 `restored`, 41 `session`.
122685
+ * `runtimeState`. 81 caps: 41 `restored`, 40 `session`.
122603
122686
  *
122604
122687
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
122605
122688
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -122678,10 +122761,6 @@ var RUNTIME_STATE_POLICY = {
122678
122761
  durability: "restored",
122679
122762
  volatileFields: ["lastFetchedAt"]
122680
122763
  },
122681
- "device-discovery": {
122682
- durability: "session",
122683
- volatileFields: []
122684
- },
122685
122764
  "device-status": {
122686
122765
  durability: "restored",
122687
122766
  volatileFields: ["lastChangedAt"]
@@ -136212,6 +136291,9 @@ exports.AUDIO_PRESETS = require_implemented_methods.AUDIO_PRESETS;
136212
136291
  exports.AUDIO_SCALE_EPOCH_ISO = AUDIO_SCALE_EPOCH_ISO;
136213
136292
  exports.AUDIO_SCALE_EPOCH_MS = AUDIO_SCALE_EPOCH_MS;
136214
136293
  exports.AUTOMATIC_HUB_ADDRESS_FLAGS = AUTOMATIC_HUB_ADDRESS_FLAGS;
136294
+ exports.AUTOMATION_LEAF_CATALOG = AUTOMATION_LEAF_CATALOG;
136295
+ exports.AUTOMATION_LEAF_CATEGORIES = AUTOMATION_LEAF_CATEGORIES;
136296
+ exports.AUTOMATION_LEAF_KINDS = AUTOMATION_LEAF_KINDS;
136215
136297
  exports.AUTO_SHARE_HEADROOM = AUTO_SHARE_HEADROOM;
136216
136298
  exports.AUTO_TUNE_FAMILY = AUTO_TUNE_FAMILY;
136217
136299
  exports.AcceleratorComputeSchema = AcceleratorComputeSchema;
@@ -136806,7 +136888,6 @@ exports.DeviceConfig = DeviceConfig;
136806
136888
  exports.DeviceCredentialSchema = DeviceCredentialSchema;
136807
136889
  exports.DeviceCredentialStatusSchema = DeviceCredentialStatusSchema;
136808
136890
  exports.DeviceDataEntrySchema = DeviceDataEntrySchema;
136809
- exports.DeviceDiscoveryStatusSchema = DeviceDiscoveryStatusSchema;
136810
136891
  exports.DeviceEnrollProofSchema = DeviceEnrollProofSchema;
136811
136892
  exports.DeviceExportExposeInputSchema = ExposeInputSchema;
136812
136893
  exports.DeviceExportInstancePinSchema = InstancePinSchema;
@@ -139023,7 +139104,6 @@ exports.deviceAttentionKind = deviceAttentionKind;
139023
139104
  exports.deviceBackendToFormat = deviceBackendToFormat;
139024
139105
  exports.deviceCredentialsCapability = deviceCredentialsCapability;
139025
139106
  exports.deviceCustomAction = require_sleep.deviceCustomAction;
139026
- exports.deviceDiscoveryCapability = deviceDiscoveryCapability;
139027
139107
  exports.deviceDoFamily = deviceDoFamily;
139028
139108
  exports.deviceExportCapability = deviceExportCapability;
139029
139109
  exports.deviceExportStatusInstanceOf = statusInstanceOf;
@@ -139365,6 +139445,8 @@ exports.kindsForDiscriminator = kindsForDiscriminator;
139365
139445
  exports.knownSecretCount = require_sleep.knownSecretCount;
139366
139446
  exports.knownValues = knownValues;
139367
139447
  exports.lawnMowerControlCapability = lawnMowerControlCapability;
139448
+ exports.leafCatalogEntry = leafCatalogEntry;
139449
+ exports.leafKindsFor = leafKindsFor;
139368
139450
  exports.legacyAutoLinkIds = legacyAutoLinkIds;
139369
139451
  exports.legacyImageMode = legacyImageMode;
139370
139452
  exports.legacyModeOf = legacyModeOf;
@@ -139829,6 +139911,7 @@ exports.secretViewsOf = require_sleep.secretViewsOf;
139829
139911
  exports.secretsOverMigrationApi = require_sleep.secretsOverMigrationApi;
139830
139912
  exports.secureActuationFor = secureActuationFor;
139831
139913
  exports.seedInstanceOnce = seedInstanceOnce;
139914
+ exports.seedLeaf = seedLeaf;
139832
139915
  exports.seekPatch = seekPatch;
139833
139916
  exports.selectAppConnectionEndpoints = selectAppConnectionEndpoints;
139834
139917
  exports.selectAssignedProfileSlots = require_sleep.selectAssignedProfileSlots;