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