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.
- package/lib/api.d.ts +1 -1
- package/lib/api.js +1 -1
- package/lib/location.d.ts +14 -14
- package/lib/location.js +41 -25
- package/lib/refresh-token.js +0 -1
- package/lib/rest-client.d.ts +1 -1
- package/lib/rest-client.js +1 -1
- package/lib/ring-camera.d.ts +5 -5
- package/lib/ring-camera.js +8 -6
- package/lib/ring-chime.d.ts +2 -2
- package/lib/ring-chime.js +4 -4
- package/lib/ring-device.d.ts +3 -3
- package/lib/ring-device.js +5 -5
- package/lib/ring-intercom.d.ts +3 -3
- package/lib/ring-intercom.js +4 -4
- package/lib/ring-types.d.ts +142 -135
- package/lib/ring-types.js +129 -145
- package/lib/streaming/simple-webrtc-session.d.ts +1 -1
- package/lib/streaming/simple-webrtc-session.js +1 -1
- package/lib/streaming/streaming-messages.d.ts +6 -5
- package/lib/streaming/streaming-messages.js +5 -7
- package/lib/streaming/streaming-session.d.ts +2 -2
- package/lib/streaming/streaming-session.js +2 -2
- package/lib/streaming/webrtc-connection.d.ts +2 -2
- package/lib/streaming/webrtc-connection.js +2 -2
- package/package.json +11 -14
package/lib/ring-types.d.ts
CHANGED
|
@@ -1,106 +1,109 @@
|
|
|
1
1
|
type Firmware = string | 'Up To Date';
|
|
2
|
-
export declare
|
|
3
|
-
BaseStation
|
|
4
|
-
BaseStationPro
|
|
5
|
-
Keypad
|
|
6
|
-
SecurityPanel
|
|
7
|
-
ContactSensor
|
|
8
|
-
MotionSensor
|
|
9
|
-
FloodFreezeSensor
|
|
10
|
-
FreezeSensor
|
|
11
|
-
TemperatureSensor
|
|
12
|
-
WaterSensor
|
|
13
|
-
TiltSensor
|
|
14
|
-
GlassbreakSensor
|
|
15
|
-
RangeExtender
|
|
16
|
-
ZigbeeAdapter
|
|
17
|
-
AccessCodeVault
|
|
18
|
-
AccessCode
|
|
19
|
-
SmokeAlarm
|
|
20
|
-
CoAlarm
|
|
21
|
-
SmokeCoListener
|
|
22
|
-
MultiLevelSwitch
|
|
23
|
-
Fan
|
|
24
|
-
MultiLevelBulb
|
|
25
|
-
Switch
|
|
26
|
-
BeamsMotionSensor
|
|
27
|
-
BeamsSwitch
|
|
28
|
-
BeamsMultiLevelSwitch
|
|
29
|
-
BeamsLightGroupSwitch
|
|
30
|
-
BeamsTransformerSwitch
|
|
31
|
-
BeamsDevice
|
|
32
|
-
RetrofitBridge
|
|
33
|
-
RetrofitZone
|
|
34
|
-
Thermostat
|
|
35
|
-
Sensor
|
|
36
|
-
RingNetAdapter
|
|
37
|
-
CodeVault
|
|
38
|
-
SecurityAccessCode
|
|
39
|
-
ZWaveAdapter
|
|
40
|
-
ZWaveExtender
|
|
41
|
-
PanicButton
|
|
42
|
-
UnknownZWave
|
|
43
|
-
OnvifCamera
|
|
44
|
-
ThirdPartyGarageDoorOpener
|
|
45
|
-
IntercomHandsetAudio
|
|
46
|
-
WaterValve
|
|
47
|
-
}
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
340
|
-
Mechanical
|
|
341
|
-
Digital
|
|
342
|
-
None
|
|
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
|
|
866
|
-
Human
|
|
867
|
-
Loitering
|
|
868
|
-
Motion
|
|
869
|
-
OtherMotion
|
|
870
|
-
NotAvailable
|
|
871
|
-
StreamBroken
|
|
872
|
-
}
|
|
873
|
-
export
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
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
|
|
1031
|
-
Burglar
|
|
1032
|
-
Fire
|
|
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[];
|