@camstack/server 1.2.898 → 1.2.900

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.
Files changed (120) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/trpc/cap-router-runtime.js +1 -0
  3. package/dist/api/trpc/generated-cap-mounts.js +2 -1
  4. package/dist/api/trpc/generated-cap-routers.js +1944 -1870
  5. package/dist/core/addon/hub-addon-api.js +1 -0
  6. package/dist/core/moleculer/moleculer.service.js +1 -0
  7. package/package.json +10 -15
  8. package/system/dist/addon-runner.js +111 -8
  9. package/system/dist/addon-runner.mjs +111 -8
  10. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  11. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  12. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  13. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  14. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  15. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  16. package/system/dist/builtins/autotrack/index.js +1 -1
  17. package/system/dist/builtins/autotrack/index.mjs +1 -1
  18. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  19. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  20. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  21. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  22. package/system/dist/builtins/camera-grid/index.js +1 -1
  23. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  24. package/system/dist/builtins/composer/composer.addon.js +4 -4
  25. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  26. package/system/dist/builtins/console-logging/index.js +1 -1
  27. package/system/dist/builtins/console-logging/index.mjs +1 -1
  28. package/system/dist/builtins/core-blocks/composition-api.d.ts +37 -1
  29. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +14 -0
  30. package/system/dist/builtins/core-blocks/core-blocks.addon.js +516 -7
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +516 -7
  32. package/system/dist/builtins/core-blocks/link-contributions.d.ts +85 -0
  33. package/system/dist/builtins/core-blocks/power-source-service.d.ts +25 -1
  34. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  35. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  36. package/system/dist/builtins/device-manager/command-holds.d.ts +2 -0
  37. package/system/dist/builtins/device-manager/device-identifiers-action.d.ts +8 -0
  38. package/system/dist/builtins/device-manager/device-identity-index.d.ts +56 -2
  39. package/system/dist/builtins/device-manager/device-manager.addon.d.ts +1 -0
  40. package/system/dist/builtins/device-manager/device-manager.addon.js +1329 -84
  41. package/system/dist/builtins/device-manager/device-manager.addon.mjs +1316 -84
  42. package/system/dist/builtins/device-manager/device-meta-types.d.ts +9 -1
  43. package/system/dist/builtins/device-manager/device-provider-context.d.ts +3 -0
  44. package/system/dist/builtins/device-manager/device-row-store.d.ts +4 -2
  45. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
  46. package/system/dist/builtins/device-manager/identity-link-reconciler.d.ts +66 -0
  47. package/system/dist/builtins/device-manager/identity-links-store.d.ts +22 -0
  48. package/system/dist/builtins/device-manager/record-kinds.d.ts +2 -1
  49. package/system/dist/builtins/device-manager/state-refresh-scheduler.d.ts +92 -0
  50. package/system/dist/builtins/device-manager/state-refresh-wiring.d.ts +23 -0
  51. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  52. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  53. package/system/dist/builtins/keychain/index.js +4 -4
  54. package/system/dist/builtins/keychain/index.mjs +4 -4
  55. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  56. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  57. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  58. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  59. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  60. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  61. package/system/dist/builtins/loki-logging/index.js +1 -1
  62. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  63. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  64. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  65. package/system/dist/builtins/platform-probe/index.js +1 -1
  66. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  67. package/system/dist/builtins/record-entries/index.js +1 -1
  68. package/system/dist/builtins/record-entries/index.mjs +1 -1
  69. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  70. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  71. package/system/dist/builtins/snapshot/index.js +1 -1
  72. package/system/dist/builtins/snapshot/index.mjs +1 -1
  73. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  74. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  75. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  76. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  77. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  78. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  79. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  80. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  81. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  82. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  83. package/system/dist/builtins/winston-logging/index.js +1 -1
  84. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  85. package/system/dist/{capture-engine-BWS0KTbm.js → capture-engine-B3csK2sW.js} +1 -1
  86. package/system/dist/{capture-engine-DBQDaDxJ.mjs → capture-engine-CCAzcezv.mjs} +1 -1
  87. package/system/dist/{composition-sources-CGUWmf-T.mjs → composition-sources-BX7u-Hdf.mjs} +1 -1
  88. package/system/dist/{composition-sources-CDOW1dnY.js → composition-sources-Bkbk5Oh5.js} +1 -1
  89. package/system/dist/{constants-BwrRoq-j.js → constants-BqxCksdV.js} +1 -1
  90. package/system/dist/{constants-BmrLkwZs.mjs → constants-_bOm_ae5.mjs} +1 -1
  91. package/system/dist/{device-ca-BGgZXEto.mjs → device-ca-DRqN1P5Y.mjs} +1 -1
  92. package/system/dist/{device-ca-DiuwWyZY.js → device-ca-KNx_DazP.js} +1 -1
  93. package/system/dist/{dist-CCd8IeIU.js → dist-BNrIzdrJ.js} +514 -7
  94. package/system/dist/{dist-D7t8wLTF.mjs → dist-S-zGcCEr.mjs} +455 -8
  95. package/system/dist/file-host-worker.js +1 -1
  96. package/system/dist/file-host-worker.mjs +1 -1
  97. package/system/dist/{hub-identity-BohJeqdO.mjs → hub-identity-DSdbZxeR.mjs} +1 -1
  98. package/system/dist/{hub-identity-G_ZdyPpc.js → hub-identity-pN0LtUhx.js} +1 -1
  99. package/system/dist/{hub-mdns-ciao-CKD4EgkG.js → hub-mdns-ciao-GafEbDm8.js} +2 -2
  100. package/system/dist/{hub-mdns-ciao-D5RxSMrH.mjs → hub-mdns-ciao-wAcv5VBY.mjs} +2 -2
  101. package/system/dist/index.js +59 -12
  102. package/system/dist/index.mjs +55 -14
  103. package/system/dist/kernel/cap-router-builder.d.ts +7 -0
  104. package/system/dist/kernel/command-follow-up.d.ts +33 -0
  105. package/system/dist/kernel/command-observation.d.ts +3 -0
  106. package/system/dist/kernel/index.d.ts +3 -0
  107. package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +3 -1
  108. package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -1
  109. package/system/dist/kernel/state-refresh-policies.d.ts +53 -0
  110. package/system/dist/kernel/transport/child-cap-protocol.d.ts +6 -1
  111. package/system/dist/kernel/transport/local-child-registry.d.ts +14 -0
  112. package/system/dist/{legacy-integration-rows-door-Rm9JmIsl.mjs → legacy-integration-rows-door--186Wij_.mjs} +1 -1
  113. package/system/dist/{legacy-integration-rows-door-BgCl68ek.js → legacy-integration-rows-door-B1swGb0r.js} +1 -1
  114. package/system/dist/{rename-composition-block-DNO3mNEO.mjs → rename-composition-block-Cf5syiM4.mjs} +1 -1
  115. package/system/dist/{rename-composition-block-2Z2ED7Og.js → rename-composition-block-gJ_4GdHr.js} +1 -1
  116. package/system/dist/{restore-archive-2L5TymvF.mjs → restore-archive-D7UwwT1L.mjs} +82 -82
  117. package/system/dist/{restore-archive-CZkQO8t3.js → restore-archive-DXi9iBay.js} +1 -1
  118. package/system/dist/{wal-maintenance-YjDJ73Qd.js → wal-maintenance-BA9XNPvt.js} +0 -0
  119. package/system/dist/{wal-maintenance-BMYe_n18.mjs → wal-maintenance-s3KdED98.mjs} +0 -0
  120. package/system/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  let zod = require("zod");
2
2
  require("node:crypto");
3
- //#region ../types/dist/event-category-CY27-fF0.mjs
3
+ //#region ../types/dist/event-category-7P4A3bYA.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -231,6 +231,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
231
231
  * dropped) — consumers MUST also gate on the device record's `probed` flag.
232
232
  */
233
233
  EventCategory["DeviceReady"] = "device.ready";
234
+ /**
235
+ * An identity link (D1063) became `linked` — auto on strong evidence or
236
+ * confirmed by the operator — or a confirmed link's evidence came back. Telemetry: the `identity-links` record is the
237
+ * truth, and core-blocks reconciles its contributions from it as well.
238
+ * Payload: `IdentityLinkEventPayload`.
239
+ */
240
+ EventCategory["IdentityLinkCreated"] = "identity-link.created";
241
+ /**
242
+ * A `linked` identity link stopped acting: its evidence is gone (an auto link
243
+ * is deleted; an operator-confirmed one stays `linked`, flagged
244
+ * `evidenceGone`, and no longer acts), a side was removed, or the operator
245
+ * unlinked it. Payload: `IdentityLinkEventPayload` with `reason`.
246
+ */
247
+ EventCategory["IdentityLinkLost"] = "identity-link.lost";
234
248
  EventCategory["IntegrationEnabled"] = "integration.enabled";
235
249
  EventCategory["IntegrationDisabled"] = "integration.disabled";
236
250
  EventCategory["IntegrationDeleted"] = "integration.deleted";
@@ -1298,7 +1312,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1298
1312
  */
1299
1313
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1300
1314
  //#endregion
1301
- //#region ../types/dist/sleep-dgC2VKW4.mjs
1315
+ //#region ../types/dist/sleep-C9eelFbV.mjs
1302
1316
  /**
1303
1317
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1304
1318
  * window to float samples (D455).
@@ -13723,6 +13737,17 @@ var CAP_VOCABULARY_BY_NAME = {
13723
13737
  },
13724
13738
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
13725
13739
  },
13740
+ "device-state-refresh": {
13741
+ scope: "device",
13742
+ noun: {
13743
+ en: "State refresh",
13744
+ it: "Aggiornamento dello stato"
13745
+ },
13746
+ notOperatorFacing: {
13747
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
13748
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
13749
+ }
13750
+ },
13726
13751
  "recording": {
13727
13752
  scope: "device",
13728
13753
  noun: {
@@ -17026,6 +17051,7 @@ var CAP_NAMES = Object.freeze([
17026
17051
  "device-removal-hook",
17027
17052
  "device-runs",
17028
17053
  "device-state",
17054
+ "device-state-refresh",
17029
17055
  "device-status",
17030
17056
  "device-transitions",
17031
17057
  "dishwasher",
@@ -19733,7 +19759,7 @@ function sleep(ms) {
19733
19759
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
19734
19760
  }
19735
19761
  //#endregion
19736
- //#region ../types/dist/implemented-methods-k3KProJd.mjs
19762
+ //#region ../types/dist/implemented-methods-DXeNAPAS.mjs
19737
19763
  var AUDIO_ENCODER_BY_CODEC = {
19738
19764
  opus: "libopus",
19739
19765
  aac: "aac",
@@ -22408,6 +22434,8 @@ var CompositionItemEntrySchema = zod.z.object({
22408
22434
  */
22409
22435
  reset: CompositionForwardCommandSchema.optional()
22410
22436
  });
22437
+ /** Which identity link added a feature (D1063). */
22438
+ var CompositionContributedBySchema = zod.z.object({ linkId: zod.z.string().min(1) });
22411
22439
  var CompositionFieldsFeatureSchema = zod.z.object({
22412
22440
  kind: zod.z.literal("fields"),
22413
22441
  cap: zod.z.string().min(1),
@@ -22419,7 +22447,14 @@ var CompositionFieldsFeatureSchema = zod.z.object({
22419
22447
  */
22420
22448
  items: zod.z.record(zod.z.string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
22421
22449
  /** Method name → what serves it. Only a BUILT capability takes commands (D967). */
22422
- commands: zod.z.record(zod.z.string().min(1), CompositionCommandTargetSchema).optional()
22450
+ commands: zod.z.record(zod.z.string().min(1), CompositionCommandTargetSchema).optional(),
22451
+ /**
22452
+ * Provenance only (D1063): the identity link that added this feature. The
22453
+ * source ref stays in `fields`; `enabled` stays the operator's switch. An
22454
+ * operator edit of the source drops the stamp and the feature becomes the
22455
+ * operator's; a lost link removes only stamped features.
22456
+ */
22457
+ contributedBy: CompositionContributedBySchema.optional()
22423
22458
  });
22424
22459
  /** RESERVED for slice 3: a media / data-plane cap, whole, from one source. */
22425
22460
  var CompositionPassthroughFeatureSchema = zod.z.object({
@@ -62554,7 +62589,8 @@ var CompositionProblemCodeSchema = zod.z.enum([
62554
62589
  "command-source-unknown",
62555
62590
  "command-input-unknown",
62556
62591
  "command-input-missing",
62557
- "power-source-is-actuator"
62592
+ "power-source-is-actuator",
62593
+ "link-contribution-removed"
62558
62594
  ]);
62559
62595
  /** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.temperature`. */
62560
62596
  var CompositionProblemSchema = zod.z.object({
@@ -68499,7 +68535,9 @@ var PowerSourceRefusalReasonSchema = zod.z.enum([
68499
68535
  "switch-call-failed",
68500
68536
  "switch-options-unreadable",
68501
68537
  "not-settable",
68502
- "switch-is-actuator"
68538
+ "switch-is-actuator",
68539
+ "link-lost",
68540
+ "link-unknown"
68503
68541
  ]);
68504
68542
  var PowerSourceActionResultSchema = zod.z.discriminatedUnion("accepted", [zod.z.object({ accepted: zod.z.literal(true) }), zod.z.object({
68505
68543
  accepted: zod.z.literal(false),
@@ -68694,7 +68732,8 @@ function powerSourceLinkOfComposition(composition, blockId) {
68694
68732
  return {
68695
68733
  device,
68696
68734
  switch: read.source,
68697
- offSeconds: normalizeOffSeconds(storedOffSeconds(composition))
68735
+ offSeconds: normalizeOffSeconds(storedOffSeconds(composition)),
68736
+ ...feature.contributedBy === void 0 ? {} : { contributedBy: feature.contributedBy }
68698
68737
  };
68699
68738
  }
68700
68739
  var ACTUATOR_CAP = "switch";
@@ -71921,6 +71960,119 @@ var IdentityCandidatesSchema = zod.z.discriminatedUnion("status", [zod.z.object(
71921
71960
  pairs: zod.z.array(IdentityCandidatePairSchema).readonly(),
71922
71961
  undeclaredDeviceIds: zod.z.array(zod.z.number().int()).readonly()
71923
71962
  })]);
71963
+ var IdentityLinkKindSchema = zod.z.enum(["same-device", "poe-power"]);
71964
+ /**
71965
+ * - `proposed` — one strong key matched: waits for the operator;
71966
+ * - `linked` — confirmed by the operator, or auto-linked on strong evidence;
71967
+ * - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
71968
+ */
71969
+ var IdentityLinkStateSchema = zod.z.enum([
71970
+ "proposed",
71971
+ "linked",
71972
+ "dismissed"
71973
+ ]);
71974
+ /** Who decided the current state: the matcher (`auto`) or the operator. */
71975
+ var IdentityLinkOriginSchema = zod.z.enum(["auto", "operator"]);
71976
+ /** One side: the device ref that survives re-registration, plus its current numeric id. */
71977
+ var IdentityLinkSideSchema = zod.z.object({
71978
+ addonId: zod.z.string().min(1),
71979
+ stableId: zod.z.string().min(1),
71980
+ deviceId: zod.z.number().int()
71981
+ });
71982
+ /** The stored body of one `identity-links` record. */
71983
+ var IdentityLinkBodySchema = zod.z.object({
71984
+ kind: IdentityLinkKindSchema,
71985
+ a: IdentityLinkSideSchema,
71986
+ b: IdentityLinkSideSchema,
71987
+ state: IdentityLinkStateSchema,
71988
+ origin: IdentityLinkOriginSchema,
71989
+ /** The identifiers that matched when the link was last evaluated, ordered by key then value. */
71990
+ evidence: zod.z.array(IdentityMatchedKeySchema).readonly(),
71991
+ /** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
71992
+ evidenceGone: zod.z.literal(true).optional(),
71993
+ createdAt: zod.z.number().int().nonnegative(),
71994
+ decidedAt: zod.z.number().int().nonnegative().optional()
71995
+ });
71996
+ var IdentityLinkSchema = IdentityLinkBodySchema.extend({ id: zod.z.string().min(1) });
71997
+ /** The one table of link kinds. */
71998
+ var IDENTITY_LINK_KINDS = {
71999
+ "same-device": {
72000
+ directional: false,
72001
+ attachingRole: null,
72002
+ contributions: []
72003
+ },
72004
+ "poe-power": {
72005
+ directional: true,
72006
+ attachingRole: DeviceRole.PoePort,
72007
+ contributions: [{
72008
+ cap: "power-source",
72009
+ targetId: "switch",
72010
+ host: "b",
72011
+ source: "a",
72012
+ sourceCap: "switch",
72013
+ sourceField: "on"
72014
+ }]
72015
+ }
72016
+ };
72017
+ /** Whether the attaching side of `kind` may be a device of `aRole`. */
72018
+ function identityLinkSidesRefusal(kind, aRole) {
72019
+ const required = IDENTITY_LINK_KINDS[kind].attachingRole;
72020
+ if (required === null) return null;
72021
+ return aRole === required ? null : "attaching-side-role";
72022
+ }
72023
+ function refKey(ref) {
72024
+ return `${ref.addonId}/${ref.stableId}`;
72025
+ }
72026
+ /**
72027
+ * The record id of a link: `<kind>:<refA>|<refB>`. A symmetric kind sorts the
72028
+ * two refs, so either order names one row; a directional kind keeps `a` first.
72029
+ */
72030
+ function identityLinkId(kind, a, b) {
72031
+ const x = refKey(a);
72032
+ const y = refKey(b);
72033
+ if (IDENTITY_LINK_KINDS[kind].directional || x <= y) return `${kind}:${x}|${y}`;
72034
+ return `${kind}:${y}|${x}`;
72035
+ }
72036
+ /**
72037
+ * The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
72038
+ * links have been read — never an empty list (D315).
72039
+ */
72040
+ var IdentityLinksReadSchema = zod.z.discriminatedUnion("status", [zod.z.object({
72041
+ status: zod.z.literal("not-loaded"),
72042
+ reason: zod.z.string()
72043
+ }), zod.z.object({
72044
+ status: zod.z.literal("answered"),
72045
+ links: zod.z.array(IdentityLinkSchema).readonly()
72046
+ })]);
72047
+ /** Why an operator decision on a link was refused. */
72048
+ var IdentityLinkDecisionRefusalSchema = zod.z.enum([
72049
+ "not-loaded",
72050
+ "unknown-link",
72051
+ "wrong-state"
72052
+ ]);
72053
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
72054
+ var IdentityLinkDecisionSchema = zod.z.discriminatedUnion("ok", [zod.z.object({
72055
+ ok: zod.z.literal(true),
72056
+ link: IdentityLinkSchema
72057
+ }), zod.z.object({
72058
+ ok: zod.z.literal(false),
72059
+ reason: IdentityLinkDecisionRefusalSchema,
72060
+ message: zod.z.string()
72061
+ })]);
72062
+ /** Why a link was lost. */
72063
+ var IdentityLinkLostReasonSchema = zod.z.enum([
72064
+ "evidence-gone",
72065
+ "device-removed",
72066
+ "operator-unlinked"
72067
+ ]);
72068
+ zod.z.object({
72069
+ linkId: zod.z.string(),
72070
+ kind: IdentityLinkKindSchema,
72071
+ aDeviceId: zod.z.number().int(),
72072
+ bDeviceId: zod.z.number().int(),
72073
+ origin: IdentityLinkOriginSchema,
72074
+ reason: IdentityLinkLostReasonSchema.optional()
72075
+ });
71924
72076
  var DeviceSearchRequiresSchema = zod.z.object({
71925
72077
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
71926
72078
  caps: zod.z.array(zod.z.string()).readonly().optional(),
@@ -72487,6 +72639,11 @@ var DeviceInfoSchema = zod.z.object({
72487
72639
  * the owning provider via `setIdentifiers`; read-only for the operator.
72488
72640
  * Absent ⇒ the provider declared none. */
72489
72641
  identifiers: DeviceIdentifiersSchema.optional(),
72642
+ /** The identity of the device at the far end of this device's physical
72643
+ * link (D1059 amended by D1063) — a PoE port's wired client. Written only by
72644
+ * the owning provider via `setAttachedIdentifiers`; it never makes the two
72645
+ * devices the same device. Absent ⇒ none declared. */
72646
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
72490
72647
  /** Optional upstream-system identity + rendering envelope. See
72491
72648
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
72492
72649
  sourceInfo: SourceInfoSchema.optional(),
@@ -72655,6 +72812,8 @@ var DeviceMetaSchema = zod.z.object({
72655
72812
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
72656
72813
  /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
72657
72814
  identifiers: DeviceIdentifiersSchema.optional(),
72815
+ /** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
72816
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
72658
72817
  /** Optional upstream-system identity + rendering envelope. See
72659
72818
  * `SourceInfo`. Present when the device has been persisted with a
72660
72819
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -73168,6 +73327,46 @@ var deviceManagerCapability = {
73168
73327
  kind: "query",
73169
73328
  auth: "admin"
73170
73329
  }),
73330
+ /** Declare the identity of the device at the FAR END of this device's
73331
+ * physical link (D1063 amending D1059) — a PoE port's wired client: its MAC,
73332
+ * its IP. Same owner check, normalisation and merge as `setIdentifiers`
73333
+ * (`unread` keeps the stored value), its own column. It never makes the two
73334
+ * devices the same device: it feeds directional identity links only. */
73335
+ setAttachedIdentifiers: method(zod.z.object({
73336
+ deviceId: zod.z.number(),
73337
+ identifiers: DeviceIdentifiersSchema.nullable(),
73338
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
73339
+ unread: zod.z.array(DeviceIdentifierKeySchema).optional()
73340
+ }), zod.z.void(), {
73341
+ kind: "mutation",
73342
+ auth: "admin"
73343
+ }),
73344
+ /** Identity links (D1063): `proposed`, `linked` and `dismissed` relations
73345
+ * between devices of different integrations, decided from their declared
73346
+ * identifiers. With `deviceId`, only the links naming that device.
73347
+ * `not-loaded` until the links have been read — never an empty list. */
73348
+ listIdentityLinks: method(zod.z.object({ deviceId: zod.z.number().int().optional() }), IdentityLinksReadSchema, {
73349
+ kind: "query",
73350
+ auth: "admin"
73351
+ }),
73352
+ /** Confirm a `proposed` link: it becomes `linked` by the operator and its
73353
+ * default contributions are added. Refused by name when the link is unknown
73354
+ * or not `proposed`. */
73355
+ confirmIdentityLink: method(zod.z.object({ linkId: zod.z.string().min(1) }), IdentityLinkDecisionSchema, {
73356
+ kind: "mutation",
73357
+ auth: "admin"
73358
+ }),
73359
+ /** Dismiss a `proposed` link: sticky, never proposed again. */
73360
+ dismissIdentityLink: method(zod.z.object({ linkId: zod.z.string().min(1) }), IdentityLinkDecisionSchema, {
73361
+ kind: "mutation",
73362
+ auth: "admin"
73363
+ }),
73364
+ /** Unlink a `linked` link: it becomes `dismissed` (sticky) and its stamped
73365
+ * contributions are removed. */
73366
+ unlinkIdentity: method(zod.z.object({ linkId: zod.z.string().min(1) }), IdentityLinkDecisionSchema, {
73367
+ kind: "mutation",
73368
+ auth: "admin"
73369
+ }),
73171
73370
  /** Operator-curated location registry. Returns the union of:
73172
73371
  * (1) labels persisted in the registry via `addLocation`, and
73173
73372
  * (2) labels currently in use on at least one device's
@@ -74966,6 +75165,110 @@ onChanged: event(zod.z.object({
74966
75165
  vocabulary: { notOperatorFacing: "the runtime-state mirror every trigger already reads through" }
74967
75166
  };
74968
75167
  /**
75168
+ * Server-driven device state refresh (D1062): the core decides WHEN a device is
75169
+ * re-read, the integration only knows HOW.
75170
+ *
75171
+ * A provider states its policy where it registers the device's
75172
+ * `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
75173
+ * stateRefresh })`). It reaches the hub by the road the command-hold options
75174
+ * take (D1061): written directly in-process, carried on a forked child's cap
75175
+ * descriptors otherwise. Plain data, wire-safe.
75176
+ */
75177
+ /** Why the core asks for a refresh. */
75178
+ var StateRefreshReasonSchema = zod.z.enum([
75179
+ "schedule",
75180
+ "command",
75181
+ "burst"
75182
+ ]);
75183
+ /**
75184
+ * What arrives without asking: `none` (everything is read), `partial` (some
75185
+ * fields arrive by push, the rest is read on the schedule), `full` (everything
75186
+ * arrives by push — never read on a schedule).
75187
+ */
75188
+ var StateRefreshPushSchema = zod.z.enum([
75189
+ "none",
75190
+ "partial",
75191
+ "full"
75192
+ ]);
75193
+ zod.z.object({
75194
+ /**
75195
+ * The integration instance the device belongs to. Devices of one instance
75196
+ * share one schedule group: a batching provider is asked once for all of
75197
+ * them, and the heartbeat is judged across them.
75198
+ */
75199
+ integrationId: zod.z.string().min(1),
75200
+ /** The fastest interval the integration can afford for its devices. The core polls at it by default. */
75201
+ minIntervalMs: zod.z.number().int().min(1e3),
75202
+ /**
75203
+ * The operator's per-integration setting, when there is one. It can only SLOW
75204
+ * the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
75205
+ */
75206
+ intervalMs: zod.z.number().int().positive().optional(),
75207
+ /** One `refresh` call can read every device of the integration at once. */
75208
+ batch: zod.z.boolean(),
75209
+ push: StateRefreshPushSchema,
75210
+ /** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
75211
+ heartbeatMs: zod.z.number().int().positive().optional(),
75212
+ /**
75213
+ * Bumped by the provider each time its push subscription reconnected on its
75214
+ * own. A change makes the core re-read every device of the integration
75215
+ * (pushes lost while it was down; events may be dropped, D8).
75216
+ */
75217
+ connectionEpoch: zod.z.number().int().nonnegative().optional()
75218
+ });
75219
+ /** The cadence the core runs a policy at: the declared minimum, slowed (never sped up) by the setting. */
75220
+ function effectiveRefreshIntervalMs(policy) {
75221
+ const setting = policy.intervalMs ?? 0;
75222
+ return Math.max(policy.minIntervalMs, setting);
75223
+ }
75224
+ /** The burst after a command on a read (non-push) device: offsets from the command, in ms. */
75225
+ var COMMAND_BURST_OFFSETS_MS = [3e3, 1e4];
75226
+ /** How long the core waits for a push device to confirm a command before reading it once. */
75227
+ var PUSH_CONFIRM_WINDOW_MS = 2500;
75228
+ /**
75229
+ * device-state-refresh — the HOW of a device's state refresh, called by the
75230
+ * core, which owns the WHEN (D1062).
75231
+ *
75232
+ * The provider registers it per device with its policy
75233
+ * (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
75234
+ * calls `refresh` on the schedule, after a command and in the burst that
75235
+ * follows it, and `resubscribe` when a push integration fell silent. The
75236
+ * provider re-reads and writes the slices it already writes; nothing is
75237
+ * returned but completion.
75238
+ */
75239
+ var DeviceStateRefreshInputSchema = zod.z.object({
75240
+ /** The device the call is routed by (one of `deviceIds`). */
75241
+ deviceId: zod.z.number().int().nonnegative(),
75242
+ /** Every device to re-read: one, or the integration's whole set when the provider batches. */
75243
+ deviceIds: zod.z.array(zod.z.number().int().nonnegative()).min(1),
75244
+ reason: StateRefreshReasonSchema
75245
+ });
75246
+ var DeviceStateResubscribeInputSchema = zod.z.object({ deviceId: zod.z.number().int().nonnegative() });
75247
+ var DeviceStateRefreshResultSchema = zod.z.object({ ok: zod.z.literal(true) });
75248
+ var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
75249
+ var deviceStateRefreshCapability = {
75250
+ name: "device-state-refresh",
75251
+ scope: "device",
75252
+ deviceNative: true,
75253
+ mode: "singleton",
75254
+ methods: {
75255
+ refresh: method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
75256
+ kind: "mutation",
75257
+ auth: "admin",
75258
+ notOperatorFacing: NOT_OPERATOR_FACING
75259
+ }),
75260
+ resubscribe: method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
75261
+ kind: "mutation",
75262
+ auth: "admin",
75263
+ notOperatorFacing: NOT_OPERATOR_FACING
75264
+ })
75265
+ },
75266
+ vocabulary: {
75267
+ noun: t("State refresh", "Aggiornamento dello stato"),
75268
+ order: 3247
75269
+ }
75270
+ };
75271
+ /**
74969
75272
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
74970
75273
  * for every device, regardless of provider — the kernel needs a uniform
74971
75274
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -114861,6 +115164,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
114861
115164
  deviceRemovalHookCapability,
114862
115165
  deviceRunsCapability,
114863
115166
  deviceStateCapability,
115167
+ deviceStateRefreshCapability,
114864
115168
  deviceStatusCapability,
114865
115169
  deviceTransitionsCapability,
114866
115170
  dishwasherCapability,
@@ -117713,6 +118017,62 @@ function lockDoorLinkOfComposition(composition) {
117713
118017
  }
117714
118018
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
117715
118019
  String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
118020
+ var catalog$3 = CAP_CUSTOMIZE_CATALOG;
118021
+ function scalarTargets(cap) {
118022
+ return (catalog$3[cap]?.targets ?? []).filter((target) => target.cardinality === "scalar" && target.path !== void 0);
118023
+ }
118024
+ /** How many scalar targets the cap declares: above one, the cap's feature is shared. */
118025
+ function scalarTargetCount(cap) {
118026
+ return scalarTargets(cap).length;
118027
+ }
118028
+ function valuePath(target) {
118029
+ return target.path ?? target.id;
118030
+ }
118031
+ function ownedPaths(target) {
118032
+ return [valuePath(target), ...(target.companions ?? []).map((companion) => companion.path)];
118033
+ }
118034
+ function find(cap, targetId) {
118035
+ return scalarTargets(cap).find((target) => target.id === targetId) ?? null;
118036
+ }
118037
+ /** The feature without its identity-link stamp. */
118038
+ function unstamped(feature) {
118039
+ const { contributedBy, ...rest } = feature;
118040
+ return contributedBy === void 0 ? feature : rest;
118041
+ }
118042
+ function without(fields, paths) {
118043
+ return Object.fromEntries(Object.entries(fields).filter(([path]) => !paths.has(path)));
118044
+ }
118045
+ /**
118046
+ * The cap's feature with `compiled` (one target's own feature) merged in. A cap
118047
+ * with one scalar target is replaced whole, as before.
118048
+ */
118049
+ function mergeScalarTarget(current, compiled, cap, targetId) {
118050
+ const target = find(cap, targetId);
118051
+ if (current === null || target === null || scalarTargetCount(cap) < 2) return compiled;
118052
+ const kept = without(current.fields, new Set(ownedPaths(target)));
118053
+ return {
118054
+ ...unstamped(current),
118055
+ ...compiled,
118056
+ fields: {
118057
+ ...kept,
118058
+ ...compiled.fields
118059
+ }
118060
+ };
118061
+ }
118062
+ /** The cap's feature without `targetId`'s paths; null when no target value is left. */
118063
+ function removeScalarTarget(current, cap, targetId) {
118064
+ if (current === null) return null;
118065
+ const target = find(cap, targetId);
118066
+ if (target === null || scalarTargetCount(cap) < 2) return null;
118067
+ const stillAssigned = scalarTargets(cap).filter((row) => row.id !== targetId).filter((row) => current.fields[valuePath(row)] !== void 0);
118068
+ if (stillAssigned.length === 0) return null;
118069
+ const needed = new Set(stillAssigned.flatMap((row) => ownedPaths(row)));
118070
+ const drop = new Set(ownedPaths(target).filter((path) => !needed.has(path)));
118071
+ return {
118072
+ ...unstamped(current),
118073
+ fields: without(current.fields, drop)
118074
+ };
118075
+ }
117716
118076
  DeviceRole.BinarySensor, DeviceRole.MotionSensor;
117717
118077
  new Set(CAP_NAMES);
117718
118078
  function isUnfilledRequiredProblem(problem) {
@@ -118498,6 +118858,20 @@ var BaseDevice = class {
118498
118858
  }, raw, options);
118499
118859
  }
118500
118860
  /**
118861
+ * Declare the identity of the device at the FAR END of this device's physical
118862
+ * link (D1063): a PoE port's wired client. Same normalisation, `unread`
118863
+ * rule and owner check as {@link declareIdentifiers}, written through
118864
+ * `device-manager.setAttachedIdentifiers`. It never makes the two devices the
118865
+ * same device. Best-effort: never throws.
118866
+ */
118867
+ async declareAttachedIdentifiers(raw, options) {
118868
+ return declareDeviceIdentifiers({
118869
+ deviceId: this.id,
118870
+ logger: this.ctx.logger,
118871
+ writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
118872
+ }, raw, options);
118873
+ }
118874
+ /**
118501
118875
  * Re-publish the device's current `features` array to the persisted
118502
118876
  * meta blob. Drivers call this after a probe finishes when the live
118503
118877
  * `features` getter has gained new flags (e.g. `hasIntercom` flips
@@ -125342,6 +125716,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125342
125716
  access: "create",
125343
125717
  role: "admin"
125344
125718
  },
125719
+ "deviceManager.confirmIdentityLink": {
125720
+ capName: "device-manager",
125721
+ capScope: "system",
125722
+ addonId: null,
125723
+ access: "create",
125724
+ role: "admin"
125725
+ },
125345
125726
  "deviceManager.createDevice": {
125346
125727
  capName: "device-manager",
125347
125728
  capScope: "system",
@@ -125391,6 +125772,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125391
125772
  access: "create",
125392
125773
  role: "admin"
125393
125774
  },
125775
+ "deviceManager.dismissIdentityLink": {
125776
+ capName: "device-manager",
125777
+ capScope: "system",
125778
+ addonId: null,
125779
+ access: "create",
125780
+ role: "admin"
125781
+ },
125394
125782
  "deviceManager.enable": {
125395
125783
  capName: "device-manager",
125396
125784
  capScope: "system",
@@ -125587,6 +125975,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125587
125975
  access: "view",
125588
125976
  role: "admin"
125589
125977
  },
125978
+ "deviceManager.listIdentityLinks": {
125979
+ capName: "device-manager",
125980
+ capScope: "system",
125981
+ addonId: null,
125982
+ access: "view",
125983
+ role: "admin"
125984
+ },
125590
125985
  "deviceManager.listLocationDescriptions": {
125591
125986
  capName: "device-manager",
125592
125987
  capScope: "system",
@@ -125783,6 +126178,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125783
126178
  access: "create",
125784
126179
  role: "admin"
125785
126180
  },
126181
+ "deviceManager.setAttachedIdentifiers": {
126182
+ capName: "device-manager",
126183
+ capScope: "system",
126184
+ addonId: null,
126185
+ access: "create",
126186
+ role: "admin"
126187
+ },
125786
126188
  "deviceManager.setChildLayout": {
125787
126189
  capName: "device-manager",
125788
126190
  capScope: "system",
@@ -125944,6 +126346,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125944
126346
  access: "create",
125945
126347
  role: "admin"
125946
126348
  },
126349
+ "deviceManager.unlinkIdentity": {
126350
+ capName: "device-manager",
126351
+ capScope: "system",
126352
+ addonId: null,
126353
+ access: "delete",
126354
+ role: "admin"
126355
+ },
125947
126356
  "deviceManager.updateConfig": {
125948
126357
  capName: "device-manager",
125949
126358
  capScope: "system",
@@ -126224,6 +126633,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
126224
126633
  access: "create",
126225
126634
  role: "admin"
126226
126635
  },
126636
+ "deviceStateRefresh.refresh": {
126637
+ capName: "device-state-refresh",
126638
+ capScope: "device",
126639
+ addonId: null,
126640
+ access: "create",
126641
+ role: "admin"
126642
+ },
126643
+ "deviceStateRefresh.resubscribe": {
126644
+ capName: "device-state-refresh",
126645
+ capScope: "device",
126646
+ addonId: null,
126647
+ access: "create",
126648
+ role: "admin"
126649
+ },
126227
126650
  "deviceStatus.getStatus": {
126228
126651
  capName: "device-status",
126229
126652
  capScope: "device",
@@ -134816,6 +135239,11 @@ Object.freeze({
134816
135239
  form: "array",
134817
135240
  optional: true
134818
135241
  }],
135242
+ "deviceManager.listIdentityLinks": [{
135243
+ name: "deviceId",
135244
+ form: "single",
135245
+ optional: true
135246
+ }],
134819
135247
  "deviceManager.loadConfig": [{
134820
135248
  name: "deviceId",
134821
135249
  form: "single",
@@ -134866,6 +135294,11 @@ Object.freeze({
134866
135294
  form: "single",
134867
135295
  optional: false
134868
135296
  }],
135297
+ "deviceManager.setAttachedIdentifiers": [{
135298
+ name: "deviceId",
135299
+ form: "single",
135300
+ optional: false
135301
+ }],
134869
135302
  "deviceManager.setChildLayout": [{
134870
135303
  name: "deviceId",
134871
135304
  form: "single",
@@ -135060,6 +135493,20 @@ Object.freeze({
135060
135493
  form: "single",
135061
135494
  optional: false
135062
135495
  }],
135496
+ "deviceStateRefresh.refresh": [{
135497
+ name: "deviceId",
135498
+ form: "single",
135499
+ optional: false
135500
+ }, {
135501
+ name: "deviceIds",
135502
+ form: "array",
135503
+ optional: false
135504
+ }],
135505
+ "deviceStateRefresh.resubscribe": [{
135506
+ name: "deviceId",
135507
+ form: "single",
135508
+ optional: false
135509
+ }],
135063
135510
  "deviceStatus.getStatus": [{
135064
135511
  name: "deviceId",
135065
135512
  form: "single",
@@ -140040,6 +140487,12 @@ Object.defineProperty(exports, "CATALOG_LANGS", {
140040
140487
  return CATALOG_LANGS;
140041
140488
  }
140042
140489
  });
140490
+ Object.defineProperty(exports, "COMMAND_BURST_OFFSETS_MS", {
140491
+ enumerable: true,
140492
+ get: function() {
140493
+ return COMMAND_BURST_OFFSETS_MS;
140494
+ }
140495
+ });
140043
140496
  Object.defineProperty(exports, "COMPOSED_DEVICE_STABLE_ID_PREFIX", {
140044
140497
  enumerable: true,
140045
140498
  get: function() {
@@ -140298,6 +140751,12 @@ Object.defineProperty(exports, "DeviceFeature", {
140298
140751
  return DeviceFeature;
140299
140752
  }
140300
140753
  });
140754
+ Object.defineProperty(exports, "DeviceIdentifierKeySchema", {
140755
+ enumerable: true,
140756
+ get: function() {
140757
+ return DeviceIdentifierKeySchema;
140758
+ }
140759
+ });
140301
140760
  Object.defineProperty(exports, "DeviceIdentifiersSchema", {
140302
140761
  enumerable: true,
140303
140762
  get: function() {
@@ -140514,6 +140973,12 @@ Object.defineProperty(exports, "HvacModeSchema", {
140514
140973
  return HvacModeSchema;
140515
140974
  }
140516
140975
  });
140976
+ Object.defineProperty(exports, "IDENTITY_LINK_KINDS", {
140977
+ enumerable: true,
140978
+ get: function() {
140979
+ return IDENTITY_LINK_KINDS;
140980
+ }
140981
+ });
140517
140982
  Object.defineProperty(exports, "IDLE_ACTION_STATUS", {
140518
140983
  enumerable: true,
140519
140984
  get: function() {
@@ -140526,6 +140991,12 @@ Object.defineProperty(exports, "INTERNAL_ACTION_PREFIX", {
140526
140991
  return INTERNAL_ACTION_PREFIX;
140527
140992
  }
140528
140993
  });
140994
+ Object.defineProperty(exports, "IdentityLinkBodySchema", {
140995
+ enumerable: true,
140996
+ get: function() {
140997
+ return IdentityLinkBodySchema;
140998
+ }
140999
+ });
140529
141000
  Object.defineProperty(exports, "InvalidRecordError", {
140530
141001
  enumerable: true,
140531
141002
  get: function() {
@@ -140652,6 +141123,12 @@ Object.defineProperty(exports, "PROPOSAL_MIN_SPAN_MS", {
140652
141123
  return PROPOSAL_MIN_SPAN_MS;
140653
141124
  }
140654
141125
  });
141126
+ Object.defineProperty(exports, "PUSH_CONFIRM_WINDOW_MS", {
141127
+ enumerable: true,
141128
+ get: function() {
141129
+ return PUSH_CONFIRM_WINDOW_MS;
141130
+ }
141131
+ });
140655
141132
  Object.defineProperty(exports, "PackageRequiresSchema", {
140656
141133
  enumerable: true,
140657
141134
  get: function() {
@@ -141660,6 +142137,12 @@ Object.defineProperty(exports, "disarmRoseMemory", {
141660
142137
  return disarmRoseMemory;
141661
142138
  }
141662
142139
  });
142140
+ Object.defineProperty(exports, "effectiveRefreshIntervalMs", {
142141
+ enumerable: true,
142142
+ get: function() {
142143
+ return effectiveRefreshIntervalMs;
142144
+ }
142145
+ });
141663
142146
  Object.defineProperty(exports, "emitDownForOwnedCaps", {
141664
142147
  enumerable: true,
141665
142148
  get: function() {
@@ -141930,6 +142413,18 @@ Object.defineProperty(exports, "identifierStrength", {
141930
142413
  return identifierStrength;
141931
142414
  }
141932
142415
  });
142416
+ Object.defineProperty(exports, "identityLinkId", {
142417
+ enumerable: true,
142418
+ get: function() {
142419
+ return identityLinkId;
142420
+ }
142421
+ });
142422
+ Object.defineProperty(exports, "identityLinkSidesRefusal", {
142423
+ enumerable: true,
142424
+ get: function() {
142425
+ return identityLinkSidesRefusal;
142426
+ }
142427
+ });
141933
142428
  Object.defineProperty(exports, "implementedMethodsOf", {
141934
142429
  enumerable: true,
141935
142430
  get: function() {
@@ -142302,6 +142797,12 @@ Object.defineProperty(exports, "mergeIdentifiers", {
142302
142797
  return mergeIdentifiers;
142303
142798
  }
142304
142799
  });
142800
+ Object.defineProperty(exports, "mergeScalarTarget", {
142801
+ enumerable: true,
142802
+ get: function() {
142803
+ return mergeScalarTarget;
142804
+ }
142805
+ });
142305
142806
  Object.defineProperty(exports, "methodRefusal", {
142306
142807
  enumerable: true,
142307
142808
  get: function() {
@@ -142662,6 +143163,12 @@ Object.defineProperty(exports, "removeFromTags", {
142662
143163
  return removeFromTags;
142663
143164
  }
142664
143165
  });
143166
+ Object.defineProperty(exports, "removeScalarTarget", {
143167
+ enumerable: true,
143168
+ get: function() {
143169
+ return removeScalarTarget;
143170
+ }
143171
+ });
142665
143172
  Object.defineProperty(exports, "renameInTags", {
142666
143173
  enumerable: true,
142667
143174
  get: function() {