@camstack/types 1.2.168 → 1.2.170
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/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/pipeline-analytics.cap.d.ts +37 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +193 -70
- package/dist/index.mjs +190 -71
- package/dist/interfaces/debug-note-archive.d.ts +72 -0
- package/dist/interfaces/event-bus.d.ts +17 -2
- package/dist/{sleep-BZtO-eFY.js → sleep-IjLtwkO5.js} +1 -0
- package/dist/{sleep-Bd-Y4RUt.mjs → sleep-uGNYCvYp.mjs} +1 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_event_category = require("./event-category-BVo6ta6_.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-IjLtwkO5.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EventCategory } from "./event-category-CnLqLOKs.mjs";
|
|
2
|
-
import { D as adminUiCapability, E as DeviceType, G as scopeKey, H as ReadinessTimeoutError, M as expandCapMethods, R as nodePin, S as DEVICE_CHILDREN_BATCH_MAX, V as ReadinessRegistry, _t as DATAPLANE_SECRET_HEADER, a as asJsonObject, b as deviceOpsCapability, bt as BaseAddon, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, wt as emitReadiness, x as viewerUiCapability, xt as normalizeAddonInitResult, yt as DisposerChain, z as readNodePin } from "./sleep-
|
|
2
|
+
import { D as adminUiCapability, E as DeviceType, G as scopeKey, H as ReadinessTimeoutError, M as expandCapMethods, R as nodePin, S as DEVICE_CHILDREN_BATCH_MAX, V as ReadinessRegistry, _t as DATAPLANE_SECRET_HEADER, a as asJsonObject, b as deviceOpsCapability, bt as BaseAddon, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, wt as emitReadiness, x as viewerUiCapability, xt as normalizeAddonInitResult, yt as DisposerChain, z as readNodePin } from "./sleep-uGNYCvYp.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
@@ -2781,6 +2781,43 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
2781
2781
|
trained: "trained";
|
|
2782
2782
|
}>;
|
|
2783
2783
|
}, z.core.$strip>, "mutation">;
|
|
2784
|
+
/**
|
|
2785
|
+
* The archived debug notes, newest first — the corpus of what operators
|
|
2786
|
+
* have asked to be checked, across tracks that no longer exist (D405).
|
|
2787
|
+
*
|
|
2788
|
+
* `setTrackFlags` writes it: a patch carrying `debug: false` still clears
|
|
2789
|
+
* the note off the track row in the same statement (D353's invariant is
|
|
2790
|
+
* untouched), but the note is APPENDED here first. That is the whole point
|
|
2791
|
+
* — before D405, finishing a review destroyed every note written during it,
|
|
2792
|
+
* and the ones that survived aged out with their tracks. This method is the
|
|
2793
|
+
* only way to read what was kept.
|
|
2794
|
+
*
|
|
2795
|
+
* `auth: 'protected'`, matching `setTrackFlags` next door and for the same
|
|
2796
|
+
* reason: the notes are written from the viewer, by an authenticated
|
|
2797
|
+
* non-admin session, and a corpus only an admin can read is a corpus the
|
|
2798
|
+
* person who wrote it cannot use. It carries operator prose about cameras
|
|
2799
|
+
* and nothing else — no media, no paths, no identities beyond a track's
|
|
2800
|
+
* own display label.
|
|
2801
|
+
*
|
|
2802
|
+
* Newest-first, capped by `limit` (default
|
|
2803
|
+
* {@link ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT}), optionally one camera. The
|
|
2804
|
+
* table itself is bounded by row count, not by age — see
|
|
2805
|
+
* {@link MAX_ARCHIVED_DEBUG_NOTES} for why an age clock would be the wrong
|
|
2806
|
+
* bound for exactly this data.
|
|
2807
|
+
*/
|
|
2808
|
+
readonly listArchivedDebugNotes: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
2809
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
2810
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2811
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2812
|
+
id: z.ZodString;
|
|
2813
|
+
note: z.ZodString;
|
|
2814
|
+
deviceId: z.ZodNumber;
|
|
2815
|
+
sourceTrackId: z.ZodString;
|
|
2816
|
+
archivedAt: z.ZodNumber;
|
|
2817
|
+
trackStartedAt: z.ZodNullable<z.ZodNumber>;
|
|
2818
|
+
trackClass: z.ZodNullable<z.ZodString>;
|
|
2819
|
+
trackLabel: z.ZodNullable<z.ZodString>;
|
|
2820
|
+
}, z.core.$strip>>>, "query">;
|
|
2784
2821
|
/**
|
|
2785
2822
|
* Durable event-store footprint for the management UI: event rows
|
|
2786
2823
|
* (motion + object + audio) counted per camera + total, plus the
|
|
@@ -5201,6 +5201,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5201
5201
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.setTrackFlags.output>;
|
|
5202
5202
|
meta: object;
|
|
5203
5203
|
}>;
|
|
5204
|
+
listArchivedDebugNotes: TRPCQueryProcedure<{
|
|
5205
|
+
input: {
|
|
5206
|
+
[x: string]: unknown;
|
|
5207
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.listArchivedDebugNotes.input>;
|
|
5208
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.listArchivedDebugNotes.output>;
|
|
5209
|
+
meta: object;
|
|
5210
|
+
}>;
|
|
5204
5211
|
getEventStoreFootprint: TRPCQueryProcedure<{
|
|
5205
5212
|
input: {
|
|
5206
5213
|
[x: string]: unknown;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1023 method paths across 129 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 368 methods carry a device reference, of which
|
|
10
10
|
* 134 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export type { HydratedFieldEntry } from './interfaces/config-ui.js';
|
|
|
40
40
|
export { collectHydratedFieldEntries, collectHydratedFieldValues, hydrateSchema, resolveHydratedFieldValue, WELL_KNOWN_TAB_MAP, WELL_KNOWN_TABS, } from './interfaces/config-ui.js';
|
|
41
41
|
export { collectSecretConfigKeys, isSecretConfigField, REDACTED_SECRET, schemaDeclaresAnyField, } from './interfaces/config-ui-secrets.js';
|
|
42
42
|
export type * from './interfaces/context.js';
|
|
43
|
+
export * from './interfaces/debug-note-archive.js';
|
|
43
44
|
export type * from './interfaces/decoder.js';
|
|
44
45
|
export type * from './interfaces/detection-addon.js';
|
|
45
46
|
export type { DeviceEvent, DeviceMetadata, DeviceState } from './interfaces/device.js';
|