@eyenest/contracts 1.5.4 → 1.5.6

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/gen/ts/camera.ts CHANGED
@@ -16,6 +16,24 @@ export enum Status {
16
16
  UNRECOGNIZED = -1,
17
17
  }
18
18
 
19
+ export interface GetCameraByIdRequest {
20
+ cameraId: string;
21
+ }
22
+
23
+ export interface GetCameraByIdResponse {
24
+ camera: Camera | undefined;
25
+ }
26
+
27
+ export interface UpdateCameraSettingsRequest {
28
+ cameraId: string;
29
+ aiStatus: string;
30
+ recordingStatus: string;
31
+ }
32
+
33
+ export interface UpdateCameraSettingsResponse {
34
+ cameraSettings: CameraSettings | undefined;
35
+ }
36
+
19
37
  export interface GetCameraUserIdByCameraIdRequest {
20
38
  cameraId: string;
21
39
  }
@@ -102,12 +120,14 @@ export interface Location {
102
120
  export interface Camera {
103
121
  id: string;
104
122
  name: string;
123
+ locationId: string;
105
124
  cameraSettings: CameraSettings | undefined;
106
125
  }
107
126
 
108
127
  export interface CameraSettings {
109
128
  id: string;
110
- aiStatus: Status;
129
+ aiStatus: string;
130
+ recordingStatus: string;
111
131
  }
112
132
 
113
133
  export const CAMERA_V1_PACKAGE_NAME = "camera.v1";
@@ -130,6 +150,10 @@ export interface CameraServiceClient {
130
150
  getLinkCameraToken(request: GetLinkCameraTokenRequest): Observable<GetLinkCameraTokenResponse>;
131
151
 
132
152
  getCameraUserIdByCameraId(request: GetCameraUserIdByCameraIdRequest): Observable<GetCameraUserIdByCameraIdResponse>;
153
+
154
+ updateCameraSettings(request: UpdateCameraSettingsRequest): Observable<UpdateCameraSettingsResponse>;
155
+
156
+ getCameraById(request: GetCameraByIdRequest): Observable<GetCameraByIdResponse>;
133
157
  }
134
158
 
135
159
  export interface CameraServiceController {
@@ -165,6 +189,14 @@ export interface CameraServiceController {
165
189
  | Promise<GetCameraUserIdByCameraIdResponse>
166
190
  | Observable<GetCameraUserIdByCameraIdResponse>
167
191
  | GetCameraUserIdByCameraIdResponse;
192
+
193
+ updateCameraSettings(
194
+ request: UpdateCameraSettingsRequest,
195
+ ): Promise<UpdateCameraSettingsResponse> | Observable<UpdateCameraSettingsResponse> | UpdateCameraSettingsResponse;
196
+
197
+ getCameraById(
198
+ request: GetCameraByIdRequest,
199
+ ): Promise<GetCameraByIdResponse> | Observable<GetCameraByIdResponse> | GetCameraByIdResponse;
168
200
  }
169
201
 
170
202
  export function CameraServiceControllerMethods() {
@@ -179,6 +211,8 @@ export function CameraServiceControllerMethods() {
179
211
  "getLiveKitCameraToken",
180
212
  "getLinkCameraToken",
181
213
  "getCameraUserIdByCameraId",
214
+ "updateCameraSettings",
215
+ "getCameraById",
182
216
  ];
183
217
  for (const method of grpcMethods) {
184
218
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyenest/contracts",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,6 +14,26 @@ service CameraService {
14
14
  rpc GetLiveKitCameraToken (GetLiveKitCameraTokenRequest) returns (GetLiveKitCameraTokenResponse);
15
15
  rpc GetLinkCameraToken(GetLinkCameraTokenRequest) returns (GetLinkCameraTokenResponse);
16
16
  rpc GetCameraUserIdByCameraId(GetCameraUserIdByCameraIdRequest) returns (GetCameraUserIdByCameraIdResponse);
17
+ rpc UpdateCameraSettings(UpdateCameraSettingsRequest) returns (UpdateCameraSettingsResponse);
18
+ rpc GetCameraById(GetCameraByIdRequest) returns (GetCameraByIdResponse);
19
+ }
20
+
21
+ message GetCameraByIdRequest {
22
+ string cameraId = 1;
23
+ }
24
+
25
+ message GetCameraByIdResponse {
26
+ Camera camera = 1;
27
+ }
28
+
29
+ message UpdateCameraSettingsRequest {
30
+ string cameraId = 1;
31
+ string aiStatus = 2;
32
+ string recordingStatus = 3;
33
+ }
34
+
35
+ message UpdateCameraSettingsResponse {
36
+ CameraSettings cameraSettings = 1;
17
37
  }
18
38
 
19
39
  message GetCameraUserIdByCameraIdRequest {
@@ -101,12 +121,14 @@ message Location {
101
121
  message Camera {
102
122
  string id = 1;
103
123
  string name = 2;
104
- CameraSettings cameraSettings = 3;
124
+ string locationId = 3;
125
+ CameraSettings cameraSettings = 4;
105
126
  }
106
127
 
107
128
  message CameraSettings {
108
129
  string id = 1;
109
- Status aiStatus = 2;
130
+ string aiStatus = 2;
131
+ string recordingStatus = 3;
110
132
  }
111
133
 
112
134
  enum Status {