@atls/auth-rpc 0.0.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/CHANGELOG.md +11 -0
- package/buf.gen.yaml +18 -0
- package/buf.yaml +10 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.js +6 -0
- package/dist/gen/abstractions/index.d.ts +1 -0
- package/dist/gen/abstractions/index.js +1 -0
- package/dist/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.d.ts +108 -0
- package/dist/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.js +62 -0
- package/dist/gen/connect/index.d.ts +2 -0
- package/dist/gen/connect/index.js +2 -0
- package/dist/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.d.ts +340 -0
- package/dist/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.js +723 -0
- package/dist/gen/connect/team/firstfood/auth/v1/auth.service_connect.d.ts +118 -0
- package/dist/gen/connect/team/firstfood/auth/v1/auth.service_connect.js +118 -0
- package/dist/gen/interfaces/index.d.ts +1 -0
- package/dist/gen/interfaces/index.js +1 -0
- package/dist/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.d.ts +108 -0
- package/dist/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +33 -0
- package/src/config.ts +16 -0
- package/src/gen/abstractions/index.ts +1 -0
- package/src/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.ts +399 -0
- package/src/gen/connect/index.ts +2 -0
- package/src/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.ts +1523 -0
- package/src/gen/connect/team/firstfood/auth/v1/auth.service_connect.ts +170 -0
- package/src/gen/interfaces/index.ts +1 -0
- package/src/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.ts +399 -0
- package/src/index.ts +1 -0
- package/team/firstfood/auth/v1/auth.payloads.proto +152 -0
- package/team/firstfood/auth/v1/auth.service.proto +27 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file team/firstfood/auth/v1/auth.service.proto (package team.firstfood.auth.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { MethodKind } from '@bufbuild/protobuf'
|
|
7
|
+
|
|
8
|
+
import { ConfirmLoginCodeRequest } from './auth.payloads_pb.js'
|
|
9
|
+
import { ConfirmLoginCodeResponse } from './auth.payloads_pb.js'
|
|
10
|
+
import { ConfirmRecoveryCodeRequest } from './auth.payloads_pb.js'
|
|
11
|
+
import { ConfirmRecoveryCodeResponse } from './auth.payloads_pb.js'
|
|
12
|
+
import { ConfirmVerificationCodeRequest } from './auth.payloads_pb.js'
|
|
13
|
+
import { ConfirmVerificationCodeResponse } from './auth.payloads_pb.js'
|
|
14
|
+
import { DeleteUserAccountRequest } from './auth.payloads_pb.js'
|
|
15
|
+
import { DeleteUserAccountResponse } from './auth.payloads_pb.js'
|
|
16
|
+
import { GetUserAccountRequest } from './auth.payloads_pb.js'
|
|
17
|
+
import { GetUserAccountResponse } from './auth.payloads_pb.js'
|
|
18
|
+
import { LoginUserByEmailRequest } from './auth.payloads_pb.js'
|
|
19
|
+
import { LoginUserByEmailResponse } from './auth.payloads_pb.js'
|
|
20
|
+
import { LoginUserByPhoneRequest } from './auth.payloads_pb.js'
|
|
21
|
+
import { LoginUserByPhoneResponse } from './auth.payloads_pb.js'
|
|
22
|
+
import { LoginUserByProviderRequest } from './auth.payloads_pb.js'
|
|
23
|
+
import { LoginUserByProviderResponse } from './auth.payloads_pb.js'
|
|
24
|
+
import { RegisterUserByEmailRequest } from './auth.payloads_pb.js'
|
|
25
|
+
import { RegisterUserByEmailResponse } from './auth.payloads_pb.js'
|
|
26
|
+
import { RegisterUserByPhoneRequest } from './auth.payloads_pb.js'
|
|
27
|
+
import { RegisterUserByPhoneResponse } from './auth.payloads_pb.js'
|
|
28
|
+
import { SendRecoveryCodeRequest } from './auth.payloads_pb.js'
|
|
29
|
+
import { SendRecoveryCodeResponse } from './auth.payloads_pb.js'
|
|
30
|
+
import { SendVerificationCodeRequest } from './auth.payloads_pb.js'
|
|
31
|
+
import { SendVerificationCodeResponse } from './auth.payloads_pb.js'
|
|
32
|
+
import { UpdateUserEmailRequest } from './auth.payloads_pb.js'
|
|
33
|
+
import { UpdateUserEmailResponse } from './auth.payloads_pb.js'
|
|
34
|
+
import { UpdateUserPasswordRequest } from './auth.payloads_pb.js'
|
|
35
|
+
import { UpdateUserPasswordResponse } from './auth.payloads_pb.js'
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from service team.firstfood.auth.v1.AuthService
|
|
39
|
+
*/
|
|
40
|
+
export const AuthService = {
|
|
41
|
+
typeName: 'team.firstfood.auth.v1.AuthService',
|
|
42
|
+
methods: {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.LoginUserByEmail
|
|
45
|
+
*/
|
|
46
|
+
loginUserByEmail: {
|
|
47
|
+
name: 'LoginUserByEmail',
|
|
48
|
+
I: LoginUserByEmailRequest,
|
|
49
|
+
O: LoginUserByEmailResponse,
|
|
50
|
+
kind: MethodKind.Unary,
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.LoginUserByPhone
|
|
54
|
+
*/
|
|
55
|
+
loginUserByPhone: {
|
|
56
|
+
name: 'LoginUserByPhone',
|
|
57
|
+
I: LoginUserByPhoneRequest,
|
|
58
|
+
O: LoginUserByPhoneResponse,
|
|
59
|
+
kind: MethodKind.Unary,
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.ConfirmLoginCode
|
|
63
|
+
*/
|
|
64
|
+
confirmLoginCode: {
|
|
65
|
+
name: 'ConfirmLoginCode',
|
|
66
|
+
I: ConfirmLoginCodeRequest,
|
|
67
|
+
O: ConfirmLoginCodeResponse,
|
|
68
|
+
kind: MethodKind.Unary,
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.RegisterUserByEmail
|
|
72
|
+
*/
|
|
73
|
+
registerUserByEmail: {
|
|
74
|
+
name: 'RegisterUserByEmail',
|
|
75
|
+
I: RegisterUserByEmailRequest,
|
|
76
|
+
O: RegisterUserByEmailResponse,
|
|
77
|
+
kind: MethodKind.Unary,
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.RegisterUserByPhone
|
|
81
|
+
*/
|
|
82
|
+
registerUserByPhone: {
|
|
83
|
+
name: 'RegisterUserByPhone',
|
|
84
|
+
I: RegisterUserByPhoneRequest,
|
|
85
|
+
O: RegisterUserByPhoneResponse,
|
|
86
|
+
kind: MethodKind.Unary,
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.SendRecoveryCode
|
|
90
|
+
*/
|
|
91
|
+
sendRecoveryCode: {
|
|
92
|
+
name: 'SendRecoveryCode',
|
|
93
|
+
I: SendRecoveryCodeRequest,
|
|
94
|
+
O: SendRecoveryCodeResponse,
|
|
95
|
+
kind: MethodKind.Unary,
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.ConfirmRecoveryCode
|
|
99
|
+
*/
|
|
100
|
+
confirmRecoveryCode: {
|
|
101
|
+
name: 'ConfirmRecoveryCode',
|
|
102
|
+
I: ConfirmRecoveryCodeRequest,
|
|
103
|
+
O: ConfirmRecoveryCodeResponse,
|
|
104
|
+
kind: MethodKind.Unary,
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.SendVerificationCode
|
|
108
|
+
*/
|
|
109
|
+
sendVerificationCode: {
|
|
110
|
+
name: 'SendVerificationCode',
|
|
111
|
+
I: SendVerificationCodeRequest,
|
|
112
|
+
O: SendVerificationCodeResponse,
|
|
113
|
+
kind: MethodKind.Unary,
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.ConfirmVerificationCode
|
|
117
|
+
*/
|
|
118
|
+
confirmVerificationCode: {
|
|
119
|
+
name: 'ConfirmVerificationCode',
|
|
120
|
+
I: ConfirmVerificationCodeRequest,
|
|
121
|
+
O: ConfirmVerificationCodeResponse,
|
|
122
|
+
kind: MethodKind.Unary,
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.UpdateUserEmail
|
|
126
|
+
*/
|
|
127
|
+
updateUserEmail: {
|
|
128
|
+
name: 'UpdateUserEmail',
|
|
129
|
+
I: UpdateUserEmailRequest,
|
|
130
|
+
O: UpdateUserEmailResponse,
|
|
131
|
+
kind: MethodKind.Unary,
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.UpdateUserPassword
|
|
135
|
+
*/
|
|
136
|
+
updateUserPassword: {
|
|
137
|
+
name: 'UpdateUserPassword',
|
|
138
|
+
I: UpdateUserPasswordRequest,
|
|
139
|
+
O: UpdateUserPasswordResponse,
|
|
140
|
+
kind: MethodKind.Unary,
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.DeleteUserAccount
|
|
144
|
+
*/
|
|
145
|
+
deleteUserAccount: {
|
|
146
|
+
name: 'DeleteUserAccount',
|
|
147
|
+
I: DeleteUserAccountRequest,
|
|
148
|
+
O: DeleteUserAccountResponse,
|
|
149
|
+
kind: MethodKind.Unary,
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.GetUserAccount
|
|
153
|
+
*/
|
|
154
|
+
getUserAccount: {
|
|
155
|
+
name: 'GetUserAccount',
|
|
156
|
+
I: GetUserAccountRequest,
|
|
157
|
+
O: GetUserAccountResponse,
|
|
158
|
+
kind: MethodKind.Unary,
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* @generated from rpc team.firstfood.auth.v1.AuthService.LoginUserByProvider
|
|
162
|
+
*/
|
|
163
|
+
loginUserByProvider: {
|
|
164
|
+
name: 'LoginUserByProvider',
|
|
165
|
+
I: LoginUserByProviderRequest,
|
|
166
|
+
O: LoginUserByProviderResponse,
|
|
167
|
+
kind: MethodKind.Unary,
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
} as const
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from './team/firstfood/auth/v1/auth.payloads_pb.js'
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
// @generated by protoc-gen-interfaces 0.0.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file team/firstfood/auth/v1/auth.payloads.proto (package team.firstfood.auth.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum team.firstfood.auth.v1.ProviderType
|
|
8
|
+
*/
|
|
9
|
+
export enum ProviderType {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from enum value: PROVIDER_TYPE_UNSPECIFIED = 0;
|
|
12
|
+
*/
|
|
13
|
+
UNSPECIFIED = 0,
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: PROVIDER_TYPE_GOOGLE = 1;
|
|
17
|
+
*/
|
|
18
|
+
GOOGLE = 1,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: PROVIDER_TYPE_APPLE = 2;
|
|
22
|
+
*/
|
|
23
|
+
APPLE = 2,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByEmailRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface LoginUserByEmailRequest {
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: string email = 1;
|
|
32
|
+
*/
|
|
33
|
+
email: string
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string password = 2;
|
|
37
|
+
*/
|
|
38
|
+
password: string
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: optional string authProcessId = 3;
|
|
42
|
+
*/
|
|
43
|
+
authProcessId?: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByEmailResponse
|
|
48
|
+
*/
|
|
49
|
+
export interface LoginUserByEmailResponse {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string sessionToken = 1;
|
|
52
|
+
*/
|
|
53
|
+
sessionToken: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByPhoneRequest
|
|
58
|
+
*/
|
|
59
|
+
export interface LoginUserByPhoneRequest {
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string phone = 1;
|
|
62
|
+
*/
|
|
63
|
+
phone: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByPhoneResponse
|
|
68
|
+
*/
|
|
69
|
+
export interface LoginUserByPhoneResponse {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string authProcessId = 1;
|
|
72
|
+
*/
|
|
73
|
+
authProcessId: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @generated from message team.firstfood.auth.v1.ConfirmLoginCodeRequest
|
|
78
|
+
*/
|
|
79
|
+
export interface ConfirmLoginCodeRequest {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: string authProcessId = 1;
|
|
82
|
+
*/
|
|
83
|
+
authProcessId: string
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string code = 2;
|
|
87
|
+
*/
|
|
88
|
+
code: string
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: string identifier = 3;
|
|
92
|
+
*/
|
|
93
|
+
identifier: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message team.firstfood.auth.v1.ConfirmLoginCodeResponse
|
|
98
|
+
*/
|
|
99
|
+
export interface ConfirmLoginCodeResponse {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: string sessionToken = 1;
|
|
102
|
+
*/
|
|
103
|
+
sessionToken: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByEmailRequest
|
|
108
|
+
*/
|
|
109
|
+
export interface RegisterUserByEmailRequest {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string email = 1;
|
|
112
|
+
*/
|
|
113
|
+
email: string
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string password = 2;
|
|
117
|
+
*/
|
|
118
|
+
password: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByEmailResponse
|
|
123
|
+
*/
|
|
124
|
+
export interface RegisterUserByEmailResponse {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string authProcessId = 1;
|
|
127
|
+
*/
|
|
128
|
+
authProcessId: string
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string sessionToken = 2;
|
|
132
|
+
*/
|
|
133
|
+
sessionToken: string
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: string accountId = 3;
|
|
137
|
+
*/
|
|
138
|
+
accountId: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByPhoneRequest
|
|
143
|
+
*/
|
|
144
|
+
export interface RegisterUserByPhoneRequest {
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: string phone = 1;
|
|
147
|
+
*/
|
|
148
|
+
phone: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByPhoneResponse
|
|
153
|
+
*/
|
|
154
|
+
export interface RegisterUserByPhoneResponse {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: string authProcessId = 1;
|
|
157
|
+
*/
|
|
158
|
+
authProcessId: string
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: string sessionToken = 2;
|
|
162
|
+
*/
|
|
163
|
+
sessionToken: string
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string accountId = 3;
|
|
167
|
+
*/
|
|
168
|
+
accountId: string
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message team.firstfood.auth.v1.SendRecoveryCodeRequest
|
|
173
|
+
*/
|
|
174
|
+
export interface SendRecoveryCodeRequest {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string email = 1;
|
|
177
|
+
*/
|
|
178
|
+
email: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @generated from message team.firstfood.auth.v1.SendRecoveryCodeResponse
|
|
183
|
+
*/
|
|
184
|
+
export interface SendRecoveryCodeResponse {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: string authProcessId = 1;
|
|
187
|
+
*/
|
|
188
|
+
authProcessId: string
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from message team.firstfood.auth.v1.ConfirmRecoveryCodeRequest
|
|
193
|
+
*/
|
|
194
|
+
export interface ConfirmRecoveryCodeRequest {
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string authProcessId = 1;
|
|
197
|
+
*/
|
|
198
|
+
authProcessId: string
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: string code = 2;
|
|
202
|
+
*/
|
|
203
|
+
code: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message team.firstfood.auth.v1.ConfirmRecoveryCodeResponse
|
|
208
|
+
*/
|
|
209
|
+
export interface ConfirmRecoveryCodeResponse {
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: string sessionToken = 1;
|
|
212
|
+
*/
|
|
213
|
+
sessionToken: string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @generated from message team.firstfood.auth.v1.SendVerificationCodeRequest
|
|
218
|
+
*/
|
|
219
|
+
export interface SendVerificationCodeRequest {
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: string email = 1;
|
|
222
|
+
*/
|
|
223
|
+
email: string
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @generated from message team.firstfood.auth.v1.SendVerificationCodeResponse
|
|
228
|
+
*/
|
|
229
|
+
export interface SendVerificationCodeResponse {
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: string authProcessId = 1;
|
|
232
|
+
*/
|
|
233
|
+
authProcessId: string
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @generated from message team.firstfood.auth.v1.ConfirmVerificationCodeRequest
|
|
238
|
+
*/
|
|
239
|
+
export interface ConfirmVerificationCodeRequest {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: string authProcessId = 1;
|
|
242
|
+
*/
|
|
243
|
+
authProcessId: string
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string code = 2;
|
|
247
|
+
*/
|
|
248
|
+
code: string
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @generated from message team.firstfood.auth.v1.ConfirmVerificationCodeResponse
|
|
253
|
+
*/
|
|
254
|
+
export interface ConfirmVerificationCodeResponse {
|
|
255
|
+
/**
|
|
256
|
+
* @generated from field: bool success = 1;
|
|
257
|
+
*/
|
|
258
|
+
success: boolean
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserEmailRequest
|
|
263
|
+
*/
|
|
264
|
+
export interface UpdateUserEmailRequest {
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: string email = 1;
|
|
267
|
+
*/
|
|
268
|
+
email: string
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @generated from field: string sessionToken = 2;
|
|
272
|
+
*/
|
|
273
|
+
sessionToken: string
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserEmailResponse
|
|
278
|
+
*/
|
|
279
|
+
export interface UpdateUserEmailResponse {
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: string authProcessId = 1;
|
|
282
|
+
*/
|
|
283
|
+
authProcessId: string
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserPasswordRequest
|
|
288
|
+
*/
|
|
289
|
+
export interface UpdateUserPasswordRequest {
|
|
290
|
+
/**
|
|
291
|
+
* @generated from field: string password = 1;
|
|
292
|
+
*/
|
|
293
|
+
password: string
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: string sessionToken = 2;
|
|
297
|
+
*/
|
|
298
|
+
sessionToken: string
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserPasswordResponse
|
|
303
|
+
*/
|
|
304
|
+
export interface UpdateUserPasswordResponse {
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: bool success = 1;
|
|
307
|
+
*/
|
|
308
|
+
success: boolean
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @generated from message team.firstfood.auth.v1.DeleteUserAccountRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface DeleteUserAccountRequest {
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: string accountId = 1;
|
|
317
|
+
*/
|
|
318
|
+
accountId: string
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @generated from message team.firstfood.auth.v1.DeleteUserAccountResponse
|
|
323
|
+
*/
|
|
324
|
+
export interface DeleteUserAccountResponse {
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: bool success = 1;
|
|
327
|
+
*/
|
|
328
|
+
success: boolean
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @generated from message team.firstfood.auth.v1.GetUserAccountRequest
|
|
333
|
+
*/
|
|
334
|
+
export interface GetUserAccountRequest {
|
|
335
|
+
/**
|
|
336
|
+
* @generated from field: string sessionToken = 1;
|
|
337
|
+
*/
|
|
338
|
+
sessionToken: string
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @generated from message team.firstfood.auth.v1.GetUserAccountResponse
|
|
343
|
+
*/
|
|
344
|
+
export interface GetUserAccountResponse {
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: string id = 1;
|
|
347
|
+
*/
|
|
348
|
+
id: string
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @generated from field: optional string email = 2;
|
|
352
|
+
*/
|
|
353
|
+
email?: string
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @generated from field: optional string phone = 3;
|
|
357
|
+
*/
|
|
358
|
+
phone?: string
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByProviderRequest
|
|
363
|
+
*/
|
|
364
|
+
export interface LoginUserByProviderRequest {
|
|
365
|
+
/**
|
|
366
|
+
* @generated from field: team.firstfood.auth.v1.ProviderType provider = 1;
|
|
367
|
+
*/
|
|
368
|
+
provider: ProviderType
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @generated from field: string idToken = 2;
|
|
372
|
+
*/
|
|
373
|
+
idToken: string
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: string nonce = 3;
|
|
377
|
+
*/
|
|
378
|
+
nonce: string
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByProviderResponse
|
|
383
|
+
*/
|
|
384
|
+
export interface LoginUserByProviderResponse {
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: optional string sessionToken = 1;
|
|
387
|
+
*/
|
|
388
|
+
sessionToken?: string
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @generated from field: optional string accountId = 2;
|
|
392
|
+
*/
|
|
393
|
+
accountId?: string
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: optional string authProcessId = 3;
|
|
397
|
+
*/
|
|
398
|
+
authProcessId?: string
|
|
399
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config.js'
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package team.firstfood.auth.v1;
|
|
4
|
+
|
|
5
|
+
// ======== Login ========
|
|
6
|
+
|
|
7
|
+
message LoginUserByEmailRequest {
|
|
8
|
+
string email = 1;
|
|
9
|
+
string password = 2;
|
|
10
|
+
optional string authProcessId = 3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message LoginUserByEmailResponse {
|
|
14
|
+
string sessionToken = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message LoginUserByPhoneRequest {
|
|
18
|
+
string phone = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message LoginUserByPhoneResponse {
|
|
22
|
+
string authProcessId = 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message ConfirmLoginCodeRequest {
|
|
26
|
+
string authProcessId = 1;
|
|
27
|
+
string code = 2;
|
|
28
|
+
string identifier = 3;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message ConfirmLoginCodeResponse {
|
|
32
|
+
string sessionToken = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ======== Registration ========
|
|
36
|
+
|
|
37
|
+
message RegisterUserByEmailRequest {
|
|
38
|
+
string email = 1;
|
|
39
|
+
string password = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message RegisterUserByEmailResponse {
|
|
43
|
+
string authProcessId = 1;
|
|
44
|
+
string sessionToken = 2;
|
|
45
|
+
string accountId = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message RegisterUserByPhoneRequest {
|
|
49
|
+
string phone = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message RegisterUserByPhoneResponse {
|
|
53
|
+
string authProcessId = 1;
|
|
54
|
+
string sessionToken = 2;
|
|
55
|
+
string accountId = 3;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// ======== Recovery ========
|
|
59
|
+
|
|
60
|
+
message SendRecoveryCodeRequest {
|
|
61
|
+
string email = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message SendRecoveryCodeResponse {
|
|
65
|
+
string authProcessId = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message ConfirmRecoveryCodeRequest {
|
|
69
|
+
string authProcessId = 1;
|
|
70
|
+
string code = 2;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message ConfirmRecoveryCodeResponse {
|
|
74
|
+
string sessionToken = 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ======== Verification ========
|
|
78
|
+
|
|
79
|
+
message SendVerificationCodeRequest {
|
|
80
|
+
string email = 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message SendVerificationCodeResponse {
|
|
84
|
+
string authProcessId = 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message ConfirmVerificationCodeRequest {
|
|
88
|
+
string authProcessId = 1;
|
|
89
|
+
string code = 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message ConfirmVerificationCodeResponse {
|
|
93
|
+
bool success = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// ======== Settings ========
|
|
97
|
+
|
|
98
|
+
message UpdateUserEmailRequest {
|
|
99
|
+
string email = 1;
|
|
100
|
+
string sessionToken = 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message UpdateUserEmailResponse {
|
|
104
|
+
string authProcessId = 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message UpdateUserPasswordRequest {
|
|
108
|
+
string password = 1;
|
|
109
|
+
string sessionToken = 2;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message UpdateUserPasswordResponse {
|
|
113
|
+
bool success = 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message DeleteUserAccountRequest {
|
|
117
|
+
string accountId = 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message DeleteUserAccountResponse {
|
|
121
|
+
bool success = 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message GetUserAccountRequest {
|
|
125
|
+
string sessionToken = 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message GetUserAccountResponse {
|
|
129
|
+
string id = 1;
|
|
130
|
+
optional string email = 2;
|
|
131
|
+
optional string phone = 3;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// ======== Native SSO (OIDC) ========
|
|
135
|
+
|
|
136
|
+
enum ProviderType {
|
|
137
|
+
PROVIDER_TYPE_UNSPECIFIED = 0;
|
|
138
|
+
PROVIDER_TYPE_GOOGLE = 1;
|
|
139
|
+
PROVIDER_TYPE_APPLE = 2;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message LoginUserByProviderRequest {
|
|
143
|
+
ProviderType provider = 1;
|
|
144
|
+
string idToken = 2;
|
|
145
|
+
string nonce = 3;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message LoginUserByProviderResponse {
|
|
149
|
+
optional string sessionToken = 1;
|
|
150
|
+
optional string accountId = 2;
|
|
151
|
+
optional string authProcessId = 3;
|
|
152
|
+
}
|