@fivenet-app/gen 2025.9.1 → 2026.3.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 (131) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +94 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +137 -6
  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} +69 -69
  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/clientconfig/clientconfig.ts +159 -34
  21. package/resources/collab/collab.ts +4 -16
  22. package/resources/common/content/content.ts +108 -85
  23. package/resources/common/content/diff_activity.ts +267 -0
  24. package/resources/common/i18n.ts +2 -2
  25. package/resources/{common/cron → cron}/cron.ts +41 -41
  26. package/resources/documents/{access.ts → access/access.ts} +30 -30
  27. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  28. package/resources/documents/approval/approval.ts +945 -0
  29. package/resources/documents/{category.ts → category/category.ts} +7 -7
  30. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  31. package/resources/documents/data/data.ts +303 -0
  32. package/resources/documents/documents.ts +282 -667
  33. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  34. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  35. package/resources/documents/references/references.ts +187 -0
  36. package/resources/documents/relations/relations.ts +184 -0
  37. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  38. package/resources/documents/stamps/stamp.ts +355 -0
  39. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  40. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  41. package/resources/file/filestore.ts +1 -1
  42. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  43. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  44. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  45. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  46. package/resources/jobs/{labels.ts → labels/labels.ts} +18 -18
  47. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  48. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  49. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  50. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  51. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  52. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  53. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  54. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  55. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  56. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  57. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  58. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  59. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  60. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  61. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  62. package/resources/notifications/notifications.ts +4 -4
  63. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  64. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  65. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  66. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  67. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  68. package/resources/qualifications/qualifications.ts +51 -179
  69. package/resources/settings/banner.ts +3 -3
  70. package/resources/settings/config.ts +514 -14
  71. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  72. package/resources/settings/perms.ts +14 -14
  73. package/resources/stats/stats.ts +379 -0
  74. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  75. package/resources/sync/{data.ts → data/data.ts} +404 -58
  76. package/resources/sync/data/v2/data.ts +220 -0
  77. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  78. package/resources/users/{activity.ts → activity/activity.ts} +121 -100
  79. package/resources/users/{labels.ts → labels/labels.ts} +12 -12
  80. package/resources/users/{licenses.ts → licenses/licenses.ts} +10 -10
  81. package/resources/users/{props.ts → props/props.ts} +91 -69
  82. package/resources/users/short/user.ts +184 -0
  83. package/resources/users/{users.ts → user.ts} +266 -195
  84. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  85. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  86. package/resources/vehicles/vehicles.ts +20 -8
  87. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  88. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  89. package/resources/wiki/page.ts +39 -15
  90. package/services/auth/auth.client.ts +23 -10
  91. package/services/auth/auth.ts +445 -262
  92. package/services/calendar/calendar.ts +56 -34
  93. package/services/centrum/centrum.ts +127 -127
  94. package/services/citizens/citizens.ts +51 -27
  95. package/services/completor/completor.ts +35 -15
  96. package/services/documents/approval.client.ts +188 -0
  97. package/services/documents/approval.ts +1776 -0
  98. package/services/documents/documents.ts +163 -185
  99. package/services/documents/forms.client.ts +51 -0
  100. package/services/documents/forms.ts +232 -0
  101. package/services/documents/stamps.client.ts +77 -0
  102. package/services/documents/stamps.ts +481 -0
  103. package/services/documents/stats.client.ts +38 -0
  104. package/services/documents/stats.ts +245 -0
  105. package/services/jobs/conduct.client.ts +30 -3
  106. package/services/jobs/conduct.ts +159 -33
  107. package/services/jobs/jobs.ts +43 -43
  108. package/services/jobs/stats.client.ts +38 -0
  109. package/services/jobs/stats.ts +207 -0
  110. package/services/jobs/timeclock.ts +39 -39
  111. package/services/livemap/livemap.ts +18 -18
  112. package/services/mailer/mailer.ts +78 -78
  113. package/services/notifications/notifications.ts +35 -35
  114. package/services/qualifications/qualifications.ts +80 -45
  115. package/services/settings/accounts.client.ts +23 -10
  116. package/services/settings/accounts.ts +191 -30
  117. package/services/settings/cron.ts +4 -4
  118. package/services/settings/laws.ts +1 -1
  119. package/services/settings/settings.ts +73 -52
  120. package/services/settings/system.client.ts +13 -0
  121. package/services/settings/system.ts +115 -15
  122. package/services/stats/stats.client.ts +7 -7
  123. package/services/stats/stats.ts +24 -24
  124. package/services/sync/sync.ts +124 -77
  125. package/services/sync/v2/sync.client.ts +331 -0
  126. package/services/sync/v2/sync.ts +1766 -0
  127. package/services/vehicles/vehicles.ts +8 -8
  128. package/services/wiki/wiki.ts +8 -8
  129. package/svcs.ts +95 -3
  130. package/resources/centrum/attributes.ts +0 -183
  131. package/resources/documents/signoff.ts +0 -55
@@ -12,6 +12,9 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
14
  import { BannerMessage } from "../settings/banner";
15
+ import { Duration } from "../../google/protobuf/duration";
16
+ import { Data } from "../settings/data";
17
+ import { QuickButtons } from "../settings/config";
15
18
  /**
16
19
  * @generated from protobuf message resources.clientconfig.ClientConfig
17
20
  */
@@ -25,9 +28,9 @@ export interface ClientConfig {
25
28
  */
26
29
  defaultLocale: string;
27
30
  /**
28
- * @generated from protobuf field: resources.clientconfig.LoginConfig login = 3
31
+ * @generated from protobuf field: resources.clientconfig.Auth auth = 3
29
32
  */
30
- login?: LoginConfig;
33
+ auth?: Auth;
31
34
  /**
32
35
  * @generated from protobuf field: resources.clientconfig.Discord discord = 4
33
36
  */
@@ -52,11 +55,19 @@ export interface ClientConfig {
52
55
  * @generated from protobuf field: resources.clientconfig.Display display = 9
53
56
  */
54
57
  display?: Display;
58
+ /**
59
+ * @generated from protobuf field: resources.settings.QuickButtons quick_buttons = 11
60
+ */
61
+ quickButtons?: QuickButtons;
62
+ /**
63
+ * @generated from protobuf field: resources.settings.Data data = 12
64
+ */
65
+ data?: Data;
55
66
  }
56
67
  /**
57
- * @generated from protobuf message resources.clientconfig.LoginConfig
68
+ * @generated from protobuf message resources.clientconfig.Auth
58
69
  */
59
- export interface LoginConfig {
70
+ export interface Auth {
60
71
  /**
61
72
  * @generated from protobuf field: bool signup_enabled = 1
62
73
  */
@@ -130,10 +141,6 @@ export interface Links {
130
141
  * @generated from protobuf message resources.clientconfig.FeatureGates
131
142
  */
132
143
  export interface FeatureGates {
133
- /**
134
- * @generated from protobuf field: bool image_proxy = 1
135
- */
136
- imageProxy: boolean;
137
144
  }
138
145
  /**
139
146
  * @generated from protobuf message resources.clientconfig.Game
@@ -147,6 +154,35 @@ export interface Game {
147
154
  * @generated from protobuf field: int32 start_job_grade = 2
148
155
  */
149
156
  startJobGrade: number;
157
+ /**
158
+ * @generated from protobuf field: resources.clientconfig.Livemap livemap = 3
159
+ */
160
+ livemap?: Livemap;
161
+ /**
162
+ * @generated from protobuf field: bool max_wanted_duration_user_enabled = 4
163
+ */
164
+ maxWantedDurationUserEnabled: boolean;
165
+ /**
166
+ * @generated from protobuf field: optional google.protobuf.Duration max_wanted_duration_user = 5
167
+ */
168
+ maxWantedDurationUser?: Duration;
169
+ /**
170
+ * @generated from protobuf field: bool max_wanted_duration_vehicle_enabled = 6
171
+ */
172
+ maxWantedDurationVehicleEnabled: boolean;
173
+ /**
174
+ * @generated from protobuf field: optional google.protobuf.Duration max_wanted_duration_vehicle = 7
175
+ */
176
+ maxWantedDurationVehicle?: Duration;
177
+ }
178
+ /**
179
+ * @generated from protobuf message resources.clientconfig.Livemap
180
+ */
181
+ export interface Livemap {
182
+ /**
183
+ * @generated from protobuf field: bool enable_cayo_perico = 1
184
+ */
185
+ enableCayoPerico: boolean;
150
186
  }
151
187
  /**
152
188
  * @generated from protobuf message resources.clientconfig.System
@@ -207,13 +243,15 @@ class ClientConfig$Type extends MessageType<ClientConfig> {
207
243
  super("resources.clientconfig.ClientConfig", [
208
244
  { no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
209
245
  { no: 2, name: "default_locale", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "tagger.tags": "json:\"defaultLocale\"" } },
210
- { no: 3, name: "login", kind: "message", T: () => LoginConfig },
246
+ { no: 3, name: "auth", kind: "message", T: () => Auth },
211
247
  { no: 4, name: "discord", kind: "message", T: () => Discord },
212
248
  { no: 5, name: "website", kind: "message", T: () => Website },
213
249
  { no: 6, name: "feature_gates", kind: "message", T: () => FeatureGates, options: { "tagger.tags": "json:\"featureGates\"" } },
214
250
  { no: 7, name: "game", kind: "message", T: () => Game },
215
251
  { no: 8, name: "system", kind: "message", T: () => System },
216
- { no: 9, name: "display", kind: "message", T: () => Display, options: { "tagger.tags": "json:\"display\"" } }
252
+ { no: 9, name: "display", kind: "message", T: () => Display, options: { "tagger.tags": "json:\"display\"" } },
253
+ { no: 11, name: "quick_buttons", kind: "message", T: () => QuickButtons, options: { "tagger.tags": "json:\"quickButtons\"" } },
254
+ { no: 12, name: "data", kind: "message", T: () => Data, options: { "tagger.tags": "json:\"data\"" } }
217
255
  ]);
218
256
  }
219
257
  create(value?: PartialMessage<ClientConfig>): ClientConfig {
@@ -235,8 +273,8 @@ class ClientConfig$Type extends MessageType<ClientConfig> {
235
273
  case /* string default_locale */ 2:
236
274
  message.defaultLocale = reader.string();
237
275
  break;
238
- case /* resources.clientconfig.LoginConfig login */ 3:
239
- message.login = LoginConfig.internalBinaryRead(reader, reader.uint32(), options, message.login);
276
+ case /* resources.clientconfig.Auth auth */ 3:
277
+ message.auth = Auth.internalBinaryRead(reader, reader.uint32(), options, message.auth);
240
278
  break;
241
279
  case /* resources.clientconfig.Discord discord */ 4:
242
280
  message.discord = Discord.internalBinaryRead(reader, reader.uint32(), options, message.discord);
@@ -256,6 +294,12 @@ class ClientConfig$Type extends MessageType<ClientConfig> {
256
294
  case /* resources.clientconfig.Display display */ 9:
257
295
  message.display = Display.internalBinaryRead(reader, reader.uint32(), options, message.display);
258
296
  break;
297
+ case /* resources.settings.QuickButtons quick_buttons */ 11:
298
+ message.quickButtons = QuickButtons.internalBinaryRead(reader, reader.uint32(), options, message.quickButtons);
299
+ break;
300
+ case /* resources.settings.Data data */ 12:
301
+ message.data = Data.internalBinaryRead(reader, reader.uint32(), options, message.data);
302
+ break;
259
303
  default:
260
304
  let u = options.readUnknownField;
261
305
  if (u === "throw")
@@ -274,9 +318,9 @@ class ClientConfig$Type extends MessageType<ClientConfig> {
274
318
  /* string default_locale = 2; */
275
319
  if (message.defaultLocale !== "")
276
320
  writer.tag(2, WireType.LengthDelimited).string(message.defaultLocale);
277
- /* resources.clientconfig.LoginConfig login = 3; */
278
- if (message.login)
279
- LoginConfig.internalBinaryWrite(message.login, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
321
+ /* resources.clientconfig.Auth auth = 3; */
322
+ if (message.auth)
323
+ Auth.internalBinaryWrite(message.auth, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
280
324
  /* resources.clientconfig.Discord discord = 4; */
281
325
  if (message.discord)
282
326
  Discord.internalBinaryWrite(message.discord, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
@@ -295,6 +339,12 @@ class ClientConfig$Type extends MessageType<ClientConfig> {
295
339
  /* resources.clientconfig.Display display = 9; */
296
340
  if (message.display)
297
341
  Display.internalBinaryWrite(message.display, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
342
+ /* resources.settings.QuickButtons quick_buttons = 11; */
343
+ if (message.quickButtons)
344
+ QuickButtons.internalBinaryWrite(message.quickButtons, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
345
+ /* resources.settings.Data data = 12; */
346
+ if (message.data)
347
+ Data.internalBinaryWrite(message.data, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
298
348
  let u = options.writeUnknownFields;
299
349
  if (u !== false)
300
350
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -306,24 +356,24 @@ class ClientConfig$Type extends MessageType<ClientConfig> {
306
356
  */
307
357
  export const ClientConfig = new ClientConfig$Type();
308
358
  // @generated message type with reflection information, may provide speed optimized methods
309
- class LoginConfig$Type extends MessageType<LoginConfig> {
359
+ class Auth$Type extends MessageType<Auth> {
310
360
  constructor() {
311
- super("resources.clientconfig.LoginConfig", [
361
+ super("resources.clientconfig.Auth", [
312
362
  { no: 1, name: "signup_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "tagger.tags": "json:\"signupEnabled\"" } },
313
363
  { no: 2, name: "last_char_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "tagger.tags": "json:\"lastCharLock\"" } },
314
364
  { no: 3, name: "providers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProviderConfig, options: { "tagger.tags": "json:\"providers\"" } }
315
365
  ]);
316
366
  }
317
- create(value?: PartialMessage<LoginConfig>): LoginConfig {
367
+ create(value?: PartialMessage<Auth>): Auth {
318
368
  const message = globalThis.Object.create((this.messagePrototype!));
319
369
  message.signupEnabled = false;
320
370
  message.lastCharLock = false;
321
371
  message.providers = [];
322
372
  if (value !== undefined)
323
- reflectionMergePartial<LoginConfig>(this, message, value);
373
+ reflectionMergePartial<Auth>(this, message, value);
324
374
  return message;
325
375
  }
326
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginConfig): LoginConfig {
376
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Auth): Auth {
327
377
  let message = target ?? this.create(), end = reader.pos + length;
328
378
  while (reader.pos < end) {
329
379
  let [fieldNo, wireType] = reader.tag();
@@ -348,7 +398,7 @@ class LoginConfig$Type extends MessageType<LoginConfig> {
348
398
  }
349
399
  return message;
350
400
  }
351
- internalBinaryWrite(message: LoginConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
401
+ internalBinaryWrite(message: Auth, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
352
402
  /* bool signup_enabled = 1; */
353
403
  if (message.signupEnabled !== false)
354
404
  writer.tag(1, WireType.Varint).bool(message.signupEnabled);
@@ -365,9 +415,9 @@ class LoginConfig$Type extends MessageType<LoginConfig> {
365
415
  }
366
416
  }
367
417
  /**
368
- * @generated MessageType for protobuf message resources.clientconfig.LoginConfig
418
+ * @generated MessageType for protobuf message resources.clientconfig.Auth
369
419
  */
370
- export const LoginConfig = new LoginConfig$Type();
420
+ export const Auth = new Auth$Type();
371
421
  // @generated message type with reflection information, may provide speed optimized methods
372
422
  class ProviderConfig$Type extends MessageType<ProviderConfig> {
373
423
  constructor() {
@@ -595,13 +645,10 @@ export const Links = new Links$Type();
595
645
  // @generated message type with reflection information, may provide speed optimized methods
596
646
  class FeatureGates$Type extends MessageType<FeatureGates> {
597
647
  constructor() {
598
- super("resources.clientconfig.FeatureGates", [
599
- { no: 1, name: "image_proxy", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "tagger.tags": "json:\"imageProxy\"" } }
600
- ]);
648
+ super("resources.clientconfig.FeatureGates", []);
601
649
  }
602
650
  create(value?: PartialMessage<FeatureGates>): FeatureGates {
603
651
  const message = globalThis.Object.create((this.messagePrototype!));
604
- message.imageProxy = false;
605
652
  if (value !== undefined)
606
653
  reflectionMergePartial<FeatureGates>(this, message, value);
607
654
  return message;
@@ -611,9 +658,6 @@ class FeatureGates$Type extends MessageType<FeatureGates> {
611
658
  while (reader.pos < end) {
612
659
  let [fieldNo, wireType] = reader.tag();
613
660
  switch (fieldNo) {
614
- case /* bool image_proxy */ 1:
615
- message.imageProxy = reader.bool();
616
- break;
617
661
  default:
618
662
  let u = options.readUnknownField;
619
663
  if (u === "throw")
@@ -626,9 +670,6 @@ class FeatureGates$Type extends MessageType<FeatureGates> {
626
670
  return message;
627
671
  }
628
672
  internalBinaryWrite(message: FeatureGates, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
629
- /* bool image_proxy = 1; */
630
- if (message.imageProxy !== false)
631
- writer.tag(1, WireType.Varint).bool(message.imageProxy);
632
673
  let u = options.writeUnknownFields;
633
674
  if (u !== false)
634
675
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -644,13 +685,20 @@ class Game$Type extends MessageType<Game> {
644
685
  constructor() {
645
686
  super("resources.clientconfig.Game", [
646
687
  { no: 1, name: "unemployed_job_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "tagger.tags": "json:\"unemployedJobName\"" } },
647
- { no: 2, name: "start_job_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "tagger.tags": "json:\"startJobGrade\"" } }
688
+ { no: 2, name: "start_job_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "tagger.tags": "json:\"startJobGrade\"" } },
689
+ { no: 3, name: "livemap", kind: "message", T: () => Livemap },
690
+ { no: 4, name: "max_wanted_duration_user_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
691
+ { no: 5, name: "max_wanted_duration_user", kind: "message", T: () => Duration },
692
+ { no: 6, name: "max_wanted_duration_vehicle_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
693
+ { no: 7, name: "max_wanted_duration_vehicle", kind: "message", T: () => Duration }
648
694
  ]);
649
695
  }
650
696
  create(value?: PartialMessage<Game>): Game {
651
697
  const message = globalThis.Object.create((this.messagePrototype!));
652
698
  message.unemployedJobName = "";
653
699
  message.startJobGrade = 0;
700
+ message.maxWantedDurationUserEnabled = false;
701
+ message.maxWantedDurationVehicleEnabled = false;
654
702
  if (value !== undefined)
655
703
  reflectionMergePartial<Game>(this, message, value);
656
704
  return message;
@@ -666,6 +714,21 @@ class Game$Type extends MessageType<Game> {
666
714
  case /* int32 start_job_grade */ 2:
667
715
  message.startJobGrade = reader.int32();
668
716
  break;
717
+ case /* resources.clientconfig.Livemap livemap */ 3:
718
+ message.livemap = Livemap.internalBinaryRead(reader, reader.uint32(), options, message.livemap);
719
+ break;
720
+ case /* bool max_wanted_duration_user_enabled */ 4:
721
+ message.maxWantedDurationUserEnabled = reader.bool();
722
+ break;
723
+ case /* optional google.protobuf.Duration max_wanted_duration_user */ 5:
724
+ message.maxWantedDurationUser = Duration.internalBinaryRead(reader, reader.uint32(), options, message.maxWantedDurationUser);
725
+ break;
726
+ case /* bool max_wanted_duration_vehicle_enabled */ 6:
727
+ message.maxWantedDurationVehicleEnabled = reader.bool();
728
+ break;
729
+ case /* optional google.protobuf.Duration max_wanted_duration_vehicle */ 7:
730
+ message.maxWantedDurationVehicle = Duration.internalBinaryRead(reader, reader.uint32(), options, message.maxWantedDurationVehicle);
731
+ break;
669
732
  default:
670
733
  let u = options.readUnknownField;
671
734
  if (u === "throw")
@@ -684,6 +747,21 @@ class Game$Type extends MessageType<Game> {
684
747
  /* int32 start_job_grade = 2; */
685
748
  if (message.startJobGrade !== 0)
686
749
  writer.tag(2, WireType.Varint).int32(message.startJobGrade);
750
+ /* resources.clientconfig.Livemap livemap = 3; */
751
+ if (message.livemap)
752
+ Livemap.internalBinaryWrite(message.livemap, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
753
+ /* bool max_wanted_duration_user_enabled = 4; */
754
+ if (message.maxWantedDurationUserEnabled !== false)
755
+ writer.tag(4, WireType.Varint).bool(message.maxWantedDurationUserEnabled);
756
+ /* optional google.protobuf.Duration max_wanted_duration_user = 5; */
757
+ if (message.maxWantedDurationUser)
758
+ Duration.internalBinaryWrite(message.maxWantedDurationUser, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
759
+ /* bool max_wanted_duration_vehicle_enabled = 6; */
760
+ if (message.maxWantedDurationVehicleEnabled !== false)
761
+ writer.tag(6, WireType.Varint).bool(message.maxWantedDurationVehicleEnabled);
762
+ /* optional google.protobuf.Duration max_wanted_duration_vehicle = 7; */
763
+ if (message.maxWantedDurationVehicle)
764
+ Duration.internalBinaryWrite(message.maxWantedDurationVehicle, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
687
765
  let u = options.writeUnknownFields;
688
766
  if (u !== false)
689
767
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -695,6 +773,53 @@ class Game$Type extends MessageType<Game> {
695
773
  */
696
774
  export const Game = new Game$Type();
697
775
  // @generated message type with reflection information, may provide speed optimized methods
776
+ class Livemap$Type extends MessageType<Livemap> {
777
+ constructor() {
778
+ super("resources.clientconfig.Livemap", [
779
+ { no: 1, name: "enable_cayo_perico", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
780
+ ]);
781
+ }
782
+ create(value?: PartialMessage<Livemap>): Livemap {
783
+ const message = globalThis.Object.create((this.messagePrototype!));
784
+ message.enableCayoPerico = false;
785
+ if (value !== undefined)
786
+ reflectionMergePartial<Livemap>(this, message, value);
787
+ return message;
788
+ }
789
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Livemap): Livemap {
790
+ let message = target ?? this.create(), end = reader.pos + length;
791
+ while (reader.pos < end) {
792
+ let [fieldNo, wireType] = reader.tag();
793
+ switch (fieldNo) {
794
+ case /* bool enable_cayo_perico */ 1:
795
+ message.enableCayoPerico = reader.bool();
796
+ break;
797
+ default:
798
+ let u = options.readUnknownField;
799
+ if (u === "throw")
800
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
801
+ let d = reader.skip(wireType);
802
+ if (u !== false)
803
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
804
+ }
805
+ }
806
+ return message;
807
+ }
808
+ internalBinaryWrite(message: Livemap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
809
+ /* bool enable_cayo_perico = 1; */
810
+ if (message.enableCayoPerico !== false)
811
+ writer.tag(1, WireType.Varint).bool(message.enableCayoPerico);
812
+ let u = options.writeUnknownFields;
813
+ if (u !== false)
814
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
815
+ return writer;
816
+ }
817
+ }
818
+ /**
819
+ * @generated MessageType for protobuf message resources.clientconfig.Livemap
820
+ */
821
+ export const Livemap = new Livemap$Type();
822
+ // @generated message type with reflection information, may provide speed optimized methods
698
823
  class System$Type extends MessageType<System> {
699
824
  constructor() {
700
825
  super("resources.clientconfig.System", [
@@ -159,10 +159,6 @@ export interface CollabHandshake {
159
159
  * @generated from protobuf field: uint64 client_id = 1
160
160
  */
161
161
  clientId: number;
162
- /**
163
- * @generated from protobuf field: bool first = 2
164
- */
165
- first: boolean;
166
162
  }
167
163
  /**
168
164
  * @generated from protobuf message resources.collab.TargetSaved
@@ -344,7 +340,7 @@ class SyncStep$Type extends MessageType<SyncStep> {
344
340
  constructor() {
345
341
  super("resources.collab.SyncStep", [
346
342
  { no: 1, name: "step", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { in: [1, 2] } } } },
347
- { no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
343
+ { no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/, options: { "codegen.audit.redacted": true } },
348
344
  { no: 3, name: "receiver_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { uint64: { gt: "0" } } } }
349
345
  ]);
350
346
  }
@@ -405,7 +401,7 @@ export const SyncStep = new SyncStep$Type();
405
401
  class YjsUpdate$Type extends MessageType<YjsUpdate> {
406
402
  constructor() {
407
403
  super("resources.collab.YjsUpdate", [
408
- { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
404
+ { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/, options: { "codegen.audit.redacted": true } }
409
405
  ]);
410
406
  }
411
407
  create(value?: PartialMessage<YjsUpdate>): YjsUpdate {
@@ -452,7 +448,7 @@ export const YjsUpdate = new YjsUpdate$Type();
452
448
  class AwarenessPing$Type extends MessageType<AwarenessPing> {
453
449
  constructor() {
454
450
  super("resources.collab.AwarenessPing", [
455
- { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
451
+ { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/, options: { "codegen.audit.redacted": true } }
456
452
  ]);
457
453
  }
458
454
  create(value?: PartialMessage<AwarenessPing>): AwarenessPing {
@@ -617,14 +613,12 @@ export const ServerPacket = new ServerPacket$Type();
617
613
  class CollabHandshake$Type extends MessageType<CollabHandshake> {
618
614
  constructor() {
619
615
  super("resources.collab.CollabHandshake", [
620
- { no: 1, name: "client_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
621
- { no: 2, name: "first", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
616
+ { no: 1, name: "client_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
622
617
  ]);
623
618
  }
624
619
  create(value?: PartialMessage<CollabHandshake>): CollabHandshake {
625
620
  const message = globalThis.Object.create((this.messagePrototype!));
626
621
  message.clientId = 0;
627
- message.first = false;
628
622
  if (value !== undefined)
629
623
  reflectionMergePartial<CollabHandshake>(this, message, value);
630
624
  return message;
@@ -637,9 +631,6 @@ class CollabHandshake$Type extends MessageType<CollabHandshake> {
637
631
  case /* uint64 client_id */ 1:
638
632
  message.clientId = reader.uint64().toNumber();
639
633
  break;
640
- case /* bool first */ 2:
641
- message.first = reader.bool();
642
- break;
643
634
  default:
644
635
  let u = options.readUnknownField;
645
636
  if (u === "throw")
@@ -655,9 +646,6 @@ class CollabHandshake$Type extends MessageType<CollabHandshake> {
655
646
  /* uint64 client_id = 1; */
656
647
  if (message.clientId !== 0)
657
648
  writer.tag(1, WireType.Varint).uint64(message.clientId);
658
- /* bool first = 2; */
659
- if (message.first !== false)
660
- writer.tag(2, WireType.Varint).bool(message.first);
661
649
  let u = options.writeUnknownFields;
662
650
  if (u !== false)
663
651
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);