@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,9 +1,13 @@
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/documents/documents.proto" (package "services.documents", syntax proto3)
3
+ // tslint:disable
3
4
  // @ts-nocheck
4
5
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
6
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
7
  import { DocumentsService } from "./documents";
8
+ import type { UploadFileResponse } from "../../resources/file/filestore";
9
+ import type { UploadFileRequest } from "../../resources/file/filestore";
10
+ import type { ClientStreamingCall } from "@protobuf-ts/runtime-rpc";
7
11
  import type { SetDocumentReminderResponse } from "./documents";
8
12
  import type { SetDocumentReminderRequest } from "./documents";
9
13
  import type { ToggleDocumentPinResponse } from "./documents";
@@ -84,221 +88,153 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
84
88
  */
85
89
  export interface IDocumentsServiceClient {
86
90
  /**
87
- * @perm
88
- *
89
- * @generated from protobuf rpc: ListTemplates(services.documents.ListTemplatesRequest) returns (services.documents.ListTemplatesResponse);
91
+ * @generated from protobuf rpc: ListTemplates
90
92
  */
91
93
  listTemplates(input: ListTemplatesRequest, options?: RpcOptions): UnaryCall<ListTemplatesRequest, ListTemplatesResponse>;
92
94
  /**
93
- * @perm: Name=ListTemplates
94
- *
95
- * @generated from protobuf rpc: GetTemplate(services.documents.GetTemplateRequest) returns (services.documents.GetTemplateResponse);
95
+ * @generated from protobuf rpc: GetTemplate
96
96
  */
97
97
  getTemplate(input: GetTemplateRequest, options?: RpcOptions): UnaryCall<GetTemplateRequest, GetTemplateResponse>;
98
98
  /**
99
- * @perm
100
- *
101
- * @generated from protobuf rpc: CreateTemplate(services.documents.CreateTemplateRequest) returns (services.documents.CreateTemplateResponse);
99
+ * @generated from protobuf rpc: CreateTemplate
102
100
  */
103
101
  createTemplate(input: CreateTemplateRequest, options?: RpcOptions): UnaryCall<CreateTemplateRequest, CreateTemplateResponse>;
104
102
  /**
105
- * @perm: Name=CreateTemplate
106
- *
107
- * @generated from protobuf rpc: UpdateTemplate(services.documents.UpdateTemplateRequest) returns (services.documents.UpdateTemplateResponse);
103
+ * @generated from protobuf rpc: UpdateTemplate
108
104
  */
109
105
  updateTemplate(input: UpdateTemplateRequest, options?: RpcOptions): UnaryCall<UpdateTemplateRequest, UpdateTemplateResponse>;
110
106
  /**
111
- * @perm
112
- *
113
- * @generated from protobuf rpc: DeleteTemplate(services.documents.DeleteTemplateRequest) returns (services.documents.DeleteTemplateResponse);
107
+ * @generated from protobuf rpc: DeleteTemplate
114
108
  */
115
109
  deleteTemplate(input: DeleteTemplateRequest, options?: RpcOptions): UnaryCall<DeleteTemplateRequest, DeleteTemplateResponse>;
116
110
  /**
117
- * @perm
118
- *
119
- * @generated from protobuf rpc: ListDocuments(services.documents.ListDocumentsRequest) returns (services.documents.ListDocumentsResponse);
111
+ * @generated from protobuf rpc: ListDocuments
120
112
  */
121
113
  listDocuments(input: ListDocumentsRequest, options?: RpcOptions): UnaryCall<ListDocumentsRequest, ListDocumentsResponse>;
122
114
  /**
123
- * @perm: Name=ListDocuments
124
- *
125
- * @generated from protobuf rpc: GetDocument(services.documents.GetDocumentRequest) returns (services.documents.GetDocumentResponse);
115
+ * @generated from protobuf rpc: GetDocument
126
116
  */
127
117
  getDocument(input: GetDocumentRequest, options?: RpcOptions): UnaryCall<GetDocumentRequest, GetDocumentResponse>;
128
118
  /**
129
- * @perm
130
- *
131
- * @generated from protobuf rpc: CreateDocument(services.documents.CreateDocumentRequest) returns (services.documents.CreateDocumentResponse);
119
+ * @generated from protobuf rpc: CreateDocument
132
120
  */
133
121
  createDocument(input: CreateDocumentRequest, options?: RpcOptions): UnaryCall<CreateDocumentRequest, CreateDocumentResponse>;
134
122
  /**
135
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
136
- *
137
- * @generated from protobuf rpc: UpdateDocument(services.documents.UpdateDocumentRequest) returns (services.documents.UpdateDocumentResponse);
123
+ * @generated from protobuf rpc: UpdateDocument
138
124
  */
139
125
  updateDocument(input: UpdateDocumentRequest, options?: RpcOptions): UnaryCall<UpdateDocumentRequest, UpdateDocumentResponse>;
140
126
  /**
141
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
142
- *
143
- * @generated from protobuf rpc: DeleteDocument(services.documents.DeleteDocumentRequest) returns (services.documents.DeleteDocumentResponse);
127
+ * @generated from protobuf rpc: DeleteDocument
144
128
  */
145
129
  deleteDocument(input: DeleteDocumentRequest, options?: RpcOptions): UnaryCall<DeleteDocumentRequest, DeleteDocumentResponse>;
146
130
  /**
147
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
148
- *
149
- * @generated from protobuf rpc: ToggleDocument(services.documents.ToggleDocumentRequest) returns (services.documents.ToggleDocumentResponse);
131
+ * @generated from protobuf rpc: ToggleDocument
150
132
  */
151
133
  toggleDocument(input: ToggleDocumentRequest, options?: RpcOptions): UnaryCall<ToggleDocumentRequest, ToggleDocumentResponse>;
152
134
  /**
153
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
154
- *
155
- * @generated from protobuf rpc: ChangeDocumentOwner(services.documents.ChangeDocumentOwnerRequest) returns (services.documents.ChangeDocumentOwnerResponse);
135
+ * @generated from protobuf rpc: ChangeDocumentOwner
156
136
  */
157
137
  changeDocumentOwner(input: ChangeDocumentOwnerRequest, options?: RpcOptions): UnaryCall<ChangeDocumentOwnerRequest, ChangeDocumentOwnerResponse>;
158
138
  /**
159
- * @perm: Name=ListDocuments
160
- *
161
- * @generated from protobuf rpc: GetDocumentReferences(services.documents.GetDocumentReferencesRequest) returns (services.documents.GetDocumentReferencesResponse);
139
+ * @generated from protobuf rpc: GetDocumentReferences
162
140
  */
163
141
  getDocumentReferences(input: GetDocumentReferencesRequest, options?: RpcOptions): UnaryCall<GetDocumentReferencesRequest, GetDocumentReferencesResponse>;
164
142
  /**
165
- * @perm: Name=ListDocuments
166
- *
167
- * @generated from protobuf rpc: GetDocumentRelations(services.documents.GetDocumentRelationsRequest) returns (services.documents.GetDocumentRelationsResponse);
143
+ * @generated from protobuf rpc: GetDocumentRelations
168
144
  */
169
145
  getDocumentRelations(input: GetDocumentRelationsRequest, options?: RpcOptions): UnaryCall<GetDocumentRelationsRequest, GetDocumentRelationsResponse>;
170
146
  /**
171
- * @perm
172
- *
173
- * @generated from protobuf rpc: AddDocumentReference(services.documents.AddDocumentReferenceRequest) returns (services.documents.AddDocumentReferenceResponse);
147
+ * @generated from protobuf rpc: AddDocumentReference
174
148
  */
175
149
  addDocumentReference(input: AddDocumentReferenceRequest, options?: RpcOptions): UnaryCall<AddDocumentReferenceRequest, AddDocumentReferenceResponse>;
176
150
  /**
177
- * @perm: Name=AddDocumentReference
178
- *
179
- * @generated from protobuf rpc: RemoveDocumentReference(services.documents.RemoveDocumentReferenceRequest) returns (services.documents.RemoveDocumentReferenceResponse);
151
+ * @generated from protobuf rpc: RemoveDocumentReference
180
152
  */
181
153
  removeDocumentReference(input: RemoveDocumentReferenceRequest, options?: RpcOptions): UnaryCall<RemoveDocumentReferenceRequest, RemoveDocumentReferenceResponse>;
182
154
  /**
183
- * @perm
184
- *
185
- * @generated from protobuf rpc: AddDocumentRelation(services.documents.AddDocumentRelationRequest) returns (services.documents.AddDocumentRelationResponse);
155
+ * @generated from protobuf rpc: AddDocumentRelation
186
156
  */
187
157
  addDocumentRelation(input: AddDocumentRelationRequest, options?: RpcOptions): UnaryCall<AddDocumentRelationRequest, AddDocumentRelationResponse>;
188
158
  /**
189
- * @perm: Name=AddDocumentRelation
190
- *
191
- * @generated from protobuf rpc: RemoveDocumentRelation(services.documents.RemoveDocumentRelationRequest) returns (services.documents.RemoveDocumentRelationResponse);
159
+ * @generated from protobuf rpc: RemoveDocumentRelation
192
160
  */
193
161
  removeDocumentRelation(input: RemoveDocumentRelationRequest, options?: RpcOptions): UnaryCall<RemoveDocumentRelationRequest, RemoveDocumentRelationResponse>;
194
162
  /**
195
- * @perm: Name=ListDocuments
196
- *
197
- * @generated from protobuf rpc: GetComments(services.documents.GetCommentsRequest) returns (services.documents.GetCommentsResponse);
163
+ * @generated from protobuf rpc: GetComments
198
164
  */
199
165
  getComments(input: GetCommentsRequest, options?: RpcOptions): UnaryCall<GetCommentsRequest, GetCommentsResponse>;
200
166
  /**
201
- * @perm: Name=ListDocuments
202
- *
203
- * @generated from protobuf rpc: PostComment(services.documents.PostCommentRequest) returns (services.documents.PostCommentResponse);
167
+ * @generated from protobuf rpc: PostComment
204
168
  */
205
169
  postComment(input: PostCommentRequest, options?: RpcOptions): UnaryCall<PostCommentRequest, PostCommentResponse>;
206
170
  /**
207
- * @perm: Name=ListDocuments
208
- *
209
- * @generated from protobuf rpc: EditComment(services.documents.EditCommentRequest) returns (services.documents.EditCommentResponse);
171
+ * @generated from protobuf rpc: EditComment
210
172
  */
211
173
  editComment(input: EditCommentRequest, options?: RpcOptions): UnaryCall<EditCommentRequest, EditCommentResponse>;
212
174
  /**
213
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
214
- *
215
- * @generated from protobuf rpc: DeleteComment(services.documents.DeleteCommentRequest) returns (services.documents.DeleteCommentResponse);
175
+ * @generated from protobuf rpc: DeleteComment
216
176
  */
217
177
  deleteComment(input: DeleteCommentRequest, options?: RpcOptions): UnaryCall<DeleteCommentRequest, DeleteCommentResponse>;
218
178
  /**
219
- * @perm: Name=ListDocuments
220
- *
221
- * @generated from protobuf rpc: GetDocumentAccess(services.documents.GetDocumentAccessRequest) returns (services.documents.GetDocumentAccessResponse);
179
+ * @generated from protobuf rpc: GetDocumentAccess
222
180
  */
223
181
  getDocumentAccess(input: GetDocumentAccessRequest, options?: RpcOptions): UnaryCall<GetDocumentAccessRequest, GetDocumentAccessResponse>;
224
182
  /**
225
- * @perm: Name=CreateDocument
226
- *
227
- * @generated from protobuf rpc: SetDocumentAccess(services.documents.SetDocumentAccessRequest) returns (services.documents.SetDocumentAccessResponse);
183
+ * @generated from protobuf rpc: SetDocumentAccess
228
184
  */
229
185
  setDocumentAccess(input: SetDocumentAccessRequest, options?: RpcOptions): UnaryCall<SetDocumentAccessRequest, SetDocumentAccessResponse>;
230
186
  /**
231
- * @perm
232
- *
233
- * @generated from protobuf rpc: ListDocumentActivity(services.documents.ListDocumentActivityRequest) returns (services.documents.ListDocumentActivityResponse);
187
+ * @generated from protobuf rpc: ListDocumentActivity
234
188
  */
235
189
  listDocumentActivity(input: ListDocumentActivityRequest, options?: RpcOptions): UnaryCall<ListDocumentActivityRequest, ListDocumentActivityResponse>;
236
190
  /**
237
- * @perm
238
- *
239
- * @generated from protobuf rpc: ListDocumentReqs(services.documents.ListDocumentReqsRequest) returns (services.documents.ListDocumentReqsResponse);
191
+ * @generated from protobuf rpc: ListDocumentReqs
240
192
  */
241
193
  listDocumentReqs(input: ListDocumentReqsRequest, options?: RpcOptions): UnaryCall<ListDocumentReqsRequest, ListDocumentReqsResponse>;
242
194
  /**
243
- * @perm: Attrs=Types/StringList:[]string{"Access", "Closure", "Update", "Deletion", "OwnerChange"}
244
- *
245
- * @generated from protobuf rpc: CreateDocumentReq(services.documents.CreateDocumentReqRequest) returns (services.documents.CreateDocumentReqResponse);
195
+ * @generated from protobuf rpc: CreateDocumentReq
246
196
  */
247
197
  createDocumentReq(input: CreateDocumentReqRequest, options?: RpcOptions): UnaryCall<CreateDocumentReqRequest, CreateDocumentReqResponse>;
248
198
  /**
249
- * @perm: Name=CreateDocumentReq
250
- *
251
- * @generated from protobuf rpc: UpdateDocumentReq(services.documents.UpdateDocumentReqRequest) returns (services.documents.UpdateDocumentReqResponse);
199
+ * @generated from protobuf rpc: UpdateDocumentReq
252
200
  */
253
201
  updateDocumentReq(input: UpdateDocumentReqRequest, options?: RpcOptions): UnaryCall<UpdateDocumentReqRequest, UpdateDocumentReqResponse>;
254
202
  /**
255
- * @perm
256
- *
257
- * @generated from protobuf rpc: DeleteDocumentReq(services.documents.DeleteDocumentReqRequest) returns (services.documents.DeleteDocumentReqResponse);
203
+ * @generated from protobuf rpc: DeleteDocumentReq
258
204
  */
259
205
  deleteDocumentReq(input: DeleteDocumentReqRequest, options?: RpcOptions): UnaryCall<DeleteDocumentReqRequest, DeleteDocumentReqResponse>;
260
206
  /**
261
- * @perm
262
- *
263
- * @generated from protobuf rpc: ListUserDocuments(services.documents.ListUserDocumentsRequest) returns (services.documents.ListUserDocumentsResponse);
207
+ * @generated from protobuf rpc: ListUserDocuments
264
208
  */
265
209
  listUserDocuments(input: ListUserDocumentsRequest, options?: RpcOptions): UnaryCall<ListUserDocumentsRequest, ListUserDocumentsResponse>;
266
210
  /**
267
- * @perm
268
- *
269
- * @generated from protobuf rpc: ListCategories(services.documents.ListCategoriesRequest) returns (services.documents.ListCategoriesResponse);
211
+ * @generated from protobuf rpc: ListCategories
270
212
  */
271
213
  listCategories(input: ListCategoriesRequest, options?: RpcOptions): UnaryCall<ListCategoriesRequest, ListCategoriesResponse>;
272
214
  /**
273
- * @perm
274
- *
275
- * @generated from protobuf rpc: CreateOrUpdateCategory(services.documents.CreateOrUpdateCategoryRequest) returns (services.documents.CreateOrUpdateCategoryResponse);
215
+ * @generated from protobuf rpc: CreateOrUpdateCategory
276
216
  */
277
217
  createOrUpdateCategory(input: CreateOrUpdateCategoryRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateCategoryRequest, CreateOrUpdateCategoryResponse>;
278
218
  /**
279
- * @perm
280
- *
281
- * @generated from protobuf rpc: DeleteCategory(services.documents.DeleteCategoryRequest) returns (services.documents.DeleteCategoryResponse);
219
+ * @generated from protobuf rpc: DeleteCategory
282
220
  */
283
221
  deleteCategory(input: DeleteCategoryRequest, options?: RpcOptions): UnaryCall<DeleteCategoryRequest, DeleteCategoryResponse>;
284
222
  /**
285
- * @perm: Name=ListDocuments
286
- *
287
- * @generated from protobuf rpc: ListDocumentPins(services.documents.ListDocumentPinsRequest) returns (services.documents.ListDocumentPinsResponse);
223
+ * @generated from protobuf rpc: ListDocumentPins
288
224
  */
289
225
  listDocumentPins(input: ListDocumentPinsRequest, options?: RpcOptions): UnaryCall<ListDocumentPinsRequest, ListDocumentPinsResponse>;
290
226
  /**
291
- * @perm
292
- *
293
- * @generated from protobuf rpc: ToggleDocumentPin(services.documents.ToggleDocumentPinRequest) returns (services.documents.ToggleDocumentPinResponse);
227
+ * @generated from protobuf rpc: ToggleDocumentPin
294
228
  */
295
229
  toggleDocumentPin(input: ToggleDocumentPinRequest, options?: RpcOptions): UnaryCall<ToggleDocumentPinRequest, ToggleDocumentPinResponse>;
296
230
  /**
297
- * @perm
298
- *
299
- * @generated from protobuf rpc: SetDocumentReminder(services.documents.SetDocumentReminderRequest) returns (services.documents.SetDocumentReminderResponse);
231
+ * @generated from protobuf rpc: SetDocumentReminder
300
232
  */
301
233
  setDocumentReminder(input: SetDocumentReminderRequest, options?: RpcOptions): UnaryCall<SetDocumentReminderRequest, SetDocumentReminderResponse>;
234
+ /**
235
+ * @generated from protobuf rpc: UploadFile
236
+ */
237
+ uploadFile(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse>;
302
238
  }
303
239
  /**
304
240
  * @generated from protobuf service services.documents.DocumentsService
@@ -310,327 +246,262 @@ export class DocumentsServiceClient implements IDocumentsServiceClient, ServiceI
310
246
  constructor(private readonly _transport: RpcTransport) {
311
247
  }
312
248
  /**
313
- * @perm
314
- *
315
- * @generated from protobuf rpc: ListTemplates(services.documents.ListTemplatesRequest) returns (services.documents.ListTemplatesResponse);
249
+ * @generated from protobuf rpc: ListTemplates
316
250
  */
317
251
  listTemplates(input: ListTemplatesRequest, options?: RpcOptions): UnaryCall<ListTemplatesRequest, ListTemplatesResponse> {
318
252
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
319
253
  return stackIntercept<ListTemplatesRequest, ListTemplatesResponse>("unary", this._transport, method, opt, input);
320
254
  }
321
255
  /**
322
- * @perm: Name=ListTemplates
323
- *
324
- * @generated from protobuf rpc: GetTemplate(services.documents.GetTemplateRequest) returns (services.documents.GetTemplateResponse);
256
+ * @generated from protobuf rpc: GetTemplate
325
257
  */
326
258
  getTemplate(input: GetTemplateRequest, options?: RpcOptions): UnaryCall<GetTemplateRequest, GetTemplateResponse> {
327
259
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
328
260
  return stackIntercept<GetTemplateRequest, GetTemplateResponse>("unary", this._transport, method, opt, input);
329
261
  }
330
262
  /**
331
- * @perm
332
- *
333
- * @generated from protobuf rpc: CreateTemplate(services.documents.CreateTemplateRequest) returns (services.documents.CreateTemplateResponse);
263
+ * @generated from protobuf rpc: CreateTemplate
334
264
  */
335
265
  createTemplate(input: CreateTemplateRequest, options?: RpcOptions): UnaryCall<CreateTemplateRequest, CreateTemplateResponse> {
336
266
  const method = this.methods[2], opt = this._transport.mergeOptions(options);
337
267
  return stackIntercept<CreateTemplateRequest, CreateTemplateResponse>("unary", this._transport, method, opt, input);
338
268
  }
339
269
  /**
340
- * @perm: Name=CreateTemplate
341
- *
342
- * @generated from protobuf rpc: UpdateTemplate(services.documents.UpdateTemplateRequest) returns (services.documents.UpdateTemplateResponse);
270
+ * @generated from protobuf rpc: UpdateTemplate
343
271
  */
344
272
  updateTemplate(input: UpdateTemplateRequest, options?: RpcOptions): UnaryCall<UpdateTemplateRequest, UpdateTemplateResponse> {
345
273
  const method = this.methods[3], opt = this._transport.mergeOptions(options);
346
274
  return stackIntercept<UpdateTemplateRequest, UpdateTemplateResponse>("unary", this._transport, method, opt, input);
347
275
  }
348
276
  /**
349
- * @perm
350
- *
351
- * @generated from protobuf rpc: DeleteTemplate(services.documents.DeleteTemplateRequest) returns (services.documents.DeleteTemplateResponse);
277
+ * @generated from protobuf rpc: DeleteTemplate
352
278
  */
353
279
  deleteTemplate(input: DeleteTemplateRequest, options?: RpcOptions): UnaryCall<DeleteTemplateRequest, DeleteTemplateResponse> {
354
280
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
355
281
  return stackIntercept<DeleteTemplateRequest, DeleteTemplateResponse>("unary", this._transport, method, opt, input);
356
282
  }
357
283
  /**
358
- * @perm
359
- *
360
- * @generated from protobuf rpc: ListDocuments(services.documents.ListDocumentsRequest) returns (services.documents.ListDocumentsResponse);
284
+ * @generated from protobuf rpc: ListDocuments
361
285
  */
362
286
  listDocuments(input: ListDocumentsRequest, options?: RpcOptions): UnaryCall<ListDocumentsRequest, ListDocumentsResponse> {
363
287
  const method = this.methods[5], opt = this._transport.mergeOptions(options);
364
288
  return stackIntercept<ListDocumentsRequest, ListDocumentsResponse>("unary", this._transport, method, opt, input);
365
289
  }
366
290
  /**
367
- * @perm: Name=ListDocuments
368
- *
369
- * @generated from protobuf rpc: GetDocument(services.documents.GetDocumentRequest) returns (services.documents.GetDocumentResponse);
291
+ * @generated from protobuf rpc: GetDocument
370
292
  */
371
293
  getDocument(input: GetDocumentRequest, options?: RpcOptions): UnaryCall<GetDocumentRequest, GetDocumentResponse> {
372
294
  const method = this.methods[6], opt = this._transport.mergeOptions(options);
373
295
  return stackIntercept<GetDocumentRequest, GetDocumentResponse>("unary", this._transport, method, opt, input);
374
296
  }
375
297
  /**
376
- * @perm
377
- *
378
- * @generated from protobuf rpc: CreateDocument(services.documents.CreateDocumentRequest) returns (services.documents.CreateDocumentResponse);
298
+ * @generated from protobuf rpc: CreateDocument
379
299
  */
380
300
  createDocument(input: CreateDocumentRequest, options?: RpcOptions): UnaryCall<CreateDocumentRequest, CreateDocumentResponse> {
381
301
  const method = this.methods[7], opt = this._transport.mergeOptions(options);
382
302
  return stackIntercept<CreateDocumentRequest, CreateDocumentResponse>("unary", this._transport, method, opt, input);
383
303
  }
384
304
  /**
385
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
386
- *
387
- * @generated from protobuf rpc: UpdateDocument(services.documents.UpdateDocumentRequest) returns (services.documents.UpdateDocumentResponse);
305
+ * @generated from protobuf rpc: UpdateDocument
388
306
  */
389
307
  updateDocument(input: UpdateDocumentRequest, options?: RpcOptions): UnaryCall<UpdateDocumentRequest, UpdateDocumentResponse> {
390
308
  const method = this.methods[8], opt = this._transport.mergeOptions(options);
391
309
  return stackIntercept<UpdateDocumentRequest, UpdateDocumentResponse>("unary", this._transport, method, opt, input);
392
310
  }
393
311
  /**
394
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
395
- *
396
- * @generated from protobuf rpc: DeleteDocument(services.documents.DeleteDocumentRequest) returns (services.documents.DeleteDocumentResponse);
312
+ * @generated from protobuf rpc: DeleteDocument
397
313
  */
398
314
  deleteDocument(input: DeleteDocumentRequest, options?: RpcOptions): UnaryCall<DeleteDocumentRequest, DeleteDocumentResponse> {
399
315
  const method = this.methods[9], opt = this._transport.mergeOptions(options);
400
316
  return stackIntercept<DeleteDocumentRequest, DeleteDocumentResponse>("unary", this._transport, method, opt, input);
401
317
  }
402
318
  /**
403
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
404
- *
405
- * @generated from protobuf rpc: ToggleDocument(services.documents.ToggleDocumentRequest) returns (services.documents.ToggleDocumentResponse);
319
+ * @generated from protobuf rpc: ToggleDocument
406
320
  */
407
321
  toggleDocument(input: ToggleDocumentRequest, options?: RpcOptions): UnaryCall<ToggleDocumentRequest, ToggleDocumentResponse> {
408
322
  const method = this.methods[10], opt = this._transport.mergeOptions(options);
409
323
  return stackIntercept<ToggleDocumentRequest, ToggleDocumentResponse>("unary", this._transport, method, opt, input);
410
324
  }
411
325
  /**
412
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
413
- *
414
- * @generated from protobuf rpc: ChangeDocumentOwner(services.documents.ChangeDocumentOwnerRequest) returns (services.documents.ChangeDocumentOwnerResponse);
326
+ * @generated from protobuf rpc: ChangeDocumentOwner
415
327
  */
416
328
  changeDocumentOwner(input: ChangeDocumentOwnerRequest, options?: RpcOptions): UnaryCall<ChangeDocumentOwnerRequest, ChangeDocumentOwnerResponse> {
417
329
  const method = this.methods[11], opt = this._transport.mergeOptions(options);
418
330
  return stackIntercept<ChangeDocumentOwnerRequest, ChangeDocumentOwnerResponse>("unary", this._transport, method, opt, input);
419
331
  }
420
332
  /**
421
- * @perm: Name=ListDocuments
422
- *
423
- * @generated from protobuf rpc: GetDocumentReferences(services.documents.GetDocumentReferencesRequest) returns (services.documents.GetDocumentReferencesResponse);
333
+ * @generated from protobuf rpc: GetDocumentReferences
424
334
  */
425
335
  getDocumentReferences(input: GetDocumentReferencesRequest, options?: RpcOptions): UnaryCall<GetDocumentReferencesRequest, GetDocumentReferencesResponse> {
426
336
  const method = this.methods[12], opt = this._transport.mergeOptions(options);
427
337
  return stackIntercept<GetDocumentReferencesRequest, GetDocumentReferencesResponse>("unary", this._transport, method, opt, input);
428
338
  }
429
339
  /**
430
- * @perm: Name=ListDocuments
431
- *
432
- * @generated from protobuf rpc: GetDocumentRelations(services.documents.GetDocumentRelationsRequest) returns (services.documents.GetDocumentRelationsResponse);
340
+ * @generated from protobuf rpc: GetDocumentRelations
433
341
  */
434
342
  getDocumentRelations(input: GetDocumentRelationsRequest, options?: RpcOptions): UnaryCall<GetDocumentRelationsRequest, GetDocumentRelationsResponse> {
435
343
  const method = this.methods[13], opt = this._transport.mergeOptions(options);
436
344
  return stackIntercept<GetDocumentRelationsRequest, GetDocumentRelationsResponse>("unary", this._transport, method, opt, input);
437
345
  }
438
346
  /**
439
- * @perm
440
- *
441
- * @generated from protobuf rpc: AddDocumentReference(services.documents.AddDocumentReferenceRequest) returns (services.documents.AddDocumentReferenceResponse);
347
+ * @generated from protobuf rpc: AddDocumentReference
442
348
  */
443
349
  addDocumentReference(input: AddDocumentReferenceRequest, options?: RpcOptions): UnaryCall<AddDocumentReferenceRequest, AddDocumentReferenceResponse> {
444
350
  const method = this.methods[14], opt = this._transport.mergeOptions(options);
445
351
  return stackIntercept<AddDocumentReferenceRequest, AddDocumentReferenceResponse>("unary", this._transport, method, opt, input);
446
352
  }
447
353
  /**
448
- * @perm: Name=AddDocumentReference
449
- *
450
- * @generated from protobuf rpc: RemoveDocumentReference(services.documents.RemoveDocumentReferenceRequest) returns (services.documents.RemoveDocumentReferenceResponse);
354
+ * @generated from protobuf rpc: RemoveDocumentReference
451
355
  */
452
356
  removeDocumentReference(input: RemoveDocumentReferenceRequest, options?: RpcOptions): UnaryCall<RemoveDocumentReferenceRequest, RemoveDocumentReferenceResponse> {
453
357
  const method = this.methods[15], opt = this._transport.mergeOptions(options);
454
358
  return stackIntercept<RemoveDocumentReferenceRequest, RemoveDocumentReferenceResponse>("unary", this._transport, method, opt, input);
455
359
  }
456
360
  /**
457
- * @perm
458
- *
459
- * @generated from protobuf rpc: AddDocumentRelation(services.documents.AddDocumentRelationRequest) returns (services.documents.AddDocumentRelationResponse);
361
+ * @generated from protobuf rpc: AddDocumentRelation
460
362
  */
461
363
  addDocumentRelation(input: AddDocumentRelationRequest, options?: RpcOptions): UnaryCall<AddDocumentRelationRequest, AddDocumentRelationResponse> {
462
364
  const method = this.methods[16], opt = this._transport.mergeOptions(options);
463
365
  return stackIntercept<AddDocumentRelationRequest, AddDocumentRelationResponse>("unary", this._transport, method, opt, input);
464
366
  }
465
367
  /**
466
- * @perm: Name=AddDocumentRelation
467
- *
468
- * @generated from protobuf rpc: RemoveDocumentRelation(services.documents.RemoveDocumentRelationRequest) returns (services.documents.RemoveDocumentRelationResponse);
368
+ * @generated from protobuf rpc: RemoveDocumentRelation
469
369
  */
470
370
  removeDocumentRelation(input: RemoveDocumentRelationRequest, options?: RpcOptions): UnaryCall<RemoveDocumentRelationRequest, RemoveDocumentRelationResponse> {
471
371
  const method = this.methods[17], opt = this._transport.mergeOptions(options);
472
372
  return stackIntercept<RemoveDocumentRelationRequest, RemoveDocumentRelationResponse>("unary", this._transport, method, opt, input);
473
373
  }
474
374
  /**
475
- * @perm: Name=ListDocuments
476
- *
477
- * @generated from protobuf rpc: GetComments(services.documents.GetCommentsRequest) returns (services.documents.GetCommentsResponse);
375
+ * @generated from protobuf rpc: GetComments
478
376
  */
479
377
  getComments(input: GetCommentsRequest, options?: RpcOptions): UnaryCall<GetCommentsRequest, GetCommentsResponse> {
480
378
  const method = this.methods[18], opt = this._transport.mergeOptions(options);
481
379
  return stackIntercept<GetCommentsRequest, GetCommentsResponse>("unary", this._transport, method, opt, input);
482
380
  }
483
381
  /**
484
- * @perm: Name=ListDocuments
485
- *
486
- * @generated from protobuf rpc: PostComment(services.documents.PostCommentRequest) returns (services.documents.PostCommentResponse);
382
+ * @generated from protobuf rpc: PostComment
487
383
  */
488
384
  postComment(input: PostCommentRequest, options?: RpcOptions): UnaryCall<PostCommentRequest, PostCommentResponse> {
489
385
  const method = this.methods[19], opt = this._transport.mergeOptions(options);
490
386
  return stackIntercept<PostCommentRequest, PostCommentResponse>("unary", this._transport, method, opt, input);
491
387
  }
492
388
  /**
493
- * @perm: Name=ListDocuments
494
- *
495
- * @generated from protobuf rpc: EditComment(services.documents.EditCommentRequest) returns (services.documents.EditCommentResponse);
389
+ * @generated from protobuf rpc: EditComment
496
390
  */
497
391
  editComment(input: EditCommentRequest, options?: RpcOptions): UnaryCall<EditCommentRequest, EditCommentResponse> {
498
392
  const method = this.methods[20], opt = this._transport.mergeOptions(options);
499
393
  return stackIntercept<EditCommentRequest, EditCommentResponse>("unary", this._transport, method, opt, input);
500
394
  }
501
395
  /**
502
- * @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}
503
- *
504
- * @generated from protobuf rpc: DeleteComment(services.documents.DeleteCommentRequest) returns (services.documents.DeleteCommentResponse);
396
+ * @generated from protobuf rpc: DeleteComment
505
397
  */
506
398
  deleteComment(input: DeleteCommentRequest, options?: RpcOptions): UnaryCall<DeleteCommentRequest, DeleteCommentResponse> {
507
399
  const method = this.methods[21], opt = this._transport.mergeOptions(options);
508
400
  return stackIntercept<DeleteCommentRequest, DeleteCommentResponse>("unary", this._transport, method, opt, input);
509
401
  }
510
402
  /**
511
- * @perm: Name=ListDocuments
512
- *
513
- * @generated from protobuf rpc: GetDocumentAccess(services.documents.GetDocumentAccessRequest) returns (services.documents.GetDocumentAccessResponse);
403
+ * @generated from protobuf rpc: GetDocumentAccess
514
404
  */
515
405
  getDocumentAccess(input: GetDocumentAccessRequest, options?: RpcOptions): UnaryCall<GetDocumentAccessRequest, GetDocumentAccessResponse> {
516
406
  const method = this.methods[22], opt = this._transport.mergeOptions(options);
517
407
  return stackIntercept<GetDocumentAccessRequest, GetDocumentAccessResponse>("unary", this._transport, method, opt, input);
518
408
  }
519
409
  /**
520
- * @perm: Name=CreateDocument
521
- *
522
- * @generated from protobuf rpc: SetDocumentAccess(services.documents.SetDocumentAccessRequest) returns (services.documents.SetDocumentAccessResponse);
410
+ * @generated from protobuf rpc: SetDocumentAccess
523
411
  */
524
412
  setDocumentAccess(input: SetDocumentAccessRequest, options?: RpcOptions): UnaryCall<SetDocumentAccessRequest, SetDocumentAccessResponse> {
525
413
  const method = this.methods[23], opt = this._transport.mergeOptions(options);
526
414
  return stackIntercept<SetDocumentAccessRequest, SetDocumentAccessResponse>("unary", this._transport, method, opt, input);
527
415
  }
528
416
  /**
529
- * @perm
530
- *
531
- * @generated from protobuf rpc: ListDocumentActivity(services.documents.ListDocumentActivityRequest) returns (services.documents.ListDocumentActivityResponse);
417
+ * @generated from protobuf rpc: ListDocumentActivity
532
418
  */
533
419
  listDocumentActivity(input: ListDocumentActivityRequest, options?: RpcOptions): UnaryCall<ListDocumentActivityRequest, ListDocumentActivityResponse> {
534
420
  const method = this.methods[24], opt = this._transport.mergeOptions(options);
535
421
  return stackIntercept<ListDocumentActivityRequest, ListDocumentActivityResponse>("unary", this._transport, method, opt, input);
536
422
  }
537
423
  /**
538
- * @perm
539
- *
540
- * @generated from protobuf rpc: ListDocumentReqs(services.documents.ListDocumentReqsRequest) returns (services.documents.ListDocumentReqsResponse);
424
+ * @generated from protobuf rpc: ListDocumentReqs
541
425
  */
542
426
  listDocumentReqs(input: ListDocumentReqsRequest, options?: RpcOptions): UnaryCall<ListDocumentReqsRequest, ListDocumentReqsResponse> {
543
427
  const method = this.methods[25], opt = this._transport.mergeOptions(options);
544
428
  return stackIntercept<ListDocumentReqsRequest, ListDocumentReqsResponse>("unary", this._transport, method, opt, input);
545
429
  }
546
430
  /**
547
- * @perm: Attrs=Types/StringList:[]string{"Access", "Closure", "Update", "Deletion", "OwnerChange"}
548
- *
549
- * @generated from protobuf rpc: CreateDocumentReq(services.documents.CreateDocumentReqRequest) returns (services.documents.CreateDocumentReqResponse);
431
+ * @generated from protobuf rpc: CreateDocumentReq
550
432
  */
551
433
  createDocumentReq(input: CreateDocumentReqRequest, options?: RpcOptions): UnaryCall<CreateDocumentReqRequest, CreateDocumentReqResponse> {
552
434
  const method = this.methods[26], opt = this._transport.mergeOptions(options);
553
435
  return stackIntercept<CreateDocumentReqRequest, CreateDocumentReqResponse>("unary", this._transport, method, opt, input);
554
436
  }
555
437
  /**
556
- * @perm: Name=CreateDocumentReq
557
- *
558
- * @generated from protobuf rpc: UpdateDocumentReq(services.documents.UpdateDocumentReqRequest) returns (services.documents.UpdateDocumentReqResponse);
438
+ * @generated from protobuf rpc: UpdateDocumentReq
559
439
  */
560
440
  updateDocumentReq(input: UpdateDocumentReqRequest, options?: RpcOptions): UnaryCall<UpdateDocumentReqRequest, UpdateDocumentReqResponse> {
561
441
  const method = this.methods[27], opt = this._transport.mergeOptions(options);
562
442
  return stackIntercept<UpdateDocumentReqRequest, UpdateDocumentReqResponse>("unary", this._transport, method, opt, input);
563
443
  }
564
444
  /**
565
- * @perm
566
- *
567
- * @generated from protobuf rpc: DeleteDocumentReq(services.documents.DeleteDocumentReqRequest) returns (services.documents.DeleteDocumentReqResponse);
445
+ * @generated from protobuf rpc: DeleteDocumentReq
568
446
  */
569
447
  deleteDocumentReq(input: DeleteDocumentReqRequest, options?: RpcOptions): UnaryCall<DeleteDocumentReqRequest, DeleteDocumentReqResponse> {
570
448
  const method = this.methods[28], opt = this._transport.mergeOptions(options);
571
449
  return stackIntercept<DeleteDocumentReqRequest, DeleteDocumentReqResponse>("unary", this._transport, method, opt, input);
572
450
  }
573
451
  /**
574
- * @perm
575
- *
576
- * @generated from protobuf rpc: ListUserDocuments(services.documents.ListUserDocumentsRequest) returns (services.documents.ListUserDocumentsResponse);
452
+ * @generated from protobuf rpc: ListUserDocuments
577
453
  */
578
454
  listUserDocuments(input: ListUserDocumentsRequest, options?: RpcOptions): UnaryCall<ListUserDocumentsRequest, ListUserDocumentsResponse> {
579
455
  const method = this.methods[29], opt = this._transport.mergeOptions(options);
580
456
  return stackIntercept<ListUserDocumentsRequest, ListUserDocumentsResponse>("unary", this._transport, method, opt, input);
581
457
  }
582
458
  /**
583
- * @perm
584
- *
585
- * @generated from protobuf rpc: ListCategories(services.documents.ListCategoriesRequest) returns (services.documents.ListCategoriesResponse);
459
+ * @generated from protobuf rpc: ListCategories
586
460
  */
587
461
  listCategories(input: ListCategoriesRequest, options?: RpcOptions): UnaryCall<ListCategoriesRequest, ListCategoriesResponse> {
588
462
  const method = this.methods[30], opt = this._transport.mergeOptions(options);
589
463
  return stackIntercept<ListCategoriesRequest, ListCategoriesResponse>("unary", this._transport, method, opt, input);
590
464
  }
591
465
  /**
592
- * @perm
593
- *
594
- * @generated from protobuf rpc: CreateOrUpdateCategory(services.documents.CreateOrUpdateCategoryRequest) returns (services.documents.CreateOrUpdateCategoryResponse);
466
+ * @generated from protobuf rpc: CreateOrUpdateCategory
595
467
  */
596
468
  createOrUpdateCategory(input: CreateOrUpdateCategoryRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateCategoryRequest, CreateOrUpdateCategoryResponse> {
597
469
  const method = this.methods[31], opt = this._transport.mergeOptions(options);
598
470
  return stackIntercept<CreateOrUpdateCategoryRequest, CreateOrUpdateCategoryResponse>("unary", this._transport, method, opt, input);
599
471
  }
600
472
  /**
601
- * @perm
602
- *
603
- * @generated from protobuf rpc: DeleteCategory(services.documents.DeleteCategoryRequest) returns (services.documents.DeleteCategoryResponse);
473
+ * @generated from protobuf rpc: DeleteCategory
604
474
  */
605
475
  deleteCategory(input: DeleteCategoryRequest, options?: RpcOptions): UnaryCall<DeleteCategoryRequest, DeleteCategoryResponse> {
606
476
  const method = this.methods[32], opt = this._transport.mergeOptions(options);
607
477
  return stackIntercept<DeleteCategoryRequest, DeleteCategoryResponse>("unary", this._transport, method, opt, input);
608
478
  }
609
479
  /**
610
- * @perm: Name=ListDocuments
611
- *
612
- * @generated from protobuf rpc: ListDocumentPins(services.documents.ListDocumentPinsRequest) returns (services.documents.ListDocumentPinsResponse);
480
+ * @generated from protobuf rpc: ListDocumentPins
613
481
  */
614
482
  listDocumentPins(input: ListDocumentPinsRequest, options?: RpcOptions): UnaryCall<ListDocumentPinsRequest, ListDocumentPinsResponse> {
615
483
  const method = this.methods[33], opt = this._transport.mergeOptions(options);
616
484
  return stackIntercept<ListDocumentPinsRequest, ListDocumentPinsResponse>("unary", this._transport, method, opt, input);
617
485
  }
618
486
  /**
619
- * @perm
620
- *
621
- * @generated from protobuf rpc: ToggleDocumentPin(services.documents.ToggleDocumentPinRequest) returns (services.documents.ToggleDocumentPinResponse);
487
+ * @generated from protobuf rpc: ToggleDocumentPin
622
488
  */
623
489
  toggleDocumentPin(input: ToggleDocumentPinRequest, options?: RpcOptions): UnaryCall<ToggleDocumentPinRequest, ToggleDocumentPinResponse> {
624
490
  const method = this.methods[34], opt = this._transport.mergeOptions(options);
625
491
  return stackIntercept<ToggleDocumentPinRequest, ToggleDocumentPinResponse>("unary", this._transport, method, opt, input);
626
492
  }
627
493
  /**
628
- * @perm
629
- *
630
- * @generated from protobuf rpc: SetDocumentReminder(services.documents.SetDocumentReminderRequest) returns (services.documents.SetDocumentReminderResponse);
494
+ * @generated from protobuf rpc: SetDocumentReminder
631
495
  */
632
496
  setDocumentReminder(input: SetDocumentReminderRequest, options?: RpcOptions): UnaryCall<SetDocumentReminderRequest, SetDocumentReminderResponse> {
633
497
  const method = this.methods[35], opt = this._transport.mergeOptions(options);
634
498
  return stackIntercept<SetDocumentReminderRequest, SetDocumentReminderResponse>("unary", this._transport, method, opt, input);
635
499
  }
500
+ /**
501
+ * @generated from protobuf rpc: UploadFile
502
+ */
503
+ uploadFile(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse> {
504
+ const method = this.methods[36], opt = this._transport.mergeOptions(options);
505
+ return stackIntercept<UploadFileRequest, UploadFileResponse>("clientStreaming", this._transport, method, opt);
506
+ }
636
507
  }