@slack-clone-org/contracts 1.0.16 → 1.0.17
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 +8 -2
- package/package.json +1 -1
- package/proto/auth.proto +7 -2
package/generated/auth.ts
CHANGED
|
@@ -10,8 +10,14 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "auth.v1";
|
|
12
12
|
|
|
13
|
+
export enum IdentifierType {
|
|
14
|
+
EMAIL = 0,
|
|
15
|
+
PHONE = 1,
|
|
16
|
+
UNRECOGNIZED = -1,
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
export interface SendOtpRequest {
|
|
14
|
-
identifier:
|
|
20
|
+
identifier: IdentifierType;
|
|
15
21
|
type: string;
|
|
16
22
|
}
|
|
17
23
|
|
|
@@ -20,7 +26,7 @@ export interface SendOtpResponse {
|
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
export interface VerifyOtpRequest {
|
|
23
|
-
identifier:
|
|
29
|
+
identifier: IdentifierType;
|
|
24
30
|
type: string;
|
|
25
31
|
code: string;
|
|
26
32
|
}
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -13,7 +13,7 @@ service AuthService {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
message SendOtpRequest {
|
|
16
|
-
|
|
16
|
+
IdentifierType identifier = 1;
|
|
17
17
|
string type = 2;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ message SendOtpResponse {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message VerifyOtpRequest {
|
|
25
|
-
|
|
25
|
+
IdentifierType identifier = 1;
|
|
26
26
|
string type = 2;
|
|
27
27
|
string code = 3;
|
|
28
28
|
}
|
|
@@ -40,3 +40,8 @@ message RefreshResponse {
|
|
|
40
40
|
string access_token = 1;
|
|
41
41
|
string refresh_token = 2;
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
enum IdentifierType {
|
|
45
|
+
EMAIL = 0;
|
|
46
|
+
PHONE = 1;
|
|
47
|
+
}
|