@eyenest/contracts 1.5.0 → 1.5.1

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/video.ts CHANGED
@@ -18,21 +18,35 @@ export interface StartRecordingResponse {
18
18
  egressId: string;
19
19
  }
20
20
 
21
+ export interface StopRecordingRequest {
22
+ roomId: string;
23
+ }
24
+
25
+ export interface StopRecordingResponse {
26
+ egressId: string;
27
+ }
28
+
21
29
  export const VIDEO_V1_PACKAGE_NAME = "video.v1";
22
30
 
23
31
  export interface VideoServiceClient {
24
32
  startRecording(request: StartRecordingRequest): Observable<StartRecordingResponse>;
33
+
34
+ stopRecording(request: StopRecordingRequest): Observable<StopRecordingResponse>;
25
35
  }
26
36
 
27
37
  export interface VideoServiceController {
28
38
  startRecording(
29
39
  request: StartRecordingRequest,
30
40
  ): Promise<StartRecordingResponse> | Observable<StartRecordingResponse> | StartRecordingResponse;
41
+
42
+ stopRecording(
43
+ request: StopRecordingRequest,
44
+ ): Promise<StopRecordingResponse> | Observable<StopRecordingResponse> | StopRecordingResponse;
31
45
  }
32
46
 
33
47
  export function VideoServiceControllerMethods() {
34
48
  return function (constructor: Function) {
35
- const grpcMethods: string[] = ["startRecording"];
49
+ const grpcMethods: string[] = ["startRecording", "stopRecording"];
36
50
  for (const method of grpcMethods) {
37
51
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
38
52
  GrpcMethod("VideoService", method)(constructor.prototype[method], method, descriptor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyenest/contracts",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/video.proto CHANGED
@@ -4,6 +4,7 @@ package video.v1;
4
4
 
5
5
  service VideoService {
6
6
  rpc StartRecording (StartRecordingRequest) returns (StartRecordingResponse);
7
+ rpc StopRecording (StopRecordingRequest) returns (StopRecordingResponse);
7
8
  }
8
9
 
9
10
  message StartRecordingRequest {
@@ -11,4 +12,10 @@ message StartRecordingRequest {
11
12
  }
12
13
  message StartRecordingResponse {
13
14
  string egressId = 1;
15
+ }
16
+ message StopRecordingRequest {
17
+ string roomId = 1;
18
+ }
19
+ message StopRecordingResponse {
20
+ string egressId = 1;
14
21
  }