Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update protect-types.ts #48

Merged
merged 3 commits into from
Dec 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 68 additions & 1 deletion src/protect-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ export interface ProtectNvrConfigInterface {
anonymouseDeviceId: string,
availableUpdate: string,
avgMotions: number[],
cameraCapacity: {

state: string,
qualities: {

type: string,
count: number,
fraction: number
}[]
},
cameraUtilization: number,
canAutoUpdate: boolean,
consoleEnv: string,
Expand Down Expand Up @@ -422,6 +432,22 @@ export interface ProtectCameraConfigInterface {
focusMode: string,
focusPosition: number,
hue: number,
hotplug: {

audio: string | null
video: string | null
standaloneAdoption: boolean
extender: {

isAttached: boolean
hasFlash: boolean
flashRange: number
hasIR: boolean
hasRadar: boolean
radarRangeMax: number
radarRangeMin: number
}
},
icrCustomValue: number,
icrSensitivity: number,
irLedLevel: number,
Expand Down Expand Up @@ -573,6 +599,16 @@ export interface ProtectCameraConfigInterface {
wifiQuality: number,
wifiStrength: number
},
streamSharing: {

enabled: boolean,
token: string | null,
shareLink: string | null,
expires: number | null,
sharedByUserId: string | null,
sharedByUser: string | null,
maxStreams: number | null
},
supportedScalingResolutions: string[],
talkbackSettings: {

Expand Down Expand Up @@ -837,7 +873,18 @@ export interface ProtectNvrUserConfigInterface {

alertRules: unknown[],
allPermissions: string[],
cloudAccount: string,
cloudAccount: {

firstName: string,
lastName: string,
email: string,
profileImg: string,
user: string,
id: string,
cloudId: string,
name: string,
modelKey: string
},
email: string,
enableNotifications: boolean,
firstName: string,
Expand Down Expand Up @@ -978,9 +1025,12 @@ export interface ProtectSensorConfigInterface {
canAdopt: boolean,
connectedSince: number,
connectionHost: string,
displayName: string,
firmwareBuild: string,
firmwareVersion: string,
fwUpdateState: string,
hardwareRevision: string,
host: string,
humiditySettings: {

highThreshold: number,
Expand All @@ -994,12 +1044,15 @@ export interface ProtectSensorConfigInterface {
isAdopting: boolean,
isAttemptingToConnect: boolean,
isConnected: boolean,
isDownloadingFW: boolean,
isMotionDetected: boolean,
isOpened: boolean,
isProvisioned: boolean,
isRebooting: boolean,
isRestoring: boolean,
isSshEnabled: boolean,
isUpdating: boolean,
lastDisconnect: number,
lastSeen: number,
latestFirmwareVersion: string,
leakDetectedAt: number,
Expand Down Expand Up @@ -1057,6 +1110,20 @@ export interface ProtectSensorConfigInterface {
type: string,
upSince: number,
uptime: number,
wifiConnectionState: {

apName: string | null,
bssid: string | null,
channel: string | null,
connectivity: string,
experience: null,
frequency: null,
phyRate: number,
signalQuality: number,
signalStrength: number,
ssid: string | null,
txRate: null
},
wiredConnectionState: {

phyRate: number
Expand Down
Loading