@camstack/types 1.2.556 → 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.
- package/CHANGELOG.md +10 -1
- package/dist/addon/fake-addon-context.d.ts +3 -0
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/automation/action.d.ts +24 -54
- package/dist/automation/draft/draft-json.d.ts +1 -1
- package/dist/automation/draft/index.d.ts +0 -1
- package/dist/automation/index.d.ts +3 -2
- package/dist/automation/normalize-units.d.ts +3 -3
- package/dist/automation/offered.d.ts +18 -0
- package/dist/automation/recipe.d.ts +1156 -2598
- package/dist/automation/scheduler.d.ts +48 -108
- package/dist/automation/step-runner.d.ts +7 -0
- package/dist/capabilities/action-source.cap.d.ts +12 -27
- package/dist/capabilities/actions.cap.d.ts +84 -189
- package/dist/capabilities/device-export.cap.d.ts +36 -1
- package/dist/capabilities/hero-layout.cap.d.ts +92 -0
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/remote.cap.d.ts +2 -2
- package/dist/capabilities/scene-monitor.cap.d.ts +1 -1
- package/dist/capabilities/schedulers.cap.d.ts +96 -216
- package/dist/client.d.ts +1 -1
- package/dist/client.js +21 -3
- package/dist/client.mjs +20 -4
- package/dist/device/cap-vocabulary/action-index.d.ts +32 -0
- package/dist/device/cap-vocabulary/index.d.ts +2 -2
- package/dist/device/device-do-actions.d.ts +3 -105
- package/dist/device/export-name.d.ts +65 -0
- package/dist/device/hero/hero-contribution-kit.d.ts +3 -0
- package/dist/device/hero/hero-fragment.d.ts +3 -0
- package/dist/device/hero/hero-measurement.d.ts +76 -0
- package/dist/device/hero/hero-model.d.ts +91 -0
- package/dist/device/hero/hero-row.d.ts +61 -0
- package/dist/device/hero/index.d.ts +1 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +2299 -2133
- package/dist/index.mjs +2264 -2117
- package/dist/notification/alarm-steps.d.ts +18 -0
- package/dist/remote/remote-config.d.ts +5 -5
- package/dist/{sleep-BRGFFgr9.js → sleep-1RkA30Y1.js} +61 -0
- package/dist/{sleep-Czv-4wFH.mjs → sleep-DyIxjZZt.mjs} +44 -1
- package/dist/testing.js +3 -3
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
|
@@ -203,6 +203,36 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
203
203
|
args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
|
|
204
204
|
}, z.core.$strip>;
|
|
205
205
|
valueArg: z.ZodString;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<"number">;
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
label: z.ZodObject<{
|
|
210
|
+
en: z.ZodString;
|
|
211
|
+
it: z.ZodString;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
214
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
215
|
+
unit: z.ZodString;
|
|
216
|
+
call: z.ZodObject<{
|
|
217
|
+
cap: z.ZodString;
|
|
218
|
+
method: z.ZodString;
|
|
219
|
+
args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
valueArg: z.ZodString;
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
kind: z.ZodLiteral<"text">;
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
label: z.ZodObject<{
|
|
226
|
+
en: z.ZodString;
|
|
227
|
+
it: z.ZodString;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
value: z.ZodNullable<z.ZodString>;
|
|
230
|
+
call: z.ZodObject<{
|
|
231
|
+
cap: z.ZodString;
|
|
232
|
+
method: z.ZodString;
|
|
233
|
+
args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
valueArg: z.ZodString;
|
|
206
236
|
}, z.core.$strip>], "kind">>;
|
|
207
237
|
timedRun: z.ZodNullable<z.ZodObject<{
|
|
208
238
|
id: z.ZodEnum<{
|
|
@@ -265,6 +295,36 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
265
295
|
args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
|
|
266
296
|
}, z.core.$strip>;
|
|
267
297
|
valueArg: z.ZodString;
|
|
298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
299
|
+
kind: z.ZodLiteral<"number">;
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
label: z.ZodObject<{
|
|
302
|
+
en: z.ZodString;
|
|
303
|
+
it: z.ZodString;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
306
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
307
|
+
unit: z.ZodString;
|
|
308
|
+
call: z.ZodObject<{
|
|
309
|
+
cap: z.ZodString;
|
|
310
|
+
method: z.ZodString;
|
|
311
|
+
args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
valueArg: z.ZodString;
|
|
314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
315
|
+
kind: z.ZodLiteral<"text">;
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
label: z.ZodObject<{
|
|
318
|
+
en: z.ZodString;
|
|
319
|
+
it: z.ZodString;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
value: z.ZodNullable<z.ZodString>;
|
|
322
|
+
call: z.ZodObject<{
|
|
323
|
+
cap: z.ZodString;
|
|
324
|
+
method: z.ZodString;
|
|
325
|
+
args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
valueArg: z.ZodString;
|
|
268
328
|
}, z.core.$strip>], "kind">>>;
|
|
269
329
|
trailing: z.ZodNullable<z.ZodObject<{
|
|
270
330
|
id: z.ZodEnum<{
|
|
@@ -308,6 +368,7 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
308
368
|
warning: "warning";
|
|
309
369
|
}>;
|
|
310
370
|
}, z.core.$strip>>;
|
|
371
|
+
measurement: z.ZodOptional<z.ZodType<import("./hero-measurement.js").HeroMeasurement, unknown, z.core.$ZodTypeInternals<import("./hero-measurement.js").HeroMeasurement, unknown>>>;
|
|
311
372
|
}, z.core.$strip>;
|
|
312
373
|
export type HeroRowModel = z.infer<typeof HeroRowModelSchema>;
|
|
313
374
|
/** The most facts a row's status line carries after its head: the line never wraps. */
|
|
@@ -9,6 +9,7 @@ export { HERO_ROW_IDS, HERO_ROW_LABELS, heroArgsWithValue, type HeroAction, type
|
|
|
9
9
|
export { HERO_ANIMATIONS, HERO_BACKGROUNDS, HERO_STATES, HERO_TONES, type HeroAnimation, type HeroBackgroundToken, type HeroLook, type HeroState, type HeroTone, type StateLook, } from './hero-state.js';
|
|
10
10
|
export { HERO_SCENE_BY_ROLE, HERO_SCENE_BY_TYPE, HERO_SCENES, HERO_SCENE_MODES, resolveHeroSceneId, type HeroScene, type HeroSceneId, type HeroSceneMode, } from './hero-scene.js';
|
|
11
11
|
export { HeroRowModelSchema, projectDeviceRow, type HeroRowModel, } from './hero-row.js';
|
|
12
|
+
export { HERO_MEASUREMENT_BANDS, HERO_MEASUREMENT_QUANTITIES, HERO_MEASUREMENT_SINCE_KINDS, HeroMeasurementReadingSchema, HeroMeasurementSchema, contactMeasurement, measurementFitsRole, humidityMeasurement, powerMeasurement, temperatureBand, temperatureMeasurement, textMeasurement, type HeroMeasurement, type HeroMeasurementBand, type HeroMeasurementQuantity, type HeroMeasurementReading, type HeroMeasurementSinceKind, } from './hero-measurement.js';
|
|
12
13
|
export { heroText, type HeroText } from './hero-text.js';
|
|
13
14
|
export * from './media-player-view.js';
|
|
14
15
|
export { resolveOwnPower } from './own-power.js';
|
|
@@ -2424,6 +2424,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2424
2424
|
output: z.infer<typeof deviceExportCapability.methods.unexposeDevice.output>;
|
|
2425
2425
|
meta: object;
|
|
2426
2426
|
}>;
|
|
2427
|
+
setExposedName: TRPCMutationProcedure<{
|
|
2428
|
+
input: {
|
|
2429
|
+
[x: string]: unknown;
|
|
2430
|
+
} & z.input<typeof deviceExportCapability.methods.setExposedName.input>;
|
|
2431
|
+
output: z.infer<typeof deviceExportCapability.methods.setExposedName.output>;
|
|
2432
|
+
meta: object;
|
|
2433
|
+
}>;
|
|
2427
2434
|
listSupportedEntityKinds: TRPCQueryProcedure<{
|
|
2428
2435
|
input: {
|
|
2429
2436
|
nodeId?: string | undefined;
|
|
@@ -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:
|
|
9
|
+
* Coverage: 1485 method paths across 205 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -91,7 +91,7 @@ export interface SystemProxy {
|
|
|
91
91
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'getInfo' | 'reprobeHwaccel'>;
|
|
92
92
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
93
93
|
readonly deviceCredentials: Pick<InferProvider<typeof deviceCredentialsCapability>, 'listDeviceCredentials' | 'startEnrollment' | 'revokeDeviceCredential' | 'getDeviceCertificateSettings' | 'setDeviceCertificateSettings' | 'deleteDeviceCredential' | 'getDeviceCaStatus' | 'renameDeviceCredential'>;
|
|
94
|
-
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listInstances' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice' | 'listSupportedEntityKinds' | 'listExposedEntities' | 'exposeEntity' | 'unexposeEntity'>;
|
|
94
|
+
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listInstances' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice' | 'setExposedName' | 'listSupportedEntityKinds' | 'listExposedEntities' | 'exposeEntity' | 'unexposeEntity'>;
|
|
95
95
|
readonly deviceHistory: Pick<InferProvider<typeof deviceHistoryCapability>, 'listNodeSeries' | 'queryNode' | 'queryMany' | 'declareSeries' | 'record' | 'recordBuckets' | 'getStatus' | 'listOrphanSeries' | 'deleteOrphanSeries'>;
|
|
96
96
|
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'migrateDevice' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'renderDeviceTemplates' | 'checkDeviceTemplates' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'renameLocation' | 'listLocationIcons' | 'setLocationIcon' | 'listLocationDescriptions' | 'setLocationDescription' | 'listSiteZones' | 'setSiteZone' | 'removeSiteZone' | 'renameSiteZone' | 'setLocationZone' | 'listPersistedByAddon' | 'listAll' | 'search' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'listDeletedSince' | 'cleanupDeletedDevicesData' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listDeviceIdsByCaps' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'listDiscoveryProposals' | 'dismissDiscoveryProposal' | 'reportDiscoveryObservations' | 'runDiscoverySweep' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
97
97
|
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'reloadDevice' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryModes' | 'classifyDiscoveryHits' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -192,9 +192,9 @@ export { APP_FLOW_DEFAULT_REDIRECT, APP_FLOW_REFUSAL_MESSAGES, APP_FLOW_STATE_PR
|
|
|
192
192
|
export { SSO_STATE_COOKIE, SSO_STATE_COOKIE_MAX_AGE_SEC } from './auth/sso-state.js';
|
|
193
193
|
export { buildDeviceEnrollmentLink, buildDeviceSignatureMessage, type CompleteEnrollmentInput, CompleteEnrollmentInputSchema, type CompleteEnrollmentOutput, CompleteEnrollmentOutputSchema, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_CERT_SIGNATURE, DEVICE_CERT_VALIDITY_DAYS, DEVICE_ENROLLMENT_TTL_MS, DEVICE_NONCE_TTL_MS, DEVICE_SAN_CREDENTIAL_PREFIX, DEVICE_SAN_USER_PREFIX, DEVICE_SIGNATURE_MESSAGE_VERSION, type DeviceCertificateLoginMethod, DeviceCertificateLoginMethodSchema, type DeviceChallenge, DeviceChallengeSchema, type DeviceCredential, DeviceCredentialSchema, type DeviceCredentialStatus, DeviceCredentialStatusSchema, type DevicePlatform, DevicePlatformSchema, type DeviceProofInput, DeviceProofInputSchema, type CompleteEnrollmentResult, CompleteEnrollmentResultSchema, DEFINITIVE_DEVICE_REFUSALS, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_REFRESH_REFUSAL_PREFIX, deviceRefusalFromMessage, type DeviceChallengeResult, DeviceChallengeResultSchema, DeviceEnrollProofSchema, type DeviceRefusal, type DeviceRefusalReason, DeviceRefusalReasonSchema, DeviceRefusalSchema, type DeviceRevoker, type EnrollSelfInput, EnrollSelfInputSchema, formatDeviceRevoker, isDefinitiveDeviceRefusal, type RenewDeviceCertificateResult, RenewDeviceCertificateResultSchema, type RevokeOwnDeviceCertificateResult, RevokeOwnDeviceCertificateResultSchema, type DeviceSignaturePurpose, DeviceSignaturePurposeSchema, type RenewDeviceCertificateOutput, RenewDeviceCertificateOutputSchema, type StartEnrollmentOutput, StartEnrollmentOutputSchema, parseDeviceEnrollmentLink, } from './auth/device-certificate.js';
|
|
194
194
|
export { advertisedHubOrigins, claimedRequestOrigins, normalizeOrigin, pickRequestOrigin, type RequestHeaders, requestMountPrefix, } from './auth/request-origin.js';
|
|
195
|
-
export type { ActionStep, AutomationAction, AutomationAll, AutomationAny,
|
|
196
|
-
export { ActionStepSchema, AutomationActionSchema,
|
|
197
|
-
export { UnitWarningSchema, capUnitResolver, normalizeActionUnits, normalizeConditionUnits, normalizeRecipeUnits, prepareRecipeUnits, } from './automation/index.js';
|
|
195
|
+
export type { ActionStep, AutomationAction, AutomationAll, AutomationAny, AutomationCommandStep, AutomationConditionOperator, AutomationConditionTraceNode, AutomationEventLeaf, AutomationLeaf, AutomationNot, AutomationStateLeaf, AutomationWhen, DetectionLabelSource, DetectionLeaf, DetectionSubject, DeviceBecomesLeaf, BecomesDeps, BecomesEffect, BecomesOperator, BecomesSpec, DeviceIsLeaf, ExpressionLeaf, TimeIsLeaf, TriggeredByLeaf, DeviceFiredLeaf, DeviceFiredMatch, IdentifiedEventLeaf, WhenSiteIssue, HoldMode, HoldReading, HoldSpec, HoldTrace, IdentityLabel, LegacyAutomationRecipe, AutomationBodyStep, AutomationBranchStep, AutomationRecipeInput, AutomationChooseStep, AutomationWaitUntilStep, AutomationParallelStep, AutomationRepeatLoop, AutomationRepeatStep, AutomationSetStep, StepConditionRef, AutomationStopStep, StepDeviceTrace, LegacyCondition, LegacyTrigger, PlateLabel, StationaryLeaf, StationaryPresentLeaf, SubClassLabel, SubjectObservation, SubjectVerdict, AutomationRecipe, AutomationRunMode, AutomationRunOutcome, AutomationRunTrace, AutomationRunVerdict, AutomationStateDoc, AutomationStepTrace, NestedStepTrace, AutomationTriggerTrace, ConditionEvaluation, ConditionReader, DetectionDecision, DetectionTrigger, DetectionVars, GenerateAutomationBlockInput, MirrorRefreshFetchers, RunTrigger, MirrorRefreshReport, MirrorSource, StationaryChangedInput, StationaryDecision, StationaryTrigger, StationaryVars, DeviceFiredDecision, DeviceFiredVars, FiredDataScalar, FiredDataVars, TraceNodeOutcome, TraceValue, TrackLifecycleInput, TriggerVariable, } from './automation/index.js';
|
|
196
|
+
export { ActionStepSchema, AutomationActionSchema, AutomationCommandStepBaseSchema, AutomationCommandStepSchema, AutomationWaitStepSchema, AutomationChooseStepSchema, AutomationWaitUntilStepSchema, AutomationParallelStepSchema, AutomationRepeatLoopSchema, AutomationRepeatStepSchema, AutomationSetStepSchema, CHOOSE_BRANCHES_MAX, WAIT_UNTIL_TIMEOUT_MAX_S, PARALLEL_STEPS_MAX, REPEAT_COUNT_MAX, REPEAT_DEVICES_MAX, REPEAT_ITEM_VAR, REPEAT_ITERATIONS_MAX, REPEAT_STEPS_MAX, STEP_NEST_MAX, PARALLEL_STEPS_MIN, nestedStepsOf, stepConditionsOf, AutomationStopStepSchema, RESERVED_RUN_VARS, SET_VAR_NAME_RE, SET_VAR_VALUE_MAX, SET_VARS_MAX, STOP_REASON_MAX, stepGuardOf, WAIT_MAX_SECONDS, EMPTY_AUTOMATION_STATE, mergeSkipTraces, AutomationConditionOperatorSchema, AutomationConditionTraceNodeSchema, AutomationRecipeSchema, AutomationWhenSchema, CurrentAutomationRecipeSchema, DETECTION_LABEL_SOURCES, DetectionSubjectSchema, LegacyAutomationRecipeSchema, LegacyConditionSchema, LegacyTriggerSchema, MAX_TRACE_ARG_LENGTH, MAX_STEP_DEVICE_OUTCOMES, MAX_TRACE_ARGS, MAX_WHEN_DEPTH, StepDeviceTraceSchema, MAX_WHEN_LEAVES, REDACTED_ARG, StationarySubjectSchema, anySubjectMatches, buildStepArgsTrace, collectWhenMirrorSources, convertLegacyCondition, convertLegacyRecipe, convertLegacyWhen, countWhenLeaves, describeSubject, evaluateWhenTree, eventLeafIdAt, identifiedEventLeaves, hasTriggeredByLeaves, triggeredByIssue, EVENT_LEAF_ID_RE, TRIGGERED_BY_MAX_IDS, recipeSiteIssues, stepGuardSiteIssues, whenSiteIssues, forEachLeaf, BecomesOperatorSchema, BecomesWatch, HoldCore, HoldSpecSchema, HoldTraceSchema, HoldTracker, describeHold, describeHoldMs, hasEventLeaves, hasHoldLeaves, hasTimeLeaves, nextTimeBoundaryInMs, holdOf, observeHoldLeaves, isEventLeaf, isLeaf, subClassesOf, subjectFromClassName, subjectMatches, validateWhenTree, whenDepth, AutomationRunModeSchema, AutomationRunOutcomeSchema, AutomationRunTraceSchema, AutomationRunVerdictSchema, AutomationStateDocSchema, AutomationStepTraceSchema, AutomationTriggerTraceSchema, appendTrace, buildTriggerTrace, collectMirrorSources, ConditionMirror, stableIdKey, stableIdMapOf, DEFAULT_TRACE_KEEP, DetectionTriggerFilter, detectionClassMatches, evaluateConditionTree, evaluateStationaryTrigger, DeviceFiredWatch, FIRED_RECOVERED_NOTE, firedDataVars, DeviceFiredMatchSchema, generateAutomationBlock, isSkippedTrace, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_TRACE_KEEP, RunGate, skipSignature, TraceNodeOutcomeSchema, TraceValueSchema, triggerLeafVariables, triggerVariablesOf, validateRecipeBounds, } from './automation/index.js';
|
|
197
|
+
export { UnitWarningSchema, assertStepsOffered, type BoundCapsReader, capUnitResolver, normalizeActionUnits, normalizeConditionUnits, normalizeRecipeUnits, prepareRecipeUnits, } from './automation/index.js';
|
|
198
198
|
export type { PreparedRecipe, UnitResolver, UnitWarning, UnitsNormalized, } from './automation/index.js';
|
|
199
199
|
export * from './automation/action.js';
|
|
200
200
|
export * from './automation/action-target.js';
|
|
@@ -204,6 +204,7 @@ export * from './automation/step-condition.js';
|
|
|
204
204
|
export * from './automation/step-runner.js';
|
|
205
205
|
export * from './automation/wait-until.js';
|
|
206
206
|
export * from './automation/export-entities.js';
|
|
207
|
+
export * from './device/export-name.js';
|
|
207
208
|
export * from './automation/draft/index.js';
|
|
208
209
|
export * from './cap-call-context.js';
|
|
209
210
|
export * from './capabilities/index.js';
|
|
@@ -260,10 +261,9 @@ export { widenDeviceConstructor } from './device/device-context.js';
|
|
|
260
261
|
export type { AccessoryControlInput, AccessoryControlKind, AccessoryControlPick, DeviceControlKind, SensorMapping, } from './device/device-control-resolution.js';
|
|
261
262
|
export { DEVICE_TYPE_CONTROL_KIND, hasMotionTrigger, isNode, MOTION_TRIGGER_FEATURE, pickAccessoryControl, resolveDeviceControlKind, resolveMutate, SENSOR_FEATURES, SENSOR_MAP, } from './device/device-control-resolution.js';
|
|
262
263
|
export * from './device/hero/index.js';
|
|
263
|
-
export
|
|
264
|
-
export {
|
|
265
|
-
export
|
|
266
|
-
export { actionEffect, actionsForDevice as vocabularyActionsForDevice, allVocabActions, auditedFields, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, commandEffect, findVocabAction, isCommand, renderVocabPhrase, triggersForDevice as vocabularyTriggersForDevice, VOCAB_TEMPLATES, vocabActionIdFor, } from './device/cap-vocabulary/index.js';
|
|
264
|
+
export { isDoPickerDeviceType } from './device/device-do-actions.js';
|
|
265
|
+
export type { CapVocabularyEntry, CapVocabularyMap, L10n as VocabL10n, ActionEffect, CommandEffect, IndexedVocabAction, VocabActionRefusal, VocabCall, LooseCapVocabularyEntry, LooseVocabEffect, LooseVocabOffer, LooseVocabOpenArg, ResolvedBooleanTrigger, ResolvedEnumTrigger, ResolvedEnumValue, ResolvedEventTrigger, ResolvedNumericTrigger, ResolvedValueTrigger, ResolvedVocabAction, ResolvedVocabTrigger, VocabBindingsInput, VocabCapName, VocabLocale, } from './device/cap-vocabulary/index.js';
|
|
266
|
+
export { actionEffect, actionsForDevice as vocabularyActionsForDevice, allVocabActions, auditedFields, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, commandEffect, findVocabAction, isCommand, renderVocabPhrase, triggersForDevice as vocabularyTriggersForDevice, VOCAB_TEMPLATES, vocabActionIdFor, vocabCall, VocabActionError, assertDeviceOffers, } from './device/cap-vocabulary/index.js';
|
|
267
267
|
export type { ChildLayout, ChildLayoutEntry, CreateDeviceSpec, DeviceCapDisplayOverride, DeviceDiscovery, DeviceDisplayOverride, DeviceManualCreation, DeviceMeta, DiscoveredDevice, InitialDeviceMeta, RoleDisplayDefault, SavedDevice, } from './device/device-management.js';
|
|
268
268
|
export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, PipelinePhaseMode, } from './device/device-profile.js';
|
|
269
269
|
export { BATTERY_DEVICE_PROFILE, DEVICE_PROFILES, deviceMatchesProfile, resolveDeviceProfile, } from './device/device-profile.js';
|
|
@@ -367,6 +367,7 @@ export { imageModesForKind, legacyImageMode, NC_MEDIA_IMAGE_MODES, type NcMediaR
|
|
|
367
367
|
export { isScheduleActive } from './notification/schedule.js';
|
|
368
368
|
export { buildSubjectPath, isDrawableSubjectPath, projectSubjectPath, SUBJECT_PATH_DWELL_EPS, SUBJECT_PATH_FULL_FRAME_COVERAGE, SUBJECT_PATH_MAX_POINTS, type SubjectPath, type SubjectPathNode, type SubjectPathOptions, type SubjectPathPoint, type SubjectPathRect, type SubjectPathSample, subjectPathSampleFromBox, subjectPathSvgPoints, } from './geometry/subject-path.js';
|
|
369
369
|
export { isAlarmControllableCap, NC_ALARM_CONTROLLABLE_CAPS, NC_ALARM_OPENING_EVENT_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, type NcAlarmControllableCap, type NcAlarmMembershipSubject, type NcAlarmOpeningEventKind, ruleAutoTriggersAlarm, ruleBelongsToAlarm, ruleGatedOnArmedState, sensorTransitionNeverFires, } from './notification/alarm-membership.js';
|
|
370
|
+
export { NC_ALARM_PANEL_ACTION_IDS, NC_ALARM_TRIGGER_ACTION_ID, stepActuatesAlarmPanel, stepPullsAlarmTrigger, } from './notification/alarm-steps.js';
|
|
370
371
|
export { alarmDeviceBlocksArming, alarmDeviceSecureOnArm, type AlarmDeviceBlocksInput, type AlarmDeviceSecureOnArmInput, type NcAlarmSecureActuation, secureActuationFor, } from './notification/alarm-controllable.js';
|
|
371
372
|
export { alarmPatchLanded, applyBlockingEdit, applyModeDelaysEdits, applyModeDeviceListEdit, applyNonBlockingEdit, applySecureOnArmEdit, derivePostTriggeredAction, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC, NC_ALARM_DELAY_FIELDS, NC_ALARM_NOTIFY_FIELDS, type NcAlarmDelayField, type NcAlarmDelaySettings, type NcAlarmDelaySource, type NcAlarmModeDeviceListEditResult, type NcAlarmModeNotifyPolicy, type NcAlarmNonBlockingEditResult, type NcAlarmNotifyField, type NcAlarmResolvedDelays, resolveModeDelays, resolveModeNotifyPolicy, } from './notification/alarm-settings.js';
|
|
372
373
|
export { activateAlarmProfile, alarmProfileById, cloneAlarmSettings, createAlarmProfile, deleteAlarmProfile, ensureAlarmProfiles, isDefaultAlarmProfileId, NC_ALARM_DEFAULT_PROFILE_ID, NC_ALARM_DEFAULT_PROFILE_NAME, NC_ALARM_SYSTEM_DEFAULT_DELAYS, ncAlarmSystemDefaultSettings, type NcAlarmProfileCreateSource, type NcAlarmProfileRecord, type NcAlarmProfilesMutationResult, type NcAlarmProfilesRefuseReason, type NcAlarmProfilesState, renameAlarmProfile, syncActiveAlarmProfileSettings, } from './notification/alarm-profiles.js';
|