@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,6 +1,9 @@
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/wiki/wiki.proto" (package "services.wiki", syntax proto3)
3
+ // tslint:disable
3
4
  // @ts-nocheck
5
+ import { UploadFileResponse } from "../../resources/file/filestore";
6
+ import { UploadFileRequest } from "../../resources/file/filestore";
4
7
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
8
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
9
  import type { IBinaryWriter } from "@protobuf-ts/runtime";
@@ -12,6 +15,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
12
15
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
16
  import { MessageType } from "@protobuf-ts/runtime";
14
17
  import { PageActivity } from "../../resources/wiki/activity";
18
+ import { ContentType } from "../../resources/common/content/content";
15
19
  import { Page } from "../../resources/wiki/page";
16
20
  import { PageShort } from "../../resources/wiki/page";
17
21
  import { PaginationResponse } from "../../resources/common/database/database";
@@ -22,25 +26,25 @@ import { PaginationRequest } from "../../resources/common/database/database";
22
26
  */
23
27
  export interface ListPagesRequest {
24
28
  /**
25
- * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1;
29
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
26
30
  */
27
31
  pagination?: PaginationRequest;
28
32
  /**
29
- * @generated from protobuf field: optional resources.common.database.Sort sort = 2;
33
+ * @generated from protobuf field: optional resources.common.database.Sort sort = 2
30
34
  */
31
35
  sort?: Sort;
32
36
  /**
33
37
  * Search params
34
38
  *
35
- * @generated from protobuf field: optional string job = 3;
39
+ * @generated from protobuf field: optional string job = 3
36
40
  */
37
41
  job?: string;
38
42
  /**
39
- * @generated from protobuf field: optional bool root_only = 4;
43
+ * @generated from protobuf field: optional bool root_only = 4
40
44
  */
41
45
  rootOnly?: boolean;
42
46
  /**
43
- * @generated from protobuf field: optional string search = 5;
47
+ * @generated from protobuf field: optional string search = 5
44
48
  */
45
49
  search?: string;
46
50
  }
@@ -49,11 +53,11 @@ export interface ListPagesRequest {
49
53
  */
50
54
  export interface ListPagesResponse {
51
55
  /**
52
- * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1;
56
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
53
57
  */
54
58
  pagination?: PaginationResponse;
55
59
  /**
56
- * @generated from protobuf field: repeated resources.wiki.PageShort pages = 2;
60
+ * @generated from protobuf field: repeated resources.wiki.PageShort pages = 2
57
61
  */
58
62
  pages: PageShort[];
59
63
  }
@@ -62,7 +66,7 @@ export interface ListPagesResponse {
62
66
  */
63
67
  export interface GetPageRequest {
64
68
  /**
65
- * @generated from protobuf field: uint64 id = 1;
69
+ * @generated from protobuf field: int64 id = 1
66
70
  */
67
71
  id: number;
68
72
  }
@@ -71,7 +75,7 @@ export interface GetPageRequest {
71
75
  */
72
76
  export interface GetPageResponse {
73
77
  /**
74
- * @generated from protobuf field: resources.wiki.Page page = 1;
78
+ * @generated from protobuf field: resources.wiki.Page page = 1
75
79
  */
76
80
  page?: Page;
77
81
  }
@@ -80,25 +84,33 @@ export interface GetPageResponse {
80
84
  */
81
85
  export interface CreatePageRequest {
82
86
  /**
83
- * @generated from protobuf field: resources.wiki.Page page = 1;
87
+ * @generated from protobuf field: optional int64 parent_id = 1
84
88
  */
85
- page?: Page;
89
+ parentId?: number;
90
+ /**
91
+ * @generated from protobuf field: resources.common.content.ContentType content_type = 2
92
+ */
93
+ contentType: ContentType;
86
94
  }
87
95
  /**
88
96
  * @generated from protobuf message services.wiki.CreatePageResponse
89
97
  */
90
98
  export interface CreatePageResponse {
91
99
  /**
92
- * @generated from protobuf field: resources.wiki.Page page = 1;
100
+ * @generated from protobuf field: string job = 1
93
101
  */
94
- page?: Page;
102
+ job: string;
103
+ /**
104
+ * @generated from protobuf field: int64 id = 2
105
+ */
106
+ id: number;
95
107
  }
96
108
  /**
97
109
  * @generated from protobuf message services.wiki.UpdatePageRequest
98
110
  */
99
111
  export interface UpdatePageRequest {
100
112
  /**
101
- * @generated from protobuf field: resources.wiki.Page page = 1;
113
+ * @generated from protobuf field: resources.wiki.Page page = 1
102
114
  */
103
115
  page?: Page;
104
116
  }
@@ -107,7 +119,7 @@ export interface UpdatePageRequest {
107
119
  */
108
120
  export interface UpdatePageResponse {
109
121
  /**
110
- * @generated from protobuf field: resources.wiki.Page page = 1;
122
+ * @generated from protobuf field: resources.wiki.Page page = 1
111
123
  */
112
124
  page?: Page;
113
125
  }
@@ -116,7 +128,7 @@ export interface UpdatePageResponse {
116
128
  */
117
129
  export interface DeletePageRequest {
118
130
  /**
119
- * @generated from protobuf field: uint64 id = 1;
131
+ * @generated from protobuf field: int64 id = 1
120
132
  */
121
133
  id: number;
122
134
  }
@@ -130,11 +142,11 @@ export interface DeletePageResponse {
130
142
  */
131
143
  export interface ListPageActivityRequest {
132
144
  /**
133
- * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1;
145
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
134
146
  */
135
147
  pagination?: PaginationRequest;
136
148
  /**
137
- * @generated from protobuf field: uint64 page_id = 2;
149
+ * @generated from protobuf field: int64 page_id = 2
138
150
  */
139
151
  pageId: number;
140
152
  }
@@ -143,11 +155,11 @@ export interface ListPageActivityRequest {
143
155
  */
144
156
  export interface ListPageActivityResponse {
145
157
  /**
146
- * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1;
158
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
147
159
  */
148
160
  pagination?: PaginationResponse;
149
161
  /**
150
- * @generated from protobuf field: repeated resources.wiki.PageActivity activity = 2;
162
+ * @generated from protobuf field: repeated resources.wiki.PageActivity activity = 2
151
163
  */
152
164
  activity: PageActivity[];
153
165
  }
@@ -155,11 +167,11 @@ export interface ListPageActivityResponse {
155
167
  class ListPagesRequest$Type extends MessageType<ListPagesRequest> {
156
168
  constructor() {
157
169
  super("services.wiki.ListPagesRequest", [
158
- { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
170
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
159
171
  { no: 2, name: "sort", kind: "message", T: () => Sort },
160
- { no: 3, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
172
+ { no: 3, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
161
173
  { no: 4, name: "root_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
162
- { no: 5, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } }
174
+ { no: 5, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } }
163
175
  ]);
164
176
  }
165
177
  create(value?: PartialMessage<ListPagesRequest>): ListPagesRequest {
@@ -229,8 +241,8 @@ export const ListPagesRequest = new ListPagesRequest$Type();
229
241
  class ListPagesResponse$Type extends MessageType<ListPagesResponse> {
230
242
  constructor() {
231
243
  super("services.wiki.ListPagesResponse", [
232
- { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
233
- { no: 2, name: "pages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageShort }
244
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
245
+ { no: 2, name: "pages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageShort, options: { "codegen.itemslen.enabled": true } }
234
246
  ]);
235
247
  }
236
248
  create(value?: PartialMessage<ListPagesResponse>): ListPagesResponse {
@@ -283,7 +295,7 @@ export const ListPagesResponse = new ListPagesResponse$Type();
283
295
  class GetPageRequest$Type extends MessageType<GetPageRequest> {
284
296
  constructor() {
285
297
  super("services.wiki.GetPageRequest", [
286
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
298
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
287
299
  ]);
288
300
  }
289
301
  create(value?: PartialMessage<GetPageRequest>): GetPageRequest {
@@ -298,8 +310,8 @@ class GetPageRequest$Type extends MessageType<GetPageRequest> {
298
310
  while (reader.pos < end) {
299
311
  let [fieldNo, wireType] = reader.tag();
300
312
  switch (fieldNo) {
301
- case /* uint64 id */ 1:
302
- message.id = reader.uint64().toNumber();
313
+ case /* int64 id */ 1:
314
+ message.id = reader.int64().toNumber();
303
315
  break;
304
316
  default:
305
317
  let u = options.readUnknownField;
@@ -313,9 +325,9 @@ class GetPageRequest$Type extends MessageType<GetPageRequest> {
313
325
  return message;
314
326
  }
315
327
  internalBinaryWrite(message: GetPageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
316
- /* uint64 id = 1; */
328
+ /* int64 id = 1; */
317
329
  if (message.id !== 0)
318
- writer.tag(1, WireType.Varint).uint64(message.id);
330
+ writer.tag(1, WireType.Varint).int64(message.id);
319
331
  let u = options.writeUnknownFields;
320
332
  if (u !== false)
321
333
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -376,11 +388,13 @@ export const GetPageResponse = new GetPageResponse$Type();
376
388
  class CreatePageRequest$Type extends MessageType<CreatePageRequest> {
377
389
  constructor() {
378
390
  super("services.wiki.CreatePageRequest", [
379
- { no: 1, name: "page", kind: "message", T: () => Page, options: { "validate.rules": { message: { required: true } } } }
391
+ { no: 1, name: "parent_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
392
+ { no: 2, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
380
393
  ]);
381
394
  }
382
395
  create(value?: PartialMessage<CreatePageRequest>): CreatePageRequest {
383
396
  const message = globalThis.Object.create((this.messagePrototype!));
397
+ message.contentType = 0;
384
398
  if (value !== undefined)
385
399
  reflectionMergePartial<CreatePageRequest>(this, message, value);
386
400
  return message;
@@ -390,8 +404,11 @@ class CreatePageRequest$Type extends MessageType<CreatePageRequest> {
390
404
  while (reader.pos < end) {
391
405
  let [fieldNo, wireType] = reader.tag();
392
406
  switch (fieldNo) {
393
- case /* resources.wiki.Page page */ 1:
394
- message.page = Page.internalBinaryRead(reader, reader.uint32(), options, message.page);
407
+ case /* optional int64 parent_id */ 1:
408
+ message.parentId = reader.int64().toNumber();
409
+ break;
410
+ case /* resources.common.content.ContentType content_type */ 2:
411
+ message.contentType = reader.int32();
395
412
  break;
396
413
  default:
397
414
  let u = options.readUnknownField;
@@ -405,9 +422,12 @@ class CreatePageRequest$Type extends MessageType<CreatePageRequest> {
405
422
  return message;
406
423
  }
407
424
  internalBinaryWrite(message: CreatePageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
408
- /* resources.wiki.Page page = 1; */
409
- if (message.page)
410
- Page.internalBinaryWrite(message.page, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
425
+ /* optional int64 parent_id = 1; */
426
+ if (message.parentId !== undefined)
427
+ writer.tag(1, WireType.Varint).int64(message.parentId);
428
+ /* resources.common.content.ContentType content_type = 2; */
429
+ if (message.contentType !== 0)
430
+ writer.tag(2, WireType.Varint).int32(message.contentType);
411
431
  let u = options.writeUnknownFields;
412
432
  if (u !== false)
413
433
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -422,11 +442,14 @@ export const CreatePageRequest = new CreatePageRequest$Type();
422
442
  class CreatePageResponse$Type extends MessageType<CreatePageResponse> {
423
443
  constructor() {
424
444
  super("services.wiki.CreatePageResponse", [
425
- { no: 1, name: "page", kind: "message", T: () => Page }
445
+ { no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
446
+ { no: 2, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
426
447
  ]);
427
448
  }
428
449
  create(value?: PartialMessage<CreatePageResponse>): CreatePageResponse {
429
450
  const message = globalThis.Object.create((this.messagePrototype!));
451
+ message.job = "";
452
+ message.id = 0;
430
453
  if (value !== undefined)
431
454
  reflectionMergePartial<CreatePageResponse>(this, message, value);
432
455
  return message;
@@ -436,8 +459,11 @@ class CreatePageResponse$Type extends MessageType<CreatePageResponse> {
436
459
  while (reader.pos < end) {
437
460
  let [fieldNo, wireType] = reader.tag();
438
461
  switch (fieldNo) {
439
- case /* resources.wiki.Page page */ 1:
440
- message.page = Page.internalBinaryRead(reader, reader.uint32(), options, message.page);
462
+ case /* string job */ 1:
463
+ message.job = reader.string();
464
+ break;
465
+ case /* int64 id */ 2:
466
+ message.id = reader.int64().toNumber();
441
467
  break;
442
468
  default:
443
469
  let u = options.readUnknownField;
@@ -451,9 +477,12 @@ class CreatePageResponse$Type extends MessageType<CreatePageResponse> {
451
477
  return message;
452
478
  }
453
479
  internalBinaryWrite(message: CreatePageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
454
- /* resources.wiki.Page page = 1; */
455
- if (message.page)
456
- Page.internalBinaryWrite(message.page, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
480
+ /* string job = 1; */
481
+ if (message.job !== "")
482
+ writer.tag(1, WireType.LengthDelimited).string(message.job);
483
+ /* int64 id = 2; */
484
+ if (message.id !== 0)
485
+ writer.tag(2, WireType.Varint).int64(message.id);
457
486
  let u = options.writeUnknownFields;
458
487
  if (u !== false)
459
488
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -468,7 +497,7 @@ export const CreatePageResponse = new CreatePageResponse$Type();
468
497
  class UpdatePageRequest$Type extends MessageType<UpdatePageRequest> {
469
498
  constructor() {
470
499
  super("services.wiki.UpdatePageRequest", [
471
- { no: 1, name: "page", kind: "message", T: () => Page, options: { "validate.rules": { message: { required: true } } } }
500
+ { no: 1, name: "page", kind: "message", T: () => Page, options: { "buf.validate.field": { required: true } } }
472
501
  ]);
473
502
  }
474
503
  create(value?: PartialMessage<UpdatePageRequest>): UpdatePageRequest {
@@ -560,7 +589,7 @@ export const UpdatePageResponse = new UpdatePageResponse$Type();
560
589
  class DeletePageRequest$Type extends MessageType<DeletePageRequest> {
561
590
  constructor() {
562
591
  super("services.wiki.DeletePageRequest", [
563
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
592
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
564
593
  ]);
565
594
  }
566
595
  create(value?: PartialMessage<DeletePageRequest>): DeletePageRequest {
@@ -575,8 +604,8 @@ class DeletePageRequest$Type extends MessageType<DeletePageRequest> {
575
604
  while (reader.pos < end) {
576
605
  let [fieldNo, wireType] = reader.tag();
577
606
  switch (fieldNo) {
578
- case /* uint64 id */ 1:
579
- message.id = reader.uint64().toNumber();
607
+ case /* int64 id */ 1:
608
+ message.id = reader.int64().toNumber();
580
609
  break;
581
610
  default:
582
611
  let u = options.readUnknownField;
@@ -590,9 +619,9 @@ class DeletePageRequest$Type extends MessageType<DeletePageRequest> {
590
619
  return message;
591
620
  }
592
621
  internalBinaryWrite(message: DeletePageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
593
- /* uint64 id = 1; */
622
+ /* int64 id = 1; */
594
623
  if (message.id !== 0)
595
- writer.tag(1, WireType.Varint).uint64(message.id);
624
+ writer.tag(1, WireType.Varint).int64(message.id);
596
625
  let u = options.writeUnknownFields;
597
626
  if (u !== false)
598
627
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -645,8 +674,8 @@ export const DeletePageResponse = new DeletePageResponse$Type();
645
674
  class ListPageActivityRequest$Type extends MessageType<ListPageActivityRequest> {
646
675
  constructor() {
647
676
  super("services.wiki.ListPageActivityRequest", [
648
- { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
649
- { no: 2, name: "page_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
677
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
678
+ { no: 2, name: "page_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
650
679
  ]);
651
680
  }
652
681
  create(value?: PartialMessage<ListPageActivityRequest>): ListPageActivityRequest {
@@ -664,8 +693,8 @@ class ListPageActivityRequest$Type extends MessageType<ListPageActivityRequest>
664
693
  case /* resources.common.database.PaginationRequest pagination */ 1:
665
694
  message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
666
695
  break;
667
- case /* uint64 page_id */ 2:
668
- message.pageId = reader.uint64().toNumber();
696
+ case /* int64 page_id */ 2:
697
+ message.pageId = reader.int64().toNumber();
669
698
  break;
670
699
  default:
671
700
  let u = options.readUnknownField;
@@ -682,9 +711,9 @@ class ListPageActivityRequest$Type extends MessageType<ListPageActivityRequest>
682
711
  /* resources.common.database.PaginationRequest pagination = 1; */
683
712
  if (message.pagination)
684
713
  PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
685
- /* uint64 page_id = 2; */
714
+ /* int64 page_id = 2; */
686
715
  if (message.pageId !== 0)
687
- writer.tag(2, WireType.Varint).uint64(message.pageId);
716
+ writer.tag(2, WireType.Varint).int64(message.pageId);
688
717
  let u = options.writeUnknownFields;
689
718
  if (u !== false)
690
719
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -699,8 +728,8 @@ export const ListPageActivityRequest = new ListPageActivityRequest$Type();
699
728
  class ListPageActivityResponse$Type extends MessageType<ListPageActivityResponse> {
700
729
  constructor() {
701
730
  super("services.wiki.ListPageActivityResponse", [
702
- { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
703
- { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageActivity }
731
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
732
+ { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageActivity, options: { "codegen.itemslen.enabled": true } }
704
733
  ]);
705
734
  }
706
735
  create(value?: PartialMessage<ListPageActivityResponse>): ListPageActivityResponse {
@@ -753,10 +782,11 @@ export const ListPageActivityResponse = new ListPageActivityResponse$Type();
753
782
  * @generated ServiceType for protobuf service services.wiki.WikiService
754
783
  */
755
784
  export const WikiService = new ServiceType("services.wiki.WikiService", [
756
- { name: "ListPages", options: {}, I: ListPagesRequest, O: ListPagesResponse },
757
- { name: "GetPage", options: {}, I: GetPageRequest, O: GetPageResponse },
758
- { name: "CreatePage", options: {}, I: CreatePageRequest, O: CreatePageResponse },
759
- { name: "UpdatePage", options: {}, I: UpdatePageRequest, O: UpdatePageResponse },
760
- { name: "DeletePage", options: {}, I: DeletePageRequest, O: DeletePageResponse },
761
- { name: "ListPageActivity", options: {}, I: ListPageActivityRequest, O: ListPageActivityResponse }
785
+ { name: "ListPages", options: { "codegen.perms.perms": { enabled: true } }, I: ListPagesRequest, O: ListPagesResponse },
786
+ { name: "GetPage", options: { "codegen.perms.perms": { enabled: true, name: "ListPages" } }, I: GetPageRequest, O: GetPageResponse },
787
+ { name: "CreatePage", options: { "codegen.perms.perms": { enabled: true, name: "UpdatePage" } }, I: CreatePageRequest, O: CreatePageResponse },
788
+ { name: "UpdatePage", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Public"] }] } }, I: UpdatePageRequest, O: UpdatePageResponse },
789
+ { name: "DeletePage", options: { "codegen.perms.perms": { enabled: true } }, I: DeletePageRequest, O: DeletePageResponse },
790
+ { name: "ListPageActivity", options: { "codegen.perms.perms": { enabled: true } }, I: ListPageActivityRequest, O: ListPageActivityResponse },
791
+ { name: "UploadFile", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "UpdatePage" } }, I: UploadFileRequest, O: UploadFileResponse }
762
792
  ]);