@sync-chat/contracts 1.0.3 → 1.0.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/generated/auth.ts CHANGED
@@ -10,23 +10,23 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "auth.v1";
12
12
 
13
- export interface SendOTPRequest {
13
+ export interface SendOtpRequest {
14
14
  identifier: string;
15
15
  type: string;
16
16
  }
17
17
 
18
- export interface SendOTPResponse {
18
+ export interface SendOtpResponse {
19
19
  ok: boolean;
20
20
  }
21
21
 
22
22
  export const AUTH_V1_PACKAGE_NAME = "auth.v1";
23
23
 
24
24
  export interface AuthServiceClient {
25
- sendOtp(request: SendOTPRequest): Observable<SendOTPResponse>;
25
+ sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
26
26
  }
27
27
 
28
28
  export interface AuthServiceController {
29
- sendOtp(request: SendOTPRequest): Promise<SendOTPResponse> | Observable<SendOTPResponse> | SendOTPResponse;
29
+ sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
30
30
  }
31
31
 
32
32
  export function AuthServiceControllerMethods() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sync-chat/contracts",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./generated --ts_proto_opt=nestJs=true,package=omit"
package/proto/auth.proto CHANGED
@@ -2,14 +2,14 @@ syntax = "proto3";
2
2
  package auth.v1;
3
3
 
4
4
  service AuthService {
5
- rpc SendOtp(SendOTPRequest) returns (SendOTPResponse);
5
+ rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
6
6
  }
7
7
 
8
- message SendOTPRequest {
8
+ message SendOtpRequest {
9
9
  string identifier = 1;
10
10
  string type = 2;
11
11
  }
12
12
 
13
- message SendOTPResponse {
13
+ message SendOtpResponse {
14
14
  bool ok = 1;
15
15
  }