@camstack/server 1.2.92 → 1.2.94
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.
|
@@ -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: 149
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.requireCapProvider = requireCapProvider;
|
|
@@ -128,6 +128,7 @@ exports.createCapRouter_snapshot = createCapRouter_snapshot;
|
|
|
128
128
|
exports.createCapRouter_ssoBridge = createCapRouter_ssoBridge;
|
|
129
129
|
exports.createCapRouter_storage = createCapRouter_storage;
|
|
130
130
|
exports.createCapRouter_storageEvictable = createCapRouter_storageEvictable;
|
|
131
|
+
exports.createCapRouter_storageMigration = createCapRouter_storageMigration;
|
|
131
132
|
exports.createCapRouter_storageProvider = createCapRouter_storageProvider;
|
|
132
133
|
exports.createCapRouter_streamBroker = createCapRouter_streamBroker;
|
|
133
134
|
exports.createCapRouter_streamCatalog = createCapRouter_streamCatalog;
|
|
@@ -282,6 +283,7 @@ const types_121 = require("@camstack/types");
|
|
|
282
283
|
const types_122 = require("@camstack/types");
|
|
283
284
|
const types_123 = require("@camstack/types");
|
|
284
285
|
const types_124 = require("@camstack/types");
|
|
286
|
+
const types_125 = require("@camstack/types");
|
|
285
287
|
// ── Provider Accessor ───────────────────────────────────────────────
|
|
286
288
|
function requireCapProvider(name, getProvider) {
|
|
287
289
|
const p = getProvider();
|
|
@@ -5471,6 +5473,15 @@ function createCapRouter_osdManager(getProvider, createRemoteProxy) {
|
|
|
5471
5473
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5472
5474
|
return p.clearSlotBinding(methodInput);
|
|
5473
5475
|
}),
|
|
5476
|
+
copyDeviceConfiguration: trpc_middleware_js_1.adminProcedure
|
|
5477
|
+
.input(types_80.osdManagerCapability.methods.copyDeviceConfiguration.input.loose())
|
|
5478
|
+
.output(types_80.osdManagerCapability.methods.copyDeviceConfiguration.output)
|
|
5479
|
+
.mutation(async ({ input, ctx }) => {
|
|
5480
|
+
const { nodeId, ...methodInput } = input;
|
|
5481
|
+
const p = resolveProvider('osd-manager', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5482
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5483
|
+
return p.copyDeviceConfiguration(methodInput);
|
|
5484
|
+
}),
|
|
5474
5485
|
previewSlot: trpc_middleware_js_1.adminProcedure
|
|
5475
5486
|
.input(types_80.osdManagerCapability.methods.previewSlot.input.loose())
|
|
5476
5487
|
.output(types_80.osdManagerCapability.methods.previewSlot.output)
|
|
@@ -5812,32 +5823,59 @@ function createCapRouter_pipelineAnalytics(getProvider, createRemoteProxy) {
|
|
|
5812
5823
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5813
5824
|
return p.deleteDeviceEvents(methodInput);
|
|
5814
5825
|
}),
|
|
5815
|
-
|
|
5816
|
-
.input(types_82.pipelineAnalyticsCapability.methods.
|
|
5817
|
-
.output(types_82.pipelineAnalyticsCapability.methods.
|
|
5826
|
+
pauseForStorageMigration: trpc_middleware_js_1.adminProcedure
|
|
5827
|
+
.input(types_82.pipelineAnalyticsCapability.methods.pauseForStorageMigration.input.loose())
|
|
5828
|
+
.output(types_82.pipelineAnalyticsCapability.methods.pauseForStorageMigration.output)
|
|
5829
|
+
.mutation(async ({ input, ctx }) => {
|
|
5830
|
+
const { nodeId, ...methodInput } = input;
|
|
5831
|
+
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5832
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5833
|
+
return p.pauseForStorageMigration(methodInput);
|
|
5834
|
+
}),
|
|
5835
|
+
resumeForStorageMigration: trpc_middleware_js_1.adminProcedure
|
|
5836
|
+
.input(types_82.pipelineAnalyticsCapability.methods.resumeForStorageMigration.input.loose())
|
|
5837
|
+
.output(types_82.pipelineAnalyticsCapability.methods.resumeForStorageMigration.output)
|
|
5838
|
+
.mutation(async ({ input, ctx }) => {
|
|
5839
|
+
const { nodeId, ...methodInput } = input;
|
|
5840
|
+
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5841
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5842
|
+
return p.resumeForStorageMigration(methodInput);
|
|
5843
|
+
}),
|
|
5844
|
+
refreshStorageLocationsForMigration: trpc_middleware_js_1.adminProcedure
|
|
5845
|
+
.input(types_82.pipelineAnalyticsCapability.methods.refreshStorageLocationsForMigration.input.loose())
|
|
5846
|
+
.output(types_82.pipelineAnalyticsCapability.methods.refreshStorageLocationsForMigration.output)
|
|
5847
|
+
.mutation(async ({ input, ctx }) => {
|
|
5848
|
+
const { nodeId, ...methodInput } = input;
|
|
5849
|
+
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5850
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5851
|
+
return p.refreshStorageLocationsForMigration(methodInput);
|
|
5852
|
+
}),
|
|
5853
|
+
startStorageMigrationMove: trpc_middleware_js_1.adminProcedure
|
|
5854
|
+
.input(types_82.pipelineAnalyticsCapability.methods.startStorageMigrationMove.input.loose())
|
|
5855
|
+
.output(types_82.pipelineAnalyticsCapability.methods.startStorageMigrationMove.output)
|
|
5818
5856
|
.mutation(async ({ input, ctx }) => {
|
|
5819
5857
|
const { nodeId, ...methodInput } = input;
|
|
5820
5858
|
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5821
5859
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5822
|
-
return p.
|
|
5860
|
+
return p.startStorageMigrationMove(methodInput);
|
|
5823
5861
|
}),
|
|
5824
|
-
|
|
5825
|
-
.input(types_82.pipelineAnalyticsCapability.methods.
|
|
5826
|
-
.output(types_82.pipelineAnalyticsCapability.methods.
|
|
5862
|
+
getStorageMigrationMoveStatus: trpc_middleware_js_1.adminProcedure
|
|
5863
|
+
.input(types_82.pipelineAnalyticsCapability.methods.getStorageMigrationMoveStatus.input.loose())
|
|
5864
|
+
.output(types_82.pipelineAnalyticsCapability.methods.getStorageMigrationMoveStatus.output)
|
|
5827
5865
|
.query(async ({ input, ctx }) => {
|
|
5828
5866
|
const { nodeId, ...methodInput } = input;
|
|
5829
5867
|
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5830
5868
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5831
|
-
return p.
|
|
5869
|
+
return p.getStorageMigrationMoveStatus(methodInput);
|
|
5832
5870
|
}),
|
|
5833
|
-
|
|
5834
|
-
.input(types_82.pipelineAnalyticsCapability.methods.
|
|
5835
|
-
.output(types_82.pipelineAnalyticsCapability.methods.
|
|
5871
|
+
cancelStorageMigrationMove: trpc_middleware_js_1.adminProcedure
|
|
5872
|
+
.input(types_82.pipelineAnalyticsCapability.methods.cancelStorageMigrationMove.input.loose())
|
|
5873
|
+
.output(types_82.pipelineAnalyticsCapability.methods.cancelStorageMigrationMove.output)
|
|
5836
5874
|
.mutation(async ({ input, ctx }) => {
|
|
5837
5875
|
const { nodeId, ...methodInput } = input;
|
|
5838
5876
|
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5839
5877
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5840
|
-
return p.
|
|
5878
|
+
return p.cancelStorageMigrationMove(methodInput);
|
|
5841
5879
|
}),
|
|
5842
5880
|
listOpsLog: trpc_middleware_js_1.adminProcedure
|
|
5843
5881
|
.input(types_82.pipelineAnalyticsCapability.methods.listOpsLog.input.loose())
|
|
@@ -6354,6 +6392,22 @@ function createCapRouter_pipelineOrchestrator(getProvider, _createRemoteProxy) {
|
|
|
6354
6392
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6355
6393
|
return p.applyDeviceSettingsPatch(input);
|
|
6356
6394
|
}),
|
|
6395
|
+
pauseForStorageMigration: trpc_middleware_js_1.adminProcedure
|
|
6396
|
+
.input(types_84.pipelineOrchestratorCapability.methods.pauseForStorageMigration.input.loose())
|
|
6397
|
+
.output(types_84.pipelineOrchestratorCapability.methods.pauseForStorageMigration.output)
|
|
6398
|
+
.mutation(async ({ input, ctx }) => {
|
|
6399
|
+
const p = requireCapProvider('pipeline-orchestrator', () => getProvider(ctx));
|
|
6400
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6401
|
+
return p.pauseForStorageMigration(input);
|
|
6402
|
+
}),
|
|
6403
|
+
resumeForStorageMigration: trpc_middleware_js_1.adminProcedure
|
|
6404
|
+
.input(types_84.pipelineOrchestratorCapability.methods.resumeForStorageMigration.input.loose())
|
|
6405
|
+
.output(types_84.pipelineOrchestratorCapability.methods.resumeForStorageMigration.output)
|
|
6406
|
+
.mutation(async ({ input, ctx }) => {
|
|
6407
|
+
const p = requireCapProvider('pipeline-orchestrator', () => getProvider(ctx));
|
|
6408
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
6409
|
+
return p.resumeForStorageMigration(input);
|
|
6410
|
+
}),
|
|
6357
6411
|
assignPipeline: trpc_middleware_js_1.adminProcedure
|
|
6358
6412
|
.input(types_84.pipelineOrchestratorCapability.methods.assignPipeline.input.loose())
|
|
6359
6413
|
.output(types_84.pipelineOrchestratorCapability.methods.assignPipeline.output)
|
|
@@ -7391,32 +7445,59 @@ function createCapRouter_recording(getProvider, createRemoteProxy) {
|
|
|
7391
7445
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7392
7446
|
return p.renderClip(methodInput);
|
|
7393
7447
|
}),
|
|
7394
|
-
|
|
7395
|
-
.input(types_92.recordingCapability.methods.
|
|
7396
|
-
.output(types_92.recordingCapability.methods.
|
|
7448
|
+
pauseForStorageMigration: trpc_middleware_js_1.adminProcedure
|
|
7449
|
+
.input(types_92.recordingCapability.methods.pauseForStorageMigration.input.loose())
|
|
7450
|
+
.output(types_92.recordingCapability.methods.pauseForStorageMigration.output)
|
|
7451
|
+
.mutation(async ({ input, ctx }) => {
|
|
7452
|
+
const { nodeId, ...methodInput } = input;
|
|
7453
|
+
const p = resolveProvider('recording', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7454
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7455
|
+
return p.pauseForStorageMigration(methodInput);
|
|
7456
|
+
}),
|
|
7457
|
+
resumeForStorageMigration: trpc_middleware_js_1.adminProcedure
|
|
7458
|
+
.input(types_92.recordingCapability.methods.resumeForStorageMigration.input.loose())
|
|
7459
|
+
.output(types_92.recordingCapability.methods.resumeForStorageMigration.output)
|
|
7460
|
+
.mutation(async ({ input, ctx }) => {
|
|
7461
|
+
const { nodeId, ...methodInput } = input;
|
|
7462
|
+
const p = resolveProvider('recording', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7463
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7464
|
+
return p.resumeForStorageMigration(methodInput);
|
|
7465
|
+
}),
|
|
7466
|
+
refreshStorageLocationsForMigration: trpc_middleware_js_1.adminProcedure
|
|
7467
|
+
.input(types_92.recordingCapability.methods.refreshStorageLocationsForMigration.input.loose())
|
|
7468
|
+
.output(types_92.recordingCapability.methods.refreshStorageLocationsForMigration.output)
|
|
7469
|
+
.mutation(async ({ input, ctx }) => {
|
|
7470
|
+
const { nodeId, ...methodInput } = input;
|
|
7471
|
+
const p = resolveProvider('recording', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7472
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7473
|
+
return p.refreshStorageLocationsForMigration(methodInput);
|
|
7474
|
+
}),
|
|
7475
|
+
startStorageMigrationMove: trpc_middleware_js_1.adminProcedure
|
|
7476
|
+
.input(types_92.recordingCapability.methods.startStorageMigrationMove.input.loose())
|
|
7477
|
+
.output(types_92.recordingCapability.methods.startStorageMigrationMove.output)
|
|
7397
7478
|
.mutation(async ({ input, ctx }) => {
|
|
7398
7479
|
const { nodeId, ...methodInput } = input;
|
|
7399
7480
|
const p = resolveProvider('recording', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7400
7481
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7401
|
-
return p.
|
|
7482
|
+
return p.startStorageMigrationMove(methodInput);
|
|
7402
7483
|
}),
|
|
7403
|
-
|
|
7404
|
-
.input(types_92.recordingCapability.methods.
|
|
7405
|
-
.output(types_92.recordingCapability.methods.
|
|
7484
|
+
getStorageMigrationMoveStatus: trpc_middleware_js_1.adminProcedure
|
|
7485
|
+
.input(types_92.recordingCapability.methods.getStorageMigrationMoveStatus.input.loose())
|
|
7486
|
+
.output(types_92.recordingCapability.methods.getStorageMigrationMoveStatus.output)
|
|
7406
7487
|
.query(async ({ input, ctx }) => {
|
|
7407
7488
|
const { nodeId, ...methodInput } = input;
|
|
7408
7489
|
const p = resolveProvider('recording', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7409
7490
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7410
|
-
return p.
|
|
7491
|
+
return p.getStorageMigrationMoveStatus(methodInput);
|
|
7411
7492
|
}),
|
|
7412
|
-
|
|
7413
|
-
.input(types_92.recordingCapability.methods.
|
|
7414
|
-
.output(types_92.recordingCapability.methods.
|
|
7493
|
+
cancelStorageMigrationMove: trpc_middleware_js_1.adminProcedure
|
|
7494
|
+
.input(types_92.recordingCapability.methods.cancelStorageMigrationMove.input.loose())
|
|
7495
|
+
.output(types_92.recordingCapability.methods.cancelStorageMigrationMove.output)
|
|
7415
7496
|
.mutation(async ({ input, ctx }) => {
|
|
7416
7497
|
const { nodeId, ...methodInput } = input;
|
|
7417
7498
|
const p = resolveProvider('recording', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7418
7499
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7419
|
-
return p.
|
|
7500
|
+
return p.cancelStorageMigrationMove(methodInput);
|
|
7420
7501
|
}),
|
|
7421
7502
|
});
|
|
7422
7503
|
}
|
|
@@ -8096,18 +8177,58 @@ function createCapRouter_storageEvictable(getProvider, createRemoteProxy) {
|
|
|
8096
8177
|
}),
|
|
8097
8178
|
});
|
|
8098
8179
|
}
|
|
8180
|
+
function createCapRouter_storageMigration(getProvider, createRemoteProxy) {
|
|
8181
|
+
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8182
|
+
plan: trpc_middleware_js_1.adminProcedure
|
|
8183
|
+
.input(types_103.storageMigrationCapability.methods.plan.input.loose())
|
|
8184
|
+
.output(types_103.storageMigrationCapability.methods.plan.output)
|
|
8185
|
+
.query(async ({ input, ctx }) => {
|
|
8186
|
+
const { nodeId, ...methodInput } = input;
|
|
8187
|
+
const p = resolveProvider('storage-migration', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8188
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8189
|
+
return p.plan(methodInput);
|
|
8190
|
+
}),
|
|
8191
|
+
start: trpc_middleware_js_1.adminProcedure
|
|
8192
|
+
.input(types_103.storageMigrationCapability.methods.start.input.loose())
|
|
8193
|
+
.output(types_103.storageMigrationCapability.methods.start.output)
|
|
8194
|
+
.mutation(async ({ input, ctx }) => {
|
|
8195
|
+
const { nodeId, ...methodInput } = input;
|
|
8196
|
+
const p = resolveProvider('storage-migration', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8197
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8198
|
+
return p.start(methodInput);
|
|
8199
|
+
}),
|
|
8200
|
+
status: trpc_middleware_js_1.adminProcedure
|
|
8201
|
+
.input(types_103.storageMigrationCapability.methods.status.input.loose())
|
|
8202
|
+
.output(types_103.storageMigrationCapability.methods.status.output)
|
|
8203
|
+
.query(async ({ input, ctx }) => {
|
|
8204
|
+
const { nodeId, ...methodInput } = input;
|
|
8205
|
+
const p = resolveProvider('storage-migration', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8206
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8207
|
+
return p.status(methodInput);
|
|
8208
|
+
}),
|
|
8209
|
+
cancel: trpc_middleware_js_1.adminProcedure
|
|
8210
|
+
.input(types_103.storageMigrationCapability.methods.cancel.input.loose())
|
|
8211
|
+
.output(types_103.storageMigrationCapability.methods.cancel.output)
|
|
8212
|
+
.mutation(async ({ input, ctx }) => {
|
|
8213
|
+
const { nodeId, ...methodInput } = input;
|
|
8214
|
+
const p = resolveProvider('storage-migration', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8215
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8216
|
+
return p.cancel(methodInput);
|
|
8217
|
+
}),
|
|
8218
|
+
});
|
|
8219
|
+
}
|
|
8099
8220
|
function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
8100
8221
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8101
8222
|
getProviderInfo: trpc_middleware_js_1.protectedProcedure
|
|
8102
8223
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
8103
|
-
.output(
|
|
8224
|
+
.output(types_104.storageProviderCapability.methods.getProviderInfo.output)
|
|
8104
8225
|
.query(async ({ input, ctx }) => {
|
|
8105
8226
|
const p = resolveProvider('storage-provider', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
8106
8227
|
return p.getProviderInfo();
|
|
8107
8228
|
}),
|
|
8108
8229
|
testLocation: trpc_middleware_js_1.adminProcedure
|
|
8109
|
-
.input(
|
|
8110
|
-
.output(
|
|
8230
|
+
.input(types_104.storageProviderCapability.methods.testLocation.input.loose())
|
|
8231
|
+
.output(types_104.storageProviderCapability.methods.testLocation.output)
|
|
8111
8232
|
.query(async ({ input, ctx }) => {
|
|
8112
8233
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8113
8234
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8115,8 +8236,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8115
8236
|
return p.testLocation(methodInput);
|
|
8116
8237
|
}),
|
|
8117
8238
|
resolve: trpc_middleware_js_1.protectedProcedure
|
|
8118
|
-
.input(
|
|
8119
|
-
.output(
|
|
8239
|
+
.input(types_104.storageProviderCapability.methods.resolve.input.loose())
|
|
8240
|
+
.output(types_104.storageProviderCapability.methods.resolve.output)
|
|
8120
8241
|
.query(async ({ input, ctx }) => {
|
|
8121
8242
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8122
8243
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8124,8 +8245,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8124
8245
|
return p.resolve(methodInput);
|
|
8125
8246
|
}),
|
|
8126
8247
|
write: trpc_middleware_js_1.protectedProcedure
|
|
8127
|
-
.input(
|
|
8128
|
-
.output(
|
|
8248
|
+
.input(types_104.storageProviderCapability.methods.write.input.loose())
|
|
8249
|
+
.output(types_104.storageProviderCapability.methods.write.output)
|
|
8129
8250
|
.mutation(async ({ input, ctx }) => {
|
|
8130
8251
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8131
8252
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8133,8 +8254,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8133
8254
|
return p.write(methodInput);
|
|
8134
8255
|
}),
|
|
8135
8256
|
read: trpc_middleware_js_1.protectedProcedure
|
|
8136
|
-
.input(
|
|
8137
|
-
.output(
|
|
8257
|
+
.input(types_104.storageProviderCapability.methods.read.input.loose())
|
|
8258
|
+
.output(types_104.storageProviderCapability.methods.read.output)
|
|
8138
8259
|
.query(async ({ input, ctx }) => {
|
|
8139
8260
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8140
8261
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8142,8 +8263,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8142
8263
|
return p.read(methodInput);
|
|
8143
8264
|
}),
|
|
8144
8265
|
exists: trpc_middleware_js_1.protectedProcedure
|
|
8145
|
-
.input(
|
|
8146
|
-
.output(
|
|
8266
|
+
.input(types_104.storageProviderCapability.methods.exists.input.loose())
|
|
8267
|
+
.output(types_104.storageProviderCapability.methods.exists.output)
|
|
8147
8268
|
.query(async ({ input, ctx }) => {
|
|
8148
8269
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8149
8270
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8151,8 +8272,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8151
8272
|
return p.exists(methodInput);
|
|
8152
8273
|
}),
|
|
8153
8274
|
list: trpc_middleware_js_1.protectedProcedure
|
|
8154
|
-
.input(
|
|
8155
|
-
.output(
|
|
8275
|
+
.input(types_104.storageProviderCapability.methods.list.input.loose())
|
|
8276
|
+
.output(types_104.storageProviderCapability.methods.list.output)
|
|
8156
8277
|
.query(async ({ input, ctx }) => {
|
|
8157
8278
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8158
8279
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8160,8 +8281,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8160
8281
|
return p.list(methodInput);
|
|
8161
8282
|
}),
|
|
8162
8283
|
delete: trpc_middleware_js_1.protectedProcedure
|
|
8163
|
-
.input(
|
|
8164
|
-
.output(
|
|
8284
|
+
.input(types_104.storageProviderCapability.methods.delete.input.loose())
|
|
8285
|
+
.output(types_104.storageProviderCapability.methods.delete.output)
|
|
8165
8286
|
.mutation(async ({ input, ctx }) => {
|
|
8166
8287
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8167
8288
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8169,8 +8290,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8169
8290
|
return p.delete(methodInput);
|
|
8170
8291
|
}),
|
|
8171
8292
|
getAvailableSpace: trpc_middleware_js_1.protectedProcedure
|
|
8172
|
-
.input(
|
|
8173
|
-
.output(
|
|
8293
|
+
.input(types_104.storageProviderCapability.methods.getAvailableSpace.input.loose())
|
|
8294
|
+
.output(types_104.storageProviderCapability.methods.getAvailableSpace.output)
|
|
8174
8295
|
.query(async ({ input, ctx }) => {
|
|
8175
8296
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8176
8297
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8178,8 +8299,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8178
8299
|
return p.getAvailableSpace(methodInput);
|
|
8179
8300
|
}),
|
|
8180
8301
|
beginUpload: trpc_middleware_js_1.protectedProcedure
|
|
8181
|
-
.input(
|
|
8182
|
-
.output(
|
|
8302
|
+
.input(types_104.storageProviderCapability.methods.beginUpload.input.loose())
|
|
8303
|
+
.output(types_104.storageProviderCapability.methods.beginUpload.output)
|
|
8183
8304
|
.mutation(async ({ input, ctx }) => {
|
|
8184
8305
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8185
8306
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8187,8 +8308,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8187
8308
|
return p.beginUpload(methodInput);
|
|
8188
8309
|
}),
|
|
8189
8310
|
writeChunk: trpc_middleware_js_1.protectedProcedure
|
|
8190
|
-
.input(
|
|
8191
|
-
.output(
|
|
8311
|
+
.input(types_104.storageProviderCapability.methods.writeChunk.input.loose())
|
|
8312
|
+
.output(types_104.storageProviderCapability.methods.writeChunk.output)
|
|
8192
8313
|
.mutation(async ({ input, ctx }) => {
|
|
8193
8314
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8194
8315
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8196,8 +8317,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8196
8317
|
return p.writeChunk(methodInput);
|
|
8197
8318
|
}),
|
|
8198
8319
|
finalizeUpload: trpc_middleware_js_1.protectedProcedure
|
|
8199
|
-
.input(
|
|
8200
|
-
.output(
|
|
8320
|
+
.input(types_104.storageProviderCapability.methods.finalizeUpload.input.loose())
|
|
8321
|
+
.output(types_104.storageProviderCapability.methods.finalizeUpload.output)
|
|
8201
8322
|
.mutation(async ({ input, ctx }) => {
|
|
8202
8323
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8203
8324
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8205,8 +8326,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8205
8326
|
return p.finalizeUpload(methodInput);
|
|
8206
8327
|
}),
|
|
8207
8328
|
abortUpload: trpc_middleware_js_1.protectedProcedure
|
|
8208
|
-
.input(
|
|
8209
|
-
.output(
|
|
8329
|
+
.input(types_104.storageProviderCapability.methods.abortUpload.input.loose())
|
|
8330
|
+
.output(types_104.storageProviderCapability.methods.abortUpload.output)
|
|
8210
8331
|
.mutation(async ({ input, ctx }) => {
|
|
8211
8332
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8212
8333
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8214,8 +8335,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8214
8335
|
return p.abortUpload(methodInput);
|
|
8215
8336
|
}),
|
|
8216
8337
|
beginDownload: trpc_middleware_js_1.protectedProcedure
|
|
8217
|
-
.input(
|
|
8218
|
-
.output(
|
|
8338
|
+
.input(types_104.storageProviderCapability.methods.beginDownload.input.loose())
|
|
8339
|
+
.output(types_104.storageProviderCapability.methods.beginDownload.output)
|
|
8219
8340
|
.mutation(async ({ input, ctx }) => {
|
|
8220
8341
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8221
8342
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8223,8 +8344,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8223
8344
|
return p.beginDownload(methodInput);
|
|
8224
8345
|
}),
|
|
8225
8346
|
readChunk: trpc_middleware_js_1.protectedProcedure
|
|
8226
|
-
.input(
|
|
8227
|
-
.output(
|
|
8347
|
+
.input(types_104.storageProviderCapability.methods.readChunk.input.loose())
|
|
8348
|
+
.output(types_104.storageProviderCapability.methods.readChunk.output)
|
|
8228
8349
|
.query(async ({ input, ctx }) => {
|
|
8229
8350
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8230
8351
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8232,8 +8353,8 @@ function createCapRouter_storageProvider(getProvider, createRemoteProxy) {
|
|
|
8232
8353
|
return p.readChunk(methodInput);
|
|
8233
8354
|
}),
|
|
8234
8355
|
endDownload: trpc_middleware_js_1.protectedProcedure
|
|
8235
|
-
.input(
|
|
8236
|
-
.output(
|
|
8356
|
+
.input(types_104.storageProviderCapability.methods.endDownload.input.loose())
|
|
8357
|
+
.output(types_104.storageProviderCapability.methods.endDownload.output)
|
|
8237
8358
|
.mutation(async ({ input, ctx }) => {
|
|
8238
8359
|
const { nodeId, addonId, ...methodInput } = input;
|
|
8239
8360
|
const p = resolveProvider('storage-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -8272,8 +8393,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8272
8393
|
return p.applyDeviceSettingsPatch(methodInput);
|
|
8273
8394
|
}),
|
|
8274
8395
|
publishCameraStream: trpc_middleware_js_1.adminProcedure
|
|
8275
|
-
.input(
|
|
8276
|
-
.output(
|
|
8396
|
+
.input(types_105.streamBrokerCapability.methods.publishCameraStream.input.loose())
|
|
8397
|
+
.output(types_105.streamBrokerCapability.methods.publishCameraStream.output)
|
|
8277
8398
|
.mutation(async ({ input, ctx }) => {
|
|
8278
8399
|
const { nodeId, ...methodInput } = input;
|
|
8279
8400
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8281,8 +8402,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8281
8402
|
return p.publishCameraStream(methodInput);
|
|
8282
8403
|
}),
|
|
8283
8404
|
retractCameraStream: trpc_middleware_js_1.adminProcedure
|
|
8284
|
-
.input(
|
|
8285
|
-
.output(
|
|
8405
|
+
.input(types_105.streamBrokerCapability.methods.retractCameraStream.input.loose())
|
|
8406
|
+
.output(types_105.streamBrokerCapability.methods.retractCameraStream.output)
|
|
8286
8407
|
.mutation(async ({ input, ctx }) => {
|
|
8287
8408
|
const { nodeId, ...methodInput } = input;
|
|
8288
8409
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8290,8 +8411,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8290
8411
|
return p.retractCameraStream(methodInput);
|
|
8291
8412
|
}),
|
|
8292
8413
|
assignProfile: trpc_middleware_js_1.adminProcedure
|
|
8293
|
-
.input(
|
|
8294
|
-
.output(
|
|
8414
|
+
.input(types_105.streamBrokerCapability.methods.assignProfile.input.loose())
|
|
8415
|
+
.output(types_105.streamBrokerCapability.methods.assignProfile.output)
|
|
8295
8416
|
.mutation(async ({ input, ctx }) => {
|
|
8296
8417
|
const { nodeId, ...methodInput } = input;
|
|
8297
8418
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8299,8 +8420,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8299
8420
|
return p.assignProfile(methodInput);
|
|
8300
8421
|
}),
|
|
8301
8422
|
unassignProfile: trpc_middleware_js_1.adminProcedure
|
|
8302
|
-
.input(
|
|
8303
|
-
.output(
|
|
8423
|
+
.input(types_105.streamBrokerCapability.methods.unassignProfile.input.loose())
|
|
8424
|
+
.output(types_105.streamBrokerCapability.methods.unassignProfile.output)
|
|
8304
8425
|
.mutation(async ({ input, ctx }) => {
|
|
8305
8426
|
const { nodeId, ...methodInput } = input;
|
|
8306
8427
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8308,8 +8429,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8308
8429
|
return p.unassignProfile(methodInput);
|
|
8309
8430
|
}),
|
|
8310
8431
|
renderPreBufferClip: trpc_middleware_js_1.adminProcedure
|
|
8311
|
-
.input(
|
|
8312
|
-
.output(
|
|
8432
|
+
.input(types_105.streamBrokerCapability.methods.renderPreBufferClip.input.loose())
|
|
8433
|
+
.output(types_105.streamBrokerCapability.methods.renderPreBufferClip.output)
|
|
8313
8434
|
.mutation(async ({ input, ctx }) => {
|
|
8314
8435
|
const { nodeId, ...methodInput } = input;
|
|
8315
8436
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8317,8 +8438,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8317
8438
|
return p.renderPreBufferClip(methodInput);
|
|
8318
8439
|
}),
|
|
8319
8440
|
produceEventMedia: trpc_middleware_js_1.adminProcedure
|
|
8320
|
-
.input(
|
|
8321
|
-
.output(
|
|
8441
|
+
.input(types_105.streamBrokerCapability.methods.produceEventMedia.input.loose())
|
|
8442
|
+
.output(types_105.streamBrokerCapability.methods.produceEventMedia.output)
|
|
8322
8443
|
.mutation(async ({ input, ctx }) => {
|
|
8323
8444
|
const { nodeId, ...methodInput } = input;
|
|
8324
8445
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8326,8 +8447,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8326
8447
|
return p.produceEventMedia(methodInput);
|
|
8327
8448
|
}),
|
|
8328
8449
|
fetchEventMedia: trpc_middleware_js_1.adminProcedure
|
|
8329
|
-
.input(
|
|
8330
|
-
.output(
|
|
8450
|
+
.input(types_105.streamBrokerCapability.methods.fetchEventMedia.input.loose())
|
|
8451
|
+
.output(types_105.streamBrokerCapability.methods.fetchEventMedia.output)
|
|
8331
8452
|
.mutation(async ({ input, ctx }) => {
|
|
8332
8453
|
const { nodeId, ...methodInput } = input;
|
|
8333
8454
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8336,21 +8457,21 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8336
8457
|
}),
|
|
8337
8458
|
listAllCameraStreams: trpc_middleware_js_1.protectedProcedure
|
|
8338
8459
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8339
|
-
.output(
|
|
8460
|
+
.output(types_105.streamBrokerCapability.methods.listAllCameraStreams.output)
|
|
8340
8461
|
.query(async ({ input, ctx }) => {
|
|
8341
8462
|
const p = resolveProvider('stream-broker', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8342
8463
|
return p.listAllCameraStreams();
|
|
8343
8464
|
}),
|
|
8344
8465
|
listAllProfileSlots: trpc_middleware_js_1.protectedProcedure
|
|
8345
8466
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8346
|
-
.output(
|
|
8467
|
+
.output(types_105.streamBrokerCapability.methods.listAllProfileSlots.output)
|
|
8347
8468
|
.query(async ({ input, ctx }) => {
|
|
8348
8469
|
const p = resolveProvider('stream-broker', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8349
8470
|
return p.listAllProfileSlots();
|
|
8350
8471
|
}),
|
|
8351
8472
|
getBrokerStats: trpc_middleware_js_1.protectedProcedure
|
|
8352
|
-
.input(
|
|
8353
|
-
.output(
|
|
8473
|
+
.input(types_105.streamBrokerCapability.methods.getBrokerStats.input.loose())
|
|
8474
|
+
.output(types_105.streamBrokerCapability.methods.getBrokerStats.output)
|
|
8354
8475
|
.query(async ({ input, ctx }) => {
|
|
8355
8476
|
const { nodeId, ...methodInput } = input;
|
|
8356
8477
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8358,8 +8479,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8358
8479
|
return p.getBrokerStats(methodInput);
|
|
8359
8480
|
}),
|
|
8360
8481
|
probeStream: trpc_middleware_js_1.adminProcedure
|
|
8361
|
-
.input(
|
|
8362
|
-
.output(
|
|
8482
|
+
.input(types_105.streamBrokerCapability.methods.probeStream.input.loose())
|
|
8483
|
+
.output(types_105.streamBrokerCapability.methods.probeStream.output)
|
|
8363
8484
|
.mutation(async ({ input, ctx }) => {
|
|
8364
8485
|
const { nodeId, ...methodInput } = input;
|
|
8365
8486
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8367,8 +8488,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8367
8488
|
return p.probeStream(methodInput);
|
|
8368
8489
|
}),
|
|
8369
8490
|
listClients: trpc_middleware_js_1.protectedProcedure
|
|
8370
|
-
.input(
|
|
8371
|
-
.output(
|
|
8491
|
+
.input(types_105.streamBrokerCapability.methods.listClients.input.loose())
|
|
8492
|
+
.output(types_105.streamBrokerCapability.methods.listClients.output)
|
|
8372
8493
|
.query(async ({ input, ctx }) => {
|
|
8373
8494
|
const { nodeId, ...methodInput } = input;
|
|
8374
8495
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8376,8 +8497,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8376
8497
|
return p.listClients(methodInput);
|
|
8377
8498
|
}),
|
|
8378
8499
|
killClient: trpc_middleware_js_1.adminProcedure
|
|
8379
|
-
.input(
|
|
8380
|
-
.output(
|
|
8500
|
+
.input(types_105.streamBrokerCapability.methods.killClient.input.loose())
|
|
8501
|
+
.output(types_105.streamBrokerCapability.methods.killClient.output)
|
|
8381
8502
|
.mutation(async ({ input, ctx }) => {
|
|
8382
8503
|
const { nodeId, ...methodInput } = input;
|
|
8383
8504
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8385,8 +8506,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8385
8506
|
return p.killClient(methodInput);
|
|
8386
8507
|
}),
|
|
8387
8508
|
restartProfile: trpc_middleware_js_1.adminProcedure
|
|
8388
|
-
.input(
|
|
8389
|
-
.output(
|
|
8509
|
+
.input(types_105.streamBrokerCapability.methods.restartProfile.input.loose())
|
|
8510
|
+
.output(types_105.streamBrokerCapability.methods.restartProfile.output)
|
|
8390
8511
|
.mutation(async ({ input, ctx }) => {
|
|
8391
8512
|
const { nodeId, ...methodInput } = input;
|
|
8392
8513
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8394,8 +8515,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8394
8515
|
return p.restartProfile(methodInput);
|
|
8395
8516
|
}),
|
|
8396
8517
|
getStreamUrl: trpc_middleware_js_1.protectedProcedure
|
|
8397
|
-
.input(
|
|
8398
|
-
.output(
|
|
8518
|
+
.input(types_105.streamBrokerCapability.methods.getStreamUrl.input.loose())
|
|
8519
|
+
.output(types_105.streamBrokerCapability.methods.getStreamUrl.output)
|
|
8399
8520
|
.query(async ({ input, ctx }) => {
|
|
8400
8521
|
const { nodeId, ...methodInput } = input;
|
|
8401
8522
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8403,8 +8524,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8403
8524
|
return p.getStreamUrl(methodInput);
|
|
8404
8525
|
}),
|
|
8405
8526
|
getStreamWithCodec: trpc_middleware_js_1.adminProcedure
|
|
8406
|
-
.input(
|
|
8407
|
-
.output(
|
|
8527
|
+
.input(types_105.streamBrokerCapability.methods.getStreamWithCodec.input.loose())
|
|
8528
|
+
.output(types_105.streamBrokerCapability.methods.getStreamWithCodec.output)
|
|
8408
8529
|
.mutation(async ({ input, ctx }) => {
|
|
8409
8530
|
const { nodeId, ...methodInput } = input;
|
|
8410
8531
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8412,8 +8533,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8412
8533
|
return p.getStreamWithCodec(methodInput);
|
|
8413
8534
|
}),
|
|
8414
8535
|
releaseStreamWithCodec: trpc_middleware_js_1.adminProcedure
|
|
8415
|
-
.input(
|
|
8416
|
-
.output(
|
|
8536
|
+
.input(types_105.streamBrokerCapability.methods.releaseStreamWithCodec.input.loose())
|
|
8537
|
+
.output(types_105.streamBrokerCapability.methods.releaseStreamWithCodec.output)
|
|
8417
8538
|
.mutation(async ({ input, ctx }) => {
|
|
8418
8539
|
const { nodeId, ...methodInput } = input;
|
|
8419
8540
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8421,8 +8542,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8421
8542
|
return p.releaseStreamWithCodec(methodInput);
|
|
8422
8543
|
}),
|
|
8423
8544
|
acquireEgressTranscode: trpc_middleware_js_1.adminProcedure
|
|
8424
|
-
.input(
|
|
8425
|
-
.output(
|
|
8545
|
+
.input(types_105.streamBrokerCapability.methods.acquireEgressTranscode.input.loose())
|
|
8546
|
+
.output(types_105.streamBrokerCapability.methods.acquireEgressTranscode.output)
|
|
8426
8547
|
.mutation(async ({ input, ctx }) => {
|
|
8427
8548
|
const { nodeId, ...methodInput } = input;
|
|
8428
8549
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8430,8 +8551,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8430
8551
|
return p.acquireEgressTranscode(methodInput);
|
|
8431
8552
|
}),
|
|
8432
8553
|
releaseEgressTranscode: trpc_middleware_js_1.adminProcedure
|
|
8433
|
-
.input(
|
|
8434
|
-
.output(
|
|
8554
|
+
.input(types_105.streamBrokerCapability.methods.releaseEgressTranscode.input.loose())
|
|
8555
|
+
.output(types_105.streamBrokerCapability.methods.releaseEgressTranscode.output)
|
|
8435
8556
|
.mutation(async ({ input, ctx }) => {
|
|
8436
8557
|
const { nodeId, ...methodInput } = input;
|
|
8437
8558
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8439,8 +8560,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8439
8560
|
return p.releaseEgressTranscode(methodInput);
|
|
8440
8561
|
}),
|
|
8441
8562
|
subscribeAudioChunks: trpc_middleware_js_1.protectedProcedure
|
|
8442
|
-
.input(
|
|
8443
|
-
.output(
|
|
8563
|
+
.input(types_105.streamBrokerCapability.methods.subscribeAudioChunks.input.loose())
|
|
8564
|
+
.output(types_105.streamBrokerCapability.methods.subscribeAudioChunks.output)
|
|
8444
8565
|
.mutation(async ({ input, ctx }) => {
|
|
8445
8566
|
const { nodeId, ...methodInput } = input;
|
|
8446
8567
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8448,8 +8569,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8448
8569
|
return p.subscribeAudioChunks(methodInput);
|
|
8449
8570
|
}),
|
|
8450
8571
|
pullAudioChunks: trpc_middleware_js_1.protectedProcedure
|
|
8451
|
-
.input(
|
|
8452
|
-
.output(
|
|
8572
|
+
.input(types_105.streamBrokerCapability.methods.pullAudioChunks.input.loose())
|
|
8573
|
+
.output(types_105.streamBrokerCapability.methods.pullAudioChunks.output)
|
|
8453
8574
|
.query(async ({ input, ctx }) => {
|
|
8454
8575
|
const { nodeId, ...methodInput } = input;
|
|
8455
8576
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8457,8 +8578,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8457
8578
|
return p.pullAudioChunks(methodInput);
|
|
8458
8579
|
}),
|
|
8459
8580
|
unsubscribeAudioChunks: trpc_middleware_js_1.protectedProcedure
|
|
8460
|
-
.input(
|
|
8461
|
-
.output(
|
|
8581
|
+
.input(types_105.streamBrokerCapability.methods.unsubscribeAudioChunks.input.loose())
|
|
8582
|
+
.output(types_105.streamBrokerCapability.methods.unsubscribeAudioChunks.output)
|
|
8462
8583
|
.mutation(async ({ input, ctx }) => {
|
|
8463
8584
|
const { nodeId, ...methodInput } = input;
|
|
8464
8585
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8466,8 +8587,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8466
8587
|
return p.unsubscribeAudioChunks(methodInput);
|
|
8467
8588
|
}),
|
|
8468
8589
|
subscribeFrames: trpc_middleware_js_1.protectedProcedure
|
|
8469
|
-
.input(
|
|
8470
|
-
.output(
|
|
8590
|
+
.input(types_105.streamBrokerCapability.methods.subscribeFrames.input.loose())
|
|
8591
|
+
.output(types_105.streamBrokerCapability.methods.subscribeFrames.output)
|
|
8471
8592
|
.mutation(async ({ input, ctx }) => {
|
|
8472
8593
|
const { nodeId, ...methodInput } = input;
|
|
8473
8594
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8475,8 +8596,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8475
8596
|
return p.subscribeFrames(methodInput);
|
|
8476
8597
|
}),
|
|
8477
8598
|
pullFrameHandles: trpc_middleware_js_1.protectedProcedure
|
|
8478
|
-
.input(
|
|
8479
|
-
.output(
|
|
8599
|
+
.input(types_105.streamBrokerCapability.methods.pullFrameHandles.input.loose())
|
|
8600
|
+
.output(types_105.streamBrokerCapability.methods.pullFrameHandles.output)
|
|
8480
8601
|
.query(async ({ input, ctx }) => {
|
|
8481
8602
|
const { nodeId, ...methodInput } = input;
|
|
8482
8603
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8484,8 +8605,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8484
8605
|
return p.pullFrameHandles(methodInput);
|
|
8485
8606
|
}),
|
|
8486
8607
|
unsubscribeFrames: trpc_middleware_js_1.protectedProcedure
|
|
8487
|
-
.input(
|
|
8488
|
-
.output(
|
|
8608
|
+
.input(types_105.streamBrokerCapability.methods.unsubscribeFrames.input.loose())
|
|
8609
|
+
.output(types_105.streamBrokerCapability.methods.unsubscribeFrames.output)
|
|
8489
8610
|
.mutation(async ({ input, ctx }) => {
|
|
8490
8611
|
const { nodeId, ...methodInput } = input;
|
|
8491
8612
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8493,8 +8614,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8493
8614
|
return p.unsubscribeFrames(methodInput);
|
|
8494
8615
|
}),
|
|
8495
8616
|
setPreBufferDuration: trpc_middleware_js_1.adminProcedure
|
|
8496
|
-
.input(
|
|
8497
|
-
.output(
|
|
8617
|
+
.input(types_105.streamBrokerCapability.methods.setPreBufferDuration.input.loose())
|
|
8618
|
+
.output(types_105.streamBrokerCapability.methods.setPreBufferDuration.output)
|
|
8498
8619
|
.mutation(async ({ input, ctx }) => {
|
|
8499
8620
|
const { nodeId, ...methodInput } = input;
|
|
8500
8621
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8502,8 +8623,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8502
8623
|
return p.setPreBufferDuration(methodInput);
|
|
8503
8624
|
}),
|
|
8504
8625
|
getPreBufferInfo: trpc_middleware_js_1.protectedProcedure
|
|
8505
|
-
.input(
|
|
8506
|
-
.output(
|
|
8626
|
+
.input(types_105.streamBrokerCapability.methods.getPreBufferInfo.input.loose())
|
|
8627
|
+
.output(types_105.streamBrokerCapability.methods.getPreBufferInfo.output)
|
|
8507
8628
|
.query(async ({ input, ctx }) => {
|
|
8508
8629
|
const { nodeId, ...methodInput } = input;
|
|
8509
8630
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8512,14 +8633,14 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8512
8633
|
}),
|
|
8513
8634
|
getRtspPort: trpc_middleware_js_1.protectedProcedure
|
|
8514
8635
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8515
|
-
.output(
|
|
8636
|
+
.output(types_105.streamBrokerCapability.methods.getRtspPort.output)
|
|
8516
8637
|
.query(async ({ input, ctx }) => {
|
|
8517
8638
|
const p = resolveProvider('stream-broker', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8518
8639
|
return p.getRtspPort();
|
|
8519
8640
|
}),
|
|
8520
8641
|
getAllRtspEntries: trpc_middleware_js_1.protectedProcedure
|
|
8521
|
-
.input(
|
|
8522
|
-
.output(
|
|
8642
|
+
.input(types_105.streamBrokerCapability.methods.getAllRtspEntries.input.loose())
|
|
8643
|
+
.output(types_105.streamBrokerCapability.methods.getAllRtspEntries.output)
|
|
8523
8644
|
.query(async ({ input, ctx }) => {
|
|
8524
8645
|
const { nodeId, ...methodInput } = input;
|
|
8525
8646
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8527,8 +8648,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8527
8648
|
return p.getAllRtspEntries(methodInput);
|
|
8528
8649
|
}),
|
|
8529
8650
|
getRtspEntry: trpc_middleware_js_1.protectedProcedure
|
|
8530
|
-
.input(
|
|
8531
|
-
.output(
|
|
8651
|
+
.input(types_105.streamBrokerCapability.methods.getRtspEntry.input.loose())
|
|
8652
|
+
.output(types_105.streamBrokerCapability.methods.getRtspEntry.output)
|
|
8532
8653
|
.query(async ({ input, ctx }) => {
|
|
8533
8654
|
const { nodeId, ...methodInput } = input;
|
|
8534
8655
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8536,8 +8657,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8536
8657
|
return p.getRtspEntry(methodInput);
|
|
8537
8658
|
}),
|
|
8538
8659
|
regenerateRtspToken: trpc_middleware_js_1.adminProcedure
|
|
8539
|
-
.input(
|
|
8540
|
-
.output(
|
|
8660
|
+
.input(types_105.streamBrokerCapability.methods.regenerateRtspToken.input.loose())
|
|
8661
|
+
.output(types_105.streamBrokerCapability.methods.regenerateRtspToken.output)
|
|
8541
8662
|
.mutation(async ({ input, ctx }) => {
|
|
8542
8663
|
const { nodeId, ...methodInput } = input;
|
|
8543
8664
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8545,8 +8666,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8545
8666
|
return p.regenerateRtspToken(methodInput);
|
|
8546
8667
|
}),
|
|
8547
8668
|
setRtspEnabled: trpc_middleware_js_1.adminProcedure
|
|
8548
|
-
.input(
|
|
8549
|
-
.output(
|
|
8669
|
+
.input(types_105.streamBrokerCapability.methods.setRtspEnabled.input.loose())
|
|
8670
|
+
.output(types_105.streamBrokerCapability.methods.setRtspEnabled.output)
|
|
8550
8671
|
.mutation(async ({ input, ctx }) => {
|
|
8551
8672
|
const { nodeId, ...methodInput } = input;
|
|
8552
8673
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8554,8 +8675,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8554
8675
|
return p.setRtspEnabled(methodInput);
|
|
8555
8676
|
}),
|
|
8556
8677
|
isRtspEnabled: trpc_middleware_js_1.protectedProcedure
|
|
8557
|
-
.input(
|
|
8558
|
-
.output(
|
|
8678
|
+
.input(types_105.streamBrokerCapability.methods.isRtspEnabled.input.loose())
|
|
8679
|
+
.output(types_105.streamBrokerCapability.methods.isRtspEnabled.output)
|
|
8559
8680
|
.query(async ({ input, ctx }) => {
|
|
8560
8681
|
const { nodeId, ...methodInput } = input;
|
|
8561
8682
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8563,8 +8684,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8563
8684
|
return p.isRtspEnabled(methodInput);
|
|
8564
8685
|
}),
|
|
8565
8686
|
getDeviceAudioMute: trpc_middleware_js_1.protectedProcedure
|
|
8566
|
-
.input(
|
|
8567
|
-
.output(
|
|
8687
|
+
.input(types_105.streamBrokerCapability.methods.getDeviceAudioMute.input.loose())
|
|
8688
|
+
.output(types_105.streamBrokerCapability.methods.getDeviceAudioMute.output)
|
|
8568
8689
|
.query(async ({ input, ctx }) => {
|
|
8569
8690
|
const { nodeId, ...methodInput } = input;
|
|
8570
8691
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8572,8 +8693,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8572
8693
|
return p.getDeviceAudioMute(methodInput);
|
|
8573
8694
|
}),
|
|
8574
8695
|
setDeviceAudioMute: trpc_middleware_js_1.adminProcedure
|
|
8575
|
-
.input(
|
|
8576
|
-
.output(
|
|
8696
|
+
.input(types_105.streamBrokerCapability.methods.setDeviceAudioMute.input.loose())
|
|
8697
|
+
.output(types_105.streamBrokerCapability.methods.setDeviceAudioMute.output)
|
|
8577
8698
|
.mutation(async ({ input, ctx }) => {
|
|
8578
8699
|
const { nodeId, ...methodInput } = input;
|
|
8579
8700
|
const p = resolveProvider('stream-broker', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8585,8 +8706,8 @@ function createCapRouter_streamBroker(getProvider, createRemoteProxy) {
|
|
|
8585
8706
|
function createCapRouter_streamCatalog(getProvider, createRemoteProxy) {
|
|
8586
8707
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8587
8708
|
getCatalog: trpc_middleware_js_1.protectedProcedure
|
|
8588
|
-
.input(
|
|
8589
|
-
.output(
|
|
8709
|
+
.input(types_106.streamCatalogCapability.methods.getCatalog.input.loose())
|
|
8710
|
+
.output(types_106.streamCatalogCapability.methods.getCatalog.output)
|
|
8590
8711
|
.query(async ({ input, ctx }) => {
|
|
8591
8712
|
const { nodeId, ...methodInput } = input;
|
|
8592
8713
|
const p = resolveProvider('stream-catalog', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8607,8 +8728,8 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
8607
8728
|
return p.getStatus(methodInput);
|
|
8608
8729
|
}),
|
|
8609
8730
|
getOptions: trpc_middleware_js_1.protectedProcedure
|
|
8610
|
-
.input(
|
|
8611
|
-
.output(
|
|
8731
|
+
.input(types_107.streamParamsCapability.methods.getOptions.input.loose())
|
|
8732
|
+
.output(types_107.streamParamsCapability.methods.getOptions.output)
|
|
8612
8733
|
.query(async ({ input, ctx }) => {
|
|
8613
8734
|
const { nodeId, ...methodInput } = input;
|
|
8614
8735
|
const p = resolveProvider('stream-params', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8616,8 +8737,8 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
8616
8737
|
return p.getOptions(methodInput);
|
|
8617
8738
|
}),
|
|
8618
8739
|
setProfile: trpc_middleware_js_1.adminProcedure
|
|
8619
|
-
.input(
|
|
8620
|
-
.output(
|
|
8740
|
+
.input(types_107.streamParamsCapability.methods.setProfile.input.loose())
|
|
8741
|
+
.output(types_107.streamParamsCapability.methods.setProfile.output)
|
|
8621
8742
|
.mutation(async ({ input, ctx }) => {
|
|
8622
8743
|
const { nodeId, ...methodInput } = input;
|
|
8623
8744
|
const p = resolveProvider('stream-params', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8625,8 +8746,8 @@ function createCapRouter_streamParams(getProvider, createRemoteProxy) {
|
|
|
8625
8746
|
return p.setProfile(methodInput);
|
|
8626
8747
|
}),
|
|
8627
8748
|
getConfigSchema: trpc_middleware_js_1.protectedProcedure
|
|
8628
|
-
.input(
|
|
8629
|
-
.output(
|
|
8749
|
+
.input(types_107.streamParamsCapability.methods.getConfigSchema.input.loose())
|
|
8750
|
+
.output(types_107.streamParamsCapability.methods.getConfigSchema.output)
|
|
8630
8751
|
.query(async ({ input, ctx }) => {
|
|
8631
8752
|
const { nodeId, ...methodInput } = input;
|
|
8632
8753
|
const p = resolveProvider('stream-params', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8647,8 +8768,8 @@ function createCapRouter_switch(getProvider, createRemoteProxy) {
|
|
|
8647
8768
|
return p.getStatus(methodInput);
|
|
8648
8769
|
}),
|
|
8649
8770
|
setState: trpc_middleware_js_1.adminProcedure
|
|
8650
|
-
.input(
|
|
8651
|
-
.output(
|
|
8771
|
+
.input(types_108.switchCapability.methods.setState.input.loose())
|
|
8772
|
+
.output(types_108.switchCapability.methods.setState.output)
|
|
8652
8773
|
.mutation(async ({ input, ctx }) => {
|
|
8653
8774
|
const { nodeId, ...methodInput } = input;
|
|
8654
8775
|
const p = resolveProvider('switch', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8661,49 +8782,49 @@ function createCapRouter_system(getProvider, createRemoteProxy) {
|
|
|
8661
8782
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8662
8783
|
info: trpc_middleware_js_1.protectedProcedure
|
|
8663
8784
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8664
|
-
.output(
|
|
8785
|
+
.output(types_109.systemCapability.methods.info.output)
|
|
8665
8786
|
.query(async ({ input, ctx }) => {
|
|
8666
8787
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8667
8788
|
return p.info();
|
|
8668
8789
|
}),
|
|
8669
8790
|
health: trpc_middleware_js_1.protectedProcedure
|
|
8670
8791
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8671
|
-
.output(
|
|
8792
|
+
.output(types_109.systemCapability.methods.health.output)
|
|
8672
8793
|
.query(async ({ input, ctx }) => {
|
|
8673
8794
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8674
8795
|
return p.health();
|
|
8675
8796
|
}),
|
|
8676
8797
|
featureFlags: trpc_middleware_js_1.protectedProcedure
|
|
8677
8798
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8678
|
-
.output(
|
|
8799
|
+
.output(types_109.systemCapability.methods.featureFlags.output)
|
|
8679
8800
|
.query(async ({ input, ctx }) => {
|
|
8680
8801
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8681
8802
|
return p.featureFlags();
|
|
8682
8803
|
}),
|
|
8683
8804
|
networkAddresses: trpc_middleware_js_1.protectedProcedure
|
|
8684
8805
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8685
|
-
.output(
|
|
8806
|
+
.output(types_109.systemCapability.methods.networkAddresses.output)
|
|
8686
8807
|
.query(async ({ input, ctx }) => {
|
|
8687
8808
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8688
8809
|
return p.networkAddresses();
|
|
8689
8810
|
}),
|
|
8690
8811
|
getRetentionConfig: trpc_middleware_js_1.adminProcedure
|
|
8691
8812
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8692
|
-
.output(
|
|
8813
|
+
.output(types_109.systemCapability.methods.getRetentionConfig.output)
|
|
8693
8814
|
.query(async ({ input, ctx }) => {
|
|
8694
8815
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8695
8816
|
return p.getRetentionConfig();
|
|
8696
8817
|
}),
|
|
8697
8818
|
setRetentionConfig: trpc_middleware_js_1.adminProcedure
|
|
8698
|
-
.input(
|
|
8699
|
-
.output(
|
|
8819
|
+
.input(types_109.systemCapability.methods.setRetentionConfig.input)
|
|
8820
|
+
.output(types_109.systemCapability.methods.setRetentionConfig.output)
|
|
8700
8821
|
.mutation(async ({ input, ctx }) => {
|
|
8701
8822
|
const p = requireCapProvider('system', () => getProvider(ctx));
|
|
8702
8823
|
return p.setRetentionConfig(input);
|
|
8703
8824
|
}),
|
|
8704
8825
|
forceRetentionCleanup: trpc_middleware_js_1.adminProcedure
|
|
8705
8826
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8706
|
-
.output(
|
|
8827
|
+
.output(types_109.systemCapability.methods.forceRetentionCleanup.output)
|
|
8707
8828
|
.mutation(async ({ input, ctx }) => {
|
|
8708
8829
|
const p = resolveProvider('system', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8709
8830
|
return p.forceRetentionCleanup();
|
|
@@ -8740,21 +8861,71 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
8740
8861
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8741
8862
|
listProfiles: trpc_middleware_js_1.adminProcedure
|
|
8742
8863
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8743
|
-
.output(
|
|
8864
|
+
.output(types_110.terminalSessionCapability.methods.listProfiles.output)
|
|
8744
8865
|
.query(async ({ input, ctx }) => {
|
|
8745
8866
|
const p = resolveProvider('terminal-session', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8746
8867
|
return p.listProfiles();
|
|
8747
8868
|
}),
|
|
8869
|
+
listInstances: trpc_middleware_js_1.adminProcedure
|
|
8870
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8871
|
+
.output(types_110.terminalSessionCapability.methods.listInstances.output)
|
|
8872
|
+
.query(async ({ input, ctx }) => {
|
|
8873
|
+
const p = resolveProvider('terminal-session', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8874
|
+
return p.listInstances();
|
|
8875
|
+
}),
|
|
8876
|
+
createInstance: trpc_middleware_js_1.adminProcedure
|
|
8877
|
+
.input(types_110.terminalSessionCapability.methods.createInstance.input.loose())
|
|
8878
|
+
.output(types_110.terminalSessionCapability.methods.createInstance.output)
|
|
8879
|
+
.mutation(async ({ input, ctx }) => {
|
|
8880
|
+
const { nodeId, ...methodInput } = input;
|
|
8881
|
+
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8882
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8883
|
+
return p.createInstance(methodInput);
|
|
8884
|
+
}),
|
|
8885
|
+
deleteInstance: trpc_middleware_js_1.adminProcedure
|
|
8886
|
+
.input(types_110.terminalSessionCapability.methods.deleteInstance.input.loose())
|
|
8887
|
+
.output(types_110.terminalSessionCapability.methods.deleteInstance.output)
|
|
8888
|
+
.mutation(async ({ input, ctx }) => {
|
|
8889
|
+
const { nodeId, ...methodInput } = input;
|
|
8890
|
+
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8891
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8892
|
+
return p.deleteInstance(methodInput);
|
|
8893
|
+
}),
|
|
8894
|
+
setInstanceEnabled: trpc_middleware_js_1.adminProcedure
|
|
8895
|
+
.input(types_110.terminalSessionCapability.methods.setInstanceEnabled.input.loose())
|
|
8896
|
+
.output(types_110.terminalSessionCapability.methods.setInstanceEnabled.output)
|
|
8897
|
+
.mutation(async ({ input, ctx }) => {
|
|
8898
|
+
const { nodeId, ...methodInput } = input;
|
|
8899
|
+
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8900
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8901
|
+
return p.setInstanceEnabled(methodInput);
|
|
8902
|
+
}),
|
|
8903
|
+
listLegacyCameras: trpc_middleware_js_1.adminProcedure
|
|
8904
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8905
|
+
.output(types_110.terminalSessionCapability.methods.listLegacyCameras.output)
|
|
8906
|
+
.query(async ({ input, ctx }) => {
|
|
8907
|
+
const p = resolveProvider('terminal-session', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8908
|
+
return p.listLegacyCameras();
|
|
8909
|
+
}),
|
|
8910
|
+
adoptLegacyMonitor: trpc_middleware_js_1.adminProcedure
|
|
8911
|
+
.input(types_110.terminalSessionCapability.methods.adoptLegacyMonitor.input.loose())
|
|
8912
|
+
.output(types_110.terminalSessionCapability.methods.adoptLegacyMonitor.output)
|
|
8913
|
+
.mutation(async ({ input, ctx }) => {
|
|
8914
|
+
const { nodeId, ...methodInput } = input;
|
|
8915
|
+
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8916
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8917
|
+
return p.adoptLegacyMonitor(methodInput);
|
|
8918
|
+
}),
|
|
8748
8919
|
listSessions: trpc_middleware_js_1.adminProcedure
|
|
8749
8920
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8750
|
-
.output(
|
|
8921
|
+
.output(types_110.terminalSessionCapability.methods.listSessions.output)
|
|
8751
8922
|
.query(async ({ input, ctx }) => {
|
|
8752
8923
|
const p = resolveProvider('terminal-session', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8753
8924
|
return p.listSessions();
|
|
8754
8925
|
}),
|
|
8755
8926
|
openSession: trpc_middleware_js_1.adminProcedure
|
|
8756
|
-
.input(
|
|
8757
|
-
.output(
|
|
8927
|
+
.input(types_110.terminalSessionCapability.methods.openSession.input.loose())
|
|
8928
|
+
.output(types_110.terminalSessionCapability.methods.openSession.output)
|
|
8758
8929
|
.mutation(async ({ input, ctx }) => {
|
|
8759
8930
|
const { nodeId, ...methodInput } = input;
|
|
8760
8931
|
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8762,8 +8933,8 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
8762
8933
|
return p.openSession(methodInput);
|
|
8763
8934
|
}),
|
|
8764
8935
|
resize: trpc_middleware_js_1.adminProcedure
|
|
8765
|
-
.input(
|
|
8766
|
-
.output(
|
|
8936
|
+
.input(types_110.terminalSessionCapability.methods.resize.input.loose())
|
|
8937
|
+
.output(types_110.terminalSessionCapability.methods.resize.output)
|
|
8767
8938
|
.mutation(async ({ input, ctx }) => {
|
|
8768
8939
|
const { nodeId, ...methodInput } = input;
|
|
8769
8940
|
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8771,8 +8942,8 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
8771
8942
|
return p.resize(methodInput);
|
|
8772
8943
|
}),
|
|
8773
8944
|
pullOutput: trpc_middleware_js_1.adminProcedure
|
|
8774
|
-
.input(
|
|
8775
|
-
.output(
|
|
8945
|
+
.input(types_110.terminalSessionCapability.methods.pullOutput.input.loose())
|
|
8946
|
+
.output(types_110.terminalSessionCapability.methods.pullOutput.output)
|
|
8776
8947
|
.mutation(async ({ input, ctx }) => {
|
|
8777
8948
|
const { nodeId, ...methodInput } = input;
|
|
8778
8949
|
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8780,8 +8951,8 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
8780
8951
|
return p.pullOutput(methodInput);
|
|
8781
8952
|
}),
|
|
8782
8953
|
writeInput: trpc_middleware_js_1.adminProcedure
|
|
8783
|
-
.input(
|
|
8784
|
-
.output(
|
|
8954
|
+
.input(types_110.terminalSessionCapability.methods.writeInput.input.loose())
|
|
8955
|
+
.output(types_110.terminalSessionCapability.methods.writeInput.output)
|
|
8785
8956
|
.mutation(async ({ input, ctx }) => {
|
|
8786
8957
|
const { nodeId, ...methodInput } = input;
|
|
8787
8958
|
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8789,8 +8960,8 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
8789
8960
|
return p.writeInput(methodInput);
|
|
8790
8961
|
}),
|
|
8791
8962
|
close: trpc_middleware_js_1.adminProcedure
|
|
8792
|
-
.input(
|
|
8793
|
-
.output(
|
|
8963
|
+
.input(types_110.terminalSessionCapability.methods.close.input.loose())
|
|
8964
|
+
.output(types_110.terminalSessionCapability.methods.close.output)
|
|
8794
8965
|
.mutation(async ({ input, ctx }) => {
|
|
8795
8966
|
const { nodeId, ...methodInput } = input;
|
|
8796
8967
|
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8802,7 +8973,7 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
8802
8973
|
function createCapRouter_toast(getProvider, _createRemoteProxy) {
|
|
8803
8974
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8804
8975
|
onToast: trpc_middleware_js_1.protectedProcedure
|
|
8805
|
-
.input(
|
|
8976
|
+
.input(types_111.toastCapability.methods.onToast.input)
|
|
8806
8977
|
.subscription(({ input, ctx }) => {
|
|
8807
8978
|
const p = requireCapProvider('toast', () => getProvider(ctx));
|
|
8808
8979
|
return (0, trpc_middleware_js_1.iterableSubscription)((push) => {
|
|
@@ -8815,7 +8986,7 @@ function createCapRouter_turnProvider(getProvider, createRemoteProxy) {
|
|
|
8815
8986
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8816
8987
|
getTurnServers: trpc_middleware_js_1.protectedProcedure
|
|
8817
8988
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
8818
|
-
.output(
|
|
8989
|
+
.output(types_112.turnProviderCapability.methods.getTurnServers.output)
|
|
8819
8990
|
.query(async ({ input, ctx }) => {
|
|
8820
8991
|
const p = resolveProvider('turn-provider', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
8821
8992
|
return p.getTurnServers();
|
|
@@ -8835,7 +9006,7 @@ function createCapRouter_update(getProvider, createRemoteProxy) {
|
|
|
8835
9006
|
}),
|
|
8836
9007
|
installUpdate: trpc_middleware_js_1.adminProcedure
|
|
8837
9008
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8838
|
-
.output(
|
|
9009
|
+
.output(types_113.updateCapability.methods.installUpdate.output)
|
|
8839
9010
|
.mutation(async ({ input, ctx }) => {
|
|
8840
9011
|
const p = resolveProvider('update', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8841
9012
|
return p.installUpdate();
|
|
@@ -8846,14 +9017,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8846
9017
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
8847
9018
|
listUsers: trpc_middleware_js_1.adminProcedure
|
|
8848
9019
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8849
|
-
.output(
|
|
9020
|
+
.output(types_114.userManagementCapability.methods.listUsers.output)
|
|
8850
9021
|
.query(async ({ input, ctx }) => {
|
|
8851
9022
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8852
9023
|
return p.listUsers();
|
|
8853
9024
|
}),
|
|
8854
9025
|
createUser: trpc_middleware_js_1.adminProcedure
|
|
8855
|
-
.input(
|
|
8856
|
-
.output(
|
|
9026
|
+
.input(types_114.userManagementCapability.methods.createUser.input.loose())
|
|
9027
|
+
.output(types_114.userManagementCapability.methods.createUser.output)
|
|
8857
9028
|
.mutation(async ({ input, ctx }) => {
|
|
8858
9029
|
const { nodeId, ...methodInput } = input;
|
|
8859
9030
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8861,8 +9032,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8861
9032
|
return p.createUser(methodInput);
|
|
8862
9033
|
}),
|
|
8863
9034
|
updateUser: trpc_middleware_js_1.adminProcedure
|
|
8864
|
-
.input(
|
|
8865
|
-
.output(
|
|
9035
|
+
.input(types_114.userManagementCapability.methods.updateUser.input.loose())
|
|
9036
|
+
.output(types_114.userManagementCapability.methods.updateUser.output)
|
|
8866
9037
|
.mutation(async ({ input, ctx }) => {
|
|
8867
9038
|
const { nodeId, ...methodInput } = input;
|
|
8868
9039
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8870,8 +9041,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8870
9041
|
return p.updateUser(methodInput);
|
|
8871
9042
|
}),
|
|
8872
9043
|
deleteUser: trpc_middleware_js_1.adminProcedure
|
|
8873
|
-
.input(
|
|
8874
|
-
.output(
|
|
9044
|
+
.input(types_114.userManagementCapability.methods.deleteUser.input.loose())
|
|
9045
|
+
.output(types_114.userManagementCapability.methods.deleteUser.output)
|
|
8875
9046
|
.mutation(async ({ input, ctx }) => {
|
|
8876
9047
|
const { nodeId, ...methodInput } = input;
|
|
8877
9048
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8879,8 +9050,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8879
9050
|
return p.deleteUser(methodInput);
|
|
8880
9051
|
}),
|
|
8881
9052
|
resetPassword: trpc_middleware_js_1.adminProcedure
|
|
8882
|
-
.input(
|
|
8883
|
-
.output(
|
|
9053
|
+
.input(types_114.userManagementCapability.methods.resetPassword.input.loose())
|
|
9054
|
+
.output(types_114.userManagementCapability.methods.resetPassword.output)
|
|
8884
9055
|
.mutation(async ({ input, ctx }) => {
|
|
8885
9056
|
const { nodeId, ...methodInput } = input;
|
|
8886
9057
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8888,8 +9059,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8888
9059
|
return p.resetPassword(methodInput);
|
|
8889
9060
|
}),
|
|
8890
9061
|
setUserScopes: trpc_middleware_js_1.adminProcedure
|
|
8891
|
-
.input(
|
|
8892
|
-
.output(
|
|
9062
|
+
.input(types_114.userManagementCapability.methods.setUserScopes.input.loose())
|
|
9063
|
+
.output(types_114.userManagementCapability.methods.setUserScopes.output)
|
|
8893
9064
|
.mutation(async ({ input, ctx }) => {
|
|
8894
9065
|
const { nodeId, ...methodInput } = input;
|
|
8895
9066
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8897,8 +9068,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8897
9068
|
return p.setUserScopes(methodInput);
|
|
8898
9069
|
}),
|
|
8899
9070
|
validateCredentials: trpc_middleware_js_1.protectedProcedure
|
|
8900
|
-
.input(
|
|
8901
|
-
.output(
|
|
9071
|
+
.input(types_114.userManagementCapability.methods.validateCredentials.input.loose())
|
|
9072
|
+
.output(types_114.userManagementCapability.methods.validateCredentials.output)
|
|
8902
9073
|
.mutation(async ({ input, ctx }) => {
|
|
8903
9074
|
const { nodeId, ...methodInput } = input;
|
|
8904
9075
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8907,14 +9078,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8907
9078
|
}),
|
|
8908
9079
|
listApiKeys: trpc_middleware_js_1.adminProcedure
|
|
8909
9080
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
8910
|
-
.output(
|
|
9081
|
+
.output(types_114.userManagementCapability.methods.listApiKeys.output)
|
|
8911
9082
|
.query(async ({ input, ctx }) => {
|
|
8912
9083
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8913
9084
|
return p.listApiKeys();
|
|
8914
9085
|
}),
|
|
8915
9086
|
createApiKey: trpc_middleware_js_1.adminProcedure
|
|
8916
|
-
.input(
|
|
8917
|
-
.output(
|
|
9087
|
+
.input(types_114.userManagementCapability.methods.createApiKey.input.loose())
|
|
9088
|
+
.output(types_114.userManagementCapability.methods.createApiKey.output)
|
|
8918
9089
|
.mutation(async ({ input, ctx }) => {
|
|
8919
9090
|
const { nodeId, ...methodInput } = input;
|
|
8920
9091
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8922,8 +9093,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8922
9093
|
return p.createApiKey(methodInput);
|
|
8923
9094
|
}),
|
|
8924
9095
|
revokeApiKey: trpc_middleware_js_1.adminProcedure
|
|
8925
|
-
.input(
|
|
8926
|
-
.output(
|
|
9096
|
+
.input(types_114.userManagementCapability.methods.revokeApiKey.input.loose())
|
|
9097
|
+
.output(types_114.userManagementCapability.methods.revokeApiKey.output)
|
|
8927
9098
|
.mutation(async ({ input, ctx }) => {
|
|
8928
9099
|
const { nodeId, ...methodInput } = input;
|
|
8929
9100
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8931,8 +9102,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8931
9102
|
return p.revokeApiKey(methodInput);
|
|
8932
9103
|
}),
|
|
8933
9104
|
validateApiKey: trpc_middleware_js_1.protectedProcedure
|
|
8934
|
-
.input(
|
|
8935
|
-
.output(
|
|
9105
|
+
.input(types_114.userManagementCapability.methods.validateApiKey.input.loose())
|
|
9106
|
+
.output(types_114.userManagementCapability.methods.validateApiKey.output)
|
|
8936
9107
|
.mutation(async ({ input, ctx }) => {
|
|
8937
9108
|
const { nodeId, ...methodInput } = input;
|
|
8938
9109
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8940,8 +9111,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8940
9111
|
return p.validateApiKey(methodInput);
|
|
8941
9112
|
}),
|
|
8942
9113
|
createScopedToken: trpc_middleware_js_1.adminProcedure
|
|
8943
|
-
.input(
|
|
8944
|
-
.output(
|
|
9114
|
+
.input(types_114.userManagementCapability.methods.createScopedToken.input.loose())
|
|
9115
|
+
.output(types_114.userManagementCapability.methods.createScopedToken.output)
|
|
8945
9116
|
.mutation(async ({ input, ctx }) => {
|
|
8946
9117
|
const { nodeId, ...methodInput } = input;
|
|
8947
9118
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8949,8 +9120,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8949
9120
|
return p.createScopedToken(methodInput);
|
|
8950
9121
|
}),
|
|
8951
9122
|
revokeScopedToken: trpc_middleware_js_1.adminProcedure
|
|
8952
|
-
.input(
|
|
8953
|
-
.output(
|
|
9123
|
+
.input(types_114.userManagementCapability.methods.revokeScopedToken.input.loose())
|
|
9124
|
+
.output(types_114.userManagementCapability.methods.revokeScopedToken.output)
|
|
8954
9125
|
.mutation(async ({ input, ctx }) => {
|
|
8955
9126
|
const { nodeId, ...methodInput } = input;
|
|
8956
9127
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8958,8 +9129,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8958
9129
|
return p.revokeScopedToken(methodInput);
|
|
8959
9130
|
}),
|
|
8960
9131
|
validateScopedToken: trpc_middleware_js_1.protectedProcedure
|
|
8961
|
-
.input(
|
|
8962
|
-
.output(
|
|
9132
|
+
.input(types_114.userManagementCapability.methods.validateScopedToken.input.loose())
|
|
9133
|
+
.output(types_114.userManagementCapability.methods.validateScopedToken.output)
|
|
8963
9134
|
.query(async ({ input, ctx }) => {
|
|
8964
9135
|
const { nodeId, ...methodInput } = input;
|
|
8965
9136
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8967,8 +9138,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8967
9138
|
return p.validateScopedToken(methodInput);
|
|
8968
9139
|
}),
|
|
8969
9140
|
listScopedTokens: trpc_middleware_js_1.adminProcedure
|
|
8970
|
-
.input(
|
|
8971
|
-
.output(
|
|
9141
|
+
.input(types_114.userManagementCapability.methods.listScopedTokens.input.loose())
|
|
9142
|
+
.output(types_114.userManagementCapability.methods.listScopedTokens.output)
|
|
8972
9143
|
.query(async ({ input, ctx }) => {
|
|
8973
9144
|
const { nodeId, ...methodInput } = input;
|
|
8974
9145
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8976,8 +9147,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8976
9147
|
return p.listScopedTokens(methodInput);
|
|
8977
9148
|
}),
|
|
8978
9149
|
setupTotp: trpc_middleware_js_1.adminProcedure
|
|
8979
|
-
.input(
|
|
8980
|
-
.output(
|
|
9150
|
+
.input(types_114.userManagementCapability.methods.setupTotp.input.loose())
|
|
9151
|
+
.output(types_114.userManagementCapability.methods.setupTotp.output)
|
|
8981
9152
|
.mutation(async ({ input, ctx }) => {
|
|
8982
9153
|
const { nodeId, ...methodInput } = input;
|
|
8983
9154
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8985,8 +9156,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8985
9156
|
return p.setupTotp(methodInput);
|
|
8986
9157
|
}),
|
|
8987
9158
|
confirmTotp: trpc_middleware_js_1.adminProcedure
|
|
8988
|
-
.input(
|
|
8989
|
-
.output(
|
|
9159
|
+
.input(types_114.userManagementCapability.methods.confirmTotp.input.loose())
|
|
9160
|
+
.output(types_114.userManagementCapability.methods.confirmTotp.output)
|
|
8990
9161
|
.mutation(async ({ input, ctx }) => {
|
|
8991
9162
|
const { nodeId, ...methodInput } = input;
|
|
8992
9163
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -8994,8 +9165,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
8994
9165
|
return p.confirmTotp(methodInput);
|
|
8995
9166
|
}),
|
|
8996
9167
|
disableTotp: trpc_middleware_js_1.adminProcedure
|
|
8997
|
-
.input(
|
|
8998
|
-
.output(
|
|
9168
|
+
.input(types_114.userManagementCapability.methods.disableTotp.input.loose())
|
|
9169
|
+
.output(types_114.userManagementCapability.methods.disableTotp.output)
|
|
8999
9170
|
.mutation(async ({ input, ctx }) => {
|
|
9000
9171
|
const { nodeId, ...methodInput } = input;
|
|
9001
9172
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9003,8 +9174,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9003
9174
|
return p.disableTotp(methodInput);
|
|
9004
9175
|
}),
|
|
9005
9176
|
getTotpStatus: trpc_middleware_js_1.adminProcedure
|
|
9006
|
-
.input(
|
|
9007
|
-
.output(
|
|
9177
|
+
.input(types_114.userManagementCapability.methods.getTotpStatus.input.loose())
|
|
9178
|
+
.output(types_114.userManagementCapability.methods.getTotpStatus.output)
|
|
9008
9179
|
.query(async ({ input, ctx }) => {
|
|
9009
9180
|
const { nodeId, ...methodInput } = input;
|
|
9010
9181
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9012,8 +9183,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9012
9183
|
return p.getTotpStatus(methodInput);
|
|
9013
9184
|
}),
|
|
9014
9185
|
verifyTotp: trpc_middleware_js_1.protectedProcedure
|
|
9015
|
-
.input(
|
|
9016
|
-
.output(
|
|
9186
|
+
.input(types_114.userManagementCapability.methods.verifyTotp.input.loose())
|
|
9187
|
+
.output(types_114.userManagementCapability.methods.verifyTotp.output)
|
|
9017
9188
|
.mutation(async ({ input, ctx }) => {
|
|
9018
9189
|
const { nodeId, ...methodInput } = input;
|
|
9019
9190
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9021,8 +9192,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9021
9192
|
return p.verifyTotp(methodInput);
|
|
9022
9193
|
}),
|
|
9023
9194
|
oauthIssueCode: trpc_middleware_js_1.protectedProcedure
|
|
9024
|
-
.input(
|
|
9025
|
-
.output(
|
|
9195
|
+
.input(types_114.userManagementCapability.methods.oauthIssueCode.input.loose())
|
|
9196
|
+
.output(types_114.userManagementCapability.methods.oauthIssueCode.output)
|
|
9026
9197
|
.mutation(async ({ input, ctx }) => {
|
|
9027
9198
|
const { nodeId, ...methodInput } = input;
|
|
9028
9199
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9030,8 +9201,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9030
9201
|
return p.oauthIssueCode(methodInput);
|
|
9031
9202
|
}),
|
|
9032
9203
|
oauthExchangeCode: trpc_middleware_js_1.protectedProcedure
|
|
9033
|
-
.input(
|
|
9034
|
-
.output(
|
|
9204
|
+
.input(types_114.userManagementCapability.methods.oauthExchangeCode.input.loose())
|
|
9205
|
+
.output(types_114.userManagementCapability.methods.oauthExchangeCode.output)
|
|
9035
9206
|
.mutation(async ({ input, ctx }) => {
|
|
9036
9207
|
const { nodeId, ...methodInput } = input;
|
|
9037
9208
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9039,8 +9210,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9039
9210
|
return p.oauthExchangeCode(methodInput);
|
|
9040
9211
|
}),
|
|
9041
9212
|
oauthRefresh: trpc_middleware_js_1.protectedProcedure
|
|
9042
|
-
.input(
|
|
9043
|
-
.output(
|
|
9213
|
+
.input(types_114.userManagementCapability.methods.oauthRefresh.input.loose())
|
|
9214
|
+
.output(types_114.userManagementCapability.methods.oauthRefresh.output)
|
|
9044
9215
|
.mutation(async ({ input, ctx }) => {
|
|
9045
9216
|
const { nodeId, ...methodInput } = input;
|
|
9046
9217
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9048,8 +9219,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9048
9219
|
return p.oauthRefresh(methodInput);
|
|
9049
9220
|
}),
|
|
9050
9221
|
oauthVerifyAccessToken: trpc_middleware_js_1.protectedProcedure
|
|
9051
|
-
.input(
|
|
9052
|
-
.output(
|
|
9222
|
+
.input(types_114.userManagementCapability.methods.oauthVerifyAccessToken.input.loose())
|
|
9223
|
+
.output(types_114.userManagementCapability.methods.oauthVerifyAccessToken.output)
|
|
9053
9224
|
.query(async ({ input, ctx }) => {
|
|
9054
9225
|
const { nodeId, ...methodInput } = input;
|
|
9055
9226
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9058,14 +9229,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9058
9229
|
}),
|
|
9059
9230
|
listOauthSessions: trpc_middleware_js_1.adminProcedure
|
|
9060
9231
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
9061
|
-
.output(
|
|
9232
|
+
.output(types_114.userManagementCapability.methods.listOauthSessions.output)
|
|
9062
9233
|
.query(async ({ input, ctx }) => {
|
|
9063
9234
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
9064
9235
|
return p.listOauthSessions();
|
|
9065
9236
|
}),
|
|
9066
9237
|
revokeOauthSession: trpc_middleware_js_1.adminProcedure
|
|
9067
|
-
.input(
|
|
9068
|
-
.output(
|
|
9238
|
+
.input(types_114.userManagementCapability.methods.revokeOauthSession.input.loose())
|
|
9239
|
+
.output(types_114.userManagementCapability.methods.revokeOauthSession.output)
|
|
9069
9240
|
.mutation(async ({ input, ctx }) => {
|
|
9070
9241
|
const { nodeId, ...methodInput } = input;
|
|
9071
9242
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9077,8 +9248,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
9077
9248
|
function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
9078
9249
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9079
9250
|
beginRegistration: trpc_middleware_js_1.adminProcedure
|
|
9080
|
-
.input(
|
|
9081
|
-
.output(
|
|
9251
|
+
.input(types_115.userPasskeysCapability.methods.beginRegistration.input.loose())
|
|
9252
|
+
.output(types_115.userPasskeysCapability.methods.beginRegistration.output)
|
|
9082
9253
|
.mutation(async ({ input, ctx }) => {
|
|
9083
9254
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9084
9255
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9086,8 +9257,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9086
9257
|
return p.beginRegistration(methodInput);
|
|
9087
9258
|
}),
|
|
9088
9259
|
finishRegistration: trpc_middleware_js_1.adminProcedure
|
|
9089
|
-
.input(
|
|
9090
|
-
.output(
|
|
9260
|
+
.input(types_115.userPasskeysCapability.methods.finishRegistration.input.loose())
|
|
9261
|
+
.output(types_115.userPasskeysCapability.methods.finishRegistration.output)
|
|
9091
9262
|
.mutation(async ({ input, ctx }) => {
|
|
9092
9263
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9093
9264
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9095,8 +9266,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9095
9266
|
return p.finishRegistration(methodInput);
|
|
9096
9267
|
}),
|
|
9097
9268
|
beginAuthentication: trpc_middleware_js_1.protectedProcedure
|
|
9098
|
-
.input(
|
|
9099
|
-
.output(
|
|
9269
|
+
.input(types_115.userPasskeysCapability.methods.beginAuthentication.input.loose())
|
|
9270
|
+
.output(types_115.userPasskeysCapability.methods.beginAuthentication.output)
|
|
9100
9271
|
.mutation(async ({ input, ctx }) => {
|
|
9101
9272
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9102
9273
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9104,8 +9275,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9104
9275
|
return p.beginAuthentication(methodInput);
|
|
9105
9276
|
}),
|
|
9106
9277
|
finishAuthentication: trpc_middleware_js_1.protectedProcedure
|
|
9107
|
-
.input(
|
|
9108
|
-
.output(
|
|
9278
|
+
.input(types_115.userPasskeysCapability.methods.finishAuthentication.input.loose())
|
|
9279
|
+
.output(types_115.userPasskeysCapability.methods.finishAuthentication.output)
|
|
9109
9280
|
.mutation(async ({ input, ctx }) => {
|
|
9110
9281
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9111
9282
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9113,8 +9284,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9113
9284
|
return p.finishAuthentication(methodInput);
|
|
9114
9285
|
}),
|
|
9115
9286
|
beginDiscoverableAuthentication: trpc_middleware_js_1.protectedProcedure
|
|
9116
|
-
.input(
|
|
9117
|
-
.output(
|
|
9287
|
+
.input(types_115.userPasskeysCapability.methods.beginDiscoverableAuthentication.input.loose())
|
|
9288
|
+
.output(types_115.userPasskeysCapability.methods.beginDiscoverableAuthentication.output)
|
|
9118
9289
|
.mutation(async ({ input, ctx }) => {
|
|
9119
9290
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9120
9291
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9122,8 +9293,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9122
9293
|
return p.beginDiscoverableAuthentication(methodInput);
|
|
9123
9294
|
}),
|
|
9124
9295
|
finishDiscoverableAuthentication: trpc_middleware_js_1.protectedProcedure
|
|
9125
|
-
.input(
|
|
9126
|
-
.output(
|
|
9296
|
+
.input(types_115.userPasskeysCapability.methods.finishDiscoverableAuthentication.input.loose())
|
|
9297
|
+
.output(types_115.userPasskeysCapability.methods.finishDiscoverableAuthentication.output)
|
|
9127
9298
|
.mutation(async ({ input, ctx }) => {
|
|
9128
9299
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9129
9300
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9131,8 +9302,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9131
9302
|
return p.finishDiscoverableAuthentication(methodInput);
|
|
9132
9303
|
}),
|
|
9133
9304
|
listPasskeys: trpc_middleware_js_1.adminProcedure
|
|
9134
|
-
.input(
|
|
9135
|
-
.output(
|
|
9305
|
+
.input(types_115.userPasskeysCapability.methods.listPasskeys.input.loose())
|
|
9306
|
+
.output(types_115.userPasskeysCapability.methods.listPasskeys.output)
|
|
9136
9307
|
.query(async ({ input, ctx }) => {
|
|
9137
9308
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9138
9309
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9140,8 +9311,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9140
9311
|
return p.listPasskeys(methodInput);
|
|
9141
9312
|
}),
|
|
9142
9313
|
removePasskey: trpc_middleware_js_1.adminProcedure
|
|
9143
|
-
.input(
|
|
9144
|
-
.output(
|
|
9314
|
+
.input(types_115.userPasskeysCapability.methods.removePasskey.input.loose())
|
|
9315
|
+
.output(types_115.userPasskeysCapability.methods.removePasskey.output)
|
|
9145
9316
|
.mutation(async ({ input, ctx }) => {
|
|
9146
9317
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9147
9318
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9149,8 +9320,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9149
9320
|
return p.removePasskey(methodInput);
|
|
9150
9321
|
}),
|
|
9151
9322
|
getSecondFactorPreference: trpc_middleware_js_1.adminProcedure
|
|
9152
|
-
.input(
|
|
9153
|
-
.output(
|
|
9323
|
+
.input(types_115.userPasskeysCapability.methods.getSecondFactorPreference.input.loose())
|
|
9324
|
+
.output(types_115.userPasskeysCapability.methods.getSecondFactorPreference.output)
|
|
9154
9325
|
.query(async ({ input, ctx }) => {
|
|
9155
9326
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9156
9327
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9158,8 +9329,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
9158
9329
|
return p.getSecondFactorPreference(methodInput);
|
|
9159
9330
|
}),
|
|
9160
9331
|
setSecondFactorPreference: trpc_middleware_js_1.adminProcedure
|
|
9161
|
-
.input(
|
|
9162
|
-
.output(
|
|
9332
|
+
.input(types_115.userPasskeysCapability.methods.setSecondFactorPreference.input.loose())
|
|
9333
|
+
.output(types_115.userPasskeysCapability.methods.setSecondFactorPreference.output)
|
|
9163
9334
|
.mutation(async ({ input, ctx }) => {
|
|
9164
9335
|
const { nodeId, addonId, ...methodInput } = input;
|
|
9165
9336
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -9180,8 +9351,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
9180
9351
|
return p.getStatus(methodInput);
|
|
9181
9352
|
}),
|
|
9182
9353
|
start: trpc_middleware_js_1.adminProcedure
|
|
9183
|
-
.input(
|
|
9184
|
-
.output(
|
|
9354
|
+
.input(types_116.vacuumControlCapability.methods.start.input.loose())
|
|
9355
|
+
.output(types_116.vacuumControlCapability.methods.start.output)
|
|
9185
9356
|
.mutation(async ({ input, ctx }) => {
|
|
9186
9357
|
const { nodeId, ...methodInput } = input;
|
|
9187
9358
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9189,8 +9360,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
9189
9360
|
return p.start(methodInput);
|
|
9190
9361
|
}),
|
|
9191
9362
|
pause: trpc_middleware_js_1.adminProcedure
|
|
9192
|
-
.input(
|
|
9193
|
-
.output(
|
|
9363
|
+
.input(types_116.vacuumControlCapability.methods.pause.input.loose())
|
|
9364
|
+
.output(types_116.vacuumControlCapability.methods.pause.output)
|
|
9194
9365
|
.mutation(async ({ input, ctx }) => {
|
|
9195
9366
|
const { nodeId, ...methodInput } = input;
|
|
9196
9367
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9198,8 +9369,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
9198
9369
|
return p.pause(methodInput);
|
|
9199
9370
|
}),
|
|
9200
9371
|
stop: trpc_middleware_js_1.adminProcedure
|
|
9201
|
-
.input(
|
|
9202
|
-
.output(
|
|
9372
|
+
.input(types_116.vacuumControlCapability.methods.stop.input.loose())
|
|
9373
|
+
.output(types_116.vacuumControlCapability.methods.stop.output)
|
|
9203
9374
|
.mutation(async ({ input, ctx }) => {
|
|
9204
9375
|
const { nodeId, ...methodInput } = input;
|
|
9205
9376
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9207,8 +9378,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
9207
9378
|
return p.stop(methodInput);
|
|
9208
9379
|
}),
|
|
9209
9380
|
returnToBase: trpc_middleware_js_1.adminProcedure
|
|
9210
|
-
.input(
|
|
9211
|
-
.output(
|
|
9381
|
+
.input(types_116.vacuumControlCapability.methods.returnToBase.input.loose())
|
|
9382
|
+
.output(types_116.vacuumControlCapability.methods.returnToBase.output)
|
|
9212
9383
|
.mutation(async ({ input, ctx }) => {
|
|
9213
9384
|
const { nodeId, ...methodInput } = input;
|
|
9214
9385
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9216,8 +9387,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
9216
9387
|
return p.returnToBase(methodInput);
|
|
9217
9388
|
}),
|
|
9218
9389
|
locate: trpc_middleware_js_1.adminProcedure
|
|
9219
|
-
.input(
|
|
9220
|
-
.output(
|
|
9390
|
+
.input(types_116.vacuumControlCapability.methods.locate.input.loose())
|
|
9391
|
+
.output(types_116.vacuumControlCapability.methods.locate.output)
|
|
9221
9392
|
.mutation(async ({ input, ctx }) => {
|
|
9222
9393
|
const { nodeId, ...methodInput } = input;
|
|
9223
9394
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9225,8 +9396,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
9225
9396
|
return p.locate(methodInput);
|
|
9226
9397
|
}),
|
|
9227
9398
|
setFanSpeed: trpc_middleware_js_1.adminProcedure
|
|
9228
|
-
.input(
|
|
9229
|
-
.output(
|
|
9399
|
+
.input(types_116.vacuumControlCapability.methods.setFanSpeed.input.loose())
|
|
9400
|
+
.output(types_116.vacuumControlCapability.methods.setFanSpeed.output)
|
|
9230
9401
|
.mutation(async ({ input, ctx }) => {
|
|
9231
9402
|
const { nodeId, ...methodInput } = input;
|
|
9232
9403
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9247,8 +9418,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
9247
9418
|
return p.getStatus(methodInput);
|
|
9248
9419
|
}),
|
|
9249
9420
|
open: trpc_middleware_js_1.adminProcedure
|
|
9250
|
-
.input(
|
|
9251
|
-
.output(
|
|
9421
|
+
.input(types_117.valveCapability.methods.open.input.loose())
|
|
9422
|
+
.output(types_117.valveCapability.methods.open.output)
|
|
9252
9423
|
.mutation(async ({ input, ctx }) => {
|
|
9253
9424
|
const { nodeId, ...methodInput } = input;
|
|
9254
9425
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9256,8 +9427,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
9256
9427
|
return p.open(methodInput);
|
|
9257
9428
|
}),
|
|
9258
9429
|
close: trpc_middleware_js_1.adminProcedure
|
|
9259
|
-
.input(
|
|
9260
|
-
.output(
|
|
9430
|
+
.input(types_117.valveCapability.methods.close.input.loose())
|
|
9431
|
+
.output(types_117.valveCapability.methods.close.output)
|
|
9261
9432
|
.mutation(async ({ input, ctx }) => {
|
|
9262
9433
|
const { nodeId, ...methodInput } = input;
|
|
9263
9434
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9265,8 +9436,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
9265
9436
|
return p.close(methodInput);
|
|
9266
9437
|
}),
|
|
9267
9438
|
stop: trpc_middleware_js_1.adminProcedure
|
|
9268
|
-
.input(
|
|
9269
|
-
.output(
|
|
9439
|
+
.input(types_117.valveCapability.methods.stop.input.loose())
|
|
9440
|
+
.output(types_117.valveCapability.methods.stop.output)
|
|
9270
9441
|
.mutation(async ({ input, ctx }) => {
|
|
9271
9442
|
const { nodeId, ...methodInput } = input;
|
|
9272
9443
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9274,8 +9445,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
9274
9445
|
return p.stop(methodInput);
|
|
9275
9446
|
}),
|
|
9276
9447
|
setPosition: trpc_middleware_js_1.adminProcedure
|
|
9277
|
-
.input(
|
|
9278
|
-
.output(
|
|
9448
|
+
.input(types_117.valveCapability.methods.setPosition.input.loose())
|
|
9449
|
+
.output(types_117.valveCapability.methods.setPosition.output)
|
|
9279
9450
|
.mutation(async ({ input, ctx }) => {
|
|
9280
9451
|
const { nodeId, ...methodInput } = input;
|
|
9281
9452
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9287,8 +9458,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
9287
9458
|
function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
9288
9459
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9289
9460
|
declareIndex: trpc_middleware_js_1.protectedProcedure
|
|
9290
|
-
.input(
|
|
9291
|
-
.output(
|
|
9461
|
+
.input(types_118.vectorStoreCapability.methods.declareIndex.input.loose())
|
|
9462
|
+
.output(types_118.vectorStoreCapability.methods.declareIndex.output)
|
|
9292
9463
|
.mutation(async ({ input, ctx }) => {
|
|
9293
9464
|
const { nodeId, ...methodInput } = input;
|
|
9294
9465
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9296,8 +9467,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
9296
9467
|
return p.declareIndex(methodInput);
|
|
9297
9468
|
}),
|
|
9298
9469
|
upsert: trpc_middleware_js_1.protectedProcedure
|
|
9299
|
-
.input(
|
|
9300
|
-
.output(
|
|
9470
|
+
.input(types_118.vectorStoreCapability.methods.upsert.input.loose())
|
|
9471
|
+
.output(types_118.vectorStoreCapability.methods.upsert.output)
|
|
9301
9472
|
.mutation(async ({ input, ctx }) => {
|
|
9302
9473
|
const { nodeId, ...methodInput } = input;
|
|
9303
9474
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9305,8 +9476,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
9305
9476
|
return p.upsert(methodInput);
|
|
9306
9477
|
}),
|
|
9307
9478
|
query: trpc_middleware_js_1.protectedProcedure
|
|
9308
|
-
.input(
|
|
9309
|
-
.output(
|
|
9479
|
+
.input(types_118.vectorStoreCapability.methods.query.input.loose())
|
|
9480
|
+
.output(types_118.vectorStoreCapability.methods.query.output)
|
|
9310
9481
|
.query(async ({ input, ctx }) => {
|
|
9311
9482
|
const { nodeId, ...methodInput } = input;
|
|
9312
9483
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9314,8 +9485,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
9314
9485
|
return p.query(methodInput);
|
|
9315
9486
|
}),
|
|
9316
9487
|
getByIds: trpc_middleware_js_1.protectedProcedure
|
|
9317
|
-
.input(
|
|
9318
|
-
.output(
|
|
9488
|
+
.input(types_118.vectorStoreCapability.methods.getByIds.input.loose())
|
|
9489
|
+
.output(types_118.vectorStoreCapability.methods.getByIds.output)
|
|
9319
9490
|
.query(async ({ input, ctx }) => {
|
|
9320
9491
|
const { nodeId, ...methodInput } = input;
|
|
9321
9492
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9323,8 +9494,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
9323
9494
|
return p.getByIds(methodInput);
|
|
9324
9495
|
}),
|
|
9325
9496
|
deleteByIds: trpc_middleware_js_1.protectedProcedure
|
|
9326
|
-
.input(
|
|
9327
|
-
.output(
|
|
9497
|
+
.input(types_118.vectorStoreCapability.methods.deleteByIds.input.loose())
|
|
9498
|
+
.output(types_118.vectorStoreCapability.methods.deleteByIds.output)
|
|
9328
9499
|
.mutation(async ({ input, ctx }) => {
|
|
9329
9500
|
const { nodeId, ...methodInput } = input;
|
|
9330
9501
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9332,8 +9503,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
9332
9503
|
return p.deleteByIds(methodInput);
|
|
9333
9504
|
}),
|
|
9334
9505
|
deleteByFilter: trpc_middleware_js_1.protectedProcedure
|
|
9335
|
-
.input(
|
|
9336
|
-
.output(
|
|
9506
|
+
.input(types_118.vectorStoreCapability.methods.deleteByFilter.input.loose())
|
|
9507
|
+
.output(types_118.vectorStoreCapability.methods.deleteByFilter.output)
|
|
9337
9508
|
.mutation(async ({ input, ctx }) => {
|
|
9338
9509
|
const { nodeId, ...methodInput } = input;
|
|
9339
9510
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9341,8 +9512,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
9341
9512
|
return p.deleteByFilter(methodInput);
|
|
9342
9513
|
}),
|
|
9343
9514
|
stats: trpc_middleware_js_1.protectedProcedure
|
|
9344
|
-
.input(
|
|
9345
|
-
.output(
|
|
9515
|
+
.input(types_118.vectorStoreCapability.methods.stats.input.loose())
|
|
9516
|
+
.output(types_118.vectorStoreCapability.methods.stats.output)
|
|
9346
9517
|
.query(async ({ input, ctx }) => {
|
|
9347
9518
|
const { nodeId, ...methodInput } = input;
|
|
9348
9519
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9367,8 +9538,8 @@ function createCapRouter_vibration(getProvider, createRemoteProxy) {
|
|
|
9367
9538
|
function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
9368
9539
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9369
9540
|
listClips: trpc_middleware_js_1.adminProcedure
|
|
9370
|
-
.input(
|
|
9371
|
-
.output(
|
|
9541
|
+
.input(types_119.videoclipsCapability.methods.listClips.input.loose())
|
|
9542
|
+
.output(types_119.videoclipsCapability.methods.listClips.output)
|
|
9372
9543
|
.query(async ({ input, ctx }) => {
|
|
9373
9544
|
const { nodeId, ...methodInput } = input;
|
|
9374
9545
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9376,8 +9547,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
9376
9547
|
return p.listClips(methodInput);
|
|
9377
9548
|
}),
|
|
9378
9549
|
getClipPlayback: trpc_middleware_js_1.adminProcedure
|
|
9379
|
-
.input(
|
|
9380
|
-
.output(
|
|
9550
|
+
.input(types_119.videoclipsCapability.methods.getClipPlayback.input.loose())
|
|
9551
|
+
.output(types_119.videoclipsCapability.methods.getClipPlayback.output)
|
|
9381
9552
|
.query(async ({ input, ctx }) => {
|
|
9382
9553
|
const { nodeId, ...methodInput } = input;
|
|
9383
9554
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9390,14 +9561,14 @@ function createCapRouter_viewerUi(getProvider, createRemoteProxy) {
|
|
|
9390
9561
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9391
9562
|
getStaticDir: trpc_middleware_js_1.protectedProcedure
|
|
9392
9563
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
9393
|
-
.output(
|
|
9564
|
+
.output(types_120.viewerUiCapability.methods.getStaticDir.output)
|
|
9394
9565
|
.query(async ({ input, ctx }) => {
|
|
9395
9566
|
const p = resolveProvider('viewer-ui', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
9396
9567
|
return p.getStaticDir();
|
|
9397
9568
|
}),
|
|
9398
9569
|
getVersion: trpc_middleware_js_1.protectedProcedure
|
|
9399
9570
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
9400
|
-
.output(
|
|
9571
|
+
.output(types_120.viewerUiCapability.methods.getVersion.output)
|
|
9401
9572
|
.query(async ({ input, ctx }) => {
|
|
9402
9573
|
const p = resolveProvider('viewer-ui', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
9403
9574
|
return p.getVersion();
|
|
@@ -9416,8 +9587,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
9416
9587
|
return p.getStatus(methodInput);
|
|
9417
9588
|
}),
|
|
9418
9589
|
setTargetTemp: trpc_middleware_js_1.adminProcedure
|
|
9419
|
-
.input(
|
|
9420
|
-
.output(
|
|
9590
|
+
.input(types_121.waterHeaterCapability.methods.setTargetTemp.input.loose())
|
|
9591
|
+
.output(types_121.waterHeaterCapability.methods.setTargetTemp.output)
|
|
9421
9592
|
.mutation(async ({ input, ctx }) => {
|
|
9422
9593
|
const { nodeId, ...methodInput } = input;
|
|
9423
9594
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9425,8 +9596,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
9425
9596
|
return p.setTargetTemp(methodInput);
|
|
9426
9597
|
}),
|
|
9427
9598
|
setOperationMode: trpc_middleware_js_1.adminProcedure
|
|
9428
|
-
.input(
|
|
9429
|
-
.output(
|
|
9599
|
+
.input(types_121.waterHeaterCapability.methods.setOperationMode.input.loose())
|
|
9600
|
+
.output(types_121.waterHeaterCapability.methods.setOperationMode.output)
|
|
9430
9601
|
.mutation(async ({ input, ctx }) => {
|
|
9431
9602
|
const { nodeId, ...methodInput } = input;
|
|
9432
9603
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9434,8 +9605,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
9434
9605
|
return p.setOperationMode(methodInput);
|
|
9435
9606
|
}),
|
|
9436
9607
|
setAway: trpc_middleware_js_1.adminProcedure
|
|
9437
|
-
.input(
|
|
9438
|
-
.output(
|
|
9608
|
+
.input(types_121.waterHeaterCapability.methods.setAway.input.loose())
|
|
9609
|
+
.output(types_121.waterHeaterCapability.methods.setAway.output)
|
|
9439
9610
|
.mutation(async ({ input, ctx }) => {
|
|
9440
9611
|
const { nodeId, ...methodInput } = input;
|
|
9441
9612
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9460,8 +9631,8 @@ function createCapRouter_weather(getProvider, createRemoteProxy) {
|
|
|
9460
9631
|
function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
9461
9632
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9462
9633
|
listStreams: trpc_middleware_js_1.protectedProcedure
|
|
9463
|
-
.input(
|
|
9464
|
-
.output(
|
|
9634
|
+
.input(types_122.webrtcSessionCapability.methods.listStreams.input.loose())
|
|
9635
|
+
.output(types_122.webrtcSessionCapability.methods.listStreams.output)
|
|
9465
9636
|
.query(async ({ input, ctx }) => {
|
|
9466
9637
|
const { nodeId, ...methodInput } = input;
|
|
9467
9638
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9469,8 +9640,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9469
9640
|
return p.listStreams(methodInput);
|
|
9470
9641
|
}),
|
|
9471
9642
|
createSession: trpc_middleware_js_1.protectedProcedure
|
|
9472
|
-
.input(
|
|
9473
|
-
.output(
|
|
9643
|
+
.input(types_122.webrtcSessionCapability.methods.createSession.input.loose())
|
|
9644
|
+
.output(types_122.webrtcSessionCapability.methods.createSession.output)
|
|
9474
9645
|
.mutation(async ({ input, ctx }) => {
|
|
9475
9646
|
const { nodeId, ...methodInput } = input;
|
|
9476
9647
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9478,8 +9649,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9478
9649
|
return p.createSession(methodInput);
|
|
9479
9650
|
}),
|
|
9480
9651
|
handleOffer: trpc_middleware_js_1.protectedProcedure
|
|
9481
|
-
.input(
|
|
9482
|
-
.output(
|
|
9652
|
+
.input(types_122.webrtcSessionCapability.methods.handleOffer.input.loose())
|
|
9653
|
+
.output(types_122.webrtcSessionCapability.methods.handleOffer.output)
|
|
9483
9654
|
.mutation(async ({ input, ctx }) => {
|
|
9484
9655
|
const { nodeId, ...methodInput } = input;
|
|
9485
9656
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9487,8 +9658,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9487
9658
|
return p.handleOffer(methodInput);
|
|
9488
9659
|
}),
|
|
9489
9660
|
handleAnswer: trpc_middleware_js_1.protectedProcedure
|
|
9490
|
-
.input(
|
|
9491
|
-
.output(
|
|
9661
|
+
.input(types_122.webrtcSessionCapability.methods.handleAnswer.input.loose())
|
|
9662
|
+
.output(types_122.webrtcSessionCapability.methods.handleAnswer.output)
|
|
9492
9663
|
.mutation(async ({ input, ctx }) => {
|
|
9493
9664
|
const { nodeId, ...methodInput } = input;
|
|
9494
9665
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9496,8 +9667,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9496
9667
|
return p.handleAnswer(methodInput);
|
|
9497
9668
|
}),
|
|
9498
9669
|
addIceCandidate: trpc_middleware_js_1.protectedProcedure
|
|
9499
|
-
.input(
|
|
9500
|
-
.output(
|
|
9670
|
+
.input(types_122.webrtcSessionCapability.methods.addIceCandidate.input.loose())
|
|
9671
|
+
.output(types_122.webrtcSessionCapability.methods.addIceCandidate.output)
|
|
9501
9672
|
.mutation(async ({ input, ctx }) => {
|
|
9502
9673
|
const { nodeId, ...methodInput } = input;
|
|
9503
9674
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9505,8 +9676,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9505
9676
|
return p.addIceCandidate(methodInput);
|
|
9506
9677
|
}),
|
|
9507
9678
|
getIceCandidates: trpc_middleware_js_1.protectedProcedure
|
|
9508
|
-
.input(
|
|
9509
|
-
.output(
|
|
9679
|
+
.input(types_122.webrtcSessionCapability.methods.getIceCandidates.input.loose())
|
|
9680
|
+
.output(types_122.webrtcSessionCapability.methods.getIceCandidates.output)
|
|
9510
9681
|
.query(async ({ input, ctx }) => {
|
|
9511
9682
|
const { nodeId, ...methodInput } = input;
|
|
9512
9683
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9514,8 +9685,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9514
9685
|
return p.getIceCandidates(methodInput);
|
|
9515
9686
|
}),
|
|
9516
9687
|
closeSession: trpc_middleware_js_1.protectedProcedure
|
|
9517
|
-
.input(
|
|
9518
|
-
.output(
|
|
9688
|
+
.input(types_122.webrtcSessionCapability.methods.closeSession.input.loose())
|
|
9689
|
+
.output(types_122.webrtcSessionCapability.methods.closeSession.output)
|
|
9519
9690
|
.mutation(async ({ input, ctx }) => {
|
|
9520
9691
|
const { nodeId, ...methodInput } = input;
|
|
9521
9692
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9523,8 +9694,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9523
9694
|
return p.closeSession(methodInput);
|
|
9524
9695
|
}),
|
|
9525
9696
|
hasAdaptiveBitrate: trpc_middleware_js_1.protectedProcedure
|
|
9526
|
-
.input(
|
|
9527
|
-
.output(
|
|
9697
|
+
.input(types_122.webrtcSessionCapability.methods.hasAdaptiveBitrate.input.loose())
|
|
9698
|
+
.output(types_122.webrtcSessionCapability.methods.hasAdaptiveBitrate.output)
|
|
9528
9699
|
.query(async ({ input, ctx }) => {
|
|
9529
9700
|
const { nodeId, ...methodInput } = input;
|
|
9530
9701
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9532,8 +9703,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9532
9703
|
return p.hasAdaptiveBitrate(methodInput);
|
|
9533
9704
|
}),
|
|
9534
9705
|
getSessionState: trpc_middleware_js_1.protectedProcedure
|
|
9535
|
-
.input(
|
|
9536
|
-
.output(
|
|
9706
|
+
.input(types_122.webrtcSessionCapability.methods.getSessionState.input.loose())
|
|
9707
|
+
.output(types_122.webrtcSessionCapability.methods.getSessionState.output)
|
|
9537
9708
|
.query(async ({ input, ctx }) => {
|
|
9538
9709
|
const { nodeId, ...methodInput } = input;
|
|
9539
9710
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9545,8 +9716,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
9545
9716
|
function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
9546
9717
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9547
9718
|
getCurrentSnapshot: trpc_middleware_js_1.protectedProcedure
|
|
9548
|
-
.input(
|
|
9549
|
-
.output(
|
|
9719
|
+
.input(types_123.zoneAnalyticsCapability.methods.getCurrentSnapshot.input.loose())
|
|
9720
|
+
.output(types_123.zoneAnalyticsCapability.methods.getCurrentSnapshot.output)
|
|
9550
9721
|
.query(async ({ input, ctx }) => {
|
|
9551
9722
|
const { nodeId, ...methodInput } = input;
|
|
9552
9723
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9554,8 +9725,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
9554
9725
|
return p.getCurrentSnapshot(methodInput);
|
|
9555
9726
|
}),
|
|
9556
9727
|
getZoneHistory: trpc_middleware_js_1.protectedProcedure
|
|
9557
|
-
.input(
|
|
9558
|
-
.output(
|
|
9728
|
+
.input(types_123.zoneAnalyticsCapability.methods.getZoneHistory.input.loose())
|
|
9729
|
+
.output(types_123.zoneAnalyticsCapability.methods.getZoneHistory.output)
|
|
9559
9730
|
.query(async ({ input, ctx }) => {
|
|
9560
9731
|
const { nodeId, ...methodInput } = input;
|
|
9561
9732
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9563,8 +9734,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
9563
9734
|
return p.getZoneHistory(methodInput);
|
|
9564
9735
|
}),
|
|
9565
9736
|
getCameraHistory: trpc_middleware_js_1.protectedProcedure
|
|
9566
|
-
.input(
|
|
9567
|
-
.output(
|
|
9737
|
+
.input(types_123.zoneAnalyticsCapability.methods.getCameraHistory.input.loose())
|
|
9738
|
+
.output(types_123.zoneAnalyticsCapability.methods.getCameraHistory.output)
|
|
9568
9739
|
.query(async ({ input, ctx }) => {
|
|
9569
9740
|
const { nodeId, ...methodInput } = input;
|
|
9570
9741
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9572,8 +9743,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
9572
9743
|
return p.getCameraHistory(methodInput);
|
|
9573
9744
|
}),
|
|
9574
9745
|
getUnzonedHistory: trpc_middleware_js_1.protectedProcedure
|
|
9575
|
-
.input(
|
|
9576
|
-
.output(
|
|
9746
|
+
.input(types_123.zoneAnalyticsCapability.methods.getUnzonedHistory.input.loose())
|
|
9747
|
+
.output(types_123.zoneAnalyticsCapability.methods.getUnzonedHistory.output)
|
|
9577
9748
|
.query(async ({ input, ctx }) => {
|
|
9578
9749
|
const { nodeId, ...methodInput } = input;
|
|
9579
9750
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9585,8 +9756,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
9585
9756
|
function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
9586
9757
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9587
9758
|
listRules: trpc_middleware_js_1.protectedProcedure
|
|
9588
|
-
.input(
|
|
9589
|
-
.output(
|
|
9759
|
+
.input(types_124.zoneRulesCapability.methods.listRules.input.loose())
|
|
9760
|
+
.output(types_124.zoneRulesCapability.methods.listRules.output)
|
|
9590
9761
|
.query(async ({ input, ctx }) => {
|
|
9591
9762
|
const { nodeId, ...methodInput } = input;
|
|
9592
9763
|
const p = resolveProvider('zone-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9594,8 +9765,8 @@ function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
|
9594
9765
|
return p.listRules(methodInput);
|
|
9595
9766
|
}),
|
|
9596
9767
|
setRules: trpc_middleware_js_1.adminProcedure
|
|
9597
|
-
.input(
|
|
9598
|
-
.output(
|
|
9768
|
+
.input(types_124.zoneRulesCapability.methods.setRules.input.loose())
|
|
9769
|
+
.output(types_124.zoneRulesCapability.methods.setRules.output)
|
|
9599
9770
|
.mutation(async ({ input, ctx }) => {
|
|
9600
9771
|
const { nodeId, ...methodInput } = input;
|
|
9601
9772
|
const p = resolveProvider('zone-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9607,8 +9778,8 @@ function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
|
9607
9778
|
function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
9608
9779
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
9609
9780
|
listZones: trpc_middleware_js_1.protectedProcedure
|
|
9610
|
-
.input(
|
|
9611
|
-
.output(
|
|
9781
|
+
.input(types_125.zonesCapability.methods.listZones.input.loose())
|
|
9782
|
+
.output(types_125.zonesCapability.methods.listZones.output)
|
|
9612
9783
|
.query(async ({ input, ctx }) => {
|
|
9613
9784
|
const { nodeId, ...methodInput } = input;
|
|
9614
9785
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9616,8 +9787,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
9616
9787
|
return p.listZones(methodInput);
|
|
9617
9788
|
}),
|
|
9618
9789
|
addZone: trpc_middleware_js_1.adminProcedure
|
|
9619
|
-
.input(
|
|
9620
|
-
.output(
|
|
9790
|
+
.input(types_125.zonesCapability.methods.addZone.input.loose())
|
|
9791
|
+
.output(types_125.zonesCapability.methods.addZone.output)
|
|
9621
9792
|
.mutation(async ({ input, ctx }) => {
|
|
9622
9793
|
const { nodeId, ...methodInput } = input;
|
|
9623
9794
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9625,8 +9796,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
9625
9796
|
return p.addZone(methodInput);
|
|
9626
9797
|
}),
|
|
9627
9798
|
removeZone: trpc_middleware_js_1.adminProcedure
|
|
9628
|
-
.input(
|
|
9629
|
-
.output(
|
|
9799
|
+
.input(types_125.zonesCapability.methods.removeZone.input.loose())
|
|
9800
|
+
.output(types_125.zonesCapability.methods.removeZone.output)
|
|
9630
9801
|
.mutation(async ({ input, ctx }) => {
|
|
9631
9802
|
const { nodeId, ...methodInput } = input;
|
|
9632
9803
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -9634,8 +9805,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
9634
9805
|
return p.removeZone(methodInput);
|
|
9635
9806
|
}),
|
|
9636
9807
|
updateZone: trpc_middleware_js_1.adminProcedure
|
|
9637
|
-
.input(
|
|
9638
|
-
.output(
|
|
9808
|
+
.input(types_125.zonesCapability.methods.updateZone.input.loose())
|
|
9809
|
+
.output(types_125.zonesCapability.methods.updateZone.output)
|
|
9639
9810
|
.mutation(async ({ input, ctx }) => {
|
|
9640
9811
|
const { nodeId, ...methodInput } = input;
|
|
9641
9812
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|