@camstack/ui-library 0.1.47 → 0.1.49

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.
@@ -59,6 +59,8 @@ export { CameraStreamPlayer } from './camera-stream-player';
59
59
  export type { CameraStreamPlayerProps, PlayerConnectionState, SignalingResult, ClientStreamHints } from './camera-stream-player';
60
60
  export { StreamPanel } from './stream-panel';
61
61
  export type { StreamPanelProps, StreamChoice, StreamStats } from './stream-panel';
62
+ export { StreamBrokerSelector } from './stream-broker-selector';
63
+ export type { StreamBrokerSelectorProps } from './stream-broker-selector';
62
64
  export { LoginForm } from './login-form';
63
65
  export type { LoginFormProps } from './login-form';
64
66
  export { DevShell, useDevShell } from './dev-shell';
@@ -17,9 +17,9 @@ interface ScopePickerProps {
17
17
  export declare function ScopePicker({ value, onChange, clampToParent, emptyHint }: ScopePickerProps): React.ReactElement;
18
18
  /**
19
19
  * Validation helper. The wire schema (`TokenScopeSchema`) requires every
20
- * scope to carry a non-empty target and `access.length >= 1`. Use this
21
- * before passing the picker output to a mutate call so the user sees a
22
- * clean inline error instead of a tRPC ZodError.
20
+ * scope to carry a non-empty target/targets and `access.length >= 1`.
21
+ * Use this before passing the picker output to a mutate call so the
22
+ * user sees a clean inline error instead of a tRPC ZodError.
23
23
  */
24
24
  export declare function validateScopes(scopes: readonly TokenScope[]): string | null;
25
25
  export {};
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ export interface StreamBrokerSelectorProps {
3
+ readonly deviceId: number;
4
+ readonly value: 'auto' | string;
5
+ readonly onChange: (next: 'auto' | string) => void;
6
+ readonly disabled?: boolean;
7
+ readonly label?: string;
8
+ readonly className?: string;
9
+ }
10
+ export declare function StreamBrokerSelector({ deviceId, value, onChange, disabled, label, className, }: StreamBrokerSelectorProps): ReactElement;
@@ -151,6 +151,10 @@ export declare const useBatteryGetStatus: typeof trpc.battery.getStatus.useQuery
151
151
  export declare const useBrightnessSetBrightness: typeof trpc.brightness.setBrightness.useMutation;
152
152
  /** Generated alias around `trpc.brightness.getStatus.useQuery`. */
153
153
  export declare const useBrightnessGetStatus: typeof trpc.brightness.getStatus.useQuery;
154
+ /** Generated alias around `trpc.cameraCredentials.getCredentials.useQuery`. */
155
+ export declare const useCameraCredentialsGetCredentials: typeof trpc.cameraCredentials.getCredentials.useQuery;
156
+ /** Generated alias around `trpc.cameraCredentials.getStatus.useQuery`. */
157
+ export declare const useCameraCredentialsGetStatus: typeof trpc.cameraCredentials.getStatus.useQuery;
154
158
  /** Generated alias around `trpc.cameraStreams.getCameraStreams.useQuery`. */
155
159
  export declare const useCameraStreamsGetCameraStreams: typeof trpc.cameraStreams.getCameraStreams.useQuery;
156
160
  /** Generated alias around `trpc.cameraStreams.getBrokerStreams.useQuery`. */
@@ -195,6 +199,22 @@ export declare const useDeviceDiscoveryAdoptDevice: typeof trpc.deviceDiscovery.
195
199
  export declare const useDeviceDiscoveryReleaseDevice: typeof trpc.deviceDiscovery.releaseDevice.useMutation;
196
200
  /** Generated alias around `trpc.deviceDiscovery.getStatus.useQuery`. */
197
201
  export declare const useDeviceDiscoveryGetStatus: typeof trpc.deviceDiscovery.getStatus.useQuery;
202
+ /** Generated alias around `trpc.deviceExport.getStatus.useQuery`. */
203
+ export declare const useDeviceExportGetStatus: typeof trpc.deviceExport.getStatus.useQuery;
204
+ /** Generated alias around `trpc.deviceExport.listSupportedDeviceKinds.useQuery`. */
205
+ export declare const useDeviceExportListSupportedDeviceKinds: typeof trpc.deviceExport.listSupportedDeviceKinds.useQuery;
206
+ /** Generated alias around `trpc.deviceExport.listExposedDevices.useQuery`. */
207
+ export declare const useDeviceExportListExposedDevices: typeof trpc.deviceExport.listExposedDevices.useQuery;
208
+ /** Generated alias around `trpc.deviceExport.exposeDevice.useMutation`. */
209
+ export declare const useDeviceExportExposeDevice: typeof trpc.deviceExport.exposeDevice.useMutation;
210
+ /** Generated alias around `trpc.deviceExport.unexposeDevice.useMutation`. */
211
+ export declare const useDeviceExportUnexposeDevice: typeof trpc.deviceExport.unexposeDevice.useMutation;
212
+ /** Generated alias around `trpc.deviceExport.getDeviceSettingsContribution.useQuery`. */
213
+ export declare const useDeviceExportGetDeviceSettingsContribution: typeof trpc.deviceExport.getDeviceSettingsContribution.useQuery;
214
+ /** Generated alias around `trpc.deviceExport.getDeviceLiveContribution.useQuery`. */
215
+ export declare const useDeviceExportGetDeviceLiveContribution: typeof trpc.deviceExport.getDeviceLiveContribution.useQuery;
216
+ /** Generated alias around `trpc.deviceExport.applyDeviceSettingsPatch.useMutation`. */
217
+ export declare const useDeviceExportApplyDeviceSettingsPatch: typeof trpc.deviceExport.applyDeviceSettingsPatch.useMutation;
198
218
  /** Generated alias around `trpc.deviceManager.allocateDeviceId.useMutation`. */
199
219
  export declare const useDeviceManagerAllocateDeviceId: typeof trpc.deviceManager.allocateDeviceId.useMutation;
200
220
  /** Generated alias around `trpc.deviceManager.registerDevice.useMutation`. */
@@ -325,6 +345,8 @@ export declare const useDeviceStateGetCapSlice: typeof trpc.deviceState.getCapSl
325
345
  export declare const useDeviceStateGetAllSnapshots: typeof trpc.deviceState.getAllSnapshots.useQuery;
326
346
  /** Generated alias around `trpc.deviceState.setCapSlice.useMutation`. */
327
347
  export declare const useDeviceStateSetCapSlice: typeof trpc.deviceState.setCapSlice.useMutation;
348
+ /** Generated alias around `trpc.deviceStatus.getStatus.useQuery`. */
349
+ export declare const useDeviceStatusGetStatus: typeof trpc.deviceStatus.getStatus.useQuery;
328
350
  /** Generated alias around `trpc.doorbell.getStatus.useQuery`. */
329
351
  export declare const useDoorbellGetStatus: typeof trpc.doorbell.getStatus.useQuery;
330
352
  /** Generated alias around `trpc.events.getEvents.useQuery`. */
@@ -333,6 +355,8 @@ export declare const useEventsGetEvents: typeof trpc.events.getEvents.useQuery;
333
355
  export declare const useEventsGetEventThumbnail: typeof trpc.events.getEventThumbnail.useQuery;
334
356
  /** Generated alias around `trpc.events.getEventClipUrl.useQuery`. */
335
357
  export declare const useEventsGetEventClipUrl: typeof trpc.events.getEventClipUrl.useQuery;
358
+ /** Generated alias around `trpc.featureProbe.getStatus.useQuery`. */
359
+ export declare const useFeatureProbeGetStatus: typeof trpc.featureProbe.getStatus.useQuery;
336
360
  /** Generated alias around `trpc.integrations.list.useQuery`. */
337
361
  export declare const useIntegrationsList: typeof trpc.integrations.list.useQuery;
338
362
  /** Generated alias around `trpc.integrations.get.useQuery`. */
@@ -359,6 +383,12 @@ export declare const useIntercomStartSession: typeof trpc.intercom.startSession.
359
383
  export declare const useIntercomHandleAnswer: typeof trpc.intercom.handleAnswer.useMutation;
360
384
  /** Generated alias around `trpc.intercom.stopSession.useMutation`. */
361
385
  export declare const useIntercomStopSession: typeof trpc.intercom.stopSession.useMutation;
386
+ /** Generated alias around `trpc.intercom.startTalkSession.useMutation`. */
387
+ export declare const useIntercomStartTalkSession: typeof trpc.intercom.startTalkSession.useMutation;
388
+ /** Generated alias around `trpc.intercom.pushTalkPcm.useMutation`. */
389
+ export declare const useIntercomPushTalkPcm: typeof trpc.intercom.pushTalkPcm.useMutation;
390
+ /** Generated alias around `trpc.intercom.endTalkSession.useMutation`. */
391
+ export declare const useIntercomEndTalkSession: typeof trpc.intercom.endTalkSession.useMutation;
362
392
  /** Generated alias around `trpc.intercom.getStatus.useQuery`. */
363
393
  export declare const useIntercomGetStatus: typeof trpc.intercom.getStatus.useQuery;
364
394
  /** Generated alias around `trpc.localNetwork.list.useQuery`. */
@@ -373,6 +403,18 @@ export declare const useLocalNetworkGetAllowedAddresses: typeof trpc.localNetwor
373
403
  export declare const useLocalNetworkSetAllowedAddresses: typeof trpc.localNetwork.setAllowedAddresses.useMutation;
374
404
  /** Generated alias around `trpc.localNetwork.resetAllowlistToBestMatch.useMutation`. */
375
405
  export declare const useLocalNetworkResetAllowlistToBestMatch: typeof trpc.localNetwork.resetAllowlistToBestMatch.useMutation;
406
+ /** Generated alias around `trpc.meshNetwork.getStatus.useQuery`. */
407
+ export declare const useMeshNetworkGetStatus: typeof trpc.meshNetwork.getStatus.useQuery;
408
+ /** Generated alias around `trpc.meshNetwork.join.useMutation`. */
409
+ export declare const useMeshNetworkJoin: typeof trpc.meshNetwork.join.useMutation;
410
+ /** Generated alias around `trpc.meshNetwork.startLogin.useMutation`. */
411
+ export declare const useMeshNetworkStartLogin: typeof trpc.meshNetwork.startLogin.useMutation;
412
+ /** Generated alias around `trpc.meshNetwork.leave.useMutation`. */
413
+ export declare const useMeshNetworkLeave: typeof trpc.meshNetwork.leave.useMutation;
414
+ /** Generated alias around `trpc.meshNetwork.listPeers.useQuery`. */
415
+ export declare const useMeshNetworkListPeers: typeof trpc.meshNetwork.listPeers.useQuery;
416
+ /** Generated alias around `trpc.meshNetwork.testConnection.useMutation`. */
417
+ export declare const useMeshNetworkTestConnection: typeof trpc.meshNetwork.testConnection.useMutation;
376
418
  /** Generated alias around `trpc.meshOrchestrator.listProviders.useQuery`. */
377
419
  export declare const useMeshOrchestratorListProviders: typeof trpc.meshOrchestrator.listProviders.useQuery;
378
420
  /** Generated alias around `trpc.meshOrchestrator.joinProvider.useMutation`. */
@@ -421,6 +463,22 @@ export declare const useMotionDetectionApplyDeviceSettingsPatch: typeof trpc.mot
421
463
  export declare const useMotionTriggerSetMotionTrigger: typeof trpc.motionTrigger.setMotionTrigger.useMutation;
422
464
  /** Generated alias around `trpc.motionTrigger.getStatus.useQuery`. */
423
465
  export declare const useMotionTriggerGetStatus: typeof trpc.motionTrigger.getStatus.useQuery;
466
+ /** Generated alias around `trpc.mqttBroker.listBrokers.useQuery`. */
467
+ export declare const useMqttBrokerListBrokers: typeof trpc.mqttBroker.listBrokers.useQuery;
468
+ /** Generated alias around `trpc.mqttBroker.getBrokerConfig.useQuery`. */
469
+ export declare const useMqttBrokerGetBrokerConfig: typeof trpc.mqttBroker.getBrokerConfig.useQuery;
470
+ /** Generated alias around `trpc.mqttBroker.addBroker.useMutation`. */
471
+ export declare const useMqttBrokerAddBroker: typeof trpc.mqttBroker.addBroker.useMutation;
472
+ /** Generated alias around `trpc.mqttBroker.removeBroker.useMutation`. */
473
+ export declare const useMqttBrokerRemoveBroker: typeof trpc.mqttBroker.removeBroker.useMutation;
474
+ /** Generated alias around `trpc.mqttBroker.testConnection.useMutation`. */
475
+ export declare const useMqttBrokerTestConnection: typeof trpc.mqttBroker.testConnection.useMutation;
476
+ /** Generated alias around `trpc.mqttBroker.startEmbeddedBroker.useMutation`. */
477
+ export declare const useMqttBrokerStartEmbeddedBroker: typeof trpc.mqttBroker.startEmbeddedBroker.useMutation;
478
+ /** Generated alias around `trpc.mqttBroker.stopEmbeddedBroker.useMutation`. */
479
+ export declare const useMqttBrokerStopEmbeddedBroker: typeof trpc.mqttBroker.stopEmbeddedBroker.useMutation;
480
+ /** Generated alias around `trpc.mqttBroker.getStatus.useQuery`. */
481
+ export declare const useMqttBrokerGetStatus: typeof trpc.mqttBroker.getStatus.useQuery;
424
482
  /** Generated alias around `trpc.nativeObjectDetection.getStatus.useQuery`. */
425
483
  export declare const useNativeObjectDetectionGetStatus: typeof trpc.nativeObjectDetection.getStatus.useQuery;
426
484
  /** Generated alias around `trpc.networkQuality.getDeviceStats.useQuery`. */
@@ -649,6 +707,10 @@ export declare const usePlatformProbeGetHardware: typeof trpc.platformProbe.getH
649
707
  export declare const usePlatformProbeResolveInferenceConfig: typeof trpc.platformProbe.resolveInferenceConfig.useQuery;
650
708
  /** Generated alias around `trpc.platformProbe.resolveHwAccel.useQuery`. */
651
709
  export declare const usePlatformProbeResolveHwAccel: typeof trpc.platformProbe.resolveHwAccel.useQuery;
710
+ /** Generated alias around `trpc.platformProbe.getHardwareEncoders.useQuery`. */
711
+ export declare const usePlatformProbeGetHardwareEncoders: typeof trpc.platformProbe.getHardwareEncoders.useQuery;
712
+ /** Generated alias around `trpc.platformProbe.refreshHardwareEncoders.useMutation`. */
713
+ export declare const usePlatformProbeRefreshHardwareEncoders: typeof trpc.platformProbe.refreshHardwareEncoders.useMutation;
652
714
  /** Generated alias around `trpc.ptz.move.useMutation`. */
653
715
  export declare const usePtzMove: typeof trpc.ptz.move.useMutation;
654
716
  /** Generated alias around `trpc.ptz.continuousMove.useMutation`. */
@@ -821,6 +883,10 @@ export declare const useStreamBrokerKillClient: typeof trpc.streamBroker.killCli
821
883
  export declare const useStreamBrokerRestartProfile: typeof trpc.streamBroker.restartProfile.useMutation;
822
884
  /** Generated alias around `trpc.streamBroker.getStreamUrl.useQuery`. */
823
885
  export declare const useStreamBrokerGetStreamUrl: typeof trpc.streamBroker.getStreamUrl.useQuery;
886
+ /** Generated alias around `trpc.streamBroker.getStreamWithCodec.useMutation`. */
887
+ export declare const useStreamBrokerGetStreamWithCodec: typeof trpc.streamBroker.getStreamWithCodec.useMutation;
888
+ /** Generated alias around `trpc.streamBroker.releaseStreamWithCodec.useMutation`. */
889
+ export declare const useStreamBrokerReleaseStreamWithCodec: typeof trpc.streamBroker.releaseStreamWithCodec.useMutation;
824
890
  /** Generated alias around `trpc.streamBroker.getBroker.useQuery`. */
825
891
  export declare const useStreamBrokerGetBroker: typeof trpc.streamBroker.getBroker.useQuery;
826
892
  /** Generated alias around `trpc.streamBroker.setPreBufferDuration.useMutation`. */
@@ -903,10 +969,22 @@ export declare const useUserManagementRevokeScopedToken: typeof trpc.userManagem
903
969
  export declare const useUserManagementValidateScopedToken: typeof trpc.userManagement.validateScopedToken.useQuery;
904
970
  /** Generated alias around `trpc.userManagement.listScopedTokens.useQuery`. */
905
971
  export declare const useUserManagementListScopedTokens: typeof trpc.userManagement.listScopedTokens.useQuery;
972
+ /** Generated alias around `trpc.userManagement.setupTotp.useMutation`. */
973
+ export declare const useUserManagementSetupTotp: typeof trpc.userManagement.setupTotp.useMutation;
974
+ /** Generated alias around `trpc.userManagement.confirmTotp.useMutation`. */
975
+ export declare const useUserManagementConfirmTotp: typeof trpc.userManagement.confirmTotp.useMutation;
976
+ /** Generated alias around `trpc.userManagement.disableTotp.useMutation`. */
977
+ export declare const useUserManagementDisableTotp: typeof trpc.userManagement.disableTotp.useMutation;
978
+ /** Generated alias around `trpc.userManagement.getTotpStatus.useQuery`. */
979
+ export declare const useUserManagementGetTotpStatus: typeof trpc.userManagement.getTotpStatus.useQuery;
980
+ /** Generated alias around `trpc.userManagement.verifyTotp.useMutation`. */
981
+ export declare const useUserManagementVerifyTotp: typeof trpc.userManagement.verifyTotp.useMutation;
906
982
  /** Generated alias around `trpc.webrtcSession.listStreams.useQuery`. */
907
983
  export declare const useWebrtcSessionListStreams: typeof trpc.webrtcSession.listStreams.useQuery;
908
984
  /** Generated alias around `trpc.webrtcSession.createSession.useMutation`. */
909
985
  export declare const useWebrtcSessionCreateSession: typeof trpc.webrtcSession.createSession.useMutation;
986
+ /** Generated alias around `trpc.webrtcSession.handleOffer.useMutation`. */
987
+ export declare const useWebrtcSessionHandleOffer: typeof trpc.webrtcSession.handleOffer.useMutation;
910
988
  /** Generated alias around `trpc.webrtcSession.handleAnswer.useMutation`. */
911
989
  export declare const useWebrtcSessionHandleAnswer: typeof trpc.webrtcSession.handleAnswer.useMutation;
912
990
  /** Generated alias around `trpc.webrtcSession.closeSession.useMutation`. */