@camstack/server 1.2.8 → 1.2.9

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.
@@ -172,6 +172,12 @@ function createCapRouterServices(deps) {
172
172
  badRequest: (message) => {
173
173
  throw new server_1.TRPCError({ code: 'BAD_REQUEST', message });
174
174
  },
175
+ // D-1 caller-identity injection: a `caller: 'required'` method whose
176
+ // context carries no authenticated user fails closed — the builder
177
+ // never fabricates an identity.
178
+ unauthorized: (message) => {
179
+ throw new server_1.TRPCError({ code: 'UNAUTHORIZED', message });
180
+ },
175
181
  };
176
182
  }
177
183
  /**
@@ -2,7 +2,7 @@
2
2
  // AUTO-GENERATED by scripts/generate-cap-mounts.ts — DO NOT EDIT
3
3
  // Re-run: npx tsx scripts/generate-cap-mounts.ts
4
4
  //
5
- // Mounted: 139 Skipped (legacy): 3
5
+ // Mounted: 140 Skipped (legacy): 3
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LEGACY_SHAPE_SKIP = void 0;
8
8
  exports.mountAllCaps = mountAllCaps;
@@ -321,6 +321,7 @@ function mountAllCaps(services) {
321
321
  discoverTargets: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'discoverTargets'),
322
322
  };
323
323
  }, remoteCapProxy),
324
+ notificationRules: (0, generated_cap_routers_js_1.createCapRouter_notificationRules)((_ctx) => reg?.getSingleton('notification-rules') ?? null, remoteCapProxy),
324
325
  notifier: (0, generated_cap_routers_js_1.createCapRouter_notifier)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'notifier'), remoteCapProxy),
325
326
  numericSensor: (0, generated_cap_routers_js_1.createCapRouter_numericSensor)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'numeric-sensor'), remoteCapProxy),
326
327
  oauthIntegration: (0, generated_cap_routers_js_1.createCapRouter_oauthIntegration)((_ctx, addonId) => {