ring-client-api 14.1.0 → 14.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { RefreshTokenAuth, SessionOptions } from './rest-client.ts';
2
2
  import { RingRestClient } from './rest-client.ts';
3
3
  import { Location } from './location.ts';
4
- import type { BaseStation, BeamBridge, CameraData, ChimeData, IntercomHandsetAudioData, OnvifCameraData, ProfileResponse, ThirdPartyGarageDoorOpener, UnknownDevice, UserLocation } from './ring-types.ts';
4
+ import type { BaseStation, BeamBridge, CameraData, ChimeData, IntercomHandsetData, OnvifCameraData, ProfileResponse, ThirdPartyGarageDoorOpener, UnknownDevice, UserLocation } from './ring-types.ts';
5
5
  import type { AnyCameraData } from './ring-camera.ts';
6
6
  import { RingCamera } from './ring-camera.ts';
7
7
  import { Subscribed } from './subscribed.ts';
@@ -35,7 +35,7 @@ export declare class RingApi extends Subscribed {
35
35
  beamBridges: BeamBridge[];
36
36
  onvifCameras: OnvifCameraData[];
37
37
  thirdPartyGarageDoorOpeners: ThirdPartyGarageDoorOpener[];
38
- intercoms: IntercomHandsetAudioData[];
38
+ intercoms: IntercomHandsetData[];
39
39
  unknownDevices: UnknownDevice[];
40
40
  }>;
41
41
  private listenForDeviceUpdates;
package/lib/api.js CHANGED
@@ -39,6 +39,7 @@ export class RingApi extends Subscribed {
39
39
  case RingDeviceType.OnvifCamera:
40
40
  onvifCameras.push(device);
41
41
  break;
42
+ case RingDeviceType.IntercomHandsetVideo:
42
43
  case RingDeviceType.IntercomHandsetAudio:
43
44
  intercoms.push(device);
44
45
  break;
@@ -1,20 +1,20 @@
1
- import type { IntercomHandsetAudioData, PushNotification } from './ring-types.ts';
1
+ import type { IntercomHandsetData, PushNotification } from './ring-types.ts';
2
2
  import type { RingRestClient } from './rest-client.ts';
3
3
  import { BehaviorSubject, Subject } from 'rxjs';
4
4
  export declare class RingIntercom {
5
5
  id: number;
6
- deviceType: "intercom_handset_audio";
7
- onData: BehaviorSubject<IntercomHandsetAudioData>;
6
+ deviceType: "intercom_handset_audio" | "intercom_handset_video";
7
+ onData: BehaviorSubject<IntercomHandsetData>;
8
8
  onRequestUpdate: Subject<unknown>;
9
9
  onBatteryLevel: import("rxjs").Observable<number | null>;
10
10
  onDing: Subject<void>;
11
11
  onUnlocked: Subject<void>;
12
12
  private initialData;
13
13
  private restClient;
14
- constructor(initialData: IntercomHandsetAudioData, restClient: RingRestClient);
15
- updateData(update: IntercomHandsetAudioData): void;
14
+ constructor(initialData: IntercomHandsetData, restClient: RingRestClient);
15
+ updateData(update: IntercomHandsetData): void;
16
16
  requestUpdate(): void;
17
- get data(): IntercomHandsetAudioData;
17
+ get data(): IntercomHandsetData;
18
18
  get name(): string;
19
19
  get isOffline(): boolean;
20
20
  get batteryLevel(): number | null;
@@ -43,6 +43,7 @@ export declare const RingDeviceType: {
43
43
  readonly OnvifCamera: "onvif_camera";
44
44
  readonly ThirdPartyGarageDoorOpener: "third_party_gdo";
45
45
  readonly IntercomHandsetAudio: "intercom_handset_audio";
46
+ readonly IntercomHandsetVideo: "intercom_handset_video";
46
47
  readonly WaterValve: "valve.water";
47
48
  readonly KiddeSmokeCoAlarm: "comp.bluejay.sensor_bluejay_wsc";
48
49
  };
@@ -540,11 +541,11 @@ export interface ThirdPartyGarageDoorOpener {
540
541
  ring_net_id: null;
541
542
  is_sidewalk_gateway: boolean;
542
543
  }
543
- export interface IntercomHandsetAudioData {
544
+ export interface IntercomHandsetData {
544
545
  id: number;
545
546
  description: string;
546
547
  device_id: string;
547
- kind: typeof RingDeviceType.IntercomHandsetAudio;
548
+ kind: typeof RingDeviceType.IntercomHandsetAudio | typeof RingDeviceType.IntercomHandsetVideo;
548
549
  function: {
549
550
  name: null;
550
551
  };
@@ -906,7 +907,7 @@ export interface PushNotificationDingV2 {
906
907
  device: {
907
908
  e2ee_enabled: boolean;
908
909
  id: number;
909
- kind: RingCameraKind | typeof RingDeviceType.IntercomHandsetAudio;
910
+ kind: RingCameraKind | typeof RingDeviceType.IntercomHandsetAudio | typeof RingDeviceType.IntercomHandsetVideo;
910
911
  name: string;
911
912
  };
912
913
  event: {
package/lib/ring-types.js CHANGED
@@ -42,6 +42,7 @@ export const RingDeviceType = {
42
42
  OnvifCamera: 'onvif_camera',
43
43
  ThirdPartyGarageDoorOpener: 'third_party_gdo',
44
44
  IntercomHandsetAudio: 'intercom_handset_audio',
45
+ IntercomHandsetVideo: 'intercom_handset_video',
45
46
  WaterValve: 'valve.water',
46
47
  KiddeSmokeCoAlarm: 'comp.bluejay.sensor_bluejay_wsc',
47
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ring-client-api",
3
- "version": "14.1.0",
3
+ "version": "14.2.0",
4
4
  "description": "Unofficial API for Ring doorbells, cameras, security alarm system and smart lighting",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "debug": "^4.4.3",
25
25
  "json-bigint": "^1.0.0",
26
26
  "rxjs": "^7.8.2",
27
- "systeminformation": "^5.27.10",
27
+ "systeminformation": "^5.27.11",
28
28
  "undici": "^7.16.0",
29
29
  "uuid": "^13.0.0",
30
30
  "werift": "0.22.2"
@@ -32,14 +32,14 @@
32
32
  "devDependencies": {
33
33
  "@types/debug": "4.1.12",
34
34
  "@types/json-bigint": "^1.0.4",
35
- "@types/node": "24.5.2",
35
+ "@types/node": "24.10.0",
36
36
  "@types/uuid": "11.0.0",
37
37
  "@types/ws": "^8.18.1",
38
38
  "eslint-config-shared": "*",
39
- "msw": "^2.11.3",
39
+ "msw": "^2.12.1",
40
40
  "tsconfig": "*",
41
- "typescript": "5.9.2",
42
- "vitest": "^3.2.4"
41
+ "typescript": "5.9.3",
42
+ "vitest": "^4.0.8"
43
43
  },
44
44
  "engines": {
45
45
  "node": "^20 || ^22 || ^24"