@camstack/types 1.2.584 → 1.2.585
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 +9 -0
- package/dist/addon/instance-link.d.ts +3 -1
- package/dist/addon.d.ts +3 -2
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +2 -2
- package/dist/audit/command-origin-claim.d.ts +33 -0
- package/dist/audit/device-transition.d.ts +35 -2
- package/dist/capabilities/capability-definition.d.ts +2 -1
- package/dist/capabilities/device-transitions.cap.d.ts +44 -0
- package/dist/capabilities/index.d.ts +4 -1
- package/dist/capabilities/siren-duration.d.ts +15 -0
- package/dist/capabilities/siren.cap.d.ts +175 -0
- package/dist/client.js +621 -613
- package/dist/client.mjs +621 -613
- package/dist/generated/addon-api.d.ts +36 -0
- 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/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.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/runtime-state-durability.d.ts +1 -1
- package/dist/helpers/trpc-leaf.d.ts +4 -3
- package/dist/index.js +280 -7
- package/dist/index.mjs +269 -8
- package/dist/{sleep-DnhxKL99.mjs → sleep-Ch7Q7UtE.mjs} +728 -620
- package/dist/{sleep-Coq9CYAH.js → sleep-DwRtgB2i.js} +739 -619
- package/package.json +1 -1
|
@@ -135,6 +135,7 @@ import type { schedulersCapability } from '../capabilities/schedulers.cap.js';
|
|
|
135
135
|
import type { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
136
136
|
import type { serverManagementCapability } from '../capabilities/server-management.cap.js';
|
|
137
137
|
import type { settingsStoreCapability } from '../capabilities/settings-store.cap.js';
|
|
138
|
+
import type { sirenCapability } from '../capabilities/siren.cap.js';
|
|
138
139
|
import type { smtpProviderCapability } from '../capabilities/smtp-provider.cap.js';
|
|
139
140
|
import type { snapshotCapability } from '../capabilities/snapshot.cap.js';
|
|
140
141
|
import type { ssoBridgeCapability } from '../capabilities/sso-bridge.cap.js';
|
|
@@ -9833,6 +9834,41 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9833
9834
|
meta: object;
|
|
9834
9835
|
}>;
|
|
9835
9836
|
}>>;
|
|
9837
|
+
siren: TRPCBuiltRouter<{
|
|
9838
|
+
ctx: TrpcContext;
|
|
9839
|
+
meta: object;
|
|
9840
|
+
errorShape: AugmentedErrorShape;
|
|
9841
|
+
transformer: true;
|
|
9842
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
9843
|
+
getStatus: TRPCQueryProcedure<{
|
|
9844
|
+
input: {
|
|
9845
|
+
[x: string]: unknown;
|
|
9846
|
+
} & z.input<typeof DEVICE_STATUS_METHOD.getStatus.input>;
|
|
9847
|
+
output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
|
|
9848
|
+
meta: object;
|
|
9849
|
+
}>;
|
|
9850
|
+
getOptions: TRPCQueryProcedure<{
|
|
9851
|
+
input: {
|
|
9852
|
+
[x: string]: unknown;
|
|
9853
|
+
} & z.input<typeof sirenCapability.methods.getOptions.input>;
|
|
9854
|
+
output: z.infer<typeof sirenCapability.methods.getOptions.output>;
|
|
9855
|
+
meta: object;
|
|
9856
|
+
}>;
|
|
9857
|
+
trigger: TRPCMutationProcedure<{
|
|
9858
|
+
input: {
|
|
9859
|
+
[x: string]: unknown;
|
|
9860
|
+
} & z.input<typeof sirenCapability.methods.trigger.input>;
|
|
9861
|
+
output: z.infer<typeof sirenCapability.methods.trigger.output>;
|
|
9862
|
+
meta: object;
|
|
9863
|
+
}>;
|
|
9864
|
+
stop: TRPCMutationProcedure<{
|
|
9865
|
+
input: {
|
|
9866
|
+
[x: string]: unknown;
|
|
9867
|
+
} & z.input<typeof sirenCapability.methods.stop.input>;
|
|
9868
|
+
output: z.infer<typeof sirenCapability.methods.stop.output>;
|
|
9869
|
+
meta: object;
|
|
9870
|
+
}>;
|
|
9871
|
+
}>>;
|
|
9836
9872
|
smoke: TRPCBuiltRouter<{
|
|
9837
9873
|
ctx: TrpcContext;
|
|
9838
9874
|
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, 87 caps with 448 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 {
|
|
@@ -71,6 +71,7 @@ import type { RecordingSignalStatusSchema } from '../capabilities/recording-sign
|
|
|
71
71
|
import type { RunningStateStatusSchema } from '../capabilities/running-state.cap.js';
|
|
72
72
|
import type { SceneMonitorStatusSchema } from '../capabilities/scene-monitor.cap.js';
|
|
73
73
|
import type { ScriptRunnerStatusSchema } from '../capabilities/script-runner.cap.js';
|
|
74
|
+
import type { SirenStatusSchema } from '../capabilities/siren.cap.js';
|
|
74
75
|
import type { SmokeStatusSchema } from '../capabilities/smoke.cap.js';
|
|
75
76
|
import type { SnapshotStatusSchema } from '../capabilities/snapshot.cap.js';
|
|
76
77
|
import type { StreamParamsStatusSchema } from '../capabilities/stream-params.cap.js';
|
|
@@ -163,6 +164,7 @@ export type CapStatusTypeMap = {
|
|
|
163
164
|
readonly 'running-state': z.infer<typeof RunningStateStatusSchema>;
|
|
164
165
|
readonly 'scene-monitor': z.infer<typeof SceneMonitorStatusSchema>;
|
|
165
166
|
readonly 'script-runner': z.infer<typeof ScriptRunnerStatusSchema>;
|
|
167
|
+
readonly 'siren': z.infer<typeof SirenStatusSchema>;
|
|
166
168
|
readonly 'smoke': z.infer<typeof SmokeStatusSchema>;
|
|
167
169
|
readonly 'snapshot': z.infer<typeof SnapshotStatusSchema>;
|
|
168
170
|
readonly 'stream-params': z.infer<typeof StreamParamsStatusSchema>;
|
|
@@ -185,4 +187,4 @@ export type CapNameWithStatus = keyof CapStatusTypeMap;
|
|
|
185
187
|
* aggregator to enumerate caps whose `status` should be polled +
|
|
186
188
|
* streamed via `subscribeDeviceStatusAggregate`.
|
|
187
189
|
*/
|
|
188
|
-
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", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather", "weather-station"];
|
|
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"];
|
|
@@ -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): 210 caps (108 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;
|
|
@@ -165,6 +165,7 @@ export { schedulersCapability } from '../capabilities/schedulers.cap.js';
|
|
|
165
165
|
export { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
166
166
|
export { serverManagementCapability } from '../capabilities/server-management.cap.js';
|
|
167
167
|
export { settingsStoreCapability } from '../capabilities/settings-store.cap.js';
|
|
168
|
+
export { sirenCapability } from '../capabilities/siren.cap.js';
|
|
168
169
|
export { smokeCapability } from '../capabilities/smoke.cap.js';
|
|
169
170
|
export { smtpProviderCapability } from '../capabilities/smtp-provider.cap.js';
|
|
170
171
|
export { snapshotCapability } from '../capabilities/snapshot.cap.js';
|
|
@@ -375,6 +376,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
375
376
|
readonly scriptRunner: 'script-runner';
|
|
376
377
|
readonly serverManagement: 'server-management';
|
|
377
378
|
readonly settingsStore: 'settings-store';
|
|
379
|
+
readonly siren: 'siren';
|
|
378
380
|
readonly smoke: 'smoke';
|
|
379
381
|
readonly smtpProvider: 'smtp-provider';
|
|
380
382
|
readonly snapshot: 'snapshot';
|
|
@@ -598,6 +600,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
598
600
|
readonly scriptRunner: TRouter;
|
|
599
601
|
readonly serverManagement: TRouter;
|
|
600
602
|
readonly settingsStore: TRouter;
|
|
603
|
+
readonly siren: TRouter;
|
|
601
604
|
readonly smoke: TRouter;
|
|
602
605
|
readonly smtpProvider: TRouter;
|
|
603
606
|
readonly snapshot: TRouter;
|
|
@@ -641,8 +644,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
641
644
|
readonly zoneRules: TRouter;
|
|
642
645
|
readonly zones: TRouter;
|
|
643
646
|
}
|
|
644
|
-
/** Capability names whose mode is `singleton` (
|
|
645
|
-
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', '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'];
|
|
647
|
+
/** Capability names whose mode is `singleton` (170 caps). */
|
|
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'];
|
|
646
649
|
/** Union of singleton capability names (literal string union). */
|
|
647
650
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
648
651
|
/** Capability names whose mode is `collection` (40 caps). */
|
|
@@ -66,6 +66,7 @@ import { recordingSignalCapability } from '../capabilities/recording-signal.cap.
|
|
|
66
66
|
import { runningStateCapability } from '../capabilities/running-state.cap.js';
|
|
67
67
|
import { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
68
68
|
import { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
69
|
+
import { sirenCapability } from '../capabilities/siren.cap.js';
|
|
69
70
|
import { smokeCapability } from '../capabilities/smoke.cap.js';
|
|
70
71
|
import { streamCatalogCapability } from '../capabilities/stream-catalog.cap.js';
|
|
71
72
|
import { streamParamsCapability } from '../capabilities/stream-params.cap.js';
|
|
@@ -163,6 +164,7 @@ export interface DeviceLocalState {
|
|
|
163
164
|
runningState: InferRuntimeState<typeof runningStateCapability>;
|
|
164
165
|
sceneMonitor: InferRuntimeState<typeof sceneMonitorCapability>;
|
|
165
166
|
scriptRunner: InferRuntimeState<typeof scriptRunnerCapability>;
|
|
167
|
+
siren: InferRuntimeState<typeof sirenCapability>;
|
|
166
168
|
smoke: InferRuntimeState<typeof smokeCapability>;
|
|
167
169
|
streamCatalog: InferRuntimeState<typeof streamCatalogCapability>;
|
|
168
170
|
streamParams: InferRuntimeState<typeof streamParamsCapability>;
|
|
@@ -270,6 +272,7 @@ export interface CapNameToRuntimeStateMap {
|
|
|
270
272
|
'running-state': InferRuntimeState<typeof runningStateCapability>;
|
|
271
273
|
'scene-monitor': InferRuntimeState<typeof sceneMonitorCapability>;
|
|
272
274
|
'script-runner': InferRuntimeState<typeof scriptRunnerCapability>;
|
|
275
|
+
'siren': InferRuntimeState<typeof sirenCapability>;
|
|
273
276
|
'smoke': InferRuntimeState<typeof smokeCapability>;
|
|
274
277
|
'stream-catalog': InferRuntimeState<typeof streamCatalogCapability>;
|
|
275
278
|
'stream-params': InferRuntimeState<typeof streamParamsCapability>;
|
|
@@ -88,6 +88,7 @@ import type { recordingSignalCapability } from '../capabilities/recording-signal
|
|
|
88
88
|
import type { runningStateCapability } from '../capabilities/running-state.cap.js';
|
|
89
89
|
import type { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
90
90
|
import type { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
91
|
+
import type { sirenCapability } from '../capabilities/siren.cap.js';
|
|
91
92
|
import type { smokeCapability } from '../capabilities/smoke.cap.js';
|
|
92
93
|
import type { snapshotCapability } from '../capabilities/snapshot.cap.js';
|
|
93
94
|
import type { streamCatalogCapability } from '../capabilities/stream-catalog.cap.js';
|
|
@@ -202,6 +203,7 @@ export interface DeviceProxyState {
|
|
|
202
203
|
readonly runningState: SliceHandle<InferRuntimeState<typeof runningStateCapability>>;
|
|
203
204
|
readonly sceneMonitor: SliceHandle<InferRuntimeState<typeof sceneMonitorCapability>>;
|
|
204
205
|
readonly scriptRunner: SliceHandle<InferRuntimeState<typeof scriptRunnerCapability>>;
|
|
206
|
+
readonly siren: SliceHandle<InferRuntimeState<typeof sirenCapability>>;
|
|
205
207
|
readonly smoke: SliceHandle<InferRuntimeState<typeof smokeCapability>>;
|
|
206
208
|
readonly streamCatalog: SliceHandle<InferRuntimeState<typeof streamCatalogCapability>>;
|
|
207
209
|
readonly streamParams: SliceHandle<InferRuntimeState<typeof streamParamsCapability>>;
|
|
@@ -325,6 +327,7 @@ export interface DeviceProxy {
|
|
|
325
327
|
readonly runningState?: InferDeviceProxyCap<typeof runningStateCapability>;
|
|
326
328
|
readonly sceneMonitor?: InferDeviceProxyCap<typeof sceneMonitorCapability>;
|
|
327
329
|
readonly scriptRunner?: InferDeviceProxyCap<typeof scriptRunnerCapability>;
|
|
330
|
+
readonly siren?: InferDeviceProxyCap<typeof sirenCapability>;
|
|
328
331
|
readonly smoke?: InferDeviceProxyCap<typeof smokeCapability>;
|
|
329
332
|
readonly snapshot?: InferDeviceProxyCap<typeof snapshotCapability>;
|
|
330
333
|
readonly streamCatalog?: InferDeviceProxyCap<typeof streamCatalogCapability>;
|
|
@@ -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: 108 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
|
-
* 46 caps with series (124 series),
|
|
4
|
+
* 46 caps with series (124 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>>>>;
|
|
@@ -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: 1507 method paths across 210 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -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: 629 methods carry a device reference, of which
|
|
10
10
|
* 198 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
@@ -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`. 86 caps: 43 `restored`, 43 `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.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { CommandOriginRequestOptions } from '../cap-call-context.js';
|
|
1
2
|
import type { AddonApi } from '../generated/addon-api.js';
|
|
2
3
|
/** tRPC client procedure bundle (`query` / `mutate` / `subscribe`). */
|
|
3
4
|
export interface TrpcProcedureLeaf {
|
|
4
|
-
readonly query?: (input?: unknown) => unknown;
|
|
5
|
-
readonly mutate?: (input?: unknown) => unknown;
|
|
5
|
+
readonly query?: (input?: unknown, options?: CommandOriginRequestOptions) => unknown;
|
|
6
|
+
readonly mutate?: (input?: unknown, options?: CommandOriginRequestOptions) => unknown;
|
|
6
7
|
readonly subscribe?: (input?: unknown, push?: unknown) => unknown;
|
|
7
8
|
}
|
|
8
9
|
export declare function isTrpcProcedureLeaf(value: unknown): value is TrpcProcedureLeaf;
|
|
@@ -14,4 +15,4 @@ export type TrpcDispatchKind = 'query' | 'mutation' | 'subscription';
|
|
|
14
15
|
* `unknown` (the client is a structural bag), so the assertion is the one
|
|
15
16
|
* boundary between that bag and the typed proxy.
|
|
16
17
|
*/
|
|
17
|
-
export declare function invokeTrpcLeaf<Result>(api: AddonApi, capProp: string, method: string, kind: TrpcDispatchKind, input?: unknown, push?: unknown): Result;
|
|
18
|
+
export declare function invokeTrpcLeaf<Result>(api: AddonApi, capProp: string, method: string, kind: TrpcDispatchKind, input?: unknown, push?: unknown, options?: CommandOriginRequestOptions): Result;
|