@fivenet-app/gen 2026.4.0 → 2026.5.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 (60) hide show
  1. package/clients.ts +60 -0
  2. package/codegen/perms/perms.ts +64 -31
  3. package/package.json +1 -1
  4. package/perms.ts +57 -41
  5. package/resources/accounts/accounts.ts +41 -30
  6. package/resources/audit/audit.ts +5 -1
  7. package/resources/citizens/labels/access.ts +216 -0
  8. package/resources/citizens/labels/labels.ts +8 -214
  9. package/resources/jobs/colleagues/activity/activity.ts +1 -1
  10. package/resources/laws/laws.ts +72 -50
  11. package/resources/permissions/attributes/attributes.ts +51 -39
  12. package/resources/permissions/permissions/permissions.ts +46 -34
  13. package/resources/sync/data/data.ts +9 -9
  14. package/resources/users/activity/activity.ts +69 -76
  15. package/services/auth/auth.ts +1 -1
  16. package/services/calendar/calendar.client.ts +2 -106
  17. package/services/calendar/calendar.ts +0 -1018
  18. package/services/calendar/entries.client.ts +129 -0
  19. package/services/calendar/entries.ts +1040 -0
  20. package/services/centrum/centrum.client.ts +23 -244
  21. package/services/centrum/centrum.ts +246 -2383
  22. package/services/centrum/dispatches.client.ts +155 -0
  23. package/services/centrum/dispatches.ts +1305 -0
  24. package/services/centrum/units.client.ts +116 -0
  25. package/services/centrum/units.ts +876 -0
  26. package/services/citizens/labels.client.ts +26 -0
  27. package/services/citizens/labels.ts +283 -4
  28. package/services/completor/completor.client.ts +0 -13
  29. package/services/completor/completor.ts +2 -116
  30. package/services/documents/approval.ts +5 -5
  31. package/services/documents/categories.client.ts +64 -0
  32. package/services/documents/categories.ts +331 -0
  33. package/services/documents/collab.ts +1 -1
  34. package/services/documents/comments.client.ts +77 -0
  35. package/services/documents/comments.ts +479 -0
  36. package/services/documents/documents.client.ts +26 -182
  37. package/services/documents/documents.ts +335 -1682
  38. package/services/documents/templates.client.ts +90 -0
  39. package/services/documents/templates.ts +591 -0
  40. package/services/jobs/colleagues.client.ts +129 -0
  41. package/services/jobs/colleagues.ts +1129 -0
  42. package/services/jobs/jobs.client.ts +3 -107
  43. package/services/jobs/jobs.ts +1 -1113
  44. package/services/mailer/mailer.client.ts +0 -208
  45. package/services/mailer/mailer.ts +1 -2010
  46. package/services/mailer/settings.client.ts +103 -0
  47. package/services/mailer/settings.ts +708 -0
  48. package/services/mailer/thread.client.ts +155 -0
  49. package/services/mailer/thread.ts +1343 -0
  50. package/services/qualifications/exam.client.ts +77 -0
  51. package/services/qualifications/exam.ts +609 -0
  52. package/services/qualifications/qualifications.client.ts +1 -53
  53. package/services/qualifications/qualifications.ts +0 -591
  54. package/services/settings/accounts.ts +14 -1
  55. package/services/settings/laws.client.ts +18 -5
  56. package/services/settings/laws.ts +128 -3
  57. package/services/sync/sync.client.ts +4 -4
  58. package/services/sync/sync.ts +23 -0
  59. package/services/wiki/collab.ts +1 -1
  60. package/svcs.ts +156 -68
@@ -29,15 +29,19 @@ export interface LawBook {
29
29
  */
30
30
  updatedAt?: Timestamp;
31
31
  /**
32
- * @generated from protobuf field: string name = 4
32
+ * @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
33
+ */
34
+ deletedAt?: Timestamp;
35
+ /**
36
+ * @generated from protobuf field: string name = 5
33
37
  */
34
38
  name: string;
35
39
  /**
36
- * @generated from protobuf field: optional string description = 5
40
+ * @generated from protobuf field: optional string description = 6
37
41
  */
38
42
  description?: string;
39
43
  /**
40
- * @generated from protobuf field: repeated resources.laws.Law laws = 6
44
+ * @generated from protobuf field: repeated resources.laws.Law laws = 7
41
45
  */
42
46
  laws: Law[];
43
47
  }
@@ -58,31 +62,35 @@ export interface Law {
58
62
  */
59
63
  updatedAt?: Timestamp;
60
64
  /**
61
- * @generated from protobuf field: int64 lawbook_id = 4
65
+ * @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
66
+ */
67
+ deletedAt?: Timestamp;
68
+ /**
69
+ * @generated from protobuf field: int64 lawbook_id = 5
62
70
  */
63
71
  lawbookId: number;
64
72
  /**
65
- * @generated from protobuf field: string name = 5
73
+ * @generated from protobuf field: string name = 6
66
74
  */
67
75
  name: string;
68
76
  /**
69
- * @generated from protobuf field: optional string description = 6
77
+ * @generated from protobuf field: optional string description = 7
70
78
  */
71
79
  description?: string;
72
80
  /**
73
- * @generated from protobuf field: optional string hint = 7
81
+ * @generated from protobuf field: optional string hint = 8
74
82
  */
75
83
  hint?: string;
76
84
  /**
77
- * @generated from protobuf field: optional uint32 fine = 8
85
+ * @generated from protobuf field: optional uint32 fine = 9
78
86
  */
79
87
  fine?: number;
80
88
  /**
81
- * @generated from protobuf field: optional uint32 detention_time = 9
89
+ * @generated from protobuf field: optional uint32 detention_time = 10
82
90
  */
83
91
  detentionTime?: number;
84
92
  /**
85
- * @generated from protobuf field: optional uint32 stvo_points = 10
93
+ * @generated from protobuf field: optional uint32 stvo_points = 11
86
94
  */
87
95
  stvoPoints?: number;
88
96
  }
@@ -93,9 +101,10 @@ class LawBook$Type extends MessageType<LawBook> {
93
101
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
94
102
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
95
103
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
96
- { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
97
- { no: 5, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
98
- { no: 6, name: "laws", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Law }
104
+ { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
105
+ { no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
106
+ { no: 6, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
107
+ { no: 7, name: "laws", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Law }
99
108
  ]);
100
109
  }
101
110
  create(value?: PartialMessage<LawBook>): LawBook {
@@ -121,13 +130,16 @@ class LawBook$Type extends MessageType<LawBook> {
121
130
  case /* optional resources.timestamp.Timestamp updated_at */ 3:
122
131
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
123
132
  break;
124
- case /* string name */ 4:
133
+ case /* optional resources.timestamp.Timestamp deleted_at */ 4:
134
+ message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
135
+ break;
136
+ case /* string name */ 5:
125
137
  message.name = reader.string();
126
138
  break;
127
- case /* optional string description */ 5:
139
+ case /* optional string description */ 6:
128
140
  message.description = reader.string();
129
141
  break;
130
- case /* repeated resources.laws.Law laws */ 6:
142
+ case /* repeated resources.laws.Law laws */ 7:
131
143
  message.laws.push(Law.internalBinaryRead(reader, reader.uint32(), options));
132
144
  break;
133
145
  default:
@@ -151,15 +163,18 @@ class LawBook$Type extends MessageType<LawBook> {
151
163
  /* optional resources.timestamp.Timestamp updated_at = 3; */
152
164
  if (message.updatedAt)
153
165
  Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
154
- /* string name = 4; */
166
+ /* optional resources.timestamp.Timestamp deleted_at = 4; */
167
+ if (message.deletedAt)
168
+ Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
169
+ /* string name = 5; */
155
170
  if (message.name !== "")
156
- writer.tag(4, WireType.LengthDelimited).string(message.name);
157
- /* optional string description = 5; */
171
+ writer.tag(5, WireType.LengthDelimited).string(message.name);
172
+ /* optional string description = 6; */
158
173
  if (message.description !== undefined)
159
- writer.tag(5, WireType.LengthDelimited).string(message.description);
160
- /* repeated resources.laws.Law laws = 6; */
174
+ writer.tag(6, WireType.LengthDelimited).string(message.description);
175
+ /* repeated resources.laws.Law laws = 7; */
161
176
  for (let i = 0; i < message.laws.length; i++)
162
- Law.internalBinaryWrite(message.laws[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
177
+ Law.internalBinaryWrite(message.laws[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
163
178
  let u = options.writeUnknownFields;
164
179
  if (u !== false)
165
180
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -177,13 +192,14 @@ class Law$Type extends MessageType<Law> {
177
192
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"law.id\"" } },
178
193
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
179
194
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
180
- { no: 4, name: "lawbook_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
181
- { no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
182
- { no: 6, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
183
- { no: 7, name: "hint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
184
- { no: 8, name: "fine", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
185
- { no: 9, name: "detention_time", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
186
- { no: 10, name: "stvo_points", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
195
+ { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
196
+ { no: 5, name: "lawbook_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
197
+ { no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
198
+ { no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
199
+ { no: 8, name: "hint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
200
+ { no: 9, name: "fine", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
201
+ { no: 10, name: "detention_time", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
202
+ { no: 11, name: "stvo_points", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
187
203
  ]);
188
204
  }
189
205
  create(value?: PartialMessage<Law>): Law {
@@ -209,25 +225,28 @@ class Law$Type extends MessageType<Law> {
209
225
  case /* optional resources.timestamp.Timestamp updated_at */ 3:
210
226
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
211
227
  break;
212
- case /* int64 lawbook_id */ 4:
228
+ case /* optional resources.timestamp.Timestamp deleted_at */ 4:
229
+ message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
230
+ break;
231
+ case /* int64 lawbook_id */ 5:
213
232
  message.lawbookId = reader.int64().toNumber();
214
233
  break;
215
- case /* string name */ 5:
234
+ case /* string name */ 6:
216
235
  message.name = reader.string();
217
236
  break;
218
- case /* optional string description */ 6:
237
+ case /* optional string description */ 7:
219
238
  message.description = reader.string();
220
239
  break;
221
- case /* optional string hint */ 7:
240
+ case /* optional string hint */ 8:
222
241
  message.hint = reader.string();
223
242
  break;
224
- case /* optional uint32 fine */ 8:
243
+ case /* optional uint32 fine */ 9:
225
244
  message.fine = reader.uint32();
226
245
  break;
227
- case /* optional uint32 detention_time */ 9:
246
+ case /* optional uint32 detention_time */ 10:
228
247
  message.detentionTime = reader.uint32();
229
248
  break;
230
- case /* optional uint32 stvo_points */ 10:
249
+ case /* optional uint32 stvo_points */ 11:
231
250
  message.stvoPoints = reader.uint32();
232
251
  break;
233
252
  default:
@@ -251,27 +270,30 @@ class Law$Type extends MessageType<Law> {
251
270
  /* optional resources.timestamp.Timestamp updated_at = 3; */
252
271
  if (message.updatedAt)
253
272
  Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
254
- /* int64 lawbook_id = 4; */
273
+ /* optional resources.timestamp.Timestamp deleted_at = 4; */
274
+ if (message.deletedAt)
275
+ Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
276
+ /* int64 lawbook_id = 5; */
255
277
  if (message.lawbookId !== 0)
256
- writer.tag(4, WireType.Varint).int64(message.lawbookId);
257
- /* string name = 5; */
278
+ writer.tag(5, WireType.Varint).int64(message.lawbookId);
279
+ /* string name = 6; */
258
280
  if (message.name !== "")
259
- writer.tag(5, WireType.LengthDelimited).string(message.name);
260
- /* optional string description = 6; */
281
+ writer.tag(6, WireType.LengthDelimited).string(message.name);
282
+ /* optional string description = 7; */
261
283
  if (message.description !== undefined)
262
- writer.tag(6, WireType.LengthDelimited).string(message.description);
263
- /* optional string hint = 7; */
284
+ writer.tag(7, WireType.LengthDelimited).string(message.description);
285
+ /* optional string hint = 8; */
264
286
  if (message.hint !== undefined)
265
- writer.tag(7, WireType.LengthDelimited).string(message.hint);
266
- /* optional uint32 fine = 8; */
287
+ writer.tag(8, WireType.LengthDelimited).string(message.hint);
288
+ /* optional uint32 fine = 9; */
267
289
  if (message.fine !== undefined)
268
- writer.tag(8, WireType.Varint).uint32(message.fine);
269
- /* optional uint32 detention_time = 9; */
290
+ writer.tag(9, WireType.Varint).uint32(message.fine);
291
+ /* optional uint32 detention_time = 10; */
270
292
  if (message.detentionTime !== undefined)
271
- writer.tag(9, WireType.Varint).uint32(message.detentionTime);
272
- /* optional uint32 stvo_points = 10; */
293
+ writer.tag(10, WireType.Varint).uint32(message.detentionTime);
294
+ /* optional uint32 stvo_points = 11; */
273
295
  if (message.stvoPoints !== undefined)
274
- writer.tag(10, WireType.Varint).uint32(message.stvoPoints);
296
+ writer.tag(11, WireType.Varint).uint32(message.stvoPoints);
275
297
  let u = options.writeUnknownFields;
276
298
  if (u !== false)
277
299
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -33,31 +33,35 @@ export interface RoleAttribute {
33
33
  */
34
34
  permissionId: number;
35
35
  /**
36
- * @generated from protobuf field: string category = 5
36
+ * @generated from protobuf field: string namespace = 5
37
37
  */
38
- category: string;
38
+ namespace: string;
39
39
  /**
40
- * @generated from protobuf field: string name = 6
40
+ * @generated from protobuf field: string service = 6
41
+ */
42
+ service: string;
43
+ /**
44
+ * @generated from protobuf field: string name = 7
41
45
  */
42
46
  name: string;
43
47
  /**
44
- * @generated from protobuf field: string key = 7
48
+ * @generated from protobuf field: string key = 8
45
49
  */
46
50
  key: string;
47
51
  /**
48
- * @generated from protobuf field: string type = 8
52
+ * @generated from protobuf field: string type = 9
49
53
  */
50
54
  type: string;
51
55
  /**
52
- * @generated from protobuf field: resources.permissions.attributes.AttributeValues valid_values = 9
56
+ * @generated from protobuf field: resources.permissions.attributes.AttributeValues valid_values = 10
53
57
  */
54
58
  validValues?: AttributeValues;
55
59
  /**
56
- * @generated from protobuf field: resources.permissions.attributes.AttributeValues value = 10
60
+ * @generated from protobuf field: resources.permissions.attributes.AttributeValues value = 11
57
61
  */
58
62
  value?: AttributeValues;
59
63
  /**
60
- * @generated from protobuf field: optional resources.permissions.attributes.AttributeValues max_values = 11
64
+ * @generated from protobuf field: optional resources.permissions.attributes.AttributeValues max_values = 12
61
65
  */
62
66
  maxValues?: AttributeValues;
63
67
  }
@@ -158,13 +162,14 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
158
162
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
159
163
  { no: 3, name: "attr_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
160
164
  { no: 4, name: "permission_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
161
- { no: 5, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
162
- { no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
163
- { no: 7, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
164
- { no: 8, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
165
- { no: 9, name: "valid_values", kind: "message", T: () => AttributeValues },
166
- { no: 10, name: "value", kind: "message", T: () => AttributeValues },
167
- { no: 11, name: "max_values", kind: "message", T: () => AttributeValues }
165
+ { no: 5, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } } } },
166
+ { no: 6, name: "service", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
167
+ { no: 7, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
168
+ { no: 8, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
169
+ { no: 9, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
170
+ { no: 10, name: "valid_values", kind: "message", T: () => AttributeValues },
171
+ { no: 11, name: "value", kind: "message", T: () => AttributeValues },
172
+ { no: 12, name: "max_values", kind: "message", T: () => AttributeValues }
168
173
  ]);
169
174
  }
170
175
  create(value?: PartialMessage<RoleAttribute>): RoleAttribute {
@@ -172,7 +177,8 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
172
177
  message.roleId = 0;
173
178
  message.attrId = 0;
174
179
  message.permissionId = 0;
175
- message.category = "";
180
+ message.namespace = "";
181
+ message.service = "";
176
182
  message.name = "";
177
183
  message.key = "";
178
184
  message.type = "";
@@ -197,25 +203,28 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
197
203
  case /* int64 permission_id */ 4:
198
204
  message.permissionId = reader.int64().toNumber();
199
205
  break;
200
- case /* string category */ 5:
201
- message.category = reader.string();
206
+ case /* string namespace */ 5:
207
+ message.namespace = reader.string();
208
+ break;
209
+ case /* string service */ 6:
210
+ message.service = reader.string();
202
211
  break;
203
- case /* string name */ 6:
212
+ case /* string name */ 7:
204
213
  message.name = reader.string();
205
214
  break;
206
- case /* string key */ 7:
215
+ case /* string key */ 8:
207
216
  message.key = reader.string();
208
217
  break;
209
- case /* string type */ 8:
218
+ case /* string type */ 9:
210
219
  message.type = reader.string();
211
220
  break;
212
- case /* resources.permissions.attributes.AttributeValues valid_values */ 9:
221
+ case /* resources.permissions.attributes.AttributeValues valid_values */ 10:
213
222
  message.validValues = AttributeValues.internalBinaryRead(reader, reader.uint32(), options, message.validValues);
214
223
  break;
215
- case /* resources.permissions.attributes.AttributeValues value */ 10:
224
+ case /* resources.permissions.attributes.AttributeValues value */ 11:
216
225
  message.value = AttributeValues.internalBinaryRead(reader, reader.uint32(), options, message.value);
217
226
  break;
218
- case /* optional resources.permissions.attributes.AttributeValues max_values */ 11:
227
+ case /* optional resources.permissions.attributes.AttributeValues max_values */ 12:
219
228
  message.maxValues = AttributeValues.internalBinaryRead(reader, reader.uint32(), options, message.maxValues);
220
229
  break;
221
230
  default:
@@ -242,27 +251,30 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
242
251
  /* int64 permission_id = 4; */
243
252
  if (message.permissionId !== 0)
244
253
  writer.tag(4, WireType.Varint).int64(message.permissionId);
245
- /* string category = 5; */
246
- if (message.category !== "")
247
- writer.tag(5, WireType.LengthDelimited).string(message.category);
248
- /* string name = 6; */
254
+ /* string namespace = 5; */
255
+ if (message.namespace !== "")
256
+ writer.tag(5, WireType.LengthDelimited).string(message.namespace);
257
+ /* string service = 6; */
258
+ if (message.service !== "")
259
+ writer.tag(6, WireType.LengthDelimited).string(message.service);
260
+ /* string name = 7; */
249
261
  if (message.name !== "")
250
- writer.tag(6, WireType.LengthDelimited).string(message.name);
251
- /* string key = 7; */
262
+ writer.tag(7, WireType.LengthDelimited).string(message.name);
263
+ /* string key = 8; */
252
264
  if (message.key !== "")
253
- writer.tag(7, WireType.LengthDelimited).string(message.key);
254
- /* string type = 8; */
265
+ writer.tag(8, WireType.LengthDelimited).string(message.key);
266
+ /* string type = 9; */
255
267
  if (message.type !== "")
256
- writer.tag(8, WireType.LengthDelimited).string(message.type);
257
- /* resources.permissions.attributes.AttributeValues valid_values = 9; */
268
+ writer.tag(9, WireType.LengthDelimited).string(message.type);
269
+ /* resources.permissions.attributes.AttributeValues valid_values = 10; */
258
270
  if (message.validValues)
259
- AttributeValues.internalBinaryWrite(message.validValues, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
260
- /* resources.permissions.attributes.AttributeValues value = 10; */
271
+ AttributeValues.internalBinaryWrite(message.validValues, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
272
+ /* resources.permissions.attributes.AttributeValues value = 11; */
261
273
  if (message.value)
262
- AttributeValues.internalBinaryWrite(message.value, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
263
- /* optional resources.permissions.attributes.AttributeValues max_values = 11; */
274
+ AttributeValues.internalBinaryWrite(message.value, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
275
+ /* optional resources.permissions.attributes.AttributeValues max_values = 12; */
264
276
  if (message.maxValues)
265
- AttributeValues.internalBinaryWrite(message.maxValues, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
277
+ AttributeValues.internalBinaryWrite(message.maxValues, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
266
278
  let u = options.writeUnknownFields;
267
279
  if (u !== false)
268
280
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -26,27 +26,31 @@ export interface Permission {
26
26
  */
27
27
  createdAt?: Timestamp;
28
28
  /**
29
- * @generated from protobuf field: string category = 3
29
+ * @generated from protobuf field: string namespace = 3
30
30
  */
31
- category: string;
31
+ namespace: string;
32
32
  /**
33
- * @generated from protobuf field: string name = 4
33
+ * @generated from protobuf field: string service = 4
34
+ */
35
+ service: string;
36
+ /**
37
+ * @generated from protobuf field: string name = 5
34
38
  */
35
39
  name: string;
36
40
  /**
37
- * @generated from protobuf field: string guard_name = 5
41
+ * @generated from protobuf field: string guard_name = 6
38
42
  */
39
43
  guardName: string;
40
44
  /**
41
- * @generated from protobuf field: bool val = 6
45
+ * @generated from protobuf field: bool val = 7
42
46
  */
43
47
  val: boolean;
44
48
  /**
45
- * @generated from protobuf field: optional int32 order = 7
49
+ * @generated from protobuf field: optional int32 order = 8
46
50
  */
47
51
  order?: number;
48
52
  /**
49
- * @generated from protobuf field: optional string icon = 8
53
+ * @generated from protobuf field: optional string icon = 9
50
54
  */
51
55
  icon?: string;
52
56
  }
@@ -106,18 +110,20 @@ class Permission$Type extends MessageType<Permission> {
106
110
  super("resources.permissions.permissions.Permission", [
107
111
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
108
112
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
109
- { no: 3, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
110
- { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
111
- { no: 5, name: "guard_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
112
- { no: 6, name: "val", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
113
- { no: 7, name: "order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
114
- { no: 8, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
113
+ { no: 3, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } } } },
114
+ { no: 4, name: "service", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
115
+ { no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
116
+ { no: 6, name: "guard_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
117
+ { no: 7, name: "val", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
118
+ { no: 8, name: "order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
119
+ { no: 9, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
115
120
  ]);
116
121
  }
117
122
  create(value?: PartialMessage<Permission>): Permission {
118
123
  const message = globalThis.Object.create((this.messagePrototype!));
119
124
  message.id = 0;
120
- message.category = "";
125
+ message.namespace = "";
126
+ message.service = "";
121
127
  message.name = "";
122
128
  message.guardName = "";
123
129
  message.val = false;
@@ -136,22 +142,25 @@ class Permission$Type extends MessageType<Permission> {
136
142
  case /* optional resources.timestamp.Timestamp created_at */ 2:
137
143
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
138
144
  break;
139
- case /* string category */ 3:
140
- message.category = reader.string();
145
+ case /* string namespace */ 3:
146
+ message.namespace = reader.string();
147
+ break;
148
+ case /* string service */ 4:
149
+ message.service = reader.string();
141
150
  break;
142
- case /* string name */ 4:
151
+ case /* string name */ 5:
143
152
  message.name = reader.string();
144
153
  break;
145
- case /* string guard_name */ 5:
154
+ case /* string guard_name */ 6:
146
155
  message.guardName = reader.string();
147
156
  break;
148
- case /* bool val */ 6:
157
+ case /* bool val */ 7:
149
158
  message.val = reader.bool();
150
159
  break;
151
- case /* optional int32 order */ 7:
160
+ case /* optional int32 order */ 8:
152
161
  message.order = reader.int32();
153
162
  break;
154
- case /* optional string icon */ 8:
163
+ case /* optional string icon */ 9:
155
164
  message.icon = reader.string();
156
165
  break;
157
166
  default:
@@ -172,24 +181,27 @@ class Permission$Type extends MessageType<Permission> {
172
181
  /* optional resources.timestamp.Timestamp created_at = 2; */
173
182
  if (message.createdAt)
174
183
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
175
- /* string category = 3; */
176
- if (message.category !== "")
177
- writer.tag(3, WireType.LengthDelimited).string(message.category);
178
- /* string name = 4; */
184
+ /* string namespace = 3; */
185
+ if (message.namespace !== "")
186
+ writer.tag(3, WireType.LengthDelimited).string(message.namespace);
187
+ /* string service = 4; */
188
+ if (message.service !== "")
189
+ writer.tag(4, WireType.LengthDelimited).string(message.service);
190
+ /* string name = 5; */
179
191
  if (message.name !== "")
180
- writer.tag(4, WireType.LengthDelimited).string(message.name);
181
- /* string guard_name = 5; */
192
+ writer.tag(5, WireType.LengthDelimited).string(message.name);
193
+ /* string guard_name = 6; */
182
194
  if (message.guardName !== "")
183
- writer.tag(5, WireType.LengthDelimited).string(message.guardName);
184
- /* bool val = 6; */
195
+ writer.tag(6, WireType.LengthDelimited).string(message.guardName);
196
+ /* bool val = 7; */
185
197
  if (message.val !== false)
186
- writer.tag(6, WireType.Varint).bool(message.val);
187
- /* optional int32 order = 7; */
198
+ writer.tag(7, WireType.Varint).bool(message.val);
199
+ /* optional int32 order = 8; */
188
200
  if (message.order !== undefined)
189
- writer.tag(7, WireType.Varint).int32(message.order);
190
- /* optional string icon = 8; */
201
+ writer.tag(8, WireType.Varint).int32(message.order);
202
+ /* optional string icon = 9; */
191
203
  if (message.icon !== undefined)
192
- writer.tag(8, WireType.LengthDelimited).string(message.icon);
204
+ writer.tag(9, WireType.LengthDelimited).string(message.icon);
193
205
  let u = options.writeUnknownFields;
194
206
  if (u !== false)
195
207
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -129,9 +129,9 @@ export interface DeleteVehicles {
129
129
  */
130
130
  export interface LastCharID {
131
131
  /**
132
- * @generated from protobuf field: string identifier = 1
132
+ * @generated from protobuf field: string license = 1
133
133
  */
134
- identifier: string;
134
+ license: string;
135
135
  /**
136
136
  * @generated from protobuf field: optional int32 last_char_id = 2
137
137
  */
@@ -714,13 +714,13 @@ export const DeleteVehicles = new DeleteVehicles$Type();
714
714
  class LastCharID$Type extends MessageType<LastCharID> {
715
715
  constructor() {
716
716
  super("resources.sync.data.LastCharID", [
717
- { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
717
+ { no: 1, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
718
718
  { no: 2, name: "last_char_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } }
719
719
  ]);
720
720
  }
721
721
  create(value?: PartialMessage<LastCharID>): LastCharID {
722
722
  const message = globalThis.Object.create((this.messagePrototype!));
723
- message.identifier = "";
723
+ message.license = "";
724
724
  if (value !== undefined)
725
725
  reflectionMergePartial<LastCharID>(this, message, value);
726
726
  return message;
@@ -730,8 +730,8 @@ class LastCharID$Type extends MessageType<LastCharID> {
730
730
  while (reader.pos < end) {
731
731
  let [fieldNo, wireType] = reader.tag();
732
732
  switch (fieldNo) {
733
- case /* string identifier */ 1:
734
- message.identifier = reader.string();
733
+ case /* string license */ 1:
734
+ message.license = reader.string();
735
735
  break;
736
736
  case /* optional int32 last_char_id */ 2:
737
737
  message.lastCharId = reader.int32();
@@ -748,9 +748,9 @@ class LastCharID$Type extends MessageType<LastCharID> {
748
748
  return message;
749
749
  }
750
750
  internalBinaryWrite(message: LastCharID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
751
- /* string identifier = 1; */
752
- if (message.identifier !== "")
753
- writer.tag(1, WireType.LengthDelimited).string(message.identifier);
751
+ /* string license = 1; */
752
+ if (message.license !== "")
753
+ writer.tag(1, WireType.LengthDelimited).string(message.license);
754
754
  /* optional int32 last_char_id = 2; */
755
755
  if (message.lastCharId !== undefined)
756
756
  writer.tag(2, WireType.Varint).int32(message.lastCharId);