@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
@@ -43,6 +43,10 @@ export interface ListDispatchesRequest {
43
43
  * @generated from protobuf field: optional string postal = 5
44
44
  */
45
45
  postal?: string;
46
+ /**
47
+ * @generated from protobuf field: repeated int32 creator_ids = 6
48
+ */
49
+ creatorIds: number[];
46
50
  }
47
51
  /**
48
52
  * @generated from protobuf message services.centrum.ListDispatchesResponse
@@ -244,10 +248,11 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
244
248
  constructor() {
245
249
  super("services.centrum.ListDispatchesRequest", [
246
250
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
247
- { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
248
- { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
249
- { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } },
250
- { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } }
251
+ { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { definedOnly: true } } } } } },
252
+ { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { definedOnly: true } } } } } },
253
+ { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
254
+ { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } },
255
+ { no: 6, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int32: { gt: 0 } } } } } }
251
256
  ]);
252
257
  }
253
258
  create(value?: PartialMessage<ListDispatchesRequest>): ListDispatchesRequest {
@@ -255,6 +260,7 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
255
260
  message.status = [];
256
261
  message.notStatus = [];
257
262
  message.ids = [];
263
+ message.creatorIds = [];
258
264
  if (value !== undefined)
259
265
  reflectionMergePartial<ListDispatchesRequest>(this, message, value);
260
266
  return message;
@@ -291,6 +297,13 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
291
297
  case /* optional string postal */ 5:
292
298
  message.postal = reader.string();
293
299
  break;
300
+ case /* repeated int32 creator_ids */ 6:
301
+ if (wireType === WireType.LengthDelimited)
302
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
303
+ message.creatorIds.push(reader.int32());
304
+ else
305
+ message.creatorIds.push(reader.int32());
306
+ break;
294
307
  default:
295
308
  let u = options.readUnknownField;
296
309
  if (u === "throw")
@@ -330,6 +343,13 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
330
343
  /* optional string postal = 5; */
331
344
  if (message.postal !== undefined)
332
345
  writer.tag(5, WireType.LengthDelimited).string(message.postal);
346
+ /* repeated int32 creator_ids = 6; */
347
+ if (message.creatorIds.length) {
348
+ writer.tag(6, WireType.LengthDelimited).fork();
349
+ for (let i = 0; i < message.creatorIds.length; i++)
350
+ writer.int32(message.creatorIds[i]);
351
+ writer.join();
352
+ }
333
353
  let u = options.writeUnknownFields;
334
354
  if (u !== false)
335
355
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1061,8 +1081,8 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
1061
1081
  constructor() {
1062
1082
  super("services.centrum.AssignDispatchRequest", [
1063
1083
  { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1064
- { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1065
- { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1084
+ { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
1085
+ { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
1066
1086
  { no: 4, name: "forced", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
1067
1087
  ]);
1068
1088
  }
@@ -1184,7 +1204,7 @@ export const AssignDispatchResponse = new AssignDispatchResponse$Type();
1184
1204
  class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
1185
1205
  constructor() {
1186
1206
  super("services.centrum.TakeDispatchRequest", [
1187
- { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1" } } } },
1207
+ { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "10", items: { int64: { gt: "0" } } } } } },
1188
1208
  { no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.dispatches.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1189
1209
  { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1190
1210
  ]);
@@ -1296,10 +1316,10 @@ export const DispatchesService = new ServiceType("services.centrum.DispatchesSer
1296
1316
  { name: "UpdateDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: UpdateDispatchRequest, O: UpdateDispatchResponse },
1297
1317
  { name: "DeleteDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDispatchRequest, O: DeleteDispatchResponse },
1298
1318
  { name: "ListDispatchTargetJobs", options: { "codegen.perms.perms": { enabled: true, name: "CreateDispatch" } }, I: ListDispatchTargetJobsRequest, O: ListDispatchTargetJobsResponse },
1299
- { name: "AssignDispatch", options: { "codegen.perms.perms": { enabled: true, name: "TakeControl" } }, I: AssignDispatchRequest, O: AssignDispatchResponse },
1300
- { name: "GetDispatch", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: GetDispatchRequest, O: GetDispatchResponse },
1301
- { name: "ListDispatches", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListDispatchesRequest, O: ListDispatchesResponse },
1302
- { name: "ListDispatchActivity", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListDispatchActivityRequest, O: ListDispatchActivityResponse },
1319
+ { name: "AssignDispatch", options: { "codegen.perms.perms": { enabled: true, namespace: "centrum", service: "CentrumService", name: "TakeControl" } }, I: AssignDispatchRequest, O: AssignDispatchResponse },
1320
+ { name: "GetDispatch", options: { "codegen.perms.perms": { enabled: true, namespace: "centrum", service: "CentrumService", name: "Stream" } }, I: GetDispatchRequest, O: GetDispatchResponse },
1321
+ { name: "ListDispatches", options: { "codegen.perms.perms": { enabled: true, namespace: "centrum", service: "CentrumService", name: "Stream" } }, I: ListDispatchesRequest, O: ListDispatchesResponse },
1322
+ { name: "ListDispatchActivity", options: { "codegen.perms.perms": { enabled: true, namespace: "centrum", service: "CentrumService", name: "Stream" } }, I: ListDispatchActivityRequest, O: ListDispatchActivityResponse },
1303
1323
  { name: "TakeDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: TakeDispatchRequest, O: TakeDispatchResponse },
1304
1324
  { name: "UpdateDispatchStatus", options: { "codegen.perms.perms": { enabled: true, name: "TakeDispatch" } }, I: UpdateDispatchStatusRequest, O: UpdateDispatchStatusResponse }
1305
- ], { "codegen.perms.perms_svc": { name: "centrum.CentrumService" } });
1325
+ ], { "codegen.perms.perms_svc": { order: 105, icon: "i-mdi-target-arrow" } });
@@ -9,6 +9,8 @@ import type { UpdateUnitStatusResponse } from "./units";
9
9
  import type { UpdateUnitStatusRequest } from "./units";
10
10
  import type { AssignUnitResponse } from "./units";
11
11
  import type { AssignUnitRequest } from "./units";
12
+ import type { ReorderUnitsResponse } from "./units";
13
+ import type { ReorderUnitsRequest } from "./units";
12
14
  import type { DeleteUnitResponse } from "./units";
13
15
  import type { DeleteUnitRequest } from "./units";
14
16
  import type { CreateOrUpdateUnitResponse } from "./units";
@@ -46,6 +48,10 @@ export interface IUnitsServiceClient {
46
48
  * @generated from protobuf rpc: DeleteUnit
47
49
  */
48
50
  deleteUnit(input: DeleteUnitRequest, options?: RpcOptions): UnaryCall<DeleteUnitRequest, DeleteUnitResponse>;
51
+ /**
52
+ * @generated from protobuf rpc: ReorderUnits
53
+ */
54
+ reorderUnits(input: ReorderUnitsRequest, options?: RpcOptions): UnaryCall<ReorderUnitsRequest, ReorderUnitsResponse>;
49
55
  /**
50
56
  * @generated from protobuf rpc: AssignUnit
51
57
  */
@@ -99,18 +105,25 @@ export class UnitsServiceClient implements IUnitsServiceClient, ServiceInfo {
99
105
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
100
106
  return stackIntercept<DeleteUnitRequest, DeleteUnitResponse>("unary", this._transport, method, opt, input);
101
107
  }
108
+ /**
109
+ * @generated from protobuf rpc: ReorderUnits
110
+ */
111
+ reorderUnits(input: ReorderUnitsRequest, options?: RpcOptions): UnaryCall<ReorderUnitsRequest, ReorderUnitsResponse> {
112
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
113
+ return stackIntercept<ReorderUnitsRequest, ReorderUnitsResponse>("unary", this._transport, method, opt, input);
114
+ }
102
115
  /**
103
116
  * @generated from protobuf rpc: AssignUnit
104
117
  */
105
118
  assignUnit(input: AssignUnitRequest, options?: RpcOptions): UnaryCall<AssignUnitRequest, AssignUnitResponse> {
106
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
119
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
107
120
  return stackIntercept<AssignUnitRequest, AssignUnitResponse>("unary", this._transport, method, opt, input);
108
121
  }
109
122
  /**
110
123
  * @generated from protobuf rpc: UpdateUnitStatus
111
124
  */
112
125
  updateUnitStatus(input: UpdateUnitStatusRequest, options?: RpcOptions): UnaryCall<UpdateUnitStatusRequest, UpdateUnitStatusResponse> {
113
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
126
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
114
127
  return stackIntercept<UpdateUnitStatusRequest, UpdateUnitStatusResponse>("unary", this._transport, method, opt, input);
115
128
  }
116
129
  }