@eyenest/contracts 1.4.2 → 1.4.4
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 -0
- package/package.json +1 -1
- package/proto/camera.proto +10 -0
package/gen/ts/camera.ts
CHANGED
|
@@ -16,8 +16,17 @@ export enum Status {
|
|
|
16
16
|
UNRECOGNIZED = -1,
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface GetCameraUserIdByCameraIdRequest {
|
|
20
|
+
cameraId: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface GetCameraUserIdByCameraIdResponse {
|
|
24
|
+
userId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
export interface GetLinkCameraTokenRequest {
|
|
20
28
|
cameraId: string;
|
|
29
|
+
userId: string;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
export interface GetLinkCameraTokenResponse {
|
|
@@ -119,6 +128,8 @@ export interface CameraServiceClient {
|
|
|
119
128
|
getLiveKitCameraToken(request: GetLiveKitCameraTokenRequest): Observable<GetLiveKitCameraTokenResponse>;
|
|
120
129
|
|
|
121
130
|
getLinkCameraToken(request: GetLinkCameraTokenRequest): Observable<GetLinkCameraTokenResponse>;
|
|
131
|
+
|
|
132
|
+
getCameraUserIdByCameraId(request: GetCameraUserIdByCameraIdRequest): Observable<GetCameraUserIdByCameraIdResponse>;
|
|
122
133
|
}
|
|
123
134
|
|
|
124
135
|
export interface CameraServiceController {
|
|
@@ -147,6 +158,13 @@ export interface CameraServiceController {
|
|
|
147
158
|
getLinkCameraToken(
|
|
148
159
|
request: GetLinkCameraTokenRequest,
|
|
149
160
|
): Promise<GetLinkCameraTokenResponse> | Observable<GetLinkCameraTokenResponse> | GetLinkCameraTokenResponse;
|
|
161
|
+
|
|
162
|
+
getCameraUserIdByCameraId(
|
|
163
|
+
request: GetCameraUserIdByCameraIdRequest,
|
|
164
|
+
):
|
|
165
|
+
| Promise<GetCameraUserIdByCameraIdResponse>
|
|
166
|
+
| Observable<GetCameraUserIdByCameraIdResponse>
|
|
167
|
+
| GetCameraUserIdByCameraIdResponse;
|
|
150
168
|
}
|
|
151
169
|
|
|
152
170
|
export function CameraServiceControllerMethods() {
|
|
@@ -160,6 +178,7 @@ export function CameraServiceControllerMethods() {
|
|
|
160
178
|
"getLiveKitViewerToken",
|
|
161
179
|
"getLiveKitCameraToken",
|
|
162
180
|
"getLinkCameraToken",
|
|
181
|
+
"getCameraUserIdByCameraId",
|
|
163
182
|
];
|
|
164
183
|
for (const method of grpcMethods) {
|
|
165
184
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/camera.proto
CHANGED
|
@@ -13,10 +13,20 @@ service CameraService {
|
|
|
13
13
|
rpc GetLiveKitViewerToken (GetLiveKitViewerTokenRequest) returns (GetLiveKitViewerTokenResponse);
|
|
14
14
|
rpc GetLiveKitCameraToken (GetLiveKitCameraTokenRequest) returns (GetLiveKitCameraTokenResponse);
|
|
15
15
|
rpc GetLinkCameraToken(GetLinkCameraTokenRequest) returns (GetLinkCameraTokenResponse);
|
|
16
|
+
rpc GetCameraUserIdByCameraId(GetCameraUserIdByCameraIdRequest) returns (GetCameraUserIdByCameraIdResponse);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message GetCameraUserIdByCameraIdRequest {
|
|
20
|
+
string cameraId = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message GetCameraUserIdByCameraIdResponse {
|
|
24
|
+
string userId = 1;
|
|
16
25
|
}
|
|
17
26
|
|
|
18
27
|
message GetLinkCameraTokenRequest {
|
|
19
28
|
string cameraId = 1;
|
|
29
|
+
string userId = 2;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
message GetLinkCameraTokenResponse {
|