@camstack/types 1.2.38 → 1.2.39
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 +10 -2
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +31 -6
- package/dist/index.mjs +31 -6
- package/dist/{sleep-BFsQ039l.mjs → sleep-CXimb854.mjs} +1 -0
- package/dist/{sleep-ByC1qJu7.js → sleep-DTce7-ch.js} +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-BE4PDZ_3.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-DTce7-ch.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/collection-array-methods.ts
|
|
6
6
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EventCategory } from "./event-category-41fKf-q9.mjs";
|
|
2
|
-
import { B as scopeKey, C as DeviceType, F as readNodePin, I as ReadinessRegistry, L as ReadinessTimeoutError, O as expandCapMethods, P as nodePin, a as asJsonObject, d as DEVICE_SCOPED_CAPS, f as isDeviceScopedCap, ft as DATAPLANE_SECRET_HEADER, ht as normalizeAddonInitResult, mt as BaseAddon, p as createDeviceProxy, pt as DisposerChain, s as asString, t as sleep, u as parseJsonUnknown, v as deviceOpsCapability, vt as emitReadiness, w as adminUiCapability, y as viewerUiCapability } from "./sleep-
|
|
2
|
+
import { B as scopeKey, C as DeviceType, F as readNodePin, I as ReadinessRegistry, L as ReadinessTimeoutError, O as expandCapMethods, P as nodePin, a as asJsonObject, d as DEVICE_SCOPED_CAPS, f as isDeviceScopedCap, ft as DATAPLANE_SECRET_HEADER, ht as normalizeAddonInitResult, mt as BaseAddon, p as createDeviceProxy, pt as DisposerChain, s as asString, t as sleep, u as parseJsonUnknown, v as deviceOpsCapability, vt as emitReadiness, w as adminUiCapability, y as viewerUiCapability } from "./sleep-CXimb854.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/collection-array-methods.ts
|
|
5
5
|
/**
|
|
@@ -1668,13 +1668,21 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
1668
1668
|
square: z.ZodOptional<z.ZodBoolean>;
|
|
1669
1669
|
maxTracks: z.ZodOptional<z.ZodNumber>;
|
|
1670
1670
|
}, z.core.$strip>, z.ZodObject<{
|
|
1671
|
+
started: z.ZodBoolean;
|
|
1672
|
+
alreadyRunning: z.ZodBoolean;
|
|
1673
|
+
}, z.core.$strip>, "mutation">;
|
|
1674
|
+
readonly getObjectEmbeddingRebuildStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
1675
|
+
running: z.ZodBoolean;
|
|
1671
1676
|
scanned: z.ZodNumber;
|
|
1672
1677
|
rebuilt: z.ZodNumber;
|
|
1673
1678
|
missingKeyFrame: z.ZodNumber;
|
|
1674
1679
|
missingBbox: z.ZodNumber;
|
|
1675
1680
|
failed: z.ZodNumber;
|
|
1676
|
-
complete: z.ZodBoolean
|
|
1677
|
-
|
|
1681
|
+
complete: z.ZodNullable<z.ZodBoolean>;
|
|
1682
|
+
startedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
1683
|
+
finishedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
1684
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1685
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1678
1686
|
};
|
|
1679
1687
|
readonly events: {
|
|
1680
1688
|
/**
|
|
@@ -4826,6 +4826,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4826
4826
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.rebuildObjectEmbeddings.output>;
|
|
4827
4827
|
meta: object;
|
|
4828
4828
|
}>;
|
|
4829
|
+
getObjectEmbeddingRebuildStatus: TRPCQueryProcedure<{
|
|
4830
|
+
input: {
|
|
4831
|
+
nodeId?: string | undefined;
|
|
4832
|
+
} | undefined;
|
|
4833
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getObjectEmbeddingRebuildStatus.output>;
|
|
4834
|
+
meta: object;
|
|
4835
|
+
}>;
|
|
4829
4836
|
}>>;
|
|
4830
4837
|
pipelineExecutor: TRPCBuiltRouter<{
|
|
4831
4838
|
ctx: TrpcContext;
|
|
@@ -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: 866 method paths across 120 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_event_category = require("./event-category-BE4PDZ_3.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-DTce7-ch.js");
|
|
4
4
|
const require_enums = require("./enums.js");
|
|
5
5
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
6
6
|
let zod = require("zod");
|
|
@@ -11741,7 +11741,22 @@ var RebuildObjectEmbeddingsInput = zod.z.object({
|
|
|
11741
11741
|
* means the same thing.
|
|
11742
11742
|
*/
|
|
11743
11743
|
var WipeObjectEmbeddingsResultSchema = zod.z.object({ deleted: zod.z.number() });
|
|
11744
|
+
/**
|
|
11745
|
+
* Acknowledgement that a rebuild STARTED.
|
|
11746
|
+
*
|
|
11747
|
+
* The pass costs ~1s per track — 45 minutes for a 2,600-track fleet — so it
|
|
11748
|
+
* runs detached and this returns immediately. Waiting for it made the client
|
|
11749
|
+
* time out while the work carried on server-side, which is the worst of both:
|
|
11750
|
+
* no result and no way to know it was still going. Poll
|
|
11751
|
+
* `getObjectEmbeddingRebuildStatus` for progress.
|
|
11752
|
+
*/
|
|
11744
11753
|
var RebuildObjectEmbeddingsResultSchema = zod.z.object({
|
|
11754
|
+
started: zod.z.boolean(),
|
|
11755
|
+
/** True when a pass was already running; the new request is ignored. */
|
|
11756
|
+
alreadyRunning: zod.z.boolean()
|
|
11757
|
+
});
|
|
11758
|
+
var RebuildStatusSchema = zod.z.object({
|
|
11759
|
+
running: zod.z.boolean(),
|
|
11745
11760
|
scanned: zod.z.number(),
|
|
11746
11761
|
rebuilt: zod.z.number(),
|
|
11747
11762
|
/** Tracks whose key frame is gone — nothing to re-embed from. */
|
|
@@ -11749,8 +11764,12 @@ var RebuildObjectEmbeddingsResultSchema = zod.z.object({
|
|
|
11749
11764
|
/** Tracks with no usable detection box. */
|
|
11750
11765
|
missingBbox: zod.z.number(),
|
|
11751
11766
|
failed: zod.z.number(),
|
|
11752
|
-
/**
|
|
11753
|
-
complete: zod.z.boolean()
|
|
11767
|
+
/** Set once a pass ends: true only when EVERYTHING was covered. */
|
|
11768
|
+
complete: zod.z.boolean().nullable(),
|
|
11769
|
+
startedAtMs: zod.z.number().nullable(),
|
|
11770
|
+
finishedAtMs: zod.z.number().nullable(),
|
|
11771
|
+
/** Present when the pass ended by throwing. */
|
|
11772
|
+
error: zod.z.string().nullable()
|
|
11754
11773
|
});
|
|
11755
11774
|
var pipelineAnalyticsCapability = {
|
|
11756
11775
|
name: "pipeline-analytics",
|
|
@@ -12031,9 +12050,9 @@ var pipelineAnalyticsCapability = {
|
|
|
12031
12050
|
}),
|
|
12032
12051
|
rebuildObjectEmbeddings: require_sleep.method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
12033
12052
|
kind: "mutation",
|
|
12034
|
-
auth: "admin"
|
|
12035
|
-
|
|
12036
|
-
|
|
12053
|
+
auth: "admin"
|
|
12054
|
+
}),
|
|
12055
|
+
getObjectEmbeddingRebuildStatus: require_sleep.method(zod.z.void(), RebuildStatusSchema)
|
|
12037
12056
|
},
|
|
12038
12057
|
events: {
|
|
12039
12058
|
/**
|
|
@@ -30297,6 +30316,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
30297
30316
|
addonId: null,
|
|
30298
30317
|
access: "view"
|
|
30299
30318
|
},
|
|
30319
|
+
"pipelineAnalytics.getObjectEmbeddingRebuildStatus": {
|
|
30320
|
+
capName: "pipeline-analytics",
|
|
30321
|
+
capScope: "device",
|
|
30322
|
+
addonId: null,
|
|
30323
|
+
access: "view"
|
|
30324
|
+
},
|
|
30300
30325
|
"pipelineAnalytics.getObjectEvents": {
|
|
30301
30326
|
capName: "pipeline-analytics",
|
|
30302
30327
|
capScope: "device",
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EventCategory } from "./event-category-41fKf-q9.mjs";
|
|
2
|
-
import { $ as ProfileRtspEntrySchema, A as method, B as scopeKey, C as DeviceType, Ct as collectHydratedFieldValues, D as event, E as DEVICE_STATUS_METHOD, F as readNodePin, G as CamStreamKindSchema, H as BrokerStatusSchema, I as ReadinessRegistry, J as DecodedAudioChunkSchema, K as CamStreamResolutionSchema, L as ReadinessTimeoutError, M as systemMethod, N as CAP_NODE_PIN_CONTEXT_KEY, O as expandCapMethods, P as nodePin, Q as FrameHandleSchema, R as emitDownForOwnedCaps, S as DeviceRole, St as collectHydratedFieldEntries, T as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Tt as resolveHydratedFieldValue, U as CAM_PROFILE_ORDER, V as BrokerStatsSchema, W as CamProfileSchema, X as EncodedPacketSchema, Y as DecodedFrameSchema, Z as FrameHandleFormatSchema, _ as RawStateResultSchema, _t as createEvent, a as asJsonObject, at as SubscribeAudioChunksResultSchema, b as ChargingStatus, bt as WELL_KNOWN_TABS, c as parseJsonArray, ct as makeProfileBrokerId, d as DEVICE_SCOPED_CAPS, dt as selectAssignedProfileSlots, et as ProfileSlotSchema, f as isDeviceScopedCap, ft as DATAPLANE_SECRET_HEADER, g as createSliceHandle, gt as createDurableState, h as createMirrorSource, ht as normalizeAddonInitResult, i as asJsonArray, it as SubscribeAudioChunksInputSchema, j as resolveCapMount, k as isDeviceConfigCap, l as parseJsonObject, lt as makeSourceBrokerId, m as createLazyTrpcSource, mt as BaseAddon, n as sleepCancellable, nt as StreamSourceEntrySchema, o as asNumber, ot as SubscribeFramesInputSchema, p as createDeviceProxy, pt as DisposerChain, q as CameraStreamSchema, r as asBoolean, rt as StreamSourceSchema, s as asString, st as SubscribeFramesResultSchema, t as sleep, tt as ProfileSlotStatusSchema, u as parseJsonUnknown, ut as parseProfileBrokerId, v as deviceOpsCapability, vt as emitReadiness, w as adminUiCapability, wt as hydrateSchema, x as DeviceFeature, xt as WELL_KNOWN_TAB_MAP, y as viewerUiCapability, yt as isEvent, z as readinessKey } from "./sleep-
|
|
2
|
+
import { $ as ProfileRtspEntrySchema, A as method, B as scopeKey, C as DeviceType, Ct as collectHydratedFieldValues, D as event, E as DEVICE_STATUS_METHOD, F as readNodePin, G as CamStreamKindSchema, H as BrokerStatusSchema, I as ReadinessRegistry, J as DecodedAudioChunkSchema, K as CamStreamResolutionSchema, L as ReadinessTimeoutError, M as systemMethod, N as CAP_NODE_PIN_CONTEXT_KEY, O as expandCapMethods, P as nodePin, Q as FrameHandleSchema, R as emitDownForOwnedCaps, S as DeviceRole, St as collectHydratedFieldEntries, T as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Tt as resolveHydratedFieldValue, U as CAM_PROFILE_ORDER, V as BrokerStatsSchema, W as CamProfileSchema, X as EncodedPacketSchema, Y as DecodedFrameSchema, Z as FrameHandleFormatSchema, _ as RawStateResultSchema, _t as createEvent, a as asJsonObject, at as SubscribeAudioChunksResultSchema, b as ChargingStatus, bt as WELL_KNOWN_TABS, c as parseJsonArray, ct as makeProfileBrokerId, d as DEVICE_SCOPED_CAPS, dt as selectAssignedProfileSlots, et as ProfileSlotSchema, f as isDeviceScopedCap, ft as DATAPLANE_SECRET_HEADER, g as createSliceHandle, gt as createDurableState, h as createMirrorSource, ht as normalizeAddonInitResult, i as asJsonArray, it as SubscribeAudioChunksInputSchema, j as resolveCapMount, k as isDeviceConfigCap, l as parseJsonObject, lt as makeSourceBrokerId, m as createLazyTrpcSource, mt as BaseAddon, n as sleepCancellable, nt as StreamSourceEntrySchema, o as asNumber, ot as SubscribeFramesInputSchema, p as createDeviceProxy, pt as DisposerChain, q as CameraStreamSchema, r as asBoolean, rt as StreamSourceSchema, s as asString, st as SubscribeFramesResultSchema, t as sleep, tt as ProfileSlotStatusSchema, u as parseJsonUnknown, ut as parseProfileBrokerId, v as deviceOpsCapability, vt as emitReadiness, w as adminUiCapability, wt as hydrateSchema, x as DeviceFeature, xt as WELL_KNOWN_TAB_MAP, y as viewerUiCapability, yt as isEvent, z as readinessKey } from "./sleep-CXimb854.mjs";
|
|
3
3
|
import { EventSourceType } from "./enums.mjs";
|
|
4
4
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -11740,7 +11740,22 @@ var RebuildObjectEmbeddingsInput = z.object({
|
|
|
11740
11740
|
* means the same thing.
|
|
11741
11741
|
*/
|
|
11742
11742
|
var WipeObjectEmbeddingsResultSchema = z.object({ deleted: z.number() });
|
|
11743
|
+
/**
|
|
11744
|
+
* Acknowledgement that a rebuild STARTED.
|
|
11745
|
+
*
|
|
11746
|
+
* The pass costs ~1s per track — 45 minutes for a 2,600-track fleet — so it
|
|
11747
|
+
* runs detached and this returns immediately. Waiting for it made the client
|
|
11748
|
+
* time out while the work carried on server-side, which is the worst of both:
|
|
11749
|
+
* no result and no way to know it was still going. Poll
|
|
11750
|
+
* `getObjectEmbeddingRebuildStatus` for progress.
|
|
11751
|
+
*/
|
|
11743
11752
|
var RebuildObjectEmbeddingsResultSchema = z.object({
|
|
11753
|
+
started: z.boolean(),
|
|
11754
|
+
/** True when a pass was already running; the new request is ignored. */
|
|
11755
|
+
alreadyRunning: z.boolean()
|
|
11756
|
+
});
|
|
11757
|
+
var RebuildStatusSchema = z.object({
|
|
11758
|
+
running: z.boolean(),
|
|
11744
11759
|
scanned: z.number(),
|
|
11745
11760
|
rebuilt: z.number(),
|
|
11746
11761
|
/** Tracks whose key frame is gone — nothing to re-embed from. */
|
|
@@ -11748,8 +11763,12 @@ var RebuildObjectEmbeddingsResultSchema = z.object({
|
|
|
11748
11763
|
/** Tracks with no usable detection box. */
|
|
11749
11764
|
missingBbox: z.number(),
|
|
11750
11765
|
failed: z.number(),
|
|
11751
|
-
/**
|
|
11752
|
-
complete: z.boolean()
|
|
11766
|
+
/** Set once a pass ends: true only when EVERYTHING was covered. */
|
|
11767
|
+
complete: z.boolean().nullable(),
|
|
11768
|
+
startedAtMs: z.number().nullable(),
|
|
11769
|
+
finishedAtMs: z.number().nullable(),
|
|
11770
|
+
/** Present when the pass ended by throwing. */
|
|
11771
|
+
error: z.string().nullable()
|
|
11753
11772
|
});
|
|
11754
11773
|
var pipelineAnalyticsCapability = {
|
|
11755
11774
|
name: "pipeline-analytics",
|
|
@@ -12030,9 +12049,9 @@ var pipelineAnalyticsCapability = {
|
|
|
12030
12049
|
}),
|
|
12031
12050
|
rebuildObjectEmbeddings: method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
12032
12051
|
kind: "mutation",
|
|
12033
|
-
auth: "admin"
|
|
12034
|
-
|
|
12035
|
-
|
|
12052
|
+
auth: "admin"
|
|
12053
|
+
}),
|
|
12054
|
+
getObjectEmbeddingRebuildStatus: method(z.void(), RebuildStatusSchema)
|
|
12036
12055
|
},
|
|
12037
12056
|
events: {
|
|
12038
12057
|
/**
|
|
@@ -30296,6 +30315,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
30296
30315
|
addonId: null,
|
|
30297
30316
|
access: "view"
|
|
30298
30317
|
},
|
|
30318
|
+
"pipelineAnalytics.getObjectEmbeddingRebuildStatus": {
|
|
30319
|
+
capName: "pipeline-analytics",
|
|
30320
|
+
capScope: "device",
|
|
30321
|
+
addonId: null,
|
|
30322
|
+
access: "view"
|
|
30323
|
+
},
|
|
30299
30324
|
"pipelineAnalytics.getObjectEvents": {
|
|
30300
30325
|
capName: "pipeline-analytics",
|
|
30301
30326
|
capScope: "device",
|
|
@@ -3166,6 +3166,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3166
3166
|
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
3167
3167
|
wipeObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "wipeObjectEmbeddings", "mutation", input),
|
|
3168
3168
|
rebuildObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "rebuildObjectEmbeddings", "mutation", input),
|
|
3169
|
+
getObjectEmbeddingRebuildStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getObjectEmbeddingRebuildStatus", "query", input),
|
|
3169
3170
|
getDeviceSettingsContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceSettingsContribution", "query", input),
|
|
3170
3171
|
getDeviceLiveContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceLiveContribution", "query", input),
|
|
3171
3172
|
applyDeviceSettingsPatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "applyDeviceSettingsPatch", "mutation", input)
|
|
@@ -3166,6 +3166,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3166
3166
|
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
3167
3167
|
wipeObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "wipeObjectEmbeddings", "mutation", input),
|
|
3168
3168
|
rebuildObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "rebuildObjectEmbeddings", "mutation", input),
|
|
3169
|
+
getObjectEmbeddingRebuildStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getObjectEmbeddingRebuildStatus", "query", input),
|
|
3169
3170
|
getDeviceSettingsContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceSettingsContribution", "query", input),
|
|
3170
3171
|
getDeviceLiveContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceLiveContribution", "query", input),
|
|
3171
3172
|
applyDeviceSettingsPatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "applyDeviceSettingsPatch", "mutation", input)
|