@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.
Files changed (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/buf.gen.yaml +18 -0
  3. package/buf.yaml +10 -0
  4. package/dist/config.d.ts +4 -0
  5. package/dist/config.js +6 -0
  6. package/dist/gen/abstractions/index.d.ts +1 -0
  7. package/dist/gen/abstractions/index.js +1 -0
  8. package/dist/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.d.ts +108 -0
  9. package/dist/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.js +62 -0
  10. package/dist/gen/connect/index.d.ts +2 -0
  11. package/dist/gen/connect/index.js +2 -0
  12. package/dist/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.d.ts +340 -0
  13. package/dist/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.js +723 -0
  14. package/dist/gen/connect/team/firstfood/auth/v1/auth.service_connect.d.ts +118 -0
  15. package/dist/gen/connect/team/firstfood/auth/v1/auth.service_connect.js +118 -0
  16. package/dist/gen/interfaces/index.d.ts +1 -0
  17. package/dist/gen/interfaces/index.js +1 -0
  18. package/dist/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.d.ts +108 -0
  19. package/dist/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.js +6 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +1 -0
  22. package/package.json +33 -0
  23. package/src/config.ts +16 -0
  24. package/src/gen/abstractions/index.ts +1 -0
  25. package/src/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.ts +399 -0
  26. package/src/gen/connect/index.ts +2 -0
  27. package/src/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.ts +1523 -0
  28. package/src/gen/connect/team/firstfood/auth/v1/auth.service_connect.ts +170 -0
  29. package/src/gen/interfaces/index.ts +1 -0
  30. package/src/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.ts +399 -0
  31. package/src/index.ts +1 -0
  32. package/team/firstfood/auth/v1/auth.payloads.proto +152 -0
  33. package/team/firstfood/auth/v1/auth.service.proto +27 -0
@@ -0,0 +1,723 @@
1
+ import { Message } from '@bufbuild/protobuf';
2
+ import { proto3 } from '@bufbuild/protobuf';
3
+ export var ProviderType;
4
+ (function (ProviderType) {
5
+ ProviderType[ProviderType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
6
+ ProviderType[ProviderType["GOOGLE"] = 1] = "GOOGLE";
7
+ ProviderType[ProviderType["APPLE"] = 2] = "APPLE";
8
+ })(ProviderType || (ProviderType = {}));
9
+ proto3.util.setEnumType(ProviderType, 'team.firstfood.auth.v1.ProviderType', [
10
+ { no: 0, name: 'PROVIDER_TYPE_UNSPECIFIED' },
11
+ { no: 1, name: 'PROVIDER_TYPE_GOOGLE' },
12
+ { no: 2, name: 'PROVIDER_TYPE_APPLE' },
13
+ ]);
14
+ export class LoginUserByEmailRequest extends Message {
15
+ email = '';
16
+ password = '';
17
+ authProcessId;
18
+ constructor(data) {
19
+ super();
20
+ proto3.util.initPartial(data, this);
21
+ }
22
+ static runtime = proto3;
23
+ static typeName = 'team.firstfood.auth.v1.LoginUserByEmailRequest';
24
+ static fields = proto3.util.newFieldList(() => [
25
+ { no: 1, name: 'email', kind: 'scalar', T: 9 },
26
+ { no: 2, name: 'password', kind: 'scalar', T: 9 },
27
+ { no: 3, name: 'authProcessId', kind: 'scalar', T: 9, opt: true },
28
+ ]);
29
+ static fromBinary(bytes, options) {
30
+ return new LoginUserByEmailRequest().fromBinary(bytes, options);
31
+ }
32
+ static fromJson(jsonValue, options) {
33
+ return new LoginUserByEmailRequest().fromJson(jsonValue, options);
34
+ }
35
+ static fromJsonString(jsonString, options) {
36
+ return new LoginUserByEmailRequest().fromJsonString(jsonString, options);
37
+ }
38
+ static equals(a, b) {
39
+ return proto3.util.equals(LoginUserByEmailRequest, a, b);
40
+ }
41
+ }
42
+ export class LoginUserByEmailResponse extends Message {
43
+ sessionToken = '';
44
+ constructor(data) {
45
+ super();
46
+ proto3.util.initPartial(data, this);
47
+ }
48
+ static runtime = proto3;
49
+ static typeName = 'team.firstfood.auth.v1.LoginUserByEmailResponse';
50
+ static fields = proto3.util.newFieldList(() => [
51
+ { no: 1, name: 'sessionToken', kind: 'scalar', T: 9 },
52
+ ]);
53
+ static fromBinary(bytes, options) {
54
+ return new LoginUserByEmailResponse().fromBinary(bytes, options);
55
+ }
56
+ static fromJson(jsonValue, options) {
57
+ return new LoginUserByEmailResponse().fromJson(jsonValue, options);
58
+ }
59
+ static fromJsonString(jsonString, options) {
60
+ return new LoginUserByEmailResponse().fromJsonString(jsonString, options);
61
+ }
62
+ static equals(a, b) {
63
+ return proto3.util.equals(LoginUserByEmailResponse, a, b);
64
+ }
65
+ }
66
+ export class LoginUserByPhoneRequest extends Message {
67
+ phone = '';
68
+ constructor(data) {
69
+ super();
70
+ proto3.util.initPartial(data, this);
71
+ }
72
+ static runtime = proto3;
73
+ static typeName = 'team.firstfood.auth.v1.LoginUserByPhoneRequest';
74
+ static fields = proto3.util.newFieldList(() => [
75
+ { no: 1, name: 'phone', kind: 'scalar', T: 9 },
76
+ ]);
77
+ static fromBinary(bytes, options) {
78
+ return new LoginUserByPhoneRequest().fromBinary(bytes, options);
79
+ }
80
+ static fromJson(jsonValue, options) {
81
+ return new LoginUserByPhoneRequest().fromJson(jsonValue, options);
82
+ }
83
+ static fromJsonString(jsonString, options) {
84
+ return new LoginUserByPhoneRequest().fromJsonString(jsonString, options);
85
+ }
86
+ static equals(a, b) {
87
+ return proto3.util.equals(LoginUserByPhoneRequest, a, b);
88
+ }
89
+ }
90
+ export class LoginUserByPhoneResponse extends Message {
91
+ authProcessId = '';
92
+ constructor(data) {
93
+ super();
94
+ proto3.util.initPartial(data, this);
95
+ }
96
+ static runtime = proto3;
97
+ static typeName = 'team.firstfood.auth.v1.LoginUserByPhoneResponse';
98
+ static fields = proto3.util.newFieldList(() => [
99
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
100
+ ]);
101
+ static fromBinary(bytes, options) {
102
+ return new LoginUserByPhoneResponse().fromBinary(bytes, options);
103
+ }
104
+ static fromJson(jsonValue, options) {
105
+ return new LoginUserByPhoneResponse().fromJson(jsonValue, options);
106
+ }
107
+ static fromJsonString(jsonString, options) {
108
+ return new LoginUserByPhoneResponse().fromJsonString(jsonString, options);
109
+ }
110
+ static equals(a, b) {
111
+ return proto3.util.equals(LoginUserByPhoneResponse, a, b);
112
+ }
113
+ }
114
+ export class ConfirmLoginCodeRequest extends Message {
115
+ authProcessId = '';
116
+ code = '';
117
+ identifier = '';
118
+ constructor(data) {
119
+ super();
120
+ proto3.util.initPartial(data, this);
121
+ }
122
+ static runtime = proto3;
123
+ static typeName = 'team.firstfood.auth.v1.ConfirmLoginCodeRequest';
124
+ static fields = proto3.util.newFieldList(() => [
125
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
126
+ { no: 2, name: 'code', kind: 'scalar', T: 9 },
127
+ { no: 3, name: 'identifier', kind: 'scalar', T: 9 },
128
+ ]);
129
+ static fromBinary(bytes, options) {
130
+ return new ConfirmLoginCodeRequest().fromBinary(bytes, options);
131
+ }
132
+ static fromJson(jsonValue, options) {
133
+ return new ConfirmLoginCodeRequest().fromJson(jsonValue, options);
134
+ }
135
+ static fromJsonString(jsonString, options) {
136
+ return new ConfirmLoginCodeRequest().fromJsonString(jsonString, options);
137
+ }
138
+ static equals(a, b) {
139
+ return proto3.util.equals(ConfirmLoginCodeRequest, a, b);
140
+ }
141
+ }
142
+ export class ConfirmLoginCodeResponse extends Message {
143
+ sessionToken = '';
144
+ constructor(data) {
145
+ super();
146
+ proto3.util.initPartial(data, this);
147
+ }
148
+ static runtime = proto3;
149
+ static typeName = 'team.firstfood.auth.v1.ConfirmLoginCodeResponse';
150
+ static fields = proto3.util.newFieldList(() => [
151
+ { no: 1, name: 'sessionToken', kind: 'scalar', T: 9 },
152
+ ]);
153
+ static fromBinary(bytes, options) {
154
+ return new ConfirmLoginCodeResponse().fromBinary(bytes, options);
155
+ }
156
+ static fromJson(jsonValue, options) {
157
+ return new ConfirmLoginCodeResponse().fromJson(jsonValue, options);
158
+ }
159
+ static fromJsonString(jsonString, options) {
160
+ return new ConfirmLoginCodeResponse().fromJsonString(jsonString, options);
161
+ }
162
+ static equals(a, b) {
163
+ return proto3.util.equals(ConfirmLoginCodeResponse, a, b);
164
+ }
165
+ }
166
+ export class RegisterUserByEmailRequest extends Message {
167
+ email = '';
168
+ password = '';
169
+ constructor(data) {
170
+ super();
171
+ proto3.util.initPartial(data, this);
172
+ }
173
+ static runtime = proto3;
174
+ static typeName = 'team.firstfood.auth.v1.RegisterUserByEmailRequest';
175
+ static fields = proto3.util.newFieldList(() => [
176
+ { no: 1, name: 'email', kind: 'scalar', T: 9 },
177
+ { no: 2, name: 'password', kind: 'scalar', T: 9 },
178
+ ]);
179
+ static fromBinary(bytes, options) {
180
+ return new RegisterUserByEmailRequest().fromBinary(bytes, options);
181
+ }
182
+ static fromJson(jsonValue, options) {
183
+ return new RegisterUserByEmailRequest().fromJson(jsonValue, options);
184
+ }
185
+ static fromJsonString(jsonString, options) {
186
+ return new RegisterUserByEmailRequest().fromJsonString(jsonString, options);
187
+ }
188
+ static equals(a, b) {
189
+ return proto3.util.equals(RegisterUserByEmailRequest, a, b);
190
+ }
191
+ }
192
+ export class RegisterUserByEmailResponse extends Message {
193
+ authProcessId = '';
194
+ sessionToken = '';
195
+ accountId = '';
196
+ constructor(data) {
197
+ super();
198
+ proto3.util.initPartial(data, this);
199
+ }
200
+ static runtime = proto3;
201
+ static typeName = 'team.firstfood.auth.v1.RegisterUserByEmailResponse';
202
+ static fields = proto3.util.newFieldList(() => [
203
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
204
+ { no: 2, name: 'sessionToken', kind: 'scalar', T: 9 },
205
+ { no: 3, name: 'accountId', kind: 'scalar', T: 9 },
206
+ ]);
207
+ static fromBinary(bytes, options) {
208
+ return new RegisterUserByEmailResponse().fromBinary(bytes, options);
209
+ }
210
+ static fromJson(jsonValue, options) {
211
+ return new RegisterUserByEmailResponse().fromJson(jsonValue, options);
212
+ }
213
+ static fromJsonString(jsonString, options) {
214
+ return new RegisterUserByEmailResponse().fromJsonString(jsonString, options);
215
+ }
216
+ static equals(a, b) {
217
+ return proto3.util.equals(RegisterUserByEmailResponse, a, b);
218
+ }
219
+ }
220
+ export class RegisterUserByPhoneRequest extends Message {
221
+ phone = '';
222
+ constructor(data) {
223
+ super();
224
+ proto3.util.initPartial(data, this);
225
+ }
226
+ static runtime = proto3;
227
+ static typeName = 'team.firstfood.auth.v1.RegisterUserByPhoneRequest';
228
+ static fields = proto3.util.newFieldList(() => [
229
+ { no: 1, name: 'phone', kind: 'scalar', T: 9 },
230
+ ]);
231
+ static fromBinary(bytes, options) {
232
+ return new RegisterUserByPhoneRequest().fromBinary(bytes, options);
233
+ }
234
+ static fromJson(jsonValue, options) {
235
+ return new RegisterUserByPhoneRequest().fromJson(jsonValue, options);
236
+ }
237
+ static fromJsonString(jsonString, options) {
238
+ return new RegisterUserByPhoneRequest().fromJsonString(jsonString, options);
239
+ }
240
+ static equals(a, b) {
241
+ return proto3.util.equals(RegisterUserByPhoneRequest, a, b);
242
+ }
243
+ }
244
+ export class RegisterUserByPhoneResponse extends Message {
245
+ authProcessId = '';
246
+ sessionToken = '';
247
+ accountId = '';
248
+ constructor(data) {
249
+ super();
250
+ proto3.util.initPartial(data, this);
251
+ }
252
+ static runtime = proto3;
253
+ static typeName = 'team.firstfood.auth.v1.RegisterUserByPhoneResponse';
254
+ static fields = proto3.util.newFieldList(() => [
255
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
256
+ { no: 2, name: 'sessionToken', kind: 'scalar', T: 9 },
257
+ { no: 3, name: 'accountId', kind: 'scalar', T: 9 },
258
+ ]);
259
+ static fromBinary(bytes, options) {
260
+ return new RegisterUserByPhoneResponse().fromBinary(bytes, options);
261
+ }
262
+ static fromJson(jsonValue, options) {
263
+ return new RegisterUserByPhoneResponse().fromJson(jsonValue, options);
264
+ }
265
+ static fromJsonString(jsonString, options) {
266
+ return new RegisterUserByPhoneResponse().fromJsonString(jsonString, options);
267
+ }
268
+ static equals(a, b) {
269
+ return proto3.util.equals(RegisterUserByPhoneResponse, a, b);
270
+ }
271
+ }
272
+ export class SendRecoveryCodeRequest extends Message {
273
+ email = '';
274
+ constructor(data) {
275
+ super();
276
+ proto3.util.initPartial(data, this);
277
+ }
278
+ static runtime = proto3;
279
+ static typeName = 'team.firstfood.auth.v1.SendRecoveryCodeRequest';
280
+ static fields = proto3.util.newFieldList(() => [
281
+ { no: 1, name: 'email', kind: 'scalar', T: 9 },
282
+ ]);
283
+ static fromBinary(bytes, options) {
284
+ return new SendRecoveryCodeRequest().fromBinary(bytes, options);
285
+ }
286
+ static fromJson(jsonValue, options) {
287
+ return new SendRecoveryCodeRequest().fromJson(jsonValue, options);
288
+ }
289
+ static fromJsonString(jsonString, options) {
290
+ return new SendRecoveryCodeRequest().fromJsonString(jsonString, options);
291
+ }
292
+ static equals(a, b) {
293
+ return proto3.util.equals(SendRecoveryCodeRequest, a, b);
294
+ }
295
+ }
296
+ export class SendRecoveryCodeResponse extends Message {
297
+ authProcessId = '';
298
+ constructor(data) {
299
+ super();
300
+ proto3.util.initPartial(data, this);
301
+ }
302
+ static runtime = proto3;
303
+ static typeName = 'team.firstfood.auth.v1.SendRecoveryCodeResponse';
304
+ static fields = proto3.util.newFieldList(() => [
305
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
306
+ ]);
307
+ static fromBinary(bytes, options) {
308
+ return new SendRecoveryCodeResponse().fromBinary(bytes, options);
309
+ }
310
+ static fromJson(jsonValue, options) {
311
+ return new SendRecoveryCodeResponse().fromJson(jsonValue, options);
312
+ }
313
+ static fromJsonString(jsonString, options) {
314
+ return new SendRecoveryCodeResponse().fromJsonString(jsonString, options);
315
+ }
316
+ static equals(a, b) {
317
+ return proto3.util.equals(SendRecoveryCodeResponse, a, b);
318
+ }
319
+ }
320
+ export class ConfirmRecoveryCodeRequest extends Message {
321
+ authProcessId = '';
322
+ code = '';
323
+ constructor(data) {
324
+ super();
325
+ proto3.util.initPartial(data, this);
326
+ }
327
+ static runtime = proto3;
328
+ static typeName = 'team.firstfood.auth.v1.ConfirmRecoveryCodeRequest';
329
+ static fields = proto3.util.newFieldList(() => [
330
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
331
+ { no: 2, name: 'code', kind: 'scalar', T: 9 },
332
+ ]);
333
+ static fromBinary(bytes, options) {
334
+ return new ConfirmRecoveryCodeRequest().fromBinary(bytes, options);
335
+ }
336
+ static fromJson(jsonValue, options) {
337
+ return new ConfirmRecoveryCodeRequest().fromJson(jsonValue, options);
338
+ }
339
+ static fromJsonString(jsonString, options) {
340
+ return new ConfirmRecoveryCodeRequest().fromJsonString(jsonString, options);
341
+ }
342
+ static equals(a, b) {
343
+ return proto3.util.equals(ConfirmRecoveryCodeRequest, a, b);
344
+ }
345
+ }
346
+ export class ConfirmRecoveryCodeResponse extends Message {
347
+ sessionToken = '';
348
+ constructor(data) {
349
+ super();
350
+ proto3.util.initPartial(data, this);
351
+ }
352
+ static runtime = proto3;
353
+ static typeName = 'team.firstfood.auth.v1.ConfirmRecoveryCodeResponse';
354
+ static fields = proto3.util.newFieldList(() => [
355
+ { no: 1, name: 'sessionToken', kind: 'scalar', T: 9 },
356
+ ]);
357
+ static fromBinary(bytes, options) {
358
+ return new ConfirmRecoveryCodeResponse().fromBinary(bytes, options);
359
+ }
360
+ static fromJson(jsonValue, options) {
361
+ return new ConfirmRecoveryCodeResponse().fromJson(jsonValue, options);
362
+ }
363
+ static fromJsonString(jsonString, options) {
364
+ return new ConfirmRecoveryCodeResponse().fromJsonString(jsonString, options);
365
+ }
366
+ static equals(a, b) {
367
+ return proto3.util.equals(ConfirmRecoveryCodeResponse, a, b);
368
+ }
369
+ }
370
+ export class SendVerificationCodeRequest extends Message {
371
+ email = '';
372
+ constructor(data) {
373
+ super();
374
+ proto3.util.initPartial(data, this);
375
+ }
376
+ static runtime = proto3;
377
+ static typeName = 'team.firstfood.auth.v1.SendVerificationCodeRequest';
378
+ static fields = proto3.util.newFieldList(() => [
379
+ { no: 1, name: 'email', kind: 'scalar', T: 9 },
380
+ ]);
381
+ static fromBinary(bytes, options) {
382
+ return new SendVerificationCodeRequest().fromBinary(bytes, options);
383
+ }
384
+ static fromJson(jsonValue, options) {
385
+ return new SendVerificationCodeRequest().fromJson(jsonValue, options);
386
+ }
387
+ static fromJsonString(jsonString, options) {
388
+ return new SendVerificationCodeRequest().fromJsonString(jsonString, options);
389
+ }
390
+ static equals(a, b) {
391
+ return proto3.util.equals(SendVerificationCodeRequest, a, b);
392
+ }
393
+ }
394
+ export class SendVerificationCodeResponse extends Message {
395
+ authProcessId = '';
396
+ constructor(data) {
397
+ super();
398
+ proto3.util.initPartial(data, this);
399
+ }
400
+ static runtime = proto3;
401
+ static typeName = 'team.firstfood.auth.v1.SendVerificationCodeResponse';
402
+ static fields = proto3.util.newFieldList(() => [
403
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
404
+ ]);
405
+ static fromBinary(bytes, options) {
406
+ return new SendVerificationCodeResponse().fromBinary(bytes, options);
407
+ }
408
+ static fromJson(jsonValue, options) {
409
+ return new SendVerificationCodeResponse().fromJson(jsonValue, options);
410
+ }
411
+ static fromJsonString(jsonString, options) {
412
+ return new SendVerificationCodeResponse().fromJsonString(jsonString, options);
413
+ }
414
+ static equals(a, b) {
415
+ return proto3.util.equals(SendVerificationCodeResponse, a, b);
416
+ }
417
+ }
418
+ export class ConfirmVerificationCodeRequest extends Message {
419
+ authProcessId = '';
420
+ code = '';
421
+ constructor(data) {
422
+ super();
423
+ proto3.util.initPartial(data, this);
424
+ }
425
+ static runtime = proto3;
426
+ static typeName = 'team.firstfood.auth.v1.ConfirmVerificationCodeRequest';
427
+ static fields = proto3.util.newFieldList(() => [
428
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
429
+ { no: 2, name: 'code', kind: 'scalar', T: 9 },
430
+ ]);
431
+ static fromBinary(bytes, options) {
432
+ return new ConfirmVerificationCodeRequest().fromBinary(bytes, options);
433
+ }
434
+ static fromJson(jsonValue, options) {
435
+ return new ConfirmVerificationCodeRequest().fromJson(jsonValue, options);
436
+ }
437
+ static fromJsonString(jsonString, options) {
438
+ return new ConfirmVerificationCodeRequest().fromJsonString(jsonString, options);
439
+ }
440
+ static equals(a, b) {
441
+ return proto3.util.equals(ConfirmVerificationCodeRequest, a, b);
442
+ }
443
+ }
444
+ export class ConfirmVerificationCodeResponse extends Message {
445
+ success = false;
446
+ constructor(data) {
447
+ super();
448
+ proto3.util.initPartial(data, this);
449
+ }
450
+ static runtime = proto3;
451
+ static typeName = 'team.firstfood.auth.v1.ConfirmVerificationCodeResponse';
452
+ static fields = proto3.util.newFieldList(() => [
453
+ { no: 1, name: 'success', kind: 'scalar', T: 8 },
454
+ ]);
455
+ static fromBinary(bytes, options) {
456
+ return new ConfirmVerificationCodeResponse().fromBinary(bytes, options);
457
+ }
458
+ static fromJson(jsonValue, options) {
459
+ return new ConfirmVerificationCodeResponse().fromJson(jsonValue, options);
460
+ }
461
+ static fromJsonString(jsonString, options) {
462
+ return new ConfirmVerificationCodeResponse().fromJsonString(jsonString, options);
463
+ }
464
+ static equals(a, b) {
465
+ return proto3.util.equals(ConfirmVerificationCodeResponse, a, b);
466
+ }
467
+ }
468
+ export class UpdateUserEmailRequest extends Message {
469
+ email = '';
470
+ sessionToken = '';
471
+ constructor(data) {
472
+ super();
473
+ proto3.util.initPartial(data, this);
474
+ }
475
+ static runtime = proto3;
476
+ static typeName = 'team.firstfood.auth.v1.UpdateUserEmailRequest';
477
+ static fields = proto3.util.newFieldList(() => [
478
+ { no: 1, name: 'email', kind: 'scalar', T: 9 },
479
+ { no: 2, name: 'sessionToken', kind: 'scalar', T: 9 },
480
+ ]);
481
+ static fromBinary(bytes, options) {
482
+ return new UpdateUserEmailRequest().fromBinary(bytes, options);
483
+ }
484
+ static fromJson(jsonValue, options) {
485
+ return new UpdateUserEmailRequest().fromJson(jsonValue, options);
486
+ }
487
+ static fromJsonString(jsonString, options) {
488
+ return new UpdateUserEmailRequest().fromJsonString(jsonString, options);
489
+ }
490
+ static equals(a, b) {
491
+ return proto3.util.equals(UpdateUserEmailRequest, a, b);
492
+ }
493
+ }
494
+ export class UpdateUserEmailResponse extends Message {
495
+ authProcessId = '';
496
+ constructor(data) {
497
+ super();
498
+ proto3.util.initPartial(data, this);
499
+ }
500
+ static runtime = proto3;
501
+ static typeName = 'team.firstfood.auth.v1.UpdateUserEmailResponse';
502
+ static fields = proto3.util.newFieldList(() => [
503
+ { no: 1, name: 'authProcessId', kind: 'scalar', T: 9 },
504
+ ]);
505
+ static fromBinary(bytes, options) {
506
+ return new UpdateUserEmailResponse().fromBinary(bytes, options);
507
+ }
508
+ static fromJson(jsonValue, options) {
509
+ return new UpdateUserEmailResponse().fromJson(jsonValue, options);
510
+ }
511
+ static fromJsonString(jsonString, options) {
512
+ return new UpdateUserEmailResponse().fromJsonString(jsonString, options);
513
+ }
514
+ static equals(a, b) {
515
+ return proto3.util.equals(UpdateUserEmailResponse, a, b);
516
+ }
517
+ }
518
+ export class UpdateUserPasswordRequest extends Message {
519
+ password = '';
520
+ sessionToken = '';
521
+ constructor(data) {
522
+ super();
523
+ proto3.util.initPartial(data, this);
524
+ }
525
+ static runtime = proto3;
526
+ static typeName = 'team.firstfood.auth.v1.UpdateUserPasswordRequest';
527
+ static fields = proto3.util.newFieldList(() => [
528
+ { no: 1, name: 'password', kind: 'scalar', T: 9 },
529
+ { no: 2, name: 'sessionToken', kind: 'scalar', T: 9 },
530
+ ]);
531
+ static fromBinary(bytes, options) {
532
+ return new UpdateUserPasswordRequest().fromBinary(bytes, options);
533
+ }
534
+ static fromJson(jsonValue, options) {
535
+ return new UpdateUserPasswordRequest().fromJson(jsonValue, options);
536
+ }
537
+ static fromJsonString(jsonString, options) {
538
+ return new UpdateUserPasswordRequest().fromJsonString(jsonString, options);
539
+ }
540
+ static equals(a, b) {
541
+ return proto3.util.equals(UpdateUserPasswordRequest, a, b);
542
+ }
543
+ }
544
+ export class UpdateUserPasswordResponse extends Message {
545
+ success = false;
546
+ constructor(data) {
547
+ super();
548
+ proto3.util.initPartial(data, this);
549
+ }
550
+ static runtime = proto3;
551
+ static typeName = 'team.firstfood.auth.v1.UpdateUserPasswordResponse';
552
+ static fields = proto3.util.newFieldList(() => [
553
+ { no: 1, name: 'success', kind: 'scalar', T: 8 },
554
+ ]);
555
+ static fromBinary(bytes, options) {
556
+ return new UpdateUserPasswordResponse().fromBinary(bytes, options);
557
+ }
558
+ static fromJson(jsonValue, options) {
559
+ return new UpdateUserPasswordResponse().fromJson(jsonValue, options);
560
+ }
561
+ static fromJsonString(jsonString, options) {
562
+ return new UpdateUserPasswordResponse().fromJsonString(jsonString, options);
563
+ }
564
+ static equals(a, b) {
565
+ return proto3.util.equals(UpdateUserPasswordResponse, a, b);
566
+ }
567
+ }
568
+ export class DeleteUserAccountRequest extends Message {
569
+ accountId = '';
570
+ constructor(data) {
571
+ super();
572
+ proto3.util.initPartial(data, this);
573
+ }
574
+ static runtime = proto3;
575
+ static typeName = 'team.firstfood.auth.v1.DeleteUserAccountRequest';
576
+ static fields = proto3.util.newFieldList(() => [
577
+ { no: 1, name: 'accountId', kind: 'scalar', T: 9 },
578
+ ]);
579
+ static fromBinary(bytes, options) {
580
+ return new DeleteUserAccountRequest().fromBinary(bytes, options);
581
+ }
582
+ static fromJson(jsonValue, options) {
583
+ return new DeleteUserAccountRequest().fromJson(jsonValue, options);
584
+ }
585
+ static fromJsonString(jsonString, options) {
586
+ return new DeleteUserAccountRequest().fromJsonString(jsonString, options);
587
+ }
588
+ static equals(a, b) {
589
+ return proto3.util.equals(DeleteUserAccountRequest, a, b);
590
+ }
591
+ }
592
+ export class DeleteUserAccountResponse extends Message {
593
+ success = false;
594
+ constructor(data) {
595
+ super();
596
+ proto3.util.initPartial(data, this);
597
+ }
598
+ static runtime = proto3;
599
+ static typeName = 'team.firstfood.auth.v1.DeleteUserAccountResponse';
600
+ static fields = proto3.util.newFieldList(() => [
601
+ { no: 1, name: 'success', kind: 'scalar', T: 8 },
602
+ ]);
603
+ static fromBinary(bytes, options) {
604
+ return new DeleteUserAccountResponse().fromBinary(bytes, options);
605
+ }
606
+ static fromJson(jsonValue, options) {
607
+ return new DeleteUserAccountResponse().fromJson(jsonValue, options);
608
+ }
609
+ static fromJsonString(jsonString, options) {
610
+ return new DeleteUserAccountResponse().fromJsonString(jsonString, options);
611
+ }
612
+ static equals(a, b) {
613
+ return proto3.util.equals(DeleteUserAccountResponse, a, b);
614
+ }
615
+ }
616
+ export class GetUserAccountRequest extends Message {
617
+ sessionToken = '';
618
+ constructor(data) {
619
+ super();
620
+ proto3.util.initPartial(data, this);
621
+ }
622
+ static runtime = proto3;
623
+ static typeName = 'team.firstfood.auth.v1.GetUserAccountRequest';
624
+ static fields = proto3.util.newFieldList(() => [
625
+ { no: 1, name: 'sessionToken', kind: 'scalar', T: 9 },
626
+ ]);
627
+ static fromBinary(bytes, options) {
628
+ return new GetUserAccountRequest().fromBinary(bytes, options);
629
+ }
630
+ static fromJson(jsonValue, options) {
631
+ return new GetUserAccountRequest().fromJson(jsonValue, options);
632
+ }
633
+ static fromJsonString(jsonString, options) {
634
+ return new GetUserAccountRequest().fromJsonString(jsonString, options);
635
+ }
636
+ static equals(a, b) {
637
+ return proto3.util.equals(GetUserAccountRequest, a, b);
638
+ }
639
+ }
640
+ export class GetUserAccountResponse extends Message {
641
+ id = '';
642
+ email;
643
+ phone;
644
+ constructor(data) {
645
+ super();
646
+ proto3.util.initPartial(data, this);
647
+ }
648
+ static runtime = proto3;
649
+ static typeName = 'team.firstfood.auth.v1.GetUserAccountResponse';
650
+ static fields = proto3.util.newFieldList(() => [
651
+ { no: 1, name: 'id', kind: 'scalar', T: 9 },
652
+ { no: 2, name: 'email', kind: 'scalar', T: 9, opt: true },
653
+ { no: 3, name: 'phone', kind: 'scalar', T: 9, opt: true },
654
+ ]);
655
+ static fromBinary(bytes, options) {
656
+ return new GetUserAccountResponse().fromBinary(bytes, options);
657
+ }
658
+ static fromJson(jsonValue, options) {
659
+ return new GetUserAccountResponse().fromJson(jsonValue, options);
660
+ }
661
+ static fromJsonString(jsonString, options) {
662
+ return new GetUserAccountResponse().fromJsonString(jsonString, options);
663
+ }
664
+ static equals(a, b) {
665
+ return proto3.util.equals(GetUserAccountResponse, a, b);
666
+ }
667
+ }
668
+ export class LoginUserByProviderRequest extends Message {
669
+ provider = ProviderType.UNSPECIFIED;
670
+ idToken = '';
671
+ nonce = '';
672
+ constructor(data) {
673
+ super();
674
+ proto3.util.initPartial(data, this);
675
+ }
676
+ static runtime = proto3;
677
+ static typeName = 'team.firstfood.auth.v1.LoginUserByProviderRequest';
678
+ static fields = proto3.util.newFieldList(() => [
679
+ { no: 1, name: 'provider', kind: 'enum', T: proto3.getEnumType(ProviderType) },
680
+ { no: 2, name: 'idToken', kind: 'scalar', T: 9 },
681
+ { no: 3, name: 'nonce', kind: 'scalar', T: 9 },
682
+ ]);
683
+ static fromBinary(bytes, options) {
684
+ return new LoginUserByProviderRequest().fromBinary(bytes, options);
685
+ }
686
+ static fromJson(jsonValue, options) {
687
+ return new LoginUserByProviderRequest().fromJson(jsonValue, options);
688
+ }
689
+ static fromJsonString(jsonString, options) {
690
+ return new LoginUserByProviderRequest().fromJsonString(jsonString, options);
691
+ }
692
+ static equals(a, b) {
693
+ return proto3.util.equals(LoginUserByProviderRequest, a, b);
694
+ }
695
+ }
696
+ export class LoginUserByProviderResponse extends Message {
697
+ sessionToken;
698
+ accountId;
699
+ authProcessId;
700
+ constructor(data) {
701
+ super();
702
+ proto3.util.initPartial(data, this);
703
+ }
704
+ static runtime = proto3;
705
+ static typeName = 'team.firstfood.auth.v1.LoginUserByProviderResponse';
706
+ static fields = proto3.util.newFieldList(() => [
707
+ { no: 1, name: 'sessionToken', kind: 'scalar', T: 9, opt: true },
708
+ { no: 2, name: 'accountId', kind: 'scalar', T: 9, opt: true },
709
+ { no: 3, name: 'authProcessId', kind: 'scalar', T: 9, opt: true },
710
+ ]);
711
+ static fromBinary(bytes, options) {
712
+ return new LoginUserByProviderResponse().fromBinary(bytes, options);
713
+ }
714
+ static fromJson(jsonValue, options) {
715
+ return new LoginUserByProviderResponse().fromJson(jsonValue, options);
716
+ }
717
+ static fromJsonString(jsonString, options) {
718
+ return new LoginUserByProviderResponse().fromJsonString(jsonString, options);
719
+ }
720
+ static equals(a, b) {
721
+ return proto3.util.equals(LoginUserByProviderResponse, a, b);
722
+ }
723
+ }