@camstack/server 1.2.486 → 1.2.487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/agent-mesh-join.js +80 -0
- package/dist/agent/main.js +61 -2
- package/dist/api/auth-whoami.js +1 -1
- package/dist/api/core/auth-admin-tokens.procedures.js +138 -0
- package/dist/api/core/auth-limits.js +77 -0
- package/dist/api/core/auth-reauth.procedures.js +108 -0
- package/dist/api/core/auth-sessions.procedures.js +166 -0
- package/dist/api/core/auth.router.js +281 -80
- package/dist/api/health/adaptive-probe.routes.js +1 -1
- package/dist/api/trpc/core-cap-bridge.js +47 -5
- package/dist/api/trpc/generated-cap-mounts.js +19 -1
- package/dist/api/trpc/generated-cap-routers.js +512 -205
- package/dist/api/trpc/trpc.context.js +86 -34
- package/dist/api/trpc/trpc.middleware.js +8 -11
- package/dist/api/trpc/trpc.router.js +6 -1
- package/dist/auth/auth-network-policy.js +75 -0
- package/dist/auth/auth-rate-limit.js +25 -20
- package/dist/auth/client-address.js +68 -0
- package/dist/auth/external-link-intents.js +12 -3
- package/dist/auth/hub-sessions.js +74 -0
- package/dist/auth/native-link-completions.js +68 -0
- package/dist/auth/native-return.js +33 -0
- package/dist/auth/session-lifetimes.js +46 -0
- package/dist/auth/session-mint.js +110 -13
- package/dist/auth/sso-finish-deps.js +56 -1
- package/dist/auth/sso-finish.js +132 -17
- package/dist/auth/sso-routes.js +95 -0
- package/dist/auth/used-bridge-ids.js +52 -0
- package/dist/core/addon/addon-registry.service.js +5 -0
- package/dist/core/agent/agent-registry.service.js +10 -0
- package/dist/core/auth/auth.service.js +50 -1
- package/dist/core/auth/handoff-code.service.js +9 -3
- package/dist/core/moleculer/hub-mesh-guard.js +132 -0
- package/dist/core/moleculer/moleculer.service.js +33 -0
- package/dist/main.js +92 -28
- package/package.json +13 -13
|
@@ -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: 169
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.requireCapProvider = requireCapProvider;
|
|
@@ -157,6 +157,8 @@ exports.createCapRouter_tamper = createCapRouter_tamper;
|
|
|
157
157
|
exports.createCapRouter_temperatureSensor = createCapRouter_temperatureSensor;
|
|
158
158
|
exports.createCapRouter_terminalSession = createCapRouter_terminalSession;
|
|
159
159
|
exports.createCapRouter_toast = createCapRouter_toast;
|
|
160
|
+
exports.createCapRouter_training = createCapRouter_training;
|
|
161
|
+
exports.createCapRouter_trainingProvider = createCapRouter_trainingProvider;
|
|
160
162
|
exports.createCapRouter_turnProvider = createCapRouter_turnProvider;
|
|
161
163
|
exports.createCapRouter_update = createCapRouter_update;
|
|
162
164
|
exports.createCapRouter_userManagement = createCapRouter_userManagement;
|
|
@@ -318,6 +320,8 @@ const types_138 = require("@camstack/types");
|
|
|
318
320
|
const types_139 = require("@camstack/types");
|
|
319
321
|
const types_140 = require("@camstack/types");
|
|
320
322
|
const types_141 = require("@camstack/types");
|
|
323
|
+
const types_142 = require("@camstack/types");
|
|
324
|
+
const types_143 = require("@camstack/types");
|
|
321
325
|
// ── Provider Accessor ───────────────────────────────────────────────
|
|
322
326
|
function requireCapProvider(name, getProvider) {
|
|
323
327
|
const p = getProvider();
|
|
@@ -1292,6 +1296,40 @@ function createCapRouter_backup(getProvider, createRemoteProxy) {
|
|
|
1292
1296
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
1293
1297
|
return p.restore(methodInput);
|
|
1294
1298
|
}),
|
|
1299
|
+
getEncryption: trpc_middleware_js_1.adminProcedure
|
|
1300
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
1301
|
+
.output(types_20.backupCapability.methods.getEncryption.output)
|
|
1302
|
+
.query(async ({ input, ctx }) => {
|
|
1303
|
+
const p = resolveProvider('backup', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
1304
|
+
return p.getEncryption();
|
|
1305
|
+
}),
|
|
1306
|
+
setupEncryption: trpc_middleware_js_1.adminProcedure
|
|
1307
|
+
.input(types_20.backupCapability.methods.setupEncryption.input.loose())
|
|
1308
|
+
.output(types_20.backupCapability.methods.setupEncryption.output)
|
|
1309
|
+
.mutation(async ({ input, ctx }) => {
|
|
1310
|
+
const { nodeId, ...methodInput } = input;
|
|
1311
|
+
const p = resolveProvider('backup', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
1312
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
1313
|
+
return p.setupEncryption(methodInput);
|
|
1314
|
+
}),
|
|
1315
|
+
disableEncryption: trpc_middleware_js_1.adminProcedure
|
|
1316
|
+
.input(types_20.backupCapability.methods.disableEncryption.input.loose())
|
|
1317
|
+
.output(types_20.backupCapability.methods.disableEncryption.output)
|
|
1318
|
+
.mutation(async ({ input, ctx }) => {
|
|
1319
|
+
const { nodeId, ...methodInput } = input;
|
|
1320
|
+
const p = resolveProvider('backup', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
1321
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
1322
|
+
return p.disableEncryption(methodInput);
|
|
1323
|
+
}),
|
|
1324
|
+
checkBackupKey: trpc_middleware_js_1.adminProcedure
|
|
1325
|
+
.input(types_20.backupCapability.methods.checkBackupKey.input.loose())
|
|
1326
|
+
.output(types_20.backupCapability.methods.checkBackupKey.output)
|
|
1327
|
+
.mutation(async ({ input, ctx }) => {
|
|
1328
|
+
const { nodeId, ...methodInput } = input;
|
|
1329
|
+
const p = resolveProvider('backup', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
1330
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
1331
|
+
return p.checkBackupKey(methodInput);
|
|
1332
|
+
}),
|
|
1295
1333
|
delete: trpc_middleware_js_1.adminProcedure
|
|
1296
1334
|
.input(types_20.backupCapability.methods.delete.input.loose())
|
|
1297
1335
|
.output(types_20.backupCapability.methods.delete.output)
|
|
@@ -2243,6 +2281,15 @@ function createCapRouter_customModelRegistry(getProvider, createRemoteProxy) {
|
|
|
2243
2281
|
const p = resolveProvider('custom-model-registry', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
2244
2282
|
return p.listModels();
|
|
2245
2283
|
}),
|
|
2284
|
+
importModelBundle: trpc_middleware_js_1.adminProcedure
|
|
2285
|
+
.input(types_38.customModelRegistryCapability.methods.importModelBundle.input.loose())
|
|
2286
|
+
.output(types_38.customModelRegistryCapability.methods.importModelBundle.output)
|
|
2287
|
+
.mutation(async ({ input, ctx }) => {
|
|
2288
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
2289
|
+
const p = resolveProvider('custom-model-registry', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
2290
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2291
|
+
return p.importModelBundle(methodInput);
|
|
2292
|
+
}),
|
|
2246
2293
|
});
|
|
2247
2294
|
}
|
|
2248
2295
|
function createCapRouter_dataStoreProvider(getProvider, createRemoteProxy) {
|
|
@@ -4576,6 +4623,24 @@ function createCapRouter_keychainAdmin(getProvider, createRemoteProxy) {
|
|
|
4576
4623
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
4577
4624
|
return p.resetKeychain(methodInput);
|
|
4578
4625
|
}),
|
|
4626
|
+
resetReport: trpc_middleware_js_1.adminProcedure
|
|
4627
|
+
.input(types_62.keychainAdminCapability.methods.resetReport.input.loose())
|
|
4628
|
+
.output(types_62.keychainAdminCapability.methods.resetReport.output)
|
|
4629
|
+
.query(async ({ input, ctx }) => {
|
|
4630
|
+
const { nodeId, ...methodInput } = input;
|
|
4631
|
+
const p = resolveProvider('keychain-admin', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4632
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
4633
|
+
return p.resetReport(methodInput);
|
|
4634
|
+
}),
|
|
4635
|
+
acknowledgeReset: trpc_middleware_js_1.adminProcedure
|
|
4636
|
+
.input(types_62.keychainAdminCapability.methods.acknowledgeReset.input.loose())
|
|
4637
|
+
.output(types_62.keychainAdminCapability.methods.acknowledgeReset.output)
|
|
4638
|
+
.mutation(async ({ input, ctx }) => {
|
|
4639
|
+
const { nodeId, ...methodInput } = input;
|
|
4640
|
+
const p = resolveProvider('keychain-admin', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4641
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
4642
|
+
return p.acknowledgeReset(methodInput);
|
|
4643
|
+
}),
|
|
4579
4644
|
});
|
|
4580
4645
|
}
|
|
4581
4646
|
function createCapRouter_lawnMowerControl(getProvider, createRemoteProxy) {
|
|
@@ -7244,6 +7309,15 @@ function createCapRouter_pipelineAnalytics(getProvider, createRemoteProxy) {
|
|
|
7244
7309
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7245
7310
|
return p.writeRetrainArchive(methodInput);
|
|
7246
7311
|
}),
|
|
7312
|
+
offerRetrainArchive: trpc_middleware_js_1.adminProcedure
|
|
7313
|
+
.input(types_94.pipelineAnalyticsCapability.methods.offerRetrainArchive.input.loose())
|
|
7314
|
+
.output(types_94.pipelineAnalyticsCapability.methods.offerRetrainArchive.output)
|
|
7315
|
+
.mutation(async ({ input, ctx }) => {
|
|
7316
|
+
const { nodeId, ...methodInput } = input;
|
|
7317
|
+
const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7318
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7319
|
+
return p.offerRetrainArchive(methodInput);
|
|
7320
|
+
}),
|
|
7247
7321
|
previewRetrainDataset: trpc_middleware_js_1.adminProcedure
|
|
7248
7322
|
.input(types_94.pipelineAnalyticsCapability.methods.previewRetrainDataset.input.loose())
|
|
7249
7323
|
.output(types_94.pipelineAnalyticsCapability.methods.previewRetrainDataset.output)
|
|
@@ -10989,11 +11063,271 @@ function createCapRouter_toast(getProvider, _createRemoteProxy) {
|
|
|
10989
11063
|
}),
|
|
10990
11064
|
});
|
|
10991
11065
|
}
|
|
11066
|
+
function createCapRouter_training(getProvider, createRemoteProxy) {
|
|
11067
|
+
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11068
|
+
putDatasetVersion: trpc_middleware_js_1.adminProcedure
|
|
11069
|
+
.input(types_128.trainingCapability.methods.putDatasetVersion.input.loose())
|
|
11070
|
+
.output(types_128.trainingCapability.methods.putDatasetVersion.output)
|
|
11071
|
+
.mutation(async ({ input, ctx }) => {
|
|
11072
|
+
const { nodeId, ...methodInput } = input;
|
|
11073
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11074
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11075
|
+
return p.putDatasetVersion(methodInput);
|
|
11076
|
+
}),
|
|
11077
|
+
getDatasetVersion: trpc_middleware_js_1.adminProcedure
|
|
11078
|
+
.input(types_128.trainingCapability.methods.getDatasetVersion.input.loose())
|
|
11079
|
+
.output(types_128.trainingCapability.methods.getDatasetVersion.output)
|
|
11080
|
+
.query(async ({ input, ctx }) => {
|
|
11081
|
+
const { nodeId, ...methodInput } = input;
|
|
11082
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11083
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11084
|
+
return p.getDatasetVersion(methodInput);
|
|
11085
|
+
}),
|
|
11086
|
+
listDatasetVersions: trpc_middleware_js_1.adminProcedure
|
|
11087
|
+
.input(types_128.trainingCapability.methods.listDatasetVersions.input.loose())
|
|
11088
|
+
.output(types_128.trainingCapability.methods.listDatasetVersions.output)
|
|
11089
|
+
.query(async ({ input, ctx }) => {
|
|
11090
|
+
const { nodeId, ...methodInput } = input;
|
|
11091
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11092
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11093
|
+
return p.listDatasetVersions(methodInput);
|
|
11094
|
+
}),
|
|
11095
|
+
findDatasetVersionIdByName: trpc_middleware_js_1.adminProcedure
|
|
11096
|
+
.input(types_128.trainingCapability.methods.findDatasetVersionIdByName.input.loose())
|
|
11097
|
+
.output(types_128.trainingCapability.methods.findDatasetVersionIdByName.output)
|
|
11098
|
+
.query(async ({ input, ctx }) => {
|
|
11099
|
+
const { nodeId, ...methodInput } = input;
|
|
11100
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11101
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11102
|
+
return p.findDatasetVersionIdByName(methodInput);
|
|
11103
|
+
}),
|
|
11104
|
+
removeDatasetVersion: trpc_middleware_js_1.adminProcedure
|
|
11105
|
+
.input(types_128.trainingCapability.methods.removeDatasetVersion.input.loose())
|
|
11106
|
+
.output(types_128.trainingCapability.methods.removeDatasetVersion.output)
|
|
11107
|
+
.mutation(async ({ input, ctx }) => {
|
|
11108
|
+
const { nodeId, ...methodInput } = input;
|
|
11109
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11110
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11111
|
+
return p.removeDatasetVersion(methodInput);
|
|
11112
|
+
}),
|
|
11113
|
+
listBaseModels: trpc_middleware_js_1.adminProcedure
|
|
11114
|
+
.input(types_128.trainingCapability.methods.listBaseModels.input.loose())
|
|
11115
|
+
.output(types_128.trainingCapability.methods.listBaseModels.output)
|
|
11116
|
+
.query(async ({ input, ctx }) => {
|
|
11117
|
+
const { nodeId, ...methodInput } = input;
|
|
11118
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11119
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11120
|
+
return p.listBaseModels(methodInput);
|
|
11121
|
+
}),
|
|
11122
|
+
planJob: trpc_middleware_js_1.adminProcedure
|
|
11123
|
+
.input(types_128.trainingCapability.methods.planJob.input.loose())
|
|
11124
|
+
.output(types_128.trainingCapability.methods.planJob.output)
|
|
11125
|
+
.query(async ({ input, ctx }) => {
|
|
11126
|
+
const { nodeId, ...methodInput } = input;
|
|
11127
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11128
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11129
|
+
return p.planJob(methodInput);
|
|
11130
|
+
}),
|
|
11131
|
+
startJob: trpc_middleware_js_1.adminProcedure
|
|
11132
|
+
.input(types_128.trainingCapability.methods.startJob.input.loose())
|
|
11133
|
+
.output(types_128.trainingCapability.methods.startJob.output)
|
|
11134
|
+
.mutation(async ({ input, ctx }) => {
|
|
11135
|
+
const { nodeId, ...methodInput } = input;
|
|
11136
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11137
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11138
|
+
return p.startJob(methodInput);
|
|
11139
|
+
}),
|
|
11140
|
+
listJobs: trpc_middleware_js_1.adminProcedure
|
|
11141
|
+
.input(types_128.trainingCapability.methods.listJobs.input.loose())
|
|
11142
|
+
.output(types_128.trainingCapability.methods.listJobs.output)
|
|
11143
|
+
.query(async ({ input, ctx }) => {
|
|
11144
|
+
const { nodeId, ...methodInput } = input;
|
|
11145
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11146
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11147
|
+
return p.listJobs(methodInput);
|
|
11148
|
+
}),
|
|
11149
|
+
getJob: trpc_middleware_js_1.adminProcedure
|
|
11150
|
+
.input(types_128.trainingCapability.methods.getJob.input.loose())
|
|
11151
|
+
.output(types_128.trainingCapability.methods.getJob.output)
|
|
11152
|
+
.query(async ({ input, ctx }) => {
|
|
11153
|
+
const { nodeId, ...methodInput } = input;
|
|
11154
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11155
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11156
|
+
return p.getJob(methodInput);
|
|
11157
|
+
}),
|
|
11158
|
+
cancelJob: trpc_middleware_js_1.adminProcedure
|
|
11159
|
+
.input(types_128.trainingCapability.methods.cancelJob.input.loose())
|
|
11160
|
+
.output(types_128.trainingCapability.methods.cancelJob.output)
|
|
11161
|
+
.mutation(async ({ input, ctx }) => {
|
|
11162
|
+
const { nodeId, ...methodInput } = input;
|
|
11163
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11164
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11165
|
+
return p.cancelJob(methodInput);
|
|
11166
|
+
}),
|
|
11167
|
+
getJobResult: trpc_middleware_js_1.adminProcedure
|
|
11168
|
+
.input(types_128.trainingCapability.methods.getJobResult.input.loose())
|
|
11169
|
+
.output(types_128.trainingCapability.methods.getJobResult.output)
|
|
11170
|
+
.query(async ({ input, ctx }) => {
|
|
11171
|
+
const { nodeId, ...methodInput } = input;
|
|
11172
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11173
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11174
|
+
return p.getJobResult(methodInput);
|
|
11175
|
+
}),
|
|
11176
|
+
registerResult: trpc_middleware_js_1.adminProcedure
|
|
11177
|
+
.input(types_128.trainingCapability.methods.registerResult.input.loose())
|
|
11178
|
+
.output(types_128.trainingCapability.methods.registerResult.output)
|
|
11179
|
+
.mutation(async ({ input, ctx }) => {
|
|
11180
|
+
const { nodeId, ...methodInput } = input;
|
|
11181
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11182
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11183
|
+
return p.registerResult(methodInput);
|
|
11184
|
+
}),
|
|
11185
|
+
canaryResult: trpc_middleware_js_1.adminProcedure
|
|
11186
|
+
.input(types_128.trainingCapability.methods.canaryResult.input.loose())
|
|
11187
|
+
.output(types_128.trainingCapability.methods.canaryResult.output)
|
|
11188
|
+
.mutation(async ({ input, ctx }) => {
|
|
11189
|
+
const { nodeId, ...methodInput } = input;
|
|
11190
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11191
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11192
|
+
return p.canaryResult(methodInput);
|
|
11193
|
+
}),
|
|
11194
|
+
rollbackCanary: trpc_middleware_js_1.adminProcedure
|
|
11195
|
+
.input(types_128.trainingCapability.methods.rollbackCanary.input.loose())
|
|
11196
|
+
.output(types_128.trainingCapability.methods.rollbackCanary.output)
|
|
11197
|
+
.mutation(async ({ input, ctx }) => {
|
|
11198
|
+
const { nodeId, ...methodInput } = input;
|
|
11199
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11200
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11201
|
+
return p.rollbackCanary(methodInput);
|
|
11202
|
+
}),
|
|
11203
|
+
discardResult: trpc_middleware_js_1.adminProcedure
|
|
11204
|
+
.input(types_128.trainingCapability.methods.discardResult.input.loose())
|
|
11205
|
+
.output(types_128.trainingCapability.methods.discardResult.output)
|
|
11206
|
+
.mutation(async ({ input, ctx }) => {
|
|
11207
|
+
const { nodeId, ...methodInput } = input;
|
|
11208
|
+
const p = resolveProvider('training', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11209
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11210
|
+
return p.discardResult(methodInput);
|
|
11211
|
+
}),
|
|
11212
|
+
});
|
|
11213
|
+
}
|
|
11214
|
+
function createCapRouter_trainingProvider(getProvider, createRemoteProxy) {
|
|
11215
|
+
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11216
|
+
describe: trpc_middleware_js_1.adminProcedure
|
|
11217
|
+
.input(types_129.trainingProviderCapability.methods.describe.input.loose())
|
|
11218
|
+
.output(types_129.trainingProviderCapability.methods.describe.output)
|
|
11219
|
+
.query(async ({ input, ctx }) => {
|
|
11220
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11221
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11222
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11223
|
+
return p.describe(methodInput);
|
|
11224
|
+
}),
|
|
11225
|
+
validateCredentials: trpc_middleware_js_1.adminProcedure
|
|
11226
|
+
.input(types_129.trainingProviderCapability.methods.validateCredentials.input.loose())
|
|
11227
|
+
.output(types_129.trainingProviderCapability.methods.validateCredentials.output)
|
|
11228
|
+
.mutation(async ({ input, ctx }) => {
|
|
11229
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11230
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11231
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11232
|
+
return p.validateCredentials(methodInput);
|
|
11233
|
+
}),
|
|
11234
|
+
estimateJob: trpc_middleware_js_1.adminProcedure
|
|
11235
|
+
.input(types_129.trainingProviderCapability.methods.estimateJob.input.loose())
|
|
11236
|
+
.output(types_129.trainingProviderCapability.methods.estimateJob.output)
|
|
11237
|
+
.query(async ({ input, ctx }) => {
|
|
11238
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11239
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11240
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11241
|
+
return p.estimateJob(methodInput);
|
|
11242
|
+
}),
|
|
11243
|
+
uploadDataset: trpc_middleware_js_1.adminProcedure
|
|
11244
|
+
.input(types_129.trainingProviderCapability.methods.uploadDataset.input.loose())
|
|
11245
|
+
.output(types_129.trainingProviderCapability.methods.uploadDataset.output)
|
|
11246
|
+
.mutation(async ({ input, ctx }) => {
|
|
11247
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11248
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11249
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11250
|
+
return p.uploadDataset(methodInput);
|
|
11251
|
+
}),
|
|
11252
|
+
submitJob: trpc_middleware_js_1.adminProcedure
|
|
11253
|
+
.input(types_129.trainingProviderCapability.methods.submitJob.input.loose())
|
|
11254
|
+
.output(types_129.trainingProviderCapability.methods.submitJob.output)
|
|
11255
|
+
.mutation(async ({ input, ctx }) => {
|
|
11256
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11257
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11258
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11259
|
+
return p.submitJob(methodInput);
|
|
11260
|
+
}),
|
|
11261
|
+
getJob: trpc_middleware_js_1.adminProcedure
|
|
11262
|
+
.input(types_129.trainingProviderCapability.methods.getJob.input.loose())
|
|
11263
|
+
.output(types_129.trainingProviderCapability.methods.getJob.output)
|
|
11264
|
+
.query(async ({ input, ctx }) => {
|
|
11265
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11266
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11267
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11268
|
+
return p.getJob(methodInput);
|
|
11269
|
+
}),
|
|
11270
|
+
listJobEvents: trpc_middleware_js_1.adminProcedure
|
|
11271
|
+
.input(types_129.trainingProviderCapability.methods.listJobEvents.input.loose())
|
|
11272
|
+
.output(types_129.trainingProviderCapability.methods.listJobEvents.output)
|
|
11273
|
+
.query(async ({ input, ctx }) => {
|
|
11274
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11275
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11276
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11277
|
+
return p.listJobEvents(methodInput);
|
|
11278
|
+
}),
|
|
11279
|
+
cancelJob: trpc_middleware_js_1.adminProcedure
|
|
11280
|
+
.input(types_129.trainingProviderCapability.methods.cancelJob.input.loose())
|
|
11281
|
+
.output(types_129.trainingProviderCapability.methods.cancelJob.output)
|
|
11282
|
+
.mutation(async ({ input, ctx }) => {
|
|
11283
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11284
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11285
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11286
|
+
return p.cancelJob(methodInput);
|
|
11287
|
+
}),
|
|
11288
|
+
readResult: trpc_middleware_js_1.adminProcedure
|
|
11289
|
+
.input(types_129.trainingProviderCapability.methods.readResult.input.loose())
|
|
11290
|
+
.output(types_129.trainingProviderCapability.methods.readResult.output)
|
|
11291
|
+
.mutation(async ({ input, ctx }) => {
|
|
11292
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11293
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11294
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11295
|
+
return p.readResult(methodInput);
|
|
11296
|
+
}),
|
|
11297
|
+
offerArtifact: trpc_middleware_js_1.adminProcedure
|
|
11298
|
+
.input(types_129.trainingProviderCapability.methods.offerArtifact.input.loose())
|
|
11299
|
+
.output(types_129.trainingProviderCapability.methods.offerArtifact.output)
|
|
11300
|
+
.mutation(async ({ input, ctx }) => {
|
|
11301
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11302
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11303
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11304
|
+
return p.offerArtifact(methodInput);
|
|
11305
|
+
}),
|
|
11306
|
+
cleanupJob: trpc_middleware_js_1.adminProcedure
|
|
11307
|
+
.input(types_129.trainingProviderCapability.methods.cleanupJob.input.loose())
|
|
11308
|
+
.output(types_129.trainingProviderCapability.methods.cleanupJob.output)
|
|
11309
|
+
.mutation(async ({ input, ctx }) => {
|
|
11310
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11311
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11312
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11313
|
+
return p.cleanupJob(methodInput);
|
|
11314
|
+
}),
|
|
11315
|
+
listJobs: trpc_middleware_js_1.adminProcedure
|
|
11316
|
+
.input(types_129.trainingProviderCapability.methods.listJobs.input.loose())
|
|
11317
|
+
.output(types_129.trainingProviderCapability.methods.listJobs.output)
|
|
11318
|
+
.query(async ({ input, ctx }) => {
|
|
11319
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
11320
|
+
const p = resolveProvider('training-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
11321
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11322
|
+
return p.listJobs(methodInput);
|
|
11323
|
+
}),
|
|
11324
|
+
});
|
|
11325
|
+
}
|
|
10992
11326
|
function createCapRouter_turnProvider(getProvider, createRemoteProxy) {
|
|
10993
11327
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
10994
11328
|
getTurnServers: trpc_middleware_js_1.protectedProcedure
|
|
10995
11329
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
10996
|
-
.output(
|
|
11330
|
+
.output(types_130.turnProviderCapability.methods.getTurnServers.output)
|
|
10997
11331
|
.query(async ({ input, ctx }) => {
|
|
10998
11332
|
const p = resolveProvider('turn-provider', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
10999
11333
|
return p.getTurnServers();
|
|
@@ -11013,7 +11347,7 @@ function createCapRouter_update(getProvider, createRemoteProxy) {
|
|
|
11013
11347
|
}),
|
|
11014
11348
|
installUpdate: trpc_middleware_js_1.adminProcedure
|
|
11015
11349
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
11016
|
-
.output(
|
|
11350
|
+
.output(types_131.updateCapability.methods.installUpdate.output)
|
|
11017
11351
|
.mutation(async ({ input, ctx }) => {
|
|
11018
11352
|
const p = resolveProvider('update', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11019
11353
|
return p.installUpdate();
|
|
@@ -11024,14 +11358,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11024
11358
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11025
11359
|
listUsers: trpc_middleware_js_1.adminProcedure
|
|
11026
11360
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
11027
|
-
.output(
|
|
11361
|
+
.output(types_132.userManagementCapability.methods.listUsers.output)
|
|
11028
11362
|
.query(async ({ input, ctx }) => {
|
|
11029
11363
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11030
11364
|
return p.listUsers();
|
|
11031
11365
|
}),
|
|
11032
11366
|
createUser: trpc_middleware_js_1.adminProcedure
|
|
11033
|
-
.input(
|
|
11034
|
-
.output(
|
|
11367
|
+
.input(types_132.userManagementCapability.methods.createUser.input.loose())
|
|
11368
|
+
.output(types_132.userManagementCapability.methods.createUser.output)
|
|
11035
11369
|
.mutation(async ({ input, ctx }) => {
|
|
11036
11370
|
const { nodeId, ...methodInput } = input;
|
|
11037
11371
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11039,8 +11373,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11039
11373
|
return p.createUser(methodInput);
|
|
11040
11374
|
}),
|
|
11041
11375
|
updateUser: trpc_middleware_js_1.adminProcedure
|
|
11042
|
-
.input(
|
|
11043
|
-
.output(
|
|
11376
|
+
.input(types_132.userManagementCapability.methods.updateUser.input.loose())
|
|
11377
|
+
.output(types_132.userManagementCapability.methods.updateUser.output)
|
|
11044
11378
|
.mutation(async ({ input, ctx }) => {
|
|
11045
11379
|
const { nodeId, ...methodInput } = input;
|
|
11046
11380
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11048,8 +11382,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11048
11382
|
return p.updateUser(methodInput);
|
|
11049
11383
|
}),
|
|
11050
11384
|
deleteUser: trpc_middleware_js_1.adminProcedure
|
|
11051
|
-
.input(
|
|
11052
|
-
.output(
|
|
11385
|
+
.input(types_132.userManagementCapability.methods.deleteUser.input.loose())
|
|
11386
|
+
.output(types_132.userManagementCapability.methods.deleteUser.output)
|
|
11053
11387
|
.mutation(async ({ input, ctx }) => {
|
|
11054
11388
|
const { nodeId, ...methodInput } = input;
|
|
11055
11389
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11057,8 +11391,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11057
11391
|
return p.deleteUser(methodInput);
|
|
11058
11392
|
}),
|
|
11059
11393
|
resetPassword: trpc_middleware_js_1.adminProcedure
|
|
11060
|
-
.input(
|
|
11061
|
-
.output(
|
|
11394
|
+
.input(types_132.userManagementCapability.methods.resetPassword.input.loose())
|
|
11395
|
+
.output(types_132.userManagementCapability.methods.resetPassword.output)
|
|
11062
11396
|
.mutation(async ({ input, ctx }) => {
|
|
11063
11397
|
const { nodeId, ...methodInput } = input;
|
|
11064
11398
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11066,8 +11400,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11066
11400
|
return p.resetPassword(methodInput);
|
|
11067
11401
|
}),
|
|
11068
11402
|
setUserScopes: trpc_middleware_js_1.adminProcedure
|
|
11069
|
-
.input(
|
|
11070
|
-
.output(
|
|
11403
|
+
.input(types_132.userManagementCapability.methods.setUserScopes.input.loose())
|
|
11404
|
+
.output(types_132.userManagementCapability.methods.setUserScopes.output)
|
|
11071
11405
|
.mutation(async ({ input, ctx }) => {
|
|
11072
11406
|
const { nodeId, ...methodInput } = input;
|
|
11073
11407
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11075,8 +11409,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11075
11409
|
return p.setUserScopes(methodInput);
|
|
11076
11410
|
}),
|
|
11077
11411
|
validateCredentials: trpc_middleware_js_1.protectedProcedure
|
|
11078
|
-
.input(
|
|
11079
|
-
.output(
|
|
11412
|
+
.input(types_132.userManagementCapability.methods.validateCredentials.input.loose())
|
|
11413
|
+
.output(types_132.userManagementCapability.methods.validateCredentials.output)
|
|
11080
11414
|
.mutation(async ({ input, ctx }) => {
|
|
11081
11415
|
const { nodeId, ...methodInput } = input;
|
|
11082
11416
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11085,41 +11419,23 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11085
11419
|
}),
|
|
11086
11420
|
listApiKeys: trpc_middleware_js_1.adminProcedure
|
|
11087
11421
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
11088
|
-
.output(
|
|
11422
|
+
.output(types_132.userManagementCapability.methods.listApiKeys.output)
|
|
11089
11423
|
.query(async ({ input, ctx }) => {
|
|
11090
11424
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11091
11425
|
return p.listApiKeys();
|
|
11092
11426
|
}),
|
|
11093
|
-
createApiKey: trpc_middleware_js_1.adminProcedure
|
|
11094
|
-
.input(types_130.userManagementCapability.methods.createApiKey.input.loose())
|
|
11095
|
-
.output(types_130.userManagementCapability.methods.createApiKey.output)
|
|
11096
|
-
.mutation(async ({ input, ctx }) => {
|
|
11097
|
-
const { nodeId, ...methodInput } = input;
|
|
11098
|
-
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11099
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11100
|
-
return p.createApiKey(methodInput);
|
|
11101
|
-
}),
|
|
11102
11427
|
revokeApiKey: trpc_middleware_js_1.adminProcedure
|
|
11103
|
-
.input(
|
|
11104
|
-
.output(
|
|
11428
|
+
.input(types_132.userManagementCapability.methods.revokeApiKey.input.loose())
|
|
11429
|
+
.output(types_132.userManagementCapability.methods.revokeApiKey.output)
|
|
11105
11430
|
.mutation(async ({ input, ctx }) => {
|
|
11106
11431
|
const { nodeId, ...methodInput } = input;
|
|
11107
11432
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11108
11433
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11109
11434
|
return p.revokeApiKey(methodInput);
|
|
11110
11435
|
}),
|
|
11111
|
-
validateApiKey: trpc_middleware_js_1.protectedProcedure
|
|
11112
|
-
.input(types_130.userManagementCapability.methods.validateApiKey.input.loose())
|
|
11113
|
-
.output(types_130.userManagementCapability.methods.validateApiKey.output)
|
|
11114
|
-
.mutation(async ({ input, ctx }) => {
|
|
11115
|
-
const { nodeId, ...methodInput } = input;
|
|
11116
|
-
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11117
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11118
|
-
return p.validateApiKey(methodInput);
|
|
11119
|
-
}),
|
|
11120
11436
|
createScopedToken: trpc_middleware_js_1.adminProcedure
|
|
11121
|
-
.input(
|
|
11122
|
-
.output(
|
|
11437
|
+
.input(types_132.userManagementCapability.methods.createScopedToken.input.loose())
|
|
11438
|
+
.output(types_132.userManagementCapability.methods.createScopedToken.output)
|
|
11123
11439
|
.mutation(async ({ input, ctx }) => {
|
|
11124
11440
|
const { nodeId, ...methodInput } = input;
|
|
11125
11441
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11127,8 +11443,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11127
11443
|
return p.createScopedToken(methodInput);
|
|
11128
11444
|
}),
|
|
11129
11445
|
revokeScopedToken: trpc_middleware_js_1.adminProcedure
|
|
11130
|
-
.input(
|
|
11131
|
-
.output(
|
|
11446
|
+
.input(types_132.userManagementCapability.methods.revokeScopedToken.input.loose())
|
|
11447
|
+
.output(types_132.userManagementCapability.methods.revokeScopedToken.output)
|
|
11132
11448
|
.mutation(async ({ input, ctx }) => {
|
|
11133
11449
|
const { nodeId, ...methodInput } = input;
|
|
11134
11450
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11136,8 +11452,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11136
11452
|
return p.revokeScopedToken(methodInput);
|
|
11137
11453
|
}),
|
|
11138
11454
|
validateScopedToken: trpc_middleware_js_1.protectedProcedure
|
|
11139
|
-
.input(
|
|
11140
|
-
.output(
|
|
11455
|
+
.input(types_132.userManagementCapability.methods.validateScopedToken.input.loose())
|
|
11456
|
+
.output(types_132.userManagementCapability.methods.validateScopedToken.output)
|
|
11141
11457
|
.query(async ({ input, ctx }) => {
|
|
11142
11458
|
const { nodeId, ...methodInput } = input;
|
|
11143
11459
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11145,8 +11461,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11145
11461
|
return p.validateScopedToken(methodInput);
|
|
11146
11462
|
}),
|
|
11147
11463
|
listScopedTokens: trpc_middleware_js_1.adminProcedure
|
|
11148
|
-
.input(
|
|
11149
|
-
.output(
|
|
11464
|
+
.input(types_132.userManagementCapability.methods.listScopedTokens.input.loose())
|
|
11465
|
+
.output(types_132.userManagementCapability.methods.listScopedTokens.output)
|
|
11150
11466
|
.query(async ({ input, ctx }) => {
|
|
11151
11467
|
const { nodeId, ...methodInput } = input;
|
|
11152
11468
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11154,8 +11470,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11154
11470
|
return p.listScopedTokens(methodInput);
|
|
11155
11471
|
}),
|
|
11156
11472
|
setupTotp: trpc_middleware_js_1.adminProcedure
|
|
11157
|
-
.input(
|
|
11158
|
-
.output(
|
|
11473
|
+
.input(types_132.userManagementCapability.methods.setupTotp.input.loose())
|
|
11474
|
+
.output(types_132.userManagementCapability.methods.setupTotp.output)
|
|
11159
11475
|
.mutation(async ({ input, ctx }) => {
|
|
11160
11476
|
const { nodeId, ...methodInput } = input;
|
|
11161
11477
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11163,8 +11479,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11163
11479
|
return p.setupTotp(methodInput);
|
|
11164
11480
|
}),
|
|
11165
11481
|
confirmTotp: trpc_middleware_js_1.adminProcedure
|
|
11166
|
-
.input(
|
|
11167
|
-
.output(
|
|
11482
|
+
.input(types_132.userManagementCapability.methods.confirmTotp.input.loose())
|
|
11483
|
+
.output(types_132.userManagementCapability.methods.confirmTotp.output)
|
|
11168
11484
|
.mutation(async ({ input, ctx }) => {
|
|
11169
11485
|
const { nodeId, ...methodInput } = input;
|
|
11170
11486
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11172,8 +11488,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11172
11488
|
return p.confirmTotp(methodInput);
|
|
11173
11489
|
}),
|
|
11174
11490
|
disableTotp: trpc_middleware_js_1.adminProcedure
|
|
11175
|
-
.input(
|
|
11176
|
-
.output(
|
|
11491
|
+
.input(types_132.userManagementCapability.methods.disableTotp.input.loose())
|
|
11492
|
+
.output(types_132.userManagementCapability.methods.disableTotp.output)
|
|
11177
11493
|
.mutation(async ({ input, ctx }) => {
|
|
11178
11494
|
const { nodeId, ...methodInput } = input;
|
|
11179
11495
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11181,8 +11497,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11181
11497
|
return p.disableTotp(methodInput);
|
|
11182
11498
|
}),
|
|
11183
11499
|
getTotpStatus: trpc_middleware_js_1.adminProcedure
|
|
11184
|
-
.input(
|
|
11185
|
-
.output(
|
|
11500
|
+
.input(types_132.userManagementCapability.methods.getTotpStatus.input.loose())
|
|
11501
|
+
.output(types_132.userManagementCapability.methods.getTotpStatus.output)
|
|
11186
11502
|
.query(async ({ input, ctx }) => {
|
|
11187
11503
|
const { nodeId, ...methodInput } = input;
|
|
11188
11504
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11190,8 +11506,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11190
11506
|
return p.getTotpStatus(methodInput);
|
|
11191
11507
|
}),
|
|
11192
11508
|
verifyTotp: trpc_middleware_js_1.protectedProcedure
|
|
11193
|
-
.input(
|
|
11194
|
-
.output(
|
|
11509
|
+
.input(types_132.userManagementCapability.methods.verifyTotp.input.loose())
|
|
11510
|
+
.output(types_132.userManagementCapability.methods.verifyTotp.output)
|
|
11195
11511
|
.mutation(async ({ input, ctx }) => {
|
|
11196
11512
|
const { nodeId, ...methodInput } = input;
|
|
11197
11513
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11199,8 +11515,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11199
11515
|
return p.verifyTotp(methodInput);
|
|
11200
11516
|
}),
|
|
11201
11517
|
oauthIssueCode: trpc_middleware_js_1.protectedProcedure
|
|
11202
|
-
.input(
|
|
11203
|
-
.output(
|
|
11518
|
+
.input(types_132.userManagementCapability.methods.oauthIssueCode.input.loose())
|
|
11519
|
+
.output(types_132.userManagementCapability.methods.oauthIssueCode.output)
|
|
11204
11520
|
.mutation(async ({ input, ctx }) => {
|
|
11205
11521
|
const { nodeId, ...methodInput } = input;
|
|
11206
11522
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11208,8 +11524,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11208
11524
|
return p.oauthIssueCode(methodInput);
|
|
11209
11525
|
}),
|
|
11210
11526
|
oauthExchangeCode: trpc_middleware_js_1.protectedProcedure
|
|
11211
|
-
.input(
|
|
11212
|
-
.output(
|
|
11527
|
+
.input(types_132.userManagementCapability.methods.oauthExchangeCode.input.loose())
|
|
11528
|
+
.output(types_132.userManagementCapability.methods.oauthExchangeCode.output)
|
|
11213
11529
|
.mutation(async ({ input, ctx }) => {
|
|
11214
11530
|
const { nodeId, ...methodInput } = input;
|
|
11215
11531
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11217,8 +11533,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11217
11533
|
return p.oauthExchangeCode(methodInput);
|
|
11218
11534
|
}),
|
|
11219
11535
|
oauthRefresh: trpc_middleware_js_1.protectedProcedure
|
|
11220
|
-
.input(
|
|
11221
|
-
.output(
|
|
11536
|
+
.input(types_132.userManagementCapability.methods.oauthRefresh.input.loose())
|
|
11537
|
+
.output(types_132.userManagementCapability.methods.oauthRefresh.output)
|
|
11222
11538
|
.mutation(async ({ input, ctx }) => {
|
|
11223
11539
|
const { nodeId, ...methodInput } = input;
|
|
11224
11540
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11226,8 +11542,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11226
11542
|
return p.oauthRefresh(methodInput);
|
|
11227
11543
|
}),
|
|
11228
11544
|
oauthVerifyAccessToken: trpc_middleware_js_1.protectedProcedure
|
|
11229
|
-
.input(
|
|
11230
|
-
.output(
|
|
11545
|
+
.input(types_132.userManagementCapability.methods.oauthVerifyAccessToken.input.loose())
|
|
11546
|
+
.output(types_132.userManagementCapability.methods.oauthVerifyAccessToken.output)
|
|
11231
11547
|
.query(async ({ input, ctx }) => {
|
|
11232
11548
|
const { nodeId, ...methodInput } = input;
|
|
11233
11549
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11235,8 +11551,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11235
11551
|
return p.oauthVerifyAccessToken(methodInput);
|
|
11236
11552
|
}),
|
|
11237
11553
|
listExternalIdentities: trpc_middleware_js_1.adminProcedure
|
|
11238
|
-
.input(
|
|
11239
|
-
.output(
|
|
11554
|
+
.input(types_132.userManagementCapability.methods.listExternalIdentities.input.loose())
|
|
11555
|
+
.output(types_132.userManagementCapability.methods.listExternalIdentities.output)
|
|
11240
11556
|
.query(async ({ input, ctx }) => {
|
|
11241
11557
|
const { nodeId, ...methodInput } = input;
|
|
11242
11558
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11244,26 +11560,17 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11244
11560
|
return p.listExternalIdentities(methodInput);
|
|
11245
11561
|
}),
|
|
11246
11562
|
findUserByExternalIdentity: trpc_middleware_js_1.adminProcedure
|
|
11247
|
-
.input(
|
|
11248
|
-
.output(
|
|
11563
|
+
.input(types_132.userManagementCapability.methods.findUserByExternalIdentity.input.loose())
|
|
11564
|
+
.output(types_132.userManagementCapability.methods.findUserByExternalIdentity.output)
|
|
11249
11565
|
.query(async ({ input, ctx }) => {
|
|
11250
11566
|
const { nodeId, ...methodInput } = input;
|
|
11251
11567
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11252
11568
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11253
11569
|
return p.findUserByExternalIdentity(methodInput);
|
|
11254
11570
|
}),
|
|
11255
|
-
linkExternalIdentity: trpc_middleware_js_1.adminProcedure
|
|
11256
|
-
.input(types_130.userManagementCapability.methods.linkExternalIdentity.input.loose())
|
|
11257
|
-
.output(types_130.userManagementCapability.methods.linkExternalIdentity.output)
|
|
11258
|
-
.mutation(async ({ input, ctx }) => {
|
|
11259
|
-
const { nodeId, ...methodInput } = input;
|
|
11260
|
-
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11261
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
11262
|
-
return p.linkExternalIdentity(methodInput);
|
|
11263
|
-
}),
|
|
11264
11571
|
unlinkExternalIdentity: trpc_middleware_js_1.adminProcedure
|
|
11265
|
-
.input(
|
|
11266
|
-
.output(
|
|
11572
|
+
.input(types_132.userManagementCapability.methods.unlinkExternalIdentity.input.loose())
|
|
11573
|
+
.output(types_132.userManagementCapability.methods.unlinkExternalIdentity.output)
|
|
11267
11574
|
.mutation(async ({ input, ctx }) => {
|
|
11268
11575
|
const { nodeId, ...methodInput } = input;
|
|
11269
11576
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11272,14 +11579,14 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11272
11579
|
}),
|
|
11273
11580
|
listOauthSessions: trpc_middleware_js_1.adminProcedure
|
|
11274
11581
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
11275
|
-
.output(
|
|
11582
|
+
.output(types_132.userManagementCapability.methods.listOauthSessions.output)
|
|
11276
11583
|
.query(async ({ input, ctx }) => {
|
|
11277
11584
|
const p = resolveProvider('user-management', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11278
11585
|
return p.listOauthSessions();
|
|
11279
11586
|
}),
|
|
11280
11587
|
revokeOauthSession: trpc_middleware_js_1.adminProcedure
|
|
11281
|
-
.input(
|
|
11282
|
-
.output(
|
|
11588
|
+
.input(types_132.userManagementCapability.methods.revokeOauthSession.input.loose())
|
|
11589
|
+
.output(types_132.userManagementCapability.methods.revokeOauthSession.output)
|
|
11283
11590
|
.mutation(async ({ input, ctx }) => {
|
|
11284
11591
|
const { nodeId, ...methodInput } = input;
|
|
11285
11592
|
const p = resolveProvider('user-management', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11291,8 +11598,8 @@ function createCapRouter_userManagement(getProvider, createRemoteProxy) {
|
|
|
11291
11598
|
function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
11292
11599
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11293
11600
|
beginRegistration: trpc_middleware_js_1.adminProcedure
|
|
11294
|
-
.input(
|
|
11295
|
-
.output(
|
|
11601
|
+
.input(types_133.userPasskeysCapability.methods.beginRegistration.input.loose())
|
|
11602
|
+
.output(types_133.userPasskeysCapability.methods.beginRegistration.output)
|
|
11296
11603
|
.mutation(async ({ input, ctx }) => {
|
|
11297
11604
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11298
11605
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11300,8 +11607,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11300
11607
|
return p.beginRegistration(methodInput);
|
|
11301
11608
|
}),
|
|
11302
11609
|
finishRegistration: trpc_middleware_js_1.adminProcedure
|
|
11303
|
-
.input(
|
|
11304
|
-
.output(
|
|
11610
|
+
.input(types_133.userPasskeysCapability.methods.finishRegistration.input.loose())
|
|
11611
|
+
.output(types_133.userPasskeysCapability.methods.finishRegistration.output)
|
|
11305
11612
|
.mutation(async ({ input, ctx }) => {
|
|
11306
11613
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11307
11614
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11309,8 +11616,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11309
11616
|
return p.finishRegistration(methodInput);
|
|
11310
11617
|
}),
|
|
11311
11618
|
beginAuthentication: trpc_middleware_js_1.adminProcedure
|
|
11312
|
-
.input(
|
|
11313
|
-
.output(
|
|
11619
|
+
.input(types_133.userPasskeysCapability.methods.beginAuthentication.input.loose())
|
|
11620
|
+
.output(types_133.userPasskeysCapability.methods.beginAuthentication.output)
|
|
11314
11621
|
.mutation(async ({ input, ctx }) => {
|
|
11315
11622
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11316
11623
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11318,8 +11625,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11318
11625
|
return p.beginAuthentication(methodInput);
|
|
11319
11626
|
}),
|
|
11320
11627
|
finishAuthentication: trpc_middleware_js_1.adminProcedure
|
|
11321
|
-
.input(
|
|
11322
|
-
.output(
|
|
11628
|
+
.input(types_133.userPasskeysCapability.methods.finishAuthentication.input.loose())
|
|
11629
|
+
.output(types_133.userPasskeysCapability.methods.finishAuthentication.output)
|
|
11323
11630
|
.mutation(async ({ input, ctx }) => {
|
|
11324
11631
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11325
11632
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11327,8 +11634,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11327
11634
|
return p.finishAuthentication(methodInput);
|
|
11328
11635
|
}),
|
|
11329
11636
|
beginDiscoverableAuthentication: trpc_middleware_js_1.adminProcedure
|
|
11330
|
-
.input(
|
|
11331
|
-
.output(
|
|
11637
|
+
.input(types_133.userPasskeysCapability.methods.beginDiscoverableAuthentication.input.loose())
|
|
11638
|
+
.output(types_133.userPasskeysCapability.methods.beginDiscoverableAuthentication.output)
|
|
11332
11639
|
.mutation(async ({ input, ctx }) => {
|
|
11333
11640
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11334
11641
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11336,8 +11643,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11336
11643
|
return p.beginDiscoverableAuthentication(methodInput);
|
|
11337
11644
|
}),
|
|
11338
11645
|
finishDiscoverableAuthentication: trpc_middleware_js_1.adminProcedure
|
|
11339
|
-
.input(
|
|
11340
|
-
.output(
|
|
11646
|
+
.input(types_133.userPasskeysCapability.methods.finishDiscoverableAuthentication.input.loose())
|
|
11647
|
+
.output(types_133.userPasskeysCapability.methods.finishDiscoverableAuthentication.output)
|
|
11341
11648
|
.mutation(async ({ input, ctx }) => {
|
|
11342
11649
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11343
11650
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11345,8 +11652,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11345
11652
|
return p.finishDiscoverableAuthentication(methodInput);
|
|
11346
11653
|
}),
|
|
11347
11654
|
listPasskeys: trpc_middleware_js_1.adminProcedure
|
|
11348
|
-
.input(
|
|
11349
|
-
.output(
|
|
11655
|
+
.input(types_133.userPasskeysCapability.methods.listPasskeys.input.loose())
|
|
11656
|
+
.output(types_133.userPasskeysCapability.methods.listPasskeys.output)
|
|
11350
11657
|
.query(async ({ input, ctx }) => {
|
|
11351
11658
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11352
11659
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11354,8 +11661,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11354
11661
|
return p.listPasskeys(methodInput);
|
|
11355
11662
|
}),
|
|
11356
11663
|
removePasskey: trpc_middleware_js_1.adminProcedure
|
|
11357
|
-
.input(
|
|
11358
|
-
.output(
|
|
11664
|
+
.input(types_133.userPasskeysCapability.methods.removePasskey.input.loose())
|
|
11665
|
+
.output(types_133.userPasskeysCapability.methods.removePasskey.output)
|
|
11359
11666
|
.mutation(async ({ input, ctx }) => {
|
|
11360
11667
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11361
11668
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11363,8 +11670,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11363
11670
|
return p.removePasskey(methodInput);
|
|
11364
11671
|
}),
|
|
11365
11672
|
getSecondFactorPreference: trpc_middleware_js_1.adminProcedure
|
|
11366
|
-
.input(
|
|
11367
|
-
.output(
|
|
11673
|
+
.input(types_133.userPasskeysCapability.methods.getSecondFactorPreference.input.loose())
|
|
11674
|
+
.output(types_133.userPasskeysCapability.methods.getSecondFactorPreference.output)
|
|
11368
11675
|
.query(async ({ input, ctx }) => {
|
|
11369
11676
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11370
11677
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11372,8 +11679,8 @@ function createCapRouter_userPasskeys(getProvider, createRemoteProxy) {
|
|
|
11372
11679
|
return p.getSecondFactorPreference(methodInput);
|
|
11373
11680
|
}),
|
|
11374
11681
|
setSecondFactorPreference: trpc_middleware_js_1.adminProcedure
|
|
11375
|
-
.input(
|
|
11376
|
-
.output(
|
|
11682
|
+
.input(types_133.userPasskeysCapability.methods.setSecondFactorPreference.input.loose())
|
|
11683
|
+
.output(types_133.userPasskeysCapability.methods.setSecondFactorPreference.output)
|
|
11377
11684
|
.mutation(async ({ input, ctx }) => {
|
|
11378
11685
|
const { nodeId, addonId, ...methodInput } = input;
|
|
11379
11686
|
const p = resolveProvider('user-passkeys', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
@@ -11394,8 +11701,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
11394
11701
|
return p.getStatus(methodInput);
|
|
11395
11702
|
}),
|
|
11396
11703
|
start: trpc_middleware_js_1.protectedProcedure
|
|
11397
|
-
.input(
|
|
11398
|
-
.output(
|
|
11704
|
+
.input(types_134.vacuumControlCapability.methods.start.input.loose())
|
|
11705
|
+
.output(types_134.vacuumControlCapability.methods.start.output)
|
|
11399
11706
|
.mutation(async ({ input, ctx }) => {
|
|
11400
11707
|
const { nodeId, ...methodInput } = input;
|
|
11401
11708
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11403,8 +11710,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
11403
11710
|
return p.start(methodInput);
|
|
11404
11711
|
}),
|
|
11405
11712
|
pause: trpc_middleware_js_1.protectedProcedure
|
|
11406
|
-
.input(
|
|
11407
|
-
.output(
|
|
11713
|
+
.input(types_134.vacuumControlCapability.methods.pause.input.loose())
|
|
11714
|
+
.output(types_134.vacuumControlCapability.methods.pause.output)
|
|
11408
11715
|
.mutation(async ({ input, ctx }) => {
|
|
11409
11716
|
const { nodeId, ...methodInput } = input;
|
|
11410
11717
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11412,8 +11719,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
11412
11719
|
return p.pause(methodInput);
|
|
11413
11720
|
}),
|
|
11414
11721
|
stop: trpc_middleware_js_1.protectedProcedure
|
|
11415
|
-
.input(
|
|
11416
|
-
.output(
|
|
11722
|
+
.input(types_134.vacuumControlCapability.methods.stop.input.loose())
|
|
11723
|
+
.output(types_134.vacuumControlCapability.methods.stop.output)
|
|
11417
11724
|
.mutation(async ({ input, ctx }) => {
|
|
11418
11725
|
const { nodeId, ...methodInput } = input;
|
|
11419
11726
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11421,8 +11728,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
11421
11728
|
return p.stop(methodInput);
|
|
11422
11729
|
}),
|
|
11423
11730
|
returnToBase: trpc_middleware_js_1.protectedProcedure
|
|
11424
|
-
.input(
|
|
11425
|
-
.output(
|
|
11731
|
+
.input(types_134.vacuumControlCapability.methods.returnToBase.input.loose())
|
|
11732
|
+
.output(types_134.vacuumControlCapability.methods.returnToBase.output)
|
|
11426
11733
|
.mutation(async ({ input, ctx }) => {
|
|
11427
11734
|
const { nodeId, ...methodInput } = input;
|
|
11428
11735
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11430,8 +11737,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
11430
11737
|
return p.returnToBase(methodInput);
|
|
11431
11738
|
}),
|
|
11432
11739
|
locate: trpc_middleware_js_1.protectedProcedure
|
|
11433
|
-
.input(
|
|
11434
|
-
.output(
|
|
11740
|
+
.input(types_134.vacuumControlCapability.methods.locate.input.loose())
|
|
11741
|
+
.output(types_134.vacuumControlCapability.methods.locate.output)
|
|
11435
11742
|
.mutation(async ({ input, ctx }) => {
|
|
11436
11743
|
const { nodeId, ...methodInput } = input;
|
|
11437
11744
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11439,8 +11746,8 @@ function createCapRouter_vacuumControl(getProvider, createRemoteProxy) {
|
|
|
11439
11746
|
return p.locate(methodInput);
|
|
11440
11747
|
}),
|
|
11441
11748
|
setFanSpeed: trpc_middleware_js_1.protectedProcedure
|
|
11442
|
-
.input(
|
|
11443
|
-
.output(
|
|
11749
|
+
.input(types_134.vacuumControlCapability.methods.setFanSpeed.input.loose())
|
|
11750
|
+
.output(types_134.vacuumControlCapability.methods.setFanSpeed.output)
|
|
11444
11751
|
.mutation(async ({ input, ctx }) => {
|
|
11445
11752
|
const { nodeId, ...methodInput } = input;
|
|
11446
11753
|
const p = resolveProvider('vacuum-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11461,8 +11768,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
11461
11768
|
return p.getStatus(methodInput);
|
|
11462
11769
|
}),
|
|
11463
11770
|
open: trpc_middleware_js_1.protectedProcedure
|
|
11464
|
-
.input(
|
|
11465
|
-
.output(
|
|
11771
|
+
.input(types_135.valveCapability.methods.open.input.loose())
|
|
11772
|
+
.output(types_135.valveCapability.methods.open.output)
|
|
11466
11773
|
.mutation(async ({ input, ctx }) => {
|
|
11467
11774
|
const { nodeId, ...methodInput } = input;
|
|
11468
11775
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11470,8 +11777,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
11470
11777
|
return p.open(methodInput);
|
|
11471
11778
|
}),
|
|
11472
11779
|
close: trpc_middleware_js_1.protectedProcedure
|
|
11473
|
-
.input(
|
|
11474
|
-
.output(
|
|
11780
|
+
.input(types_135.valveCapability.methods.close.input.loose())
|
|
11781
|
+
.output(types_135.valveCapability.methods.close.output)
|
|
11475
11782
|
.mutation(async ({ input, ctx }) => {
|
|
11476
11783
|
const { nodeId, ...methodInput } = input;
|
|
11477
11784
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11479,8 +11786,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
11479
11786
|
return p.close(methodInput);
|
|
11480
11787
|
}),
|
|
11481
11788
|
stop: trpc_middleware_js_1.protectedProcedure
|
|
11482
|
-
.input(
|
|
11483
|
-
.output(
|
|
11789
|
+
.input(types_135.valveCapability.methods.stop.input.loose())
|
|
11790
|
+
.output(types_135.valveCapability.methods.stop.output)
|
|
11484
11791
|
.mutation(async ({ input, ctx }) => {
|
|
11485
11792
|
const { nodeId, ...methodInput } = input;
|
|
11486
11793
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11488,8 +11795,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
11488
11795
|
return p.stop(methodInput);
|
|
11489
11796
|
}),
|
|
11490
11797
|
setPosition: trpc_middleware_js_1.protectedProcedure
|
|
11491
|
-
.input(
|
|
11492
|
-
.output(
|
|
11798
|
+
.input(types_135.valveCapability.methods.setPosition.input.loose())
|
|
11799
|
+
.output(types_135.valveCapability.methods.setPosition.output)
|
|
11493
11800
|
.mutation(async ({ input, ctx }) => {
|
|
11494
11801
|
const { nodeId, ...methodInput } = input;
|
|
11495
11802
|
const p = resolveProvider('valve', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11501,8 +11808,8 @@ function createCapRouter_valve(getProvider, createRemoteProxy) {
|
|
|
11501
11808
|
function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
11502
11809
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11503
11810
|
declareIndex: trpc_middleware_js_1.adminProcedure
|
|
11504
|
-
.input(
|
|
11505
|
-
.output(
|
|
11811
|
+
.input(types_136.vectorStoreCapability.methods.declareIndex.input.loose())
|
|
11812
|
+
.output(types_136.vectorStoreCapability.methods.declareIndex.output)
|
|
11506
11813
|
.mutation(async ({ input, ctx }) => {
|
|
11507
11814
|
const { nodeId, ...methodInput } = input;
|
|
11508
11815
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11510,8 +11817,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11510
11817
|
return p.declareIndex(methodInput);
|
|
11511
11818
|
}),
|
|
11512
11819
|
upsert: trpc_middleware_js_1.adminProcedure
|
|
11513
|
-
.input(
|
|
11514
|
-
.output(
|
|
11820
|
+
.input(types_136.vectorStoreCapability.methods.upsert.input.loose())
|
|
11821
|
+
.output(types_136.vectorStoreCapability.methods.upsert.output)
|
|
11515
11822
|
.mutation(async ({ input, ctx }) => {
|
|
11516
11823
|
const { nodeId, ...methodInput } = input;
|
|
11517
11824
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11519,8 +11826,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11519
11826
|
return p.upsert(methodInput);
|
|
11520
11827
|
}),
|
|
11521
11828
|
query: trpc_middleware_js_1.adminProcedure
|
|
11522
|
-
.input(
|
|
11523
|
-
.output(
|
|
11829
|
+
.input(types_136.vectorStoreCapability.methods.query.input.loose())
|
|
11830
|
+
.output(types_136.vectorStoreCapability.methods.query.output)
|
|
11524
11831
|
.query(async ({ input, ctx }) => {
|
|
11525
11832
|
const { nodeId, ...methodInput } = input;
|
|
11526
11833
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11528,8 +11835,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11528
11835
|
return p.query(methodInput);
|
|
11529
11836
|
}),
|
|
11530
11837
|
getByIds: trpc_middleware_js_1.adminProcedure
|
|
11531
|
-
.input(
|
|
11532
|
-
.output(
|
|
11838
|
+
.input(types_136.vectorStoreCapability.methods.getByIds.input.loose())
|
|
11839
|
+
.output(types_136.vectorStoreCapability.methods.getByIds.output)
|
|
11533
11840
|
.query(async ({ input, ctx }) => {
|
|
11534
11841
|
const { nodeId, ...methodInput } = input;
|
|
11535
11842
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11537,8 +11844,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11537
11844
|
return p.getByIds(methodInput);
|
|
11538
11845
|
}),
|
|
11539
11846
|
fetchByIds: trpc_middleware_js_1.adminProcedure
|
|
11540
|
-
.input(
|
|
11541
|
-
.output(
|
|
11847
|
+
.input(types_136.vectorStoreCapability.methods.fetchByIds.input.loose())
|
|
11848
|
+
.output(types_136.vectorStoreCapability.methods.fetchByIds.output)
|
|
11542
11849
|
.query(async ({ input, ctx }) => {
|
|
11543
11850
|
const { nodeId, ...methodInput } = input;
|
|
11544
11851
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11546,8 +11853,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11546
11853
|
return p.fetchByIds(methodInput);
|
|
11547
11854
|
}),
|
|
11548
11855
|
scan: trpc_middleware_js_1.adminProcedure
|
|
11549
|
-
.input(
|
|
11550
|
-
.output(
|
|
11856
|
+
.input(types_136.vectorStoreCapability.methods.scan.input.loose())
|
|
11857
|
+
.output(types_136.vectorStoreCapability.methods.scan.output)
|
|
11551
11858
|
.query(async ({ input, ctx }) => {
|
|
11552
11859
|
const { nodeId, ...methodInput } = input;
|
|
11553
11860
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11555,8 +11862,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11555
11862
|
return p.scan(methodInput);
|
|
11556
11863
|
}),
|
|
11557
11864
|
deleteByIds: trpc_middleware_js_1.adminProcedure
|
|
11558
|
-
.input(
|
|
11559
|
-
.output(
|
|
11865
|
+
.input(types_136.vectorStoreCapability.methods.deleteByIds.input.loose())
|
|
11866
|
+
.output(types_136.vectorStoreCapability.methods.deleteByIds.output)
|
|
11560
11867
|
.mutation(async ({ input, ctx }) => {
|
|
11561
11868
|
const { nodeId, ...methodInput } = input;
|
|
11562
11869
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11564,8 +11871,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11564
11871
|
return p.deleteByIds(methodInput);
|
|
11565
11872
|
}),
|
|
11566
11873
|
deleteByFilter: trpc_middleware_js_1.adminProcedure
|
|
11567
|
-
.input(
|
|
11568
|
-
.output(
|
|
11874
|
+
.input(types_136.vectorStoreCapability.methods.deleteByFilter.input.loose())
|
|
11875
|
+
.output(types_136.vectorStoreCapability.methods.deleteByFilter.output)
|
|
11569
11876
|
.mutation(async ({ input, ctx }) => {
|
|
11570
11877
|
const { nodeId, ...methodInput } = input;
|
|
11571
11878
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11573,8 +11880,8 @@ function createCapRouter_vectorStore(getProvider, createRemoteProxy) {
|
|
|
11573
11880
|
return p.deleteByFilter(methodInput);
|
|
11574
11881
|
}),
|
|
11575
11882
|
stats: trpc_middleware_js_1.adminProcedure
|
|
11576
|
-
.input(
|
|
11577
|
-
.output(
|
|
11883
|
+
.input(types_136.vectorStoreCapability.methods.stats.input.loose())
|
|
11884
|
+
.output(types_136.vectorStoreCapability.methods.stats.output)
|
|
11578
11885
|
.query(async ({ input, ctx }) => {
|
|
11579
11886
|
const { nodeId, ...methodInput } = input;
|
|
11580
11887
|
const p = resolveProvider('vector-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11599,8 +11906,8 @@ function createCapRouter_vibration(getProvider, createRemoteProxy) {
|
|
|
11599
11906
|
function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
11600
11907
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11601
11908
|
listClips: trpc_middleware_js_1.protectedProcedure
|
|
11602
|
-
.input(
|
|
11603
|
-
.output(
|
|
11909
|
+
.input(types_137.videoclipsCapability.methods.listClips.input.loose())
|
|
11910
|
+
.output(types_137.videoclipsCapability.methods.listClips.output)
|
|
11604
11911
|
.query(async ({ input, ctx }) => {
|
|
11605
11912
|
const { nodeId, ...methodInput } = input;
|
|
11606
11913
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11608,8 +11915,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
11608
11915
|
return p.listClips(methodInput);
|
|
11609
11916
|
}),
|
|
11610
11917
|
listSources: trpc_middleware_js_1.protectedProcedure
|
|
11611
|
-
.input(
|
|
11612
|
-
.output(
|
|
11918
|
+
.input(types_137.videoclipsCapability.methods.listSources.input.loose())
|
|
11919
|
+
.output(types_137.videoclipsCapability.methods.listSources.output)
|
|
11613
11920
|
.query(async ({ input, ctx }) => {
|
|
11614
11921
|
const { nodeId, ...methodInput } = input;
|
|
11615
11922
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11617,8 +11924,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
11617
11924
|
return p.listSources(methodInput);
|
|
11618
11925
|
}),
|
|
11619
11926
|
getClipPlayback: trpc_middleware_js_1.protectedProcedure
|
|
11620
|
-
.input(
|
|
11621
|
-
.output(
|
|
11927
|
+
.input(types_137.videoclipsCapability.methods.getClipPlayback.input.loose())
|
|
11928
|
+
.output(types_137.videoclipsCapability.methods.getClipPlayback.output)
|
|
11622
11929
|
.query(async ({ input, ctx }) => {
|
|
11623
11930
|
const { nodeId, ...methodInput } = input;
|
|
11624
11931
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11626,8 +11933,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
11626
11933
|
return p.getClipPlayback(methodInput);
|
|
11627
11934
|
}),
|
|
11628
11935
|
readClipBytes: trpc_middleware_js_1.protectedProcedure
|
|
11629
|
-
.input(
|
|
11630
|
-
.output(
|
|
11936
|
+
.input(types_137.videoclipsCapability.methods.readClipBytes.input.loose())
|
|
11937
|
+
.output(types_137.videoclipsCapability.methods.readClipBytes.output)
|
|
11631
11938
|
.query(async ({ input, ctx }) => {
|
|
11632
11939
|
const { nodeId, ...methodInput } = input;
|
|
11633
11940
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11642,8 +11949,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
11642
11949
|
return fn.call(p, methodInput);
|
|
11643
11950
|
}),
|
|
11644
11951
|
offerClipBytes: trpc_middleware_js_1.protectedProcedure
|
|
11645
|
-
.input(
|
|
11646
|
-
.output(
|
|
11952
|
+
.input(types_137.videoclipsCapability.methods.offerClipBytes.input.loose())
|
|
11953
|
+
.output(types_137.videoclipsCapability.methods.offerClipBytes.output)
|
|
11647
11954
|
.query(async ({ input, ctx }) => {
|
|
11648
11955
|
const { nodeId, ...methodInput } = input;
|
|
11649
11956
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11658,8 +11965,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
11658
11965
|
return fn.call(p, methodInput);
|
|
11659
11966
|
}),
|
|
11660
11967
|
dialClipStream: trpc_middleware_js_1.protectedProcedure
|
|
11661
|
-
.input(
|
|
11662
|
-
.output(
|
|
11968
|
+
.input(types_137.videoclipsCapability.methods.dialClipStream.input.loose())
|
|
11969
|
+
.output(types_137.videoclipsCapability.methods.dialClipStream.output)
|
|
11663
11970
|
.query(async ({ input, ctx }) => {
|
|
11664
11971
|
const { nodeId, ...methodInput } = input;
|
|
11665
11972
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11674,8 +11981,8 @@ function createCapRouter_videoclips(getProvider, createRemoteProxy) {
|
|
|
11674
11981
|
return fn.call(p, methodInput);
|
|
11675
11982
|
}),
|
|
11676
11983
|
getPlaybackOptions: trpc_middleware_js_1.protectedProcedure
|
|
11677
|
-
.input(
|
|
11678
|
-
.output(
|
|
11984
|
+
.input(types_137.videoclipsCapability.methods.getPlaybackOptions.input.loose())
|
|
11985
|
+
.output(types_137.videoclipsCapability.methods.getPlaybackOptions.output)
|
|
11679
11986
|
.query(async ({ input, ctx }) => {
|
|
11680
11987
|
const { nodeId, ...methodInput } = input;
|
|
11681
11988
|
const p = resolveProvider('videoclips', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11695,14 +12002,14 @@ function createCapRouter_viewerUi(getProvider, createRemoteProxy) {
|
|
|
11695
12002
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11696
12003
|
getStaticDir: trpc_middleware_js_1.adminProcedure
|
|
11697
12004
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
11698
|
-
.output(
|
|
12005
|
+
.output(types_138.viewerUiCapability.methods.getStaticDir.output)
|
|
11699
12006
|
.query(async ({ input, ctx }) => {
|
|
11700
12007
|
const p = resolveProvider('viewer-ui', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11701
12008
|
return p.getStaticDir();
|
|
11702
12009
|
}),
|
|
11703
12010
|
getVersion: trpc_middleware_js_1.adminProcedure
|
|
11704
12011
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
11705
|
-
.output(
|
|
12012
|
+
.output(types_138.viewerUiCapability.methods.getVersion.output)
|
|
11706
12013
|
.query(async ({ input, ctx }) => {
|
|
11707
12014
|
const p = resolveProvider('viewer-ui', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
11708
12015
|
return p.getVersion();
|
|
@@ -11721,8 +12028,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
11721
12028
|
return p.getStatus(methodInput);
|
|
11722
12029
|
}),
|
|
11723
12030
|
setTargetTemp: trpc_middleware_js_1.protectedProcedure
|
|
11724
|
-
.input(
|
|
11725
|
-
.output(
|
|
12031
|
+
.input(types_139.waterHeaterCapability.methods.setTargetTemp.input.loose())
|
|
12032
|
+
.output(types_139.waterHeaterCapability.methods.setTargetTemp.output)
|
|
11726
12033
|
.mutation(async ({ input, ctx }) => {
|
|
11727
12034
|
const { nodeId, ...methodInput } = input;
|
|
11728
12035
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11730,8 +12037,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
11730
12037
|
return p.setTargetTemp(methodInput);
|
|
11731
12038
|
}),
|
|
11732
12039
|
setOperationMode: trpc_middleware_js_1.protectedProcedure
|
|
11733
|
-
.input(
|
|
11734
|
-
.output(
|
|
12040
|
+
.input(types_139.waterHeaterCapability.methods.setOperationMode.input.loose())
|
|
12041
|
+
.output(types_139.waterHeaterCapability.methods.setOperationMode.output)
|
|
11735
12042
|
.mutation(async ({ input, ctx }) => {
|
|
11736
12043
|
const { nodeId, ...methodInput } = input;
|
|
11737
12044
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11739,8 +12046,8 @@ function createCapRouter_waterHeater(getProvider, createRemoteProxy) {
|
|
|
11739
12046
|
return p.setOperationMode(methodInput);
|
|
11740
12047
|
}),
|
|
11741
12048
|
setAway: trpc_middleware_js_1.protectedProcedure
|
|
11742
|
-
.input(
|
|
11743
|
-
.output(
|
|
12049
|
+
.input(types_139.waterHeaterCapability.methods.setAway.input.loose())
|
|
12050
|
+
.output(types_139.waterHeaterCapability.methods.setAway.output)
|
|
11744
12051
|
.mutation(async ({ input, ctx }) => {
|
|
11745
12052
|
const { nodeId, ...methodInput } = input;
|
|
11746
12053
|
const p = resolveProvider('water-heater', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11765,8 +12072,8 @@ function createCapRouter_weather(getProvider, createRemoteProxy) {
|
|
|
11765
12072
|
function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
11766
12073
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11767
12074
|
listStreams: trpc_middleware_js_1.protectedProcedure
|
|
11768
|
-
.input(
|
|
11769
|
-
.output(
|
|
12075
|
+
.input(types_140.webrtcSessionCapability.methods.listStreams.input.loose())
|
|
12076
|
+
.output(types_140.webrtcSessionCapability.methods.listStreams.output)
|
|
11770
12077
|
.query(async ({ input, ctx }) => {
|
|
11771
12078
|
const { nodeId, ...methodInput } = input;
|
|
11772
12079
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11774,8 +12081,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11774
12081
|
return p.listStreams(methodInput);
|
|
11775
12082
|
}),
|
|
11776
12083
|
createSession: trpc_middleware_js_1.protectedProcedure
|
|
11777
|
-
.input(
|
|
11778
|
-
.output(
|
|
12084
|
+
.input(types_140.webrtcSessionCapability.methods.createSession.input.loose())
|
|
12085
|
+
.output(types_140.webrtcSessionCapability.methods.createSession.output)
|
|
11779
12086
|
.mutation(async ({ input, ctx }) => {
|
|
11780
12087
|
const { nodeId, ...methodInput } = input;
|
|
11781
12088
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11783,8 +12090,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11783
12090
|
return p.createSession(methodInput);
|
|
11784
12091
|
}),
|
|
11785
12092
|
handleOffer: trpc_middleware_js_1.protectedProcedure
|
|
11786
|
-
.input(
|
|
11787
|
-
.output(
|
|
12093
|
+
.input(types_140.webrtcSessionCapability.methods.handleOffer.input.loose())
|
|
12094
|
+
.output(types_140.webrtcSessionCapability.methods.handleOffer.output)
|
|
11788
12095
|
.mutation(async ({ input, ctx }) => {
|
|
11789
12096
|
const { nodeId, ...methodInput } = input;
|
|
11790
12097
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11792,8 +12099,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11792
12099
|
return p.handleOffer(methodInput);
|
|
11793
12100
|
}),
|
|
11794
12101
|
handleAnswer: trpc_middleware_js_1.protectedProcedure
|
|
11795
|
-
.input(
|
|
11796
|
-
.output(
|
|
12102
|
+
.input(types_140.webrtcSessionCapability.methods.handleAnswer.input.loose())
|
|
12103
|
+
.output(types_140.webrtcSessionCapability.methods.handleAnswer.output)
|
|
11797
12104
|
.mutation(async ({ input, ctx }) => {
|
|
11798
12105
|
const { nodeId, ...methodInput } = input;
|
|
11799
12106
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11801,8 +12108,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11801
12108
|
return p.handleAnswer(methodInput);
|
|
11802
12109
|
}),
|
|
11803
12110
|
addIceCandidate: trpc_middleware_js_1.protectedProcedure
|
|
11804
|
-
.input(
|
|
11805
|
-
.output(
|
|
12111
|
+
.input(types_140.webrtcSessionCapability.methods.addIceCandidate.input.loose())
|
|
12112
|
+
.output(types_140.webrtcSessionCapability.methods.addIceCandidate.output)
|
|
11806
12113
|
.mutation(async ({ input, ctx }) => {
|
|
11807
12114
|
const { nodeId, ...methodInput } = input;
|
|
11808
12115
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11810,8 +12117,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11810
12117
|
return p.addIceCandidate(methodInput);
|
|
11811
12118
|
}),
|
|
11812
12119
|
getIceCandidates: trpc_middleware_js_1.protectedProcedure
|
|
11813
|
-
.input(
|
|
11814
|
-
.output(
|
|
12120
|
+
.input(types_140.webrtcSessionCapability.methods.getIceCandidates.input.loose())
|
|
12121
|
+
.output(types_140.webrtcSessionCapability.methods.getIceCandidates.output)
|
|
11815
12122
|
.query(async ({ input, ctx }) => {
|
|
11816
12123
|
const { nodeId, ...methodInput } = input;
|
|
11817
12124
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11819,8 +12126,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11819
12126
|
return p.getIceCandidates(methodInput);
|
|
11820
12127
|
}),
|
|
11821
12128
|
closeSession: trpc_middleware_js_1.protectedProcedure
|
|
11822
|
-
.input(
|
|
11823
|
-
.output(
|
|
12129
|
+
.input(types_140.webrtcSessionCapability.methods.closeSession.input.loose())
|
|
12130
|
+
.output(types_140.webrtcSessionCapability.methods.closeSession.output)
|
|
11824
12131
|
.mutation(async ({ input, ctx }) => {
|
|
11825
12132
|
const { nodeId, ...methodInput } = input;
|
|
11826
12133
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11828,8 +12135,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11828
12135
|
return p.closeSession(methodInput);
|
|
11829
12136
|
}),
|
|
11830
12137
|
hasAdaptiveBitrate: trpc_middleware_js_1.protectedProcedure
|
|
11831
|
-
.input(
|
|
11832
|
-
.output(
|
|
12138
|
+
.input(types_140.webrtcSessionCapability.methods.hasAdaptiveBitrate.input.loose())
|
|
12139
|
+
.output(types_140.webrtcSessionCapability.methods.hasAdaptiveBitrate.output)
|
|
11833
12140
|
.query(async ({ input, ctx }) => {
|
|
11834
12141
|
const { nodeId, ...methodInput } = input;
|
|
11835
12142
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11837,8 +12144,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11837
12144
|
return p.hasAdaptiveBitrate(methodInput);
|
|
11838
12145
|
}),
|
|
11839
12146
|
getSessionState: trpc_middleware_js_1.protectedProcedure
|
|
11840
|
-
.input(
|
|
11841
|
-
.output(
|
|
12147
|
+
.input(types_140.webrtcSessionCapability.methods.getSessionState.input.loose())
|
|
12148
|
+
.output(types_140.webrtcSessionCapability.methods.getSessionState.output)
|
|
11842
12149
|
.query(async ({ input, ctx }) => {
|
|
11843
12150
|
const { nodeId, ...methodInput } = input;
|
|
11844
12151
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11846,8 +12153,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11846
12153
|
return p.getSessionState(methodInput);
|
|
11847
12154
|
}),
|
|
11848
12155
|
applyDownlinkProbe: trpc_middleware_js_1.protectedProcedure
|
|
11849
|
-
.input(
|
|
11850
|
-
.output(
|
|
12156
|
+
.input(types_140.webrtcSessionCapability.methods.applyDownlinkProbe.input.loose())
|
|
12157
|
+
.output(types_140.webrtcSessionCapability.methods.applyDownlinkProbe.output)
|
|
11851
12158
|
.mutation(async ({ input, ctx }) => {
|
|
11852
12159
|
const { nodeId, ...methodInput } = input;
|
|
11853
12160
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11855,8 +12162,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11855
12162
|
return p.applyDownlinkProbe(methodInput);
|
|
11856
12163
|
}),
|
|
11857
12164
|
getSessionDebug: trpc_middleware_js_1.protectedProcedure
|
|
11858
|
-
.input(
|
|
11859
|
-
.output(
|
|
12165
|
+
.input(types_140.webrtcSessionCapability.methods.getSessionDebug.input.loose())
|
|
12166
|
+
.output(types_140.webrtcSessionCapability.methods.getSessionDebug.output)
|
|
11860
12167
|
.query(async ({ input, ctx }) => {
|
|
11861
12168
|
const { nodeId, ...methodInput } = input;
|
|
11862
12169
|
const p = resolveProvider('webrtc-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11868,8 +12175,8 @@ function createCapRouter_webrtcSession(getProvider, createRemoteProxy) {
|
|
|
11868
12175
|
function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
11869
12176
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11870
12177
|
getCurrentSnapshot: trpc_middleware_js_1.protectedProcedure
|
|
11871
|
-
.input(
|
|
11872
|
-
.output(
|
|
12178
|
+
.input(types_141.zoneAnalyticsCapability.methods.getCurrentSnapshot.input.loose())
|
|
12179
|
+
.output(types_141.zoneAnalyticsCapability.methods.getCurrentSnapshot.output)
|
|
11873
12180
|
.query(async ({ input, ctx }) => {
|
|
11874
12181
|
const { nodeId, ...methodInput } = input;
|
|
11875
12182
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11877,8 +12184,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
11877
12184
|
return p.getCurrentSnapshot(methodInput);
|
|
11878
12185
|
}),
|
|
11879
12186
|
getCurrentSnapshotBatch: trpc_middleware_js_1.protectedProcedure
|
|
11880
|
-
.input(
|
|
11881
|
-
.output(
|
|
12187
|
+
.input(types_141.zoneAnalyticsCapability.methods.getCurrentSnapshotBatch.input.loose())
|
|
12188
|
+
.output(types_141.zoneAnalyticsCapability.methods.getCurrentSnapshotBatch.output)
|
|
11882
12189
|
.query(async ({ input, ctx }) => {
|
|
11883
12190
|
const { nodeId, ...methodInput } = input;
|
|
11884
12191
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11886,8 +12193,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
11886
12193
|
return p.getCurrentSnapshotBatch(methodInput);
|
|
11887
12194
|
}),
|
|
11888
12195
|
getZoneHistory: trpc_middleware_js_1.protectedProcedure
|
|
11889
|
-
.input(
|
|
11890
|
-
.output(
|
|
12196
|
+
.input(types_141.zoneAnalyticsCapability.methods.getZoneHistory.input.loose())
|
|
12197
|
+
.output(types_141.zoneAnalyticsCapability.methods.getZoneHistory.output)
|
|
11891
12198
|
.query(async ({ input, ctx }) => {
|
|
11892
12199
|
const { nodeId, ...methodInput } = input;
|
|
11893
12200
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11895,8 +12202,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
11895
12202
|
return p.getZoneHistory(methodInput);
|
|
11896
12203
|
}),
|
|
11897
12204
|
getCameraHistory: trpc_middleware_js_1.protectedProcedure
|
|
11898
|
-
.input(
|
|
11899
|
-
.output(
|
|
12205
|
+
.input(types_141.zoneAnalyticsCapability.methods.getCameraHistory.input.loose())
|
|
12206
|
+
.output(types_141.zoneAnalyticsCapability.methods.getCameraHistory.output)
|
|
11900
12207
|
.query(async ({ input, ctx }) => {
|
|
11901
12208
|
const { nodeId, ...methodInput } = input;
|
|
11902
12209
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11904,8 +12211,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
11904
12211
|
return p.getCameraHistory(methodInput);
|
|
11905
12212
|
}),
|
|
11906
12213
|
getUnzonedHistory: trpc_middleware_js_1.protectedProcedure
|
|
11907
|
-
.input(
|
|
11908
|
-
.output(
|
|
12214
|
+
.input(types_141.zoneAnalyticsCapability.methods.getUnzonedHistory.input.loose())
|
|
12215
|
+
.output(types_141.zoneAnalyticsCapability.methods.getUnzonedHistory.output)
|
|
11909
12216
|
.query(async ({ input, ctx }) => {
|
|
11910
12217
|
const { nodeId, ...methodInput } = input;
|
|
11911
12218
|
const p = resolveProvider('zone-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11917,8 +12224,8 @@ function createCapRouter_zoneAnalytics(getProvider, createRemoteProxy) {
|
|
|
11917
12224
|
function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
11918
12225
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11919
12226
|
listRules: trpc_middleware_js_1.protectedProcedure
|
|
11920
|
-
.input(
|
|
11921
|
-
.output(
|
|
12227
|
+
.input(types_142.zoneRulesCapability.methods.listRules.input.loose())
|
|
12228
|
+
.output(types_142.zoneRulesCapability.methods.listRules.output)
|
|
11922
12229
|
.query(async ({ input, ctx }) => {
|
|
11923
12230
|
const { nodeId, ...methodInput } = input;
|
|
11924
12231
|
const p = resolveProvider('zone-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11926,8 +12233,8 @@ function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
|
11926
12233
|
return p.listRules(methodInput);
|
|
11927
12234
|
}),
|
|
11928
12235
|
setRules: trpc_middleware_js_1.adminProcedure
|
|
11929
|
-
.input(
|
|
11930
|
-
.output(
|
|
12236
|
+
.input(types_142.zoneRulesCapability.methods.setRules.input.loose())
|
|
12237
|
+
.output(types_142.zoneRulesCapability.methods.setRules.output)
|
|
11931
12238
|
.mutation(async ({ input, ctx }) => {
|
|
11932
12239
|
const { nodeId, ...methodInput } = input;
|
|
11933
12240
|
const p = resolveProvider('zone-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11939,8 +12246,8 @@ function createCapRouter_zoneRules(getProvider, createRemoteProxy) {
|
|
|
11939
12246
|
function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
11940
12247
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
11941
12248
|
listZones: trpc_middleware_js_1.protectedProcedure
|
|
11942
|
-
.input(
|
|
11943
|
-
.output(
|
|
12249
|
+
.input(types_143.zonesCapability.methods.listZones.input.loose())
|
|
12250
|
+
.output(types_143.zonesCapability.methods.listZones.output)
|
|
11944
12251
|
.query(async ({ input, ctx }) => {
|
|
11945
12252
|
const { nodeId, ...methodInput } = input;
|
|
11946
12253
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11948,8 +12255,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
11948
12255
|
return p.listZones(methodInput);
|
|
11949
12256
|
}),
|
|
11950
12257
|
addZone: trpc_middleware_js_1.adminProcedure
|
|
11951
|
-
.input(
|
|
11952
|
-
.output(
|
|
12258
|
+
.input(types_143.zonesCapability.methods.addZone.input.loose())
|
|
12259
|
+
.output(types_143.zonesCapability.methods.addZone.output)
|
|
11953
12260
|
.mutation(async ({ input, ctx }) => {
|
|
11954
12261
|
const { nodeId, ...methodInput } = input;
|
|
11955
12262
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11957,8 +12264,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
11957
12264
|
return p.addZone(methodInput);
|
|
11958
12265
|
}),
|
|
11959
12266
|
removeZone: trpc_middleware_js_1.adminProcedure
|
|
11960
|
-
.input(
|
|
11961
|
-
.output(
|
|
12267
|
+
.input(types_143.zonesCapability.methods.removeZone.input.loose())
|
|
12268
|
+
.output(types_143.zonesCapability.methods.removeZone.output)
|
|
11962
12269
|
.mutation(async ({ input, ctx }) => {
|
|
11963
12270
|
const { nodeId, ...methodInput } = input;
|
|
11964
12271
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
@@ -11966,8 +12273,8 @@ function createCapRouter_zones(getProvider, createRemoteProxy) {
|
|
|
11966
12273
|
return p.removeZone(methodInput);
|
|
11967
12274
|
}),
|
|
11968
12275
|
updateZone: trpc_middleware_js_1.adminProcedure
|
|
11969
|
-
.input(
|
|
11970
|
-
.output(
|
|
12276
|
+
.input(types_143.zonesCapability.methods.updateZone.input.loose())
|
|
12277
|
+
.output(types_143.zonesCapability.methods.updateZone.output)
|
|
11971
12278
|
.mutation(async ({ input, ctx }) => {
|
|
11972
12279
|
const { nodeId, ...methodInput } = input;
|
|
11973
12280
|
const p = resolveProvider('zones', nodeId, () => getProvider(ctx), createRemoteProxy);
|