@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
package/perms.ts CHANGED
@@ -1,183 +1,109 @@
1
1
  // Code generated by protoc-gen-fronthelper. DO NOT EDIT.
2
- // source: resources/accounts/accounts.proto
3
- // source: resources/accounts/oauth2.proto
4
- // source: resources/audit/audit.proto
5
- // source: resources/calendar/access.proto
6
- // source: resources/calendar/calendar.proto
7
- // source: resources/centrum/attributes.proto
8
- // source: resources/centrum/dispatches.proto
9
- // source: resources/centrum/disponents.proto
10
- // source: resources/centrum/settings.proto
11
- // source: resources/centrum/units.proto
12
- // source: resources/centrum/units_access.proto
13
- // source: resources/centrum/user_unit.proto
14
- // source: resources/common/error.proto
15
- // source: resources/common/i18n.proto
16
- // source: resources/common/uuid.proto
17
- // source: resources/common/content/content.proto
18
- // source: resources/common/cron/cron.proto
19
- // source: resources/common/database/database.proto
20
- // source: resources/common/grpcws/grpcws.proto
21
- // source: resources/common/tests/objects.proto
22
- // source: resources/documents/access.proto
23
- // source: resources/documents/activity.proto
24
- // source: resources/documents/category.proto
25
- // source: resources/documents/comment.proto
26
- // source: resources/documents/documents.proto
27
- // source: resources/documents/requests.proto
28
- // source: resources/documents/templates.proto
29
- // source: resources/documents/workflow.proto
30
- // source: resources/filestore/file.proto
31
- // source: resources/internet/access.proto
32
- // source: resources/internet/ads.proto
33
- // source: resources/internet/domain.proto
34
- // source: resources/internet/page.proto
35
- // source: resources/internet/search.proto
36
- // source: resources/jobs/activity.proto
37
- // source: resources/jobs/colleagues.proto
38
- // source: resources/jobs/conduct.proto
39
- // source: resources/jobs/job_props.proto
40
- // source: resources/jobs/job_settings.proto
41
- // source: resources/jobs/jobs.proto
42
- // source: resources/jobs/labels.proto
43
- // source: resources/jobs/timeclock.proto
44
- // source: resources/laws/laws.proto
45
- // source: resources/livemap/livemap.proto
46
- // source: resources/livemap/tracker.proto
47
- // source: resources/mailer/access.proto
48
- // source: resources/mailer/email.proto
49
- // source: resources/mailer/events.proto
50
- // source: resources/mailer/message.proto
51
- // source: resources/mailer/settings.proto
52
- // source: resources/mailer/template.proto
53
- // source: resources/mailer/thread.proto
54
- // source: resources/notifications/events.proto
55
- // source: resources/notifications/notifications.proto
56
- // source: resources/permissions/attributes.proto
57
- // source: resources/permissions/permissions.proto
58
- // source: resources/qualifications/access.proto
59
- // source: resources/qualifications/exam.proto
60
- // source: resources/qualifications/qualifications.proto
61
- // source: resources/settings/banner.proto
62
- // source: resources/settings/config.proto
63
- // source: resources/stats/stats.proto
64
- // source: resources/sync/activity.proto
65
- // source: resources/sync/data.proto
66
- // source: resources/timestamp/timestamp.proto
67
- // source: resources/users/activity.proto
68
- // source: resources/users/labels.proto
69
- // source: resources/users/licenses.proto
70
- // source: resources/users/props.proto
71
- // source: resources/users/users.proto
72
- // source: resources/vehicles/vehicles.proto
73
- // source: resources/wiki/access.proto
74
- // source: resources/wiki/activity.proto
75
- // source: resources/wiki/page.proto
76
2
  // source: services/auth/auth.proto
77
3
  // source: services/calendar/calendar.proto
78
4
  // source: services/centrum/centrum.proto
79
5
  // source: services/citizens/citizens.proto
80
6
  // source: services/completor/completor.proto
7
+ // source: services/documents/collab.proto
81
8
  // source: services/documents/documents.proto
82
- // source: services/internet/ads.proto
83
- // source: services/internet/domain.proto
84
- // source: services/internet/internet.proto
9
+ // source: services/filestore/filestore.proto
85
10
  // source: services/jobs/conduct.proto
86
11
  // source: services/jobs/jobs.proto
87
12
  // source: services/jobs/timeclock.proto
88
13
  // source: services/livemap/livemap.proto
89
14
  // source: services/mailer/mailer.proto
90
- // source: services/notificator/notificator.proto
15
+ // source: services/notifications/notifications.proto
91
16
  // source: services/qualifications/qualifications.proto
92
17
  // source: services/settings/accounts.proto
93
18
  // source: services/settings/config.proto
94
19
  // source: services/settings/cron.proto
95
- // source: services/settings/filestore.proto
96
20
  // source: services/settings/laws.proto
97
21
  // source: services/settings/settings.proto
22
+ // source: services/settings/system.proto
98
23
  // source: services/stats/stats.proto
99
24
  // source: services/sync/sync.proto
100
25
  // source: services/vehicles/vehicles.proto
26
+ // source: services/wiki/collab.proto
101
27
  // source: services/wiki/wiki.proto
102
28
 
103
29
  export type Perms =
104
- | 'CanBeSuper'
105
- | 'Superuser'
106
- | 'TODOService.TODOMethod'
107
- | 'auth.AuthService.ChooseCharacter'
108
- | 'calendar.CalendarService.CreateCalendar'
109
- | 'centrum.CentrumService.CreateDispatch'
110
- | 'centrum.CentrumService.CreateOrUpdateUnit'
111
- | 'centrum.CentrumService.DeleteDispatch'
112
- | 'centrum.CentrumService.DeleteUnit'
113
- | 'centrum.CentrumService.Stream'
114
- | 'centrum.CentrumService.TakeControl'
115
- | 'centrum.CentrumService.TakeDispatch'
116
- | 'centrum.CentrumService.UpdateDispatch'
117
- | 'centrum.CentrumService.UpdateSettings'
118
- | 'citizens.CitizensService.GetUser'
119
- | 'citizens.CitizensService.ListCitizens'
120
- | 'citizens.CitizensService.ListUserActivity'
121
- | 'citizens.CitizensService.ManageLabels'
122
- | 'citizens.CitizensService.SetUserProps'
123
- | 'completor.CompletorService.CompleteCitizenLabels'
124
- | 'completor.CompletorService.CompleteCitizens'
125
- | 'completor.CompletorService.CompleteDocumentCategories'
126
- | 'documents.DocumentsService.AddDocumentReference'
127
- | 'documents.DocumentsService.AddDocumentRelation'
128
- | 'documents.DocumentsService.ChangeDocumentOwner'
129
- | 'documents.DocumentsService.CreateDocument'
130
- | 'documents.DocumentsService.CreateDocumentReq'
131
- | 'documents.DocumentsService.CreateOrUpdateCategory'
132
- | 'documents.DocumentsService.CreateTemplate'
133
- | 'documents.DocumentsService.DeleteCategory'
134
- | 'documents.DocumentsService.DeleteComment'
135
- | 'documents.DocumentsService.DeleteDocument'
136
- | 'documents.DocumentsService.DeleteDocumentReq'
137
- | 'documents.DocumentsService.DeleteTemplate'
138
- | 'documents.DocumentsService.ListCategories'
139
- | 'documents.DocumentsService.ListDocumentActivity'
140
- | 'documents.DocumentsService.ListDocumentReqs'
141
- | 'documents.DocumentsService.ListDocuments'
142
- | 'documents.DocumentsService.ListTemplates'
143
- | 'documents.DocumentsService.ListUserDocuments'
144
- | 'documents.DocumentsService.SetDocumentReminder'
145
- | 'documents.DocumentsService.ToggleDocument'
146
- | 'documents.DocumentsService.ToggleDocumentPin'
147
- | 'documents.DocumentsService.UpdateDocument'
148
- | 'jobs.ConductService.CreateConductEntry'
149
- | 'jobs.ConductService.DeleteConductEntry'
150
- | 'jobs.ConductService.ListConductEntries'
151
- | 'jobs.ConductService.UpdateConductEntry'
152
- | 'jobs.JobsService.GetColleague'
153
- | 'jobs.JobsService.ListColleagueActivity'
154
- | 'jobs.JobsService.ListColleagues'
155
- | 'jobs.JobsService.ManageLabels'
156
- | 'jobs.JobsService.SetColleagueProps'
157
- | 'jobs.JobsService.SetMOTD'
158
- | 'jobs.TimeclockService.ListInactiveEmployees'
159
- | 'jobs.TimeclockService.ListTimeclock'
160
- | 'livemap.LivemapService.CreateOrUpdateMarker'
161
- | 'livemap.LivemapService.DeleteMarker'
162
- | 'livemap.LivemapService.Stream'
163
- | 'mailer.MailerService.CreateOrUpdateEmail'
164
- | 'mailer.MailerService.DeleteEmail'
165
- | 'mailer.MailerService.ListEmails'
166
- | 'qualifications.QualificationsService.CreateQualification'
167
- | 'qualifications.QualificationsService.DeleteQualification'
168
- | 'qualifications.QualificationsService.ListQualifications'
169
- | 'qualifications.QualificationsService.UpdateQualification'
170
- | 'settings.LawsService.CreateOrUpdateLawBook'
171
- | 'settings.LawsService.DeleteLawBook'
172
- | 'settings.SettingsService.CreateRole'
173
- | 'settings.SettingsService.DeleteRole'
174
- | 'settings.SettingsService.GetJobProps'
175
- | 'settings.SettingsService.GetRoles'
176
- | 'settings.SettingsService.SetJobProps'
177
- | 'settings.SettingsService.UpdateRolePerms'
178
- | 'settings.SettingsService.ViewAuditLog'
179
- | 'vehicles.VehiclesService.ListVehicles'
180
- | 'wiki.WikiService.CreatePage'
181
- | 'wiki.WikiService.DeletePage'
182
- | 'wiki.WikiService.ListPageActivity'
183
- | 'wiki.WikiService.ListPages';
30
+ | 'Superuser/CanBeSuperuser'
31
+ | 'Superuser/Superuser'
32
+ | 'TODOService/TODOMethod'
33
+ | 'auth.AuthService/ChooseCharacter'
34
+ | 'calendar.CalendarService/CreateCalendar'
35
+ | 'centrum.CentrumService/CreateDispatch'
36
+ | 'centrum.CentrumService/CreateOrUpdateUnit'
37
+ | 'centrum.CentrumService/DeleteDispatch'
38
+ | 'centrum.CentrumService/DeleteUnit'
39
+ | 'centrum.CentrumService/Stream'
40
+ | 'centrum.CentrumService/TakeControl'
41
+ | 'centrum.CentrumService/TakeDispatch'
42
+ | 'centrum.CentrumService/UpdateDispatch'
43
+ | 'centrum.CentrumService/UpdateDispatchers'
44
+ | 'centrum.CentrumService/UpdateSettings'
45
+ | 'citizens.CitizensService/GetUser'
46
+ | 'citizens.CitizensService/ListCitizens'
47
+ | 'citizens.CitizensService/ListUserActivity'
48
+ | 'citizens.CitizensService/ManageLabels'
49
+ | 'citizens.CitizensService/SetUserProps'
50
+ | 'completor.CompletorService/CompleteCitizenLabels'
51
+ | 'completor.CompletorService/CompleteCitizens'
52
+ | 'completor.CompletorService/CompleteDocumentCategories'
53
+ | 'documents.DocumentsService/AddDocumentReference'
54
+ | 'documents.DocumentsService/AddDocumentRelation'
55
+ | 'documents.DocumentsService/ChangeDocumentOwner'
56
+ | 'documents.DocumentsService/CreateDocumentReq'
57
+ | 'documents.DocumentsService/CreateOrUpdateCategory'
58
+ | 'documents.DocumentsService/CreateTemplate'
59
+ | 'documents.DocumentsService/DeleteCategory'
60
+ | 'documents.DocumentsService/DeleteComment'
61
+ | 'documents.DocumentsService/DeleteDocument'
62
+ | 'documents.DocumentsService/DeleteDocumentReq'
63
+ | 'documents.DocumentsService/DeleteTemplate'
64
+ | 'documents.DocumentsService/ListCategories'
65
+ | 'documents.DocumentsService/ListDocumentActivity'
66
+ | 'documents.DocumentsService/ListDocumentReqs'
67
+ | 'documents.DocumentsService/ListDocuments'
68
+ | 'documents.DocumentsService/ListTemplates'
69
+ | 'documents.DocumentsService/ListUserDocuments'
70
+ | 'documents.DocumentsService/SetDocumentReminder'
71
+ | 'documents.DocumentsService/ToggleDocument'
72
+ | 'documents.DocumentsService/ToggleDocumentPin'
73
+ | 'documents.DocumentsService/UpdateDocument'
74
+ | 'jobs.ConductService/CreateConductEntry'
75
+ | 'jobs.ConductService/DeleteConductEntry'
76
+ | 'jobs.ConductService/ListConductEntries'
77
+ | 'jobs.ConductService/UpdateConductEntry'
78
+ | 'jobs.JobsService/GetColleague'
79
+ | 'jobs.JobsService/ListColleagueActivity'
80
+ | 'jobs.JobsService/ListColleagues'
81
+ | 'jobs.JobsService/ManageLabels'
82
+ | 'jobs.JobsService/SetColleagueProps'
83
+ | 'jobs.JobsService/SetMOTD'
84
+ | 'jobs.TimeclockService/ListInactiveEmployees'
85
+ | 'jobs.TimeclockService/ListTimeclock'
86
+ | 'livemap.LivemapService/CreateOrUpdateMarker'
87
+ | 'livemap.LivemapService/DeleteMarker'
88
+ | 'livemap.LivemapService/Stream'
89
+ | 'mailer.MailerService/CreateOrUpdateEmail'
90
+ | 'mailer.MailerService/DeleteEmail'
91
+ | 'mailer.MailerService/ListEmails'
92
+ | 'qualifications.QualificationsService/DeleteQualification'
93
+ | 'qualifications.QualificationsService/ListQualifications'
94
+ | 'qualifications.QualificationsService/UpdateQualification'
95
+ | 'settings.LawsService/CreateOrUpdateLawBook'
96
+ | 'settings.LawsService/DeleteLawBook'
97
+ | 'settings.SettingsService/CreateRole'
98
+ | 'settings.SettingsService/DeleteRole'
99
+ | 'settings.SettingsService/GetJobProps'
100
+ | 'settings.SettingsService/GetRoles'
101
+ | 'settings.SettingsService/SetJobProps'
102
+ | 'settings.SettingsService/UpdateRolePerms'
103
+ | 'settings.SettingsService/ViewAuditLog'
104
+ | 'vehicles.VehiclesService/ListVehicles'
105
+ | 'vehicles.VehiclesService/SetVehicleProps'
106
+ | 'wiki.WikiService/DeletePage'
107
+ | 'wiki.WikiService/ListPageActivity'
108
+ | 'wiki.WikiService/ListPages'
109
+ | 'wiki.WikiService/UpdatePage';
@@ -1,5 +1,6 @@
1
- // @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
2
  // @generated from protobuf file "resources/accounts/accounts.proto" (package "resources.accounts", 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";
@@ -18,67 +19,67 @@ import { Timestamp } from "../timestamp/timestamp";
18
19
  */
19
20
  export interface Account {
20
21
  /**
21
- * @generated from protobuf field: uint64 id = 1;
22
+ * @generated from protobuf field: int64 id = 1
22
23
  */
23
- id: number; // @gotags: sql:"primary_key"
24
+ id: number;
24
25
  /**
25
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
26
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
26
27
  */
27
28
  createdAt?: Timestamp;
28
29
  /**
29
- * @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
30
+ * @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
30
31
  */
31
32
  updatedAt?: Timestamp;
32
33
  /**
33
- * @generated from protobuf field: string username = 4;
34
+ * @generated from protobuf field: string username = 4
34
35
  */
35
36
  username: string;
36
37
  /**
37
- * @generated from protobuf field: string license = 5;
38
+ * @generated from protobuf field: string license = 5
38
39
  */
39
40
  license: string;
40
41
  /**
41
- * @generated from protobuf field: bool enabled = 6;
42
+ * @generated from protobuf field: bool enabled = 6
42
43
  */
43
44
  enabled: boolean;
44
45
  /**
45
- * @generated from protobuf field: optional int32 last_char = 7;
46
+ * @generated from protobuf field: optional int32 last_char = 7
46
47
  */
47
48
  lastChar?: number;
48
49
  /**
49
- * @generated from protobuf field: repeated resources.accounts.OAuth2Account oauth2_accounts = 8;
50
+ * @generated from protobuf field: repeated resources.accounts.OAuth2Account oauth2_accounts = 8
50
51
  */
51
- oauth2Accounts: OAuth2Account[]; // @gotags: alias:"oauth2_account"
52
+ oauth2Accounts: OAuth2Account[];
52
53
  }
53
54
  /**
54
55
  * @generated from protobuf message resources.accounts.Character
55
56
  */
56
57
  export interface Character {
57
58
  /**
58
- * @generated from protobuf field: bool available = 1;
59
+ * @generated from protobuf field: bool available = 1
59
60
  */
60
61
  available: boolean;
61
62
  /**
62
- * @generated from protobuf field: string group = 2;
63
+ * @generated from protobuf field: string group = 2
63
64
  */
64
65
  group: string;
65
66
  /**
66
- * @generated from protobuf field: resources.users.User char = 3;
67
+ * @generated from protobuf field: resources.users.User char = 3
67
68
  */
68
- char?: User; // @gotags: alias:"user"
69
+ char?: User;
69
70
  }
70
71
  // @generated message type with reflection information, may provide speed optimized methods
71
72
  class Account$Type extends MessageType<Account> {
72
73
  constructor() {
73
74
  super("resources.accounts.Account", [
74
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
75
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\"" } },
75
76
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
76
77
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
77
- { no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "24" } } } },
78
- { no: 5, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
78
+ { no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } } } },
79
+ { no: 5, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
79
80
  { no: 6, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
80
- { no: 7, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
81
- { no: 8, name: "oauth2_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account, options: { "validate.rules": { repeated: { maxItems: "10" } } } }
81
+ { no: 7, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
82
+ { no: 8, name: "oauth2_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account, options: { "buf.validate.field": { repeated: { maxItems: "10" } }, "tagger.tags": "alias:\"oauth2_account\"" } }
82
83
  ]);
83
84
  }
84
85
  create(value?: PartialMessage<Account>): Account {
@@ -97,8 +98,8 @@ class Account$Type extends MessageType<Account> {
97
98
  while (reader.pos < end) {
98
99
  let [fieldNo, wireType] = reader.tag();
99
100
  switch (fieldNo) {
100
- case /* uint64 id */ 1:
101
- message.id = reader.uint64().toNumber();
101
+ case /* int64 id */ 1:
102
+ message.id = reader.int64().toNumber();
102
103
  break;
103
104
  case /* optional resources.timestamp.Timestamp created_at */ 2:
104
105
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -133,9 +134,9 @@ class Account$Type extends MessageType<Account> {
133
134
  return message;
134
135
  }
135
136
  internalBinaryWrite(message: Account, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
136
- /* uint64 id = 1; */
137
+ /* int64 id = 1; */
137
138
  if (message.id !== 0)
138
- writer.tag(1, WireType.Varint).uint64(message.id);
139
+ writer.tag(1, WireType.Varint).int64(message.id);
139
140
  /* optional resources.timestamp.Timestamp created_at = 2; */
140
141
  if (message.createdAt)
141
142
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -173,7 +174,7 @@ class Character$Type extends MessageType<Character> {
173
174
  super("resources.accounts.Character", [
174
175
  { no: 1, name: "available", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
175
176
  { no: 2, name: "group", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
176
- { no: 3, name: "char", kind: "message", T: () => User }
177
+ { no: 3, name: "char", kind: "message", T: () => User, options: { "tagger.tags": "alias:\"user\"" } }
177
178
  ]);
178
179
  }
179
180
  create(value?: PartialMessage<Character>): Character {
@@ -1,5 +1,6 @@
1
- // @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
2
  // @generated from protobuf file "resources/accounts/oauth2.proto" (package "resources.accounts", 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";
@@ -16,52 +17,52 @@ import { Timestamp } from "../timestamp/timestamp";
16
17
  */
17
18
  export interface OAuth2Account {
18
19
  /**
19
- * @generated from protobuf field: uint64 account_id = 1;
20
+ * @generated from protobuf field: int64 account_id = 1
20
21
  */
21
22
  accountId: number;
22
23
  /**
23
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
24
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
24
25
  */
25
26
  createdAt?: Timestamp;
26
27
  /**
27
- * @generated from protobuf field: string provider_name = 3;
28
+ * @generated from protobuf field: string provider_name = 3
28
29
  */
29
- providerName: string; // @gotags: sql:"primary_key" alias:"provider_name"
30
+ providerName: string;
30
31
  /**
31
- * @generated from protobuf field: resources.accounts.OAuth2Provider provider = 4;
32
+ * @generated from protobuf field: resources.accounts.OAuth2Provider provider = 4
32
33
  */
33
34
  provider?: OAuth2Provider;
34
35
  /**
35
- * @generated from protobuf field: string external_id = 5;
36
+ * @generated from protobuf field: string external_id = 5
36
37
  */
37
38
  externalId: string;
38
39
  /**
39
- * @generated from protobuf field: string username = 6;
40
+ * @generated from protobuf field: string username = 6
40
41
  */
41
42
  username: string;
42
43
  /**
43
- * @generated from protobuf field: string avatar = 7;
44
+ * @generated from protobuf field: string profile_picture = 7
44
45
  */
45
- avatar: string;
46
+ profilePicture: string;
46
47
  }
47
48
  /**
48
49
  * @generated from protobuf message resources.accounts.OAuth2Provider
49
50
  */
50
51
  export interface OAuth2Provider {
51
52
  /**
52
- * @generated from protobuf field: string name = 1;
53
+ * @generated from protobuf field: string name = 1
53
54
  */
54
55
  name: string;
55
56
  /**
56
- * @generated from protobuf field: string label = 2;
57
+ * @generated from protobuf field: string label = 2
57
58
  */
58
59
  label: string;
59
60
  /**
60
- * @generated from protobuf field: string homepage = 3;
61
+ * @generated from protobuf field: string homepage = 3
61
62
  */
62
63
  homepage: string;
63
64
  /**
64
- * @generated from protobuf field: optional string icon = 4;
65
+ * @generated from protobuf field: optional string icon = 4
65
66
  */
66
67
  icon?: string;
67
68
  }
@@ -69,13 +70,13 @@ export interface OAuth2Provider {
69
70
  class OAuth2Account$Type extends MessageType<OAuth2Account> {
70
71
  constructor() {
71
72
  super("resources.accounts.OAuth2Account", [
72
- { no: 1, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
73
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
73
74
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
74
- { no: 3, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
75
+ { no: 3, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "tagger.tags": "sql:\"primary_key\" alias:\"provider_name\"" } },
75
76
  { no: 4, name: "provider", kind: "message", T: () => OAuth2Provider },
76
- { no: 5, name: "external_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
77
- { no: 6, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
78
- { no: 7, name: "avatar", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } }
77
+ { no: 5, name: "external_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
78
+ { no: 6, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
79
+ { no: 7, name: "profile_picture", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } }
79
80
  ]);
80
81
  }
81
82
  create(value?: PartialMessage<OAuth2Account>): OAuth2Account {
@@ -84,7 +85,7 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
84
85
  message.providerName = "";
85
86
  message.externalId = "";
86
87
  message.username = "";
87
- message.avatar = "";
88
+ message.profilePicture = "";
88
89
  if (value !== undefined)
89
90
  reflectionMergePartial<OAuth2Account>(this, message, value);
90
91
  return message;
@@ -94,8 +95,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
94
95
  while (reader.pos < end) {
95
96
  let [fieldNo, wireType] = reader.tag();
96
97
  switch (fieldNo) {
97
- case /* uint64 account_id */ 1:
98
- message.accountId = reader.uint64().toNumber();
98
+ case /* int64 account_id */ 1:
99
+ message.accountId = reader.int64().toNumber();
99
100
  break;
100
101
  case /* optional resources.timestamp.Timestamp created_at */ 2:
101
102
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -112,8 +113,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
112
113
  case /* string username */ 6:
113
114
  message.username = reader.string();
114
115
  break;
115
- case /* string avatar */ 7:
116
- message.avatar = reader.string();
116
+ case /* string profile_picture */ 7:
117
+ message.profilePicture = reader.string();
117
118
  break;
118
119
  default:
119
120
  let u = options.readUnknownField;
@@ -127,9 +128,9 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
127
128
  return message;
128
129
  }
129
130
  internalBinaryWrite(message: OAuth2Account, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
130
- /* uint64 account_id = 1; */
131
+ /* int64 account_id = 1; */
131
132
  if (message.accountId !== 0)
132
- writer.tag(1, WireType.Varint).uint64(message.accountId);
133
+ writer.tag(1, WireType.Varint).int64(message.accountId);
133
134
  /* optional resources.timestamp.Timestamp created_at = 2; */
134
135
  if (message.createdAt)
135
136
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -145,9 +146,9 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
145
146
  /* string username = 6; */
146
147
  if (message.username !== "")
147
148
  writer.tag(6, WireType.LengthDelimited).string(message.username);
148
- /* string avatar = 7; */
149
- if (message.avatar !== "")
150
- writer.tag(7, WireType.LengthDelimited).string(message.avatar);
149
+ /* string profile_picture = 7; */
150
+ if (message.profilePicture !== "")
151
+ writer.tag(7, WireType.LengthDelimited).string(message.profilePicture);
151
152
  let u = options.writeUnknownFields;
152
153
  if (u !== false)
153
154
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);