@camstack/server 1.2.943 → 1.2.945
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 +26 -0
- package/closure-pins.json +350 -0
- package/dist/api/core/auth-sessions.procedures.js +18 -0
- package/dist/api/core/auth.router.js +19 -6
- package/dist/api/server-upload.js +17 -1
- package/dist/api/trpc/generated-cap-mounts.js +18 -1
- package/dist/api/trpc/generated-cap-routers.js +2662 -2542
- package/dist/auth/native-return.js +9 -3
- package/dist/auth/sso-routes.js +5 -1
- package/dist/core/addon/instance-lifecycle.js +4 -1
- package/dist/core/auth/handoff-code.service.js +35 -1
- package/dist/server-root/index.js +313 -70
- package/package.json +15 -11
- package/system/assets/apps-aggregator/icon.svg +5 -0
- package/system/dist/{action-index-B_cLRwXJ.js → action-index-Bcnb-jyg.js} +9 -1
- package/system/dist/{action-index-B1fgpQBt.mjs → action-index-DwPHO2nz.mjs} +9 -1
- package/system/dist/{addon-settings.cap-CZ4MC7ha.mjs → addon-settings.cap-CHpmuaQG.mjs} +1 -1
- package/system/dist/{addon-settings.cap-DrLdMFIe.js → addon-settings.cap-nZVHPo3X.js} +1 -1
- package/system/dist/{alert-episode-Be--PngO.mjs → alert-episode-D-1VUUkZ.mjs} +1 -1
- package/system/dist/{alert-episode-Bqktmt-i.js → alert-episode-DaQ3prSe.js} +1 -1
- package/system/dist/apps.cap-Bqb9NpYx.mjs +130 -0
- package/system/dist/apps.cap-CLjgnuUe.js +141 -0
- package/system/dist/{base-addon-CRsXtYFG.js → base-addon-BG7p06Hb.js} +136 -15
- package/system/dist/{base-addon-BcS6r1cT.mjs → base-addon-BcVoYZbC.mjs} +136 -15
- package/system/dist/{base-device-DAdWzDOl.js → base-device-DeSNiwZ4.js} +4 -4
- package/system/dist/{base-device-DJXF5eDN.mjs → base-device-w_MD0Bf4.mjs} +4 -4
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +3 -3
- package/system/dist/builtins/alerts/alerts.addon.mjs +3 -3
- package/system/dist/builtins/apps-aggregator/aggregate-apps.d.ts +24 -0
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.d.ts +16 -0
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.js +109 -0
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.mjs +103 -0
- package/system/dist/builtins/apps-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/apps-aggregator/index.js +8 -0
- package/system/dist/builtins/apps-aggregator/index.mjs +2 -0
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +3 -3
- package/system/dist/builtins/camera-grid/index.mjs +3 -3
- package/system/dist/builtins/composer/composer.addon.js +7 -7
- package/system/dist/builtins/composer/composer.addon.mjs +7 -7
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/actions-store.d.ts +2 -0
- package/system/dist/builtins/core-blocks/block-supervisor.d.ts +16 -4
- package/system/dist/builtins/core-blocks/core-block-store.d.ts +2 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +1018 -323
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +986 -291
- package/system/dist/builtins/core-blocks/migrations/index.d.ts +5 -2
- package/system/dist/builtins/core-blocks/migrations/tag-ids.d.ts +42 -0
- package/system/dist/builtins/core-blocks/migrations/tags-as-records.d.ts +47 -0
- package/system/dist/builtins/core-blocks/record-kinds.d.ts +12 -1
- package/system/dist/builtins/core-blocks/runs-api.d.ts +3 -1
- package/system/dist/builtins/core-blocks/runs-ledger.d.ts +3 -1
- package/system/dist/builtins/core-blocks/scheduler/scheduler-store.d.ts +2 -0
- package/system/dist/builtins/core-blocks/tags-service.d.ts +52 -27
- package/system/dist/builtins/core-blocks/tags-wiring.d.ts +2 -0
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +76 -67
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +76 -67
- package/system/dist/builtins/device-history/device-history.addon.js +4 -4
- package/system/dist/builtins/device-history/device-history.addon.mjs +4 -4
- package/system/dist/builtins/device-manager/device-manager.addon.js +1618 -755
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1604 -741
- package/system/dist/builtins/device-manager/device-meta-actions.d.ts +13 -136
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +5 -1
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +9 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +21 -4
- package/system/dist/builtins/device-manager/device-search.d.ts +6 -0
- package/system/dist/builtins/device-manager/location-alignment.d.ts +9 -2
- package/system/dist/builtins/device-manager/migrate-device.d.ts +7 -2
- package/system/dist/builtins/device-manager/migrate-hardware-state.d.ts +132 -1
- package/system/dist/builtins/device-manager/migrations/device-tag-ids.d.ts +25 -0
- package/system/dist/builtins/device-manager/migrations/index.d.ts +16 -0
- package/system/dist/builtins/device-manager/migrations/orphan-children.d.ts +33 -0
- package/system/dist/builtins/device-manager/migrations/ports.d.ts +17 -0
- package/system/dist/builtins/device-manager/migrations/rooms-as-records.d.ts +52 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +3 -1
- package/system/dist/builtins/device-manager/removal-cleanup.d.ts +7 -0
- package/system/dist/builtins/device-manager/room-actions.d.ts +27 -0
- package/system/dist/builtins/device-manager/room-store.d.ts +19 -0
- package/system/dist/builtins/device-manager/tag-names.d.ts +32 -0
- package/system/dist/builtins/device-manager/wireable-enum-catalog.d.ts +18 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +2 -2
- package/system/dist/builtins/loki-logging/index.mjs +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/migrations/migration-engine.d.ts +3 -1
- package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +15 -10
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +15 -10
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +2 -2
- package/system/dist/builtins/system-config/system-config.addon.mjs +2 -2
- package/system/dist/builtins/winston-logging/index.js +2 -2
- package/system/dist/builtins/winston-logging/index.mjs +2 -2
- package/system/dist/{command-catalog-C29hVOOg.js → command-catalog-A_ONlLfF.js} +1 -1
- package/system/dist/{command-catalog-xAeqxbZk.mjs → command-catalog-CZDlLhxO.mjs} +1 -1
- package/system/dist/{composition-sources-Do5qM6EB.js → composition-sources-D1nPv7dJ.js} +1 -1
- package/system/dist/{composition-sources-C327LGFn.mjs → composition-sources-DubMf_ii.mjs} +1 -1
- package/system/dist/{core-blocks.cap-CdTGUKtr.js → core-blocks.cap-DEYCvF9J.js} +125 -373
- package/system/dist/{core-blocks.cap-DLkEfV5b.mjs → core-blocks.cap-sW5HLDlB.mjs} +109 -327
- package/system/dist/{device-manager.cap-DJs8izI6.js → device-manager.cap-B9qVf7ag.js} +163 -22
- package/system/dist/{device-manager.cap-eYrj1Ezp.mjs → device-manager.cap-CV4KGp3e.mjs} +134 -17
- package/system/dist/{error.cap-CU1FB6uE.mjs → error.cap-B8l7L8e4.mjs} +7 -1
- package/system/dist/{error.cap-BuKbL3Ac.js → error.cap-BqlvgBJd.js} +7 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +7 -7
- package/system/dist/{legacy-integration-rows-door-CdqYAj-o.js → legacy-integration-rows-door-BK8eoGlF.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-LSgpClpX.mjs → legacy-integration-rows-door-CwzC5XNk.mjs} +1 -1
- package/system/dist/{migration-DGAc6ywR.mjs → migration-BvbfW9g-.mjs} +6 -0
- package/system/dist/{migration-BOQlFZCN.js → migration-CHPdAdNh.js} +6 -0
- package/system/dist/{prefix-walk-Mtij0NNT.mjs → named-entity-store-Cq2oVrN5.mjs} +195 -89
- package/system/dist/{prefix-walk-BFnw8NBu.js → named-entity-store-O_hi1y_o.js} +244 -90
- package/system/dist/{notification-rules.cap-BUIuYPlQ.mjs → notification-rules.cap-ClvK6QT1.mjs} +10 -5
- package/system/dist/{notification-rules.cap-BJKUjizS.js → notification-rules.cap-uSLoe2pA.js} +10 -5
- package/system/dist/{notification-targets-DMW7xgR2.js → notification-targets-ChqpBbtR.js} +2 -2
- package/system/dist/{notification-targets-4bGYH5J7.mjs → notification-targets-DUA6-F2t.mjs} +2 -2
- package/system/dist/{device-row-store-CTocYKqC.mjs → record-kinds-BD2xv4Pd.mjs} +222 -93
- package/system/dist/{device-row-store-C0P2H18h.js → record-kinds-BV8Gcpsx.js} +246 -93
- package/system/dist/records/named-entity-store.d.ts +60 -0
- package/system/dist/{rename-composition-block-D9Uc1AF7.js → rename-composition-block-C60O0P16.js} +137 -33
- package/system/dist/{rename-composition-block-Cdh-dRmY.mjs → rename-composition-block-DcX3vkwS.mjs} +137 -33
- package/system/dist/{retention-source.cap-C6Hy0hlM.js → retention-source.cap-A-TMhU5O.js} +1 -1
- package/system/dist/{retention-source.cap-550kkyp5.mjs → retention-source.cap-Ct07pM30.mjs} +1 -1
- package/system/dist/{storage-admin.cap-Ci4QbL6P.mjs → storage-admin.cap-C54s9_B9.mjs} +8 -2
- package/system/dist/{storage-admin.cap-DqW1ol4j.js → storage-admin.cap-DSPHi7ut.js} +8 -2
- package/system/dist/{stream-catalog.cap-CjEQFknc.js → stream-catalog.cap-7WPsugOy.js} +1 -1
- package/system/dist/{stream-catalog.cap-DVniDdRD.mjs → stream-catalog.cap-CzwRDaqT.mjs} +1 -1
- package/system/dist/{tag-BxLazvVb.js → tag-BLraBqvp.js} +12 -0
- package/system/dist/{tag-uZBAq6ox.mjs → tag-DU8pm9Bi.mjs} +7 -1
- package/system/dist/time-window-B6UhCArd.js +679 -0
- package/system/dist/time-window-BnUBULgu.mjs +578 -0
- package/system/dist/{wal-maintenance-BgYiAy5b.js → wal-maintenance-CkPfVApC.js} +0 -0
- package/system/dist/{wal-maintenance-Bey5ChBb.mjs → wal-maintenance-u84_1sVl.mjs} +0 -0
- package/system/package.json +16 -1
- /package/system/dist/{constants-Ba3FTIHl.js → constants-Ba3FTIHl2.js} +0 -0
- /package/system/dist/{constants-DB4piTD5.mjs → constants-DB4piTD52.mjs} +0 -0
package/system/dist/{rename-composition-block-Cdh-dRmY.mjs → rename-composition-block-DcX3vkwS.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as CamStreamResolutionSchema, c as DerivedSourceRefSchema, d as ProfileRtspEntrySchema, f as ProfileSlotSchema, g as SubscribeAudioChunksResultSchema, h as SubscribeAudioChunksInputSchema, i as CamStreamKindSchema, l as FrameHandleSchema, n as BrokerStatsSchema, o as CameraStreamSchema, p as ProfileSlotStatusSchema, r as CamProfileSchema, s as DecodedAudioChunkSchema, u as PreviewDerivedEncodeResultSchema } from "./streaming-shared-B8cXatuU.mjs";
|
|
2
|
-
import { A as AudioClassifyOutcomeSchema, C as CameraSensorsStatusSchema, D as cameraGridLayoutCapability, E as deviceStatusCapability, F as PeerBytesTicketSchema, M as BoundingBoxSchema, N as FrameInputSchema, O as AudioChunkInputSchema, P as ClipModelMetaSchema, S as CameraSensorsConfigSchema, _ as PipelineStepInputSchema, a as RunnerLocalLoadSchema, b as CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, c as NodeBenchmarkCandidatesSchema, d as NodeBenchmarkResultViewSchema, f as NodeBenchmarkStatusSchema, g as PipelineRunResultBridge, h as CameraMetricsSchema, i as motionCapability, j as AudioLevelSchema, k as AudioClassificationLabelSchema, l as NodeBenchmarkPlanSchema, m as zonesCapability, o as pipelineRunnerCapability, p as NodeDecodeProfileSchema, s as ListNodeBenchmarkResultsInputSchema, t as streamCatalogCapability, u as NodeBenchmarkPreflightSchema, v as RetrainExportLayoutSchema, w as featureProbeCapability, x as motionDetectionCapability, y as pipelineAnalyticsCapability } from "./stream-catalog.cap-
|
|
3
|
-
import { b as EventCategory } from "./base-addon-
|
|
2
|
+
import { A as AudioClassifyOutcomeSchema, C as CameraSensorsStatusSchema, D as cameraGridLayoutCapability, E as deviceStatusCapability, F as PeerBytesTicketSchema, M as BoundingBoxSchema, N as FrameInputSchema, O as AudioChunkInputSchema, P as ClipModelMetaSchema, S as CameraSensorsConfigSchema, _ as PipelineStepInputSchema, a as RunnerLocalLoadSchema, b as CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, c as NodeBenchmarkCandidatesSchema, d as NodeBenchmarkResultViewSchema, f as NodeBenchmarkStatusSchema, g as PipelineRunResultBridge, h as CameraMetricsSchema, i as motionCapability, j as AudioLevelSchema, k as AudioClassificationLabelSchema, l as NodeBenchmarkPlanSchema, m as zonesCapability, o as pipelineRunnerCapability, p as NodeDecodeProfileSchema, s as ListNodeBenchmarkResultsInputSchema, t as streamCatalogCapability, u as NodeBenchmarkPreflightSchema, v as RetrainExportLayoutSchema, w as featureProbeCapability, x as motionDetectionCapability, y as pipelineAnalyticsCapability } from "./stream-catalog.cap-CzwRDaqT.mjs";
|
|
3
|
+
import { b as EventCategory } from "./base-addon-BcVoYZbC.mjs";
|
|
4
4
|
import { Z as errMsg } from "./scoped-settings-DVWUIP7Z.mjs";
|
|
5
5
|
import { a as expandCapMethods, c as method, i as event, l as optionalMethod } from "./capability-definition-C1TLUVJR.mjs";
|
|
6
|
-
import { a as notificationRulesCapability, c as alarmPanelCapability, f as notificationOutputCapability, n as NcConditionsSchema, r as NcScheduleSchema, t as NcConditionDescriptorSchema } from "./notification-rules.cap-
|
|
7
|
-
import {
|
|
6
|
+
import { a as notificationRulesCapability, c as alarmPanelCapability, f as notificationOutputCapability, n as NcConditionsSchema, r as NcScheduleSchema, t as NcConditionDescriptorSchema } from "./notification-rules.cap-ClvK6QT1.mjs";
|
|
7
|
+
import { T as deviceAdoptionCapability, a as deviceManagerCapability, i as LinkedDevicesSlotValueSchema, l as TagPatchSchema, r as LINKED_DEVICES_SLOT, u as TagRecordSchema, w as ResyncResultSchema } from "./device-manager.cap-CV4KGp3e.mjs";
|
|
8
8
|
import { d as CameraSwitchIdSchema, u as CameraSwitchGroupSchema } from "./device-identifiers-iSuQCKmK.mjs";
|
|
9
|
-
import { a as deviceRemovalHookCapability, i as deviceRunsCapability, n as deviceTransitionsCapability, s as deviceHistoryCapability, t as retentionSourceCapability } from "./retention-source.cap-
|
|
9
|
+
import { a as deviceRemovalHookCapability, i as deviceRunsCapability, n as deviceTransitionsCapability, s as deviceHistoryCapability, t as retentionSourceCapability } from "./retention-source.cap-Ct07pM30.mjs";
|
|
10
10
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
11
11
|
import { f as settingsStoreCapability } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
12
12
|
import { a as readingMeta, n as baseUnitOf, t as ReadingQuantitySchema } from "./quantity-D3g5SxsZ.mjs";
|
|
@@ -14,26 +14,27 @@ import { r as LabelDefinitionSchema, t as DetectionCatalogClassMapSchema } from
|
|
|
14
14
|
import { a as RecordingStorageModeSchema, i as recordingCapability, n as recordingArchiveCapability } from "./recording-archive.cap-CTlm86R8.mjs";
|
|
15
15
|
import { y as StorageMigrationLeaseInputSchema } from "./relocate-CoZZTui1.mjs";
|
|
16
16
|
import { n as storageCapability, t as storageMigrationCapability } from "./storage-migration.cap-Ciw84XPm.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { a as TagsFieldSchema, d as IconKeySchema, n as TagIdsFieldSchema, r as TagNameSchema, t as TagColorIdSchema } from "./tag-DU8pm9Bi.mjs";
|
|
18
18
|
import { r as MODEL_FORMATS, t as platformProbeCapability } from "./platform-probe.cap-DzZ7xUfS.mjs";
|
|
19
19
|
import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, r as ssoBridgeCapability, t as userManagementCapability } from "./user-management.cap-4IEUCSdL.mjs";
|
|
20
20
|
import { n as DeviceRole, r as DeviceType } from "./device-type-TUGqGmaI.mjs";
|
|
21
21
|
import { d as AppLoginPathSchema } from "./device-certificate-Cddm4Idn.mjs";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { $t as EventVocabularyEntrySchema, A as MediaPlayerStatusSchema, At as TemplateEventValueSchema, B as isRemoteCustomKey, Dt as TemplateActionValueSchema, F as irSourceProblem, G as IrNativeFormatSchema, Gt as QuantityUnitError, H as isRemoteWidgetRole, I as remoteSourceSteps, Jt as paramMeta, K as IrTimingsSchema, Kt as convertQuantityInput, M as REMOTE_STEP_DELAY_MAX_MS, Mt as AutomationWhenSchema, N as RemoteSourceSchema, Nt as EVENT_LEAF_ID_RE, Ot as TemplateDeviceStateValueSchema, Qt as unwrapSchema, R as RemoteRoleSchema, V as isRemoteRole, W as IrNativeCodeSchema, Xt as enumerateItemArrayFields, Yt as paramMetaOf, Zt as enumerateSchemaFields, bt as AutomationRecipeSchema, c as coreBlocksCapability, dt as SchedulerConflictSchema, et as CompositionBlockStateSchema, gt as SchedulerStatusSchema, ht as SchedulerSchema, it as AutomationRunTraceSchema, j as mediaPlayerCapability, jt as TemplateTimeWindowValueSchema, kt as TemplateEntriesValueSchema, mt as SchedulerPreviewSchema, pt as SchedulerInputSchema, q as TransmitSettingsSchema, qt as isQuantityValue, rt as AutomationRunOutcomeSchema, tt as CompositionRunStatusSchema, ut as LOCAL_DATE_PATTERN, vt as ActionStepSchema, w as powerSourceCapability, yt as AutomationBranchStepSchema, z as customKeyOfRole } from "./core-blocks.cap-sW5HLDlB.mjs";
|
|
23
|
+
import { a as findVocabAction, s as vocabCall } from "./action-index-DwPHO2nz.mjs";
|
|
24
|
+
import { i as addonSettingsCapability, o as unitDimension, s as unitsForDimension } from "./addon-settings.cap-CHpmuaQG.mjs";
|
|
25
25
|
import { F as COMPOSED_DEVICE_STABLE_ID_PREFIX, S as CompositionSchema, it as alertsCapability, v as COMPOSER_ADDON_ID } from "./compile-OBMHlqD-.mjs";
|
|
26
26
|
import { a as normalizeUnit } from "./source-info-DGB7SdB_.mjs";
|
|
27
27
|
import { t } from "./l10n-Bu6aUvSY.mjs";
|
|
28
28
|
import { t as addonPagesCapability } from "./addon-pages.cap-BLNN6ypr.mjs";
|
|
29
29
|
import { n as WidgetRemoteSchema, r as addonWidgetsSourceCapability, t as addonWidgetsCapability } from "./addon-widgets.cap-BbmWMzIH.mjs";
|
|
30
|
+
import { n as appSourceCapability, t as appsCapability } from "./apps.cap-Bqb9NpYx.mjs";
|
|
30
31
|
import { a as databaseSnapshotCapability } from "./database-snapshot.cap-a3lSf4hl.mjs";
|
|
31
32
|
import { n as backupCapability, t as storageOccupancyCapability } from "./storage-occupancy.cap-B-wbMPmx.mjs";
|
|
32
33
|
import { n as calendarsCapability, r as calendarSourceCapability } from "./calendars.cap-DQc6Q6qS.mjs";
|
|
33
34
|
import { r as HISTORY_PRIMARY } from "./history-catalog-A_dzXNpv.mjs";
|
|
34
|
-
import { i as dataStoreProviderCapability, n as migrationsCapability, t as storageAdminCapability } from "./storage-admin.cap-
|
|
35
|
+
import { i as dataStoreProviderCapability, n as migrationsCapability, t as storageAdminCapability } from "./storage-admin.cap-C54s9_B9.mjs";
|
|
35
36
|
import { o as deviceProviderCapability } from "./device-provider.cap-D8mJllVM.mjs";
|
|
36
|
-
import { i as errorCapability } from "./error.cap-
|
|
37
|
+
import { i as errorCapability } from "./error.cap-B8l7L8e4.mjs";
|
|
37
38
|
import { n as filesystemBrowseCapability, t as storageProviderCapability } from "./storage-provider.cap-CnN9ULbc.mjs";
|
|
38
39
|
import { n as integrationsCapability, t as integrationInstancesCapability } from "./integration-instances.cap-BWttO42A.mjs";
|
|
39
40
|
import { a as keychainCapability, i as keychainAdminCapability } from "./keychain-admin.cap-DOvL8TMG.mjs";
|
|
@@ -1074,7 +1075,12 @@ var eventEmitterCapability = {
|
|
|
1074
1075
|
} },
|
|
1075
1076
|
status: {
|
|
1076
1077
|
schema: EventEmitterStatusSchema,
|
|
1077
|
-
kind: "push"
|
|
1078
|
+
kind: "push",
|
|
1079
|
+
fieldEnums: { "lastEvent.eventType": {
|
|
1080
|
+
from: "status",
|
|
1081
|
+
listKey: "vocabulary",
|
|
1082
|
+
valueKey: "id"
|
|
1083
|
+
} }
|
|
1078
1084
|
},
|
|
1079
1085
|
runtimeState: EventEmitterStatusSchema,
|
|
1080
1086
|
/**
|
|
@@ -1240,6 +1246,8 @@ var ActionEntrySchema = /* @__PURE__ */ z.object({
|
|
|
1240
1246
|
minDelaySec: /* @__PURE__ */ ActionMinDelaySecSchema.optional(),
|
|
1241
1247
|
/** Internal only: operator tags (D1054). Absent = no tags. */
|
|
1242
1248
|
tags: /* @__PURE__ */ TagsFieldSchema.optional(),
|
|
1249
|
+
/** The tag ids (D1089); `tags` is kept beside them for one release. */
|
|
1250
|
+
tagIds: /* @__PURE__ */ TagIdsFieldSchema.optional(),
|
|
1243
1251
|
status: ActionStatusSchema
|
|
1244
1252
|
}).superRefine((entry, ctx) => {
|
|
1245
1253
|
if (entry.source === "internal") {
|
|
@@ -1272,7 +1280,9 @@ var ActionInputSchema$1 = /* @__PURE__ */ z.object({
|
|
|
1272
1280
|
steps: /* @__PURE__ */ z.array(ActionStepSchema).min(1).max(50),
|
|
1273
1281
|
variables: /* @__PURE__ */ z.array(ActionVariableSchema).max(20).optional(),
|
|
1274
1282
|
minDelaySec: /* @__PURE__ */ ActionMinDelaySecSchema.optional(),
|
|
1275
|
-
tags: /* @__PURE__ */ TagsFieldSchema.optional()
|
|
1283
|
+
tags: /* @__PURE__ */ TagsFieldSchema.optional(),
|
|
1284
|
+
/** The tag ids (D1089); `tags` is kept beside them for one release. */
|
|
1285
|
+
tagIds: /* @__PURE__ */ TagIdsFieldSchema.optional()
|
|
1276
1286
|
});
|
|
1277
1287
|
/** Who started a run. Absent = the operator pressed it. */
|
|
1278
1288
|
var ActionRunOriginSchema = /* @__PURE__ */ z.object({
|
|
@@ -3894,6 +3904,16 @@ var BatteryStatusSchema = /* @__PURE__ */ z.object({
|
|
|
3894
3904
|
*/
|
|
3895
3905
|
lastFullRefreshAt: /* @__PURE__ */ z.number().optional(),
|
|
3896
3906
|
/**
|
|
3907
|
+
* The scheduled refresh's attempt bookkeeping for the window it last tried
|
|
3908
|
+
* (window index, attempts spent, ms epoch of the last attempt; `0` = none).
|
|
3909
|
+
* Persisted beside `lastFullRefreshAt` so a restart neither forgets a wake
|
|
3910
|
+
* the window already spent nor repeats it (#666). Written only by the
|
|
3911
|
+
* provider's refresh controller.
|
|
3912
|
+
*/
|
|
3913
|
+
refreshAttemptWindow: /* @__PURE__ */ z.number().optional(),
|
|
3914
|
+
refreshAttempts: /* @__PURE__ */ z.number().optional(),
|
|
3915
|
+
refreshLastAttemptAt: /* @__PURE__ */ z.number().optional(),
|
|
3916
|
+
/**
|
|
3897
3917
|
* True when the source is a BINARY low-battery indicator (HA
|
|
3898
3918
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
3899
3919
|
* charge level — `level` is then a coarse stand-in (100 = normal,
|
|
@@ -12421,6 +12441,44 @@ var heatingValveCapability = {
|
|
|
12421
12441
|
}
|
|
12422
12442
|
};
|
|
12423
12443
|
//#endregion
|
|
12444
|
+
//#region ../types/dist/esm/device/switch-run-limits.mjs
|
|
12445
|
+
/**
|
|
12446
|
+
* How long a switch-like device may be kept on, by its type AND role: the ONE
|
|
12447
|
+
* table (D1033 timed run, D1092 "on for").
|
|
12448
|
+
*
|
|
12449
|
+
* The maximum is a safety bound, not a preference. A request above it is
|
|
12450
|
+
* refused where it is made (timed run, a saved "on for") and clamped where it
|
|
12451
|
+
* is armed, so nothing a stored value says can hold a device on longer.
|
|
12452
|
+
*/
|
|
12453
|
+
var MINUTE = 60;
|
|
12454
|
+
/** A plug-in heater (switch + `switch-heater`): up to 3 h. */
|
|
12455
|
+
var SWITCH_RUN_HEATER_LIMIT = {
|
|
12456
|
+
maxSeconds: 180 * MINUTE,
|
|
12457
|
+
quickRunSeconds: 30 * MINUTE
|
|
12458
|
+
};
|
|
12459
|
+
/** A pet fountain's pump: up to 5 min. */
|
|
12460
|
+
var SWITCH_RUN_PET_FOUNTAIN_LIMIT = {
|
|
12461
|
+
maxSeconds: 300,
|
|
12462
|
+
quickRunSeconds: 60
|
|
12463
|
+
};
|
|
12464
|
+
/** A siren: up to 10 min, a one-tap run of 1 min. */
|
|
12465
|
+
var SWITCH_RUN_SIREN_LIMIT = {
|
|
12466
|
+
maxSeconds: 10 * MINUTE,
|
|
12467
|
+
quickRunSeconds: MINUTE
|
|
12468
|
+
};
|
|
12469
|
+
/** Every other switch: up to 24 h, a one-tap run of 15 min. */
|
|
12470
|
+
var SWITCH_RUN_DEFAULT_LIMIT = {
|
|
12471
|
+
maxSeconds: 1440 * MINUTE,
|
|
12472
|
+
quickRunSeconds: 15 * MINUTE
|
|
12473
|
+
};
|
|
12474
|
+
/** The limit of a device by type and role; the default when nothing narrower applies. */
|
|
12475
|
+
function switchRunLimitOf(deviceType, role) {
|
|
12476
|
+
if (deviceType === DeviceType.PetFountain) return SWITCH_RUN_PET_FOUNTAIN_LIMIT;
|
|
12477
|
+
if (role === DeviceRole.SwitchHeater) return SWITCH_RUN_HEATER_LIMIT;
|
|
12478
|
+
if (role === DeviceRole.Siren) return SWITCH_RUN_SIREN_LIMIT;
|
|
12479
|
+
return SWITCH_RUN_DEFAULT_LIMIT;
|
|
12480
|
+
}
|
|
12481
|
+
//#endregion
|
|
12424
12482
|
//#region ../types/dist/esm/capabilities/timed-run.cap.mjs
|
|
12425
12483
|
/**
|
|
12426
12484
|
* timed-run - run a device for a chosen time, then stop it (D993).
|
|
@@ -12444,16 +12502,16 @@ var TimedRunUnitSchema = /* @__PURE__ */ z.enum(["s", "min"]);
|
|
|
12444
12502
|
/** A plug-in heater (switch + `switch-heater`): up to 3 h, in minutes. */
|
|
12445
12503
|
var TIMED_RUN_HEATER_LIMIT = {
|
|
12446
12504
|
actuator: "switch",
|
|
12447
|
-
maxSeconds:
|
|
12505
|
+
maxSeconds: SWITCH_RUN_HEATER_LIMIT.maxSeconds,
|
|
12448
12506
|
unit: "min",
|
|
12449
|
-
quickRunDefault:
|
|
12507
|
+
quickRunDefault: SWITCH_RUN_HEATER_LIMIT.quickRunSeconds / 60
|
|
12450
12508
|
};
|
|
12451
12509
|
/** A pet fountain's pump: up to 5 min, in seconds. */
|
|
12452
12510
|
var TIMED_RUN_PET_FOUNTAIN_LIMIT = {
|
|
12453
12511
|
actuator: "pet-fountain",
|
|
12454
|
-
maxSeconds:
|
|
12512
|
+
maxSeconds: SWITCH_RUN_PET_FOUNTAIN_LIMIT.maxSeconds,
|
|
12455
12513
|
unit: "s",
|
|
12456
|
-
quickRunDefault:
|
|
12514
|
+
quickRunDefault: SWITCH_RUN_PET_FOUNTAIN_LIMIT.quickRunSeconds
|
|
12457
12515
|
};
|
|
12458
12516
|
/**
|
|
12459
12517
|
* The device types `timed-run` may be offered on. A `switch` is narrowed by
|
|
@@ -12468,8 +12526,9 @@ var TIMED_RUN_DEVICE_ROLES = { [DeviceType.Switch]: [DeviceRole.SwitchHeater] };
|
|
|
12468
12526
|
* `null` - the device is not offered `timed-run`.
|
|
12469
12527
|
*/
|
|
12470
12528
|
function timedRunLimitOf(deviceType, role) {
|
|
12471
|
-
|
|
12472
|
-
if (deviceType === DeviceType.
|
|
12529
|
+
const limit = switchRunLimitOf(deviceType, role);
|
|
12530
|
+
if (deviceType === DeviceType.PetFountain && limit === SWITCH_RUN_PET_FOUNTAIN_LIMIT) return TIMED_RUN_PET_FOUNTAIN_LIMIT;
|
|
12531
|
+
if (deviceType === DeviceType.Switch && role === DeviceRole.SwitchHeater && limit === SWITCH_RUN_HEATER_LIMIT) return TIMED_RUN_HEATER_LIMIT;
|
|
12473
12532
|
return null;
|
|
12474
12533
|
}
|
|
12475
12534
|
var MS_PER_SECOND = 1e3;
|
|
@@ -29007,6 +29066,30 @@ var tagsCapability = {
|
|
|
29007
29066
|
scope: "system",
|
|
29008
29067
|
mode: "singleton",
|
|
29009
29068
|
methods: {
|
|
29069
|
+
/** Create the tag named `name`, or return the one that has it (trimmed,
|
|
29070
|
+
* case-insensitive). A new tag gets a random id (D1089). */
|
|
29071
|
+
ensureTag: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ name: TagNameSchema }), TagRecordSchema, {
|
|
29072
|
+
kind: "mutation",
|
|
29073
|
+
auth: "admin"
|
|
29074
|
+
}),
|
|
29075
|
+
/** Every tag record, sorted by `order` then name. */
|
|
29076
|
+
listTags: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(TagRecordSchema), { auth: "protected" }),
|
|
29077
|
+
/** ONE write to ONE record: rename, restyle, describe. No owner is rewritten
|
|
29078
|
+
* and none has to be reachable. A rename onto another tag's name is refused
|
|
29079
|
+
* (`tag-name-taken`). */
|
|
29080
|
+
updateTag: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
29081
|
+
id: /* @__PURE__ */ z.string().min(1),
|
|
29082
|
+
patch: TagPatchSchema
|
|
29083
|
+
}), TagRecordSchema, {
|
|
29084
|
+
kind: "mutation",
|
|
29085
|
+
auth: "admin"
|
|
29086
|
+
}),
|
|
29087
|
+
/** Delete a tag and clear it from every owner (the one fan-out that remains).
|
|
29088
|
+
* Refused while an owner cannot be read, naming it. */
|
|
29089
|
+
deleteTag: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string().min(1) }), /* @__PURE__ */ z.object({ updated: TagUsageCountsSchema }), {
|
|
29090
|
+
kind: "mutation",
|
|
29091
|
+
auth: "admin"
|
|
29092
|
+
}),
|
|
29010
29093
|
/**
|
|
29011
29094
|
* Every tag: styled or in use, with how many records of each kind carry it.
|
|
29012
29095
|
* An unreachable owner degrades that kind's count to `null`; the call still
|
|
@@ -29239,6 +29322,11 @@ var TimeWindowInputSchema = /* @__PURE__ */ z.object({
|
|
|
29239
29322
|
kind: /* @__PURE__ */ z.literal("time-window"),
|
|
29240
29323
|
...inputBase
|
|
29241
29324
|
});
|
|
29325
|
+
/** A limit on the state of a device (a derived "is night"); only a `gate` binding reads it. */
|
|
29326
|
+
var DeviceStateInputSchema = /* @__PURE__ */ z.object({
|
|
29327
|
+
kind: /* @__PURE__ */ z.literal("device-state"),
|
|
29328
|
+
...inputBase
|
|
29329
|
+
});
|
|
29242
29330
|
/**
|
|
29243
29331
|
* A list of automation elements, verbatim: `trigger` entries are event leaves
|
|
29244
29332
|
* of a `when` tree (`device-fired`), `step` entries are steps of a branch
|
|
@@ -29262,7 +29350,8 @@ var TemplateScalarInputSchema = /* @__PURE__ */ z.discriminatedUnion("kind", [
|
|
|
29262
29350
|
TextInputSchema,
|
|
29263
29351
|
SelectInputSchema,
|
|
29264
29352
|
BooleanInputSchema,
|
|
29265
|
-
TimeWindowInputSchema
|
|
29353
|
+
TimeWindowInputSchema,
|
|
29354
|
+
DeviceStateInputSchema
|
|
29266
29355
|
]);
|
|
29267
29356
|
var groupBase = {
|
|
29268
29357
|
kind: /* @__PURE__ */ z.literal("group"),
|
|
@@ -29348,10 +29437,10 @@ var TemplateRowsBindingSchema = /* @__PURE__ */ z.object({
|
|
|
29348
29437
|
item: /* @__PURE__ */ z.unknown(),
|
|
29349
29438
|
bindings: /* @__PURE__ */ z.array(TemplateRowItemBindingSchema).max(40)
|
|
29350
29439
|
});
|
|
29351
|
-
/** Wraps the condition tree at `path` as `all[time-is, <tree>]` when the input has a value. */
|
|
29440
|
+
/** Wraps the condition tree at `path` as `all[time-is | device-is, <tree>]` when the input has a value. */
|
|
29352
29441
|
var TemplateGateBindingSchema = /* @__PURE__ */ z.object({
|
|
29353
29442
|
kind: /* @__PURE__ */ z.literal("gate"),
|
|
29354
|
-
/** A top-level `time-window` input. */
|
|
29443
|
+
/** A top-level `time-window` or `device-state` input. */
|
|
29355
29444
|
input: inputKey,
|
|
29356
29445
|
path: TemplatePathSchema
|
|
29357
29446
|
});
|
|
@@ -29378,7 +29467,7 @@ function levelProblems(inputs, path, inRow = false) {
|
|
|
29378
29467
|
issues.push(...levelProblems(input.inputs, path, true));
|
|
29379
29468
|
continue;
|
|
29380
29469
|
}
|
|
29381
|
-
if (input.kind === "time-window" && inRow) issues.push({
|
|
29470
|
+
if ((input.kind === "time-window" || input.kind === "device-state") && inRow) issues.push({
|
|
29382
29471
|
message: `time window "${input.key}" limits the whole automation: it is not a row input`,
|
|
29383
29472
|
path
|
|
29384
29473
|
});
|
|
@@ -29470,9 +29559,9 @@ function bindingProblems(payload, ctx) {
|
|
|
29470
29559
|
path: ["bindings", index]
|
|
29471
29560
|
});
|
|
29472
29561
|
}
|
|
29473
|
-
if (binding.kind === "gate" !== (input.kind === "time-window")) ctx.addIssue({
|
|
29562
|
+
if (binding.kind === "gate" !== (input.kind === "time-window" || input.kind === "device-state")) ctx.addIssue({
|
|
29474
29563
|
code: "custom",
|
|
29475
|
-
message: `a gate reads a time window
|
|
29564
|
+
message: `a gate reads a time window or a device state, and those are bound with a gate: "${input.key}" is ${input.kind}`,
|
|
29476
29565
|
path: ["bindings", index]
|
|
29477
29566
|
});
|
|
29478
29567
|
if (binding.kind === "rows") {
|
|
@@ -29526,6 +29615,10 @@ function valueProblem(input, value) {
|
|
|
29526
29615
|
const parsed = TemplateTimeWindowValueSchema.safeParse(value);
|
|
29527
29616
|
return parsed.success ? null : parsed.error.issues[0]?.message ?? "pick a time window";
|
|
29528
29617
|
}
|
|
29618
|
+
case "device-state": {
|
|
29619
|
+
const parsed = TemplateDeviceStateValueSchema.safeParse(value);
|
|
29620
|
+
return parsed.success ? null : parsed.error.issues[0]?.message ?? "pick a device state";
|
|
29621
|
+
}
|
|
29529
29622
|
case "entries": return entriesProblem(input, value);
|
|
29530
29623
|
}
|
|
29531
29624
|
}
|
|
@@ -29692,14 +29785,17 @@ function writeValue(root, binding, input, value) {
|
|
|
29692
29785
|
}
|
|
29693
29786
|
}
|
|
29694
29787
|
/** The tree at the path, under an `all` beside the window. */
|
|
29695
|
-
function writeGate(root, binding, value) {
|
|
29696
|
-
const
|
|
29788
|
+
function writeGate(root, binding, inputKind, value) {
|
|
29789
|
+
const leaf = inputKind === "device-state" ? {
|
|
29790
|
+
kind: "device-is",
|
|
29791
|
+
...TemplateDeviceStateValueSchema.parse(value)
|
|
29792
|
+
} : {
|
|
29793
|
+
kind: "time-is",
|
|
29794
|
+
...TemplateTimeWindowValueSchema.parse(value)
|
|
29795
|
+
};
|
|
29697
29796
|
return setAt(root, binding.path, {
|
|
29698
29797
|
kind: "all",
|
|
29699
|
-
children: [
|
|
29700
|
-
kind: "time-is",
|
|
29701
|
-
...window
|
|
29702
|
-
}, getAt(root, binding.path)]
|
|
29798
|
+
children: [leaf, getAt(root, binding.path)]
|
|
29703
29799
|
});
|
|
29704
29800
|
}
|
|
29705
29801
|
/** The name a row is known by: `buttons-0`, and `buttons-0-events-1` for a nested row. */
|
|
@@ -29811,7 +29907,11 @@ function expandAutomationTemplate(payload, values) {
|
|
|
29811
29907
|
if (list.success) body = appendAt(body, binding.path, list.data, input.key);
|
|
29812
29908
|
continue;
|
|
29813
29909
|
}
|
|
29814
|
-
|
|
29910
|
+
if (binding.kind === "gate") {
|
|
29911
|
+
if (input.kind === "time-window" || input.kind === "device-state") body = writeGate(body, binding, input.kind, value);
|
|
29912
|
+
continue;
|
|
29913
|
+
}
|
|
29914
|
+
body = writeValue(body, binding, input, value);
|
|
29815
29915
|
}
|
|
29816
29916
|
} catch (error) {
|
|
29817
29917
|
if (!(error instanceof PathError)) throw error;
|
|
@@ -29924,7 +30024,9 @@ var TemplateRecordSchema = /* @__PURE__ */ z.object({
|
|
|
29924
30024
|
/** Shipped with CamStack (`builtin:` ids): listed beside the operator's, never updated or deleted. */
|
|
29925
30025
|
builtIn: /* @__PURE__ */ z.literal(true).optional(),
|
|
29926
30026
|
/** Operator tags (D1054). Absent = no tags. */
|
|
29927
|
-
tags: /* @__PURE__ */ TagsFieldSchema.optional()
|
|
30027
|
+
tags: /* @__PURE__ */ TagsFieldSchema.optional(),
|
|
30028
|
+
/** The tag ids (D1089); `tags` is kept beside them for one release. */
|
|
30029
|
+
tagIds: /* @__PURE__ */ TagIdsFieldSchema.optional()
|
|
29928
30030
|
});
|
|
29929
30031
|
var TemplateWriteResultSchema = /* @__PURE__ */ z.discriminatedUnion("status", [/* @__PURE__ */ z.object({
|
|
29930
30032
|
status: /* @__PURE__ */ z.literal("saved"),
|
|
@@ -33885,6 +33987,8 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
33885
33987
|
alarmPanelCapability,
|
|
33886
33988
|
alertsCapability,
|
|
33887
33989
|
ambientLightSensorCapability,
|
|
33990
|
+
appSourceCapability,
|
|
33991
|
+
appsCapability,
|
|
33888
33992
|
audioAnalysisCapability,
|
|
33889
33993
|
audioAnalyzerCapability,
|
|
33890
33994
|
audioCodecCapability,
|
|
@@ -553,7 +553,7 @@ var deviceHistoryCapability = {
|
|
|
553
553
|
* path only — a device that is unregistered, offline or whose provider is
|
|
554
554
|
* restarting is NOT deleted and gets none.
|
|
555
555
|
* 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
|
|
556
|
-
* this collection, one
|
|
556
|
+
* this collection, concurrently (one failing never delays the others), each with bounded retries, logged.
|
|
557
557
|
* 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
|
|
558
558
|
* (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
|
|
559
559
|
* may have missed. Reconcile is driven by tombstones, never by "the device is
|
|
@@ -553,7 +553,7 @@ var deviceHistoryCapability = {
|
|
|
553
553
|
* path only — a device that is unregistered, offline or whose provider is
|
|
554
554
|
* restarting is NOT deleted and gets none.
|
|
555
555
|
* 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
|
|
556
|
-
* this collection, one
|
|
556
|
+
* this collection, concurrently (one failing never delays the others), each with bounded retries, logged.
|
|
557
557
|
* 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
|
|
558
558
|
* (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
|
|
559
559
|
* may have missed. Reconcile is driven by tombstones, never by "the device is
|
|
@@ -2,7 +2,7 @@ import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
|
2
2
|
import { i as RecordRetentionSchema, n as RecordKindDeclarationSchema, r as RecordKindNameSchema } from "./record-kind-ub6NXqfh.mjs";
|
|
3
3
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
4
4
|
import { a as DataStoreDatabaseSchema, c as QueryFilterSchema, d as TransactOpSchema, l as SettingsRecordSchema, n as AggregateResultSchema, o as DeclareCollectionInputSchema, r as BulkRecordSchema, s as MutationFilterSchema, t as AggregateFieldSchema, u as TransactGuardSchema } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
5
|
-
import { a as MigrationOwnerStepSchema, i as MigrationOwnerResultSchema, n as MigrationLedgerEntrySchema, o as MigrationPendingEntrySchema, r as MigrationMetaSchema, s as MigrationStatusSchema, t as MigrationDryRunResultSchema } from "./migration-
|
|
5
|
+
import { a as MigrationOwnerStepSchema, i as MigrationOwnerResultSchema, n as MigrationLedgerEntrySchema, o as MigrationPendingEntrySchema, r as MigrationMetaSchema, s as MigrationStatusSchema, t as MigrationDryRunResultSchema } from "./migration-BvbfW9g-.mjs";
|
|
6
6
|
import { a as RecordWhereSchema, i as RecordQueryResultSchema, r as RecordQueryInputSchema } from "./records.cap-DRwT1JbL.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../types/dist/esm/capabilities/data-store-provider.cap.mjs
|
|
@@ -627,7 +627,13 @@ var migrationsCapability = {
|
|
|
627
627
|
owner: /* @__PURE__ */ z.string().min(1),
|
|
628
628
|
metas: /* @__PURE__ */ z.array(MigrationMetaSchema),
|
|
629
629
|
/** Ids the owner deliberately removed: an applied row of one is fine, never "newer". */
|
|
630
|
-
retired: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string().min(1)).optional()
|
|
630
|
+
retired: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string().min(1)).optional(),
|
|
631
|
+
/**
|
|
632
|
+
* False while the owner will still declare more ids in this process (an instance kind built
|
|
633
|
+
* after its first declare): the engine judges no ledger row "newer" against a partial
|
|
634
|
+
* catalogue. Omitted means complete.
|
|
635
|
+
*/
|
|
636
|
+
complete: /* @__PURE__ */ z.boolean().optional()
|
|
631
637
|
}), /* @__PURE__ */ z.object({
|
|
632
638
|
bootId: /* @__PURE__ */ z.string(),
|
|
633
639
|
snapshot: /* @__PURE__ */ z.enum([
|
|
@@ -2,7 +2,7 @@ const require_capability_definition = require("./capability-definition-BEVd01Xj.
|
|
|
2
2
|
const require_record_kind = require("./record-kind-DoBfYHCs.js");
|
|
3
3
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
4
4
|
const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
|
|
5
|
-
const require_migration = require("./migration-
|
|
5
|
+
const require_migration = require("./migration-CHPdAdNh.js");
|
|
6
6
|
const require_records_cap = require("./records.cap-wLi7r4Hj.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region ../types/dist/esm/capabilities/data-store-provider.cap.mjs
|
|
@@ -627,7 +627,13 @@ var migrationsCapability = {
|
|
|
627
627
|
owner: /* @__PURE__ */ zod.z.string().min(1),
|
|
628
628
|
metas: /* @__PURE__ */ zod.z.array(require_migration.MigrationMetaSchema),
|
|
629
629
|
/** Ids the owner deliberately removed: an applied row of one is fine, never "newer". */
|
|
630
|
-
retired: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string().min(1)).optional()
|
|
630
|
+
retired: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string().min(1)).optional(),
|
|
631
|
+
/**
|
|
632
|
+
* False while the owner will still declare more ids in this process (an instance kind built
|
|
633
|
+
* after its first declare): the engine judges no ledger row "newer" against a partial
|
|
634
|
+
* catalogue. Omitted means complete.
|
|
635
|
+
*/
|
|
636
|
+
complete: /* @__PURE__ */ zod.z.boolean().optional()
|
|
631
637
|
}), /* @__PURE__ */ zod.z.object({
|
|
632
638
|
bootId: /* @__PURE__ */ zod.z.string(),
|
|
633
639
|
snapshot: /* @__PURE__ */ zod.z.enum([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_streaming_shared = require("./streaming-shared-DQwFZOSi.js");
|
|
2
|
-
const require_base_addon = require("./base-addon-
|
|
2
|
+
const require_base_addon = require("./base-addon-BG7p06Hb.js");
|
|
3
3
|
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
4
4
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
5
5
|
const require_ops_log = require("./ops-log-pxt9176Z.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as CamStreamResolutionSchema, i as CamStreamKindSchema, l as FrameHandleSchema, r as CamProfileSchema, t as AudioStreamPickSchema } from "./streaming-shared-B8cXatuU.mjs";
|
|
2
|
-
import { b as EventCategory } from "./base-addon-
|
|
2
|
+
import { b as EventCategory } from "./base-addon-BcVoYZbC.mjs";
|
|
3
3
|
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
4
4
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
5
5
|
import { n as OpsLogQueryInputSchema, r as OpsLogReasonSchema, t as OpsLogEntrySchema } from "./ops-log-CB4pIdqi.mjs";
|
|
@@ -2005,6 +2005,12 @@ var IconKeySchema = /* @__PURE__ */ zod.z.custom(isIconKey, "Not an icon of the
|
|
|
2005
2005
|
var TagNameSchema = /* @__PURE__ */ zod.z.string().trim().min(1).max(40);
|
|
2006
2006
|
/** The `tags` field every owner record carries. Absent = no tags. */
|
|
2007
2007
|
var TagsFieldSchema = /* @__PURE__ */ zod.z.array(TagNameSchema).max(20);
|
|
2008
|
+
/**
|
|
2009
|
+
* The ids of the tags a record carries (D1089): the reference. The kept
|
|
2010
|
+
* {@link TagsFieldSchema} names stay beside it until a later migration drops
|
|
2011
|
+
* them; a reader prefers the id and falls back to the name at the same index.
|
|
2012
|
+
*/
|
|
2013
|
+
var TagIdsFieldSchema = /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string().min(1)).max(20);
|
|
2008
2014
|
/** Fixed tag palette ids (map to `--color-tag-*` theme tokens, never a hex). */
|
|
2009
2015
|
var TAG_COLOR_IDS = [
|
|
2010
2016
|
"tag-a",
|
|
@@ -2082,6 +2088,12 @@ Object.defineProperty(exports, "TagColorIdSchema", {
|
|
|
2082
2088
|
return TagColorIdSchema;
|
|
2083
2089
|
}
|
|
2084
2090
|
});
|
|
2091
|
+
Object.defineProperty(exports, "TagIdsFieldSchema", {
|
|
2092
|
+
enumerable: true,
|
|
2093
|
+
get: function() {
|
|
2094
|
+
return TagIdsFieldSchema;
|
|
2095
|
+
}
|
|
2096
|
+
});
|
|
2085
2097
|
Object.defineProperty(exports, "TagNameSchema", {
|
|
2086
2098
|
enumerable: true,
|
|
2087
2099
|
get: function() {
|
|
@@ -2005,6 +2005,12 @@ var IconKeySchema = /* @__PURE__ */ z.custom(isIconKey, "Not an icon of the cata
|
|
|
2005
2005
|
var TagNameSchema = /* @__PURE__ */ z.string().trim().min(1).max(40);
|
|
2006
2006
|
/** The `tags` field every owner record carries. Absent = no tags. */
|
|
2007
2007
|
var TagsFieldSchema = /* @__PURE__ */ z.array(TagNameSchema).max(20);
|
|
2008
|
+
/**
|
|
2009
|
+
* The ids of the tags a record carries (D1089): the reference. The kept
|
|
2010
|
+
* {@link TagsFieldSchema} names stay beside it until a later migration drops
|
|
2011
|
+
* them; a reader prefers the id and falls back to the name at the same index.
|
|
2012
|
+
*/
|
|
2013
|
+
var TagIdsFieldSchema = /* @__PURE__ */ z.array(/* @__PURE__ */ z.string().min(1)).max(20);
|
|
2008
2014
|
/** Fixed tag palette ids (map to `--color-tag-*` theme tokens, never a hex). */
|
|
2009
2015
|
var TAG_COLOR_IDS = [
|
|
2010
2016
|
"tag-a",
|
|
@@ -2070,4 +2076,4 @@ function removeFromTags(tags, name) {
|
|
|
2070
2076
|
return tags.filter((t) => !sameTag(t, name));
|
|
2071
2077
|
}
|
|
2072
2078
|
//#endregion
|
|
2073
|
-
export {
|
|
2079
|
+
export { TagsFieldSchema as a, removeFromTags as c, IconKeySchema as d, canonicalIconKey as f, TagStyleSchema as i, renameInTags as l, TagIdsFieldSchema as n, defaultTagColorId as o, TagNameSchema as r, normalizeTags as s, TagColorIdSchema as t, tagKey as u };
|