@camstack/types 1.2.37 → 1.2.38
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 +3 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +20 -1
- package/dist/index.mjs +20 -1
- package/dist/{sleep-CSXrF9oC.mjs → sleep-BFsQ039l.mjs} +1 -0
- package/dist/{sleep-CknKIHHE.js → sleep-ByC1qJu7.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-ByC1qJu7.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-BFsQ039l.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/collection-array-methods.ts
|
|
5
5
|
/**
|
|
@@ -1657,6 +1657,9 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
1657
1657
|
timestamp: z.ZodNumber;
|
|
1658
1658
|
score: z.ZodNumber;
|
|
1659
1659
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1660
|
+
readonly wipeObjectEmbeddings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
1661
|
+
deleted: z.ZodNumber;
|
|
1662
|
+
}, z.core.$strip>, "mutation">;
|
|
1660
1663
|
readonly rebuildObjectEmbeddings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1661
1664
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
1662
1665
|
since: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4812,6 +4812,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4812
4812
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.searchObjectEvents.output>;
|
|
4813
4813
|
meta: object;
|
|
4814
4814
|
}>;
|
|
4815
|
+
wipeObjectEmbeddings: TRPCMutationProcedure<{
|
|
4816
|
+
input: {
|
|
4817
|
+
nodeId?: string | undefined;
|
|
4818
|
+
} | undefined;
|
|
4819
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.wipeObjectEmbeddings.output>;
|
|
4820
|
+
meta: object;
|
|
4821
|
+
}>;
|
|
4815
4822
|
rebuildObjectEmbeddings: TRPCMutationProcedure<{
|
|
4816
4823
|
input: {
|
|
4817
4824
|
[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: 865 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-ByC1qJu7.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");
|
|
@@ -11732,6 +11732,15 @@ var RebuildObjectEmbeddingsInput = zod.z.object({
|
|
|
11732
11732
|
/** Stop after this many tracks; the result reports whether more remain. */
|
|
11733
11733
|
maxTracks: zod.z.number().int().positive().optional()
|
|
11734
11734
|
});
|
|
11735
|
+
/**
|
|
11736
|
+
* Result of emptying the CLIP index.
|
|
11737
|
+
*
|
|
11738
|
+
* The clean slate before a policy change: a new crop margin or encoder model
|
|
11739
|
+
* leaves two feature spaces in one index whose cosine scores are not
|
|
11740
|
+
* comparable, so wiping and rebuilding is the only way to be sure every vector
|
|
11741
|
+
* means the same thing.
|
|
11742
|
+
*/
|
|
11743
|
+
var WipeObjectEmbeddingsResultSchema = zod.z.object({ deleted: zod.z.number() });
|
|
11735
11744
|
var RebuildObjectEmbeddingsResultSchema = zod.z.object({
|
|
11736
11745
|
scanned: zod.z.number(),
|
|
11737
11746
|
rebuilt: zod.z.number(),
|
|
@@ -12016,6 +12025,10 @@ var pipelineAnalyticsCapability = {
|
|
|
12016
12025
|
* `minScore`, sorted descending by score.
|
|
12017
12026
|
*/
|
|
12018
12027
|
searchObjectEvents: require_sleep.method(SearchObjectEventsInput, zod.z.array(ScoredObjectEventSchema).readonly()),
|
|
12028
|
+
wipeObjectEmbeddings: require_sleep.method(zod.z.void(), WipeObjectEmbeddingsResultSchema, {
|
|
12029
|
+
kind: "mutation",
|
|
12030
|
+
auth: "admin"
|
|
12031
|
+
}),
|
|
12019
12032
|
rebuildObjectEmbeddings: require_sleep.method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
12020
12033
|
kind: "mutation",
|
|
12021
12034
|
auth: "admin",
|
|
@@ -30386,6 +30399,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
30386
30399
|
addonId: null,
|
|
30387
30400
|
access: "delete"
|
|
30388
30401
|
},
|
|
30402
|
+
"pipelineAnalytics.wipeObjectEmbeddings": {
|
|
30403
|
+
capName: "pipeline-analytics",
|
|
30404
|
+
capScope: "device",
|
|
30405
|
+
addonId: null,
|
|
30406
|
+
access: "delete"
|
|
30407
|
+
},
|
|
30389
30408
|
"pipelineExecutor.cacheFrameInPool": {
|
|
30390
30409
|
capName: "pipeline-executor",
|
|
30391
30410
|
capScope: "system",
|
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-BFsQ039l.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";
|
|
@@ -11731,6 +11731,15 @@ var RebuildObjectEmbeddingsInput = z.object({
|
|
|
11731
11731
|
/** Stop after this many tracks; the result reports whether more remain. */
|
|
11732
11732
|
maxTracks: z.number().int().positive().optional()
|
|
11733
11733
|
});
|
|
11734
|
+
/**
|
|
11735
|
+
* Result of emptying the CLIP index.
|
|
11736
|
+
*
|
|
11737
|
+
* The clean slate before a policy change: a new crop margin or encoder model
|
|
11738
|
+
* leaves two feature spaces in one index whose cosine scores are not
|
|
11739
|
+
* comparable, so wiping and rebuilding is the only way to be sure every vector
|
|
11740
|
+
* means the same thing.
|
|
11741
|
+
*/
|
|
11742
|
+
var WipeObjectEmbeddingsResultSchema = z.object({ deleted: z.number() });
|
|
11734
11743
|
var RebuildObjectEmbeddingsResultSchema = z.object({
|
|
11735
11744
|
scanned: z.number(),
|
|
11736
11745
|
rebuilt: z.number(),
|
|
@@ -12015,6 +12024,10 @@ var pipelineAnalyticsCapability = {
|
|
|
12015
12024
|
* `minScore`, sorted descending by score.
|
|
12016
12025
|
*/
|
|
12017
12026
|
searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly()),
|
|
12027
|
+
wipeObjectEmbeddings: method(z.void(), WipeObjectEmbeddingsResultSchema, {
|
|
12028
|
+
kind: "mutation",
|
|
12029
|
+
auth: "admin"
|
|
12030
|
+
}),
|
|
12018
12031
|
rebuildObjectEmbeddings: method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
12019
12032
|
kind: "mutation",
|
|
12020
12033
|
auth: "admin",
|
|
@@ -30385,6 +30398,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
30385
30398
|
addonId: null,
|
|
30386
30399
|
access: "delete"
|
|
30387
30400
|
},
|
|
30401
|
+
"pipelineAnalytics.wipeObjectEmbeddings": {
|
|
30402
|
+
capName: "pipeline-analytics",
|
|
30403
|
+
capScope: "device",
|
|
30404
|
+
addonId: null,
|
|
30405
|
+
access: "delete"
|
|
30406
|
+
},
|
|
30388
30407
|
"pipelineExecutor.cacheFrameInPool": {
|
|
30389
30408
|
capName: "pipeline-executor",
|
|
30390
30409
|
capScope: "system",
|
|
@@ -3164,6 +3164,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3164
3164
|
getTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrackMedia", "query", input),
|
|
3165
3165
|
listTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listTrackMedia", "query", input),
|
|
3166
3166
|
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
3167
|
+
wipeObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "wipeObjectEmbeddings", "mutation", input),
|
|
3167
3168
|
rebuildObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "rebuildObjectEmbeddings", "mutation", input),
|
|
3168
3169
|
getDeviceSettingsContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceSettingsContribution", "query", input),
|
|
3169
3170
|
getDeviceLiveContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceLiveContribution", "query", input),
|
|
@@ -3164,6 +3164,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3164
3164
|
getTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrackMedia", "query", input),
|
|
3165
3165
|
listTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listTrackMedia", "query", input),
|
|
3166
3166
|
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
3167
|
+
wipeObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "wipeObjectEmbeddings", "mutation", input),
|
|
3167
3168
|
rebuildObjectEmbeddings: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "rebuildObjectEmbeddings", "mutation", input),
|
|
3168
3169
|
getDeviceSettingsContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceSettingsContribution", "query", input),
|
|
3169
3170
|
getDeviceLiveContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceLiveContribution", "query", input),
|