@fivenet-app/gen 2025.5.3 → 2026.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/README.md +1 -1
  2. package/buf/validate/validate.ts +11301 -0
  3. package/clients.ts +193 -154
  4. package/codegen/dbscanner/dbscanner.ts +91 -0
  5. package/codegen/perms/perms.ts +287 -0
  6. package/codegen/sanitizer/sanitizer.ts +113 -0
  7. package/google/protobuf/any.ts +4 -3
  8. package/google/protobuf/descriptor.ts +393 -239
  9. package/google/protobuf/duration.ts +4 -3
  10. package/google/protobuf/struct.ts +485 -0
  11. package/google/protobuf/timestamp.ts +4 -3
  12. package/package.json +3 -3
  13. package/perms.ts +217 -160
  14. package/resources/accounts/accounts.ts +115 -47
  15. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
  16. package/resources/audit/audit.ts +172 -53
  17. package/resources/calendar/{access.ts → access/access.ts} +72 -71
  18. package/resources/calendar/calendar.ts +79 -543
  19. package/resources/calendar/entries/entries.ts +474 -0
  20. package/resources/centrum/access/access.ts +345 -0
  21. package/resources/centrum/dispatchers/dispatchers.ts +149 -0
  22. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
  23. package/resources/centrum/joblist.ts +136 -0
  24. package/resources/centrum/settings/settings.ts +657 -0
  25. package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
  26. package/resources/centrum/{units.ts → units/units.ts} +230 -130
  27. package/resources/clientconfig/clientconfig.ts +1015 -0
  28. package/resources/collab/collab.ts +805 -0
  29. package/resources/common/content/content.ts +169 -63
  30. package/resources/common/content/diff_activity.ts +267 -0
  31. package/resources/common/database/database.ts +92 -35
  32. package/resources/common/error.ts +17 -16
  33. package/resources/common/i18n.ts +20 -24
  34. package/resources/common/id_mapping.ts +69 -0
  35. package/resources/common/tests/objects.ts +4 -3
  36. package/resources/{common/cron → cron}/cron.ts +77 -65
  37. package/resources/discord/discord.ts +209 -0
  38. package/resources/documents/{access.ts → access/access.ts} +75 -76
  39. package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
  40. package/resources/documents/approval/approval.ts +945 -0
  41. package/resources/documents/{category.ts → category/category.ts} +25 -32
  42. package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
  43. package/resources/documents/data/data.ts +303 -0
  44. package/resources/documents/documents.ts +374 -686
  45. package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
  46. package/resources/documents/pins/pins.ts +127 -0
  47. package/resources/documents/references/references.ts +187 -0
  48. package/resources/documents/relations/relations.ts +184 -0
  49. package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
  50. package/resources/documents/stamps/stamp.ts +355 -0
  51. package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
  52. package/resources/documents/workflow/workflow.ts +600 -0
  53. package/resources/file/file.ts +152 -0
  54. package/{services/settings → resources/file}/filestore.ts +179 -165
  55. package/resources/file/meta.ts +148 -0
  56. package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
  57. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
  58. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
  59. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
  60. package/resources/jobs/jobs.ts +14 -13
  61. package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
  62. package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
  63. package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
  64. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
  65. package/resources/laws/laws.ts +40 -49
  66. package/resources/livemap/coords.ts +81 -0
  67. package/resources/livemap/heatmap/heatmap.ts +93 -0
  68. package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
  69. package/resources/livemap/markers/user_marker.ts +377 -0
  70. package/resources/mailer/{access.ts → access/access.ts} +119 -118
  71. package/resources/mailer/{email.ts → emails/email.ts} +38 -41
  72. package/resources/mailer/{events.ts → events/events.ts} +44 -43
  73. package/resources/mailer/{message.ts → messages/message.ts} +69 -74
  74. package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
  75. package/resources/mailer/{template.ts → templates/template.ts} +37 -40
  76. package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
  77. package/resources/notifications/clientview/clientview.ts +239 -0
  78. package/resources/notifications/{events.ts → events/events.ts} +67 -130
  79. package/resources/notifications/notifications.ts +55 -60
  80. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
  81. package/resources/permissions/events/events.ts +149 -0
  82. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
  83. package/resources/qualifications/{access.ts → access/access.ts} +43 -42
  84. package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
  85. package/resources/qualifications/qualifications.ts +327 -388
  86. package/resources/settings/banner.ts +14 -21
  87. package/resources/settings/config.ts +663 -79
  88. package/resources/settings/data.ts +90 -0
  89. package/resources/settings/perms.ts +151 -0
  90. package/resources/settings/status.ts +533 -0
  91. package/resources/stats/stats.ts +382 -2
  92. package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
  93. package/resources/sync/data/data.ts +1001 -0
  94. package/resources/sync/data/v2/data.ts +220 -0
  95. package/resources/timestamp/timestamp.ts +3 -2
  96. package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
  97. package/resources/userinfo/userinfo.ts +442 -0
  98. package/resources/users/{activity.ts → activity/activity.ts} +182 -166
  99. package/resources/users/{labels.ts → labels/labels.ts} +27 -30
  100. package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
  101. package/resources/users/{props.ts → props/props.ts} +109 -77
  102. package/resources/users/short/user.ts +184 -0
  103. package/resources/users/user.ts +528 -0
  104. package/resources/vehicles/activity/activity.ts +231 -0
  105. package/resources/vehicles/props/props.ts +125 -0
  106. package/resources/vehicles/vehicles.ts +43 -18
  107. package/resources/wiki/{access.ts → access/access.ts} +72 -71
  108. package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
  109. package/resources/wiki/page.ts +164 -93
  110. package/services/auth/auth.client.ts +45 -35
  111. package/services/auth/auth.ts +498 -288
  112. package/services/calendar/calendar.client.ts +32 -91
  113. package/services/calendar/calendar.ts +157 -134
  114. package/services/centrum/centrum.client.ts +97 -137
  115. package/services/centrum/centrum.ts +755 -352
  116. package/services/citizens/citizens.client.ts +70 -39
  117. package/services/citizens/citizens.ts +226 -112
  118. package/services/completor/completor.client.ts +16 -35
  119. package/services/completor/completor.ts +95 -54
  120. package/services/documents/approval.client.ts +188 -0
  121. package/services/documents/approval.ts +1776 -0
  122. package/services/documents/collab.client.ts +46 -0
  123. package/services/documents/collab.ts +13 -0
  124. package/services/documents/documents.client.ts +88 -217
  125. package/services/documents/documents.ts +579 -619
  126. package/services/documents/forms.client.ts +51 -0
  127. package/services/documents/forms.ts +232 -0
  128. package/services/documents/stamps.client.ts +77 -0
  129. package/services/documents/stamps.ts +481 -0
  130. package/services/documents/stats.client.ts +38 -0
  131. package/services/documents/stats.ts +245 -0
  132. package/services/filestore/filestore.client.ts +86 -0
  133. package/services/filestore/filestore.ts +262 -0
  134. package/services/jobs/conduct.client.ts +40 -28
  135. package/services/jobs/conduct.ts +183 -56
  136. package/services/jobs/jobs.client.ts +22 -61
  137. package/services/jobs/jobs.ts +138 -121
  138. package/services/jobs/stats.client.ts +38 -0
  139. package/services/jobs/stats.ts +207 -0
  140. package/services/jobs/timeclock.client.ts +8 -19
  141. package/services/jobs/timeclock.ts +76 -75
  142. package/services/livemap/livemap.client.ts +8 -19
  143. package/services/livemap/livemap.ts +297 -126
  144. package/services/mailer/mailer.client.ts +44 -127
  145. package/services/mailer/mailer.ts +266 -269
  146. package/services/notifications/notifications.client.ts +65 -0
  147. package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
  148. package/services/qualifications/qualifications.client.ts +46 -91
  149. package/services/qualifications/qualifications.ts +250 -209
  150. package/services/settings/accounts.client.ts +31 -33
  151. package/services/settings/accounts.ts +251 -67
  152. package/services/settings/config.client.ts +6 -13
  153. package/services/settings/config.ts +8 -7
  154. package/services/settings/cron.client.ts +4 -7
  155. package/services/settings/cron.ts +7 -6
  156. package/services/settings/laws.client.ts +10 -25
  157. package/services/settings/laws.ts +30 -29
  158. package/services/settings/settings.client.ts +57 -103
  159. package/services/settings/settings.ts +237 -633
  160. package/services/settings/system.client.ts +103 -0
  161. package/services/settings/system.ts +718 -0
  162. package/services/stats/stats.client.ts +9 -8
  163. package/services/stats/stats.ts +27 -26
  164. package/services/sync/sync.client.ts +16 -15
  165. package/services/sync/sync.ts +174 -97
  166. package/services/sync/v2/sync.client.ts +331 -0
  167. package/services/sync/v2/sync.ts +1766 -0
  168. package/services/vehicles/vehicles.client.ts +17 -7
  169. package/services/vehicles/vehicles.ts +170 -25
  170. package/services/wiki/collab.client.ts +46 -0
  171. package/services/wiki/collab.ts +13 -0
  172. package/services/wiki/wiki.client.ts +28 -37
  173. package/services/wiki/wiki.ts +97 -67
  174. package/svcs.ts +174 -106
  175. package/resources/centrum/attributes.ts +0 -186
  176. package/resources/centrum/disponents.ts +0 -81
  177. package/resources/centrum/settings.ts +0 -307
  178. package/resources/documents/workflow.ts +0 -351
  179. package/resources/filestore/file.ts +0 -204
  180. package/resources/internet/access.ts +0 -358
  181. package/resources/internet/ads.ts +0 -257
  182. package/resources/internet/domain.ts +0 -328
  183. package/resources/internet/page.ts +0 -428
  184. package/resources/internet/search.ts +0 -128
  185. package/resources/livemap/tracker.ts +0 -81
  186. package/resources/sync/data.ts +0 -587
  187. package/resources/users/users.ts +0 -435
  188. package/services/internet/ads.client.ts +0 -41
  189. package/services/internet/ads.ts +0 -145
  190. package/services/internet/domain.client.ts +0 -109
  191. package/services/internet/domain.ts +0 -658
  192. package/services/internet/internet.client.ts +0 -58
  193. package/services/internet/internet.ts +0 -268
  194. package/services/notificator/notificator.client.ts +0 -76
  195. package/services/settings/filestore.client.ts +0 -75
@@ -1,5 +1,6 @@
1
- // @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
2
- // @generated from protobuf file "resources/wiki/activity.proto" (package "resources.wiki", syntax proto3)
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
+ // @generated from protobuf file "resources/wiki/activity/activity.proto" (package "resources.wiki.activity", syntax proto3)
3
+ // tslint:disable
3
4
  // @ts-nocheck
4
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
6
  import type { IBinaryWriter } from "@protobuf-ts/runtime";
@@ -10,59 +11,58 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
11
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
13
  import { MessageType } from "@protobuf-ts/runtime";
13
- import { PageUserAccess } from "./access";
14
- import { PageJobAccess } from "./access";
15
- import { UserShort } from "../users/users";
16
- import { Timestamp } from "../timestamp/timestamp";
14
+ import { PageUserAccess } from "../access/access";
15
+ import { PageJobAccess } from "../access/access";
16
+ import { ContentDiff } from "../../common/content/diff_activity";
17
+ import { UserShort } from "../../users/short/user";
18
+ import { Timestamp } from "../../timestamp/timestamp";
17
19
  /**
18
- * @generated from protobuf message resources.wiki.PageActivity
20
+ * @generated from protobuf message resources.wiki.activity.PageActivity
19
21
  */
20
22
  export interface PageActivity {
21
23
  /**
22
- * @generated from protobuf field: uint64 id = 1;
24
+ * @generated from protobuf field: int64 id = 1
23
25
  */
24
26
  id: number;
25
27
  /**
26
- * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
28
+ * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
27
29
  */
28
30
  createdAt?: Timestamp;
29
31
  /**
30
- * @generated from protobuf field: uint64 page_id = 3;
32
+ * @generated from protobuf field: int64 page_id = 3
31
33
  */
32
34
  pageId: number;
33
35
  /**
34
- * @generated from protobuf field: resources.wiki.PageActivityType activity_type = 4;
36
+ * @generated from protobuf field: resources.wiki.activity.PageActivityType activity_type = 4
35
37
  */
36
38
  activityType: PageActivityType;
37
39
  /**
38
- * @generated from protobuf field: optional int32 creator_id = 5;
40
+ * @generated from protobuf field: optional int32 creator_id = 5
39
41
  */
40
42
  creatorId?: number;
41
43
  /**
42
- * @generated from protobuf field: optional resources.users.UserShort creator = 6;
44
+ * @generated from protobuf field: optional resources.users.short.UserShort creator = 6
43
45
  */
44
- creator?: UserShort; // @gotags: alias:"creator"
46
+ creator?: UserShort;
45
47
  /**
46
- * @generated from protobuf field: string creator_job = 7;
48
+ * @generated from protobuf field: string creator_job = 7
47
49
  */
48
50
  creatorJob: string;
49
51
  /**
50
- * @generated from protobuf field: optional string creator_job_label = 8;
52
+ * @generated from protobuf field: optional string creator_job_label = 8
51
53
  */
52
54
  creatorJobLabel?: string;
53
55
  /**
54
- * @generated from protobuf field: optional string reason = 9;
56
+ * @generated from protobuf field: optional string reason = 9
55
57
  */
56
58
  reason?: string;
57
59
  /**
58
- * @generated from protobuf field: resources.wiki.PageActivityData data = 10;
60
+ * @generated from protobuf field: resources.wiki.activity.PageActivityData data = 10
59
61
  */
60
62
  data?: PageActivityData;
61
63
  }
62
64
  /**
63
- * @dbscanner: json
64
- *
65
- * @generated from protobuf message resources.wiki.PageActivityData
65
+ * @generated from protobuf message resources.wiki.activity.PageActivityData
66
66
  */
67
67
  export interface PageActivityData {
68
68
  /**
@@ -71,13 +71,13 @@ export interface PageActivityData {
71
71
  data: {
72
72
  oneofKind: "updated";
73
73
  /**
74
- * @generated from protobuf field: resources.wiki.PageUpdated updated = 1;
74
+ * @generated from protobuf field: resources.wiki.activity.PageUpdated updated = 1
75
75
  */
76
76
  updated: PageUpdated;
77
77
  } | {
78
78
  oneofKind: "accessUpdated";
79
79
  /**
80
- * @generated from protobuf field: resources.wiki.PageAccessUpdated access_updated = 2;
80
+ * @generated from protobuf field: resources.wiki.activity.PageAccessUpdated access_updated = 2
81
81
  */
82
82
  accessUpdated: PageAccessUpdated;
83
83
  } | {
@@ -85,71 +85,100 @@ export interface PageActivityData {
85
85
  };
86
86
  }
87
87
  /**
88
- * @generated from protobuf message resources.wiki.PageUpdated
88
+ * @generated from protobuf message resources.wiki.activity.PageUpdated
89
89
  */
90
90
  export interface PageUpdated {
91
91
  /**
92
- * @generated from protobuf field: optional string title_diff = 1;
92
+ * @generated from protobuf field: optional string title_diff = 1
93
93
  */
94
94
  titleDiff?: string;
95
95
  /**
96
- * @generated from protobuf field: optional string description_diff = 2;
96
+ * @generated from protobuf field: optional resources.common.content.ContentDiff title_cdiff = 5
97
+ */
98
+ titleCdiff?: ContentDiff;
99
+ /**
100
+ * @generated from protobuf field: optional string description_diff = 2
97
101
  */
98
102
  descriptionDiff?: string;
99
103
  /**
100
- * @generated from protobuf field: optional string content_diff = 3;
104
+ * @generated from protobuf field: optional resources.common.content.ContentDiff description_cdiff = 6
105
+ */
106
+ descriptionCdiff?: ContentDiff;
107
+ /**
108
+ * @generated from protobuf field: optional string content_diff = 3
101
109
  */
102
110
  contentDiff?: string;
111
+ /**
112
+ * @generated from protobuf field: optional resources.common.content.ContentDiff content_cdiff = 7
113
+ */
114
+ contentCdiff?: ContentDiff;
115
+ /**
116
+ * @generated from protobuf field: optional resources.wiki.activity.PageFilesChange files_change = 4
117
+ */
118
+ filesChange?: PageFilesChange;
119
+ }
120
+ /**
121
+ * @generated from protobuf message resources.wiki.activity.PageFilesChange
122
+ */
123
+ export interface PageFilesChange {
124
+ /**
125
+ * @generated from protobuf field: int64 added = 1
126
+ */
127
+ added: number;
128
+ /**
129
+ * @generated from protobuf field: int64 deleted = 2
130
+ */
131
+ deleted: number;
103
132
  }
104
133
  /**
105
- * @generated from protobuf message resources.wiki.PageAccessUpdated
134
+ * @generated from protobuf message resources.wiki.activity.PageAccessUpdated
106
135
  */
107
136
  export interface PageAccessUpdated {
108
137
  /**
109
- * @generated from protobuf field: resources.wiki.PageAccessJobsDiff jobs = 1;
138
+ * @generated from protobuf field: resources.wiki.activity.PageAccessJobsDiff jobs = 1
110
139
  */
111
140
  jobs?: PageAccessJobsDiff;
112
141
  /**
113
- * @generated from protobuf field: resources.wiki.PageAccessUsersDiff users = 2;
142
+ * @generated from protobuf field: resources.wiki.activity.PageAccessUsersDiff users = 2
114
143
  */
115
144
  users?: PageAccessUsersDiff;
116
145
  }
117
146
  /**
118
- * @generated from protobuf message resources.wiki.PageAccessJobsDiff
147
+ * @generated from protobuf message resources.wiki.activity.PageAccessJobsDiff
119
148
  */
120
149
  export interface PageAccessJobsDiff {
121
150
  /**
122
- * @generated from protobuf field: repeated resources.wiki.PageJobAccess to_create = 1;
151
+ * @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_create = 1
123
152
  */
124
153
  toCreate: PageJobAccess[];
125
154
  /**
126
- * @generated from protobuf field: repeated resources.wiki.PageJobAccess to_update = 2;
155
+ * @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_update = 2
127
156
  */
128
157
  toUpdate: PageJobAccess[];
129
158
  /**
130
- * @generated from protobuf field: repeated resources.wiki.PageJobAccess to_delete = 3;
159
+ * @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_delete = 3
131
160
  */
132
161
  toDelete: PageJobAccess[];
133
162
  }
134
163
  /**
135
- * @generated from protobuf message resources.wiki.PageAccessUsersDiff
164
+ * @generated from protobuf message resources.wiki.activity.PageAccessUsersDiff
136
165
  */
137
166
  export interface PageAccessUsersDiff {
138
167
  /**
139
- * @generated from protobuf field: repeated resources.wiki.PageUserAccess to_create = 1;
168
+ * @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_create = 1
140
169
  */
141
170
  toCreate: PageUserAccess[];
142
171
  /**
143
- * @generated from protobuf field: repeated resources.wiki.PageUserAccess to_update = 2;
172
+ * @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_update = 2
144
173
  */
145
174
  toUpdate: PageUserAccess[];
146
175
  /**
147
- * @generated from protobuf field: repeated resources.wiki.PageUserAccess to_delete = 3;
176
+ * @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_delete = 3
148
177
  */
149
178
  toDelete: PageUserAccess[];
150
179
  }
151
180
  /**
152
- * @generated from protobuf enum resources.wiki.PageActivityType
181
+ * @generated from protobuf enum resources.wiki.activity.PageActivityType
153
182
  */
154
183
  export enum PageActivityType {
155
184
  /**
@@ -177,21 +206,25 @@ export enum PageActivityType {
177
206
  /**
178
207
  * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_DELETED = 5;
179
208
  */
180
- DELETED = 5
209
+ DELETED = 5,
210
+ /**
211
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_DRAFT_TOGGLED = 6;
212
+ */
213
+ DRAFT_TOGGLED = 6
181
214
  }
182
215
  // @generated message type with reflection information, may provide speed optimized methods
183
216
  class PageActivity$Type extends MessageType<PageActivity> {
184
217
  constructor() {
185
- super("resources.wiki.PageActivity", [
186
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
218
+ super("resources.wiki.activity.PageActivity", [
219
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
187
220
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
188
- { no: 3, name: "page_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
189
- { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
190
- { no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
191
- { no: 6, name: "creator", kind: "message", T: () => UserShort },
192
- { no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
193
- { no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
194
- { no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
221
+ { no: 3, name: "page_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
222
+ { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.activity.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
223
+ { no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
224
+ { no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
225
+ { no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
226
+ { no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
227
+ { no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
195
228
  { no: 10, name: "data", kind: "message", T: () => PageActivityData }
196
229
  ]);
197
230
  }
@@ -210,22 +243,22 @@ class PageActivity$Type extends MessageType<PageActivity> {
210
243
  while (reader.pos < end) {
211
244
  let [fieldNo, wireType] = reader.tag();
212
245
  switch (fieldNo) {
213
- case /* uint64 id */ 1:
214
- message.id = reader.uint64().toNumber();
246
+ case /* int64 id */ 1:
247
+ message.id = reader.int64().toNumber();
215
248
  break;
216
249
  case /* resources.timestamp.Timestamp created_at */ 2:
217
250
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
218
251
  break;
219
- case /* uint64 page_id */ 3:
220
- message.pageId = reader.uint64().toNumber();
252
+ case /* int64 page_id */ 3:
253
+ message.pageId = reader.int64().toNumber();
221
254
  break;
222
- case /* resources.wiki.PageActivityType activity_type */ 4:
255
+ case /* resources.wiki.activity.PageActivityType activity_type */ 4:
223
256
  message.activityType = reader.int32();
224
257
  break;
225
258
  case /* optional int32 creator_id */ 5:
226
259
  message.creatorId = reader.int32();
227
260
  break;
228
- case /* optional resources.users.UserShort creator */ 6:
261
+ case /* optional resources.users.short.UserShort creator */ 6:
229
262
  message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
230
263
  break;
231
264
  case /* string creator_job */ 7:
@@ -237,7 +270,7 @@ class PageActivity$Type extends MessageType<PageActivity> {
237
270
  case /* optional string reason */ 9:
238
271
  message.reason = reader.string();
239
272
  break;
240
- case /* resources.wiki.PageActivityData data */ 10:
273
+ case /* resources.wiki.activity.PageActivityData data */ 10:
241
274
  message.data = PageActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
242
275
  break;
243
276
  default:
@@ -252,22 +285,22 @@ class PageActivity$Type extends MessageType<PageActivity> {
252
285
  return message;
253
286
  }
254
287
  internalBinaryWrite(message: PageActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
255
- /* uint64 id = 1; */
288
+ /* int64 id = 1; */
256
289
  if (message.id !== 0)
257
- writer.tag(1, WireType.Varint).uint64(message.id);
290
+ writer.tag(1, WireType.Varint).int64(message.id);
258
291
  /* resources.timestamp.Timestamp created_at = 2; */
259
292
  if (message.createdAt)
260
293
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
261
- /* uint64 page_id = 3; */
294
+ /* int64 page_id = 3; */
262
295
  if (message.pageId !== 0)
263
- writer.tag(3, WireType.Varint).uint64(message.pageId);
264
- /* resources.wiki.PageActivityType activity_type = 4; */
296
+ writer.tag(3, WireType.Varint).int64(message.pageId);
297
+ /* resources.wiki.activity.PageActivityType activity_type = 4; */
265
298
  if (message.activityType !== 0)
266
299
  writer.tag(4, WireType.Varint).int32(message.activityType);
267
300
  /* optional int32 creator_id = 5; */
268
301
  if (message.creatorId !== undefined)
269
302
  writer.tag(5, WireType.Varint).int32(message.creatorId);
270
- /* optional resources.users.UserShort creator = 6; */
303
+ /* optional resources.users.short.UserShort creator = 6; */
271
304
  if (message.creator)
272
305
  UserShort.internalBinaryWrite(message.creator, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
273
306
  /* string creator_job = 7; */
@@ -279,7 +312,7 @@ class PageActivity$Type extends MessageType<PageActivity> {
279
312
  /* optional string reason = 9; */
280
313
  if (message.reason !== undefined)
281
314
  writer.tag(9, WireType.LengthDelimited).string(message.reason);
282
- /* resources.wiki.PageActivityData data = 10; */
315
+ /* resources.wiki.activity.PageActivityData data = 10; */
283
316
  if (message.data)
284
317
  PageActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
285
318
  let u = options.writeUnknownFields;
@@ -289,16 +322,16 @@ class PageActivity$Type extends MessageType<PageActivity> {
289
322
  }
290
323
  }
291
324
  /**
292
- * @generated MessageType for protobuf message resources.wiki.PageActivity
325
+ * @generated MessageType for protobuf message resources.wiki.activity.PageActivity
293
326
  */
294
327
  export const PageActivity = new PageActivity$Type();
295
328
  // @generated message type with reflection information, may provide speed optimized methods
296
329
  class PageActivityData$Type extends MessageType<PageActivityData> {
297
330
  constructor() {
298
- super("resources.wiki.PageActivityData", [
331
+ super("resources.wiki.activity.PageActivityData", [
299
332
  { no: 1, name: "updated", kind: "message", oneof: "data", T: () => PageUpdated },
300
333
  { no: 2, name: "access_updated", kind: "message", oneof: "data", T: () => PageAccessUpdated }
301
- ]);
334
+ ], { "codegen.dbscanner.dbscanner": { enabled: true } });
302
335
  }
303
336
  create(value?: PartialMessage<PageActivityData>): PageActivityData {
304
337
  const message = globalThis.Object.create((this.messagePrototype!));
@@ -312,13 +345,13 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
312
345
  while (reader.pos < end) {
313
346
  let [fieldNo, wireType] = reader.tag();
314
347
  switch (fieldNo) {
315
- case /* resources.wiki.PageUpdated updated */ 1:
348
+ case /* resources.wiki.activity.PageUpdated updated */ 1:
316
349
  message.data = {
317
350
  oneofKind: "updated",
318
351
  updated: PageUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updated)
319
352
  };
320
353
  break;
321
- case /* resources.wiki.PageAccessUpdated access_updated */ 2:
354
+ case /* resources.wiki.activity.PageAccessUpdated access_updated */ 2:
322
355
  message.data = {
323
356
  oneofKind: "accessUpdated",
324
357
  accessUpdated: PageAccessUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessUpdated)
@@ -336,10 +369,10 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
336
369
  return message;
337
370
  }
338
371
  internalBinaryWrite(message: PageActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
339
- /* resources.wiki.PageUpdated updated = 1; */
372
+ /* resources.wiki.activity.PageUpdated updated = 1; */
340
373
  if (message.data.oneofKind === "updated")
341
374
  PageUpdated.internalBinaryWrite(message.data.updated, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
342
- /* resources.wiki.PageAccessUpdated access_updated = 2; */
375
+ /* resources.wiki.activity.PageAccessUpdated access_updated = 2; */
343
376
  if (message.data.oneofKind === "accessUpdated")
344
377
  PageAccessUpdated.internalBinaryWrite(message.data.accessUpdated, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
345
378
  let u = options.writeUnknownFields;
@@ -349,16 +382,20 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
349
382
  }
350
383
  }
351
384
  /**
352
- * @generated MessageType for protobuf message resources.wiki.PageActivityData
385
+ * @generated MessageType for protobuf message resources.wiki.activity.PageActivityData
353
386
  */
354
387
  export const PageActivityData = new PageActivityData$Type();
355
388
  // @generated message type with reflection information, may provide speed optimized methods
356
389
  class PageUpdated$Type extends MessageType<PageUpdated> {
357
390
  constructor() {
358
- super("resources.wiki.PageUpdated", [
391
+ super("resources.wiki.activity.PageUpdated", [
359
392
  { no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
393
+ { no: 5, name: "title_cdiff", kind: "message", T: () => ContentDiff },
360
394
  { no: 2, name: "description_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
361
- { no: 3, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
395
+ { no: 6, name: "description_cdiff", kind: "message", T: () => ContentDiff },
396
+ { no: 3, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
397
+ { no: 7, name: "content_cdiff", kind: "message", T: () => ContentDiff },
398
+ { no: 4, name: "files_change", kind: "message", T: () => PageFilesChange }
362
399
  ]);
363
400
  }
364
401
  create(value?: PartialMessage<PageUpdated>): PageUpdated {
@@ -375,12 +412,24 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
375
412
  case /* optional string title_diff */ 1:
376
413
  message.titleDiff = reader.string();
377
414
  break;
415
+ case /* optional resources.common.content.ContentDiff title_cdiff */ 5:
416
+ message.titleCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.titleCdiff);
417
+ break;
378
418
  case /* optional string description_diff */ 2:
379
419
  message.descriptionDiff = reader.string();
380
420
  break;
421
+ case /* optional resources.common.content.ContentDiff description_cdiff */ 6:
422
+ message.descriptionCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.descriptionCdiff);
423
+ break;
381
424
  case /* optional string content_diff */ 3:
382
425
  message.contentDiff = reader.string();
383
426
  break;
427
+ case /* optional resources.common.content.ContentDiff content_cdiff */ 7:
428
+ message.contentCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.contentCdiff);
429
+ break;
430
+ case /* optional resources.wiki.activity.PageFilesChange files_change */ 4:
431
+ message.filesChange = PageFilesChange.internalBinaryRead(reader, reader.uint32(), options, message.filesChange);
432
+ break;
384
433
  default:
385
434
  let u = options.readUnknownField;
386
435
  if (u === "throw")
@@ -402,6 +451,18 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
402
451
  /* optional string content_diff = 3; */
403
452
  if (message.contentDiff !== undefined)
404
453
  writer.tag(3, WireType.LengthDelimited).string(message.contentDiff);
454
+ /* optional resources.wiki.activity.PageFilesChange files_change = 4; */
455
+ if (message.filesChange)
456
+ PageFilesChange.internalBinaryWrite(message.filesChange, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
457
+ /* optional resources.common.content.ContentDiff title_cdiff = 5; */
458
+ if (message.titleCdiff)
459
+ ContentDiff.internalBinaryWrite(message.titleCdiff, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
460
+ /* optional resources.common.content.ContentDiff description_cdiff = 6; */
461
+ if (message.descriptionCdiff)
462
+ ContentDiff.internalBinaryWrite(message.descriptionCdiff, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
463
+ /* optional resources.common.content.ContentDiff content_cdiff = 7; */
464
+ if (message.contentCdiff)
465
+ ContentDiff.internalBinaryWrite(message.contentCdiff, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
405
466
  let u = options.writeUnknownFields;
406
467
  if (u !== false)
407
468
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -409,13 +470,68 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
409
470
  }
410
471
  }
411
472
  /**
412
- * @generated MessageType for protobuf message resources.wiki.PageUpdated
473
+ * @generated MessageType for protobuf message resources.wiki.activity.PageUpdated
413
474
  */
414
475
  export const PageUpdated = new PageUpdated$Type();
415
476
  // @generated message type with reflection information, may provide speed optimized methods
477
+ class PageFilesChange$Type extends MessageType<PageFilesChange> {
478
+ constructor() {
479
+ super("resources.wiki.activity.PageFilesChange", [
480
+ { no: 1, name: "added", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
481
+ { no: 2, name: "deleted", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
482
+ ]);
483
+ }
484
+ create(value?: PartialMessage<PageFilesChange>): PageFilesChange {
485
+ const message = globalThis.Object.create((this.messagePrototype!));
486
+ message.added = 0;
487
+ message.deleted = 0;
488
+ if (value !== undefined)
489
+ reflectionMergePartial<PageFilesChange>(this, message, value);
490
+ return message;
491
+ }
492
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageFilesChange): PageFilesChange {
493
+ let message = target ?? this.create(), end = reader.pos + length;
494
+ while (reader.pos < end) {
495
+ let [fieldNo, wireType] = reader.tag();
496
+ switch (fieldNo) {
497
+ case /* int64 added */ 1:
498
+ message.added = reader.int64().toNumber();
499
+ break;
500
+ case /* int64 deleted */ 2:
501
+ message.deleted = reader.int64().toNumber();
502
+ break;
503
+ default:
504
+ let u = options.readUnknownField;
505
+ if (u === "throw")
506
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
507
+ let d = reader.skip(wireType);
508
+ if (u !== false)
509
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
510
+ }
511
+ }
512
+ return message;
513
+ }
514
+ internalBinaryWrite(message: PageFilesChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
515
+ /* int64 added = 1; */
516
+ if (message.added !== 0)
517
+ writer.tag(1, WireType.Varint).int64(message.added);
518
+ /* int64 deleted = 2; */
519
+ if (message.deleted !== 0)
520
+ writer.tag(2, WireType.Varint).int64(message.deleted);
521
+ let u = options.writeUnknownFields;
522
+ if (u !== false)
523
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
524
+ return writer;
525
+ }
526
+ }
527
+ /**
528
+ * @generated MessageType for protobuf message resources.wiki.activity.PageFilesChange
529
+ */
530
+ export const PageFilesChange = new PageFilesChange$Type();
531
+ // @generated message type with reflection information, may provide speed optimized methods
416
532
  class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
417
533
  constructor() {
418
- super("resources.wiki.PageAccessUpdated", [
534
+ super("resources.wiki.activity.PageAccessUpdated", [
419
535
  { no: 1, name: "jobs", kind: "message", T: () => PageAccessJobsDiff },
420
536
  { no: 2, name: "users", kind: "message", T: () => PageAccessUsersDiff }
421
537
  ]);
@@ -431,10 +547,10 @@ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
431
547
  while (reader.pos < end) {
432
548
  let [fieldNo, wireType] = reader.tag();
433
549
  switch (fieldNo) {
434
- case /* resources.wiki.PageAccessJobsDiff jobs */ 1:
550
+ case /* resources.wiki.activity.PageAccessJobsDiff jobs */ 1:
435
551
  message.jobs = PageAccessJobsDiff.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
436
552
  break;
437
- case /* resources.wiki.PageAccessUsersDiff users */ 2:
553
+ case /* resources.wiki.activity.PageAccessUsersDiff users */ 2:
438
554
  message.users = PageAccessUsersDiff.internalBinaryRead(reader, reader.uint32(), options, message.users);
439
555
  break;
440
556
  default:
@@ -449,10 +565,10 @@ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
449
565
  return message;
450
566
  }
451
567
  internalBinaryWrite(message: PageAccessUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
452
- /* resources.wiki.PageAccessJobsDiff jobs = 1; */
568
+ /* resources.wiki.activity.PageAccessJobsDiff jobs = 1; */
453
569
  if (message.jobs)
454
570
  PageAccessJobsDiff.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
455
- /* resources.wiki.PageAccessUsersDiff users = 2; */
571
+ /* resources.wiki.activity.PageAccessUsersDiff users = 2; */
456
572
  if (message.users)
457
573
  PageAccessUsersDiff.internalBinaryWrite(message.users, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
458
574
  let u = options.writeUnknownFields;
@@ -462,16 +578,16 @@ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
462
578
  }
463
579
  }
464
580
  /**
465
- * @generated MessageType for protobuf message resources.wiki.PageAccessUpdated
581
+ * @generated MessageType for protobuf message resources.wiki.activity.PageAccessUpdated
466
582
  */
467
583
  export const PageAccessUpdated = new PageAccessUpdated$Type();
468
584
  // @generated message type with reflection information, may provide speed optimized methods
469
585
  class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
470
586
  constructor() {
471
- super("resources.wiki.PageAccessJobsDiff", [
472
- { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
473
- { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
474
- { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } }
587
+ super("resources.wiki.activity.PageAccessJobsDiff", [
588
+ { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
589
+ { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
590
+ { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
475
591
  ]);
476
592
  }
477
593
  create(value?: PartialMessage<PageAccessJobsDiff>): PageAccessJobsDiff {
@@ -488,13 +604,13 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
488
604
  while (reader.pos < end) {
489
605
  let [fieldNo, wireType] = reader.tag();
490
606
  switch (fieldNo) {
491
- case /* repeated resources.wiki.PageJobAccess to_create */ 1:
607
+ case /* repeated resources.wiki.access.PageJobAccess to_create */ 1:
492
608
  message.toCreate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
493
609
  break;
494
- case /* repeated resources.wiki.PageJobAccess to_update */ 2:
610
+ case /* repeated resources.wiki.access.PageJobAccess to_update */ 2:
495
611
  message.toUpdate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
496
612
  break;
497
- case /* repeated resources.wiki.PageJobAccess to_delete */ 3:
613
+ case /* repeated resources.wiki.access.PageJobAccess to_delete */ 3:
498
614
  message.toDelete.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
499
615
  break;
500
616
  default:
@@ -509,13 +625,13 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
509
625
  return message;
510
626
  }
511
627
  internalBinaryWrite(message: PageAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
512
- /* repeated resources.wiki.PageJobAccess to_create = 1; */
628
+ /* repeated resources.wiki.access.PageJobAccess to_create = 1; */
513
629
  for (let i = 0; i < message.toCreate.length; i++)
514
630
  PageJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
515
- /* repeated resources.wiki.PageJobAccess to_update = 2; */
631
+ /* repeated resources.wiki.access.PageJobAccess to_update = 2; */
516
632
  for (let i = 0; i < message.toUpdate.length; i++)
517
633
  PageJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
518
- /* repeated resources.wiki.PageJobAccess to_delete = 3; */
634
+ /* repeated resources.wiki.access.PageJobAccess to_delete = 3; */
519
635
  for (let i = 0; i < message.toDelete.length; i++)
520
636
  PageJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
521
637
  let u = options.writeUnknownFields;
@@ -525,16 +641,16 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
525
641
  }
526
642
  }
527
643
  /**
528
- * @generated MessageType for protobuf message resources.wiki.PageAccessJobsDiff
644
+ * @generated MessageType for protobuf message resources.wiki.activity.PageAccessJobsDiff
529
645
  */
530
646
  export const PageAccessJobsDiff = new PageAccessJobsDiff$Type();
531
647
  // @generated message type with reflection information, may provide speed optimized methods
532
648
  class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
533
649
  constructor() {
534
- super("resources.wiki.PageAccessUsersDiff", [
535
- { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
536
- { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
537
- { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } }
650
+ super("resources.wiki.activity.PageAccessUsersDiff", [
651
+ { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
652
+ { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
653
+ { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
538
654
  ]);
539
655
  }
540
656
  create(value?: PartialMessage<PageAccessUsersDiff>): PageAccessUsersDiff {
@@ -551,13 +667,13 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
551
667
  while (reader.pos < end) {
552
668
  let [fieldNo, wireType] = reader.tag();
553
669
  switch (fieldNo) {
554
- case /* repeated resources.wiki.PageUserAccess to_create */ 1:
670
+ case /* repeated resources.wiki.access.PageUserAccess to_create */ 1:
555
671
  message.toCreate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
556
672
  break;
557
- case /* repeated resources.wiki.PageUserAccess to_update */ 2:
673
+ case /* repeated resources.wiki.access.PageUserAccess to_update */ 2:
558
674
  message.toUpdate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
559
675
  break;
560
- case /* repeated resources.wiki.PageUserAccess to_delete */ 3:
676
+ case /* repeated resources.wiki.access.PageUserAccess to_delete */ 3:
561
677
  message.toDelete.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
562
678
  break;
563
679
  default:
@@ -572,13 +688,13 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
572
688
  return message;
573
689
  }
574
690
  internalBinaryWrite(message: PageAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
575
- /* repeated resources.wiki.PageUserAccess to_create = 1; */
691
+ /* repeated resources.wiki.access.PageUserAccess to_create = 1; */
576
692
  for (let i = 0; i < message.toCreate.length; i++)
577
693
  PageUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
578
- /* repeated resources.wiki.PageUserAccess to_update = 2; */
694
+ /* repeated resources.wiki.access.PageUserAccess to_update = 2; */
579
695
  for (let i = 0; i < message.toUpdate.length; i++)
580
696
  PageUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
581
- /* repeated resources.wiki.PageUserAccess to_delete = 3; */
697
+ /* repeated resources.wiki.access.PageUserAccess to_delete = 3; */
582
698
  for (let i = 0; i < message.toDelete.length; i++)
583
699
  PageUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
584
700
  let u = options.writeUnknownFields;
@@ -588,6 +704,6 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
588
704
  }
589
705
  }
590
706
  /**
591
- * @generated MessageType for protobuf message resources.wiki.PageAccessUsersDiff
707
+ * @generated MessageType for protobuf message resources.wiki.activity.PageAccessUsersDiff
592
708
  */
593
709
  export const PageAccessUsersDiff = new PageAccessUsersDiff$Type();