@fivenet-app/gen 2025.9.1 → 2026.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +186 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +140 -8
  7. package/resources/accounts/accounts.ts +98 -31
  8. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
  9. package/resources/audit/audit.ts +156 -38
  10. package/resources/calendar/{access.ts → access/access.ts} +30 -30
  11. package/resources/calendar/calendar.ts +17 -477
  12. package/resources/calendar/entries/entries.ts +474 -0
  13. package/resources/centrum/{access.ts → access/access.ts} +22 -22
  14. package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
  15. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
  16. package/resources/centrum/joblist.ts +136 -0
  17. package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
  18. package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
  19. package/resources/centrum/{units.ts → units/units.ts} +131 -51
  20. package/resources/citizens/labels/labels.ts +526 -0
  21. package/resources/{users → citizens/licenses}/licenses.ts +17 -17
  22. package/resources/clientconfig/clientconfig.ts +126 -258
  23. package/resources/collab/collab.ts +4 -16
  24. package/resources/common/content/content.ts +108 -85
  25. package/resources/common/content/diff_activity.ts +267 -0
  26. package/resources/common/i18n.ts +2 -2
  27. package/resources/{common/cron → cron}/cron.ts +43 -43
  28. package/resources/documents/{access.ts → access/access.ts} +29 -52
  29. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  30. package/resources/documents/approval/approval.ts +945 -0
  31. package/resources/documents/{category.ts → category/category.ts} +7 -7
  32. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  33. package/resources/documents/data/data.ts +303 -0
  34. package/resources/documents/documents.ts +282 -667
  35. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  36. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  37. package/resources/documents/references/references.ts +187 -0
  38. package/resources/documents/relations/relations.ts +184 -0
  39. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  40. package/resources/documents/stamps/stamp.ts +355 -0
  41. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  42. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  43. package/resources/file/filestore.ts +1 -1
  44. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  45. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  46. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  47. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  48. package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
  49. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  50. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  51. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  52. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  53. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  54. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  55. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  56. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  57. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  58. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  59. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  60. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  61. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  62. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  63. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  64. package/resources/notifications/notifications.ts +4 -4
  65. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  66. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  67. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  68. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  69. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  70. package/resources/qualifications/qualifications.ts +51 -179
  71. package/resources/settings/banner.ts +3 -3
  72. package/resources/settings/config.ts +527 -25
  73. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  74. package/resources/settings/perms.ts +14 -14
  75. package/resources/stats/stats.ts +379 -0
  76. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  77. package/resources/sync/{data.ts → data/data.ts} +405 -59
  78. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  79. package/resources/users/{activity.ts → activity/activity.ts} +242 -101
  80. package/resources/users/{props.ts → props/props.ts} +91 -69
  81. package/resources/users/short/user.ts +184 -0
  82. package/resources/users/{users.ts → user.ts} +266 -195
  83. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  84. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  85. package/resources/vehicles/vehicles.ts +20 -8
  86. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  87. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  88. package/resources/wiki/page.ts +39 -15
  89. package/services/auth/auth.client.ts +23 -10
  90. package/services/auth/auth.ts +445 -262
  91. package/services/calendar/calendar.ts +56 -34
  92. package/services/centrum/centrum.ts +127 -127
  93. package/services/citizens/citizens.client.ts +0 -13
  94. package/services/citizens/citizens.ts +44 -134
  95. package/services/citizens/labels.client.ts +77 -0
  96. package/services/citizens/labels.ts +455 -0
  97. package/services/completor/completor.ts +36 -16
  98. package/services/documents/approval.client.ts +188 -0
  99. package/services/documents/approval.ts +1776 -0
  100. package/services/documents/documents.ts +164 -186
  101. package/services/documents/forms.client.ts +51 -0
  102. package/services/documents/forms.ts +232 -0
  103. package/services/documents/stamps.client.ts +77 -0
  104. package/services/documents/stamps.ts +481 -0
  105. package/services/documents/stats.client.ts +38 -0
  106. package/services/documents/stats.ts +245 -0
  107. package/services/jobs/conduct.client.ts +30 -3
  108. package/services/jobs/conduct.ts +159 -33
  109. package/services/jobs/jobs.ts +43 -43
  110. package/services/jobs/stats.client.ts +38 -0
  111. package/services/jobs/stats.ts +207 -0
  112. package/services/jobs/timeclock.ts +39 -39
  113. package/services/livemap/livemap.ts +18 -18
  114. package/services/mailer/mailer.ts +78 -78
  115. package/services/notifications/notifications.ts +35 -35
  116. package/services/qualifications/qualifications.ts +81 -46
  117. package/services/settings/accounts.client.ts +23 -10
  118. package/services/settings/accounts.ts +191 -30
  119. package/services/settings/cron.client.ts +13 -0
  120. package/services/settings/cron.ts +118 -5
  121. package/services/settings/laws.ts +1 -1
  122. package/services/settings/settings.ts +73 -52
  123. package/services/settings/system.client.ts +13 -0
  124. package/services/settings/system.ts +115 -15
  125. package/services/stats/stats.client.ts +7 -7
  126. package/services/stats/stats.ts +24 -24
  127. package/services/sync/sync.client.ts +271 -37
  128. package/services/sync/sync.ts +1525 -421
  129. package/services/vehicles/vehicles.ts +8 -8
  130. package/services/wiki/wiki.ts +8 -8
  131. package/svcs.ts +100 -6
  132. package/resources/centrum/attributes.ts +0 -183
  133. package/resources/documents/signoff.ts +0 -55
  134. package/resources/users/labels.ts +0 -160
@@ -13,14 +13,15 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
14
  import { BannerMessage } from "./banner";
15
15
  import { Duration } from "../../google/protobuf/duration";
16
+ import { Data } from "./data";
16
17
  /**
17
18
  * @generated from protobuf message resources.settings.AppConfig
18
19
  */
19
20
  export interface AppConfig {
20
21
  /**
21
- * @generated from protobuf field: optional string version = 1
22
+ * @generated from protobuf field: string version = 1
22
23
  */
23
- version?: string;
24
+ version: string;
24
25
  /**
25
26
  * @generated from protobuf field: string default_locale = 8
26
27
  */
@@ -57,6 +58,22 @@ export interface AppConfig {
57
58
  * @generated from protobuf field: resources.settings.Display display = 10
58
59
  */
59
60
  display?: Display;
61
+ /**
62
+ * @generated from protobuf field: resources.settings.QuickButtons quick_buttons = 11
63
+ */
64
+ quickButtons?: QuickButtons;
65
+ /**
66
+ * @generated from protobuf field: resources.settings.Data data = 12
67
+ */
68
+ data?: Data;
69
+ /**
70
+ * @generated from protobuf field: resources.settings.Livemap livemap = 13
71
+ */
72
+ livemap?: Livemap;
73
+ /**
74
+ * @generated from protobuf field: resources.settings.Game game = 14
75
+ */
76
+ game?: Game;
60
77
  }
61
78
  /**
62
79
  * @generated from protobuf message resources.settings.Auth
@@ -232,9 +249,9 @@ export interface Display {
232
249
  /**
233
250
  * IETF BCP 47 language tag (e.g. "en-US", "de-DE")
234
251
  *
235
- * @generated from protobuf field: optional string intl_locale = 1
252
+ * @generated from protobuf field: string intl_locale = 1
236
253
  */
237
- intlLocale?: string;
254
+ intlLocale: string;
238
255
  /**
239
256
  * ISO 4217 currency code (e.g. "USD", "EUR")
240
257
  *
@@ -242,6 +259,104 @@ export interface Display {
242
259
  */
243
260
  currencyName: string;
244
261
  }
262
+ /**
263
+ * @generated from protobuf message resources.settings.QuickButtons
264
+ */
265
+ export interface QuickButtons {
266
+ /**
267
+ * @generated from protobuf field: resources.settings.PenaltyCalculator penalty_calculator = 1
268
+ */
269
+ penaltyCalculator?: PenaltyCalculator;
270
+ }
271
+ /**
272
+ * @generated from protobuf message resources.settings.PenaltyCalculator
273
+ */
274
+ export interface PenaltyCalculator {
275
+ /**
276
+ * @generated from protobuf field: optional uint32 max_count = 1
277
+ */
278
+ maxCount?: number;
279
+ /**
280
+ * @generated from protobuf field: optional resources.settings.PenaltyCalculatorDetentionTimeUnit detention_time_unit = 2
281
+ */
282
+ detentionTimeUnit?: PenaltyCalculatorDetentionTimeUnit;
283
+ /**
284
+ * @generated from protobuf field: optional resources.settings.PenaltyCalculatorWarn warn_settings = 3
285
+ */
286
+ warnSettings?: PenaltyCalculatorWarn;
287
+ /**
288
+ * @generated from protobuf field: optional uint32 max_leeway = 4
289
+ */
290
+ maxLeeway?: number;
291
+ }
292
+ /**
293
+ * @generated from protobuf message resources.settings.PenaltyCalculatorDetentionTimeUnit
294
+ */
295
+ export interface PenaltyCalculatorDetentionTimeUnit {
296
+ /**
297
+ * @generated from protobuf field: optional string singular = 1
298
+ */
299
+ singular?: string;
300
+ /**
301
+ * @generated from protobuf field: optional string plural = 2
302
+ */
303
+ plural?: string;
304
+ }
305
+ /**
306
+ * @generated from protobuf message resources.settings.PenaltyCalculatorWarn
307
+ */
308
+ export interface PenaltyCalculatorWarn {
309
+ /**
310
+ * @generated from protobuf field: bool enabled = 1
311
+ */
312
+ enabled: boolean;
313
+ /**
314
+ * @generated from protobuf field: optional uint32 fine = 2
315
+ */
316
+ fine?: number;
317
+ /**
318
+ * @generated from protobuf field: optional uint32 detention_time = 3
319
+ */
320
+ detentionTime?: number;
321
+ /**
322
+ * @generated from protobuf field: optional uint32 stvo_points = 4
323
+ */
324
+ stvoPoints?: number;
325
+ /**
326
+ * @generated from protobuf field: optional string warn_message = 5
327
+ */
328
+ warnMessage?: string;
329
+ }
330
+ /**
331
+ * @generated from protobuf message resources.settings.Livemap
332
+ */
333
+ export interface Livemap {
334
+ /**
335
+ * @generated from protobuf field: bool enable_cayo_perico = 1
336
+ */
337
+ enableCayoPerico: boolean;
338
+ }
339
+ /**
340
+ * @generated from protobuf message resources.settings.Game
341
+ */
342
+ export interface Game {
343
+ /**
344
+ * @generated from protobuf field: bool max_wanted_duration_user_enabled = 4
345
+ */
346
+ maxWantedDurationUserEnabled: boolean;
347
+ /**
348
+ * @generated from protobuf field: optional google.protobuf.Duration max_wanted_duration_user = 5
349
+ */
350
+ maxWantedDurationUser?: Duration;
351
+ /**
352
+ * @generated from protobuf field: bool max_wanted_duration_vehicle_enabled = 6
353
+ */
354
+ maxWantedDurationVehicleEnabled: boolean;
355
+ /**
356
+ * @generated from protobuf field: optional google.protobuf.Duration max_wanted_duration_vehicle = 7
357
+ */
358
+ maxWantedDurationVehicle?: Duration;
359
+ }
245
360
  /**
246
361
  * @generated from protobuf enum resources.settings.DiscordBotPresenceType
247
362
  */
@@ -271,7 +386,7 @@ export enum DiscordBotPresenceType {
271
386
  class AppConfig$Type extends MessageType<AppConfig> {
272
387
  constructor() {
273
388
  super("resources.settings.AppConfig", [
274
- { no: 1, name: "version", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
389
+ { no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
275
390
  { no: 8, name: "default_locale", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
276
391
  { no: 2, name: "auth", kind: "message", T: () => Auth },
277
392
  { no: 3, name: "perms", kind: "message", T: () => Perms },
@@ -280,11 +395,16 @@ class AppConfig$Type extends MessageType<AppConfig> {
280
395
  { no: 6, name: "user_tracker", kind: "message", T: () => UserTracker },
281
396
  { no: 7, name: "discord", kind: "message", T: () => Discord },
282
397
  { no: 9, name: "system", kind: "message", T: () => System },
283
- { no: 10, name: "display", kind: "message", T: () => Display }
398
+ { no: 10, name: "display", kind: "message", T: () => Display },
399
+ { no: 11, name: "quick_buttons", kind: "message", T: () => QuickButtons },
400
+ { no: 12, name: "data", kind: "message", T: () => Data },
401
+ { no: 13, name: "livemap", kind: "message", T: () => Livemap },
402
+ { no: 14, name: "game", kind: "message", T: () => Game }
284
403
  ], { "codegen.dbscanner.dbscanner": { enabled: true, partial: true } });
285
404
  }
286
405
  create(value?: PartialMessage<AppConfig>): AppConfig {
287
406
  const message = globalThis.Object.create((this.messagePrototype!));
407
+ message.version = "";
288
408
  message.defaultLocale = "";
289
409
  if (value !== undefined)
290
410
  reflectionMergePartial<AppConfig>(this, message, value);
@@ -295,7 +415,7 @@ class AppConfig$Type extends MessageType<AppConfig> {
295
415
  while (reader.pos < end) {
296
416
  let [fieldNo, wireType] = reader.tag();
297
417
  switch (fieldNo) {
298
- case /* optional string version */ 1:
418
+ case /* string version */ 1:
299
419
  message.version = reader.string();
300
420
  break;
301
421
  case /* string default_locale */ 8:
@@ -325,6 +445,18 @@ class AppConfig$Type extends MessageType<AppConfig> {
325
445
  case /* resources.settings.Display display */ 10:
326
446
  message.display = Display.internalBinaryRead(reader, reader.uint32(), options, message.display);
327
447
  break;
448
+ case /* resources.settings.QuickButtons quick_buttons */ 11:
449
+ message.quickButtons = QuickButtons.internalBinaryRead(reader, reader.uint32(), options, message.quickButtons);
450
+ break;
451
+ case /* resources.settings.Data data */ 12:
452
+ message.data = Data.internalBinaryRead(reader, reader.uint32(), options, message.data);
453
+ break;
454
+ case /* resources.settings.Livemap livemap */ 13:
455
+ message.livemap = Livemap.internalBinaryRead(reader, reader.uint32(), options, message.livemap);
456
+ break;
457
+ case /* resources.settings.Game game */ 14:
458
+ message.game = Game.internalBinaryRead(reader, reader.uint32(), options, message.game);
459
+ break;
328
460
  default:
329
461
  let u = options.readUnknownField;
330
462
  if (u === "throw")
@@ -337,8 +469,8 @@ class AppConfig$Type extends MessageType<AppConfig> {
337
469
  return message;
338
470
  }
339
471
  internalBinaryWrite(message: AppConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
340
- /* optional string version = 1; */
341
- if (message.version !== undefined)
472
+ /* string version = 1; */
473
+ if (message.version !== "")
342
474
  writer.tag(1, WireType.LengthDelimited).string(message.version);
343
475
  /* resources.settings.Auth auth = 2; */
344
476
  if (message.auth)
@@ -367,6 +499,18 @@ class AppConfig$Type extends MessageType<AppConfig> {
367
499
  /* resources.settings.Display display = 10; */
368
500
  if (message.display)
369
501
  Display.internalBinaryWrite(message.display, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
502
+ /* resources.settings.QuickButtons quick_buttons = 11; */
503
+ if (message.quickButtons)
504
+ QuickButtons.internalBinaryWrite(message.quickButtons, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
505
+ /* resources.settings.Data data = 12; */
506
+ if (message.data)
507
+ Data.internalBinaryWrite(message.data, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
508
+ /* resources.settings.Livemap livemap = 13; */
509
+ if (message.livemap)
510
+ Livemap.internalBinaryWrite(message.livemap, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
511
+ /* resources.settings.Game game = 14; */
512
+ if (message.game)
513
+ Game.internalBinaryWrite(message.game, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
370
514
  let u = options.writeUnknownFields;
371
515
  if (u !== false)
372
516
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -483,8 +627,8 @@ export const Perms = new Perms$Type();
483
627
  class Perm$Type extends MessageType<Perm> {
484
628
  constructor() {
485
629
  super("resources.settings.Perm", [
486
- { no: 1, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
487
- { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
630
+ { no: 1, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
631
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
488
632
  ]);
489
633
  }
490
634
  create(value?: PartialMessage<Perm>): Perm {
@@ -592,8 +736,8 @@ export const Website = new Website$Type();
592
736
  class Links$Type extends MessageType<Links> {
593
737
  constructor() {
594
738
  super("resources.settings.Links", [
595
- { no: 1, name: "privacy_policy", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
596
- { no: 2, name: "imprint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
739
+ { no: 1, name: "privacy_policy", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
740
+ { no: 2, name: "imprint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
597
741
  ]);
598
742
  }
599
743
  create(value?: PartialMessage<Links>): Links {
@@ -646,8 +790,8 @@ class JobInfo$Type extends MessageType<JobInfo> {
646
790
  constructor() {
647
791
  super("resources.settings.JobInfo", [
648
792
  { no: 1, name: "unemployed_job", kind: "message", T: () => UnemployedJob, options: { "buf.validate.field": { required: true } } },
649
- { no: 2, name: "public_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
650
- { no: 3, name: "hidden_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
793
+ { no: 2, name: "public_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
794
+ { no: 3, name: "hidden_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
651
795
  ]);
652
796
  }
653
797
  create(value?: PartialMessage<JobInfo>): JobInfo {
@@ -817,10 +961,10 @@ class Discord$Type extends MessageType<Discord> {
817
961
  super("resources.settings.Discord", [
818
962
  { no: 1, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
819
963
  { no: 2, name: "sync_interval", kind: "message", T: () => Duration, options: { "buf.validate.field": { required: true, duration: { lt: { seconds: "180000000" }, gte: { seconds: "60" } } } } },
820
- { no: 3, name: "invite_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
821
- { no: 4, name: "ignored_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
964
+ { no: 3, name: "invite_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
965
+ { no: 4, name: "ignored_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
822
966
  { no: 5, name: "bot_presence", kind: "message", T: () => DiscordBotPresence },
823
- { no: 6, name: "bot_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
967
+ { no: 6, name: "bot_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
824
968
  { no: 7, name: "bot_permissions", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
825
969
  ]);
826
970
  }
@@ -907,8 +1051,8 @@ class DiscordBotPresence$Type extends MessageType<DiscordBotPresence> {
907
1051
  constructor() {
908
1052
  super("resources.settings.DiscordBotPresence", [
909
1053
  { no: 1, name: "type", kind: "enum", T: () => ["resources.settings.DiscordBotPresenceType", DiscordBotPresenceType, "DISCORD_BOT_PRESENCE_TYPE_"] },
910
- { no: 2, name: "status", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
911
- { no: 3, name: "url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
1054
+ { no: 2, name: "status", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
1055
+ { no: 3, name: "url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
912
1056
  ]);
913
1057
  }
914
1058
  create(value?: PartialMessage<DiscordBotPresence>): DiscordBotPresence {
@@ -1021,12 +1165,13 @@ export const System = new System$Type();
1021
1165
  class Display$Type extends MessageType<Display> {
1022
1166
  constructor() {
1023
1167
  super("resources.settings.Display", [
1024
- { no: 1, name: "intl_locale", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
1025
- { no: 2, name: "currency_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "3" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
1168
+ { no: 1, name: "intl_locale", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true }, "tagger.tags": "json:\"intlLocale\"" } },
1169
+ { no: 2, name: "currency_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "3" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true }, "tagger.tags": "json:\"currencyName\"" } }
1026
1170
  ]);
1027
1171
  }
1028
1172
  create(value?: PartialMessage<Display>): Display {
1029
1173
  const message = globalThis.Object.create((this.messagePrototype!));
1174
+ message.intlLocale = "";
1030
1175
  message.currencyName = "";
1031
1176
  if (value !== undefined)
1032
1177
  reflectionMergePartial<Display>(this, message, value);
@@ -1037,7 +1182,7 @@ class Display$Type extends MessageType<Display> {
1037
1182
  while (reader.pos < end) {
1038
1183
  let [fieldNo, wireType] = reader.tag();
1039
1184
  switch (fieldNo) {
1040
- case /* optional string intl_locale */ 1:
1185
+ case /* string intl_locale */ 1:
1041
1186
  message.intlLocale = reader.string();
1042
1187
  break;
1043
1188
  case /* string currency_name */ 2:
@@ -1055,8 +1200,8 @@ class Display$Type extends MessageType<Display> {
1055
1200
  return message;
1056
1201
  }
1057
1202
  internalBinaryWrite(message: Display, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1058
- /* optional string intl_locale = 1; */
1059
- if (message.intlLocale !== undefined)
1203
+ /* string intl_locale = 1; */
1204
+ if (message.intlLocale !== "")
1060
1205
  writer.tag(1, WireType.LengthDelimited).string(message.intlLocale);
1061
1206
  /* string currency_name = 2; */
1062
1207
  if (message.currencyName !== "")
@@ -1071,3 +1216,360 @@ class Display$Type extends MessageType<Display> {
1071
1216
  * @generated MessageType for protobuf message resources.settings.Display
1072
1217
  */
1073
1218
  export const Display = new Display$Type();
1219
+ // @generated message type with reflection information, may provide speed optimized methods
1220
+ class QuickButtons$Type extends MessageType<QuickButtons> {
1221
+ constructor() {
1222
+ super("resources.settings.QuickButtons", [
1223
+ { no: 1, name: "penalty_calculator", kind: "message", T: () => PenaltyCalculator, options: { "tagger.tags": "json:\"penaltyCalculator\"" } }
1224
+ ]);
1225
+ }
1226
+ create(value?: PartialMessage<QuickButtons>): QuickButtons {
1227
+ const message = globalThis.Object.create((this.messagePrototype!));
1228
+ if (value !== undefined)
1229
+ reflectionMergePartial<QuickButtons>(this, message, value);
1230
+ return message;
1231
+ }
1232
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuickButtons): QuickButtons {
1233
+ let message = target ?? this.create(), end = reader.pos + length;
1234
+ while (reader.pos < end) {
1235
+ let [fieldNo, wireType] = reader.tag();
1236
+ switch (fieldNo) {
1237
+ case /* resources.settings.PenaltyCalculator penalty_calculator */ 1:
1238
+ message.penaltyCalculator = PenaltyCalculator.internalBinaryRead(reader, reader.uint32(), options, message.penaltyCalculator);
1239
+ break;
1240
+ default:
1241
+ let u = options.readUnknownField;
1242
+ if (u === "throw")
1243
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1244
+ let d = reader.skip(wireType);
1245
+ if (u !== false)
1246
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1247
+ }
1248
+ }
1249
+ return message;
1250
+ }
1251
+ internalBinaryWrite(message: QuickButtons, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1252
+ /* resources.settings.PenaltyCalculator penalty_calculator = 1; */
1253
+ if (message.penaltyCalculator)
1254
+ PenaltyCalculator.internalBinaryWrite(message.penaltyCalculator, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1255
+ let u = options.writeUnknownFields;
1256
+ if (u !== false)
1257
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1258
+ return writer;
1259
+ }
1260
+ }
1261
+ /**
1262
+ * @generated MessageType for protobuf message resources.settings.QuickButtons
1263
+ */
1264
+ export const QuickButtons = new QuickButtons$Type();
1265
+ // @generated message type with reflection information, may provide speed optimized methods
1266
+ class PenaltyCalculator$Type extends MessageType<PenaltyCalculator> {
1267
+ constructor() {
1268
+ super("resources.settings.PenaltyCalculator", [
1269
+ { no: 1, name: "max_count", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "tagger.tags": "json:\"maxCount\"" } },
1270
+ { no: 2, name: "detention_time_unit", kind: "message", T: () => PenaltyCalculatorDetentionTimeUnit, options: { "tagger.tags": "json:\"detentionTimeUnit\"" } },
1271
+ { no: 3, name: "warn_settings", kind: "message", T: () => PenaltyCalculatorWarn, options: { "tagger.tags": "json:\"warnSettings\"" } },
1272
+ { no: 4, name: "max_leeway", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { lte: 99 } }, "tagger.tags": "json:\"maxLeeway\"" } }
1273
+ ]);
1274
+ }
1275
+ create(value?: PartialMessage<PenaltyCalculator>): PenaltyCalculator {
1276
+ const message = globalThis.Object.create((this.messagePrototype!));
1277
+ if (value !== undefined)
1278
+ reflectionMergePartial<PenaltyCalculator>(this, message, value);
1279
+ return message;
1280
+ }
1281
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PenaltyCalculator): PenaltyCalculator {
1282
+ let message = target ?? this.create(), end = reader.pos + length;
1283
+ while (reader.pos < end) {
1284
+ let [fieldNo, wireType] = reader.tag();
1285
+ switch (fieldNo) {
1286
+ case /* optional uint32 max_count */ 1:
1287
+ message.maxCount = reader.uint32();
1288
+ break;
1289
+ case /* optional resources.settings.PenaltyCalculatorDetentionTimeUnit detention_time_unit */ 2:
1290
+ message.detentionTimeUnit = PenaltyCalculatorDetentionTimeUnit.internalBinaryRead(reader, reader.uint32(), options, message.detentionTimeUnit);
1291
+ break;
1292
+ case /* optional resources.settings.PenaltyCalculatorWarn warn_settings */ 3:
1293
+ message.warnSettings = PenaltyCalculatorWarn.internalBinaryRead(reader, reader.uint32(), options, message.warnSettings);
1294
+ break;
1295
+ case /* optional uint32 max_leeway */ 4:
1296
+ message.maxLeeway = reader.uint32();
1297
+ break;
1298
+ default:
1299
+ let u = options.readUnknownField;
1300
+ if (u === "throw")
1301
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1302
+ let d = reader.skip(wireType);
1303
+ if (u !== false)
1304
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1305
+ }
1306
+ }
1307
+ return message;
1308
+ }
1309
+ internalBinaryWrite(message: PenaltyCalculator, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1310
+ /* optional uint32 max_count = 1; */
1311
+ if (message.maxCount !== undefined)
1312
+ writer.tag(1, WireType.Varint).uint32(message.maxCount);
1313
+ /* optional resources.settings.PenaltyCalculatorDetentionTimeUnit detention_time_unit = 2; */
1314
+ if (message.detentionTimeUnit)
1315
+ PenaltyCalculatorDetentionTimeUnit.internalBinaryWrite(message.detentionTimeUnit, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1316
+ /* optional resources.settings.PenaltyCalculatorWarn warn_settings = 3; */
1317
+ if (message.warnSettings)
1318
+ PenaltyCalculatorWarn.internalBinaryWrite(message.warnSettings, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1319
+ /* optional uint32 max_leeway = 4; */
1320
+ if (message.maxLeeway !== undefined)
1321
+ writer.tag(4, WireType.Varint).uint32(message.maxLeeway);
1322
+ let u = options.writeUnknownFields;
1323
+ if (u !== false)
1324
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1325
+ return writer;
1326
+ }
1327
+ }
1328
+ /**
1329
+ * @generated MessageType for protobuf message resources.settings.PenaltyCalculator
1330
+ */
1331
+ export const PenaltyCalculator = new PenaltyCalculator$Type();
1332
+ // @generated message type with reflection information, may provide speed optimized methods
1333
+ class PenaltyCalculatorDetentionTimeUnit$Type extends MessageType<PenaltyCalculatorDetentionTimeUnit> {
1334
+ constructor() {
1335
+ super("resources.settings.PenaltyCalculatorDetentionTimeUnit", [
1336
+ { no: 1, name: "singular", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
1337
+ { no: 2, name: "plural", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1338
+ ]);
1339
+ }
1340
+ create(value?: PartialMessage<PenaltyCalculatorDetentionTimeUnit>): PenaltyCalculatorDetentionTimeUnit {
1341
+ const message = globalThis.Object.create((this.messagePrototype!));
1342
+ if (value !== undefined)
1343
+ reflectionMergePartial<PenaltyCalculatorDetentionTimeUnit>(this, message, value);
1344
+ return message;
1345
+ }
1346
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PenaltyCalculatorDetentionTimeUnit): PenaltyCalculatorDetentionTimeUnit {
1347
+ let message = target ?? this.create(), end = reader.pos + length;
1348
+ while (reader.pos < end) {
1349
+ let [fieldNo, wireType] = reader.tag();
1350
+ switch (fieldNo) {
1351
+ case /* optional string singular */ 1:
1352
+ message.singular = reader.string();
1353
+ break;
1354
+ case /* optional string plural */ 2:
1355
+ message.plural = reader.string();
1356
+ break;
1357
+ default:
1358
+ let u = options.readUnknownField;
1359
+ if (u === "throw")
1360
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1361
+ let d = reader.skip(wireType);
1362
+ if (u !== false)
1363
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1364
+ }
1365
+ }
1366
+ return message;
1367
+ }
1368
+ internalBinaryWrite(message: PenaltyCalculatorDetentionTimeUnit, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1369
+ /* optional string singular = 1; */
1370
+ if (message.singular !== undefined)
1371
+ writer.tag(1, WireType.LengthDelimited).string(message.singular);
1372
+ /* optional string plural = 2; */
1373
+ if (message.plural !== undefined)
1374
+ writer.tag(2, WireType.LengthDelimited).string(message.plural);
1375
+ let u = options.writeUnknownFields;
1376
+ if (u !== false)
1377
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1378
+ return writer;
1379
+ }
1380
+ }
1381
+ /**
1382
+ * @generated MessageType for protobuf message resources.settings.PenaltyCalculatorDetentionTimeUnit
1383
+ */
1384
+ export const PenaltyCalculatorDetentionTimeUnit = new PenaltyCalculatorDetentionTimeUnit$Type();
1385
+ // @generated message type with reflection information, may provide speed optimized methods
1386
+ class PenaltyCalculatorWarn$Type extends MessageType<PenaltyCalculatorWarn> {
1387
+ constructor() {
1388
+ super("resources.settings.PenaltyCalculatorWarn", [
1389
+ { no: 1, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1390
+ { no: 2, name: "fine", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
1391
+ { no: 3, name: "detention_time", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "tagger.tags": "json:\"detentionTime\"" } },
1392
+ { no: 4, name: "stvo_points", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "tagger.tags": "json:\"stvoPoints\"" } },
1393
+ { no: 5, name: "warn_message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true }, "tagger.tags": "json:\"warnMessage\"" } }
1394
+ ], { "codegen.dbscanner.dbscanner": { enabled: true } });
1395
+ }
1396
+ create(value?: PartialMessage<PenaltyCalculatorWarn>): PenaltyCalculatorWarn {
1397
+ const message = globalThis.Object.create((this.messagePrototype!));
1398
+ message.enabled = false;
1399
+ if (value !== undefined)
1400
+ reflectionMergePartial<PenaltyCalculatorWarn>(this, message, value);
1401
+ return message;
1402
+ }
1403
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PenaltyCalculatorWarn): PenaltyCalculatorWarn {
1404
+ let message = target ?? this.create(), end = reader.pos + length;
1405
+ while (reader.pos < end) {
1406
+ let [fieldNo, wireType] = reader.tag();
1407
+ switch (fieldNo) {
1408
+ case /* bool enabled */ 1:
1409
+ message.enabled = reader.bool();
1410
+ break;
1411
+ case /* optional uint32 fine */ 2:
1412
+ message.fine = reader.uint32();
1413
+ break;
1414
+ case /* optional uint32 detention_time */ 3:
1415
+ message.detentionTime = reader.uint32();
1416
+ break;
1417
+ case /* optional uint32 stvo_points */ 4:
1418
+ message.stvoPoints = reader.uint32();
1419
+ break;
1420
+ case /* optional string warn_message */ 5:
1421
+ message.warnMessage = reader.string();
1422
+ break;
1423
+ default:
1424
+ let u = options.readUnknownField;
1425
+ if (u === "throw")
1426
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1427
+ let d = reader.skip(wireType);
1428
+ if (u !== false)
1429
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1430
+ }
1431
+ }
1432
+ return message;
1433
+ }
1434
+ internalBinaryWrite(message: PenaltyCalculatorWarn, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1435
+ /* bool enabled = 1; */
1436
+ if (message.enabled !== false)
1437
+ writer.tag(1, WireType.Varint).bool(message.enabled);
1438
+ /* optional uint32 fine = 2; */
1439
+ if (message.fine !== undefined)
1440
+ writer.tag(2, WireType.Varint).uint32(message.fine);
1441
+ /* optional uint32 detention_time = 3; */
1442
+ if (message.detentionTime !== undefined)
1443
+ writer.tag(3, WireType.Varint).uint32(message.detentionTime);
1444
+ /* optional uint32 stvo_points = 4; */
1445
+ if (message.stvoPoints !== undefined)
1446
+ writer.tag(4, WireType.Varint).uint32(message.stvoPoints);
1447
+ /* optional string warn_message = 5; */
1448
+ if (message.warnMessage !== undefined)
1449
+ writer.tag(5, WireType.LengthDelimited).string(message.warnMessage);
1450
+ let u = options.writeUnknownFields;
1451
+ if (u !== false)
1452
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1453
+ return writer;
1454
+ }
1455
+ }
1456
+ /**
1457
+ * @generated MessageType for protobuf message resources.settings.PenaltyCalculatorWarn
1458
+ */
1459
+ export const PenaltyCalculatorWarn = new PenaltyCalculatorWarn$Type();
1460
+ // @generated message type with reflection information, may provide speed optimized methods
1461
+ class Livemap$Type extends MessageType<Livemap> {
1462
+ constructor() {
1463
+ super("resources.settings.Livemap", [
1464
+ { no: 1, name: "enable_cayo_perico", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1465
+ ]);
1466
+ }
1467
+ create(value?: PartialMessage<Livemap>): Livemap {
1468
+ const message = globalThis.Object.create((this.messagePrototype!));
1469
+ message.enableCayoPerico = false;
1470
+ if (value !== undefined)
1471
+ reflectionMergePartial<Livemap>(this, message, value);
1472
+ return message;
1473
+ }
1474
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Livemap): Livemap {
1475
+ let message = target ?? this.create(), end = reader.pos + length;
1476
+ while (reader.pos < end) {
1477
+ let [fieldNo, wireType] = reader.tag();
1478
+ switch (fieldNo) {
1479
+ case /* bool enable_cayo_perico */ 1:
1480
+ message.enableCayoPerico = reader.bool();
1481
+ break;
1482
+ default:
1483
+ let u = options.readUnknownField;
1484
+ if (u === "throw")
1485
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1486
+ let d = reader.skip(wireType);
1487
+ if (u !== false)
1488
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1489
+ }
1490
+ }
1491
+ return message;
1492
+ }
1493
+ internalBinaryWrite(message: Livemap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1494
+ /* bool enable_cayo_perico = 1; */
1495
+ if (message.enableCayoPerico !== false)
1496
+ writer.tag(1, WireType.Varint).bool(message.enableCayoPerico);
1497
+ let u = options.writeUnknownFields;
1498
+ if (u !== false)
1499
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1500
+ return writer;
1501
+ }
1502
+ }
1503
+ /**
1504
+ * @generated MessageType for protobuf message resources.settings.Livemap
1505
+ */
1506
+ export const Livemap = new Livemap$Type();
1507
+ // @generated message type with reflection information, may provide speed optimized methods
1508
+ class Game$Type extends MessageType<Game> {
1509
+ constructor() {
1510
+ super("resources.settings.Game", [
1511
+ { no: 4, name: "max_wanted_duration_user_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1512
+ { no: 5, name: "max_wanted_duration_user", kind: "message", T: () => Duration, options: { "buf.validate.field": { duration: { lte: { seconds: "315360000" }, gte: { seconds: "86400" } } } } },
1513
+ { no: 6, name: "max_wanted_duration_vehicle_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1514
+ { no: 7, name: "max_wanted_duration_vehicle", kind: "message", T: () => Duration, options: { "buf.validate.field": { duration: { lte: { seconds: "315360000" }, gte: { seconds: "86400" } } } } }
1515
+ ]);
1516
+ }
1517
+ create(value?: PartialMessage<Game>): Game {
1518
+ const message = globalThis.Object.create((this.messagePrototype!));
1519
+ message.maxWantedDurationUserEnabled = false;
1520
+ message.maxWantedDurationVehicleEnabled = false;
1521
+ if (value !== undefined)
1522
+ reflectionMergePartial<Game>(this, message, value);
1523
+ return message;
1524
+ }
1525
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Game): Game {
1526
+ let message = target ?? this.create(), end = reader.pos + length;
1527
+ while (reader.pos < end) {
1528
+ let [fieldNo, wireType] = reader.tag();
1529
+ switch (fieldNo) {
1530
+ case /* bool max_wanted_duration_user_enabled */ 4:
1531
+ message.maxWantedDurationUserEnabled = reader.bool();
1532
+ break;
1533
+ case /* optional google.protobuf.Duration max_wanted_duration_user */ 5:
1534
+ message.maxWantedDurationUser = Duration.internalBinaryRead(reader, reader.uint32(), options, message.maxWantedDurationUser);
1535
+ break;
1536
+ case /* bool max_wanted_duration_vehicle_enabled */ 6:
1537
+ message.maxWantedDurationVehicleEnabled = reader.bool();
1538
+ break;
1539
+ case /* optional google.protobuf.Duration max_wanted_duration_vehicle */ 7:
1540
+ message.maxWantedDurationVehicle = Duration.internalBinaryRead(reader, reader.uint32(), options, message.maxWantedDurationVehicle);
1541
+ break;
1542
+ default:
1543
+ let u = options.readUnknownField;
1544
+ if (u === "throw")
1545
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1546
+ let d = reader.skip(wireType);
1547
+ if (u !== false)
1548
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1549
+ }
1550
+ }
1551
+ return message;
1552
+ }
1553
+ internalBinaryWrite(message: Game, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1554
+ /* bool max_wanted_duration_user_enabled = 4; */
1555
+ if (message.maxWantedDurationUserEnabled !== false)
1556
+ writer.tag(4, WireType.Varint).bool(message.maxWantedDurationUserEnabled);
1557
+ /* optional google.protobuf.Duration max_wanted_duration_user = 5; */
1558
+ if (message.maxWantedDurationUser)
1559
+ Duration.internalBinaryWrite(message.maxWantedDurationUser, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1560
+ /* bool max_wanted_duration_vehicle_enabled = 6; */
1561
+ if (message.maxWantedDurationVehicleEnabled !== false)
1562
+ writer.tag(6, WireType.Varint).bool(message.maxWantedDurationVehicleEnabled);
1563
+ /* optional google.protobuf.Duration max_wanted_duration_vehicle = 7; */
1564
+ if (message.maxWantedDurationVehicle)
1565
+ Duration.internalBinaryWrite(message.maxWantedDurationVehicle, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
1566
+ let u = options.writeUnknownFields;
1567
+ if (u !== false)
1568
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1569
+ return writer;
1570
+ }
1571
+ }
1572
+ /**
1573
+ * @generated MessageType for protobuf message resources.settings.Game
1574
+ */
1575
+ export const Game = new Game$Type();