@camstack/types 1.2.537 → 1.2.539

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.
@@ -10,13 +10,14 @@
10
10
  * fires, and the operator was never told. One predicate, so the engine and the
11
11
  * warning cannot disagree about which rules are the alarm.
12
12
  *
13
- * Structural inputs (conditions + the ENABLED on-match bindings), so the
13
+ * Structural inputs (conditions + the ENABLED on-match Action ids), so the
14
14
  * admin's form state and the engine's rule both answer without a cast.
15
- * Sequence bindings need {@link NcAlarmMembershipSubject.sequenceActionsOf} —
16
- * without it a sequence-ref cannot prove membership (fail closed for the
15
+ * An Action id needs {@link NcAlarmMembershipSubject.actionStepsOf} —
16
+ * without it an Action cannot prove membership (fail closed for the
17
17
  * opening-edge refusal: better a closing notification than a silent open).
18
18
  */
19
- import type { NcConditions, NcRuleAction, NcRuleActions } from '../capabilities/notification-rules.cap.js';
19
+ import type { ActionStep } from '../automation/recipe.js';
20
+ import type { NcConditions, NcRuleActions } from '../capabilities/notification-rules.cap.js';
20
21
  /**
21
22
  * The sensor-event kinds that are OPENINGS to the alarm — the keys of the
22
23
  * engine's opening table (`alarm-openings.ts`, which is checked against this
@@ -37,24 +38,24 @@ export interface NcAlarmMembershipSubject {
37
38
  /** The rule's actions block. Absent = no actuation. */
38
39
  readonly actions?: NcRuleActions;
39
40
  /**
40
- * Resolve a shared sequence's steps. Required when an `onTrigger` binding is
41
- * a sequence ref — without it that binding cannot prove membership.
41
+ * Resolve an Action's steps. Required when the rule has an `onTrigger`
42
+ * Action — without it that Action cannot prove membership.
42
43
  */
43
- readonly sequenceActionsOf?: (sequenceId: string) => readonly NcRuleAction[] | undefined;
44
+ readonly actionStepsOf?: (actionId: string) => readonly ActionStep[] | undefined;
44
45
  }
45
46
  /** True when the rule's deviceState gate names any `armed_*` word. */
46
47
  export declare function ruleGatedOnArmedState(rule: NcAlarmMembershipSubject): boolean;
47
48
  /**
48
49
  * A rule belongs to the alarm when its `deviceState` gate names ANY device's
49
- * `armed_*` word, or an on-match binding pulls the alarm panel's trigger
50
- * (D630). Button-only sequences do NOT count — they are not an automatic
50
+ * `armed_*` word, or an on-match Action pulls the alarm panel's trigger
51
+ * (D630). Button-only Actions do NOT count — they are not an automatic
51
52
  * escalation.
52
53
  */
53
54
  export declare function ruleBelongsToAlarm(rule: NcAlarmMembershipSubject): boolean;
54
55
  /**
55
56
  * A rule gated on `armed_*` auto-triggers the CamStack `alarm-panel` on match
56
- * — no `onTrigger` sequence required. Sirens are never part of this path.
57
- * An explicit `alarm-panel.trigger` binding without an armed gate stays
57
+ * — no `onTrigger` Action required. Sirens are never part of this path.
58
+ * An explicit `alarm-panel.trigger` step without an armed gate stays
58
59
  * explicit actuation only ({@link ruleBelongsToAlarm}).
59
60
  */
60
61
  export declare function ruleAutoTriggersAlarm(rule: NcAlarmMembershipSubject): boolean;
@@ -6608,16 +6608,59 @@ function makeInMemoryRecords(owner = "spec", options = {}) {
6608
6608
  }
6609
6609
  //#endregion
6610
6610
  //#region src/audit/command-origin-claim.ts
6611
+ /**
6612
+ * The match a notification rule fired on (D705). Carried as a command origin so an
6613
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
6614
+ * anonymous press (D735). The same fields a rule fire ref freezes.
6615
+ */
6616
+ var RuleFireOriginSchema = zod.z.object({
6617
+ ruleId: zod.z.string(),
6618
+ ruleName: zod.z.string(),
6619
+ deviceId: zod.z.number().int(),
6620
+ sourceDeviceId: zod.z.number().int().optional(),
6621
+ recordId: zod.z.string(),
6622
+ timestamp: zod.z.number(),
6623
+ trackId: zod.z.string().optional(),
6624
+ eventId: zod.z.string().optional(),
6625
+ className: zod.z.string().optional(),
6626
+ label: zod.z.string().optional(),
6627
+ zones: zod.z.array(zod.z.string()).optional(),
6628
+ confidence: zod.z.number().optional(),
6629
+ sensorChange: zod.z.object({
6630
+ name: zod.z.string(),
6631
+ kind: zod.z.string(),
6632
+ state: zod.z.string()
6633
+ }).optional(),
6634
+ extraStills: zod.z.array(zod.z.object({
6635
+ ownerId: zod.z.string(),
6636
+ cameraId: zod.z.number().int()
6637
+ })).optional()
6638
+ });
6611
6639
  /** Where a command's origin claim comes from: an addon states WHY it called, never WHO it is. */
6612
- var CommandOriginClaimSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
6613
- kind: zod.z.literal("action"),
6614
- actionId: zod.z.string(),
6615
- runId: zod.z.string(),
6616
- automationId: zod.z.string().optional()
6617
- }), zod.z.object({
6618
- kind: zod.z.literal("scheduler"),
6619
- schedulerId: zod.z.string()
6620
- })]);
6640
+ var CommandOriginClaimSchema = zod.z.discriminatedUnion("kind", [
6641
+ zod.z.object({
6642
+ kind: zod.z.literal("action"),
6643
+ actionId: zod.z.string(),
6644
+ runId: zod.z.string(),
6645
+ automationId: zod.z.string().optional(),
6646
+ /** The rule fire that started this run, when one did (D705). */
6647
+ ruleFire: RuleFireOriginSchema.optional()
6648
+ }),
6649
+ zod.z.object({
6650
+ kind: zod.z.literal("scheduler"),
6651
+ schedulerId: zod.z.string()
6652
+ }),
6653
+ zod.z.object({
6654
+ kind: zod.z.literal("rule"),
6655
+ fire: RuleFireOriginSchema
6656
+ })
6657
+ ]);
6658
+ /** The rule fire a claim carries, if it carries one. */
6659
+ function ruleFireOfClaim(claim) {
6660
+ if (claim === void 0) return void 0;
6661
+ if (claim.kind === "rule") return claim.fire;
6662
+ if (claim.kind === "action") return claim.ruleFire;
6663
+ }
6621
6664
  //#endregion
6622
6665
  //#region src/audit/device-transition.ts
6623
6666
  /**
@@ -17519,6 +17562,12 @@ Object.defineProperty(exports, "RevConflictError", {
17519
17562
  return RevConflictError;
17520
17563
  }
17521
17564
  });
17565
+ Object.defineProperty(exports, "RuleFireOriginSchema", {
17566
+ enumerable: true,
17567
+ get: function() {
17568
+ return RuleFireOriginSchema;
17569
+ }
17570
+ });
17522
17571
  Object.defineProperty(exports, "SCOPED_SETTINGS_SCOPES", {
17523
17572
  enumerable: true,
17524
17573
  get: function() {
@@ -18473,6 +18522,12 @@ Object.defineProperty(exports, "rowsDepsOver", {
18473
18522
  return rowsDepsOver;
18474
18523
  }
18475
18524
  });
18525
+ Object.defineProperty(exports, "ruleFireOfClaim", {
18526
+ enumerable: true,
18527
+ get: function() {
18528
+ return ruleFireOfClaim;
18529
+ }
18530
+ });
18476
18531
  Object.defineProperty(exports, "runAddonMigrations", {
18477
18532
  enumerable: true,
18478
18533
  get: function() {
@@ -6608,16 +6608,59 @@ function makeInMemoryRecords(owner = "spec", options = {}) {
6608
6608
  }
6609
6609
  //#endregion
6610
6610
  //#region src/audit/command-origin-claim.ts
6611
+ /**
6612
+ * The match a notification rule fired on (D705). Carried as a command origin so an
6613
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
6614
+ * anonymous press (D735). The same fields a rule fire ref freezes.
6615
+ */
6616
+ var RuleFireOriginSchema = z.object({
6617
+ ruleId: z.string(),
6618
+ ruleName: z.string(),
6619
+ deviceId: z.number().int(),
6620
+ sourceDeviceId: z.number().int().optional(),
6621
+ recordId: z.string(),
6622
+ timestamp: z.number(),
6623
+ trackId: z.string().optional(),
6624
+ eventId: z.string().optional(),
6625
+ className: z.string().optional(),
6626
+ label: z.string().optional(),
6627
+ zones: z.array(z.string()).optional(),
6628
+ confidence: z.number().optional(),
6629
+ sensorChange: z.object({
6630
+ name: z.string(),
6631
+ kind: z.string(),
6632
+ state: z.string()
6633
+ }).optional(),
6634
+ extraStills: z.array(z.object({
6635
+ ownerId: z.string(),
6636
+ cameraId: z.number().int()
6637
+ })).optional()
6638
+ });
6611
6639
  /** Where a command's origin claim comes from: an addon states WHY it called, never WHO it is. */
6612
- var CommandOriginClaimSchema = z.discriminatedUnion("kind", [z.object({
6613
- kind: z.literal("action"),
6614
- actionId: z.string(),
6615
- runId: z.string(),
6616
- automationId: z.string().optional()
6617
- }), z.object({
6618
- kind: z.literal("scheduler"),
6619
- schedulerId: z.string()
6620
- })]);
6640
+ var CommandOriginClaimSchema = z.discriminatedUnion("kind", [
6641
+ z.object({
6642
+ kind: z.literal("action"),
6643
+ actionId: z.string(),
6644
+ runId: z.string(),
6645
+ automationId: z.string().optional(),
6646
+ /** The rule fire that started this run, when one did (D705). */
6647
+ ruleFire: RuleFireOriginSchema.optional()
6648
+ }),
6649
+ z.object({
6650
+ kind: z.literal("scheduler"),
6651
+ schedulerId: z.string()
6652
+ }),
6653
+ z.object({
6654
+ kind: z.literal("rule"),
6655
+ fire: RuleFireOriginSchema
6656
+ })
6657
+ ]);
6658
+ /** The rule fire a claim carries, if it carries one. */
6659
+ function ruleFireOfClaim(claim) {
6660
+ if (claim === void 0) return void 0;
6661
+ if (claim.kind === "rule") return claim.fire;
6662
+ if (claim.kind === "action") return claim.ruleFire;
6663
+ }
6621
6664
  //#endregion
6622
6665
  //#region src/audit/device-transition.ts
6623
6666
  /**
@@ -16847,4 +16890,4 @@ function sleepCancellable(ms, signal) {
16847
16890
  });
16848
16891
  }
16849
16892
  //#endregion
16850
- export { DEVICE_CHILDREN_BATCH_MAX as $, collectHydratedFieldValues as $i, event as $n, RECORD_DELETE_BATCH as $r, displayUnitFor as $t, CAP_ADVANCE_FIELDS as A, RecordUniqueViolationError as Ai, SHARE_VIEW_KINDS as An, resolvedValues as Ar, CAM_PROFILE_ORDER as At, CAP_COMMAND_ORIGIN_CONTEXT_KEY as B, recordsOverMigrationApi as Bi, StoredRecordKindDeclarationSchema as Bn, REMOVE_LEAF as Br, StreamSourceEntrySchema$1 as Bt, auditedFields as C, expandAudioChunkToF32le as Ca, InvalidRecordError as Ci, PEER_BYTES_CHUNK_BYTES as Cn, collectSecretMarkerRefs as Cr, createDebugEmitter as Ct, HF_BASE_URL as D, RecordNotFoundError as Di, PeerBytesTicketSchema as Dn, SCOPED_SETTINGS_SCOPES as Dr, AudioStreamPickSchema as Dt, DEFAULT_TOKEN_EXPIRY as E, RECORDS_ERROR_CODES as Ei, PEER_BYTES_TICKET_TTL_MS as En, transformSecretWrite as Er, AudioChunkFormatSchema as Et, withoutCallerStamp as F, UnknownRecordKindError as Fi, RecordFieldPathSchema as Fn, registrySwitchToBodyId as Fr, DecodedAudioChunkSchema as Ft, readNodePin as G, defineAddonMigrations as Gi, collectZodSecretPaths as Gn, recordSecretCollection as Gr, makeSourceBrokerId as Gt, commandOrigin as H, secretsOverMigrationApi as Hi, declarationsOf as Hn, mapSecretLeaves as Hr, SubscribeAudioChunksInputSchema as Ht, customAction as I, asRecordsError as Ii, RecordIndexSchema as In, registrySwitchToBodyMigration as Ir, FrameHandleSchema as It, PipelineRunResultBridge as J, emitReadiness as Ji, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Jn, RECORD_BATCH_MAX as Jr, DEFAULT_DISPLAY_PREFERENCE as Jt, toNodeId as K, runAddonMigrations as Ki, isZodSecret as Kn, recordSecretRef as Kr, parseProfileBrokerId as Kt, defineCustomActions as L, recordsErrorFromMessage as Li, RecordKindDeclarationSchema as Ln, RecordIntegrationInstances as Lr, ProfileRtspEntrySchema as Lt, CAP_NAMES as M, RevConflictError as Mi, defineEntryKind as Mn, createDurableState as Mr, CamStreamKindSchema as Mt, CAP_STATE_LEAVES as N, TransactRefusedError as Ni, entryBody as Nn, moveRegistrySwitchToBody as Nr, CamStreamResolutionSchema as Nt, HF_REPO as O, RecordSecretUnavailableError as Oi, CALLER_USERNAME_HEADER as On, nodeIdOfScopedKey as Or, BrokerStatsSchema as Ot, CALLER_STAMPED_CAPABILITIES as P, UnindexedFilterError as Pi, EntryDescriptorSchema as Pn, registrySwitchPortsOver as Pr, CameraStreamSchema as Pt, deviceOpsCapability as Q, collectHydratedFieldEntries as Qi, PROVIDER_PIN_FIELD as Qn, RECORD_DEFAULT_MAX_DATA_BYTES as Qr, baseUnitOf as Qt, describeCustomActions as R, defaultIntegrationDepsOver as Ri, RecordKindNameSchema as Rn, isInstanceEnabled as Rr, ProfileSlotSchema as Rt, createSliceHandle as S, audioChunkBytesPerSample as Sa, ForeignSecretMarkerError as Si, shortSecretRefHash as Sn, KeychainWriteRefusedError as Sr, __resetDebugInterestForTests as St, isCommand as T, PlaintextSecretError as Ti, PEER_BYTES_STALL_MS as Tn, resolveSecretMarkers as Tr, isDebugChannelName as Tt, nodePin as U, switchRecordsOverMigrationApi as Ui, defineRecordKinds as Un, parseSecretPath as Ur, SubscribeAudioChunksResultSchema as Ut, CAP_NODE_PIN_CONTEXT_KEY as V, rowsDepsOver as Vi, assertValidDeclaration as Vn, collectSecretLeaves as Vr, StreamSourceSchema as Vt, readCommandOrigin as W, AddonMigrationDefinitionError as Wi, SECRET_META as Wn, recordArrayItemPath as Wr, makeProfileBrokerId as Wt, MIGRATION_API_VERSION as X, WELL_KNOWN_TABS as Xi, HISTORY_DEFAULT_MIN_INTERVAL_MS as Xn, RECORD_CLASSES as Xr, QUANTITY_BASE as Xt, PipelineStepInputSchema as Y, isEvent as Yi, DEVICE_STATUS_METHOD as Yn, RECORD_BATCH_MAX_BYTES as Yr, DISPLAY_PREFERENCES as Yt, RawStateResultSchema as Z, WELL_KNOWN_TAB_MAP as Zi, HISTORY_UNIT_LABELS as Zn, RECORD_DATABASES as Zr, ReadingQuantitySchema as Zt, invokeTrpcLeaf as _, omitTransientConfig as _a, linksOfKind as _i, clearKnownSecrets as _n, normalizeAddonInitResult as _r, DEBUG_WATCH_HARD_CAP_MS as _t, asJsonArray as a, classifySecretWrite as aa, RECORD_SECRET_COLLECTION_PREFIX as ai, TransitionActorSchema as an, resolveCapMount as ar, findVocabAction as at, createLazyTrpcSource as b, findMigrationsBlocked as ba, DeclarationRefusedError as bi, registerKnownSecret as bn, secretTreeFromPaths as br, DebugInterest as bt, asString as c, isSecretMarker as ca, SECRET_REF_SCHEME as ci, TransitionValueSchema as cn, ErrorCodeSchema as cr, CAP_VOCABULARY_BY_NAME as ct, parseJsonUnknown as d, toSecretFieldView as da, formatSecretScope as di, createRecordsAccess as dn, forbiddenError as dr, ReadinessRegistry as dt, dehydrateConfigField as ea, RECORD_ID_MAX_LENGTH as ei, historyUnitFor as en, expandCapMethods as er, adminUiCapability as et, hfModelUrl as f, REDACTED_SECRET as fa, globalSecretScope as fi, assertTransactScope as fn, readErrorI18n as fr, ReadinessTimeoutError as ft, createDeviceProxy as g, isSecretConfigField as ga, linkField as gi, MIN_SCRUBBED_LENGTH as gn, migrationSet as gr, DEBUG_CHANNEL_PREFIX as gt, isDeviceScopedCap as h, isKeychainStoredField as ha, parseSecretRef as hi, createSecretsAccess as hn, classifyStoreError as hr, scopeKey as ht, asBoolean as i, SECRET_CLEAR as ia, RECORD_QUERY_MAX as ii, TransitionActorKindSchema as in, optionalMethod as ir, allVocabActions as it, CAP_METHOD_TIMEOUTS_MS as j, RecordsError as ji, DisposerChain as jn, normalizeNodeId as jr, CamProfileSchema as jt, RUNTIME_DEFAULTS as k, RecordTooLargeError as ki, DATAPLANE_SECRET_HEADER as kn, resolveDeviceSettings as kr, BrokerStatusSchema as kt, parseJsonArray as l, isSecretMarkerLike as la, arrayItemFieldPath as li, CommandOriginClaimSchema as ln, ErrorI18nPayloadSchema as lr, t as lt, DEVICE_SCOPED_CAPS as m, collectSecretConfigKeys as ma, normalizeSecretOwner as mi, REVALIDATE_AFTER_MS as mn, BaseAddon as mr, readinessKey as mt, sleepCancellable as n, hydrateSchema as na, RECORD_MAX_INDEXES as ni, readingMeta as nn, isDeviceConfigCap as nr, addonPagesSourceCapability as nt, asJsonObject as o, isSecretClear as oa, RECORD_SETTINGS_MAX_ROWS as oi, TransitionCommandSchema as on, systemMethod as or, vocabActionIdFor as ot, BOOT_RECOVERY_BACKOFF_MS as p, collectKeychainStoredKeys as pa, isSecretRef as pi, resolveSecretViewsIn as pn, userError as pr, emitDownForOwnedCaps as pt, viewerUiCapability as q, createEvent as qi, DEFAULT_RUNTIME_STATE_DURABILITY as qn, secretArrayPrefixes as qr, selectAssignedProfileSlots as qt, maskUrlCredentials as r, resolveHydratedFieldValue as ra, RECORD_MAX_INDEX_FIELDS as ri, DeviceTransitionSchema as rn, method as rr, actionEffect as rt, asNumber as s, isSecretFieldView as sa, RECORD_SWEEP_INTERVAL_MS as si, TransitionOutcomeSchema as sn, CamstackError as sr, CAP_VOCABULARY as st, sleep as t, dehydrateSchema as ta, RECORD_MAX_DATA_BYTES as ti, isReadingQuantity as tn, historyItemFieldPath as tr, AddonPageDeclarationSchema as tt, parseJsonObject as u, makeSecretMarker as ua, buildSecretRef as ui, makeInMemoryRecords as un, FORBIDDEN_MESSAGE_PREFIX as ur, MODEL_FORMATS as ut, addonSliceHandleApi as v, schemaDeclaresAnyField as va, optionalLinkField as vi, forgetKnownSecret as vn, mergeSecretStatePaths as vr, DEBUG_WATCH_REARM_EVERY_MS as vt, commandEffect as w, isAudioChunkFormat as wa, NoCallerError as wi, PEER_BYTES_MAX_OUTSTANDING as wn, isSecretRefOwnedBy as wr, getDebugInterest as wt, createMirrorSource as x, AUDIO_CHUNK_FORMATS as xa, FilterRequiredError as xi, scrubKnownSecrets as xn, secretTreeFromSchema as xr, DebugWatchTable as xt, createEventBusSliceSource as y, AddonMigrationsBlockedError as ya, BatchTooLargeError as yi, knownSecretCount as yn, parseSecretStatePath as yr, DEBUG_WATCH_WINDOW_MS as yt, deviceCustomAction as z, integrationRowsApiOver as zi, RecordRetentionSchema as zn, secretViewsOf as zr, ProfileSlotStatusSchema as zt };
16893
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.537",
3
+ "version": "1.2.539",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",
@@ -1,21 +0,0 @@
1
- /**
2
- * D983 for a notification sequence's cap step: the ONE reader of its target.
3
- *
4
- * A step stored before D983 names one device (`deviceId`); it is read as a
5
- * `devices` target, and `actionId` is filled when the cap and method match
6
- * exactly one vocabulary action. A step already in the new shape passes
7
- * through. Nothing else in the notification centre reads `deviceId`.
8
- */
9
- import type { NcRuleAction } from '../capabilities/notification-rules.cap.js';
10
- import type { ActionTarget } from './action-target.js';
11
- type NcCapAction = Extract<NcRuleAction, {
12
- kind: 'cap';
13
- }>;
14
- export interface NcCapTarget {
15
- readonly target: ActionTarget;
16
- readonly actionId: string | undefined;
17
- }
18
- export declare function normalizeNcCapTarget(action: NcCapAction): NcCapTarget;
19
- /** The step as it is stored from now on: `target` (and `actionId`) set, no `deviceId`. */
20
- export declare function normalizeNcAction(action: NcRuleAction): NcRuleAction;
21
- export {};