@barumetric/contracts 1.4.18 → 1.4.20
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 +2 -2
- package/gen/ts/auth.ts +2 -2
- package/gen/ts/balance.ts +2 -2
- package/gen/ts/categories.ts +2 -2
- package/gen/ts/google/protobuf/empty.ts +2 -2
- package/gen/ts/google/protobuf/struct.ts +3 -3
- package/gen/ts/google/protobuf/timestamp.ts +10 -9
- package/gen/ts/images.ts +2 -2
- package/gen/ts/listings.ts +2 -2
- package/gen/ts/media.ts +2 -2
- package/gen/ts/messages.ts +2 -2
- package/gen/ts/payment.ts +2 -2
- package/gen/ts/presence.ts +3 -3
- package/gen/ts/session.ts +2 -2
- package/gen/ts/users.ts +2 -2
- package/package.json +1 -1
- package/proto/account.proto +74 -74
- package/proto/auth.proto +153 -153
- package/proto/balance.proto +29 -29
- package/proto/images.proto +29 -29
- package/proto/listings.proto +126 -126
- package/proto/messages.proto +153 -153
- package/proto/presence.proto +1 -1
- package/proto/session.proto +61 -61
- package/dist/events/account/email-changed.interface.d.ts +0 -4
- package/dist/events/account/email-changed.interface.js +0 -2
- package/dist/events/account/index.d.ts +0 -2
- package/dist/events/account/index.js +0 -18
- package/dist/events/account/phone-changed.interface.d.ts +0 -4
- package/dist/events/account/phone-changed.interface.js +0 -2
- package/dist/events/auth/index.d.ts +0 -1
- package/dist/events/auth/index.js +0 -17
- package/dist/events/auth/otp-requested.interface.d.ts +0 -5
- package/dist/events/auth/otp-requested.interface.js +0 -2
- package/dist/events/balance/index.d.ts +0 -1
- package/dist/events/balance/index.js +0 -17
- package/dist/events/balance/top-up.interface.d.ts +0 -5
- package/dist/events/balance/top-up.interface.js +0 -2
- package/dist/events/images/index.d.ts +0 -1
- package/dist/events/images/index.js +0 -17
- package/dist/events/images/process-images.interface.d.ts +0 -9
- package/dist/events/images/process-images.interface.js +0 -2
- package/dist/events/index.d.ts +0 -7
- package/dist/events/index.js +0 -23
- package/dist/events/listings/create-listing.interface.d.ts +0 -16
- package/dist/events/listings/create-listing.interface.js +0 -2
- package/dist/events/listings/delete-listing.interface.d.ts +0 -4
- package/dist/events/listings/delete-listing.interface.js +0 -2
- package/dist/events/listings/index.d.ts +0 -3
- package/dist/events/listings/index.js +0 -19
- package/dist/events/listings/update-listing.interface.d.ts +0 -17
- package/dist/events/listings/update-listing.interface.js +0 -2
- package/dist/events/messages/index.d.ts +0 -5
- package/dist/events/messages/index.js +0 -21
- package/dist/events/messages/mark-as-read-command.interface.d.ts +0 -9
- package/dist/events/messages/mark-as-read-command.interface.js +0 -2
- package/dist/events/messages/message-read-event.interface.d.ts +0 -13
- package/dist/events/messages/message-read-event.interface.js +0 -2
- package/dist/events/messages/message-sent-event.interface.d.ts +0 -32
- package/dist/events/messages/message-sent-event.interface.js +0 -2
- package/dist/events/messages/message-types.d.ts +0 -1
- package/dist/events/messages/message-types.js +0 -2
- package/dist/events/messages/send-message-command.interface.d.ts +0 -17
- package/dist/events/messages/send-message-command.interface.js +0 -2
- package/dist/events/payment/index.d.ts +0 -2
- package/dist/events/payment/index.js +0 -18
- package/dist/events/payment/payment-failed.interface.d.ts +0 -6
- package/dist/events/payment/payment-failed.interface.js +0 -2
- package/dist/events/payment/payment-succeeded.interface.d.ts +0 -6
- package/dist/events/payment/payment-succeeded.interface.js +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -18
- package/dist/proto/index.d.ts +0 -1
- package/dist/proto/index.js +0 -17
- package/dist/proto/paths.d.ts +0 -14
- package/dist/proto/paths.js +0 -18
package/gen/ts/account.ts
CHANGED
package/gen/ts/auth.ts
CHANGED
package/gen/ts/balance.ts
CHANGED
package/gen/ts/categories.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.11.0
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: google/protobuf/struct.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -13,7 +13,7 @@ export const protobufPackage = "google.protobuf";
|
|
|
13
13
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
14
14
|
* `Value` type union.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
17
17
|
*/
|
|
18
18
|
export enum NullValue {
|
|
19
19
|
/** NULL_VALUE - Null value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.11.0
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: google/protobuf/timestamp.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -96,20 +96,21 @@ export const protobufPackage = "google.protobuf";
|
|
|
96
96
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
97
97
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
98
98
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
99
|
-
* http://
|
|
99
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
100
100
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
101
101
|
*/
|
|
102
102
|
export interface Timestamp {
|
|
103
103
|
/**
|
|
104
|
-
* Represents seconds of UTC time since Unix epoch
|
|
105
|
-
*
|
|
106
|
-
* 9999-12-31T23:59:59Z
|
|
104
|
+
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
105
|
+
* be between -315576000000 and 315576000000 inclusive (which corresponds to
|
|
106
|
+
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
107
107
|
*/
|
|
108
108
|
seconds: number;
|
|
109
109
|
/**
|
|
110
|
-
* Non-negative fractions of a second at nanosecond resolution.
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* Non-negative fractions of a second at nanosecond resolution. This field is
|
|
111
|
+
* the nanosecond portion of the duration, not an alternative to seconds.
|
|
112
|
+
* Negative second values with fractions must still have non-negative nanos
|
|
113
|
+
* values that count forward in time. Must be between 0 and 999,999,999
|
|
113
114
|
* inclusive.
|
|
114
115
|
*/
|
|
115
116
|
nanos: number;
|
package/gen/ts/images.ts
CHANGED
package/gen/ts/listings.ts
CHANGED
package/gen/ts/media.ts
CHANGED
package/gen/ts/messages.ts
CHANGED
package/gen/ts/payment.ts
CHANGED
package/gen/ts/presence.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.11.0
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: presence.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -49,7 +49,7 @@ export interface GetUserBySocketRequest {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export interface GetUserBySocketResponse {
|
|
52
|
-
userId
|
|
52
|
+
userId?: string | undefined;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface IsUserOnlineRequest {
|
package/gen/ts/session.ts
CHANGED
package/gen/ts/users.ts
CHANGED
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package account.v1;
|
|
4
|
-
|
|
5
|
-
service AccountService {
|
|
6
|
-
rpc GetAccount (GetAccountRequest) returns (GetAccountResponse);
|
|
7
|
-
|
|
8
|
-
rpc InitEmailChange (InitEmailChangeRequest) returns (InitEmailChangeResponse);
|
|
9
|
-
rpc ConfirmEmailChange (ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
|
|
10
|
-
|
|
11
|
-
rpc InitPhoneChange (InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
|
|
12
|
-
rpc ConfirmPhoneChange (ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message GetAccountRequest {
|
|
16
|
-
string id = 1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message GetAccountResponse {
|
|
20
|
-
string id = 1;
|
|
21
|
-
string phone = 2;
|
|
22
|
-
string email = 3;
|
|
23
|
-
bool is_phone_verified = 4;
|
|
24
|
-
bool is_email_verified = 5;
|
|
25
|
-
Role role = 6;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message InitEmailChangeRequest {
|
|
29
|
-
string email = 1;
|
|
30
|
-
string user_id = 2;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message InitEmailChangeResponse {
|
|
34
|
-
bool ok = 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message ConfirmEmailChangeRequest {
|
|
38
|
-
string email = 1;
|
|
39
|
-
string code = 2;
|
|
40
|
-
string user_id = 3;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message ConfirmEmailChangeResponse {
|
|
44
|
-
bool ok = 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
message InitPhoneChangeRequest {
|
|
48
|
-
string phone = 1;
|
|
49
|
-
string user_id = 2;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message InitPhoneChangeResponse {
|
|
53
|
-
bool ok = 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
message ConfirmPhoneChangeRequest {
|
|
57
|
-
string phone = 1;
|
|
58
|
-
string code = 2;
|
|
59
|
-
string user_id = 3;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message ConfirmPhoneChangeResponse {
|
|
63
|
-
bool ok = 1;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
enum Role {
|
|
67
|
-
GUEST = 0;
|
|
68
|
-
USER = 1;
|
|
69
|
-
PREMIUM = 2;
|
|
70
|
-
EDITOR = 3;
|
|
71
|
-
SUPPORT = 4;
|
|
72
|
-
MODERATOR = 5;
|
|
73
|
-
ADMIN = 6;
|
|
74
|
-
SUPERADMIN = 7;
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package account.v1;
|
|
4
|
+
|
|
5
|
+
service AccountService {
|
|
6
|
+
rpc GetAccount (GetAccountRequest) returns (GetAccountResponse);
|
|
7
|
+
|
|
8
|
+
rpc InitEmailChange (InitEmailChangeRequest) returns (InitEmailChangeResponse);
|
|
9
|
+
rpc ConfirmEmailChange (ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
|
|
10
|
+
|
|
11
|
+
rpc InitPhoneChange (InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
|
|
12
|
+
rpc ConfirmPhoneChange (ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message GetAccountRequest {
|
|
16
|
+
string id = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message GetAccountResponse {
|
|
20
|
+
string id = 1;
|
|
21
|
+
string phone = 2;
|
|
22
|
+
string email = 3;
|
|
23
|
+
bool is_phone_verified = 4;
|
|
24
|
+
bool is_email_verified = 5;
|
|
25
|
+
Role role = 6;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message InitEmailChangeRequest {
|
|
29
|
+
string email = 1;
|
|
30
|
+
string user_id = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message InitEmailChangeResponse {
|
|
34
|
+
bool ok = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message ConfirmEmailChangeRequest {
|
|
38
|
+
string email = 1;
|
|
39
|
+
string code = 2;
|
|
40
|
+
string user_id = 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message ConfirmEmailChangeResponse {
|
|
44
|
+
bool ok = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message InitPhoneChangeRequest {
|
|
48
|
+
string phone = 1;
|
|
49
|
+
string user_id = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message InitPhoneChangeResponse {
|
|
53
|
+
bool ok = 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message ConfirmPhoneChangeRequest {
|
|
57
|
+
string phone = 1;
|
|
58
|
+
string code = 2;
|
|
59
|
+
string user_id = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message ConfirmPhoneChangeResponse {
|
|
63
|
+
bool ok = 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
enum Role {
|
|
67
|
+
GUEST = 0;
|
|
68
|
+
USER = 1;
|
|
69
|
+
PREMIUM = 2;
|
|
70
|
+
EDITOR = 3;
|
|
71
|
+
SUPPORT = 4;
|
|
72
|
+
MODERATOR = 5;
|
|
73
|
+
ADMIN = 6;
|
|
74
|
+
SUPERADMIN = 7;
|
|
75
75
|
}
|
package/proto/auth.proto
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package auth.v1;
|
|
4
|
-
|
|
5
|
-
import "google/protobuf/empty.proto";
|
|
6
|
-
|
|
7
|
-
service AuthService {
|
|
8
|
-
rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
|
|
9
|
-
rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
10
|
-
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
11
|
-
rpc Logout (LogoutRequest) returns (LogoutResponse);
|
|
12
|
-
|
|
13
|
-
rpc TelegramInit (google.protobuf.Empty) returns (TelegramInitResponse);
|
|
14
|
-
rpc TelegramVerify (TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
|
15
|
-
rpc TelegramComplete (TelegramCompleteRequest) returns (TelegramCompleteResponse);
|
|
16
|
-
rpc TelegramConsume (TelegramConsumeRequest) returns (TelegramConsumeResponse);
|
|
17
|
-
|
|
18
|
-
rpc VkInit (google.protobuf.Empty) returns (VkInitResponse);
|
|
19
|
-
rpc VkVerify (VkVerifyRequest) returns (VkVerifyResponse);
|
|
20
|
-
|
|
21
|
-
rpc GoogleInit (google.protobuf.Empty) returns (GoogleInitResponse);
|
|
22
|
-
rpc GoogleVerify (GoogleVerifyRequest) returns (GoogleVerifyResponse);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message SendOtpRequest {
|
|
26
|
-
string identifier = 1;
|
|
27
|
-
string type = 2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
message SendOtpResponse {
|
|
31
|
-
bool ok = 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message VerifyOtpRequest {
|
|
35
|
-
string identifier = 1;
|
|
36
|
-
string type = 2;
|
|
37
|
-
string code = 3;
|
|
38
|
-
SessionMetadata session_metadata = 4;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
message VerifyOtpResponse {
|
|
42
|
-
string access_token = 1;
|
|
43
|
-
string refresh_token = 2;
|
|
44
|
-
string session_token = 3;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
message RefreshRequest {
|
|
48
|
-
string refresh_token = 1;
|
|
49
|
-
string session_token = 2;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message RefreshResponse {
|
|
53
|
-
string access_token = 1;
|
|
54
|
-
string refresh_token = 2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message LogoutRequest {
|
|
58
|
-
string session_token = 2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message LogoutResponse {
|
|
62
|
-
bool ok = 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message TelegramInitResponse {
|
|
66
|
-
string url = 1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
message TelegramVerifyRequest {
|
|
70
|
-
map<string, string> query = 1;
|
|
71
|
-
SessionMetadata metadata = 2;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message TelegramVerifyResponse {
|
|
75
|
-
oneof result {
|
|
76
|
-
string url = 1;
|
|
77
|
-
string access_token = 2;
|
|
78
|
-
string refresh_token = 3;
|
|
79
|
-
string session_token = 4;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
message TelegramCompleteRequest {
|
|
85
|
-
string session_id = 1;
|
|
86
|
-
string phone = 2;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message TelegramCompleteResponse {
|
|
90
|
-
string session_id = 1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message TelegramConsumeRequest {
|
|
94
|
-
string session_id = 1;
|
|
95
|
-
SessionMetadata metadata = 2;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message TelegramConsumeResponse {
|
|
99
|
-
string access_token = 1;
|
|
100
|
-
string refresh_token = 2;
|
|
101
|
-
string session_token = 3;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
message VkInitResponse {
|
|
105
|
-
string url = 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
message VkVerifyRequest {
|
|
109
|
-
string code = 1;
|
|
110
|
-
string state = 2;
|
|
111
|
-
string device_id = 3;
|
|
112
|
-
SessionMetadata metadata = 4;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
message VkVerifyResponse {
|
|
116
|
-
string access_token = 1;
|
|
117
|
-
string refresh_token = 2;
|
|
118
|
-
string session_token = 3;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
message GoogleInitResponse {
|
|
122
|
-
string url = 1;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
message GoogleVerifyRequest {
|
|
126
|
-
string id_token = 1;
|
|
127
|
-
SessionMetadata metadata = 2;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
message GoogleVerifyResponse {
|
|
131
|
-
string access_token = 1;
|
|
132
|
-
string refresh_token = 2;
|
|
133
|
-
string session_token = 3;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
message SessionMetadata {
|
|
137
|
-
LocationInfo location = 1;
|
|
138
|
-
DeviceInfo device = 2;
|
|
139
|
-
string ip = 3;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
message LocationInfo {
|
|
143
|
-
string country = 1;
|
|
144
|
-
string city = 2;
|
|
145
|
-
int32 latidute = 3;
|
|
146
|
-
int32 longitude = 4;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
message DeviceInfo {
|
|
150
|
-
string browser = 1;
|
|
151
|
-
string os = 2;
|
|
152
|
-
string type = 3;
|
|
153
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package auth.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/empty.proto";
|
|
6
|
+
|
|
7
|
+
service AuthService {
|
|
8
|
+
rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
|
|
9
|
+
rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
10
|
+
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
11
|
+
rpc Logout (LogoutRequest) returns (LogoutResponse);
|
|
12
|
+
|
|
13
|
+
rpc TelegramInit (google.protobuf.Empty) returns (TelegramInitResponse);
|
|
14
|
+
rpc TelegramVerify (TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
|
15
|
+
rpc TelegramComplete (TelegramCompleteRequest) returns (TelegramCompleteResponse);
|
|
16
|
+
rpc TelegramConsume (TelegramConsumeRequest) returns (TelegramConsumeResponse);
|
|
17
|
+
|
|
18
|
+
rpc VkInit (google.protobuf.Empty) returns (VkInitResponse);
|
|
19
|
+
rpc VkVerify (VkVerifyRequest) returns (VkVerifyResponse);
|
|
20
|
+
|
|
21
|
+
rpc GoogleInit (google.protobuf.Empty) returns (GoogleInitResponse);
|
|
22
|
+
rpc GoogleVerify (GoogleVerifyRequest) returns (GoogleVerifyResponse);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message SendOtpRequest {
|
|
26
|
+
string identifier = 1;
|
|
27
|
+
string type = 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message SendOtpResponse {
|
|
31
|
+
bool ok = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message VerifyOtpRequest {
|
|
35
|
+
string identifier = 1;
|
|
36
|
+
string type = 2;
|
|
37
|
+
string code = 3;
|
|
38
|
+
SessionMetadata session_metadata = 4;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message VerifyOtpResponse {
|
|
42
|
+
string access_token = 1;
|
|
43
|
+
string refresh_token = 2;
|
|
44
|
+
string session_token = 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message RefreshRequest {
|
|
48
|
+
string refresh_token = 1;
|
|
49
|
+
string session_token = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message RefreshResponse {
|
|
53
|
+
string access_token = 1;
|
|
54
|
+
string refresh_token = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message LogoutRequest {
|
|
58
|
+
string session_token = 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message LogoutResponse {
|
|
62
|
+
bool ok = 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message TelegramInitResponse {
|
|
66
|
+
string url = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message TelegramVerifyRequest {
|
|
70
|
+
map<string, string> query = 1;
|
|
71
|
+
SessionMetadata metadata = 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message TelegramVerifyResponse {
|
|
75
|
+
oneof result {
|
|
76
|
+
string url = 1;
|
|
77
|
+
string access_token = 2;
|
|
78
|
+
string refresh_token = 3;
|
|
79
|
+
string session_token = 4;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message TelegramCompleteRequest {
|
|
85
|
+
string session_id = 1;
|
|
86
|
+
string phone = 2;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message TelegramCompleteResponse {
|
|
90
|
+
string session_id = 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message TelegramConsumeRequest {
|
|
94
|
+
string session_id = 1;
|
|
95
|
+
SessionMetadata metadata = 2;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message TelegramConsumeResponse {
|
|
99
|
+
string access_token = 1;
|
|
100
|
+
string refresh_token = 2;
|
|
101
|
+
string session_token = 3;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message VkInitResponse {
|
|
105
|
+
string url = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message VkVerifyRequest {
|
|
109
|
+
string code = 1;
|
|
110
|
+
string state = 2;
|
|
111
|
+
string device_id = 3;
|
|
112
|
+
SessionMetadata metadata = 4;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message VkVerifyResponse {
|
|
116
|
+
string access_token = 1;
|
|
117
|
+
string refresh_token = 2;
|
|
118
|
+
string session_token = 3;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message GoogleInitResponse {
|
|
122
|
+
string url = 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message GoogleVerifyRequest {
|
|
126
|
+
string id_token = 1;
|
|
127
|
+
SessionMetadata metadata = 2;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message GoogleVerifyResponse {
|
|
131
|
+
string access_token = 1;
|
|
132
|
+
string refresh_token = 2;
|
|
133
|
+
string session_token = 3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message SessionMetadata {
|
|
137
|
+
LocationInfo location = 1;
|
|
138
|
+
DeviceInfo device = 2;
|
|
139
|
+
string ip = 3;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message LocationInfo {
|
|
143
|
+
string country = 1;
|
|
144
|
+
string city = 2;
|
|
145
|
+
int32 latidute = 3;
|
|
146
|
+
int32 longitude = 4;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message DeviceInfo {
|
|
150
|
+
string browser = 1;
|
|
151
|
+
string os = 2;
|
|
152
|
+
string type = 3;
|
|
153
|
+
}
|