@barumetric/contracts 1.2.5 → 1.2.6
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/auth.ts +24 -0
- package/package.json +1 -1
- package/proto/auth.proto +24 -0
package/gen/ts/auth.ts
CHANGED
|
@@ -24,11 +24,33 @@ export interface VerifyOtpRequest {
|
|
|
24
24
|
identifier: string;
|
|
25
25
|
type: string;
|
|
26
26
|
code: string;
|
|
27
|
+
sessionMetadata: SessionMetadata | undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface SessionMetadata {
|
|
31
|
+
location: LocationInfo | undefined;
|
|
32
|
+
device: DeviceInfo | undefined;
|
|
33
|
+
ip: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface LocationInfo {
|
|
37
|
+
country: string;
|
|
38
|
+
city: string;
|
|
39
|
+
latidute: number;
|
|
40
|
+
longitude: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface DeviceInfo {
|
|
44
|
+
browser: string;
|
|
45
|
+
os: string;
|
|
46
|
+
type: string;
|
|
27
47
|
}
|
|
28
48
|
|
|
29
49
|
export interface VerifyOtpResponse {
|
|
30
50
|
accessToken: string;
|
|
31
51
|
refreshToken: string;
|
|
52
|
+
sessionToken: string;
|
|
53
|
+
userId: string;
|
|
32
54
|
}
|
|
33
55
|
|
|
34
56
|
export interface RefreshRequest {
|
|
@@ -38,6 +60,8 @@ export interface RefreshRequest {
|
|
|
38
60
|
export interface RefreshResponse {
|
|
39
61
|
accessToken: string;
|
|
40
62
|
refreshToken: string;
|
|
63
|
+
sessionToken: string;
|
|
64
|
+
userId: string;
|
|
41
65
|
}
|
|
42
66
|
|
|
43
67
|
export interface TelegramInitResponse {
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -28,11 +28,33 @@ message VerifyOtpRequest {
|
|
|
28
28
|
string identifier = 1;
|
|
29
29
|
string type = 2;
|
|
30
30
|
string code = 3;
|
|
31
|
+
SessionMetadata session_metadata = 4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message SessionMetadata {
|
|
35
|
+
LocationInfo location = 1;
|
|
36
|
+
DeviceInfo device = 2;
|
|
37
|
+
string ip = 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message LocationInfo {
|
|
41
|
+
string country = 1;
|
|
42
|
+
string city = 2;
|
|
43
|
+
int32 latidute = 3;
|
|
44
|
+
int32 longitude = 4;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message DeviceInfo {
|
|
48
|
+
string browser = 1;
|
|
49
|
+
string os = 2;
|
|
50
|
+
string type = 3;
|
|
31
51
|
}
|
|
32
52
|
|
|
33
53
|
message VerifyOtpResponse {
|
|
34
54
|
string access_token = 1;
|
|
35
55
|
string refresh_token = 2;
|
|
56
|
+
string session_token = 3;
|
|
57
|
+
string user_id = 4;
|
|
36
58
|
}
|
|
37
59
|
|
|
38
60
|
message RefreshRequest {
|
|
@@ -42,6 +64,8 @@ message RefreshRequest {
|
|
|
42
64
|
message RefreshResponse {
|
|
43
65
|
string access_token = 1;
|
|
44
66
|
string refresh_token = 2;
|
|
67
|
+
string session_token = 3;
|
|
68
|
+
string user_id = 4;
|
|
45
69
|
}
|
|
46
70
|
|
|
47
71
|
message TelegramInitResponse {
|