@camstack/server 1.2.826 → 1.2.827
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 +8 -0
- package/dist/api/trpc/generated-cap-routers.js +257 -40
- package/dist/core/addon/addon-registry.service.js +3 -0
- package/package.json +41 -12
- package/system/dist/addon-runner.js +19 -2
- package/system/dist/addon-runner.mjs +19 -2
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-BBO2OtNH.mjs → agent-https-BSxTUzKT.mjs} +1 -1
- package/system/dist/{agent-https-B2nqARmj.js → agent-https-BlLVD9hG.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +3 -3
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-bindings-store.d.ts +7 -4
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +269 -25
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +269 -25
- package/system/dist/builtins/device-manager/device-meta-actions.d.ts +11 -1
- package/system/dist/builtins/device-manager/device-projection.d.ts +7 -0
- package/system/dist/builtins/device-manager/device-template/mirror-resolver.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-template/template-filters.d.ts +13 -0
- package/system/dist/builtins/device-manager/device-template/template-host.d.ts +11 -3
- package/system/dist/builtins/device-manager/device-template-actions.d.ts +1 -0
- package/system/dist/builtins/device-manager/feature-deriver.d.ts +61 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-DP4HbT3W.js → capture-engine-1A7HAX3x.js} +1 -1
- package/system/dist/{capture-engine-C-rHYVFq.mjs → capture-engine-B0yQx6hA.mjs} +1 -1
- package/system/dist/{composition-sources-CM9c_jAj.js → composition-sources-BzM19ASO.js} +1 -1
- package/system/dist/{composition-sources-CL9JFN4y.mjs → composition-sources-CyJ0d6Sc.mjs} +1 -1
- package/system/dist/{constants-DzGFnCKZ.mjs → constants-B_FLEjP_.mjs} +1 -1
- package/system/dist/{constants-jk7JccZ0.js → constants-DSO4ZEO3.js} +1 -1
- package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
- package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
- package/system/dist/{device-ca-DZ_OQiCc.mjs → device-ca-CveuNCHp.mjs} +1 -1
- package/system/dist/{device-ca-B7_R5WJh.js → device-ca-DLTDsonl.js} +1 -1
- package/system/dist/device-template-worker.js +61 -1
- package/system/dist/device-template-worker.mjs +61 -1
- package/system/dist/{dist-BgRMQHuL.mjs → dist-CIyyHwVx.mjs} +373 -175
- package/system/dist/{dist-BpTL3uNe.js → dist-DhbzVygm.js} +408 -174
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DIcBingB.mjs → hub-mdns-ciao-CQdCUsrI.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DPUaYAD3.js → hub-mdns-ciao-C_ITDs0-.js} +2 -2
- package/system/dist/index.js +26 -9
- package/system/dist/index.mjs +238 -221
- package/system/dist/kernel/moleculer/migration-api-facade.d.ts +3 -1
- package/system/dist/{legacy-integration-rows-door-DYNePgj4.js → legacy-integration-rows-door-D_tfRhsx.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-1GnkpMgH.mjs → legacy-integration-rows-door-tX6Qktxd.mjs} +1 -1
- package/system/dist/{rename-composition-block-Cp0_nwAI.mjs → rename-composition-block-COaMxshT.mjs} +1 -1
- package/system/dist/{rename-composition-block-Dn2z4fnA.js → rename-composition-block-DNhbAonr.js} +1 -1
- package/system/dist/{restore-archive-DasubaYH.mjs → restore-archive-BMqp_hMT.mjs} +94 -94
- package/system/dist/{restore-archive-BGa5pdp9.js → restore-archive-Dbzuv5hK.js} +1 -1
- package/system/dist/{template-protocol-CTP4eAo_.js → template-protocol-DRZ4cm95.js} +4 -1
- package/system/dist/{template-protocol-BmMM5VBf.mjs → template-protocol-D_6uVHKs.mjs} +4 -1
- package/system/dist/{wal-maintenance-GWFxnSnE.js → wal-maintenance-CWODOTsa.js} +0 -0
- package/system/dist/{wal-maintenance-BLWLlVfF.mjs → wal-maintenance-ITsLGvFA.mjs} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.827] - 2026-11-10
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The server exposes the OSD manager previewTemplate call and the thisDevice input of the device-template calls; getSourceCatalog is gone.
|
|
15
|
+
- Capability method signatures now mark optional cover, fan, climate, lock and media-player methods; bindings report implemented methods
|
|
16
|
+
- Device features are re-derived only from a provider whose node is online; an offline agent's cameras keep theirs
|
|
17
|
+
|
|
10
18
|
## [1.2.826] - 2026-11-10
|
|
11
19
|
|
|
12
20
|
### Changed
|
|
@@ -2010,8 +2010,15 @@ function createCapRouter_climateControl(getProvider, createRemoteProxy) {
|
|
|
2010
2010
|
.mutation(async ({ input, ctx }) => {
|
|
2011
2011
|
const { nodeId, ...methodInput } = input;
|
|
2012
2012
|
const p = resolveProvider('climate-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2013
|
+
const fn = p.setFanMode;
|
|
2014
|
+
if (typeof fn !== 'function') {
|
|
2015
|
+
throw new server_1.TRPCError({
|
|
2016
|
+
code: 'NOT_IMPLEMENTED',
|
|
2017
|
+
message: 'Capability "climate-control" provider does not implement "setFanMode"',
|
|
2018
|
+
});
|
|
2019
|
+
}
|
|
2013
2020
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2014
|
-
return
|
|
2021
|
+
return fn.call(p, methodInput);
|
|
2015
2022
|
}),
|
|
2016
2023
|
setPreset: trpc_middleware_js_1.protectedProcedure
|
|
2017
2024
|
.input(types_34.climateControlCapability.methods.setPreset.input.loose())
|
|
@@ -2019,8 +2026,15 @@ function createCapRouter_climateControl(getProvider, createRemoteProxy) {
|
|
|
2019
2026
|
.mutation(async ({ input, ctx }) => {
|
|
2020
2027
|
const { nodeId, ...methodInput } = input;
|
|
2021
2028
|
const p = resolveProvider('climate-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2029
|
+
const fn = p.setPreset;
|
|
2030
|
+
if (typeof fn !== 'function') {
|
|
2031
|
+
throw new server_1.TRPCError({
|
|
2032
|
+
code: 'NOT_IMPLEMENTED',
|
|
2033
|
+
message: 'Capability "climate-control" provider does not implement "setPreset"',
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2022
2036
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2023
|
-
return
|
|
2037
|
+
return fn.call(p, methodInput);
|
|
2024
2038
|
}),
|
|
2025
2039
|
setTarget: trpc_middleware_js_1.protectedProcedure
|
|
2026
2040
|
.input(types_34.climateControlCapability.methods.setTarget.input.loose())
|
|
@@ -2037,8 +2051,15 @@ function createCapRouter_climateControl(getProvider, createRemoteProxy) {
|
|
|
2037
2051
|
.mutation(async ({ input, ctx }) => {
|
|
2038
2052
|
const { nodeId, ...methodInput } = input;
|
|
2039
2053
|
const p = resolveProvider('climate-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2054
|
+
const fn = p.setTargetRange;
|
|
2055
|
+
if (typeof fn !== 'function') {
|
|
2056
|
+
throw new server_1.TRPCError({
|
|
2057
|
+
code: 'NOT_IMPLEMENTED',
|
|
2058
|
+
message: 'Capability "climate-control" provider does not implement "setTargetRange"',
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2040
2061
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2041
|
-
return
|
|
2062
|
+
return fn.call(p, methodInput);
|
|
2042
2063
|
}),
|
|
2043
2064
|
setTargetHumidity: trpc_middleware_js_1.protectedProcedure
|
|
2044
2065
|
.input(types_34.climateControlCapability.methods.setTargetHumidity.input.loose())
|
|
@@ -2046,8 +2067,15 @@ function createCapRouter_climateControl(getProvider, createRemoteProxy) {
|
|
|
2046
2067
|
.mutation(async ({ input, ctx }) => {
|
|
2047
2068
|
const { nodeId, ...methodInput } = input;
|
|
2048
2069
|
const p = resolveProvider('climate-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2070
|
+
const fn = p.setTargetHumidity;
|
|
2071
|
+
if (typeof fn !== 'function') {
|
|
2072
|
+
throw new server_1.TRPCError({
|
|
2073
|
+
code: 'NOT_IMPLEMENTED',
|
|
2074
|
+
message: 'Capability "climate-control" provider does not implement "setTargetHumidity"',
|
|
2075
|
+
});
|
|
2076
|
+
}
|
|
2049
2077
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2050
|
-
return
|
|
2078
|
+
return fn.call(p, methodInput);
|
|
2051
2079
|
}),
|
|
2052
2080
|
setSwingVertical: trpc_middleware_js_1.protectedProcedure
|
|
2053
2081
|
.input(types_34.climateControlCapability.methods.setSwingVertical.input.loose())
|
|
@@ -2055,8 +2083,15 @@ function createCapRouter_climateControl(getProvider, createRemoteProxy) {
|
|
|
2055
2083
|
.mutation(async ({ input, ctx }) => {
|
|
2056
2084
|
const { nodeId, ...methodInput } = input;
|
|
2057
2085
|
const p = resolveProvider('climate-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2086
|
+
const fn = p.setSwingVertical;
|
|
2087
|
+
if (typeof fn !== 'function') {
|
|
2088
|
+
throw new server_1.TRPCError({
|
|
2089
|
+
code: 'NOT_IMPLEMENTED',
|
|
2090
|
+
message: 'Capability "climate-control" provider does not implement "setSwingVertical"',
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2058
2093
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2059
|
-
return
|
|
2094
|
+
return fn.call(p, methodInput);
|
|
2060
2095
|
}),
|
|
2061
2096
|
setSwingHorizontal: trpc_middleware_js_1.protectedProcedure
|
|
2062
2097
|
.input(types_34.climateControlCapability.methods.setSwingHorizontal.input.loose())
|
|
@@ -2064,8 +2099,15 @@ function createCapRouter_climateControl(getProvider, createRemoteProxy) {
|
|
|
2064
2099
|
.mutation(async ({ input, ctx }) => {
|
|
2065
2100
|
const { nodeId, ...methodInput } = input;
|
|
2066
2101
|
const p = resolveProvider('climate-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2102
|
+
const fn = p.setSwingHorizontal;
|
|
2103
|
+
if (typeof fn !== 'function') {
|
|
2104
|
+
throw new server_1.TRPCError({
|
|
2105
|
+
code: 'NOT_IMPLEMENTED',
|
|
2106
|
+
message: 'Capability "climate-control" provider does not implement "setSwingHorizontal"',
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2067
2109
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2068
|
-
return
|
|
2110
|
+
return fn.call(p, methodInput);
|
|
2069
2111
|
}),
|
|
2070
2112
|
});
|
|
2071
2113
|
}
|
|
@@ -2452,8 +2494,15 @@ function createCapRouter_cover(getProvider, createRemoteProxy) {
|
|
|
2452
2494
|
.mutation(async ({ input, ctx }) => {
|
|
2453
2495
|
const { nodeId, ...methodInput } = input;
|
|
2454
2496
|
const p = resolveProvider('cover', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2497
|
+
const fn = p.stop;
|
|
2498
|
+
if (typeof fn !== 'function') {
|
|
2499
|
+
throw new server_1.TRPCError({
|
|
2500
|
+
code: 'NOT_IMPLEMENTED',
|
|
2501
|
+
message: 'Capability "cover" provider does not implement "stop"',
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2455
2504
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2456
|
-
return
|
|
2505
|
+
return fn.call(p, methodInput);
|
|
2457
2506
|
}),
|
|
2458
2507
|
setPosition: trpc_middleware_js_1.protectedProcedure
|
|
2459
2508
|
.input(types_40.coverCapability.methods.setPosition.input.loose())
|
|
@@ -2461,8 +2510,15 @@ function createCapRouter_cover(getProvider, createRemoteProxy) {
|
|
|
2461
2510
|
.mutation(async ({ input, ctx }) => {
|
|
2462
2511
|
const { nodeId, ...methodInput } = input;
|
|
2463
2512
|
const p = resolveProvider('cover', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2513
|
+
const fn = p.setPosition;
|
|
2514
|
+
if (typeof fn !== 'function') {
|
|
2515
|
+
throw new server_1.TRPCError({
|
|
2516
|
+
code: 'NOT_IMPLEMENTED',
|
|
2517
|
+
message: 'Capability "cover" provider does not implement "setPosition"',
|
|
2518
|
+
});
|
|
2519
|
+
}
|
|
2464
2520
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2465
|
-
return
|
|
2521
|
+
return fn.call(p, methodInput);
|
|
2466
2522
|
}),
|
|
2467
2523
|
setTiltPosition: trpc_middleware_js_1.protectedProcedure
|
|
2468
2524
|
.input(types_40.coverCapability.methods.setTiltPosition.input.loose())
|
|
@@ -2470,8 +2526,15 @@ function createCapRouter_cover(getProvider, createRemoteProxy) {
|
|
|
2470
2526
|
.mutation(async ({ input, ctx }) => {
|
|
2471
2527
|
const { nodeId, ...methodInput } = input;
|
|
2472
2528
|
const p = resolveProvider('cover', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
2529
|
+
const fn = p.setTiltPosition;
|
|
2530
|
+
if (typeof fn !== 'function') {
|
|
2531
|
+
throw new server_1.TRPCError({
|
|
2532
|
+
code: 'NOT_IMPLEMENTED',
|
|
2533
|
+
message: 'Capability "cover" provider does not implement "setTiltPosition"',
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2473
2536
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2474
|
-
return
|
|
2537
|
+
return fn.call(p, methodInput);
|
|
2475
2538
|
}),
|
|
2476
2539
|
});
|
|
2477
2540
|
}
|
|
@@ -5119,8 +5182,15 @@ function createCapRouter_fanControl(getProvider, createRemoteProxy) {
|
|
|
5119
5182
|
.mutation(async ({ input, ctx }) => {
|
|
5120
5183
|
const { nodeId, ...methodInput } = input;
|
|
5121
5184
|
const p = resolveProvider('fan-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5185
|
+
const fn = p.setPercentage;
|
|
5186
|
+
if (typeof fn !== 'function') {
|
|
5187
|
+
throw new server_1.TRPCError({
|
|
5188
|
+
code: 'NOT_IMPLEMENTED',
|
|
5189
|
+
message: 'Capability "fan-control" provider does not implement "setPercentage"',
|
|
5190
|
+
});
|
|
5191
|
+
}
|
|
5122
5192
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5123
|
-
return
|
|
5193
|
+
return fn.call(p, methodInput);
|
|
5124
5194
|
}),
|
|
5125
5195
|
setPreset: trpc_middleware_js_1.protectedProcedure
|
|
5126
5196
|
.input(types_66.fanControlCapability.methods.setPreset.input.loose())
|
|
@@ -5128,8 +5198,15 @@ function createCapRouter_fanControl(getProvider, createRemoteProxy) {
|
|
|
5128
5198
|
.mutation(async ({ input, ctx }) => {
|
|
5129
5199
|
const { nodeId, ...methodInput } = input;
|
|
5130
5200
|
const p = resolveProvider('fan-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5201
|
+
const fn = p.setPreset;
|
|
5202
|
+
if (typeof fn !== 'function') {
|
|
5203
|
+
throw new server_1.TRPCError({
|
|
5204
|
+
code: 'NOT_IMPLEMENTED',
|
|
5205
|
+
message: 'Capability "fan-control" provider does not implement "setPreset"',
|
|
5206
|
+
});
|
|
5207
|
+
}
|
|
5131
5208
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5132
|
-
return
|
|
5209
|
+
return fn.call(p, methodInput);
|
|
5133
5210
|
}),
|
|
5134
5211
|
setDirection: trpc_middleware_js_1.protectedProcedure
|
|
5135
5212
|
.input(types_66.fanControlCapability.methods.setDirection.input.loose())
|
|
@@ -5137,8 +5214,15 @@ function createCapRouter_fanControl(getProvider, createRemoteProxy) {
|
|
|
5137
5214
|
.mutation(async ({ input, ctx }) => {
|
|
5138
5215
|
const { nodeId, ...methodInput } = input;
|
|
5139
5216
|
const p = resolveProvider('fan-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5217
|
+
const fn = p.setDirection;
|
|
5218
|
+
if (typeof fn !== 'function') {
|
|
5219
|
+
throw new server_1.TRPCError({
|
|
5220
|
+
code: 'NOT_IMPLEMENTED',
|
|
5221
|
+
message: 'Capability "fan-control" provider does not implement "setDirection"',
|
|
5222
|
+
});
|
|
5223
|
+
}
|
|
5140
5224
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5141
|
-
return
|
|
5225
|
+
return fn.call(p, methodInput);
|
|
5142
5226
|
}),
|
|
5143
5227
|
setOscillating: trpc_middleware_js_1.protectedProcedure
|
|
5144
5228
|
.input(types_66.fanControlCapability.methods.setOscillating.input.loose())
|
|
@@ -5146,8 +5230,15 @@ function createCapRouter_fanControl(getProvider, createRemoteProxy) {
|
|
|
5146
5230
|
.mutation(async ({ input, ctx }) => {
|
|
5147
5231
|
const { nodeId, ...methodInput } = input;
|
|
5148
5232
|
const p = resolveProvider('fan-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5233
|
+
const fn = p.setOscillating;
|
|
5234
|
+
if (typeof fn !== 'function') {
|
|
5235
|
+
throw new server_1.TRPCError({
|
|
5236
|
+
code: 'NOT_IMPLEMENTED',
|
|
5237
|
+
message: 'Capability "fan-control" provider does not implement "setOscillating"',
|
|
5238
|
+
});
|
|
5239
|
+
}
|
|
5149
5240
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5150
|
-
return
|
|
5241
|
+
return fn.call(p, methodInput);
|
|
5151
5242
|
}),
|
|
5152
5243
|
});
|
|
5153
5244
|
}
|
|
@@ -6537,8 +6628,15 @@ function createCapRouter_lockControl(getProvider, createRemoteProxy) {
|
|
|
6537
6628
|
.mutation(async ({ input, ctx }) => {
|
|
6538
6629
|
const { nodeId, ...methodInput } = input;
|
|
6539
6630
|
const p = resolveProvider('lock-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6631
|
+
const fn = p.open;
|
|
6632
|
+
if (typeof fn !== 'function') {
|
|
6633
|
+
throw new server_1.TRPCError({
|
|
6634
|
+
code: 'NOT_IMPLEMENTED',
|
|
6635
|
+
message: 'Capability "lock-control" provider does not implement "open"',
|
|
6636
|
+
});
|
|
6637
|
+
}
|
|
6540
6638
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6541
|
-
return
|
|
6639
|
+
return fn.call(p, methodInput);
|
|
6542
6640
|
}),
|
|
6543
6641
|
});
|
|
6544
6642
|
}
|
|
@@ -6651,8 +6749,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6651
6749
|
.mutation(async ({ input, ctx }) => {
|
|
6652
6750
|
const { nodeId, ...methodInput } = input;
|
|
6653
6751
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6752
|
+
const fn = p.turnOn;
|
|
6753
|
+
if (typeof fn !== 'function') {
|
|
6754
|
+
throw new server_1.TRPCError({
|
|
6755
|
+
code: 'NOT_IMPLEMENTED',
|
|
6756
|
+
message: 'Capability "media-player" provider does not implement "turnOn"',
|
|
6757
|
+
});
|
|
6758
|
+
}
|
|
6654
6759
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6655
|
-
return
|
|
6760
|
+
return fn.call(p, methodInput);
|
|
6656
6761
|
}),
|
|
6657
6762
|
turnOff: trpc_middleware_js_1.protectedProcedure
|
|
6658
6763
|
.input(types_88.mediaPlayerCapability.methods.turnOff.input.loose())
|
|
@@ -6660,8 +6765,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6660
6765
|
.mutation(async ({ input, ctx }) => {
|
|
6661
6766
|
const { nodeId, ...methodInput } = input;
|
|
6662
6767
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6768
|
+
const fn = p.turnOff;
|
|
6769
|
+
if (typeof fn !== 'function') {
|
|
6770
|
+
throw new server_1.TRPCError({
|
|
6771
|
+
code: 'NOT_IMPLEMENTED',
|
|
6772
|
+
message: 'Capability "media-player" provider does not implement "turnOff"',
|
|
6773
|
+
});
|
|
6774
|
+
}
|
|
6663
6775
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6664
|
-
return
|
|
6776
|
+
return fn.call(p, methodInput);
|
|
6665
6777
|
}),
|
|
6666
6778
|
volumeUp: trpc_middleware_js_1.protectedProcedure
|
|
6667
6779
|
.input(types_88.mediaPlayerCapability.methods.volumeUp.input.loose())
|
|
@@ -6669,8 +6781,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6669
6781
|
.mutation(async ({ input, ctx }) => {
|
|
6670
6782
|
const { nodeId, ...methodInput } = input;
|
|
6671
6783
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6784
|
+
const fn = p.volumeUp;
|
|
6785
|
+
if (typeof fn !== 'function') {
|
|
6786
|
+
throw new server_1.TRPCError({
|
|
6787
|
+
code: 'NOT_IMPLEMENTED',
|
|
6788
|
+
message: 'Capability "media-player" provider does not implement "volumeUp"',
|
|
6789
|
+
});
|
|
6790
|
+
}
|
|
6672
6791
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6673
|
-
return
|
|
6792
|
+
return fn.call(p, methodInput);
|
|
6674
6793
|
}),
|
|
6675
6794
|
volumeDown: trpc_middleware_js_1.protectedProcedure
|
|
6676
6795
|
.input(types_88.mediaPlayerCapability.methods.volumeDown.input.loose())
|
|
@@ -6678,8 +6797,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6678
6797
|
.mutation(async ({ input, ctx }) => {
|
|
6679
6798
|
const { nodeId, ...methodInput } = input;
|
|
6680
6799
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6800
|
+
const fn = p.volumeDown;
|
|
6801
|
+
if (typeof fn !== 'function') {
|
|
6802
|
+
throw new server_1.TRPCError({
|
|
6803
|
+
code: 'NOT_IMPLEMENTED',
|
|
6804
|
+
message: 'Capability "media-player" provider does not implement "volumeDown"',
|
|
6805
|
+
});
|
|
6806
|
+
}
|
|
6681
6807
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6682
|
-
return
|
|
6808
|
+
return fn.call(p, methodInput);
|
|
6683
6809
|
}),
|
|
6684
6810
|
channelUp: trpc_middleware_js_1.protectedProcedure
|
|
6685
6811
|
.input(types_88.mediaPlayerCapability.methods.channelUp.input.loose())
|
|
@@ -6687,8 +6813,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6687
6813
|
.mutation(async ({ input, ctx }) => {
|
|
6688
6814
|
const { nodeId, ...methodInput } = input;
|
|
6689
6815
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6816
|
+
const fn = p.channelUp;
|
|
6817
|
+
if (typeof fn !== 'function') {
|
|
6818
|
+
throw new server_1.TRPCError({
|
|
6819
|
+
code: 'NOT_IMPLEMENTED',
|
|
6820
|
+
message: 'Capability "media-player" provider does not implement "channelUp"',
|
|
6821
|
+
});
|
|
6822
|
+
}
|
|
6690
6823
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6691
|
-
return
|
|
6824
|
+
return fn.call(p, methodInput);
|
|
6692
6825
|
}),
|
|
6693
6826
|
channelDown: trpc_middleware_js_1.protectedProcedure
|
|
6694
6827
|
.input(types_88.mediaPlayerCapability.methods.channelDown.input.loose())
|
|
@@ -6696,8 +6829,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6696
6829
|
.mutation(async ({ input, ctx }) => {
|
|
6697
6830
|
const { nodeId, ...methodInput } = input;
|
|
6698
6831
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6832
|
+
const fn = p.channelDown;
|
|
6833
|
+
if (typeof fn !== 'function') {
|
|
6834
|
+
throw new server_1.TRPCError({
|
|
6835
|
+
code: 'NOT_IMPLEMENTED',
|
|
6836
|
+
message: 'Capability "media-player" provider does not implement "channelDown"',
|
|
6837
|
+
});
|
|
6838
|
+
}
|
|
6699
6839
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6700
|
-
return
|
|
6840
|
+
return fn.call(p, methodInput);
|
|
6701
6841
|
}),
|
|
6702
6842
|
play: trpc_middleware_js_1.protectedProcedure
|
|
6703
6843
|
.input(types_88.mediaPlayerCapability.methods.play.input.loose())
|
|
@@ -6723,8 +6863,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6723
6863
|
.mutation(async ({ input, ctx }) => {
|
|
6724
6864
|
const { nodeId, ...methodInput } = input;
|
|
6725
6865
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6866
|
+
const fn = p.stop;
|
|
6867
|
+
if (typeof fn !== 'function') {
|
|
6868
|
+
throw new server_1.TRPCError({
|
|
6869
|
+
code: 'NOT_IMPLEMENTED',
|
|
6870
|
+
message: 'Capability "media-player" provider does not implement "stop"',
|
|
6871
|
+
});
|
|
6872
|
+
}
|
|
6726
6873
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6727
|
-
return
|
|
6874
|
+
return fn.call(p, methodInput);
|
|
6728
6875
|
}),
|
|
6729
6876
|
next: trpc_middleware_js_1.protectedProcedure
|
|
6730
6877
|
.input(types_88.mediaPlayerCapability.methods.next.input.loose())
|
|
@@ -6732,8 +6879,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6732
6879
|
.mutation(async ({ input, ctx }) => {
|
|
6733
6880
|
const { nodeId, ...methodInput } = input;
|
|
6734
6881
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6882
|
+
const fn = p.next;
|
|
6883
|
+
if (typeof fn !== 'function') {
|
|
6884
|
+
throw new server_1.TRPCError({
|
|
6885
|
+
code: 'NOT_IMPLEMENTED',
|
|
6886
|
+
message: 'Capability "media-player" provider does not implement "next"',
|
|
6887
|
+
});
|
|
6888
|
+
}
|
|
6735
6889
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6736
|
-
return
|
|
6890
|
+
return fn.call(p, methodInput);
|
|
6737
6891
|
}),
|
|
6738
6892
|
previous: trpc_middleware_js_1.protectedProcedure
|
|
6739
6893
|
.input(types_88.mediaPlayerCapability.methods.previous.input.loose())
|
|
@@ -6741,8 +6895,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6741
6895
|
.mutation(async ({ input, ctx }) => {
|
|
6742
6896
|
const { nodeId, ...methodInput } = input;
|
|
6743
6897
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6898
|
+
const fn = p.previous;
|
|
6899
|
+
if (typeof fn !== 'function') {
|
|
6900
|
+
throw new server_1.TRPCError({
|
|
6901
|
+
code: 'NOT_IMPLEMENTED',
|
|
6902
|
+
message: 'Capability "media-player" provider does not implement "previous"',
|
|
6903
|
+
});
|
|
6904
|
+
}
|
|
6744
6905
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6745
|
-
return
|
|
6906
|
+
return fn.call(p, methodInput);
|
|
6746
6907
|
}),
|
|
6747
6908
|
seek: trpc_middleware_js_1.protectedProcedure
|
|
6748
6909
|
.input(types_88.mediaPlayerCapability.methods.seek.input.loose())
|
|
@@ -6750,8 +6911,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6750
6911
|
.mutation(async ({ input, ctx }) => {
|
|
6751
6912
|
const { nodeId, ...methodInput } = input;
|
|
6752
6913
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6914
|
+
const fn = p.seek;
|
|
6915
|
+
if (typeof fn !== 'function') {
|
|
6916
|
+
throw new server_1.TRPCError({
|
|
6917
|
+
code: 'NOT_IMPLEMENTED',
|
|
6918
|
+
message: 'Capability "media-player" provider does not implement "seek"',
|
|
6919
|
+
});
|
|
6920
|
+
}
|
|
6753
6921
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6754
|
-
return
|
|
6922
|
+
return fn.call(p, methodInput);
|
|
6755
6923
|
}),
|
|
6756
6924
|
setVolume: trpc_middleware_js_1.protectedProcedure
|
|
6757
6925
|
.input(types_88.mediaPlayerCapability.methods.setVolume.input.loose())
|
|
@@ -6759,8 +6927,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6759
6927
|
.mutation(async ({ input, ctx }) => {
|
|
6760
6928
|
const { nodeId, ...methodInput } = input;
|
|
6761
6929
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6930
|
+
const fn = p.setVolume;
|
|
6931
|
+
if (typeof fn !== 'function') {
|
|
6932
|
+
throw new server_1.TRPCError({
|
|
6933
|
+
code: 'NOT_IMPLEMENTED',
|
|
6934
|
+
message: 'Capability "media-player" provider does not implement "setVolume"',
|
|
6935
|
+
});
|
|
6936
|
+
}
|
|
6762
6937
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6763
|
-
return
|
|
6938
|
+
return fn.call(p, methodInput);
|
|
6764
6939
|
}),
|
|
6765
6940
|
setMute: trpc_middleware_js_1.protectedProcedure
|
|
6766
6941
|
.input(types_88.mediaPlayerCapability.methods.setMute.input.loose())
|
|
@@ -6768,8 +6943,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6768
6943
|
.mutation(async ({ input, ctx }) => {
|
|
6769
6944
|
const { nodeId, ...methodInput } = input;
|
|
6770
6945
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6946
|
+
const fn = p.setMute;
|
|
6947
|
+
if (typeof fn !== 'function') {
|
|
6948
|
+
throw new server_1.TRPCError({
|
|
6949
|
+
code: 'NOT_IMPLEMENTED',
|
|
6950
|
+
message: 'Capability "media-player" provider does not implement "setMute"',
|
|
6951
|
+
});
|
|
6952
|
+
}
|
|
6771
6953
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6772
|
-
return
|
|
6954
|
+
return fn.call(p, methodInput);
|
|
6773
6955
|
}),
|
|
6774
6956
|
setShuffle: trpc_middleware_js_1.protectedProcedure
|
|
6775
6957
|
.input(types_88.mediaPlayerCapability.methods.setShuffle.input.loose())
|
|
@@ -6777,8 +6959,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6777
6959
|
.mutation(async ({ input, ctx }) => {
|
|
6778
6960
|
const { nodeId, ...methodInput } = input;
|
|
6779
6961
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6962
|
+
const fn = p.setShuffle;
|
|
6963
|
+
if (typeof fn !== 'function') {
|
|
6964
|
+
throw new server_1.TRPCError({
|
|
6965
|
+
code: 'NOT_IMPLEMENTED',
|
|
6966
|
+
message: 'Capability "media-player" provider does not implement "setShuffle"',
|
|
6967
|
+
});
|
|
6968
|
+
}
|
|
6780
6969
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6781
|
-
return
|
|
6970
|
+
return fn.call(p, methodInput);
|
|
6782
6971
|
}),
|
|
6783
6972
|
setRepeat: trpc_middleware_js_1.protectedProcedure
|
|
6784
6973
|
.input(types_88.mediaPlayerCapability.methods.setRepeat.input.loose())
|
|
@@ -6786,8 +6975,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6786
6975
|
.mutation(async ({ input, ctx }) => {
|
|
6787
6976
|
const { nodeId, ...methodInput } = input;
|
|
6788
6977
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6978
|
+
const fn = p.setRepeat;
|
|
6979
|
+
if (typeof fn !== 'function') {
|
|
6980
|
+
throw new server_1.TRPCError({
|
|
6981
|
+
code: 'NOT_IMPLEMENTED',
|
|
6982
|
+
message: 'Capability "media-player" provider does not implement "setRepeat"',
|
|
6983
|
+
});
|
|
6984
|
+
}
|
|
6789
6985
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6790
|
-
return
|
|
6986
|
+
return fn.call(p, methodInput);
|
|
6791
6987
|
}),
|
|
6792
6988
|
selectSource: trpc_middleware_js_1.protectedProcedure
|
|
6793
6989
|
.input(types_88.mediaPlayerCapability.methods.selectSource.input.loose())
|
|
@@ -6795,8 +6991,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6795
6991
|
.mutation(async ({ input, ctx }) => {
|
|
6796
6992
|
const { nodeId, ...methodInput } = input;
|
|
6797
6993
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6994
|
+
const fn = p.selectSource;
|
|
6995
|
+
if (typeof fn !== 'function') {
|
|
6996
|
+
throw new server_1.TRPCError({
|
|
6997
|
+
code: 'NOT_IMPLEMENTED',
|
|
6998
|
+
message: 'Capability "media-player" provider does not implement "selectSource"',
|
|
6999
|
+
});
|
|
7000
|
+
}
|
|
6798
7001
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6799
|
-
return
|
|
7002
|
+
return fn.call(p, methodInput);
|
|
6800
7003
|
}),
|
|
6801
7004
|
playMedia: trpc_middleware_js_1.protectedProcedure
|
|
6802
7005
|
.input(types_88.mediaPlayerCapability.methods.playMedia.input.loose())
|
|
@@ -6804,8 +7007,15 @@ function createCapRouter_mediaPlayer(getProvider, createRemoteProxy) {
|
|
|
6804
7007
|
.mutation(async ({ input, ctx }) => {
|
|
6805
7008
|
const { nodeId, ...methodInput } = input;
|
|
6806
7009
|
const p = resolveProvider('media-player', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7010
|
+
const fn = p.playMedia;
|
|
7011
|
+
if (typeof fn !== 'function') {
|
|
7012
|
+
throw new server_1.TRPCError({
|
|
7013
|
+
code: 'NOT_IMPLEMENTED',
|
|
7014
|
+
message: 'Capability "media-player" provider does not implement "playMedia"',
|
|
7015
|
+
});
|
|
7016
|
+
}
|
|
6807
7017
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6808
|
-
return
|
|
7018
|
+
return fn.call(p, methodInput);
|
|
6809
7019
|
}),
|
|
6810
7020
|
});
|
|
6811
7021
|
}
|
|
@@ -8128,15 +8338,6 @@ function createCapRouter_osdManager(getProvider, createRemoteProxy) {
|
|
|
8128
8338
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8129
8339
|
return p.getDeviceOsd(methodInput);
|
|
8130
8340
|
}),
|
|
8131
|
-
getSourceCatalog: trpc_middleware_js_1.adminProcedure
|
|
8132
|
-
.input(types_111.osdManagerCapability.methods.getSourceCatalog.input.loose())
|
|
8133
|
-
.output(types_111.osdManagerCapability.methods.getSourceCatalog.output)
|
|
8134
|
-
.query(async ({ input, ctx }) => {
|
|
8135
|
-
const { nodeId, ...methodInput } = input;
|
|
8136
|
-
const p = resolveProvider('osd-manager', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8137
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8138
|
-
return p.getSourceCatalog(methodInput);
|
|
8139
|
-
}),
|
|
8140
8341
|
getConditionSupport: trpc_middleware_js_1.adminProcedure
|
|
8141
8342
|
.input(types_111.osdManagerCapability.methods.getConditionSupport.input.loose())
|
|
8142
8343
|
.output(types_111.osdManagerCapability.methods.getConditionSupport.output)
|
|
@@ -8191,6 +8392,15 @@ function createCapRouter_osdManager(getProvider, createRemoteProxy) {
|
|
|
8191
8392
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8192
8393
|
return p.previewSlot(methodInput);
|
|
8193
8394
|
}),
|
|
8395
|
+
previewTemplate: trpc_middleware_js_1.adminProcedure
|
|
8396
|
+
.input(types_111.osdManagerCapability.methods.previewTemplate.input.loose())
|
|
8397
|
+
.output(types_111.osdManagerCapability.methods.previewTemplate.output)
|
|
8398
|
+
.mutation(async ({ input, ctx }) => {
|
|
8399
|
+
const { nodeId, ...methodInput } = input;
|
|
8400
|
+
const p = resolveProvider('osd-manager', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8401
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8402
|
+
return p.previewTemplate(methodInput);
|
|
8403
|
+
}),
|
|
8194
8404
|
renderDevice: trpc_middleware_js_1.adminProcedure
|
|
8195
8405
|
.input(types_111.osdManagerCapability.methods.renderDevice.input.loose())
|
|
8196
8406
|
.output(types_111.osdManagerCapability.methods.renderDevice.output)
|
|
@@ -13953,8 +14163,15 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
13953
14163
|
.mutation(async ({ input, ctx }) => {
|
|
13954
14164
|
const { nodeId, ...methodInput } = input;
|
|
13955
14165
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
14166
|
+
const fn = p.setPosition;
|
|
14167
|
+
if (typeof fn !== 'function') {
|
|
14168
|
+
throw new server_1.TRPCError({
|
|
14169
|
+
code: 'NOT_IMPLEMENTED',
|
|
14170
|
+
message: 'Capability "valve" provider does not implement "setPosition"',
|
|
14171
|
+
});
|
|
14172
|
+
}
|
|
13956
14173
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
13957
|
-
return
|
|
14174
|
+
return fn.call(p, methodInput);
|
|
13958
14175
|
}),
|
|
13959
14176
|
});
|
|
13960
14177
|
}
|
|
@@ -3222,6 +3222,9 @@ class AddonRegistryService {
|
|
|
3222
3222
|
// deviceId index. The per-device `getBindings` resolver prefers this
|
|
3223
3223
|
// over filtering the whole-cluster flat view.
|
|
3224
3224
|
listClusterNativeCapsForDevice: (deviceId) => this.moleculer.listClusterNativeCapsForDevice(deviceId),
|
|
3225
|
+
// Registry membership, the liveness cap dispatch trusts — device
|
|
3226
|
+
// features derive only from a provider on an online node (#459).
|
|
3227
|
+
isNodeRegistered: (nodeId) => this.moleculer.isNodeRegistered(nodeId),
|
|
3225
3228
|
// Node-routed cap proxy — lets hub builtins (storage-orchestrator)
|
|
3226
3229
|
// dispatch provider work to the node that OWNS the data.
|
|
3227
3230
|
resolveNodeCapability: (capName, nodeId) => this.moleculer.createCapabilityProxy(capName, nodeId),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.827",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,9 +66,38 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.
|
|
71
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.634",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.358",
|
|
71
|
+
"@camstack/addon-auth": ">=1.2.181",
|
|
72
|
+
"@camstack/addon-benchmark": ">=1.2.313",
|
|
73
|
+
"@camstack/addon-cloudflare": ">=1.2.161",
|
|
74
|
+
"@camstack/addon-google-services": ">=0.2.47",
|
|
75
|
+
"@camstack/addon-import-alexa": ">=0.2.201",
|
|
76
|
+
"@camstack/addon-matter-broker": ">=0.2.166",
|
|
77
|
+
"@camstack/addon-osd-manager": ">=0.1.317",
|
|
78
|
+
"@camstack/addon-pipeline": ">=1.2.649",
|
|
79
|
+
"@camstack/addon-post-analysis": ">=1.2.692",
|
|
80
|
+
"@camstack/addon-provider-bosch": ">=0.1.48",
|
|
81
|
+
"@camstack/addon-provider-dreame": ">=0.2.174",
|
|
82
|
+
"@camstack/addon-provider-dreo": ">=0.2.164",
|
|
83
|
+
"@camstack/addon-provider-ecowitt": ">=0.2.162",
|
|
84
|
+
"@camstack/addon-provider-enpal": ">=0.1.15",
|
|
85
|
+
"@camstack/addon-provider-esphome": ">=0.1.18",
|
|
86
|
+
"@camstack/addon-provider-gree": ">=0.2.157",
|
|
87
|
+
"@camstack/addon-provider-homematic": ">=1.2.188",
|
|
88
|
+
"@camstack/addon-provider-mqtt-ha": ">=0.1.44",
|
|
89
|
+
"@camstack/addon-provider-petkit": ">=0.2.169",
|
|
90
|
+
"@camstack/addon-provider-rademacher": ">=0.2.165",
|
|
91
|
+
"@camstack/addon-provider-reolink": ">=1.2.236",
|
|
92
|
+
"@camstack/addon-provider-rtsp": ">=1.2.157",
|
|
93
|
+
"@camstack/addon-provider-tuya": ">=0.2.159",
|
|
94
|
+
"@camstack/addon-provider-unifi": ">=0.2.162",
|
|
95
|
+
"@camstack/addon-provider-unraid": ">=0.2.163",
|
|
96
|
+
"@camstack/addon-provider-velux": ">=0.2.165",
|
|
97
|
+
"@camstack/addon-provider-vesync": ">=0.2.156",
|
|
98
|
+
"@camstack/addon-provider-wyze": ">=0.2.173",
|
|
99
|
+
"@camstack/addon-training": ">=0.1.137",
|
|
100
|
+
"@camstack/addon-waste-collections": ">=0.1.43"
|
|
72
101
|
},
|
|
73
102
|
"wrapper": {
|
|
74
103
|
"desktop": ">=0.0.1",
|
|
@@ -77,19 +106,19 @@
|
|
|
77
106
|
}
|
|
78
107
|
},
|
|
79
108
|
"dependencies": {
|
|
80
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
81
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
82
|
-
"@camstack/addon-auth": "1.2.
|
|
83
|
-
"@camstack/addon-benchmark": "1.2.
|
|
109
|
+
"@camstack/addon-admin-ui": "1.2.634",
|
|
110
|
+
"@camstack/addon-agent-ui": "1.2.358",
|
|
111
|
+
"@camstack/addon-auth": "1.2.181",
|
|
112
|
+
"@camstack/addon-benchmark": "1.2.313",
|
|
84
113
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
85
114
|
"@camstack/addon-notifiers": "1.2.635",
|
|
86
|
-
"@camstack/addon-pipeline": "1.2.
|
|
115
|
+
"@camstack/addon-pipeline": "1.2.649",
|
|
87
116
|
"@camstack/addon-pipeline-orchestrator": "1.2.677",
|
|
88
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
117
|
+
"@camstack/addon-post-analysis": "1.2.692",
|
|
89
118
|
"@camstack/develop": "0.1.51",
|
|
90
119
|
"@camstack/sdk": "1.2.157",
|
|
91
|
-
"@camstack/types": "1.2.
|
|
92
|
-
"@camstack/ui-library": "1.2.
|
|
120
|
+
"@camstack/types": "1.2.540",
|
|
121
|
+
"@camstack/ui-library": "1.2.418",
|
|
93
122
|
"@fastify/compress": "^9.0.0",
|
|
94
123
|
"@fastify/cookie": "^11.0.2",
|
|
95
124
|
"@fastify/cors": "^11.2.0",
|