@camstack/types 1.2.112 → 1.2.113

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.
@@ -42,6 +42,44 @@ declare const FaceInfoSchema: z.ZodObject<{
42
42
  suggestedMatchScore: z.ZodOptional<z.ZodNumber>;
43
43
  }, z.core.$strip>;
44
44
  export type FaceInfo = z.infer<typeof FaceInfoSchema>;
45
+ /**
46
+ * What a `listRecentFaces` page is ORDERED BY.
47
+ *
48
+ * - `timestamp` — when the face was seen. The historical (and default) order.
49
+ * - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
50
+ * cosine of the face's SUGGESTED identity. This is the "review by certainty"
51
+ * order: it puts the suggestions an operator can confirm with one tap at the
52
+ * top, and it is the reason this enum exists — a client that ranked a capped
53
+ * page client-side was ranking the newest N, never the most certain N.
54
+ *
55
+ * A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
56
+ * auto-assigned face, or a face below the suggestion band) has no certainty to
57
+ * compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
58
+ * — flipping the direction reorders the rows that HAVE a certainty and never
59
+ * floods the page with the ones that do not. `addon-post-analysis`'s
60
+ * `store/face-sort.ts` is the single implementation, tiebreaks newest-first
61
+ * then by faceId, and is what makes this a total order instead of the
62
+ * backend's NULL-collation accident.
63
+ */
64
+ declare const FaceSortFieldEnum: z.ZodEnum<{
65
+ timestamp: "timestamp";
66
+ suggestionConfidence: "suggestionConfidence";
67
+ }>;
68
+ export type FaceSortField = z.infer<typeof FaceSortFieldEnum>;
69
+ declare const FaceSortDirectionEnum: z.ZodEnum<{
70
+ asc: "asc";
71
+ desc: "desc";
72
+ }>;
73
+ export type FaceSortDirection = z.infer<typeof FaceSortDirectionEnum>;
74
+ /** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
75
+ * never leaves the server. */
76
+ declare const FaceClusterSchema: z.ZodObject<{
77
+ faceIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
78
+ representativeFaceId: z.ZodString;
79
+ size: z.ZodNumber;
80
+ cohesion: z.ZodNumber;
81
+ }, z.core.$strip>;
82
+ export type FaceCluster = z.infer<typeof FaceClusterSchema>;
45
83
  export declare const faceGalleryCapability: {
46
84
  readonly name: "face-gallery";
47
85
  readonly scope: "system";
@@ -90,6 +128,7 @@ export declare const faceGalleryCapability: {
90
128
  }, z.core.$strip>, z.ZodVoid, "mutation">;
91
129
  readonly listRecentFaces: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
92
130
  deviceId: z.ZodOptional<z.ZodNumber>;
131
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
93
132
  limit: z.ZodOptional<z.ZodNumber>;
94
133
  filter: z.ZodOptional<z.ZodEnum<{
95
134
  all: "all";
@@ -97,6 +136,16 @@ export declare const faceGalleryCapability: {
97
136
  recognized: "recognized";
98
137
  identified: "identified";
99
138
  }>>;
139
+ since: z.ZodOptional<z.ZodNumber>;
140
+ until: z.ZodOptional<z.ZodNumber>;
141
+ sortBy: z.ZodOptional<z.ZodEnum<{
142
+ timestamp: "timestamp";
143
+ suggestionConfidence: "suggestionConfidence";
144
+ }>>;
145
+ sortDirection: z.ZodOptional<z.ZodEnum<{
146
+ asc: "asc";
147
+ desc: "desc";
148
+ }>>;
100
149
  includeCrops: z.ZodOptional<z.ZodBoolean>;
101
150
  }, z.core.$strip>>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
102
151
  faceId: z.ZodString;
@@ -185,7 +234,9 @@ export declare const faceGalleryCapability: {
185
234
  readonly suggestFaceClusters: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
186
235
  threshold: z.ZodOptional<z.ZodNumber>;
187
236
  minClusterSize: z.ZodOptional<z.ZodNumber>;
237
+ maxClusters: z.ZodOptional<z.ZodNumber>;
188
238
  limit: z.ZodOptional<z.ZodNumber>;
239
+ maxFacesScanned: z.ZodOptional<z.ZodNumber>;
189
240
  }, z.core.$strip>>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
190
241
  faceIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
191
242
  representativeFaceId: z.ZodString;
@@ -195,4 +246,13 @@ export declare const faceGalleryCapability: {
195
246
  };
196
247
  };
197
248
  export type IFaceGalleryProvider = InferProvider<typeof faceGalleryCapability>;
249
+ /**
250
+ * The inputs, as the PROVIDER sees them.
251
+ *
252
+ * Named so an implementation can annotate its methods without re-typing the
253
+ * shape (`z.infer`, never a hand copy — a duplicated input shape is how a new
254
+ * field arrives at the router and is dropped by the provider).
255
+ */
256
+ export type ListRecentFacesInput = z.infer<typeof faceGalleryCapability.methods.listRecentFaces.input>;
257
+ export type SuggestFaceClustersInput = z.infer<typeof faceGalleryCapability.methods.suggestFaceClusters.input>;
198
258
  export {};
@@ -142,7 +142,7 @@ export { type DoorbellPressEvent, DoorbellPressEventSchema, type DoorbellStatus,
142
142
  export { type EnumSensorDateTimeFormat, EnumSensorDateTimeFormatSchema, type EnumSensorStatus, EnumSensorStatusSchema, enumSensorCapability, type IEnumSensorProvider, } from './enum-sensor.cap.js';
143
143
  export { type EventEmitterStatus, EventEmitterStatusSchema, type EventFire, EventFireSchema, eventEmitterCapability, type IEventEmitterProvider, } from './event-emitter.cap.js';
144
144
  export { EventItemSchema, eventsCapability, type IEventsProvider } from './events.cap.js';
145
- export { type FaceInfo, faceGalleryCapability, type Identity, type IdentitySampleInfo, type IFaceGalleryProvider, } from './face-gallery.cap.js';
145
+ export { type FaceCluster, type FaceInfo, type FaceSortDirection, type FaceSortField, faceGalleryCapability, type Identity, type IdentitySampleInfo, type IFaceGalleryProvider, type ListRecentFacesInput, type SuggestFaceClustersInput, } from './face-gallery.cap.js';
146
146
  export { type FanControlStatus, FanControlStatusSchema, type FanDirection, FanDirectionSchema, fanControlCapability, type IFanControlProvider, } from './fan-control.cap.js';
147
147
  export { type FeatureProbeStatus, FeatureProbeStatusSchema, featureProbeCapability, type IFeatureProbeProvider, } from './feature-probe.cap.js';
148
148
  export { type FloodStatus, FloodStatusSchema, floodCapability, type IFloodProvider, } from './flood.cap.js';
@@ -189,7 +189,7 @@ export { type CamStreamDescriptor, CamStreamDescriptorSchema, type IStreamCatalo
189
189
  export { type IStreamParamsProvider, type StreamParamsOptions, StreamParamsOptionsSchema, type StreamParamsStatus, StreamParamsStatusSchema, type StreamProfile, StreamProfileConfigSchema, StreamProfileOptionsSchema, type StreamProfilePatch, StreamProfilePatchSchema, StreamProfileSchema, streamParamsCapability, } from './stream-params.cap.js';
190
190
  export { buildStreamParamsConfigSchema, parseStreamParamsFormPatch, STREAM_PROFILE_META, type StreamProfileMeta, } from './stream-params-config-schema.js';
191
191
  export { type ISwitchProvider, type SwitchStatus, SwitchStatusSchema, switchCapability, } from './switch.cap.js';
192
- export { FeatureManifestSchema, HealthStatusSchema, type ISystemProvider, NetworkAddressSchema, type SetSiteLocationInput, SetSiteLocationInputSchema, type SiteLocation, SiteLocationSchema, type SiteLocationSource, SiteLocationSourceSchema, type SiteLocationStatus, SiteLocationStatusSchema, systemCapability, } from './system.cap.js';
192
+ export { type DiagnosticId, DiagnosticIdSchema, type DiagnosticWindow, type DiagnosticWindowPatch, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, FeatureManifestSchema, type GetLoggingSettingsInput, GetLoggingSettingsInputSchema, HealthStatusSchema, type ISystemProvider, type LoggingEffective, LoggingEffectiveSchema, type LoggingExplicit, LoggingExplicitSchema, type LoggingLevelLayer, LoggingLevelLayerSchema, type LoggingLevelSource, LoggingLevelSourceSchema, type LoggingScopeKind, LoggingScopeKindSchema, type LoggingSettingsPatch, LoggingSettingsPatchSchema, type LoggingSettingsState, LoggingSettingsStateSchema, NetworkAddressSchema, type RequestCensusGroup, RequestCensusGroupSchema, type RequestCensusProcedure, RequestCensusProcedureSchema, type RequestCensusSnapshot, RequestCensusSnapshotSchema, type RequestCensusStatus, RequestCensusStatusSchema, type SetLoggingSettingsInput, SetLoggingSettingsInputSchema, type SetSiteLocationInput, SetSiteLocationInputSchema, type SiteLocation, SiteLocationSchema, type SiteLocationSource, SiteLocationSourceSchema, type SiteLocationStatus, SiteLocationStatusSchema, systemCapability, } from './system.cap.js';
193
193
  export { type ITamperProvider, type TamperStatus, TamperStatusSchema, tamperCapability, } from './tamper.cap.js';
194
194
  export { type ITemperatureSensorProvider, type TemperatureSensorStatus, TemperatureSensorStatusSchema, temperatureSensorCapability, } from './temperature-sensor.cap.js';
195
195
  export { type IToastProvider, ToastSchema, toastCapability } from './toast.cap.js';
@@ -327,6 +327,12 @@ export declare const recordingCapability: {
327
327
  triggers: z.ZodOptional<z.ZodObject<{
328
328
  motion: z.ZodOptional<z.ZodBoolean>;
329
329
  audioThresholdDbfs: z.ZodOptional<z.ZodNumber>;
330
+ objectClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
331
+ person: "person";
332
+ vehicle: "vehicle";
333
+ animal: "animal";
334
+ }>>>;
335
+ sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
330
336
  }, z.core.$strip>>;
331
337
  preBufferSec: z.ZodOptional<z.ZodNumber>;
332
338
  postBufferSec: z.ZodOptional<z.ZodNumber>;
@@ -422,6 +428,12 @@ export declare const recordingCapability: {
422
428
  triggers: z.ZodOptional<z.ZodObject<{
423
429
  motion: z.ZodOptional<z.ZodBoolean>;
424
430
  audioThresholdDbfs: z.ZodOptional<z.ZodNumber>;
431
+ objectClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
432
+ person: "person";
433
+ vehicle: "vehicle";
434
+ animal: "animal";
435
+ }>>>;
436
+ sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
425
437
  }, z.core.$strip>>;
426
438
  preBufferSec: z.ZodOptional<z.ZodNumber>;
427
439
  postBufferSec: z.ZodOptional<z.ZodNumber>;
@@ -455,6 +467,12 @@ export declare const recordingCapability: {
455
467
  triggers: z.ZodOptional<z.ZodObject<{
456
468
  motion: z.ZodOptional<z.ZodBoolean>;
457
469
  audioThresholdDbfs: z.ZodOptional<z.ZodNumber>;
470
+ objectClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
471
+ person: "person";
472
+ vehicle: "vehicle";
473
+ animal: "animal";
474
+ }>>>;
475
+ sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
458
476
  }, z.core.$strip>>;
459
477
  preBufferSec: z.ZodOptional<z.ZodNumber>;
460
478
  postBufferSec: z.ZodOptional<z.ZodNumber>;
@@ -102,6 +102,321 @@ declare const SetSiteLocationInputSchema: z.ZodNullable<z.ZodObject<{
102
102
  latitude: z.ZodNumber;
103
103
  longitude: z.ZodNumber;
104
104
  }, z.core.$strip>>;
105
+ /**
106
+ * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
107
+ * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
108
+ * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
109
+ * already prints - never a token, never an `Authorization` header.
110
+ */
111
+ declare const RequestCensusGroupSchema: z.ZodObject<{
112
+ procedure: z.ZodString;
113
+ userAgent: z.ZodString;
114
+ ip: z.ZodString;
115
+ principal: z.ZodString;
116
+ calls: z.ZodNumber;
117
+ perMin: z.ZodNumber;
118
+ }, z.core.$strip>;
119
+ /**
120
+ * A procedure's TOTAL over the window, across every caller.
121
+ *
122
+ * This block, not the group list, is what answers "did these calls arrive over
123
+ * HTTP at all". A total far BELOW what a store-side census counted over the
124
+ * same window excludes the HTTP plane, which is a result, not a failure.
125
+ */
126
+ declare const RequestCensusProcedureSchema: z.ZodObject<{
127
+ procedure: z.ZodString;
128
+ calls: z.ZodNumber;
129
+ perMin: z.ZodNumber;
130
+ }, z.core.$strip>;
131
+ /** What one armed window measured. Mirrors `HttpRequestCensus.snapshot()`. */
132
+ declare const RequestCensusSnapshotSchema: z.ZodObject<{
133
+ armed: z.ZodBoolean;
134
+ elapsedMs: z.ZodNumber;
135
+ windowMs: z.ZodNumber;
136
+ armedUntilMs: z.ZodNumber;
137
+ httpRequests: z.ZodNumber;
138
+ batchedRequests: z.ZodNumber;
139
+ procedureCalls: z.ZodNumber;
140
+ wsConnections: z.ZodNumber;
141
+ distinctGroups: z.ZodNumber;
142
+ unattributedCalls: z.ZodNumber;
143
+ procedures: z.ZodReadonly<z.ZodArray<z.ZodObject<{
144
+ procedure: z.ZodString;
145
+ calls: z.ZodNumber;
146
+ perMin: z.ZodNumber;
147
+ }, z.core.$strip>>>;
148
+ groups: z.ZodReadonly<z.ZodArray<z.ZodObject<{
149
+ procedure: z.ZodString;
150
+ userAgent: z.ZodString;
151
+ ip: z.ZodString;
152
+ principal: z.ZodString;
153
+ calls: z.ZodNumber;
154
+ perMin: z.ZodNumber;
155
+ }, z.core.$strip>>>;
156
+ }, z.core.$strip>;
157
+ /**
158
+ * The census as an operator sees it.
159
+ *
160
+ * `persisted` is the honest answer to "will this survive the restart I am
161
+ * about to do": the arm deadline is written to `system-settings` so a window
162
+ * armed now can measure the NEXT boot, and a write that failed must not look
163
+ * like one that succeeded.
164
+ */
165
+ declare const RequestCensusStatusSchema: z.ZodObject<{
166
+ armed: z.ZodBoolean;
167
+ elapsedMs: z.ZodNumber;
168
+ windowMs: z.ZodNumber;
169
+ armedUntilMs: z.ZodNumber;
170
+ httpRequests: z.ZodNumber;
171
+ batchedRequests: z.ZodNumber;
172
+ procedureCalls: z.ZodNumber;
173
+ wsConnections: z.ZodNumber;
174
+ distinctGroups: z.ZodNumber;
175
+ unattributedCalls: z.ZodNumber;
176
+ procedures: z.ZodReadonly<z.ZodArray<z.ZodObject<{
177
+ procedure: z.ZodString;
178
+ calls: z.ZodNumber;
179
+ perMin: z.ZodNumber;
180
+ }, z.core.$strip>>>;
181
+ groups: z.ZodReadonly<z.ZodArray<z.ZodObject<{
182
+ procedure: z.ZodString;
183
+ userAgent: z.ZodString;
184
+ ip: z.ZodString;
185
+ principal: z.ZodString;
186
+ calls: z.ZodNumber;
187
+ perMin: z.ZodNumber;
188
+ }, z.core.$strip>>>;
189
+ persisted: z.ZodBoolean;
190
+ }, z.core.$strip>;
191
+ /** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
192
+ declare const LogLevelSchema: z.ZodEnum<{
193
+ error: "error";
194
+ debug: "debug";
195
+ info: "info";
196
+ warn: "warn";
197
+ }>;
198
+ /**
199
+ * The diagnostics that can be ARMED for a window. Exactly one today.
200
+ *
201
+ * A diagnostic is anything whose cost is only worth paying while a question is
202
+ * open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
203
+ */
204
+ declare const DiagnosticIdSchema: z.ZodEnum<{
205
+ "request-census": "request-census";
206
+ }>;
207
+ /**
208
+ * The layers of the level hierarchy, general → specific. The most specific
209
+ * layer that carries an explicit value wins.
210
+ *
211
+ * `component` is DECLARED and not yet resolvable: the per-component channels
212
+ * are a later slice of the same plan, and a `levelSource` enum that has to
213
+ * grow later would force every consumer of this document to change with it.
214
+ * Nothing returns `component` today.
215
+ */
216
+ declare const LoggingScopeKindSchema: z.ZodEnum<{
217
+ node: "node";
218
+ cluster: "cluster";
219
+ component: "component";
220
+ }>;
221
+ /** Where an effective level came from. `default` = nothing is set anywhere. */
222
+ declare const LoggingLevelSourceSchema: z.ZodEnum<{
223
+ default: "default";
224
+ node: "node";
225
+ cluster: "cluster";
226
+ component: "component";
227
+ }>;
228
+ /**
229
+ * One layer of the hierarchy as it actually STANDS.
230
+ *
231
+ * `level: null` is the whole reason this array is returned: it is the
232
+ * difference between "this node is at `info` because I decided it" and
233
+ * "...because it inherits". An operator who clears an override believing they
234
+ * are clearing an inherited value has been handed the same defect as the two
235
+ * contradicting knobs this document exists to remove, moved one floor up.
236
+ */
237
+ declare const LoggingLevelLayerSchema: z.ZodObject<{
238
+ scope: z.ZodEnum<{
239
+ node: "node";
240
+ cluster: "cluster";
241
+ component: "component";
242
+ }>;
243
+ nodeId: z.ZodNullable<z.ZodString>;
244
+ level: z.ZodNullable<z.ZodEnum<{
245
+ error: "error";
246
+ debug: "debug";
247
+ info: "info";
248
+ warn: "warn";
249
+ }>>;
250
+ }, z.core.$strip>;
251
+ /** What a line is judged against, and WHICH layer decided it. */
252
+ declare const LoggingEffectiveSchema: z.ZodObject<{
253
+ level: z.ZodEnum<{
254
+ error: "error";
255
+ debug: "debug";
256
+ info: "info";
257
+ warn: "warn";
258
+ }>;
259
+ levelSource: z.ZodEnum<{
260
+ default: "default";
261
+ node: "node";
262
+ cluster: "cluster";
263
+ component: "component";
264
+ }>;
265
+ }, z.core.$strip>;
266
+ /** Every layer, general → specific. Never collapsed into the effective value. */
267
+ declare const LoggingExplicitSchema: z.ZodObject<{
268
+ layers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
269
+ scope: z.ZodEnum<{
270
+ node: "node";
271
+ cluster: "cluster";
272
+ component: "component";
273
+ }>;
274
+ nodeId: z.ZodNullable<z.ZodString>;
275
+ level: z.ZodNullable<z.ZodEnum<{
276
+ error: "error";
277
+ debug: "debug";
278
+ info: "info";
279
+ warn: "warn";
280
+ }>>;
281
+ }, z.core.$strip>>>;
282
+ }, z.core.$strip>;
283
+ /**
284
+ * An armed diagnostic, with its DEADLINE.
285
+ *
286
+ * The shape of ADR-0244: what is stored is a deadline and never a flag, so a
287
+ * diagnostic somebody forgot expires by itself, and a boot-window measurement
288
+ * survives the restart it exists to measure. `remainingMs` is 0 whenever
289
+ * `armed` is false — a window is never reported as slightly expired.
290
+ */
291
+ declare const DiagnosticWindowSchema: z.ZodObject<{
292
+ id: z.ZodEnum<{
293
+ "request-census": "request-census";
294
+ }>;
295
+ armed: z.ZodBoolean;
296
+ armedUntilMs: z.ZodNumber;
297
+ remainingMs: z.ZodNumber;
298
+ persisted: z.ZodBoolean;
299
+ }, z.core.$strip>;
300
+ /**
301
+ * `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
302
+ * server — there is no maximum here on purpose: a bound repeated in a schema
303
+ * is a second knob that disagrees with the first the day one of them moves.
304
+ */
305
+ declare const DiagnosticWindowPatchSchema: z.ZodObject<{
306
+ id: z.ZodEnum<{
307
+ "request-census": "request-census";
308
+ }>;
309
+ armMs: z.ZodNumber;
310
+ reportEveryMs: z.ZodOptional<z.ZodNumber>;
311
+ }, z.core.$strip>;
312
+ /**
313
+ * A PATCH, and patches MERGE.
314
+ *
315
+ * A field absent from the patch is left exactly as it was — arming a
316
+ * diagnostic never resets a level, and setting a level never disarms a window.
317
+ * The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
318
+ * `setAll` already merges, and rebuilding the object is how an absent field
319
+ * turns into an erased one.
320
+ */
321
+ declare const LoggingSettingsPatchSchema: z.ZodObject<{
322
+ level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
323
+ error: "error";
324
+ debug: "debug";
325
+ info: "info";
326
+ warn: "warn";
327
+ }>>>;
328
+ diagnostics: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
329
+ id: z.ZodEnum<{
330
+ "request-census": "request-census";
331
+ }>;
332
+ armMs: z.ZodNumber;
333
+ reportEveryMs: z.ZodOptional<z.ZodNumber>;
334
+ }, z.core.$strip>>>>;
335
+ }, z.core.$strip>;
336
+ /**
337
+ * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
338
+ *
339
+ * Deliberately NOT called `nodeId`: that key is reserved on every cap method
340
+ * input — the generated router strips it and uses it to resolve the PROVIDER
341
+ * on that node (`resolveProvider(cap, nodeId, …)`). A document about
342
+ * `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
343
+ * by an agent that holds no cluster document at all. The hub is the single
344
+ * authority over the whole hierarchy and answers for every layer, so the
345
+ * layer selector needs a name the transport does not already own.
346
+ */
347
+ declare const GetLoggingSettingsInputSchema: z.ZodObject<{
348
+ scopeNodeId: z.ZodOptional<z.ZodString>;
349
+ }, z.core.$strip>;
350
+ declare const SetLoggingSettingsInputSchema: z.ZodObject<{
351
+ scopeNodeId: z.ZodOptional<z.ZodString>;
352
+ patch: z.ZodObject<{
353
+ level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
354
+ error: "error";
355
+ debug: "debug";
356
+ info: "info";
357
+ warn: "warn";
358
+ }>>>;
359
+ diagnostics: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
360
+ id: z.ZodEnum<{
361
+ "request-census": "request-census";
362
+ }>;
363
+ armMs: z.ZodNumber;
364
+ reportEveryMs: z.ZodOptional<z.ZodNumber>;
365
+ }, z.core.$strip>>>>;
366
+ }, z.core.$strip>;
367
+ }, z.core.$strip>;
368
+ /**
369
+ * The whole document, as read and as returned after every write.
370
+ *
371
+ * `persisted: false` means the settings store could not be read or written.
372
+ * The in-memory mirror still governs behaviour and is unchanged by the
373
+ * failure — a read that fails neither switches a level nor disarms a window
374
+ * (D49) — but the operator is told that what they are looking at would not
375
+ * survive a restart.
376
+ */
377
+ declare const LoggingSettingsStateSchema: z.ZodObject<{
378
+ scopeNodeId: z.ZodNullable<z.ZodString>;
379
+ effective: z.ZodObject<{
380
+ level: z.ZodEnum<{
381
+ error: "error";
382
+ debug: "debug";
383
+ info: "info";
384
+ warn: "warn";
385
+ }>;
386
+ levelSource: z.ZodEnum<{
387
+ default: "default";
388
+ node: "node";
389
+ cluster: "cluster";
390
+ component: "component";
391
+ }>;
392
+ }, z.core.$strip>;
393
+ explicit: z.ZodObject<{
394
+ layers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
395
+ scope: z.ZodEnum<{
396
+ node: "node";
397
+ cluster: "cluster";
398
+ component: "component";
399
+ }>;
400
+ nodeId: z.ZodNullable<z.ZodString>;
401
+ level: z.ZodNullable<z.ZodEnum<{
402
+ error: "error";
403
+ debug: "debug";
404
+ info: "info";
405
+ warn: "warn";
406
+ }>>;
407
+ }, z.core.$strip>>>;
408
+ }, z.core.$strip>;
409
+ activeWindows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
410
+ id: z.ZodEnum<{
411
+ "request-census": "request-census";
412
+ }>;
413
+ armed: z.ZodBoolean;
414
+ armedUntilMs: z.ZodNumber;
415
+ remainingMs: z.ZodNumber;
416
+ persisted: z.ZodBoolean;
417
+ }, z.core.$strip>>>;
418
+ persisted: z.ZodBoolean;
419
+ }, z.core.$strip>;
105
420
  export declare const systemCapability: {
106
421
  readonly name: "system";
107
422
  readonly scope: "system";
@@ -204,6 +519,163 @@ export declare const systemCapability: {
204
519
  derivationAttemptedAt: z.ZodNullable<z.ZodNumber>;
205
520
  derivationError: z.ZodNullable<z.ZodString>;
206
521
  }, z.core.$strip>, "mutation">;
522
+ /**
523
+ * Read the HTTP request census - which caller, from which address, with
524
+ * which user-agent, invoked which tRPC procedure, and how often.
525
+ *
526
+ * Reading NEVER re-arms: re-arming clears the counts, which would throw
527
+ * away exactly the numbers being asked for. A closed window may be read as
528
+ * many times as the operator likes and always describes the same window.
529
+ *
530
+ * Admin-only: the rows carry source addresses and principal names.
531
+ */
532
+ readonly getRequestCensus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
533
+ armed: z.ZodBoolean;
534
+ elapsedMs: z.ZodNumber;
535
+ windowMs: z.ZodNumber;
536
+ armedUntilMs: z.ZodNumber;
537
+ httpRequests: z.ZodNumber;
538
+ batchedRequests: z.ZodNumber;
539
+ procedureCalls: z.ZodNumber;
540
+ wsConnections: z.ZodNumber;
541
+ distinctGroups: z.ZodNumber;
542
+ unattributedCalls: z.ZodNumber;
543
+ procedures: z.ZodReadonly<z.ZodArray<z.ZodObject<{
544
+ procedure: z.ZodString;
545
+ calls: z.ZodNumber;
546
+ perMin: z.ZodNumber;
547
+ }, z.core.$strip>>>;
548
+ groups: z.ZodReadonly<z.ZodArray<z.ZodObject<{
549
+ procedure: z.ZodString;
550
+ userAgent: z.ZodString;
551
+ ip: z.ZodString;
552
+ principal: z.ZodString;
553
+ calls: z.ZodNumber;
554
+ perMin: z.ZodNumber;
555
+ }, z.core.$strip>>>;
556
+ persisted: z.ZodBoolean;
557
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
558
+ /**
559
+ * The logging settings document — levels and armed diagnostics — resolved
560
+ * for `nodeId`, or for the cluster when `nodeId` is absent.
561
+ *
562
+ * Returns BOTH `effective` and `explicit`. See
563
+ * {@link LoggingLevelLayerSchema} for why collapsing them is the defect.
564
+ */
565
+ readonly getLoggingSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
566
+ scopeNodeId: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strip>, z.ZodObject<{
568
+ scopeNodeId: z.ZodNullable<z.ZodString>;
569
+ effective: z.ZodObject<{
570
+ level: z.ZodEnum<{
571
+ error: "error";
572
+ debug: "debug";
573
+ info: "info";
574
+ warn: "warn";
575
+ }>;
576
+ levelSource: z.ZodEnum<{
577
+ default: "default";
578
+ node: "node";
579
+ cluster: "cluster";
580
+ component: "component";
581
+ }>;
582
+ }, z.core.$strip>;
583
+ explicit: z.ZodObject<{
584
+ layers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
585
+ scope: z.ZodEnum<{
586
+ node: "node";
587
+ cluster: "cluster";
588
+ component: "component";
589
+ }>;
590
+ nodeId: z.ZodNullable<z.ZodString>;
591
+ level: z.ZodNullable<z.ZodEnum<{
592
+ error: "error";
593
+ debug: "debug";
594
+ info: "info";
595
+ warn: "warn";
596
+ }>>;
597
+ }, z.core.$strip>>>;
598
+ }, z.core.$strip>;
599
+ activeWindows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
600
+ id: z.ZodEnum<{
601
+ "request-census": "request-census";
602
+ }>;
603
+ armed: z.ZodBoolean;
604
+ armedUntilMs: z.ZodNumber;
605
+ remainingMs: z.ZodNumber;
606
+ persisted: z.ZodBoolean;
607
+ }, z.core.$strip>>>;
608
+ persisted: z.ZodBoolean;
609
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
610
+ /**
611
+ * Write the logging settings document. The ONLY write authority over log
612
+ * levels and diagnostic windows — arming the request census went through
613
+ * `system.setRequestCensus` until 2026-08-27 and no longer does, because
614
+ * two writes that disagree about the same window is exactly the defect
615
+ * this document exists to remove (D245).
616
+ *
617
+ * The patch MERGES: see {@link LoggingSettingsPatchSchema}.
618
+ */
619
+ readonly setLoggingSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
620
+ scopeNodeId: z.ZodOptional<z.ZodString>;
621
+ patch: z.ZodObject<{
622
+ level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
623
+ error: "error";
624
+ debug: "debug";
625
+ info: "info";
626
+ warn: "warn";
627
+ }>>>;
628
+ diagnostics: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
629
+ id: z.ZodEnum<{
630
+ "request-census": "request-census";
631
+ }>;
632
+ armMs: z.ZodNumber;
633
+ reportEveryMs: z.ZodOptional<z.ZodNumber>;
634
+ }, z.core.$strip>>>>;
635
+ }, z.core.$strip>;
636
+ }, z.core.$strip>, z.ZodObject<{
637
+ scopeNodeId: z.ZodNullable<z.ZodString>;
638
+ effective: z.ZodObject<{
639
+ level: z.ZodEnum<{
640
+ error: "error";
641
+ debug: "debug";
642
+ info: "info";
643
+ warn: "warn";
644
+ }>;
645
+ levelSource: z.ZodEnum<{
646
+ default: "default";
647
+ node: "node";
648
+ cluster: "cluster";
649
+ component: "component";
650
+ }>;
651
+ }, z.core.$strip>;
652
+ explicit: z.ZodObject<{
653
+ layers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
654
+ scope: z.ZodEnum<{
655
+ node: "node";
656
+ cluster: "cluster";
657
+ component: "component";
658
+ }>;
659
+ nodeId: z.ZodNullable<z.ZodString>;
660
+ level: z.ZodNullable<z.ZodEnum<{
661
+ error: "error";
662
+ debug: "debug";
663
+ info: "info";
664
+ warn: "warn";
665
+ }>>;
666
+ }, z.core.$strip>>>;
667
+ }, z.core.$strip>;
668
+ activeWindows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
669
+ id: z.ZodEnum<{
670
+ "request-census": "request-census";
671
+ }>;
672
+ armed: z.ZodBoolean;
673
+ armedUntilMs: z.ZodNumber;
674
+ remainingMs: z.ZodNumber;
675
+ persisted: z.ZodBoolean;
676
+ }, z.core.$strip>>>;
677
+ persisted: z.ZodBoolean;
678
+ }, z.core.$strip>, "mutation">;
207
679
  };
208
680
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
209
681
  readonly mount: {
@@ -211,8 +683,24 @@ export declare const systemCapability: {
211
683
  };
212
684
  };
213
685
  export type ISystemProvider = InferProvider<typeof systemCapability>;
686
+ export type RequestCensusGroup = z.infer<typeof RequestCensusGroupSchema>;
687
+ export type RequestCensusProcedure = z.infer<typeof RequestCensusProcedureSchema>;
688
+ export type RequestCensusSnapshot = z.infer<typeof RequestCensusSnapshotSchema>;
689
+ export type RequestCensusStatus = z.infer<typeof RequestCensusStatusSchema>;
690
+ export type DiagnosticId = z.infer<typeof DiagnosticIdSchema>;
691
+ export type DiagnosticWindow = z.infer<typeof DiagnosticWindowSchema>;
692
+ export type DiagnosticWindowPatch = z.infer<typeof DiagnosticWindowPatchSchema>;
693
+ export type GetLoggingSettingsInput = z.infer<typeof GetLoggingSettingsInputSchema>;
694
+ export type LoggingEffective = z.infer<typeof LoggingEffectiveSchema>;
695
+ export type LoggingExplicit = z.infer<typeof LoggingExplicitSchema>;
696
+ export type LoggingLevelLayer = z.infer<typeof LoggingLevelLayerSchema>;
697
+ export type LoggingLevelSource = z.infer<typeof LoggingLevelSourceSchema>;
698
+ export type LoggingScopeKind = z.infer<typeof LoggingScopeKindSchema>;
699
+ export type LoggingSettingsPatch = z.infer<typeof LoggingSettingsPatchSchema>;
700
+ export type LoggingSettingsState = z.infer<typeof LoggingSettingsStateSchema>;
701
+ export type SetLoggingSettingsInput = z.infer<typeof SetLoggingSettingsInputSchema>;
214
702
  export type SiteLocation = z.infer<typeof SiteLocationSchema>;
215
703
  export type SiteLocationSource = z.infer<typeof SiteLocationSourceSchema>;
216
704
  export type SiteLocationStatus = z.infer<typeof SiteLocationStatusSchema>;
217
705
  export type SetSiteLocationInput = z.infer<typeof SetSiteLocationInputSchema>;
218
- export { FeatureManifestSchema, HealthStatusSchema, NetworkAddressSchema, SetSiteLocationInputSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, };
706
+ export { DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, FeatureManifestSchema, GetLoggingSettingsInputSchema, HealthStatusSchema, LogLevelSchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, NetworkAddressSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, };
@@ -1,3 +1,4 @@
1
1
  export * from './coco-classmap.js';
2
+ export * from './sensor-active-state.js';
2
3
  export * from './audio-classmap.js';
3
4
  export * from './event-taxonomy.js';