@fivenet-app/gen 2026.8.5 → 2026.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +201 -0
  2. package/clients.ts +12 -0
  3. package/codegen/perms/perms.ts +331 -2
  4. package/google/protobuf/any.ts +47 -103
  5. package/google/protobuf/descriptor.ts +39 -32
  6. package/google/protobuf/struct.ts +33 -22
  7. package/google/protobuf/timestamp.ts +9 -8
  8. package/package.json +2 -2
  9. package/perms.ts +41 -13
  10. package/resources/centrum/dispatches/dispatches.ts +206 -13
  11. package/resources/centrum/units/units.ts +207 -0
  12. package/resources/cron/cron.ts +44 -3
  13. package/resources/documents/templates/templates.ts +3 -3
  14. package/resources/file/file.ts +3 -3
  15. package/resources/file/filestore.ts +26 -10
  16. package/resources/jobs/colleagues/activity/activity.ts +50 -8
  17. package/resources/jobs/colleagues/colleagues.ts +14 -1
  18. package/resources/jobs/groups/short/group_member_short.ts +129 -0
  19. package/resources/jobs/job_asset.ts +116 -0
  20. package/resources/jobs/user_selector.ts +1 -15
  21. package/resources/notifications/clientview/clientview.ts +5 -1
  22. package/resources/notifications/events/events.ts +35 -1
  23. package/resources/notifications/notifications.ts +322 -2
  24. package/resources/permissions/attributes/attributes.ts +164 -2
  25. package/resources/permissions/authorization/authorization.ts +86 -0
  26. package/resources/permissions/permissions/permissions.ts +16 -1
  27. package/resources/properties/properties.ts +1648 -0
  28. package/resources/qualifications/activity/activity.ts +328 -0
  29. package/resources/qualifications/exam/exam.ts +108 -4
  30. package/resources/qualifications/qualifications.ts +36 -2
  31. package/resources/settings/config.ts +3 -3
  32. package/resources/sync/activity/activity.ts +4 -4
  33. package/resources/sync/data/data.ts +16 -4
  34. package/resources/users/activity/activity.ts +220 -3
  35. package/resources/users/props/props.ts +13 -1
  36. package/resources/users/user.ts +13 -1
  37. package/resources/vehicles/activity/activity.ts +222 -3
  38. package/resources/vehicles/props/props.ts +13 -1
  39. package/resources/vehicles/vehicles.ts +13 -1
  40. package/services/auth/auth.ts +61 -67
  41. package/services/centrum/centrum.ts +103 -1
  42. package/services/centrum/dispatches.ts +25 -1
  43. package/services/centrum/units.ts +25 -1
  44. package/services/citizens/citizens.client.ts +49 -0
  45. package/services/citizens/citizens.ts +384 -7
  46. package/services/documents/documents.ts +1 -0
  47. package/services/documents/templates.ts +12 -1
  48. package/services/jobs/colleagues.ts +26 -1
  49. package/services/jobs/conduct.ts +1 -0
  50. package/services/jobs/groups.ts +62 -4
  51. package/services/notifications/notifications.client.ts +40 -1
  52. package/services/notifications/notifications.ts +483 -3
  53. package/services/qualifications/qualifications.client.ts +20 -7
  54. package/services/qualifications/qualifications.ts +265 -4
  55. package/services/settings/job_assets.client.ts +105 -0
  56. package/services/settings/job_assets.ts +373 -0
  57. package/services/settings/properties.client.ts +194 -0
  58. package/services/settings/properties.ts +1555 -0
  59. package/services/settings/system.ts +29 -9
  60. package/services/sync/sync.ts +115 -12
  61. package/services/vehicles/vehicles.client.ts +52 -0
  62. package/services/vehicles/vehicles.ts +385 -7
  63. package/svcs.ts +58 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2023 Alexander Trost
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/clients.ts CHANGED
@@ -212,12 +212,24 @@ export async function getSettingsCronClient() {
212
212
  return new CronServiceClient(useGRPCTransport());
213
213
  }
214
214
 
215
+ // Factory for settings.jobsAssets client.
216
+ export async function getSettingsJobsassetsClient() {
217
+ const { JobsAssetsServiceClient } = await import('~~/gen/ts/services/settings/job_assets.client');
218
+ return new JobsAssetsServiceClient(useGRPCTransport());
219
+ }
220
+
215
221
  // Factory for settings.laws client.
216
222
  export async function getSettingsLawsClient() {
217
223
  const { LawsServiceClient } = await import('~~/gen/ts/services/settings/laws.client');
218
224
  return new LawsServiceClient(useGRPCTransport());
219
225
  }
220
226
 
227
+ // Factory for settings.property client.
228
+ export async function getSettingsPropertyClient() {
229
+ const { PropertyServiceClient } = await import('~~/gen/ts/services/settings/properties.client');
230
+ return new PropertyServiceClient(useGRPCTransport());
231
+ }
232
+
221
233
  // Factory for settings.settings client.
222
234
  export async function getSettingsSettingsClient() {
223
235
  const { SettingsServiceClient } = await import('~~/gen/ts/services/settings/settings.client');
@@ -11,6 +11,14 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
+ import { PropertyDisplayMode } from "../../resources/properties/properties";
15
+ import { PropertyRendererConfig } from "../../resources/properties/properties";
16
+ import { PropertyRenderer } from "../../resources/properties/properties";
17
+ import { PropertyBehavior } from "../../resources/properties/properties";
18
+ import { PropertyValueFormat } from "../../resources/properties/properties";
19
+ import { PropertyValueType } from "../../resources/properties/properties";
20
+ import { PropertyGroup } from "../../resources/properties/properties";
21
+ import { PropertyScope } from "../../resources/properties/properties";
14
22
  import { AttributeType } from "../../resources/permissions/attributes/attributes";
15
23
  /**
16
24
  * @generated from protobuf message codegen.perms.PermsOptions
@@ -69,6 +77,13 @@ export interface Attr {
69
77
  * @generated from protobuf field: repeated string valid_string_list = 4
70
78
  */
71
79
  validStringList: string[];
80
+ /**
81
+ * Required for PropertyList attributes so the backend can restrict the
82
+ * generated keys to the appropriate property scope.
83
+ *
84
+ * @generated from protobuf field: optional resources.properties.PropertyScope property_scope = 5
85
+ */
86
+ propertyScope?: PropertyScope;
72
87
  }
73
88
  /**
74
89
  * @generated from protobuf message codegen.perms.ServiceOptions
@@ -94,6 +109,103 @@ export interface ServiceOptions {
94
109
  * @generated from protobuf field: repeated codegen.perms.AdditionalServicePerm additional_perms = 5
95
110
  */
96
111
  additionalPerms: AdditionalServicePerm[];
112
+ /**
113
+ * @generated from protobuf field: repeated codegen.perms.SystemProperty system_properties = 6
114
+ */
115
+ systemProperties: SystemProperty[];
116
+ /**
117
+ * @generated from protobuf field: repeated resources.properties.PropertyGroup property_groups = 7
118
+ */
119
+ propertyGroups: PropertyGroup[];
120
+ }
121
+ /**
122
+ * SystemProperty declares a property whose key and semantics are owned by
123
+ * FiveNet code. The backend generator registers these definitions at startup;
124
+ * only the enabled state may be overridden by an instance.
125
+ *
126
+ * @generated from protobuf message codegen.perms.SystemProperty
127
+ */
128
+ export interface SystemProperty {
129
+ /**
130
+ * @generated from protobuf field: resources.properties.PropertyScope scope = 1
131
+ */
132
+ scope: PropertyScope;
133
+ /**
134
+ * @generated from protobuf field: string key = 2
135
+ */
136
+ key: string;
137
+ /**
138
+ * @generated from protobuf field: resources.properties.PropertyValueType value_type = 3
139
+ */
140
+ valueType: PropertyValueType;
141
+ /**
142
+ * @generated from protobuf field: bool enabled = 4
143
+ */
144
+ enabled: boolean;
145
+ /**
146
+ * @generated from protobuf field: string display_key = 5
147
+ */
148
+ displayKey: string;
149
+ /**
150
+ * @generated from protobuf field: string label = 6
151
+ */
152
+ label: string;
153
+ /**
154
+ * @generated from protobuf field: optional string description = 7
155
+ */
156
+ description?: string;
157
+ /**
158
+ * @generated from protobuf field: bool searchable = 8
159
+ */
160
+ searchable: boolean;
161
+ /**
162
+ * @generated from protobuf field: resources.properties.PropertyValueFormat value_format = 9
163
+ */
164
+ valueFormat: PropertyValueFormat;
165
+ /**
166
+ * @generated from protobuf field: resources.properties.PropertyBehavior behavior = 10
167
+ */
168
+ behavior: PropertyBehavior;
169
+ /**
170
+ * @generated from protobuf field: resources.properties.PropertyRenderer renderer = 17
171
+ */
172
+ renderer: PropertyRenderer;
173
+ /**
174
+ * @generated from protobuf field: resources.properties.PropertyRendererConfig renderer_config = 18
175
+ */
176
+ rendererConfig?: PropertyRendererConfig;
177
+ /**
178
+ * @generated from protobuf field: resources.properties.PropertyDisplayMode display_mode = 19
179
+ */
180
+ displayMode: PropertyDisplayMode;
181
+ /**
182
+ * @generated from protobuf field: optional string unit = 11
183
+ */
184
+ unit?: string;
185
+ /**
186
+ * @generated from protobuf field: optional uint32 decimal_places = 12
187
+ */
188
+ decimalPlaces?: number;
189
+ /**
190
+ * @generated from protobuf field: optional string currency = 13
191
+ */
192
+ currency?: string;
193
+ /**
194
+ * @generated from protobuf field: string group_key = 14
195
+ */
196
+ groupKey: string;
197
+ /**
198
+ * @generated from protobuf field: int32 sort_order = 15
199
+ */
200
+ sortOrder: number;
201
+ /**
202
+ * @generated from protobuf field: bool pinned = 16
203
+ */
204
+ pinned: boolean;
205
+ /**
206
+ * @generated from protobuf field: bool implicit = 20
207
+ */
208
+ implicit: boolean;
97
209
  }
98
210
  /**
99
211
  * @generated from protobuf message codegen.perms.AdditionalServicePerm
@@ -219,7 +331,8 @@ class Attr$Type extends MessageType<Attr> {
219
331
  { no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
220
332
  { no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
221
333
  { no: 3, name: "type", kind: "enum", T: () => ["resources.permissions.attributes.AttributeType", AttributeType, "ATTRIBUTE_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
222
- { no: 4, name: "valid_string_list", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
334
+ { no: 4, name: "valid_string_list", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
335
+ { no: 5, name: "property_scope", kind: "enum", opt: true, T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } }
223
336
  ]);
224
337
  }
225
338
  create(value?: PartialMessage<Attr>): Attr {
@@ -249,6 +362,9 @@ class Attr$Type extends MessageType<Attr> {
249
362
  case /* repeated string valid_string_list */ 4:
250
363
  message.validStringList.push(reader.string());
251
364
  break;
365
+ case /* optional resources.properties.PropertyScope property_scope */ 5:
366
+ message.propertyScope = reader.int32();
367
+ break;
252
368
  default:
253
369
  let u = options.readUnknownField;
254
370
  if (u === "throw")
@@ -273,6 +389,9 @@ class Attr$Type extends MessageType<Attr> {
273
389
  /* repeated string valid_string_list = 4; */
274
390
  for (let i = 0; i < message.validStringList.length; i++)
275
391
  writer.tag(4, WireType.LengthDelimited).string(message.validStringList[i]);
392
+ /* optional resources.properties.PropertyScope property_scope = 5; */
393
+ if (message.propertyScope !== undefined)
394
+ writer.tag(5, WireType.Varint).int32(message.propertyScope);
276
395
  let u = options.writeUnknownFields;
277
396
  if (u !== false)
278
397
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -291,13 +410,17 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
291
410
  { no: 2, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
292
411
  { no: 3, name: "namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
293
412
  { no: 4, name: "service", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
294
- { no: 5, name: "additional_perms", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdditionalServicePerm }
413
+ { no: 5, name: "additional_perms", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdditionalServicePerm },
414
+ { no: 6, name: "system_properties", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SystemProperty },
415
+ { no: 7, name: "property_groups", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PropertyGroup }
295
416
  ]);
296
417
  }
297
418
  create(value?: PartialMessage<ServiceOptions>): ServiceOptions {
298
419
  const message = globalThis.Object.create((this.messagePrototype!));
299
420
  message.order = 0;
300
421
  message.additionalPerms = [];
422
+ message.systemProperties = [];
423
+ message.propertyGroups = [];
301
424
  if (value !== undefined)
302
425
  reflectionMergePartial<ServiceOptions>(this, message, value);
303
426
  return message;
@@ -322,6 +445,12 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
322
445
  case /* repeated codegen.perms.AdditionalServicePerm additional_perms */ 5:
323
446
  message.additionalPerms.push(AdditionalServicePerm.internalBinaryRead(reader, reader.uint32(), options));
324
447
  break;
448
+ case /* repeated codegen.perms.SystemProperty system_properties */ 6:
449
+ message.systemProperties.push(SystemProperty.internalBinaryRead(reader, reader.uint32(), options));
450
+ break;
451
+ case /* repeated resources.properties.PropertyGroup property_groups */ 7:
452
+ message.propertyGroups.push(PropertyGroup.internalBinaryRead(reader, reader.uint32(), options));
453
+ break;
325
454
  default:
326
455
  let u = options.readUnknownField;
327
456
  if (u === "throw")
@@ -349,6 +478,12 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
349
478
  /* repeated codegen.perms.AdditionalServicePerm additional_perms = 5; */
350
479
  for (let i = 0; i < message.additionalPerms.length; i++)
351
480
  AdditionalServicePerm.internalBinaryWrite(message.additionalPerms[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
481
+ /* repeated codegen.perms.SystemProperty system_properties = 6; */
482
+ for (let i = 0; i < message.systemProperties.length; i++)
483
+ SystemProperty.internalBinaryWrite(message.systemProperties[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
484
+ /* repeated resources.properties.PropertyGroup property_groups = 7; */
485
+ for (let i = 0; i < message.propertyGroups.length; i++)
486
+ PropertyGroup.internalBinaryWrite(message.propertyGroups[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
352
487
  let u = options.writeUnknownFields;
353
488
  if (u !== false)
354
489
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -360,6 +495,200 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
360
495
  */
361
496
  export const ServiceOptions = new ServiceOptions$Type();
362
497
  // @generated message type with reflection information, may provide speed optimized methods
498
+ class SystemProperty$Type extends MessageType<SystemProperty> {
499
+ constructor() {
500
+ super("codegen.perms.SystemProperty", [
501
+ { no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"] },
502
+ { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
503
+ { no: 3, name: "value_type", kind: "enum", T: () => ["resources.properties.PropertyValueType", PropertyValueType, "PROPERTY_VALUE_TYPE_"] },
504
+ { no: 4, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
505
+ { no: 5, name: "display_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
506
+ { no: 6, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
507
+ { no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
508
+ { no: 8, name: "searchable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
509
+ { no: 9, name: "value_format", kind: "enum", T: () => ["resources.properties.PropertyValueFormat", PropertyValueFormat, "PROPERTY_VALUE_FORMAT_"] },
510
+ { no: 10, name: "behavior", kind: "enum", T: () => ["resources.properties.PropertyBehavior", PropertyBehavior, "PROPERTY_BEHAVIOR_"] },
511
+ { no: 17, name: "renderer", kind: "enum", T: () => ["resources.properties.PropertyRenderer", PropertyRenderer, "PROPERTY_RENDERER_"] },
512
+ { no: 18, name: "renderer_config", kind: "message", T: () => PropertyRendererConfig },
513
+ { no: 19, name: "display_mode", kind: "enum", T: () => ["resources.properties.PropertyDisplayMode", PropertyDisplayMode, "PROPERTY_DISPLAY_MODE_"] },
514
+ { no: 11, name: "unit", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
515
+ { no: 12, name: "decimal_places", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
516
+ { no: 13, name: "currency", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
517
+ { no: 14, name: "group_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
518
+ { no: 15, name: "sort_order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
519
+ { no: 16, name: "pinned", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
520
+ { no: 20, name: "implicit", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
521
+ ]);
522
+ }
523
+ create(value?: PartialMessage<SystemProperty>): SystemProperty {
524
+ const message = globalThis.Object.create((this.messagePrototype!));
525
+ message.scope = 0;
526
+ message.key = "";
527
+ message.valueType = 0;
528
+ message.enabled = false;
529
+ message.displayKey = "";
530
+ message.label = "";
531
+ message.searchable = false;
532
+ message.valueFormat = 0;
533
+ message.behavior = 0;
534
+ message.renderer = 0;
535
+ message.displayMode = 0;
536
+ message.groupKey = "";
537
+ message.sortOrder = 0;
538
+ message.pinned = false;
539
+ message.implicit = false;
540
+ if (value !== undefined)
541
+ reflectionMergePartial<SystemProperty>(this, message, value);
542
+ return message;
543
+ }
544
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SystemProperty): SystemProperty {
545
+ let message = target ?? this.create(), end = reader.pos + length;
546
+ while (reader.pos < end) {
547
+ let [fieldNo, wireType] = reader.tag();
548
+ switch (fieldNo) {
549
+ case /* resources.properties.PropertyScope scope */ 1:
550
+ message.scope = reader.int32();
551
+ break;
552
+ case /* string key */ 2:
553
+ message.key = reader.string();
554
+ break;
555
+ case /* resources.properties.PropertyValueType value_type */ 3:
556
+ message.valueType = reader.int32();
557
+ break;
558
+ case /* bool enabled */ 4:
559
+ message.enabled = reader.bool();
560
+ break;
561
+ case /* string display_key */ 5:
562
+ message.displayKey = reader.string();
563
+ break;
564
+ case /* string label */ 6:
565
+ message.label = reader.string();
566
+ break;
567
+ case /* optional string description */ 7:
568
+ message.description = reader.string();
569
+ break;
570
+ case /* bool searchable */ 8:
571
+ message.searchable = reader.bool();
572
+ break;
573
+ case /* resources.properties.PropertyValueFormat value_format */ 9:
574
+ message.valueFormat = reader.int32();
575
+ break;
576
+ case /* resources.properties.PropertyBehavior behavior */ 10:
577
+ message.behavior = reader.int32();
578
+ break;
579
+ case /* resources.properties.PropertyRenderer renderer */ 17:
580
+ message.renderer = reader.int32();
581
+ break;
582
+ case /* resources.properties.PropertyRendererConfig renderer_config */ 18:
583
+ message.rendererConfig = PropertyRendererConfig.internalBinaryRead(reader, reader.uint32(), options, message.rendererConfig);
584
+ break;
585
+ case /* resources.properties.PropertyDisplayMode display_mode */ 19:
586
+ message.displayMode = reader.int32();
587
+ break;
588
+ case /* optional string unit */ 11:
589
+ message.unit = reader.string();
590
+ break;
591
+ case /* optional uint32 decimal_places */ 12:
592
+ message.decimalPlaces = reader.uint32();
593
+ break;
594
+ case /* optional string currency */ 13:
595
+ message.currency = reader.string();
596
+ break;
597
+ case /* string group_key */ 14:
598
+ message.groupKey = reader.string();
599
+ break;
600
+ case /* int32 sort_order */ 15:
601
+ message.sortOrder = reader.int32();
602
+ break;
603
+ case /* bool pinned */ 16:
604
+ message.pinned = reader.bool();
605
+ break;
606
+ case /* bool implicit */ 20:
607
+ message.implicit = reader.bool();
608
+ break;
609
+ default:
610
+ let u = options.readUnknownField;
611
+ if (u === "throw")
612
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
613
+ let d = reader.skip(wireType);
614
+ if (u !== false)
615
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
616
+ }
617
+ }
618
+ return message;
619
+ }
620
+ internalBinaryWrite(message: SystemProperty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
621
+ /* resources.properties.PropertyScope scope = 1; */
622
+ if (message.scope !== 0)
623
+ writer.tag(1, WireType.Varint).int32(message.scope);
624
+ /* string key = 2; */
625
+ if (message.key !== "")
626
+ writer.tag(2, WireType.LengthDelimited).string(message.key);
627
+ /* resources.properties.PropertyValueType value_type = 3; */
628
+ if (message.valueType !== 0)
629
+ writer.tag(3, WireType.Varint).int32(message.valueType);
630
+ /* bool enabled = 4; */
631
+ if (message.enabled !== false)
632
+ writer.tag(4, WireType.Varint).bool(message.enabled);
633
+ /* string display_key = 5; */
634
+ if (message.displayKey !== "")
635
+ writer.tag(5, WireType.LengthDelimited).string(message.displayKey);
636
+ /* string label = 6; */
637
+ if (message.label !== "")
638
+ writer.tag(6, WireType.LengthDelimited).string(message.label);
639
+ /* optional string description = 7; */
640
+ if (message.description !== undefined)
641
+ writer.tag(7, WireType.LengthDelimited).string(message.description);
642
+ /* bool searchable = 8; */
643
+ if (message.searchable !== false)
644
+ writer.tag(8, WireType.Varint).bool(message.searchable);
645
+ /* resources.properties.PropertyValueFormat value_format = 9; */
646
+ if (message.valueFormat !== 0)
647
+ writer.tag(9, WireType.Varint).int32(message.valueFormat);
648
+ /* resources.properties.PropertyBehavior behavior = 10; */
649
+ if (message.behavior !== 0)
650
+ writer.tag(10, WireType.Varint).int32(message.behavior);
651
+ /* optional string unit = 11; */
652
+ if (message.unit !== undefined)
653
+ writer.tag(11, WireType.LengthDelimited).string(message.unit);
654
+ /* optional uint32 decimal_places = 12; */
655
+ if (message.decimalPlaces !== undefined)
656
+ writer.tag(12, WireType.Varint).uint32(message.decimalPlaces);
657
+ /* optional string currency = 13; */
658
+ if (message.currency !== undefined)
659
+ writer.tag(13, WireType.LengthDelimited).string(message.currency);
660
+ /* string group_key = 14; */
661
+ if (message.groupKey !== "")
662
+ writer.tag(14, WireType.LengthDelimited).string(message.groupKey);
663
+ /* int32 sort_order = 15; */
664
+ if (message.sortOrder !== 0)
665
+ writer.tag(15, WireType.Varint).int32(message.sortOrder);
666
+ /* bool pinned = 16; */
667
+ if (message.pinned !== false)
668
+ writer.tag(16, WireType.Varint).bool(message.pinned);
669
+ /* resources.properties.PropertyRenderer renderer = 17; */
670
+ if (message.renderer !== 0)
671
+ writer.tag(17, WireType.Varint).int32(message.renderer);
672
+ /* resources.properties.PropertyRendererConfig renderer_config = 18; */
673
+ if (message.rendererConfig)
674
+ PropertyRendererConfig.internalBinaryWrite(message.rendererConfig, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
675
+ /* resources.properties.PropertyDisplayMode display_mode = 19; */
676
+ if (message.displayMode !== 0)
677
+ writer.tag(19, WireType.Varint).int32(message.displayMode);
678
+ /* bool implicit = 20; */
679
+ if (message.implicit !== false)
680
+ writer.tag(20, WireType.Varint).bool(message.implicit);
681
+ let u = options.writeUnknownFields;
682
+ if (u !== false)
683
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
684
+ return writer;
685
+ }
686
+ }
687
+ /**
688
+ * @generated MessageType for protobuf message codegen.perms.SystemProperty
689
+ */
690
+ export const SystemProperty = new SystemProperty$Type();
691
+ // @generated message type with reflection information, may provide speed optimized methods
363
692
  class AdditionalServicePerm$Type extends MessageType<AdditionalServicePerm> {
364
693
  constructor() {
365
694
  super("codegen.perms.AdditionalServicePerm", [