@camstack/server 1.2.270 → 1.2.271

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.
@@ -958,6 +958,24 @@ function createCapRouter_audioAnalyzer(getProvider, createRemoteProxy) {
958
958
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
959
959
  return p.classify(methodInput);
960
960
  }),
961
+ attachDevice: trpc_middleware_js_1.protectedProcedure
962
+ .input(types_15.audioAnalyzerCapability.methods.attachDevice.input.loose())
963
+ .output(types_15.audioAnalyzerCapability.methods.attachDevice.output)
964
+ .mutation(async ({ input, ctx }) => {
965
+ const { nodeId, ...methodInput } = input;
966
+ const p = resolveProvider('audio-analyzer', nodeId, () => getProvider(ctx), createRemoteProxy);
967
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
968
+ return p.attachDevice(methodInput);
969
+ }),
970
+ detachDevice: trpc_middleware_js_1.protectedProcedure
971
+ .input(types_15.audioAnalyzerCapability.methods.detachDevice.input.loose())
972
+ .output(types_15.audioAnalyzerCapability.methods.detachDevice.output)
973
+ .mutation(async ({ input, ctx }) => {
974
+ const { nodeId, ...methodInput } = input;
975
+ const p = resolveProvider('audio-analyzer', nodeId, () => getProvider(ctx), createRemoteProxy);
976
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
977
+ return p.detachDevice(methodInput);
978
+ }),
961
979
  isReady: trpc_middleware_js_1.protectedProcedure
962
980
  .input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
963
981
  .output(types_15.audioAnalyzerCapability.methods.isReady.output)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.270",
3
+ "version": "1.2.271",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",