@camstack/ui-library 1.2.205 → 1.2.207

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.
@@ -0,0 +1,15 @@
1
+ import { ExtensionSlotSource, ExtensionSlotState } from '@camstack/types';
2
+ export interface SlotSourceListProps {
3
+ readonly sources: readonly ExtensionSlotSource[];
4
+ }
5
+ /** The saved sources, each with its health — a bad one is shown, never hidden. */
6
+ export declare function SlotSourceList({ sources }: SlotSourceListProps): import("react").JSX.Element;
7
+ export interface AssociationSlotCardProps {
8
+ readonly deviceId: number;
9
+ readonly row: ExtensionSlotState;
10
+ readonly onSaved: () => void;
11
+ }
12
+ export interface ActivationLineProps {
13
+ readonly row: ExtensionSlotState;
14
+ }
15
+ export declare function AssociationSlotCard({ deviceId, row, onSaved }: AssociationSlotCardProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export interface ExtensionsPanelProps {
2
+ readonly deviceId: number;
3
+ }
4
+ export declare function ExtensionsPanel({ deviceId }: ExtensionsPanelProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ /** tRPC v11 query-key prefix of `deviceManager.getDeviceAggregate`. */
3
+ export declare const DEVICE_AGGREGATE_QUERY_KEY: readonly [readonly ["deviceManager", "getDeviceAggregate"]];
4
+ /** tRPC v11 query-key prefix of `deviceExtension.listSlots`. */
5
+ export declare const EXTENSION_SLOTS_QUERY_KEY: readonly [readonly ["deviceExtension", "listSlots"]];
6
+ /** The one method of a query client these helpers use. */
7
+ export type QueryInvalidator = Pick<QueryClient, 'invalidateQueries'>;
8
+ /** Re-read both surfaces over the linked-devices / doorbell stores. */
9
+ export declare function invalidateExtensionSurfaces(client: QueryInvalidator): Promise<void>;
@@ -0,0 +1,40 @@
1
+ import { ExtensionCandidate, ExtensionSlotCardinality, ExtensionSlotRow, ExtensionSlotState, ExtensionSlotUnreachable } from '@camstack/types';
2
+ /** The one field of a query error this module reads. */
3
+ export interface ExtensionsQueryError {
4
+ readonly message: string;
5
+ }
6
+ /** The fields of a query result this module reads — nothing else. */
7
+ export interface ExtensionsQueryView {
8
+ readonly status: 'pending' | 'error' | 'success';
9
+ readonly data?: readonly ExtensionSlotRow[] | undefined;
10
+ readonly error?: ExtensionsQueryError | null;
11
+ }
12
+ /** Nobody has answered yet. */
13
+ export interface ExtensionsPendingView {
14
+ readonly kind: 'pending';
15
+ }
16
+ /** The read FAILED — not an answer, so not absence either. */
17
+ export interface ExtensionsUnknownView {
18
+ readonly kind: 'unknown';
19
+ readonly reason: string;
20
+ }
21
+ /** Answered with nothing — the only state that may say "no extensions". */
22
+ export interface ExtensionsNoneView {
23
+ readonly kind: 'none';
24
+ }
25
+ /** Cards in table order, and every owner that could not answer. */
26
+ export interface ExtensionsRowsView {
27
+ readonly kind: 'rows';
28
+ readonly slots: readonly ExtensionSlotState[];
29
+ readonly unreachable: readonly ExtensionSlotUnreachable[];
30
+ }
31
+ export type ExtensionsView = ExtensionsPendingView | ExtensionsUnknownView | ExtensionsNoneView | ExtensionsRowsView;
32
+ export declare function resolveExtensionsView(query: ExtensionsQueryView): ExtensionsView;
33
+ /** Add or remove one pick. `one` replaces; `many` toggles. */
34
+ export declare function togglePick(draft: readonly number[], deviceId: number, cardinality: ExtensionSlotCardinality): readonly number[];
35
+ /** Suggested candidates the operator has NOT picked — shown to confirm, never saved on their own (D356). */
36
+ export declare function pendingSuggestions(candidates: readonly ExtensionCandidate[], draft: readonly number[]): readonly ExtensionCandidate[];
37
+ /** Candidates matching a free-text search, not already picked. */
38
+ export declare function searchCandidates(candidates: readonly ExtensionCandidate[], draft: readonly number[], query: string): readonly ExtensionCandidate[];
39
+ /** Whether the draft differs from what the owner's store holds. */
40
+ export declare function isDirty(saved: readonly number[], draft: readonly number[]): boolean;
@@ -169,3 +169,4 @@ export * from './version-badge';
169
169
  export * from './widget-panel.js';
170
170
  export type { WidgetSlotProps } from './widget-slot';
171
171
  export { WidgetSlot } from './widget-slot';
172
+ export { DEVICE_AGGREGATE_QUERY_KEY, EXTENSION_SLOTS_QUERY_KEY, invalidateExtensionSurfaces, type QueryInvalidator, } from './extensions/extension-invalidation.js';
@@ -20,7 +20,7 @@ export interface InferenceAgentOption {
20
20
  readonly status: 'online' | 'offline' | 'busy';
21
21
  }
22
22
  export interface InferenceConfigSelectorProps {
23
- readonly runtime: 'node' | 'python';
23
+ readonly runtime: 'python';
24
24
  readonly backend: string;
25
25
  readonly modelId: string;
26
26
  readonly agentId?: string;
@@ -32,7 +32,7 @@ export interface InferenceConfigSelectorProps {
32
32
  readonly backends: readonly InferenceBackendOption[];
33
33
  readonly models: readonly InferenceModelOption[];
34
34
  readonly agents?: readonly InferenceAgentOption[];
35
- readonly onRuntimeChange: (rt: 'node' | 'python') => void;
35
+ readonly onRuntimeChange: (rt: 'python') => void;
36
36
  readonly onBackendChange: (id: string) => void;
37
37
  readonly onModelChange: (id: string) => void;
38
38
  readonly onAgentChange?: (id: string) => void;
@@ -423,6 +423,14 @@ export declare const useDeviceExportGetDeviceSettingsContribution: typeof trpc.d
423
423
  export declare const useDeviceExportGetDeviceLiveContribution: typeof trpc.deviceExport.getDeviceLiveContribution.useQuery;
424
424
  /** Generated alias around `trpc.deviceExport.applyDeviceSettingsPatch.useMutation`. */
425
425
  export declare const useDeviceExportApplyDeviceSettingsPatch: typeof trpc.deviceExport.applyDeviceSettingsPatch.useMutation;
426
+ /** Generated alias around `trpc.deviceExtension.listSources.useQuery`. */
427
+ export declare const useDeviceExtensionListSources: typeof trpc.deviceExtension.listSources.useQuery;
428
+ /** Generated alias around `trpc.deviceExtension.listSlots.useQuery`. */
429
+ export declare const useDeviceExtensionListSlots: typeof trpc.deviceExtension.listSlots.useQuery;
430
+ /** Generated alias around `trpc.deviceExtension.listCandidates.useQuery`. */
431
+ export declare const useDeviceExtensionListCandidates: typeof trpc.deviceExtension.listCandidates.useQuery;
432
+ /** Generated alias around `trpc.deviceExtension.setSlot.useMutation`. */
433
+ export declare const useDeviceExtensionSetSlot: typeof trpc.deviceExtension.setSlot.useMutation;
426
434
  /** Generated alias around `trpc.deviceManager.allocateDeviceId.useMutation`. */
427
435
  export declare const useDeviceManagerAllocateDeviceId: typeof trpc.deviceManager.allocateDeviceId.useMutation;
428
436
  /** Generated alias around `trpc.deviceManager.migrateDevice.useMutation`. */
@@ -1075,6 +1083,8 @@ export declare const useNotificationRulesListDeviceMutes: typeof trpc.notificati
1075
1083
  export declare const useNotificationRulesSetDeviceMuted: typeof trpc.notificationRules.setDeviceMuted.useMutation;
1076
1084
  /** Generated alias around `trpc.notificationRules.testRule.useMutation`. */
1077
1085
  export declare const useNotificationRulesTestRule: typeof trpc.notificationRules.testRule.useMutation;
1086
+ /** Generated alias around `trpc.notificationRules.previewStateSummary.useMutation`. */
1087
+ export declare const useNotificationRulesPreviewStateSummary: typeof trpc.notificationRules.previewStateSummary.useMutation;
1078
1088
  /** Generated alias around `trpc.notificationRules.getConditionCatalog.useQuery`. */
1079
1089
  export declare const useNotificationRulesGetConditionCatalog: typeof trpc.notificationRules.getConditionCatalog.useQuery;
1080
1090
  /** Generated alias around `trpc.notificationRules.getTemplateCatalog.useQuery`. */
@@ -1253,8 +1263,6 @@ export declare const usePipelineAnalyticsDeselectRetrainFrame: typeof trpc.pipel
1253
1263
  export declare const usePipelineAnalyticsGetRetrainFrameImage: typeof trpc.pipelineAnalytics.getRetrainFrameImage.useQuery;
1254
1264
  /** Generated alias around `trpc.pipelineAnalytics.proposeRetrainAnnotations.useMutation`. */
1255
1265
  export declare const usePipelineAnalyticsProposeRetrainAnnotations: typeof trpc.pipelineAnalytics.proposeRetrainAnnotations.useMutation;
1256
- /** Generated alias around `trpc.pipelineAnalytics.runReplayFrameProcessor.useMutation`. */
1257
- export declare const usePipelineAnalyticsRunReplayFrameProcessor: typeof trpc.pipelineAnalytics.runReplayFrameProcessor.useMutation;
1258
1266
  /** Generated alias around `trpc.pipelineAnalytics.listRetrainAnnotations.useQuery`. */
1259
1267
  export declare const usePipelineAnalyticsListRetrainAnnotations: typeof trpc.pipelineAnalytics.listRetrainAnnotations.useQuery;
1260
1268
  /** Generated alias around `trpc.pipelineAnalytics.saveRetrainAnnotations.useMutation`. */
@@ -1385,6 +1393,8 @@ export declare const usePipelineOrchestratorGetPipelineAssignments: typeof trpc.
1385
1393
  export declare const usePipelineOrchestratorGetPipelineAssignment: typeof trpc.pipelineOrchestrator.getPipelineAssignment.useQuery;
1386
1394
  /** Generated alias around `trpc.pipelineOrchestrator.getAgentLoad.useQuery`. */
1387
1395
  export declare const usePipelineOrchestratorGetAgentLoad: typeof trpc.pipelineOrchestrator.getAgentLoad.useQuery;
1396
+ /** Generated alias around `trpc.pipelineOrchestrator.getClusterModelChoice.useQuery`. */
1397
+ export declare const usePipelineOrchestratorGetClusterModelChoice: typeof trpc.pipelineOrchestrator.getClusterModelChoice.useQuery;
1388
1398
  /** Generated alias around `trpc.pipelineOrchestrator.getGlobalMetrics.useQuery`. */
1389
1399
  export declare const usePipelineOrchestratorGetGlobalMetrics: typeof trpc.pipelineOrchestrator.getGlobalMetrics.useQuery;
1390
1400
  /** Generated alias around `trpc.pipelineOrchestrator.getCameraMetrics.useQuery`. */