@trash-streamers/contracts 1.1.0 → 1.1.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/account.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: account.proto
6
6
 
package/gen/ts/auth.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: auth.proto
6
6
 
@@ -10,9 +10,15 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "auth.v1";
12
12
 
13
+ export enum AuthType {
14
+ PHONE = 0,
15
+ EMAIL = 1,
16
+ UNRECOGNIZED = -1,
17
+ }
18
+
13
19
  export interface SendOtpRequest {
14
20
  identifier: string;
15
- type: string;
21
+ type: AuthType;
16
22
  }
17
23
 
18
24
  export interface SendOtpResponse {
@@ -21,7 +27,7 @@ export interface SendOtpResponse {
21
27
 
22
28
  export interface VerifyOtpRequest {
23
29
  identifier: string;
24
- type: string;
30
+ type: AuthType;
25
31
  code: string;
26
32
  }
27
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
package/proto/auth.proto CHANGED
@@ -10,7 +10,7 @@ service AuthService {
10
10
 
11
11
  message SendOtpRequest{
12
12
  string identifier = 1;
13
- string type = 2;
13
+ AuthType type = 2;
14
14
  }
15
15
 
16
16
  message SendOtpResponse {
@@ -19,7 +19,7 @@ message SendOtpResponse {
19
19
 
20
20
  message VerifyOtpRequest {
21
21
  string identifier = 1;
22
- string type = 2;
22
+ AuthType type = 2;
23
23
  string code = 3;
24
24
  }
25
25
 
@@ -35,4 +35,9 @@ message RefreshRequest {
35
35
  message RefreshResponse {
36
36
  string access_token = 1;
37
37
  string refresh_token = 2;
38
+ }
39
+
40
+ enum AuthType {
41
+ PHONE = 0;
42
+ EMAIL = 1;
38
43
  }