@se-uulm/snowballr-grpc-client 0.2.0 → 0.2.1-alpha.1c76208

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,216 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
2
+ // @generated from protobuf file "authentication.proto" (package "snowballr", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ /// Authentication related messages and enums of the SnowballR app.
6
+ //
7
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
9
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
10
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ /**
14
+ * Request to log in.
15
+ *
16
+ * @generated from protobuf message snowballr.LoginRequest
17
+ */
18
+ export interface LoginRequest {
19
+ /**
20
+ * @generated from protobuf field: string email = 1
21
+ */
22
+ email: string;
23
+ /**
24
+ * @generated from protobuf field: string password = 2
25
+ */
26
+ password: string;
27
+ }
28
+ /**
29
+ * Request to register an account.
30
+ *
31
+ * @generated from protobuf message snowballr.RegisterRequest
32
+ */
33
+ export interface RegisterRequest {
34
+ /**
35
+ * @generated from protobuf field: string first_name = 1
36
+ */
37
+ firstName: string;
38
+ /**
39
+ * @generated from protobuf field: string last_name = 2
40
+ */
41
+ lastName: string;
42
+ /**
43
+ * @generated from protobuf field: string email = 3
44
+ */
45
+ email: string;
46
+ /**
47
+ * @generated from protobuf field: string password = 4
48
+ */
49
+ password: string;
50
+ }
51
+ /**
52
+ * Request to verify a user's email after registering.
53
+ *
54
+ * @generated from protobuf message snowballr.VerifyEmailRequest
55
+ */
56
+ export interface VerifyEmailRequest {
57
+ /**
58
+ * @generated from protobuf field: string token = 1
59
+ */
60
+ token: string;
61
+ }
62
+ /**
63
+ * Request to request the reset of the user's password.
64
+ *
65
+ * @generated from protobuf message snowballr.RequestPasswordResetRequest
66
+ */
67
+ export interface RequestPasswordResetRequest {
68
+ /**
69
+ * @generated from protobuf field: string email = 1
70
+ */
71
+ email: string;
72
+ }
73
+ /**
74
+ * Request to actually reset the user's password.
75
+ *
76
+ * @generated from protobuf message snowballr.PasswordResetRequest
77
+ */
78
+ export interface PasswordResetRequest {
79
+ /**
80
+ * @generated from protobuf field: string token = 1
81
+ */
82
+ token: string;
83
+ /**
84
+ * @generated from protobuf field: string new_password = 2
85
+ */
86
+ newPassword: string;
87
+ }
88
+ /**
89
+ * Request to reset the password of the user while being logged in.
90
+ *
91
+ * @generated from protobuf message snowballr.PasswordChangeRequest
92
+ */
93
+ export interface PasswordChangeRequest {
94
+ /**
95
+ * @generated from protobuf field: string old_password = 1
96
+ */
97
+ oldPassword: string;
98
+ /**
99
+ * @generated from protobuf field: string new_password = 2
100
+ */
101
+ newPassword: string;
102
+ }
103
+ /**
104
+ * Response on whether the user is authenticated.
105
+ *
106
+ * @generated from protobuf message snowballr.AuthenticationStatusResponse
107
+ */
108
+ export interface AuthenticationStatusResponse {
109
+ /**
110
+ * @generated from protobuf field: snowballr.AuthenticationStatus authentication_status = 1
111
+ */
112
+ authenticationStatus: AuthenticationStatus;
113
+ }
114
+ /**
115
+ * The status of the user's authentication.
116
+ * It is required to be authenticated to use the SnowballR app.
117
+ *
118
+ * @generated from protobuf enum snowballr.AuthenticationStatus
119
+ */
120
+ export declare enum AuthenticationStatus {
121
+ /**
122
+ * Unspecified authentication status.
123
+ *
124
+ * @generated from protobuf enum value: AUTHENTICATION_STATUS_UNSPECIFIED = 0;
125
+ */
126
+ UNSPECIFIED = 0,
127
+ /**
128
+ * The user is unauthenticated. They have to sign into the app.
129
+ *
130
+ * @generated from protobuf enum value: AUTHENTICATION_STATUS_UNAUTHENTICATED = 1;
131
+ */
132
+ UNAUTHENTICATED = 1,
133
+ /**
134
+ * The user's access token is expired. They have to use the refresh token to get a new access token.
135
+ *
136
+ * @generated from protobuf enum value: AUTHENTICATION_STATUS_ACCESS_TOKEN_EXPIRED = 2;
137
+ */
138
+ ACCESS_TOKEN_EXPIRED = 2,
139
+ /**
140
+ * The user is authenticated. They are signed in.
141
+ *
142
+ * @generated from protobuf enum value: AUTHENTICATION_STATUS_AUTHENTICATED = 3;
143
+ */
144
+ AUTHENTICATED = 3
145
+ }
146
+ declare class LoginRequest$Type extends MessageType<LoginRequest> {
147
+ constructor();
148
+ create(value?: PartialMessage<LoginRequest>): LoginRequest;
149
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginRequest): LoginRequest;
150
+ internalBinaryWrite(message: LoginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
151
+ }
152
+ /**
153
+ * @generated MessageType for protobuf message snowballr.LoginRequest
154
+ */
155
+ export declare const LoginRequest: LoginRequest$Type;
156
+ declare class RegisterRequest$Type extends MessageType<RegisterRequest> {
157
+ constructor();
158
+ create(value?: PartialMessage<RegisterRequest>): RegisterRequest;
159
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterRequest): RegisterRequest;
160
+ internalBinaryWrite(message: RegisterRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
161
+ }
162
+ /**
163
+ * @generated MessageType for protobuf message snowballr.RegisterRequest
164
+ */
165
+ export declare const RegisterRequest: RegisterRequest$Type;
166
+ declare class VerifyEmailRequest$Type extends MessageType<VerifyEmailRequest> {
167
+ constructor();
168
+ create(value?: PartialMessage<VerifyEmailRequest>): VerifyEmailRequest;
169
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VerifyEmailRequest): VerifyEmailRequest;
170
+ internalBinaryWrite(message: VerifyEmailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
171
+ }
172
+ /**
173
+ * @generated MessageType for protobuf message snowballr.VerifyEmailRequest
174
+ */
175
+ export declare const VerifyEmailRequest: VerifyEmailRequest$Type;
176
+ declare class RequestPasswordResetRequest$Type extends MessageType<RequestPasswordResetRequest> {
177
+ constructor();
178
+ create(value?: PartialMessage<RequestPasswordResetRequest>): RequestPasswordResetRequest;
179
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestPasswordResetRequest): RequestPasswordResetRequest;
180
+ internalBinaryWrite(message: RequestPasswordResetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
181
+ }
182
+ /**
183
+ * @generated MessageType for protobuf message snowballr.RequestPasswordResetRequest
184
+ */
185
+ export declare const RequestPasswordResetRequest: RequestPasswordResetRequest$Type;
186
+ declare class PasswordResetRequest$Type extends MessageType<PasswordResetRequest> {
187
+ constructor();
188
+ create(value?: PartialMessage<PasswordResetRequest>): PasswordResetRequest;
189
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordResetRequest): PasswordResetRequest;
190
+ internalBinaryWrite(message: PasswordResetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
191
+ }
192
+ /**
193
+ * @generated MessageType for protobuf message snowballr.PasswordResetRequest
194
+ */
195
+ export declare const PasswordResetRequest: PasswordResetRequest$Type;
196
+ declare class PasswordChangeRequest$Type extends MessageType<PasswordChangeRequest> {
197
+ constructor();
198
+ create(value?: PartialMessage<PasswordChangeRequest>): PasswordChangeRequest;
199
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordChangeRequest): PasswordChangeRequest;
200
+ internalBinaryWrite(message: PasswordChangeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
201
+ }
202
+ /**
203
+ * @generated MessageType for protobuf message snowballr.PasswordChangeRequest
204
+ */
205
+ export declare const PasswordChangeRequest: PasswordChangeRequest$Type;
206
+ declare class AuthenticationStatusResponse$Type extends MessageType<AuthenticationStatusResponse> {
207
+ constructor();
208
+ create(value?: PartialMessage<AuthenticationStatusResponse>): AuthenticationStatusResponse;
209
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthenticationStatusResponse): AuthenticationStatusResponse;
210
+ internalBinaryWrite(message: AuthenticationStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
211
+ }
212
+ /**
213
+ * @generated MessageType for protobuf message snowballr.AuthenticationStatusResponse
214
+ */
215
+ export declare const AuthenticationStatusResponse: AuthenticationStatusResponse$Type;
216
+ export {};
@@ -1,168 +1,63 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
1
+ // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
2
2
  // @generated from protobuf file "authentication.proto" (package "snowballr", syntax proto3)
3
3
  // tslint:disable
4
4
  //
5
5
  /// Authentication related messages and enums of the SnowballR app.
6
6
  //
7
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
9
7
  import { WireType } from "@protobuf-ts/runtime";
10
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
11
- import type { IBinaryReader } from "@protobuf-ts/runtime";
12
8
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
13
- import type { PartialMessage } from "@protobuf-ts/runtime";
14
9
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
15
10
  import { MessageType } from "@protobuf-ts/runtime";
16
- /**
17
- * Request to log in.
18
- *
19
- * @generated from protobuf message snowballr.LoginRequest
20
- */
21
- export interface LoginRequest {
22
- /**
23
- * @generated from protobuf field: string email = 1
24
- */
25
- email: string;
26
- /**
27
- * @generated from protobuf field: string password = 2
28
- */
29
- password: string;
30
- }
31
- /**
32
- * Request to register an account.
33
- *
34
- * @generated from protobuf message snowballr.RegisterRequest
35
- */
36
- export interface RegisterRequest {
37
- /**
38
- * @generated from protobuf field: string first_name = 1
39
- */
40
- firstName: string;
41
- /**
42
- * @generated from protobuf field: string last_name = 2
43
- */
44
- lastName: string;
45
- /**
46
- * @generated from protobuf field: string email = 3
47
- */
48
- email: string;
49
- /**
50
- * @generated from protobuf field: string password = 4
51
- */
52
- password: string;
53
- }
54
- /**
55
- * Request to verify a user's email after registering.
56
- *
57
- * @generated from protobuf message snowballr.VerifyEmailRequest
58
- */
59
- export interface VerifyEmailRequest {
60
- /**
61
- * @generated from protobuf field: string token = 1
62
- */
63
- token: string;
64
- }
65
- /**
66
- * Request to request the reset of the user's password.
67
- *
68
- * @generated from protobuf message snowballr.RequestPasswordResetRequest
69
- */
70
- export interface RequestPasswordResetRequest {
71
- /**
72
- * @generated from protobuf field: string email = 1
73
- */
74
- email: string;
75
- }
76
- /**
77
- * Request to actually reset the user's password.
78
- *
79
- * @generated from protobuf message snowballr.PasswordResetRequest
80
- */
81
- export interface PasswordResetRequest {
82
- /**
83
- * @generated from protobuf field: string token = 1
84
- */
85
- token: string;
86
- /**
87
- * @generated from protobuf field: string new_password = 2
88
- */
89
- newPassword: string;
90
- }
91
- /**
92
- * Request to reset the password of the user while being logged in.
93
- *
94
- * @generated from protobuf message snowballr.PasswordChangeRequest
95
- */
96
- export interface PasswordChangeRequest {
97
- /**
98
- * @generated from protobuf field: string old_password = 1
99
- */
100
- oldPassword: string;
101
- /**
102
- * @generated from protobuf field: string new_password = 2
103
- */
104
- newPassword: string;
105
- }
106
- /**
107
- * Response on whether the user is authenticated.
108
- *
109
- * @generated from protobuf message snowballr.AuthenticationStatusResponse
110
- */
111
- export interface AuthenticationStatusResponse {
112
- /**
113
- * @generated from protobuf field: snowballr.AuthenticationStatus authentication_status = 1
114
- */
115
- authenticationStatus: AuthenticationStatus;
116
- }
117
11
  /**
118
12
  * The status of the user's authentication.
119
13
  * It is required to be authenticated to use the SnowballR app.
120
14
  *
121
15
  * @generated from protobuf enum snowballr.AuthenticationStatus
122
16
  */
123
- export enum AuthenticationStatus {
17
+ export var AuthenticationStatus;
18
+ (function (AuthenticationStatus) {
124
19
  /**
125
20
  * Unspecified authentication status.
126
21
  *
127
22
  * @generated from protobuf enum value: AUTHENTICATION_STATUS_UNSPECIFIED = 0;
128
23
  */
129
- UNSPECIFIED = 0,
24
+ AuthenticationStatus[AuthenticationStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
130
25
  /**
131
26
  * The user is unauthenticated. They have to sign into the app.
132
27
  *
133
28
  * @generated from protobuf enum value: AUTHENTICATION_STATUS_UNAUTHENTICATED = 1;
134
29
  */
135
- UNAUTHENTICATED = 1,
30
+ AuthenticationStatus[AuthenticationStatus["UNAUTHENTICATED"] = 1] = "UNAUTHENTICATED";
136
31
  /**
137
32
  * The user's access token is expired. They have to use the refresh token to get a new access token.
138
33
  *
139
34
  * @generated from protobuf enum value: AUTHENTICATION_STATUS_ACCESS_TOKEN_EXPIRED = 2;
140
35
  */
141
- ACCESS_TOKEN_EXPIRED = 2,
36
+ AuthenticationStatus[AuthenticationStatus["ACCESS_TOKEN_EXPIRED"] = 2] = "ACCESS_TOKEN_EXPIRED";
142
37
  /**
143
38
  * The user is authenticated. They are signed in.
144
39
  *
145
40
  * @generated from protobuf enum value: AUTHENTICATION_STATUS_AUTHENTICATED = 3;
146
41
  */
147
- AUTHENTICATED = 3
148
- }
42
+ AuthenticationStatus[AuthenticationStatus["AUTHENTICATED"] = 3] = "AUTHENTICATED";
43
+ })(AuthenticationStatus || (AuthenticationStatus = {}));
149
44
  // @generated message type with reflection information, may provide speed optimized methods
150
- class LoginRequest$Type extends MessageType<LoginRequest> {
45
+ class LoginRequest$Type extends MessageType {
151
46
  constructor() {
152
47
  super("snowballr.LoginRequest", [
153
48
  { no: 1, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
154
49
  { no: 2, name: "password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
155
50
  ]);
156
51
  }
157
- create(value?: PartialMessage<LoginRequest>): LoginRequest {
158
- const message = globalThis.Object.create((this.messagePrototype!));
52
+ create(value) {
53
+ const message = globalThis.Object.create((this.messagePrototype));
159
54
  message.email = "";
160
55
  message.password = "";
161
56
  if (value !== undefined)
162
- reflectionMergePartial<LoginRequest>(this, message, value);
57
+ reflectionMergePartial(this, message, value);
163
58
  return message;
164
59
  }
165
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginRequest): LoginRequest {
60
+ internalBinaryRead(reader, length, options, target) {
166
61
  let message = target ?? this.create(), end = reader.pos + length;
167
62
  while (reader.pos < end) {
168
63
  let [fieldNo, wireType] = reader.tag();
@@ -184,7 +79,7 @@ class LoginRequest$Type extends MessageType<LoginRequest> {
184
79
  }
185
80
  return message;
186
81
  }
187
- internalBinaryWrite(message: LoginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
82
+ internalBinaryWrite(message, writer, options) {
188
83
  /* string email = 1; */
189
84
  if (message.email !== "")
190
85
  writer.tag(1, WireType.LengthDelimited).string(message.email);
@@ -202,7 +97,7 @@ class LoginRequest$Type extends MessageType<LoginRequest> {
202
97
  */
203
98
  export const LoginRequest = new LoginRequest$Type();
204
99
  // @generated message type with reflection information, may provide speed optimized methods
205
- class RegisterRequest$Type extends MessageType<RegisterRequest> {
100
+ class RegisterRequest$Type extends MessageType {
206
101
  constructor() {
207
102
  super("snowballr.RegisterRequest", [
208
103
  { no: 1, name: "first_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -211,17 +106,17 @@ class RegisterRequest$Type extends MessageType<RegisterRequest> {
211
106
  { no: 4, name: "password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
212
107
  ]);
213
108
  }
214
- create(value?: PartialMessage<RegisterRequest>): RegisterRequest {
215
- const message = globalThis.Object.create((this.messagePrototype!));
109
+ create(value) {
110
+ const message = globalThis.Object.create((this.messagePrototype));
216
111
  message.firstName = "";
217
112
  message.lastName = "";
218
113
  message.email = "";
219
114
  message.password = "";
220
115
  if (value !== undefined)
221
- reflectionMergePartial<RegisterRequest>(this, message, value);
116
+ reflectionMergePartial(this, message, value);
222
117
  return message;
223
118
  }
224
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterRequest): RegisterRequest {
119
+ internalBinaryRead(reader, length, options, target) {
225
120
  let message = target ?? this.create(), end = reader.pos + length;
226
121
  while (reader.pos < end) {
227
122
  let [fieldNo, wireType] = reader.tag();
@@ -249,7 +144,7 @@ class RegisterRequest$Type extends MessageType<RegisterRequest> {
249
144
  }
250
145
  return message;
251
146
  }
252
- internalBinaryWrite(message: RegisterRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
147
+ internalBinaryWrite(message, writer, options) {
253
148
  /* string first_name = 1; */
254
149
  if (message.firstName !== "")
255
150
  writer.tag(1, WireType.LengthDelimited).string(message.firstName);
@@ -273,20 +168,20 @@ class RegisterRequest$Type extends MessageType<RegisterRequest> {
273
168
  */
274
169
  export const RegisterRequest = new RegisterRequest$Type();
275
170
  // @generated message type with reflection information, may provide speed optimized methods
276
- class VerifyEmailRequest$Type extends MessageType<VerifyEmailRequest> {
171
+ class VerifyEmailRequest$Type extends MessageType {
277
172
  constructor() {
278
173
  super("snowballr.VerifyEmailRequest", [
279
174
  { no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
280
175
  ]);
281
176
  }
282
- create(value?: PartialMessage<VerifyEmailRequest>): VerifyEmailRequest {
283
- const message = globalThis.Object.create((this.messagePrototype!));
177
+ create(value) {
178
+ const message = globalThis.Object.create((this.messagePrototype));
284
179
  message.token = "";
285
180
  if (value !== undefined)
286
- reflectionMergePartial<VerifyEmailRequest>(this, message, value);
181
+ reflectionMergePartial(this, message, value);
287
182
  return message;
288
183
  }
289
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VerifyEmailRequest): VerifyEmailRequest {
184
+ internalBinaryRead(reader, length, options, target) {
290
185
  let message = target ?? this.create(), end = reader.pos + length;
291
186
  while (reader.pos < end) {
292
187
  let [fieldNo, wireType] = reader.tag();
@@ -305,7 +200,7 @@ class VerifyEmailRequest$Type extends MessageType<VerifyEmailRequest> {
305
200
  }
306
201
  return message;
307
202
  }
308
- internalBinaryWrite(message: VerifyEmailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
203
+ internalBinaryWrite(message, writer, options) {
309
204
  /* string token = 1; */
310
205
  if (message.token !== "")
311
206
  writer.tag(1, WireType.LengthDelimited).string(message.token);
@@ -320,20 +215,20 @@ class VerifyEmailRequest$Type extends MessageType<VerifyEmailRequest> {
320
215
  */
321
216
  export const VerifyEmailRequest = new VerifyEmailRequest$Type();
322
217
  // @generated message type with reflection information, may provide speed optimized methods
323
- class RequestPasswordResetRequest$Type extends MessageType<RequestPasswordResetRequest> {
218
+ class RequestPasswordResetRequest$Type extends MessageType {
324
219
  constructor() {
325
220
  super("snowballr.RequestPasswordResetRequest", [
326
221
  { no: 1, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
327
222
  ]);
328
223
  }
329
- create(value?: PartialMessage<RequestPasswordResetRequest>): RequestPasswordResetRequest {
330
- const message = globalThis.Object.create((this.messagePrototype!));
224
+ create(value) {
225
+ const message = globalThis.Object.create((this.messagePrototype));
331
226
  message.email = "";
332
227
  if (value !== undefined)
333
- reflectionMergePartial<RequestPasswordResetRequest>(this, message, value);
228
+ reflectionMergePartial(this, message, value);
334
229
  return message;
335
230
  }
336
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestPasswordResetRequest): RequestPasswordResetRequest {
231
+ internalBinaryRead(reader, length, options, target) {
337
232
  let message = target ?? this.create(), end = reader.pos + length;
338
233
  while (reader.pos < end) {
339
234
  let [fieldNo, wireType] = reader.tag();
@@ -352,7 +247,7 @@ class RequestPasswordResetRequest$Type extends MessageType<RequestPasswordResetR
352
247
  }
353
248
  return message;
354
249
  }
355
- internalBinaryWrite(message: RequestPasswordResetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
250
+ internalBinaryWrite(message, writer, options) {
356
251
  /* string email = 1; */
357
252
  if (message.email !== "")
358
253
  writer.tag(1, WireType.LengthDelimited).string(message.email);
@@ -367,22 +262,22 @@ class RequestPasswordResetRequest$Type extends MessageType<RequestPasswordResetR
367
262
  */
368
263
  export const RequestPasswordResetRequest = new RequestPasswordResetRequest$Type();
369
264
  // @generated message type with reflection information, may provide speed optimized methods
370
- class PasswordResetRequest$Type extends MessageType<PasswordResetRequest> {
265
+ class PasswordResetRequest$Type extends MessageType {
371
266
  constructor() {
372
267
  super("snowballr.PasswordResetRequest", [
373
268
  { no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
374
269
  { no: 2, name: "new_password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
375
270
  ]);
376
271
  }
377
- create(value?: PartialMessage<PasswordResetRequest>): PasswordResetRequest {
378
- const message = globalThis.Object.create((this.messagePrototype!));
272
+ create(value) {
273
+ const message = globalThis.Object.create((this.messagePrototype));
379
274
  message.token = "";
380
275
  message.newPassword = "";
381
276
  if (value !== undefined)
382
- reflectionMergePartial<PasswordResetRequest>(this, message, value);
277
+ reflectionMergePartial(this, message, value);
383
278
  return message;
384
279
  }
385
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordResetRequest): PasswordResetRequest {
280
+ internalBinaryRead(reader, length, options, target) {
386
281
  let message = target ?? this.create(), end = reader.pos + length;
387
282
  while (reader.pos < end) {
388
283
  let [fieldNo, wireType] = reader.tag();
@@ -404,7 +299,7 @@ class PasswordResetRequest$Type extends MessageType<PasswordResetRequest> {
404
299
  }
405
300
  return message;
406
301
  }
407
- internalBinaryWrite(message: PasswordResetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
302
+ internalBinaryWrite(message, writer, options) {
408
303
  /* string token = 1; */
409
304
  if (message.token !== "")
410
305
  writer.tag(1, WireType.LengthDelimited).string(message.token);
@@ -422,22 +317,22 @@ class PasswordResetRequest$Type extends MessageType<PasswordResetRequest> {
422
317
  */
423
318
  export const PasswordResetRequest = new PasswordResetRequest$Type();
424
319
  // @generated message type with reflection information, may provide speed optimized methods
425
- class PasswordChangeRequest$Type extends MessageType<PasswordChangeRequest> {
320
+ class PasswordChangeRequest$Type extends MessageType {
426
321
  constructor() {
427
322
  super("snowballr.PasswordChangeRequest", [
428
323
  { no: 1, name: "old_password", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
429
324
  { no: 2, name: "new_password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
430
325
  ]);
431
326
  }
432
- create(value?: PartialMessage<PasswordChangeRequest>): PasswordChangeRequest {
433
- const message = globalThis.Object.create((this.messagePrototype!));
327
+ create(value) {
328
+ const message = globalThis.Object.create((this.messagePrototype));
434
329
  message.oldPassword = "";
435
330
  message.newPassword = "";
436
331
  if (value !== undefined)
437
- reflectionMergePartial<PasswordChangeRequest>(this, message, value);
332
+ reflectionMergePartial(this, message, value);
438
333
  return message;
439
334
  }
440
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordChangeRequest): PasswordChangeRequest {
335
+ internalBinaryRead(reader, length, options, target) {
441
336
  let message = target ?? this.create(), end = reader.pos + length;
442
337
  while (reader.pos < end) {
443
338
  let [fieldNo, wireType] = reader.tag();
@@ -459,7 +354,7 @@ class PasswordChangeRequest$Type extends MessageType<PasswordChangeRequest> {
459
354
  }
460
355
  return message;
461
356
  }
462
- internalBinaryWrite(message: PasswordChangeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
357
+ internalBinaryWrite(message, writer, options) {
463
358
  /* string old_password = 1; */
464
359
  if (message.oldPassword !== "")
465
360
  writer.tag(1, WireType.LengthDelimited).string(message.oldPassword);
@@ -477,20 +372,20 @@ class PasswordChangeRequest$Type extends MessageType<PasswordChangeRequest> {
477
372
  */
478
373
  export const PasswordChangeRequest = new PasswordChangeRequest$Type();
479
374
  // @generated message type with reflection information, may provide speed optimized methods
480
- class AuthenticationStatusResponse$Type extends MessageType<AuthenticationStatusResponse> {
375
+ class AuthenticationStatusResponse$Type extends MessageType {
481
376
  constructor() {
482
377
  super("snowballr.AuthenticationStatusResponse", [
483
378
  { no: 1, name: "authentication_status", kind: "enum", T: () => ["snowballr.AuthenticationStatus", AuthenticationStatus, "AUTHENTICATION_STATUS_"] }
484
379
  ]);
485
380
  }
486
- create(value?: PartialMessage<AuthenticationStatusResponse>): AuthenticationStatusResponse {
487
- const message = globalThis.Object.create((this.messagePrototype!));
381
+ create(value) {
382
+ const message = globalThis.Object.create((this.messagePrototype));
488
383
  message.authenticationStatus = 0;
489
384
  if (value !== undefined)
490
- reflectionMergePartial<AuthenticationStatusResponse>(this, message, value);
385
+ reflectionMergePartial(this, message, value);
491
386
  return message;
492
387
  }
493
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthenticationStatusResponse): AuthenticationStatusResponse {
388
+ internalBinaryRead(reader, length, options, target) {
494
389
  let message = target ?? this.create(), end = reader.pos + length;
495
390
  while (reader.pos < end) {
496
391
  let [fieldNo, wireType] = reader.tag();
@@ -509,7 +404,7 @@ class AuthenticationStatusResponse$Type extends MessageType<AuthenticationStatus
509
404
  }
510
405
  return message;
511
406
  }
512
- internalBinaryWrite(message: AuthenticationStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
407
+ internalBinaryWrite(message, writer, options) {
513
408
  /* snowballr.AuthenticationStatus authentication_status = 1; */
514
409
  if (message.authenticationStatus !== 0)
515
410
  writer.tag(1, WireType.Varint).int32(message.authenticationStatus);