@camstack/types 1.2.322 → 1.2.323

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.
Files changed (38) hide show
  1. package/dist/addon.js +3 -14
  2. package/dist/addon.mjs +3 -14
  3. package/dist/capabilities/decoder.cap.d.ts +0 -211
  4. package/dist/capabilities/index.d.ts +6 -6
  5. package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
  6. package/dist/capabilities/llm.cap.d.ts +4 -4
  7. package/dist/capabilities/local-network.cap.d.ts +11 -11
  8. package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
  9. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +9 -13
  10. package/dist/capabilities/pipeline-runner.cap.d.ts +0 -2
  11. package/dist/capabilities/schemas/streaming-shared.d.ts +9 -79
  12. package/dist/capabilities/stream-broker.cap.d.ts +0 -85
  13. package/dist/capabilities/webrtc-session.cap.d.ts +0 -2
  14. package/dist/client.js +2 -80
  15. package/dist/client.mjs +2 -80
  16. package/dist/enums/event-category.d.ts +0 -9
  17. package/dist/enums.js +1 -1
  18. package/dist/enums.mjs +1 -1
  19. package/dist/{event-category-BGmz_oxW.mjs → event-category-B_0XEcLF.mjs} +0 -9
  20. package/dist/{event-category-DmS_tLsU.js → event-category-CtBAl88K.js} +0 -9
  21. package/dist/ffmpeg/hwaccel.d.ts +1 -1
  22. package/dist/generated/addon-api.d.ts +0 -105
  23. package/dist/generated/cap-input-defaults.d.ts +1 -1
  24. package/dist/generated/method-access-map.d.ts +1 -1
  25. package/dist/generated/method-device-selectors.d.ts +2 -2
  26. package/dist/generated/system-proxy.d.ts +2 -2
  27. package/dist/index.d.ts +0 -1
  28. package/dist/index.js +22 -291
  29. package/dist/index.mjs +23 -283
  30. package/dist/interfaces/api-responses.d.ts +0 -19
  31. package/dist/interfaces/capability.d.ts +1 -2
  32. package/dist/interfaces/event-bus.d.ts +0 -13
  33. package/dist/interfaces/pipeline-runner-capability.d.ts +0 -1
  34. package/dist/interfaces/stream-broker.d.ts +2 -67
  35. package/dist/{sleep-DAJ9Er57.mjs → sleep-BNeXenvr.mjs} +11 -86
  36. package/dist/{sleep-AalHiRYL.js → sleep-DPar9AHl.js} +10 -115
  37. package/package.json +1 -1
  38. package/dist/interfaces/decoder.d.ts +0 -89
@@ -1959,13 +1959,6 @@ export type AppRouter = TrpcCoreRouter<{
1959
1959
  errorShape: AugmentedErrorShape;
1960
1960
  transformer: true;
1961
1961
  }, TRPCDecorateCreateRouterOptions<{
1962
- supportsCodec: TRPCQueryProcedure<{
1963
- input: {
1964
- [x: string]: unknown;
1965
- } & z.input<typeof decoderCapability.methods.supportsCodec.input>;
1966
- output: z.infer<typeof decoderCapability.methods.supportsCodec.output>;
1967
- meta: object;
1968
- }>;
1969
1962
  getInfo: TRPCQueryProcedure<{
1970
1963
  input: {
1971
1964
  nodeId?: string | undefined;
@@ -1973,83 +1966,6 @@ export type AppRouter = TrpcCoreRouter<{
1973
1966
  output: z.infer<typeof decoderCapability.methods.getInfo.output>;
1974
1967
  meta: object;
1975
1968
  }>;
1976
- createSession: TRPCQueryProcedure<{
1977
- input: {
1978
- [x: string]: unknown;
1979
- } & z.input<typeof decoderCapability.methods.createSession.input>;
1980
- output: z.infer<typeof decoderCapability.methods.createSession.output>;
1981
- meta: object;
1982
- }>;
1983
- destroySession: TRPCQueryProcedure<{
1984
- input: {
1985
- [x: string]: unknown;
1986
- } & z.input<typeof decoderCapability.methods.destroySession.input>;
1987
- output: z.infer<typeof decoderCapability.methods.destroySession.output>;
1988
- meta: object;
1989
- }>;
1990
- pushPacket: TRPCQueryProcedure<{
1991
- input: {
1992
- [x: string]: unknown;
1993
- } & z.input<typeof decoderCapability.methods.pushPacket.input>;
1994
- output: z.infer<typeof decoderCapability.methods.pushPacket.output>;
1995
- meta: object;
1996
- }>;
1997
- openStream: TRPCQueryProcedure<{
1998
- input: {
1999
- [x: string]: unknown;
2000
- } & z.input<typeof decoderCapability.methods.openStream.input>;
2001
- output: z.infer<typeof decoderCapability.methods.openStream.output>;
2002
- meta: object;
2003
- }>;
2004
- pullFrames: TRPCQueryProcedure<{
2005
- input: {
2006
- [x: string]: unknown;
2007
- } & z.input<typeof decoderCapability.methods.pullFrames.input>;
2008
- output: z.infer<typeof decoderCapability.methods.pullFrames.output>;
2009
- meta: object;
2010
- }>;
2011
- pullHandles: TRPCQueryProcedure<{
2012
- input: {
2013
- [x: string]: unknown;
2014
- } & z.input<typeof decoderCapability.methods.pullHandles.input>;
2015
- output: z.infer<typeof decoderCapability.methods.pullHandles.output>;
2016
- meta: object;
2017
- }>;
2018
- getFrame: TRPCQueryProcedure<{
2019
- input: {
2020
- [x: string]: unknown;
2021
- } & z.input<typeof decoderCapability.methods.getFrame.input>;
2022
- output: z.infer<typeof decoderCapability.methods.getFrame.output>;
2023
- meta: object;
2024
- }>;
2025
- getShmStats: TRPCQueryProcedure<{
2026
- input: {
2027
- [x: string]: unknown;
2028
- } & z.input<typeof decoderCapability.methods.getShmStats.input>;
2029
- output: z.infer<typeof decoderCapability.methods.getShmStats.output>;
2030
- meta: object;
2031
- }>;
2032
- updateConfig: TRPCQueryProcedure<{
2033
- input: {
2034
- [x: string]: unknown;
2035
- } & z.input<typeof decoderCapability.methods.updateConfig.input>;
2036
- output: z.infer<typeof decoderCapability.methods.updateConfig.output>;
2037
- meta: object;
2038
- }>;
2039
- getStats: TRPCQueryProcedure<{
2040
- input: {
2041
- [x: string]: unknown;
2042
- } & z.input<typeof decoderCapability.methods.getStats.input>;
2043
- output: z.infer<typeof decoderCapability.methods.getStats.output>;
2044
- meta: object;
2045
- }>;
2046
- listActiveSessions: TRPCQueryProcedure<{
2047
- input: {
2048
- nodeId?: string | undefined;
2049
- } | undefined;
2050
- output: z.infer<typeof decoderCapability.methods.listActiveSessions.output>;
2051
- meta: object;
2052
- }>;
2053
1969
  reprobeHwaccel: TRPCMutationProcedure<{
2054
1970
  input: {
2055
1971
  nodeId?: string | undefined;
@@ -8608,27 +8524,6 @@ export type AppRouter = TrpcCoreRouter<{
8608
8524
  output: z.infer<typeof streamBrokerCapability.methods.unsubscribeAudioChunks.output>;
8609
8525
  meta: object;
8610
8526
  }>;
8611
- subscribeFrames: TRPCMutationProcedure<{
8612
- input: {
8613
- [x: string]: unknown;
8614
- } & z.input<typeof streamBrokerCapability.methods.subscribeFrames.input>;
8615
- output: z.infer<typeof streamBrokerCapability.methods.subscribeFrames.output>;
8616
- meta: object;
8617
- }>;
8618
- pullFrameHandles: TRPCQueryProcedure<{
8619
- input: {
8620
- [x: string]: unknown;
8621
- } & z.input<typeof streamBrokerCapability.methods.pullFrameHandles.input>;
8622
- output: z.infer<typeof streamBrokerCapability.methods.pullFrameHandles.output>;
8623
- meta: object;
8624
- }>;
8625
- unsubscribeFrames: TRPCMutationProcedure<{
8626
- input: {
8627
- [x: string]: unknown;
8628
- } & z.input<typeof streamBrokerCapability.methods.unsubscribeFrames.input>;
8629
- output: z.infer<typeof streamBrokerCapability.methods.unsubscribeFrames.output>;
8630
- meta: object;
8631
- }>;
8632
8527
  setPreBufferDuration: TRPCMutationProcedure<{
8633
8528
  input: {
8634
8529
  [x: string]: unknown;
@@ -11,7 +11,7 @@
11
11
  * Plain data, zero Zod: a forked runner must not import the schema barrel
12
12
  * (~144MB RSS per runner — D28).
13
13
  *
14
- * Coverage: 25 caps, 63 methods with defaults.
14
+ * Coverage: 24 caps, 59 methods with defaults.
15
15
  */
16
16
  export declare const CAP_INPUT_DEFAULTS: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, unknown>>>>>>;
17
17
  /**
@@ -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: 1227 method paths across 165 capabilities.
9
+ * Coverage: 1212 method paths across 165 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -6,8 +6,8 @@
6
6
  * system-scope cap that takes a deviceId was previously never device-filtered
7
7
  * — see the generator header).
8
8
  *
9
- * Coverage: 512 methods carry a device reference, of which
10
- * 162 are on SYSTEM-scope caps.
9
+ * Coverage: 511 methods carry a device reference, of which
10
+ * 161 are on SYSTEM-scope caps.
11
11
  *
12
12
  * Top-level fields, number arrays, and one-level arrays of objects carrying
13
13
  * a numeric device field (targets[].deviceId) are all mapped; the matcher
@@ -68,7 +68,7 @@ export interface SystemProxy {
68
68
  readonly calendars: Pick<InferProvider<typeof calendarsCapability>, 'listCalendars' | 'listEvents' | 'getPreferences' | 'setCalendarPreference'>;
69
69
  readonly connectionTest: Pick<InferProvider<typeof connectionTestCapability>, 'testSettings' | 'describeTest'>;
70
70
  readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'restart' | 'compile' | 'getBlockSettings' | 'updateBlockSettings' | 'getTypeDefs' | 'createComposition' | 'updateComposition' | 'getComposition' | 'listCompositions' | 'getCustomization' | 'listComposableCaps' | 'validateComposition'>;
71
- readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'supportsCodec' | 'getInfo' | 'createSession' | 'destroySession' | 'pushPacket' | 'openStream' | 'pullFrames' | 'pullHandles' | 'getFrame' | 'getShmStats' | 'updateConfig' | 'getStats' | 'listActiveSessions' | 'reprobeHwaccel'>;
71
+ readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'getInfo' | 'reprobeHwaccel'>;
72
72
  readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
73
73
  readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
74
74
  readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'migrateDevice' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'renameLocation' | 'listLocationIcons' | 'setLocationIcon' | 'listLocationDescriptions' | 'setLocationDescription' | 'listSiteZones' | 'setSiteZone' | 'removeSiteZone' | 'renameSiteZone' | 'setLocationZone' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listDeviceIdsByCaps' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
@@ -97,7 +97,7 @@ export interface SystemProxy {
97
97
  readonly settingsStore: Pick<InferProvider<typeof settingsStoreCapability>, 'get' | 'set' | 'query' | 'upsert' | 'insert' | 'insertMany' | 'update' | 'delete' | 'deleteWhere' | 'updateWhere' | 'count' | 'aggregate' | 'histogram' | 'isEmpty' | 'declareCollection'>;
98
98
  readonly storage: Pick<InferProvider<typeof storageCapability>, 'resolve' | 'write' | 'read' | 'exists' | 'list' | 'delete' | 'getAvailableSpace' | 'beginUpload' | 'writeChunk' | 'finalizeUpload' | 'abortUpload' | 'beginDownload' | 'readChunk' | 'endDownload' | 'listLocations' | 'listLocationDeclarations' | 'upsertLocation' | 'deleteLocation' | 'listDrainProgress' | 'testLocation' | 'listProviders' | 'testConfig'>;
99
99
  readonly storageMigration: Pick<InferProvider<typeof storageMigrationCapability>, 'plan' | 'start' | 'status' | 'cancel' | 'movers' | 'residue' | 'drain' | 'cleanupStart' | 'cleanupStatus' | 'cleanupCancel' | 'history'>;
100
- readonly streamBroker: Pick<InferProvider<typeof streamBrokerCapability>, 'fetchEventMedia' | 'listAllCameraStreams' | 'listAllProfileSlots' | 'getBrokerStats' | 'probeStream' | 'listClients' | 'killClient' | 'getStreamUrl' | 'getStreamWithCodec' | 'releaseStreamWithCodec' | 'acquireEgressTranscode' | 'releaseEgressTranscode' | 'subscribeAudioChunks' | 'pullAudioChunks' | 'unsubscribeAudioChunks' | 'subscribeFrames' | 'pullFrameHandles' | 'unsubscribeFrames' | 'setPreBufferDuration' | 'getPreBufferInfo' | 'getRtspPort' | 'getAllRtspEntries' | 'getRtspEntry' | 'regenerateRtspToken' | 'setRtspEnabled' | 'isRtspEnabled'>;
100
+ readonly streamBroker: Pick<InferProvider<typeof streamBrokerCapability>, 'fetchEventMedia' | 'listAllCameraStreams' | 'listAllProfileSlots' | 'getBrokerStats' | 'probeStream' | 'listClients' | 'killClient' | 'getStreamUrl' | 'getStreamWithCodec' | 'releaseStreamWithCodec' | 'acquireEgressTranscode' | 'releaseEgressTranscode' | 'subscribeAudioChunks' | 'pullAudioChunks' | 'unsubscribeAudioChunks' | 'setPreBufferDuration' | 'getPreBufferInfo' | 'getRtspPort' | 'getAllRtspEntries' | 'getRtspEntry' | 'regenerateRtspToken' | 'setRtspEnabled' | 'isRtspEnabled'>;
101
101
  readonly system: Pick<InferProvider<typeof systemCapability>, 'info' | 'health' | 'featureFlags' | 'networkAddresses' | 'getRetentionConfig' | 'setRetentionConfig' | 'forceRetentionCleanup' | 'getSiteLocation' | 'setSiteLocation' | 'detectSiteLocation' | 'getRequestCensus' | 'getLoadContributions' | 'getFailureContributions' | 'getLoggingSettings' | 'setLoggingSettings'>;
102
102
  readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listInstances' | 'createInstance' | 'updateInstance' | 'deleteInstance' | 'setInstanceEnabled' | 'listLegacyCameras' | 'adoptLegacyMonitor' | 'listSessions' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
103
103
  readonly toast: Pick<InferProvider<typeof toastCapability>, 'onToast'>;
package/dist/index.d.ts CHANGED
@@ -53,7 +53,6 @@ export type * from './interfaces/context.js';
53
53
  export * from './interfaces/birth-decision-ledger.js';
54
54
  export * from './interfaces/debug-note-archive.js';
55
55
  export * from './interfaces/track-relations.js';
56
- export type * from './interfaces/decoder.js';
57
56
  export type * from './interfaces/detection-addon.js';
58
57
  export type { DeviceEvent, DeviceMetadata, DeviceState } from './interfaces/device.js';
59
58
  export { autoAssignProfiles, classifyStream, classifyStreams, parseCameraStreamConfig, streamPixels, toStreamSourceEntry, } from './interfaces/device-capabilities/camera.js';