@camstack/types 1.1.11 → 1.1.13
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/addons.cap.d.ts +3 -3
- package/dist/capabilities/climate-control.cap.d.ts +9 -9
- package/dist/capabilities/control.cap.d.ts +4 -4
- package/dist/capabilities/device-manager.cap.d.ts +70 -0
- package/dist/capabilities/device-provider.cap.d.ts +27 -3
- package/dist/capabilities/local-network.cap.d.ts +1 -1
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/mesh-network.cap.d.ts +3 -3
- package/dist/capabilities/network-access.cap.d.ts +7 -7
- package/dist/capabilities/stream-broker.cap.d.ts +5 -5
- package/dist/capabilities/toast.cap.d.ts +2 -2
- package/dist/capabilities/webrtc-session.cap.d.ts +2 -2
- package/dist/device/base-device-provider.d.ts +17 -5
- package/dist/device/device-type.d.ts +6 -0
- package/dist/generated/addon-api.d.ts +220 -2
- package/dist/generated/cap-status-types.d.ts +64 -64
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.js +131 -5
- package/dist/index.mjs +131 -5
- package/dist/interfaces/addon.d.ts +16 -0
- package/dist/interfaces/capability.d.ts +11 -11
- package/dist/lifecycle/job.d.ts +3 -3
- package/dist/{sleep-CKc4LLbD.js → sleep-BQzZ7joF.js} +6 -0
- package/dist/{sleep-B3AOslwX.mjs → sleep-C2M2zF7x.mjs} +6 -0
- package/package.json +1 -1
|
@@ -1383,7 +1383,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1383
1383
|
nodeId?: string | undefined;
|
|
1384
1384
|
} | undefined;
|
|
1385
1385
|
output: {
|
|
1386
|
-
kind: "system" | "
|
|
1386
|
+
kind: "system" | "framework-update" | "manual" | "framework-bulk-update";
|
|
1387
1387
|
requestedAt: number;
|
|
1388
1388
|
packageName?: string | undefined;
|
|
1389
1389
|
fromVersion?: string | undefined;
|
|
@@ -4953,6 +4953,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
4953
4953
|
};
|
|
4954
4954
|
meta: object;
|
|
4955
4955
|
}>;
|
|
4956
|
+
adoptionListCandidateFilters: import("@trpc/server").TRPCQueryProcedure<{
|
|
4957
|
+
input: {
|
|
4958
|
+
[x: string]: unknown;
|
|
4959
|
+
addonId: string;
|
|
4960
|
+
integrationId: string;
|
|
4961
|
+
};
|
|
4962
|
+
output: {
|
|
4963
|
+
filters: {
|
|
4964
|
+
id: string;
|
|
4965
|
+
label: string;
|
|
4966
|
+
isDefault?: boolean | undefined;
|
|
4967
|
+
}[];
|
|
4968
|
+
};
|
|
4969
|
+
meta: object;
|
|
4970
|
+
}>;
|
|
4956
4971
|
adoptionListCandidates: import("@trpc/server").TRPCQueryProcedure<{
|
|
4957
4972
|
input: {
|
|
4958
4973
|
[x: string]: unknown;
|
|
@@ -5036,6 +5051,83 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5036
5051
|
};
|
|
5037
5052
|
meta: object;
|
|
5038
5053
|
}>;
|
|
5054
|
+
discoveryProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
5055
|
+
input: {
|
|
5056
|
+
[x: string]: unknown;
|
|
5057
|
+
};
|
|
5058
|
+
output: {
|
|
5059
|
+
providers: readonly {
|
|
5060
|
+
addonId: string;
|
|
5061
|
+
label: string;
|
|
5062
|
+
}[];
|
|
5063
|
+
};
|
|
5064
|
+
meta: object;
|
|
5065
|
+
}>;
|
|
5066
|
+
discoverAllProviders: import("@trpc/server").TRPCMutationProcedure<{
|
|
5067
|
+
input: {
|
|
5068
|
+
[x: string]: unknown;
|
|
5069
|
+
};
|
|
5070
|
+
output: {
|
|
5071
|
+
groups: readonly {
|
|
5072
|
+
addonId: string;
|
|
5073
|
+
label: string;
|
|
5074
|
+
candidates: readonly {
|
|
5075
|
+
stableId: string;
|
|
5076
|
+
type: import("@camstack/types").DeviceType;
|
|
5077
|
+
suggestedName: string;
|
|
5078
|
+
prefilledConfig: Record<string, unknown>;
|
|
5079
|
+
sourceInfo?: {
|
|
5080
|
+
id: string;
|
|
5081
|
+
system: string;
|
|
5082
|
+
uniqueId?: string | undefined;
|
|
5083
|
+
raw?: Record<string, unknown> | undefined;
|
|
5084
|
+
} | undefined;
|
|
5085
|
+
}[];
|
|
5086
|
+
error: string | null;
|
|
5087
|
+
}[];
|
|
5088
|
+
};
|
|
5089
|
+
meta: object;
|
|
5090
|
+
}>;
|
|
5091
|
+
discoverProvider: import("@trpc/server").TRPCMutationProcedure<{
|
|
5092
|
+
input: {
|
|
5093
|
+
[x: string]: unknown;
|
|
5094
|
+
addonId: string;
|
|
5095
|
+
params?: Record<string, unknown> | undefined;
|
|
5096
|
+
};
|
|
5097
|
+
output: {
|
|
5098
|
+
candidates: readonly {
|
|
5099
|
+
stableId: string;
|
|
5100
|
+
type: import("@camstack/types").DeviceType;
|
|
5101
|
+
suggestedName: string;
|
|
5102
|
+
prefilledConfig: Record<string, unknown>;
|
|
5103
|
+
sourceInfo?: {
|
|
5104
|
+
id: string;
|
|
5105
|
+
system: string;
|
|
5106
|
+
uniqueId?: string | undefined;
|
|
5107
|
+
raw?: Record<string, unknown> | undefined;
|
|
5108
|
+
} | undefined;
|
|
5109
|
+
}[];
|
|
5110
|
+
};
|
|
5111
|
+
meta: object;
|
|
5112
|
+
}>;
|
|
5113
|
+
providerCreationType: import("@trpc/server").TRPCQueryProcedure<{
|
|
5114
|
+
input: {
|
|
5115
|
+
[x: string]: unknown;
|
|
5116
|
+
addonId: string;
|
|
5117
|
+
};
|
|
5118
|
+
output: {
|
|
5119
|
+
deviceType: import("@camstack/types").DeviceType | null;
|
|
5120
|
+
};
|
|
5121
|
+
meta: object;
|
|
5122
|
+
}>;
|
|
5123
|
+
providerDiscoveryParamsSchema: import("@trpc/server").TRPCQueryProcedure<{
|
|
5124
|
+
input: {
|
|
5125
|
+
[x: string]: unknown;
|
|
5126
|
+
addonId: string;
|
|
5127
|
+
};
|
|
5128
|
+
output: unknown;
|
|
5129
|
+
meta: object;
|
|
5130
|
+
}>;
|
|
5039
5131
|
testField: import("@trpc/server").TRPCMutationProcedure<{
|
|
5040
5132
|
input: {
|
|
5041
5133
|
[x: string]: unknown;
|
|
@@ -5198,6 +5290,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5198
5290
|
discoverDevices: import("@trpc/server").TRPCMutationProcedure<{
|
|
5199
5291
|
input: {
|
|
5200
5292
|
[x: string]: unknown;
|
|
5293
|
+
params?: Record<string, unknown> | undefined;
|
|
5201
5294
|
};
|
|
5202
5295
|
output: {
|
|
5203
5296
|
stableId: string;
|
|
@@ -5213,6 +5306,22 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5213
5306
|
}[];
|
|
5214
5307
|
meta: object;
|
|
5215
5308
|
}>;
|
|
5309
|
+
getDiscoveryParamsSchema: import("@trpc/server").TRPCQueryProcedure<{
|
|
5310
|
+
input: {
|
|
5311
|
+
[x: string]: unknown;
|
|
5312
|
+
};
|
|
5313
|
+
output: unknown;
|
|
5314
|
+
meta: object;
|
|
5315
|
+
}>;
|
|
5316
|
+
getManualCreationType: import("@trpc/server").TRPCQueryProcedure<{
|
|
5317
|
+
input: {
|
|
5318
|
+
[x: string]: unknown;
|
|
5319
|
+
};
|
|
5320
|
+
output: {
|
|
5321
|
+
deviceType: import("@camstack/types").DeviceType | null;
|
|
5322
|
+
};
|
|
5323
|
+
meta: object;
|
|
5324
|
+
}>;
|
|
5216
5325
|
adoptDiscoveredDevice: import("@trpc/server").TRPCMutationProcedure<{
|
|
5217
5326
|
input: {
|
|
5218
5327
|
[x: string]: unknown;
|
|
@@ -15111,7 +15220,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15111
15220
|
nodeId?: string | undefined;
|
|
15112
15221
|
} | undefined;
|
|
15113
15222
|
output: {
|
|
15114
|
-
kind: "system" | "
|
|
15223
|
+
kind: "system" | "framework-update" | "manual" | "framework-bulk-update";
|
|
15115
15224
|
requestedAt: number;
|
|
15116
15225
|
packageName?: string | undefined;
|
|
15117
15226
|
fromVersion?: string | undefined;
|
|
@@ -18681,6 +18790,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18681
18790
|
};
|
|
18682
18791
|
meta: object;
|
|
18683
18792
|
}>;
|
|
18793
|
+
adoptionListCandidateFilters: import("@trpc/server").TRPCQueryProcedure<{
|
|
18794
|
+
input: {
|
|
18795
|
+
[x: string]: unknown;
|
|
18796
|
+
addonId: string;
|
|
18797
|
+
integrationId: string;
|
|
18798
|
+
};
|
|
18799
|
+
output: {
|
|
18800
|
+
filters: {
|
|
18801
|
+
id: string;
|
|
18802
|
+
label: string;
|
|
18803
|
+
isDefault?: boolean | undefined;
|
|
18804
|
+
}[];
|
|
18805
|
+
};
|
|
18806
|
+
meta: object;
|
|
18807
|
+
}>;
|
|
18684
18808
|
adoptionListCandidates: import("@trpc/server").TRPCQueryProcedure<{
|
|
18685
18809
|
input: {
|
|
18686
18810
|
[x: string]: unknown;
|
|
@@ -18764,6 +18888,83 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18764
18888
|
};
|
|
18765
18889
|
meta: object;
|
|
18766
18890
|
}>;
|
|
18891
|
+
discoveryProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
18892
|
+
input: {
|
|
18893
|
+
[x: string]: unknown;
|
|
18894
|
+
};
|
|
18895
|
+
output: {
|
|
18896
|
+
providers: readonly {
|
|
18897
|
+
addonId: string;
|
|
18898
|
+
label: string;
|
|
18899
|
+
}[];
|
|
18900
|
+
};
|
|
18901
|
+
meta: object;
|
|
18902
|
+
}>;
|
|
18903
|
+
discoverAllProviders: import("@trpc/server").TRPCMutationProcedure<{
|
|
18904
|
+
input: {
|
|
18905
|
+
[x: string]: unknown;
|
|
18906
|
+
};
|
|
18907
|
+
output: {
|
|
18908
|
+
groups: readonly {
|
|
18909
|
+
addonId: string;
|
|
18910
|
+
label: string;
|
|
18911
|
+
candidates: readonly {
|
|
18912
|
+
stableId: string;
|
|
18913
|
+
type: import("@camstack/types").DeviceType;
|
|
18914
|
+
suggestedName: string;
|
|
18915
|
+
prefilledConfig: Record<string, unknown>;
|
|
18916
|
+
sourceInfo?: {
|
|
18917
|
+
id: string;
|
|
18918
|
+
system: string;
|
|
18919
|
+
uniqueId?: string | undefined;
|
|
18920
|
+
raw?: Record<string, unknown> | undefined;
|
|
18921
|
+
} | undefined;
|
|
18922
|
+
}[];
|
|
18923
|
+
error: string | null;
|
|
18924
|
+
}[];
|
|
18925
|
+
};
|
|
18926
|
+
meta: object;
|
|
18927
|
+
}>;
|
|
18928
|
+
discoverProvider: import("@trpc/server").TRPCMutationProcedure<{
|
|
18929
|
+
input: {
|
|
18930
|
+
[x: string]: unknown;
|
|
18931
|
+
addonId: string;
|
|
18932
|
+
params?: Record<string, unknown> | undefined;
|
|
18933
|
+
};
|
|
18934
|
+
output: {
|
|
18935
|
+
candidates: readonly {
|
|
18936
|
+
stableId: string;
|
|
18937
|
+
type: import("@camstack/types").DeviceType;
|
|
18938
|
+
suggestedName: string;
|
|
18939
|
+
prefilledConfig: Record<string, unknown>;
|
|
18940
|
+
sourceInfo?: {
|
|
18941
|
+
id: string;
|
|
18942
|
+
system: string;
|
|
18943
|
+
uniqueId?: string | undefined;
|
|
18944
|
+
raw?: Record<string, unknown> | undefined;
|
|
18945
|
+
} | undefined;
|
|
18946
|
+
}[];
|
|
18947
|
+
};
|
|
18948
|
+
meta: object;
|
|
18949
|
+
}>;
|
|
18950
|
+
providerCreationType: import("@trpc/server").TRPCQueryProcedure<{
|
|
18951
|
+
input: {
|
|
18952
|
+
[x: string]: unknown;
|
|
18953
|
+
addonId: string;
|
|
18954
|
+
};
|
|
18955
|
+
output: {
|
|
18956
|
+
deviceType: import("@camstack/types").DeviceType | null;
|
|
18957
|
+
};
|
|
18958
|
+
meta: object;
|
|
18959
|
+
}>;
|
|
18960
|
+
providerDiscoveryParamsSchema: import("@trpc/server").TRPCQueryProcedure<{
|
|
18961
|
+
input: {
|
|
18962
|
+
[x: string]: unknown;
|
|
18963
|
+
addonId: string;
|
|
18964
|
+
};
|
|
18965
|
+
output: unknown;
|
|
18966
|
+
meta: object;
|
|
18967
|
+
}>;
|
|
18767
18968
|
testField: import("@trpc/server").TRPCMutationProcedure<{
|
|
18768
18969
|
input: {
|
|
18769
18970
|
[x: string]: unknown;
|
|
@@ -18926,6 +19127,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18926
19127
|
discoverDevices: import("@trpc/server").TRPCMutationProcedure<{
|
|
18927
19128
|
input: {
|
|
18928
19129
|
[x: string]: unknown;
|
|
19130
|
+
params?: Record<string, unknown> | undefined;
|
|
18929
19131
|
};
|
|
18930
19132
|
output: {
|
|
18931
19133
|
stableId: string;
|
|
@@ -18941,6 +19143,22 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18941
19143
|
}[];
|
|
18942
19144
|
meta: object;
|
|
18943
19145
|
}>;
|
|
19146
|
+
getDiscoveryParamsSchema: import("@trpc/server").TRPCQueryProcedure<{
|
|
19147
|
+
input: {
|
|
19148
|
+
[x: string]: unknown;
|
|
19149
|
+
};
|
|
19150
|
+
output: unknown;
|
|
19151
|
+
meta: object;
|
|
19152
|
+
}>;
|
|
19153
|
+
getManualCreationType: import("@trpc/server").TRPCQueryProcedure<{
|
|
19154
|
+
input: {
|
|
19155
|
+
[x: string]: unknown;
|
|
19156
|
+
};
|
|
19157
|
+
output: {
|
|
19158
|
+
deviceType: import("@camstack/types").DeviceType | null;
|
|
19159
|
+
};
|
|
19160
|
+
meta: object;
|
|
19161
|
+
}>;
|
|
18944
19162
|
adoptDiscoveredDevice: import("@trpc/server").TRPCMutationProcedure<{
|
|
18945
19163
|
input: {
|
|
18946
19164
|
[x: string]: unknown;
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import { AccessoriesStatusSchema } from '../capabilities/accessories.cap.js';
|
|
3
|
-
import { AirQualitySensorStatusSchema } from '../capabilities/air-quality-sensor.cap.js';
|
|
4
|
-
import { AlarmPanelStatusSchema } from '../capabilities/alarm-panel.cap.js';
|
|
5
|
-
import { AmbientLightSensorStatusSchema } from '../capabilities/ambient-light-sensor.cap.js';
|
|
6
|
-
import { AutomationControlStatusSchema } from '../capabilities/automation-control.cap.js';
|
|
7
|
-
import { BatteryStatusSchema } from '../capabilities/battery.cap.js';
|
|
8
|
-
import { BinaryStatusSchema } from '../capabilities/binary.cap.js';
|
|
9
|
-
import { BrightnessStatusSchema } from '../capabilities/brightness.cap.js';
|
|
10
|
-
import { brokerCapability } from '../capabilities/broker.cap.js';
|
|
11
|
-
import { CameraCredentialsStatusSchema } from '../capabilities/camera-credentials.cap.js';
|
|
12
|
-
import { CarbonMonoxideStatusSchema } from '../capabilities/carbon-monoxide.cap.js';
|
|
13
|
-
import { ClimateControlStatusSchema } from '../capabilities/climate-control.cap.js';
|
|
14
|
-
import { ColorStatusSchema } from '../capabilities/color.cap.js';
|
|
15
|
-
import { ConnectivityStatusSchema } from '../capabilities/connectivity.cap.js';
|
|
16
|
-
import { ConsumablesStatusSchema } from '../capabilities/consumables.cap.js';
|
|
17
|
-
import { ContactStatusSchema } from '../capabilities/contact.cap.js';
|
|
18
|
-
import { ControlStatusSchema } from '../capabilities/control.cap.js';
|
|
19
|
-
import { CoverStatusSchema } from '../capabilities/cover.cap.js';
|
|
20
|
-
import { deviceAdoptionCapability } from '../capabilities/device-adoption.cap.js';
|
|
21
|
-
import { DeviceDiscoveryStatusSchema } from '../capabilities/device-discovery.cap.js';
|
|
22
|
-
import { DeviceExportStatusSchema } from '../capabilities/device-export.cap.js';
|
|
23
|
-
import { deviceStatusCapability } from '../capabilities/device-status.cap.js';
|
|
24
|
-
import { DoorbellStatusSchema } from '../capabilities/doorbell.cap.js';
|
|
25
|
-
import { EnumSensorStatusSchema } from '../capabilities/enum-sensor.cap.js';
|
|
26
|
-
import { EventEmitterStatusSchema } from '../capabilities/event-emitter.cap.js';
|
|
27
|
-
import { FanControlStatusSchema } from '../capabilities/fan-control.cap.js';
|
|
28
|
-
import { FeatureProbeStatusSchema } from '../capabilities/feature-probe.cap.js';
|
|
29
|
-
import { FloodStatusSchema } from '../capabilities/flood.cap.js';
|
|
30
|
-
import { GasStatusSchema } from '../capabilities/gas.cap.js';
|
|
31
|
-
import { HumidifierStatusSchema } from '../capabilities/humidifier.cap.js';
|
|
32
|
-
import { HumiditySensorStatusSchema } from '../capabilities/humidity-sensor.cap.js';
|
|
33
|
-
import { ImageStatusSchema } from '../capabilities/image.cap.js';
|
|
34
|
-
import { IntercomStatusSchema } from '../capabilities/intercom.cap.js';
|
|
35
|
-
import { LawnMowerControlStatusSchema } from '../capabilities/lawn-mower-control.cap.js';
|
|
36
|
-
import { LockControlStatusSchema } from '../capabilities/lock-control.cap.js';
|
|
37
|
-
import { MediaPlayerStatusSchema } from '../capabilities/media-player.cap.js';
|
|
38
|
-
import { MotionStatusSchema } from '../capabilities/motion.cap.js';
|
|
39
|
-
import { MotionTriggerStatusSchema } from '../capabilities/motion-trigger.cap.js';
|
|
40
|
-
import { motionZonesCapability } from '../capabilities/motion-zones.cap.js';
|
|
41
|
-
import { MqttBrokerStatusSchema } from '../capabilities/mqtt-broker.cap.js';
|
|
42
|
-
import { NativeObjectDetectionStatusSchema } from '../capabilities/native-object-detection.cap.js';
|
|
43
|
-
import { NotifierStatusSchema } from '../capabilities/notifier.cap.js';
|
|
44
|
-
import { NumericSensorStatusSchema } from '../capabilities/numeric-sensor.cap.js';
|
|
45
|
-
import { OsdStatusSchema } from '../capabilities/osd.cap.js';
|
|
46
|
-
import { PowerMeterStatusSchema } from '../capabilities/power-meter.cap.js';
|
|
47
|
-
import { PresenceStatusSchema } from '../capabilities/presence.cap.js';
|
|
48
|
-
import { PressureSensorStatusSchema } from '../capabilities/pressure-sensor.cap.js';
|
|
49
|
-
import { PrivacyMaskStatusSchema } from '../capabilities/privacy-mask.cap.js';
|
|
50
|
-
import { PtzStatusSchema } from '../capabilities/ptz.cap.js';
|
|
51
|
-
import { PtzAutotrackStatusSchema } from '../capabilities/ptz-autotrack.cap.js';
|
|
52
|
-
import { RecordingStatusSchema } from '../capabilities/recording.cap.js';
|
|
53
|
-
import { ScriptRunnerStatusSchema } from '../capabilities/script-runner.cap.js';
|
|
54
|
-
import { SmokeStatusSchema } from '../capabilities/smoke.cap.js';
|
|
55
|
-
import { SnapshotStatusSchema } from '../capabilities/snapshot.cap.js';
|
|
56
|
-
import { StreamParamsStatusSchema } from '../capabilities/stream-params.cap.js';
|
|
57
|
-
import { SwitchStatusSchema } from '../capabilities/switch.cap.js';
|
|
58
|
-
import { TamperStatusSchema } from '../capabilities/tamper.cap.js';
|
|
59
|
-
import { TemperatureSensorStatusSchema } from '../capabilities/temperature-sensor.cap.js';
|
|
60
|
-
import { UpdateStatusSchema } from '../capabilities/update.cap.js';
|
|
61
|
-
import { VacuumControlStatusSchema } from '../capabilities/vacuum-control.cap.js';
|
|
62
|
-
import { ValveStatusSchema } from '../capabilities/valve.cap.js';
|
|
63
|
-
import { VibrationStatusSchema } from '../capabilities/vibration.cap.js';
|
|
64
|
-
import { WaterHeaterStatusSchema } from '../capabilities/water-heater.cap.js';
|
|
65
|
-
import { WeatherStatusSchema } from '../capabilities/weather.cap.js';
|
|
2
|
+
import type { AccessoriesStatusSchema } from '../capabilities/accessories.cap.js';
|
|
3
|
+
import type { AirQualitySensorStatusSchema } from '../capabilities/air-quality-sensor.cap.js';
|
|
4
|
+
import type { AlarmPanelStatusSchema } from '../capabilities/alarm-panel.cap.js';
|
|
5
|
+
import type { AmbientLightSensorStatusSchema } from '../capabilities/ambient-light-sensor.cap.js';
|
|
6
|
+
import type { AutomationControlStatusSchema } from '../capabilities/automation-control.cap.js';
|
|
7
|
+
import type { BatteryStatusSchema } from '../capabilities/battery.cap.js';
|
|
8
|
+
import type { BinaryStatusSchema } from '../capabilities/binary.cap.js';
|
|
9
|
+
import type { BrightnessStatusSchema } from '../capabilities/brightness.cap.js';
|
|
10
|
+
import type { brokerCapability } from '../capabilities/broker.cap.js';
|
|
11
|
+
import type { CameraCredentialsStatusSchema } from '../capabilities/camera-credentials.cap.js';
|
|
12
|
+
import type { CarbonMonoxideStatusSchema } from '../capabilities/carbon-monoxide.cap.js';
|
|
13
|
+
import type { ClimateControlStatusSchema } from '../capabilities/climate-control.cap.js';
|
|
14
|
+
import type { ColorStatusSchema } from '../capabilities/color.cap.js';
|
|
15
|
+
import type { ConnectivityStatusSchema } from '../capabilities/connectivity.cap.js';
|
|
16
|
+
import type { ConsumablesStatusSchema } from '../capabilities/consumables.cap.js';
|
|
17
|
+
import type { ContactStatusSchema } from '../capabilities/contact.cap.js';
|
|
18
|
+
import type { ControlStatusSchema } from '../capabilities/control.cap.js';
|
|
19
|
+
import type { CoverStatusSchema } from '../capabilities/cover.cap.js';
|
|
20
|
+
import type { deviceAdoptionCapability } from '../capabilities/device-adoption.cap.js';
|
|
21
|
+
import type { DeviceDiscoveryStatusSchema } from '../capabilities/device-discovery.cap.js';
|
|
22
|
+
import type { DeviceExportStatusSchema } from '../capabilities/device-export.cap.js';
|
|
23
|
+
import type { deviceStatusCapability } from '../capabilities/device-status.cap.js';
|
|
24
|
+
import type { DoorbellStatusSchema } from '../capabilities/doorbell.cap.js';
|
|
25
|
+
import type { EnumSensorStatusSchema } from '../capabilities/enum-sensor.cap.js';
|
|
26
|
+
import type { EventEmitterStatusSchema } from '../capabilities/event-emitter.cap.js';
|
|
27
|
+
import type { FanControlStatusSchema } from '../capabilities/fan-control.cap.js';
|
|
28
|
+
import type { FeatureProbeStatusSchema } from '../capabilities/feature-probe.cap.js';
|
|
29
|
+
import type { FloodStatusSchema } from '../capabilities/flood.cap.js';
|
|
30
|
+
import type { GasStatusSchema } from '../capabilities/gas.cap.js';
|
|
31
|
+
import type { HumidifierStatusSchema } from '../capabilities/humidifier.cap.js';
|
|
32
|
+
import type { HumiditySensorStatusSchema } from '../capabilities/humidity-sensor.cap.js';
|
|
33
|
+
import type { ImageStatusSchema } from '../capabilities/image.cap.js';
|
|
34
|
+
import type { IntercomStatusSchema } from '../capabilities/intercom.cap.js';
|
|
35
|
+
import type { LawnMowerControlStatusSchema } from '../capabilities/lawn-mower-control.cap.js';
|
|
36
|
+
import type { LockControlStatusSchema } from '../capabilities/lock-control.cap.js';
|
|
37
|
+
import type { MediaPlayerStatusSchema } from '../capabilities/media-player.cap.js';
|
|
38
|
+
import type { MotionStatusSchema } from '../capabilities/motion.cap.js';
|
|
39
|
+
import type { MotionTriggerStatusSchema } from '../capabilities/motion-trigger.cap.js';
|
|
40
|
+
import type { motionZonesCapability } from '../capabilities/motion-zones.cap.js';
|
|
41
|
+
import type { MqttBrokerStatusSchema } from '../capabilities/mqtt-broker.cap.js';
|
|
42
|
+
import type { NativeObjectDetectionStatusSchema } from '../capabilities/native-object-detection.cap.js';
|
|
43
|
+
import type { NotifierStatusSchema } from '../capabilities/notifier.cap.js';
|
|
44
|
+
import type { NumericSensorStatusSchema } from '../capabilities/numeric-sensor.cap.js';
|
|
45
|
+
import type { OsdStatusSchema } from '../capabilities/osd.cap.js';
|
|
46
|
+
import type { PowerMeterStatusSchema } from '../capabilities/power-meter.cap.js';
|
|
47
|
+
import type { PresenceStatusSchema } from '../capabilities/presence.cap.js';
|
|
48
|
+
import type { PressureSensorStatusSchema } from '../capabilities/pressure-sensor.cap.js';
|
|
49
|
+
import type { PrivacyMaskStatusSchema } from '../capabilities/privacy-mask.cap.js';
|
|
50
|
+
import type { PtzStatusSchema } from '../capabilities/ptz.cap.js';
|
|
51
|
+
import type { PtzAutotrackStatusSchema } from '../capabilities/ptz-autotrack.cap.js';
|
|
52
|
+
import type { RecordingStatusSchema } from '../capabilities/recording.cap.js';
|
|
53
|
+
import type { ScriptRunnerStatusSchema } from '../capabilities/script-runner.cap.js';
|
|
54
|
+
import type { SmokeStatusSchema } from '../capabilities/smoke.cap.js';
|
|
55
|
+
import type { SnapshotStatusSchema } from '../capabilities/snapshot.cap.js';
|
|
56
|
+
import type { StreamParamsStatusSchema } from '../capabilities/stream-params.cap.js';
|
|
57
|
+
import type { SwitchStatusSchema } from '../capabilities/switch.cap.js';
|
|
58
|
+
import type { TamperStatusSchema } from '../capabilities/tamper.cap.js';
|
|
59
|
+
import type { TemperatureSensorStatusSchema } from '../capabilities/temperature-sensor.cap.js';
|
|
60
|
+
import type { UpdateStatusSchema } from '../capabilities/update.cap.js';
|
|
61
|
+
import type { VacuumControlStatusSchema } from '../capabilities/vacuum-control.cap.js';
|
|
62
|
+
import type { ValveStatusSchema } from '../capabilities/valve.cap.js';
|
|
63
|
+
import type { VibrationStatusSchema } from '../capabilities/vibration.cap.js';
|
|
64
|
+
import type { WaterHeaterStatusSchema } from '../capabilities/water-heater.cap.js';
|
|
65
|
+
import type { WeatherStatusSchema } from '../capabilities/weather.cap.js';
|
|
66
66
|
/**
|
|
67
67
|
* Lookup from cap name (literal) → the TypeScript type of that
|
|
68
68
|
* capability's `status.schema`. Populated at codegen time from every
|
|
@@ -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: 718 method paths across 110 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -58,8 +58,8 @@ export interface SystemProxy {
|
|
|
58
58
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'supportsCodec' | 'getInfo' | 'createSession' | 'destroySession' | 'pushPacket' | 'openStream' | 'pullFrames' | 'pullHandles' | 'getFrame' | 'getShmStats' | 'updateConfig' | 'getStats' | 'listActiveSessions' | 'reprobeHwaccel'>;
|
|
59
59
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
60
60
|
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
|
|
61
|
-
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'removeByIntegration' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionResync'>;
|
|
62
|
-
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'supportsDiscovery' | 'discoverDevices' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
|
61
|
+
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'removeByIntegration' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'providerCreationType' | 'providerDiscoveryParamsSchema'>;
|
|
62
|
+
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
|
63
63
|
readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots'>;
|
|
64
64
|
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'removeSample' | 'listRecentFaces' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
|
|
65
65
|
readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
|