@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
@@ -1,5 +1,5 @@
1
1
  // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
- // @generated from protobuf file "resources/documents/access.proto" (package "resources.documents", syntax proto3)
2
+ // @generated from protobuf file "resources/documents/access/access.proto" (package "resources.documents.access", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -11,33 +11,28 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { UserShort } from "../users/users";
15
- import { Timestamp } from "../timestamp/timestamp";
14
+ import { UserShort } from "../../users/short/user";
16
15
  /**
17
- * @generated from protobuf message resources.documents.DocumentAccess
16
+ * @generated from protobuf message resources.documents.access.DocumentAccess
18
17
  */
19
18
  export interface DocumentAccess {
20
19
  /**
21
- * @generated from protobuf field: repeated resources.documents.DocumentJobAccess jobs = 1
20
+ * @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess jobs = 1
22
21
  */
23
22
  jobs: DocumentJobAccess[];
24
23
  /**
25
- * @generated from protobuf field: repeated resources.documents.DocumentUserAccess users = 2
24
+ * @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess users = 2
26
25
  */
27
26
  users: DocumentUserAccess[];
28
27
  }
29
28
  /**
30
- * @generated from protobuf message resources.documents.DocumentJobAccess
29
+ * @generated from protobuf message resources.documents.access.DocumentJobAccess
31
30
  */
32
31
  export interface DocumentJobAccess {
33
32
  /**
34
33
  * @generated from protobuf field: int64 id = 1
35
34
  */
36
35
  id: number;
37
- /**
38
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
39
- */
40
- createdAt?: Timestamp;
41
36
  /**
42
37
  * @generated from protobuf field: int64 target_id = 3
43
38
  */
@@ -59,7 +54,7 @@ export interface DocumentJobAccess {
59
54
  */
60
55
  jobGradeLabel?: string;
61
56
  /**
62
- * @generated from protobuf field: resources.documents.AccessLevel access = 8
57
+ * @generated from protobuf field: resources.documents.access.AccessLevel access = 8
63
58
  */
64
59
  access: AccessLevel;
65
60
  /**
@@ -68,17 +63,13 @@ export interface DocumentJobAccess {
68
63
  required?: boolean;
69
64
  }
70
65
  /**
71
- * @generated from protobuf message resources.documents.DocumentUserAccess
66
+ * @generated from protobuf message resources.documents.access.DocumentUserAccess
72
67
  */
73
68
  export interface DocumentUserAccess {
74
69
  /**
75
70
  * @generated from protobuf field: int64 id = 1
76
71
  */
77
72
  id: number;
78
- /**
79
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
80
- */
81
- createdAt?: Timestamp;
82
73
  /**
83
74
  * @generated from protobuf field: int64 target_id = 3
84
75
  */
@@ -88,11 +79,11 @@ export interface DocumentUserAccess {
88
79
  */
89
80
  userId: number;
90
81
  /**
91
- * @generated from protobuf field: optional resources.users.UserShort user = 5
82
+ * @generated from protobuf field: optional resources.users.short.UserShort user = 5
92
83
  */
93
84
  user?: UserShort;
94
85
  /**
95
- * @generated from protobuf field: resources.documents.AccessLevel access = 6
86
+ * @generated from protobuf field: resources.documents.access.AccessLevel access = 6
96
87
  */
97
88
  access: AccessLevel;
98
89
  /**
@@ -101,7 +92,7 @@ export interface DocumentUserAccess {
101
92
  required?: boolean;
102
93
  }
103
94
  /**
104
- * @generated from protobuf enum resources.documents.AccessLevel
95
+ * @generated from protobuf enum resources.documents.access.AccessLevel
105
96
  */
106
97
  export enum AccessLevel {
107
98
  /**
@@ -136,7 +127,7 @@ export enum AccessLevel {
136
127
  // @generated message type with reflection information, may provide speed optimized methods
137
128
  class DocumentAccess$Type extends MessageType<DocumentAccess> {
138
129
  constructor() {
139
- super("resources.documents.DocumentAccess", [
130
+ super("resources.documents.access.DocumentAccess", [
140
131
  { no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"job_access\"" } },
141
132
  { no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"user_access\"" } }
142
133
  ], { "codegen.dbscanner.dbscanner": { enabled: true } });
@@ -154,10 +145,10 @@ class DocumentAccess$Type extends MessageType<DocumentAccess> {
154
145
  while (reader.pos < end) {
155
146
  let [fieldNo, wireType] = reader.tag();
156
147
  switch (fieldNo) {
157
- case /* repeated resources.documents.DocumentJobAccess jobs */ 1:
148
+ case /* repeated resources.documents.access.DocumentJobAccess jobs */ 1:
158
149
  message.jobs.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
159
150
  break;
160
- case /* repeated resources.documents.DocumentUserAccess users */ 2:
151
+ case /* repeated resources.documents.access.DocumentUserAccess users */ 2:
161
152
  message.users.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
162
153
  break;
163
154
  default:
@@ -172,10 +163,10 @@ class DocumentAccess$Type extends MessageType<DocumentAccess> {
172
163
  return message;
173
164
  }
174
165
  internalBinaryWrite(message: DocumentAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
175
- /* repeated resources.documents.DocumentJobAccess jobs = 1; */
166
+ /* repeated resources.documents.access.DocumentJobAccess jobs = 1; */
176
167
  for (let i = 0; i < message.jobs.length; i++)
177
168
  DocumentJobAccess.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
178
- /* repeated resources.documents.DocumentUserAccess users = 2; */
169
+ /* repeated resources.documents.access.DocumentUserAccess users = 2; */
179
170
  for (let i = 0; i < message.users.length; i++)
180
171
  DocumentUserAccess.internalBinaryWrite(message.users[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
181
172
  let u = options.writeUnknownFields;
@@ -185,21 +176,20 @@ class DocumentAccess$Type extends MessageType<DocumentAccess> {
185
176
  }
186
177
  }
187
178
  /**
188
- * @generated MessageType for protobuf message resources.documents.DocumentAccess
179
+ * @generated MessageType for protobuf message resources.documents.access.DocumentAccess
189
180
  */
190
181
  export const DocumentAccess = new DocumentAccess$Type();
191
182
  // @generated message type with reflection information, may provide speed optimized methods
192
183
  class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
193
184
  constructor() {
194
- super("resources.documents.DocumentJobAccess", [
185
+ super("resources.documents.access.DocumentJobAccess", [
195
186
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
196
- { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
197
187
  { no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
198
188
  { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
199
189
  { no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
200
190
  { no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
201
191
  { no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
202
- { no: 8, name: "access", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
192
+ { no: 8, name: "access", kind: "enum", T: () => ["resources.documents.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
203
193
  { no: 9, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
204
194
  ]);
205
195
  }
@@ -222,9 +212,6 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
222
212
  case /* int64 id */ 1:
223
213
  message.id = reader.int64().toNumber();
224
214
  break;
225
- case /* optional resources.timestamp.Timestamp created_at */ 2:
226
- message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
227
- break;
228
215
  case /* int64 target_id */ 3:
229
216
  message.targetId = reader.int64().toNumber();
230
217
  break;
@@ -240,7 +227,7 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
240
227
  case /* optional string job_grade_label */ 7:
241
228
  message.jobGradeLabel = reader.string();
242
229
  break;
243
- case /* resources.documents.AccessLevel access */ 8:
230
+ case /* resources.documents.access.AccessLevel access */ 8:
244
231
  message.access = reader.int32();
245
232
  break;
246
233
  case /* optional bool required */ 9:
@@ -261,9 +248,6 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
261
248
  /* int64 id = 1; */
262
249
  if (message.id !== 0)
263
250
  writer.tag(1, WireType.Varint).int64(message.id);
264
- /* optional resources.timestamp.Timestamp created_at = 2; */
265
- if (message.createdAt)
266
- Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
267
251
  /* int64 target_id = 3; */
268
252
  if (message.targetId !== 0)
269
253
  writer.tag(3, WireType.Varint).int64(message.targetId);
@@ -279,7 +263,7 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
279
263
  /* optional string job_grade_label = 7; */
280
264
  if (message.jobGradeLabel !== undefined)
281
265
  writer.tag(7, WireType.LengthDelimited).string(message.jobGradeLabel);
282
- /* resources.documents.AccessLevel access = 8; */
266
+ /* resources.documents.access.AccessLevel access = 8; */
283
267
  if (message.access !== 0)
284
268
  writer.tag(8, WireType.Varint).int32(message.access);
285
269
  /* optional bool required = 9; */
@@ -292,19 +276,18 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
292
276
  }
293
277
  }
294
278
  /**
295
- * @generated MessageType for protobuf message resources.documents.DocumentJobAccess
279
+ * @generated MessageType for protobuf message resources.documents.access.DocumentJobAccess
296
280
  */
297
281
  export const DocumentJobAccess = new DocumentJobAccess$Type();
298
282
  // @generated message type with reflection information, may provide speed optimized methods
299
283
  class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
300
284
  constructor() {
301
- super("resources.documents.DocumentUserAccess", [
285
+ super("resources.documents.access.DocumentUserAccess", [
302
286
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
303
- { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
304
287
  { no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
305
288
  { no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
306
289
  { no: 5, name: "user", kind: "message", T: () => UserShort },
307
- { no: 6, name: "access", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
290
+ { no: 6, name: "access", kind: "enum", T: () => ["resources.documents.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
308
291
  { no: 7, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
309
292
  ]);
310
293
  }
@@ -326,19 +309,16 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
326
309
  case /* int64 id */ 1:
327
310
  message.id = reader.int64().toNumber();
328
311
  break;
329
- case /* optional resources.timestamp.Timestamp created_at */ 2:
330
- message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
331
- break;
332
312
  case /* int64 target_id */ 3:
333
313
  message.targetId = reader.int64().toNumber();
334
314
  break;
335
315
  case /* int32 user_id */ 4:
336
316
  message.userId = reader.int32();
337
317
  break;
338
- case /* optional resources.users.UserShort user */ 5:
318
+ case /* optional resources.users.short.UserShort user */ 5:
339
319
  message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
340
320
  break;
341
- case /* resources.documents.AccessLevel access */ 6:
321
+ case /* resources.documents.access.AccessLevel access */ 6:
342
322
  message.access = reader.int32();
343
323
  break;
344
324
  case /* optional bool required */ 7:
@@ -359,19 +339,16 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
359
339
  /* int64 id = 1; */
360
340
  if (message.id !== 0)
361
341
  writer.tag(1, WireType.Varint).int64(message.id);
362
- /* optional resources.timestamp.Timestamp created_at = 2; */
363
- if (message.createdAt)
364
- Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
365
342
  /* int64 target_id = 3; */
366
343
  if (message.targetId !== 0)
367
344
  writer.tag(3, WireType.Varint).int64(message.targetId);
368
345
  /* int32 user_id = 4; */
369
346
  if (message.userId !== 0)
370
347
  writer.tag(4, WireType.Varint).int32(message.userId);
371
- /* optional resources.users.UserShort user = 5; */
348
+ /* optional resources.users.short.UserShort user = 5; */
372
349
  if (message.user)
373
350
  UserShort.internalBinaryWrite(message.user, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
374
- /* resources.documents.AccessLevel access = 6; */
351
+ /* resources.documents.access.AccessLevel access = 6; */
375
352
  if (message.access !== 0)
376
353
  writer.tag(6, WireType.Varint).int32(message.access);
377
354
  /* optional bool required = 7; */
@@ -384,6 +361,6 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
384
361
  }
385
362
  }
386
363
  /**
387
- * @generated MessageType for protobuf message resources.documents.DocumentUserAccess
364
+ * @generated MessageType for protobuf message resources.documents.access.DocumentUserAccess
388
365
  */
389
366
  export const DocumentUserAccess = new DocumentUserAccess$Type();