@camstack/types 1.2.555 → 1.2.557

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 (57) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/addon/fake-addon-context.d.ts +3 -0
  3. package/dist/addon.js +2 -2
  4. package/dist/addon.mjs +2 -2
  5. package/dist/audit/device-transition.d.ts +53 -0
  6. package/dist/automation/action.d.ts +24 -54
  7. package/dist/automation/draft/draft-json.d.ts +1 -1
  8. package/dist/automation/draft/index.d.ts +0 -1
  9. package/dist/automation/index.d.ts +3 -2
  10. package/dist/automation/normalize-units.d.ts +3 -3
  11. package/dist/automation/offered.d.ts +18 -0
  12. package/dist/automation/recipe.d.ts +1156 -2598
  13. package/dist/automation/scheduler.d.ts +48 -108
  14. package/dist/automation/step-runner.d.ts +7 -0
  15. package/dist/capabilities/action-source.cap.d.ts +12 -27
  16. package/dist/capabilities/actions.cap.d.ts +84 -189
  17. package/dist/capabilities/device-export.cap.d.ts +36 -1
  18. package/dist/capabilities/hero-layout.cap.d.ts +92 -0
  19. package/dist/capabilities/index.d.ts +3 -3
  20. package/dist/capabilities/notification-rules.cap.d.ts +237 -0
  21. package/dist/capabilities/osd-manager.cap.d.ts +96 -0
  22. package/dist/capabilities/remote.cap.d.ts +2 -2
  23. package/dist/capabilities/scene-monitor.cap.d.ts +1 -1
  24. package/dist/capabilities/schedulers.cap.d.ts +96 -216
  25. package/dist/client.d.ts +1 -1
  26. package/dist/client.js +96 -11
  27. package/dist/client.mjs +95 -12
  28. package/dist/device/cap-vocabulary/action-index.d.ts +32 -0
  29. package/dist/device/cap-vocabulary/index.d.ts +2 -2
  30. package/dist/device/device-do-actions.d.ts +3 -105
  31. package/dist/device/export-name.d.ts +65 -0
  32. package/dist/device/hero/hero-contribution-kit.d.ts +3 -0
  33. package/dist/device/hero/hero-fragment.d.ts +3 -0
  34. package/dist/device/hero/hero-measurement.d.ts +76 -0
  35. package/dist/device/hero/hero-model.d.ts +91 -0
  36. package/dist/device/hero/hero-row.d.ts +67 -1
  37. package/dist/device/hero/index.d.ts +1 -0
  38. package/dist/enums/event-category.d.ts +9 -0
  39. package/dist/enums.js +1 -1
  40. package/dist/enums.mjs +1 -1
  41. package/dist/{event-category-78tcBemo.mjs → event-category-Dv-Gcv1f.mjs} +9 -0
  42. package/dist/{event-category-BC4RRerT.js → event-category-Ps2LC8dN.js} +9 -0
  43. package/dist/generated/addon-api.d.ts +7 -0
  44. package/dist/generated/method-access-map.d.ts +1 -1
  45. package/dist/generated/system-proxy.d.ts +1 -1
  46. package/dist/index.d.ts +8 -7
  47. package/dist/index.js +2412 -2143
  48. package/dist/index.mjs +2374 -2127
  49. package/dist/notification/alarm-steps.d.ts +18 -0
  50. package/dist/notification/system-event-families.d.ts +5 -0
  51. package/dist/notification/system-event-filters.d.ts +1 -1
  52. package/dist/remote/remote-config.d.ts +5 -5
  53. package/dist/{sleep-4qch9WKa.js → sleep-1RkA30Y1.js} +102 -1
  54. package/dist/{sleep-Ba1dJYDo.mjs → sleep-DyIxjZZt.mjs} +79 -2
  55. package/dist/testing.js +3 -3
  56. package/dist/testing.mjs +3 -3
  57. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Which Action steps touch the alarm panel: the one rule the hub's alarm
3
+ * membership, the admin rule editor and the viewer read (a step is stored by
4
+ * vocabulary action id, D983).
5
+ *
6
+ * The ids are a literal on purpose: a client bundle (`@camstack/types/client`)
7
+ * reaches this module without the whole vocabulary. `alarm-steps.spec.ts`
8
+ * keeps the list equal to the vocabulary's `alarm-panel` actions.
9
+ */
10
+ import type { ActionStep } from '../automation/recipe.js';
11
+ /** Every vocabulary action on the `alarm-panel` cap. */
12
+ export declare const NC_ALARM_PANEL_ACTION_IDS: readonly ['alarm.trigger', 'alarm.disarm', 'alarm.arm.home', 'alarm.arm.away', 'alarm.arm.night', 'alarm.arm.vacation', 'alarm.arm.custom_bypass'];
13
+ /** The action that pulls the panel's trigger (`alarm-panel.trigger`). */
14
+ export declare const NC_ALARM_TRIGGER_ACTION_ID = "alarm.trigger";
15
+ /** A command step on the alarm panel (arm, disarm or trigger). */
16
+ export declare function stepActuatesAlarmPanel(step: ActionStep): boolean;
17
+ /** A command step that pulls the alarm panel's trigger. */
18
+ export declare function stepPullsAlarmTrigger(step: ActionStep): boolean;
@@ -65,6 +65,11 @@ export type NcSystemEventFamilyProblem = {
65
65
  readonly code: 'filter-outside-family';
66
66
  readonly filter: NcSystemEventConditionFilterKey;
67
67
  readonly family: NcSystemEventFamily;
68
+ }
69
+ /** A `commandActions` entry the vocabulary action index (D983) does not know. */
70
+ | {
71
+ readonly code: 'unknown-command-action';
72
+ readonly action: string;
68
73
  };
69
74
  /**
70
75
  * Why the hub refuses this condition on a new or updated rule. Empty = accepted.
@@ -41,7 +41,7 @@ import { type NcSystemEventKind } from '../capabilities/notification-rules.cap.j
41
41
  * two sides has to be able to say which field it is talking about without a
42
42
  * translation table in the middle.
43
43
  */
44
- export type NcSystemEventFilterKey = 'deviceIds' | 'deviceTypes' | 'nodeIds' | 'packageNames' | 'consumableLowPercent';
44
+ export type NcSystemEventFilterKey = 'deviceIds' | 'deviceTypes' | 'nodeIds' | 'packageNames' | 'consumableLowPercent' | 'commandActions' | 'commandOutcomes' | 'commandActorKinds';
45
45
  /**
46
46
  * Every filter, for the callers that must cover all of them (guards, tests).
47
47
  *
@@ -3,16 +3,16 @@
3
3
  * the layout payload of the `remote` template kind. Pure data: no runtime, no
4
4
  * node dependency, so the admin UI imports the same schemas the server checks.
5
5
  *
6
- * A binding is the SAME shape an Action step has (`AutomationCapStepBaseSchema`: a
7
- * cap method called on a device with arguments), narrowed to ONE device: an IR
6
+ * A binding is a raw cap call (a cap method called on ONE device with
7
+ * arguments), not a vocabulary step: an IR
8
8
  * code is `ir-transmitter.send` on the transmitter, a smart TV is a `switch` or a
9
9
  * vendor cap — the remote does not know which. How many times a command is sent
10
10
  * is the CALLER's (`sendCommand({ repeat })`), never stored here.
11
11
  */
12
12
  import { z } from 'zod';
13
13
  export declare const RemoteBindingActionSchema: z.ZodObject<{
14
- deviceId: z.ZodNumber;
15
14
  kind: z.ZodLiteral<"cap">;
15
+ deviceId: z.ZodNumber;
16
16
  cap: z.ZodString;
17
17
  method: z.ZodString;
18
18
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -21,8 +21,8 @@ export declare const RemoteBindingActionSchema: z.ZodObject<{
21
21
  export type RemoteBindingAction = z.infer<typeof RemoteBindingActionSchema>;
22
22
  export declare const RemoteBindingSchema: z.ZodObject<{
23
23
  action: z.ZodObject<{
24
- deviceId: z.ZodNumber;
25
24
  kind: z.ZodLiteral<"cap">;
25
+ deviceId: z.ZodNumber;
26
26
  cap: z.ZodString;
27
27
  method: z.ZodString;
28
28
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -50,8 +50,8 @@ export declare const RemoteConfigSchema: z.ZodObject<{
50
50
  defaultTransmitterId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
51
51
  bindings: z.ZodRecord<z.ZodString, z.ZodObject<{
52
52
  action: z.ZodObject<{
53
- deviceId: z.ZodNumber;
54
53
  kind: z.ZodLiteral<"cap">;
54
+ deviceId: z.ZodNumber;
55
55
  cap: z.ZodString;
56
56
  method: z.ZodString;
57
57
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1,4 +1,4 @@
1
- const require_event_category = require("./event-category-BC4RRerT.js");
1
+ const require_event_category = require("./event-category-Ps2LC8dN.js");
2
2
  const require_composed_stable_id = require("./composed-stable-id-CDNLq7Y8.js");
3
3
  let zod = require("zod");
4
4
  //#region src/audio/audio-chunk-format.ts
@@ -936,6 +936,13 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
936
936
  else skipped.push(id);
937
937
  };
938
938
  const selected = options.only === void 0 ? null : new Set(options.only);
939
+ const deferred = /* @__PURE__ */ new Set();
940
+ const deferredBy = (reason) => {
941
+ if (selected === null || reason === null) return null;
942
+ const dep = /^dependency-(?:pending|blocked):(.+)$/.exec(reason)?.[1];
943
+ if (dep === void 0 || !byId.has(dep)) return null;
944
+ return !selected.has(dep) || deferred.has(dep) ? dep : null;
945
+ };
939
946
  for (const step of declaration.steps) {
940
947
  if (selected !== null && !selected.has(step.id)) continue;
941
948
  const bound = byId.get(step.id);
@@ -947,6 +954,19 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
947
954
  try {
948
955
  const gate = await host.startMigration({ id: step.id });
949
956
  if (!gate.proceed) {
957
+ const waitsFor = deferredBy(gate.reason);
958
+ if (waitsFor !== null) {
959
+ log.info("migration deferred: its predecessor runs in another phase of this owner", {
960
+ tags,
961
+ meta: {
962
+ waitsFor,
963
+ reason: gate.reason
964
+ }
965
+ });
966
+ deferred.add(step.id);
967
+ skipped.push(step.id);
968
+ continue;
969
+ }
950
970
  log.warn("migration not run", {
951
971
  tags,
952
972
  meta: {
@@ -6761,6 +6781,20 @@ var DeviceTransitionSchema = zod.z.object({
6761
6781
  actor: TransitionActorSchema,
6762
6782
  command: TransitionCommandSchema.optional()
6763
6783
  });
6784
+ /**
6785
+ * The payload of `EventCategory.DeviceCommandSettled`: a command the audit
6786
+ * settled, without its arguments (they stay redacted in the row). A command is
6787
+ * named ONLY by its vocabulary action id (`powerSource.forceRestart`, D983) -
6788
+ * the one dictionary the automation action blocks use; the cap is derived from
6789
+ * the action index, never carried.
6790
+ */
6791
+ var DeviceCommandSettledEventSchema = zod.z.object({
6792
+ deviceId: zod.z.number().int(),
6793
+ action: zod.z.string(),
6794
+ outcome: TransitionOutcomeSchema,
6795
+ actor: TransitionActorSchema,
6796
+ at: zod.z.number()
6797
+ });
6764
6798
  var READING_QUANTITIES = [
6765
6799
  "temperature",
6766
6800
  "pressure",
@@ -12518,6 +12552,49 @@ function actionEffect(actionId, args) {
12518
12552
  };
12519
12553
  return null;
12520
12554
  }
12555
+ /**
12556
+ * A command step names an action that does not exist, or a device that does
12557
+ * not offer it. Typed so a save boundary names the reason, not a string.
12558
+ */
12559
+ var VocabActionError = class extends Error {
12560
+ reason;
12561
+ actionId;
12562
+ deviceId;
12563
+ constructor(reason, actionId, message, deviceId) {
12564
+ super(message);
12565
+ this.reason = reason;
12566
+ this.actionId = actionId;
12567
+ this.deviceId = deviceId;
12568
+ this.name = "VocabActionError";
12569
+ }
12570
+ };
12571
+ /**
12572
+ * The cap + method + args `actionId` calls with the step's (open) `args`.
12573
+ * THE one place a command step's action id becomes a cap method: the step
12574
+ * runner and a generated automation block call it when the step runs.
12575
+ * Throws {@link VocabActionError} (`unknown-action`).
12576
+ */
12577
+ function vocabCall(actionId, args) {
12578
+ const found = findVocabAction(actionId);
12579
+ if (found === void 0) throw new VocabActionError("unknown-action", actionId, `"${actionId}" is not a vocabulary action id`);
12580
+ return {
12581
+ cap: found.cap,
12582
+ method: found.action.method,
12583
+ args: {
12584
+ ...args,
12585
+ ...found.action.args
12586
+ }
12587
+ };
12588
+ }
12589
+ /**
12590
+ * Refuse a device that does not offer `actionId`: its bound caps (the
12591
+ * per-binding walk, D12) do not include the action's cap. Throws
12592
+ * {@link VocabActionError} (`unknown-action` or `not-offered`).
12593
+ */
12594
+ function assertDeviceOffers(actionId, deviceId, deviceCaps) {
12595
+ const { cap } = vocabCall(actionId, void 0);
12596
+ if (!deviceCaps.includes(cap)) throw new VocabActionError("not-offered", actionId, `device ${deviceId} does not offer ${actionId} (needs cap "${cap}")`, deviceId);
12597
+ }
12521
12598
  //#endregion
12522
12599
  //#region src/capabilities/addon-pages-source.cap.ts
12523
12600
  /**
@@ -17194,6 +17271,12 @@ Object.defineProperty(exports, "DecodedAudioChunkSchema", {
17194
17271
  return DecodedAudioChunkSchema;
17195
17272
  }
17196
17273
  });
17274
+ Object.defineProperty(exports, "DeviceCommandSettledEventSchema", {
17275
+ enumerable: true,
17276
+ get: function() {
17277
+ return DeviceCommandSettledEventSchema;
17278
+ }
17279
+ });
17197
17280
  Object.defineProperty(exports, "DeviceTransitionSchema", {
17198
17281
  enumerable: true,
17199
17282
  get: function() {
@@ -17710,6 +17793,12 @@ Object.defineProperty(exports, "UnknownRecordKindError", {
17710
17793
  return UnknownRecordKindError;
17711
17794
  }
17712
17795
  });
17796
+ Object.defineProperty(exports, "VocabActionError", {
17797
+ enumerable: true,
17798
+ get: function() {
17799
+ return VocabActionError;
17800
+ }
17801
+ });
17713
17802
  Object.defineProperty(exports, "WELL_KNOWN_TABS", {
17714
17803
  enumerable: true,
17715
17804
  get: function() {
@@ -17800,6 +17889,12 @@ Object.defineProperty(exports, "asString", {
17800
17889
  return asString;
17801
17890
  }
17802
17891
  });
17892
+ Object.defineProperty(exports, "assertDeviceOffers", {
17893
+ enumerable: true,
17894
+ get: function() {
17895
+ return assertDeviceOffers;
17896
+ }
17897
+ });
17803
17898
  Object.defineProperty(exports, "assertTransactScope", {
17804
17899
  enumerable: true,
17805
17900
  get: function() {
@@ -18694,6 +18789,12 @@ Object.defineProperty(exports, "vocabActionIdFor", {
18694
18789
  return vocabActionIdFor;
18695
18790
  }
18696
18791
  });
18792
+ Object.defineProperty(exports, "vocabCall", {
18793
+ enumerable: true,
18794
+ get: function() {
18795
+ return vocabCall;
18796
+ }
18797
+ });
18697
18798
  Object.defineProperty(exports, "withoutCallerStamp", {
18698
18799
  enumerable: true,
18699
18800
  get: function() {
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-78tcBemo.mjs";
1
+ import { t as EventCategory } from "./event-category-Dv-Gcv1f.mjs";
2
2
  import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-CPp3votu.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/audio/audio-chunk-format.ts
@@ -936,6 +936,13 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
936
936
  else skipped.push(id);
937
937
  };
938
938
  const selected = options.only === void 0 ? null : new Set(options.only);
939
+ const deferred = /* @__PURE__ */ new Set();
940
+ const deferredBy = (reason) => {
941
+ if (selected === null || reason === null) return null;
942
+ const dep = /^dependency-(?:pending|blocked):(.+)$/.exec(reason)?.[1];
943
+ if (dep === void 0 || !byId.has(dep)) return null;
944
+ return !selected.has(dep) || deferred.has(dep) ? dep : null;
945
+ };
939
946
  for (const step of declaration.steps) {
940
947
  if (selected !== null && !selected.has(step.id)) continue;
941
948
  const bound = byId.get(step.id);
@@ -947,6 +954,19 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
947
954
  try {
948
955
  const gate = await host.startMigration({ id: step.id });
949
956
  if (!gate.proceed) {
957
+ const waitsFor = deferredBy(gate.reason);
958
+ if (waitsFor !== null) {
959
+ log.info("migration deferred: its predecessor runs in another phase of this owner", {
960
+ tags,
961
+ meta: {
962
+ waitsFor,
963
+ reason: gate.reason
964
+ }
965
+ });
966
+ deferred.add(step.id);
967
+ skipped.push(step.id);
968
+ continue;
969
+ }
950
970
  log.warn("migration not run", {
951
971
  tags,
952
972
  meta: {
@@ -6761,6 +6781,20 @@ var DeviceTransitionSchema = z.object({
6761
6781
  actor: TransitionActorSchema,
6762
6782
  command: TransitionCommandSchema.optional()
6763
6783
  });
6784
+ /**
6785
+ * The payload of `EventCategory.DeviceCommandSettled`: a command the audit
6786
+ * settled, without its arguments (they stay redacted in the row). A command is
6787
+ * named ONLY by its vocabulary action id (`powerSource.forceRestart`, D983) -
6788
+ * the one dictionary the automation action blocks use; the cap is derived from
6789
+ * the action index, never carried.
6790
+ */
6791
+ var DeviceCommandSettledEventSchema = z.object({
6792
+ deviceId: z.number().int(),
6793
+ action: z.string(),
6794
+ outcome: TransitionOutcomeSchema,
6795
+ actor: TransitionActorSchema,
6796
+ at: z.number()
6797
+ });
6764
6798
  var READING_QUANTITIES = [
6765
6799
  "temperature",
6766
6800
  "pressure",
@@ -12518,6 +12552,49 @@ function actionEffect(actionId, args) {
12518
12552
  };
12519
12553
  return null;
12520
12554
  }
12555
+ /**
12556
+ * A command step names an action that does not exist, or a device that does
12557
+ * not offer it. Typed so a save boundary names the reason, not a string.
12558
+ */
12559
+ var VocabActionError = class extends Error {
12560
+ reason;
12561
+ actionId;
12562
+ deviceId;
12563
+ constructor(reason, actionId, message, deviceId) {
12564
+ super(message);
12565
+ this.reason = reason;
12566
+ this.actionId = actionId;
12567
+ this.deviceId = deviceId;
12568
+ this.name = "VocabActionError";
12569
+ }
12570
+ };
12571
+ /**
12572
+ * The cap + method + args `actionId` calls with the step's (open) `args`.
12573
+ * THE one place a command step's action id becomes a cap method: the step
12574
+ * runner and a generated automation block call it when the step runs.
12575
+ * Throws {@link VocabActionError} (`unknown-action`).
12576
+ */
12577
+ function vocabCall(actionId, args) {
12578
+ const found = findVocabAction(actionId);
12579
+ if (found === void 0) throw new VocabActionError("unknown-action", actionId, `"${actionId}" is not a vocabulary action id`);
12580
+ return {
12581
+ cap: found.cap,
12582
+ method: found.action.method,
12583
+ args: {
12584
+ ...args,
12585
+ ...found.action.args
12586
+ }
12587
+ };
12588
+ }
12589
+ /**
12590
+ * Refuse a device that does not offer `actionId`: its bound caps (the
12591
+ * per-binding walk, D12) do not include the action's cap. Throws
12592
+ * {@link VocabActionError} (`unknown-action` or `not-offered`).
12593
+ */
12594
+ function assertDeviceOffers(actionId, deviceId, deviceCaps) {
12595
+ const { cap } = vocabCall(actionId, void 0);
12596
+ if (!deviceCaps.includes(cap)) throw new VocabActionError("not-offered", actionId, `device ${deviceId} does not offer ${actionId} (needs cap "${cap}")`, deviceId);
12597
+ }
12521
12598
  //#endregion
12522
12599
  //#region src/capabilities/addon-pages-source.cap.ts
12523
12600
  /**
@@ -16924,4 +17001,4 @@ function sleepCancellable(ms, signal) {
16924
17001
  });
16925
17002
  }
16926
17003
  //#endregion
16927
- export { DEVICE_CHILDREN_BATCH_MAX as $, WELL_KNOWN_TAB_MAP as $i, HISTORY_UNIT_LABELS as $n, RECORD_DATABASES as $r, displayUnitFor as $t, CAP_ADVANCE_FIELDS as A, RecordSecretUnavailableError as Ai, CALLER_USERNAME_HEADER as An, nodeIdOfScopedKey as Ar, CAM_PROFILE_ORDER as At, CAP_COMMAND_ORIGIN_CONTEXT_KEY as B, defaultIntegrationDepsOver as Bi, RecordKindNameSchema as Bn, isInstanceEnabled as Br, StreamSourceEntrySchema$1 as Bt, auditedFields as C, AUDIO_CHUNK_FORMATS as Ca, FilterRequiredError as Ci, scrubKnownSecrets as Cn, secretTreeFromSchema as Cr, createDebugEmitter as Ct, HF_BASE_URL as D, PlaintextSecretError as Di, PEER_BYTES_STALL_MS as Dn, resolveSecretMarkers as Dr, AudioStreamPickSchema as Dt, DEFAULT_TOKEN_EXPIRY as E, isAudioChunkFormat as Ea, NoCallerError as Ei, PEER_BYTES_MAX_OUTSTANDING as En, isSecretRefOwnedBy as Er, AudioChunkFormatSchema as Et, withoutCallerStamp as F, TransactRefusedError as Fi, entryBody as Fn, moveRegistrySwitchToBody as Fr, DecodedAudioChunkSchema as Ft, readNodePin as G, switchRecordsOverMigrationApi as Gi, defineRecordKinds as Gn, parseSecretPath as Gr, makeSourceBrokerId as Gt, commandOrigin as H, recordsOverMigrationApi as Hi, StoredRecordKindDeclarationSchema as Hn, REMOVE_LEAF as Hr, SubscribeAudioChunksInputSchema as Ht, customAction as I, UnindexedFilterError as Ii, EntryDescriptorSchema as In, registrySwitchPortsOver as Ir, FrameHandleSchema as It, PipelineRunResultBridge as J, runAddonMigrations as Ji, isZodSecret as Jn, recordSecretRef as Jr, DEFAULT_DISPLAY_PREFERENCE as Jt, toNodeId as K, AddonMigrationDefinitionError as Ki, SECRET_META as Kn, recordArrayItemPath as Kr, parseProfileBrokerId as Kt, defineCustomActions as L, UnknownRecordKindError as Li, RecordFieldPathSchema as Ln, registrySwitchToBodyId as Lr, ProfileRtspEntrySchema as Lt, CAP_NAMES as M, RecordUniqueViolationError as Mi, SHARE_VIEW_KINDS as Mn, resolvedValues as Mr, CamStreamKindSchema as Mt, CAP_STATE_LEAVES as N, RecordsError as Ni, DisposerChain as Nn, normalizeNodeId as Nr, CamStreamResolutionSchema as Nt, HF_REPO as O, RECORDS_ERROR_CODES as Oi, PEER_BYTES_TICKET_TTL_MS as On, transformSecretWrite as Or, BrokerStatsSchema as Ot, CALLER_STAMPED_CAPABILITIES as P, RevConflictError as Pi, defineEntryKind as Pn, createDurableState as Pr, CameraStreamSchema as Pt, deviceOpsCapability as Q, WELL_KNOWN_TABS as Qi, HISTORY_DEFAULT_MIN_INTERVAL_MS as Qn, RECORD_CLASSES as Qr, baseUnitOf as Qt, describeCustomActions as R, asRecordsError as Ri, RecordIndexSchema as Rn, registrySwitchToBodyMigration as Rr, ProfileSlotSchema as Rt, createSliceHandle as S, findMigrationsBlocked as Sa, DeclarationRefusedError as Si, registerKnownSecret as Sn, secretTreeFromPaths as Sr, __resetDebugInterestForTests as St, isCommand as T, expandAudioChunkToF32le as Ta, InvalidRecordError as Ti, PEER_BYTES_CHUNK_BYTES as Tn, collectSecretMarkerRefs as Tr, isDebugChannelName as Tt, nodePin as U, rowsDepsOver as Ui, assertValidDeclaration as Un, collectSecretLeaves as Ur, SubscribeAudioChunksResultSchema as Ut, CAP_NODE_PIN_CONTEXT_KEY as V, integrationRowsApiOver as Vi, RecordRetentionSchema as Vn, secretViewsOf as Vr, StreamSourceSchema as Vt, readCommandOrigin as W, secretsOverMigrationApi as Wi, declarationsOf as Wn, mapSecretLeaves as Wr, makeProfileBrokerId as Wt, MIGRATION_API_VERSION as X, emitReadiness as Xi, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Xn, RECORD_BATCH_MAX as Xr, QUANTITY_BASE as Xt, PipelineStepInputSchema as Y, createEvent as Yi, DEFAULT_RUNTIME_STATE_DURABILITY as Yn, secretArrayPrefixes as Yr, DISPLAY_PREFERENCES as Yt, RawStateResultSchema as Z, isEvent as Zi, DEVICE_STATUS_METHOD as Zn, RECORD_BATCH_MAX_BYTES as Zr, ReadingQuantitySchema as Zt, invokeTrpcLeaf as _, isKeychainStoredField as _a, parseSecretRef as _i, createSecretsAccess as _n, classifyStoreError as _r, DEBUG_WATCH_HARD_CAP_MS as _t, asJsonArray as a, resolveHydratedFieldValue as aa, RECORD_MAX_INDEX_FIELDS as ai, TransitionActorSchema as an, method as ar, findVocabAction as at, createLazyTrpcSource as b, schemaDeclaresAnyField as ba, optionalLinkField as bi, forgetKnownSecret as bn, mergeSecretStatePaths as br, DebugInterest as bt, asString as c, isSecretClear as ca, RECORD_SETTINGS_MAX_ROWS as ci, TransitionValueSchema as cn, systemMethod as cr, CAP_VOCABULARY_BY_NAME as ct, parseJsonUnknown as d, isSecretMarkerLike as da, arrayItemFieldPath as di, ruleFireOfClaim as dn, ErrorI18nPayloadSchema as dr, ReadinessRegistry as dt, collectHydratedFieldEntries as ea, RECORD_DEFAULT_MAX_DATA_BYTES as ei, historyUnitFor as en, PROVIDER_PIN_FIELD as er, adminUiCapability as et, hfModelUrl as f, makeSecretMarker as fa, buildSecretRef as fi, makeInMemoryRecords as fn, FORBIDDEN_MESSAGE_PREFIX as fr, ReadinessTimeoutError as ft, createDeviceProxy as g, collectSecretConfigKeys as ga, normalizeSecretOwner as gi, REVALIDATE_AFTER_MS as gn, BaseAddon as gr, DEBUG_CHANNEL_PREFIX as gt, isDeviceScopedCap as h, collectKeychainStoredKeys as ha, isSecretRef as hi, resolveSecretViewsIn as hn, userError as hr, scopeKey as ht, asBoolean as i, hydrateSchema as ia, RECORD_MAX_INDEXES as ii, TransitionActorKindSchema as in, isDeviceConfigCap as ir, allVocabActions as it, CAP_METHOD_TIMEOUTS_MS as j, RecordTooLargeError as ji, DATAPLANE_SECRET_HEADER as jn, resolveDeviceSettings as jr, CamProfileSchema as jt, RUNTIME_DEFAULTS as k, RecordNotFoundError as ki, PeerBytesTicketSchema as kn, SCOPED_SETTINGS_SCOPES as kr, BrokerStatusSchema as kt, parseJsonArray as l, isSecretFieldView as la, RECORD_SWEEP_INTERVAL_MS as li, CommandOriginClaimSchema as ln, CamstackError as lr, t as lt, DEVICE_SCOPED_CAPS as m, REDACTED_SECRET as ma, globalSecretScope as mi, assertTransactScope as mn, readErrorI18n as mr, readinessKey as mt, sleepCancellable as n, dehydrateConfigField as na, RECORD_ID_MAX_LENGTH as ni, readingMeta as nn, expandCapMethods as nr, addonPagesSourceCapability as nt, asJsonObject as o, SECRET_CLEAR as oa, RECORD_QUERY_MAX as oi, TransitionCommandSchema as on, optionalMethod as or, vocabActionIdFor as ot, BOOT_RECOVERY_BACKOFF_MS as p, toSecretFieldView as pa, formatSecretScope as pi, createRecordsAccess as pn, forbiddenError as pr, emitDownForOwnedCaps as pt, viewerUiCapability as q, defineAddonMigrations as qi, collectZodSecretPaths as qn, recordSecretCollection as qr, selectAssignedProfileSlots as qt, maskUrlCredentials as r, dehydrateSchema as ra, RECORD_MAX_DATA_BYTES as ri, DeviceTransitionSchema as rn, historyItemFieldPath as rr, actionEffect as rt, asNumber as s, classifySecretWrite as sa, RECORD_SECRET_COLLECTION_PREFIX as si, TransitionOutcomeSchema as sn, resolveCapMount as sr, CAP_VOCABULARY as st, sleep as t, collectHydratedFieldValues as ta, RECORD_DELETE_BATCH as ti, isReadingQuantity as tn, event as tr, AddonPageDeclarationSchema as tt, parseJsonObject as u, isSecretMarker as ua, SECRET_REF_SCHEME as ui, RuleFireOriginSchema as un, ErrorCodeSchema as ur, MODEL_FORMATS as ut, addonSliceHandleApi as v, isSecretConfigField as va, linkField as vi, MIN_SCRUBBED_LENGTH as vn, migrationSet as vr, DEBUG_WATCH_REARM_EVERY_MS as vt, commandEffect as w, audioChunkBytesPerSample as wa, ForeignSecretMarkerError as wi, shortSecretRefHash as wn, KeychainWriteRefusedError as wr, getDebugInterest as wt, createMirrorSource as x, AddonMigrationsBlockedError as xa, BatchTooLargeError as xi, knownSecretCount as xn, parseSecretStatePath as xr, DebugWatchTable as xt, createEventBusSliceSource as y, omitTransientConfig as ya, linksOfKind as yi, clearKnownSecrets as yn, normalizeAddonInitResult as yr, DEBUG_WATCH_WINDOW_MS as yt, deviceCustomAction as z, recordsErrorFromMessage as zi, RecordKindDeclarationSchema as zn, RecordIntegrationInstances as zr, ProfileSlotStatusSchema as zt };
17004
+ export { DEVICE_CHILDREN_BATCH_MAX as $, createEvent as $i, DEFAULT_RUNTIME_STATE_DURABILITY as $n, secretArrayPrefixes as $r, QUANTITY_BASE as $t, CAP_ADVANCE_FIELDS as A, isAudioChunkFormat as Aa, NoCallerError as Ai, PEER_BYTES_MAX_OUTSTANDING as An, isSecretRefOwnedBy as Ar, AudioStreamPickSchema as At, CAP_COMMAND_ORIGIN_CONTEXT_KEY as B, UnindexedFilterError as Bi, EntryDescriptorSchema as Bn, registrySwitchPortsOver as Br, ProfileRtspEntrySchema as Bt, auditedFields as C, omitTransientConfig as Ca, linksOfKind as Ci, clearKnownSecrets as Cn, normalizeAddonInitResult as Cr, DebugInterest as Ct, HF_BASE_URL as D, AUDIO_CHUNK_FORMATS as Da, FilterRequiredError as Di, scrubKnownSecrets as Dn, secretTreeFromSchema as Dr, getDebugInterest as Dt, DEFAULT_TOKEN_EXPIRY as E, findMigrationsBlocked as Ea, DeclarationRefusedError as Ei, registerKnownSecret as En, secretTreeFromPaths as Er, createDebugEmitter as Et, withoutCallerStamp as F, RecordTooLargeError as Fi, DATAPLANE_SECRET_HEADER as Fn, resolveDeviceSettings as Fr, CamStreamKindSchema as Ft, readNodePin as G, integrationRowsApiOver as Gi, RecordRetentionSchema as Gn, secretViewsOf as Gr, SubscribeAudioChunksInputSchema as Gt, commandOrigin as H, asRecordsError as Hi, RecordIndexSchema as Hn, registrySwitchToBodyMigration as Hr, ProfileSlotStatusSchema as Ht, customAction as I, RecordUniqueViolationError as Ii, SHARE_VIEW_KINDS as In, resolvedValues as Ir, CamStreamResolutionSchema as It, PipelineRunResultBridge as J, secretsOverMigrationApi as Ji, declarationsOf as Jn, mapSecretLeaves as Jr, makeSourceBrokerId as Jt, toNodeId as K, recordsOverMigrationApi as Ki, StoredRecordKindDeclarationSchema as Kn, REMOVE_LEAF as Kr, SubscribeAudioChunksResultSchema as Kt, defineCustomActions as L, RecordsError as Li, DisposerChain as Ln, normalizeNodeId as Lr, CameraStreamSchema as Lt, CAP_NAMES as M, RECORDS_ERROR_CODES as Mi, PEER_BYTES_TICKET_TTL_MS as Mn, transformSecretWrite as Mr, BrokerStatusSchema as Mt, CAP_STATE_LEAVES as N, RecordNotFoundError as Ni, PeerBytesTicketSchema as Nn, SCOPED_SETTINGS_SCOPES as Nr, CAM_PROFILE_ORDER as Nt, HF_REPO as O, audioChunkBytesPerSample as Oa, ForeignSecretMarkerError as Oi, shortSecretRefHash as On, KeychainWriteRefusedError as Or, isDebugChannelName as Ot, CALLER_STAMPED_CAPABILITIES as P, RecordSecretUnavailableError as Pi, CALLER_USERNAME_HEADER as Pn, nodeIdOfScopedKey as Pr, CamProfileSchema as Pt, deviceOpsCapability as Q, runAddonMigrations as Qi, isZodSecret as Qn, recordSecretRef as Qr, DISPLAY_PREFERENCES as Qt, describeCustomActions as R, RevConflictError as Ri, defineEntryKind as Rn, createDurableState as Rr, DecodedAudioChunkSchema as Rt, createSliceHandle as S, isSecretConfigField as Sa, linkField as Si, MIN_SCRUBBED_LENGTH as Sn, migrationSet as Sr, DEBUG_WATCH_WINDOW_MS as St, isCommand as T, AddonMigrationsBlockedError as Ta, BatchTooLargeError as Ti, knownSecretCount as Tn, parseSecretStatePath as Tr, __resetDebugInterestForTests as Tt, nodePin as U, recordsErrorFromMessage as Ui, RecordKindDeclarationSchema as Un, RecordIntegrationInstances as Ur, StreamSourceEntrySchema$1 as Ut, CAP_NODE_PIN_CONTEXT_KEY as V, UnknownRecordKindError as Vi, RecordFieldPathSchema as Vn, registrySwitchToBodyId as Vr, ProfileSlotSchema as Vt, readCommandOrigin as W, defaultIntegrationDepsOver as Wi, RecordKindNameSchema as Wn, isInstanceEnabled as Wr, StreamSourceSchema as Wt, MIGRATION_API_VERSION as X, AddonMigrationDefinitionError as Xi, SECRET_META as Xn, recordArrayItemPath as Xr, selectAssignedProfileSlots as Xt, PipelineStepInputSchema as Y, switchRecordsOverMigrationApi as Yi, defineRecordKinds as Yn, parseSecretPath as Yr, parseProfileBrokerId as Yt, RawStateResultSchema as Z, defineAddonMigrations as Zi, collectZodSecretPaths as Zn, recordSecretCollection as Zr, DEFAULT_DISPLAY_PREFERENCE as Zt, invokeTrpcLeaf as _, toSecretFieldView as _a, formatSecretScope as _i, createRecordsAccess as _n, forbiddenError as _r, readinessKey as _t, asJsonArray as a, collectHydratedFieldValues as aa, RECORD_DELETE_BATCH as ai, readingMeta as an, event as ar, allVocabActions as at, createLazyTrpcSource as b, collectSecretConfigKeys as ba, normalizeSecretOwner as bi, REVALIDATE_AFTER_MS as bn, BaseAddon as br, DEBUG_WATCH_HARD_CAP_MS as bt, asString as c, hydrateSchema as ca, RECORD_MAX_INDEXES as ci, TransitionActorKindSchema as cn, isDeviceConfigCap as cr, vocabActionIdFor as ct, parseJsonUnknown as d, classifySecretWrite as da, RECORD_SECRET_COLLECTION_PREFIX as di, TransitionOutcomeSchema as dn, resolveCapMount as dr, CAP_VOCABULARY_BY_NAME as dt, emitReadiness as ea, RECORD_BATCH_MAX as ei, ReadingQuantitySchema as en, DEVICE_SETTINGS_CONTRIBUTION_METHODS as er, adminUiCapability as et, hfModelUrl as f, isSecretClear as fa, RECORD_SETTINGS_MAX_ROWS as fi, TransitionValueSchema as fn, systemMethod as fr, t as ft, createDeviceProxy as g, makeSecretMarker as ga, buildSecretRef as gi, makeInMemoryRecords as gn, FORBIDDEN_MESSAGE_PREFIX as gr, emitDownForOwnedCaps as gt, isDeviceScopedCap as h, isSecretMarkerLike as ha, arrayItemFieldPath as hi, ruleFireOfClaim as hn, ErrorI18nPayloadSchema as hr, ReadinessTimeoutError as ht, asBoolean as i, collectHydratedFieldEntries as ia, RECORD_DEFAULT_MAX_DATA_BYTES as ii, isReadingQuantity as in, PROVIDER_PIN_FIELD as ir, actionEffect as it, CAP_METHOD_TIMEOUTS_MS as j, PlaintextSecretError as ji, PEER_BYTES_STALL_MS as jn, resolveSecretMarkers as jr, BrokerStatsSchema as jt, RUNTIME_DEFAULTS as k, expandAudioChunkToF32le as ka, InvalidRecordError as ki, PEER_BYTES_CHUNK_BYTES as kn, collectSecretMarkerRefs as kr, AudioChunkFormatSchema as kt, parseJsonArray as l, resolveHydratedFieldValue as la, RECORD_MAX_INDEX_FIELDS as li, TransitionActorSchema as ln, method as lr, vocabCall as lt, DEVICE_SCOPED_CAPS as m, isSecretMarker as ma, SECRET_REF_SCHEME as mi, RuleFireOriginSchema as mn, ErrorCodeSchema as mr, ReadinessRegistry as mt, sleepCancellable as n, WELL_KNOWN_TABS as na, RECORD_CLASSES as ni, displayUnitFor as nn, HISTORY_DEFAULT_MIN_INTERVAL_MS as nr, addonPagesSourceCapability as nt, asJsonObject as o, dehydrateConfigField as oa, RECORD_ID_MAX_LENGTH as oi, DeviceCommandSettledEventSchema as on, expandCapMethods as or, assertDeviceOffers as ot, BOOT_RECOVERY_BACKOFF_MS as p, isSecretFieldView as pa, RECORD_SWEEP_INTERVAL_MS as pi, CommandOriginClaimSchema as pn, CamstackError as pr, MODEL_FORMATS as pt, viewerUiCapability as q, rowsDepsOver as qi, assertValidDeclaration as qn, collectSecretLeaves as qr, makeProfileBrokerId as qt, maskUrlCredentials as r, WELL_KNOWN_TAB_MAP as ra, RECORD_DATABASES as ri, historyUnitFor as rn, HISTORY_UNIT_LABELS as rr, VocabActionError as rt, asNumber as s, dehydrateSchema as sa, RECORD_MAX_DATA_BYTES as si, DeviceTransitionSchema as sn, historyItemFieldPath as sr, findVocabAction as st, sleep as t, isEvent as ta, RECORD_BATCH_MAX_BYTES as ti, baseUnitOf as tn, DEVICE_STATUS_METHOD as tr, AddonPageDeclarationSchema as tt, parseJsonObject as u, SECRET_CLEAR as ua, RECORD_QUERY_MAX as ui, TransitionCommandSchema as un, optionalMethod as ur, CAP_VOCABULARY as ut, addonSliceHandleApi as v, REDACTED_SECRET as va, globalSecretScope as vi, assertTransactScope as vn, readErrorI18n as vr, scopeKey as vt, commandEffect as w, schemaDeclaresAnyField as wa, optionalLinkField as wi, forgetKnownSecret as wn, mergeSecretStatePaths as wr, DebugWatchTable as wt, createMirrorSource as x, isKeychainStoredField as xa, parseSecretRef as xi, createSecretsAccess as xn, classifyStoreError as xr, DEBUG_WATCH_REARM_EVERY_MS as xt, createEventBusSliceSource as y, collectKeychainStoredKeys as ya, isSecretRef as yi, resolveSecretViewsIn as yn, userError as yr, DEBUG_CHANNEL_PREFIX as yt, deviceCustomAction as z, TransactRefusedError as zi, entryBody as zn, moveRegistrySwitchToBody as zr, FrameHandleSchema as zt };
package/dist/testing.js CHANGED
@@ -53,10 +53,10 @@ function fakeSettings(overrides) {
53
53
  readAddonStore: overrides.readAddonStore ?? (async () => ({})),
54
54
  ...readAddonStoreResult !== void 0 ? { readAddonStoreResult } : {},
55
55
  writeAddonStore: overrides.writeAddonStore ?? unused("settings.writeAddonStore"),
56
- readDeviceStoreBatch: unused("settings.readDeviceStoreBatch"),
56
+ readDeviceStoreBatch: overrides.readDeviceStoreBatch ?? unused("settings.readDeviceStoreBatch"),
57
57
  listDeviceStoreIds: overrides.listDeviceStoreIds ?? unused("settings.listDeviceStoreIds"),
58
- readDeviceStore: unused("settings.readDeviceStore"),
59
- writeDeviceStore: unused("settings.writeDeviceStore"),
58
+ readDeviceStore: overrides.readDeviceStore ?? unused("settings.readDeviceStore"),
59
+ writeDeviceStore: overrides.writeDeviceStore ?? unused("settings.writeDeviceStore"),
60
60
  clearDeviceStore: unused("settings.clearDeviceStore"),
61
61
  getSection: unused("settings.getSection"),
62
62
  setSection: unused("settings.setSection"),
package/dist/testing.mjs CHANGED
@@ -52,10 +52,10 @@ function fakeSettings(overrides) {
52
52
  readAddonStore: overrides.readAddonStore ?? (async () => ({})),
53
53
  ...readAddonStoreResult !== void 0 ? { readAddonStoreResult } : {},
54
54
  writeAddonStore: overrides.writeAddonStore ?? unused("settings.writeAddonStore"),
55
- readDeviceStoreBatch: unused("settings.readDeviceStoreBatch"),
55
+ readDeviceStoreBatch: overrides.readDeviceStoreBatch ?? unused("settings.readDeviceStoreBatch"),
56
56
  listDeviceStoreIds: overrides.listDeviceStoreIds ?? unused("settings.listDeviceStoreIds"),
57
- readDeviceStore: unused("settings.readDeviceStore"),
58
- writeDeviceStore: unused("settings.writeDeviceStore"),
57
+ readDeviceStore: overrides.readDeviceStore ?? unused("settings.readDeviceStore"),
58
+ writeDeviceStore: overrides.writeDeviceStore ?? unused("settings.writeDeviceStore"),
59
59
  clearDeviceStore: unused("settings.clearDeviceStore"),
60
60
  getSection: unused("settings.getSection"),
61
61
  setSection: unused("settings.setSection"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.555",
3
+ "version": "1.2.557",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",