@fivenet-app/gen 2026.5.0 → 2026.7.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 (87) hide show
  1. package/clients.ts +6 -0
  2. package/codegen/perms/perms.ts +74 -40
  3. package/codegen/sanitizer/sanitizer.ts +6 -0
  4. package/google/protobuf/descriptor.ts +11 -3
  5. package/google/protobuf/timestamp.ts +7 -6
  6. package/package.json +1 -1
  7. package/perms.ts +387 -41
  8. package/resources/access/access.ts +481 -0
  9. package/resources/accounts/accounts.ts +41 -30
  10. package/resources/audit/audit.ts +5 -1
  11. package/resources/calendar/access/access.ts +0 -330
  12. package/resources/calendar/calendar.ts +307 -25
  13. package/resources/calendar/entries/entries.ts +204 -11
  14. package/resources/centrum/units/access/access.ts +0 -373
  15. package/resources/centrum/units/units.ts +20 -8
  16. package/resources/citizens/labels/access.ts +0 -191
  17. package/resources/citizens/labels/labels.ts +20 -8
  18. package/resources/common/content/diff_activity.ts +1 -1
  19. package/resources/cron/cron.ts +1 -1
  20. package/resources/documents/access/access.ts +0 -329
  21. package/resources/documents/activity/activity.ts +49 -45
  22. package/resources/documents/documents.ts +1 -1
  23. package/resources/documents/requests/requests.ts +1 -1
  24. package/resources/documents/stamps/stamp.ts +40 -210
  25. package/resources/documents/templates/templates.ts +158 -318
  26. package/resources/jobs/colleagues/activity/activity.ts +2 -2
  27. package/resources/jobs/conduct/conduct.ts +2 -2
  28. package/resources/jobs/jobs.ts +22 -0
  29. package/resources/jobs/labels/labels.ts +9 -9
  30. package/resources/laws/laws.ts +96 -50
  31. package/resources/livemap/markers/marker_marker.ts +311 -4
  32. package/resources/mailer/access/access.ts +0 -457
  33. package/resources/mailer/emails/email.ts +4 -4
  34. package/resources/notifications/events/events.ts +18 -1
  35. package/resources/permissions/attributes/attributes.ts +51 -39
  36. package/resources/permissions/permissions/permissions.ts +46 -34
  37. package/resources/qualifications/access/access.ts +0 -248
  38. package/resources/qualifications/qualifications.ts +9 -9
  39. package/resources/settings/config.ts +53 -5
  40. package/resources/settings/data.ts +1 -1
  41. package/resources/stats/stats.ts +32 -20
  42. package/resources/sync/data/data.ts +22 -10
  43. package/resources/userinfo/userinfo.ts +202 -51
  44. package/resources/users/activity/activity.ts +70 -77
  45. package/resources/wiki/access/access.ts +0 -330
  46. package/resources/wiki/activity/activity.ts +45 -45
  47. package/resources/wiki/page.ts +9 -9
  48. package/services/auth/auth.ts +1 -1
  49. package/services/calendar/calendar.ts +1 -1
  50. package/services/calendar/entries.ts +13 -2
  51. package/services/centrum/dispatches.ts +32 -12
  52. package/services/centrum/units.client.ts +15 -2
  53. package/services/centrum/units.ts +237 -129
  54. package/services/citizens/citizens.ts +1 -1
  55. package/services/citizens/labels.client.ts +13 -0
  56. package/services/citizens/labels.ts +135 -4
  57. package/services/completor/completor.client.ts +0 -13
  58. package/services/completor/completor.ts +2 -116
  59. package/services/documents/approval.ts +20 -9
  60. package/services/documents/categories.ts +1 -1
  61. package/services/documents/collab.ts +1 -1
  62. package/services/documents/comments.ts +4 -4
  63. package/services/documents/documents.ts +38 -38
  64. package/services/documents/stats.ts +14 -2
  65. package/services/documents/templates.ts +1 -1
  66. package/services/filestore/filestore.ts +4 -4
  67. package/services/jobs/colleagues.ts +4 -4
  68. package/services/jobs/conduct.ts +2 -2
  69. package/services/jobs/groups.client.ts +22 -0
  70. package/services/jobs/groups.ts +9 -0
  71. package/services/jobs/timeclock.ts +2 -2
  72. package/services/mailer/settings.ts +1 -1
  73. package/services/mailer/thread.ts +3 -3
  74. package/services/qualifications/exam.ts +5 -5
  75. package/services/qualifications/qualifications.ts +52 -34
  76. package/services/settings/accounts.ts +19 -6
  77. package/services/settings/config.ts +2 -2
  78. package/services/settings/cron.ts +2 -2
  79. package/services/settings/laws.client.ts +44 -5
  80. package/services/settings/laws.ts +357 -4
  81. package/services/settings/system.ts +6 -6
  82. package/services/sync/sync.client.ts +42 -14
  83. package/services/sync/sync.ts +162 -13
  84. package/services/wiki/collab.ts +1 -1
  85. package/services/wiki/wiki.client.ts +15 -2
  86. package/services/wiki/wiki.ts +122 -0
  87. package/svcs.ts +19 -1
@@ -87,6 +87,22 @@ export interface Auth {
87
87
  * @generated from protobuf field: bool last_char_lock = 2
88
88
  */
89
89
  lastCharLock: boolean;
90
+ /**
91
+ * @generated from protobuf field: repeated string job_admin_groups = 3
92
+ */
93
+ jobAdminGroups: string[];
94
+ /**
95
+ * @generated from protobuf field: repeated string job_admin_users = 4
96
+ */
97
+ jobAdminUsers: string[];
98
+ /**
99
+ * @generated from protobuf field: repeated string config_admin_groups = 5
100
+ */
101
+ configAdminGroups: string[];
102
+ /**
103
+ * @generated from protobuf field: repeated string config_admin_users = 6
104
+ */
105
+ configAdminUsers: string[];
90
106
  }
91
107
  /**
92
108
  * @generated from protobuf message resources.settings.Perms
@@ -386,7 +402,7 @@ export enum DiscordBotPresenceType {
386
402
  class AppConfig$Type extends MessageType<AppConfig> {
387
403
  constructor() {
388
404
  super("resources.settings.AppConfig", [
389
- { no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
405
+ { no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "100" } } } },
390
406
  { no: 8, name: "default_locale", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
391
407
  { no: 2, name: "auth", kind: "message", T: () => Auth },
392
408
  { no: 3, name: "perms", kind: "message", T: () => Perms },
@@ -526,13 +542,21 @@ class Auth$Type extends MessageType<Auth> {
526
542
  constructor() {
527
543
  super("resources.settings.Auth", [
528
544
  { no: 1, name: "signup_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
529
- { no: 2, name: "last_char_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
545
+ { no: 2, name: "last_char_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
546
+ { no: 3, name: "job_admin_groups", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } },
547
+ { no: 4, name: "job_admin_users", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } },
548
+ { no: 5, name: "config_admin_groups", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } },
549
+ { no: 6, name: "config_admin_users", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } }
530
550
  ]);
531
551
  }
532
552
  create(value?: PartialMessage<Auth>): Auth {
533
553
  const message = globalThis.Object.create((this.messagePrototype!));
534
554
  message.signupEnabled = false;
535
555
  message.lastCharLock = false;
556
+ message.jobAdminGroups = [];
557
+ message.jobAdminUsers = [];
558
+ message.configAdminGroups = [];
559
+ message.configAdminUsers = [];
536
560
  if (value !== undefined)
537
561
  reflectionMergePartial<Auth>(this, message, value);
538
562
  return message;
@@ -548,6 +572,18 @@ class Auth$Type extends MessageType<Auth> {
548
572
  case /* bool last_char_lock */ 2:
549
573
  message.lastCharLock = reader.bool();
550
574
  break;
575
+ case /* repeated string job_admin_groups */ 3:
576
+ message.jobAdminGroups.push(reader.string());
577
+ break;
578
+ case /* repeated string job_admin_users */ 4:
579
+ message.jobAdminUsers.push(reader.string());
580
+ break;
581
+ case /* repeated string config_admin_groups */ 5:
582
+ message.configAdminGroups.push(reader.string());
583
+ break;
584
+ case /* repeated string config_admin_users */ 6:
585
+ message.configAdminUsers.push(reader.string());
586
+ break;
551
587
  default:
552
588
  let u = options.readUnknownField;
553
589
  if (u === "throw")
@@ -566,6 +602,18 @@ class Auth$Type extends MessageType<Auth> {
566
602
  /* bool last_char_lock = 2; */
567
603
  if (message.lastCharLock !== false)
568
604
  writer.tag(2, WireType.Varint).bool(message.lastCharLock);
605
+ /* repeated string job_admin_groups = 3; */
606
+ for (let i = 0; i < message.jobAdminGroups.length; i++)
607
+ writer.tag(3, WireType.LengthDelimited).string(message.jobAdminGroups[i]);
608
+ /* repeated string job_admin_users = 4; */
609
+ for (let i = 0; i < message.jobAdminUsers.length; i++)
610
+ writer.tag(4, WireType.LengthDelimited).string(message.jobAdminUsers[i]);
611
+ /* repeated string config_admin_groups = 5; */
612
+ for (let i = 0; i < message.configAdminGroups.length; i++)
613
+ writer.tag(5, WireType.LengthDelimited).string(message.configAdminGroups[i]);
614
+ /* repeated string config_admin_users = 6; */
615
+ for (let i = 0; i < message.configAdminUsers.length; i++)
616
+ writer.tag(6, WireType.LengthDelimited).string(message.configAdminUsers[i]);
569
617
  let u = options.writeUnknownFields;
570
618
  if (u !== false)
571
619
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -580,7 +628,7 @@ export const Auth = new Auth$Type();
580
628
  class Perms$Type extends MessageType<Perms> {
581
629
  constructor() {
582
630
  super("resources.settings.Perms", [
583
- { no: 1, name: "default", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Perm, options: { "buf.validate.field": { repeated: { maxItems: "100" } } } }
631
+ { no: 1, name: "default", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Perm, options: { "buf.validate.field": { repeated: { maxItems: "50" } } } }
584
632
  ]);
585
633
  }
586
634
  create(value?: PartialMessage<Perms>): Perms {
@@ -683,7 +731,7 @@ class Website$Type extends MessageType<Website> {
683
731
  constructor() {
684
732
  super("resources.settings.Website", [
685
733
  { no: 1, name: "links", kind: "message", T: () => Links },
686
- { no: 2, name: "stats_page", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
734
+ { no: 2, name: "stats_page", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "tagger.tags": "json:\"statsPage\"" } }
687
735
  ]);
688
736
  }
689
737
  create(value?: PartialMessage<Website>): Website {
@@ -1050,7 +1098,7 @@ export const Discord = new Discord$Type();
1050
1098
  class DiscordBotPresence$Type extends MessageType<DiscordBotPresence> {
1051
1099
  constructor() {
1052
1100
  super("resources.settings.DiscordBotPresence", [
1053
- { no: 1, name: "type", kind: "enum", T: () => ["resources.settings.DiscordBotPresenceType", DiscordBotPresenceType, "DISCORD_BOT_PRESENCE_TYPE_"] },
1101
+ { no: 1, name: "type", kind: "enum", T: () => ["resources.settings.DiscordBotPresenceType", DiscordBotPresenceType, "DISCORD_BOT_PRESENCE_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1054
1102
  { no: 2, name: "status", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
1055
1103
  { no: 3, name: "url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
1056
1104
  ]);
@@ -45,7 +45,7 @@ export enum DataMode {
45
45
  class Data$Type extends MessageType<Data> {
46
46
  constructor() {
47
47
  super("resources.settings.Data", [
48
- { no: 1, name: "mode", kind: "enum", T: () => ["resources.settings.DataMode", DataMode, "DATA_MODE_"] }
48
+ { no: 1, name: "mode", kind: "enum", T: () => ["resources.settings.DataMode", DataMode, "DATA_MODE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
49
49
  ]);
50
50
  }
51
51
  create(value?: PartialMessage<Data>): Data {
@@ -77,19 +77,23 @@ export interface CategoryValue {
77
77
  */
78
78
  id: number;
79
79
  /**
80
- * @generated from protobuf field: string name = 2
80
+ * @generated from protobuf field: string job = 2
81
+ */
82
+ job: string;
83
+ /**
84
+ * @generated from protobuf field: string name = 3
81
85
  */
82
86
  name: string;
83
87
  /**
84
- * @generated from protobuf field: optional string color = 3
88
+ * @generated from protobuf field: optional string color = 4
85
89
  */
86
90
  color?: string;
87
91
  /**
88
- * @generated from protobuf field: optional string icon = 4
92
+ * @generated from protobuf field: optional string icon = 5
89
93
  */
90
94
  icon?: string;
91
95
  /**
92
- * @generated from protobuf field: int64 value = 5
96
+ * @generated from protobuf field: int64 value = 6
93
97
  */
94
98
  value: number;
95
99
  }
@@ -373,15 +377,17 @@ class CategoryValue$Type extends MessageType<CategoryValue> {
373
377
  constructor() {
374
378
  super("resources.stats.CategoryValue", [
375
379
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
376
- { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
377
- { no: 3, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
378
- { no: 4, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
379
- { no: 5, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
380
+ { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
381
+ { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
382
+ { no: 4, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
383
+ { no: 5, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
384
+ { no: 6, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
380
385
  ]);
381
386
  }
382
387
  create(value?: PartialMessage<CategoryValue>): CategoryValue {
383
388
  const message = globalThis.Object.create((this.messagePrototype!));
384
389
  message.id = 0;
390
+ message.job = "";
385
391
  message.name = "";
386
392
  message.value = 0;
387
393
  if (value !== undefined)
@@ -396,16 +402,19 @@ class CategoryValue$Type extends MessageType<CategoryValue> {
396
402
  case /* int64 id */ 1:
397
403
  message.id = reader.int64().toNumber();
398
404
  break;
399
- case /* string name */ 2:
405
+ case /* string job */ 2:
406
+ message.job = reader.string();
407
+ break;
408
+ case /* string name */ 3:
400
409
  message.name = reader.string();
401
410
  break;
402
- case /* optional string color */ 3:
411
+ case /* optional string color */ 4:
403
412
  message.color = reader.string();
404
413
  break;
405
- case /* optional string icon */ 4:
414
+ case /* optional string icon */ 5:
406
415
  message.icon = reader.string();
407
416
  break;
408
- case /* int64 value */ 5:
417
+ case /* int64 value */ 6:
409
418
  message.value = reader.int64().toNumber();
410
419
  break;
411
420
  default:
@@ -423,18 +432,21 @@ class CategoryValue$Type extends MessageType<CategoryValue> {
423
432
  /* int64 id = 1; */
424
433
  if (message.id !== 0)
425
434
  writer.tag(1, WireType.Varint).int64(message.id);
426
- /* string name = 2; */
435
+ /* string job = 2; */
436
+ if (message.job !== "")
437
+ writer.tag(2, WireType.LengthDelimited).string(message.job);
438
+ /* string name = 3; */
427
439
  if (message.name !== "")
428
- writer.tag(2, WireType.LengthDelimited).string(message.name);
429
- /* optional string color = 3; */
440
+ writer.tag(3, WireType.LengthDelimited).string(message.name);
441
+ /* optional string color = 4; */
430
442
  if (message.color !== undefined)
431
- writer.tag(3, WireType.LengthDelimited).string(message.color);
432
- /* optional string icon = 4; */
443
+ writer.tag(4, WireType.LengthDelimited).string(message.color);
444
+ /* optional string icon = 5; */
433
445
  if (message.icon !== undefined)
434
- writer.tag(4, WireType.LengthDelimited).string(message.icon);
435
- /* int64 value = 5; */
446
+ writer.tag(5, WireType.LengthDelimited).string(message.icon);
447
+ /* int64 value = 6; */
436
448
  if (message.value !== 0)
437
- writer.tag(5, WireType.Varint).int64(message.value);
449
+ writer.tag(6, WireType.Varint).int64(message.value);
438
450
  let u = options.writeUnknownFields;
439
451
  if (u !== false)
440
452
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -129,9 +129,9 @@ export interface DeleteVehicles {
129
129
  */
130
130
  export interface LastCharID {
131
131
  /**
132
- * @generated from protobuf field: string identifier = 1
132
+ * @generated from protobuf field: string license = 1
133
133
  */
134
- identifier: string;
134
+ license: string;
135
135
  /**
136
136
  * @generated from protobuf field: optional int32 last_char_id = 2
137
137
  */
@@ -145,6 +145,10 @@ export interface DataAccounts {
145
145
  * @generated from protobuf field: repeated resources.sync.activity.AccountUpdate account_updates = 1
146
146
  */
147
147
  accountUpdates: AccountUpdate[];
148
+ /**
149
+ * @generated from protobuf field: bool clear = 2
150
+ */
151
+ clear: boolean;
148
152
  }
149
153
  /**
150
154
  * Detailed user information for sync purposes
@@ -714,13 +718,13 @@ export const DeleteVehicles = new DeleteVehicles$Type();
714
718
  class LastCharID$Type extends MessageType<LastCharID> {
715
719
  constructor() {
716
720
  super("resources.sync.data.LastCharID", [
717
- { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
721
+ { no: 1, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
718
722
  { no: 2, name: "last_char_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } }
719
723
  ]);
720
724
  }
721
725
  create(value?: PartialMessage<LastCharID>): LastCharID {
722
726
  const message = globalThis.Object.create((this.messagePrototype!));
723
- message.identifier = "";
727
+ message.license = "";
724
728
  if (value !== undefined)
725
729
  reflectionMergePartial<LastCharID>(this, message, value);
726
730
  return message;
@@ -730,8 +734,8 @@ class LastCharID$Type extends MessageType<LastCharID> {
730
734
  while (reader.pos < end) {
731
735
  let [fieldNo, wireType] = reader.tag();
732
736
  switch (fieldNo) {
733
- case /* string identifier */ 1:
734
- message.identifier = reader.string();
737
+ case /* string license */ 1:
738
+ message.license = reader.string();
735
739
  break;
736
740
  case /* optional int32 last_char_id */ 2:
737
741
  message.lastCharId = reader.int32();
@@ -748,9 +752,9 @@ class LastCharID$Type extends MessageType<LastCharID> {
748
752
  return message;
749
753
  }
750
754
  internalBinaryWrite(message: LastCharID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
751
- /* string identifier = 1; */
752
- if (message.identifier !== "")
753
- writer.tag(1, WireType.LengthDelimited).string(message.identifier);
755
+ /* string license = 1; */
756
+ if (message.license !== "")
757
+ writer.tag(1, WireType.LengthDelimited).string(message.license);
754
758
  /* optional int32 last_char_id = 2; */
755
759
  if (message.lastCharId !== undefined)
756
760
  writer.tag(2, WireType.Varint).int32(message.lastCharId);
@@ -768,12 +772,14 @@ export const LastCharID = new LastCharID$Type();
768
772
  class DataAccounts$Type extends MessageType<DataAccounts> {
769
773
  constructor() {
770
774
  super("resources.sync.data.DataAccounts", [
771
- { no: 1, name: "account_updates", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AccountUpdate, options: { "buf.validate.field": { repeated: { maxItems: "200" } } } }
775
+ { no: 1, name: "account_updates", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AccountUpdate, options: { "buf.validate.field": { repeated: { maxItems: "200" } } } },
776
+ { no: 2, name: "clear", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
772
777
  ]);
773
778
  }
774
779
  create(value?: PartialMessage<DataAccounts>): DataAccounts {
775
780
  const message = globalThis.Object.create((this.messagePrototype!));
776
781
  message.accountUpdates = [];
782
+ message.clear = false;
777
783
  if (value !== undefined)
778
784
  reflectionMergePartial<DataAccounts>(this, message, value);
779
785
  return message;
@@ -786,6 +792,9 @@ class DataAccounts$Type extends MessageType<DataAccounts> {
786
792
  case /* repeated resources.sync.activity.AccountUpdate account_updates */ 1:
787
793
  message.accountUpdates.push(AccountUpdate.internalBinaryRead(reader, reader.uint32(), options));
788
794
  break;
795
+ case /* bool clear */ 2:
796
+ message.clear = reader.bool();
797
+ break;
789
798
  default:
790
799
  let u = options.readUnknownField;
791
800
  if (u === "throw")
@@ -801,6 +810,9 @@ class DataAccounts$Type extends MessageType<DataAccounts> {
801
810
  /* repeated resources.sync.activity.AccountUpdate account_updates = 1; */
802
811
  for (let i = 0; i < message.accountUpdates.length; i++)
803
812
  AccountUpdate.internalBinaryWrite(message.accountUpdates[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
813
+ /* bool clear = 2; */
814
+ if (message.clear !== false)
815
+ writer.tag(2, WireType.Varint).bool(message.clear);
804
816
  let u = options.writeUnknownFields;
805
817
  if (u !== false)
806
818
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);