@eyenest/contracts 1.5.3 → 1.5.5
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 +19 -1
- package/gen/ts/video.ts +1 -0
- package/package.json +1 -1
- package/proto/camera.proto +13 -1
- package/proto/video.proto +1 -0
package/gen/ts/camera.ts
CHANGED
|
@@ -16,6 +16,16 @@ export enum Status {
|
|
|
16
16
|
UNRECOGNIZED = -1,
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface UpdateCameraSettingsRequest {
|
|
20
|
+
cameraId: string;
|
|
21
|
+
aiStatus: string;
|
|
22
|
+
recordingStatus: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UpdateCameraSettingsResponse {
|
|
26
|
+
cameraSettings: CameraSettings | undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
export interface GetCameraUserIdByCameraIdRequest {
|
|
20
30
|
cameraId: string;
|
|
21
31
|
}
|
|
@@ -107,7 +117,8 @@ export interface Camera {
|
|
|
107
117
|
|
|
108
118
|
export interface CameraSettings {
|
|
109
119
|
id: string;
|
|
110
|
-
aiStatus:
|
|
120
|
+
aiStatus: string;
|
|
121
|
+
recordingStatus: string;
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
export const CAMERA_V1_PACKAGE_NAME = "camera.v1";
|
|
@@ -130,6 +141,8 @@ export interface CameraServiceClient {
|
|
|
130
141
|
getLinkCameraToken(request: GetLinkCameraTokenRequest): Observable<GetLinkCameraTokenResponse>;
|
|
131
142
|
|
|
132
143
|
getCameraUserIdByCameraId(request: GetCameraUserIdByCameraIdRequest): Observable<GetCameraUserIdByCameraIdResponse>;
|
|
144
|
+
|
|
145
|
+
updateCameraSettings(request: UpdateCameraSettingsRequest): Observable<UpdateCameraSettingsResponse>;
|
|
133
146
|
}
|
|
134
147
|
|
|
135
148
|
export interface CameraServiceController {
|
|
@@ -165,6 +178,10 @@ export interface CameraServiceController {
|
|
|
165
178
|
| Promise<GetCameraUserIdByCameraIdResponse>
|
|
166
179
|
| Observable<GetCameraUserIdByCameraIdResponse>
|
|
167
180
|
| GetCameraUserIdByCameraIdResponse;
|
|
181
|
+
|
|
182
|
+
updateCameraSettings(
|
|
183
|
+
request: UpdateCameraSettingsRequest,
|
|
184
|
+
): Promise<UpdateCameraSettingsResponse> | Observable<UpdateCameraSettingsResponse> | UpdateCameraSettingsResponse;
|
|
168
185
|
}
|
|
169
186
|
|
|
170
187
|
export function CameraServiceControllerMethods() {
|
|
@@ -179,6 +196,7 @@ export function CameraServiceControllerMethods() {
|
|
|
179
196
|
"getLiveKitCameraToken",
|
|
180
197
|
"getLinkCameraToken",
|
|
181
198
|
"getCameraUserIdByCameraId",
|
|
199
|
+
"updateCameraSettings",
|
|
182
200
|
];
|
|
183
201
|
for (const method of grpcMethods) {
|
|
184
202
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/gen/ts/video.ts
CHANGED
package/package.json
CHANGED
package/proto/camera.proto
CHANGED
|
@@ -14,6 +14,17 @@ 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
|
+
}
|
|
19
|
+
|
|
20
|
+
message UpdateCameraSettingsRequest {
|
|
21
|
+
string cameraId = 1;
|
|
22
|
+
string aiStatus = 2;
|
|
23
|
+
string recordingStatus = 3;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message UpdateCameraSettingsResponse {
|
|
27
|
+
CameraSettings cameraSettings = 1;
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
message GetCameraUserIdByCameraIdRequest {
|
|
@@ -106,7 +117,8 @@ message Camera {
|
|
|
106
117
|
|
|
107
118
|
message CameraSettings {
|
|
108
119
|
string id = 1;
|
|
109
|
-
|
|
120
|
+
string aiStatus = 2;
|
|
121
|
+
string recordingStatus = 3;
|
|
110
122
|
}
|
|
111
123
|
|
|
112
124
|
enum Status {
|