@fivenet-app/gen 0.9.3-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +1 -0
  2. package/google/protobuf/any.ts +322 -0
  3. package/google/protobuf/descriptor.ts +3475 -0
  4. package/google/protobuf/duration.ts +231 -0
  5. package/google/protobuf/timestamp.ts +290 -0
  6. package/package.json +15 -0
  7. package/perms.ts +178 -0
  8. package/resources/accounts/accounts.ts +195 -0
  9. package/resources/accounts/oauth2.ts +230 -0
  10. package/resources/calendar/access.ts +362 -0
  11. package/resources/calendar/calendar.ts +955 -0
  12. package/resources/centrum/access.ts +380 -0
  13. package/resources/centrum/dispatches.ts +854 -0
  14. package/resources/centrum/general.ts +231 -0
  15. package/resources/centrum/settings.ts +303 -0
  16. package/resources/centrum/units.ts +620 -0
  17. package/resources/common/access/dummy.ts +309 -0
  18. package/resources/common/content/content.ts +252 -0
  19. package/resources/common/cron/cron.ts +536 -0
  20. package/resources/common/database/database.ts +306 -0
  21. package/resources/common/error.ts +79 -0
  22. package/resources/common/grpcws/grpcws.ts +615 -0
  23. package/resources/common/i18n.ts +102 -0
  24. package/resources/common/uuid.ts +68 -0
  25. package/resources/documents/access.ts +388 -0
  26. package/resources/documents/activity.ts +803 -0
  27. package/resources/documents/category.ts +132 -0
  28. package/resources/documents/comment.ts +161 -0
  29. package/resources/documents/documents.ts +1124 -0
  30. package/resources/documents/requests.ts +196 -0
  31. package/resources/documents/templates.ts +949 -0
  32. package/resources/documents/workflow.ts +349 -0
  33. package/resources/filestore/file.ts +204 -0
  34. package/resources/internet/ads.ts +257 -0
  35. package/resources/internet/domain.ts +136 -0
  36. package/resources/internet/internet.ts +344 -0
  37. package/resources/internet/page.ts +236 -0
  38. package/resources/internet/search.ts +104 -0
  39. package/resources/jobs/activity.ts +600 -0
  40. package/resources/jobs/colleagues.ts +346 -0
  41. package/resources/jobs/conduct.ts +220 -0
  42. package/resources/jobs/labels.ts +240 -0
  43. package/resources/jobs/timeclock.ts +372 -0
  44. package/resources/laws/laws.ts +293 -0
  45. package/resources/livemap/livemap.ts +728 -0
  46. package/resources/livemap/tracker.ts +81 -0
  47. package/resources/mailer/access.ts +485 -0
  48. package/resources/mailer/email.ts +222 -0
  49. package/resources/mailer/events.ts +196 -0
  50. package/resources/mailer/message.ts +285 -0
  51. package/resources/mailer/settings.ts +95 -0
  52. package/resources/mailer/template.ts +164 -0
  53. package/resources/mailer/thread.ts +422 -0
  54. package/resources/mailer/user.ts +93 -0
  55. package/resources/notifications/events.ts +287 -0
  56. package/resources/notifications/notifications.ts +444 -0
  57. package/resources/permissions/permissions.ts +829 -0
  58. package/resources/qualifications/access.ts +275 -0
  59. package/resources/qualifications/exam.ts +1421 -0
  60. package/resources/qualifications/qualifications.ts +1289 -0
  61. package/resources/rector/audit.ts +226 -0
  62. package/resources/rector/config.ts +922 -0
  63. package/resources/stats/stats.ts +67 -0
  64. package/resources/sync/activity.ts +356 -0
  65. package/resources/sync/data.ts +455 -0
  66. package/resources/timestamp/timestamp.ts +78 -0
  67. package/resources/users/activity.ts +211 -0
  68. package/resources/users/job_props.ts +992 -0
  69. package/resources/users/jobs.ts +171 -0
  70. package/resources/users/labels.ts +161 -0
  71. package/resources/users/props.ts +207 -0
  72. package/resources/users/users.ts +570 -0
  73. package/resources/vehicles/vehicles.ts +114 -0
  74. package/resources/wiki/access.ts +362 -0
  75. package/resources/wiki/activity.ts +591 -0
  76. package/resources/wiki/page.ts +548 -0
  77. package/services/auth/auth.client.ts +171 -0
  78. package/services/auth/auth.ts +1331 -0
  79. package/services/calendar/calendar.client.ts +262 -0
  80. package/services/calendar/calendar.ts +1733 -0
  81. package/services/centrum/centrum.client.ts +365 -0
  82. package/services/centrum/centrum.ts +2619 -0
  83. package/services/citizenstore/citizenstore.client.ts +126 -0
  84. package/services/citizenstore/citizenstore.ts +847 -0
  85. package/services/completor/completor.client.ts +109 -0
  86. package/services/completor/completor.ts +616 -0
  87. package/services/dmv/vehicles.client.ts +41 -0
  88. package/services/dmv/vehicles.ts +191 -0
  89. package/services/docstore/docstore.client.ts +653 -0
  90. package/services/docstore/docstore.ts +4571 -0
  91. package/services/internet/ads.client.ts +41 -0
  92. package/services/internet/ads.ts +145 -0
  93. package/services/internet/internet.client.ts +58 -0
  94. package/services/internet/internet.ts +257 -0
  95. package/services/jobs/conduct.client.ts +92 -0
  96. package/services/jobs/conduct.ts +541 -0
  97. package/services/jobs/jobs.client.ts +194 -0
  98. package/services/jobs/jobs.ts +1301 -0
  99. package/services/jobs/timeclock.client.ts +75 -0
  100. package/services/jobs/timeclock.ts +808 -0
  101. package/services/livemapper/livemap.client.ts +76 -0
  102. package/services/livemapper/livemap.ts +552 -0
  103. package/services/mailer/mailer.client.ts +381 -0
  104. package/services/mailer/mailer.ts +2590 -0
  105. package/services/notificator/notificator.client.ts +76 -0
  106. package/services/notificator/notificator.ts +510 -0
  107. package/services/qualifications/qualifications.client.ts +279 -0
  108. package/services/qualifications/qualifications.ts +2142 -0
  109. package/services/rector/config.client.ts +58 -0
  110. package/services/rector/config.ts +216 -0
  111. package/services/rector/filestore.client.ts +75 -0
  112. package/services/rector/filestore.ts +378 -0
  113. package/services/rector/laws.client.ts +92 -0
  114. package/services/rector/laws.ts +416 -0
  115. package/services/rector/rector.client.ts +211 -0
  116. package/services/rector/rector.ts +1540 -0
  117. package/services/stats/stats.client.ts +37 -0
  118. package/services/stats/stats.ts +128 -0
  119. package/services/sync/sync.client.ts +110 -0
  120. package/services/sync/sync.ts +831 -0
  121. package/services/wiki/wiki.client.ts +126 -0
  122. package/services/wiki/wiki.ts +749 -0
  123. package/svcs.ts +307 -0
@@ -0,0 +1,1331 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "services/auth/auth.proto" (package "services.auth", syntax proto3)
3
+ // @ts-nocheck
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ import { User } from "../../resources/users/users";
15
+ import { JobProps } from "../../resources/users/job_props";
16
+ import { Character } from "../../resources/accounts/accounts";
17
+ import { OAuth2Account } from "../../resources/accounts/oauth2";
18
+ import { OAuth2Provider } from "../../resources/accounts/oauth2";
19
+ import { Account } from "../../resources/accounts/accounts";
20
+ import { Timestamp } from "../../resources/timestamp/timestamp";
21
+ /**
22
+ * @generated from protobuf message services.auth.CreateAccountRequest
23
+ */
24
+ export interface CreateAccountRequest {
25
+ /**
26
+ * @generated from protobuf field: string reg_token = 1;
27
+ */
28
+ regToken: string;
29
+ /**
30
+ * @generated from protobuf field: string username = 2;
31
+ */
32
+ username: string;
33
+ /**
34
+ * @generated from protobuf field: string password = 3;
35
+ */
36
+ password: string;
37
+ }
38
+ /**
39
+ * @generated from protobuf message services.auth.CreateAccountResponse
40
+ */
41
+ export interface CreateAccountResponse {
42
+ /**
43
+ * @generated from protobuf field: uint64 account_id = 1 [jstype = JS_STRING];
44
+ */
45
+ accountId: string;
46
+ }
47
+ /**
48
+ * @generated from protobuf message services.auth.LoginRequest
49
+ */
50
+ export interface LoginRequest {
51
+ /**
52
+ * @generated from protobuf field: string username = 1;
53
+ */
54
+ username: string;
55
+ /**
56
+ * @generated from protobuf field: string password = 2;
57
+ */
58
+ password: string;
59
+ }
60
+ /**
61
+ * @generated from protobuf message services.auth.LoginResponse
62
+ */
63
+ export interface LoginResponse {
64
+ /**
65
+ * @generated from protobuf field: resources.timestamp.Timestamp expires = 1;
66
+ */
67
+ expires?: Timestamp;
68
+ /**
69
+ * @generated from protobuf field: uint64 account_id = 2 [jstype = JS_STRING];
70
+ */
71
+ accountId: string;
72
+ /**
73
+ * @generated from protobuf field: optional services.auth.ChooseCharacterResponse char = 3;
74
+ */
75
+ char?: ChooseCharacterResponse;
76
+ }
77
+ /**
78
+ * @generated from protobuf message services.auth.ChangePasswordRequest
79
+ */
80
+ export interface ChangePasswordRequest {
81
+ /**
82
+ * @generated from protobuf field: string current = 1;
83
+ */
84
+ current: string;
85
+ /**
86
+ * @generated from protobuf field: string new = 2;
87
+ */
88
+ new: string;
89
+ }
90
+ /**
91
+ * @generated from protobuf message services.auth.ChangePasswordResponse
92
+ */
93
+ export interface ChangePasswordResponse {
94
+ /**
95
+ * @generated from protobuf field: resources.timestamp.Timestamp expires = 1;
96
+ */
97
+ expires?: Timestamp;
98
+ }
99
+ /**
100
+ * @generated from protobuf message services.auth.ChangeUsernameRequest
101
+ */
102
+ export interface ChangeUsernameRequest {
103
+ /**
104
+ * @generated from protobuf field: string current = 1;
105
+ */
106
+ current: string;
107
+ /**
108
+ * @generated from protobuf field: string new = 2;
109
+ */
110
+ new: string;
111
+ }
112
+ /**
113
+ * @generated from protobuf message services.auth.ChangeUsernameResponse
114
+ */
115
+ export interface ChangeUsernameResponse {
116
+ }
117
+ /**
118
+ * @generated from protobuf message services.auth.ForgotPasswordRequest
119
+ */
120
+ export interface ForgotPasswordRequest {
121
+ /**
122
+ * @generated from protobuf field: string reg_token = 1;
123
+ */
124
+ regToken: string;
125
+ /**
126
+ * @generated from protobuf field: string new = 2;
127
+ */
128
+ new: string;
129
+ }
130
+ /**
131
+ * @generated from protobuf message services.auth.ForgotPasswordResponse
132
+ */
133
+ export interface ForgotPasswordResponse {
134
+ }
135
+ /**
136
+ * @generated from protobuf message services.auth.GetAccountInfoRequest
137
+ */
138
+ export interface GetAccountInfoRequest {
139
+ }
140
+ /**
141
+ * @generated from protobuf message services.auth.GetAccountInfoResponse
142
+ */
143
+ export interface GetAccountInfoResponse {
144
+ /**
145
+ * @generated from protobuf field: resources.accounts.Account account = 1;
146
+ */
147
+ account?: Account;
148
+ /**
149
+ * @generated from protobuf field: repeated resources.accounts.OAuth2Provider oauth2_providers = 2;
150
+ */
151
+ oauth2Providers: OAuth2Provider[];
152
+ /**
153
+ * @generated from protobuf field: repeated resources.accounts.OAuth2Account oauth2_connections = 3;
154
+ */
155
+ oauth2Connections: OAuth2Account[];
156
+ }
157
+ /**
158
+ * @generated from protobuf message services.auth.GetCharactersRequest
159
+ */
160
+ export interface GetCharactersRequest {
161
+ }
162
+ /**
163
+ * @generated from protobuf message services.auth.GetCharactersResponse
164
+ */
165
+ export interface GetCharactersResponse {
166
+ /**
167
+ * @generated from protobuf field: repeated resources.accounts.Character chars = 1;
168
+ */
169
+ chars: Character[];
170
+ }
171
+ /**
172
+ * @generated from protobuf message services.auth.ChooseCharacterRequest
173
+ */
174
+ export interface ChooseCharacterRequest {
175
+ /**
176
+ * @generated from protobuf field: int32 char_id = 1;
177
+ */
178
+ charId: number;
179
+ }
180
+ /**
181
+ * @generated from protobuf message services.auth.ChooseCharacterResponse
182
+ */
183
+ export interface ChooseCharacterResponse {
184
+ /**
185
+ * @generated from protobuf field: resources.timestamp.Timestamp expires = 1;
186
+ */
187
+ expires?: Timestamp;
188
+ /**
189
+ * @generated from protobuf field: repeated string permissions = 2;
190
+ */
191
+ permissions: string[];
192
+ /**
193
+ * @generated from protobuf field: resources.users.JobProps job_props = 3;
194
+ */
195
+ jobProps?: JobProps;
196
+ /**
197
+ * @generated from protobuf field: resources.users.User char = 4;
198
+ */
199
+ char?: User; // @gotags: alias:"user"
200
+ /**
201
+ * @generated from protobuf field: string username = 5;
202
+ */
203
+ username: string;
204
+ }
205
+ /**
206
+ * @generated from protobuf message services.auth.LogoutRequest
207
+ */
208
+ export interface LogoutRequest {
209
+ }
210
+ /**
211
+ * @generated from protobuf message services.auth.LogoutResponse
212
+ */
213
+ export interface LogoutResponse {
214
+ /**
215
+ * @generated from protobuf field: bool success = 1;
216
+ */
217
+ success: boolean;
218
+ }
219
+ /**
220
+ * @generated from protobuf message services.auth.DeleteOAuth2ConnectionRequest
221
+ */
222
+ export interface DeleteOAuth2ConnectionRequest {
223
+ /**
224
+ * @generated from protobuf field: string provider = 1;
225
+ */
226
+ provider: string;
227
+ }
228
+ /**
229
+ * @generated from protobuf message services.auth.DeleteOAuth2ConnectionResponse
230
+ */
231
+ export interface DeleteOAuth2ConnectionResponse {
232
+ /**
233
+ * @generated from protobuf field: bool success = 1;
234
+ */
235
+ success: boolean;
236
+ }
237
+ /**
238
+ * @generated from protobuf message services.auth.SetSuperUserModeRequest
239
+ */
240
+ export interface SetSuperUserModeRequest {
241
+ /**
242
+ * @generated from protobuf field: bool superuser = 1;
243
+ */
244
+ superuser: boolean;
245
+ /**
246
+ * @generated from protobuf field: optional string job = 2;
247
+ */
248
+ job?: string;
249
+ }
250
+ /**
251
+ * @generated from protobuf message services.auth.SetSuperUserModeResponse
252
+ */
253
+ export interface SetSuperUserModeResponse {
254
+ /**
255
+ * @generated from protobuf field: resources.timestamp.Timestamp expires = 1;
256
+ */
257
+ expires?: Timestamp;
258
+ /**
259
+ * @generated from protobuf field: optional resources.users.JobProps job_props = 2;
260
+ */
261
+ jobProps?: JobProps;
262
+ /**
263
+ * @generated from protobuf field: resources.users.User char = 3;
264
+ */
265
+ char?: User;
266
+ }
267
+ // @generated message type with reflection information, may provide speed optimized methods
268
+ class CreateAccountRequest$Type extends MessageType<CreateAccountRequest> {
269
+ constructor() {
270
+ super("services.auth.CreateAccountRequest", [
271
+ { no: 1, name: "reg_token", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "6", pattern: "^[0-9]{6}$" } } } },
272
+ { no: 2, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "24", pattern: "(?i)^[0-9A-Z\u00C4\u00D6\u00DC\u00DF_-]{3,24}$" } } } },
273
+ { no: 3, name: "password", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "6", maxBytes: "70" } } } }
274
+ ]);
275
+ }
276
+ create(value?: PartialMessage<CreateAccountRequest>): CreateAccountRequest {
277
+ const message = globalThis.Object.create((this.messagePrototype!));
278
+ message.regToken = "";
279
+ message.username = "";
280
+ message.password = "";
281
+ if (value !== undefined)
282
+ reflectionMergePartial<CreateAccountRequest>(this, message, value);
283
+ return message;
284
+ }
285
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountRequest): CreateAccountRequest {
286
+ let message = target ?? this.create(), end = reader.pos + length;
287
+ while (reader.pos < end) {
288
+ let [fieldNo, wireType] = reader.tag();
289
+ switch (fieldNo) {
290
+ case /* string reg_token */ 1:
291
+ message.regToken = reader.string();
292
+ break;
293
+ case /* string username */ 2:
294
+ message.username = reader.string();
295
+ break;
296
+ case /* string password */ 3:
297
+ message.password = reader.string();
298
+ break;
299
+ default:
300
+ let u = options.readUnknownField;
301
+ if (u === "throw")
302
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
303
+ let d = reader.skip(wireType);
304
+ if (u !== false)
305
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
306
+ }
307
+ }
308
+ return message;
309
+ }
310
+ internalBinaryWrite(message: CreateAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
311
+ /* string reg_token = 1; */
312
+ if (message.regToken !== "")
313
+ writer.tag(1, WireType.LengthDelimited).string(message.regToken);
314
+ /* string username = 2; */
315
+ if (message.username !== "")
316
+ writer.tag(2, WireType.LengthDelimited).string(message.username);
317
+ /* string password = 3; */
318
+ if (message.password !== "")
319
+ writer.tag(3, WireType.LengthDelimited).string(message.password);
320
+ let u = options.writeUnknownFields;
321
+ if (u !== false)
322
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
323
+ return writer;
324
+ }
325
+ }
326
+ /**
327
+ * @generated MessageType for protobuf message services.auth.CreateAccountRequest
328
+ */
329
+ export const CreateAccountRequest = new CreateAccountRequest$Type();
330
+ // @generated message type with reflection information, may provide speed optimized methods
331
+ class CreateAccountResponse$Type extends MessageType<CreateAccountResponse> {
332
+ constructor() {
333
+ super("services.auth.CreateAccountResponse", [
334
+ { no: 1, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
335
+ ]);
336
+ }
337
+ create(value?: PartialMessage<CreateAccountResponse>): CreateAccountResponse {
338
+ const message = globalThis.Object.create((this.messagePrototype!));
339
+ message.accountId = "0";
340
+ if (value !== undefined)
341
+ reflectionMergePartial<CreateAccountResponse>(this, message, value);
342
+ return message;
343
+ }
344
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountResponse): CreateAccountResponse {
345
+ let message = target ?? this.create(), end = reader.pos + length;
346
+ while (reader.pos < end) {
347
+ let [fieldNo, wireType] = reader.tag();
348
+ switch (fieldNo) {
349
+ case /* uint64 account_id = 1 [jstype = JS_STRING];*/ 1:
350
+ message.accountId = reader.uint64().toString();
351
+ break;
352
+ default:
353
+ let u = options.readUnknownField;
354
+ if (u === "throw")
355
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
356
+ let d = reader.skip(wireType);
357
+ if (u !== false)
358
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
359
+ }
360
+ }
361
+ return message;
362
+ }
363
+ internalBinaryWrite(message: CreateAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
364
+ /* uint64 account_id = 1 [jstype = JS_STRING]; */
365
+ if (message.accountId !== "0")
366
+ writer.tag(1, WireType.Varint).uint64(message.accountId);
367
+ let u = options.writeUnknownFields;
368
+ if (u !== false)
369
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
370
+ return writer;
371
+ }
372
+ }
373
+ /**
374
+ * @generated MessageType for protobuf message services.auth.CreateAccountResponse
375
+ */
376
+ export const CreateAccountResponse = new CreateAccountResponse$Type();
377
+ // @generated message type with reflection information, may provide speed optimized methods
378
+ class LoginRequest$Type extends MessageType<LoginRequest> {
379
+ constructor() {
380
+ super("services.auth.LoginRequest", [
381
+ { no: 1, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "24", pattern: "(?i)^[0-9A-Z\u00C4\u00D6\u00DC\u00DF_-]{3,24}$" } } } },
382
+ { no: 2, name: "password", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "6", maxBytes: "70" } } } }
383
+ ]);
384
+ }
385
+ create(value?: PartialMessage<LoginRequest>): LoginRequest {
386
+ const message = globalThis.Object.create((this.messagePrototype!));
387
+ message.username = "";
388
+ message.password = "";
389
+ if (value !== undefined)
390
+ reflectionMergePartial<LoginRequest>(this, message, value);
391
+ return message;
392
+ }
393
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginRequest): LoginRequest {
394
+ let message = target ?? this.create(), end = reader.pos + length;
395
+ while (reader.pos < end) {
396
+ let [fieldNo, wireType] = reader.tag();
397
+ switch (fieldNo) {
398
+ case /* string username */ 1:
399
+ message.username = reader.string();
400
+ break;
401
+ case /* string password */ 2:
402
+ message.password = reader.string();
403
+ break;
404
+ default:
405
+ let u = options.readUnknownField;
406
+ if (u === "throw")
407
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
408
+ let d = reader.skip(wireType);
409
+ if (u !== false)
410
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
411
+ }
412
+ }
413
+ return message;
414
+ }
415
+ internalBinaryWrite(message: LoginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
416
+ /* string username = 1; */
417
+ if (message.username !== "")
418
+ writer.tag(1, WireType.LengthDelimited).string(message.username);
419
+ /* string password = 2; */
420
+ if (message.password !== "")
421
+ writer.tag(2, WireType.LengthDelimited).string(message.password);
422
+ let u = options.writeUnknownFields;
423
+ if (u !== false)
424
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
425
+ return writer;
426
+ }
427
+ }
428
+ /**
429
+ * @generated MessageType for protobuf message services.auth.LoginRequest
430
+ */
431
+ export const LoginRequest = new LoginRequest$Type();
432
+ // @generated message type with reflection information, may provide speed optimized methods
433
+ class LoginResponse$Type extends MessageType<LoginResponse> {
434
+ constructor() {
435
+ super("services.auth.LoginResponse", [
436
+ { no: 1, name: "expires", kind: "message", T: () => Timestamp },
437
+ { no: 2, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
438
+ { no: 3, name: "char", kind: "message", T: () => ChooseCharacterResponse }
439
+ ]);
440
+ }
441
+ create(value?: PartialMessage<LoginResponse>): LoginResponse {
442
+ const message = globalThis.Object.create((this.messagePrototype!));
443
+ message.accountId = "0";
444
+ if (value !== undefined)
445
+ reflectionMergePartial<LoginResponse>(this, message, value);
446
+ return message;
447
+ }
448
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginResponse): LoginResponse {
449
+ let message = target ?? this.create(), end = reader.pos + length;
450
+ while (reader.pos < end) {
451
+ let [fieldNo, wireType] = reader.tag();
452
+ switch (fieldNo) {
453
+ case /* resources.timestamp.Timestamp expires */ 1:
454
+ message.expires = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expires);
455
+ break;
456
+ case /* uint64 account_id = 2 [jstype = JS_STRING];*/ 2:
457
+ message.accountId = reader.uint64().toString();
458
+ break;
459
+ case /* optional services.auth.ChooseCharacterResponse char */ 3:
460
+ message.char = ChooseCharacterResponse.internalBinaryRead(reader, reader.uint32(), options, message.char);
461
+ break;
462
+ default:
463
+ let u = options.readUnknownField;
464
+ if (u === "throw")
465
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
466
+ let d = reader.skip(wireType);
467
+ if (u !== false)
468
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
469
+ }
470
+ }
471
+ return message;
472
+ }
473
+ internalBinaryWrite(message: LoginResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
474
+ /* resources.timestamp.Timestamp expires = 1; */
475
+ if (message.expires)
476
+ Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
477
+ /* uint64 account_id = 2 [jstype = JS_STRING]; */
478
+ if (message.accountId !== "0")
479
+ writer.tag(2, WireType.Varint).uint64(message.accountId);
480
+ /* optional services.auth.ChooseCharacterResponse char = 3; */
481
+ if (message.char)
482
+ ChooseCharacterResponse.internalBinaryWrite(message.char, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
483
+ let u = options.writeUnknownFields;
484
+ if (u !== false)
485
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
486
+ return writer;
487
+ }
488
+ }
489
+ /**
490
+ * @generated MessageType for protobuf message services.auth.LoginResponse
491
+ */
492
+ export const LoginResponse = new LoginResponse$Type();
493
+ // @generated message type with reflection information, may provide speed optimized methods
494
+ class ChangePasswordRequest$Type extends MessageType<ChangePasswordRequest> {
495
+ constructor() {
496
+ super("services.auth.ChangePasswordRequest", [
497
+ { no: 1, name: "current", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "6", maxBytes: "70" } } } },
498
+ { no: 2, name: "new", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "6", maxBytes: "70" } } } }
499
+ ]);
500
+ }
501
+ create(value?: PartialMessage<ChangePasswordRequest>): ChangePasswordRequest {
502
+ const message = globalThis.Object.create((this.messagePrototype!));
503
+ message.current = "";
504
+ message.new = "";
505
+ if (value !== undefined)
506
+ reflectionMergePartial<ChangePasswordRequest>(this, message, value);
507
+ return message;
508
+ }
509
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChangePasswordRequest): ChangePasswordRequest {
510
+ let message = target ?? this.create(), end = reader.pos + length;
511
+ while (reader.pos < end) {
512
+ let [fieldNo, wireType] = reader.tag();
513
+ switch (fieldNo) {
514
+ case /* string current */ 1:
515
+ message.current = reader.string();
516
+ break;
517
+ case /* string new */ 2:
518
+ message.new = reader.string();
519
+ break;
520
+ default:
521
+ let u = options.readUnknownField;
522
+ if (u === "throw")
523
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
524
+ let d = reader.skip(wireType);
525
+ if (u !== false)
526
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
527
+ }
528
+ }
529
+ return message;
530
+ }
531
+ internalBinaryWrite(message: ChangePasswordRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
532
+ /* string current = 1; */
533
+ if (message.current !== "")
534
+ writer.tag(1, WireType.LengthDelimited).string(message.current);
535
+ /* string new = 2; */
536
+ if (message.new !== "")
537
+ writer.tag(2, WireType.LengthDelimited).string(message.new);
538
+ let u = options.writeUnknownFields;
539
+ if (u !== false)
540
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
541
+ return writer;
542
+ }
543
+ }
544
+ /**
545
+ * @generated MessageType for protobuf message services.auth.ChangePasswordRequest
546
+ */
547
+ export const ChangePasswordRequest = new ChangePasswordRequest$Type();
548
+ // @generated message type with reflection information, may provide speed optimized methods
549
+ class ChangePasswordResponse$Type extends MessageType<ChangePasswordResponse> {
550
+ constructor() {
551
+ super("services.auth.ChangePasswordResponse", [
552
+ { no: 1, name: "expires", kind: "message", T: () => Timestamp }
553
+ ]);
554
+ }
555
+ create(value?: PartialMessage<ChangePasswordResponse>): ChangePasswordResponse {
556
+ const message = globalThis.Object.create((this.messagePrototype!));
557
+ if (value !== undefined)
558
+ reflectionMergePartial<ChangePasswordResponse>(this, message, value);
559
+ return message;
560
+ }
561
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChangePasswordResponse): ChangePasswordResponse {
562
+ let message = target ?? this.create(), end = reader.pos + length;
563
+ while (reader.pos < end) {
564
+ let [fieldNo, wireType] = reader.tag();
565
+ switch (fieldNo) {
566
+ case /* resources.timestamp.Timestamp expires */ 1:
567
+ message.expires = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expires);
568
+ break;
569
+ default:
570
+ let u = options.readUnknownField;
571
+ if (u === "throw")
572
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
573
+ let d = reader.skip(wireType);
574
+ if (u !== false)
575
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
576
+ }
577
+ }
578
+ return message;
579
+ }
580
+ internalBinaryWrite(message: ChangePasswordResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
581
+ /* resources.timestamp.Timestamp expires = 1; */
582
+ if (message.expires)
583
+ Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
584
+ let u = options.writeUnknownFields;
585
+ if (u !== false)
586
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
587
+ return writer;
588
+ }
589
+ }
590
+ /**
591
+ * @generated MessageType for protobuf message services.auth.ChangePasswordResponse
592
+ */
593
+ export const ChangePasswordResponse = new ChangePasswordResponse$Type();
594
+ // @generated message type with reflection information, may provide speed optimized methods
595
+ class ChangeUsernameRequest$Type extends MessageType<ChangeUsernameRequest> {
596
+ constructor() {
597
+ super("services.auth.ChangeUsernameRequest", [
598
+ { no: 1, name: "current", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "24", pattern: "(?i)^[0-9A-Z\u00C4\u00D6\u00DC\u00DF_-]{3,24}$" } } } },
599
+ { no: 2, name: "new", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "24", pattern: "(?i)^[0-9A-Z\u00C4\u00D6\u00DC\u00DF_-]{3,24}$" } } } }
600
+ ]);
601
+ }
602
+ create(value?: PartialMessage<ChangeUsernameRequest>): ChangeUsernameRequest {
603
+ const message = globalThis.Object.create((this.messagePrototype!));
604
+ message.current = "";
605
+ message.new = "";
606
+ if (value !== undefined)
607
+ reflectionMergePartial<ChangeUsernameRequest>(this, message, value);
608
+ return message;
609
+ }
610
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChangeUsernameRequest): ChangeUsernameRequest {
611
+ let message = target ?? this.create(), end = reader.pos + length;
612
+ while (reader.pos < end) {
613
+ let [fieldNo, wireType] = reader.tag();
614
+ switch (fieldNo) {
615
+ case /* string current */ 1:
616
+ message.current = reader.string();
617
+ break;
618
+ case /* string new */ 2:
619
+ message.new = reader.string();
620
+ break;
621
+ default:
622
+ let u = options.readUnknownField;
623
+ if (u === "throw")
624
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
625
+ let d = reader.skip(wireType);
626
+ if (u !== false)
627
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
628
+ }
629
+ }
630
+ return message;
631
+ }
632
+ internalBinaryWrite(message: ChangeUsernameRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
633
+ /* string current = 1; */
634
+ if (message.current !== "")
635
+ writer.tag(1, WireType.LengthDelimited).string(message.current);
636
+ /* string new = 2; */
637
+ if (message.new !== "")
638
+ writer.tag(2, WireType.LengthDelimited).string(message.new);
639
+ let u = options.writeUnknownFields;
640
+ if (u !== false)
641
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
642
+ return writer;
643
+ }
644
+ }
645
+ /**
646
+ * @generated MessageType for protobuf message services.auth.ChangeUsernameRequest
647
+ */
648
+ export const ChangeUsernameRequest = new ChangeUsernameRequest$Type();
649
+ // @generated message type with reflection information, may provide speed optimized methods
650
+ class ChangeUsernameResponse$Type extends MessageType<ChangeUsernameResponse> {
651
+ constructor() {
652
+ super("services.auth.ChangeUsernameResponse", []);
653
+ }
654
+ create(value?: PartialMessage<ChangeUsernameResponse>): ChangeUsernameResponse {
655
+ const message = globalThis.Object.create((this.messagePrototype!));
656
+ if (value !== undefined)
657
+ reflectionMergePartial<ChangeUsernameResponse>(this, message, value);
658
+ return message;
659
+ }
660
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChangeUsernameResponse): ChangeUsernameResponse {
661
+ return target ?? this.create();
662
+ }
663
+ internalBinaryWrite(message: ChangeUsernameResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
664
+ let u = options.writeUnknownFields;
665
+ if (u !== false)
666
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
667
+ return writer;
668
+ }
669
+ }
670
+ /**
671
+ * @generated MessageType for protobuf message services.auth.ChangeUsernameResponse
672
+ */
673
+ export const ChangeUsernameResponse = new ChangeUsernameResponse$Type();
674
+ // @generated message type with reflection information, may provide speed optimized methods
675
+ class ForgotPasswordRequest$Type extends MessageType<ForgotPasswordRequest> {
676
+ constructor() {
677
+ super("services.auth.ForgotPasswordRequest", [
678
+ { no: 1, name: "reg_token", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "6", pattern: "^[0-9]{6}$" } } } },
679
+ { no: 2, name: "new", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "6", maxBytes: "70" } } } }
680
+ ]);
681
+ }
682
+ create(value?: PartialMessage<ForgotPasswordRequest>): ForgotPasswordRequest {
683
+ const message = globalThis.Object.create((this.messagePrototype!));
684
+ message.regToken = "";
685
+ message.new = "";
686
+ if (value !== undefined)
687
+ reflectionMergePartial<ForgotPasswordRequest>(this, message, value);
688
+ return message;
689
+ }
690
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForgotPasswordRequest): ForgotPasswordRequest {
691
+ let message = target ?? this.create(), end = reader.pos + length;
692
+ while (reader.pos < end) {
693
+ let [fieldNo, wireType] = reader.tag();
694
+ switch (fieldNo) {
695
+ case /* string reg_token */ 1:
696
+ message.regToken = reader.string();
697
+ break;
698
+ case /* string new */ 2:
699
+ message.new = reader.string();
700
+ break;
701
+ default:
702
+ let u = options.readUnknownField;
703
+ if (u === "throw")
704
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
705
+ let d = reader.skip(wireType);
706
+ if (u !== false)
707
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
708
+ }
709
+ }
710
+ return message;
711
+ }
712
+ internalBinaryWrite(message: ForgotPasswordRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
713
+ /* string reg_token = 1; */
714
+ if (message.regToken !== "")
715
+ writer.tag(1, WireType.LengthDelimited).string(message.regToken);
716
+ /* string new = 2; */
717
+ if (message.new !== "")
718
+ writer.tag(2, WireType.LengthDelimited).string(message.new);
719
+ let u = options.writeUnknownFields;
720
+ if (u !== false)
721
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
722
+ return writer;
723
+ }
724
+ }
725
+ /**
726
+ * @generated MessageType for protobuf message services.auth.ForgotPasswordRequest
727
+ */
728
+ export const ForgotPasswordRequest = new ForgotPasswordRequest$Type();
729
+ // @generated message type with reflection information, may provide speed optimized methods
730
+ class ForgotPasswordResponse$Type extends MessageType<ForgotPasswordResponse> {
731
+ constructor() {
732
+ super("services.auth.ForgotPasswordResponse", []);
733
+ }
734
+ create(value?: PartialMessage<ForgotPasswordResponse>): ForgotPasswordResponse {
735
+ const message = globalThis.Object.create((this.messagePrototype!));
736
+ if (value !== undefined)
737
+ reflectionMergePartial<ForgotPasswordResponse>(this, message, value);
738
+ return message;
739
+ }
740
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForgotPasswordResponse): ForgotPasswordResponse {
741
+ return target ?? this.create();
742
+ }
743
+ internalBinaryWrite(message: ForgotPasswordResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
744
+ let u = options.writeUnknownFields;
745
+ if (u !== false)
746
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
747
+ return writer;
748
+ }
749
+ }
750
+ /**
751
+ * @generated MessageType for protobuf message services.auth.ForgotPasswordResponse
752
+ */
753
+ export const ForgotPasswordResponse = new ForgotPasswordResponse$Type();
754
+ // @generated message type with reflection information, may provide speed optimized methods
755
+ class GetAccountInfoRequest$Type extends MessageType<GetAccountInfoRequest> {
756
+ constructor() {
757
+ super("services.auth.GetAccountInfoRequest", []);
758
+ }
759
+ create(value?: PartialMessage<GetAccountInfoRequest>): GetAccountInfoRequest {
760
+ const message = globalThis.Object.create((this.messagePrototype!));
761
+ if (value !== undefined)
762
+ reflectionMergePartial<GetAccountInfoRequest>(this, message, value);
763
+ return message;
764
+ }
765
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountInfoRequest): GetAccountInfoRequest {
766
+ return target ?? this.create();
767
+ }
768
+ internalBinaryWrite(message: GetAccountInfoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
769
+ let u = options.writeUnknownFields;
770
+ if (u !== false)
771
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
772
+ return writer;
773
+ }
774
+ }
775
+ /**
776
+ * @generated MessageType for protobuf message services.auth.GetAccountInfoRequest
777
+ */
778
+ export const GetAccountInfoRequest = new GetAccountInfoRequest$Type();
779
+ // @generated message type with reflection information, may provide speed optimized methods
780
+ class GetAccountInfoResponse$Type extends MessageType<GetAccountInfoResponse> {
781
+ constructor() {
782
+ super("services.auth.GetAccountInfoResponse", [
783
+ { no: 1, name: "account", kind: "message", T: () => Account },
784
+ { no: 2, name: "oauth2_providers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => OAuth2Provider },
785
+ { no: 3, name: "oauth2_connections", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => OAuth2Account }
786
+ ]);
787
+ }
788
+ create(value?: PartialMessage<GetAccountInfoResponse>): GetAccountInfoResponse {
789
+ const message = globalThis.Object.create((this.messagePrototype!));
790
+ message.oauth2Providers = [];
791
+ message.oauth2Connections = [];
792
+ if (value !== undefined)
793
+ reflectionMergePartial<GetAccountInfoResponse>(this, message, value);
794
+ return message;
795
+ }
796
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountInfoResponse): GetAccountInfoResponse {
797
+ let message = target ?? this.create(), end = reader.pos + length;
798
+ while (reader.pos < end) {
799
+ let [fieldNo, wireType] = reader.tag();
800
+ switch (fieldNo) {
801
+ case /* resources.accounts.Account account */ 1:
802
+ message.account = Account.internalBinaryRead(reader, reader.uint32(), options, message.account);
803
+ break;
804
+ case /* repeated resources.accounts.OAuth2Provider oauth2_providers */ 2:
805
+ message.oauth2Providers.push(OAuth2Provider.internalBinaryRead(reader, reader.uint32(), options));
806
+ break;
807
+ case /* repeated resources.accounts.OAuth2Account oauth2_connections */ 3:
808
+ message.oauth2Connections.push(OAuth2Account.internalBinaryRead(reader, reader.uint32(), options));
809
+ break;
810
+ default:
811
+ let u = options.readUnknownField;
812
+ if (u === "throw")
813
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
814
+ let d = reader.skip(wireType);
815
+ if (u !== false)
816
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
817
+ }
818
+ }
819
+ return message;
820
+ }
821
+ internalBinaryWrite(message: GetAccountInfoResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
822
+ /* resources.accounts.Account account = 1; */
823
+ if (message.account)
824
+ Account.internalBinaryWrite(message.account, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
825
+ /* repeated resources.accounts.OAuth2Provider oauth2_providers = 2; */
826
+ for (let i = 0; i < message.oauth2Providers.length; i++)
827
+ OAuth2Provider.internalBinaryWrite(message.oauth2Providers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
828
+ /* repeated resources.accounts.OAuth2Account oauth2_connections = 3; */
829
+ for (let i = 0; i < message.oauth2Connections.length; i++)
830
+ OAuth2Account.internalBinaryWrite(message.oauth2Connections[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
831
+ let u = options.writeUnknownFields;
832
+ if (u !== false)
833
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
834
+ return writer;
835
+ }
836
+ }
837
+ /**
838
+ * @generated MessageType for protobuf message services.auth.GetAccountInfoResponse
839
+ */
840
+ export const GetAccountInfoResponse = new GetAccountInfoResponse$Type();
841
+ // @generated message type with reflection information, may provide speed optimized methods
842
+ class GetCharactersRequest$Type extends MessageType<GetCharactersRequest> {
843
+ constructor() {
844
+ super("services.auth.GetCharactersRequest", []);
845
+ }
846
+ create(value?: PartialMessage<GetCharactersRequest>): GetCharactersRequest {
847
+ const message = globalThis.Object.create((this.messagePrototype!));
848
+ if (value !== undefined)
849
+ reflectionMergePartial<GetCharactersRequest>(this, message, value);
850
+ return message;
851
+ }
852
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCharactersRequest): GetCharactersRequest {
853
+ return target ?? this.create();
854
+ }
855
+ internalBinaryWrite(message: GetCharactersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
856
+ let u = options.writeUnknownFields;
857
+ if (u !== false)
858
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
859
+ return writer;
860
+ }
861
+ }
862
+ /**
863
+ * @generated MessageType for protobuf message services.auth.GetCharactersRequest
864
+ */
865
+ export const GetCharactersRequest = new GetCharactersRequest$Type();
866
+ // @generated message type with reflection information, may provide speed optimized methods
867
+ class GetCharactersResponse$Type extends MessageType<GetCharactersResponse> {
868
+ constructor() {
869
+ super("services.auth.GetCharactersResponse", [
870
+ { no: 1, name: "chars", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Character }
871
+ ]);
872
+ }
873
+ create(value?: PartialMessage<GetCharactersResponse>): GetCharactersResponse {
874
+ const message = globalThis.Object.create((this.messagePrototype!));
875
+ message.chars = [];
876
+ if (value !== undefined)
877
+ reflectionMergePartial<GetCharactersResponse>(this, message, value);
878
+ return message;
879
+ }
880
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCharactersResponse): GetCharactersResponse {
881
+ let message = target ?? this.create(), end = reader.pos + length;
882
+ while (reader.pos < end) {
883
+ let [fieldNo, wireType] = reader.tag();
884
+ switch (fieldNo) {
885
+ case /* repeated resources.accounts.Character chars */ 1:
886
+ message.chars.push(Character.internalBinaryRead(reader, reader.uint32(), options));
887
+ break;
888
+ default:
889
+ let u = options.readUnknownField;
890
+ if (u === "throw")
891
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
892
+ let d = reader.skip(wireType);
893
+ if (u !== false)
894
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
895
+ }
896
+ }
897
+ return message;
898
+ }
899
+ internalBinaryWrite(message: GetCharactersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
900
+ /* repeated resources.accounts.Character chars = 1; */
901
+ for (let i = 0; i < message.chars.length; i++)
902
+ Character.internalBinaryWrite(message.chars[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
903
+ let u = options.writeUnknownFields;
904
+ if (u !== false)
905
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
906
+ return writer;
907
+ }
908
+ }
909
+ /**
910
+ * @generated MessageType for protobuf message services.auth.GetCharactersResponse
911
+ */
912
+ export const GetCharactersResponse = new GetCharactersResponse$Type();
913
+ // @generated message type with reflection information, may provide speed optimized methods
914
+ class ChooseCharacterRequest$Type extends MessageType<ChooseCharacterRequest> {
915
+ constructor() {
916
+ super("services.auth.ChooseCharacterRequest", [
917
+ { no: 1, name: "char_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } }
918
+ ]);
919
+ }
920
+ create(value?: PartialMessage<ChooseCharacterRequest>): ChooseCharacterRequest {
921
+ const message = globalThis.Object.create((this.messagePrototype!));
922
+ message.charId = 0;
923
+ if (value !== undefined)
924
+ reflectionMergePartial<ChooseCharacterRequest>(this, message, value);
925
+ return message;
926
+ }
927
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChooseCharacterRequest): ChooseCharacterRequest {
928
+ let message = target ?? this.create(), end = reader.pos + length;
929
+ while (reader.pos < end) {
930
+ let [fieldNo, wireType] = reader.tag();
931
+ switch (fieldNo) {
932
+ case /* int32 char_id */ 1:
933
+ message.charId = reader.int32();
934
+ break;
935
+ default:
936
+ let u = options.readUnknownField;
937
+ if (u === "throw")
938
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
939
+ let d = reader.skip(wireType);
940
+ if (u !== false)
941
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
942
+ }
943
+ }
944
+ return message;
945
+ }
946
+ internalBinaryWrite(message: ChooseCharacterRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
947
+ /* int32 char_id = 1; */
948
+ if (message.charId !== 0)
949
+ writer.tag(1, WireType.Varint).int32(message.charId);
950
+ let u = options.writeUnknownFields;
951
+ if (u !== false)
952
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
953
+ return writer;
954
+ }
955
+ }
956
+ /**
957
+ * @generated MessageType for protobuf message services.auth.ChooseCharacterRequest
958
+ */
959
+ export const ChooseCharacterRequest = new ChooseCharacterRequest$Type();
960
+ // @generated message type with reflection information, may provide speed optimized methods
961
+ class ChooseCharacterResponse$Type extends MessageType<ChooseCharacterResponse> {
962
+ constructor() {
963
+ super("services.auth.ChooseCharacterResponse", [
964
+ { no: 1, name: "expires", kind: "message", T: () => Timestamp },
965
+ { no: 2, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
966
+ { no: 3, name: "job_props", kind: "message", T: () => JobProps },
967
+ { no: 4, name: "char", kind: "message", T: () => User },
968
+ { no: 5, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
969
+ ]);
970
+ }
971
+ create(value?: PartialMessage<ChooseCharacterResponse>): ChooseCharacterResponse {
972
+ const message = globalThis.Object.create((this.messagePrototype!));
973
+ message.permissions = [];
974
+ message.username = "";
975
+ if (value !== undefined)
976
+ reflectionMergePartial<ChooseCharacterResponse>(this, message, value);
977
+ return message;
978
+ }
979
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChooseCharacterResponse): ChooseCharacterResponse {
980
+ let message = target ?? this.create(), end = reader.pos + length;
981
+ while (reader.pos < end) {
982
+ let [fieldNo, wireType] = reader.tag();
983
+ switch (fieldNo) {
984
+ case /* resources.timestamp.Timestamp expires */ 1:
985
+ message.expires = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expires);
986
+ break;
987
+ case /* repeated string permissions */ 2:
988
+ message.permissions.push(reader.string());
989
+ break;
990
+ case /* resources.users.JobProps job_props */ 3:
991
+ message.jobProps = JobProps.internalBinaryRead(reader, reader.uint32(), options, message.jobProps);
992
+ break;
993
+ case /* resources.users.User char */ 4:
994
+ message.char = User.internalBinaryRead(reader, reader.uint32(), options, message.char);
995
+ break;
996
+ case /* string username */ 5:
997
+ message.username = reader.string();
998
+ break;
999
+ default:
1000
+ let u = options.readUnknownField;
1001
+ if (u === "throw")
1002
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1003
+ let d = reader.skip(wireType);
1004
+ if (u !== false)
1005
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1006
+ }
1007
+ }
1008
+ return message;
1009
+ }
1010
+ internalBinaryWrite(message: ChooseCharacterResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1011
+ /* resources.timestamp.Timestamp expires = 1; */
1012
+ if (message.expires)
1013
+ Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1014
+ /* repeated string permissions = 2; */
1015
+ for (let i = 0; i < message.permissions.length; i++)
1016
+ writer.tag(2, WireType.LengthDelimited).string(message.permissions[i]);
1017
+ /* resources.users.JobProps job_props = 3; */
1018
+ if (message.jobProps)
1019
+ JobProps.internalBinaryWrite(message.jobProps, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1020
+ /* resources.users.User char = 4; */
1021
+ if (message.char)
1022
+ User.internalBinaryWrite(message.char, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1023
+ /* string username = 5; */
1024
+ if (message.username !== "")
1025
+ writer.tag(5, WireType.LengthDelimited).string(message.username);
1026
+ let u = options.writeUnknownFields;
1027
+ if (u !== false)
1028
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1029
+ return writer;
1030
+ }
1031
+ }
1032
+ /**
1033
+ * @generated MessageType for protobuf message services.auth.ChooseCharacterResponse
1034
+ */
1035
+ export const ChooseCharacterResponse = new ChooseCharacterResponse$Type();
1036
+ // @generated message type with reflection information, may provide speed optimized methods
1037
+ class LogoutRequest$Type extends MessageType<LogoutRequest> {
1038
+ constructor() {
1039
+ super("services.auth.LogoutRequest", []);
1040
+ }
1041
+ create(value?: PartialMessage<LogoutRequest>): LogoutRequest {
1042
+ const message = globalThis.Object.create((this.messagePrototype!));
1043
+ if (value !== undefined)
1044
+ reflectionMergePartial<LogoutRequest>(this, message, value);
1045
+ return message;
1046
+ }
1047
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LogoutRequest): LogoutRequest {
1048
+ return target ?? this.create();
1049
+ }
1050
+ internalBinaryWrite(message: LogoutRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1051
+ let u = options.writeUnknownFields;
1052
+ if (u !== false)
1053
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1054
+ return writer;
1055
+ }
1056
+ }
1057
+ /**
1058
+ * @generated MessageType for protobuf message services.auth.LogoutRequest
1059
+ */
1060
+ export const LogoutRequest = new LogoutRequest$Type();
1061
+ // @generated message type with reflection information, may provide speed optimized methods
1062
+ class LogoutResponse$Type extends MessageType<LogoutResponse> {
1063
+ constructor() {
1064
+ super("services.auth.LogoutResponse", [
1065
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1066
+ ]);
1067
+ }
1068
+ create(value?: PartialMessage<LogoutResponse>): LogoutResponse {
1069
+ const message = globalThis.Object.create((this.messagePrototype!));
1070
+ message.success = false;
1071
+ if (value !== undefined)
1072
+ reflectionMergePartial<LogoutResponse>(this, message, value);
1073
+ return message;
1074
+ }
1075
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LogoutResponse): LogoutResponse {
1076
+ let message = target ?? this.create(), end = reader.pos + length;
1077
+ while (reader.pos < end) {
1078
+ let [fieldNo, wireType] = reader.tag();
1079
+ switch (fieldNo) {
1080
+ case /* bool success */ 1:
1081
+ message.success = reader.bool();
1082
+ break;
1083
+ default:
1084
+ let u = options.readUnknownField;
1085
+ if (u === "throw")
1086
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1087
+ let d = reader.skip(wireType);
1088
+ if (u !== false)
1089
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1090
+ }
1091
+ }
1092
+ return message;
1093
+ }
1094
+ internalBinaryWrite(message: LogoutResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1095
+ /* bool success = 1; */
1096
+ if (message.success !== false)
1097
+ writer.tag(1, WireType.Varint).bool(message.success);
1098
+ let u = options.writeUnknownFields;
1099
+ if (u !== false)
1100
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1101
+ return writer;
1102
+ }
1103
+ }
1104
+ /**
1105
+ * @generated MessageType for protobuf message services.auth.LogoutResponse
1106
+ */
1107
+ export const LogoutResponse = new LogoutResponse$Type();
1108
+ // @generated message type with reflection information, may provide speed optimized methods
1109
+ class DeleteOAuth2ConnectionRequest$Type extends MessageType<DeleteOAuth2ConnectionRequest> {
1110
+ constructor() {
1111
+ super("services.auth.DeleteOAuth2ConnectionRequest", [
1112
+ { no: 1, name: "provider", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } }
1113
+ ]);
1114
+ }
1115
+ create(value?: PartialMessage<DeleteOAuth2ConnectionRequest>): DeleteOAuth2ConnectionRequest {
1116
+ const message = globalThis.Object.create((this.messagePrototype!));
1117
+ message.provider = "";
1118
+ if (value !== undefined)
1119
+ reflectionMergePartial<DeleteOAuth2ConnectionRequest>(this, message, value);
1120
+ return message;
1121
+ }
1122
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOAuth2ConnectionRequest): DeleteOAuth2ConnectionRequest {
1123
+ let message = target ?? this.create(), end = reader.pos + length;
1124
+ while (reader.pos < end) {
1125
+ let [fieldNo, wireType] = reader.tag();
1126
+ switch (fieldNo) {
1127
+ case /* string provider */ 1:
1128
+ message.provider = reader.string();
1129
+ break;
1130
+ default:
1131
+ let u = options.readUnknownField;
1132
+ if (u === "throw")
1133
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1134
+ let d = reader.skip(wireType);
1135
+ if (u !== false)
1136
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1137
+ }
1138
+ }
1139
+ return message;
1140
+ }
1141
+ internalBinaryWrite(message: DeleteOAuth2ConnectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1142
+ /* string provider = 1; */
1143
+ if (message.provider !== "")
1144
+ writer.tag(1, WireType.LengthDelimited).string(message.provider);
1145
+ let u = options.writeUnknownFields;
1146
+ if (u !== false)
1147
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1148
+ return writer;
1149
+ }
1150
+ }
1151
+ /**
1152
+ * @generated MessageType for protobuf message services.auth.DeleteOAuth2ConnectionRequest
1153
+ */
1154
+ export const DeleteOAuth2ConnectionRequest = new DeleteOAuth2ConnectionRequest$Type();
1155
+ // @generated message type with reflection information, may provide speed optimized methods
1156
+ class DeleteOAuth2ConnectionResponse$Type extends MessageType<DeleteOAuth2ConnectionResponse> {
1157
+ constructor() {
1158
+ super("services.auth.DeleteOAuth2ConnectionResponse", [
1159
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1160
+ ]);
1161
+ }
1162
+ create(value?: PartialMessage<DeleteOAuth2ConnectionResponse>): DeleteOAuth2ConnectionResponse {
1163
+ const message = globalThis.Object.create((this.messagePrototype!));
1164
+ message.success = false;
1165
+ if (value !== undefined)
1166
+ reflectionMergePartial<DeleteOAuth2ConnectionResponse>(this, message, value);
1167
+ return message;
1168
+ }
1169
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOAuth2ConnectionResponse): DeleteOAuth2ConnectionResponse {
1170
+ let message = target ?? this.create(), end = reader.pos + length;
1171
+ while (reader.pos < end) {
1172
+ let [fieldNo, wireType] = reader.tag();
1173
+ switch (fieldNo) {
1174
+ case /* bool success */ 1:
1175
+ message.success = reader.bool();
1176
+ break;
1177
+ default:
1178
+ let u = options.readUnknownField;
1179
+ if (u === "throw")
1180
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1181
+ let d = reader.skip(wireType);
1182
+ if (u !== false)
1183
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1184
+ }
1185
+ }
1186
+ return message;
1187
+ }
1188
+ internalBinaryWrite(message: DeleteOAuth2ConnectionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1189
+ /* bool success = 1; */
1190
+ if (message.success !== false)
1191
+ writer.tag(1, WireType.Varint).bool(message.success);
1192
+ let u = options.writeUnknownFields;
1193
+ if (u !== false)
1194
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1195
+ return writer;
1196
+ }
1197
+ }
1198
+ /**
1199
+ * @generated MessageType for protobuf message services.auth.DeleteOAuth2ConnectionResponse
1200
+ */
1201
+ export const DeleteOAuth2ConnectionResponse = new DeleteOAuth2ConnectionResponse$Type();
1202
+ // @generated message type with reflection information, may provide speed optimized methods
1203
+ class SetSuperUserModeRequest$Type extends MessageType<SetSuperUserModeRequest> {
1204
+ constructor() {
1205
+ super("services.auth.SetSuperUserModeRequest", [
1206
+ { no: 1, name: "superuser", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1207
+ { no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
1208
+ ]);
1209
+ }
1210
+ create(value?: PartialMessage<SetSuperUserModeRequest>): SetSuperUserModeRequest {
1211
+ const message = globalThis.Object.create((this.messagePrototype!));
1212
+ message.superuser = false;
1213
+ if (value !== undefined)
1214
+ reflectionMergePartial<SetSuperUserModeRequest>(this, message, value);
1215
+ return message;
1216
+ }
1217
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSuperUserModeRequest): SetSuperUserModeRequest {
1218
+ let message = target ?? this.create(), end = reader.pos + length;
1219
+ while (reader.pos < end) {
1220
+ let [fieldNo, wireType] = reader.tag();
1221
+ switch (fieldNo) {
1222
+ case /* bool superuser */ 1:
1223
+ message.superuser = reader.bool();
1224
+ break;
1225
+ case /* optional string job */ 2:
1226
+ message.job = reader.string();
1227
+ break;
1228
+ default:
1229
+ let u = options.readUnknownField;
1230
+ if (u === "throw")
1231
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1232
+ let d = reader.skip(wireType);
1233
+ if (u !== false)
1234
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1235
+ }
1236
+ }
1237
+ return message;
1238
+ }
1239
+ internalBinaryWrite(message: SetSuperUserModeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1240
+ /* bool superuser = 1; */
1241
+ if (message.superuser !== false)
1242
+ writer.tag(1, WireType.Varint).bool(message.superuser);
1243
+ /* optional string job = 2; */
1244
+ if (message.job !== undefined)
1245
+ writer.tag(2, WireType.LengthDelimited).string(message.job);
1246
+ let u = options.writeUnknownFields;
1247
+ if (u !== false)
1248
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1249
+ return writer;
1250
+ }
1251
+ }
1252
+ /**
1253
+ * @generated MessageType for protobuf message services.auth.SetSuperUserModeRequest
1254
+ */
1255
+ export const SetSuperUserModeRequest = new SetSuperUserModeRequest$Type();
1256
+ // @generated message type with reflection information, may provide speed optimized methods
1257
+ class SetSuperUserModeResponse$Type extends MessageType<SetSuperUserModeResponse> {
1258
+ constructor() {
1259
+ super("services.auth.SetSuperUserModeResponse", [
1260
+ { no: 1, name: "expires", kind: "message", T: () => Timestamp },
1261
+ { no: 2, name: "job_props", kind: "message", T: () => JobProps },
1262
+ { no: 3, name: "char", kind: "message", T: () => User }
1263
+ ]);
1264
+ }
1265
+ create(value?: PartialMessage<SetSuperUserModeResponse>): SetSuperUserModeResponse {
1266
+ const message = globalThis.Object.create((this.messagePrototype!));
1267
+ if (value !== undefined)
1268
+ reflectionMergePartial<SetSuperUserModeResponse>(this, message, value);
1269
+ return message;
1270
+ }
1271
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSuperUserModeResponse): SetSuperUserModeResponse {
1272
+ let message = target ?? this.create(), end = reader.pos + length;
1273
+ while (reader.pos < end) {
1274
+ let [fieldNo, wireType] = reader.tag();
1275
+ switch (fieldNo) {
1276
+ case /* resources.timestamp.Timestamp expires */ 1:
1277
+ message.expires = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expires);
1278
+ break;
1279
+ case /* optional resources.users.JobProps job_props */ 2:
1280
+ message.jobProps = JobProps.internalBinaryRead(reader, reader.uint32(), options, message.jobProps);
1281
+ break;
1282
+ case /* resources.users.User char */ 3:
1283
+ message.char = User.internalBinaryRead(reader, reader.uint32(), options, message.char);
1284
+ break;
1285
+ default:
1286
+ let u = options.readUnknownField;
1287
+ if (u === "throw")
1288
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1289
+ let d = reader.skip(wireType);
1290
+ if (u !== false)
1291
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1292
+ }
1293
+ }
1294
+ return message;
1295
+ }
1296
+ internalBinaryWrite(message: SetSuperUserModeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1297
+ /* resources.timestamp.Timestamp expires = 1; */
1298
+ if (message.expires)
1299
+ Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1300
+ /* optional resources.users.JobProps job_props = 2; */
1301
+ if (message.jobProps)
1302
+ JobProps.internalBinaryWrite(message.jobProps, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1303
+ /* resources.users.User char = 3; */
1304
+ if (message.char)
1305
+ User.internalBinaryWrite(message.char, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1306
+ let u = options.writeUnknownFields;
1307
+ if (u !== false)
1308
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1309
+ return writer;
1310
+ }
1311
+ }
1312
+ /**
1313
+ * @generated MessageType for protobuf message services.auth.SetSuperUserModeResponse
1314
+ */
1315
+ export const SetSuperUserModeResponse = new SetSuperUserModeResponse$Type();
1316
+ /**
1317
+ * @generated ServiceType for protobuf service services.auth.AuthService
1318
+ */
1319
+ export const AuthService = new ServiceType("services.auth.AuthService", [
1320
+ { name: "Login", options: {}, I: LoginRequest, O: LoginResponse },
1321
+ { name: "Logout", options: {}, I: LogoutRequest, O: LogoutResponse },
1322
+ { name: "CreateAccount", options: {}, I: CreateAccountRequest, O: CreateAccountResponse },
1323
+ { name: "ChangeUsername", options: {}, I: ChangeUsernameRequest, O: ChangeUsernameResponse },
1324
+ { name: "ChangePassword", options: {}, I: ChangePasswordRequest, O: ChangePasswordResponse },
1325
+ { name: "ForgotPassword", options: {}, I: ForgotPasswordRequest, O: ForgotPasswordResponse },
1326
+ { name: "GetCharacters", options: {}, I: GetCharactersRequest, O: GetCharactersResponse },
1327
+ { name: "ChooseCharacter", options: {}, I: ChooseCharacterRequest, O: ChooseCharacterResponse },
1328
+ { name: "GetAccountInfo", options: {}, I: GetAccountInfoRequest, O: GetAccountInfoResponse },
1329
+ { name: "DeleteOAuth2Connection", options: {}, I: DeleteOAuth2ConnectionRequest, O: DeleteOAuth2ConnectionResponse },
1330
+ { name: "SetSuperUserMode", options: {}, I: SetSuperUserModeRequest, O: SetSuperUserModeResponse }
1331
+ ]);