@eyenest/contracts 1.4.1 → 1.4.3
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 +16 -0
- package/package.json +1 -1
- package/proto/camera.proto +10 -0
package/gen/ts/camera.ts
CHANGED
|
@@ -16,6 +16,15 @@ export enum Status {
|
|
|
16
16
|
UNRECOGNIZED = -1,
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface GetLinkCameraTokenRequest {
|
|
20
|
+
cameraId: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface GetLinkCameraTokenResponse {
|
|
25
|
+
token: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
export interface RefreshRequest {
|
|
20
29
|
refreshToken: string;
|
|
21
30
|
}
|
|
@@ -109,6 +118,8 @@ export interface CameraServiceClient {
|
|
|
109
118
|
getLiveKitViewerToken(request: GetLiveKitViewerTokenRequest): Observable<GetLiveKitViewerTokenResponse>;
|
|
110
119
|
|
|
111
120
|
getLiveKitCameraToken(request: GetLiveKitCameraTokenRequest): Observable<GetLiveKitCameraTokenResponse>;
|
|
121
|
+
|
|
122
|
+
getLinkCameraToken(request: GetLinkCameraTokenRequest): Observable<GetLinkCameraTokenResponse>;
|
|
112
123
|
}
|
|
113
124
|
|
|
114
125
|
export interface CameraServiceController {
|
|
@@ -133,6 +144,10 @@ export interface CameraServiceController {
|
|
|
133
144
|
getLiveKitCameraToken(
|
|
134
145
|
request: GetLiveKitCameraTokenRequest,
|
|
135
146
|
): Promise<GetLiveKitCameraTokenResponse> | Observable<GetLiveKitCameraTokenResponse> | GetLiveKitCameraTokenResponse;
|
|
147
|
+
|
|
148
|
+
getLinkCameraToken(
|
|
149
|
+
request: GetLinkCameraTokenRequest,
|
|
150
|
+
): Promise<GetLinkCameraTokenResponse> | Observable<GetLinkCameraTokenResponse> | GetLinkCameraTokenResponse;
|
|
136
151
|
}
|
|
137
152
|
|
|
138
153
|
export function CameraServiceControllerMethods() {
|
|
@@ -145,6 +160,7 @@ export function CameraServiceControllerMethods() {
|
|
|
145
160
|
"refresh",
|
|
146
161
|
"getLiveKitViewerToken",
|
|
147
162
|
"getLiveKitCameraToken",
|
|
163
|
+
"getLinkCameraToken",
|
|
148
164
|
];
|
|
149
165
|
for (const method of grpcMethods) {
|
|
150
166
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/camera.proto
CHANGED
|
@@ -12,6 +12,16 @@ service CameraService {
|
|
|
12
12
|
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
13
13
|
rpc GetLiveKitViewerToken (GetLiveKitViewerTokenRequest) returns (GetLiveKitViewerTokenResponse);
|
|
14
14
|
rpc GetLiveKitCameraToken (GetLiveKitCameraTokenRequest) returns (GetLiveKitCameraTokenResponse);
|
|
15
|
+
rpc GetLinkCameraToken(GetLinkCameraTokenRequest) returns (GetLinkCameraTokenResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message GetLinkCameraTokenRequest {
|
|
19
|
+
string cameraId = 1;
|
|
20
|
+
string userId = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message GetLinkCameraTokenResponse {
|
|
24
|
+
string token = 1;
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
message RefreshRequest {
|