@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,399 @@
|
|
|
1
|
+
// @generated by protoc-gen-abstractions 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 abstract class LoginUserByEmailRequest {
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: string email = 1;
|
|
32
|
+
*/
|
|
33
|
+
abstract readonly email: string
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string password = 2;
|
|
37
|
+
*/
|
|
38
|
+
abstract readonly password: string
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: optional string authProcessId = 3;
|
|
42
|
+
*/
|
|
43
|
+
abstract readonly authProcessId?: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByEmailResponse
|
|
48
|
+
*/
|
|
49
|
+
export abstract class LoginUserByEmailResponse {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string sessionToken = 1;
|
|
52
|
+
*/
|
|
53
|
+
abstract readonly sessionToken: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByPhoneRequest
|
|
58
|
+
*/
|
|
59
|
+
export abstract class LoginUserByPhoneRequest {
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string phone = 1;
|
|
62
|
+
*/
|
|
63
|
+
abstract readonly phone: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByPhoneResponse
|
|
68
|
+
*/
|
|
69
|
+
export abstract class LoginUserByPhoneResponse {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string authProcessId = 1;
|
|
72
|
+
*/
|
|
73
|
+
abstract readonly authProcessId: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @generated from message team.firstfood.auth.v1.ConfirmLoginCodeRequest
|
|
78
|
+
*/
|
|
79
|
+
export abstract class ConfirmLoginCodeRequest {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: string authProcessId = 1;
|
|
82
|
+
*/
|
|
83
|
+
abstract readonly authProcessId: string
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string code = 2;
|
|
87
|
+
*/
|
|
88
|
+
abstract readonly code: string
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: string identifier = 3;
|
|
92
|
+
*/
|
|
93
|
+
abstract readonly identifier: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message team.firstfood.auth.v1.ConfirmLoginCodeResponse
|
|
98
|
+
*/
|
|
99
|
+
export abstract class ConfirmLoginCodeResponse {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: string sessionToken = 1;
|
|
102
|
+
*/
|
|
103
|
+
abstract readonly sessionToken: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByEmailRequest
|
|
108
|
+
*/
|
|
109
|
+
export abstract class RegisterUserByEmailRequest {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string email = 1;
|
|
112
|
+
*/
|
|
113
|
+
abstract readonly email: string
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string password = 2;
|
|
117
|
+
*/
|
|
118
|
+
abstract readonly password: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByEmailResponse
|
|
123
|
+
*/
|
|
124
|
+
export abstract class RegisterUserByEmailResponse {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string authProcessId = 1;
|
|
127
|
+
*/
|
|
128
|
+
abstract readonly authProcessId: string
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string sessionToken = 2;
|
|
132
|
+
*/
|
|
133
|
+
abstract readonly sessionToken: string
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: string accountId = 3;
|
|
137
|
+
*/
|
|
138
|
+
abstract readonly accountId: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByPhoneRequest
|
|
143
|
+
*/
|
|
144
|
+
export abstract class RegisterUserByPhoneRequest {
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: string phone = 1;
|
|
147
|
+
*/
|
|
148
|
+
abstract readonly phone: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByPhoneResponse
|
|
153
|
+
*/
|
|
154
|
+
export abstract class RegisterUserByPhoneResponse {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: string authProcessId = 1;
|
|
157
|
+
*/
|
|
158
|
+
abstract readonly authProcessId: string
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: string sessionToken = 2;
|
|
162
|
+
*/
|
|
163
|
+
abstract readonly sessionToken: string
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string accountId = 3;
|
|
167
|
+
*/
|
|
168
|
+
abstract readonly accountId: string
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message team.firstfood.auth.v1.SendRecoveryCodeRequest
|
|
173
|
+
*/
|
|
174
|
+
export abstract class SendRecoveryCodeRequest {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string email = 1;
|
|
177
|
+
*/
|
|
178
|
+
abstract readonly email: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @generated from message team.firstfood.auth.v1.SendRecoveryCodeResponse
|
|
183
|
+
*/
|
|
184
|
+
export abstract class SendRecoveryCodeResponse {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: string authProcessId = 1;
|
|
187
|
+
*/
|
|
188
|
+
abstract readonly authProcessId: string
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from message team.firstfood.auth.v1.ConfirmRecoveryCodeRequest
|
|
193
|
+
*/
|
|
194
|
+
export abstract class ConfirmRecoveryCodeRequest {
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string authProcessId = 1;
|
|
197
|
+
*/
|
|
198
|
+
abstract readonly authProcessId: string
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: string code = 2;
|
|
202
|
+
*/
|
|
203
|
+
abstract readonly code: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message team.firstfood.auth.v1.ConfirmRecoveryCodeResponse
|
|
208
|
+
*/
|
|
209
|
+
export abstract class ConfirmRecoveryCodeResponse {
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: string sessionToken = 1;
|
|
212
|
+
*/
|
|
213
|
+
abstract readonly sessionToken: string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @generated from message team.firstfood.auth.v1.SendVerificationCodeRequest
|
|
218
|
+
*/
|
|
219
|
+
export abstract class SendVerificationCodeRequest {
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: string email = 1;
|
|
222
|
+
*/
|
|
223
|
+
abstract readonly email: string
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @generated from message team.firstfood.auth.v1.SendVerificationCodeResponse
|
|
228
|
+
*/
|
|
229
|
+
export abstract class SendVerificationCodeResponse {
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: string authProcessId = 1;
|
|
232
|
+
*/
|
|
233
|
+
abstract readonly authProcessId: string
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @generated from message team.firstfood.auth.v1.ConfirmVerificationCodeRequest
|
|
238
|
+
*/
|
|
239
|
+
export abstract class ConfirmVerificationCodeRequest {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: string authProcessId = 1;
|
|
242
|
+
*/
|
|
243
|
+
abstract readonly authProcessId: string
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string code = 2;
|
|
247
|
+
*/
|
|
248
|
+
abstract readonly code: string
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @generated from message team.firstfood.auth.v1.ConfirmVerificationCodeResponse
|
|
253
|
+
*/
|
|
254
|
+
export abstract class ConfirmVerificationCodeResponse {
|
|
255
|
+
/**
|
|
256
|
+
* @generated from field: bool success = 1;
|
|
257
|
+
*/
|
|
258
|
+
abstract readonly success: boolean
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserEmailRequest
|
|
263
|
+
*/
|
|
264
|
+
export abstract class UpdateUserEmailRequest {
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: string email = 1;
|
|
267
|
+
*/
|
|
268
|
+
abstract readonly email: string
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @generated from field: string sessionToken = 2;
|
|
272
|
+
*/
|
|
273
|
+
abstract readonly sessionToken: string
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserEmailResponse
|
|
278
|
+
*/
|
|
279
|
+
export abstract class UpdateUserEmailResponse {
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: string authProcessId = 1;
|
|
282
|
+
*/
|
|
283
|
+
abstract readonly authProcessId: string
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserPasswordRequest
|
|
288
|
+
*/
|
|
289
|
+
export abstract class UpdateUserPasswordRequest {
|
|
290
|
+
/**
|
|
291
|
+
* @generated from field: string password = 1;
|
|
292
|
+
*/
|
|
293
|
+
abstract readonly password: string
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: string sessionToken = 2;
|
|
297
|
+
*/
|
|
298
|
+
abstract readonly sessionToken: string
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserPasswordResponse
|
|
303
|
+
*/
|
|
304
|
+
export abstract class UpdateUserPasswordResponse {
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: bool success = 1;
|
|
307
|
+
*/
|
|
308
|
+
abstract readonly success: boolean
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @generated from message team.firstfood.auth.v1.DeleteUserAccountRequest
|
|
313
|
+
*/
|
|
314
|
+
export abstract class DeleteUserAccountRequest {
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: string accountId = 1;
|
|
317
|
+
*/
|
|
318
|
+
abstract readonly accountId: string
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @generated from message team.firstfood.auth.v1.DeleteUserAccountResponse
|
|
323
|
+
*/
|
|
324
|
+
export abstract class DeleteUserAccountResponse {
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: bool success = 1;
|
|
327
|
+
*/
|
|
328
|
+
abstract readonly success: boolean
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @generated from message team.firstfood.auth.v1.GetUserAccountRequest
|
|
333
|
+
*/
|
|
334
|
+
export abstract class GetUserAccountRequest {
|
|
335
|
+
/**
|
|
336
|
+
* @generated from field: string sessionToken = 1;
|
|
337
|
+
*/
|
|
338
|
+
abstract readonly sessionToken: string
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @generated from message team.firstfood.auth.v1.GetUserAccountResponse
|
|
343
|
+
*/
|
|
344
|
+
export abstract class GetUserAccountResponse {
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: string id = 1;
|
|
347
|
+
*/
|
|
348
|
+
abstract readonly id: string
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @generated from field: optional string email = 2;
|
|
352
|
+
*/
|
|
353
|
+
abstract readonly email?: string
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @generated from field: optional string phone = 3;
|
|
357
|
+
*/
|
|
358
|
+
abstract readonly phone?: string
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByProviderRequest
|
|
363
|
+
*/
|
|
364
|
+
export abstract class LoginUserByProviderRequest {
|
|
365
|
+
/**
|
|
366
|
+
* @generated from field: team.firstfood.auth.v1.ProviderType provider = 1;
|
|
367
|
+
*/
|
|
368
|
+
abstract readonly provider: ProviderType
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @generated from field: string idToken = 2;
|
|
372
|
+
*/
|
|
373
|
+
abstract readonly idToken: string
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: string nonce = 3;
|
|
377
|
+
*/
|
|
378
|
+
abstract readonly nonce: string
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByProviderResponse
|
|
383
|
+
*/
|
|
384
|
+
export abstract class LoginUserByProviderResponse {
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: optional string sessionToken = 1;
|
|
387
|
+
*/
|
|
388
|
+
abstract readonly sessionToken?: string
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @generated from field: optional string accountId = 2;
|
|
392
|
+
*/
|
|
393
|
+
abstract readonly accountId?: string
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: optional string authProcessId = 3;
|
|
397
|
+
*/
|
|
398
|
+
abstract readonly authProcessId?: string
|
|
399
|
+
}
|