@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.
- package/CHANGELOG.md +14 -0
- package/dist/addon.d.ts +2 -2
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +2 -2
- package/dist/audit/command-origin-claim.d.ts +79 -0
- package/dist/audit/device-transition.d.ts +2 -2
- package/dist/automation/action.d.ts +4 -0
- package/dist/automation/index.d.ts +0 -1
- package/dist/automation/recipe.d.ts +9 -18
- package/dist/automation/step-runner.d.ts +2 -0
- package/dist/capabilities/action-source.cap.d.ts +1 -0
- package/dist/capabilities/actions.cap.d.ts +7 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +79 -1897
- package/dist/client.js +27 -977
- package/dist/client.mjs +27 -977
- package/dist/generated/addon-api.d.ts +0 -35
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +61 -206
- package/dist/index.mjs +56 -198
- package/dist/notification/alarm-membership.d.ts +12 -11
- package/dist/{sleep-DIg2Mx82.js → sleep-DgCXXFc3.js} +64 -9
- package/dist/{sleep-B36hHDDz.mjs → sleep-VrfKAAGN.mjs} +53 -10
- package/package.json +1 -1
- package/dist/automation/nc-action-target.d.ts +0 -21
|
@@ -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
|
|
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
|
-
*
|
|
16
|
-
* without it
|
|
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 {
|
|
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
|
|
41
|
-
*
|
|
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
|
|
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
|
|
50
|
-
* (D630). Button-only
|
|
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`
|
|
57
|
-
* An explicit `alarm-panel.trigger`
|
|
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", [
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
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", [
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
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 $,
|
|
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,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 {};
|