@eyenest/contracts 1.4.1 → 1.4.2

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,14 @@ export enum Status {
16
16
  UNRECOGNIZED = -1,
17
17
  }
18
18
 
19
+ export interface GetLinkCameraTokenRequest {
20
+ cameraId: string;
21
+ }
22
+
23
+ export interface GetLinkCameraTokenResponse {
24
+ token: string;
25
+ }
26
+
19
27
  export interface RefreshRequest {
20
28
  refreshToken: string;
21
29
  }
@@ -109,6 +117,8 @@ export interface CameraServiceClient {
109
117
  getLiveKitViewerToken(request: GetLiveKitViewerTokenRequest): Observable<GetLiveKitViewerTokenResponse>;
110
118
 
111
119
  getLiveKitCameraToken(request: GetLiveKitCameraTokenRequest): Observable<GetLiveKitCameraTokenResponse>;
120
+
121
+ getLinkCameraToken(request: GetLinkCameraTokenRequest): Observable<GetLinkCameraTokenResponse>;
112
122
  }
113
123
 
114
124
  export interface CameraServiceController {
@@ -133,6 +143,10 @@ export interface CameraServiceController {
133
143
  getLiveKitCameraToken(
134
144
  request: GetLiveKitCameraTokenRequest,
135
145
  ): Promise<GetLiveKitCameraTokenResponse> | Observable<GetLiveKitCameraTokenResponse> | GetLiveKitCameraTokenResponse;
146
+
147
+ getLinkCameraToken(
148
+ request: GetLinkCameraTokenRequest,
149
+ ): Promise<GetLinkCameraTokenResponse> | Observable<GetLinkCameraTokenResponse> | GetLinkCameraTokenResponse;
136
150
  }
137
151
 
138
152
  export function CameraServiceControllerMethods() {
@@ -145,6 +159,7 @@ export function CameraServiceControllerMethods() {
145
159
  "refresh",
146
160
  "getLiveKitViewerToken",
147
161
  "getLiveKitCameraToken",
162
+ "getLinkCameraToken",
148
163
  ];
149
164
  for (const method of grpcMethods) {
150
165
  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.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,6 +12,15 @@ 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
+ }
21
+
22
+ message GetLinkCameraTokenResponse {
23
+ string token = 1;
15
24
  }
16
25
 
17
26
  message RefreshRequest {