@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,1523 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 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
|
+
import type { BinaryReadOptions } from '@bufbuild/protobuf'
|
|
7
|
+
import type { FieldList } from '@bufbuild/protobuf'
|
|
8
|
+
import type { JsonReadOptions } from '@bufbuild/protobuf'
|
|
9
|
+
import type { JsonValue } from '@bufbuild/protobuf'
|
|
10
|
+
import type { PartialMessage } from '@bufbuild/protobuf'
|
|
11
|
+
import type { PlainMessage } from '@bufbuild/protobuf'
|
|
12
|
+
|
|
13
|
+
import { Message } from '@bufbuild/protobuf'
|
|
14
|
+
import { proto3 } from '@bufbuild/protobuf'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum team.firstfood.auth.v1.ProviderType
|
|
18
|
+
*/
|
|
19
|
+
export enum ProviderType {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: PROVIDER_TYPE_UNSPECIFIED = 0;
|
|
22
|
+
*/
|
|
23
|
+
UNSPECIFIED = 0,
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: PROVIDER_TYPE_GOOGLE = 1;
|
|
27
|
+
*/
|
|
28
|
+
GOOGLE = 1,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum value: PROVIDER_TYPE_APPLE = 2;
|
|
32
|
+
*/
|
|
33
|
+
APPLE = 2,
|
|
34
|
+
}
|
|
35
|
+
// Retrieve enum metadata with: proto3.getEnumType(ProviderType)
|
|
36
|
+
proto3.util.setEnumType(ProviderType, 'team.firstfood.auth.v1.ProviderType', [
|
|
37
|
+
{ no: 0, name: 'PROVIDER_TYPE_UNSPECIFIED' },
|
|
38
|
+
{ no: 1, name: 'PROVIDER_TYPE_GOOGLE' },
|
|
39
|
+
{ no: 2, name: 'PROVIDER_TYPE_APPLE' },
|
|
40
|
+
])
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByEmailRequest
|
|
44
|
+
*/
|
|
45
|
+
export class LoginUserByEmailRequest extends Message<LoginUserByEmailRequest> {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: string email = 1;
|
|
48
|
+
*/
|
|
49
|
+
email = ''
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: string password = 2;
|
|
53
|
+
*/
|
|
54
|
+
password = ''
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: optional string authProcessId = 3;
|
|
58
|
+
*/
|
|
59
|
+
authProcessId?: string
|
|
60
|
+
|
|
61
|
+
constructor(data?: PartialMessage<LoginUserByEmailRequest>) {
|
|
62
|
+
super()
|
|
63
|
+
proto3.util.initPartial(data, this)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static readonly runtime: typeof proto3 = proto3
|
|
67
|
+
static readonly typeName = 'team.firstfood.auth.v1.LoginUserByEmailRequest'
|
|
68
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
69
|
+
{ no: 1, name: 'email', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
70
|
+
{ no: 2, name: 'password', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 3, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
static fromBinary(
|
|
75
|
+
bytes: Uint8Array,
|
|
76
|
+
options?: Partial<BinaryReadOptions>
|
|
77
|
+
): LoginUserByEmailRequest {
|
|
78
|
+
return new LoginUserByEmailRequest().fromBinary(bytes, options)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static fromJson(
|
|
82
|
+
jsonValue: JsonValue,
|
|
83
|
+
options?: Partial<JsonReadOptions>
|
|
84
|
+
): LoginUserByEmailRequest {
|
|
85
|
+
return new LoginUserByEmailRequest().fromJson(jsonValue, options)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static fromJsonString(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
options?: Partial<JsonReadOptions>
|
|
91
|
+
): LoginUserByEmailRequest {
|
|
92
|
+
return new LoginUserByEmailRequest().fromJsonString(jsonString, options)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static equals(
|
|
96
|
+
a: LoginUserByEmailRequest | PlainMessage<LoginUserByEmailRequest> | undefined,
|
|
97
|
+
b: LoginUserByEmailRequest | PlainMessage<LoginUserByEmailRequest> | undefined
|
|
98
|
+
): boolean {
|
|
99
|
+
return proto3.util.equals(LoginUserByEmailRequest, a, b)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByEmailResponse
|
|
105
|
+
*/
|
|
106
|
+
export class LoginUserByEmailResponse extends Message<LoginUserByEmailResponse> {
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: string sessionToken = 1;
|
|
109
|
+
*/
|
|
110
|
+
sessionToken = ''
|
|
111
|
+
|
|
112
|
+
constructor(data?: PartialMessage<LoginUserByEmailResponse>) {
|
|
113
|
+
super()
|
|
114
|
+
proto3.util.initPartial(data, this)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
static readonly runtime: typeof proto3 = proto3
|
|
118
|
+
static readonly typeName = 'team.firstfood.auth.v1.LoginUserByEmailResponse'
|
|
119
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
120
|
+
{ no: 1, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
121
|
+
])
|
|
122
|
+
|
|
123
|
+
static fromBinary(
|
|
124
|
+
bytes: Uint8Array,
|
|
125
|
+
options?: Partial<BinaryReadOptions>
|
|
126
|
+
): LoginUserByEmailResponse {
|
|
127
|
+
return new LoginUserByEmailResponse().fromBinary(bytes, options)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
static fromJson(
|
|
131
|
+
jsonValue: JsonValue,
|
|
132
|
+
options?: Partial<JsonReadOptions>
|
|
133
|
+
): LoginUserByEmailResponse {
|
|
134
|
+
return new LoginUserByEmailResponse().fromJson(jsonValue, options)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
static fromJsonString(
|
|
138
|
+
jsonString: string,
|
|
139
|
+
options?: Partial<JsonReadOptions>
|
|
140
|
+
): LoginUserByEmailResponse {
|
|
141
|
+
return new LoginUserByEmailResponse().fromJsonString(jsonString, options)
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
static equals(
|
|
145
|
+
a: LoginUserByEmailResponse | PlainMessage<LoginUserByEmailResponse> | undefined,
|
|
146
|
+
b: LoginUserByEmailResponse | PlainMessage<LoginUserByEmailResponse> | undefined
|
|
147
|
+
): boolean {
|
|
148
|
+
return proto3.util.equals(LoginUserByEmailResponse, a, b)
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByPhoneRequest
|
|
154
|
+
*/
|
|
155
|
+
export class LoginUserByPhoneRequest extends Message<LoginUserByPhoneRequest> {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: string phone = 1;
|
|
158
|
+
*/
|
|
159
|
+
phone = ''
|
|
160
|
+
|
|
161
|
+
constructor(data?: PartialMessage<LoginUserByPhoneRequest>) {
|
|
162
|
+
super()
|
|
163
|
+
proto3.util.initPartial(data, this)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
static readonly runtime: typeof proto3 = proto3
|
|
167
|
+
static readonly typeName = 'team.firstfood.auth.v1.LoginUserByPhoneRequest'
|
|
168
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
169
|
+
{ no: 1, name: 'phone', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
170
|
+
])
|
|
171
|
+
|
|
172
|
+
static fromBinary(
|
|
173
|
+
bytes: Uint8Array,
|
|
174
|
+
options?: Partial<BinaryReadOptions>
|
|
175
|
+
): LoginUserByPhoneRequest {
|
|
176
|
+
return new LoginUserByPhoneRequest().fromBinary(bytes, options)
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
static fromJson(
|
|
180
|
+
jsonValue: JsonValue,
|
|
181
|
+
options?: Partial<JsonReadOptions>
|
|
182
|
+
): LoginUserByPhoneRequest {
|
|
183
|
+
return new LoginUserByPhoneRequest().fromJson(jsonValue, options)
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static fromJsonString(
|
|
187
|
+
jsonString: string,
|
|
188
|
+
options?: Partial<JsonReadOptions>
|
|
189
|
+
): LoginUserByPhoneRequest {
|
|
190
|
+
return new LoginUserByPhoneRequest().fromJsonString(jsonString, options)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
static equals(
|
|
194
|
+
a: LoginUserByPhoneRequest | PlainMessage<LoginUserByPhoneRequest> | undefined,
|
|
195
|
+
b: LoginUserByPhoneRequest | PlainMessage<LoginUserByPhoneRequest> | undefined
|
|
196
|
+
): boolean {
|
|
197
|
+
return proto3.util.equals(LoginUserByPhoneRequest, a, b)
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByPhoneResponse
|
|
203
|
+
*/
|
|
204
|
+
export class LoginUserByPhoneResponse extends Message<LoginUserByPhoneResponse> {
|
|
205
|
+
/**
|
|
206
|
+
* @generated from field: string authProcessId = 1;
|
|
207
|
+
*/
|
|
208
|
+
authProcessId = ''
|
|
209
|
+
|
|
210
|
+
constructor(data?: PartialMessage<LoginUserByPhoneResponse>) {
|
|
211
|
+
super()
|
|
212
|
+
proto3.util.initPartial(data, this)
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
static readonly runtime: typeof proto3 = proto3
|
|
216
|
+
static readonly typeName = 'team.firstfood.auth.v1.LoginUserByPhoneResponse'
|
|
217
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
218
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
219
|
+
])
|
|
220
|
+
|
|
221
|
+
static fromBinary(
|
|
222
|
+
bytes: Uint8Array,
|
|
223
|
+
options?: Partial<BinaryReadOptions>
|
|
224
|
+
): LoginUserByPhoneResponse {
|
|
225
|
+
return new LoginUserByPhoneResponse().fromBinary(bytes, options)
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
static fromJson(
|
|
229
|
+
jsonValue: JsonValue,
|
|
230
|
+
options?: Partial<JsonReadOptions>
|
|
231
|
+
): LoginUserByPhoneResponse {
|
|
232
|
+
return new LoginUserByPhoneResponse().fromJson(jsonValue, options)
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
static fromJsonString(
|
|
236
|
+
jsonString: string,
|
|
237
|
+
options?: Partial<JsonReadOptions>
|
|
238
|
+
): LoginUserByPhoneResponse {
|
|
239
|
+
return new LoginUserByPhoneResponse().fromJsonString(jsonString, options)
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
static equals(
|
|
243
|
+
a: LoginUserByPhoneResponse | PlainMessage<LoginUserByPhoneResponse> | undefined,
|
|
244
|
+
b: LoginUserByPhoneResponse | PlainMessage<LoginUserByPhoneResponse> | undefined
|
|
245
|
+
): boolean {
|
|
246
|
+
return proto3.util.equals(LoginUserByPhoneResponse, a, b)
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @generated from message team.firstfood.auth.v1.ConfirmLoginCodeRequest
|
|
252
|
+
*/
|
|
253
|
+
export class ConfirmLoginCodeRequest extends Message<ConfirmLoginCodeRequest> {
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string authProcessId = 1;
|
|
256
|
+
*/
|
|
257
|
+
authProcessId = ''
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @generated from field: string code = 2;
|
|
261
|
+
*/
|
|
262
|
+
code = ''
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: string identifier = 3;
|
|
266
|
+
*/
|
|
267
|
+
identifier = ''
|
|
268
|
+
|
|
269
|
+
constructor(data?: PartialMessage<ConfirmLoginCodeRequest>) {
|
|
270
|
+
super()
|
|
271
|
+
proto3.util.initPartial(data, this)
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static readonly runtime: typeof proto3 = proto3
|
|
275
|
+
static readonly typeName = 'team.firstfood.auth.v1.ConfirmLoginCodeRequest'
|
|
276
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
277
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
278
|
+
{ no: 2, name: 'code', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
279
|
+
{ no: 3, name: 'identifier', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
280
|
+
])
|
|
281
|
+
|
|
282
|
+
static fromBinary(
|
|
283
|
+
bytes: Uint8Array,
|
|
284
|
+
options?: Partial<BinaryReadOptions>
|
|
285
|
+
): ConfirmLoginCodeRequest {
|
|
286
|
+
return new ConfirmLoginCodeRequest().fromBinary(bytes, options)
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
static fromJson(
|
|
290
|
+
jsonValue: JsonValue,
|
|
291
|
+
options?: Partial<JsonReadOptions>
|
|
292
|
+
): ConfirmLoginCodeRequest {
|
|
293
|
+
return new ConfirmLoginCodeRequest().fromJson(jsonValue, options)
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
static fromJsonString(
|
|
297
|
+
jsonString: string,
|
|
298
|
+
options?: Partial<JsonReadOptions>
|
|
299
|
+
): ConfirmLoginCodeRequest {
|
|
300
|
+
return new ConfirmLoginCodeRequest().fromJsonString(jsonString, options)
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
static equals(
|
|
304
|
+
a: ConfirmLoginCodeRequest | PlainMessage<ConfirmLoginCodeRequest> | undefined,
|
|
305
|
+
b: ConfirmLoginCodeRequest | PlainMessage<ConfirmLoginCodeRequest> | undefined
|
|
306
|
+
): boolean {
|
|
307
|
+
return proto3.util.equals(ConfirmLoginCodeRequest, a, b)
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @generated from message team.firstfood.auth.v1.ConfirmLoginCodeResponse
|
|
313
|
+
*/
|
|
314
|
+
export class ConfirmLoginCodeResponse extends Message<ConfirmLoginCodeResponse> {
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: string sessionToken = 1;
|
|
317
|
+
*/
|
|
318
|
+
sessionToken = ''
|
|
319
|
+
|
|
320
|
+
constructor(data?: PartialMessage<ConfirmLoginCodeResponse>) {
|
|
321
|
+
super()
|
|
322
|
+
proto3.util.initPartial(data, this)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
static readonly runtime: typeof proto3 = proto3
|
|
326
|
+
static readonly typeName = 'team.firstfood.auth.v1.ConfirmLoginCodeResponse'
|
|
327
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
328
|
+
{ no: 1, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
329
|
+
])
|
|
330
|
+
|
|
331
|
+
static fromBinary(
|
|
332
|
+
bytes: Uint8Array,
|
|
333
|
+
options?: Partial<BinaryReadOptions>
|
|
334
|
+
): ConfirmLoginCodeResponse {
|
|
335
|
+
return new ConfirmLoginCodeResponse().fromBinary(bytes, options)
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
static fromJson(
|
|
339
|
+
jsonValue: JsonValue,
|
|
340
|
+
options?: Partial<JsonReadOptions>
|
|
341
|
+
): ConfirmLoginCodeResponse {
|
|
342
|
+
return new ConfirmLoginCodeResponse().fromJson(jsonValue, options)
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
static fromJsonString(
|
|
346
|
+
jsonString: string,
|
|
347
|
+
options?: Partial<JsonReadOptions>
|
|
348
|
+
): ConfirmLoginCodeResponse {
|
|
349
|
+
return new ConfirmLoginCodeResponse().fromJsonString(jsonString, options)
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
static equals(
|
|
353
|
+
a: ConfirmLoginCodeResponse | PlainMessage<ConfirmLoginCodeResponse> | undefined,
|
|
354
|
+
b: ConfirmLoginCodeResponse | PlainMessage<ConfirmLoginCodeResponse> | undefined
|
|
355
|
+
): boolean {
|
|
356
|
+
return proto3.util.equals(ConfirmLoginCodeResponse, a, b)
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByEmailRequest
|
|
362
|
+
*/
|
|
363
|
+
export class RegisterUserByEmailRequest extends Message<RegisterUserByEmailRequest> {
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: string email = 1;
|
|
366
|
+
*/
|
|
367
|
+
email = ''
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @generated from field: string password = 2;
|
|
371
|
+
*/
|
|
372
|
+
password = ''
|
|
373
|
+
|
|
374
|
+
constructor(data?: PartialMessage<RegisterUserByEmailRequest>) {
|
|
375
|
+
super()
|
|
376
|
+
proto3.util.initPartial(data, this)
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
static readonly runtime: typeof proto3 = proto3
|
|
380
|
+
static readonly typeName = 'team.firstfood.auth.v1.RegisterUserByEmailRequest'
|
|
381
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
382
|
+
{ no: 1, name: 'email', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
383
|
+
{ no: 2, name: 'password', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
384
|
+
])
|
|
385
|
+
|
|
386
|
+
static fromBinary(
|
|
387
|
+
bytes: Uint8Array,
|
|
388
|
+
options?: Partial<BinaryReadOptions>
|
|
389
|
+
): RegisterUserByEmailRequest {
|
|
390
|
+
return new RegisterUserByEmailRequest().fromBinary(bytes, options)
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
static fromJson(
|
|
394
|
+
jsonValue: JsonValue,
|
|
395
|
+
options?: Partial<JsonReadOptions>
|
|
396
|
+
): RegisterUserByEmailRequest {
|
|
397
|
+
return new RegisterUserByEmailRequest().fromJson(jsonValue, options)
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
static fromJsonString(
|
|
401
|
+
jsonString: string,
|
|
402
|
+
options?: Partial<JsonReadOptions>
|
|
403
|
+
): RegisterUserByEmailRequest {
|
|
404
|
+
return new RegisterUserByEmailRequest().fromJsonString(jsonString, options)
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
static equals(
|
|
408
|
+
a: RegisterUserByEmailRequest | PlainMessage<RegisterUserByEmailRequest> | undefined,
|
|
409
|
+
b: RegisterUserByEmailRequest | PlainMessage<RegisterUserByEmailRequest> | undefined
|
|
410
|
+
): boolean {
|
|
411
|
+
return proto3.util.equals(RegisterUserByEmailRequest, a, b)
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByEmailResponse
|
|
417
|
+
*/
|
|
418
|
+
export class RegisterUserByEmailResponse extends Message<RegisterUserByEmailResponse> {
|
|
419
|
+
/**
|
|
420
|
+
* @generated from field: string authProcessId = 1;
|
|
421
|
+
*/
|
|
422
|
+
authProcessId = ''
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: string sessionToken = 2;
|
|
426
|
+
*/
|
|
427
|
+
sessionToken = ''
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: string accountId = 3;
|
|
431
|
+
*/
|
|
432
|
+
accountId = ''
|
|
433
|
+
|
|
434
|
+
constructor(data?: PartialMessage<RegisterUserByEmailResponse>) {
|
|
435
|
+
super()
|
|
436
|
+
proto3.util.initPartial(data, this)
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static readonly runtime: typeof proto3 = proto3
|
|
440
|
+
static readonly typeName = 'team.firstfood.auth.v1.RegisterUserByEmailResponse'
|
|
441
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
442
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
443
|
+
{ no: 2, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
444
|
+
{ no: 3, name: 'accountId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
445
|
+
])
|
|
446
|
+
|
|
447
|
+
static fromBinary(
|
|
448
|
+
bytes: Uint8Array,
|
|
449
|
+
options?: Partial<BinaryReadOptions>
|
|
450
|
+
): RegisterUserByEmailResponse {
|
|
451
|
+
return new RegisterUserByEmailResponse().fromBinary(bytes, options)
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
static fromJson(
|
|
455
|
+
jsonValue: JsonValue,
|
|
456
|
+
options?: Partial<JsonReadOptions>
|
|
457
|
+
): RegisterUserByEmailResponse {
|
|
458
|
+
return new RegisterUserByEmailResponse().fromJson(jsonValue, options)
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
static fromJsonString(
|
|
462
|
+
jsonString: string,
|
|
463
|
+
options?: Partial<JsonReadOptions>
|
|
464
|
+
): RegisterUserByEmailResponse {
|
|
465
|
+
return new RegisterUserByEmailResponse().fromJsonString(jsonString, options)
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
static equals(
|
|
469
|
+
a: RegisterUserByEmailResponse | PlainMessage<RegisterUserByEmailResponse> | undefined,
|
|
470
|
+
b: RegisterUserByEmailResponse | PlainMessage<RegisterUserByEmailResponse> | undefined
|
|
471
|
+
): boolean {
|
|
472
|
+
return proto3.util.equals(RegisterUserByEmailResponse, a, b)
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByPhoneRequest
|
|
478
|
+
*/
|
|
479
|
+
export class RegisterUserByPhoneRequest extends Message<RegisterUserByPhoneRequest> {
|
|
480
|
+
/**
|
|
481
|
+
* @generated from field: string phone = 1;
|
|
482
|
+
*/
|
|
483
|
+
phone = ''
|
|
484
|
+
|
|
485
|
+
constructor(data?: PartialMessage<RegisterUserByPhoneRequest>) {
|
|
486
|
+
super()
|
|
487
|
+
proto3.util.initPartial(data, this)
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
static readonly runtime: typeof proto3 = proto3
|
|
491
|
+
static readonly typeName = 'team.firstfood.auth.v1.RegisterUserByPhoneRequest'
|
|
492
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
493
|
+
{ no: 1, name: 'phone', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
494
|
+
])
|
|
495
|
+
|
|
496
|
+
static fromBinary(
|
|
497
|
+
bytes: Uint8Array,
|
|
498
|
+
options?: Partial<BinaryReadOptions>
|
|
499
|
+
): RegisterUserByPhoneRequest {
|
|
500
|
+
return new RegisterUserByPhoneRequest().fromBinary(bytes, options)
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
static fromJson(
|
|
504
|
+
jsonValue: JsonValue,
|
|
505
|
+
options?: Partial<JsonReadOptions>
|
|
506
|
+
): RegisterUserByPhoneRequest {
|
|
507
|
+
return new RegisterUserByPhoneRequest().fromJson(jsonValue, options)
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
static fromJsonString(
|
|
511
|
+
jsonString: string,
|
|
512
|
+
options?: Partial<JsonReadOptions>
|
|
513
|
+
): RegisterUserByPhoneRequest {
|
|
514
|
+
return new RegisterUserByPhoneRequest().fromJsonString(jsonString, options)
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
static equals(
|
|
518
|
+
a: RegisterUserByPhoneRequest | PlainMessage<RegisterUserByPhoneRequest> | undefined,
|
|
519
|
+
b: RegisterUserByPhoneRequest | PlainMessage<RegisterUserByPhoneRequest> | undefined
|
|
520
|
+
): boolean {
|
|
521
|
+
return proto3.util.equals(RegisterUserByPhoneRequest, a, b)
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @generated from message team.firstfood.auth.v1.RegisterUserByPhoneResponse
|
|
527
|
+
*/
|
|
528
|
+
export class RegisterUserByPhoneResponse extends Message<RegisterUserByPhoneResponse> {
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: string authProcessId = 1;
|
|
531
|
+
*/
|
|
532
|
+
authProcessId = ''
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @generated from field: string sessionToken = 2;
|
|
536
|
+
*/
|
|
537
|
+
sessionToken = ''
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @generated from field: string accountId = 3;
|
|
541
|
+
*/
|
|
542
|
+
accountId = ''
|
|
543
|
+
|
|
544
|
+
constructor(data?: PartialMessage<RegisterUserByPhoneResponse>) {
|
|
545
|
+
super()
|
|
546
|
+
proto3.util.initPartial(data, this)
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
static readonly runtime: typeof proto3 = proto3
|
|
550
|
+
static readonly typeName = 'team.firstfood.auth.v1.RegisterUserByPhoneResponse'
|
|
551
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
552
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
553
|
+
{ no: 2, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
554
|
+
{ no: 3, name: 'accountId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
555
|
+
])
|
|
556
|
+
|
|
557
|
+
static fromBinary(
|
|
558
|
+
bytes: Uint8Array,
|
|
559
|
+
options?: Partial<BinaryReadOptions>
|
|
560
|
+
): RegisterUserByPhoneResponse {
|
|
561
|
+
return new RegisterUserByPhoneResponse().fromBinary(bytes, options)
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
static fromJson(
|
|
565
|
+
jsonValue: JsonValue,
|
|
566
|
+
options?: Partial<JsonReadOptions>
|
|
567
|
+
): RegisterUserByPhoneResponse {
|
|
568
|
+
return new RegisterUserByPhoneResponse().fromJson(jsonValue, options)
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
static fromJsonString(
|
|
572
|
+
jsonString: string,
|
|
573
|
+
options?: Partial<JsonReadOptions>
|
|
574
|
+
): RegisterUserByPhoneResponse {
|
|
575
|
+
return new RegisterUserByPhoneResponse().fromJsonString(jsonString, options)
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
static equals(
|
|
579
|
+
a: RegisterUserByPhoneResponse | PlainMessage<RegisterUserByPhoneResponse> | undefined,
|
|
580
|
+
b: RegisterUserByPhoneResponse | PlainMessage<RegisterUserByPhoneResponse> | undefined
|
|
581
|
+
): boolean {
|
|
582
|
+
return proto3.util.equals(RegisterUserByPhoneResponse, a, b)
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @generated from message team.firstfood.auth.v1.SendRecoveryCodeRequest
|
|
588
|
+
*/
|
|
589
|
+
export class SendRecoveryCodeRequest extends Message<SendRecoveryCodeRequest> {
|
|
590
|
+
/**
|
|
591
|
+
* @generated from field: string email = 1;
|
|
592
|
+
*/
|
|
593
|
+
email = ''
|
|
594
|
+
|
|
595
|
+
constructor(data?: PartialMessage<SendRecoveryCodeRequest>) {
|
|
596
|
+
super()
|
|
597
|
+
proto3.util.initPartial(data, this)
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
static readonly runtime: typeof proto3 = proto3
|
|
601
|
+
static readonly typeName = 'team.firstfood.auth.v1.SendRecoveryCodeRequest'
|
|
602
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
603
|
+
{ no: 1, name: 'email', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
604
|
+
])
|
|
605
|
+
|
|
606
|
+
static fromBinary(
|
|
607
|
+
bytes: Uint8Array,
|
|
608
|
+
options?: Partial<BinaryReadOptions>
|
|
609
|
+
): SendRecoveryCodeRequest {
|
|
610
|
+
return new SendRecoveryCodeRequest().fromBinary(bytes, options)
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
static fromJson(
|
|
614
|
+
jsonValue: JsonValue,
|
|
615
|
+
options?: Partial<JsonReadOptions>
|
|
616
|
+
): SendRecoveryCodeRequest {
|
|
617
|
+
return new SendRecoveryCodeRequest().fromJson(jsonValue, options)
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
static fromJsonString(
|
|
621
|
+
jsonString: string,
|
|
622
|
+
options?: Partial<JsonReadOptions>
|
|
623
|
+
): SendRecoveryCodeRequest {
|
|
624
|
+
return new SendRecoveryCodeRequest().fromJsonString(jsonString, options)
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
static equals(
|
|
628
|
+
a: SendRecoveryCodeRequest | PlainMessage<SendRecoveryCodeRequest> | undefined,
|
|
629
|
+
b: SendRecoveryCodeRequest | PlainMessage<SendRecoveryCodeRequest> | undefined
|
|
630
|
+
): boolean {
|
|
631
|
+
return proto3.util.equals(SendRecoveryCodeRequest, a, b)
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* @generated from message team.firstfood.auth.v1.SendRecoveryCodeResponse
|
|
637
|
+
*/
|
|
638
|
+
export class SendRecoveryCodeResponse extends Message<SendRecoveryCodeResponse> {
|
|
639
|
+
/**
|
|
640
|
+
* @generated from field: string authProcessId = 1;
|
|
641
|
+
*/
|
|
642
|
+
authProcessId = ''
|
|
643
|
+
|
|
644
|
+
constructor(data?: PartialMessage<SendRecoveryCodeResponse>) {
|
|
645
|
+
super()
|
|
646
|
+
proto3.util.initPartial(data, this)
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
static readonly runtime: typeof proto3 = proto3
|
|
650
|
+
static readonly typeName = 'team.firstfood.auth.v1.SendRecoveryCodeResponse'
|
|
651
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
652
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
653
|
+
])
|
|
654
|
+
|
|
655
|
+
static fromBinary(
|
|
656
|
+
bytes: Uint8Array,
|
|
657
|
+
options?: Partial<BinaryReadOptions>
|
|
658
|
+
): SendRecoveryCodeResponse {
|
|
659
|
+
return new SendRecoveryCodeResponse().fromBinary(bytes, options)
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
static fromJson(
|
|
663
|
+
jsonValue: JsonValue,
|
|
664
|
+
options?: Partial<JsonReadOptions>
|
|
665
|
+
): SendRecoveryCodeResponse {
|
|
666
|
+
return new SendRecoveryCodeResponse().fromJson(jsonValue, options)
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
static fromJsonString(
|
|
670
|
+
jsonString: string,
|
|
671
|
+
options?: Partial<JsonReadOptions>
|
|
672
|
+
): SendRecoveryCodeResponse {
|
|
673
|
+
return new SendRecoveryCodeResponse().fromJsonString(jsonString, options)
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
static equals(
|
|
677
|
+
a: SendRecoveryCodeResponse | PlainMessage<SendRecoveryCodeResponse> | undefined,
|
|
678
|
+
b: SendRecoveryCodeResponse | PlainMessage<SendRecoveryCodeResponse> | undefined
|
|
679
|
+
): boolean {
|
|
680
|
+
return proto3.util.equals(SendRecoveryCodeResponse, a, b)
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* @generated from message team.firstfood.auth.v1.ConfirmRecoveryCodeRequest
|
|
686
|
+
*/
|
|
687
|
+
export class ConfirmRecoveryCodeRequest extends Message<ConfirmRecoveryCodeRequest> {
|
|
688
|
+
/**
|
|
689
|
+
* @generated from field: string authProcessId = 1;
|
|
690
|
+
*/
|
|
691
|
+
authProcessId = ''
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* @generated from field: string code = 2;
|
|
695
|
+
*/
|
|
696
|
+
code = ''
|
|
697
|
+
|
|
698
|
+
constructor(data?: PartialMessage<ConfirmRecoveryCodeRequest>) {
|
|
699
|
+
super()
|
|
700
|
+
proto3.util.initPartial(data, this)
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
static readonly runtime: typeof proto3 = proto3
|
|
704
|
+
static readonly typeName = 'team.firstfood.auth.v1.ConfirmRecoveryCodeRequest'
|
|
705
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
706
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
707
|
+
{ no: 2, name: 'code', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
708
|
+
])
|
|
709
|
+
|
|
710
|
+
static fromBinary(
|
|
711
|
+
bytes: Uint8Array,
|
|
712
|
+
options?: Partial<BinaryReadOptions>
|
|
713
|
+
): ConfirmRecoveryCodeRequest {
|
|
714
|
+
return new ConfirmRecoveryCodeRequest().fromBinary(bytes, options)
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
static fromJson(
|
|
718
|
+
jsonValue: JsonValue,
|
|
719
|
+
options?: Partial<JsonReadOptions>
|
|
720
|
+
): ConfirmRecoveryCodeRequest {
|
|
721
|
+
return new ConfirmRecoveryCodeRequest().fromJson(jsonValue, options)
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
static fromJsonString(
|
|
725
|
+
jsonString: string,
|
|
726
|
+
options?: Partial<JsonReadOptions>
|
|
727
|
+
): ConfirmRecoveryCodeRequest {
|
|
728
|
+
return new ConfirmRecoveryCodeRequest().fromJsonString(jsonString, options)
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
static equals(
|
|
732
|
+
a: ConfirmRecoveryCodeRequest | PlainMessage<ConfirmRecoveryCodeRequest> | undefined,
|
|
733
|
+
b: ConfirmRecoveryCodeRequest | PlainMessage<ConfirmRecoveryCodeRequest> | undefined
|
|
734
|
+
): boolean {
|
|
735
|
+
return proto3.util.equals(ConfirmRecoveryCodeRequest, a, b)
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* @generated from message team.firstfood.auth.v1.ConfirmRecoveryCodeResponse
|
|
741
|
+
*/
|
|
742
|
+
export class ConfirmRecoveryCodeResponse extends Message<ConfirmRecoveryCodeResponse> {
|
|
743
|
+
/**
|
|
744
|
+
* @generated from field: string sessionToken = 1;
|
|
745
|
+
*/
|
|
746
|
+
sessionToken = ''
|
|
747
|
+
|
|
748
|
+
constructor(data?: PartialMessage<ConfirmRecoveryCodeResponse>) {
|
|
749
|
+
super()
|
|
750
|
+
proto3.util.initPartial(data, this)
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
static readonly runtime: typeof proto3 = proto3
|
|
754
|
+
static readonly typeName = 'team.firstfood.auth.v1.ConfirmRecoveryCodeResponse'
|
|
755
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
756
|
+
{ no: 1, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
757
|
+
])
|
|
758
|
+
|
|
759
|
+
static fromBinary(
|
|
760
|
+
bytes: Uint8Array,
|
|
761
|
+
options?: Partial<BinaryReadOptions>
|
|
762
|
+
): ConfirmRecoveryCodeResponse {
|
|
763
|
+
return new ConfirmRecoveryCodeResponse().fromBinary(bytes, options)
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
static fromJson(
|
|
767
|
+
jsonValue: JsonValue,
|
|
768
|
+
options?: Partial<JsonReadOptions>
|
|
769
|
+
): ConfirmRecoveryCodeResponse {
|
|
770
|
+
return new ConfirmRecoveryCodeResponse().fromJson(jsonValue, options)
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
static fromJsonString(
|
|
774
|
+
jsonString: string,
|
|
775
|
+
options?: Partial<JsonReadOptions>
|
|
776
|
+
): ConfirmRecoveryCodeResponse {
|
|
777
|
+
return new ConfirmRecoveryCodeResponse().fromJsonString(jsonString, options)
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
static equals(
|
|
781
|
+
a: ConfirmRecoveryCodeResponse | PlainMessage<ConfirmRecoveryCodeResponse> | undefined,
|
|
782
|
+
b: ConfirmRecoveryCodeResponse | PlainMessage<ConfirmRecoveryCodeResponse> | undefined
|
|
783
|
+
): boolean {
|
|
784
|
+
return proto3.util.equals(ConfirmRecoveryCodeResponse, a, b)
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* @generated from message team.firstfood.auth.v1.SendVerificationCodeRequest
|
|
790
|
+
*/
|
|
791
|
+
export class SendVerificationCodeRequest extends Message<SendVerificationCodeRequest> {
|
|
792
|
+
/**
|
|
793
|
+
* @generated from field: string email = 1;
|
|
794
|
+
*/
|
|
795
|
+
email = ''
|
|
796
|
+
|
|
797
|
+
constructor(data?: PartialMessage<SendVerificationCodeRequest>) {
|
|
798
|
+
super()
|
|
799
|
+
proto3.util.initPartial(data, this)
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
static readonly runtime: typeof proto3 = proto3
|
|
803
|
+
static readonly typeName = 'team.firstfood.auth.v1.SendVerificationCodeRequest'
|
|
804
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
805
|
+
{ no: 1, name: 'email', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
806
|
+
])
|
|
807
|
+
|
|
808
|
+
static fromBinary(
|
|
809
|
+
bytes: Uint8Array,
|
|
810
|
+
options?: Partial<BinaryReadOptions>
|
|
811
|
+
): SendVerificationCodeRequest {
|
|
812
|
+
return new SendVerificationCodeRequest().fromBinary(bytes, options)
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
static fromJson(
|
|
816
|
+
jsonValue: JsonValue,
|
|
817
|
+
options?: Partial<JsonReadOptions>
|
|
818
|
+
): SendVerificationCodeRequest {
|
|
819
|
+
return new SendVerificationCodeRequest().fromJson(jsonValue, options)
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
static fromJsonString(
|
|
823
|
+
jsonString: string,
|
|
824
|
+
options?: Partial<JsonReadOptions>
|
|
825
|
+
): SendVerificationCodeRequest {
|
|
826
|
+
return new SendVerificationCodeRequest().fromJsonString(jsonString, options)
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
static equals(
|
|
830
|
+
a: SendVerificationCodeRequest | PlainMessage<SendVerificationCodeRequest> | undefined,
|
|
831
|
+
b: SendVerificationCodeRequest | PlainMessage<SendVerificationCodeRequest> | undefined
|
|
832
|
+
): boolean {
|
|
833
|
+
return proto3.util.equals(SendVerificationCodeRequest, a, b)
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @generated from message team.firstfood.auth.v1.SendVerificationCodeResponse
|
|
839
|
+
*/
|
|
840
|
+
export class SendVerificationCodeResponse extends Message<SendVerificationCodeResponse> {
|
|
841
|
+
/**
|
|
842
|
+
* @generated from field: string authProcessId = 1;
|
|
843
|
+
*/
|
|
844
|
+
authProcessId = ''
|
|
845
|
+
|
|
846
|
+
constructor(data?: PartialMessage<SendVerificationCodeResponse>) {
|
|
847
|
+
super()
|
|
848
|
+
proto3.util.initPartial(data, this)
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
static readonly runtime: typeof proto3 = proto3
|
|
852
|
+
static readonly typeName = 'team.firstfood.auth.v1.SendVerificationCodeResponse'
|
|
853
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
854
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
855
|
+
])
|
|
856
|
+
|
|
857
|
+
static fromBinary(
|
|
858
|
+
bytes: Uint8Array,
|
|
859
|
+
options?: Partial<BinaryReadOptions>
|
|
860
|
+
): SendVerificationCodeResponse {
|
|
861
|
+
return new SendVerificationCodeResponse().fromBinary(bytes, options)
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
static fromJson(
|
|
865
|
+
jsonValue: JsonValue,
|
|
866
|
+
options?: Partial<JsonReadOptions>
|
|
867
|
+
): SendVerificationCodeResponse {
|
|
868
|
+
return new SendVerificationCodeResponse().fromJson(jsonValue, options)
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
static fromJsonString(
|
|
872
|
+
jsonString: string,
|
|
873
|
+
options?: Partial<JsonReadOptions>
|
|
874
|
+
): SendVerificationCodeResponse {
|
|
875
|
+
return new SendVerificationCodeResponse().fromJsonString(jsonString, options)
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
static equals(
|
|
879
|
+
a: SendVerificationCodeResponse | PlainMessage<SendVerificationCodeResponse> | undefined,
|
|
880
|
+
b: SendVerificationCodeResponse | PlainMessage<SendVerificationCodeResponse> | undefined
|
|
881
|
+
): boolean {
|
|
882
|
+
return proto3.util.equals(SendVerificationCodeResponse, a, b)
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* @generated from message team.firstfood.auth.v1.ConfirmVerificationCodeRequest
|
|
888
|
+
*/
|
|
889
|
+
export class ConfirmVerificationCodeRequest extends Message<ConfirmVerificationCodeRequest> {
|
|
890
|
+
/**
|
|
891
|
+
* @generated from field: string authProcessId = 1;
|
|
892
|
+
*/
|
|
893
|
+
authProcessId = ''
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* @generated from field: string code = 2;
|
|
897
|
+
*/
|
|
898
|
+
code = ''
|
|
899
|
+
|
|
900
|
+
constructor(data?: PartialMessage<ConfirmVerificationCodeRequest>) {
|
|
901
|
+
super()
|
|
902
|
+
proto3.util.initPartial(data, this)
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
static readonly runtime: typeof proto3 = proto3
|
|
906
|
+
static readonly typeName = 'team.firstfood.auth.v1.ConfirmVerificationCodeRequest'
|
|
907
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
908
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
909
|
+
{ no: 2, name: 'code', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
910
|
+
])
|
|
911
|
+
|
|
912
|
+
static fromBinary(
|
|
913
|
+
bytes: Uint8Array,
|
|
914
|
+
options?: Partial<BinaryReadOptions>
|
|
915
|
+
): ConfirmVerificationCodeRequest {
|
|
916
|
+
return new ConfirmVerificationCodeRequest().fromBinary(bytes, options)
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
static fromJson(
|
|
920
|
+
jsonValue: JsonValue,
|
|
921
|
+
options?: Partial<JsonReadOptions>
|
|
922
|
+
): ConfirmVerificationCodeRequest {
|
|
923
|
+
return new ConfirmVerificationCodeRequest().fromJson(jsonValue, options)
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
static fromJsonString(
|
|
927
|
+
jsonString: string,
|
|
928
|
+
options?: Partial<JsonReadOptions>
|
|
929
|
+
): ConfirmVerificationCodeRequest {
|
|
930
|
+
return new ConfirmVerificationCodeRequest().fromJsonString(jsonString, options)
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
static equals(
|
|
934
|
+
a: ConfirmVerificationCodeRequest | PlainMessage<ConfirmVerificationCodeRequest> | undefined,
|
|
935
|
+
b: ConfirmVerificationCodeRequest | PlainMessage<ConfirmVerificationCodeRequest> | undefined
|
|
936
|
+
): boolean {
|
|
937
|
+
return proto3.util.equals(ConfirmVerificationCodeRequest, a, b)
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* @generated from message team.firstfood.auth.v1.ConfirmVerificationCodeResponse
|
|
943
|
+
*/
|
|
944
|
+
export class ConfirmVerificationCodeResponse extends Message<ConfirmVerificationCodeResponse> {
|
|
945
|
+
/**
|
|
946
|
+
* @generated from field: bool success = 1;
|
|
947
|
+
*/
|
|
948
|
+
success = false
|
|
949
|
+
|
|
950
|
+
constructor(data?: PartialMessage<ConfirmVerificationCodeResponse>) {
|
|
951
|
+
super()
|
|
952
|
+
proto3.util.initPartial(data, this)
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
static readonly runtime: typeof proto3 = proto3
|
|
956
|
+
static readonly typeName = 'team.firstfood.auth.v1.ConfirmVerificationCodeResponse'
|
|
957
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
958
|
+
{ no: 1, name: 'success', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
959
|
+
])
|
|
960
|
+
|
|
961
|
+
static fromBinary(
|
|
962
|
+
bytes: Uint8Array,
|
|
963
|
+
options?: Partial<BinaryReadOptions>
|
|
964
|
+
): ConfirmVerificationCodeResponse {
|
|
965
|
+
return new ConfirmVerificationCodeResponse().fromBinary(bytes, options)
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
static fromJson(
|
|
969
|
+
jsonValue: JsonValue,
|
|
970
|
+
options?: Partial<JsonReadOptions>
|
|
971
|
+
): ConfirmVerificationCodeResponse {
|
|
972
|
+
return new ConfirmVerificationCodeResponse().fromJson(jsonValue, options)
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
static fromJsonString(
|
|
976
|
+
jsonString: string,
|
|
977
|
+
options?: Partial<JsonReadOptions>
|
|
978
|
+
): ConfirmVerificationCodeResponse {
|
|
979
|
+
return new ConfirmVerificationCodeResponse().fromJsonString(jsonString, options)
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
static equals(
|
|
983
|
+
a: ConfirmVerificationCodeResponse | PlainMessage<ConfirmVerificationCodeResponse> | undefined,
|
|
984
|
+
b: ConfirmVerificationCodeResponse | PlainMessage<ConfirmVerificationCodeResponse> | undefined
|
|
985
|
+
): boolean {
|
|
986
|
+
return proto3.util.equals(ConfirmVerificationCodeResponse, a, b)
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserEmailRequest
|
|
992
|
+
*/
|
|
993
|
+
export class UpdateUserEmailRequest extends Message<UpdateUserEmailRequest> {
|
|
994
|
+
/**
|
|
995
|
+
* @generated from field: string email = 1;
|
|
996
|
+
*/
|
|
997
|
+
email = ''
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from field: string sessionToken = 2;
|
|
1001
|
+
*/
|
|
1002
|
+
sessionToken = ''
|
|
1003
|
+
|
|
1004
|
+
constructor(data?: PartialMessage<UpdateUserEmailRequest>) {
|
|
1005
|
+
super()
|
|
1006
|
+
proto3.util.initPartial(data, this)
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1010
|
+
static readonly typeName = 'team.firstfood.auth.v1.UpdateUserEmailRequest'
|
|
1011
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1012
|
+
{ no: 1, name: 'email', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1013
|
+
{ no: 2, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1014
|
+
])
|
|
1015
|
+
|
|
1016
|
+
static fromBinary(
|
|
1017
|
+
bytes: Uint8Array,
|
|
1018
|
+
options?: Partial<BinaryReadOptions>
|
|
1019
|
+
): UpdateUserEmailRequest {
|
|
1020
|
+
return new UpdateUserEmailRequest().fromBinary(bytes, options)
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
static fromJson(
|
|
1024
|
+
jsonValue: JsonValue,
|
|
1025
|
+
options?: Partial<JsonReadOptions>
|
|
1026
|
+
): UpdateUserEmailRequest {
|
|
1027
|
+
return new UpdateUserEmailRequest().fromJson(jsonValue, options)
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
static fromJsonString(
|
|
1031
|
+
jsonString: string,
|
|
1032
|
+
options?: Partial<JsonReadOptions>
|
|
1033
|
+
): UpdateUserEmailRequest {
|
|
1034
|
+
return new UpdateUserEmailRequest().fromJsonString(jsonString, options)
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
static equals(
|
|
1038
|
+
a: UpdateUserEmailRequest | PlainMessage<UpdateUserEmailRequest> | undefined,
|
|
1039
|
+
b: UpdateUserEmailRequest | PlainMessage<UpdateUserEmailRequest> | undefined
|
|
1040
|
+
): boolean {
|
|
1041
|
+
return proto3.util.equals(UpdateUserEmailRequest, a, b)
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserEmailResponse
|
|
1047
|
+
*/
|
|
1048
|
+
export class UpdateUserEmailResponse extends Message<UpdateUserEmailResponse> {
|
|
1049
|
+
/**
|
|
1050
|
+
* @generated from field: string authProcessId = 1;
|
|
1051
|
+
*/
|
|
1052
|
+
authProcessId = ''
|
|
1053
|
+
|
|
1054
|
+
constructor(data?: PartialMessage<UpdateUserEmailResponse>) {
|
|
1055
|
+
super()
|
|
1056
|
+
proto3.util.initPartial(data, this)
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1060
|
+
static readonly typeName = 'team.firstfood.auth.v1.UpdateUserEmailResponse'
|
|
1061
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1062
|
+
{ no: 1, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1063
|
+
])
|
|
1064
|
+
|
|
1065
|
+
static fromBinary(
|
|
1066
|
+
bytes: Uint8Array,
|
|
1067
|
+
options?: Partial<BinaryReadOptions>
|
|
1068
|
+
): UpdateUserEmailResponse {
|
|
1069
|
+
return new UpdateUserEmailResponse().fromBinary(bytes, options)
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
static fromJson(
|
|
1073
|
+
jsonValue: JsonValue,
|
|
1074
|
+
options?: Partial<JsonReadOptions>
|
|
1075
|
+
): UpdateUserEmailResponse {
|
|
1076
|
+
return new UpdateUserEmailResponse().fromJson(jsonValue, options)
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
static fromJsonString(
|
|
1080
|
+
jsonString: string,
|
|
1081
|
+
options?: Partial<JsonReadOptions>
|
|
1082
|
+
): UpdateUserEmailResponse {
|
|
1083
|
+
return new UpdateUserEmailResponse().fromJsonString(jsonString, options)
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
static equals(
|
|
1087
|
+
a: UpdateUserEmailResponse | PlainMessage<UpdateUserEmailResponse> | undefined,
|
|
1088
|
+
b: UpdateUserEmailResponse | PlainMessage<UpdateUserEmailResponse> | undefined
|
|
1089
|
+
): boolean {
|
|
1090
|
+
return proto3.util.equals(UpdateUserEmailResponse, a, b)
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserPasswordRequest
|
|
1096
|
+
*/
|
|
1097
|
+
export class UpdateUserPasswordRequest extends Message<UpdateUserPasswordRequest> {
|
|
1098
|
+
/**
|
|
1099
|
+
* @generated from field: string password = 1;
|
|
1100
|
+
*/
|
|
1101
|
+
password = ''
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* @generated from field: string sessionToken = 2;
|
|
1105
|
+
*/
|
|
1106
|
+
sessionToken = ''
|
|
1107
|
+
|
|
1108
|
+
constructor(data?: PartialMessage<UpdateUserPasswordRequest>) {
|
|
1109
|
+
super()
|
|
1110
|
+
proto3.util.initPartial(data, this)
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1114
|
+
static readonly typeName = 'team.firstfood.auth.v1.UpdateUserPasswordRequest'
|
|
1115
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1116
|
+
{ no: 1, name: 'password', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1117
|
+
{ no: 2, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1118
|
+
])
|
|
1119
|
+
|
|
1120
|
+
static fromBinary(
|
|
1121
|
+
bytes: Uint8Array,
|
|
1122
|
+
options?: Partial<BinaryReadOptions>
|
|
1123
|
+
): UpdateUserPasswordRequest {
|
|
1124
|
+
return new UpdateUserPasswordRequest().fromBinary(bytes, options)
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
static fromJson(
|
|
1128
|
+
jsonValue: JsonValue,
|
|
1129
|
+
options?: Partial<JsonReadOptions>
|
|
1130
|
+
): UpdateUserPasswordRequest {
|
|
1131
|
+
return new UpdateUserPasswordRequest().fromJson(jsonValue, options)
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
static fromJsonString(
|
|
1135
|
+
jsonString: string,
|
|
1136
|
+
options?: Partial<JsonReadOptions>
|
|
1137
|
+
): UpdateUserPasswordRequest {
|
|
1138
|
+
return new UpdateUserPasswordRequest().fromJsonString(jsonString, options)
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
static equals(
|
|
1142
|
+
a: UpdateUserPasswordRequest | PlainMessage<UpdateUserPasswordRequest> | undefined,
|
|
1143
|
+
b: UpdateUserPasswordRequest | PlainMessage<UpdateUserPasswordRequest> | undefined
|
|
1144
|
+
): boolean {
|
|
1145
|
+
return proto3.util.equals(UpdateUserPasswordRequest, a, b)
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated from message team.firstfood.auth.v1.UpdateUserPasswordResponse
|
|
1151
|
+
*/
|
|
1152
|
+
export class UpdateUserPasswordResponse extends Message<UpdateUserPasswordResponse> {
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from field: bool success = 1;
|
|
1155
|
+
*/
|
|
1156
|
+
success = false
|
|
1157
|
+
|
|
1158
|
+
constructor(data?: PartialMessage<UpdateUserPasswordResponse>) {
|
|
1159
|
+
super()
|
|
1160
|
+
proto3.util.initPartial(data, this)
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1164
|
+
static readonly typeName = 'team.firstfood.auth.v1.UpdateUserPasswordResponse'
|
|
1165
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1166
|
+
{ no: 1, name: 'success', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
1167
|
+
])
|
|
1168
|
+
|
|
1169
|
+
static fromBinary(
|
|
1170
|
+
bytes: Uint8Array,
|
|
1171
|
+
options?: Partial<BinaryReadOptions>
|
|
1172
|
+
): UpdateUserPasswordResponse {
|
|
1173
|
+
return new UpdateUserPasswordResponse().fromBinary(bytes, options)
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
static fromJson(
|
|
1177
|
+
jsonValue: JsonValue,
|
|
1178
|
+
options?: Partial<JsonReadOptions>
|
|
1179
|
+
): UpdateUserPasswordResponse {
|
|
1180
|
+
return new UpdateUserPasswordResponse().fromJson(jsonValue, options)
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
static fromJsonString(
|
|
1184
|
+
jsonString: string,
|
|
1185
|
+
options?: Partial<JsonReadOptions>
|
|
1186
|
+
): UpdateUserPasswordResponse {
|
|
1187
|
+
return new UpdateUserPasswordResponse().fromJsonString(jsonString, options)
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
static equals(
|
|
1191
|
+
a: UpdateUserPasswordResponse | PlainMessage<UpdateUserPasswordResponse> | undefined,
|
|
1192
|
+
b: UpdateUserPasswordResponse | PlainMessage<UpdateUserPasswordResponse> | undefined
|
|
1193
|
+
): boolean {
|
|
1194
|
+
return proto3.util.equals(UpdateUserPasswordResponse, a, b)
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* @generated from message team.firstfood.auth.v1.DeleteUserAccountRequest
|
|
1200
|
+
*/
|
|
1201
|
+
export class DeleteUserAccountRequest extends Message<DeleteUserAccountRequest> {
|
|
1202
|
+
/**
|
|
1203
|
+
* @generated from field: string accountId = 1;
|
|
1204
|
+
*/
|
|
1205
|
+
accountId = ''
|
|
1206
|
+
|
|
1207
|
+
constructor(data?: PartialMessage<DeleteUserAccountRequest>) {
|
|
1208
|
+
super()
|
|
1209
|
+
proto3.util.initPartial(data, this)
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1213
|
+
static readonly typeName = 'team.firstfood.auth.v1.DeleteUserAccountRequest'
|
|
1214
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1215
|
+
{ no: 1, name: 'accountId', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1216
|
+
])
|
|
1217
|
+
|
|
1218
|
+
static fromBinary(
|
|
1219
|
+
bytes: Uint8Array,
|
|
1220
|
+
options?: Partial<BinaryReadOptions>
|
|
1221
|
+
): DeleteUserAccountRequest {
|
|
1222
|
+
return new DeleteUserAccountRequest().fromBinary(bytes, options)
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
static fromJson(
|
|
1226
|
+
jsonValue: JsonValue,
|
|
1227
|
+
options?: Partial<JsonReadOptions>
|
|
1228
|
+
): DeleteUserAccountRequest {
|
|
1229
|
+
return new DeleteUserAccountRequest().fromJson(jsonValue, options)
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
static fromJsonString(
|
|
1233
|
+
jsonString: string,
|
|
1234
|
+
options?: Partial<JsonReadOptions>
|
|
1235
|
+
): DeleteUserAccountRequest {
|
|
1236
|
+
return new DeleteUserAccountRequest().fromJsonString(jsonString, options)
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
static equals(
|
|
1240
|
+
a: DeleteUserAccountRequest | PlainMessage<DeleteUserAccountRequest> | undefined,
|
|
1241
|
+
b: DeleteUserAccountRequest | PlainMessage<DeleteUserAccountRequest> | undefined
|
|
1242
|
+
): boolean {
|
|
1243
|
+
return proto3.util.equals(DeleteUserAccountRequest, a, b)
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* @generated from message team.firstfood.auth.v1.DeleteUserAccountResponse
|
|
1249
|
+
*/
|
|
1250
|
+
export class DeleteUserAccountResponse extends Message<DeleteUserAccountResponse> {
|
|
1251
|
+
/**
|
|
1252
|
+
* @generated from field: bool success = 1;
|
|
1253
|
+
*/
|
|
1254
|
+
success = false
|
|
1255
|
+
|
|
1256
|
+
constructor(data?: PartialMessage<DeleteUserAccountResponse>) {
|
|
1257
|
+
super()
|
|
1258
|
+
proto3.util.initPartial(data, this)
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1262
|
+
static readonly typeName = 'team.firstfood.auth.v1.DeleteUserAccountResponse'
|
|
1263
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1264
|
+
{ no: 1, name: 'success', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
1265
|
+
])
|
|
1266
|
+
|
|
1267
|
+
static fromBinary(
|
|
1268
|
+
bytes: Uint8Array,
|
|
1269
|
+
options?: Partial<BinaryReadOptions>
|
|
1270
|
+
): DeleteUserAccountResponse {
|
|
1271
|
+
return new DeleteUserAccountResponse().fromBinary(bytes, options)
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
static fromJson(
|
|
1275
|
+
jsonValue: JsonValue,
|
|
1276
|
+
options?: Partial<JsonReadOptions>
|
|
1277
|
+
): DeleteUserAccountResponse {
|
|
1278
|
+
return new DeleteUserAccountResponse().fromJson(jsonValue, options)
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
static fromJsonString(
|
|
1282
|
+
jsonString: string,
|
|
1283
|
+
options?: Partial<JsonReadOptions>
|
|
1284
|
+
): DeleteUserAccountResponse {
|
|
1285
|
+
return new DeleteUserAccountResponse().fromJsonString(jsonString, options)
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
static equals(
|
|
1289
|
+
a: DeleteUserAccountResponse | PlainMessage<DeleteUserAccountResponse> | undefined,
|
|
1290
|
+
b: DeleteUserAccountResponse | PlainMessage<DeleteUserAccountResponse> | undefined
|
|
1291
|
+
): boolean {
|
|
1292
|
+
return proto3.util.equals(DeleteUserAccountResponse, a, b)
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* @generated from message team.firstfood.auth.v1.GetUserAccountRequest
|
|
1298
|
+
*/
|
|
1299
|
+
export class GetUserAccountRequest extends Message<GetUserAccountRequest> {
|
|
1300
|
+
/**
|
|
1301
|
+
* @generated from field: string sessionToken = 1;
|
|
1302
|
+
*/
|
|
1303
|
+
sessionToken = ''
|
|
1304
|
+
|
|
1305
|
+
constructor(data?: PartialMessage<GetUserAccountRequest>) {
|
|
1306
|
+
super()
|
|
1307
|
+
proto3.util.initPartial(data, this)
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1311
|
+
static readonly typeName = 'team.firstfood.auth.v1.GetUserAccountRequest'
|
|
1312
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1313
|
+
{ no: 1, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1314
|
+
])
|
|
1315
|
+
|
|
1316
|
+
static fromBinary(
|
|
1317
|
+
bytes: Uint8Array,
|
|
1318
|
+
options?: Partial<BinaryReadOptions>
|
|
1319
|
+
): GetUserAccountRequest {
|
|
1320
|
+
return new GetUserAccountRequest().fromBinary(bytes, options)
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserAccountRequest {
|
|
1324
|
+
return new GetUserAccountRequest().fromJson(jsonValue, options)
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
static fromJsonString(
|
|
1328
|
+
jsonString: string,
|
|
1329
|
+
options?: Partial<JsonReadOptions>
|
|
1330
|
+
): GetUserAccountRequest {
|
|
1331
|
+
return new GetUserAccountRequest().fromJsonString(jsonString, options)
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
static equals(
|
|
1335
|
+
a: GetUserAccountRequest | PlainMessage<GetUserAccountRequest> | undefined,
|
|
1336
|
+
b: GetUserAccountRequest | PlainMessage<GetUserAccountRequest> | undefined
|
|
1337
|
+
): boolean {
|
|
1338
|
+
return proto3.util.equals(GetUserAccountRequest, a, b)
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* @generated from message team.firstfood.auth.v1.GetUserAccountResponse
|
|
1344
|
+
*/
|
|
1345
|
+
export class GetUserAccountResponse extends Message<GetUserAccountResponse> {
|
|
1346
|
+
/**
|
|
1347
|
+
* @generated from field: string id = 1;
|
|
1348
|
+
*/
|
|
1349
|
+
id = ''
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* @generated from field: optional string email = 2;
|
|
1353
|
+
*/
|
|
1354
|
+
email?: string
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* @generated from field: optional string phone = 3;
|
|
1358
|
+
*/
|
|
1359
|
+
phone?: string
|
|
1360
|
+
|
|
1361
|
+
constructor(data?: PartialMessage<GetUserAccountResponse>) {
|
|
1362
|
+
super()
|
|
1363
|
+
proto3.util.initPartial(data, this)
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1367
|
+
static readonly typeName = 'team.firstfood.auth.v1.GetUserAccountResponse'
|
|
1368
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1369
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1370
|
+
{ no: 2, name: 'email', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
1371
|
+
{ no: 3, name: 'phone', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
1372
|
+
])
|
|
1373
|
+
|
|
1374
|
+
static fromBinary(
|
|
1375
|
+
bytes: Uint8Array,
|
|
1376
|
+
options?: Partial<BinaryReadOptions>
|
|
1377
|
+
): GetUserAccountResponse {
|
|
1378
|
+
return new GetUserAccountResponse().fromBinary(bytes, options)
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
static fromJson(
|
|
1382
|
+
jsonValue: JsonValue,
|
|
1383
|
+
options?: Partial<JsonReadOptions>
|
|
1384
|
+
): GetUserAccountResponse {
|
|
1385
|
+
return new GetUserAccountResponse().fromJson(jsonValue, options)
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
static fromJsonString(
|
|
1389
|
+
jsonString: string,
|
|
1390
|
+
options?: Partial<JsonReadOptions>
|
|
1391
|
+
): GetUserAccountResponse {
|
|
1392
|
+
return new GetUserAccountResponse().fromJsonString(jsonString, options)
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
static equals(
|
|
1396
|
+
a: GetUserAccountResponse | PlainMessage<GetUserAccountResponse> | undefined,
|
|
1397
|
+
b: GetUserAccountResponse | PlainMessage<GetUserAccountResponse> | undefined
|
|
1398
|
+
): boolean {
|
|
1399
|
+
return proto3.util.equals(GetUserAccountResponse, a, b)
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByProviderRequest
|
|
1405
|
+
*/
|
|
1406
|
+
export class LoginUserByProviderRequest extends Message<LoginUserByProviderRequest> {
|
|
1407
|
+
/**
|
|
1408
|
+
* @generated from field: team.firstfood.auth.v1.ProviderType provider = 1;
|
|
1409
|
+
*/
|
|
1410
|
+
provider = ProviderType.UNSPECIFIED
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* @generated from field: string idToken = 2;
|
|
1414
|
+
*/
|
|
1415
|
+
idToken = ''
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* @generated from field: string nonce = 3;
|
|
1419
|
+
*/
|
|
1420
|
+
nonce = ''
|
|
1421
|
+
|
|
1422
|
+
constructor(data?: PartialMessage<LoginUserByProviderRequest>) {
|
|
1423
|
+
super()
|
|
1424
|
+
proto3.util.initPartial(data, this)
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1428
|
+
static readonly typeName = 'team.firstfood.auth.v1.LoginUserByProviderRequest'
|
|
1429
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1430
|
+
{ no: 1, name: 'provider', kind: 'enum', T: proto3.getEnumType(ProviderType) },
|
|
1431
|
+
{ no: 2, name: 'idToken', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1432
|
+
{ no: 3, name: 'nonce', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1433
|
+
])
|
|
1434
|
+
|
|
1435
|
+
static fromBinary(
|
|
1436
|
+
bytes: Uint8Array,
|
|
1437
|
+
options?: Partial<BinaryReadOptions>
|
|
1438
|
+
): LoginUserByProviderRequest {
|
|
1439
|
+
return new LoginUserByProviderRequest().fromBinary(bytes, options)
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
static fromJson(
|
|
1443
|
+
jsonValue: JsonValue,
|
|
1444
|
+
options?: Partial<JsonReadOptions>
|
|
1445
|
+
): LoginUserByProviderRequest {
|
|
1446
|
+
return new LoginUserByProviderRequest().fromJson(jsonValue, options)
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
static fromJsonString(
|
|
1450
|
+
jsonString: string,
|
|
1451
|
+
options?: Partial<JsonReadOptions>
|
|
1452
|
+
): LoginUserByProviderRequest {
|
|
1453
|
+
return new LoginUserByProviderRequest().fromJsonString(jsonString, options)
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
static equals(
|
|
1457
|
+
a: LoginUserByProviderRequest | PlainMessage<LoginUserByProviderRequest> | undefined,
|
|
1458
|
+
b: LoginUserByProviderRequest | PlainMessage<LoginUserByProviderRequest> | undefined
|
|
1459
|
+
): boolean {
|
|
1460
|
+
return proto3.util.equals(LoginUserByProviderRequest, a, b)
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* @generated from message team.firstfood.auth.v1.LoginUserByProviderResponse
|
|
1466
|
+
*/
|
|
1467
|
+
export class LoginUserByProviderResponse extends Message<LoginUserByProviderResponse> {
|
|
1468
|
+
/**
|
|
1469
|
+
* @generated from field: optional string sessionToken = 1;
|
|
1470
|
+
*/
|
|
1471
|
+
sessionToken?: string
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* @generated from field: optional string accountId = 2;
|
|
1475
|
+
*/
|
|
1476
|
+
accountId?: string
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* @generated from field: optional string authProcessId = 3;
|
|
1480
|
+
*/
|
|
1481
|
+
authProcessId?: string
|
|
1482
|
+
|
|
1483
|
+
constructor(data?: PartialMessage<LoginUserByProviderResponse>) {
|
|
1484
|
+
super()
|
|
1485
|
+
proto3.util.initPartial(data, this)
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1489
|
+
static readonly typeName = 'team.firstfood.auth.v1.LoginUserByProviderResponse'
|
|
1490
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1491
|
+
{ no: 1, name: 'sessionToken', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
1492
|
+
{ no: 2, name: 'accountId', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
1493
|
+
{ no: 3, name: 'authProcessId', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
|
|
1494
|
+
])
|
|
1495
|
+
|
|
1496
|
+
static fromBinary(
|
|
1497
|
+
bytes: Uint8Array,
|
|
1498
|
+
options?: Partial<BinaryReadOptions>
|
|
1499
|
+
): LoginUserByProviderResponse {
|
|
1500
|
+
return new LoginUserByProviderResponse().fromBinary(bytes, options)
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
static fromJson(
|
|
1504
|
+
jsonValue: JsonValue,
|
|
1505
|
+
options?: Partial<JsonReadOptions>
|
|
1506
|
+
): LoginUserByProviderResponse {
|
|
1507
|
+
return new LoginUserByProviderResponse().fromJson(jsonValue, options)
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
static fromJsonString(
|
|
1511
|
+
jsonString: string,
|
|
1512
|
+
options?: Partial<JsonReadOptions>
|
|
1513
|
+
): LoginUserByProviderResponse {
|
|
1514
|
+
return new LoginUserByProviderResponse().fromJsonString(jsonString, options)
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
static equals(
|
|
1518
|
+
a: LoginUserByProviderResponse | PlainMessage<LoginUserByProviderResponse> | undefined,
|
|
1519
|
+
b: LoginUserByProviderResponse | PlainMessage<LoginUserByProviderResponse> | undefined
|
|
1520
|
+
): boolean {
|
|
1521
|
+
return proto3.util.equals(LoginUserByProviderResponse, a, b)
|
|
1522
|
+
}
|
|
1523
|
+
}
|