@fivenet-app/gen 2026.5.1 → 2026.7.2

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 (80) hide show
  1. package/clients.ts +6 -0
  2. package/codegen/perms/perms.ts +14 -2
  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 +352 -8
  8. package/resources/access/access.ts +481 -0
  9. package/resources/calendar/access/access.ts +0 -330
  10. package/resources/calendar/calendar.ts +307 -25
  11. package/resources/calendar/entries/entries.ts +204 -11
  12. package/resources/centrum/units/access/access.ts +0 -373
  13. package/resources/centrum/units/units.ts +20 -8
  14. package/resources/citizens/labels/access.ts +0 -191
  15. package/resources/citizens/labels/labels.ts +20 -8
  16. package/resources/clientconfig/clientconfig.ts +11 -0
  17. package/resources/common/content/diff_activity.ts +1 -1
  18. package/resources/cron/cron.ts +1 -1
  19. package/resources/documents/access/access.ts +0 -329
  20. package/resources/documents/activity/activity.ts +49 -45
  21. package/resources/documents/documents.ts +1 -1
  22. package/resources/documents/requests/requests.ts +1 -1
  23. package/resources/documents/stamps/stamp.ts +40 -210
  24. package/resources/documents/templates/templates.ts +158 -318
  25. package/resources/jobs/colleagues/activity/activity.ts +1 -1
  26. package/resources/jobs/conduct/conduct.ts +2 -2
  27. package/resources/jobs/labels/labels.ts +9 -9
  28. package/resources/laws/laws.ts +24 -0
  29. package/resources/livemap/markers/marker_marker.ts +311 -4
  30. package/resources/mailer/access/access.ts +0 -457
  31. package/resources/mailer/emails/email.ts +4 -4
  32. package/resources/notifications/events/events.ts +37 -2
  33. package/resources/qualifications/access/access.ts +0 -248
  34. package/resources/qualifications/qualifications.ts +9 -9
  35. package/resources/settings/config.ts +64 -5
  36. package/resources/settings/data.ts +1 -1
  37. package/resources/stats/stats.ts +32 -20
  38. package/resources/sync/data/data.ts +26 -1
  39. package/resources/timestamp/timestamp.ts +1 -1
  40. package/resources/userinfo/userinfo.ts +202 -51
  41. package/resources/users/activity/activity.ts +1 -1
  42. package/resources/vehicles/activity/activity.ts +146 -10
  43. package/resources/wiki/access/access.ts +0 -330
  44. package/resources/wiki/activity/activity.ts +45 -45
  45. package/resources/wiki/page.ts +9 -9
  46. package/services/auth/auth.client.ts +15 -2
  47. package/services/auth/auth.ts +135 -0
  48. package/services/calendar/calendar.ts +1 -1
  49. package/services/calendar/entries.ts +12 -1
  50. package/services/centrum/dispatches.ts +27 -7
  51. package/services/centrum/units.client.ts +15 -2
  52. package/services/centrum/units.ts +231 -123
  53. package/services/citizens/citizens.ts +1 -1
  54. package/services/citizens/labels.client.ts +7 -20
  55. package/services/citizens/labels.ts +35 -183
  56. package/services/documents/approval.ts +15 -4
  57. package/services/documents/collab.ts +1 -1
  58. package/services/documents/documents.ts +38 -38
  59. package/services/documents/stats.ts +14 -2
  60. package/services/filestore/filestore.ts +4 -4
  61. package/services/jobs/colleagues.ts +3 -3
  62. package/services/jobs/conduct.ts +15 -4
  63. package/services/jobs/groups.client.ts +22 -0
  64. package/services/jobs/groups.ts +9 -0
  65. package/services/jobs/timeclock.ts +2 -2
  66. package/services/mailer/thread.ts +2 -2
  67. package/services/qualifications/qualifications.ts +52 -34
  68. package/services/settings/accounts.ts +5 -5
  69. package/services/settings/config.ts +2 -2
  70. package/services/settings/cron.ts +2 -2
  71. package/services/settings/laws.client.ts +28 -2
  72. package/services/settings/laws.ts +229 -1
  73. package/services/settings/system.ts +6 -6
  74. package/services/sync/sync.client.ts +129 -20
  75. package/services/sync/sync.ts +262 -19
  76. package/services/vehicles/vehicles.client.ts +13 -0
  77. package/services/vehicles/vehicles.ts +181 -13
  78. package/services/wiki/wiki.client.ts +15 -2
  79. package/services/wiki/wiki.ts +122 -0
  80. package/svcs.ts +21 -2
@@ -2,95 +2,6 @@
2
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
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
- import { WireType } from "@protobuf-ts/runtime";
8
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
- import type { IBinaryReader } from "@protobuf-ts/runtime";
10
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
- import type { PartialMessage } from "@protobuf-ts/runtime";
12
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
- import { MessageType } from "@protobuf-ts/runtime";
14
- import { UserShort } from "../../users/short/user";
15
- /**
16
- * @generated from protobuf message resources.documents.access.DocumentAccess
17
- */
18
- export interface DocumentAccess {
19
- /**
20
- * @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess jobs = 1
21
- */
22
- jobs: DocumentJobAccess[];
23
- /**
24
- * @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess users = 2
25
- */
26
- users: DocumentUserAccess[];
27
- }
28
- /**
29
- * @generated from protobuf message resources.documents.access.DocumentJobAccess
30
- */
31
- export interface DocumentJobAccess {
32
- /**
33
- * @generated from protobuf field: int64 id = 1
34
- */
35
- id: number;
36
- /**
37
- * @generated from protobuf field: int64 target_id = 3
38
- */
39
- targetId: number;
40
- /**
41
- * @generated from protobuf field: string job = 4
42
- */
43
- job: string;
44
- /**
45
- * @generated from protobuf field: optional string job_label = 5
46
- */
47
- jobLabel?: string;
48
- /**
49
- * @generated from protobuf field: int32 minimum_grade = 6
50
- */
51
- minimumGrade: number;
52
- /**
53
- * @generated from protobuf field: optional string job_grade_label = 7
54
- */
55
- jobGradeLabel?: string;
56
- /**
57
- * @generated from protobuf field: resources.documents.access.AccessLevel access = 8
58
- */
59
- access: AccessLevel;
60
- /**
61
- * @generated from protobuf field: optional bool required = 9
62
- */
63
- required?: boolean;
64
- }
65
- /**
66
- * @generated from protobuf message resources.documents.access.DocumentUserAccess
67
- */
68
- export interface DocumentUserAccess {
69
- /**
70
- * @generated from protobuf field: int64 id = 1
71
- */
72
- id: number;
73
- /**
74
- * @generated from protobuf field: int64 target_id = 3
75
- */
76
- targetId: number;
77
- /**
78
- * @generated from protobuf field: int32 user_id = 4
79
- */
80
- userId: number;
81
- /**
82
- * @generated from protobuf field: optional resources.users.short.UserShort user = 5
83
- */
84
- user?: UserShort;
85
- /**
86
- * @generated from protobuf field: resources.documents.access.AccessLevel access = 6
87
- */
88
- access: AccessLevel;
89
- /**
90
- * @generated from protobuf field: optional bool required = 7
91
- */
92
- required?: boolean;
93
- }
94
5
  /**
95
6
  * @generated from protobuf enum resources.documents.access.AccessLevel
96
7
  */
@@ -124,243 +35,3 @@ export enum AccessLevel {
124
35
  */
125
36
  EDIT = 6
126
37
  }
127
- // @generated message type with reflection information, may provide speed optimized methods
128
- class DocumentAccess$Type extends MessageType<DocumentAccess> {
129
- constructor() {
130
- super("resources.documents.access.DocumentAccess", [
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\"" } },
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\"" } }
133
- ], { "codegen.dbscanner.dbscanner": { enabled: true } });
134
- }
135
- create(value?: PartialMessage<DocumentAccess>): DocumentAccess {
136
- const message = globalThis.Object.create((this.messagePrototype!));
137
- message.jobs = [];
138
- message.users = [];
139
- if (value !== undefined)
140
- reflectionMergePartial<DocumentAccess>(this, message, value);
141
- return message;
142
- }
143
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocumentAccess): DocumentAccess {
144
- let message = target ?? this.create(), end = reader.pos + length;
145
- while (reader.pos < end) {
146
- let [fieldNo, wireType] = reader.tag();
147
- switch (fieldNo) {
148
- case /* repeated resources.documents.access.DocumentJobAccess jobs */ 1:
149
- message.jobs.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
150
- break;
151
- case /* repeated resources.documents.access.DocumentUserAccess users */ 2:
152
- message.users.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
153
- break;
154
- default:
155
- let u = options.readUnknownField;
156
- if (u === "throw")
157
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
158
- let d = reader.skip(wireType);
159
- if (u !== false)
160
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
161
- }
162
- }
163
- return message;
164
- }
165
- internalBinaryWrite(message: DocumentAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
166
- /* repeated resources.documents.access.DocumentJobAccess jobs = 1; */
167
- for (let i = 0; i < message.jobs.length; i++)
168
- DocumentJobAccess.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
169
- /* repeated resources.documents.access.DocumentUserAccess users = 2; */
170
- for (let i = 0; i < message.users.length; i++)
171
- DocumentUserAccess.internalBinaryWrite(message.users[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
172
- let u = options.writeUnknownFields;
173
- if (u !== false)
174
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
175
- return writer;
176
- }
177
- }
178
- /**
179
- * @generated MessageType for protobuf message resources.documents.access.DocumentAccess
180
- */
181
- export const DocumentAccess = new DocumentAccess$Type();
182
- // @generated message type with reflection information, may provide speed optimized methods
183
- class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
184
- constructor() {
185
- super("resources.documents.access.DocumentJobAccess", [
186
- { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
187
- { no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
188
- { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
189
- { no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
190
- { no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
191
- { no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
192
- { no: 8, name: "access", kind: "enum", T: () => ["resources.documents.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
193
- { no: 9, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
194
- ]);
195
- }
196
- create(value?: PartialMessage<DocumentJobAccess>): DocumentJobAccess {
197
- const message = globalThis.Object.create((this.messagePrototype!));
198
- message.id = 0;
199
- message.targetId = 0;
200
- message.job = "";
201
- message.minimumGrade = 0;
202
- message.access = 0;
203
- if (value !== undefined)
204
- reflectionMergePartial<DocumentJobAccess>(this, message, value);
205
- return message;
206
- }
207
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocumentJobAccess): DocumentJobAccess {
208
- let message = target ?? this.create(), end = reader.pos + length;
209
- while (reader.pos < end) {
210
- let [fieldNo, wireType] = reader.tag();
211
- switch (fieldNo) {
212
- case /* int64 id */ 1:
213
- message.id = reader.int64().toNumber();
214
- break;
215
- case /* int64 target_id */ 3:
216
- message.targetId = reader.int64().toNumber();
217
- break;
218
- case /* string job */ 4:
219
- message.job = reader.string();
220
- break;
221
- case /* optional string job_label */ 5:
222
- message.jobLabel = reader.string();
223
- break;
224
- case /* int32 minimum_grade */ 6:
225
- message.minimumGrade = reader.int32();
226
- break;
227
- case /* optional string job_grade_label */ 7:
228
- message.jobGradeLabel = reader.string();
229
- break;
230
- case /* resources.documents.access.AccessLevel access */ 8:
231
- message.access = reader.int32();
232
- break;
233
- case /* optional bool required */ 9:
234
- message.required = reader.bool();
235
- break;
236
- default:
237
- let u = options.readUnknownField;
238
- if (u === "throw")
239
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
240
- let d = reader.skip(wireType);
241
- if (u !== false)
242
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
243
- }
244
- }
245
- return message;
246
- }
247
- internalBinaryWrite(message: DocumentJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
248
- /* int64 id = 1; */
249
- if (message.id !== 0)
250
- writer.tag(1, WireType.Varint).int64(message.id);
251
- /* int64 target_id = 3; */
252
- if (message.targetId !== 0)
253
- writer.tag(3, WireType.Varint).int64(message.targetId);
254
- /* string job = 4; */
255
- if (message.job !== "")
256
- writer.tag(4, WireType.LengthDelimited).string(message.job);
257
- /* optional string job_label = 5; */
258
- if (message.jobLabel !== undefined)
259
- writer.tag(5, WireType.LengthDelimited).string(message.jobLabel);
260
- /* int32 minimum_grade = 6; */
261
- if (message.minimumGrade !== 0)
262
- writer.tag(6, WireType.Varint).int32(message.minimumGrade);
263
- /* optional string job_grade_label = 7; */
264
- if (message.jobGradeLabel !== undefined)
265
- writer.tag(7, WireType.LengthDelimited).string(message.jobGradeLabel);
266
- /* resources.documents.access.AccessLevel access = 8; */
267
- if (message.access !== 0)
268
- writer.tag(8, WireType.Varint).int32(message.access);
269
- /* optional bool required = 9; */
270
- if (message.required !== undefined)
271
- writer.tag(9, WireType.Varint).bool(message.required);
272
- let u = options.writeUnknownFields;
273
- if (u !== false)
274
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
275
- return writer;
276
- }
277
- }
278
- /**
279
- * @generated MessageType for protobuf message resources.documents.access.DocumentJobAccess
280
- */
281
- export const DocumentJobAccess = new DocumentJobAccess$Type();
282
- // @generated message type with reflection information, may provide speed optimized methods
283
- class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
284
- constructor() {
285
- super("resources.documents.access.DocumentUserAccess", [
286
- { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
287
- { no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
288
- { no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
289
- { no: 5, name: "user", kind: "message", T: () => UserShort },
290
- { no: 6, name: "access", kind: "enum", T: () => ["resources.documents.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
291
- { no: 7, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
292
- ]);
293
- }
294
- create(value?: PartialMessage<DocumentUserAccess>): DocumentUserAccess {
295
- const message = globalThis.Object.create((this.messagePrototype!));
296
- message.id = 0;
297
- message.targetId = 0;
298
- message.userId = 0;
299
- message.access = 0;
300
- if (value !== undefined)
301
- reflectionMergePartial<DocumentUserAccess>(this, message, value);
302
- return message;
303
- }
304
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocumentUserAccess): DocumentUserAccess {
305
- let message = target ?? this.create(), end = reader.pos + length;
306
- while (reader.pos < end) {
307
- let [fieldNo, wireType] = reader.tag();
308
- switch (fieldNo) {
309
- case /* int64 id */ 1:
310
- message.id = reader.int64().toNumber();
311
- break;
312
- case /* int64 target_id */ 3:
313
- message.targetId = reader.int64().toNumber();
314
- break;
315
- case /* int32 user_id */ 4:
316
- message.userId = reader.int32();
317
- break;
318
- case /* optional resources.users.short.UserShort user */ 5:
319
- message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
320
- break;
321
- case /* resources.documents.access.AccessLevel access */ 6:
322
- message.access = reader.int32();
323
- break;
324
- case /* optional bool required */ 7:
325
- message.required = reader.bool();
326
- break;
327
- default:
328
- let u = options.readUnknownField;
329
- if (u === "throw")
330
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
331
- let d = reader.skip(wireType);
332
- if (u !== false)
333
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
334
- }
335
- }
336
- return message;
337
- }
338
- internalBinaryWrite(message: DocumentUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
339
- /* int64 id = 1; */
340
- if (message.id !== 0)
341
- writer.tag(1, WireType.Varint).int64(message.id);
342
- /* int64 target_id = 3; */
343
- if (message.targetId !== 0)
344
- writer.tag(3, WireType.Varint).int64(message.targetId);
345
- /* int32 user_id = 4; */
346
- if (message.userId !== 0)
347
- writer.tag(4, WireType.Varint).int32(message.userId);
348
- /* optional resources.users.short.UserShort user = 5; */
349
- if (message.user)
350
- UserShort.internalBinaryWrite(message.user, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
351
- /* resources.documents.access.AccessLevel access = 6; */
352
- if (message.access !== 0)
353
- writer.tag(6, WireType.Varint).int32(message.access);
354
- /* optional bool required = 7; */
355
- if (message.required !== undefined)
356
- writer.tag(7, WireType.Varint).bool(message.required);
357
- let u = options.writeUnknownFields;
358
- if (u !== false)
359
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
360
- return writer;
361
- }
362
- }
363
- /**
364
- * @generated MessageType for protobuf message resources.documents.access.DocumentUserAccess
365
- */
366
- export const DocumentUserAccess = new DocumentUserAccess$Type();
@@ -11,8 +11,8 @@ 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 { DocumentUserAccess } from "../access/access";
15
- import { DocumentJobAccess } from "../access/access";
14
+ import { UserAccess } from "../../access/access";
15
+ import { JobAccess } from "../../access/access";
16
16
  import { AccessLevel } from "../access/access";
17
17
  import { ContentDiff } from "../../common/content/diff_activity";
18
18
  import { UserShort } from "../../users/short/user";
@@ -189,34 +189,34 @@ export interface DocAccessUpdated {
189
189
  */
190
190
  export interface DocAccessJobsDiff {
191
191
  /**
192
- * @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_create = 1
192
+ * @generated from protobuf field: repeated resources.access.JobAccess to_create = 1
193
193
  */
194
- toCreate: DocumentJobAccess[];
194
+ toCreate: JobAccess[];
195
195
  /**
196
- * @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_update = 2
196
+ * @generated from protobuf field: repeated resources.access.JobAccess to_update = 2
197
197
  */
198
- toUpdate: DocumentJobAccess[];
198
+ toUpdate: JobAccess[];
199
199
  /**
200
- * @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_delete = 3
200
+ * @generated from protobuf field: repeated resources.access.JobAccess to_delete = 3
201
201
  */
202
- toDelete: DocumentJobAccess[];
202
+ toDelete: JobAccess[];
203
203
  }
204
204
  /**
205
205
  * @generated from protobuf message resources.documents.activity.DocAccessUsersDiff
206
206
  */
207
207
  export interface DocAccessUsersDiff {
208
208
  /**
209
- * @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_create = 1
209
+ * @generated from protobuf field: repeated resources.access.UserAccess to_create = 1
210
210
  */
211
- toCreate: DocumentUserAccess[];
211
+ toCreate: UserAccess[];
212
212
  /**
213
- * @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_update = 2
213
+ * @generated from protobuf field: repeated resources.access.UserAccess to_update = 2
214
214
  */
215
- toUpdate: DocumentUserAccess[];
215
+ toUpdate: UserAccess[];
216
216
  /**
217
- * @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_delete = 3
217
+ * @generated from protobuf field: repeated resources.access.UserAccess to_delete = 3
218
218
  */
219
- toDelete: DocumentUserAccess[];
219
+ toDelete: UserAccess[];
220
220
  }
221
221
  /**
222
222
  * @generated from protobuf message resources.documents.activity.DocSigningRequested
@@ -295,6 +295,10 @@ export enum DocActivityType {
295
295
  * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_COMMENT_DELETED = 12;
296
296
  */
297
297
  COMMENT_DELETED = 12,
298
+ /**
299
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_COMMENT_RESTORED = 22;
300
+ */
301
+ COMMENT_RESTORED = 22,
298
302
  /**
299
303
  * Requests
300
304
  *
@@ -355,7 +359,7 @@ class DocActivity$Type extends MessageType<DocActivity> {
355
359
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
356
360
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
357
361
  { no: 3, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
358
- { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
362
+ { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
359
363
  { no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
360
364
  { no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
361
365
  { no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
@@ -852,9 +856,9 @@ export const DocAccessUpdated = new DocAccessUpdated$Type();
852
856
  class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
853
857
  constructor() {
854
858
  super("resources.documents.activity.DocAccessJobsDiff", [
855
- { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
856
- { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
857
- { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
859
+ { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
860
+ { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
861
+ { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
858
862
  ]);
859
863
  }
860
864
  create(value?: PartialMessage<DocAccessJobsDiff>): DocAccessJobsDiff {
@@ -871,14 +875,14 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
871
875
  while (reader.pos < end) {
872
876
  let [fieldNo, wireType] = reader.tag();
873
877
  switch (fieldNo) {
874
- case /* repeated resources.documents.access.DocumentJobAccess to_create */ 1:
875
- message.toCreate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
878
+ case /* repeated resources.access.JobAccess to_create */ 1:
879
+ message.toCreate.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
876
880
  break;
877
- case /* repeated resources.documents.access.DocumentJobAccess to_update */ 2:
878
- message.toUpdate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
881
+ case /* repeated resources.access.JobAccess to_update */ 2:
882
+ message.toUpdate.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
879
883
  break;
880
- case /* repeated resources.documents.access.DocumentJobAccess to_delete */ 3:
881
- message.toDelete.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
884
+ case /* repeated resources.access.JobAccess to_delete */ 3:
885
+ message.toDelete.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
882
886
  break;
883
887
  default:
884
888
  let u = options.readUnknownField;
@@ -892,15 +896,15 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
892
896
  return message;
893
897
  }
894
898
  internalBinaryWrite(message: DocAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
895
- /* repeated resources.documents.access.DocumentJobAccess to_create = 1; */
899
+ /* repeated resources.access.JobAccess to_create = 1; */
896
900
  for (let i = 0; i < message.toCreate.length; i++)
897
- DocumentJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
898
- /* repeated resources.documents.access.DocumentJobAccess to_update = 2; */
901
+ JobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
902
+ /* repeated resources.access.JobAccess to_update = 2; */
899
903
  for (let i = 0; i < message.toUpdate.length; i++)
900
- DocumentJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
901
- /* repeated resources.documents.access.DocumentJobAccess to_delete = 3; */
904
+ JobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
905
+ /* repeated resources.access.JobAccess to_delete = 3; */
902
906
  for (let i = 0; i < message.toDelete.length; i++)
903
- DocumentJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
907
+ JobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
904
908
  let u = options.writeUnknownFields;
905
909
  if (u !== false)
906
910
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -915,9 +919,9 @@ export const DocAccessJobsDiff = new DocAccessJobsDiff$Type();
915
919
  class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
916
920
  constructor() {
917
921
  super("resources.documents.activity.DocAccessUsersDiff", [
918
- { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
919
- { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
920
- { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
922
+ { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
923
+ { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
924
+ { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
921
925
  ]);
922
926
  }
923
927
  create(value?: PartialMessage<DocAccessUsersDiff>): DocAccessUsersDiff {
@@ -934,14 +938,14 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
934
938
  while (reader.pos < end) {
935
939
  let [fieldNo, wireType] = reader.tag();
936
940
  switch (fieldNo) {
937
- case /* repeated resources.documents.access.DocumentUserAccess to_create */ 1:
938
- message.toCreate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
941
+ case /* repeated resources.access.UserAccess to_create */ 1:
942
+ message.toCreate.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
939
943
  break;
940
- case /* repeated resources.documents.access.DocumentUserAccess to_update */ 2:
941
- message.toUpdate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
944
+ case /* repeated resources.access.UserAccess to_update */ 2:
945
+ message.toUpdate.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
942
946
  break;
943
- case /* repeated resources.documents.access.DocumentUserAccess to_delete */ 3:
944
- message.toDelete.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
947
+ case /* repeated resources.access.UserAccess to_delete */ 3:
948
+ message.toDelete.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
945
949
  break;
946
950
  default:
947
951
  let u = options.readUnknownField;
@@ -955,15 +959,15 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
955
959
  return message;
956
960
  }
957
961
  internalBinaryWrite(message: DocAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
958
- /* repeated resources.documents.access.DocumentUserAccess to_create = 1; */
962
+ /* repeated resources.access.UserAccess to_create = 1; */
959
963
  for (let i = 0; i < message.toCreate.length; i++)
960
- DocumentUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
961
- /* repeated resources.documents.access.DocumentUserAccess to_update = 2; */
964
+ UserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
965
+ /* repeated resources.access.UserAccess to_update = 2; */
962
966
  for (let i = 0; i < message.toUpdate.length; i++)
963
- DocumentUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
964
- /* repeated resources.documents.access.DocumentUserAccess to_delete = 3; */
967
+ UserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
968
+ /* repeated resources.access.UserAccess to_delete = 3; */
965
969
  for (let i = 0; i < message.toDelete.length; i++)
966
- DocumentUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
970
+ UserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
967
971
  let u = options.writeUnknownFields;
968
972
  if (u !== false)
969
973
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -312,7 +312,7 @@ class Document$Type extends MessageType<Document> {
312
312
  { no: 17, name: "pin", kind: "message", T: () => DocumentPin, options: { "tagger.tags": "alias:\"pin\"" } },
313
313
  { no: 18, name: "workflow_state", kind: "message", T: () => WorkflowState },
314
314
  { no: 19, name: "workflow_user", kind: "message", T: () => WorkflowUserState },
315
- { no: 20, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "tagger.tags": "alias:\"files\"" } }
315
+ { no: 20, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "buf.validate.field": { repeated: { maxItems: "5" } }, "tagger.tags": "alias:\"files\"" } }
316
316
  ]);
317
317
  }
318
318
  create(value?: PartialMessage<Document>): Document {
@@ -76,7 +76,7 @@ class DocRequest$Type extends MessageType<DocRequest> {
76
76
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
77
77
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
78
78
  { no: 4, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
79
- { no: 5, name: "request_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { in: [13, 14, 15, 16, 17, 18] } } } },
79
+ { no: 5, name: "request_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, in: [13, 14, 15, 16, 17, 18] } } } },
80
80
  { no: 6, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
81
81
  { no: 7, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
82
82
  { no: 8, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },