@camstack/types 1.2.384 → 1.2.385
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/dist/addon.js +51 -3
- package/dist/addon.mjs +51 -3
- package/dist/capabilities/alerts.cap.d.ts +20 -0
- package/dist/capabilities/dishwasher.cap.d.ts +352 -30
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +69 -0
- package/dist/capabilities/osd-manager.cap.d.ts +18 -0
- package/dist/capabilities/storage-migration.cap.d.ts +14 -0
- package/dist/client.js +76 -7
- package/dist/client.mjs +76 -7
- package/dist/enums/event-category.d.ts +10 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-BvOFi6PY.mjs → event-category-DOl51-Ij.mjs} +10 -1
- package/dist/{event-category-Hoe-mqbd.js → event-category-eSqkye-K.js} +10 -1
- package/dist/generated/addon-api.d.ts +21 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +519 -45
- package/dist/index.mjs +499 -46
- package/dist/interfaces/event-bus.d.ts +2 -0
- package/dist/interfaces/relocate.d.ts +25 -0
- package/dist/notification/alert-episode.d.ts +62 -0
- package/dist/{sleep-REHQvLV6.js → sleep-BE7_6UnC.js} +3 -1
- package/dist/{sleep-BegKjwUu.mjs → sleep-BxjU_fJM.mjs} +3 -1
- package/dist/utils/oauth-landing.d.ts +38 -0
- package/package.json +1 -1
|
@@ -76,9 +76,18 @@ export declare enum EventCategory {
|
|
|
76
76
|
/**
|
|
77
77
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
78
78
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
79
|
-
* alert centre turns it into one
|
|
79
|
+
* alert centre turns it into one critical alert.
|
|
80
80
|
*/
|
|
81
81
|
SystemRunnerCheck = "system.runner-check",
|
|
82
|
+
/**
|
|
83
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
84
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
85
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
86
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
87
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
88
|
+
* event may be dropped (D8, D11).
|
|
89
|
+
*/
|
|
90
|
+
AlertEpisode = "alert.episode",
|
|
82
91
|
AddonError = "addon.error",
|
|
83
92
|
AddonPageReady = "addon.page-ready",
|
|
84
93
|
AddonWidgetReady = "addon.widget-ready",
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-eSqkye-K.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-DOl51-Ij.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -77,9 +77,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
77
77
|
/**
|
|
78
78
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
79
79
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
80
|
-
* alert centre turns it into one
|
|
80
|
+
* alert centre turns it into one critical alert.
|
|
81
81
|
*/
|
|
82
82
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
83
|
+
/**
|
|
84
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
85
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
86
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
87
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
88
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
89
|
+
* event may be dropped (D8, D11).
|
|
90
|
+
*/
|
|
91
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
83
92
|
EventCategory["AddonError"] = "addon.error";
|
|
84
93
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
85
94
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -77,9 +77,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
77
77
|
/**
|
|
78
78
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
79
79
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
80
|
-
* alert centre turns it into one
|
|
80
|
+
* alert centre turns it into one critical alert.
|
|
81
81
|
*/
|
|
82
82
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
83
|
+
/**
|
|
84
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
85
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
86
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
87
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
88
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
89
|
+
* event may be dropped (D8, D11).
|
|
90
|
+
*/
|
|
91
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
83
92
|
EventCategory["AddonError"] = "addon.error";
|
|
84
93
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
85
94
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -3392,6 +3392,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
3392
3392
|
output: z.infer<typeof dishwasherCapability.methods.pause.output>;
|
|
3393
3393
|
meta: object;
|
|
3394
3394
|
}>;
|
|
3395
|
+
resume: TRPCMutationProcedure<{
|
|
3396
|
+
input: {
|
|
3397
|
+
[x: string]: unknown;
|
|
3398
|
+
} & z.input<typeof dishwasherCapability.methods.resume.input>;
|
|
3399
|
+
output: z.infer<typeof dishwasherCapability.methods.resume.output>;
|
|
3400
|
+
meta: object;
|
|
3401
|
+
}>;
|
|
3395
3402
|
stop: TRPCMutationProcedure<{
|
|
3396
3403
|
input: {
|
|
3397
3404
|
[x: string]: unknown;
|
|
@@ -3462,6 +3469,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
3462
3469
|
output: z.infer<typeof dishwasherCapability.methods.setOption.output>;
|
|
3463
3470
|
meta: object;
|
|
3464
3471
|
}>;
|
|
3472
|
+
getOptions: TRPCQueryProcedure<{
|
|
3473
|
+
input: {
|
|
3474
|
+
[x: string]: unknown;
|
|
3475
|
+
} & z.input<typeof dishwasherCapability.methods.getOptions.input>;
|
|
3476
|
+
output: z.infer<typeof dishwasherCapability.methods.getOptions.output>;
|
|
3477
|
+
meta: object;
|
|
3478
|
+
}>;
|
|
3465
3479
|
}>>;
|
|
3466
3480
|
doorbell: TRPCBuiltRouter<{
|
|
3467
3481
|
ctx: TrpcContext;
|
|
@@ -9221,6 +9235,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9221
9235
|
output: z.infer<typeof storageMigrationCapability.methods.movers.output>;
|
|
9222
9236
|
meta: object;
|
|
9223
9237
|
}>;
|
|
9238
|
+
moverClearance: TRPCQueryProcedure<{
|
|
9239
|
+
input: {
|
|
9240
|
+
[x: string]: unknown;
|
|
9241
|
+
} & z.input<typeof storageMigrationCapability.methods.moverClearance.input>;
|
|
9242
|
+
output: z.infer<typeof storageMigrationCapability.methods.moverClearance.output>;
|
|
9243
|
+
meta: object;
|
|
9244
|
+
}>;
|
|
9224
9245
|
residue: TRPCQueryProcedure<{
|
|
9225
9246
|
input: {
|
|
9226
9247
|
[x: string]: unknown;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps, 73 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 73 caps with 370 state leaves.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -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: 1386 method paths across 179 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 550 methods carry a device reference, of which
|
|
10
10
|
* 179 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
@@ -107,7 +107,7 @@ export interface SystemProxy {
|
|
|
107
107
|
readonly serverManagement: Pick<InferProvider<typeof serverManagementCapability>, 'getServerPackageStatus' | 'checkServerUpdate' | 'applyServerUpdate' | 'rollbackServerUpdate' | 'restartServer'>;
|
|
108
108
|
readonly settingsStore: Pick<InferProvider<typeof settingsStoreCapability>, 'get' | 'set' | 'query' | 'upsert' | 'upsertMany' | 'insert' | 'insertMany' | 'transact' | 'update' | 'delete' | 'deleteWhere' | 'updateWhere' | 'count' | 'aggregate' | 'histogram' | 'isEmpty' | 'declareCollection'>;
|
|
109
109
|
readonly storage: Pick<InferProvider<typeof storageCapability>, 'resolve' | 'write' | 'read' | 'exists' | 'list' | 'delete' | 'getAvailableSpace' | 'beginUpload' | 'writeChunk' | 'finalizeUpload' | 'abortUpload' | 'beginDownload' | 'readChunk' | 'endDownload' | 'listLocations' | 'listLocationDeclarations' | 'upsertLocation' | 'deleteLocation' | 'listDrainProgress' | 'testLocation' | 'listProviders' | 'testConfig'>;
|
|
110
|
-
readonly storageMigration: Pick<InferProvider<typeof storageMigrationCapability>, 'plan' | 'start' | 'status' | 'cancel' | 'movers' | 'residue' | 'drain' | 'cleanupStart' | 'cleanupStatus' | 'cleanupCancel' | 'history'>;
|
|
110
|
+
readonly storageMigration: Pick<InferProvider<typeof storageMigrationCapability>, 'plan' | 'start' | 'status' | 'cancel' | 'movers' | 'moverClearance' | 'residue' | 'drain' | 'cleanupStart' | 'cleanupStatus' | 'cleanupCancel' | 'history'>;
|
|
111
111
|
readonly streamBroker: Pick<InferProvider<typeof streamBrokerCapability>, 'fetchEventMedia' | 'listAllCameraStreams' | 'listAllProfileSlots' | 'getBrokerStats' | 'probeStream' | 'listClients' | 'getLiveViewerCounts' | 'killClient' | 'getStreamUrl' | 'getStreamWithCodec' | 'releaseStreamWithCodec' | 'acquireEgressTranscode' | 'releaseEgressTranscode' | 'subscribeAudioChunks' | 'pullAudioChunks' | 'unsubscribeAudioChunks' | 'setPreBufferDuration' | 'getPreBufferInfo' | 'getRtspPort' | 'getAllRtspEntries' | 'getRtspEntry' | 'regenerateRtspToken' | 'setRtspEnabled' | 'isRtspEnabled'>;
|
|
112
112
|
readonly system: Pick<InferProvider<typeof systemCapability>, 'info' | 'health' | 'featureFlags' | 'networkAddresses' | 'getRetentionConfig' | 'setRetentionConfig' | 'forceRetentionCleanup' | 'getSiteLocation' | 'setSiteLocation' | 'detectSiteLocation' | 'getRequestCensus' | 'getLoadContributions' | 'getFailureContributions' | 'getLoggingSettings' | 'setLoggingSettings'>;
|
|
113
113
|
readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listInstances' | 'createInstance' | 'updateInstance' | 'deleteInstance' | 'setInstanceEnabled' | 'listLegacyCameras' | 'adoptLegacyMonitor' | 'listSessions' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -265,6 +265,7 @@ export { alarmDeviceBlocksArming, alarmDeviceSecureOnArm, type AlarmDeviceBlocks
|
|
|
265
265
|
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';
|
|
266
266
|
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';
|
|
267
267
|
export { NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, sensorRaisedOf, sensorTransitionOffered, } from './notification/sensor-raised.js';
|
|
268
|
+
export { alertEpisodeId, alertEpisodeKind, alertEpisodePayload, alertNodeId, isAlertEpisodeOpen, isAlertEpisodeSeverity, parseAlertEpisodePayload, AlertEpisodePayloadSchema, type AlertEpisodePayload, type AlertEpisodePhase, } from './notification/alert-episode.js';
|
|
268
269
|
export { NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, isHeldBackTemplateVar, isKnownTemplateVar, servedTemplateVars, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, } from './notification/template-vars.js';
|
|
269
270
|
export { NC_SYSTEM_EVENT_FILTER_KEYS, type NcSystemEventFilterKey, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, } from './notification/system-event-filters.js';
|
|
270
271
|
export { describeSystemEventFamilyProblem, isSystemEventFamily, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, type NcSystemEventConditionFilterKey, type NcSystemEventFamily, type NcSystemEventFamilyProblem, type NcSystemEventFamilyVerdict, type NcSystemEventKindGroupSpec, systemEventFamilyOf, systemEventFamilyProblems, systemEventKindNamesOf, systemEventKindsOfFamily, } from './notification/system-event-families.js';
|
|
@@ -312,6 +313,7 @@ export { errMsg } from './utils/err-msg.js';
|
|
|
312
313
|
export { hfModelUrl } from './utils/hf-url.js';
|
|
313
314
|
export { asBoolean, asJsonArray, asJsonObject, asNumber, asString, parseJsonArray, parseJsonObject, parseJsonUnknown, } from './utils/json-safe.js';
|
|
314
315
|
export { maskUrlCredentials } from './utils/mask-url.js';
|
|
316
|
+
export { OAUTH_LANDING_PATH, OAUTH_LANDING_REASONS, isOauthLandingReason, oauthLandingUrl, parseOauthLandingFragment, type OauthLandingOutcome, type OauthLandingReason, } from './utils/oauth-landing.js';
|
|
315
317
|
export { commitWatchdogRestart, DEFAULT_POOL_MEMORY_POLICY, evaluatePoolMemory, initialPoolMemoryState, type PoolMemoryAction, type PoolMemoryPolicy, type PoolMemoryState, type PoolMemoryTelemetry, type PoolMemoryVerdict, PoolMemoryWatchdog, type PoolMemoryWatchdogOptions, type ProcMemory, parseProcStatus, pickRestartCandidate, poolMemoryThreshold, type RestartCandidate, resetPoolBaseline, resolvePoolMemoryPolicy, } from './utils/pool-memory-watchdog.js';
|
|
316
318
|
export { cellsToRects, type NormRect, rectsToCells } from './utils/privacy-grid-raster.js';
|
|
317
319
|
export { RingBuffer } from './utils/ring-buffer.js';
|