@camstack/types 1.2.585 → 1.2.587
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 +38 -1
- package/dist/addon.d.ts +2 -0
- package/dist/addon.js +21 -5
- package/dist/addon.mjs +18 -6
- package/dist/capabilities/camera-grid-layout.cap.d.ts +3 -5
- package/dist/capabilities/cap-method-absent.d.ts +19 -0
- package/dist/capabilities/device-manager.cap.d.ts +422 -0
- package/dist/capabilities/hero-layout.cap.d.ts +2 -2
- package/dist/capabilities/index.d.ts +11 -7
- package/dist/capabilities/network-link.cap.d.ts +10 -0
- package/dist/capabilities/notification-rules.cap.d.ts +70 -0
- package/dist/capabilities/power-source.cap.d.ts +20 -0
- package/dist/capabilities/recording-export.cap.d.ts +1 -0
- package/dist/capabilities/siren-duration.d.ts +45 -7
- package/dist/capabilities/siren.cap.d.ts +45 -2
- package/dist/capabilities/switch-settable.d.ts +15 -0
- package/dist/capabilities/switch.cap.d.ts +71 -0
- package/dist/capabilities/tags.cap.d.ts +42 -16
- package/dist/capabilities/terminal-session.cap.d.ts +9 -60
- package/dist/capabilities/videoclips.cap.d.ts +3 -0
- package/dist/capabilities/workload.cap.d.ts +655 -0
- package/dist/client.js +119 -6
- package/dist/client.mjs +119 -6
- package/dist/{composed-stable-id-RvQIEpqg.mjs → composed-stable-id-BBL71oUQ.mjs} +20 -0
- package/dist/{composed-stable-id-C3NfRTj8.js → composed-stable-id-CVbyajE5.js} +20 -0
- package/dist/composition/engine-hosted-blocks.d.ts +131 -0
- package/dist/composition/helpers/index.d.ts +1 -1
- package/dist/composition/helpers/spec.d.ts +56 -2
- package/dist/composition/index.d.ts +1 -0
- package/dist/device/base-device.d.ts +29 -0
- package/dist/device/cap-vocabulary/declaration.d.ts +12 -1
- package/dist/device/cap-vocabulary/index.d.ts +4 -4
- package/dist/device/cap-vocabulary/resolve.d.ts +47 -1
- package/dist/device/cap-vocabulary/types.d.ts +26 -1
- package/dist/device/declare-identifiers.d.ts +58 -0
- package/dist/device/device-control-resolution.d.ts +1 -1
- package/dist/device/device-icon.d.ts +7 -0
- package/dist/device/device-identifiers.d.ts +190 -0
- package/dist/device/device-management.d.ts +10 -0
- package/dist/device/device-type.d.ts +22 -2
- package/dist/device/hero/build-hero-model.d.ts +15 -0
- package/dist/device/hero/hero-fragment.d.ts +11 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +12 -0
- package/dist/device/hero/hero-model.d.ts +4 -4
- package/dist/device/hero/hero-scene.d.ts +7 -0
- package/dist/device/index.d.ts +5 -1
- package/dist/enums/event-category.d.ts +8 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-d9kiqCqC.js → event-category-CE_VCE2G.js} +8 -0
- package/dist/{event-category-Dhcd0TRH.mjs → event-category-Hwx_JSCU.mjs} +8 -0
- package/dist/generated/addon-api.d.ts +106 -14
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +4 -1
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +2 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/{implemented-methods-C7ScGvEz.js → implemented-methods-ChtdIofW.js} +128 -1
- package/dist/{implemented-methods-C5FMXLGP.mjs → implemented-methods-u7ddjc-_.mjs} +57 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +2086 -439
- package/dist/index.mjs +2027 -438
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/notification/timelapse-rule.d.ts +3 -0
- package/dist/{sleep-DwRtgB2i.js → sleep-CsZJsb8n.js} +692 -35
- package/dist/{sleep-Ch7Q7UtE.mjs → sleep-D6Pih0Qt.mjs} +669 -36
- package/package.json +1 -1
|
@@ -519,6 +519,14 @@ export declare enum EventCategory {
|
|
|
519
519
|
RunningStarted = "running.started",
|
|
520
520
|
/** Mirrors `runningStateCapability.events.onFinished`. */
|
|
521
521
|
RunningFinished = "running.finished",
|
|
522
|
+
/** Mirrors `workloadCapability.events.onStarted` — a workload reached running (#585). */
|
|
523
|
+
WorkloadStarted = "workload.started",
|
|
524
|
+
/** Mirrors `workloadCapability.events.onStopped` — a running workload stopped cleanly. */
|
|
525
|
+
WorkloadStopped = "workload.stopped",
|
|
526
|
+
/** Mirrors `workloadCapability.events.onCrashed` — a workload stopped without a request. */
|
|
527
|
+
WorkloadCrashed = "workload.crashed",
|
|
528
|
+
/** Mirrors `workloadCapability.events.onRecovered` — a crashed workload runs again. */
|
|
529
|
+
WorkloadRecovered = "workload.recovered",
|
|
522
530
|
/** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
|
|
523
531
|
DeviceRunOpened = "device-run.opened",
|
|
524
532
|
/** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
|
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-CE_VCE2G.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-Hwx_JSCU.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -520,6 +520,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
520
520
|
EventCategory["RunningStarted"] = "running.started";
|
|
521
521
|
/** Mirrors `runningStateCapability.events.onFinished`. */
|
|
522
522
|
EventCategory["RunningFinished"] = "running.finished";
|
|
523
|
+
/** Mirrors `workloadCapability.events.onStarted` — a workload reached running (#585). */
|
|
524
|
+
EventCategory["WorkloadStarted"] = "workload.started";
|
|
525
|
+
/** Mirrors `workloadCapability.events.onStopped` — a running workload stopped cleanly. */
|
|
526
|
+
EventCategory["WorkloadStopped"] = "workload.stopped";
|
|
527
|
+
/** Mirrors `workloadCapability.events.onCrashed` — a workload stopped without a request. */
|
|
528
|
+
EventCategory["WorkloadCrashed"] = "workload.crashed";
|
|
529
|
+
/** Mirrors `workloadCapability.events.onRecovered` — a crashed workload runs again. */
|
|
530
|
+
EventCategory["WorkloadRecovered"] = "workload.recovered";
|
|
523
531
|
/** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
|
|
524
532
|
EventCategory["DeviceRunOpened"] = "device-run.opened";
|
|
525
533
|
/** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
|
|
@@ -520,6 +520,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
520
520
|
EventCategory["RunningStarted"] = "running.started";
|
|
521
521
|
/** Mirrors `runningStateCapability.events.onFinished`. */
|
|
522
522
|
EventCategory["RunningFinished"] = "running.finished";
|
|
523
|
+
/** Mirrors `workloadCapability.events.onStarted` — a workload reached running (#585). */
|
|
524
|
+
EventCategory["WorkloadStarted"] = "workload.started";
|
|
525
|
+
/** Mirrors `workloadCapability.events.onStopped` — a running workload stopped cleanly. */
|
|
526
|
+
EventCategory["WorkloadStopped"] = "workload.stopped";
|
|
527
|
+
/** Mirrors `workloadCapability.events.onCrashed` — a workload stopped without a request. */
|
|
528
|
+
EventCategory["WorkloadCrashed"] = "workload.crashed";
|
|
529
|
+
/** Mirrors `workloadCapability.events.onRecovered` — a crashed workload runs again. */
|
|
530
|
+
EventCategory["WorkloadRecovered"] = "workload.recovered";
|
|
523
531
|
/** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
|
|
524
532
|
EventCategory["DeviceRunOpened"] = "device-run.opened";
|
|
525
533
|
/** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
|
|
@@ -169,6 +169,7 @@ import type { videoclipsCapability } from '../capabilities/videoclips.cap.js';
|
|
|
169
169
|
import type { viewerUiCapability } from '../capabilities/viewer-ui.cap.js';
|
|
170
170
|
import type { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
|
|
171
171
|
import type { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
|
|
172
|
+
import type { workloadCapability } from '../capabilities/workload.cap.js';
|
|
172
173
|
import type { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
173
174
|
import type { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
174
175
|
import type { zonesCapability } from '../capabilities/zones.cap.js';
|
|
@@ -2826,6 +2827,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2826
2827
|
output: z.infer<typeof deviceManagerCapability.methods.setMetadata.output>;
|
|
2827
2828
|
meta: object;
|
|
2828
2829
|
}>;
|
|
2830
|
+
setIdentifiers: TRPCMutationProcedure<{
|
|
2831
|
+
input: {
|
|
2832
|
+
[x: string]: unknown;
|
|
2833
|
+
} & z.input<typeof deviceManagerCapability.methods.setIdentifiers.input>;
|
|
2834
|
+
output: z.infer<typeof deviceManagerCapability.methods.setIdentifiers.output>;
|
|
2835
|
+
meta: object;
|
|
2836
|
+
}>;
|
|
2829
2837
|
listLocations: TRPCQueryProcedure<{
|
|
2830
2838
|
input: {
|
|
2831
2839
|
nodeId?: string | undefined;
|
|
@@ -6485,6 +6493,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6485
6493
|
output: z.infer<typeof notificationRulesCapability.methods.setRuleEnabled.output>;
|
|
6486
6494
|
meta: object;
|
|
6487
6495
|
}>;
|
|
6496
|
+
listRuleTags: TRPCQueryProcedure<{
|
|
6497
|
+
input: {
|
|
6498
|
+
[x: string]: unknown;
|
|
6499
|
+
} & z.input<typeof notificationRulesCapability.methods.listRuleTags.input>;
|
|
6500
|
+
output: z.infer<typeof notificationRulesCapability.methods.listRuleTags.output>;
|
|
6501
|
+
meta: object;
|
|
6502
|
+
}>;
|
|
6503
|
+
setRuleTags: TRPCMutationProcedure<{
|
|
6504
|
+
input: {
|
|
6505
|
+
[x: string]: unknown;
|
|
6506
|
+
} & z.input<typeof notificationRulesCapability.methods.setRuleTags.input>;
|
|
6507
|
+
output: z.infer<typeof notificationRulesCapability.methods.setRuleTags.output>;
|
|
6508
|
+
meta: object;
|
|
6509
|
+
}>;
|
|
6488
6510
|
getClipRetentionAsks: TRPCQueryProcedure<{
|
|
6489
6511
|
input: {
|
|
6490
6512
|
[x: string]: unknown;
|
|
@@ -9854,6 +9876,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9854
9876
|
output: z.infer<typeof sirenCapability.methods.getOptions.output>;
|
|
9855
9877
|
meta: object;
|
|
9856
9878
|
}>;
|
|
9879
|
+
getPlayChoices: TRPCQueryProcedure<{
|
|
9880
|
+
input: {
|
|
9881
|
+
[x: string]: unknown;
|
|
9882
|
+
} & z.input<typeof sirenCapability.methods.getPlayChoices.input>;
|
|
9883
|
+
output: z.infer<typeof sirenCapability.methods.getPlayChoices.output>;
|
|
9884
|
+
meta: object;
|
|
9885
|
+
}>;
|
|
9857
9886
|
trigger: TRPCMutationProcedure<{
|
|
9858
9887
|
input: {
|
|
9859
9888
|
[x: string]: unknown;
|
|
@@ -10779,6 +10808,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10779
10808
|
output: z.infer<typeof switchCapability.methods.setState.output>;
|
|
10780
10809
|
meta: object;
|
|
10781
10810
|
}>;
|
|
10811
|
+
getOptions: TRPCQueryProcedure<{
|
|
10812
|
+
input: {
|
|
10813
|
+
[x: string]: unknown;
|
|
10814
|
+
} & z.input<typeof switchCapability.methods.getOptions.input>;
|
|
10815
|
+
output: z.infer<typeof switchCapability.methods.getOptions.output>;
|
|
10816
|
+
meta: object;
|
|
10817
|
+
}>;
|
|
10818
|
+
powerCycle: TRPCMutationProcedure<{
|
|
10819
|
+
input: {
|
|
10820
|
+
[x: string]: unknown;
|
|
10821
|
+
} & z.input<typeof switchCapability.methods.powerCycle.input>;
|
|
10822
|
+
output: z.infer<typeof switchCapability.methods.powerCycle.output>;
|
|
10823
|
+
meta: object;
|
|
10824
|
+
}>;
|
|
10782
10825
|
toggle: TRPCMutationProcedure<{
|
|
10783
10826
|
input: {
|
|
10784
10827
|
[x: string]: unknown;
|
|
@@ -11020,20 +11063,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11020
11063
|
output: z.infer<typeof terminalSessionCapability.methods.listProfiles.output>;
|
|
11021
11064
|
meta: object;
|
|
11022
11065
|
}>;
|
|
11023
|
-
listLegacyCameras: TRPCQueryProcedure<{
|
|
11024
|
-
input: {
|
|
11025
|
-
nodeId?: string | undefined;
|
|
11026
|
-
} | undefined;
|
|
11027
|
-
output: z.infer<typeof terminalSessionCapability.methods.listLegacyCameras.output>;
|
|
11028
|
-
meta: object;
|
|
11029
|
-
}>;
|
|
11030
|
-
adoptLegacyMonitor: TRPCMutationProcedure<{
|
|
11031
|
-
input: {
|
|
11032
|
-
[x: string]: unknown;
|
|
11033
|
-
} & z.input<typeof terminalSessionCapability.methods.adoptLegacyMonitor.input>;
|
|
11034
|
-
output: z.infer<typeof terminalSessionCapability.methods.adoptLegacyMonitor.output>;
|
|
11035
|
-
meta: object;
|
|
11036
|
-
}>;
|
|
11037
11066
|
listSessions: TRPCQueryProcedure<{
|
|
11038
11067
|
input: {
|
|
11039
11068
|
nodeId?: string | undefined;
|
|
@@ -12021,6 +12050,69 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12021
12050
|
meta: object;
|
|
12022
12051
|
}>;
|
|
12023
12052
|
}>>;
|
|
12053
|
+
workload: TRPCBuiltRouter<{
|
|
12054
|
+
ctx: TrpcContext;
|
|
12055
|
+
meta: object;
|
|
12056
|
+
errorShape: AugmentedErrorShape;
|
|
12057
|
+
transformer: true;
|
|
12058
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
12059
|
+
getStatus: TRPCQueryProcedure<{
|
|
12060
|
+
input: {
|
|
12061
|
+
[x: string]: unknown;
|
|
12062
|
+
} & z.input<typeof DEVICE_STATUS_METHOD.getStatus.input>;
|
|
12063
|
+
output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
|
|
12064
|
+
meta: object;
|
|
12065
|
+
}>;
|
|
12066
|
+
start: TRPCMutationProcedure<{
|
|
12067
|
+
input: {
|
|
12068
|
+
[x: string]: unknown;
|
|
12069
|
+
} & z.input<typeof workloadCapability.methods.start.input>;
|
|
12070
|
+
output: z.infer<typeof workloadCapability.methods.start.output>;
|
|
12071
|
+
meta: object;
|
|
12072
|
+
}>;
|
|
12073
|
+
stop: TRPCMutationProcedure<{
|
|
12074
|
+
input: {
|
|
12075
|
+
[x: string]: unknown;
|
|
12076
|
+
} & z.input<typeof workloadCapability.methods.stop.input>;
|
|
12077
|
+
output: z.infer<typeof workloadCapability.methods.stop.output>;
|
|
12078
|
+
meta: object;
|
|
12079
|
+
}>;
|
|
12080
|
+
restart: TRPCMutationProcedure<{
|
|
12081
|
+
input: {
|
|
12082
|
+
[x: string]: unknown;
|
|
12083
|
+
} & z.input<typeof workloadCapability.methods.restart.input>;
|
|
12084
|
+
output: z.infer<typeof workloadCapability.methods.restart.output>;
|
|
12085
|
+
meta: object;
|
|
12086
|
+
}>;
|
|
12087
|
+
pause: TRPCMutationProcedure<{
|
|
12088
|
+
input: {
|
|
12089
|
+
[x: string]: unknown;
|
|
12090
|
+
} & z.input<typeof workloadCapability.methods.pause.input>;
|
|
12091
|
+
output: z.infer<typeof workloadCapability.methods.pause.output>;
|
|
12092
|
+
meta: object;
|
|
12093
|
+
}>;
|
|
12094
|
+
resume: TRPCMutationProcedure<{
|
|
12095
|
+
input: {
|
|
12096
|
+
[x: string]: unknown;
|
|
12097
|
+
} & z.input<typeof workloadCapability.methods.resume.input>;
|
|
12098
|
+
output: z.infer<typeof workloadCapability.methods.resume.output>;
|
|
12099
|
+
meta: object;
|
|
12100
|
+
}>;
|
|
12101
|
+
forceStop: TRPCMutationProcedure<{
|
|
12102
|
+
input: {
|
|
12103
|
+
[x: string]: unknown;
|
|
12104
|
+
} & z.input<typeof workloadCapability.methods.forceStop.input>;
|
|
12105
|
+
output: z.infer<typeof workloadCapability.methods.forceStop.output>;
|
|
12106
|
+
meta: object;
|
|
12107
|
+
}>;
|
|
12108
|
+
getOptions: TRPCQueryProcedure<{
|
|
12109
|
+
input: {
|
|
12110
|
+
[x: string]: unknown;
|
|
12111
|
+
} & z.input<typeof workloadCapability.methods.getOptions.input>;
|
|
12112
|
+
output: z.infer<typeof workloadCapability.methods.getOptions.output>;
|
|
12113
|
+
meta: object;
|
|
12114
|
+
}>;
|
|
12115
|
+
}>>;
|
|
12024
12116
|
zoneAnalytics: TRPCBuiltRouter<{
|
|
12025
12117
|
ctx: TrpcContext;
|
|
12026
12118
|
meta: object;
|
|
@@ -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,
|
|
8
|
+
* Coverage: 1 advance-derived caps, 88 caps with 471 state leaves, 15 caps with a declared method timeout.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -86,6 +86,7 @@ import type { VibrationStatusSchema } from '../capabilities/vibration.cap.js';
|
|
|
86
86
|
import type { WaterHeaterStatusSchema } from '../capabilities/water-heater.cap.js';
|
|
87
87
|
import type { WeatherStatusSchema } from '../capabilities/weather.cap.js';
|
|
88
88
|
import type { WeatherStationStatusSchema } from '../capabilities/weather-station.cap.js';
|
|
89
|
+
import type { WorkloadStatusSchema } from '../capabilities/workload.cap.js';
|
|
89
90
|
/**
|
|
90
91
|
* Lookup from cap name (literal) → the TypeScript type of that
|
|
91
92
|
* capability's `status.schema`. Populated at codegen time from every
|
|
@@ -179,6 +180,7 @@ export type CapStatusTypeMap = {
|
|
|
179
180
|
readonly 'water-heater': z.infer<typeof WaterHeaterStatusSchema>;
|
|
180
181
|
readonly 'weather': z.infer<typeof WeatherStatusSchema>;
|
|
181
182
|
readonly 'weather-station': z.infer<typeof WeatherStationStatusSchema>;
|
|
183
|
+
readonly 'workload': z.infer<typeof WorkloadStatusSchema>;
|
|
182
184
|
};
|
|
183
185
|
/** Union of every cap name that has a typed status block. */
|
|
184
186
|
export type CapNameWithStatus = keyof CapStatusTypeMap;
|
|
@@ -187,4 +189,4 @@ export type CapNameWithStatus = keyof CapStatusTypeMap;
|
|
|
187
189
|
* aggregator to enumerate caps whose `status` should be polled +
|
|
188
190
|
* streamed via `subscribeDeviceStatusAggregate`.
|
|
189
191
|
*/
|
|
190
|
-
export declare const CAP_NAMES_WITH_STATUS: readonly ["accessories", "air-quality-sensor", "alarm-panel", "ambient-light-sensor", "automation-control", "battery", "binary", "brightness", "broker", "camera-credentials", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "device-adoption", "device-export", "device-status", "dishwasher", "do-not-disturb", "doorbell", "energy-system", "enum-sensor", "error", "event-emitter", "fan-control", "feature-probe", "flood", "gas", "group-active", "group-commands", "group-status", "heat-pump-status", "heating-valve", "humidifier", "humidity-sensor", "image", "image-settings", "intercom", "lawn-mower-control", "lock-control", "media-player", "meter", "motion", "motion-trigger", "motion-zones", "mqtt-broker", "native-object-detection", "navigation", "network-link", "notifier", "numeric-sensor", "osd", "pet-feeder", "pet-fountain", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "pump-cycle", "recording-archive", "recording-onboard", "recording-signal", "running-state", "scene-monitor", "script-runner", "siren", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather", "weather-station"];
|
|
192
|
+
export declare const CAP_NAMES_WITH_STATUS: readonly ["accessories", "air-quality-sensor", "alarm-panel", "ambient-light-sensor", "automation-control", "battery", "binary", "brightness", "broker", "camera-credentials", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "device-adoption", "device-export", "device-status", "dishwasher", "do-not-disturb", "doorbell", "energy-system", "enum-sensor", "error", "event-emitter", "fan-control", "feature-probe", "flood", "gas", "group-active", "group-commands", "group-status", "heat-pump-status", "heating-valve", "humidifier", "humidity-sensor", "image", "image-settings", "intercom", "lawn-mower-control", "lock-control", "media-player", "meter", "motion", "motion-trigger", "motion-zones", "mqtt-broker", "native-object-detection", "navigation", "network-link", "notifier", "numeric-sensor", "osd", "pet-feeder", "pet-fountain", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "pump-cycle", "recording-archive", "recording-onboard", "recording-signal", "running-state", "scene-monitor", "script-runner", "siren", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather", "weather-station", "workload"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapVocabularyMap } from '../device/cap-vocabulary/types.js';
|
|
2
2
|
/**
|
|
3
3
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
4
|
-
* `*.cap.ts` (D1050):
|
|
4
|
+
* `*.cap.ts` (D1050): 211 caps (109 device, 102 system).
|
|
5
5
|
* Device caps in their declared picker order, then system caps by name.
|
|
6
6
|
*/
|
|
7
7
|
export declare const CAP_VOCABULARY: CapVocabularyMap;
|
|
@@ -205,6 +205,7 @@ export { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
|
|
|
205
205
|
export { weatherCapability } from '../capabilities/weather.cap.js';
|
|
206
206
|
export { weatherStationCapability } from '../capabilities/weather-station.cap.js';
|
|
207
207
|
export { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
|
|
208
|
+
export { workloadCapability } from '../capabilities/workload.cap.js';
|
|
208
209
|
export { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
209
210
|
export { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
210
211
|
export { zonesCapability } from '../capabilities/zones.cap.js';
|
|
@@ -416,6 +417,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
416
417
|
readonly weather: 'weather';
|
|
417
418
|
readonly weatherStation: 'weather-station';
|
|
418
419
|
readonly webrtcSession: 'webrtc-session';
|
|
420
|
+
readonly workload: 'workload';
|
|
419
421
|
readonly zoneAnalytics: 'zone-analytics';
|
|
420
422
|
readonly zoneRules: 'zone-rules';
|
|
421
423
|
readonly zones: 'zones';
|
|
@@ -640,12 +642,13 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
640
642
|
readonly weather: TRouter;
|
|
641
643
|
readonly weatherStation: TRouter;
|
|
642
644
|
readonly webrtcSession: TRouter;
|
|
645
|
+
readonly workload: TRouter;
|
|
643
646
|
readonly zoneAnalytics: TRouter;
|
|
644
647
|
readonly zoneRules: TRouter;
|
|
645
648
|
readonly zones: TRouter;
|
|
646
649
|
}
|
|
647
|
-
/** Capability names whose mode is `singleton` (
|
|
648
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'cluster-update', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'energy-system', 'enum-sensor', 'error', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', 'script-runner', 'server-management', 'settings-store', 'siren', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tags', 'tamper', 'temperature-sensor', 'terminal-session', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'weather-station', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
650
|
+
/** Capability names whose mode is `singleton` (171 caps). */
|
|
651
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'cluster-update', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'energy-system', 'enum-sensor', 'error', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', 'script-runner', 'server-management', 'settings-store', 'siren', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tags', 'tamper', 'temperature-sensor', 'terminal-session', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'weather-station', 'webrtc-session', 'workload', 'zone-analytics', 'zone-rules', 'zones'];
|
|
649
652
|
/** Union of singleton capability names (literal string union). */
|
|
650
653
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
651
654
|
/** Capability names whose mode is `collection` (40 caps). */
|
|
@@ -21,7 +21,7 @@ export declare function isCollectionArrayMethodName(capName: string, method: str
|
|
|
21
21
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
22
22
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
23
23
|
*
|
|
24
|
-
* Coverage:
|
|
24
|
+
* Coverage: 13 caps, 57 methods.
|
|
25
25
|
*/
|
|
26
26
|
export declare const PROVIDER_OPTIONAL_METHODS: Readonly<Record<string, readonly string[]>>;
|
|
27
27
|
/**
|
|
@@ -109,7 +109,7 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
109
109
|
readonly targets: readonly [{
|
|
110
110
|
readonly id: 'items';
|
|
111
111
|
readonly cardinality: 'keyedArray';
|
|
112
|
-
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem];
|
|
112
|
+
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload];
|
|
113
113
|
readonly apply: 'add';
|
|
114
114
|
readonly vocabularyCap: 'consumables';
|
|
115
115
|
readonly sources: readonly [];
|
|
@@ -82,6 +82,7 @@ import { vibrationCapability } from '../capabilities/vibration.cap.js';
|
|
|
82
82
|
import { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
|
|
83
83
|
import { weatherCapability } from '../capabilities/weather.cap.js';
|
|
84
84
|
import { weatherStationCapability } from '../capabilities/weather-station.cap.js';
|
|
85
|
+
import { workloadCapability } from '../capabilities/workload.cap.js';
|
|
85
86
|
import { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
86
87
|
import { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
87
88
|
import { zonesCapability } from '../capabilities/zones.cap.js';
|
|
@@ -180,6 +181,7 @@ export interface DeviceLocalState {
|
|
|
180
181
|
waterHeater: InferRuntimeState<typeof waterHeaterCapability>;
|
|
181
182
|
weather: InferRuntimeState<typeof weatherCapability>;
|
|
182
183
|
weatherStation: InferRuntimeState<typeof weatherStationCapability>;
|
|
184
|
+
workload: InferRuntimeState<typeof workloadCapability>;
|
|
183
185
|
zoneAnalytics: InferRuntimeState<typeof zoneAnalyticsCapability>;
|
|
184
186
|
zoneRules: InferRuntimeState<typeof zoneRulesCapability>;
|
|
185
187
|
zones: InferRuntimeState<typeof zonesCapability>;
|
|
@@ -288,6 +290,7 @@ export interface CapNameToRuntimeStateMap {
|
|
|
288
290
|
'water-heater': InferRuntimeState<typeof waterHeaterCapability>;
|
|
289
291
|
'weather': InferRuntimeState<typeof weatherCapability>;
|
|
290
292
|
'weather-station': InferRuntimeState<typeof weatherStationCapability>;
|
|
293
|
+
'workload': InferRuntimeState<typeof workloadCapability>;
|
|
291
294
|
'zone-analytics': InferRuntimeState<typeof zoneAnalyticsCapability>;
|
|
292
295
|
'zone-rules': InferRuntimeState<typeof zoneRulesCapability>;
|
|
293
296
|
'zones': InferRuntimeState<typeof zonesCapability>;
|
|
@@ -107,6 +107,7 @@ import type { waterHeaterCapability } from '../capabilities/water-heater.cap.js'
|
|
|
107
107
|
import type { weatherCapability } from '../capabilities/weather.cap.js';
|
|
108
108
|
import type { weatherStationCapability } from '../capabilities/weather-station.cap.js';
|
|
109
109
|
import type { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
|
|
110
|
+
import type { workloadCapability } from '../capabilities/workload.cap.js';
|
|
110
111
|
import type { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
111
112
|
import type { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
112
113
|
import type { zonesCapability } from '../capabilities/zones.cap.js';
|
|
@@ -219,6 +220,7 @@ export interface DeviceProxyState {
|
|
|
219
220
|
readonly waterHeater: SliceHandle<InferRuntimeState<typeof waterHeaterCapability>>;
|
|
220
221
|
readonly weather: SliceHandle<InferRuntimeState<typeof weatherCapability>>;
|
|
221
222
|
readonly weatherStation: SliceHandle<InferRuntimeState<typeof weatherStationCapability>>;
|
|
223
|
+
readonly workload: SliceHandle<InferRuntimeState<typeof workloadCapability>>;
|
|
222
224
|
readonly zoneAnalytics: SliceHandle<InferRuntimeState<typeof zoneAnalyticsCapability>>;
|
|
223
225
|
readonly zoneRules: SliceHandle<InferRuntimeState<typeof zoneRulesCapability>>;
|
|
224
226
|
readonly zones: SliceHandle<InferRuntimeState<typeof zonesCapability>>;
|
|
@@ -346,6 +348,7 @@ export interface DeviceProxy {
|
|
|
346
348
|
readonly weather?: InferDeviceProxyCap<typeof weatherCapability>;
|
|
347
349
|
readonly weatherStation?: InferDeviceProxyCap<typeof weatherStationCapability>;
|
|
348
350
|
readonly webrtcSession?: InferDeviceProxyCap<typeof webrtcSessionCapability>;
|
|
351
|
+
readonly workload?: InferDeviceProxyCap<typeof workloadCapability>;
|
|
349
352
|
readonly zoneAnalytics?: InferDeviceProxyCap<typeof zoneAnalyticsCapability>;
|
|
350
353
|
readonly zoneRules?: InferDeviceProxyCap<typeof zoneRulesCapability>;
|
|
351
354
|
readonly zones?: InferDeviceProxyCap<typeof zonesCapability>;
|
|
@@ -356,7 +359,7 @@ export interface DeviceProxy {
|
|
|
356
359
|
readonly deviceAdoption: Pick<InferDeviceProxyCap<typeof deviceAdoptionCapability>, 'getStatus'>;
|
|
357
360
|
readonly deviceExport: Pick<InferDeviceProxyCap<typeof deviceExportCapability>, 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
358
361
|
readonly deviceHistory: Pick<InferDeviceProxyCap<typeof deviceHistoryCapability>, 'listSeries' | 'query' | 'getDeviceEnabled' | 'setDeviceEnabled' | 'deleteSeriesRange'>;
|
|
359
|
-
readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setAlias' | 'setLocation' | 'setTags' | 'setType' | 'setIntegrationId' | 'setLinkDeviceId' | 'setPrimaryChildEntityId' | 'setChildLayout' | 'setPrimaryChildPreference' | 'setDisplay' | 'getWireableFields' | 'setRole' | 'applyInitialMeta' | 'setMetadata' | 'setDisabled' | 'getDevice' | 'getLinkedDevices' | 'getStreamSources' | 'getConfigSchema' | 'getSettingsSchema' | 'updateConfig' | 'enable' | 'disable' | 'remove' | 'getStreamProfileMap' | 'setStreamProfileMap' | 'probeStreams' | 'getBindings' | 'setWrapperActive' | 'getWrapperActivation' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate'>;
|
|
362
|
+
readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setAlias' | 'setLocation' | 'setTags' | 'setType' | 'setIntegrationId' | 'setLinkDeviceId' | 'setPrimaryChildEntityId' | 'setChildLayout' | 'setPrimaryChildPreference' | 'setDisplay' | 'getWireableFields' | 'setRole' | 'applyInitialMeta' | 'setMetadata' | 'setIdentifiers' | 'setDisabled' | 'getDevice' | 'getLinkedDevices' | 'getStreamSources' | 'getConfigSchema' | 'getSettingsSchema' | 'updateConfig' | 'enable' | 'disable' | 'remove' | 'getStreamProfileMap' | 'setStreamProfileMap' | 'probeStreams' | 'getBindings' | 'setWrapperActive' | 'getWrapperActivation' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate'>;
|
|
360
363
|
readonly deviceState: Pick<InferDeviceProxyCap<typeof deviceStateCapability>, 'getSnapshot' | 'getCapSlice' | 'setCapSlice' | 'claimFields' | 'patchOwnedFields' | 'releaseClaim' | 'getNativeCapSlice'>;
|
|
361
364
|
readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'listRecentFaces' | 'getFaceByTrack'>;
|
|
362
365
|
readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
6
6
|
* (~144MB RSS per runner, D28).
|
|
7
7
|
*
|
|
8
|
-
* Coverage:
|
|
8
|
+
* Coverage: 109 device-scoped capabilities.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DEVICE_SCOPED_CAPS: ReadonlySet<string>;
|
|
11
11
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapabilityHistoryField, CapabilityHistoryItems, CapabilityHistoryPrimary } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
*
|
|
4
|
+
* 47 caps with series (130 series), 39 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|
|
@@ -13,7 +13,7 @@ export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<st
|
|
|
13
13
|
export declare const HISTORY_ITEM_CATALOG: Readonly<Record<string, CapabilityHistoryItems>>;
|
|
14
14
|
/**
|
|
15
15
|
* The series a device card trends, per cap (`history.primary` + `history.priority`):
|
|
16
|
-
*
|
|
16
|
+
* 7 caps. The card shows the primary of the enabled cap with the highest priority.
|
|
17
17
|
*/
|
|
18
18
|
export declare const HISTORY_PRIMARY: Readonly<Record<string, CapabilityHistoryPrimary>>;
|
|
19
19
|
/** Caps that declared `history: 'none'`, sorted. */
|
|
@@ -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: 1519 method paths across 211 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 641 methods carry a device reference, of which
|
|
10
|
+
* 199 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
|
@@ -16,7 +16,7 @@ export interface RuntimeStatePolicy {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
19
|
-
* `runtimeState`.
|
|
19
|
+
* `runtimeState`. 87 caps: 43 `restored`, 44 `session`.
|
|
20
20
|
*
|
|
21
21
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
22
22
|
* with `durability: 'session'` has one and has decided not to keep it.
|
|
@@ -113,7 +113,7 @@ export interface SystemProxy {
|
|
|
113
113
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
114
114
|
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'directory' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
115
115
|
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'discoverTargets' | 'probeTargetConfig' | 'send' | 'testTarget'>;
|
|
116
|
-
readonly notificationRules: Pick<InferProvider<typeof notificationRulesCapability>, 'listRules' | 'getRule' | 'createRule' | 'updateRule' | 'deleteRule' | 'setRuleEnabled' | 'getClipRetentionAsks' | 'listDeviceMutes' | 'testRule' | 'previewStateSummary' | 'getConditionCatalog' | 'getTemplateCatalog' | 'previewTemplate' | 'getHistory' | 'getRuleLastRuns' | 'resolveArtifactUrl' | 'listSnoozes' | 'createSnooze' | 'cancelSnooze' | 'getAlarmConfig' | 'setAlarmConfig' | 'createAlarmProfile' | 'renameAlarmProfile' | 'deleteAlarmProfile' | 'activateAlarmProfile' | 'getAlarmSensors'>;
|
|
116
|
+
readonly notificationRules: Pick<InferProvider<typeof notificationRulesCapability>, 'listRules' | 'getRule' | 'createRule' | 'updateRule' | 'deleteRule' | 'setRuleEnabled' | 'listRuleTags' | 'setRuleTags' | 'getClipRetentionAsks' | 'listDeviceMutes' | 'testRule' | 'previewStateSummary' | 'getConditionCatalog' | 'getTemplateCatalog' | 'previewTemplate' | 'getHistory' | 'getRuleLastRuns' | 'resolveArtifactUrl' | 'listSnoozes' | 'createSnooze' | 'cancelSnooze' | 'getAlarmConfig' | 'setAlarmConfig' | 'createAlarmProfile' | 'renameAlarmProfile' | 'deleteAlarmProfile' | 'activateAlarmProfile' | 'getAlarmSensors'>;
|
|
117
117
|
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration' | 'listTemplates' | 'upsertTemplate' | 'deleteTemplate'>;
|
|
118
118
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
|
119
119
|
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'setNodeStepSettings' | 'getNodeInferenceDevices' | 'forgetInferenceDevice' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'getHealthDigest' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
|
|
@@ -134,7 +134,7 @@ export interface SystemProxy {
|
|
|
134
134
|
readonly system: Pick<InferProvider<typeof systemCapability>, 'info' | 'health' | 'featureFlags' | 'networkAddresses' | 'getRetentionConfig' | 'setRetentionConfig' | 'forceRetentionCleanup' | 'getSiteLocation' | 'setSiteLocation' | 'detectSiteLocation' | 'getRequestCensus' | 'getLoadContributions' | 'getFailureContributions' | 'getLoggingSettings' | 'setLoggingSettings' | 'debugWatch'>;
|
|
135
135
|
readonly tags: Pick<InferProvider<typeof tagsCapability>, 'list' | 'setStyle' | 'rename' | 'remove'>;
|
|
136
136
|
readonly template: Pick<InferProvider<typeof templateCapability>, 'list' | 'get' | 'create' | 'update' | 'delete'>;
|
|
137
|
-
readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | '
|
|
137
|
+
readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listSessions' | 'serverShellStatus' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
|
|
138
138
|
readonly toast: Pick<InferProvider<typeof toastCapability>, 'onToast'>;
|
|
139
139
|
readonly training: Pick<InferProvider<typeof trainingCapability>, 'listBaseModels' | 'planJob' | 'startJob' | 'startJobBatch' | 'listJobs' | 'getJob' | 'cancelJob' | 'getJobResult' | 'listCanaryTargets' | 'registerResult' | 'canaryResult' | 'rollbackCanary' | 'discardResult'>;
|
|
140
140
|
readonly turnProvider: Pick<InferProvider<typeof turnProviderCapability>, 'getTurnServers'>;
|