@in-human-resources/backend-proto 0.1.0

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.
@@ -0,0 +1,1282 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
2
+ // @generated from file api/v1/auth.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import { ProfileCompletion, RequestContext, SessionInfo } from "./common_pb.js";
9
+
10
+ /**
11
+ * @generated from message api.v1.RegisterRequest
12
+ */
13
+ export class RegisterRequest extends Message<RegisterRequest> {
14
+ /**
15
+ * @generated from field: string email = 1;
16
+ */
17
+ email = "";
18
+
19
+ /**
20
+ * @generated from field: string password = 2;
21
+ */
22
+ password = "";
23
+
24
+ /**
25
+ * @generated from field: string name = 3;
26
+ */
27
+ name = "";
28
+
29
+ /**
30
+ * "company" or "candidate"
31
+ *
32
+ * @generated from field: string user_type = 4;
33
+ */
34
+ userType = "";
35
+
36
+ /**
37
+ * Required for candidates
38
+ *
39
+ * @generated from field: string professional_headline = 5;
40
+ */
41
+ professionalHeadline = "";
42
+
43
+ /**
44
+ * @generated from field: api.v1.RequestContext context = 10;
45
+ */
46
+ context?: RequestContext;
47
+
48
+ constructor(data?: PartialMessage<RegisterRequest>) {
49
+ super();
50
+ proto3.util.initPartial(data, this);
51
+ }
52
+
53
+ static readonly runtime: typeof proto3 = proto3;
54
+ static readonly typeName = "api.v1.RegisterRequest";
55
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
56
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59
+ { no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
+ { no: 5, name: "professional_headline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
61
+ { no: 10, name: "context", kind: "message", T: RequestContext },
62
+ ]);
63
+
64
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRequest {
65
+ return new RegisterRequest().fromBinary(bytes, options);
66
+ }
67
+
68
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRequest {
69
+ return new RegisterRequest().fromJson(jsonValue, options);
70
+ }
71
+
72
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRequest {
73
+ return new RegisterRequest().fromJsonString(jsonString, options);
74
+ }
75
+
76
+ static equals(a: RegisterRequest | PlainMessage<RegisterRequest> | undefined, b: RegisterRequest | PlainMessage<RegisterRequest> | undefined): boolean {
77
+ return proto3.util.equals(RegisterRequest, a, b);
78
+ }
79
+ }
80
+
81
+ /**
82
+ * @generated from message api.v1.RegisterResponse
83
+ */
84
+ export class RegisterResponse extends Message<RegisterResponse> {
85
+ /**
86
+ * @generated from field: string user_id = 1;
87
+ */
88
+ userId = "";
89
+
90
+ /**
91
+ * @generated from field: string access_token = 2;
92
+ */
93
+ accessToken = "";
94
+
95
+ /**
96
+ * @generated from field: string refresh_token = 3;
97
+ */
98
+ refreshToken = "";
99
+
100
+ /**
101
+ * @generated from field: string user_type = 4;
102
+ */
103
+ userType = "";
104
+
105
+ /**
106
+ * @generated from field: bool email_verified = 5;
107
+ */
108
+ emailVerified = false;
109
+
110
+ /**
111
+ * @generated from field: api.v1.ProfileCompletion profile_completion = 6;
112
+ */
113
+ profileCompletion?: ProfileCompletion;
114
+
115
+ /**
116
+ * @generated from field: string onboarding_step = 7;
117
+ */
118
+ onboardingStep = "";
119
+
120
+ /**
121
+ * @generated from field: bool onboarding_complete = 8;
122
+ */
123
+ onboardingComplete = false;
124
+
125
+ constructor(data?: PartialMessage<RegisterResponse>) {
126
+ super();
127
+ proto3.util.initPartial(data, this);
128
+ }
129
+
130
+ static readonly runtime: typeof proto3 = proto3;
131
+ static readonly typeName = "api.v1.RegisterResponse";
132
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
133
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
134
+ { no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
135
+ { no: 3, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
136
+ { no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
137
+ { no: 5, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
138
+ { no: 6, name: "profile_completion", kind: "message", T: ProfileCompletion },
139
+ { no: 7, name: "onboarding_step", kind: "scalar", T: 9 /* ScalarType.STRING */ },
140
+ { no: 8, name: "onboarding_complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
141
+ ]);
142
+
143
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterResponse {
144
+ return new RegisterResponse().fromBinary(bytes, options);
145
+ }
146
+
147
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterResponse {
148
+ return new RegisterResponse().fromJson(jsonValue, options);
149
+ }
150
+
151
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterResponse {
152
+ return new RegisterResponse().fromJsonString(jsonString, options);
153
+ }
154
+
155
+ static equals(a: RegisterResponse | PlainMessage<RegisterResponse> | undefined, b: RegisterResponse | PlainMessage<RegisterResponse> | undefined): boolean {
156
+ return proto3.util.equals(RegisterResponse, a, b);
157
+ }
158
+ }
159
+
160
+ /**
161
+ * @generated from message api.v1.LoginRequest
162
+ */
163
+ export class LoginRequest extends Message<LoginRequest> {
164
+ /**
165
+ * @generated from field: string email = 1;
166
+ */
167
+ email = "";
168
+
169
+ /**
170
+ * @generated from field: string password = 2;
171
+ */
172
+ password = "";
173
+
174
+ /**
175
+ * @generated from field: api.v1.RequestContext context = 10;
176
+ */
177
+ context?: RequestContext;
178
+
179
+ constructor(data?: PartialMessage<LoginRequest>) {
180
+ super();
181
+ proto3.util.initPartial(data, this);
182
+ }
183
+
184
+ static readonly runtime: typeof proto3 = proto3;
185
+ static readonly typeName = "api.v1.LoginRequest";
186
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
187
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
+ { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 10, name: "context", kind: "message", T: RequestContext },
190
+ ]);
191
+
192
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoginRequest {
193
+ return new LoginRequest().fromBinary(bytes, options);
194
+ }
195
+
196
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoginRequest {
197
+ return new LoginRequest().fromJson(jsonValue, options);
198
+ }
199
+
200
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoginRequest {
201
+ return new LoginRequest().fromJsonString(jsonString, options);
202
+ }
203
+
204
+ static equals(a: LoginRequest | PlainMessage<LoginRequest> | undefined, b: LoginRequest | PlainMessage<LoginRequest> | undefined): boolean {
205
+ return proto3.util.equals(LoginRequest, a, b);
206
+ }
207
+ }
208
+
209
+ /**
210
+ * @generated from message api.v1.LoginResponse
211
+ */
212
+ export class LoginResponse extends Message<LoginResponse> {
213
+ /**
214
+ * @generated from field: string user_id = 1;
215
+ */
216
+ userId = "";
217
+
218
+ /**
219
+ * @generated from field: string access_token = 2;
220
+ */
221
+ accessToken = "";
222
+
223
+ /**
224
+ * @generated from field: string refresh_token = 3;
225
+ */
226
+ refreshToken = "";
227
+
228
+ /**
229
+ * @generated from field: string user_type = 4;
230
+ */
231
+ userType = "";
232
+
233
+ /**
234
+ * @generated from field: string company_id = 5;
235
+ */
236
+ companyId = "";
237
+
238
+ /**
239
+ * @generated from field: string hierarchy_level = 6;
240
+ */
241
+ hierarchyLevel = "";
242
+
243
+ /**
244
+ * @generated from field: string department = 7;
245
+ */
246
+ department = "";
247
+
248
+ /**
249
+ * @generated from field: bool email_verified = 8;
250
+ */
251
+ emailVerified = false;
252
+
253
+ /**
254
+ * @generated from field: string onboarding_status = 9;
255
+ */
256
+ onboardingStatus = "";
257
+
258
+ /**
259
+ * @generated from field: string onboarding_step = 10;
260
+ */
261
+ onboardingStep = "";
262
+
263
+ /**
264
+ * @generated from field: bool onboarding_complete = 11;
265
+ */
266
+ onboardingComplete = false;
267
+
268
+ constructor(data?: PartialMessage<LoginResponse>) {
269
+ super();
270
+ proto3.util.initPartial(data, this);
271
+ }
272
+
273
+ static readonly runtime: typeof proto3 = proto3;
274
+ static readonly typeName = "api.v1.LoginResponse";
275
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
276
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
277
+ { no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
278
+ { no: 3, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
279
+ { no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
280
+ { no: 5, name: "company_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
281
+ { no: 6, name: "hierarchy_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
282
+ { no: 7, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ },
283
+ { no: 8, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
284
+ { no: 9, name: "onboarding_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
285
+ { no: 10, name: "onboarding_step", kind: "scalar", T: 9 /* ScalarType.STRING */ },
286
+ { no: 11, name: "onboarding_complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
287
+ ]);
288
+
289
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoginResponse {
290
+ return new LoginResponse().fromBinary(bytes, options);
291
+ }
292
+
293
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoginResponse {
294
+ return new LoginResponse().fromJson(jsonValue, options);
295
+ }
296
+
297
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoginResponse {
298
+ return new LoginResponse().fromJsonString(jsonString, options);
299
+ }
300
+
301
+ static equals(a: LoginResponse | PlainMessage<LoginResponse> | undefined, b: LoginResponse | PlainMessage<LoginResponse> | undefined): boolean {
302
+ return proto3.util.equals(LoginResponse, a, b);
303
+ }
304
+ }
305
+
306
+ /**
307
+ * @generated from message api.v1.RefreshTokenRequest
308
+ */
309
+ export class RefreshTokenRequest extends Message<RefreshTokenRequest> {
310
+ /**
311
+ * @generated from field: string refresh_token = 1;
312
+ */
313
+ refreshToken = "";
314
+
315
+ constructor(data?: PartialMessage<RefreshTokenRequest>) {
316
+ super();
317
+ proto3.util.initPartial(data, this);
318
+ }
319
+
320
+ static readonly runtime: typeof proto3 = proto3;
321
+ static readonly typeName = "api.v1.RefreshTokenRequest";
322
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
323
+ { no: 1, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
324
+ ]);
325
+
326
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RefreshTokenRequest {
327
+ return new RefreshTokenRequest().fromBinary(bytes, options);
328
+ }
329
+
330
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RefreshTokenRequest {
331
+ return new RefreshTokenRequest().fromJson(jsonValue, options);
332
+ }
333
+
334
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshTokenRequest {
335
+ return new RefreshTokenRequest().fromJsonString(jsonString, options);
336
+ }
337
+
338
+ static equals(a: RefreshTokenRequest | PlainMessage<RefreshTokenRequest> | undefined, b: RefreshTokenRequest | PlainMessage<RefreshTokenRequest> | undefined): boolean {
339
+ return proto3.util.equals(RefreshTokenRequest, a, b);
340
+ }
341
+ }
342
+
343
+ /**
344
+ * @generated from message api.v1.RefreshTokenResponse
345
+ */
346
+ export class RefreshTokenResponse extends Message<RefreshTokenResponse> {
347
+ /**
348
+ * @generated from field: string user_id = 1;
349
+ */
350
+ userId = "";
351
+
352
+ /**
353
+ * @generated from field: string access_token = 2;
354
+ */
355
+ accessToken = "";
356
+
357
+ /**
358
+ * @generated from field: string refresh_token = 3;
359
+ */
360
+ refreshToken = "";
361
+
362
+ /**
363
+ * @generated from field: string user_type = 4;
364
+ */
365
+ userType = "";
366
+
367
+ /**
368
+ * @generated from field: string company_id = 5;
369
+ */
370
+ companyId = "";
371
+
372
+ /**
373
+ * @generated from field: string hierarchy_level = 6;
374
+ */
375
+ hierarchyLevel = "";
376
+
377
+ /**
378
+ * @generated from field: string department = 7;
379
+ */
380
+ department = "";
381
+
382
+ /**
383
+ * @generated from field: bool email_verified = 8;
384
+ */
385
+ emailVerified = false;
386
+
387
+ /**
388
+ * @generated from field: string onboarding_status = 9;
389
+ */
390
+ onboardingStatus = "";
391
+
392
+ /**
393
+ * @generated from field: string onboarding_step = 10;
394
+ */
395
+ onboardingStep = "";
396
+
397
+ /**
398
+ * @generated from field: bool onboarding_complete = 11;
399
+ */
400
+ onboardingComplete = false;
401
+
402
+ constructor(data?: PartialMessage<RefreshTokenResponse>) {
403
+ super();
404
+ proto3.util.initPartial(data, this);
405
+ }
406
+
407
+ static readonly runtime: typeof proto3 = proto3;
408
+ static readonly typeName = "api.v1.RefreshTokenResponse";
409
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
410
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
411
+ { no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
+ { no: 3, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
413
+ { no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
414
+ { no: 5, name: "company_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
415
+ { no: 6, name: "hierarchy_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
416
+ { no: 7, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ },
417
+ { no: 8, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
418
+ { no: 9, name: "onboarding_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
419
+ { no: 10, name: "onboarding_step", kind: "scalar", T: 9 /* ScalarType.STRING */ },
420
+ { no: 11, name: "onboarding_complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
421
+ ]);
422
+
423
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RefreshTokenResponse {
424
+ return new RefreshTokenResponse().fromBinary(bytes, options);
425
+ }
426
+
427
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RefreshTokenResponse {
428
+ return new RefreshTokenResponse().fromJson(jsonValue, options);
429
+ }
430
+
431
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RefreshTokenResponse {
432
+ return new RefreshTokenResponse().fromJsonString(jsonString, options);
433
+ }
434
+
435
+ static equals(a: RefreshTokenResponse | PlainMessage<RefreshTokenResponse> | undefined, b: RefreshTokenResponse | PlainMessage<RefreshTokenResponse> | undefined): boolean {
436
+ return proto3.util.equals(RefreshTokenResponse, a, b);
437
+ }
438
+ }
439
+
440
+ /**
441
+ * Session ID is extracted from auth token in interceptor
442
+ *
443
+ * @generated from message api.v1.LogoutRequest
444
+ */
445
+ export class LogoutRequest extends Message<LogoutRequest> {
446
+ constructor(data?: PartialMessage<LogoutRequest>) {
447
+ super();
448
+ proto3.util.initPartial(data, this);
449
+ }
450
+
451
+ static readonly runtime: typeof proto3 = proto3;
452
+ static readonly typeName = "api.v1.LogoutRequest";
453
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
454
+ ]);
455
+
456
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogoutRequest {
457
+ return new LogoutRequest().fromBinary(bytes, options);
458
+ }
459
+
460
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogoutRequest {
461
+ return new LogoutRequest().fromJson(jsonValue, options);
462
+ }
463
+
464
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogoutRequest {
465
+ return new LogoutRequest().fromJsonString(jsonString, options);
466
+ }
467
+
468
+ static equals(a: LogoutRequest | PlainMessage<LogoutRequest> | undefined, b: LogoutRequest | PlainMessage<LogoutRequest> | undefined): boolean {
469
+ return proto3.util.equals(LogoutRequest, a, b);
470
+ }
471
+ }
472
+
473
+ /**
474
+ * @generated from message api.v1.VerifyEmailRequest
475
+ */
476
+ export class VerifyEmailRequest extends Message<VerifyEmailRequest> {
477
+ /**
478
+ * @generated from field: string token = 1;
479
+ */
480
+ token = "";
481
+
482
+ constructor(data?: PartialMessage<VerifyEmailRequest>) {
483
+ super();
484
+ proto3.util.initPartial(data, this);
485
+ }
486
+
487
+ static readonly runtime: typeof proto3 = proto3;
488
+ static readonly typeName = "api.v1.VerifyEmailRequest";
489
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
490
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
491
+ ]);
492
+
493
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyEmailRequest {
494
+ return new VerifyEmailRequest().fromBinary(bytes, options);
495
+ }
496
+
497
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyEmailRequest {
498
+ return new VerifyEmailRequest().fromJson(jsonValue, options);
499
+ }
500
+
501
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyEmailRequest {
502
+ return new VerifyEmailRequest().fromJsonString(jsonString, options);
503
+ }
504
+
505
+ static equals(a: VerifyEmailRequest | PlainMessage<VerifyEmailRequest> | undefined, b: VerifyEmailRequest | PlainMessage<VerifyEmailRequest> | undefined): boolean {
506
+ return proto3.util.equals(VerifyEmailRequest, a, b);
507
+ }
508
+ }
509
+
510
+ /**
511
+ * @generated from message api.v1.ResendVerificationEmailRequest
512
+ */
513
+ export class ResendVerificationEmailRequest extends Message<ResendVerificationEmailRequest> {
514
+ /**
515
+ * @generated from field: string email = 1;
516
+ */
517
+ email = "";
518
+
519
+ constructor(data?: PartialMessage<ResendVerificationEmailRequest>) {
520
+ super();
521
+ proto3.util.initPartial(data, this);
522
+ }
523
+
524
+ static readonly runtime: typeof proto3 = proto3;
525
+ static readonly typeName = "api.v1.ResendVerificationEmailRequest";
526
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
527
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
528
+ ]);
529
+
530
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResendVerificationEmailRequest {
531
+ return new ResendVerificationEmailRequest().fromBinary(bytes, options);
532
+ }
533
+
534
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResendVerificationEmailRequest {
535
+ return new ResendVerificationEmailRequest().fromJson(jsonValue, options);
536
+ }
537
+
538
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResendVerificationEmailRequest {
539
+ return new ResendVerificationEmailRequest().fromJsonString(jsonString, options);
540
+ }
541
+
542
+ static equals(a: ResendVerificationEmailRequest | PlainMessage<ResendVerificationEmailRequest> | undefined, b: ResendVerificationEmailRequest | PlainMessage<ResendVerificationEmailRequest> | undefined): boolean {
543
+ return proto3.util.equals(ResendVerificationEmailRequest, a, b);
544
+ }
545
+ }
546
+
547
+ /**
548
+ * @generated from message api.v1.RequestPasswordResetRequest
549
+ */
550
+ export class RequestPasswordResetRequest extends Message<RequestPasswordResetRequest> {
551
+ /**
552
+ * @generated from field: string email = 1;
553
+ */
554
+ email = "";
555
+
556
+ constructor(data?: PartialMessage<RequestPasswordResetRequest>) {
557
+ super();
558
+ proto3.util.initPartial(data, this);
559
+ }
560
+
561
+ static readonly runtime: typeof proto3 = proto3;
562
+ static readonly typeName = "api.v1.RequestPasswordResetRequest";
563
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
564
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
565
+ ]);
566
+
567
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestPasswordResetRequest {
568
+ return new RequestPasswordResetRequest().fromBinary(bytes, options);
569
+ }
570
+
571
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestPasswordResetRequest {
572
+ return new RequestPasswordResetRequest().fromJson(jsonValue, options);
573
+ }
574
+
575
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestPasswordResetRequest {
576
+ return new RequestPasswordResetRequest().fromJsonString(jsonString, options);
577
+ }
578
+
579
+ static equals(a: RequestPasswordResetRequest | PlainMessage<RequestPasswordResetRequest> | undefined, b: RequestPasswordResetRequest | PlainMessage<RequestPasswordResetRequest> | undefined): boolean {
580
+ return proto3.util.equals(RequestPasswordResetRequest, a, b);
581
+ }
582
+ }
583
+
584
+ /**
585
+ * @generated from message api.v1.ResetPasswordRequest
586
+ */
587
+ export class ResetPasswordRequest extends Message<ResetPasswordRequest> {
588
+ /**
589
+ * @generated from field: string token = 1;
590
+ */
591
+ token = "";
592
+
593
+ /**
594
+ * @generated from field: string new_password = 2;
595
+ */
596
+ newPassword = "";
597
+
598
+ constructor(data?: PartialMessage<ResetPasswordRequest>) {
599
+ super();
600
+ proto3.util.initPartial(data, this);
601
+ }
602
+
603
+ static readonly runtime: typeof proto3 = proto3;
604
+ static readonly typeName = "api.v1.ResetPasswordRequest";
605
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
606
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
607
+ { no: 2, name: "new_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
608
+ ]);
609
+
610
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResetPasswordRequest {
611
+ return new ResetPasswordRequest().fromBinary(bytes, options);
612
+ }
613
+
614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResetPasswordRequest {
615
+ return new ResetPasswordRequest().fromJson(jsonValue, options);
616
+ }
617
+
618
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResetPasswordRequest {
619
+ return new ResetPasswordRequest().fromJsonString(jsonString, options);
620
+ }
621
+
622
+ static equals(a: ResetPasswordRequest | PlainMessage<ResetPasswordRequest> | undefined, b: ResetPasswordRequest | PlainMessage<ResetPasswordRequest> | undefined): boolean {
623
+ return proto3.util.equals(ResetPasswordRequest, a, b);
624
+ }
625
+ }
626
+
627
+ /**
628
+ * @generated from message api.v1.ChangePasswordRequest
629
+ */
630
+ export class ChangePasswordRequest extends Message<ChangePasswordRequest> {
631
+ /**
632
+ * @generated from field: string old_password = 1;
633
+ */
634
+ oldPassword = "";
635
+
636
+ /**
637
+ * User ID is extracted from auth token in interceptor
638
+ *
639
+ * @generated from field: string new_password = 2;
640
+ */
641
+ newPassword = "";
642
+
643
+ constructor(data?: PartialMessage<ChangePasswordRequest>) {
644
+ super();
645
+ proto3.util.initPartial(data, this);
646
+ }
647
+
648
+ static readonly runtime: typeof proto3 = proto3;
649
+ static readonly typeName = "api.v1.ChangePasswordRequest";
650
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
651
+ { no: 1, name: "old_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
652
+ { no: 2, name: "new_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
653
+ ]);
654
+
655
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChangePasswordRequest {
656
+ return new ChangePasswordRequest().fromBinary(bytes, options);
657
+ }
658
+
659
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChangePasswordRequest {
660
+ return new ChangePasswordRequest().fromJson(jsonValue, options);
661
+ }
662
+
663
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChangePasswordRequest {
664
+ return new ChangePasswordRequest().fromJsonString(jsonString, options);
665
+ }
666
+
667
+ static equals(a: ChangePasswordRequest | PlainMessage<ChangePasswordRequest> | undefined, b: ChangePasswordRequest | PlainMessage<ChangePasswordRequest> | undefined): boolean {
668
+ return proto3.util.equals(ChangePasswordRequest, a, b);
669
+ }
670
+ }
671
+
672
+ /**
673
+ * User ID is extracted from auth token in interceptor
674
+ *
675
+ * @generated from message api.v1.GetProfileRequest
676
+ */
677
+ export class GetProfileRequest extends Message<GetProfileRequest> {
678
+ constructor(data?: PartialMessage<GetProfileRequest>) {
679
+ super();
680
+ proto3.util.initPartial(data, this);
681
+ }
682
+
683
+ static readonly runtime: typeof proto3 = proto3;
684
+ static readonly typeName = "api.v1.GetProfileRequest";
685
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
686
+ ]);
687
+
688
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProfileRequest {
689
+ return new GetProfileRequest().fromBinary(bytes, options);
690
+ }
691
+
692
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProfileRequest {
693
+ return new GetProfileRequest().fromJson(jsonValue, options);
694
+ }
695
+
696
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProfileRequest {
697
+ return new GetProfileRequest().fromJsonString(jsonString, options);
698
+ }
699
+
700
+ static equals(a: GetProfileRequest | PlainMessage<GetProfileRequest> | undefined, b: GetProfileRequest | PlainMessage<GetProfileRequest> | undefined): boolean {
701
+ return proto3.util.equals(GetProfileRequest, a, b);
702
+ }
703
+ }
704
+
705
+ /**
706
+ * @generated from message api.v1.GetProfileResponse
707
+ */
708
+ export class GetProfileResponse extends Message<GetProfileResponse> {
709
+ /**
710
+ * @generated from field: string user_id = 1;
711
+ */
712
+ userId = "";
713
+
714
+ /**
715
+ * @generated from field: string email = 2;
716
+ */
717
+ email = "";
718
+
719
+ /**
720
+ * @generated from field: string name = 3;
721
+ */
722
+ name = "";
723
+
724
+ /**
725
+ * @generated from field: string user_type = 4;
726
+ */
727
+ userType = "";
728
+
729
+ /**
730
+ * @generated from field: string company_id = 5;
731
+ */
732
+ companyId = "";
733
+
734
+ /**
735
+ * @generated from field: string company_name = 6;
736
+ */
737
+ companyName = "";
738
+
739
+ /**
740
+ * @generated from field: string hierarchy_level = 7;
741
+ */
742
+ hierarchyLevel = "";
743
+
744
+ /**
745
+ * @generated from field: string department = 8;
746
+ */
747
+ department = "";
748
+
749
+ /**
750
+ * @generated from field: bool email_verified = 9;
751
+ */
752
+ emailVerified = false;
753
+
754
+ /**
755
+ * @generated from field: string created_at = 10;
756
+ */
757
+ createdAt = "";
758
+
759
+ constructor(data?: PartialMessage<GetProfileResponse>) {
760
+ super();
761
+ proto3.util.initPartial(data, this);
762
+ }
763
+
764
+ static readonly runtime: typeof proto3 = proto3;
765
+ static readonly typeName = "api.v1.GetProfileResponse";
766
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
767
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
768
+ { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
769
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
770
+ { no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
771
+ { no: 5, name: "company_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
772
+ { no: 6, name: "company_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
773
+ { no: 7, name: "hierarchy_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
774
+ { no: 8, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ },
775
+ { no: 9, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
776
+ { no: 10, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
777
+ ]);
778
+
779
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProfileResponse {
780
+ return new GetProfileResponse().fromBinary(bytes, options);
781
+ }
782
+
783
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProfileResponse {
784
+ return new GetProfileResponse().fromJson(jsonValue, options);
785
+ }
786
+
787
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProfileResponse {
788
+ return new GetProfileResponse().fromJsonString(jsonString, options);
789
+ }
790
+
791
+ static equals(a: GetProfileResponse | PlainMessage<GetProfileResponse> | undefined, b: GetProfileResponse | PlainMessage<GetProfileResponse> | undefined): boolean {
792
+ return proto3.util.equals(GetProfileResponse, a, b);
793
+ }
794
+ }
795
+
796
+ /**
797
+ * @generated from message api.v1.UpdateProfileRequest
798
+ */
799
+ export class UpdateProfileRequest extends Message<UpdateProfileRequest> {
800
+ /**
801
+ * User ID is extracted from auth token in interceptor
802
+ *
803
+ * @generated from field: string name = 1;
804
+ */
805
+ name = "";
806
+
807
+ constructor(data?: PartialMessage<UpdateProfileRequest>) {
808
+ super();
809
+ proto3.util.initPartial(data, this);
810
+ }
811
+
812
+ static readonly runtime: typeof proto3 = proto3;
813
+ static readonly typeName = "api.v1.UpdateProfileRequest";
814
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
815
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
816
+ ]);
817
+
818
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateProfileRequest {
819
+ return new UpdateProfileRequest().fromBinary(bytes, options);
820
+ }
821
+
822
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateProfileRequest {
823
+ return new UpdateProfileRequest().fromJson(jsonValue, options);
824
+ }
825
+
826
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateProfileRequest {
827
+ return new UpdateProfileRequest().fromJsonString(jsonString, options);
828
+ }
829
+
830
+ static equals(a: UpdateProfileRequest | PlainMessage<UpdateProfileRequest> | undefined, b: UpdateProfileRequest | PlainMessage<UpdateProfileRequest> | undefined): boolean {
831
+ return proto3.util.equals(UpdateProfileRequest, a, b);
832
+ }
833
+ }
834
+
835
+ /**
836
+ * User ID is extracted from auth token in interceptor
837
+ *
838
+ * @generated from message api.v1.ListSessionsRequest
839
+ */
840
+ export class ListSessionsRequest extends Message<ListSessionsRequest> {
841
+ constructor(data?: PartialMessage<ListSessionsRequest>) {
842
+ super();
843
+ proto3.util.initPartial(data, this);
844
+ }
845
+
846
+ static readonly runtime: typeof proto3 = proto3;
847
+ static readonly typeName = "api.v1.ListSessionsRequest";
848
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
849
+ ]);
850
+
851
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSessionsRequest {
852
+ return new ListSessionsRequest().fromBinary(bytes, options);
853
+ }
854
+
855
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSessionsRequest {
856
+ return new ListSessionsRequest().fromJson(jsonValue, options);
857
+ }
858
+
859
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSessionsRequest {
860
+ return new ListSessionsRequest().fromJsonString(jsonString, options);
861
+ }
862
+
863
+ static equals(a: ListSessionsRequest | PlainMessage<ListSessionsRequest> | undefined, b: ListSessionsRequest | PlainMessage<ListSessionsRequest> | undefined): boolean {
864
+ return proto3.util.equals(ListSessionsRequest, a, b);
865
+ }
866
+ }
867
+
868
+ /**
869
+ * @generated from message api.v1.ListSessionsResponse
870
+ */
871
+ export class ListSessionsResponse extends Message<ListSessionsResponse> {
872
+ /**
873
+ * @generated from field: repeated api.v1.SessionInfo sessions = 1;
874
+ */
875
+ sessions: SessionInfo[] = [];
876
+
877
+ constructor(data?: PartialMessage<ListSessionsResponse>) {
878
+ super();
879
+ proto3.util.initPartial(data, this);
880
+ }
881
+
882
+ static readonly runtime: typeof proto3 = proto3;
883
+ static readonly typeName = "api.v1.ListSessionsResponse";
884
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
885
+ { no: 1, name: "sessions", kind: "message", T: SessionInfo, repeated: true },
886
+ ]);
887
+
888
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSessionsResponse {
889
+ return new ListSessionsResponse().fromBinary(bytes, options);
890
+ }
891
+
892
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSessionsResponse {
893
+ return new ListSessionsResponse().fromJson(jsonValue, options);
894
+ }
895
+
896
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSessionsResponse {
897
+ return new ListSessionsResponse().fromJsonString(jsonString, options);
898
+ }
899
+
900
+ static equals(a: ListSessionsResponse | PlainMessage<ListSessionsResponse> | undefined, b: ListSessionsResponse | PlainMessage<ListSessionsResponse> | undefined): boolean {
901
+ return proto3.util.equals(ListSessionsResponse, a, b);
902
+ }
903
+ }
904
+
905
+ /**
906
+ * @generated from message api.v1.RevokeSessionRequest
907
+ */
908
+ export class RevokeSessionRequest extends Message<RevokeSessionRequest> {
909
+ /**
910
+ * User ID is extracted from auth token in interceptor
911
+ *
912
+ * @generated from field: string session_id = 1;
913
+ */
914
+ sessionId = "";
915
+
916
+ constructor(data?: PartialMessage<RevokeSessionRequest>) {
917
+ super();
918
+ proto3.util.initPartial(data, this);
919
+ }
920
+
921
+ static readonly runtime: typeof proto3 = proto3;
922
+ static readonly typeName = "api.v1.RevokeSessionRequest";
923
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
924
+ { no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
925
+ ]);
926
+
927
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RevokeSessionRequest {
928
+ return new RevokeSessionRequest().fromBinary(bytes, options);
929
+ }
930
+
931
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RevokeSessionRequest {
932
+ return new RevokeSessionRequest().fromJson(jsonValue, options);
933
+ }
934
+
935
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RevokeSessionRequest {
936
+ return new RevokeSessionRequest().fromJsonString(jsonString, options);
937
+ }
938
+
939
+ static equals(a: RevokeSessionRequest | PlainMessage<RevokeSessionRequest> | undefined, b: RevokeSessionRequest | PlainMessage<RevokeSessionRequest> | undefined): boolean {
940
+ return proto3.util.equals(RevokeSessionRequest, a, b);
941
+ }
942
+ }
943
+
944
+ /**
945
+ * User ID is extracted from auth token in interceptor
946
+ *
947
+ * @generated from message api.v1.RevokeAllSessionsRequest
948
+ */
949
+ export class RevokeAllSessionsRequest extends Message<RevokeAllSessionsRequest> {
950
+ constructor(data?: PartialMessage<RevokeAllSessionsRequest>) {
951
+ super();
952
+ proto3.util.initPartial(data, this);
953
+ }
954
+
955
+ static readonly runtime: typeof proto3 = proto3;
956
+ static readonly typeName = "api.v1.RevokeAllSessionsRequest";
957
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
958
+ ]);
959
+
960
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RevokeAllSessionsRequest {
961
+ return new RevokeAllSessionsRequest().fromBinary(bytes, options);
962
+ }
963
+
964
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RevokeAllSessionsRequest {
965
+ return new RevokeAllSessionsRequest().fromJson(jsonValue, options);
966
+ }
967
+
968
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RevokeAllSessionsRequest {
969
+ return new RevokeAllSessionsRequest().fromJsonString(jsonString, options);
970
+ }
971
+
972
+ static equals(a: RevokeAllSessionsRequest | PlainMessage<RevokeAllSessionsRequest> | undefined, b: RevokeAllSessionsRequest | PlainMessage<RevokeAllSessionsRequest> | undefined): boolean {
973
+ return proto3.util.equals(RevokeAllSessionsRequest, a, b);
974
+ }
975
+ }
976
+
977
+ /**
978
+ * @generated from message api.v1.OAuthLoginRequest
979
+ */
980
+ export class OAuthLoginRequest extends Message<OAuthLoginRequest> {
981
+ /**
982
+ * "google", "github", "linkedin", etc.
983
+ *
984
+ * @generated from field: string provider = 1;
985
+ */
986
+ provider = "";
987
+
988
+ constructor(data?: PartialMessage<OAuthLoginRequest>) {
989
+ super();
990
+ proto3.util.initPartial(data, this);
991
+ }
992
+
993
+ static readonly runtime: typeof proto3 = proto3;
994
+ static readonly typeName = "api.v1.OAuthLoginRequest";
995
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
996
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
997
+ ]);
998
+
999
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthLoginRequest {
1000
+ return new OAuthLoginRequest().fromBinary(bytes, options);
1001
+ }
1002
+
1003
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OAuthLoginRequest {
1004
+ return new OAuthLoginRequest().fromJson(jsonValue, options);
1005
+ }
1006
+
1007
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OAuthLoginRequest {
1008
+ return new OAuthLoginRequest().fromJsonString(jsonString, options);
1009
+ }
1010
+
1011
+ static equals(a: OAuthLoginRequest | PlainMessage<OAuthLoginRequest> | undefined, b: OAuthLoginRequest | PlainMessage<OAuthLoginRequest> | undefined): boolean {
1012
+ return proto3.util.equals(OAuthLoginRequest, a, b);
1013
+ }
1014
+ }
1015
+
1016
+ /**
1017
+ * @generated from message api.v1.OAuthLoginResponse
1018
+ */
1019
+ export class OAuthLoginResponse extends Message<OAuthLoginResponse> {
1020
+ /**
1021
+ * @generated from field: string redirect_url = 1;
1022
+ */
1023
+ redirectUrl = "";
1024
+
1025
+ constructor(data?: PartialMessage<OAuthLoginResponse>) {
1026
+ super();
1027
+ proto3.util.initPartial(data, this);
1028
+ }
1029
+
1030
+ static readonly runtime: typeof proto3 = proto3;
1031
+ static readonly typeName = "api.v1.OAuthLoginResponse";
1032
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1033
+ { no: 1, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1034
+ ]);
1035
+
1036
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthLoginResponse {
1037
+ return new OAuthLoginResponse().fromBinary(bytes, options);
1038
+ }
1039
+
1040
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OAuthLoginResponse {
1041
+ return new OAuthLoginResponse().fromJson(jsonValue, options);
1042
+ }
1043
+
1044
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OAuthLoginResponse {
1045
+ return new OAuthLoginResponse().fromJsonString(jsonString, options);
1046
+ }
1047
+
1048
+ static equals(a: OAuthLoginResponse | PlainMessage<OAuthLoginResponse> | undefined, b: OAuthLoginResponse | PlainMessage<OAuthLoginResponse> | undefined): boolean {
1049
+ return proto3.util.equals(OAuthLoginResponse, a, b);
1050
+ }
1051
+ }
1052
+
1053
+ /**
1054
+ * @generated from message api.v1.OAuthCallbackRequest
1055
+ */
1056
+ export class OAuthCallbackRequest extends Message<OAuthCallbackRequest> {
1057
+ /**
1058
+ * @generated from field: string provider = 1;
1059
+ */
1060
+ provider = "";
1061
+
1062
+ /**
1063
+ * @generated from field: string code = 2;
1064
+ */
1065
+ code = "";
1066
+
1067
+ /**
1068
+ * @generated from field: string state = 3;
1069
+ */
1070
+ state = "";
1071
+
1072
+ constructor(data?: PartialMessage<OAuthCallbackRequest>) {
1073
+ super();
1074
+ proto3.util.initPartial(data, this);
1075
+ }
1076
+
1077
+ static readonly runtime: typeof proto3 = proto3;
1078
+ static readonly typeName = "api.v1.OAuthCallbackRequest";
1079
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1080
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1081
+ { no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1082
+ { no: 3, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1083
+ ]);
1084
+
1085
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthCallbackRequest {
1086
+ return new OAuthCallbackRequest().fromBinary(bytes, options);
1087
+ }
1088
+
1089
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OAuthCallbackRequest {
1090
+ return new OAuthCallbackRequest().fromJson(jsonValue, options);
1091
+ }
1092
+
1093
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OAuthCallbackRequest {
1094
+ return new OAuthCallbackRequest().fromJsonString(jsonString, options);
1095
+ }
1096
+
1097
+ static equals(a: OAuthCallbackRequest | PlainMessage<OAuthCallbackRequest> | undefined, b: OAuthCallbackRequest | PlainMessage<OAuthCallbackRequest> | undefined): boolean {
1098
+ return proto3.util.equals(OAuthCallbackRequest, a, b);
1099
+ }
1100
+ }
1101
+
1102
+ /**
1103
+ * @generated from message api.v1.OAuthCallbackResponse
1104
+ */
1105
+ export class OAuthCallbackResponse extends Message<OAuthCallbackResponse> {
1106
+ /**
1107
+ * @generated from field: string user_id = 1;
1108
+ */
1109
+ userId = "";
1110
+
1111
+ /**
1112
+ * @generated from field: string access_token = 2;
1113
+ */
1114
+ accessToken = "";
1115
+
1116
+ /**
1117
+ * @generated from field: string refresh_token = 3;
1118
+ */
1119
+ refreshToken = "";
1120
+
1121
+ /**
1122
+ * @generated from field: string user_type = 4;
1123
+ */
1124
+ userType = "";
1125
+
1126
+ /**
1127
+ * @generated from field: string company_id = 5;
1128
+ */
1129
+ companyId = "";
1130
+
1131
+ /**
1132
+ * @generated from field: string hierarchy_level = 6;
1133
+ */
1134
+ hierarchyLevel = "";
1135
+
1136
+ /**
1137
+ * @generated from field: string department = 7;
1138
+ */
1139
+ department = "";
1140
+
1141
+ /**
1142
+ * @generated from field: bool email_verified = 8;
1143
+ */
1144
+ emailVerified = false;
1145
+
1146
+ /**
1147
+ * @generated from field: string onboarding_status = 9;
1148
+ */
1149
+ onboardingStatus = "";
1150
+
1151
+ /**
1152
+ * @generated from field: string onboarding_step = 10;
1153
+ */
1154
+ onboardingStep = "";
1155
+
1156
+ /**
1157
+ * @generated from field: bool onboarding_complete = 11;
1158
+ */
1159
+ onboardingComplete = false;
1160
+
1161
+ constructor(data?: PartialMessage<OAuthCallbackResponse>) {
1162
+ super();
1163
+ proto3.util.initPartial(data, this);
1164
+ }
1165
+
1166
+ static readonly runtime: typeof proto3 = proto3;
1167
+ static readonly typeName = "api.v1.OAuthCallbackResponse";
1168
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1169
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1170
+ { no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1171
+ { no: 3, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1172
+ { no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1173
+ { no: 5, name: "company_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1174
+ { no: 6, name: "hierarchy_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1175
+ { no: 7, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1176
+ { no: 8, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1177
+ { no: 9, name: "onboarding_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1178
+ { no: 10, name: "onboarding_step", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1179
+ { no: 11, name: "onboarding_complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1180
+ ]);
1181
+
1182
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthCallbackResponse {
1183
+ return new OAuthCallbackResponse().fromBinary(bytes, options);
1184
+ }
1185
+
1186
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OAuthCallbackResponse {
1187
+ return new OAuthCallbackResponse().fromJson(jsonValue, options);
1188
+ }
1189
+
1190
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OAuthCallbackResponse {
1191
+ return new OAuthCallbackResponse().fromJsonString(jsonString, options);
1192
+ }
1193
+
1194
+ static equals(a: OAuthCallbackResponse | PlainMessage<OAuthCallbackResponse> | undefined, b: OAuthCallbackResponse | PlainMessage<OAuthCallbackResponse> | undefined): boolean {
1195
+ return proto3.util.equals(OAuthCallbackResponse, a, b);
1196
+ }
1197
+ }
1198
+
1199
+ /**
1200
+ * @generated from message api.v1.LinkOAuthAccountRequest
1201
+ */
1202
+ export class LinkOAuthAccountRequest extends Message<LinkOAuthAccountRequest> {
1203
+ /**
1204
+ * @generated from field: string provider = 1;
1205
+ */
1206
+ provider = "";
1207
+
1208
+ /**
1209
+ * User ID is extracted from auth token in interceptor
1210
+ *
1211
+ * @generated from field: string code = 2;
1212
+ */
1213
+ code = "";
1214
+
1215
+ constructor(data?: PartialMessage<LinkOAuthAccountRequest>) {
1216
+ super();
1217
+ proto3.util.initPartial(data, this);
1218
+ }
1219
+
1220
+ static readonly runtime: typeof proto3 = proto3;
1221
+ static readonly typeName = "api.v1.LinkOAuthAccountRequest";
1222
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1223
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1224
+ { no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1225
+ ]);
1226
+
1227
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LinkOAuthAccountRequest {
1228
+ return new LinkOAuthAccountRequest().fromBinary(bytes, options);
1229
+ }
1230
+
1231
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LinkOAuthAccountRequest {
1232
+ return new LinkOAuthAccountRequest().fromJson(jsonValue, options);
1233
+ }
1234
+
1235
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LinkOAuthAccountRequest {
1236
+ return new LinkOAuthAccountRequest().fromJsonString(jsonString, options);
1237
+ }
1238
+
1239
+ static equals(a: LinkOAuthAccountRequest | PlainMessage<LinkOAuthAccountRequest> | undefined, b: LinkOAuthAccountRequest | PlainMessage<LinkOAuthAccountRequest> | undefined): boolean {
1240
+ return proto3.util.equals(LinkOAuthAccountRequest, a, b);
1241
+ }
1242
+ }
1243
+
1244
+ /**
1245
+ * @generated from message api.v1.UnlinkOAuthAccountRequest
1246
+ */
1247
+ export class UnlinkOAuthAccountRequest extends Message<UnlinkOAuthAccountRequest> {
1248
+ /**
1249
+ * User ID is extracted from auth token in interceptor
1250
+ *
1251
+ * @generated from field: string provider = 1;
1252
+ */
1253
+ provider = "";
1254
+
1255
+ constructor(data?: PartialMessage<UnlinkOAuthAccountRequest>) {
1256
+ super();
1257
+ proto3.util.initPartial(data, this);
1258
+ }
1259
+
1260
+ static readonly runtime: typeof proto3 = proto3;
1261
+ static readonly typeName = "api.v1.UnlinkOAuthAccountRequest";
1262
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1263
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1264
+ ]);
1265
+
1266
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnlinkOAuthAccountRequest {
1267
+ return new UnlinkOAuthAccountRequest().fromBinary(bytes, options);
1268
+ }
1269
+
1270
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnlinkOAuthAccountRequest {
1271
+ return new UnlinkOAuthAccountRequest().fromJson(jsonValue, options);
1272
+ }
1273
+
1274
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnlinkOAuthAccountRequest {
1275
+ return new UnlinkOAuthAccountRequest().fromJsonString(jsonString, options);
1276
+ }
1277
+
1278
+ static equals(a: UnlinkOAuthAccountRequest | PlainMessage<UnlinkOAuthAccountRequest> | undefined, b: UnlinkOAuthAccountRequest | PlainMessage<UnlinkOAuthAccountRequest> | undefined): boolean {
1279
+ return proto3.util.equals(UnlinkOAuthAccountRequest, a, b);
1280
+ }
1281
+ }
1282
+