@fivenet-app/gen 2025.5.2 → 2025.9.1

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 (169) hide show
  1. package/buf/validate/validate.ts +11301 -0
  2. package/clients.ts +157 -154
  3. package/codegen/dbscanner/dbscanner.ts +91 -0
  4. package/codegen/perms/perms.ts +208 -0
  5. package/codegen/sanitizer/sanitizer.ts +80 -0
  6. package/google/protobuf/any.ts +4 -3
  7. package/google/protobuf/descriptor.ts +393 -239
  8. package/google/protobuf/duration.ts +4 -3
  9. package/google/protobuf/struct.ts +485 -0
  10. package/google/protobuf/timestamp.ts +4 -3
  11. package/package.json +3 -3
  12. package/perms.ts +85 -159
  13. package/resources/accounts/accounts.ts +26 -25
  14. package/resources/accounts/oauth2.ts +30 -29
  15. package/resources/audit/audit.ts +36 -35
  16. package/resources/calendar/access.ts +49 -48
  17. package/resources/calendar/calendar.ts +122 -126
  18. package/resources/centrum/access.ts +345 -0
  19. package/resources/centrum/attributes.ts +8 -11
  20. package/resources/centrum/dispatchers.ts +149 -0
  21. package/resources/centrum/dispatches.ts +252 -115
  22. package/resources/centrum/settings.ts +384 -34
  23. package/resources/centrum/units.ts +112 -92
  24. package/resources/centrum/units_access.ts +54 -55
  25. package/resources/clientconfig/clientconfig.ts +890 -0
  26. package/resources/collab/collab.ts +817 -0
  27. package/resources/common/content/content.ts +113 -30
  28. package/resources/common/cron/cron.ts +43 -31
  29. package/resources/common/database/database.ts +92 -35
  30. package/resources/common/error.ts +17 -16
  31. package/resources/common/grpcws/grpcws.ts +24 -23
  32. package/resources/common/i18n.ts +20 -24
  33. package/resources/common/id_mapping.ts +69 -0
  34. package/resources/common/tests/objects.ts +4 -3
  35. package/resources/common/uuid.ts +4 -3
  36. package/resources/discord/discord.ts +209 -0
  37. package/resources/documents/access.ts +52 -53
  38. package/resources/documents/activity.ts +235 -58
  39. package/resources/documents/category.ts +20 -27
  40. package/resources/documents/comment.ts +26 -25
  41. package/resources/documents/documents.ts +335 -262
  42. package/resources/documents/pins.ts +127 -0
  43. package/resources/documents/requests.ts +31 -30
  44. package/resources/documents/signoff.ts +55 -0
  45. package/resources/documents/state.ts +69 -0
  46. package/resources/documents/templates.ts +119 -136
  47. package/resources/documents/workflow.ts +35 -24
  48. package/resources/file/file.ts +152 -0
  49. package/{services/settings → resources/file}/filestore.ts +179 -165
  50. package/resources/file/meta.ts +148 -0
  51. package/resources/jobs/activity.ts +39 -42
  52. package/resources/jobs/colleagues.ts +67 -60
  53. package/resources/jobs/conduct.ts +29 -30
  54. package/resources/jobs/job_props.ts +46 -48
  55. package/resources/jobs/job_settings.ts +45 -52
  56. package/resources/jobs/jobs.ts +14 -13
  57. package/resources/jobs/labels.ts +21 -22
  58. package/resources/jobs/timeclock.ts +26 -25
  59. package/resources/laws/laws.ts +40 -49
  60. package/resources/livemap/coords.ts +81 -0
  61. package/resources/livemap/heatmap.ts +93 -0
  62. package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
  63. package/resources/livemap/user_marker.ts +298 -0
  64. package/resources/mailer/access.ts +75 -74
  65. package/resources/mailer/email.ts +24 -27
  66. package/resources/mailer/events.ts +25 -24
  67. package/resources/mailer/message.ts +45 -50
  68. package/resources/mailer/settings.ts +12 -15
  69. package/resources/mailer/template.ts +25 -28
  70. package/resources/mailer/thread.ts +70 -71
  71. package/resources/notifications/client_view.ts +239 -0
  72. package/resources/notifications/events.ts +50 -101
  73. package/resources/notifications/notifications.ts +52 -57
  74. package/resources/permissions/attributes.ts +63 -206
  75. package/resources/permissions/events.ts +149 -0
  76. package/resources/permissions/permissions.ts +103 -34
  77. package/resources/qualifications/access.ts +27 -26
  78. package/resources/qualifications/exam.ts +188 -126
  79. package/resources/qualifications/qualifications.ts +370 -303
  80. package/resources/settings/banner.ts +14 -21
  81. package/resources/settings/config.ts +163 -79
  82. package/resources/settings/perms.ts +151 -0
  83. package/resources/settings/status.ts +533 -0
  84. package/resources/stats/stats.ts +3 -2
  85. package/resources/sync/activity.ts +24 -23
  86. package/resources/sync/data.ts +94 -26
  87. package/resources/timestamp/timestamp.ts +3 -2
  88. package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
  89. package/resources/userinfo/user_info.ts +464 -0
  90. package/resources/users/activity.ts +80 -85
  91. package/resources/users/labels.ts +18 -21
  92. package/resources/users/licenses.ts +9 -8
  93. package/resources/users/props.ts +61 -51
  94. package/resources/users/users.ts +100 -78
  95. package/resources/vehicles/activity.ts +231 -0
  96. package/resources/vehicles/props.ts +103 -0
  97. package/resources/vehicles/vehicles.ts +28 -15
  98. package/resources/wiki/access.ts +49 -48
  99. package/resources/wiki/activity.ts +133 -51
  100. package/resources/wiki/page.ts +134 -87
  101. package/services/auth/auth.client.ts +24 -27
  102. package/services/auth/auth.ts +222 -195
  103. package/services/calendar/calendar.client.ts +32 -91
  104. package/services/calendar/calendar.ts +110 -109
  105. package/services/centrum/centrum.client.ts +97 -137
  106. package/services/centrum/centrum.ts +701 -298
  107. package/services/citizens/citizens.client.ts +70 -39
  108. package/services/citizens/citizens.ts +183 -93
  109. package/services/completor/completor.client.ts +16 -35
  110. package/services/completor/completor.ts +65 -44
  111. package/services/documents/collab.client.ts +46 -0
  112. package/services/documents/collab.ts +13 -0
  113. package/services/documents/documents.client.ts +88 -217
  114. package/services/documents/documents.ts +490 -508
  115. package/services/filestore/filestore.client.ts +86 -0
  116. package/services/filestore/filestore.ts +262 -0
  117. package/services/jobs/conduct.client.ts +10 -25
  118. package/services/jobs/conduct.ts +36 -35
  119. package/services/jobs/jobs.client.ts +22 -61
  120. package/services/jobs/jobs.ts +108 -91
  121. package/services/jobs/timeclock.client.ts +8 -19
  122. package/services/jobs/timeclock.ts +47 -46
  123. package/services/livemap/livemap.client.ts +8 -19
  124. package/services/livemap/livemap.ts +290 -119
  125. package/services/mailer/mailer.client.ts +44 -127
  126. package/services/mailer/mailer.ts +213 -216
  127. package/services/notifications/notifications.client.ts +65 -0
  128. package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
  129. package/services/qualifications/qualifications.client.ts +46 -91
  130. package/services/qualifications/qualifications.ts +181 -175
  131. package/services/settings/accounts.client.ts +10 -25
  132. package/services/settings/accounts.ts +64 -41
  133. package/services/settings/config.client.ts +6 -13
  134. package/services/settings/config.ts +8 -7
  135. package/services/settings/cron.client.ts +4 -7
  136. package/services/settings/cron.ts +4 -3
  137. package/services/settings/laws.client.ts +10 -25
  138. package/services/settings/laws.ts +29 -28
  139. package/services/settings/settings.client.ts +57 -103
  140. package/services/settings/settings.ts +190 -607
  141. package/services/settings/system.client.ts +90 -0
  142. package/services/settings/system.ts +618 -0
  143. package/services/stats/stats.client.ts +4 -3
  144. package/services/stats/stats.ts +4 -3
  145. package/services/sync/sync.client.ts +16 -15
  146. package/services/sync/sync.ts +82 -52
  147. package/services/vehicles/vehicles.client.ts +17 -7
  148. package/services/vehicles/vehicles.ts +169 -24
  149. package/services/wiki/collab.client.ts +46 -0
  150. package/services/wiki/collab.ts +13 -0
  151. package/services/wiki/wiki.client.ts +28 -37
  152. package/services/wiki/wiki.ts +93 -63
  153. package/svcs.ts +79 -103
  154. package/resources/centrum/disponents.ts +0 -81
  155. package/resources/filestore/file.ts +0 -204
  156. package/resources/internet/access.ts +0 -358
  157. package/resources/internet/ads.ts +0 -257
  158. package/resources/internet/domain.ts +0 -328
  159. package/resources/internet/page.ts +0 -428
  160. package/resources/internet/search.ts +0 -128
  161. package/resources/livemap/tracker.ts +0 -81
  162. package/services/internet/ads.client.ts +0 -41
  163. package/services/internet/ads.ts +0 -145
  164. package/services/internet/domain.client.ts +0 -109
  165. package/services/internet/domain.ts +0 -658
  166. package/services/internet/internet.client.ts +0 -58
  167. package/services/internet/internet.ts +0 -268
  168. package/services/notificator/notificator.client.ts +0 -76
  169. package/services/settings/filestore.client.ts +0 -75
@@ -1,5 +1,6 @@
1
- // @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
2
  // @generated from protobuf file "services/centrum/centrum.proto" (package "services.centrum", syntax proto3)
3
+ // tslint:disable
3
4
  // @ts-nocheck
4
5
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
6
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -11,17 +12,20 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
12
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
13
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
14
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { Disponents } from "../../resources/centrum/disponents";
15
- import { Colleague } from "../../resources/jobs/colleagues";
15
+ import { JobDispatchers } from "../../resources/centrum/dispatchers";
16
16
  import { Timestamp } from "../../resources/timestamp/timestamp";
17
17
  import { TakeDispatchResp } from "../../resources/centrum/dispatches";
18
18
  import { DispatchStatus } from "../../resources/centrum/dispatches";
19
+ import { Job } from "../../resources/jobs/jobs";
19
20
  import { Dispatch } from "../../resources/centrum/dispatches";
20
21
  import { StatusDispatch } from "../../resources/centrum/dispatches";
21
22
  import { UnitStatus } from "../../resources/centrum/units";
22
23
  import { PaginationResponse } from "../../resources/common/database/database";
24
+ import { Dispatchers } from "../../resources/centrum/dispatchers";
25
+ import { HeatmapEntry } from "../../resources/livemap/heatmap";
23
26
  import { Unit } from "../../resources/centrum/units";
24
27
  import { StatusUnit } from "../../resources/centrum/units";
28
+ import { EffectiveAccess } from "../../resources/centrum/settings";
25
29
  import { Settings } from "../../resources/centrum/settings";
26
30
  import { PaginationRequest } from "../../resources/common/database/database";
27
31
  // Common
@@ -31,11 +35,11 @@ import { PaginationRequest } from "../../resources/common/database/database";
31
35
  */
32
36
  export interface ListDispatchActivityRequest {
33
37
  /**
34
- * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1;
38
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
35
39
  */
36
40
  pagination?: PaginationRequest;
37
41
  /**
38
- * @generated from protobuf field: uint64 id = 2;
42
+ * @generated from protobuf field: int64 id = 2
39
43
  */
40
44
  id: number;
41
45
  }
@@ -44,11 +48,11 @@ export interface ListDispatchActivityRequest {
44
48
  */
45
49
  export interface ListUnitActivityRequest {
46
50
  /**
47
- * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1;
51
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
48
52
  */
49
53
  pagination?: PaginationRequest;
50
54
  /**
51
- * @generated from protobuf field: uint64 id = 2;
55
+ * @generated from protobuf field: int64 id = 2
52
56
  */
53
57
  id: number;
54
58
  }
@@ -62,16 +66,20 @@ export interface GetSettingsRequest {
62
66
  */
63
67
  export interface GetSettingsResponse {
64
68
  /**
65
- * @generated from protobuf field: resources.centrum.Settings settings = 1;
69
+ * @generated from protobuf field: resources.centrum.Settings settings = 1
66
70
  */
67
71
  settings?: Settings;
72
+ /**
73
+ * @generated from protobuf field: resources.centrum.EffectiveAccess effective_access = 2
74
+ */
75
+ effectiveAccess?: EffectiveAccess;
68
76
  }
69
77
  /**
70
78
  * @generated from protobuf message services.centrum.UpdateSettingsRequest
71
79
  */
72
80
  export interface UpdateSettingsRequest {
73
81
  /**
74
- * @generated from protobuf field: resources.centrum.Settings settings = 1;
82
+ * @generated from protobuf field: resources.centrum.Settings settings = 1
75
83
  */
76
84
  settings?: Settings;
77
85
  }
@@ -80,7 +88,7 @@ export interface UpdateSettingsRequest {
80
88
  */
81
89
  export interface UpdateSettingsResponse {
82
90
  /**
83
- * @generated from protobuf field: resources.centrum.Settings settings = 1;
91
+ * @generated from protobuf field: resources.centrum.Settings settings = 1
84
92
  */
85
93
  settings?: Settings;
86
94
  }
@@ -91,7 +99,7 @@ export interface UpdateSettingsResponse {
91
99
  */
92
100
  export interface ListUnitsRequest {
93
101
  /**
94
- * @generated from protobuf field: repeated resources.centrum.StatusUnit status = 1;
102
+ * @generated from protobuf field: repeated resources.centrum.StatusUnit status = 1
95
103
  */
96
104
  status: StatusUnit[];
97
105
  }
@@ -100,7 +108,7 @@ export interface ListUnitsRequest {
100
108
  */
101
109
  export interface ListUnitsResponse {
102
110
  /**
103
- * @generated from protobuf field: repeated resources.centrum.Unit units = 1;
111
+ * @generated from protobuf field: repeated resources.centrum.Unit units = 1
104
112
  */
105
113
  units: Unit[];
106
114
  }
@@ -109,7 +117,7 @@ export interface ListUnitsResponse {
109
117
  */
110
118
  export interface CreateOrUpdateUnitRequest {
111
119
  /**
112
- * @generated from protobuf field: resources.centrum.Unit unit = 1;
120
+ * @generated from protobuf field: resources.centrum.Unit unit = 1
113
121
  */
114
122
  unit?: Unit;
115
123
  }
@@ -118,7 +126,7 @@ export interface CreateOrUpdateUnitRequest {
118
126
  */
119
127
  export interface CreateOrUpdateUnitResponse {
120
128
  /**
121
- * @generated from protobuf field: resources.centrum.Unit unit = 1;
129
+ * @generated from protobuf field: resources.centrum.Unit unit = 1
122
130
  */
123
131
  unit?: Unit;
124
132
  }
@@ -127,7 +135,7 @@ export interface CreateOrUpdateUnitResponse {
127
135
  */
128
136
  export interface DeleteUnitRequest {
129
137
  /**
130
- * @generated from protobuf field: uint64 unit_id = 1;
138
+ * @generated from protobuf field: int64 unit_id = 1
131
139
  */
132
140
  unitId: number;
133
141
  }
@@ -141,23 +149,19 @@ export interface DeleteUnitResponse {
141
149
  */
142
150
  export interface UpdateUnitStatusRequest {
143
151
  /**
144
- * @generated from protobuf field: uint64 unit_id = 1;
152
+ * @generated from protobuf field: int64 unit_id = 1
145
153
  */
146
154
  unitId: number;
147
155
  /**
148
- * @generated from protobuf field: resources.centrum.StatusUnit status = 2;
156
+ * @generated from protobuf field: resources.centrum.StatusUnit status = 2
149
157
  */
150
158
  status: StatusUnit;
151
159
  /**
152
- * @sanitize
153
- *
154
- * @generated from protobuf field: optional string reason = 3;
160
+ * @generated from protobuf field: optional string reason = 3
155
161
  */
156
162
  reason?: string;
157
163
  /**
158
- * @sanitize
159
- *
160
- * @generated from protobuf field: optional string code = 4;
164
+ * @generated from protobuf field: optional string code = 4
161
165
  */
162
166
  code?: string;
163
167
  }
@@ -171,15 +175,15 @@ export interface UpdateUnitStatusResponse {
171
175
  */
172
176
  export interface AssignUnitRequest {
173
177
  /**
174
- * @generated from protobuf field: uint64 unit_id = 1;
178
+ * @generated from protobuf field: int64 unit_id = 1
175
179
  */
176
180
  unitId: number;
177
181
  /**
178
- * @generated from protobuf field: repeated int32 to_add = 2;
182
+ * @generated from protobuf field: repeated int32 to_add = 2
179
183
  */
180
184
  toAdd: number[];
181
185
  /**
182
- * @generated from protobuf field: repeated int32 to_remove = 3;
186
+ * @generated from protobuf field: repeated int32 to_remove = 3
183
187
  */
184
188
  toRemove: number[];
185
189
  }
@@ -188,16 +192,52 @@ export interface AssignUnitRequest {
188
192
  */
189
193
  export interface AssignUnitResponse {
190
194
  }
195
+ /**
196
+ * @generated from protobuf message services.centrum.GetDispatchHeatmapRequest
197
+ */
198
+ export interface GetDispatchHeatmapRequest {
199
+ }
200
+ /**
201
+ * @generated from protobuf message services.centrum.GetDispatchHeatmapResponse
202
+ */
203
+ export interface GetDispatchHeatmapResponse {
204
+ /**
205
+ * @generated from protobuf field: int32 max_entries = 1
206
+ */
207
+ maxEntries: number;
208
+ /**
209
+ * @generated from protobuf field: repeated resources.livemap.HeatmapEntry entries = 2
210
+ */
211
+ entries: HeatmapEntry[];
212
+ }
213
+ /**
214
+ * @generated from protobuf message services.centrum.UpdateDispatchersRequest
215
+ */
216
+ export interface UpdateDispatchersRequest {
217
+ /**
218
+ * @generated from protobuf field: repeated int32 to_remove = 1
219
+ */
220
+ toRemove: number[];
221
+ }
222
+ /**
223
+ * @generated from protobuf message services.centrum.UpdateDispatchersResponse
224
+ */
225
+ export interface UpdateDispatchersResponse {
226
+ /**
227
+ * @generated from protobuf field: resources.centrum.Dispatchers dispatchers = 1
228
+ */
229
+ dispatchers?: Dispatchers;
230
+ }
191
231
  /**
192
232
  * @generated from protobuf message services.centrum.ListUnitActivityResponse
193
233
  */
194
234
  export interface ListUnitActivityResponse {
195
235
  /**
196
- * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1;
236
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
197
237
  */
198
238
  pagination?: PaginationResponse;
199
239
  /**
200
- * @generated from protobuf field: repeated resources.centrum.UnitStatus activity = 2;
240
+ * @generated from protobuf field: repeated resources.centrum.UnitStatus activity = 2
201
241
  */
202
242
  activity: UnitStatus[];
203
243
  }
@@ -208,7 +248,7 @@ export interface ListUnitActivityResponse {
208
248
  */
209
249
  export interface TakeControlRequest {
210
250
  /**
211
- * @generated from protobuf field: bool signon = 1;
251
+ * @generated from protobuf field: bool signon = 1
212
252
  */
213
253
  signon: boolean;
214
254
  }
@@ -222,23 +262,23 @@ export interface TakeControlResponse {
222
262
  */
223
263
  export interface ListDispatchesRequest {
224
264
  /**
225
- * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1;
265
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
226
266
  */
227
267
  pagination?: PaginationRequest;
228
268
  /**
229
- * @generated from protobuf field: repeated resources.centrum.StatusDispatch status = 2;
269
+ * @generated from protobuf field: repeated resources.centrum.StatusDispatch status = 2
230
270
  */
231
271
  status: StatusDispatch[];
232
272
  /**
233
- * @generated from protobuf field: repeated resources.centrum.StatusDispatch not_status = 3;
273
+ * @generated from protobuf field: repeated resources.centrum.StatusDispatch not_status = 3
234
274
  */
235
275
  notStatus: StatusDispatch[];
236
276
  /**
237
- * @generated from protobuf field: repeated uint64 ids = 4;
277
+ * @generated from protobuf field: repeated int64 ids = 4
238
278
  */
239
279
  ids: number[];
240
280
  /**
241
- * @generated from protobuf field: optional string postal = 5;
281
+ * @generated from protobuf field: optional string postal = 5
242
282
  */
243
283
  postal?: string;
244
284
  }
@@ -247,11 +287,11 @@ export interface ListDispatchesRequest {
247
287
  */
248
288
  export interface ListDispatchesResponse {
249
289
  /**
250
- * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1;
290
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
251
291
  */
252
292
  pagination?: PaginationResponse;
253
293
  /**
254
- * @generated from protobuf field: repeated resources.centrum.Dispatch dispatches = 2;
294
+ * @generated from protobuf field: repeated resources.centrum.Dispatch dispatches = 2
255
295
  */
256
296
  dispatches: Dispatch[];
257
297
  }
@@ -260,7 +300,7 @@ export interface ListDispatchesResponse {
260
300
  */
261
301
  export interface GetDispatchRequest {
262
302
  /**
263
- * @generated from protobuf field: uint64 id = 1;
303
+ * @generated from protobuf field: int64 id = 1
264
304
  */
265
305
  id: number;
266
306
  }
@@ -269,7 +309,7 @@ export interface GetDispatchRequest {
269
309
  */
270
310
  export interface GetDispatchResponse {
271
311
  /**
272
- * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1;
312
+ * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
273
313
  */
274
314
  dispatch?: Dispatch;
275
315
  }
@@ -278,7 +318,7 @@ export interface GetDispatchResponse {
278
318
  */
279
319
  export interface CreateDispatchRequest {
280
320
  /**
281
- * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1;
321
+ * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
282
322
  */
283
323
  dispatch?: Dispatch;
284
324
  }
@@ -287,7 +327,7 @@ export interface CreateDispatchRequest {
287
327
  */
288
328
  export interface CreateDispatchResponse {
289
329
  /**
290
- * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1;
330
+ * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
291
331
  */
292
332
  dispatch?: Dispatch;
293
333
  }
@@ -296,7 +336,7 @@ export interface CreateDispatchResponse {
296
336
  */
297
337
  export interface UpdateDispatchRequest {
298
338
  /**
299
- * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1;
339
+ * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
300
340
  */
301
341
  dispatch?: Dispatch;
302
342
  }
@@ -304,13 +344,17 @@ export interface UpdateDispatchRequest {
304
344
  * @generated from protobuf message services.centrum.UpdateDispatchResponse
305
345
  */
306
346
  export interface UpdateDispatchResponse {
347
+ /**
348
+ * @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
349
+ */
350
+ dispatch?: Dispatch;
307
351
  }
308
352
  /**
309
353
  * @generated from protobuf message services.centrum.DeleteDispatchRequest
310
354
  */
311
355
  export interface DeleteDispatchRequest {
312
356
  /**
313
- * @generated from protobuf field: uint64 id = 1;
357
+ * @generated from protobuf field: int64 id = 1
314
358
  */
315
359
  id: number;
316
360
  }
@@ -319,28 +363,38 @@ export interface DeleteDispatchRequest {
319
363
  */
320
364
  export interface DeleteDispatchResponse {
321
365
  }
366
+ /**
367
+ * @generated from protobuf message services.centrum.ListDispatchTargetJobsRequest
368
+ */
369
+ export interface ListDispatchTargetJobsRequest {
370
+ }
371
+ /**
372
+ * @generated from protobuf message services.centrum.ListDispatchTargetJobsResponse
373
+ */
374
+ export interface ListDispatchTargetJobsResponse {
375
+ /**
376
+ * @generated from protobuf field: repeated resources.jobs.Job jobs = 1
377
+ */
378
+ jobs: Job[];
379
+ }
322
380
  /**
323
381
  * @generated from protobuf message services.centrum.UpdateDispatchStatusRequest
324
382
  */
325
383
  export interface UpdateDispatchStatusRequest {
326
384
  /**
327
- * @generated from protobuf field: uint64 dispatch_id = 1;
385
+ * @generated from protobuf field: int64 dispatch_id = 1
328
386
  */
329
387
  dispatchId: number;
330
388
  /**
331
- * @generated from protobuf field: resources.centrum.StatusDispatch status = 2;
389
+ * @generated from protobuf field: resources.centrum.StatusDispatch status = 2
332
390
  */
333
391
  status: StatusDispatch;
334
392
  /**
335
- * @sanitize
336
- *
337
- * @generated from protobuf field: optional string reason = 3;
393
+ * @generated from protobuf field: optional string reason = 3
338
394
  */
339
395
  reason?: string;
340
396
  /**
341
- * @sanitize
342
- *
343
- * @generated from protobuf field: optional string code = 4;
397
+ * @generated from protobuf field: optional string code = 4
344
398
  */
345
399
  code?: string;
346
400
  }
@@ -354,19 +408,19 @@ export interface UpdateDispatchStatusResponse {
354
408
  */
355
409
  export interface AssignDispatchRequest {
356
410
  /**
357
- * @generated from protobuf field: uint64 dispatch_id = 1;
411
+ * @generated from protobuf field: int64 dispatch_id = 1
358
412
  */
359
413
  dispatchId: number;
360
414
  /**
361
- * @generated from protobuf field: repeated uint64 to_add = 2;
415
+ * @generated from protobuf field: repeated int64 to_add = 2
362
416
  */
363
417
  toAdd: number[];
364
418
  /**
365
- * @generated from protobuf field: repeated uint64 to_remove = 3;
419
+ * @generated from protobuf field: repeated int64 to_remove = 3
366
420
  */
367
421
  toRemove: number[];
368
422
  /**
369
- * @generated from protobuf field: optional bool forced = 4;
423
+ * @generated from protobuf field: optional bool forced = 4
370
424
  */
371
425
  forced?: boolean;
372
426
  }
@@ -380,11 +434,11 @@ export interface AssignDispatchResponse {
380
434
  */
381
435
  export interface ListDispatchActivityResponse {
382
436
  /**
383
- * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1;
437
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
384
438
  */
385
439
  pagination?: PaginationResponse;
386
440
  /**
387
- * @generated from protobuf field: repeated resources.centrum.DispatchStatus activity = 2;
441
+ * @generated from protobuf field: repeated resources.centrum.DispatchStatus activity = 2
388
442
  */
389
443
  activity: DispatchStatus[];
390
444
  }
@@ -393,7 +447,7 @@ export interface ListDispatchActivityResponse {
393
447
  */
394
448
  export interface JoinUnitRequest {
395
449
  /**
396
- * @generated from protobuf field: optional uint64 unit_id = 1;
450
+ * @generated from protobuf field: optional int64 unit_id = 1
397
451
  */
398
452
  unitId?: number;
399
453
  }
@@ -402,7 +456,7 @@ export interface JoinUnitRequest {
402
456
  */
403
457
  export interface JoinUnitResponse {
404
458
  /**
405
- * @generated from protobuf field: resources.centrum.Unit unit = 1;
459
+ * @generated from protobuf field: resources.centrum.Unit unit = 1
406
460
  */
407
461
  unit?: Unit;
408
462
  }
@@ -411,17 +465,15 @@ export interface JoinUnitResponse {
411
465
  */
412
466
  export interface TakeDispatchRequest {
413
467
  /**
414
- * @generated from protobuf field: repeated uint64 dispatch_ids = 1;
468
+ * @generated from protobuf field: repeated int64 dispatch_ids = 1
415
469
  */
416
470
  dispatchIds: number[];
417
471
  /**
418
- * @generated from protobuf field: resources.centrum.TakeDispatchResp resp = 2;
472
+ * @generated from protobuf field: resources.centrum.TakeDispatchResp resp = 2
419
473
  */
420
474
  resp: TakeDispatchResp;
421
475
  /**
422
- * @sanitize
423
- *
424
- * @generated from protobuf field: optional string reason = 3;
476
+ * @generated from protobuf field: optional string reason = 3
425
477
  */
426
478
  reason?: string;
427
479
  }
@@ -431,33 +483,42 @@ export interface TakeDispatchRequest {
431
483
  export interface TakeDispatchResponse {
432
484
  }
433
485
  /**
434
- * @generated from protobuf message services.centrum.LatestState
486
+ * @generated from protobuf message services.centrum.StreamHandshake
435
487
  */
436
- export interface LatestState {
488
+ export interface StreamHandshake {
437
489
  /**
438
- * @generated from protobuf field: resources.timestamp.Timestamp server_time = 1;
490
+ * @generated from protobuf field: resources.timestamp.Timestamp server_time = 1
439
491
  */
440
492
  serverTime?: Timestamp;
441
493
  /**
442
- * @generated from protobuf field: resources.centrum.Settings settings = 2;
494
+ * @generated from protobuf field: resources.centrum.Settings settings = 2
443
495
  */
444
496
  settings?: Settings;
445
497
  /**
446
- * @generated from protobuf field: repeated resources.jobs.Colleague disponents = 3;
498
+ * @generated from protobuf field: resources.centrum.EffectiveAccess access = 3
447
499
  */
448
- disponents: Colleague[];
500
+ access?: EffectiveAccess;
501
+ }
502
+ /**
503
+ * @generated from protobuf message services.centrum.LatestState
504
+ */
505
+ export interface LatestState {
506
+ /**
507
+ * @generated from protobuf field: resources.centrum.JobDispatchers dispatchers = 1
508
+ */
509
+ dispatchers?: JobDispatchers;
449
510
  /**
450
- * @generated from protobuf field: optional uint64 own_unit_id = 4;
511
+ * @generated from protobuf field: optional int64 own_unit_id = 2
451
512
  */
452
513
  ownUnitId?: number;
453
514
  /**
454
515
  * Send the current units and dispatches
455
516
  *
456
- * @generated from protobuf field: repeated resources.centrum.Unit units = 5;
517
+ * @generated from protobuf field: repeated resources.centrum.Unit units = 3
457
518
  */
458
519
  units: Unit[];
459
520
  /**
460
- * @generated from protobuf field: repeated resources.centrum.Dispatch dispatches = 6;
521
+ * @generated from protobuf field: repeated resources.centrum.Dispatch dispatches = 4
461
522
  */
462
523
  dispatches: Dispatch[];
463
524
  }
@@ -474,69 +535,69 @@ export interface StreamResponse {
474
535
  * @generated from protobuf oneof: change
475
536
  */
476
537
  change: {
538
+ oneofKind: "handshake";
539
+ /**
540
+ * @generated from protobuf field: services.centrum.StreamHandshake handshake = 1
541
+ */
542
+ handshake: StreamHandshake;
543
+ } | {
477
544
  oneofKind: "latestState";
478
545
  /**
479
- * @generated from protobuf field: services.centrum.LatestState latest_state = 1;
546
+ * @generated from protobuf field: services.centrum.LatestState latest_state = 2
480
547
  */
481
548
  latestState: LatestState;
482
549
  } | {
483
550
  oneofKind: "settings";
484
551
  /**
485
- * @generated from protobuf field: resources.centrum.Settings settings = 2;
552
+ * @generated from protobuf field: resources.centrum.Settings settings = 3
486
553
  */
487
554
  settings: Settings;
488
555
  } | {
489
- oneofKind: "disponents";
556
+ oneofKind: "access";
490
557
  /**
491
- * @generated from protobuf field: resources.centrum.Disponents disponents = 3;
558
+ * @generated from protobuf field: resources.centrum.EffectiveAccess access = 4
492
559
  */
493
- disponents: Disponents;
560
+ access: EffectiveAccess;
494
561
  } | {
495
- oneofKind: "unitCreated";
562
+ oneofKind: "dispatchers";
496
563
  /**
497
- * @generated from protobuf field: resources.centrum.Unit unit_created = 4;
564
+ * @generated from protobuf field: resources.centrum.Dispatchers dispatchers = 5
498
565
  */
499
- unitCreated: Unit;
566
+ dispatchers: Dispatchers;
500
567
  } | {
501
568
  oneofKind: "unitDeleted";
502
569
  /**
503
- * @generated from protobuf field: resources.centrum.Unit unit_deleted = 5;
570
+ * @generated from protobuf field: int64 unit_deleted = 6
504
571
  */
505
- unitDeleted: Unit;
572
+ unitDeleted: number;
506
573
  } | {
507
574
  oneofKind: "unitUpdated";
508
575
  /**
509
- * @generated from protobuf field: resources.centrum.Unit unit_updated = 6;
576
+ * @generated from protobuf field: resources.centrum.Unit unit_updated = 7
510
577
  */
511
578
  unitUpdated: Unit;
512
579
  } | {
513
580
  oneofKind: "unitStatus";
514
581
  /**
515
- * @generated from protobuf field: resources.centrum.UnitStatus unit_status = 7;
582
+ * @generated from protobuf field: resources.centrum.UnitStatus unit_status = 8
516
583
  */
517
584
  unitStatus: UnitStatus;
518
- } | {
519
- oneofKind: "dispatchCreated";
520
- /**
521
- * @generated from protobuf field: resources.centrum.Dispatch dispatch_created = 8;
522
- */
523
- dispatchCreated: Dispatch;
524
585
  } | {
525
586
  oneofKind: "dispatchDeleted";
526
587
  /**
527
- * @generated from protobuf field: resources.centrum.Dispatch dispatch_deleted = 9;
588
+ * @generated from protobuf field: int64 dispatch_deleted = 9
528
589
  */
529
- dispatchDeleted: Dispatch;
590
+ dispatchDeleted: number;
530
591
  } | {
531
592
  oneofKind: "dispatchUpdated";
532
593
  /**
533
- * @generated from protobuf field: resources.centrum.Dispatch dispatch_updated = 10;
594
+ * @generated from protobuf field: resources.centrum.Dispatch dispatch_updated = 10
534
595
  */
535
596
  dispatchUpdated: Dispatch;
536
597
  } | {
537
598
  oneofKind: "dispatchStatus";
538
599
  /**
539
- * @generated from protobuf field: resources.centrum.DispatchStatus dispatch_status = 11;
600
+ * @generated from protobuf field: resources.centrum.DispatchStatus dispatch_status = 11
540
601
  */
541
602
  dispatchStatus: DispatchStatus;
542
603
  } | {
@@ -547,8 +608,8 @@ export interface StreamResponse {
547
608
  class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityRequest> {
548
609
  constructor() {
549
610
  super("services.centrum.ListDispatchActivityRequest", [
550
- { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
551
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
611
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
612
+ { no: 2, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
552
613
  ]);
553
614
  }
554
615
  create(value?: PartialMessage<ListDispatchActivityRequest>): ListDispatchActivityRequest {
@@ -566,8 +627,8 @@ class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityR
566
627
  case /* resources.common.database.PaginationRequest pagination */ 1:
567
628
  message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
568
629
  break;
569
- case /* uint64 id */ 2:
570
- message.id = reader.uint64().toNumber();
630
+ case /* int64 id */ 2:
631
+ message.id = reader.int64().toNumber();
571
632
  break;
572
633
  default:
573
634
  let u = options.readUnknownField;
@@ -584,9 +645,9 @@ class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityR
584
645
  /* resources.common.database.PaginationRequest pagination = 1; */
585
646
  if (message.pagination)
586
647
  PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
587
- /* uint64 id = 2; */
648
+ /* int64 id = 2; */
588
649
  if (message.id !== 0)
589
- writer.tag(2, WireType.Varint).uint64(message.id);
650
+ writer.tag(2, WireType.Varint).int64(message.id);
590
651
  let u = options.writeUnknownFields;
591
652
  if (u !== false)
592
653
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -601,8 +662,8 @@ export const ListDispatchActivityRequest = new ListDispatchActivityRequest$Type(
601
662
  class ListUnitActivityRequest$Type extends MessageType<ListUnitActivityRequest> {
602
663
  constructor() {
603
664
  super("services.centrum.ListUnitActivityRequest", [
604
- { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
605
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
665
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
666
+ { no: 2, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
606
667
  ]);
607
668
  }
608
669
  create(value?: PartialMessage<ListUnitActivityRequest>): ListUnitActivityRequest {
@@ -620,8 +681,8 @@ class ListUnitActivityRequest$Type extends MessageType<ListUnitActivityRequest>
620
681
  case /* resources.common.database.PaginationRequest pagination */ 1:
621
682
  message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
622
683
  break;
623
- case /* uint64 id */ 2:
624
- message.id = reader.uint64().toNumber();
684
+ case /* int64 id */ 2:
685
+ message.id = reader.int64().toNumber();
625
686
  break;
626
687
  default:
627
688
  let u = options.readUnknownField;
@@ -638,9 +699,9 @@ class ListUnitActivityRequest$Type extends MessageType<ListUnitActivityRequest>
638
699
  /* resources.common.database.PaginationRequest pagination = 1; */
639
700
  if (message.pagination)
640
701
  PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
641
- /* uint64 id = 2; */
702
+ /* int64 id = 2; */
642
703
  if (message.id !== 0)
643
- writer.tag(2, WireType.Varint).uint64(message.id);
704
+ writer.tag(2, WireType.Varint).int64(message.id);
644
705
  let u = options.writeUnknownFields;
645
706
  if (u !== false)
646
707
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -693,7 +754,8 @@ export const GetSettingsRequest = new GetSettingsRequest$Type();
693
754
  class GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
694
755
  constructor() {
695
756
  super("services.centrum.GetSettingsResponse", [
696
- { no: 1, name: "settings", kind: "message", T: () => Settings }
757
+ { no: 1, name: "settings", kind: "message", T: () => Settings },
758
+ { no: 2, name: "effective_access", kind: "message", T: () => EffectiveAccess }
697
759
  ]);
698
760
  }
699
761
  create(value?: PartialMessage<GetSettingsResponse>): GetSettingsResponse {
@@ -710,6 +772,9 @@ class GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
710
772
  case /* resources.centrum.Settings settings */ 1:
711
773
  message.settings = Settings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
712
774
  break;
775
+ case /* resources.centrum.EffectiveAccess effective_access */ 2:
776
+ message.effectiveAccess = EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAccess);
777
+ break;
713
778
  default:
714
779
  let u = options.readUnknownField;
715
780
  if (u === "throw")
@@ -725,6 +790,9 @@ class GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
725
790
  /* resources.centrum.Settings settings = 1; */
726
791
  if (message.settings)
727
792
  Settings.internalBinaryWrite(message.settings, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
793
+ /* resources.centrum.EffectiveAccess effective_access = 2; */
794
+ if (message.effectiveAccess)
795
+ EffectiveAccess.internalBinaryWrite(message.effectiveAccess, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
728
796
  let u = options.writeUnknownFields;
729
797
  if (u !== false)
730
798
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -831,7 +899,7 @@ export const UpdateSettingsResponse = new UpdateSettingsResponse$Type();
831
899
  class ListUnitsRequest$Type extends MessageType<ListUnitsRequest> {
832
900
  constructor() {
833
901
  super("services.centrum.ListUnitsRequest", [
834
- { no: 1, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } }
902
+ { no: 1, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } }
835
903
  ]);
836
904
  }
837
905
  create(value?: PartialMessage<ListUnitsRequest>): ListUnitsRequest {
@@ -886,7 +954,7 @@ export const ListUnitsRequest = new ListUnitsRequest$Type();
886
954
  class ListUnitsResponse$Type extends MessageType<ListUnitsResponse> {
887
955
  constructor() {
888
956
  super("services.centrum.ListUnitsResponse", [
889
- { no: 1, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit }
957
+ { no: 1, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "codegen.itemslen.enabled": true } }
890
958
  ]);
891
959
  }
892
960
  create(value?: PartialMessage<ListUnitsResponse>): ListUnitsResponse {
@@ -933,7 +1001,7 @@ export const ListUnitsResponse = new ListUnitsResponse$Type();
933
1001
  class CreateOrUpdateUnitRequest$Type extends MessageType<CreateOrUpdateUnitRequest> {
934
1002
  constructor() {
935
1003
  super("services.centrum.CreateOrUpdateUnitRequest", [
936
- { no: 1, name: "unit", kind: "message", T: () => Unit, options: { "validate.rules": { message: { required: true } } } }
1004
+ { no: 1, name: "unit", kind: "message", T: () => Unit, options: { "buf.validate.field": { required: true } } }
937
1005
  ]);
938
1006
  }
939
1007
  create(value?: PartialMessage<CreateOrUpdateUnitRequest>): CreateOrUpdateUnitRequest {
@@ -1025,7 +1093,7 @@ export const CreateOrUpdateUnitResponse = new CreateOrUpdateUnitResponse$Type();
1025
1093
  class DeleteUnitRequest$Type extends MessageType<DeleteUnitRequest> {
1026
1094
  constructor() {
1027
1095
  super("services.centrum.DeleteUnitRequest", [
1028
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
1096
+ { no: 1, name: "unit_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1029
1097
  ]);
1030
1098
  }
1031
1099
  create(value?: PartialMessage<DeleteUnitRequest>): DeleteUnitRequest {
@@ -1040,8 +1108,8 @@ class DeleteUnitRequest$Type extends MessageType<DeleteUnitRequest> {
1040
1108
  while (reader.pos < end) {
1041
1109
  let [fieldNo, wireType] = reader.tag();
1042
1110
  switch (fieldNo) {
1043
- case /* uint64 unit_id */ 1:
1044
- message.unitId = reader.uint64().toNumber();
1111
+ case /* int64 unit_id */ 1:
1112
+ message.unitId = reader.int64().toNumber();
1045
1113
  break;
1046
1114
  default:
1047
1115
  let u = options.readUnknownField;
@@ -1055,9 +1123,9 @@ class DeleteUnitRequest$Type extends MessageType<DeleteUnitRequest> {
1055
1123
  return message;
1056
1124
  }
1057
1125
  internalBinaryWrite(message: DeleteUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1058
- /* uint64 unit_id = 1; */
1126
+ /* int64 unit_id = 1; */
1059
1127
  if (message.unitId !== 0)
1060
- writer.tag(1, WireType.Varint).uint64(message.unitId);
1128
+ writer.tag(1, WireType.Varint).int64(message.unitId);
1061
1129
  let u = options.writeUnknownFields;
1062
1130
  if (u !== false)
1063
1131
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1110,10 +1178,10 @@ export const DeleteUnitResponse = new DeleteUnitResponse$Type();
1110
1178
  class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest> {
1111
1179
  constructor() {
1112
1180
  super("services.centrum.UpdateUnitStatusRequest", [
1113
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1114
- { no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
1115
- { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
1116
- { no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
1181
+ { no: 1, name: "unit_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1182
+ { no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1183
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
1184
+ { no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1117
1185
  ]);
1118
1186
  }
1119
1187
  create(value?: PartialMessage<UpdateUnitStatusRequest>): UpdateUnitStatusRequest {
@@ -1129,8 +1197,8 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
1129
1197
  while (reader.pos < end) {
1130
1198
  let [fieldNo, wireType] = reader.tag();
1131
1199
  switch (fieldNo) {
1132
- case /* uint64 unit_id */ 1:
1133
- message.unitId = reader.uint64().toNumber();
1200
+ case /* int64 unit_id */ 1:
1201
+ message.unitId = reader.int64().toNumber();
1134
1202
  break;
1135
1203
  case /* resources.centrum.StatusUnit status */ 2:
1136
1204
  message.status = reader.int32();
@@ -1153,9 +1221,9 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
1153
1221
  return message;
1154
1222
  }
1155
1223
  internalBinaryWrite(message: UpdateUnitStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1156
- /* uint64 unit_id = 1; */
1224
+ /* int64 unit_id = 1; */
1157
1225
  if (message.unitId !== 0)
1158
- writer.tag(1, WireType.Varint).uint64(message.unitId);
1226
+ writer.tag(1, WireType.Varint).int64(message.unitId);
1159
1227
  /* resources.centrum.StatusUnit status = 2; */
1160
1228
  if (message.status !== 0)
1161
1229
  writer.tag(2, WireType.Varint).int32(message.status);
@@ -1217,7 +1285,7 @@ export const UpdateUnitStatusResponse = new UpdateUnitStatusResponse$Type();
1217
1285
  class AssignUnitRequest$Type extends MessageType<AssignUnitRequest> {
1218
1286
  constructor() {
1219
1287
  super("services.centrum.AssignUnitRequest", [
1220
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1288
+ { no: 1, name: "unit_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1221
1289
  { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
1222
1290
  { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
1223
1291
  ]);
@@ -1236,8 +1304,8 @@ class AssignUnitRequest$Type extends MessageType<AssignUnitRequest> {
1236
1304
  while (reader.pos < end) {
1237
1305
  let [fieldNo, wireType] = reader.tag();
1238
1306
  switch (fieldNo) {
1239
- case /* uint64 unit_id */ 1:
1240
- message.unitId = reader.uint64().toNumber();
1307
+ case /* int64 unit_id */ 1:
1308
+ message.unitId = reader.int64().toNumber();
1241
1309
  break;
1242
1310
  case /* repeated int32 to_add */ 2:
1243
1311
  if (wireType === WireType.LengthDelimited)
@@ -1265,9 +1333,9 @@ class AssignUnitRequest$Type extends MessageType<AssignUnitRequest> {
1265
1333
  return message;
1266
1334
  }
1267
1335
  internalBinaryWrite(message: AssignUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1268
- /* uint64 unit_id = 1; */
1336
+ /* int64 unit_id = 1; */
1269
1337
  if (message.unitId !== 0)
1270
- writer.tag(1, WireType.Varint).uint64(message.unitId);
1338
+ writer.tag(1, WireType.Varint).int64(message.unitId);
1271
1339
  /* repeated int32 to_add = 2; */
1272
1340
  if (message.toAdd.length) {
1273
1341
  writer.tag(2, WireType.LengthDelimited).fork();
@@ -1331,11 +1399,205 @@ class AssignUnitResponse$Type extends MessageType<AssignUnitResponse> {
1331
1399
  */
1332
1400
  export const AssignUnitResponse = new AssignUnitResponse$Type();
1333
1401
  // @generated message type with reflection information, may provide speed optimized methods
1402
+ class GetDispatchHeatmapRequest$Type extends MessageType<GetDispatchHeatmapRequest> {
1403
+ constructor() {
1404
+ super("services.centrum.GetDispatchHeatmapRequest", []);
1405
+ }
1406
+ create(value?: PartialMessage<GetDispatchHeatmapRequest>): GetDispatchHeatmapRequest {
1407
+ const message = globalThis.Object.create((this.messagePrototype!));
1408
+ if (value !== undefined)
1409
+ reflectionMergePartial<GetDispatchHeatmapRequest>(this, message, value);
1410
+ return message;
1411
+ }
1412
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDispatchHeatmapRequest): GetDispatchHeatmapRequest {
1413
+ let message = target ?? this.create(), end = reader.pos + length;
1414
+ while (reader.pos < end) {
1415
+ let [fieldNo, wireType] = reader.tag();
1416
+ switch (fieldNo) {
1417
+ default:
1418
+ let u = options.readUnknownField;
1419
+ if (u === "throw")
1420
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1421
+ let d = reader.skip(wireType);
1422
+ if (u !== false)
1423
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1424
+ }
1425
+ }
1426
+ return message;
1427
+ }
1428
+ internalBinaryWrite(message: GetDispatchHeatmapRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1429
+ let u = options.writeUnknownFields;
1430
+ if (u !== false)
1431
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1432
+ return writer;
1433
+ }
1434
+ }
1435
+ /**
1436
+ * @generated MessageType for protobuf message services.centrum.GetDispatchHeatmapRequest
1437
+ */
1438
+ export const GetDispatchHeatmapRequest = new GetDispatchHeatmapRequest$Type();
1439
+ // @generated message type with reflection information, may provide speed optimized methods
1440
+ class GetDispatchHeatmapResponse$Type extends MessageType<GetDispatchHeatmapResponse> {
1441
+ constructor() {
1442
+ super("services.centrum.GetDispatchHeatmapResponse", [
1443
+ { no: 1, name: "max_entries", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1444
+ { no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HeatmapEntry }
1445
+ ]);
1446
+ }
1447
+ create(value?: PartialMessage<GetDispatchHeatmapResponse>): GetDispatchHeatmapResponse {
1448
+ const message = globalThis.Object.create((this.messagePrototype!));
1449
+ message.maxEntries = 0;
1450
+ message.entries = [];
1451
+ if (value !== undefined)
1452
+ reflectionMergePartial<GetDispatchHeatmapResponse>(this, message, value);
1453
+ return message;
1454
+ }
1455
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDispatchHeatmapResponse): GetDispatchHeatmapResponse {
1456
+ let message = target ?? this.create(), end = reader.pos + length;
1457
+ while (reader.pos < end) {
1458
+ let [fieldNo, wireType] = reader.tag();
1459
+ switch (fieldNo) {
1460
+ case /* int32 max_entries */ 1:
1461
+ message.maxEntries = reader.int32();
1462
+ break;
1463
+ case /* repeated resources.livemap.HeatmapEntry entries */ 2:
1464
+ message.entries.push(HeatmapEntry.internalBinaryRead(reader, reader.uint32(), options));
1465
+ break;
1466
+ default:
1467
+ let u = options.readUnknownField;
1468
+ if (u === "throw")
1469
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1470
+ let d = reader.skip(wireType);
1471
+ if (u !== false)
1472
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1473
+ }
1474
+ }
1475
+ return message;
1476
+ }
1477
+ internalBinaryWrite(message: GetDispatchHeatmapResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1478
+ /* int32 max_entries = 1; */
1479
+ if (message.maxEntries !== 0)
1480
+ writer.tag(1, WireType.Varint).int32(message.maxEntries);
1481
+ /* repeated resources.livemap.HeatmapEntry entries = 2; */
1482
+ for (let i = 0; i < message.entries.length; i++)
1483
+ HeatmapEntry.internalBinaryWrite(message.entries[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1484
+ let u = options.writeUnknownFields;
1485
+ if (u !== false)
1486
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1487
+ return writer;
1488
+ }
1489
+ }
1490
+ /**
1491
+ * @generated MessageType for protobuf message services.centrum.GetDispatchHeatmapResponse
1492
+ */
1493
+ export const GetDispatchHeatmapResponse = new GetDispatchHeatmapResponse$Type();
1494
+ // @generated message type with reflection information, may provide speed optimized methods
1495
+ class UpdateDispatchersRequest$Type extends MessageType<UpdateDispatchersRequest> {
1496
+ constructor() {
1497
+ super("services.centrum.UpdateDispatchersRequest", [
1498
+ { no: 1, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } }
1499
+ ]);
1500
+ }
1501
+ create(value?: PartialMessage<UpdateDispatchersRequest>): UpdateDispatchersRequest {
1502
+ const message = globalThis.Object.create((this.messagePrototype!));
1503
+ message.toRemove = [];
1504
+ if (value !== undefined)
1505
+ reflectionMergePartial<UpdateDispatchersRequest>(this, message, value);
1506
+ return message;
1507
+ }
1508
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDispatchersRequest): UpdateDispatchersRequest {
1509
+ let message = target ?? this.create(), end = reader.pos + length;
1510
+ while (reader.pos < end) {
1511
+ let [fieldNo, wireType] = reader.tag();
1512
+ switch (fieldNo) {
1513
+ case /* repeated int32 to_remove */ 1:
1514
+ if (wireType === WireType.LengthDelimited)
1515
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
1516
+ message.toRemove.push(reader.int32());
1517
+ else
1518
+ message.toRemove.push(reader.int32());
1519
+ break;
1520
+ default:
1521
+ let u = options.readUnknownField;
1522
+ if (u === "throw")
1523
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1524
+ let d = reader.skip(wireType);
1525
+ if (u !== false)
1526
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1527
+ }
1528
+ }
1529
+ return message;
1530
+ }
1531
+ internalBinaryWrite(message: UpdateDispatchersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1532
+ /* repeated int32 to_remove = 1; */
1533
+ if (message.toRemove.length) {
1534
+ writer.tag(1, WireType.LengthDelimited).fork();
1535
+ for (let i = 0; i < message.toRemove.length; i++)
1536
+ writer.int32(message.toRemove[i]);
1537
+ writer.join();
1538
+ }
1539
+ let u = options.writeUnknownFields;
1540
+ if (u !== false)
1541
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1542
+ return writer;
1543
+ }
1544
+ }
1545
+ /**
1546
+ * @generated MessageType for protobuf message services.centrum.UpdateDispatchersRequest
1547
+ */
1548
+ export const UpdateDispatchersRequest = new UpdateDispatchersRequest$Type();
1549
+ // @generated message type with reflection information, may provide speed optimized methods
1550
+ class UpdateDispatchersResponse$Type extends MessageType<UpdateDispatchersResponse> {
1551
+ constructor() {
1552
+ super("services.centrum.UpdateDispatchersResponse", [
1553
+ { no: 1, name: "dispatchers", kind: "message", T: () => Dispatchers }
1554
+ ]);
1555
+ }
1556
+ create(value?: PartialMessage<UpdateDispatchersResponse>): UpdateDispatchersResponse {
1557
+ const message = globalThis.Object.create((this.messagePrototype!));
1558
+ if (value !== undefined)
1559
+ reflectionMergePartial<UpdateDispatchersResponse>(this, message, value);
1560
+ return message;
1561
+ }
1562
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDispatchersResponse): UpdateDispatchersResponse {
1563
+ let message = target ?? this.create(), end = reader.pos + length;
1564
+ while (reader.pos < end) {
1565
+ let [fieldNo, wireType] = reader.tag();
1566
+ switch (fieldNo) {
1567
+ case /* resources.centrum.Dispatchers dispatchers */ 1:
1568
+ message.dispatchers = Dispatchers.internalBinaryRead(reader, reader.uint32(), options, message.dispatchers);
1569
+ break;
1570
+ default:
1571
+ let u = options.readUnknownField;
1572
+ if (u === "throw")
1573
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1574
+ let d = reader.skip(wireType);
1575
+ if (u !== false)
1576
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1577
+ }
1578
+ }
1579
+ return message;
1580
+ }
1581
+ internalBinaryWrite(message: UpdateDispatchersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1582
+ /* resources.centrum.Dispatchers dispatchers = 1; */
1583
+ if (message.dispatchers)
1584
+ Dispatchers.internalBinaryWrite(message.dispatchers, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1585
+ let u = options.writeUnknownFields;
1586
+ if (u !== false)
1587
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1588
+ return writer;
1589
+ }
1590
+ }
1591
+ /**
1592
+ * @generated MessageType for protobuf message services.centrum.UpdateDispatchersResponse
1593
+ */
1594
+ export const UpdateDispatchersResponse = new UpdateDispatchersResponse$Type();
1595
+ // @generated message type with reflection information, may provide speed optimized methods
1334
1596
  class ListUnitActivityResponse$Type extends MessageType<ListUnitActivityResponse> {
1335
1597
  constructor() {
1336
1598
  super("services.centrum.ListUnitActivityResponse", [
1337
- { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
1338
- { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UnitStatus }
1599
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
1600
+ { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UnitStatus, options: { "codegen.itemslen.enabled": true } }
1339
1601
  ]);
1340
1602
  }
1341
1603
  create(value?: PartialMessage<ListUnitActivityResponse>): ListUnitActivityResponse {
@@ -1473,11 +1735,11 @@ export const TakeControlResponse = new TakeControlResponse$Type();
1473
1735
  class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
1474
1736
  constructor() {
1475
1737
  super("services.centrum.ListDispatchesRequest", [
1476
- { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
1477
- { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } },
1478
- { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } },
1479
- { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { repeated: { maxItems: "10" } } } },
1480
- { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } }
1738
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
1739
+ { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
1740
+ { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
1741
+ { 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" } } } },
1742
+ { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } }
1481
1743
  ]);
1482
1744
  }
1483
1745
  create(value?: PartialMessage<ListDispatchesRequest>): ListDispatchesRequest {
@@ -1511,12 +1773,12 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
1511
1773
  else
1512
1774
  message.notStatus.push(reader.int32());
1513
1775
  break;
1514
- case /* repeated uint64 ids */ 4:
1776
+ case /* repeated int64 ids */ 4:
1515
1777
  if (wireType === WireType.LengthDelimited)
1516
1778
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
1517
- message.ids.push(reader.uint64().toNumber());
1779
+ message.ids.push(reader.int64().toNumber());
1518
1780
  else
1519
- message.ids.push(reader.uint64().toNumber());
1781
+ message.ids.push(reader.int64().toNumber());
1520
1782
  break;
1521
1783
  case /* optional string postal */ 5:
1522
1784
  message.postal = reader.string();
@@ -1550,11 +1812,11 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
1550
1812
  writer.int32(message.notStatus[i]);
1551
1813
  writer.join();
1552
1814
  }
1553
- /* repeated uint64 ids = 4; */
1815
+ /* repeated int64 ids = 4; */
1554
1816
  if (message.ids.length) {
1555
1817
  writer.tag(4, WireType.LengthDelimited).fork();
1556
1818
  for (let i = 0; i < message.ids.length; i++)
1557
- writer.uint64(message.ids[i]);
1819
+ writer.int64(message.ids[i]);
1558
1820
  writer.join();
1559
1821
  }
1560
1822
  /* optional string postal = 5; */
@@ -1574,8 +1836,8 @@ export const ListDispatchesRequest = new ListDispatchesRequest$Type();
1574
1836
  class ListDispatchesResponse$Type extends MessageType<ListDispatchesResponse> {
1575
1837
  constructor() {
1576
1838
  super("services.centrum.ListDispatchesResponse", [
1577
- { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
1578
- { no: 2, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch }
1839
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
1840
+ { no: 2, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch, options: { "codegen.itemslen.enabled": true } }
1579
1841
  ]);
1580
1842
  }
1581
1843
  create(value?: PartialMessage<ListDispatchesResponse>): ListDispatchesResponse {
@@ -1628,7 +1890,7 @@ export const ListDispatchesResponse = new ListDispatchesResponse$Type();
1628
1890
  class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
1629
1891
  constructor() {
1630
1892
  super("services.centrum.GetDispatchRequest", [
1631
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { uint64: { gt: "0" } } } }
1893
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } }
1632
1894
  ]);
1633
1895
  }
1634
1896
  create(value?: PartialMessage<GetDispatchRequest>): GetDispatchRequest {
@@ -1643,8 +1905,8 @@ class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
1643
1905
  while (reader.pos < end) {
1644
1906
  let [fieldNo, wireType] = reader.tag();
1645
1907
  switch (fieldNo) {
1646
- case /* uint64 id */ 1:
1647
- message.id = reader.uint64().toNumber();
1908
+ case /* int64 id */ 1:
1909
+ message.id = reader.int64().toNumber();
1648
1910
  break;
1649
1911
  default:
1650
1912
  let u = options.readUnknownField;
@@ -1658,9 +1920,9 @@ class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
1658
1920
  return message;
1659
1921
  }
1660
1922
  internalBinaryWrite(message: GetDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1661
- /* uint64 id = 1; */
1923
+ /* int64 id = 1; */
1662
1924
  if (message.id !== 0)
1663
- writer.tag(1, WireType.Varint).uint64(message.id);
1925
+ writer.tag(1, WireType.Varint).int64(message.id);
1664
1926
  let u = options.writeUnknownFields;
1665
1927
  if (u !== false)
1666
1928
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1721,7 +1983,7 @@ export const GetDispatchResponse = new GetDispatchResponse$Type();
1721
1983
  class CreateDispatchRequest$Type extends MessageType<CreateDispatchRequest> {
1722
1984
  constructor() {
1723
1985
  super("services.centrum.CreateDispatchRequest", [
1724
- { no: 1, name: "dispatch", kind: "message", T: () => Dispatch, options: { "validate.rules": { message: { required: true } } } }
1986
+ { no: 1, name: "dispatch", kind: "message", T: () => Dispatch, options: { "buf.validate.field": { required: true } } }
1725
1987
  ]);
1726
1988
  }
1727
1989
  create(value?: PartialMessage<CreateDispatchRequest>): CreateDispatchRequest {
@@ -1813,7 +2075,7 @@ export const CreateDispatchResponse = new CreateDispatchResponse$Type();
1813
2075
  class UpdateDispatchRequest$Type extends MessageType<UpdateDispatchRequest> {
1814
2076
  constructor() {
1815
2077
  super("services.centrum.UpdateDispatchRequest", [
1816
- { no: 1, name: "dispatch", kind: "message", T: () => Dispatch, options: { "validate.rules": { message: { required: true } } } }
2078
+ { no: 1, name: "dispatch", kind: "message", T: () => Dispatch, options: { "buf.validate.field": { required: true } } }
1817
2079
  ]);
1818
2080
  }
1819
2081
  create(value?: PartialMessage<UpdateDispatchRequest>): UpdateDispatchRequest {
@@ -1858,7 +2120,9 @@ export const UpdateDispatchRequest = new UpdateDispatchRequest$Type();
1858
2120
  // @generated message type with reflection information, may provide speed optimized methods
1859
2121
  class UpdateDispatchResponse$Type extends MessageType<UpdateDispatchResponse> {
1860
2122
  constructor() {
1861
- super("services.centrum.UpdateDispatchResponse", []);
2123
+ super("services.centrum.UpdateDispatchResponse", [
2124
+ { no: 1, name: "dispatch", kind: "message", T: () => Dispatch }
2125
+ ]);
1862
2126
  }
1863
2127
  create(value?: PartialMessage<UpdateDispatchResponse>): UpdateDispatchResponse {
1864
2128
  const message = globalThis.Object.create((this.messagePrototype!));
@@ -1871,6 +2135,9 @@ class UpdateDispatchResponse$Type extends MessageType<UpdateDispatchResponse> {
1871
2135
  while (reader.pos < end) {
1872
2136
  let [fieldNo, wireType] = reader.tag();
1873
2137
  switch (fieldNo) {
2138
+ case /* resources.centrum.Dispatch dispatch */ 1:
2139
+ message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
2140
+ break;
1874
2141
  default:
1875
2142
  let u = options.readUnknownField;
1876
2143
  if (u === "throw")
@@ -1883,6 +2150,9 @@ class UpdateDispatchResponse$Type extends MessageType<UpdateDispatchResponse> {
1883
2150
  return message;
1884
2151
  }
1885
2152
  internalBinaryWrite(message: UpdateDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2153
+ /* resources.centrum.Dispatch dispatch = 1; */
2154
+ if (message.dispatch)
2155
+ Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1886
2156
  let u = options.writeUnknownFields;
1887
2157
  if (u !== false)
1888
2158
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1897,7 +2167,7 @@ export const UpdateDispatchResponse = new UpdateDispatchResponse$Type();
1897
2167
  class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
1898
2168
  constructor() {
1899
2169
  super("services.centrum.DeleteDispatchRequest", [
1900
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { uint64: { gt: "0" } } } }
2170
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } }
1901
2171
  ]);
1902
2172
  }
1903
2173
  create(value?: PartialMessage<DeleteDispatchRequest>): DeleteDispatchRequest {
@@ -1912,8 +2182,8 @@ class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
1912
2182
  while (reader.pos < end) {
1913
2183
  let [fieldNo, wireType] = reader.tag();
1914
2184
  switch (fieldNo) {
1915
- case /* uint64 id */ 1:
1916
- message.id = reader.uint64().toNumber();
2185
+ case /* int64 id */ 1:
2186
+ message.id = reader.int64().toNumber();
1917
2187
  break;
1918
2188
  default:
1919
2189
  let u = options.readUnknownField;
@@ -1927,9 +2197,9 @@ class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
1927
2197
  return message;
1928
2198
  }
1929
2199
  internalBinaryWrite(message: DeleteDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1930
- /* uint64 id = 1; */
2200
+ /* int64 id = 1; */
1931
2201
  if (message.id !== 0)
1932
- writer.tag(1, WireType.Varint).uint64(message.id);
2202
+ writer.tag(1, WireType.Varint).int64(message.id);
1933
2203
  let u = options.writeUnknownFields;
1934
2204
  if (u !== false)
1935
2205
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1979,13 +2249,98 @@ class DeleteDispatchResponse$Type extends MessageType<DeleteDispatchResponse> {
1979
2249
  */
1980
2250
  export const DeleteDispatchResponse = new DeleteDispatchResponse$Type();
1981
2251
  // @generated message type with reflection information, may provide speed optimized methods
2252
+ class ListDispatchTargetJobsRequest$Type extends MessageType<ListDispatchTargetJobsRequest> {
2253
+ constructor() {
2254
+ super("services.centrum.ListDispatchTargetJobsRequest", []);
2255
+ }
2256
+ create(value?: PartialMessage<ListDispatchTargetJobsRequest>): ListDispatchTargetJobsRequest {
2257
+ const message = globalThis.Object.create((this.messagePrototype!));
2258
+ if (value !== undefined)
2259
+ reflectionMergePartial<ListDispatchTargetJobsRequest>(this, message, value);
2260
+ return message;
2261
+ }
2262
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchTargetJobsRequest): ListDispatchTargetJobsRequest {
2263
+ let message = target ?? this.create(), end = reader.pos + length;
2264
+ while (reader.pos < end) {
2265
+ let [fieldNo, wireType] = reader.tag();
2266
+ switch (fieldNo) {
2267
+ default:
2268
+ let u = options.readUnknownField;
2269
+ if (u === "throw")
2270
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2271
+ let d = reader.skip(wireType);
2272
+ if (u !== false)
2273
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2274
+ }
2275
+ }
2276
+ return message;
2277
+ }
2278
+ internalBinaryWrite(message: ListDispatchTargetJobsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2279
+ let u = options.writeUnknownFields;
2280
+ if (u !== false)
2281
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2282
+ return writer;
2283
+ }
2284
+ }
2285
+ /**
2286
+ * @generated MessageType for protobuf message services.centrum.ListDispatchTargetJobsRequest
2287
+ */
2288
+ export const ListDispatchTargetJobsRequest = new ListDispatchTargetJobsRequest$Type();
2289
+ // @generated message type with reflection information, may provide speed optimized methods
2290
+ class ListDispatchTargetJobsResponse$Type extends MessageType<ListDispatchTargetJobsResponse> {
2291
+ constructor() {
2292
+ super("services.centrum.ListDispatchTargetJobsResponse", [
2293
+ { no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Job, options: { "codegen.itemslen.enabled": true } }
2294
+ ]);
2295
+ }
2296
+ create(value?: PartialMessage<ListDispatchTargetJobsResponse>): ListDispatchTargetJobsResponse {
2297
+ const message = globalThis.Object.create((this.messagePrototype!));
2298
+ message.jobs = [];
2299
+ if (value !== undefined)
2300
+ reflectionMergePartial<ListDispatchTargetJobsResponse>(this, message, value);
2301
+ return message;
2302
+ }
2303
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchTargetJobsResponse): ListDispatchTargetJobsResponse {
2304
+ let message = target ?? this.create(), end = reader.pos + length;
2305
+ while (reader.pos < end) {
2306
+ let [fieldNo, wireType] = reader.tag();
2307
+ switch (fieldNo) {
2308
+ case /* repeated resources.jobs.Job jobs */ 1:
2309
+ message.jobs.push(Job.internalBinaryRead(reader, reader.uint32(), options));
2310
+ break;
2311
+ default:
2312
+ let u = options.readUnknownField;
2313
+ if (u === "throw")
2314
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2315
+ let d = reader.skip(wireType);
2316
+ if (u !== false)
2317
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2318
+ }
2319
+ }
2320
+ return message;
2321
+ }
2322
+ internalBinaryWrite(message: ListDispatchTargetJobsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2323
+ /* repeated resources.jobs.Job jobs = 1; */
2324
+ for (let i = 0; i < message.jobs.length; i++)
2325
+ Job.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2326
+ let u = options.writeUnknownFields;
2327
+ if (u !== false)
2328
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2329
+ return writer;
2330
+ }
2331
+ }
2332
+ /**
2333
+ * @generated MessageType for protobuf message services.centrum.ListDispatchTargetJobsResponse
2334
+ */
2335
+ export const ListDispatchTargetJobsResponse = new ListDispatchTargetJobsResponse$Type();
2336
+ // @generated message type with reflection information, may provide speed optimized methods
1982
2337
  class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusRequest> {
1983
2338
  constructor() {
1984
2339
  super("services.centrum.UpdateDispatchStatusRequest", [
1985
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1986
- { no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
1987
- { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
1988
- { no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2340
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2341
+ { no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
2342
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
2343
+ { no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1989
2344
  ]);
1990
2345
  }
1991
2346
  create(value?: PartialMessage<UpdateDispatchStatusRequest>): UpdateDispatchStatusRequest {
@@ -2001,8 +2356,8 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
2001
2356
  while (reader.pos < end) {
2002
2357
  let [fieldNo, wireType] = reader.tag();
2003
2358
  switch (fieldNo) {
2004
- case /* uint64 dispatch_id */ 1:
2005
- message.dispatchId = reader.uint64().toNumber();
2359
+ case /* int64 dispatch_id */ 1:
2360
+ message.dispatchId = reader.int64().toNumber();
2006
2361
  break;
2007
2362
  case /* resources.centrum.StatusDispatch status */ 2:
2008
2363
  message.status = reader.int32();
@@ -2025,9 +2380,9 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
2025
2380
  return message;
2026
2381
  }
2027
2382
  internalBinaryWrite(message: UpdateDispatchStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2028
- /* uint64 dispatch_id = 1; */
2383
+ /* int64 dispatch_id = 1; */
2029
2384
  if (message.dispatchId !== 0)
2030
- writer.tag(1, WireType.Varint).uint64(message.dispatchId);
2385
+ writer.tag(1, WireType.Varint).int64(message.dispatchId);
2031
2386
  /* resources.centrum.StatusDispatch status = 2; */
2032
2387
  if (message.status !== 0)
2033
2388
  writer.tag(2, WireType.Varint).int32(message.status);
@@ -2089,9 +2444,9 @@ export const UpdateDispatchStatusResponse = new UpdateDispatchStatusResponse$Typ
2089
2444
  class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
2090
2445
  constructor() {
2091
2446
  super("services.centrum.AssignDispatchRequest", [
2092
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
2093
- { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
2094
- { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
2447
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2448
+ { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2449
+ { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2095
2450
  { no: 4, name: "forced", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
2096
2451
  ]);
2097
2452
  }
@@ -2109,22 +2464,22 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
2109
2464
  while (reader.pos < end) {
2110
2465
  let [fieldNo, wireType] = reader.tag();
2111
2466
  switch (fieldNo) {
2112
- case /* uint64 dispatch_id */ 1:
2113
- message.dispatchId = reader.uint64().toNumber();
2467
+ case /* int64 dispatch_id */ 1:
2468
+ message.dispatchId = reader.int64().toNumber();
2114
2469
  break;
2115
- case /* repeated uint64 to_add */ 2:
2470
+ case /* repeated int64 to_add */ 2:
2116
2471
  if (wireType === WireType.LengthDelimited)
2117
2472
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
2118
- message.toAdd.push(reader.uint64().toNumber());
2473
+ message.toAdd.push(reader.int64().toNumber());
2119
2474
  else
2120
- message.toAdd.push(reader.uint64().toNumber());
2475
+ message.toAdd.push(reader.int64().toNumber());
2121
2476
  break;
2122
- case /* repeated uint64 to_remove */ 3:
2477
+ case /* repeated int64 to_remove */ 3:
2123
2478
  if (wireType === WireType.LengthDelimited)
2124
2479
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
2125
- message.toRemove.push(reader.uint64().toNumber());
2480
+ message.toRemove.push(reader.int64().toNumber());
2126
2481
  else
2127
- message.toRemove.push(reader.uint64().toNumber());
2482
+ message.toRemove.push(reader.int64().toNumber());
2128
2483
  break;
2129
2484
  case /* optional bool forced */ 4:
2130
2485
  message.forced = reader.bool();
@@ -2141,21 +2496,21 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
2141
2496
  return message;
2142
2497
  }
2143
2498
  internalBinaryWrite(message: AssignDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2144
- /* uint64 dispatch_id = 1; */
2499
+ /* int64 dispatch_id = 1; */
2145
2500
  if (message.dispatchId !== 0)
2146
- writer.tag(1, WireType.Varint).uint64(message.dispatchId);
2147
- /* repeated uint64 to_add = 2; */
2501
+ writer.tag(1, WireType.Varint).int64(message.dispatchId);
2502
+ /* repeated int64 to_add = 2; */
2148
2503
  if (message.toAdd.length) {
2149
2504
  writer.tag(2, WireType.LengthDelimited).fork();
2150
2505
  for (let i = 0; i < message.toAdd.length; i++)
2151
- writer.uint64(message.toAdd[i]);
2506
+ writer.int64(message.toAdd[i]);
2152
2507
  writer.join();
2153
2508
  }
2154
- /* repeated uint64 to_remove = 3; */
2509
+ /* repeated int64 to_remove = 3; */
2155
2510
  if (message.toRemove.length) {
2156
2511
  writer.tag(3, WireType.LengthDelimited).fork();
2157
2512
  for (let i = 0; i < message.toRemove.length; i++)
2158
- writer.uint64(message.toRemove[i]);
2513
+ writer.int64(message.toRemove[i]);
2159
2514
  writer.join();
2160
2515
  }
2161
2516
  /* optional bool forced = 4; */
@@ -2213,8 +2568,8 @@ export const AssignDispatchResponse = new AssignDispatchResponse$Type();
2213
2568
  class ListDispatchActivityResponse$Type extends MessageType<ListDispatchActivityResponse> {
2214
2569
  constructor() {
2215
2570
  super("services.centrum.ListDispatchActivityResponse", [
2216
- { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
2217
- { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchStatus }
2571
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
2572
+ { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchStatus, options: { "codegen.itemslen.enabled": true } }
2218
2573
  ]);
2219
2574
  }
2220
2575
  create(value?: PartialMessage<ListDispatchActivityResponse>): ListDispatchActivityResponse {
@@ -2267,7 +2622,7 @@ export const ListDispatchActivityResponse = new ListDispatchActivityResponse$Typ
2267
2622
  class JoinUnitRequest$Type extends MessageType<JoinUnitRequest> {
2268
2623
  constructor() {
2269
2624
  super("services.centrum.JoinUnitRequest", [
2270
- { no: 1, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
2625
+ { no: 1, name: "unit_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
2271
2626
  ]);
2272
2627
  }
2273
2628
  create(value?: PartialMessage<JoinUnitRequest>): JoinUnitRequest {
@@ -2281,8 +2636,8 @@ class JoinUnitRequest$Type extends MessageType<JoinUnitRequest> {
2281
2636
  while (reader.pos < end) {
2282
2637
  let [fieldNo, wireType] = reader.tag();
2283
2638
  switch (fieldNo) {
2284
- case /* optional uint64 unit_id */ 1:
2285
- message.unitId = reader.uint64().toNumber();
2639
+ case /* optional int64 unit_id */ 1:
2640
+ message.unitId = reader.int64().toNumber();
2286
2641
  break;
2287
2642
  default:
2288
2643
  let u = options.readUnknownField;
@@ -2296,9 +2651,9 @@ class JoinUnitRequest$Type extends MessageType<JoinUnitRequest> {
2296
2651
  return message;
2297
2652
  }
2298
2653
  internalBinaryWrite(message: JoinUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2299
- /* optional uint64 unit_id = 1; */
2654
+ /* optional int64 unit_id = 1; */
2300
2655
  if (message.unitId !== undefined)
2301
- writer.tag(1, WireType.Varint).uint64(message.unitId);
2656
+ writer.tag(1, WireType.Varint).int64(message.unitId);
2302
2657
  let u = options.writeUnknownFields;
2303
2658
  if (u !== false)
2304
2659
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2359,9 +2714,9 @@ export const JoinUnitResponse = new JoinUnitResponse$Type();
2359
2714
  class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
2360
2715
  constructor() {
2361
2716
  super("services.centrum.TakeDispatchRequest", [
2362
- { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { repeated: { minItems: "1" } } } },
2363
- { no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
2364
- { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } }
2717
+ { 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" } } } },
2718
+ { no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
2719
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
2365
2720
  ]);
2366
2721
  }
2367
2722
  create(value?: PartialMessage<TakeDispatchRequest>): TakeDispatchRequest {
@@ -2377,12 +2732,12 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
2377
2732
  while (reader.pos < end) {
2378
2733
  let [fieldNo, wireType] = reader.tag();
2379
2734
  switch (fieldNo) {
2380
- case /* repeated uint64 dispatch_ids */ 1:
2735
+ case /* repeated int64 dispatch_ids */ 1:
2381
2736
  if (wireType === WireType.LengthDelimited)
2382
2737
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
2383
- message.dispatchIds.push(reader.uint64().toNumber());
2738
+ message.dispatchIds.push(reader.int64().toNumber());
2384
2739
  else
2385
- message.dispatchIds.push(reader.uint64().toNumber());
2740
+ message.dispatchIds.push(reader.int64().toNumber());
2386
2741
  break;
2387
2742
  case /* resources.centrum.TakeDispatchResp resp */ 2:
2388
2743
  message.resp = reader.int32();
@@ -2402,11 +2757,11 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
2402
2757
  return message;
2403
2758
  }
2404
2759
  internalBinaryWrite(message: TakeDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2405
- /* repeated uint64 dispatch_ids = 1; */
2760
+ /* repeated int64 dispatch_ids = 1; */
2406
2761
  if (message.dispatchIds.length) {
2407
2762
  writer.tag(1, WireType.LengthDelimited).fork();
2408
2763
  for (let i = 0; i < message.dispatchIds.length; i++)
2409
- writer.uint64(message.dispatchIds[i]);
2764
+ writer.int64(message.dispatchIds[i]);
2410
2765
  writer.join();
2411
2766
  }
2412
2767
  /* resources.centrum.TakeDispatchResp resp = 2; */
@@ -2464,27 +2819,21 @@ class TakeDispatchResponse$Type extends MessageType<TakeDispatchResponse> {
2464
2819
  */
2465
2820
  export const TakeDispatchResponse = new TakeDispatchResponse$Type();
2466
2821
  // @generated message type with reflection information, may provide speed optimized methods
2467
- class LatestState$Type extends MessageType<LatestState> {
2822
+ class StreamHandshake$Type extends MessageType<StreamHandshake> {
2468
2823
  constructor() {
2469
- super("services.centrum.LatestState", [
2824
+ super("services.centrum.StreamHandshake", [
2470
2825
  { no: 1, name: "server_time", kind: "message", T: () => Timestamp },
2471
2826
  { no: 2, name: "settings", kind: "message", T: () => Settings },
2472
- { no: 3, name: "disponents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Colleague },
2473
- { no: 4, name: "own_unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
2474
- { no: 5, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit },
2475
- { no: 6, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch }
2827
+ { no: 3, name: "access", kind: "message", T: () => EffectiveAccess }
2476
2828
  ]);
2477
2829
  }
2478
- create(value?: PartialMessage<LatestState>): LatestState {
2830
+ create(value?: PartialMessage<StreamHandshake>): StreamHandshake {
2479
2831
  const message = globalThis.Object.create((this.messagePrototype!));
2480
- message.disponents = [];
2481
- message.units = [];
2482
- message.dispatches = [];
2483
2832
  if (value !== undefined)
2484
- reflectionMergePartial<LatestState>(this, message, value);
2833
+ reflectionMergePartial<StreamHandshake>(this, message, value);
2485
2834
  return message;
2486
2835
  }
2487
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LatestState): LatestState {
2836
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamHandshake): StreamHandshake {
2488
2837
  let message = target ?? this.create(), end = reader.pos + length;
2489
2838
  while (reader.pos < end) {
2490
2839
  let [fieldNo, wireType] = reader.tag();
@@ -2495,17 +2844,8 @@ class LatestState$Type extends MessageType<LatestState> {
2495
2844
  case /* resources.centrum.Settings settings */ 2:
2496
2845
  message.settings = Settings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
2497
2846
  break;
2498
- case /* repeated resources.jobs.Colleague disponents */ 3:
2499
- message.disponents.push(Colleague.internalBinaryRead(reader, reader.uint32(), options));
2500
- break;
2501
- case /* optional uint64 own_unit_id */ 4:
2502
- message.ownUnitId = reader.uint64().toNumber();
2503
- break;
2504
- case /* repeated resources.centrum.Unit units */ 5:
2505
- message.units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
2506
- break;
2507
- case /* repeated resources.centrum.Dispatch dispatches */ 6:
2508
- message.dispatches.push(Dispatch.internalBinaryRead(reader, reader.uint32(), options));
2847
+ case /* resources.centrum.EffectiveAccess access */ 3:
2848
+ message.access = EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
2509
2849
  break;
2510
2850
  default:
2511
2851
  let u = options.readUnknownField;
@@ -2518,25 +2858,85 @@ class LatestState$Type extends MessageType<LatestState> {
2518
2858
  }
2519
2859
  return message;
2520
2860
  }
2521
- internalBinaryWrite(message: LatestState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2861
+ internalBinaryWrite(message: StreamHandshake, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2522
2862
  /* resources.timestamp.Timestamp server_time = 1; */
2523
2863
  if (message.serverTime)
2524
2864
  Timestamp.internalBinaryWrite(message.serverTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2525
2865
  /* resources.centrum.Settings settings = 2; */
2526
2866
  if (message.settings)
2527
2867
  Settings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2528
- /* repeated resources.jobs.Colleague disponents = 3; */
2529
- for (let i = 0; i < message.disponents.length; i++)
2530
- Colleague.internalBinaryWrite(message.disponents[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2531
- /* optional uint64 own_unit_id = 4; */
2868
+ /* resources.centrum.EffectiveAccess access = 3; */
2869
+ if (message.access)
2870
+ EffectiveAccess.internalBinaryWrite(message.access, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2871
+ let u = options.writeUnknownFields;
2872
+ if (u !== false)
2873
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2874
+ return writer;
2875
+ }
2876
+ }
2877
+ /**
2878
+ * @generated MessageType for protobuf message services.centrum.StreamHandshake
2879
+ */
2880
+ export const StreamHandshake = new StreamHandshake$Type();
2881
+ // @generated message type with reflection information, may provide speed optimized methods
2882
+ class LatestState$Type extends MessageType<LatestState> {
2883
+ constructor() {
2884
+ super("services.centrum.LatestState", [
2885
+ { no: 1, name: "dispatchers", kind: "message", T: () => JobDispatchers },
2886
+ { no: 2, name: "own_unit_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2887
+ { no: 3, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit },
2888
+ { no: 4, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch }
2889
+ ]);
2890
+ }
2891
+ create(value?: PartialMessage<LatestState>): LatestState {
2892
+ const message = globalThis.Object.create((this.messagePrototype!));
2893
+ message.units = [];
2894
+ message.dispatches = [];
2895
+ if (value !== undefined)
2896
+ reflectionMergePartial<LatestState>(this, message, value);
2897
+ return message;
2898
+ }
2899
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LatestState): LatestState {
2900
+ let message = target ?? this.create(), end = reader.pos + length;
2901
+ while (reader.pos < end) {
2902
+ let [fieldNo, wireType] = reader.tag();
2903
+ switch (fieldNo) {
2904
+ case /* resources.centrum.JobDispatchers dispatchers */ 1:
2905
+ message.dispatchers = JobDispatchers.internalBinaryRead(reader, reader.uint32(), options, message.dispatchers);
2906
+ break;
2907
+ case /* optional int64 own_unit_id */ 2:
2908
+ message.ownUnitId = reader.int64().toNumber();
2909
+ break;
2910
+ case /* repeated resources.centrum.Unit units */ 3:
2911
+ message.units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
2912
+ break;
2913
+ case /* repeated resources.centrum.Dispatch dispatches */ 4:
2914
+ message.dispatches.push(Dispatch.internalBinaryRead(reader, reader.uint32(), options));
2915
+ break;
2916
+ default:
2917
+ let u = options.readUnknownField;
2918
+ if (u === "throw")
2919
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2920
+ let d = reader.skip(wireType);
2921
+ if (u !== false)
2922
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2923
+ }
2924
+ }
2925
+ return message;
2926
+ }
2927
+ internalBinaryWrite(message: LatestState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2928
+ /* resources.centrum.JobDispatchers dispatchers = 1; */
2929
+ if (message.dispatchers)
2930
+ JobDispatchers.internalBinaryWrite(message.dispatchers, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2931
+ /* optional int64 own_unit_id = 2; */
2532
2932
  if (message.ownUnitId !== undefined)
2533
- writer.tag(4, WireType.Varint).uint64(message.ownUnitId);
2534
- /* repeated resources.centrum.Unit units = 5; */
2933
+ writer.tag(2, WireType.Varint).int64(message.ownUnitId);
2934
+ /* repeated resources.centrum.Unit units = 3; */
2535
2935
  for (let i = 0; i < message.units.length; i++)
2536
- Unit.internalBinaryWrite(message.units[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2537
- /* repeated resources.centrum.Dispatch dispatches = 6; */
2936
+ Unit.internalBinaryWrite(message.units[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2937
+ /* repeated resources.centrum.Dispatch dispatches = 4; */
2538
2938
  for (let i = 0; i < message.dispatches.length; i++)
2539
- Dispatch.internalBinaryWrite(message.dispatches[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2939
+ Dispatch.internalBinaryWrite(message.dispatches[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2540
2940
  let u = options.writeUnknownFields;
2541
2941
  if (u !== false)
2542
2942
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2589,15 +2989,15 @@ export const StreamRequest = new StreamRequest$Type();
2589
2989
  class StreamResponse$Type extends MessageType<StreamResponse> {
2590
2990
  constructor() {
2591
2991
  super("services.centrum.StreamResponse", [
2592
- { no: 1, name: "latest_state", kind: "message", oneof: "change", T: () => LatestState },
2593
- { no: 2, name: "settings", kind: "message", oneof: "change", T: () => Settings },
2594
- { no: 3, name: "disponents", kind: "message", oneof: "change", T: () => Disponents },
2595
- { no: 4, name: "unit_created", kind: "message", oneof: "change", T: () => Unit },
2596
- { no: 5, name: "unit_deleted", kind: "message", oneof: "change", T: () => Unit },
2597
- { no: 6, name: "unit_updated", kind: "message", oneof: "change", T: () => Unit },
2598
- { no: 7, name: "unit_status", kind: "message", oneof: "change", T: () => UnitStatus },
2599
- { no: 8, name: "dispatch_created", kind: "message", oneof: "change", T: () => Dispatch },
2600
- { no: 9, name: "dispatch_deleted", kind: "message", oneof: "change", T: () => Dispatch },
2992
+ { no: 1, name: "handshake", kind: "message", oneof: "change", T: () => StreamHandshake },
2993
+ { no: 2, name: "latest_state", kind: "message", oneof: "change", T: () => LatestState },
2994
+ { no: 3, name: "settings", kind: "message", oneof: "change", T: () => Settings },
2995
+ { no: 4, name: "access", kind: "message", oneof: "change", T: () => EffectiveAccess },
2996
+ { no: 5, name: "dispatchers", kind: "message", oneof: "change", T: () => Dispatchers },
2997
+ { no: 6, name: "unit_deleted", kind: "scalar", oneof: "change", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2998
+ { no: 7, name: "unit_updated", kind: "message", oneof: "change", T: () => Unit },
2999
+ { no: 8, name: "unit_status", kind: "message", oneof: "change", T: () => UnitStatus },
3000
+ { no: 9, name: "dispatch_deleted", kind: "scalar", oneof: "change", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2601
3001
  { no: 10, name: "dispatch_updated", kind: "message", oneof: "change", T: () => Dispatch },
2602
3002
  { no: 11, name: "dispatch_status", kind: "message", oneof: "change", T: () => DispatchStatus }
2603
3003
  ]);
@@ -2614,58 +3014,58 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
2614
3014
  while (reader.pos < end) {
2615
3015
  let [fieldNo, wireType] = reader.tag();
2616
3016
  switch (fieldNo) {
2617
- case /* services.centrum.LatestState latest_state */ 1:
3017
+ case /* services.centrum.StreamHandshake handshake */ 1:
3018
+ message.change = {
3019
+ oneofKind: "handshake",
3020
+ handshake: StreamHandshake.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).handshake)
3021
+ };
3022
+ break;
3023
+ case /* services.centrum.LatestState latest_state */ 2:
2618
3024
  message.change = {
2619
3025
  oneofKind: "latestState",
2620
3026
  latestState: LatestState.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).latestState)
2621
3027
  };
2622
3028
  break;
2623
- case /* resources.centrum.Settings settings */ 2:
3029
+ case /* resources.centrum.Settings settings */ 3:
2624
3030
  message.change = {
2625
3031
  oneofKind: "settings",
2626
3032
  settings: Settings.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).settings)
2627
3033
  };
2628
3034
  break;
2629
- case /* resources.centrum.Disponents disponents */ 3:
3035
+ case /* resources.centrum.EffectiveAccess access */ 4:
2630
3036
  message.change = {
2631
- oneofKind: "disponents",
2632
- disponents: Disponents.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).disponents)
3037
+ oneofKind: "access",
3038
+ access: EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).access)
2633
3039
  };
2634
3040
  break;
2635
- case /* resources.centrum.Unit unit_created */ 4:
3041
+ case /* resources.centrum.Dispatchers dispatchers */ 5:
2636
3042
  message.change = {
2637
- oneofKind: "unitCreated",
2638
- unitCreated: Unit.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).unitCreated)
3043
+ oneofKind: "dispatchers",
3044
+ dispatchers: Dispatchers.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).dispatchers)
2639
3045
  };
2640
3046
  break;
2641
- case /* resources.centrum.Unit unit_deleted */ 5:
3047
+ case /* int64 unit_deleted */ 6:
2642
3048
  message.change = {
2643
3049
  oneofKind: "unitDeleted",
2644
- unitDeleted: Unit.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).unitDeleted)
3050
+ unitDeleted: reader.int64().toNumber()
2645
3051
  };
2646
3052
  break;
2647
- case /* resources.centrum.Unit unit_updated */ 6:
3053
+ case /* resources.centrum.Unit unit_updated */ 7:
2648
3054
  message.change = {
2649
3055
  oneofKind: "unitUpdated",
2650
3056
  unitUpdated: Unit.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).unitUpdated)
2651
3057
  };
2652
3058
  break;
2653
- case /* resources.centrum.UnitStatus unit_status */ 7:
3059
+ case /* resources.centrum.UnitStatus unit_status */ 8:
2654
3060
  message.change = {
2655
3061
  oneofKind: "unitStatus",
2656
3062
  unitStatus: UnitStatus.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).unitStatus)
2657
3063
  };
2658
3064
  break;
2659
- case /* resources.centrum.Dispatch dispatch_created */ 8:
2660
- message.change = {
2661
- oneofKind: "dispatchCreated",
2662
- dispatchCreated: Dispatch.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).dispatchCreated)
2663
- };
2664
- break;
2665
- case /* resources.centrum.Dispatch dispatch_deleted */ 9:
3065
+ case /* int64 dispatch_deleted */ 9:
2666
3066
  message.change = {
2667
3067
  oneofKind: "dispatchDeleted",
2668
- dispatchDeleted: Dispatch.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).dispatchDeleted)
3068
+ dispatchDeleted: reader.int64().toNumber()
2669
3069
  };
2670
3070
  break;
2671
3071
  case /* resources.centrum.Dispatch dispatch_updated */ 10:
@@ -2692,33 +3092,33 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
2692
3092
  return message;
2693
3093
  }
2694
3094
  internalBinaryWrite(message: StreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2695
- /* services.centrum.LatestState latest_state = 1; */
3095
+ /* services.centrum.StreamHandshake handshake = 1; */
3096
+ if (message.change.oneofKind === "handshake")
3097
+ StreamHandshake.internalBinaryWrite(message.change.handshake, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3098
+ /* services.centrum.LatestState latest_state = 2; */
2696
3099
  if (message.change.oneofKind === "latestState")
2697
- LatestState.internalBinaryWrite(message.change.latestState, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2698
- /* resources.centrum.Settings settings = 2; */
3100
+ LatestState.internalBinaryWrite(message.change.latestState, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3101
+ /* resources.centrum.Settings settings = 3; */
2699
3102
  if (message.change.oneofKind === "settings")
2700
- Settings.internalBinaryWrite(message.change.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2701
- /* resources.centrum.Disponents disponents = 3; */
2702
- if (message.change.oneofKind === "disponents")
2703
- Disponents.internalBinaryWrite(message.change.disponents, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2704
- /* resources.centrum.Unit unit_created = 4; */
2705
- if (message.change.oneofKind === "unitCreated")
2706
- Unit.internalBinaryWrite(message.change.unitCreated, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2707
- /* resources.centrum.Unit unit_deleted = 5; */
3103
+ Settings.internalBinaryWrite(message.change.settings, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3104
+ /* resources.centrum.EffectiveAccess access = 4; */
3105
+ if (message.change.oneofKind === "access")
3106
+ EffectiveAccess.internalBinaryWrite(message.change.access, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3107
+ /* resources.centrum.Dispatchers dispatchers = 5; */
3108
+ if (message.change.oneofKind === "dispatchers")
3109
+ Dispatchers.internalBinaryWrite(message.change.dispatchers, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
3110
+ /* int64 unit_deleted = 6; */
2708
3111
  if (message.change.oneofKind === "unitDeleted")
2709
- Unit.internalBinaryWrite(message.change.unitDeleted, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2710
- /* resources.centrum.Unit unit_updated = 6; */
3112
+ writer.tag(6, WireType.Varint).int64(message.change.unitDeleted);
3113
+ /* resources.centrum.Unit unit_updated = 7; */
2711
3114
  if (message.change.oneofKind === "unitUpdated")
2712
- Unit.internalBinaryWrite(message.change.unitUpdated, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2713
- /* resources.centrum.UnitStatus unit_status = 7; */
3115
+ Unit.internalBinaryWrite(message.change.unitUpdated, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3116
+ /* resources.centrum.UnitStatus unit_status = 8; */
2714
3117
  if (message.change.oneofKind === "unitStatus")
2715
- UnitStatus.internalBinaryWrite(message.change.unitStatus, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2716
- /* resources.centrum.Dispatch dispatch_created = 8; */
2717
- if (message.change.oneofKind === "dispatchCreated")
2718
- Dispatch.internalBinaryWrite(message.change.dispatchCreated, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2719
- /* resources.centrum.Dispatch dispatch_deleted = 9; */
3118
+ UnitStatus.internalBinaryWrite(message.change.unitStatus, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
3119
+ /* int64 dispatch_deleted = 9; */
2720
3120
  if (message.change.oneofKind === "dispatchDeleted")
2721
- Dispatch.internalBinaryWrite(message.change.dispatchDeleted, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
3121
+ writer.tag(9, WireType.Varint).int64(message.change.dispatchDeleted);
2722
3122
  /* resources.centrum.Dispatch dispatch_updated = 10; */
2723
3123
  if (message.change.oneofKind === "dispatchUpdated")
2724
3124
  Dispatch.internalBinaryWrite(message.change.dispatchUpdated, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
@@ -2739,24 +3139,27 @@ export const StreamResponse = new StreamResponse$Type();
2739
3139
  * @generated ServiceType for protobuf service services.centrum.CentrumService
2740
3140
  */
2741
3141
  export const CentrumService = new ServiceType("services.centrum.CentrumService", [
2742
- { name: "UpdateSettings", options: {}, I: UpdateSettingsRequest, O: UpdateSettingsResponse },
2743
- { name: "CreateDispatch", options: {}, I: CreateDispatchRequest, O: CreateDispatchResponse },
2744
- { name: "UpdateDispatch", options: {}, I: UpdateDispatchRequest, O: UpdateDispatchResponse },
2745
- { name: "DeleteDispatch", options: {}, I: DeleteDispatchRequest, O: DeleteDispatchResponse },
2746
- { name: "TakeControl", options: {}, I: TakeControlRequest, O: TakeControlResponse },
2747
- { name: "AssignDispatch", options: {}, I: AssignDispatchRequest, O: AssignDispatchResponse },
2748
- { name: "AssignUnit", options: {}, I: AssignUnitRequest, O: AssignUnitResponse },
2749
- { name: "Stream", serverStreaming: true, options: {}, I: StreamRequest, O: StreamResponse },
2750
- { name: "GetSettings", options: {}, I: GetSettingsRequest, O: GetSettingsResponse },
2751
- { name: "JoinUnit", options: {}, I: JoinUnitRequest, O: JoinUnitResponse },
2752
- { name: "ListUnits", options: {}, I: ListUnitsRequest, O: ListUnitsResponse },
2753
- { name: "ListUnitActivity", options: {}, I: ListUnitActivityRequest, O: ListUnitActivityResponse },
2754
- { name: "GetDispatch", options: {}, I: GetDispatchRequest, O: GetDispatchResponse },
2755
- { name: "ListDispatches", options: {}, I: ListDispatchesRequest, O: ListDispatchesResponse },
2756
- { name: "ListDispatchActivity", options: {}, I: ListDispatchActivityRequest, O: ListDispatchActivityResponse },
2757
- { name: "CreateOrUpdateUnit", options: {}, I: CreateOrUpdateUnitRequest, O: CreateOrUpdateUnitResponse },
2758
- { name: "DeleteUnit", options: {}, I: DeleteUnitRequest, O: DeleteUnitResponse },
2759
- { name: "TakeDispatch", options: {}, I: TakeDispatchRequest, O: TakeDispatchResponse },
2760
- { name: "UpdateUnitStatus", options: {}, I: UpdateUnitStatusRequest, O: UpdateUnitStatusResponse },
2761
- { name: "UpdateDispatchStatus", options: {}, I: UpdateDispatchStatusRequest, O: UpdateDispatchStatusResponse }
3142
+ { name: "UpdateSettings", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Shared", "Public"] }] } }, I: UpdateSettingsRequest, O: UpdateSettingsResponse },
3143
+ { name: "CreateDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: CreateDispatchRequest, O: CreateDispatchResponse },
3144
+ { name: "UpdateDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: UpdateDispatchRequest, O: UpdateDispatchResponse },
3145
+ { name: "DeleteDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDispatchRequest, O: DeleteDispatchResponse },
3146
+ { name: "ListDispatchTargetJobs", options: { "codegen.perms.perms": { enabled: true, name: "CreateDispatch" } }, I: ListDispatchTargetJobsRequest, O: ListDispatchTargetJobsResponse },
3147
+ { name: "TakeControl", options: { "codegen.perms.perms": { enabled: true } }, I: TakeControlRequest, O: TakeControlResponse },
3148
+ { name: "AssignDispatch", options: { "codegen.perms.perms": { enabled: true, name: "TakeControl" } }, I: AssignDispatchRequest, O: AssignDispatchResponse },
3149
+ { name: "AssignUnit", options: { "codegen.perms.perms": { enabled: true, name: "TakeControl" } }, I: AssignUnitRequest, O: AssignUnitResponse },
3150
+ { name: "GetDispatchHeatmap", options: { "codegen.perms.perms": { enabled: true, name: "TakeControl" } }, I: GetDispatchHeatmapRequest, O: GetDispatchHeatmapResponse },
3151
+ { name: "UpdateDispatchers", options: { "codegen.perms.perms": { enabled: true } }, I: UpdateDispatchersRequest, O: UpdateDispatchersResponse },
3152
+ { name: "Stream", serverStreaming: true, options: { "codegen.perms.perms": { enabled: true } }, I: StreamRequest, O: StreamResponse },
3153
+ { name: "GetSettings", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: GetSettingsRequest, O: GetSettingsResponse },
3154
+ { name: "JoinUnit", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: JoinUnitRequest, O: JoinUnitResponse },
3155
+ { name: "ListUnits", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListUnitsRequest, O: ListUnitsResponse },
3156
+ { name: "ListUnitActivity", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListUnitActivityRequest, O: ListUnitActivityResponse },
3157
+ { name: "GetDispatch", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: GetDispatchRequest, O: GetDispatchResponse },
3158
+ { name: "ListDispatches", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListDispatchesRequest, O: ListDispatchesResponse },
3159
+ { name: "ListDispatchActivity", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListDispatchActivityRequest, O: ListDispatchActivityResponse },
3160
+ { name: "CreateOrUpdateUnit", options: { "codegen.perms.perms": { enabled: true } }, I: CreateOrUpdateUnitRequest, O: CreateOrUpdateUnitResponse },
3161
+ { name: "DeleteUnit", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteUnitRequest, O: DeleteUnitResponse },
3162
+ { name: "TakeDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: TakeDispatchRequest, O: TakeDispatchResponse },
3163
+ { name: "UpdateUnitStatus", options: { "codegen.perms.perms": { enabled: true, name: "TakeDispatch" } }, I: UpdateUnitStatusRequest, O: UpdateUnitStatusResponse },
3164
+ { name: "UpdateDispatchStatus", options: { "codegen.perms.perms": { enabled: true, name: "TakeDispatch" } }, I: UpdateDispatchStatusRequest, O: UpdateDispatchStatusResponse }
2762
3165
  ]);