@camstack/server 1.1.39 → 1.1.41
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/api/trpc/cap-mount-helpers.js +0 -63
- package/dist/api/trpc/cap-router-runtime.js +11 -33
- package/dist/api/trpc/core-cap-bridge.js +22 -0
- package/dist/api/trpc/generated-cap-mounts.js +1 -13
- package/dist/api/trpc/generated-cap-routers.js +350 -491
- package/dist/api/trpc/trpc.router.js +30 -48
- package/dist/core/addon/addon-package.service.js +33 -6
- package/dist/core/moleculer/moleculer.service.js +11 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate-cap-routers.ts — DO NOT EDIT
|
|
3
3
|
// Re-run: npx tsx scripts/generate-cap-routers.ts
|
|
4
4
|
//
|
|
5
|
-
// Capabilities:
|
|
5
|
+
// Capabilities: 135
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.requireCapProvider = requireCapProvider;
|
|
@@ -110,13 +110,11 @@ exports.createCapRouter_ptz = createCapRouter_ptz;
|
|
|
110
110
|
exports.createCapRouter_ptzAutotrack = createCapRouter_ptzAutotrack;
|
|
111
111
|
exports.createCapRouter_reboot = createCapRouter_reboot;
|
|
112
112
|
exports.createCapRouter_recording = createCapRouter_recording;
|
|
113
|
-
exports.createCapRouter_restreamer = createCapRouter_restreamer;
|
|
114
113
|
exports.createCapRouter_scriptRunner = createCapRouter_scriptRunner;
|
|
115
114
|
exports.createCapRouter_settingsStore = createCapRouter_settingsStore;
|
|
116
115
|
exports.createCapRouter_smoke = createCapRouter_smoke;
|
|
117
116
|
exports.createCapRouter_smtpProvider = createCapRouter_smtpProvider;
|
|
118
117
|
exports.createCapRouter_snapshot = createCapRouter_snapshot;
|
|
119
|
-
exports.createCapRouter_snapshotProvider = createCapRouter_snapshotProvider;
|
|
120
118
|
exports.createCapRouter_ssoBridge = createCapRouter_ssoBridge;
|
|
121
119
|
exports.createCapRouter_storage = createCapRouter_storage;
|
|
122
120
|
exports.createCapRouter_storageEvictable = createCapRouter_storageEvictable;
|
|
@@ -124,7 +122,6 @@ exports.createCapRouter_storageProvider = createCapRouter_storageProvider;
|
|
|
124
122
|
exports.createCapRouter_streamBroker = createCapRouter_streamBroker;
|
|
125
123
|
exports.createCapRouter_streamCatalog = createCapRouter_streamCatalog;
|
|
126
124
|
exports.createCapRouter_streamParams = createCapRouter_streamParams;
|
|
127
|
-
exports.createCapRouter_streamingEngine = createCapRouter_streamingEngine;
|
|
128
125
|
exports.createCapRouter_switch = createCapRouter_switch;
|
|
129
126
|
exports.createCapRouter_system = createCapRouter_system;
|
|
130
127
|
exports.createCapRouter_tamper = createCapRouter_tamper;
|
|
@@ -140,7 +137,6 @@ exports.createCapRouter_vibration = createCapRouter_vibration;
|
|
|
140
137
|
exports.createCapRouter_videoclips = createCapRouter_videoclips;
|
|
141
138
|
exports.createCapRouter_waterHeater = createCapRouter_waterHeater;
|
|
142
139
|
exports.createCapRouter_weather = createCapRouter_weather;
|
|
143
|
-
exports.createCapRouter_webrtc = createCapRouter_webrtc;
|
|
144
140
|
exports.createCapRouter_webrtcSession = createCapRouter_webrtcSession;
|
|
145
141
|
exports.createCapRouter_zoneAnalytics = createCapRouter_zoneAnalytics;
|
|
146
142
|
exports.createCapRouter_zoneRules = createCapRouter_zoneRules;
|
|
@@ -260,10 +256,6 @@ const types_108 = require("@camstack/types");
|
|
|
260
256
|
const types_109 = require("@camstack/types");
|
|
261
257
|
const types_110 = require("@camstack/types");
|
|
262
258
|
const types_111 = require("@camstack/types");
|
|
263
|
-
const types_112 = require("@camstack/types");
|
|
264
|
-
const types_113 = require("@camstack/types");
|
|
265
|
-
const types_114 = require("@camstack/types");
|
|
266
|
-
const types_115 = require("@camstack/types");
|
|
267
259
|
// ── Provider Accessor ───────────────────────────────────────────────
|
|
268
260
|
function requireCapProvider(name, getProvider) {
|
|
269
261
|
const p = getProvider();
|
|
@@ -5014,6 +5006,15 @@ function createCapRouter_pipelineExecutor(getProvider, createRemoteProxy) {
|
|
|
5014
5006
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5015
5007
|
return p.setVideoPipelineSteps(methodInput);
|
|
5016
5008
|
}),
|
|
5009
|
+
resetToDefault: trpc_middleware_js_1.adminProcedure
|
|
5010
|
+
.input(types_76.pipelineExecutorCapability.methods.resetToDefault.input.loose())
|
|
5011
|
+
.output(types_76.pipelineExecutorCapability.methods.resetToDefault.output)
|
|
5012
|
+
.mutation(async ({ input, ctx }) => {
|
|
5013
|
+
const { nodeId, ...methodInput } = input;
|
|
5014
|
+
const p = resolveProvider('pipeline-executor', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5015
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5016
|
+
return p.resetToDefault(methodInput);
|
|
5017
|
+
}),
|
|
5017
5018
|
getSchema: trpc_middleware_js_1.protectedProcedure
|
|
5018
5019
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
5019
5020
|
.output(types_76.pipelineExecutorCapability.methods.getSchema.output)
|
|
@@ -5042,6 +5043,15 @@ function createCapRouter_pipelineExecutor(getProvider, createRemoteProxy) {
|
|
|
5042
5043
|
const p = resolveProvider('pipeline-executor', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5043
5044
|
return p.getOrchestratorConfigSchema();
|
|
5044
5045
|
}),
|
|
5046
|
+
validatePipeline: trpc_middleware_js_1.protectedProcedure
|
|
5047
|
+
.input(types_76.pipelineExecutorCapability.methods.validatePipeline.input.loose())
|
|
5048
|
+
.output(types_76.pipelineExecutorCapability.methods.validatePipeline.output)
|
|
5049
|
+
.query(async ({ input, ctx }) => {
|
|
5050
|
+
const { nodeId, ...methodInput } = input;
|
|
5051
|
+
const p = resolveProvider('pipeline-executor', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5052
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5053
|
+
return p.validatePipeline(methodInput);
|
|
5054
|
+
}),
|
|
5045
5055
|
listTemplates: trpc_middleware_js_1.protectedProcedure
|
|
5046
5056
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
5047
5057
|
.output(types_76.pipelineExecutorCapability.methods.listTemplates.output)
|
|
@@ -5359,6 +5369,14 @@ function createCapRouter_pipelineOrchestrator(getProvider, _createRemoteProxy) {
|
|
|
5359
5369
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5360
5370
|
return p.setCapabilityBinding(input);
|
|
5361
5371
|
}),
|
|
5372
|
+
getIngestOwner: trpc_middleware_js_1.protectedProcedure
|
|
5373
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
5374
|
+
.output(types_77.pipelineOrchestratorCapability.methods.getIngestOwner.output)
|
|
5375
|
+
.query(async ({ input, ctx }) => {
|
|
5376
|
+
void input;
|
|
5377
|
+
const p = requireCapProvider('pipeline-orchestrator', () => getProvider(ctx));
|
|
5378
|
+
return p.getIngestOwner();
|
|
5379
|
+
}),
|
|
5362
5380
|
assignDecoder: trpc_middleware_js_1.adminProcedure
|
|
5363
5381
|
.input(types_77.pipelineOrchestratorCapability.methods.assignDecoder.input.loose())
|
|
5364
5382
|
.output(types_77.pipelineOrchestratorCapability.methods.assignDecoder.output)
|
|
@@ -5487,6 +5505,14 @@ function createCapRouter_pipelineOrchestrator(getProvider, _createRemoteProxy) {
|
|
|
5487
5505
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5488
5506
|
return p.setAgentCapabilities(input);
|
|
5489
5507
|
}),
|
|
5508
|
+
setAgentReachableHost: trpc_middleware_js_1.adminProcedure
|
|
5509
|
+
.input(types_77.pipelineOrchestratorCapability.methods.setAgentReachableHost.input.loose())
|
|
5510
|
+
.output(types_77.pipelineOrchestratorCapability.methods.setAgentReachableHost.output)
|
|
5511
|
+
.mutation(async ({ input, ctx }) => {
|
|
5512
|
+
const p = requireCapProvider('pipeline-orchestrator', () => getProvider(ctx));
|
|
5513
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5514
|
+
return p.setAgentReachableHost(input);
|
|
5515
|
+
}),
|
|
5490
5516
|
getCameraSettings: trpc_middleware_js_1.protectedProcedure
|
|
5491
5517
|
.input(types_77.pipelineOrchestratorCapability.methods.getCameraSettings.input.loose())
|
|
5492
5518
|
.output(types_77.pipelineOrchestratorCapability.methods.getCameraSettings.output)
|
|
@@ -6117,37 +6143,6 @@ function createCapRouter_recording(getProvider, createRemoteProxy) {
|
|
|
6117
6143
|
}),
|
|
6118
6144
|
});
|
|
6119
6145
|
}
|
|
6120
|
-
function createCapRouter_restreamer(getProvider, createRemoteProxy) {
|
|
6121
|
-
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6122
|
-
registerDevice: trpc_middleware_js_1.protectedProcedure
|
|
6123
|
-
.input(types_86.restreamerCapability.methods.registerDevice.input.loose())
|
|
6124
|
-
.output(types_86.restreamerCapability.methods.registerDevice.output)
|
|
6125
|
-
.mutation(async ({ input, ctx }) => {
|
|
6126
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
6127
|
-
const p = resolveProvider('restreamer', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
6128
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6129
|
-
return p.registerDevice(methodInput);
|
|
6130
|
-
}),
|
|
6131
|
-
unregisterDevice: trpc_middleware_js_1.protectedProcedure
|
|
6132
|
-
.input(types_86.restreamerCapability.methods.unregisterDevice.input.loose())
|
|
6133
|
-
.output(types_86.restreamerCapability.methods.unregisterDevice.output)
|
|
6134
|
-
.mutation(async ({ input, ctx }) => {
|
|
6135
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
6136
|
-
const p = resolveProvider('restreamer', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
6137
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6138
|
-
return p.unregisterDevice(methodInput);
|
|
6139
|
-
}),
|
|
6140
|
-
getExposedResources: trpc_middleware_js_1.protectedProcedure
|
|
6141
|
-
.input(types_86.restreamerCapability.methods.getExposedResources.input.loose())
|
|
6142
|
-
.output(types_86.restreamerCapability.methods.getExposedResources.output)
|
|
6143
|
-
.query(async ({ input, ctx }) => {
|
|
6144
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
6145
|
-
const p = resolveProvider('restreamer', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
6146
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6147
|
-
return p.getExposedResources(methodInput);
|
|
6148
|
-
}),
|
|
6149
|
-
});
|
|
6150
|
-
}
|
|
6151
6146
|
function createCapRouter_scriptRunner(getProvider, createRemoteProxy) {
|
|
6152
6147
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6153
6148
|
getStatus: trpc_middleware_js_1.protectedProcedure
|
|
@@ -6160,8 +6155,8 @@ function createCapRouter_scriptRunner(getProvider, createRemoteProxy) {
|
|
|
6160
6155
|
return p.getStatus(methodInput);
|
|
6161
6156
|
}),
|
|
6162
6157
|
run: trpc_middleware_js_1.adminProcedure
|
|
6163
|
-
.input(
|
|
6164
|
-
.output(
|
|
6158
|
+
.input(types_86.scriptRunnerCapability.methods.run.input.loose())
|
|
6159
|
+
.output(types_86.scriptRunnerCapability.methods.run.output)
|
|
6165
6160
|
.mutation(async ({ input, ctx }) => {
|
|
6166
6161
|
const { nodeId, ...methodInput } = input;
|
|
6167
6162
|
const p = resolveProvider('script-runner', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6169,8 +6164,8 @@ function createCapRouter_scriptRunner(getProvider, createRemoteProxy) {
|
|
|
6169
6164
|
return p.run(methodInput);
|
|
6170
6165
|
}),
|
|
6171
6166
|
stop: trpc_middleware_js_1.adminProcedure
|
|
6172
|
-
.input(
|
|
6173
|
-
.output(
|
|
6167
|
+
.input(types_86.scriptRunnerCapability.methods.stop.input.loose())
|
|
6168
|
+
.output(types_86.scriptRunnerCapability.methods.stop.output)
|
|
6174
6169
|
.mutation(async ({ input, ctx }) => {
|
|
6175
6170
|
const { nodeId, ...methodInput } = input;
|
|
6176
6171
|
const p = resolveProvider('script-runner', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6182,8 +6177,8 @@ function createCapRouter_scriptRunner(getProvider, createRemoteProxy) {
|
|
|
6182
6177
|
function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
6183
6178
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6184
6179
|
get: trpc_middleware_js_1.protectedProcedure
|
|
6185
|
-
.input(
|
|
6186
|
-
.output(
|
|
6180
|
+
.input(types_87.settingsStoreCapability.methods.get.input.loose())
|
|
6181
|
+
.output(types_87.settingsStoreCapability.methods.get.output)
|
|
6187
6182
|
.query(async ({ input, ctx }) => {
|
|
6188
6183
|
const { nodeId, ...methodInput } = input;
|
|
6189
6184
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6191,8 +6186,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6191
6186
|
return p.get(methodInput);
|
|
6192
6187
|
}),
|
|
6193
6188
|
set: trpc_middleware_js_1.protectedProcedure
|
|
6194
|
-
.input(
|
|
6195
|
-
.output(
|
|
6189
|
+
.input(types_87.settingsStoreCapability.methods.set.input.loose())
|
|
6190
|
+
.output(types_87.settingsStoreCapability.methods.set.output)
|
|
6196
6191
|
.mutation(async ({ input, ctx }) => {
|
|
6197
6192
|
const { nodeId, ...methodInput } = input;
|
|
6198
6193
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6200,8 +6195,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6200
6195
|
return p.set(methodInput);
|
|
6201
6196
|
}),
|
|
6202
6197
|
query: trpc_middleware_js_1.protectedProcedure
|
|
6203
|
-
.input(
|
|
6204
|
-
.output(
|
|
6198
|
+
.input(types_87.settingsStoreCapability.methods.query.input.loose())
|
|
6199
|
+
.output(types_87.settingsStoreCapability.methods.query.output)
|
|
6205
6200
|
.query(async ({ input, ctx }) => {
|
|
6206
6201
|
const { nodeId, ...methodInput } = input;
|
|
6207
6202
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6209,8 +6204,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6209
6204
|
return p.query(methodInput);
|
|
6210
6205
|
}),
|
|
6211
6206
|
insert: trpc_middleware_js_1.protectedProcedure
|
|
6212
|
-
.input(
|
|
6213
|
-
.output(
|
|
6207
|
+
.input(types_87.settingsStoreCapability.methods.insert.input.loose())
|
|
6208
|
+
.output(types_87.settingsStoreCapability.methods.insert.output)
|
|
6214
6209
|
.mutation(async ({ input, ctx }) => {
|
|
6215
6210
|
const { nodeId, ...methodInput } = input;
|
|
6216
6211
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6218,8 +6213,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6218
6213
|
return p.insert(methodInput);
|
|
6219
6214
|
}),
|
|
6220
6215
|
update: trpc_middleware_js_1.protectedProcedure
|
|
6221
|
-
.input(
|
|
6222
|
-
.output(
|
|
6216
|
+
.input(types_87.settingsStoreCapability.methods.update.input.loose())
|
|
6217
|
+
.output(types_87.settingsStoreCapability.methods.update.output)
|
|
6223
6218
|
.mutation(async ({ input, ctx }) => {
|
|
6224
6219
|
const { nodeId, ...methodInput } = input;
|
|
6225
6220
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6227,8 +6222,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6227
6222
|
return p.update(methodInput);
|
|
6228
6223
|
}),
|
|
6229
6224
|
delete: trpc_middleware_js_1.protectedProcedure
|
|
6230
|
-
.input(
|
|
6231
|
-
.output(
|
|
6225
|
+
.input(types_87.settingsStoreCapability.methods.delete.input.loose())
|
|
6226
|
+
.output(types_87.settingsStoreCapability.methods.delete.output)
|
|
6232
6227
|
.mutation(async ({ input, ctx }) => {
|
|
6233
6228
|
const { nodeId, ...methodInput } = input;
|
|
6234
6229
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6236,8 +6231,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6236
6231
|
return p.delete(methodInput);
|
|
6237
6232
|
}),
|
|
6238
6233
|
count: trpc_middleware_js_1.protectedProcedure
|
|
6239
|
-
.input(
|
|
6240
|
-
.output(
|
|
6234
|
+
.input(types_87.settingsStoreCapability.methods.count.input.loose())
|
|
6235
|
+
.output(types_87.settingsStoreCapability.methods.count.output)
|
|
6241
6236
|
.query(async ({ input, ctx }) => {
|
|
6242
6237
|
const { nodeId, ...methodInput } = input;
|
|
6243
6238
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6245,8 +6240,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6245
6240
|
return p.count(methodInput);
|
|
6246
6241
|
}),
|
|
6247
6242
|
histogram: trpc_middleware_js_1.protectedProcedure
|
|
6248
|
-
.input(
|
|
6249
|
-
.output(
|
|
6243
|
+
.input(types_87.settingsStoreCapability.methods.histogram.input.loose())
|
|
6244
|
+
.output(types_87.settingsStoreCapability.methods.histogram.output)
|
|
6250
6245
|
.query(async ({ input, ctx }) => {
|
|
6251
6246
|
const { nodeId, ...methodInput } = input;
|
|
6252
6247
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6254,8 +6249,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6254
6249
|
return p.histogram(methodInput);
|
|
6255
6250
|
}),
|
|
6256
6251
|
isEmpty: trpc_middleware_js_1.protectedProcedure
|
|
6257
|
-
.input(
|
|
6258
|
-
.output(
|
|
6252
|
+
.input(types_87.settingsStoreCapability.methods.isEmpty.input.loose())
|
|
6253
|
+
.output(types_87.settingsStoreCapability.methods.isEmpty.output)
|
|
6259
6254
|
.query(async ({ input, ctx }) => {
|
|
6260
6255
|
const { nodeId, ...methodInput } = input;
|
|
6261
6256
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6263,8 +6258,8 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
6263
6258
|
return p.isEmpty(methodInput);
|
|
6264
6259
|
}),
|
|
6265
6260
|
declareCollection: trpc_middleware_js_1.protectedProcedure
|
|
6266
|
-
.input(
|
|
6267
|
-
.output(
|
|
6261
|
+
.input(types_87.settingsStoreCapability.methods.declareCollection.input.loose())
|
|
6262
|
+
.output(types_87.settingsStoreCapability.methods.declareCollection.output)
|
|
6268
6263
|
.mutation(async ({ input, ctx }) => {
|
|
6269
6264
|
const { nodeId, ...methodInput } = input;
|
|
6270
6265
|
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6289,8 +6284,8 @@ function createCapRouter_smoke(getProvider, createRemoteProxy) {
|
|
|
6289
6284
|
function createCapRouter_smtpProvider(getProvider, createRemoteProxy) {
|
|
6290
6285
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6291
6286
|
sendEmail: trpc_middleware_js_1.adminProcedure
|
|
6292
|
-
.input(
|
|
6293
|
-
.output(
|
|
6287
|
+
.input(types_88.smtpProviderCapability.methods.sendEmail.input.loose())
|
|
6288
|
+
.output(types_88.smtpProviderCapability.methods.sendEmail.output)
|
|
6294
6289
|
.mutation(async ({ input, ctx }) => {
|
|
6295
6290
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6296
6291
|
const p = resolveProvider('smtp-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6299,7 +6294,7 @@ function createCapRouter_smtpProvider(getProvider, createRemoteProxy) {
|
|
|
6299
6294
|
}),
|
|
6300
6295
|
verify: trpc_middleware_js_1.adminProcedure
|
|
6301
6296
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
6302
|
-
.output(
|
|
6297
|
+
.output(types_88.smtpProviderCapability.methods.verify.output)
|
|
6303
6298
|
.mutation(async ({ input, ctx }) => {
|
|
6304
6299
|
const p = resolveProvider('smtp-provider', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
6305
6300
|
return p.verify();
|
|
@@ -6352,8 +6347,8 @@ function createCapRouter_snapshot(getProvider, createRemoteProxy) {
|
|
|
6352
6347
|
return p.applyDeviceSettingsPatch(methodInput);
|
|
6353
6348
|
}),
|
|
6354
6349
|
getSnapshot: trpc_middleware_js_1.protectedProcedure
|
|
6355
|
-
.input(
|
|
6356
|
-
.output(
|
|
6350
|
+
.input(types_89.snapshotCapability.methods.getSnapshot.input.loose())
|
|
6351
|
+
.output(types_89.snapshotCapability.methods.getSnapshot.output)
|
|
6357
6352
|
.query(async ({ input, ctx }) => {
|
|
6358
6353
|
const { nodeId, ...methodInput } = input;
|
|
6359
6354
|
const p = resolveProvider('snapshot', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6361,8 +6356,8 @@ function createCapRouter_snapshot(getProvider, createRemoteProxy) {
|
|
|
6361
6356
|
return p.getSnapshot(methodInput);
|
|
6362
6357
|
}),
|
|
6363
6358
|
invalidateCache: trpc_middleware_js_1.adminProcedure
|
|
6364
|
-
.input(
|
|
6365
|
-
.output(
|
|
6359
|
+
.input(types_89.snapshotCapability.methods.invalidateCache.input.loose())
|
|
6360
|
+
.output(types_89.snapshotCapability.methods.invalidateCache.output)
|
|
6366
6361
|
.mutation(async ({ input, ctx }) => {
|
|
6367
6362
|
const { nodeId, ...methodInput } = input;
|
|
6368
6363
|
const p = resolveProvider('snapshot', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6371,33 +6366,11 @@ function createCapRouter_snapshot(getProvider, createRemoteProxy) {
|
|
|
6371
6366
|
}),
|
|
6372
6367
|
});
|
|
6373
6368
|
}
|
|
6374
|
-
function createCapRouter_snapshotProvider(getProvider, createRemoteProxy) {
|
|
6375
|
-
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6376
|
-
supportsDevice: trpc_middleware_js_1.protectedProcedure
|
|
6377
|
-
.input(types_91.snapshotProviderCapability.methods.supportsDevice.input.loose())
|
|
6378
|
-
.output(types_91.snapshotProviderCapability.methods.supportsDevice.output)
|
|
6379
|
-
.query(async ({ input, ctx }) => {
|
|
6380
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
6381
|
-
const p = resolveProvider('snapshot-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
6382
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6383
|
-
return p.supportsDevice(methodInput);
|
|
6384
|
-
}),
|
|
6385
|
-
getSnapshot: trpc_middleware_js_1.protectedProcedure
|
|
6386
|
-
.input(types_91.snapshotProviderCapability.methods.getSnapshot.input.loose())
|
|
6387
|
-
.output(types_91.snapshotProviderCapability.methods.getSnapshot.output)
|
|
6388
|
-
.query(async ({ input, ctx }) => {
|
|
6389
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
6390
|
-
const p = resolveProvider('snapshot-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
6391
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6392
|
-
return p.getSnapshot(methodInput);
|
|
6393
|
-
}),
|
|
6394
|
-
});
|
|
6395
|
-
}
|
|
6396
6369
|
function createCapRouter_ssoBridge(getProvider, createRemoteProxy) {
|
|
6397
6370
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6398
6371
|
signBridgeToken: trpc_middleware_js_1.protectedProcedure
|
|
6399
|
-
.input(
|
|
6400
|
-
.output(
|
|
6372
|
+
.input(types_90.ssoBridgeCapability.methods.signBridgeToken.input.loose())
|
|
6373
|
+
.output(types_90.ssoBridgeCapability.methods.signBridgeToken.output)
|
|
6401
6374
|
.query(async ({ input, ctx }) => {
|
|
6402
6375
|
const { nodeId, ...methodInput } = input;
|
|
6403
6376
|
const p = resolveProvider('sso-bridge', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6405,8 +6378,8 @@ function createCapRouter_ssoBridge(getProvider, createRemoteProxy) {
|
|
|
6405
6378
|
return p.signBridgeToken(methodInput);
|
|
6406
6379
|
}),
|
|
6407
6380
|
verifyBridgeToken: trpc_middleware_js_1.protectedProcedure
|
|
6408
|
-
.input(
|
|
6409
|
-
.output(
|
|
6381
|
+
.input(types_90.ssoBridgeCapability.methods.verifyBridgeToken.input.loose())
|
|
6382
|
+
.output(types_90.ssoBridgeCapability.methods.verifyBridgeToken.output)
|
|
6410
6383
|
.query(async ({ input, ctx }) => {
|
|
6411
6384
|
const { nodeId, ...methodInput } = input;
|
|
6412
6385
|
const p = resolveProvider('sso-bridge', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6418,8 +6391,8 @@ function createCapRouter_ssoBridge(getProvider, createRemoteProxy) {
|
|
|
6418
6391
|
function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
6419
6392
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6420
6393
|
resolve: trpc_middleware_js_1.protectedProcedure
|
|
6421
|
-
.input(
|
|
6422
|
-
.output(
|
|
6394
|
+
.input(types_91.storageCapability.methods.resolve.input.loose())
|
|
6395
|
+
.output(types_91.storageCapability.methods.resolve.output)
|
|
6423
6396
|
.query(async ({ input, ctx }) => {
|
|
6424
6397
|
const { nodeId, ...methodInput } = input;
|
|
6425
6398
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6427,8 +6400,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6427
6400
|
return p.resolve(methodInput);
|
|
6428
6401
|
}),
|
|
6429
6402
|
write: trpc_middleware_js_1.protectedProcedure
|
|
6430
|
-
.input(
|
|
6431
|
-
.output(
|
|
6403
|
+
.input(types_91.storageCapability.methods.write.input.loose())
|
|
6404
|
+
.output(types_91.storageCapability.methods.write.output)
|
|
6432
6405
|
.mutation(async ({ input, ctx }) => {
|
|
6433
6406
|
const { nodeId, ...methodInput } = input;
|
|
6434
6407
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6436,8 +6409,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6436
6409
|
return p.write(methodInput);
|
|
6437
6410
|
}),
|
|
6438
6411
|
read: trpc_middleware_js_1.protectedProcedure
|
|
6439
|
-
.input(
|
|
6440
|
-
.output(
|
|
6412
|
+
.input(types_91.storageCapability.methods.read.input.loose())
|
|
6413
|
+
.output(types_91.storageCapability.methods.read.output)
|
|
6441
6414
|
.query(async ({ input, ctx }) => {
|
|
6442
6415
|
const { nodeId, ...methodInput } = input;
|
|
6443
6416
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6445,8 +6418,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6445
6418
|
return p.read(methodInput);
|
|
6446
6419
|
}),
|
|
6447
6420
|
exists: trpc_middleware_js_1.protectedProcedure
|
|
6448
|
-
.input(
|
|
6449
|
-
.output(
|
|
6421
|
+
.input(types_91.storageCapability.methods.exists.input.loose())
|
|
6422
|
+
.output(types_91.storageCapability.methods.exists.output)
|
|
6450
6423
|
.query(async ({ input, ctx }) => {
|
|
6451
6424
|
const { nodeId, ...methodInput } = input;
|
|
6452
6425
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6454,8 +6427,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6454
6427
|
return p.exists(methodInput);
|
|
6455
6428
|
}),
|
|
6456
6429
|
list: trpc_middleware_js_1.protectedProcedure
|
|
6457
|
-
.input(
|
|
6458
|
-
.output(
|
|
6430
|
+
.input(types_91.storageCapability.methods.list.input.loose())
|
|
6431
|
+
.output(types_91.storageCapability.methods.list.output)
|
|
6459
6432
|
.query(async ({ input, ctx }) => {
|
|
6460
6433
|
const { nodeId, ...methodInput } = input;
|
|
6461
6434
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6463,8 +6436,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6463
6436
|
return p.list(methodInput);
|
|
6464
6437
|
}),
|
|
6465
6438
|
delete: trpc_middleware_js_1.protectedProcedure
|
|
6466
|
-
.input(
|
|
6467
|
-
.output(
|
|
6439
|
+
.input(types_91.storageCapability.methods.delete.input.loose())
|
|
6440
|
+
.output(types_91.storageCapability.methods.delete.output)
|
|
6468
6441
|
.mutation(async ({ input, ctx }) => {
|
|
6469
6442
|
const { nodeId, ...methodInput } = input;
|
|
6470
6443
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6472,8 +6445,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6472
6445
|
return p.delete(methodInput);
|
|
6473
6446
|
}),
|
|
6474
6447
|
getAvailableSpace: trpc_middleware_js_1.protectedProcedure
|
|
6475
|
-
.input(
|
|
6476
|
-
.output(
|
|
6448
|
+
.input(types_91.storageCapability.methods.getAvailableSpace.input.loose())
|
|
6449
|
+
.output(types_91.storageCapability.methods.getAvailableSpace.output)
|
|
6477
6450
|
.query(async ({ input, ctx }) => {
|
|
6478
6451
|
const { nodeId, ...methodInput } = input;
|
|
6479
6452
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6481,8 +6454,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6481
6454
|
return p.getAvailableSpace(methodInput);
|
|
6482
6455
|
}),
|
|
6483
6456
|
beginUpload: trpc_middleware_js_1.protectedProcedure
|
|
6484
|
-
.input(
|
|
6485
|
-
.output(
|
|
6457
|
+
.input(types_91.storageCapability.methods.beginUpload.input.loose())
|
|
6458
|
+
.output(types_91.storageCapability.methods.beginUpload.output)
|
|
6486
6459
|
.mutation(async ({ input, ctx }) => {
|
|
6487
6460
|
const { nodeId, ...methodInput } = input;
|
|
6488
6461
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6490,8 +6463,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6490
6463
|
return p.beginUpload(methodInput);
|
|
6491
6464
|
}),
|
|
6492
6465
|
writeChunk: trpc_middleware_js_1.protectedProcedure
|
|
6493
|
-
.input(
|
|
6494
|
-
.output(
|
|
6466
|
+
.input(types_91.storageCapability.methods.writeChunk.input.loose())
|
|
6467
|
+
.output(types_91.storageCapability.methods.writeChunk.output)
|
|
6495
6468
|
.mutation(async ({ input, ctx }) => {
|
|
6496
6469
|
const { nodeId, ...methodInput } = input;
|
|
6497
6470
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6499,8 +6472,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6499
6472
|
return p.writeChunk(methodInput);
|
|
6500
6473
|
}),
|
|
6501
6474
|
finalizeUpload: trpc_middleware_js_1.protectedProcedure
|
|
6502
|
-
.input(
|
|
6503
|
-
.output(
|
|
6475
|
+
.input(types_91.storageCapability.methods.finalizeUpload.input.loose())
|
|
6476
|
+
.output(types_91.storageCapability.methods.finalizeUpload.output)
|
|
6504
6477
|
.mutation(async ({ input, ctx }) => {
|
|
6505
6478
|
const { nodeId, ...methodInput } = input;
|
|
6506
6479
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6508,8 +6481,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6508
6481
|
return p.finalizeUpload(methodInput);
|
|
6509
6482
|
}),
|
|
6510
6483
|
abortUpload: trpc_middleware_js_1.protectedProcedure
|
|
6511
|
-
.input(
|
|
6512
|
-
.output(
|
|
6484
|
+
.input(types_91.storageCapability.methods.abortUpload.input.loose())
|
|
6485
|
+
.output(types_91.storageCapability.methods.abortUpload.output)
|
|
6513
6486
|
.mutation(async ({ input, ctx }) => {
|
|
6514
6487
|
const { nodeId, ...methodInput } = input;
|
|
6515
6488
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6517,8 +6490,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6517
6490
|
return p.abortUpload(methodInput);
|
|
6518
6491
|
}),
|
|
6519
6492
|
beginDownload: trpc_middleware_js_1.protectedProcedure
|
|
6520
|
-
.input(
|
|
6521
|
-
.output(
|
|
6493
|
+
.input(types_91.storageCapability.methods.beginDownload.input.loose())
|
|
6494
|
+
.output(types_91.storageCapability.methods.beginDownload.output)
|
|
6522
6495
|
.mutation(async ({ input, ctx }) => {
|
|
6523
6496
|
const { nodeId, ...methodInput } = input;
|
|
6524
6497
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6526,8 +6499,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6526
6499
|
return p.beginDownload(methodInput);
|
|
6527
6500
|
}),
|
|
6528
6501
|
readChunk: trpc_middleware_js_1.protectedProcedure
|
|
6529
|
-
.input(
|
|
6530
|
-
.output(
|
|
6502
|
+
.input(types_91.storageCapability.methods.readChunk.input.loose())
|
|
6503
|
+
.output(types_91.storageCapability.methods.readChunk.output)
|
|
6531
6504
|
.query(async ({ input, ctx }) => {
|
|
6532
6505
|
const { nodeId, ...methodInput } = input;
|
|
6533
6506
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6535,8 +6508,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6535
6508
|
return p.readChunk(methodInput);
|
|
6536
6509
|
}),
|
|
6537
6510
|
endDownload: trpc_middleware_js_1.protectedProcedure
|
|
6538
|
-
.input(
|
|
6539
|
-
.output(
|
|
6511
|
+
.input(types_91.storageCapability.methods.endDownload.input.loose())
|
|
6512
|
+
.output(types_91.storageCapability.methods.endDownload.output)
|
|
6540
6513
|
.mutation(async ({ input, ctx }) => {
|
|
6541
6514
|
const { nodeId, ...methodInput } = input;
|
|
6542
6515
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6544,8 +6517,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6544
6517
|
return p.endDownload(methodInput);
|
|
6545
6518
|
}),
|
|
6546
6519
|
listLocations: trpc_middleware_js_1.protectedProcedure
|
|
6547
|
-
.input(
|
|
6548
|
-
.output(
|
|
6520
|
+
.input(types_91.storageCapability.methods.listLocations.input.loose())
|
|
6521
|
+
.output(types_91.storageCapability.methods.listLocations.output)
|
|
6549
6522
|
.query(async ({ input, ctx }) => {
|
|
6550
6523
|
const { nodeId, ...methodInput } = input;
|
|
6551
6524
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6553,8 +6526,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6553
6526
|
return p.listLocations(methodInput);
|
|
6554
6527
|
}),
|
|
6555
6528
|
getDefaultLocation: trpc_middleware_js_1.protectedProcedure
|
|
6556
|
-
.input(
|
|
6557
|
-
.output(
|
|
6529
|
+
.input(types_91.storageCapability.methods.getDefaultLocation.input.loose())
|
|
6530
|
+
.output(types_91.storageCapability.methods.getDefaultLocation.output)
|
|
6558
6531
|
.query(async ({ input, ctx }) => {
|
|
6559
6532
|
const { nodeId, ...methodInput } = input;
|
|
6560
6533
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6563,14 +6536,14 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6563
6536
|
}),
|
|
6564
6537
|
listLocationDeclarations: trpc_middleware_js_1.protectedProcedure
|
|
6565
6538
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
6566
|
-
.output(
|
|
6539
|
+
.output(types_91.storageCapability.methods.listLocationDeclarations.output)
|
|
6567
6540
|
.query(async ({ input, ctx }) => {
|
|
6568
6541
|
const p = resolveProvider('storage', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6569
6542
|
return p.listLocationDeclarations();
|
|
6570
6543
|
}),
|
|
6571
6544
|
upsertLocation: trpc_middleware_js_1.adminProcedure
|
|
6572
|
-
.input(
|
|
6573
|
-
.output(
|
|
6545
|
+
.input(types_91.storageCapability.methods.upsertLocation.input.loose())
|
|
6546
|
+
.output(types_91.storageCapability.methods.upsertLocation.output)
|
|
6574
6547
|
.mutation(async ({ input, ctx }) => {
|
|
6575
6548
|
const { nodeId, ...methodInput } = input;
|
|
6576
6549
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6578,8 +6551,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6578
6551
|
return p.upsertLocation(methodInput);
|
|
6579
6552
|
}),
|
|
6580
6553
|
deleteLocation: trpc_middleware_js_1.adminProcedure
|
|
6581
|
-
.input(
|
|
6582
|
-
.output(
|
|
6554
|
+
.input(types_91.storageCapability.methods.deleteLocation.input.loose())
|
|
6555
|
+
.output(types_91.storageCapability.methods.deleteLocation.output)
|
|
6583
6556
|
.mutation(async ({ input, ctx }) => {
|
|
6584
6557
|
const { nodeId, ...methodInput } = input;
|
|
6585
6558
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6587,8 +6560,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6587
6560
|
return p.deleteLocation(methodInput);
|
|
6588
6561
|
}),
|
|
6589
6562
|
testLocation: trpc_middleware_js_1.adminProcedure
|
|
6590
|
-
.input(
|
|
6591
|
-
.output(
|
|
6563
|
+
.input(types_91.storageCapability.methods.testLocation.input.loose())
|
|
6564
|
+
.output(types_91.storageCapability.methods.testLocation.output)
|
|
6592
6565
|
.query(async ({ input, ctx }) => {
|
|
6593
6566
|
const { nodeId, ...methodInput } = input;
|
|
6594
6567
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6597,14 +6570,14 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6597
6570
|
}),
|
|
6598
6571
|
listProviders: trpc_middleware_js_1.protectedProcedure
|
|
6599
6572
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
6600
|
-
.output(
|
|
6573
|
+
.output(types_91.storageCapability.methods.listProviders.output)
|
|
6601
6574
|
.query(async ({ input, ctx }) => {
|
|
6602
6575
|
const p = resolveProvider('storage', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6603
6576
|
return p.listProviders();
|
|
6604
6577
|
}),
|
|
6605
6578
|
testConfig: trpc_middleware_js_1.adminProcedure
|
|
6606
|
-
.input(
|
|
6607
|
-
.output(
|
|
6579
|
+
.input(types_91.storageCapability.methods.testConfig.input.loose())
|
|
6580
|
+
.output(types_91.storageCapability.methods.testConfig.output)
|
|
6608
6581
|
.query(async ({ input, ctx }) => {
|
|
6609
6582
|
const { nodeId, ...methodInput } = input;
|
|
6610
6583
|
const p = resolveProvider('storage', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6616,8 +6589,8 @@ function createCapRouter_storage(getProvider, createRemoteProxy) {
|
|
|
6616
6589
|
function createCapRouter_storageEvictable(getProvider, createRemoteProxy) {
|
|
6617
6590
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6618
6591
|
getEvictableUsage: trpc_middleware_js_1.protectedProcedure
|
|
6619
|
-
.input(
|
|
6620
|
-
.output(
|
|
6592
|
+
.input(types_92.storageEvictableCapability.methods.getEvictableUsage.input.loose())
|
|
6593
|
+
.output(types_92.storageEvictableCapability.methods.getEvictableUsage.output)
|
|
6621
6594
|
.query(async ({ input, ctx }) => {
|
|
6622
6595
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6623
6596
|
const p = resolveProvider('storage-evictable', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6625,8 +6598,8 @@ function createCapRouter_storageEvictable(getProvider, createRemoteProxy) {
|
|
|
6625
6598
|
return p.getEvictableUsage(methodInput);
|
|
6626
6599
|
}),
|
|
6627
6600
|
evict: trpc_middleware_js_1.protectedProcedure
|
|
6628
|
-
.input(
|
|
6629
|
-
.output(
|
|
6601
|
+
.input(types_92.storageEvictableCapability.methods.evict.input.loose())
|
|
6602
|
+
.output(types_92.storageEvictableCapability.methods.evict.output)
|
|
6630
6603
|
.mutation(async ({ input, ctx }) => {
|
|
6631
6604
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6632
6605
|
const p = resolveProvider('storage-evictable', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6639,14 +6612,14 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6639
6612
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
6640
6613
|
getProviderInfo: trpc_middleware_js_1.protectedProcedure
|
|
6641
6614
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
6642
|
-
.output(
|
|
6615
|
+
.output(types_93.storageProviderCapability.methods.getProviderInfo.output)
|
|
6643
6616
|
.query(async ({ input, ctx }) => {
|
|
6644
6617
|
const p = resolveProvider('storage-provider', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
6645
6618
|
return p.getProviderInfo();
|
|
6646
6619
|
}),
|
|
6647
6620
|
testLocation: trpc_middleware_js_1.adminProcedure
|
|
6648
|
-
.input(
|
|
6649
|
-
.output(
|
|
6621
|
+
.input(types_93.storageProviderCapability.methods.testLocation.input.loose())
|
|
6622
|
+
.output(types_93.storageProviderCapability.methods.testLocation.output)
|
|
6650
6623
|
.query(async ({ input, ctx }) => {
|
|
6651
6624
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6652
6625
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6654,8 +6627,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6654
6627
|
return p.testLocation(methodInput);
|
|
6655
6628
|
}),
|
|
6656
6629
|
resolve: trpc_middleware_js_1.protectedProcedure
|
|
6657
|
-
.input(
|
|
6658
|
-
.output(
|
|
6630
|
+
.input(types_93.storageProviderCapability.methods.resolve.input.loose())
|
|
6631
|
+
.output(types_93.storageProviderCapability.methods.resolve.output)
|
|
6659
6632
|
.query(async ({ input, ctx }) => {
|
|
6660
6633
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6661
6634
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6663,8 +6636,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6663
6636
|
return p.resolve(methodInput);
|
|
6664
6637
|
}),
|
|
6665
6638
|
write: trpc_middleware_js_1.protectedProcedure
|
|
6666
|
-
.input(
|
|
6667
|
-
.output(
|
|
6639
|
+
.input(types_93.storageProviderCapability.methods.write.input.loose())
|
|
6640
|
+
.output(types_93.storageProviderCapability.methods.write.output)
|
|
6668
6641
|
.mutation(async ({ input, ctx }) => {
|
|
6669
6642
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6670
6643
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6672,8 +6645,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6672
6645
|
return p.write(methodInput);
|
|
6673
6646
|
}),
|
|
6674
6647
|
read: trpc_middleware_js_1.protectedProcedure
|
|
6675
|
-
.input(
|
|
6676
|
-
.output(
|
|
6648
|
+
.input(types_93.storageProviderCapability.methods.read.input.loose())
|
|
6649
|
+
.output(types_93.storageProviderCapability.methods.read.output)
|
|
6677
6650
|
.query(async ({ input, ctx }) => {
|
|
6678
6651
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6679
6652
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6681,8 +6654,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6681
6654
|
return p.read(methodInput);
|
|
6682
6655
|
}),
|
|
6683
6656
|
exists: trpc_middleware_js_1.protectedProcedure
|
|
6684
|
-
.input(
|
|
6685
|
-
.output(
|
|
6657
|
+
.input(types_93.storageProviderCapability.methods.exists.input.loose())
|
|
6658
|
+
.output(types_93.storageProviderCapability.methods.exists.output)
|
|
6686
6659
|
.query(async ({ input, ctx }) => {
|
|
6687
6660
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6688
6661
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6690,8 +6663,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6690
6663
|
return p.exists(methodInput);
|
|
6691
6664
|
}),
|
|
6692
6665
|
list: trpc_middleware_js_1.protectedProcedure
|
|
6693
|
-
.input(
|
|
6694
|
-
.output(
|
|
6666
|
+
.input(types_93.storageProviderCapability.methods.list.input.loose())
|
|
6667
|
+
.output(types_93.storageProviderCapability.methods.list.output)
|
|
6695
6668
|
.query(async ({ input, ctx }) => {
|
|
6696
6669
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6697
6670
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6699,8 +6672,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6699
6672
|
return p.list(methodInput);
|
|
6700
6673
|
}),
|
|
6701
6674
|
delete: trpc_middleware_js_1.protectedProcedure
|
|
6702
|
-
.input(
|
|
6703
|
-
.output(
|
|
6675
|
+
.input(types_93.storageProviderCapability.methods.delete.input.loose())
|
|
6676
|
+
.output(types_93.storageProviderCapability.methods.delete.output)
|
|
6704
6677
|
.mutation(async ({ input, ctx }) => {
|
|
6705
6678
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6706
6679
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6708,8 +6681,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6708
6681
|
return p.delete(methodInput);
|
|
6709
6682
|
}),
|
|
6710
6683
|
getAvailableSpace: trpc_middleware_js_1.protectedProcedure
|
|
6711
|
-
.input(
|
|
6712
|
-
.output(
|
|
6684
|
+
.input(types_93.storageProviderCapability.methods.getAvailableSpace.input.loose())
|
|
6685
|
+
.output(types_93.storageProviderCapability.methods.getAvailableSpace.output)
|
|
6713
6686
|
.query(async ({ input, ctx }) => {
|
|
6714
6687
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6715
6688
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6717,8 +6690,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6717
6690
|
return p.getAvailableSpace(methodInput);
|
|
6718
6691
|
}),
|
|
6719
6692
|
beginUpload: trpc_middleware_js_1.protectedProcedure
|
|
6720
|
-
.input(
|
|
6721
|
-
.output(
|
|
6693
|
+
.input(types_93.storageProviderCapability.methods.beginUpload.input.loose())
|
|
6694
|
+
.output(types_93.storageProviderCapability.methods.beginUpload.output)
|
|
6722
6695
|
.mutation(async ({ input, ctx }) => {
|
|
6723
6696
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6724
6697
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6726,8 +6699,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6726
6699
|
return p.beginUpload(methodInput);
|
|
6727
6700
|
}),
|
|
6728
6701
|
writeChunk: trpc_middleware_js_1.protectedProcedure
|
|
6729
|
-
.input(
|
|
6730
|
-
.output(
|
|
6702
|
+
.input(types_93.storageProviderCapability.methods.writeChunk.input.loose())
|
|
6703
|
+
.output(types_93.storageProviderCapability.methods.writeChunk.output)
|
|
6731
6704
|
.mutation(async ({ input, ctx }) => {
|
|
6732
6705
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6733
6706
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6735,8 +6708,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6735
6708
|
return p.writeChunk(methodInput);
|
|
6736
6709
|
}),
|
|
6737
6710
|
finalizeUpload: trpc_middleware_js_1.protectedProcedure
|
|
6738
|
-
.input(
|
|
6739
|
-
.output(
|
|
6711
|
+
.input(types_93.storageProviderCapability.methods.finalizeUpload.input.loose())
|
|
6712
|
+
.output(types_93.storageProviderCapability.methods.finalizeUpload.output)
|
|
6740
6713
|
.mutation(async ({ input, ctx }) => {
|
|
6741
6714
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6742
6715
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6744,8 +6717,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6744
6717
|
return p.finalizeUpload(methodInput);
|
|
6745
6718
|
}),
|
|
6746
6719
|
abortUpload: trpc_middleware_js_1.protectedProcedure
|
|
6747
|
-
.input(
|
|
6748
|
-
.output(
|
|
6720
|
+
.input(types_93.storageProviderCapability.methods.abortUpload.input.loose())
|
|
6721
|
+
.output(types_93.storageProviderCapability.methods.abortUpload.output)
|
|
6749
6722
|
.mutation(async ({ input, ctx }) => {
|
|
6750
6723
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6751
6724
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6753,8 +6726,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6753
6726
|
return p.abortUpload(methodInput);
|
|
6754
6727
|
}),
|
|
6755
6728
|
beginDownload: trpc_middleware_js_1.protectedProcedure
|
|
6756
|
-
.input(
|
|
6757
|
-
.output(
|
|
6729
|
+
.input(types_93.storageProviderCapability.methods.beginDownload.input.loose())
|
|
6730
|
+
.output(types_93.storageProviderCapability.methods.beginDownload.output)
|
|
6758
6731
|
.mutation(async ({ input, ctx }) => {
|
|
6759
6732
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6760
6733
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6762,8 +6735,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6762
6735
|
return p.beginDownload(methodInput);
|
|
6763
6736
|
}),
|
|
6764
6737
|
readChunk: trpc_middleware_js_1.protectedProcedure
|
|
6765
|
-
.input(
|
|
6766
|
-
.output(
|
|
6738
|
+
.input(types_93.storageProviderCapability.methods.readChunk.input.loose())
|
|
6739
|
+
.output(types_93.storageProviderCapability.methods.readChunk.output)
|
|
6767
6740
|
.query(async ({ input, ctx }) => {
|
|
6768
6741
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6769
6742
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6771,8 +6744,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
6771
6744
|
return p.readChunk(methodInput);
|
|
6772
6745
|
}),
|
|
6773
6746
|
endDownload: trpc_middleware_js_1.protectedProcedure
|
|
6774
|
-
.input(
|
|
6775
|
-
.output(
|
|
6747
|
+
.input(types_93.storageProviderCapability.methods.endDownload.input.loose())
|
|
6748
|
+
.output(types_93.storageProviderCapability.methods.endDownload.output)
|
|
6776
6749
|
.mutation(async ({ input, ctx }) => {
|
|
6777
6750
|
const { nodeId, addonId, ...methodInput } = input;
|
|
6778
6751
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -6811,8 +6784,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6811
6784
|
return p.applyDeviceSettingsPatch(methodInput);
|
|
6812
6785
|
}),
|
|
6813
6786
|
publishCameraStream: trpc_middleware_js_1.adminProcedure
|
|
6814
|
-
.input(
|
|
6815
|
-
.output(
|
|
6787
|
+
.input(types_94.streamBrokerCapability.methods.publishCameraStream.input.loose())
|
|
6788
|
+
.output(types_94.streamBrokerCapability.methods.publishCameraStream.output)
|
|
6816
6789
|
.mutation(async ({ input, ctx }) => {
|
|
6817
6790
|
const { nodeId, ...methodInput } = input;
|
|
6818
6791
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6820,8 +6793,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6820
6793
|
return p.publishCameraStream(methodInput);
|
|
6821
6794
|
}),
|
|
6822
6795
|
retractCameraStream: trpc_middleware_js_1.adminProcedure
|
|
6823
|
-
.input(
|
|
6824
|
-
.output(
|
|
6796
|
+
.input(types_94.streamBrokerCapability.methods.retractCameraStream.input.loose())
|
|
6797
|
+
.output(types_94.streamBrokerCapability.methods.retractCameraStream.output)
|
|
6825
6798
|
.mutation(async ({ input, ctx }) => {
|
|
6826
6799
|
const { nodeId, ...methodInput } = input;
|
|
6827
6800
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6829,8 +6802,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6829
6802
|
return p.retractCameraStream(methodInput);
|
|
6830
6803
|
}),
|
|
6831
6804
|
assignProfile: trpc_middleware_js_1.adminProcedure
|
|
6832
|
-
.input(
|
|
6833
|
-
.output(
|
|
6805
|
+
.input(types_94.streamBrokerCapability.methods.assignProfile.input.loose())
|
|
6806
|
+
.output(types_94.streamBrokerCapability.methods.assignProfile.output)
|
|
6834
6807
|
.mutation(async ({ input, ctx }) => {
|
|
6835
6808
|
const { nodeId, ...methodInput } = input;
|
|
6836
6809
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6838,8 +6811,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6838
6811
|
return p.assignProfile(methodInput);
|
|
6839
6812
|
}),
|
|
6840
6813
|
unassignProfile: trpc_middleware_js_1.adminProcedure
|
|
6841
|
-
.input(
|
|
6842
|
-
.output(
|
|
6814
|
+
.input(types_94.streamBrokerCapability.methods.unassignProfile.input.loose())
|
|
6815
|
+
.output(types_94.streamBrokerCapability.methods.unassignProfile.output)
|
|
6843
6816
|
.mutation(async ({ input, ctx }) => {
|
|
6844
6817
|
const { nodeId, ...methodInput } = input;
|
|
6845
6818
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6848,21 +6821,21 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6848
6821
|
}),
|
|
6849
6822
|
listAllCameraStreams: trpc_middleware_js_1.protectedProcedure
|
|
6850
6823
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
6851
|
-
.output(
|
|
6824
|
+
.output(types_94.streamBrokerCapability.methods.listAllCameraStreams.output)
|
|
6852
6825
|
.query(async ({ input, ctx }) => {
|
|
6853
6826
|
const p = resolveProvider('stream-broker', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6854
6827
|
return p.listAllCameraStreams();
|
|
6855
6828
|
}),
|
|
6856
6829
|
listAllProfileSlots: trpc_middleware_js_1.protectedProcedure
|
|
6857
6830
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
6858
|
-
.output(
|
|
6831
|
+
.output(types_94.streamBrokerCapability.methods.listAllProfileSlots.output)
|
|
6859
6832
|
.query(async ({ input, ctx }) => {
|
|
6860
6833
|
const p = resolveProvider('stream-broker', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
6861
6834
|
return p.listAllProfileSlots();
|
|
6862
6835
|
}),
|
|
6863
6836
|
getBrokerStats: trpc_middleware_js_1.protectedProcedure
|
|
6864
|
-
.input(
|
|
6865
|
-
.output(
|
|
6837
|
+
.input(types_94.streamBrokerCapability.methods.getBrokerStats.input.loose())
|
|
6838
|
+
.output(types_94.streamBrokerCapability.methods.getBrokerStats.output)
|
|
6866
6839
|
.query(async ({ input, ctx }) => {
|
|
6867
6840
|
const { nodeId, ...methodInput } = input;
|
|
6868
6841
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6870,8 +6843,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6870
6843
|
return p.getBrokerStats(methodInput);
|
|
6871
6844
|
}),
|
|
6872
6845
|
probeStream: trpc_middleware_js_1.adminProcedure
|
|
6873
|
-
.input(
|
|
6874
|
-
.output(
|
|
6846
|
+
.input(types_94.streamBrokerCapability.methods.probeStream.input.loose())
|
|
6847
|
+
.output(types_94.streamBrokerCapability.methods.probeStream.output)
|
|
6875
6848
|
.mutation(async ({ input, ctx }) => {
|
|
6876
6849
|
const { nodeId, ...methodInput } = input;
|
|
6877
6850
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6879,8 +6852,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6879
6852
|
return p.probeStream(methodInput);
|
|
6880
6853
|
}),
|
|
6881
6854
|
listClients: trpc_middleware_js_1.protectedProcedure
|
|
6882
|
-
.input(
|
|
6883
|
-
.output(
|
|
6855
|
+
.input(types_94.streamBrokerCapability.methods.listClients.input.loose())
|
|
6856
|
+
.output(types_94.streamBrokerCapability.methods.listClients.output)
|
|
6884
6857
|
.query(async ({ input, ctx }) => {
|
|
6885
6858
|
const { nodeId, ...methodInput } = input;
|
|
6886
6859
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6888,8 +6861,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6888
6861
|
return p.listClients(methodInput);
|
|
6889
6862
|
}),
|
|
6890
6863
|
killClient: trpc_middleware_js_1.adminProcedure
|
|
6891
|
-
.input(
|
|
6892
|
-
.output(
|
|
6864
|
+
.input(types_94.streamBrokerCapability.methods.killClient.input.loose())
|
|
6865
|
+
.output(types_94.streamBrokerCapability.methods.killClient.output)
|
|
6893
6866
|
.mutation(async ({ input, ctx }) => {
|
|
6894
6867
|
const { nodeId, ...methodInput } = input;
|
|
6895
6868
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6897,8 +6870,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6897
6870
|
return p.killClient(methodInput);
|
|
6898
6871
|
}),
|
|
6899
6872
|
restartProfile: trpc_middleware_js_1.adminProcedure
|
|
6900
|
-
.input(
|
|
6901
|
-
.output(
|
|
6873
|
+
.input(types_94.streamBrokerCapability.methods.restartProfile.input.loose())
|
|
6874
|
+
.output(types_94.streamBrokerCapability.methods.restartProfile.output)
|
|
6902
6875
|
.mutation(async ({ input, ctx }) => {
|
|
6903
6876
|
const { nodeId, ...methodInput } = input;
|
|
6904
6877
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6906,8 +6879,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6906
6879
|
return p.restartProfile(methodInput);
|
|
6907
6880
|
}),
|
|
6908
6881
|
getStreamUrl: trpc_middleware_js_1.protectedProcedure
|
|
6909
|
-
.input(
|
|
6910
|
-
.output(
|
|
6882
|
+
.input(types_94.streamBrokerCapability.methods.getStreamUrl.input.loose())
|
|
6883
|
+
.output(types_94.streamBrokerCapability.methods.getStreamUrl.output)
|
|
6911
6884
|
.query(async ({ input, ctx }) => {
|
|
6912
6885
|
const { nodeId, ...methodInput } = input;
|
|
6913
6886
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6915,8 +6888,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6915
6888
|
return p.getStreamUrl(methodInput);
|
|
6916
6889
|
}),
|
|
6917
6890
|
getStreamWithCodec: trpc_middleware_js_1.adminProcedure
|
|
6918
|
-
.input(
|
|
6919
|
-
.output(
|
|
6891
|
+
.input(types_94.streamBrokerCapability.methods.getStreamWithCodec.input.loose())
|
|
6892
|
+
.output(types_94.streamBrokerCapability.methods.getStreamWithCodec.output)
|
|
6920
6893
|
.mutation(async ({ input, ctx }) => {
|
|
6921
6894
|
const { nodeId, ...methodInput } = input;
|
|
6922
6895
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6924,8 +6897,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6924
6897
|
return p.getStreamWithCodec(methodInput);
|
|
6925
6898
|
}),
|
|
6926
6899
|
releaseStreamWithCodec: trpc_middleware_js_1.adminProcedure
|
|
6927
|
-
.input(
|
|
6928
|
-
.output(
|
|
6900
|
+
.input(types_94.streamBrokerCapability.methods.releaseStreamWithCodec.input.loose())
|
|
6901
|
+
.output(types_94.streamBrokerCapability.methods.releaseStreamWithCodec.output)
|
|
6929
6902
|
.mutation(async ({ input, ctx }) => {
|
|
6930
6903
|
const { nodeId, ...methodInput } = input;
|
|
6931
6904
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6933,8 +6906,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6933
6906
|
return p.releaseStreamWithCodec(methodInput);
|
|
6934
6907
|
}),
|
|
6935
6908
|
subscribeAudioChunks: trpc_middleware_js_1.protectedProcedure
|
|
6936
|
-
.input(
|
|
6937
|
-
.output(
|
|
6909
|
+
.input(types_94.streamBrokerCapability.methods.subscribeAudioChunks.input.loose())
|
|
6910
|
+
.output(types_94.streamBrokerCapability.methods.subscribeAudioChunks.output)
|
|
6938
6911
|
.mutation(async ({ input, ctx }) => {
|
|
6939
6912
|
const { nodeId, ...methodInput } = input;
|
|
6940
6913
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6942,8 +6915,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6942
6915
|
return p.subscribeAudioChunks(methodInput);
|
|
6943
6916
|
}),
|
|
6944
6917
|
pullAudioChunks: trpc_middleware_js_1.protectedProcedure
|
|
6945
|
-
.input(
|
|
6946
|
-
.output(
|
|
6918
|
+
.input(types_94.streamBrokerCapability.methods.pullAudioChunks.input.loose())
|
|
6919
|
+
.output(types_94.streamBrokerCapability.methods.pullAudioChunks.output)
|
|
6947
6920
|
.query(async ({ input, ctx }) => {
|
|
6948
6921
|
const { nodeId, ...methodInput } = input;
|
|
6949
6922
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6951,8 +6924,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6951
6924
|
return p.pullAudioChunks(methodInput);
|
|
6952
6925
|
}),
|
|
6953
6926
|
unsubscribeAudioChunks: trpc_middleware_js_1.protectedProcedure
|
|
6954
|
-
.input(
|
|
6955
|
-
.output(
|
|
6927
|
+
.input(types_94.streamBrokerCapability.methods.unsubscribeAudioChunks.input.loose())
|
|
6928
|
+
.output(types_94.streamBrokerCapability.methods.unsubscribeAudioChunks.output)
|
|
6956
6929
|
.mutation(async ({ input, ctx }) => {
|
|
6957
6930
|
const { nodeId, ...methodInput } = input;
|
|
6958
6931
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6960,8 +6933,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6960
6933
|
return p.unsubscribeAudioChunks(methodInput);
|
|
6961
6934
|
}),
|
|
6962
6935
|
subscribeFrames: trpc_middleware_js_1.protectedProcedure
|
|
6963
|
-
.input(
|
|
6964
|
-
.output(
|
|
6936
|
+
.input(types_94.streamBrokerCapability.methods.subscribeFrames.input.loose())
|
|
6937
|
+
.output(types_94.streamBrokerCapability.methods.subscribeFrames.output)
|
|
6965
6938
|
.mutation(async ({ input, ctx }) => {
|
|
6966
6939
|
const { nodeId, ...methodInput } = input;
|
|
6967
6940
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6969,8 +6942,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6969
6942
|
return p.subscribeFrames(methodInput);
|
|
6970
6943
|
}),
|
|
6971
6944
|
pullFrameHandles: trpc_middleware_js_1.protectedProcedure
|
|
6972
|
-
.input(
|
|
6973
|
-
.output(
|
|
6945
|
+
.input(types_94.streamBrokerCapability.methods.pullFrameHandles.input.loose())
|
|
6946
|
+
.output(types_94.streamBrokerCapability.methods.pullFrameHandles.output)
|
|
6974
6947
|
.query(async ({ input, ctx }) => {
|
|
6975
6948
|
const { nodeId, ...methodInput } = input;
|
|
6976
6949
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6978,8 +6951,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6978
6951
|
return p.pullFrameHandles(methodInput);
|
|
6979
6952
|
}),
|
|
6980
6953
|
unsubscribeFrames: trpc_middleware_js_1.protectedProcedure
|
|
6981
|
-
.input(
|
|
6982
|
-
.output(
|
|
6954
|
+
.input(types_94.streamBrokerCapability.methods.unsubscribeFrames.input.loose())
|
|
6955
|
+
.output(types_94.streamBrokerCapability.methods.unsubscribeFrames.output)
|
|
6983
6956
|
.mutation(async ({ input, ctx }) => {
|
|
6984
6957
|
const { nodeId, ...methodInput } = input;
|
|
6985
6958
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6987,8 +6960,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6987
6960
|
return p.unsubscribeFrames(methodInput);
|
|
6988
6961
|
}),
|
|
6989
6962
|
setPreBufferDuration: trpc_middleware_js_1.adminProcedure
|
|
6990
|
-
.input(
|
|
6991
|
-
.output(
|
|
6963
|
+
.input(types_94.streamBrokerCapability.methods.setPreBufferDuration.input.loose())
|
|
6964
|
+
.output(types_94.streamBrokerCapability.methods.setPreBufferDuration.output)
|
|
6992
6965
|
.mutation(async ({ input, ctx }) => {
|
|
6993
6966
|
const { nodeId, ...methodInput } = input;
|
|
6994
6967
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -6996,8 +6969,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
6996
6969
|
return p.setPreBufferDuration(methodInput);
|
|
6997
6970
|
}),
|
|
6998
6971
|
getPreBufferInfo: trpc_middleware_js_1.protectedProcedure
|
|
6999
|
-
.input(
|
|
7000
|
-
.output(
|
|
6972
|
+
.input(types_94.streamBrokerCapability.methods.getPreBufferInfo.input.loose())
|
|
6973
|
+
.output(types_94.streamBrokerCapability.methods.getPreBufferInfo.output)
|
|
7001
6974
|
.query(async ({ input, ctx }) => {
|
|
7002
6975
|
const { nodeId, ...methodInput } = input;
|
|
7003
6976
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7006,14 +6979,14 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
7006
6979
|
}),
|
|
7007
6980
|
getRtspPort: trpc_middleware_js_1.protectedProcedure
|
|
7008
6981
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7009
|
-
.output(
|
|
6982
|
+
.output(types_94.streamBrokerCapability.methods.getRtspPort.output)
|
|
7010
6983
|
.query(async ({ input, ctx }) => {
|
|
7011
6984
|
const p = resolveProvider('stream-broker', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7012
6985
|
return p.getRtspPort();
|
|
7013
6986
|
}),
|
|
7014
6987
|
getAllRtspEntries: trpc_middleware_js_1.protectedProcedure
|
|
7015
|
-
.input(
|
|
7016
|
-
.output(
|
|
6988
|
+
.input(types_94.streamBrokerCapability.methods.getAllRtspEntries.input.loose())
|
|
6989
|
+
.output(types_94.streamBrokerCapability.methods.getAllRtspEntries.output)
|
|
7017
6990
|
.query(async ({ input, ctx }) => {
|
|
7018
6991
|
const { nodeId, ...methodInput } = input;
|
|
7019
6992
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7021,8 +6994,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
7021
6994
|
return p.getAllRtspEntries(methodInput);
|
|
7022
6995
|
}),
|
|
7023
6996
|
getRtspEntry: trpc_middleware_js_1.protectedProcedure
|
|
7024
|
-
.input(
|
|
7025
|
-
.output(
|
|
6997
|
+
.input(types_94.streamBrokerCapability.methods.getRtspEntry.input.loose())
|
|
6998
|
+
.output(types_94.streamBrokerCapability.methods.getRtspEntry.output)
|
|
7026
6999
|
.query(async ({ input, ctx }) => {
|
|
7027
7000
|
const { nodeId, ...methodInput } = input;
|
|
7028
7001
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7030,8 +7003,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
7030
7003
|
return p.getRtspEntry(methodInput);
|
|
7031
7004
|
}),
|
|
7032
7005
|
regenerateRtspToken: trpc_middleware_js_1.adminProcedure
|
|
7033
|
-
.input(
|
|
7034
|
-
.output(
|
|
7006
|
+
.input(types_94.streamBrokerCapability.methods.regenerateRtspToken.input.loose())
|
|
7007
|
+
.output(types_94.streamBrokerCapability.methods.regenerateRtspToken.output)
|
|
7035
7008
|
.mutation(async ({ input, ctx }) => {
|
|
7036
7009
|
const { nodeId, ...methodInput } = input;
|
|
7037
7010
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7039,8 +7012,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
7039
7012
|
return p.regenerateRtspToken(methodInput);
|
|
7040
7013
|
}),
|
|
7041
7014
|
setRtspEnabled: trpc_middleware_js_1.adminProcedure
|
|
7042
|
-
.input(
|
|
7043
|
-
.output(
|
|
7015
|
+
.input(types_94.streamBrokerCapability.methods.setRtspEnabled.input.loose())
|
|
7016
|
+
.output(types_94.streamBrokerCapability.methods.setRtspEnabled.output)
|
|
7044
7017
|
.mutation(async ({ input, ctx }) => {
|
|
7045
7018
|
const { nodeId, ...methodInput } = input;
|
|
7046
7019
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7048,8 +7021,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
7048
7021
|
return p.setRtspEnabled(methodInput);
|
|
7049
7022
|
}),
|
|
7050
7023
|
isRtspEnabled: trpc_middleware_js_1.protectedProcedure
|
|
7051
|
-
.input(
|
|
7052
|
-
.output(
|
|
7024
|
+
.input(types_94.streamBrokerCapability.methods.isRtspEnabled.input.loose())
|
|
7025
|
+
.output(types_94.streamBrokerCapability.methods.isRtspEnabled.output)
|
|
7053
7026
|
.query(async ({ input, ctx }) => {
|
|
7054
7027
|
const { nodeId, ...methodInput } = input;
|
|
7055
7028
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7061,8 +7034,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
7061
7034
|
function createCapRouter_streamCatalog(getProvider, createRemoteProxy) {
|
|
7062
7035
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7063
7036
|
getCatalog: trpc_middleware_js_1.protectedProcedure
|
|
7064
|
-
.input(
|
|
7065
|
-
.output(
|
|
7037
|
+
.input(types_95.streamCatalogCapability.methods.getCatalog.input.loose())
|
|
7038
|
+
.output(types_95.streamCatalogCapability.methods.getCatalog.output)
|
|
7066
7039
|
.query(async ({ input, ctx }) => {
|
|
7067
7040
|
const { nodeId, ...methodInput } = input;
|
|
7068
7041
|
const p = resolveProvider('stream-catalog', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7083,8 +7056,8 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
7083
7056
|
return p.getStatus(methodInput);
|
|
7084
7057
|
}),
|
|
7085
7058
|
getOptions: trpc_middleware_js_1.protectedProcedure
|
|
7086
|
-
.input(
|
|
7087
|
-
.output(
|
|
7059
|
+
.input(types_96.streamParamsCapability.methods.getOptions.input.loose())
|
|
7060
|
+
.output(types_96.streamParamsCapability.methods.getOptions.output)
|
|
7088
7061
|
.query(async ({ input, ctx }) => {
|
|
7089
7062
|
const { nodeId, ...methodInput } = input;
|
|
7090
7063
|
const p = resolveProvider('stream-params', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7092,8 +7065,8 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
7092
7065
|
return p.getOptions(methodInput);
|
|
7093
7066
|
}),
|
|
7094
7067
|
setProfile: trpc_middleware_js_1.adminProcedure
|
|
7095
|
-
.input(
|
|
7096
|
-
.output(
|
|
7068
|
+
.input(types_96.streamParamsCapability.methods.setProfile.input.loose())
|
|
7069
|
+
.output(types_96.streamParamsCapability.methods.setProfile.output)
|
|
7097
7070
|
.mutation(async ({ input, ctx }) => {
|
|
7098
7071
|
const { nodeId, ...methodInput } = input;
|
|
7099
7072
|
const p = resolveProvider('stream-params', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7101,8 +7074,8 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
7101
7074
|
return p.setProfile(methodInput);
|
|
7102
7075
|
}),
|
|
7103
7076
|
getConfigSchema: trpc_middleware_js_1.protectedProcedure
|
|
7104
|
-
.input(
|
|
7105
|
-
.output(
|
|
7077
|
+
.input(types_96.streamParamsCapability.methods.getConfigSchema.input.loose())
|
|
7078
|
+
.output(types_96.streamParamsCapability.methods.getConfigSchema.output)
|
|
7106
7079
|
.query(async ({ input, ctx }) => {
|
|
7107
7080
|
const { nodeId, ...methodInput } = input;
|
|
7108
7081
|
const p = resolveProvider('stream-params', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7111,44 +7084,6 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
7111
7084
|
}),
|
|
7112
7085
|
});
|
|
7113
7086
|
}
|
|
7114
|
-
function createCapRouter_streamingEngine(getProvider, createRemoteProxy) {
|
|
7115
|
-
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7116
|
-
registerStream: trpc_middleware_js_1.protectedProcedure
|
|
7117
|
-
.input(types_99.streamingEngineCapability.methods.registerStream.input.loose())
|
|
7118
|
-
.output(types_99.streamingEngineCapability.methods.registerStream.output)
|
|
7119
|
-
.mutation(async ({ input, ctx }) => {
|
|
7120
|
-
const { nodeId, ...methodInput } = input;
|
|
7121
|
-
const p = resolveProvider('streaming-engine', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7122
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7123
|
-
return p.registerStream(methodInput);
|
|
7124
|
-
}),
|
|
7125
|
-
unregisterStream: trpc_middleware_js_1.protectedProcedure
|
|
7126
|
-
.input(types_99.streamingEngineCapability.methods.unregisterStream.input.loose())
|
|
7127
|
-
.output(types_99.streamingEngineCapability.methods.unregisterStream.output)
|
|
7128
|
-
.mutation(async ({ input, ctx }) => {
|
|
7129
|
-
const { nodeId, ...methodInput } = input;
|
|
7130
|
-
const p = resolveProvider('streaming-engine', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7131
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7132
|
-
return p.unregisterStream(methodInput);
|
|
7133
|
-
}),
|
|
7134
|
-
getStreamUrl: trpc_middleware_js_1.protectedProcedure
|
|
7135
|
-
.input(types_99.streamingEngineCapability.methods.getStreamUrl.input.loose())
|
|
7136
|
-
.output(types_99.streamingEngineCapability.methods.getStreamUrl.output)
|
|
7137
|
-
.query(async ({ input, ctx }) => {
|
|
7138
|
-
const { nodeId, ...methodInput } = input;
|
|
7139
|
-
const p = resolveProvider('streaming-engine', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7140
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7141
|
-
return p.getStreamUrl(methodInput);
|
|
7142
|
-
}),
|
|
7143
|
-
listStreams: trpc_middleware_js_1.protectedProcedure
|
|
7144
|
-
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7145
|
-
.output(types_99.streamingEngineCapability.methods.listStreams.output)
|
|
7146
|
-
.query(async ({ input, ctx }) => {
|
|
7147
|
-
const p = resolveProvider('streaming-engine', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7148
|
-
return p.listStreams();
|
|
7149
|
-
}),
|
|
7150
|
-
});
|
|
7151
|
-
}
|
|
7152
7087
|
function createCapRouter_switch(getProvider, createRemoteProxy) {
|
|
7153
7088
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7154
7089
|
getStatus: trpc_middleware_js_1.protectedProcedure
|
|
@@ -7161,8 +7096,8 @@ function createCapRouter_switch(getProvider, createRemoteProxy) {
|
|
|
7161
7096
|
return p.getStatus(methodInput);
|
|
7162
7097
|
}),
|
|
7163
7098
|
setState: trpc_middleware_js_1.adminProcedure
|
|
7164
|
-
.input(
|
|
7165
|
-
.output(
|
|
7099
|
+
.input(types_97.switchCapability.methods.setState.input.loose())
|
|
7100
|
+
.output(types_97.switchCapability.methods.setState.output)
|
|
7166
7101
|
.mutation(async ({ input, ctx }) => {
|
|
7167
7102
|
const { nodeId, ...methodInput } = input;
|
|
7168
7103
|
const p = resolveProvider('switch', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7175,49 +7110,49 @@ function createCapRouter_system(getProvider, createRemoteProxy) {
|
|
|
7175
7110
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7176
7111
|
info: trpc_middleware_js_1.protectedProcedure
|
|
7177
7112
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7178
|
-
.output(
|
|
7113
|
+
.output(types_98.systemCapability.methods.info.output)
|
|
7179
7114
|
.query(async ({ input, ctx }) => {
|
|
7180
7115
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7181
7116
|
return p.info();
|
|
7182
7117
|
}),
|
|
7183
7118
|
health: trpc_middleware_js_1.protectedProcedure
|
|
7184
7119
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7185
|
-
.output(
|
|
7120
|
+
.output(types_98.systemCapability.methods.health.output)
|
|
7186
7121
|
.query(async ({ input, ctx }) => {
|
|
7187
7122
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7188
7123
|
return p.health();
|
|
7189
7124
|
}),
|
|
7190
7125
|
featureFlags: trpc_middleware_js_1.protectedProcedure
|
|
7191
7126
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7192
|
-
.output(
|
|
7127
|
+
.output(types_98.systemCapability.methods.featureFlags.output)
|
|
7193
7128
|
.query(async ({ input, ctx }) => {
|
|
7194
7129
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7195
7130
|
return p.featureFlags();
|
|
7196
7131
|
}),
|
|
7197
7132
|
networkAddresses: trpc_middleware_js_1.protectedProcedure
|
|
7198
7133
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7199
|
-
.output(
|
|
7134
|
+
.output(types_98.systemCapability.methods.networkAddresses.output)
|
|
7200
7135
|
.query(async ({ input, ctx }) => {
|
|
7201
7136
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7202
7137
|
return p.networkAddresses();
|
|
7203
7138
|
}),
|
|
7204
7139
|
getRetentionConfig: trpc_middleware_js_1.adminProcedure
|
|
7205
7140
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7206
|
-
.output(
|
|
7141
|
+
.output(types_98.systemCapability.methods.getRetentionConfig.output)
|
|
7207
7142
|
.query(async ({ input, ctx }) => {
|
|
7208
7143
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7209
7144
|
return p.getRetentionConfig();
|
|
7210
7145
|
}),
|
|
7211
7146
|
setRetentionConfig: trpc_middleware_js_1.adminProcedure
|
|
7212
|
-
.input(
|
|
7213
|
-
.output(
|
|
7147
|
+
.input(types_98.systemCapability.methods.setRetentionConfig.input)
|
|
7148
|
+
.output(types_98.systemCapability.methods.setRetentionConfig.output)
|
|
7214
7149
|
.mutation(async ({ input, ctx }) => {
|
|
7215
7150
|
const p = requireCapProvider('system', () => getProvider(ctx));
|
|
7216
7151
|
return p.setRetentionConfig(input);
|
|
7217
7152
|
}),
|
|
7218
7153
|
forceRetentionCleanup: trpc_middleware_js_1.adminProcedure
|
|
7219
7154
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7220
|
-
.output(
|
|
7155
|
+
.output(types_98.systemCapability.methods.forceRetentionCleanup.output)
|
|
7221
7156
|
.mutation(async ({ input, ctx }) => {
|
|
7222
7157
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7223
7158
|
return p.forceRetentionCleanup();
|
|
@@ -7253,7 +7188,7 @@ function createCapRouter_temperatureSensor(getProvider, createRemoteProxy) {
|
|
|
7253
7188
|
function createCapRouter_toast(getProvider, _createRemoteProxy) {
|
|
7254
7189
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7255
7190
|
onToast: trpc_middleware_js_1.protectedProcedure
|
|
7256
|
-
.input(
|
|
7191
|
+
.input(types_99.toastCapability.methods.onToast.input)
|
|
7257
7192
|
.subscription(({ input, ctx }) => {
|
|
7258
7193
|
const p = requireCapProvider('toast', () => getProvider(ctx));
|
|
7259
7194
|
return (0, trpc_middleware_js_1.iterableSubscription)((push) => {
|
|
@@ -7266,7 +7201,7 @@ function createCapRouter_turnProvider(getProvider, createRemoteProxy) {
|
|
|
7266
7201
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7267
7202
|
getTurnServers: trpc_middleware_js_1.protectedProcedure
|
|
7268
7203
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
7269
|
-
.output(
|
|
7204
|
+
.output(types_100.turnProviderCapability.methods.getTurnServers.output)
|
|
7270
7205
|
.query(async ({ input, ctx }) => {
|
|
7271
7206
|
const p = resolveProvider('turn-provider', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
7272
7207
|
return p.getTurnServers();
|
|
@@ -7286,7 +7221,7 @@ function createCapRouter_update(getProvider, createRemoteProxy) {
|
|
|
7286
7221
|
}),
|
|
7287
7222
|
installUpdate: trpc_middleware_js_1.adminProcedure
|
|
7288
7223
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7289
|
-
.output(
|
|
7224
|
+
.output(types_101.updateCapability.methods.installUpdate.output)
|
|
7290
7225
|
.mutation(async ({ input, ctx }) => {
|
|
7291
7226
|
const p = resolveProvider('update', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7292
7227
|
return p.installUpdate();
|
|
@@ -7297,14 +7232,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7297
7232
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7298
7233
|
listUsers: trpc_middleware_js_1.adminProcedure
|
|
7299
7234
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7300
|
-
.output(
|
|
7235
|
+
.output(types_102.userManagementCapability.methods.listUsers.output)
|
|
7301
7236
|
.query(async ({ input, ctx }) => {
|
|
7302
7237
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7303
7238
|
return p.listUsers();
|
|
7304
7239
|
}),
|
|
7305
7240
|
createUser: trpc_middleware_js_1.adminProcedure
|
|
7306
|
-
.input(
|
|
7307
|
-
.output(
|
|
7241
|
+
.input(types_102.userManagementCapability.methods.createUser.input.loose())
|
|
7242
|
+
.output(types_102.userManagementCapability.methods.createUser.output)
|
|
7308
7243
|
.mutation(async ({ input, ctx }) => {
|
|
7309
7244
|
const { nodeId, ...methodInput } = input;
|
|
7310
7245
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7312,8 +7247,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7312
7247
|
return p.createUser(methodInput);
|
|
7313
7248
|
}),
|
|
7314
7249
|
updateUser: trpc_middleware_js_1.adminProcedure
|
|
7315
|
-
.input(
|
|
7316
|
-
.output(
|
|
7250
|
+
.input(types_102.userManagementCapability.methods.updateUser.input.loose())
|
|
7251
|
+
.output(types_102.userManagementCapability.methods.updateUser.output)
|
|
7317
7252
|
.mutation(async ({ input, ctx }) => {
|
|
7318
7253
|
const { nodeId, ...methodInput } = input;
|
|
7319
7254
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7321,8 +7256,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7321
7256
|
return p.updateUser(methodInput);
|
|
7322
7257
|
}),
|
|
7323
7258
|
deleteUser: trpc_middleware_js_1.adminProcedure
|
|
7324
|
-
.input(
|
|
7325
|
-
.output(
|
|
7259
|
+
.input(types_102.userManagementCapability.methods.deleteUser.input.loose())
|
|
7260
|
+
.output(types_102.userManagementCapability.methods.deleteUser.output)
|
|
7326
7261
|
.mutation(async ({ input, ctx }) => {
|
|
7327
7262
|
const { nodeId, ...methodInput } = input;
|
|
7328
7263
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7330,8 +7265,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7330
7265
|
return p.deleteUser(methodInput);
|
|
7331
7266
|
}),
|
|
7332
7267
|
resetPassword: trpc_middleware_js_1.adminProcedure
|
|
7333
|
-
.input(
|
|
7334
|
-
.output(
|
|
7268
|
+
.input(types_102.userManagementCapability.methods.resetPassword.input.loose())
|
|
7269
|
+
.output(types_102.userManagementCapability.methods.resetPassword.output)
|
|
7335
7270
|
.mutation(async ({ input, ctx }) => {
|
|
7336
7271
|
const { nodeId, ...methodInput } = input;
|
|
7337
7272
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7339,8 +7274,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7339
7274
|
return p.resetPassword(methodInput);
|
|
7340
7275
|
}),
|
|
7341
7276
|
setUserScopes: trpc_middleware_js_1.adminProcedure
|
|
7342
|
-
.input(
|
|
7343
|
-
.output(
|
|
7277
|
+
.input(types_102.userManagementCapability.methods.setUserScopes.input.loose())
|
|
7278
|
+
.output(types_102.userManagementCapability.methods.setUserScopes.output)
|
|
7344
7279
|
.mutation(async ({ input, ctx }) => {
|
|
7345
7280
|
const { nodeId, ...methodInput } = input;
|
|
7346
7281
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7348,8 +7283,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7348
7283
|
return p.setUserScopes(methodInput);
|
|
7349
7284
|
}),
|
|
7350
7285
|
validateCredentials: trpc_middleware_js_1.protectedProcedure
|
|
7351
|
-
.input(
|
|
7352
|
-
.output(
|
|
7286
|
+
.input(types_102.userManagementCapability.methods.validateCredentials.input.loose())
|
|
7287
|
+
.output(types_102.userManagementCapability.methods.validateCredentials.output)
|
|
7353
7288
|
.mutation(async ({ input, ctx }) => {
|
|
7354
7289
|
const { nodeId, ...methodInput } = input;
|
|
7355
7290
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7358,14 +7293,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7358
7293
|
}),
|
|
7359
7294
|
listApiKeys: trpc_middleware_js_1.adminProcedure
|
|
7360
7295
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7361
|
-
.output(
|
|
7296
|
+
.output(types_102.userManagementCapability.methods.listApiKeys.output)
|
|
7362
7297
|
.query(async ({ input, ctx }) => {
|
|
7363
7298
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7364
7299
|
return p.listApiKeys();
|
|
7365
7300
|
}),
|
|
7366
7301
|
createApiKey: trpc_middleware_js_1.adminProcedure
|
|
7367
|
-
.input(
|
|
7368
|
-
.output(
|
|
7302
|
+
.input(types_102.userManagementCapability.methods.createApiKey.input.loose())
|
|
7303
|
+
.output(types_102.userManagementCapability.methods.createApiKey.output)
|
|
7369
7304
|
.mutation(async ({ input, ctx }) => {
|
|
7370
7305
|
const { nodeId, ...methodInput } = input;
|
|
7371
7306
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7373,8 +7308,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7373
7308
|
return p.createApiKey(methodInput);
|
|
7374
7309
|
}),
|
|
7375
7310
|
revokeApiKey: trpc_middleware_js_1.adminProcedure
|
|
7376
|
-
.input(
|
|
7377
|
-
.output(
|
|
7311
|
+
.input(types_102.userManagementCapability.methods.revokeApiKey.input.loose())
|
|
7312
|
+
.output(types_102.userManagementCapability.methods.revokeApiKey.output)
|
|
7378
7313
|
.mutation(async ({ input, ctx }) => {
|
|
7379
7314
|
const { nodeId, ...methodInput } = input;
|
|
7380
7315
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7382,8 +7317,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7382
7317
|
return p.revokeApiKey(methodInput);
|
|
7383
7318
|
}),
|
|
7384
7319
|
validateApiKey: trpc_middleware_js_1.protectedProcedure
|
|
7385
|
-
.input(
|
|
7386
|
-
.output(
|
|
7320
|
+
.input(types_102.userManagementCapability.methods.validateApiKey.input.loose())
|
|
7321
|
+
.output(types_102.userManagementCapability.methods.validateApiKey.output)
|
|
7387
7322
|
.mutation(async ({ input, ctx }) => {
|
|
7388
7323
|
const { nodeId, ...methodInput } = input;
|
|
7389
7324
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7391,8 +7326,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7391
7326
|
return p.validateApiKey(methodInput);
|
|
7392
7327
|
}),
|
|
7393
7328
|
createScopedToken: trpc_middleware_js_1.adminProcedure
|
|
7394
|
-
.input(
|
|
7395
|
-
.output(
|
|
7329
|
+
.input(types_102.userManagementCapability.methods.createScopedToken.input.loose())
|
|
7330
|
+
.output(types_102.userManagementCapability.methods.createScopedToken.output)
|
|
7396
7331
|
.mutation(async ({ input, ctx }) => {
|
|
7397
7332
|
const { nodeId, ...methodInput } = input;
|
|
7398
7333
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7400,8 +7335,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7400
7335
|
return p.createScopedToken(methodInput);
|
|
7401
7336
|
}),
|
|
7402
7337
|
revokeScopedToken: trpc_middleware_js_1.adminProcedure
|
|
7403
|
-
.input(
|
|
7404
|
-
.output(
|
|
7338
|
+
.input(types_102.userManagementCapability.methods.revokeScopedToken.input.loose())
|
|
7339
|
+
.output(types_102.userManagementCapability.methods.revokeScopedToken.output)
|
|
7405
7340
|
.mutation(async ({ input, ctx }) => {
|
|
7406
7341
|
const { nodeId, ...methodInput } = input;
|
|
7407
7342
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7409,8 +7344,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7409
7344
|
return p.revokeScopedToken(methodInput);
|
|
7410
7345
|
}),
|
|
7411
7346
|
validateScopedToken: trpc_middleware_js_1.protectedProcedure
|
|
7412
|
-
.input(
|
|
7413
|
-
.output(
|
|
7347
|
+
.input(types_102.userManagementCapability.methods.validateScopedToken.input.loose())
|
|
7348
|
+
.output(types_102.userManagementCapability.methods.validateScopedToken.output)
|
|
7414
7349
|
.query(async ({ input, ctx }) => {
|
|
7415
7350
|
const { nodeId, ...methodInput } = input;
|
|
7416
7351
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7418,8 +7353,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7418
7353
|
return p.validateScopedToken(methodInput);
|
|
7419
7354
|
}),
|
|
7420
7355
|
listScopedTokens: trpc_middleware_js_1.adminProcedure
|
|
7421
|
-
.input(
|
|
7422
|
-
.output(
|
|
7356
|
+
.input(types_102.userManagementCapability.methods.listScopedTokens.input.loose())
|
|
7357
|
+
.output(types_102.userManagementCapability.methods.listScopedTokens.output)
|
|
7423
7358
|
.query(async ({ input, ctx }) => {
|
|
7424
7359
|
const { nodeId, ...methodInput } = input;
|
|
7425
7360
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7427,8 +7362,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7427
7362
|
return p.listScopedTokens(methodInput);
|
|
7428
7363
|
}),
|
|
7429
7364
|
setupTotp: trpc_middleware_js_1.adminProcedure
|
|
7430
|
-
.input(
|
|
7431
|
-
.output(
|
|
7365
|
+
.input(types_102.userManagementCapability.methods.setupTotp.input.loose())
|
|
7366
|
+
.output(types_102.userManagementCapability.methods.setupTotp.output)
|
|
7432
7367
|
.mutation(async ({ input, ctx }) => {
|
|
7433
7368
|
const { nodeId, ...methodInput } = input;
|
|
7434
7369
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7436,8 +7371,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7436
7371
|
return p.setupTotp(methodInput);
|
|
7437
7372
|
}),
|
|
7438
7373
|
confirmTotp: trpc_middleware_js_1.adminProcedure
|
|
7439
|
-
.input(
|
|
7440
|
-
.output(
|
|
7374
|
+
.input(types_102.userManagementCapability.methods.confirmTotp.input.loose())
|
|
7375
|
+
.output(types_102.userManagementCapability.methods.confirmTotp.output)
|
|
7441
7376
|
.mutation(async ({ input, ctx }) => {
|
|
7442
7377
|
const { nodeId, ...methodInput } = input;
|
|
7443
7378
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7445,8 +7380,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7445
7380
|
return p.confirmTotp(methodInput);
|
|
7446
7381
|
}),
|
|
7447
7382
|
disableTotp: trpc_middleware_js_1.adminProcedure
|
|
7448
|
-
.input(
|
|
7449
|
-
.output(
|
|
7383
|
+
.input(types_102.userManagementCapability.methods.disableTotp.input.loose())
|
|
7384
|
+
.output(types_102.userManagementCapability.methods.disableTotp.output)
|
|
7450
7385
|
.mutation(async ({ input, ctx }) => {
|
|
7451
7386
|
const { nodeId, ...methodInput } = input;
|
|
7452
7387
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7454,8 +7389,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7454
7389
|
return p.disableTotp(methodInput);
|
|
7455
7390
|
}),
|
|
7456
7391
|
getTotpStatus: trpc_middleware_js_1.adminProcedure
|
|
7457
|
-
.input(
|
|
7458
|
-
.output(
|
|
7392
|
+
.input(types_102.userManagementCapability.methods.getTotpStatus.input.loose())
|
|
7393
|
+
.output(types_102.userManagementCapability.methods.getTotpStatus.output)
|
|
7459
7394
|
.query(async ({ input, ctx }) => {
|
|
7460
7395
|
const { nodeId, ...methodInput } = input;
|
|
7461
7396
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7463,8 +7398,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7463
7398
|
return p.getTotpStatus(methodInput);
|
|
7464
7399
|
}),
|
|
7465
7400
|
verifyTotp: trpc_middleware_js_1.protectedProcedure
|
|
7466
|
-
.input(
|
|
7467
|
-
.output(
|
|
7401
|
+
.input(types_102.userManagementCapability.methods.verifyTotp.input.loose())
|
|
7402
|
+
.output(types_102.userManagementCapability.methods.verifyTotp.output)
|
|
7468
7403
|
.mutation(async ({ input, ctx }) => {
|
|
7469
7404
|
const { nodeId, ...methodInput } = input;
|
|
7470
7405
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7472,8 +7407,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7472
7407
|
return p.verifyTotp(methodInput);
|
|
7473
7408
|
}),
|
|
7474
7409
|
oauthIssueCode: trpc_middleware_js_1.protectedProcedure
|
|
7475
|
-
.input(
|
|
7476
|
-
.output(
|
|
7410
|
+
.input(types_102.userManagementCapability.methods.oauthIssueCode.input.loose())
|
|
7411
|
+
.output(types_102.userManagementCapability.methods.oauthIssueCode.output)
|
|
7477
7412
|
.mutation(async ({ input, ctx }) => {
|
|
7478
7413
|
const { nodeId, ...methodInput } = input;
|
|
7479
7414
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7481,8 +7416,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7481
7416
|
return p.oauthIssueCode(methodInput);
|
|
7482
7417
|
}),
|
|
7483
7418
|
oauthExchangeCode: trpc_middleware_js_1.protectedProcedure
|
|
7484
|
-
.input(
|
|
7485
|
-
.output(
|
|
7419
|
+
.input(types_102.userManagementCapability.methods.oauthExchangeCode.input.loose())
|
|
7420
|
+
.output(types_102.userManagementCapability.methods.oauthExchangeCode.output)
|
|
7486
7421
|
.mutation(async ({ input, ctx }) => {
|
|
7487
7422
|
const { nodeId, ...methodInput } = input;
|
|
7488
7423
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7490,8 +7425,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7490
7425
|
return p.oauthExchangeCode(methodInput);
|
|
7491
7426
|
}),
|
|
7492
7427
|
oauthRefresh: trpc_middleware_js_1.protectedProcedure
|
|
7493
|
-
.input(
|
|
7494
|
-
.output(
|
|
7428
|
+
.input(types_102.userManagementCapability.methods.oauthRefresh.input.loose())
|
|
7429
|
+
.output(types_102.userManagementCapability.methods.oauthRefresh.output)
|
|
7495
7430
|
.mutation(async ({ input, ctx }) => {
|
|
7496
7431
|
const { nodeId, ...methodInput } = input;
|
|
7497
7432
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7499,8 +7434,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7499
7434
|
return p.oauthRefresh(methodInput);
|
|
7500
7435
|
}),
|
|
7501
7436
|
oauthVerifyAccessToken: trpc_middleware_js_1.protectedProcedure
|
|
7502
|
-
.input(
|
|
7503
|
-
.output(
|
|
7437
|
+
.input(types_102.userManagementCapability.methods.oauthVerifyAccessToken.input.loose())
|
|
7438
|
+
.output(types_102.userManagementCapability.methods.oauthVerifyAccessToken.output)
|
|
7504
7439
|
.query(async ({ input, ctx }) => {
|
|
7505
7440
|
const { nodeId, ...methodInput } = input;
|
|
7506
7441
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7509,14 +7444,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7509
7444
|
}),
|
|
7510
7445
|
listOauthSessions: trpc_middleware_js_1.adminProcedure
|
|
7511
7446
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
7512
|
-
.output(
|
|
7447
|
+
.output(types_102.userManagementCapability.methods.listOauthSessions.output)
|
|
7513
7448
|
.query(async ({ input, ctx }) => {
|
|
7514
7449
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7515
7450
|
return p.listOauthSessions();
|
|
7516
7451
|
}),
|
|
7517
7452
|
revokeOauthSession: trpc_middleware_js_1.adminProcedure
|
|
7518
|
-
.input(
|
|
7519
|
-
.output(
|
|
7453
|
+
.input(types_102.userManagementCapability.methods.revokeOauthSession.input.loose())
|
|
7454
|
+
.output(types_102.userManagementCapability.methods.revokeOauthSession.output)
|
|
7520
7455
|
.mutation(async ({ input, ctx }) => {
|
|
7521
7456
|
const { nodeId, ...methodInput } = input;
|
|
7522
7457
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7528,8 +7463,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
7528
7463
|
function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
7529
7464
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7530
7465
|
beginRegistration: trpc_middleware_js_1.adminProcedure
|
|
7531
|
-
.input(
|
|
7532
|
-
.output(
|
|
7466
|
+
.input(types_103.userPasskeysCapability.methods.beginRegistration.input.loose())
|
|
7467
|
+
.output(types_103.userPasskeysCapability.methods.beginRegistration.output)
|
|
7533
7468
|
.mutation(async ({ input, ctx }) => {
|
|
7534
7469
|
const { nodeId, addonId, ...methodInput } = input;
|
|
7535
7470
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -7537,8 +7472,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
7537
7472
|
return p.beginRegistration(methodInput);
|
|
7538
7473
|
}),
|
|
7539
7474
|
finishRegistration: trpc_middleware_js_1.adminProcedure
|
|
7540
|
-
.input(
|
|
7541
|
-
.output(
|
|
7475
|
+
.input(types_103.userPasskeysCapability.methods.finishRegistration.input.loose())
|
|
7476
|
+
.output(types_103.userPasskeysCapability.methods.finishRegistration.output)
|
|
7542
7477
|
.mutation(async ({ input, ctx }) => {
|
|
7543
7478
|
const { nodeId, addonId, ...methodInput } = input;
|
|
7544
7479
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -7546,8 +7481,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
7546
7481
|
return p.finishRegistration(methodInput);
|
|
7547
7482
|
}),
|
|
7548
7483
|
beginAuthentication: trpc_middleware_js_1.protectedProcedure
|
|
7549
|
-
.input(
|
|
7550
|
-
.output(
|
|
7484
|
+
.input(types_103.userPasskeysCapability.methods.beginAuthentication.input.loose())
|
|
7485
|
+
.output(types_103.userPasskeysCapability.methods.beginAuthentication.output)
|
|
7551
7486
|
.mutation(async ({ input, ctx }) => {
|
|
7552
7487
|
const { nodeId, addonId, ...methodInput } = input;
|
|
7553
7488
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -7555,8 +7490,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
7555
7490
|
return p.beginAuthentication(methodInput);
|
|
7556
7491
|
}),
|
|
7557
7492
|
finishAuthentication: trpc_middleware_js_1.protectedProcedure
|
|
7558
|
-
.input(
|
|
7559
|
-
.output(
|
|
7493
|
+
.input(types_103.userPasskeysCapability.methods.finishAuthentication.input.loose())
|
|
7494
|
+
.output(types_103.userPasskeysCapability.methods.finishAuthentication.output)
|
|
7560
7495
|
.mutation(async ({ input, ctx }) => {
|
|
7561
7496
|
const { nodeId, addonId, ...methodInput } = input;
|
|
7562
7497
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -7564,8 +7499,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
7564
7499
|
return p.finishAuthentication(methodInput);
|
|
7565
7500
|
}),
|
|
7566
7501
|
listPasskeys: trpc_middleware_js_1.adminProcedure
|
|
7567
|
-
.input(
|
|
7568
|
-
.output(
|
|
7502
|
+
.input(types_103.userPasskeysCapability.methods.listPasskeys.input.loose())
|
|
7503
|
+
.output(types_103.userPasskeysCapability.methods.listPasskeys.output)
|
|
7569
7504
|
.query(async ({ input, ctx }) => {
|
|
7570
7505
|
const { nodeId, addonId, ...methodInput } = input;
|
|
7571
7506
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -7573,8 +7508,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
7573
7508
|
return p.listPasskeys(methodInput);
|
|
7574
7509
|
}),
|
|
7575
7510
|
removePasskey: trpc_middleware_js_1.adminProcedure
|
|
7576
|
-
.input(
|
|
7577
|
-
.output(
|
|
7511
|
+
.input(types_103.userPasskeysCapability.methods.removePasskey.input.loose())
|
|
7512
|
+
.output(types_103.userPasskeysCapability.methods.removePasskey.output)
|
|
7578
7513
|
.mutation(async ({ input, ctx }) => {
|
|
7579
7514
|
const { nodeId, addonId, ...methodInput } = input;
|
|
7580
7515
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -7595,8 +7530,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
7595
7530
|
return p.getStatus(methodInput);
|
|
7596
7531
|
}),
|
|
7597
7532
|
start: trpc_middleware_js_1.adminProcedure
|
|
7598
|
-
.input(
|
|
7599
|
-
.output(
|
|
7533
|
+
.input(types_104.vacuumControlCapability.methods.start.input.loose())
|
|
7534
|
+
.output(types_104.vacuumControlCapability.methods.start.output)
|
|
7600
7535
|
.mutation(async ({ input, ctx }) => {
|
|
7601
7536
|
const { nodeId, ...methodInput } = input;
|
|
7602
7537
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7604,8 +7539,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
7604
7539
|
return p.start(methodInput);
|
|
7605
7540
|
}),
|
|
7606
7541
|
pause: trpc_middleware_js_1.adminProcedure
|
|
7607
|
-
.input(
|
|
7608
|
-
.output(
|
|
7542
|
+
.input(types_104.vacuumControlCapability.methods.pause.input.loose())
|
|
7543
|
+
.output(types_104.vacuumControlCapability.methods.pause.output)
|
|
7609
7544
|
.mutation(async ({ input, ctx }) => {
|
|
7610
7545
|
const { nodeId, ...methodInput } = input;
|
|
7611
7546
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7613,8 +7548,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
7613
7548
|
return p.pause(methodInput);
|
|
7614
7549
|
}),
|
|
7615
7550
|
stop: trpc_middleware_js_1.adminProcedure
|
|
7616
|
-
.input(
|
|
7617
|
-
.output(
|
|
7551
|
+
.input(types_104.vacuumControlCapability.methods.stop.input.loose())
|
|
7552
|
+
.output(types_104.vacuumControlCapability.methods.stop.output)
|
|
7618
7553
|
.mutation(async ({ input, ctx }) => {
|
|
7619
7554
|
const { nodeId, ...methodInput } = input;
|
|
7620
7555
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7622,8 +7557,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
7622
7557
|
return p.stop(methodInput);
|
|
7623
7558
|
}),
|
|
7624
7559
|
returnToBase: trpc_middleware_js_1.adminProcedure
|
|
7625
|
-
.input(
|
|
7626
|
-
.output(
|
|
7560
|
+
.input(types_104.vacuumControlCapability.methods.returnToBase.input.loose())
|
|
7561
|
+
.output(types_104.vacuumControlCapability.methods.returnToBase.output)
|
|
7627
7562
|
.mutation(async ({ input, ctx }) => {
|
|
7628
7563
|
const { nodeId, ...methodInput } = input;
|
|
7629
7564
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7631,8 +7566,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
7631
7566
|
return p.returnToBase(methodInput);
|
|
7632
7567
|
}),
|
|
7633
7568
|
locate: trpc_middleware_js_1.adminProcedure
|
|
7634
|
-
.input(
|
|
7635
|
-
.output(
|
|
7569
|
+
.input(types_104.vacuumControlCapability.methods.locate.input.loose())
|
|
7570
|
+
.output(types_104.vacuumControlCapability.methods.locate.output)
|
|
7636
7571
|
.mutation(async ({ input, ctx }) => {
|
|
7637
7572
|
const { nodeId, ...methodInput } = input;
|
|
7638
7573
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7640,8 +7575,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
7640
7575
|
return p.locate(methodInput);
|
|
7641
7576
|
}),
|
|
7642
7577
|
setFanSpeed: trpc_middleware_js_1.adminProcedure
|
|
7643
|
-
.input(
|
|
7644
|
-
.output(
|
|
7578
|
+
.input(types_104.vacuumControlCapability.methods.setFanSpeed.input.loose())
|
|
7579
|
+
.output(types_104.vacuumControlCapability.methods.setFanSpeed.output)
|
|
7645
7580
|
.mutation(async ({ input, ctx }) => {
|
|
7646
7581
|
const { nodeId, ...methodInput } = input;
|
|
7647
7582
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7662,8 +7597,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
7662
7597
|
return p.getStatus(methodInput);
|
|
7663
7598
|
}),
|
|
7664
7599
|
open: trpc_middleware_js_1.adminProcedure
|
|
7665
|
-
.input(
|
|
7666
|
-
.output(
|
|
7600
|
+
.input(types_105.valveCapability.methods.open.input.loose())
|
|
7601
|
+
.output(types_105.valveCapability.methods.open.output)
|
|
7667
7602
|
.mutation(async ({ input, ctx }) => {
|
|
7668
7603
|
const { nodeId, ...methodInput } = input;
|
|
7669
7604
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7671,8 +7606,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
7671
7606
|
return p.open(methodInput);
|
|
7672
7607
|
}),
|
|
7673
7608
|
close: trpc_middleware_js_1.adminProcedure
|
|
7674
|
-
.input(
|
|
7675
|
-
.output(
|
|
7609
|
+
.input(types_105.valveCapability.methods.close.input.loose())
|
|
7610
|
+
.output(types_105.valveCapability.methods.close.output)
|
|
7676
7611
|
.mutation(async ({ input, ctx }) => {
|
|
7677
7612
|
const { nodeId, ...methodInput } = input;
|
|
7678
7613
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7680,8 +7615,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
7680
7615
|
return p.close(methodInput);
|
|
7681
7616
|
}),
|
|
7682
7617
|
stop: trpc_middleware_js_1.adminProcedure
|
|
7683
|
-
.input(
|
|
7684
|
-
.output(
|
|
7618
|
+
.input(types_105.valveCapability.methods.stop.input.loose())
|
|
7619
|
+
.output(types_105.valveCapability.methods.stop.output)
|
|
7685
7620
|
.mutation(async ({ input, ctx }) => {
|
|
7686
7621
|
const { nodeId, ...methodInput } = input;
|
|
7687
7622
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7689,8 +7624,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
7689
7624
|
return p.stop(methodInput);
|
|
7690
7625
|
}),
|
|
7691
7626
|
setPosition: trpc_middleware_js_1.adminProcedure
|
|
7692
|
-
.input(
|
|
7693
|
-
.output(
|
|
7627
|
+
.input(types_105.valveCapability.methods.setPosition.input.loose())
|
|
7628
|
+
.output(types_105.valveCapability.methods.setPosition.output)
|
|
7694
7629
|
.mutation(async ({ input, ctx }) => {
|
|
7695
7630
|
const { nodeId, ...methodInput } = input;
|
|
7696
7631
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7715,8 +7650,8 @@ function createCapRouter_vibration(getProvider, createRemoteProxy) {
|
|
|
7715
7650
|
function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
7716
7651
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7717
7652
|
listClips: trpc_middleware_js_1.adminProcedure
|
|
7718
|
-
.input(
|
|
7719
|
-
.output(
|
|
7653
|
+
.input(types_106.videoclipsCapability.methods.listClips.input.loose())
|
|
7654
|
+
.output(types_106.videoclipsCapability.methods.listClips.output)
|
|
7720
7655
|
.query(async ({ input, ctx }) => {
|
|
7721
7656
|
const { nodeId, ...methodInput } = input;
|
|
7722
7657
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7724,8 +7659,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
7724
7659
|
return p.listClips(methodInput);
|
|
7725
7660
|
}),
|
|
7726
7661
|
getClipPlayback: trpc_middleware_js_1.adminProcedure
|
|
7727
|
-
.input(
|
|
7728
|
-
.output(
|
|
7662
|
+
.input(types_106.videoclipsCapability.methods.getClipPlayback.input.loose())
|
|
7663
|
+
.output(types_106.videoclipsCapability.methods.getClipPlayback.output)
|
|
7729
7664
|
.query(async ({ input, ctx }) => {
|
|
7730
7665
|
const { nodeId, ...methodInput } = input;
|
|
7731
7666
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7746,8 +7681,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
7746
7681
|
return p.getStatus(methodInput);
|
|
7747
7682
|
}),
|
|
7748
7683
|
setTargetTemp: trpc_middleware_js_1.adminProcedure
|
|
7749
|
-
.input(
|
|
7750
|
-
.output(
|
|
7684
|
+
.input(types_107.waterHeaterCapability.methods.setTargetTemp.input.loose())
|
|
7685
|
+
.output(types_107.waterHeaterCapability.methods.setTargetTemp.output)
|
|
7751
7686
|
.mutation(async ({ input, ctx }) => {
|
|
7752
7687
|
const { nodeId, ...methodInput } = input;
|
|
7753
7688
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7755,8 +7690,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
7755
7690
|
return p.setTargetTemp(methodInput);
|
|
7756
7691
|
}),
|
|
7757
7692
|
setOperationMode: trpc_middleware_js_1.adminProcedure
|
|
7758
|
-
.input(
|
|
7759
|
-
.output(
|
|
7693
|
+
.input(types_107.waterHeaterCapability.methods.setOperationMode.input.loose())
|
|
7694
|
+
.output(types_107.waterHeaterCapability.methods.setOperationMode.output)
|
|
7760
7695
|
.mutation(async ({ input, ctx }) => {
|
|
7761
7696
|
const { nodeId, ...methodInput } = input;
|
|
7762
7697
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7764,8 +7699,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
7764
7699
|
return p.setOperationMode(methodInput);
|
|
7765
7700
|
}),
|
|
7766
7701
|
setAway: trpc_middleware_js_1.adminProcedure
|
|
7767
|
-
.input(
|
|
7768
|
-
.output(
|
|
7702
|
+
.input(types_107.waterHeaterCapability.methods.setAway.input.loose())
|
|
7703
|
+
.output(types_107.waterHeaterCapability.methods.setAway.output)
|
|
7769
7704
|
.mutation(async ({ input, ctx }) => {
|
|
7770
7705
|
const { nodeId, ...methodInput } = input;
|
|
7771
7706
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7787,87 +7722,11 @@ function createCapRouter_weather(getProvider, createRemoteProxy) {
|
|
|
7787
7722
|
}),
|
|
7788
7723
|
});
|
|
7789
7724
|
}
|
|
7790
|
-
function createCapRouter_webrtc(getProvider, createRemoteProxy) {
|
|
7791
|
-
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7792
|
-
handleOffer: trpc_middleware_js_1.protectedProcedure
|
|
7793
|
-
.input(types_111.webrtcCapability.methods.handleOffer.input.loose())
|
|
7794
|
-
.output(types_111.webrtcCapability.methods.handleOffer.output)
|
|
7795
|
-
.mutation(async ({ input, ctx }) => {
|
|
7796
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7797
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7798
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7799
|
-
return p.handleOffer(methodInput);
|
|
7800
|
-
}),
|
|
7801
|
-
supportsStream: trpc_middleware_js_1.protectedProcedure
|
|
7802
|
-
.input(types_111.webrtcCapability.methods.supportsStream.input.loose())
|
|
7803
|
-
.output(types_111.webrtcCapability.methods.supportsStream.output)
|
|
7804
|
-
.query(async ({ input, ctx }) => {
|
|
7805
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7806
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7807
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7808
|
-
return p.supportsStream(methodInput);
|
|
7809
|
-
}),
|
|
7810
|
-
registerStream: trpc_middleware_js_1.protectedProcedure
|
|
7811
|
-
.input(types_111.webrtcCapability.methods.registerStream.input.loose())
|
|
7812
|
-
.output(types_111.webrtcCapability.methods.registerStream.output)
|
|
7813
|
-
.mutation(async ({ input, ctx }) => {
|
|
7814
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7815
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7816
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7817
|
-
return p.registerStream(methodInput);
|
|
7818
|
-
}),
|
|
7819
|
-
unregisterStream: trpc_middleware_js_1.protectedProcedure
|
|
7820
|
-
.input(types_111.webrtcCapability.methods.unregisterStream.input.loose())
|
|
7821
|
-
.output(types_111.webrtcCapability.methods.unregisterStream.output)
|
|
7822
|
-
.mutation(async ({ input, ctx }) => {
|
|
7823
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7824
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7825
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7826
|
-
return p.unregisterStream(methodInput);
|
|
7827
|
-
}),
|
|
7828
|
-
createSession: trpc_middleware_js_1.protectedProcedure
|
|
7829
|
-
.input(types_111.webrtcCapability.methods.createSession.input.loose())
|
|
7830
|
-
.output(types_111.webrtcCapability.methods.createSession.output)
|
|
7831
|
-
.mutation(async ({ input, ctx }) => {
|
|
7832
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7833
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7834
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7835
|
-
return p.createSession(methodInput);
|
|
7836
|
-
}),
|
|
7837
|
-
handleAnswer: trpc_middleware_js_1.protectedProcedure
|
|
7838
|
-
.input(types_111.webrtcCapability.methods.handleAnswer.input.loose())
|
|
7839
|
-
.output(types_111.webrtcCapability.methods.handleAnswer.output)
|
|
7840
|
-
.mutation(async ({ input, ctx }) => {
|
|
7841
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7842
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7843
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7844
|
-
return p.handleAnswer(methodInput);
|
|
7845
|
-
}),
|
|
7846
|
-
closeSession: trpc_middleware_js_1.protectedProcedure
|
|
7847
|
-
.input(types_111.webrtcCapability.methods.closeSession.input.loose())
|
|
7848
|
-
.output(types_111.webrtcCapability.methods.closeSession.output)
|
|
7849
|
-
.mutation(async ({ input, ctx }) => {
|
|
7850
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7851
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7852
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7853
|
-
return p.closeSession(methodInput);
|
|
7854
|
-
}),
|
|
7855
|
-
hasAdaptiveBitrate: trpc_middleware_js_1.protectedProcedure
|
|
7856
|
-
.input(types_111.webrtcCapability.methods.hasAdaptiveBitrate.input.loose())
|
|
7857
|
-
.output(types_111.webrtcCapability.methods.hasAdaptiveBitrate.output)
|
|
7858
|
-
.query(async ({ input, ctx }) => {
|
|
7859
|
-
const { nodeId, addonId, ...methodInput } = input;
|
|
7860
|
-
const p = resolveProvider('webrtc', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
7861
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7862
|
-
return p.hasAdaptiveBitrate(methodInput);
|
|
7863
|
-
}),
|
|
7864
|
-
});
|
|
7865
|
-
}
|
|
7866
7725
|
function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
7867
7726
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7868
7727
|
listStreams: trpc_middleware_js_1.protectedProcedure
|
|
7869
|
-
.input(
|
|
7870
|
-
.output(
|
|
7728
|
+
.input(types_108.webrtcSessionCapability.methods.listStreams.input.loose())
|
|
7729
|
+
.output(types_108.webrtcSessionCapability.methods.listStreams.output)
|
|
7871
7730
|
.query(async ({ input, ctx }) => {
|
|
7872
7731
|
const { nodeId, ...methodInput } = input;
|
|
7873
7732
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7875,8 +7734,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7875
7734
|
return p.listStreams(methodInput);
|
|
7876
7735
|
}),
|
|
7877
7736
|
createSession: trpc_middleware_js_1.protectedProcedure
|
|
7878
|
-
.input(
|
|
7879
|
-
.output(
|
|
7737
|
+
.input(types_108.webrtcSessionCapability.methods.createSession.input.loose())
|
|
7738
|
+
.output(types_108.webrtcSessionCapability.methods.createSession.output)
|
|
7880
7739
|
.mutation(async ({ input, ctx }) => {
|
|
7881
7740
|
const { nodeId, ...methodInput } = input;
|
|
7882
7741
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7884,8 +7743,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7884
7743
|
return p.createSession(methodInput);
|
|
7885
7744
|
}),
|
|
7886
7745
|
handleOffer: trpc_middleware_js_1.protectedProcedure
|
|
7887
|
-
.input(
|
|
7888
|
-
.output(
|
|
7746
|
+
.input(types_108.webrtcSessionCapability.methods.handleOffer.input.loose())
|
|
7747
|
+
.output(types_108.webrtcSessionCapability.methods.handleOffer.output)
|
|
7889
7748
|
.mutation(async ({ input, ctx }) => {
|
|
7890
7749
|
const { nodeId, ...methodInput } = input;
|
|
7891
7750
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7893,8 +7752,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7893
7752
|
return p.handleOffer(methodInput);
|
|
7894
7753
|
}),
|
|
7895
7754
|
handleAnswer: trpc_middleware_js_1.protectedProcedure
|
|
7896
|
-
.input(
|
|
7897
|
-
.output(
|
|
7755
|
+
.input(types_108.webrtcSessionCapability.methods.handleAnswer.input.loose())
|
|
7756
|
+
.output(types_108.webrtcSessionCapability.methods.handleAnswer.output)
|
|
7898
7757
|
.mutation(async ({ input, ctx }) => {
|
|
7899
7758
|
const { nodeId, ...methodInput } = input;
|
|
7900
7759
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7902,8 +7761,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7902
7761
|
return p.handleAnswer(methodInput);
|
|
7903
7762
|
}),
|
|
7904
7763
|
addIceCandidate: trpc_middleware_js_1.protectedProcedure
|
|
7905
|
-
.input(
|
|
7906
|
-
.output(
|
|
7764
|
+
.input(types_108.webrtcSessionCapability.methods.addIceCandidate.input.loose())
|
|
7765
|
+
.output(types_108.webrtcSessionCapability.methods.addIceCandidate.output)
|
|
7907
7766
|
.mutation(async ({ input, ctx }) => {
|
|
7908
7767
|
const { nodeId, ...methodInput } = input;
|
|
7909
7768
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7911,8 +7770,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7911
7770
|
return p.addIceCandidate(methodInput);
|
|
7912
7771
|
}),
|
|
7913
7772
|
getIceCandidates: trpc_middleware_js_1.protectedProcedure
|
|
7914
|
-
.input(
|
|
7915
|
-
.output(
|
|
7773
|
+
.input(types_108.webrtcSessionCapability.methods.getIceCandidates.input.loose())
|
|
7774
|
+
.output(types_108.webrtcSessionCapability.methods.getIceCandidates.output)
|
|
7916
7775
|
.query(async ({ input, ctx }) => {
|
|
7917
7776
|
const { nodeId, ...methodInput } = input;
|
|
7918
7777
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7920,8 +7779,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7920
7779
|
return p.getIceCandidates(methodInput);
|
|
7921
7780
|
}),
|
|
7922
7781
|
closeSession: trpc_middleware_js_1.protectedProcedure
|
|
7923
|
-
.input(
|
|
7924
|
-
.output(
|
|
7782
|
+
.input(types_108.webrtcSessionCapability.methods.closeSession.input.loose())
|
|
7783
|
+
.output(types_108.webrtcSessionCapability.methods.closeSession.output)
|
|
7925
7784
|
.mutation(async ({ input, ctx }) => {
|
|
7926
7785
|
const { nodeId, ...methodInput } = input;
|
|
7927
7786
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7929,8 +7788,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7929
7788
|
return p.closeSession(methodInput);
|
|
7930
7789
|
}),
|
|
7931
7790
|
hasAdaptiveBitrate: trpc_middleware_js_1.protectedProcedure
|
|
7932
|
-
.input(
|
|
7933
|
-
.output(
|
|
7791
|
+
.input(types_108.webrtcSessionCapability.methods.hasAdaptiveBitrate.input.loose())
|
|
7792
|
+
.output(types_108.webrtcSessionCapability.methods.hasAdaptiveBitrate.output)
|
|
7934
7793
|
.query(async ({ input, ctx }) => {
|
|
7935
7794
|
const { nodeId, ...methodInput } = input;
|
|
7936
7795
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7938,8 +7797,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7938
7797
|
return p.hasAdaptiveBitrate(methodInput);
|
|
7939
7798
|
}),
|
|
7940
7799
|
getSessionState: trpc_middleware_js_1.protectedProcedure
|
|
7941
|
-
.input(
|
|
7942
|
-
.output(
|
|
7800
|
+
.input(types_108.webrtcSessionCapability.methods.getSessionState.input.loose())
|
|
7801
|
+
.output(types_108.webrtcSessionCapability.methods.getSessionState.output)
|
|
7943
7802
|
.query(async ({ input, ctx }) => {
|
|
7944
7803
|
const { nodeId, ...methodInput } = input;
|
|
7945
7804
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7951,8 +7810,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
7951
7810
|
function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
7952
7811
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7953
7812
|
getCurrentSnapshot: trpc_middleware_js_1.protectedProcedure
|
|
7954
|
-
.input(
|
|
7955
|
-
.output(
|
|
7813
|
+
.input(types_109.zoneAnalyticsCapability.methods.getCurrentSnapshot.input.loose())
|
|
7814
|
+
.output(types_109.zoneAnalyticsCapability.methods.getCurrentSnapshot.output)
|
|
7956
7815
|
.query(async ({ input, ctx }) => {
|
|
7957
7816
|
const { nodeId, ...methodInput } = input;
|
|
7958
7817
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7960,8 +7819,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
7960
7819
|
return p.getCurrentSnapshot(methodInput);
|
|
7961
7820
|
}),
|
|
7962
7821
|
getZoneHistory: trpc_middleware_js_1.protectedProcedure
|
|
7963
|
-
.input(
|
|
7964
|
-
.output(
|
|
7822
|
+
.input(types_109.zoneAnalyticsCapability.methods.getZoneHistory.input.loose())
|
|
7823
|
+
.output(types_109.zoneAnalyticsCapability.methods.getZoneHistory.output)
|
|
7965
7824
|
.query(async ({ input, ctx }) => {
|
|
7966
7825
|
const { nodeId, ...methodInput } = input;
|
|
7967
7826
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7969,8 +7828,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
7969
7828
|
return p.getZoneHistory(methodInput);
|
|
7970
7829
|
}),
|
|
7971
7830
|
getCameraHistory: trpc_middleware_js_1.protectedProcedure
|
|
7972
|
-
.input(
|
|
7973
|
-
.output(
|
|
7831
|
+
.input(types_109.zoneAnalyticsCapability.methods.getCameraHistory.input.loose())
|
|
7832
|
+
.output(types_109.zoneAnalyticsCapability.methods.getCameraHistory.output)
|
|
7974
7833
|
.query(async ({ input, ctx }) => {
|
|
7975
7834
|
const { nodeId, ...methodInput } = input;
|
|
7976
7835
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7978,8 +7837,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
7978
7837
|
return p.getCameraHistory(methodInput);
|
|
7979
7838
|
}),
|
|
7980
7839
|
getUnzonedHistory: trpc_middleware_js_1.protectedProcedure
|
|
7981
|
-
.input(
|
|
7982
|
-
.output(
|
|
7840
|
+
.input(types_109.zoneAnalyticsCapability.methods.getUnzonedHistory.input.loose())
|
|
7841
|
+
.output(types_109.zoneAnalyticsCapability.methods.getUnzonedHistory.output)
|
|
7983
7842
|
.query(async ({ input, ctx }) => {
|
|
7984
7843
|
const { nodeId, ...methodInput } = input;
|
|
7985
7844
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -7991,8 +7850,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
7991
7850
|
function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
7992
7851
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
7993
7852
|
listRules: trpc_middleware_js_1.protectedProcedure
|
|
7994
|
-
.input(
|
|
7995
|
-
.output(
|
|
7853
|
+
.input(types_110.zoneRulesCapability.methods.listRules.input.loose())
|
|
7854
|
+
.output(types_110.zoneRulesCapability.methods.listRules.output)
|
|
7996
7855
|
.query(async ({ input, ctx }) => {
|
|
7997
7856
|
const { nodeId, ...methodInput } = input;
|
|
7998
7857
|
const p = resolveProvider('zone-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8000,8 +7859,8 @@ function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
|
8000
7859
|
return p.listRules(methodInput);
|
|
8001
7860
|
}),
|
|
8002
7861
|
setRules: trpc_middleware_js_1.adminProcedure
|
|
8003
|
-
.input(
|
|
8004
|
-
.output(
|
|
7862
|
+
.input(types_110.zoneRulesCapability.methods.setRules.input.loose())
|
|
7863
|
+
.output(types_110.zoneRulesCapability.methods.setRules.output)
|
|
8005
7864
|
.mutation(async ({ input, ctx }) => {
|
|
8006
7865
|
const { nodeId, ...methodInput } = input;
|
|
8007
7866
|
const p = resolveProvider('zone-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8013,8 +7872,8 @@ function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
|
8013
7872
|
function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
8014
7873
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8015
7874
|
listZones: trpc_middleware_js_1.protectedProcedure
|
|
8016
|
-
.input(
|
|
8017
|
-
.output(
|
|
7875
|
+
.input(types_111.zonesCapability.methods.listZones.input.loose())
|
|
7876
|
+
.output(types_111.zonesCapability.methods.listZones.output)
|
|
8018
7877
|
.query(async ({ input, ctx }) => {
|
|
8019
7878
|
const { nodeId, ...methodInput } = input;
|
|
8020
7879
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8022,8 +7881,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
8022
7881
|
return p.listZones(methodInput);
|
|
8023
7882
|
}),
|
|
8024
7883
|
addZone: trpc_middleware_js_1.adminProcedure
|
|
8025
|
-
.input(
|
|
8026
|
-
.output(
|
|
7884
|
+
.input(types_111.zonesCapability.methods.addZone.input.loose())
|
|
7885
|
+
.output(types_111.zonesCapability.methods.addZone.output)
|
|
8027
7886
|
.mutation(async ({ input, ctx }) => {
|
|
8028
7887
|
const { nodeId, ...methodInput } = input;
|
|
8029
7888
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8031,8 +7890,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
8031
7890
|
return p.addZone(methodInput);
|
|
8032
7891
|
}),
|
|
8033
7892
|
removeZone: trpc_middleware_js_1.adminProcedure
|
|
8034
|
-
.input(
|
|
8035
|
-
.output(
|
|
7893
|
+
.input(types_111.zonesCapability.methods.removeZone.input.loose())
|
|
7894
|
+
.output(types_111.zonesCapability.methods.removeZone.output)
|
|
8036
7895
|
.mutation(async ({ input, ctx }) => {
|
|
8037
7896
|
const { nodeId, ...methodInput } = input;
|
|
8038
7897
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8040,8 +7899,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
8040
7899
|
return p.removeZone(methodInput);
|
|
8041
7900
|
}),
|
|
8042
7901
|
updateZone: trpc_middleware_js_1.adminProcedure
|
|
8043
|
-
.input(
|
|
8044
|
-
.output(
|
|
7902
|
+
.input(types_111.zonesCapability.methods.updateZone.input.loose())
|
|
7903
|
+
.output(types_111.zonesCapability.methods.updateZone.output)
|
|
8045
7904
|
.mutation(async ({ input, ctx }) => {
|
|
8046
7905
|
const { nodeId, ...methodInput } = input;
|
|
8047
7906
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|