@camstack/types 1.2.587 → 1.2.589

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 (31) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/addon.js +2 -2
  3. package/dist/addon.mjs +2 -2
  4. package/dist/capabilities/alarm-panel.cap.d.ts +15 -7
  5. package/dist/capabilities/capability-definition.d.ts +12 -0
  6. package/dist/capabilities/device-manager.cap.d.ts +42 -0
  7. package/dist/capabilities/lock-control.cap.d.ts +5 -2
  8. package/dist/client.js +11 -7
  9. package/dist/client.mjs +11 -7
  10. package/dist/{composed-stable-id-CVbyajE5.js → composed-stable-id-DDv-Og0u.js} +0 -5
  11. package/dist/{composed-stable-id-BBL71oUQ.mjs → composed-stable-id-Kt5VKzGZ.mjs} +0 -5
  12. package/dist/device/device-feature-requirements.d.ts +0 -2
  13. package/dist/device/device-identity-candidates.d.ts +124 -0
  14. package/dist/device/device-type.d.ts +0 -5
  15. package/dist/device/index.d.ts +2 -0
  16. package/dist/generated/addon-api.d.ts +83 -0
  17. package/dist/generated/addon-cap-facts.d.ts +1 -1
  18. package/dist/generated/method-access-map.d.ts +1 -1
  19. package/dist/generated/runtime-state-durability.d.ts +5 -0
  20. package/dist/generated/system-proxy.d.ts +1 -1
  21. package/dist/{implemented-methods-u7ddjc-_.mjs → implemented-methods-BiV3Y-40.mjs} +1 -1
  22. package/dist/{implemented-methods-ChtdIofW.js → implemented-methods-CbdShcW1.js} +1 -1
  23. package/dist/index.d.ts +3 -0
  24. package/dist/index.js +198 -19
  25. package/dist/index.mjs +185 -20
  26. package/dist/node.js +2 -2
  27. package/dist/node.mjs +2 -2
  28. package/dist/schemas/api-catalog.d.ts +170 -0
  29. package/dist/{sleep-D6Pih0Qt.mjs → sleep-CFN40XWx.mjs} +5 -2
  30. package/dist/{sleep-CsZJsb8n.js → sleep-CICYFVJf.js} +5 -2
  31. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.589] - 2026-11-17
11
+
12
+ ### Changed
13
+
14
+ - Locks and alarm panels report whether a PIN is needed in one state field, codeRequired (unknown = null); the lock-pin-required / alarm-pin-required device features are gone.
15
+ - New API catalogue schemas (ApiCatalogEntry, ApiCatalogListOutput, ApiCatalogInputSchemaOutput) for the API explorer.
16
+
17
+ ## [1.2.588] - 2026-11-17
18
+
19
+ ### Changed
20
+
21
+ - device-manager.listIdentityCandidates lists devices of different integrations that share hardware identifiers (auto / proposal confidence); read-only, no links yet
22
+
10
23
  ## [1.2.587] - 2026-11-17
11
24
 
12
25
  ### Added
package/dist/addon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CsZJsb8n.js");
2
+ const require_sleep = require("./sleep-CICYFVJf.js");
3
3
  const require_event_category = require("./event-category-CE_VCE2G.js");
4
- const require_composed_stable_id = require("./composed-stable-id-CVbyajE5.js");
4
+ const require_composed_stable_id = require("./composed-stable-id-DDv-Og0u.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
7
7
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
package/dist/addon.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as PipelineStepInputSchema, $n as StoredRecordKindDeclarationSchema, $r as REMOVE_LEAF, A as CAP_ADVANCE_FIELDS, An as clearKnownSecrets, Ar as normalizeAddonInitResult, At as createDebugEmitter, B as describeCustomActions, Bi as RecordNotFoundError, Br as SCOPED_SETTINGS_SCOPES, Ca as makeSecretMarker, Ci as buildSecretRef, Cn as makeInMemoryRecords, Di as normalizeSecretOwner, Dn as REVALIDATE_AFTER_MS, Dr as BaseAddon, Ei as isSecretRef, En as resolveSecretViewsIn, F as isCapMethodAbsent, Fi as ForeignSecretMarkerError, Fn as shortSecretRefHash, G as nodePin, Gi as RevConflictError, Gn as defineEntryKind, Hi as RecordTooLargeError, Hn as DATAPLANE_SECRET_HEADER, Hr as resolveDeviceSettings, I as CALLER_STAMPED_CAPABILITIES, Ii as InvalidRecordError, In as PEER_BYTES_CHUNK_BYTES, Ji as UnknownRecordKindError, Jn as RecordFieldPathSchema, K as readCommandOrigin, Ki as TransactRefusedError, Kn as entryBody, L as withoutCallerStamp, Li as NoCallerError, Ln as PEER_BYTES_MAX_OUTSTANDING, Ma as AddonMigrationsBlockedError, Mi as BatchTooLargeError, Mn as knownSecretCount, N as CAP_STATE_LEAVES, Na as findMigrationsBlocked, Ni as DeclarationRefusedError, Nn as registerKnownSecret, O as HF_REPO, Oi as parseSecretRef, On as createSecretsAccess, P as CAP_METHOD_NOT_IMPLEMENTED, Pi as FilterRequiredError, Pn as scrubKnownSecrets, Q as PipelineRunResultBridge, Qn as RecordRetentionSchema, Qr as secretViewsOf, R as customAction, Ri as PlaintextSecretError, Rn as PEER_BYTES_STALL_MS, Sa as isSecretMarkerLike, Si as arrayItemFieldPath, Sn as ruleFireOfClaim, Sr as ErrorI18nPayloadSchema, St as scopeKey, T as isCommand, Ti as globalSecretScope, Tn as assertTransactScope, Tr as readErrorI18n, Ui as RecordUniqueViolationError, Ur as resolvedValues, Vi as RecordSecretUnavailableError, Vn as CALLER_USERNAME_HEADER, Vr as nodeIdOfScopedKey, W as commandOrigin, Wi as RecordsError, Wn as DisposerChain, X as SWITCH_SETTABLE_GATE, Xi as recordsErrorFromMessage, Xn as RecordKindDeclarationSchema, Y as viewerUiCapability, Yi as asRecordsError, Yn as RecordIndexSchema, Z as switchRefusesSetState, Zn as RecordKindNameSchema, _a as SECRET_CLEAR, _i as RECORD_QUERY_MAX, _t as MODEL_FORMATS, ai as recordSecretRef, ar as isZodSecret, ba as isSecretFieldView, bi as RECORD_SWEEP_INTERVAL_MS, bn as OnBehalfSourceSchema, c as asString, ci as RECORD_BATCH_MAX_BYTES, d as parseJsonUnknown, di as RECORD_DEFAULT_MAX_DATA_BYTES, ei as collectSecretLeaves, er as assertValidDeclaration, et as MIGRATION_API_VERSION, f as hfModelUrl, fi as RECORD_DELETE_BATCH, g as createDeviceProxy, gi as RECORD_MAX_INDEX_FIELDS, h as isDeviceScopedCap, hi as RECORD_MAX_INDEXES, ii as recordSecretCollection, ir as collectZodSecretPaths, it as adminUiCapability, j as CAP_METHOD_TIMEOUTS_MS, jn as forgetKnownSecret, kn as MIN_SCRUBBED_LENGTH, li as RECORD_CLASSES, m as DEVICE_SCOPED_CAPS, mi as RECORD_MAX_DATA_BYTES, ni as parseSecretPath, nr as defineRecordKinds, nt as deviceOpsCapability, o as asJsonObject, oa as createEvent, oi as secretArrayPrefixes, ot as addonPagesSourceCapability, p as BOOT_RECOVERY_BACKOFF_MS, pi as RECORD_ID_MAX_LENGTH, pr as expandCapMethods, q as readNodePin, qi as UnindexedFilterError, qn as EntryDescriptorSchema, r as maskUrlCredentials, ri as recordArrayItemPath, rt as DEVICE_CHILDREN_BATCH_MAX, sa as emitReadiness, si as RECORD_BATCH_MAX, t as sleep, ti as mapSecretLeaves, tr as declarationsOf, ui as RECORD_DATABASES, v as addonSliceHandleApi, va as classifySecretWrite, vi as RECORD_SECRET_COLLECTION_PREFIX, vn as CommandOriginClaimSchema, vt as ReadinessRegistry, wa as toSecretFieldView, wi as formatSecretScope, wn as createRecordsAccess, xa as isSecretMarker, xi as SECRET_REF_SCHEME, xn as RuleFireOriginSchema, y as createEventBusSliceSource, ya as isSecretClear, yi as RECORD_SETTINGS_MAX_ROWS, yn as OnBehalfSchema, yt as ReadinessTimeoutError, z as defineCustomActions, zi as RECORDS_ERROR_CODES, zn as PEER_BYTES_TICKET_TTL_MS } from "./sleep-D6Pih0Qt.mjs";
1
+ import { $ as PipelineStepInputSchema, $n as StoredRecordKindDeclarationSchema, $r as REMOVE_LEAF, A as CAP_ADVANCE_FIELDS, An as clearKnownSecrets, Ar as normalizeAddonInitResult, At as createDebugEmitter, B as describeCustomActions, Bi as RecordNotFoundError, Br as SCOPED_SETTINGS_SCOPES, Ca as makeSecretMarker, Ci as buildSecretRef, Cn as makeInMemoryRecords, Di as normalizeSecretOwner, Dn as REVALIDATE_AFTER_MS, Dr as BaseAddon, Ei as isSecretRef, En as resolveSecretViewsIn, F as isCapMethodAbsent, Fi as ForeignSecretMarkerError, Fn as shortSecretRefHash, G as nodePin, Gi as RevConflictError, Gn as defineEntryKind, Hi as RecordTooLargeError, Hn as DATAPLANE_SECRET_HEADER, Hr as resolveDeviceSettings, I as CALLER_STAMPED_CAPABILITIES, Ii as InvalidRecordError, In as PEER_BYTES_CHUNK_BYTES, Ji as UnknownRecordKindError, Jn as RecordFieldPathSchema, K as readCommandOrigin, Ki as TransactRefusedError, Kn as entryBody, L as withoutCallerStamp, Li as NoCallerError, Ln as PEER_BYTES_MAX_OUTSTANDING, Ma as AddonMigrationsBlockedError, Mi as BatchTooLargeError, Mn as knownSecretCount, N as CAP_STATE_LEAVES, Na as findMigrationsBlocked, Ni as DeclarationRefusedError, Nn as registerKnownSecret, O as HF_REPO, Oi as parseSecretRef, On as createSecretsAccess, P as CAP_METHOD_NOT_IMPLEMENTED, Pi as FilterRequiredError, Pn as scrubKnownSecrets, Q as PipelineRunResultBridge, Qn as RecordRetentionSchema, Qr as secretViewsOf, R as customAction, Ri as PlaintextSecretError, Rn as PEER_BYTES_STALL_MS, Sa as isSecretMarkerLike, Si as arrayItemFieldPath, Sn as ruleFireOfClaim, Sr as ErrorI18nPayloadSchema, St as scopeKey, T as isCommand, Ti as globalSecretScope, Tn as assertTransactScope, Tr as readErrorI18n, Ui as RecordUniqueViolationError, Ur as resolvedValues, Vi as RecordSecretUnavailableError, Vn as CALLER_USERNAME_HEADER, Vr as nodeIdOfScopedKey, W as commandOrigin, Wi as RecordsError, Wn as DisposerChain, X as SWITCH_SETTABLE_GATE, Xi as recordsErrorFromMessage, Xn as RecordKindDeclarationSchema, Y as viewerUiCapability, Yi as asRecordsError, Yn as RecordIndexSchema, Z as switchRefusesSetState, Zn as RecordKindNameSchema, _a as SECRET_CLEAR, _i as RECORD_QUERY_MAX, _t as MODEL_FORMATS, ai as recordSecretRef, ar as isZodSecret, ba as isSecretFieldView, bi as RECORD_SWEEP_INTERVAL_MS, bn as OnBehalfSourceSchema, c as asString, ci as RECORD_BATCH_MAX_BYTES, d as parseJsonUnknown, di as RECORD_DEFAULT_MAX_DATA_BYTES, ei as collectSecretLeaves, er as assertValidDeclaration, et as MIGRATION_API_VERSION, f as hfModelUrl, fi as RECORD_DELETE_BATCH, g as createDeviceProxy, gi as RECORD_MAX_INDEX_FIELDS, h as isDeviceScopedCap, hi as RECORD_MAX_INDEXES, ii as recordSecretCollection, ir as collectZodSecretPaths, it as adminUiCapability, j as CAP_METHOD_TIMEOUTS_MS, jn as forgetKnownSecret, kn as MIN_SCRUBBED_LENGTH, li as RECORD_CLASSES, m as DEVICE_SCOPED_CAPS, mi as RECORD_MAX_DATA_BYTES, ni as parseSecretPath, nr as defineRecordKinds, nt as deviceOpsCapability, o as asJsonObject, oa as createEvent, oi as secretArrayPrefixes, ot as addonPagesSourceCapability, p as BOOT_RECOVERY_BACKOFF_MS, pi as RECORD_ID_MAX_LENGTH, pr as expandCapMethods, q as readNodePin, qi as UnindexedFilterError, qn as EntryDescriptorSchema, r as maskUrlCredentials, ri as recordArrayItemPath, rt as DEVICE_CHILDREN_BATCH_MAX, sa as emitReadiness, si as RECORD_BATCH_MAX, t as sleep, ti as mapSecretLeaves, tr as declarationsOf, ui as RECORD_DATABASES, v as addonSliceHandleApi, va as classifySecretWrite, vi as RECORD_SECRET_COLLECTION_PREFIX, vn as CommandOriginClaimSchema, vt as ReadinessRegistry, wa as toSecretFieldView, wi as formatSecretScope, wn as createRecordsAccess, xa as isSecretMarker, xi as SECRET_REF_SCHEME, xn as RuleFireOriginSchema, y as createEventBusSliceSource, ya as isSecretClear, yi as RECORD_SETTINGS_MAX_ROWS, yn as OnBehalfSchema, yt as ReadinessTimeoutError, z as defineCustomActions, zi as RECORDS_ERROR_CODES, zn as PEER_BYTES_TICKET_TTL_MS } from "./sleep-CFN40XWx.mjs";
2
2
  import { t as EventCategory } from "./event-category-Hwx_JSCU.mjs";
3
- import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-BBL71oUQ.mjs";
3
+ import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-Kt5VKzGZ.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
6
6
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
@@ -10,9 +10,8 @@ import { DeviceType } from '../device/device-type.js';
10
10
  * Many panels require a PIN code on arm / disarm — the optional
11
11
  * `code` field on the methods passes it through to the upstream
12
12
  * service; it's NEVER persisted in the runtime slice or any event
13
- * payload. The presence of a required code is signalled by
14
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
15
- * field without a slice fetch.
13
+ * payload. Whether a code is required is the slice's `codeRequired`
14
+ * (#459): `null` when the provider cannot tell (D393).
16
15
  *
17
16
  * `availableModes` mirrors HA's `supported_features`-derived arm
18
17
  * mode list — the UI renders only the buttons the panel accepts.
@@ -65,7 +64,7 @@ export declare const AlarmPanelStatusSchema: z.ZodObject<{
65
64
  night: "night";
66
65
  vacation: "vacation";
67
66
  }>>;
68
- requiresCode: z.ZodBoolean;
67
+ codeRequired: z.ZodNullable<z.ZodBoolean>;
69
68
  lastChangedAt: z.ZodNumber;
70
69
  }, z.core.$strip>;
71
70
  export type AlarmPanelStatus = z.infer<typeof AlarmPanelStatusSchema>;
@@ -130,7 +129,7 @@ export declare const alarmPanelCapability: {
130
129
  night: "night";
131
130
  vacation: "vacation";
132
131
  }>>;
133
- requiresCode: z.ZodBoolean;
132
+ codeRequired: z.ZodNullable<z.ZodBoolean>;
134
133
  lastChangedAt: z.ZodNumber;
135
134
  }, z.core.$strip>;
136
135
  readonly kind: 'push';
@@ -138,7 +137,7 @@ export declare const alarmPanelCapability: {
138
137
  /**
139
138
  * Runtime-state slice — mirrored by the kernel. UI panel reads the
140
139
  * full slice; renders an arm button per `availableModes` entry and
141
- * a PIN field iff `requiresCode === true`.
140
+ * a PIN field iff `codeRequired === true`.
142
141
  */
143
142
  readonly runtimeState: z.ZodObject<{
144
143
  state: z.ZodEnum<{
@@ -167,7 +166,7 @@ export declare const alarmPanelCapability: {
167
166
  night: "night";
168
167
  vacation: "vacation";
169
168
  }>>;
170
- requiresCode: z.ZodBoolean;
169
+ codeRequired: z.ZodNullable<z.ZodBoolean>;
171
170
  lastChangedAt: z.ZodNumber;
172
171
  }, z.core.$strip>;
173
172
  /**
@@ -177,6 +176,15 @@ export declare const alarmPanelCapability: {
177
176
  * `scripts/check-runtime-state-durability.ts`.
178
177
  */
179
178
  readonly durability: 'restored';
179
+ /**
180
+ * A slice persisted before #459 carries `requiresCode`; the boot seed reads it
181
+ * once into `codeRequired` (`restoredPart`), so no reader meets the old key,
182
+ * and rewrites the row once without it (`seedMirrorFromRow`) — so this entry
183
+ * can be dropped after every node has booted once on a release that has it.
184
+ */
185
+ readonly restoredFieldRenames: {
186
+ readonly requiresCode: 'codeRequired';
187
+ };
180
188
  /**
181
189
  * History (D850): the panel's lifecycle state as an `enum` series —
182
190
  * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
@@ -738,6 +738,18 @@ export interface CapabilityDefinition<TName extends string = string, TMethods ex
738
738
  * `runtimeState` (`scripts/check-runtime-state-durability.ts`).
739
739
  */
740
740
  readonly restoredStateFields?: readonly string[];
741
+ /**
742
+ * Renamed runtime-state fields of a `durability: 'restored'` cap, `{ old: new }`.
743
+ * A row persisted before the rename still carries the old key: the boot seed
744
+ * reads it ONCE into the new name (when the new one is absent) and drops it, so
745
+ * no reader ever meets the old key, and the worker that loads the row is handed
746
+ * it under the new name too. The upgraded row is then REWRITTEN once
747
+ * (`seedMirrorFromRow`), so the old key leaves the disk: an entry can be
748
+ * retired after every node has booted once on the release that added it.
749
+ * Requires `durability: 'restored'`; every target must be a field of
750
+ * `runtimeState`.
751
+ */
752
+ readonly restoredFieldRenames?: Readonly<Record<string, string>>;
741
753
  /**
742
754
  * Which `runtimeState` fields are recorded as long-term history series
743
755
  * (D850), or `'none'`. Mandatory for every cap declaring `runtimeState` —
@@ -1147,6 +1147,48 @@ export declare const deviceManagerCapability: {
1147
1147
  "vendor-uid": "vendor-uid";
1148
1148
  }>>>;
1149
1149
  }, z.core.$strip>, z.ZodVoid, "mutation">;
1150
+ /** Cross-integration identity candidates (planning#593) — READ-ONLY, links
1151
+ * nothing. Every pair of devices from DIFFERENT integrations that share a
1152
+ * strong identifier, with the keys they share and a confidence: `auto` (two
1153
+ * strong kinds, or `mac` + `ip`), `proposal` (one strong kind). Weak keys
1154
+ * alone never pair; a same-integration match is no candidate. Answered from
1155
+ * the device-manager's identifier index, never a fleet scan. `unknown`
1156
+ * until the index has loaded (never an empty list); `undeclaredDeviceIds`
1157
+ * are the devices whose identity is unknown, never "no match". */
1158
+ readonly listIdentityCandidates: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1159
+ status: z.ZodLiteral<"unknown">;
1160
+ reason: z.ZodString;
1161
+ }, z.core.$strip>, z.ZodObject<{
1162
+ status: z.ZodLiteral<"answered">;
1163
+ pairs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1164
+ a: z.ZodObject<{
1165
+ deviceId: z.ZodNumber;
1166
+ addonId: z.ZodString;
1167
+ integrationId: z.ZodNullable<z.ZodString>;
1168
+ }, z.core.$strip>;
1169
+ b: z.ZodObject<{
1170
+ deviceId: z.ZodNumber;
1171
+ addonId: z.ZodString;
1172
+ integrationId: z.ZodNullable<z.ZodString>;
1173
+ }, z.core.$strip>;
1174
+ keys: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1175
+ key: z.ZodEnum<{
1176
+ hostname: "hostname";
1177
+ ip: "ip";
1178
+ mac: "mac";
1179
+ "machine-uuid": "machine-uuid";
1180
+ serial: "serial";
1181
+ "vendor-uid": "vendor-uid";
1182
+ }>;
1183
+ value: z.ZodString;
1184
+ }, z.core.$strip>>>;
1185
+ confidence: z.ZodEnum<{
1186
+ auto: "auto";
1187
+ proposal: "proposal";
1188
+ }>;
1189
+ }, z.core.$strip>>>;
1190
+ undeclaredDeviceIds: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
1191
+ }, z.core.$strip>], "status">, "query">;
1150
1192
  /** Operator-curated location registry. Returns the union of:
1151
1193
  * (1) labels persisted in the registry via `addLocation`, and
1152
1194
  * (2) labels currently in use on at least one device's
@@ -12,8 +12,8 @@ import { DeviceType } from '../device/device-type.js';
12
12
  * (workplace keypad locks, hospitality). The optional `code` field
13
13
  * on the methods passes it through to the upstream service — the
14
14
  * code is NEVER persisted in the runtime slice or any event payload.
15
- * Locks that REQUIRE a code set `DeviceFeature.LockPinRequired` so
16
- * the UI gates a code-entry field without a slice fetch.
15
+ * Whether a lock REQUIRES a code is the slice's `codeRequired` (#459):
16
+ * `true` / `false` when the provider knows, `null` when it does not (D393).
17
17
  *
18
18
  * Locks that support a latch-release ("open door") action advertise
19
19
  * `DeviceFeature.LockOpen`. The `open` method triggers the latch
@@ -48,6 +48,7 @@ export declare const LockControlStatusSchema: z.ZodObject<{
48
48
  unlocked: "unlocked";
49
49
  unlocking: "unlocking";
50
50
  }>;
51
+ codeRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
51
52
  lastChangedAt: z.ZodNumber;
52
53
  }, z.core.$strip>;
53
54
  export type LockControlStatus = z.infer<typeof LockControlStatusSchema>;
@@ -83,6 +84,7 @@ export declare const lockControlCapability: {
83
84
  unlocked: "unlocked";
84
85
  unlocking: "unlocking";
85
86
  }>;
87
+ codeRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
86
88
  lastChangedAt: z.ZodNumber;
87
89
  }, z.core.$strip>;
88
90
  readonly kind: 'push';
@@ -101,6 +103,7 @@ export declare const lockControlCapability: {
101
103
  unlocked: "unlocked";
102
104
  unlocking: "unlocking";
103
105
  }>;
106
+ codeRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
104
107
  lastChangedAt: z.ZodNumber;
105
108
  }, z.core.$strip>;
106
109
  readonly customize: {
package/dist/client.js CHANGED
@@ -21830,9 +21830,8 @@ function t(en, it) {
21830
21830
  * Many panels require a PIN code on arm / disarm — the optional
21831
21831
  * `code` field on the methods passes it through to the upstream
21832
21832
  * service; it's NEVER persisted in the runtime slice or any event
21833
- * payload. The presence of a required code is signalled by
21834
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
21835
- * field without a slice fetch.
21833
+ * payload. Whether a code is required is the slice's `codeRequired`
21834
+ * (#459): `null` when the provider cannot tell (D393).
21836
21835
  *
21837
21836
  * `availableModes` mirrors HA's `supported_features`-derived arm
21838
21837
  * mode list — the UI renders only the buttons the panel accepts.
@@ -21871,9 +21870,13 @@ zod.z.object({
21871
21870
  /** Subset of arm modes the panel accepts. UI renders one button per
21872
21871
  * mode in this list. */
21873
21872
  availableModes: zod.z.array(AlarmArmModeSchema),
21874
- /** Whether the panel requires a PIN on arm / disarm. Mirrors
21875
- * `DeviceFeature.AlarmPinRequired` for slice consumers. */
21876
- requiresCode: zod.z.boolean(),
21873
+ /**
21874
+ * Whether the panel requires a PIN on arm / disarm (#459; the field was
21875
+ * `requiresCode`, and the `alarm-pin-required` device feature is gone).
21876
+ * `null` = the provider cannot tell (D393), never `false`. A slice restored
21877
+ * from before the rename is upgraded at boot by `restoredFieldRenames`.
21878
+ */
21879
+ codeRequired: zod.z.boolean().nullable(),
21877
21880
  /** Ms epoch when the slice was last updated. */
21878
21881
  lastChangedAt: zod.z.number()
21879
21882
  });
@@ -21914,7 +21917,7 @@ DeviceType.AlarmPanel, method(zod.z.object({ deviceId: zod.z.number().int().nonn
21914
21917
  }), method(zod.z.object({
21915
21918
  deviceId: zod.z.number().int().nonnegative(),
21916
21919
  mode: AlarmArmModeSchema,
21917
- /** Optional PIN code. Required when `requiresCode === true`.
21920
+ /** Optional PIN code. Required when `codeRequired === true`.
21918
21921
  * Passed through to the upstream service; never persisted. */
21919
21922
  code: zod.z.string().min(1).optional()
21920
21923
  }), zod.z.void(), {
@@ -29527,6 +29530,7 @@ function createSystemProxy(api) {
29527
29530
  checkDeviceTemplates: (input) => dispatch("deviceManager", "checkDeviceTemplates", "query", input),
29528
29531
  getRoleDisplayDefaults: (input) => dispatch("deviceManager", "getRoleDisplayDefaults", "query", input),
29529
29532
  setRoleDisplayDefaults: (input) => dispatch("deviceManager", "setRoleDisplayDefaults", "mutation", input),
29533
+ listIdentityCandidates: (input) => dispatch("deviceManager", "listIdentityCandidates", "query", input),
29530
29534
  listLocations: (input) => dispatch("deviceManager", "listLocations", "query", input),
29531
29535
  addLocation: (input) => dispatch("deviceManager", "addLocation", "mutation", input),
29532
29536
  removeLocation: (input) => dispatch("deviceManager", "removeLocation", "mutation", input),
package/dist/client.mjs CHANGED
@@ -21829,9 +21829,8 @@ function t(en, it) {
21829
21829
  * Many panels require a PIN code on arm / disarm — the optional
21830
21830
  * `code` field on the methods passes it through to the upstream
21831
21831
  * service; it's NEVER persisted in the runtime slice or any event
21832
- * payload. The presence of a required code is signalled by
21833
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
21834
- * field without a slice fetch.
21832
+ * payload. Whether a code is required is the slice's `codeRequired`
21833
+ * (#459): `null` when the provider cannot tell (D393).
21835
21834
  *
21836
21835
  * `availableModes` mirrors HA's `supported_features`-derived arm
21837
21836
  * mode list — the UI renders only the buttons the panel accepts.
@@ -21870,9 +21869,13 @@ z.object({
21870
21869
  /** Subset of arm modes the panel accepts. UI renders one button per
21871
21870
  * mode in this list. */
21872
21871
  availableModes: z.array(AlarmArmModeSchema),
21873
- /** Whether the panel requires a PIN on arm / disarm. Mirrors
21874
- * `DeviceFeature.AlarmPinRequired` for slice consumers. */
21875
- requiresCode: z.boolean(),
21872
+ /**
21873
+ * Whether the panel requires a PIN on arm / disarm (#459; the field was
21874
+ * `requiresCode`, and the `alarm-pin-required` device feature is gone).
21875
+ * `null` = the provider cannot tell (D393), never `false`. A slice restored
21876
+ * from before the rename is upgraded at boot by `restoredFieldRenames`.
21877
+ */
21878
+ codeRequired: z.boolean().nullable(),
21876
21879
  /** Ms epoch when the slice was last updated. */
21877
21880
  lastChangedAt: z.number()
21878
21881
  });
@@ -21913,7 +21916,7 @@ DeviceType.AlarmPanel, method(z.object({ deviceId: z.number().int().nonnegative(
21913
21916
  }), method(z.object({
21914
21917
  deviceId: z.number().int().nonnegative(),
21915
21918
  mode: AlarmArmModeSchema,
21916
- /** Optional PIN code. Required when `requiresCode === true`.
21919
+ /** Optional PIN code. Required when `codeRequired === true`.
21917
21920
  * Passed through to the upstream service; never persisted. */
21918
21921
  code: z.string().min(1).optional()
21919
21922
  }), z.void(), {
@@ -29526,6 +29529,7 @@ function createSystemProxy(api) {
29526
29529
  checkDeviceTemplates: (input) => dispatch("deviceManager", "checkDeviceTemplates", "query", input),
29527
29530
  getRoleDisplayDefaults: (input) => dispatch("deviceManager", "getRoleDisplayDefaults", "query", input),
29528
29531
  setRoleDisplayDefaults: (input) => dispatch("deviceManager", "setRoleDisplayDefaults", "mutation", input),
29532
+ listIdentityCandidates: (input) => dispatch("deviceManager", "listIdentityCandidates", "query", input),
29529
29533
  listLocations: (input) => dispatch("deviceManager", "listLocations", "query", input),
29530
29534
  addLocation: (input) => dispatch("deviceManager", "addLocation", "mutation", input),
29531
29535
  removeLocation: (input) => dispatch("deviceManager", "removeLocation", "mutation", input),
@@ -228,9 +228,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
228
228
  DeviceFeature["FanDirection"] = "fan-direction";
229
229
  /** Fan exposes an oscillation toggle. */
230
230
  DeviceFeature["FanOscillating"] = "fan-oscillating";
231
- /** Lock requires a PIN code on lock/unlock. Gates the code-entry
232
- * field on the UI lock-controls panel. */
233
- DeviceFeature["LockPinRequired"] = "lock-pin-required";
234
231
  /** Lock supports a latch-release ("open door") action distinct from
235
232
  * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
236
233
  * `supported_features`. Gates the Open Door button in the UI. */
@@ -261,8 +258,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
261
258
  DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
262
259
  /** Media player exposes power on / off. */
263
260
  DeviceFeature["MediaPlayerPower"] = "media-player-power";
264
- /** Alarm panel requires a PIN code on arm/disarm. */
265
- DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
266
261
  /** Presence device carries GPS coordinates (lat/lng/accuracy) in
267
262
  * addition to a textual location. */
268
263
  DeviceFeature["PresenceGps"] = "presence-gps";
@@ -228,9 +228,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
228
228
  DeviceFeature["FanDirection"] = "fan-direction";
229
229
  /** Fan exposes an oscillation toggle. */
230
230
  DeviceFeature["FanOscillating"] = "fan-oscillating";
231
- /** Lock requires a PIN code on lock/unlock. Gates the code-entry
232
- * field on the UI lock-controls panel. */
233
- DeviceFeature["LockPinRequired"] = "lock-pin-required";
234
231
  /** Lock supports a latch-release ("open door") action distinct from
235
232
  * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
236
233
  * `supported_features`. Gates the Open Door button in the UI. */
@@ -261,8 +258,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
261
258
  DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
262
259
  /** Media player exposes power on / off. */
263
260
  DeviceFeature["MediaPlayerPower"] = "media-player-power";
264
- /** Alarm panel requires a PIN code on arm/disarm. */
265
- DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
266
261
  /** Presence device carries GPS coordinates (lat/lng/accuracy) in
267
262
  * addition to a textual location. */
268
263
  DeviceFeature["PresenceGps"] = "presence-gps";
@@ -61,7 +61,6 @@ export declare const DEVICE_FEATURE_REQUIREMENTS: {
61
61
  readonly "fan-preset": CapBackedFeature;
62
62
  readonly "fan-direction": CapBackedFeature;
63
63
  readonly "fan-oscillating": CapBackedFeature;
64
- readonly "lock-pin-required": ReportedFeature;
65
64
  readonly "lock-open": CapBackedFeature;
66
65
  readonly "media-player-seek": CapBackedFeature;
67
66
  readonly "media-player-volume": CapBackedFeature;
@@ -76,7 +75,6 @@ export declare const DEVICE_FEATURE_REQUIREMENTS: {
76
75
  readonly "media-player-volume-step": CapBackedFeature;
77
76
  readonly "media-player-channel-step": CapBackedFeature;
78
77
  readonly "media-player-power": CapBackedFeature;
79
- readonly "alarm-pin-required": ReportedFeature;
80
78
  readonly "presence-gps": ReportedFeature;
81
79
  readonly "notifier-image": ReportedFeature;
82
80
  readonly "notifier-priority": ReportedFeature;
@@ -0,0 +1,124 @@
1
+ /**
2
+ * Cross-integration identity candidates (planning#593, step 2 of D1059's epic).
3
+ *
4
+ * Two devices brought by DIFFERENT integrations that share provider-declared
5
+ * identifiers ({@link DeviceIdentifiers}) are candidates for being the same
6
+ * physical object. This module holds the answer's shape; the device-manager
7
+ * keeps the index that finds the pairs and the ONE rule that grades a match
8
+ * (`classifyIdentityMatch`, `device-identity-index.ts`).
9
+ *
10
+ * The rule (operator, planning#590):
11
+ *
12
+ * | Matched keys | Confidence |
13
+ * | ---------------------------------------------- | ----------- |
14
+ * | two strong KINDS (e.g. `mac` + `serial`) | `auto` |
15
+ * | `mac` + `ip` | `auto` |
16
+ * | exactly one strong kind | `proposal` |
17
+ * | weak keys only (`hostname`, `ip`) | no candidate|
18
+ *
19
+ * Strength counts distinct KINDS, not values: two MACs of one device matching
20
+ * the other's two MACs are still one kind of evidence, so a proposal. In doubt,
21
+ * no match.
22
+ *
23
+ * Read-only: a candidate is NOT a link. Links are step 3.
24
+ */
25
+ import { z } from 'zod';
26
+ export declare const IdentityConfidenceSchema: z.ZodEnum<{
27
+ auto: "auto";
28
+ proposal: "proposal";
29
+ }>;
30
+ export type IdentityConfidence = z.infer<typeof IdentityConfidenceSchema>;
31
+ /** One identifier both devices declared, with the same normalised value. */
32
+ export declare const IdentityMatchedKeySchema: z.ZodObject<{
33
+ key: z.ZodEnum<{
34
+ hostname: "hostname";
35
+ ip: "ip";
36
+ mac: "mac";
37
+ "machine-uuid": "machine-uuid";
38
+ serial: "serial";
39
+ "vendor-uid": "vendor-uid";
40
+ }>;
41
+ value: z.ZodString;
42
+ }, z.core.$strip>;
43
+ export type IdentityMatchedKey = z.infer<typeof IdentityMatchedKeySchema>;
44
+ /** One side of a pair: the device and the integration that brought it. */
45
+ export declare const IdentityCandidateDeviceSchema: z.ZodObject<{
46
+ deviceId: z.ZodNumber;
47
+ addonId: z.ZodString;
48
+ integrationId: z.ZodNullable<z.ZodString>;
49
+ }, z.core.$strip>;
50
+ export type IdentityCandidateDevice = z.infer<typeof IdentityCandidateDeviceSchema>;
51
+ /** Two devices of different integrations sharing at least one strong identifier. `a.deviceId < b.deviceId`. */
52
+ export declare const IdentityCandidatePairSchema: z.ZodObject<{
53
+ a: z.ZodObject<{
54
+ deviceId: z.ZodNumber;
55
+ addonId: z.ZodString;
56
+ integrationId: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strip>;
58
+ b: z.ZodObject<{
59
+ deviceId: z.ZodNumber;
60
+ addonId: z.ZodString;
61
+ integrationId: z.ZodNullable<z.ZodString>;
62
+ }, z.core.$strip>;
63
+ keys: z.ZodReadonly<z.ZodArray<z.ZodObject<{
64
+ key: z.ZodEnum<{
65
+ hostname: "hostname";
66
+ ip: "ip";
67
+ mac: "mac";
68
+ "machine-uuid": "machine-uuid";
69
+ serial: "serial";
70
+ "vendor-uid": "vendor-uid";
71
+ }>;
72
+ value: z.ZodString;
73
+ }, z.core.$strip>>>;
74
+ confidence: z.ZodEnum<{
75
+ auto: "auto";
76
+ proposal: "proposal";
77
+ }>;
78
+ }, z.core.$strip>;
79
+ export type IdentityCandidatePair = z.infer<typeof IdentityCandidatePairSchema>;
80
+ /**
81
+ * The answer of `device-manager.listIdentityCandidates`.
82
+ *
83
+ * - `unknown` — the index has not loaded yet: nothing can be said, and it is
84
+ * NOT an empty list (D315).
85
+ * - `answered` — `pairs` holds every candidate. `undeclaredDeviceIds` are the
86
+ * devices with no identifiers on record: whether they match anything is
87
+ * UNKNOWN, never "no match" (D393). A device absent from both lists declared
88
+ * identifiers and matched nobody.
89
+ */
90
+ export declare const IdentityCandidatesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ status: z.ZodLiteral<"unknown">;
92
+ reason: z.ZodString;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ status: z.ZodLiteral<"answered">;
95
+ pairs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
96
+ a: z.ZodObject<{
97
+ deviceId: z.ZodNumber;
98
+ addonId: z.ZodString;
99
+ integrationId: z.ZodNullable<z.ZodString>;
100
+ }, z.core.$strip>;
101
+ b: z.ZodObject<{
102
+ deviceId: z.ZodNumber;
103
+ addonId: z.ZodString;
104
+ integrationId: z.ZodNullable<z.ZodString>;
105
+ }, z.core.$strip>;
106
+ keys: z.ZodReadonly<z.ZodArray<z.ZodObject<{
107
+ key: z.ZodEnum<{
108
+ hostname: "hostname";
109
+ ip: "ip";
110
+ mac: "mac";
111
+ "machine-uuid": "machine-uuid";
112
+ serial: "serial";
113
+ "vendor-uid": "vendor-uid";
114
+ }>;
115
+ value: z.ZodString;
116
+ }, z.core.$strip>>>;
117
+ confidence: z.ZodEnum<{
118
+ auto: "auto";
119
+ proposal: "proposal";
120
+ }>;
121
+ }, z.core.$strip>>>;
122
+ undeclaredDeviceIds: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
123
+ }, z.core.$strip>], "status">;
124
+ export type IdentityCandidates = z.infer<typeof IdentityCandidatesSchema>;
@@ -214,9 +214,6 @@ export declare enum DeviceFeature {
214
214
  FanDirection = "fan-direction",
215
215
  /** Fan exposes an oscillation toggle. */
216
216
  FanOscillating = "fan-oscillating",
217
- /** Lock requires a PIN code on lock/unlock. Gates the code-entry
218
- * field on the UI lock-controls panel. */
219
- LockPinRequired = "lock-pin-required",
220
217
  /** Lock supports a latch-release ("open door") action distinct from
221
218
  * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
222
219
  * `supported_features`. Gates the Open Door button in the UI. */
@@ -247,8 +244,6 @@ export declare enum DeviceFeature {
247
244
  MediaPlayerChannelStep = "media-player-channel-step",
248
245
  /** Media player exposes power on / off. */
249
246
  MediaPlayerPower = "media-player-power",
250
- /** Alarm panel requires a PIN code on arm/disarm. */
251
- AlarmPinRequired = "alarm-pin-required",
252
247
  /** Presence device carries GPS coordinates (lat/lng/accuracy) in
253
248
  * addition to a textual location. */
254
249
  PresenceGps = "presence-gps",
@@ -18,6 +18,8 @@ export { DEVICE_IDENTIFIER_KEYS, DeviceIdentifierEntrySchema, DeviceIdentifierKe
18
18
  export type { AcceptedValue, DeviceIdentifierEntry, DeviceIdentifierKey, DeviceIdentifierOrigin, DeviceIdentifiers, DeviceIdentifierStrength, NormaliseIdentifiersOptions, NormalisedIdentifiers, NormaliseResult, RawDeviceIdentifiers, RawSerialIdentifier, RawVendorUidIdentifier, RejectedIdentifier, RejectedReason, } from './device-identifiers.js';
19
19
  export { declareDeviceIdentifiers } from './declare-identifiers.js';
20
20
  export type { DeclareIdentifiersDeps, DeclareIdentifiersOptions, DeclareIdentifiersOutcome, DeclareIdentifiersResult, IdentifiersWriter, SetIdentifiersInput, } from './declare-identifiers.js';
21
+ export { IdentityCandidateDeviceSchema, IdentityCandidatePairSchema, IdentityCandidatesSchema, IdentityConfidenceSchema, IdentityMatchedKeySchema, } from './device-identity-candidates.js';
22
+ export type { IdentityCandidateDevice, IdentityCandidatePair, IdentityCandidates, IdentityConfidence, IdentityMatchedKey, } from './device-identity-candidates.js';
21
23
  export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, PipelinePhaseMode, } from './device-profile.js';
22
24
  export { BATTERY_DEVICE_PROFILE, DEVICE_PROFILES, deviceMatchesProfile, resolveDeviceProfile, } from './device-profile.js';
23
25
  export type { IDeviceRuntimeState, Snapshot as RuntimeStateSnapshot, } from './device-runtime-state.js';
@@ -2834,6 +2834,13 @@ export type AppRouter = TrpcCoreRouter<{
2834
2834
  output: z.infer<typeof deviceManagerCapability.methods.setIdentifiers.output>;
2835
2835
  meta: object;
2836
2836
  }>;
2837
+ listIdentityCandidates: TRPCQueryProcedure<{
2838
+ input: {
2839
+ [x: string]: unknown;
2840
+ } & z.input<typeof deviceManagerCapability.methods.listIdentityCandidates.input>;
2841
+ output: z.infer<typeof deviceManagerCapability.methods.listIdentityCandidates.output>;
2842
+ meta: object;
2843
+ }>;
2837
2844
  listLocations: TRPCQueryProcedure<{
2838
2845
  input: {
2839
2846
  nodeId?: string | undefined;
@@ -13435,6 +13442,82 @@ export type AppRouter = TrpcCoreRouter<{
13435
13442
  meta: object;
13436
13443
  }>;
13437
13444
  }>;
13445
+ apiCatalog: import("@trpc/server/unstable-core-do-not-import").Router<{
13446
+ ctx: any;
13447
+ meta: object;
13448
+ errorShape: AugmentedErrorShape;
13449
+ transformer: true;
13450
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
13451
+ list: import("@trpc/server").TRPCQueryProcedure<{
13452
+ input: void;
13453
+ output: {
13454
+ methods: {
13455
+ path: string;
13456
+ router: string;
13457
+ method: string;
13458
+ kind: "query" | "mutation" | "subscription";
13459
+ tier: "public" | "protected" | "admin";
13460
+ source: "capability" | "core";
13461
+ scope: {
13462
+ capName: string;
13463
+ capScope: "system" | "device";
13464
+ access: "delete" | "view" | "create";
13465
+ role: string;
13466
+ } | null;
13467
+ hasInput: boolean;
13468
+ callable: "no" | "per-device" | "yes";
13469
+ }[];
13470
+ };
13471
+ meta: object;
13472
+ }>;
13473
+ inputSchema: import("@trpc/server").TRPCQueryProcedure<{
13474
+ input: {
13475
+ path: string;
13476
+ };
13477
+ output: {
13478
+ path: string;
13479
+ hasInput: boolean;
13480
+ schema: Record<string, unknown> | null;
13481
+ error: string | null;
13482
+ };
13483
+ meta: object;
13484
+ }>;
13485
+ }>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
13486
+ list: import("@trpc/server").TRPCQueryProcedure<{
13487
+ input: void;
13488
+ output: {
13489
+ methods: {
13490
+ path: string;
13491
+ router: string;
13492
+ method: string;
13493
+ kind: "query" | "mutation" | "subscription";
13494
+ tier: "public" | "protected" | "admin";
13495
+ source: "capability" | "core";
13496
+ scope: {
13497
+ capName: string;
13498
+ capScope: "system" | "device";
13499
+ access: "delete" | "view" | "create";
13500
+ role: string;
13501
+ } | null;
13502
+ hasInput: boolean;
13503
+ callable: "no" | "per-device" | "yes";
13504
+ }[];
13505
+ };
13506
+ meta: object;
13507
+ }>;
13508
+ inputSchema: import("@trpc/server").TRPCQueryProcedure<{
13509
+ input: {
13510
+ path: string;
13511
+ };
13512
+ output: {
13513
+ path: string;
13514
+ hasInput: boolean;
13515
+ schema: Record<string, unknown> | null;
13516
+ error: string | null;
13517
+ };
13518
+ meta: object;
13519
+ }>;
13520
+ }>;
13438
13521
  preferences: import("@trpc/server/unstable-core-do-not-import").Router<{
13439
13522
  ctx: any;
13440
13523
  meta: object;
@@ -5,7 +5,7 @@
5
5
  * `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
6
6
  * runner). See docs/decisions/adr-0028.md.
7
7
  *
8
- * Coverage: 1 advance-derived caps, 88 caps with 471 state leaves, 15 caps with a declared method timeout.
8
+ * Coverage: 1 advance-derived caps, 88 caps with 472 state leaves, 15 caps with a declared method timeout.
9
9
  */
10
10
  /** A bindable scalar in a capability's runtime state. */
11
11
  export interface CapStateLeaf {
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 1519 method paths across 211 capabilities.
9
+ * Coverage: 1520 method paths across 211 capabilities.
10
10
  */
11
11
  import type { MethodRole } from '../auth/viewer-access.js';
12
12
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';