ring-client-api 14.0.0-beta.0 → 14.0.0-beta.2

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.
@@ -1,106 +1,109 @@
1
1
  type Firmware = string | 'Up To Date';
2
- export declare enum RingDeviceType {
3
- BaseStation = "hub.redsky",
4
- BaseStationPro = "hub.kili",
5
- Keypad = "security-keypad",
6
- SecurityPanel = "security-panel",
7
- ContactSensor = "sensor.contact",
8
- MotionSensor = "sensor.motion",
9
- FloodFreezeSensor = "sensor.flood-freeze",
10
- FreezeSensor = "sensor.freeze",
11
- TemperatureSensor = "sensor.temperature",
12
- WaterSensor = "sensor.water",
13
- TiltSensor = "sensor.tilt",
14
- GlassbreakSensor = "sensor.glassbreak",
15
- RangeExtender = "range-extender.zwave",
16
- ZigbeeAdapter = "adapter.zigbee",
17
- AccessCodeVault = "access-code.vault",
18
- AccessCode = "access-code",
19
- SmokeAlarm = "alarm.smoke",
20
- CoAlarm = "alarm.co",
21
- SmokeCoListener = "listener.smoke-co",
22
- MultiLevelSwitch = "switch.multilevel",
23
- Fan = "switch.multilevel",
24
- MultiLevelBulb = "switch.multilevel.bulb",
25
- Switch = "switch",
26
- BeamsMotionSensor = "motion-sensor.beams",
27
- BeamsSwitch = "switch.beams",
28
- BeamsMultiLevelSwitch = "switch.multilevel.beams",
29
- BeamsLightGroupSwitch = "group.light-group.beams",
30
- BeamsTransformerSwitch = "switch.transformer.beams",
31
- BeamsDevice = "device.beams",
32
- RetrofitBridge = "bridge.flatline",
33
- RetrofitZone = "sensor.zone",
34
- Thermostat = "temperature-control.thermostat",
35
- Sensor = "sensor",
36
- RingNetAdapter = "adapter.ringnet",
37
- CodeVault = "access-code.vault",
38
- SecurityAccessCode = "access-code",
39
- ZWaveAdapter = "adapter.zwave",
40
- ZWaveExtender = "range-extender.zwave",
41
- PanicButton = "security-panic",
42
- UnknownZWave = "unknown.zwave",
43
- OnvifCamera = "onvif_camera",
44
- ThirdPartyGarageDoorOpener = "third_party_gdo",
45
- IntercomHandsetAudio = "intercom_handset_audio",
46
- WaterValve = "valve.water"
47
- }
48
- export declare enum RingDeviceCategory {
49
- Outlets = 1,
50
- Lights = 2,
51
- Sensors = 5,
52
- Appliances = 7,
53
- Locks = 10,
54
- Thermostats = 11,
55
- Cameras = 12,
56
- Alarms = 15,
57
- Fans = 17,
58
- Security = 22,
59
- Unknown = 29,
60
- SensorsMotion = 30,
61
- Controller = 31,
62
- RangeExtenders = 32,
63
- Keypads = 33,
64
- Sirens = 34,
65
- PanicButtons = 35,
66
- WaterValves = 37
67
- }
68
- export declare enum RingCameraKind {
69
- doorbot = "doorbot",
70
- doorbell = "doorbell",
71
- doorbell_v3 = "doorbell_v3",
72
- doorbell_v4 = "doorbell_v4",
73
- doorbell_v5 = "doorbell_v5",
74
- doorbell_oyster = "doorbell_oyster",// used for the Ring Video Doorbell 4
75
- doorbell_portal = "doorbell_portal",
76
- doorbell_scallop = "doorbell_scallop",
77
- doorbell_scallop_lite = "doorbell_scallop_lite",
78
- doorbell_graham_cracker = "doorbell_graham_cracker",
79
- lpd_v1 = "lpd_v1",
80
- lpd_v2 = "lpd_v2",
81
- lpd_v4 = "lpd_v4",
82
- jbox_v1 = "jbox_v1",
83
- stickup_cam = "stickup_cam",
84
- stickup_cam_v3 = "stickup_cam_v3",
85
- stickup_cam_elite = "stickup_cam_elite",
86
- stickup_cam_longfin = "stickup_cam_longfin",
87
- stickup_cam_lunar = "stickup_cam_lunar",
88
- spotlightw_v2 = "spotlightw_v2",
89
- hp_cam_v1 = "hp_cam_v1",
90
- hp_cam_v2 = "hp_cam_v2",
91
- stickup_cam_v4 = "stickup_cam_v4",
92
- floodlight_v1 = "floodlight_v1",
93
- floodlight_v2 = "floodlight_v2",
94
- floodlight_pro = "floodlight_pro",
95
- cocoa_camera = "cocoa_camera",// appears to be used for all next gen stickup cams (wired/battery/solar)
96
- cocoa_doorbell = "cocoa_doorbell",
97
- cocoa_doorbell_v2 = "cocoa_doorbell_v2",
98
- cocoa_doorbell_v3 = "cocoa_doorbell_v3",
99
- cocoa_floodlight = "cocoa_floodlight",
100
- cocoa_spotlight = "cocoa_spotlight",// used for the Spotlight Cam Plus (potentially other Spotlight models)
101
- stickup_cam_mini = "stickup_cam_mini",
102
- onvif_camera = "onvif_camera"
103
- }
2
+ export declare const RingDeviceType: {
3
+ readonly BaseStation: "hub.redsky";
4
+ readonly BaseStationPro: "hub.kili";
5
+ readonly Keypad: "security-keypad";
6
+ readonly SecurityPanel: "security-panel";
7
+ readonly ContactSensor: "sensor.contact";
8
+ readonly MotionSensor: "sensor.motion";
9
+ readonly FloodFreezeSensor: "sensor.flood-freeze";
10
+ readonly FreezeSensor: "sensor.freeze";
11
+ readonly TemperatureSensor: "sensor.temperature";
12
+ readonly WaterSensor: "sensor.water";
13
+ readonly TiltSensor: "sensor.tilt";
14
+ readonly GlassbreakSensor: "sensor.glassbreak";
15
+ readonly RangeExtender: "range-extender.zwave";
16
+ readonly ZigbeeAdapter: "adapter.zigbee";
17
+ readonly AccessCodeVault: "access-code.vault";
18
+ readonly AccessCode: "access-code";
19
+ readonly SmokeAlarm: "alarm.smoke";
20
+ readonly CoAlarm: "alarm.co";
21
+ readonly SmokeCoListener: "listener.smoke-co";
22
+ readonly MultiLevelSwitch: "switch.multilevel";
23
+ readonly Fan: "switch.multilevel";
24
+ readonly MultiLevelBulb: "switch.multilevel.bulb";
25
+ readonly Switch: "switch";
26
+ readonly BeamsMotionSensor: "motion-sensor.beams";
27
+ readonly BeamsSwitch: "switch.beams";
28
+ readonly BeamsMultiLevelSwitch: "switch.multilevel.beams";
29
+ readonly BeamsLightGroupSwitch: "group.light-group.beams";
30
+ readonly BeamsTransformerSwitch: "switch.transformer.beams";
31
+ readonly BeamsDevice: "device.beams";
32
+ readonly RetrofitBridge: "bridge.flatline";
33
+ readonly RetrofitZone: "sensor.zone";
34
+ readonly Thermostat: "temperature-control.thermostat";
35
+ readonly Sensor: "sensor";
36
+ readonly RingNetAdapter: "adapter.ringnet";
37
+ readonly CodeVault: "access-code.vault";
38
+ readonly SecurityAccessCode: "access-code";
39
+ readonly ZWaveAdapter: "adapter.zwave";
40
+ readonly ZWaveExtender: "range-extender.zwave";
41
+ readonly PanicButton: "security-panic";
42
+ readonly UnknownZWave: "unknown.zwave";
43
+ readonly OnvifCamera: "onvif_camera";
44
+ readonly ThirdPartyGarageDoorOpener: "third_party_gdo";
45
+ readonly IntercomHandsetAudio: "intercom_handset_audio";
46
+ readonly WaterValve: "valve.water";
47
+ };
48
+ export type RingDeviceType = (typeof RingDeviceType)[keyof typeof RingDeviceType];
49
+ export declare const RingDeviceCategory: {
50
+ readonly Outlets: 1;
51
+ readonly Lights: 2;
52
+ readonly Sensors: 5;
53
+ readonly Appliances: 7;
54
+ readonly Locks: 10;
55
+ readonly Thermostats: 11;
56
+ readonly Cameras: 12;
57
+ readonly Alarms: 15;
58
+ readonly Fans: 17;
59
+ readonly Security: 22;
60
+ readonly Unknown: 29;
61
+ readonly SensorsMotion: 30;
62
+ readonly Controller: 31;
63
+ readonly RangeExtenders: 32;
64
+ readonly Keypads: 33;
65
+ readonly Sirens: 34;
66
+ readonly PanicButtons: 35;
67
+ readonly WaterValves: 37;
68
+ };
69
+ export type RingDeviceCategory = (typeof RingDeviceCategory)[keyof typeof RingDeviceCategory];
70
+ export declare const RingCameraKind: {
71
+ readonly doorbot: "doorbot";
72
+ readonly doorbell: "doorbell";
73
+ readonly doorbell_v3: "doorbell_v3";
74
+ readonly doorbell_v4: "doorbell_v4";
75
+ readonly doorbell_v5: "doorbell_v5";
76
+ readonly doorbell_oyster: "doorbell_oyster";
77
+ readonly doorbell_portal: "doorbell_portal";
78
+ readonly doorbell_scallop: "doorbell_scallop";
79
+ readonly doorbell_scallop_lite: "doorbell_scallop_lite";
80
+ readonly doorbell_graham_cracker: "doorbell_graham_cracker";
81
+ readonly lpd_v1: "lpd_v1";
82
+ readonly lpd_v2: "lpd_v2";
83
+ readonly lpd_v4: "lpd_v4";
84
+ readonly jbox_v1: "jbox_v1";
85
+ readonly stickup_cam: "stickup_cam";
86
+ readonly stickup_cam_v3: "stickup_cam_v3";
87
+ readonly stickup_cam_elite: "stickup_cam_elite";
88
+ readonly stickup_cam_longfin: "stickup_cam_longfin";
89
+ readonly stickup_cam_lunar: "stickup_cam_lunar";
90
+ readonly spotlightw_v2: "spotlightw_v2";
91
+ readonly hp_cam_v1: "hp_cam_v1";
92
+ readonly hp_cam_v2: "hp_cam_v2";
93
+ readonly stickup_cam_v4: "stickup_cam_v4";
94
+ readonly floodlight_v1: "floodlight_v1";
95
+ readonly floodlight_v2: "floodlight_v2";
96
+ readonly floodlight_pro: "floodlight_pro";
97
+ readonly cocoa_camera: "cocoa_camera";
98
+ readonly cocoa_doorbell: "cocoa_doorbell";
99
+ readonly cocoa_doorbell_v2: "cocoa_doorbell_v2";
100
+ readonly cocoa_doorbell_v3: "cocoa_doorbell_v3";
101
+ readonly cocoa_floodlight: "cocoa_floodlight";
102
+ readonly cocoa_spotlight: "cocoa_spotlight";
103
+ readonly stickup_cam_mini: "stickup_cam_mini";
104
+ readonly onvif_camera: "onvif_camera";
105
+ };
106
+ export type RingCameraKind = (typeof RingCameraKind)[keyof typeof RingCameraKind];
104
107
  export declare const RingCameraModel: {
105
108
  readonly [P in RingCameraKind]: string;
106
109
  };
@@ -336,11 +339,12 @@ export interface TicketAsset {
336
339
  status: 'online' | 'offline';
337
340
  uuid: string;
338
341
  }
339
- export declare enum DoorbellType {
340
- Mechanical = 0,
341
- Digital = 1,
342
- None = 2
343
- }
342
+ export declare const DoorbellType: {
343
+ readonly Mechanical: 0;
344
+ readonly Digital: 1;
345
+ readonly None: 2;
346
+ };
347
+ export type DoorbellType = (typeof DoorbellType)[keyof typeof DoorbellType];
344
348
  export interface BaseCameraData {
345
349
  alerts: {
346
350
  connection: 'online' | 'offline' | string;
@@ -483,7 +487,7 @@ export interface BaseCameraData {
483
487
  };
484
488
  }
485
489
  export interface CameraData extends BaseCameraData {
486
- kind: Omit<RingCameraKind, RingCameraKind.onvif_camera>;
490
+ kind: Omit<RingCameraKind, typeof RingCameraKind.onvif_camera>;
487
491
  address: string;
488
492
  battery_life: number | string | null;
489
493
  battery_life_2?: number | string | null;
@@ -497,7 +501,7 @@ export interface CameraData extends BaseCameraData {
497
501
  stolen: boolean;
498
502
  }
499
503
  export interface OnvifCameraData extends BaseCameraData {
500
- kind: RingCameraKind.onvif_camera;
504
+ kind: typeof RingCameraKind.onvif_camera;
501
505
  metadata: {
502
506
  legacy_fw_migrated: boolean;
503
507
  imported_from_amazon: boolean;
@@ -515,7 +519,7 @@ export interface OnvifCameraData extends BaseCameraData {
515
519
  }
516
520
  export interface ThirdPartyGarageDoorOpener {
517
521
  id: number;
518
- kind: RingDeviceType.ThirdPartyGarageDoorOpener;
522
+ kind: typeof RingDeviceType.ThirdPartyGarageDoorOpener;
519
523
  description: string;
520
524
  location_id: string;
521
525
  owner_id: number;
@@ -539,7 +543,7 @@ export interface IntercomHandsetAudioData {
539
543
  id: number;
540
544
  description: string;
541
545
  device_id: string;
542
- kind: RingDeviceType.IntercomHandsetAudio;
546
+ kind: typeof RingDeviceType.IntercomHandsetAudio;
543
547
  function: {
544
548
  name: null;
545
549
  };
@@ -862,24 +866,26 @@ export interface RingDeviceHistoryEvent {
862
866
  body: any;
863
867
  }
864
868
  export type DingState = 'ringing' | 'connected' | 'timed_out' | 'completed';
865
- export declare enum NotificationDetectionType {
866
- Human = "human",
867
- Loitering = "loitering",
868
- Motion = "motion",
869
- OtherMotion = "other_motion",
870
- NotAvailable = "null",
871
- StreamBroken = "stream_broken"
872
- }
873
- export declare enum PushNotificationAction {
874
- Ding = "com.ring.pn.live-event.ding",
875
- Motion = "com.ring.pn.live-event.motion",
876
- IntercomDing = "com.ring.pn.live-event.intercom",
877
- IntercomUnlock = "com.ring.push.INTERCOM_UNLOCK_FROM_APP",
878
- AlarmModeNone = "com.ring.push.HANDLE_NEW_SECURITY_PANEL_MODE_NONE_NOTICE",
879
- AlarmModeSome = "com.ring.push.HANDLE_NEW_SECURITY_PANEL_MODE_SOME_NOTICE",
880
- AlarmSoundSiren = "com.ring.push.HANDLE_NEW_USER_SOUND_SIREN",
881
- AlarmSilenceSiren = "com.ring.push.HANDLE_NEW_NON_ALARM_SIREN_SILENCED"
882
- }
869
+ export declare const NotificationDetectionType: {
870
+ readonly Human: "human";
871
+ readonly Loitering: "loitering";
872
+ readonly Motion: "motion";
873
+ readonly OtherMotion: "other_motion";
874
+ readonly NotAvailable: "null";
875
+ readonly StreamBroken: "stream_broken";
876
+ };
877
+ export type NotificationDetectionType = (typeof NotificationDetectionType)[keyof typeof NotificationDetectionType];
878
+ export declare const PushNotificationAction: {
879
+ readonly Ding: "com.ring.pn.live-event.ding";
880
+ readonly Motion: "com.ring.pn.live-event.motion";
881
+ readonly IntercomDing: "com.ring.pn.live-event.intercom";
882
+ readonly IntercomUnlock: "com.ring.push.INTERCOM_UNLOCK_FROM_APP";
883
+ readonly AlarmModeNone: "com.ring.push.HANDLE_NEW_SECURITY_PANEL_MODE_NONE_NOTICE";
884
+ readonly AlarmModeSome: "com.ring.push.HANDLE_NEW_SECURITY_PANEL_MODE_SOME_NOTICE";
885
+ readonly AlarmSoundSiren: "com.ring.push.HANDLE_NEW_USER_SOUND_SIREN";
886
+ readonly AlarmSilenceSiren: "com.ring.push.HANDLE_NEW_NON_ALARM_SIREN_SILENCED";
887
+ };
888
+ export type PushNotificationAction = (typeof PushNotificationAction)[keyof typeof PushNotificationAction];
883
889
  export interface PushNotificationDingV2 {
884
890
  version: '2.0.0' | string;
885
891
  android_config: {
@@ -899,7 +905,7 @@ export interface PushNotificationDingV2 {
899
905
  device: {
900
906
  e2ee_enabled: boolean;
901
907
  id: number;
902
- kind: RingCameraKind | RingDeviceType.IntercomHandsetAudio;
908
+ kind: RingCameraKind | typeof RingDeviceType.IntercomHandsetAudio;
903
909
  name: string;
904
910
  };
905
911
  event: {
@@ -949,7 +955,7 @@ interface PushNotificationIntercomUnlock {
949
955
  aps: {
950
956
  alert: string;
951
957
  };
952
- action: PushNotificationAction.IntercomUnlock;
958
+ action: typeof PushNotificationAction.IntercomUnlock;
953
959
  alarm_meta: {
954
960
  device_zid: number;
955
961
  location_id: string;
@@ -1027,10 +1033,11 @@ export interface AccountMonitoringStatus {
1027
1033
  cmsMonitoringType: 'full' | string;
1028
1034
  dispatchSetupComplete: boolean;
1029
1035
  }
1030
- export declare enum DispatchSignalType {
1031
- Burglar = "user-verified-burglar-xa",
1032
- Fire = "user-verified-fire-xa"
1033
- }
1036
+ export declare const DispatchSignalType: {
1037
+ readonly Burglar: "user-verified-burglar-xa";
1038
+ readonly Fire: "user-verified-fire-xa";
1039
+ };
1040
+ export type DispatchSignalType = (typeof DispatchSignalType)[keyof typeof DispatchSignalType];
1034
1041
  export type LocationModeInput = 'home' | 'away' | 'disarmed';
1035
1042
  export type LocationMode = LocationModeInput | 'disabled' | 'unset';
1036
1043
  export declare const disabledLocationModes: LocationMode[];