@opencrvs/toolkit 2.1.0-rc.ffe0b7f → 2.2.0-rc.9042a13

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 (250) hide show
  1. package/README.md +2 -12
  2. package/build.sh +23 -5
  3. package/create-countryconfig/index.js +441 -59
  4. package/create-countryconfig/node_modules/.bin/degit +21 -0
  5. package/create-countryconfig/package.json +5 -2
  6. package/dist/application-config/index.js +391 -286
  7. package/dist/authentication/index.d.ts +66 -0
  8. package/dist/authentication/index.d.ts.map +1 -0
  9. package/dist/authentication/index.js +778 -0
  10. package/dist/cli.js +2041 -1311
  11. package/dist/commons/api/router.d.ts +2359 -485
  12. package/dist/commons/application-config/index.d.ts +0 -2
  13. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  14. package/dist/commons/conditionals/validate.d.ts +34 -8
  15. package/dist/commons/events/ActionConfig.d.ts +131 -7
  16. package/dist/commons/events/ActionDocument.d.ts +123 -15
  17. package/dist/commons/events/ActionInput.d.ts +56 -4
  18. package/dist/commons/events/ActionStatus.d.ts +14 -0
  19. package/dist/commons/events/ActionType.d.ts +11 -1
  20. package/dist/commons/events/AdvancedSearchConfig.d.ts +60 -12
  21. package/dist/commons/events/AuditLog.d.ts +152 -0
  22. package/dist/commons/events/CountryConfigQueryInput.d.ts +132 -0
  23. package/dist/commons/events/Draft.d.ts +3 -21
  24. package/dist/commons/events/EventConfig.d.ts +29 -6
  25. package/dist/commons/events/EventDocument.d.ts +560 -4
  26. package/dist/commons/events/EventIndex.d.ts +23 -26
  27. package/dist/commons/events/EventMetadata.d.ts +24 -11
  28. package/dist/commons/events/EventStatus.d.ts +20 -0
  29. package/dist/commons/events/FieldConfig.d.ts +119 -63
  30. package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
  31. package/dist/commons/events/FieldValue.d.ts +3 -2
  32. package/dist/commons/events/Flag.d.ts +42 -0
  33. package/dist/commons/events/FormConfig.d.ts +6 -0
  34. package/dist/commons/events/PageConfig.d.ts +4 -0
  35. package/dist/commons/events/PlainDate.d.ts +8 -0
  36. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  37. package/dist/commons/events/WorkqueueConfig.d.ts +167 -20
  38. package/dist/commons/events/event.d.ts +12 -0
  39. package/dist/commons/events/eventConfigValidation.d.ts +17 -1
  40. package/dist/commons/events/index.d.ts +1 -0
  41. package/dist/commons/events/locationPayloads.d.ts +95 -0
  42. package/dist/commons/events/locations.d.ts +169 -26
  43. package/dist/commons/events/mocks.test.utils.d.ts +30 -0
  44. package/dist/commons/events/scopes.d.ts +23 -1
  45. package/dist/commons/events/state/index.d.ts +10 -2
  46. package/dist/commons/events/state/utils.d.ts +11 -1
  47. package/dist/commons/events/test.utils.d.ts +106 -26
  48. package/dist/commons/events/utils.d.ts +81 -18
  49. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  50. package/dist/commons/notification/dispatch.d.ts +10 -0
  51. package/dist/commons/notification/index.d.ts +1 -0
  52. package/dist/conditionals/index.js +362 -65
  53. package/dist/csv.d.ts +25 -0
  54. package/dist/csv.d.ts.map +1 -0
  55. package/dist/csv.js +120 -0
  56. package/dist/environment/derived-variables.d.ts +18 -0
  57. package/dist/environment/derived-variables.d.ts.map +1 -1
  58. package/dist/environment/derived-variables.js +22 -1
  59. package/dist/environment/index.d.ts.map +1 -1
  60. package/dist/environment/index.js +2 -1
  61. package/dist/environment/logger.d.ts +15 -3
  62. package/dist/environment/logger.d.ts.map +1 -1
  63. package/dist/environment/manage-users.js +1 -1
  64. package/dist/environment/questions.d.ts.map +1 -1
  65. package/dist/environment/questions.js +20 -14
  66. package/dist/environment/setup-environment.d.ts +1 -1
  67. package/dist/environment/setup-environment.d.ts.map +1 -1
  68. package/dist/environment/setup-environment.js +610 -560
  69. package/dist/environment/swarm-to-k8s.js +3 -4
  70. package/dist/environment/templates.d.ts +0 -1
  71. package/dist/environment/templates.d.ts.map +1 -1
  72. package/dist/environment/templates.js +3 -8
  73. package/dist/environment/update-workflows.d.ts.map +1 -1
  74. package/dist/environment/update-workflows.js +4 -0
  75. package/dist/environment/utils.d.ts +0 -12
  76. package/dist/environment/utils.d.ts.map +1 -1
  77. package/dist/environment/utils.js +1 -28
  78. package/dist/events/index.js +7909 -7056
  79. package/dist/migrations/add-translations.d.ts +15 -0
  80. package/dist/migrations/add-translations.d.ts.map +1 -0
  81. package/dist/migrations/add-translations.js +151 -0
  82. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  83. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  84. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  85. package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
  86. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  87. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  88. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  89. package/dist/migrations/v2.1/index.js +47 -215
  90. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +17 -0
  91. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
  92. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
  93. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  94. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  95. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  96. package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
  97. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  98. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  99. package/dist/migrations/{v2.0/create-events-index.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
  100. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  101. package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
  102. package/dist/migrations/v2.1/template-files.d.ts +8 -0
  103. package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
  104. package/dist/migrations/v2.1/template-files.js +49 -0
  105. package/dist/migrations/v2.1/upgrade-tilt.d.ts +11 -0
  106. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
  107. package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
  108. package/dist/migrations/v2.2/index.d.ts +6 -0
  109. package/dist/migrations/v2.2/index.d.ts.map +1 -0
  110. package/dist/migrations/v2.2/index.js +456 -0
  111. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts +39 -0
  112. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +1 -0
  113. package/dist/migrations/v2.2/read-declaration-through-helper.js +257 -0
  114. package/dist/notification/index.js +2090 -1456
  115. package/dist/scopes/index.d.ts +637 -36
  116. package/dist/scopes/index.js +364 -65
  117. package/dist/telemetry/index.d.ts +45 -0
  118. package/dist/telemetry/index.d.ts.map +1 -0
  119. package/dist/telemetry/index.js +43 -0
  120. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  121. package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
  122. package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
  123. package/dist/templates/charts-values/traefik/values.yaml +25 -12
  124. package/dist/templates/countryconfig-template/.tiltignore +1 -0
  125. package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
  126. package/dist/templates/countryconfig-template/Tiltfile +112 -0
  127. package/dist/templates/countryconfig-template/assets/README.md +1 -0
  128. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
  129. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
  130. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
  131. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
  132. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
  133. package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
  134. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
  135. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
  136. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
  137. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
  138. package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
  139. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
  140. package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
  141. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
  142. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
  143. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
  144. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
  145. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
  146. package/dist/templates/countryconfig-template/tilt/common.tilt +145 -0
  147. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
  148. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
  149. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
  150. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
  151. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
  152. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
  153. package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
  154. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
  155. package/dist/templates/inventory/inventory.template.yml +1 -3
  156. package/dist/translations/template.d.ts +11 -0
  157. package/dist/translations/template.d.ts.map +1 -0
  158. package/dist/translations/template.js +100 -0
  159. package/dist/verify/endpoints.d.ts +2 -0
  160. package/dist/verify/endpoints.d.ts.map +1 -0
  161. package/dist/verify/endpoints.js +510 -0
  162. package/opencrvs-toolkit-2.2.0-rc.9042a13.tgz +0 -0
  163. package/package.json +13 -7
  164. package/tsconfig.build.json +11 -0
  165. package/tsconfig.build.tsbuildinfo +1 -0
  166. package/tsconfig.json +3 -0
  167. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  168. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  169. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
  170. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
  171. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
  172. package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
  173. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
  174. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
  175. package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
  176. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  177. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  178. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
  179. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  180. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  181. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
  182. package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
  183. package/dist/migrations/v2.0/create-events-index.js +0 -325
  184. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
  185. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
  186. package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
  187. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
  188. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
  189. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
  190. package/dist/migrations/v2.0/index.d.ts +0 -13
  191. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  192. package/dist/migrations/v2.0/index.js +0 -103
  193. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  194. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  195. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
  196. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
  197. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
  198. package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
  199. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
  200. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
  201. package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
  202. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  203. package/dist/migrations/v2.0/migrate-scopes.js +0 -305
  204. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  205. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  206. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
  207. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  208. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  209. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
  210. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  211. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  212. package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
  213. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  214. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  215. package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
  216. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  217. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  218. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
  219. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
  220. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
  221. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
  222. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  223. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  224. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
  225. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
  226. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
  227. package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
  228. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  229. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  230. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
  231. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  232. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  233. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
  234. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
  235. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
  236. package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
  237. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  238. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  239. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  240. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
  241. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
  242. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
  243. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
  244. package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
  245. package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
  246. package/dist/migrations/v2.0/update-package-json.js +0 -105
  247. package/dist/templates/inventory/production.example.yml +0 -77
  248. package/dist/templates/inventory/qa.example.yml +0 -48
  249. package/opencrvs-toolkit-2.1.0-rc.ffe0b7f.tgz +0 -0
  250. package/tsconfig.tsbuildinfo +0 -1
@@ -2,18 +2,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: Partial<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
- id: string & import("zod").$brand<"UUID">;
6
- type: "system";
7
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
- signature?: undefined;
10
- } | {
11
5
  id: string & import("zod").$brand<"UUID">;
12
6
  role: string;
13
7
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
14
8
  primaryOfficeId: string & import("zod").$brand<"UUID">;
15
9
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
16
10
  type: "user";
11
+ } | {
12
+ id: string & import("zod").$brand<"UUID">;
13
+ type: "system";
14
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
15
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
16
+ signature?: undefined;
17
17
  };
18
18
  }>;
19
19
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -24,18 +24,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  ctx: Partial<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
- id: string & import("zod").$brand<"UUID">;
28
- type: "system";
29
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
30
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
- signature?: undefined;
32
- } | {
33
27
  id: string & import("zod").$brand<"UUID">;
34
28
  role: string;
35
29
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
36
30
  primaryOfficeId: string & import("zod").$brand<"UUID">;
37
31
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
38
32
  type: "user";
33
+ } | {
34
+ id: string & import("zod").$brand<"UUID">;
35
+ type: "system";
36
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
37
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
38
+ signature?: undefined;
39
39
  };
40
40
  }>;
41
41
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -46,18 +46,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
46
46
  ctx: Partial<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
- id: string & import("zod").$brand<"UUID">;
50
- type: "system";
51
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
52
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
- signature?: undefined;
54
- } | {
55
49
  id: string & import("zod").$brand<"UUID">;
56
50
  role: string;
57
51
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
58
52
  primaryOfficeId: string & import("zod").$brand<"UUID">;
59
53
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
60
54
  type: "user";
55
+ } | {
56
+ id: string & import("zod").$brand<"UUID">;
57
+ type: "system";
58
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
59
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
60
+ signature?: undefined;
61
61
  };
62
62
  }>;
63
63
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -81,6 +81,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
81
81
  status: "completed" | "failed" | "running";
82
82
  progress: {
83
83
  processed: number;
84
+ skipped: number;
85
+ errors: string[];
84
86
  };
85
87
  error_message: string | null;
86
88
  completed_at: string | null;
@@ -92,18 +94,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
92
94
  ctx: Partial<{
93
95
  token: `Bearer ${string}`;
94
96
  user: {
95
- id: string & import("zod").$brand<"UUID">;
96
- type: "system";
97
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
98
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
99
- signature?: undefined;
100
- } | {
101
97
  id: string & import("zod").$brand<"UUID">;
102
98
  role: string;
103
99
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
104
100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
105
101
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
102
  type: "user";
103
+ } | {
104
+ id: string & import("zod").$brand<"UUID">;
105
+ type: "system";
106
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
107
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
108
+ signature?: undefined;
107
109
  };
108
110
  }>;
109
111
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -223,9 +225,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
223
225
  status: "Accepted" | "Rejected" | "Requested";
224
226
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
225
227
  type: "ARCHIVE";
226
- content: {
228
+ content?: {
227
229
  reason: string;
228
- };
230
+ } | undefined;
229
231
  } | {
230
232
  id: string & import("zod").$brand<"UUID">;
231
233
  transactionId: string;
@@ -240,6 +242,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
240
242
  status: "Accepted" | "Rejected" | "Requested";
241
243
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
242
244
  type: "UNARCHIVE";
245
+ } | {
246
+ id: string & import("zod").$brand<"UUID">;
247
+ transactionId: string;
248
+ createdByUserType: "system" | "user";
249
+ createdAt: string;
250
+ createdBy: string;
251
+ createdByRole?: string | undefined;
252
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
253
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
254
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
255
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
256
+ status: "Accepted" | "Rejected" | "Requested";
257
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
258
+ type: "REVOKE_REGISTRATION";
259
+ } | {
260
+ id: string & import("zod").$brand<"UUID">;
261
+ transactionId: string;
262
+ createdByUserType: "system" | "user";
263
+ createdAt: string;
264
+ createdBy: string;
265
+ createdByRole?: string | undefined;
266
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
267
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
268
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
269
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
270
+ status: "Accepted" | "Rejected" | "Requested";
271
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
272
+ type: "REINSTATE_REGISTRATION";
243
273
  } | {
244
274
  id: string & import("zod").$brand<"UUID">;
245
275
  transactionId: string;
@@ -326,7 +356,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
326
356
  status: "Accepted" | "Rejected" | "Requested";
327
357
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
328
358
  type: "APPROVE_CORRECTION";
329
- requestId: string;
359
+ requestId: string & import("zod").$brand<"UUID">;
330
360
  content?: {
331
361
  immediateCorrection?: boolean | undefined;
332
362
  } | undefined;
@@ -344,7 +374,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
344
374
  status: "Accepted" | "Rejected" | "Requested";
345
375
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
346
376
  type: "REJECT_CORRECTION";
347
- requestId: string;
377
+ requestId: string & import("zod").$brand<"UUID">;
348
378
  content: {
349
379
  reason: string;
350
380
  };
@@ -435,7 +465,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
435
465
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
436
466
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
437
467
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
438
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
468
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
439
469
  status: "Rejected";
440
470
  })[];
441
471
  trackingId: string;
@@ -446,7 +476,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
446
476
  input: {
447
477
  eventId: string;
448
478
  customActionType?: string | undefined;
449
- waitFor?: boolean | undefined;
450
479
  };
451
480
  output: {
452
481
  id: string & import("zod").$brand<"UUID">;
@@ -549,9 +578,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
549
578
  status: "Accepted" | "Rejected" | "Requested";
550
579
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
551
580
  type: "ARCHIVE";
552
- content: {
581
+ content?: {
553
582
  reason: string;
554
- };
583
+ } | undefined;
555
584
  } | {
556
585
  id: string & import("zod").$brand<"UUID">;
557
586
  transactionId: string;
@@ -566,6 +595,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
566
595
  status: "Accepted" | "Rejected" | "Requested";
567
596
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
568
597
  type: "UNARCHIVE";
598
+ } | {
599
+ id: string & import("zod").$brand<"UUID">;
600
+ transactionId: string;
601
+ createdByUserType: "system" | "user";
602
+ createdAt: string;
603
+ createdBy: string;
604
+ createdByRole?: string | undefined;
605
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
606
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
607
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
608
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
609
+ status: "Accepted" | "Rejected" | "Requested";
610
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
611
+ type: "REVOKE_REGISTRATION";
612
+ } | {
613
+ id: string & import("zod").$brand<"UUID">;
614
+ transactionId: string;
615
+ createdByUserType: "system" | "user";
616
+ createdAt: string;
617
+ createdBy: string;
618
+ createdByRole?: string | undefined;
619
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
620
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
621
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
622
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
+ status: "Accepted" | "Rejected" | "Requested";
624
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
625
+ type: "REINSTATE_REGISTRATION";
569
626
  } | {
570
627
  id: string & import("zod").$brand<"UUID">;
571
628
  transactionId: string;
@@ -652,7 +709,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
652
709
  status: "Accepted" | "Rejected" | "Requested";
653
710
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
654
711
  type: "APPROVE_CORRECTION";
655
- requestId: string;
712
+ requestId: string & import("zod").$brand<"UUID">;
656
713
  content?: {
657
714
  immediateCorrection?: boolean | undefined;
658
715
  } | undefined;
@@ -670,7 +727,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
670
727
  status: "Accepted" | "Rejected" | "Requested";
671
728
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
672
729
  type: "REJECT_CORRECTION";
673
- requestId: string;
730
+ requestId: string & import("zod").$brand<"UUID">;
674
731
  content: {
675
732
  reason: string;
676
733
  };
@@ -761,7 +818,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
761
818
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
762
819
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
763
820
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
764
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
821
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
765
822
  status: "Rejected";
766
823
  })[];
767
824
  trackingId: string;
@@ -874,9 +931,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
874
931
  status: "Accepted" | "Rejected" | "Requested";
875
932
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
876
933
  type: "ARCHIVE";
877
- content: {
934
+ content?: {
878
935
  reason: string;
879
- };
936
+ } | undefined;
880
937
  } | {
881
938
  id: string & import("zod").$brand<"UUID">;
882
939
  transactionId: string;
@@ -891,6 +948,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
891
948
  status: "Accepted" | "Rejected" | "Requested";
892
949
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
893
950
  type: "UNARCHIVE";
951
+ } | {
952
+ id: string & import("zod").$brand<"UUID">;
953
+ transactionId: string;
954
+ createdByUserType: "system" | "user";
955
+ createdAt: string;
956
+ createdBy: string;
957
+ createdByRole?: string | undefined;
958
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
959
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
960
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
961
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
962
+ status: "Accepted" | "Rejected" | "Requested";
963
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
964
+ type: "REVOKE_REGISTRATION";
965
+ } | {
966
+ id: string & import("zod").$brand<"UUID">;
967
+ transactionId: string;
968
+ createdByUserType: "system" | "user";
969
+ createdAt: string;
970
+ createdBy: string;
971
+ createdByRole?: string | undefined;
972
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
973
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
974
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
975
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
976
+ status: "Accepted" | "Rejected" | "Requested";
977
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
978
+ type: "REINSTATE_REGISTRATION";
894
979
  } | {
895
980
  id: string & import("zod").$brand<"UUID">;
896
981
  transactionId: string;
@@ -977,7 +1062,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
977
1062
  status: "Accepted" | "Rejected" | "Requested";
978
1063
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
979
1064
  type: "APPROVE_CORRECTION";
980
- requestId: string;
1065
+ requestId: string & import("zod").$brand<"UUID">;
981
1066
  content?: {
982
1067
  immediateCorrection?: boolean | undefined;
983
1068
  } | undefined;
@@ -995,7 +1080,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
995
1080
  status: "Accepted" | "Rejected" | "Requested";
996
1081
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
997
1082
  type: "REJECT_CORRECTION";
998
- requestId: string;
1083
+ requestId: string & import("zod").$brand<"UUID">;
999
1084
  content: {
1000
1085
  reason: string;
1001
1086
  };
@@ -1086,7 +1171,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1086
1171
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1087
1172
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1088
1173
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1089
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
1174
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
1090
1175
  status: "Rejected";
1091
1176
  })[];
1092
1177
  trackingId: string;
@@ -1106,18 +1191,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1106
1191
  ctx: Partial<{
1107
1192
  token: `Bearer ${string}`;
1108
1193
  user: {
1109
- id: string & import("zod").$brand<"UUID">;
1110
- type: "system";
1111
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1112
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1113
- signature?: undefined;
1114
- } | {
1115
1194
  id: string & import("zod").$brand<"UUID">;
1116
1195
  role: string;
1117
1196
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1118
1197
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1119
1198
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1120
1199
  type: "user";
1200
+ } | {
1201
+ id: string & import("zod").$brand<"UUID">;
1202
+ type: "system";
1203
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1204
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1205
+ signature?: undefined;
1121
1206
  };
1122
1207
  }>;
1123
1208
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1142,7 +1227,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1142
1227
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1143
1228
  status: "Accepted" | "Rejected" | "Requested";
1144
1229
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1145
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1230
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE" | "UNASSIGN";
1146
1231
  };
1147
1232
  }[];
1148
1233
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1158,7 +1243,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1158
1243
  keepAssignmentIfAccepted?: boolean | undefined;
1159
1244
  keepAssignmentIfRejected?: boolean | undefined;
1160
1245
  createdAtLocation?: string | null | undefined;
1161
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1246
+ type: "DECLARE";
1162
1247
  status: "Accepted" | "Rejected" | "Requested";
1163
1248
  };
1164
1249
  output: {
@@ -1177,28 +1262,60 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1177
1262
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1178
1263
  status: "Accepted" | "Rejected" | "Requested";
1179
1264
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1180
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1265
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE" | "UNASSIGN";
1181
1266
  };
1182
1267
  };
1183
1268
  meta: import("trpc-to-openapi").OpenApiMeta;
1184
1269
  }>;
1185
1270
  }>>;
1186
- actions: import("@trpc/server").TRPCBuiltRouter<{
1271
+ file: import("@trpc/server").TRPCBuiltRouter<{
1187
1272
  ctx: Partial<{
1188
1273
  token: `Bearer ${string}`;
1189
1274
  user: {
1275
+ id: string & import("zod").$brand<"UUID">;
1276
+ role: string;
1277
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1278
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1279
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1280
+ type: "user";
1281
+ } | {
1190
1282
  id: string & import("zod").$brand<"UUID">;
1191
1283
  type: "system";
1192
1284
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1193
1285
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
1286
  signature?: undefined;
1195
- } | {
1287
+ };
1288
+ }>;
1289
+ meta: import("trpc-to-openapi").OpenApiMeta;
1290
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1291
+ transformer: true;
1292
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1293
+ getPresignedUrl: import("@trpc/server").TRPCQueryProcedure<{
1294
+ input: {
1295
+ filePath: string;
1296
+ };
1297
+ output: {
1298
+ presignedURL: string;
1299
+ };
1300
+ meta: import("trpc-to-openapi").OpenApiMeta;
1301
+ }>;
1302
+ }>>;
1303
+ actions: import("@trpc/server").TRPCBuiltRouter<{
1304
+ ctx: Partial<{
1305
+ token: `Bearer ${string}`;
1306
+ user: {
1196
1307
  id: string & import("zod").$brand<"UUID">;
1197
1308
  role: string;
1198
1309
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1199
1310
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1200
1311
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1201
1312
  type: "user";
1313
+ } | {
1314
+ id: string & import("zod").$brand<"UUID">;
1315
+ type: "system";
1316
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1317
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1318
+ signature?: undefined;
1202
1319
  };
1203
1320
  }>;
1204
1321
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1209,18 +1326,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1209
1326
  ctx: Partial<{
1210
1327
  token: `Bearer ${string}`;
1211
1328
  user: {
1212
- id: string & import("zod").$brand<"UUID">;
1213
- type: "system";
1214
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1215
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1216
- signature?: undefined;
1217
- } | {
1218
1329
  id: string & import("zod").$brand<"UUID">;
1219
1330
  role: string;
1220
1331
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1221
1332
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1222
1333
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1223
1334
  type: "user";
1335
+ } | {
1336
+ id: string & import("zod").$brand<"UUID">;
1337
+ type: "system";
1338
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1339
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1340
+ signature?: undefined;
1224
1341
  };
1225
1342
  }>;
1226
1343
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1354,9 +1471,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1354
1471
  waitFor?: boolean | undefined;
1355
1472
  createdAtLocation?: string | null | undefined;
1356
1473
  type?: "ARCHIVE" | undefined;
1357
- content: {
1474
+ content?: {
1358
1475
  reason: string;
1359
- };
1476
+ } | undefined;
1360
1477
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1361
1478
  eventId: string;
1362
1479
  transactionId: string;
@@ -1369,6 +1486,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1369
1486
  waitFor?: boolean | undefined;
1370
1487
  createdAtLocation?: string | null | undefined;
1371
1488
  type?: "UNARCHIVE" | undefined;
1489
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1490
+ eventId: string;
1491
+ transactionId: string;
1492
+ declaration?: Record<string, unknown> | undefined;
1493
+ annotation?: Record<string, unknown> | undefined;
1494
+ originalActionId?: string | undefined;
1495
+ keepAssignment?: boolean | undefined;
1496
+ keepAssignmentIfAccepted?: boolean | undefined;
1497
+ keepAssignmentIfRejected?: boolean | undefined;
1498
+ waitFor?: boolean | undefined;
1499
+ createdAtLocation?: string | null | undefined;
1500
+ type?: "REVOKE_REGISTRATION" | undefined;
1501
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1502
+ eventId: string;
1503
+ transactionId: string;
1504
+ declaration?: Record<string, unknown> | undefined;
1505
+ annotation?: Record<string, unknown> | undefined;
1506
+ originalActionId?: string | undefined;
1507
+ keepAssignment?: boolean | undefined;
1508
+ keepAssignmentIfAccepted?: boolean | undefined;
1509
+ keepAssignmentIfRejected?: boolean | undefined;
1510
+ waitFor?: boolean | undefined;
1511
+ createdAtLocation?: string | null | undefined;
1512
+ type?: "REINSTATE_REGISTRATION" | undefined;
1372
1513
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1373
1514
  eventId: string;
1374
1515
  transactionId: string;
@@ -1513,18 +1654,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1513
1654
  ctx: Partial<{
1514
1655
  token: `Bearer ${string}`;
1515
1656
  user: {
1516
- id: string & import("zod").$brand<"UUID">;
1517
- type: "system";
1518
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1519
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1520
- signature?: undefined;
1521
- } | {
1522
1657
  id: string & import("zod").$brand<"UUID">;
1523
1658
  role: string;
1524
1659
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1525
1660
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1526
1661
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1527
1662
  type: "user";
1663
+ } | {
1664
+ id: string & import("zod").$brand<"UUID">;
1665
+ type: "system";
1666
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1667
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1668
+ signature?: undefined;
1528
1669
  };
1529
1670
  }>;
1530
1671
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1645,9 +1786,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1645
1786
  status: "Accepted" | "Rejected" | "Requested";
1646
1787
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1647
1788
  type: "ARCHIVE";
1648
- content: {
1789
+ content?: {
1649
1790
  reason: string;
1650
- };
1791
+ } | undefined;
1651
1792
  } | {
1652
1793
  id: string & import("zod").$brand<"UUID">;
1653
1794
  transactionId: string;
@@ -1675,7 +1816,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1675
1816
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1676
1817
  status: "Accepted" | "Rejected" | "Requested";
1677
1818
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1678
- type: "NOTIFY";
1819
+ type: "REVOKE_REGISTRATION";
1679
1820
  } | {
1680
1821
  id: string & import("zod").$brand<"UUID">;
1681
1822
  transactionId: string;
@@ -1689,8 +1830,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1689
1830
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1690
1831
  status: "Accepted" | "Rejected" | "Requested";
1691
1832
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1692
- type: "REGISTER";
1693
- registrationNumber?: string | undefined;
1833
+ type: "REINSTATE_REGISTRATION";
1694
1834
  } | {
1695
1835
  id: string & import("zod").$brand<"UUID">;
1696
1836
  transactionId: string;
@@ -1704,7 +1844,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1704
1844
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1705
1845
  status: "Accepted" | "Rejected" | "Requested";
1706
1846
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1707
- type: "DECLARE";
1847
+ type: "NOTIFY";
1708
1848
  } | {
1709
1849
  id: string & import("zod").$brand<"UUID">;
1710
1850
  transactionId: string;
@@ -1718,8 +1858,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1718
1858
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1719
1859
  status: "Accepted" | "Rejected" | "Requested";
1720
1860
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1721
- type: "ASSIGN";
1722
- assignedTo: string;
1861
+ type: "REGISTER";
1862
+ registrationNumber?: string | undefined;
1723
1863
  } | {
1724
1864
  id: string & import("zod").$brand<"UUID">;
1725
1865
  transactionId: string;
@@ -1733,7 +1873,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1733
1873
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1734
1874
  status: "Accepted" | "Rejected" | "Requested";
1735
1875
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1736
- type: "REQUEST_CORRECTION";
1876
+ type: "DECLARE";
1737
1877
  } | {
1738
1878
  id: string & import("zod").$brand<"UUID">;
1739
1879
  transactionId: string;
@@ -1747,8 +1887,37 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1747
1887
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1748
1888
  status: "Accepted" | "Rejected" | "Requested";
1749
1889
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1750
- type: "APPROVE_CORRECTION";
1751
- requestId: string;
1890
+ type: "ASSIGN";
1891
+ assignedTo: string;
1892
+ } | {
1893
+ id: string & import("zod").$brand<"UUID">;
1894
+ transactionId: string;
1895
+ createdByUserType: "system" | "user";
1896
+ createdAt: string;
1897
+ createdBy: string;
1898
+ createdByRole?: string | undefined;
1899
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1900
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1901
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1902
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1903
+ status: "Accepted" | "Rejected" | "Requested";
1904
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1905
+ type: "REQUEST_CORRECTION";
1906
+ } | {
1907
+ id: string & import("zod").$brand<"UUID">;
1908
+ transactionId: string;
1909
+ createdByUserType: "system" | "user";
1910
+ createdAt: string;
1911
+ createdBy: string;
1912
+ createdByRole?: string | undefined;
1913
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1914
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1915
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1916
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1917
+ status: "Accepted" | "Rejected" | "Requested";
1918
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1919
+ type: "APPROVE_CORRECTION";
1920
+ requestId: string & import("zod").$brand<"UUID">;
1752
1921
  content?: {
1753
1922
  immediateCorrection?: boolean | undefined;
1754
1923
  } | undefined;
@@ -1766,7 +1935,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1766
1935
  status: "Accepted" | "Rejected" | "Requested";
1767
1936
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1768
1937
  type: "REJECT_CORRECTION";
1769
- requestId: string;
1938
+ requestId: string & import("zod").$brand<"UUID">;
1770
1939
  content: {
1771
1940
  reason: string;
1772
1941
  };
@@ -1857,7 +2026,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1857
2026
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1858
2027
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1859
2028
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1860
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
2029
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
1861
2030
  status: "Rejected";
1862
2031
  })[];
1863
2032
  trackingId: string;
@@ -1869,18 +2038,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1869
2038
  ctx: Partial<{
1870
2039
  token: `Bearer ${string}`;
1871
2040
  user: {
1872
- id: string & import("zod").$brand<"UUID">;
1873
- type: "system";
1874
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1875
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1876
- signature?: undefined;
1877
- } | {
1878
2041
  id: string & import("zod").$brand<"UUID">;
1879
2042
  role: string;
1880
2043
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1881
2044
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1882
2045
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1883
2046
  type: "user";
2047
+ } | {
2048
+ id: string & import("zod").$brand<"UUID">;
2049
+ type: "system";
2050
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2051
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2052
+ signature?: undefined;
1884
2053
  };
1885
2054
  }>;
1886
2055
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2009,9 +2178,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2009
2178
  waitFor?: boolean | undefined;
2010
2179
  createdAtLocation?: string | null | undefined;
2011
2180
  type?: "ARCHIVE" | undefined;
2012
- content: {
2181
+ content?: {
2013
2182
  reason: string;
2014
- };
2183
+ } | undefined;
2015
2184
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2016
2185
  eventId: string;
2017
2186
  transactionId: string;
@@ -2024,6 +2193,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2024
2193
  waitFor?: boolean | undefined;
2025
2194
  createdAtLocation?: string | null | undefined;
2026
2195
  type?: "UNARCHIVE" | undefined;
2196
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2197
+ eventId: string;
2198
+ transactionId: string;
2199
+ declaration?: Record<string, unknown> | undefined;
2200
+ annotation?: Record<string, unknown> | undefined;
2201
+ originalActionId?: string | undefined;
2202
+ keepAssignment?: boolean | undefined;
2203
+ keepAssignmentIfAccepted?: boolean | undefined;
2204
+ keepAssignmentIfRejected?: boolean | undefined;
2205
+ waitFor?: boolean | undefined;
2206
+ createdAtLocation?: string | null | undefined;
2207
+ type?: "REVOKE_REGISTRATION" | undefined;
2208
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2209
+ eventId: string;
2210
+ transactionId: string;
2211
+ declaration?: Record<string, unknown> | undefined;
2212
+ annotation?: Record<string, unknown> | undefined;
2213
+ originalActionId?: string | undefined;
2214
+ keepAssignment?: boolean | undefined;
2215
+ keepAssignmentIfAccepted?: boolean | undefined;
2216
+ keepAssignmentIfRejected?: boolean | undefined;
2217
+ waitFor?: boolean | undefined;
2218
+ createdAtLocation?: string | null | undefined;
2219
+ type?: "REINSTATE_REGISTRATION" | undefined;
2027
2220
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2028
2221
  eventId: string;
2029
2222
  transactionId: string;
@@ -2278,9 +2471,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2278
2471
  status: "Accepted" | "Rejected" | "Requested";
2279
2472
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2280
2473
  type: "ARCHIVE";
2281
- content: {
2474
+ content?: {
2282
2475
  reason: string;
2283
- };
2476
+ } | undefined;
2284
2477
  } | {
2285
2478
  id: string & import("zod").$brand<"UUID">;
2286
2479
  transactionId: string;
@@ -2295,6 +2488,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2295
2488
  status: "Accepted" | "Rejected" | "Requested";
2296
2489
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2297
2490
  type: "UNARCHIVE";
2491
+ } | {
2492
+ id: string & import("zod").$brand<"UUID">;
2493
+ transactionId: string;
2494
+ createdByUserType: "system" | "user";
2495
+ createdAt: string;
2496
+ createdBy: string;
2497
+ createdByRole?: string | undefined;
2498
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2499
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2500
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2501
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2502
+ status: "Accepted" | "Rejected" | "Requested";
2503
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2504
+ type: "REVOKE_REGISTRATION";
2505
+ } | {
2506
+ id: string & import("zod").$brand<"UUID">;
2507
+ transactionId: string;
2508
+ createdByUserType: "system" | "user";
2509
+ createdAt: string;
2510
+ createdBy: string;
2511
+ createdByRole?: string | undefined;
2512
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2513
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2514
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2515
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2516
+ status: "Accepted" | "Rejected" | "Requested";
2517
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2518
+ type: "REINSTATE_REGISTRATION";
2298
2519
  } | {
2299
2520
  id: string & import("zod").$brand<"UUID">;
2300
2521
  transactionId: string;
@@ -2381,7 +2602,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2602
  status: "Accepted" | "Rejected" | "Requested";
2382
2603
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2383
2604
  type: "APPROVE_CORRECTION";
2384
- requestId: string;
2605
+ requestId: string & import("zod").$brand<"UUID">;
2385
2606
  content?: {
2386
2607
  immediateCorrection?: boolean | undefined;
2387
2608
  } | undefined;
@@ -2399,7 +2620,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2399
2620
  status: "Accepted" | "Rejected" | "Requested";
2400
2621
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2401
2622
  type: "REJECT_CORRECTION";
2402
- requestId: string;
2623
+ requestId: string & import("zod").$brand<"UUID">;
2403
2624
  content: {
2404
2625
  reason: string;
2405
2626
  };
@@ -2490,7 +2711,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2490
2711
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2491
2712
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2492
2713
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2493
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
2714
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
2494
2715
  status: "Rejected";
2495
2716
  })[];
2496
2717
  trackingId: string;
@@ -2502,18 +2723,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2502
2723
  ctx: Partial<{
2503
2724
  token: `Bearer ${string}`;
2504
2725
  user: {
2505
- id: string & import("zod").$brand<"UUID">;
2506
- type: "system";
2507
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2508
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2509
- signature?: undefined;
2510
- } | {
2511
2726
  id: string & import("zod").$brand<"UUID">;
2512
2727
  role: string;
2513
2728
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2514
2729
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2515
2730
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2516
2731
  type: "user";
2732
+ } | {
2733
+ id: string & import("zod").$brand<"UUID">;
2734
+ type: "system";
2735
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2736
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2737
+ signature?: undefined;
2517
2738
  };
2518
2739
  }>;
2519
2740
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2647,9 +2868,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2647
2868
  waitFor?: boolean | undefined;
2648
2869
  createdAtLocation?: string | null | undefined;
2649
2870
  type?: "ARCHIVE" | undefined;
2650
- content: {
2871
+ content?: {
2651
2872
  reason: string;
2652
- };
2873
+ } | undefined;
2653
2874
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2654
2875
  eventId: string;
2655
2876
  transactionId: string;
@@ -2662,6 +2883,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2662
2883
  waitFor?: boolean | undefined;
2663
2884
  createdAtLocation?: string | null | undefined;
2664
2885
  type?: "UNARCHIVE" | undefined;
2886
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2887
+ eventId: string;
2888
+ transactionId: string;
2889
+ declaration?: Record<string, unknown> | undefined;
2890
+ annotation?: Record<string, unknown> | undefined;
2891
+ originalActionId?: string | undefined;
2892
+ keepAssignment?: boolean | undefined;
2893
+ keepAssignmentIfAccepted?: boolean | undefined;
2894
+ keepAssignmentIfRejected?: boolean | undefined;
2895
+ waitFor?: boolean | undefined;
2896
+ createdAtLocation?: string | null | undefined;
2897
+ type?: "REVOKE_REGISTRATION" | undefined;
2898
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2899
+ eventId: string;
2900
+ transactionId: string;
2901
+ declaration?: Record<string, unknown> | undefined;
2902
+ annotation?: Record<string, unknown> | undefined;
2903
+ originalActionId?: string | undefined;
2904
+ keepAssignment?: boolean | undefined;
2905
+ keepAssignmentIfAccepted?: boolean | undefined;
2906
+ keepAssignmentIfRejected?: boolean | undefined;
2907
+ waitFor?: boolean | undefined;
2908
+ createdAtLocation?: string | null | undefined;
2909
+ type?: "REINSTATE_REGISTRATION" | undefined;
2665
2910
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2666
2911
  eventId: string;
2667
2912
  transactionId: string;
@@ -2806,18 +3051,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2806
3051
  ctx: Partial<{
2807
3052
  token: `Bearer ${string}`;
2808
3053
  user: {
2809
- id: string & import("zod").$brand<"UUID">;
2810
- type: "system";
2811
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2812
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2813
- signature?: undefined;
2814
- } | {
2815
3054
  id: string & import("zod").$brand<"UUID">;
2816
3055
  role: string;
2817
3056
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2818
3057
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2819
3058
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2820
3059
  type: "user";
3060
+ } | {
3061
+ id: string & import("zod").$brand<"UUID">;
3062
+ type: "system";
3063
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3064
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3065
+ signature?: undefined;
2821
3066
  };
2822
3067
  }>;
2823
3068
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2951,9 +3196,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2951
3196
  waitFor?: boolean | undefined;
2952
3197
  createdAtLocation?: string | null | undefined;
2953
3198
  type?: "ARCHIVE" | undefined;
2954
- content: {
3199
+ content?: {
2955
3200
  reason: string;
2956
- };
3201
+ } | undefined;
2957
3202
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2958
3203
  eventId: string;
2959
3204
  transactionId: string;
@@ -2966,6 +3211,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2966
3211
  waitFor?: boolean | undefined;
2967
3212
  createdAtLocation?: string | null | undefined;
2968
3213
  type?: "UNARCHIVE" | undefined;
3214
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3215
+ eventId: string;
3216
+ transactionId: string;
3217
+ declaration?: Record<string, unknown> | undefined;
3218
+ annotation?: Record<string, unknown> | undefined;
3219
+ originalActionId?: string | undefined;
3220
+ keepAssignment?: boolean | undefined;
3221
+ keepAssignmentIfAccepted?: boolean | undefined;
3222
+ keepAssignmentIfRejected?: boolean | undefined;
3223
+ waitFor?: boolean | undefined;
3224
+ createdAtLocation?: string | null | undefined;
3225
+ type?: "REVOKE_REGISTRATION" | undefined;
3226
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3227
+ eventId: string;
3228
+ transactionId: string;
3229
+ declaration?: Record<string, unknown> | undefined;
3230
+ annotation?: Record<string, unknown> | undefined;
3231
+ originalActionId?: string | undefined;
3232
+ keepAssignment?: boolean | undefined;
3233
+ keepAssignmentIfAccepted?: boolean | undefined;
3234
+ keepAssignmentIfRejected?: boolean | undefined;
3235
+ waitFor?: boolean | undefined;
3236
+ createdAtLocation?: string | null | undefined;
3237
+ type?: "REINSTATE_REGISTRATION" | undefined;
2969
3238
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2970
3239
  eventId: string;
2971
3240
  transactionId: string;
@@ -3110,18 +3379,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3110
3379
  ctx: Partial<{
3111
3380
  token: `Bearer ${string}`;
3112
3381
  user: {
3113
- id: string & import("zod").$brand<"UUID">;
3114
- type: "system";
3115
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3116
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3117
- signature?: undefined;
3118
- } | {
3119
3382
  id: string & import("zod").$brand<"UUID">;
3120
3383
  role: string;
3121
3384
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3122
3385
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3123
3386
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3124
3387
  type: "user";
3388
+ } | {
3389
+ id: string & import("zod").$brand<"UUID">;
3390
+ type: "system";
3391
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3392
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3393
+ signature?: undefined;
3125
3394
  };
3126
3395
  }>;
3127
3396
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3255,9 +3524,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3255
3524
  waitFor?: boolean | undefined;
3256
3525
  createdAtLocation?: string | null | undefined;
3257
3526
  type?: "ARCHIVE" | undefined;
3258
- content: {
3527
+ content?: {
3259
3528
  reason: string;
3260
- };
3529
+ } | undefined;
3261
3530
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3262
3531
  eventId: string;
3263
3532
  transactionId: string;
@@ -3270,6 +3539,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3270
3539
  waitFor?: boolean | undefined;
3271
3540
  createdAtLocation?: string | null | undefined;
3272
3541
  type?: "UNARCHIVE" | undefined;
3542
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3543
+ eventId: string;
3544
+ transactionId: string;
3545
+ declaration?: Record<string, unknown> | undefined;
3546
+ annotation?: Record<string, unknown> | undefined;
3547
+ originalActionId?: string | undefined;
3548
+ keepAssignment?: boolean | undefined;
3549
+ keepAssignmentIfAccepted?: boolean | undefined;
3550
+ keepAssignmentIfRejected?: boolean | undefined;
3551
+ waitFor?: boolean | undefined;
3552
+ createdAtLocation?: string | null | undefined;
3553
+ type?: "REVOKE_REGISTRATION" | undefined;
3554
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3555
+ eventId: string;
3556
+ transactionId: string;
3557
+ declaration?: Record<string, unknown> | undefined;
3558
+ annotation?: Record<string, unknown> | undefined;
3559
+ originalActionId?: string | undefined;
3560
+ keepAssignment?: boolean | undefined;
3561
+ keepAssignmentIfAccepted?: boolean | undefined;
3562
+ keepAssignmentIfRejected?: boolean | undefined;
3563
+ waitFor?: boolean | undefined;
3564
+ createdAtLocation?: string | null | undefined;
3565
+ type?: "REINSTATE_REGISTRATION" | undefined;
3273
3566
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3274
3567
  eventId: string;
3275
3568
  transactionId: string;
@@ -3414,18 +3707,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3414
3707
  ctx: Partial<{
3415
3708
  token: `Bearer ${string}`;
3416
3709
  user: {
3417
- id: string & import("zod").$brand<"UUID">;
3418
- type: "system";
3419
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3420
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3421
- signature?: undefined;
3422
- } | {
3423
3710
  id: string & import("zod").$brand<"UUID">;
3424
3711
  role: string;
3425
3712
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3426
3713
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3427
3714
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3428
3715
  type: "user";
3716
+ } | {
3717
+ id: string & import("zod").$brand<"UUID">;
3718
+ type: "system";
3719
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3720
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3721
+ signature?: undefined;
3429
3722
  };
3430
3723
  }>;
3431
3724
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3559,9 +3852,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3559
3852
  waitFor?: boolean | undefined;
3560
3853
  createdAtLocation?: string | null | undefined;
3561
3854
  type?: "ARCHIVE" | undefined;
3562
- content: {
3855
+ content?: {
3563
3856
  reason: string;
3564
- };
3857
+ } | undefined;
3565
3858
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3566
3859
  eventId: string;
3567
3860
  transactionId: string;
@@ -3574,6 +3867,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3574
3867
  waitFor?: boolean | undefined;
3575
3868
  createdAtLocation?: string | null | undefined;
3576
3869
  type?: "UNARCHIVE" | undefined;
3870
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3871
+ eventId: string;
3872
+ transactionId: string;
3873
+ declaration?: Record<string, unknown> | undefined;
3874
+ annotation?: Record<string, unknown> | undefined;
3875
+ originalActionId?: string | undefined;
3876
+ keepAssignment?: boolean | undefined;
3877
+ keepAssignmentIfAccepted?: boolean | undefined;
3878
+ keepAssignmentIfRejected?: boolean | undefined;
3879
+ waitFor?: boolean | undefined;
3880
+ createdAtLocation?: string | null | undefined;
3881
+ type?: "REVOKE_REGISTRATION" | undefined;
3882
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3883
+ eventId: string;
3884
+ transactionId: string;
3885
+ declaration?: Record<string, unknown> | undefined;
3886
+ annotation?: Record<string, unknown> | undefined;
3887
+ originalActionId?: string | undefined;
3888
+ keepAssignment?: boolean | undefined;
3889
+ keepAssignmentIfAccepted?: boolean | undefined;
3890
+ keepAssignmentIfRejected?: boolean | undefined;
3891
+ waitFor?: boolean | undefined;
3892
+ createdAtLocation?: string | null | undefined;
3893
+ type?: "REINSTATE_REGISTRATION" | undefined;
3577
3894
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3578
3895
  eventId: string;
3579
3896
  transactionId: string;
@@ -3718,18 +4035,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3718
4035
  ctx: Partial<{
3719
4036
  token: `Bearer ${string}`;
3720
4037
  user: {
3721
- id: string & import("zod").$brand<"UUID">;
3722
- type: "system";
3723
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3724
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3725
- signature?: undefined;
3726
- } | {
3727
4038
  id: string & import("zod").$brand<"UUID">;
3728
4039
  role: string;
3729
4040
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3730
4041
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3731
4042
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3732
4043
  type: "user";
4044
+ } | {
4045
+ id: string & import("zod").$brand<"UUID">;
4046
+ type: "system";
4047
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4048
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4049
+ signature?: undefined;
3733
4050
  };
3734
4051
  }>;
3735
4052
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3863,9 +4180,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3863
4180
  waitFor?: boolean | undefined;
3864
4181
  createdAtLocation?: string | null | undefined;
3865
4182
  type?: "ARCHIVE" | undefined;
3866
- content: {
4183
+ content?: {
3867
4184
  reason: string;
3868
- };
4185
+ } | undefined;
3869
4186
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3870
4187
  eventId: string;
3871
4188
  transactionId: string;
@@ -3878,6 +4195,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3878
4195
  waitFor?: boolean | undefined;
3879
4196
  createdAtLocation?: string | null | undefined;
3880
4197
  type?: "UNARCHIVE" | undefined;
4198
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4199
+ eventId: string;
4200
+ transactionId: string;
4201
+ declaration?: Record<string, unknown> | undefined;
4202
+ annotation?: Record<string, unknown> | undefined;
4203
+ originalActionId?: string | undefined;
4204
+ keepAssignment?: boolean | undefined;
4205
+ keepAssignmentIfAccepted?: boolean | undefined;
4206
+ keepAssignmentIfRejected?: boolean | undefined;
4207
+ waitFor?: boolean | undefined;
4208
+ createdAtLocation?: string | null | undefined;
4209
+ type?: "REVOKE_REGISTRATION" | undefined;
4210
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4211
+ eventId: string;
4212
+ transactionId: string;
4213
+ declaration?: Record<string, unknown> | undefined;
4214
+ annotation?: Record<string, unknown> | undefined;
4215
+ originalActionId?: string | undefined;
4216
+ keepAssignment?: boolean | undefined;
4217
+ keepAssignmentIfAccepted?: boolean | undefined;
4218
+ keepAssignmentIfRejected?: boolean | undefined;
4219
+ waitFor?: boolean | undefined;
4220
+ createdAtLocation?: string | null | undefined;
4221
+ type?: "REINSTATE_REGISTRATION" | undefined;
3881
4222
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3882
4223
  eventId: string;
3883
4224
  transactionId: string;
@@ -4022,18 +4363,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4022
4363
  ctx: Partial<{
4023
4364
  token: `Bearer ${string}`;
4024
4365
  user: {
4025
- id: string & import("zod").$brand<"UUID">;
4026
- type: "system";
4027
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4028
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4029
- signature?: undefined;
4030
- } | {
4031
4366
  id: string & import("zod").$brand<"UUID">;
4032
4367
  role: string;
4033
4368
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4034
4369
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4035
4370
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4036
4371
  type: "user";
4372
+ } | {
4373
+ id: string & import("zod").$brand<"UUID">;
4374
+ type: "system";
4375
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4376
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4377
+ signature?: undefined;
4037
4378
  };
4038
4379
  }>;
4039
4380
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4167,9 +4508,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4167
4508
  waitFor?: boolean | undefined;
4168
4509
  createdAtLocation?: string | null | undefined;
4169
4510
  type?: "ARCHIVE" | undefined;
4170
- content: {
4511
+ content?: {
4171
4512
  reason: string;
4172
- };
4513
+ } | undefined;
4173
4514
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4174
4515
  eventId: string;
4175
4516
  transactionId: string;
@@ -4182,6 +4523,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4182
4523
  waitFor?: boolean | undefined;
4183
4524
  createdAtLocation?: string | null | undefined;
4184
4525
  type?: "UNARCHIVE" | undefined;
4526
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4527
+ eventId: string;
4528
+ transactionId: string;
4529
+ declaration?: Record<string, unknown> | undefined;
4530
+ annotation?: Record<string, unknown> | undefined;
4531
+ originalActionId?: string | undefined;
4532
+ keepAssignment?: boolean | undefined;
4533
+ keepAssignmentIfAccepted?: boolean | undefined;
4534
+ keepAssignmentIfRejected?: boolean | undefined;
4535
+ waitFor?: boolean | undefined;
4536
+ createdAtLocation?: string | null | undefined;
4537
+ type?: "REVOKE_REGISTRATION" | undefined;
4538
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4539
+ eventId: string;
4540
+ transactionId: string;
4541
+ declaration?: Record<string, unknown> | undefined;
4542
+ annotation?: Record<string, unknown> | undefined;
4543
+ originalActionId?: string | undefined;
4544
+ keepAssignment?: boolean | undefined;
4545
+ keepAssignmentIfAccepted?: boolean | undefined;
4546
+ keepAssignmentIfRejected?: boolean | undefined;
4547
+ waitFor?: boolean | undefined;
4548
+ createdAtLocation?: string | null | undefined;
4549
+ type?: "REINSTATE_REGISTRATION" | undefined;
4185
4550
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4186
4551
  eventId: string;
4187
4552
  transactionId: string;
@@ -4326,18 +4691,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4326
4691
  ctx: Partial<{
4327
4692
  token: `Bearer ${string}`;
4328
4693
  user: {
4329
- id: string & import("zod").$brand<"UUID">;
4330
- type: "system";
4331
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4332
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4333
- signature?: undefined;
4334
- } | {
4335
4694
  id: string & import("zod").$brand<"UUID">;
4336
4695
  role: string;
4337
4696
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4338
4697
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4339
4698
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4340
4699
  type: "user";
4700
+ } | {
4701
+ id: string & import("zod").$brand<"UUID">;
4702
+ type: "system";
4703
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4704
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4705
+ signature?: undefined;
4341
4706
  };
4342
4707
  }>;
4343
4708
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4466,9 +4831,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4466
4831
  waitFor?: boolean | undefined;
4467
4832
  createdAtLocation?: string | null | undefined;
4468
4833
  type?: "ARCHIVE" | undefined;
4469
- content: {
4834
+ content?: {
4470
4835
  reason: string;
4471
- };
4836
+ } | undefined;
4472
4837
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4473
4838
  eventId: string;
4474
4839
  transactionId: string;
@@ -4481,6 +4846,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4481
4846
  waitFor?: boolean | undefined;
4482
4847
  createdAtLocation?: string | null | undefined;
4483
4848
  type?: "UNARCHIVE" | undefined;
4849
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4850
+ eventId: string;
4851
+ transactionId: string;
4852
+ declaration?: Record<string, unknown> | undefined;
4853
+ annotation?: Record<string, unknown> | undefined;
4854
+ originalActionId?: string | undefined;
4855
+ keepAssignment?: boolean | undefined;
4856
+ keepAssignmentIfAccepted?: boolean | undefined;
4857
+ keepAssignmentIfRejected?: boolean | undefined;
4858
+ waitFor?: boolean | undefined;
4859
+ createdAtLocation?: string | null | undefined;
4860
+ type?: "REVOKE_REGISTRATION" | undefined;
4861
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4862
+ eventId: string;
4863
+ transactionId: string;
4864
+ declaration?: Record<string, unknown> | undefined;
4865
+ annotation?: Record<string, unknown> | undefined;
4866
+ originalActionId?: string | undefined;
4867
+ keepAssignment?: boolean | undefined;
4868
+ keepAssignmentIfAccepted?: boolean | undefined;
4869
+ keepAssignmentIfRejected?: boolean | undefined;
4870
+ waitFor?: boolean | undefined;
4871
+ createdAtLocation?: string | null | undefined;
4872
+ type?: "REINSTATE_REGISTRATION" | undefined;
4484
4873
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4485
4874
  eventId: string;
4486
4875
  transactionId: string;
@@ -4736,9 +5125,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4736
5125
  status: "Accepted" | "Rejected" | "Requested";
4737
5126
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4738
5127
  type: "ARCHIVE";
4739
- content: {
5128
+ content?: {
4740
5129
  reason: string;
4741
- };
5130
+ } | undefined;
4742
5131
  } | {
4743
5132
  id: string & import("zod").$brand<"UUID">;
4744
5133
  transactionId: string;
@@ -4753,6 +5142,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4753
5142
  status: "Accepted" | "Rejected" | "Requested";
4754
5143
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4755
5144
  type: "UNARCHIVE";
5145
+ } | {
5146
+ id: string & import("zod").$brand<"UUID">;
5147
+ transactionId: string;
5148
+ createdByUserType: "system" | "user";
5149
+ createdAt: string;
5150
+ createdBy: string;
5151
+ createdByRole?: string | undefined;
5152
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5153
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5154
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5155
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5156
+ status: "Accepted" | "Rejected" | "Requested";
5157
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5158
+ type: "REVOKE_REGISTRATION";
5159
+ } | {
5160
+ id: string & import("zod").$brand<"UUID">;
5161
+ transactionId: string;
5162
+ createdByUserType: "system" | "user";
5163
+ createdAt: string;
5164
+ createdBy: string;
5165
+ createdByRole?: string | undefined;
5166
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5167
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5168
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5169
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5170
+ status: "Accepted" | "Rejected" | "Requested";
5171
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5172
+ type: "REINSTATE_REGISTRATION";
4756
5173
  } | {
4757
5174
  id: string & import("zod").$brand<"UUID">;
4758
5175
  transactionId: string;
@@ -4839,7 +5256,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4839
5256
  status: "Accepted" | "Rejected" | "Requested";
4840
5257
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4841
5258
  type: "APPROVE_CORRECTION";
4842
- requestId: string;
5259
+ requestId: string & import("zod").$brand<"UUID">;
4843
5260
  content?: {
4844
5261
  immediateCorrection?: boolean | undefined;
4845
5262
  } | undefined;
@@ -4857,7 +5274,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4857
5274
  status: "Accepted" | "Rejected" | "Requested";
4858
5275
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4859
5276
  type: "REJECT_CORRECTION";
4860
- requestId: string;
5277
+ requestId: string & import("zod").$brand<"UUID">;
4861
5278
  content: {
4862
5279
  reason: string;
4863
5280
  };
@@ -4948,7 +5365,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4948
5365
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4949
5366
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4950
5367
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4951
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5368
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
4952
5369
  status: "Rejected";
4953
5370
  })[];
4954
5371
  trackingId: string;
@@ -4960,18 +5377,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4960
5377
  ctx: Partial<{
4961
5378
  token: `Bearer ${string}`;
4962
5379
  user: {
4963
- id: string & import("zod").$brand<"UUID">;
4964
- type: "system";
4965
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4966
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4967
- signature?: undefined;
4968
- } | {
4969
5380
  id: string & import("zod").$brand<"UUID">;
4970
5381
  role: string;
4971
5382
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4972
5383
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4973
5384
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4974
5385
  type: "user";
5386
+ } | {
5387
+ id: string & import("zod").$brand<"UUID">;
5388
+ type: "system";
5389
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5390
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5391
+ signature?: undefined;
4975
5392
  };
4976
5393
  }>;
4977
5394
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4998,6 +5415,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
5415
  type: string;
4999
5416
  createdAt: string;
5000
5417
  updatedAt: string;
5418
+ trackingId: string;
5001
5419
  actions: ({
5002
5420
  id: string & import("zod").$brand<"UUID">;
5003
5421
  transactionId: string;
@@ -5094,9 +5512,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5094
5512
  status: "Accepted" | "Rejected" | "Requested";
5095
5513
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5096
5514
  type: "ARCHIVE";
5097
- content: {
5515
+ content?: {
5098
5516
  reason: string;
5099
- };
5517
+ } | undefined;
5100
5518
  } | {
5101
5519
  id: string & import("zod").$brand<"UUID">;
5102
5520
  transactionId: string;
@@ -5111,6 +5529,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5111
5529
  status: "Accepted" | "Rejected" | "Requested";
5112
5530
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5113
5531
  type: "UNARCHIVE";
5532
+ } | {
5533
+ id: string & import("zod").$brand<"UUID">;
5534
+ transactionId: string;
5535
+ createdByUserType: "system" | "user";
5536
+ createdAt: string;
5537
+ createdBy: string;
5538
+ createdByRole?: string | undefined;
5539
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5540
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5541
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5542
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5543
+ status: "Accepted" | "Rejected" | "Requested";
5544
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5545
+ type: "REVOKE_REGISTRATION";
5546
+ } | {
5547
+ id: string & import("zod").$brand<"UUID">;
5548
+ transactionId: string;
5549
+ createdByUserType: "system" | "user";
5550
+ createdAt: string;
5551
+ createdBy: string;
5552
+ createdByRole?: string | undefined;
5553
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5554
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5555
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5556
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5557
+ status: "Accepted" | "Rejected" | "Requested";
5558
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5559
+ type: "REINSTATE_REGISTRATION";
5114
5560
  } | {
5115
5561
  id: string & import("zod").$brand<"UUID">;
5116
5562
  transactionId: string;
@@ -5197,7 +5643,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5197
5643
  status: "Accepted" | "Rejected" | "Requested";
5198
5644
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5199
5645
  type: "APPROVE_CORRECTION";
5200
- requestId: string;
5646
+ requestId: string & import("zod").$brand<"UUID">;
5201
5647
  content?: {
5202
5648
  immediateCorrection?: boolean | undefined;
5203
5649
  } | undefined;
@@ -5215,7 +5661,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5215
5661
  status: "Accepted" | "Rejected" | "Requested";
5216
5662
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5217
5663
  type: "REJECT_CORRECTION";
5218
- requestId: string;
5664
+ requestId: string & import("zod").$brand<"UUID">;
5219
5665
  content: {
5220
5666
  reason: string;
5221
5667
  };
@@ -5306,11 +5752,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5306
5752
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5307
5753
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5308
5754
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5309
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5755
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
5310
5756
  status: "Rejected";
5311
5757
  })[];
5312
- trackingId: string;
5313
- };
5758
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5314
5759
  meta: import("trpc-to-openapi").OpenApiMeta;
5315
5760
  }>;
5316
5761
  unassign: import("@trpc/server").TRPCMutationProcedure<{
@@ -5333,6 +5778,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5333
5778
  type: string;
5334
5779
  createdAt: string;
5335
5780
  updatedAt: string;
5781
+ trackingId: string;
5336
5782
  actions: ({
5337
5783
  id: string & import("zod").$brand<"UUID">;
5338
5784
  transactionId: string;
@@ -5429,9 +5875,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5429
5875
  status: "Accepted" | "Rejected" | "Requested";
5430
5876
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5431
5877
  type: "ARCHIVE";
5432
- content: {
5878
+ content?: {
5433
5879
  reason: string;
5434
- };
5880
+ } | undefined;
5435
5881
  } | {
5436
5882
  id: string & import("zod").$brand<"UUID">;
5437
5883
  transactionId: string;
@@ -5446,6 +5892,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5446
5892
  status: "Accepted" | "Rejected" | "Requested";
5447
5893
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5448
5894
  type: "UNARCHIVE";
5895
+ } | {
5896
+ id: string & import("zod").$brand<"UUID">;
5897
+ transactionId: string;
5898
+ createdByUserType: "system" | "user";
5899
+ createdAt: string;
5900
+ createdBy: string;
5901
+ createdByRole?: string | undefined;
5902
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5903
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5904
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5905
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5906
+ status: "Accepted" | "Rejected" | "Requested";
5907
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5908
+ type: "REVOKE_REGISTRATION";
5909
+ } | {
5910
+ id: string & import("zod").$brand<"UUID">;
5911
+ transactionId: string;
5912
+ createdByUserType: "system" | "user";
5913
+ createdAt: string;
5914
+ createdBy: string;
5915
+ createdByRole?: string | undefined;
5916
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5917
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5918
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5919
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5920
+ status: "Accepted" | "Rejected" | "Requested";
5921
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5922
+ type: "REINSTATE_REGISTRATION";
5449
5923
  } | {
5450
5924
  id: string & import("zod").$brand<"UUID">;
5451
5925
  transactionId: string;
@@ -5532,7 +6006,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5532
6006
  status: "Accepted" | "Rejected" | "Requested";
5533
6007
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5534
6008
  type: "APPROVE_CORRECTION";
5535
- requestId: string;
6009
+ requestId: string & import("zod").$brand<"UUID">;
5536
6010
  content?: {
5537
6011
  immediateCorrection?: boolean | undefined;
5538
6012
  } | undefined;
@@ -5550,7 +6024,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5550
6024
  status: "Accepted" | "Rejected" | "Requested";
5551
6025
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5552
6026
  type: "REJECT_CORRECTION";
5553
- requestId: string;
6027
+ requestId: string & import("zod").$brand<"UUID">;
5554
6028
  content: {
5555
6029
  reason: string;
5556
6030
  };
@@ -5641,11 +6115,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5641
6115
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5642
6116
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5643
6117
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5644
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
6118
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
5645
6119
  status: "Rejected";
5646
6120
  })[];
5647
- trackingId: string;
5648
- };
6121
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5649
6122
  meta: import("trpc-to-openapi").OpenApiMeta;
5650
6123
  }>;
5651
6124
  }>>;
@@ -5653,18 +6126,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5653
6126
  ctx: Partial<{
5654
6127
  token: `Bearer ${string}`;
5655
6128
  user: {
5656
- id: string & import("zod").$brand<"UUID">;
5657
- type: "system";
5658
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5659
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5660
- signature?: undefined;
5661
- } | {
5662
6129
  id: string & import("zod").$brand<"UUID">;
5663
6130
  role: string;
5664
6131
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5665
6132
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5666
6133
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5667
6134
  type: "user";
6135
+ } | {
6136
+ id: string & import("zod").$brand<"UUID">;
6137
+ type: "system";
6138
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6139
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6140
+ signature?: undefined;
5668
6141
  };
5669
6142
  }>;
5670
6143
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5675,18 +6148,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5675
6148
  ctx: Partial<{
5676
6149
  token: `Bearer ${string}`;
5677
6150
  user: {
5678
- id: string & import("zod").$brand<"UUID">;
5679
- type: "system";
5680
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5681
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5682
- signature?: undefined;
5683
- } | {
5684
6151
  id: string & import("zod").$brand<"UUID">;
5685
6152
  role: string;
5686
6153
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5687
6154
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5688
6155
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5689
6156
  type: "user";
6157
+ } | {
6158
+ id: string & import("zod").$brand<"UUID">;
6159
+ type: "system";
6160
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6161
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6162
+ signature?: undefined;
5690
6163
  };
5691
6164
  }>;
5692
6165
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5820,9 +6293,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5820
6293
  waitFor?: boolean | undefined;
5821
6294
  createdAtLocation?: string | null | undefined;
5822
6295
  type?: "ARCHIVE" | undefined;
5823
- content: {
6296
+ content?: {
5824
6297
  reason: string;
5825
- };
6298
+ } | undefined;
5826
6299
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5827
6300
  eventId: string;
5828
6301
  transactionId: string;
@@ -5846,8 +6319,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5846
6319
  keepAssignmentIfRejected?: boolean | undefined;
5847
6320
  waitFor?: boolean | undefined;
5848
6321
  createdAtLocation?: string | null | undefined;
5849
- type: "ASSIGN";
5850
- assignedTo: string;
6322
+ type?: "REVOKE_REGISTRATION" | undefined;
5851
6323
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5852
6324
  eventId: string;
5853
6325
  transactionId: string;
@@ -5859,7 +6331,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5859
6331
  keepAssignmentIfRejected?: boolean | undefined;
5860
6332
  waitFor?: boolean | undefined;
5861
6333
  createdAtLocation?: string | null | undefined;
5862
- type?: "UNASSIGN" | undefined;
6334
+ type?: "REINSTATE_REGISTRATION" | undefined;
6335
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6336
+ eventId: string;
6337
+ transactionId: string;
6338
+ declaration?: Record<string, unknown> | undefined;
6339
+ annotation?: Record<string, unknown> | undefined;
6340
+ originalActionId?: string | undefined;
6341
+ keepAssignment?: boolean | undefined;
6342
+ keepAssignmentIfAccepted?: boolean | undefined;
6343
+ keepAssignmentIfRejected?: boolean | undefined;
6344
+ waitFor?: boolean | undefined;
6345
+ createdAtLocation?: string | null | undefined;
6346
+ type: "ASSIGN";
6347
+ assignedTo: string;
6348
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6349
+ eventId: string;
6350
+ transactionId: string;
6351
+ declaration?: Record<string, unknown> | undefined;
6352
+ annotation?: Record<string, unknown> | undefined;
6353
+ originalActionId?: string | undefined;
6354
+ keepAssignment?: boolean | undefined;
6355
+ keepAssignmentIfAccepted?: boolean | undefined;
6356
+ keepAssignmentIfRejected?: boolean | undefined;
6357
+ waitFor?: boolean | undefined;
6358
+ createdAtLocation?: string | null | undefined;
6359
+ type?: "UNASSIGN" | undefined;
5863
6360
  assignedTo?: null | undefined;
5864
6361
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5865
6362
  eventId: string;
@@ -5979,18 +6476,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5979
6476
  ctx: Partial<{
5980
6477
  token: `Bearer ${string}`;
5981
6478
  user: {
5982
- id: string & import("zod").$brand<"UUID">;
5983
- type: "system";
5984
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5985
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5986
- signature?: undefined;
5987
- } | {
5988
6479
  id: string & import("zod").$brand<"UUID">;
5989
6480
  role: string;
5990
6481
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5991
6482
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5992
6483
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5993
6484
  type: "user";
6485
+ } | {
6486
+ id: string & import("zod").$brand<"UUID">;
6487
+ type: "system";
6488
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6489
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6490
+ signature?: undefined;
5994
6491
  };
5995
6492
  }>;
5996
6493
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6124,9 +6621,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6124
6621
  waitFor?: boolean | undefined;
6125
6622
  createdAtLocation?: string | null | undefined;
6126
6623
  type?: "ARCHIVE" | undefined;
6127
- content: {
6624
+ content?: {
6128
6625
  reason: string;
6129
- };
6626
+ } | undefined;
6130
6627
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6131
6628
  eventId: string;
6132
6629
  transactionId: string;
@@ -6139,6 +6636,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6139
6636
  waitFor?: boolean | undefined;
6140
6637
  createdAtLocation?: string | null | undefined;
6141
6638
  type?: "UNARCHIVE" | undefined;
6639
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6640
+ eventId: string;
6641
+ transactionId: string;
6642
+ declaration?: Record<string, unknown> | undefined;
6643
+ annotation?: Record<string, unknown> | undefined;
6644
+ originalActionId?: string | undefined;
6645
+ keepAssignment?: boolean | undefined;
6646
+ keepAssignmentIfAccepted?: boolean | undefined;
6647
+ keepAssignmentIfRejected?: boolean | undefined;
6648
+ waitFor?: boolean | undefined;
6649
+ createdAtLocation?: string | null | undefined;
6650
+ type?: "REVOKE_REGISTRATION" | undefined;
6651
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6652
+ eventId: string;
6653
+ transactionId: string;
6654
+ declaration?: Record<string, unknown> | undefined;
6655
+ annotation?: Record<string, unknown> | undefined;
6656
+ originalActionId?: string | undefined;
6657
+ keepAssignment?: boolean | undefined;
6658
+ keepAssignmentIfAccepted?: boolean | undefined;
6659
+ keepAssignmentIfRejected?: boolean | undefined;
6660
+ waitFor?: boolean | undefined;
6661
+ createdAtLocation?: string | null | undefined;
6662
+ type?: "REINSTATE_REGISTRATION" | undefined;
6142
6663
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6143
6664
  eventId: string;
6144
6665
  transactionId: string;
@@ -6283,18 +6804,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6283
6804
  ctx: Partial<{
6284
6805
  token: `Bearer ${string}`;
6285
6806
  user: {
6286
- id: string & import("zod").$brand<"UUID">;
6287
- type: "system";
6288
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6289
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6290
- signature?: undefined;
6291
- } | {
6292
6807
  id: string & import("zod").$brand<"UUID">;
6293
6808
  role: string;
6294
6809
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6295
6810
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6296
6811
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6297
6812
  type: "user";
6813
+ } | {
6814
+ id: string & import("zod").$brand<"UUID">;
6815
+ type: "system";
6816
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6817
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6818
+ signature?: undefined;
6298
6819
  };
6299
6820
  }>;
6300
6821
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6428,9 +6949,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6428
6949
  waitFor?: boolean | undefined;
6429
6950
  createdAtLocation?: string | null | undefined;
6430
6951
  type?: "ARCHIVE" | undefined;
6431
- content: {
6952
+ content?: {
6432
6953
  reason: string;
6433
- };
6954
+ } | undefined;
6434
6955
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6435
6956
  eventId: string;
6436
6957
  transactionId: string;
@@ -6443,6 +6964,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6443
6964
  waitFor?: boolean | undefined;
6444
6965
  createdAtLocation?: string | null | undefined;
6445
6966
  type?: "UNARCHIVE" | undefined;
6967
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6968
+ eventId: string;
6969
+ transactionId: string;
6970
+ declaration?: Record<string, unknown> | undefined;
6971
+ annotation?: Record<string, unknown> | undefined;
6972
+ originalActionId?: string | undefined;
6973
+ keepAssignment?: boolean | undefined;
6974
+ keepAssignmentIfAccepted?: boolean | undefined;
6975
+ keepAssignmentIfRejected?: boolean | undefined;
6976
+ waitFor?: boolean | undefined;
6977
+ createdAtLocation?: string | null | undefined;
6978
+ type?: "REVOKE_REGISTRATION" | undefined;
6979
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6980
+ eventId: string;
6981
+ transactionId: string;
6982
+ declaration?: Record<string, unknown> | undefined;
6983
+ annotation?: Record<string, unknown> | undefined;
6984
+ originalActionId?: string | undefined;
6985
+ keepAssignment?: boolean | undefined;
6986
+ keepAssignmentIfAccepted?: boolean | undefined;
6987
+ keepAssignmentIfRejected?: boolean | undefined;
6988
+ waitFor?: boolean | undefined;
6989
+ createdAtLocation?: string | null | undefined;
6990
+ type?: "REINSTATE_REGISTRATION" | undefined;
6446
6991
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6447
6992
  eventId: string;
6448
6993
  transactionId: string;
@@ -6584,92 +7129,771 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6584
7129
  }>;
6585
7130
  }>>;
6586
7131
  }>>;
6587
- duplicate: import("@trpc/server").TRPCBuiltRouter<{
7132
+ revocation: import("@trpc/server").TRPCBuiltRouter<{
6588
7133
  ctx: Partial<{
6589
7134
  token: `Bearer ${string}`;
6590
7135
  user: {
6591
- id: string & import("zod").$brand<"UUID">;
6592
- type: "system";
6593
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6594
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6595
- signature?: undefined;
6596
- } | {
6597
7136
  id: string & import("zod").$brand<"UUID">;
6598
7137
  role: string;
6599
7138
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6600
7139
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6601
7140
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6602
7141
  type: "user";
7142
+ } | {
7143
+ id: string & import("zod").$brand<"UUID">;
7144
+ type: "system";
7145
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7146
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7147
+ signature?: undefined;
6603
7148
  };
6604
7149
  }>;
6605
7150
  meta: import("trpc-to-openapi").OpenApiMeta;
6606
7151
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6607
7152
  transformer: true;
6608
7153
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6609
- markAsDuplicate: import("@trpc/server").TRPCMutationProcedure<{
6610
- input: {
6611
- eventId: string;
6612
- transactionId: string;
6613
- declaration?: Record<string, unknown> | undefined;
6614
- annotation?: Record<string, unknown> | undefined;
6615
- originalActionId?: string | undefined;
6616
- keepAssignment?: boolean | undefined;
6617
- keepAssignmentIfAccepted?: boolean | undefined;
6618
- keepAssignmentIfRejected?: boolean | undefined;
6619
- waitFor?: boolean | undefined;
6620
- createdAtLocation?: string | null | undefined;
6621
- type?: "MARK_AS_DUPLICATE" | undefined;
6622
- content?: {
6623
- duplicateOf: string;
6624
- } | undefined;
6625
- };
6626
- output: {
6627
- id: string & import("zod").$brand<"UUID">;
6628
- type: string;
6629
- createdAt: string;
6630
- updatedAt: string;
6631
- actions: ({
7154
+ revoke: import("@trpc/server").TRPCBuiltRouter<{
7155
+ ctx: Partial<{
7156
+ token: `Bearer ${string}`;
7157
+ user: {
6632
7158
  id: string & import("zod").$brand<"UUID">;
6633
- transactionId: string;
6634
- createdByUserType: "system" | "user";
6635
- createdAt: string;
6636
- createdBy: string;
6637
- createdByRole?: string | undefined;
6638
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6639
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6640
- declaration: Record<string, import("../commons").FieldUpdateValue>;
6641
- annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6642
- status: "Accepted" | "Rejected" | "Requested";
6643
- originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6644
- type: "CREATE";
7159
+ role: string;
7160
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7161
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
7162
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7163
+ type: "user";
6645
7164
  } | {
6646
7165
  id: string & import("zod").$brand<"UUID">;
7166
+ type: "system";
7167
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7168
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7169
+ signature?: undefined;
7170
+ };
7171
+ }>;
7172
+ meta: import("trpc-to-openapi").OpenApiMeta;
7173
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7174
+ transformer: true;
7175
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7176
+ request: import("@trpc/server").TRPCMutationProcedure<{
7177
+ input: import("../commons").ActionInput;
7178
+ output: import("../commons").EventDocument;
7179
+ meta: import("trpc-to-openapi").OpenApiMeta;
7180
+ }>;
7181
+ accept: import("@trpc/server").TRPCMutationProcedure<{
7182
+ input: (Omit<{
7183
+ eventId: string;
6647
7184
  transactionId: string;
6648
- createdByUserType: "system" | "user";
6649
- createdAt: string;
6650
- createdBy: string;
6651
- createdByRole?: string | undefined;
6652
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6653
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6654
- declaration: Record<string, import("../commons").FieldUpdateValue>;
6655
- annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6656
- status: "Accepted" | "Rejected" | "Requested";
6657
- originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6658
- type: "REJECT";
7185
+ declaration?: Record<string, unknown> | undefined;
7186
+ annotation?: Record<string, unknown> | undefined;
7187
+ originalActionId?: string | undefined;
7188
+ keepAssignment?: boolean | undefined;
7189
+ keepAssignmentIfAccepted?: boolean | undefined;
7190
+ keepAssignmentIfRejected?: boolean | undefined;
7191
+ waitFor?: boolean | undefined;
7192
+ type?: "CREATE" | undefined;
7193
+ createdAtLocation?: string | null | undefined;
7194
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7195
+ eventId: string;
7196
+ transactionId: string;
7197
+ declaration?: Record<string, unknown> | undefined;
7198
+ annotation?: Record<string, unknown> | undefined;
7199
+ originalActionId?: string | undefined;
7200
+ keepAssignment?: boolean | undefined;
7201
+ keepAssignmentIfAccepted?: boolean | undefined;
7202
+ keepAssignmentIfRejected?: boolean | undefined;
7203
+ waitFor?: boolean | undefined;
7204
+ createdAtLocation?: string | null | undefined;
7205
+ type?: "REGISTER" | undefined;
7206
+ registrationNumber?: string | undefined;
7207
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7208
+ eventId: string;
7209
+ transactionId: string;
7210
+ declaration?: Record<string, unknown> | undefined;
7211
+ annotation?: Record<string, unknown> | undefined;
7212
+ originalActionId?: string | undefined;
7213
+ keepAssignment?: boolean | undefined;
7214
+ keepAssignmentIfAccepted?: boolean | undefined;
7215
+ keepAssignmentIfRejected?: boolean | undefined;
7216
+ waitFor?: boolean | undefined;
7217
+ type?: "NOTIFY" | undefined;
7218
+ createdAtLocation?: string | null | undefined;
7219
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7220
+ eventId: string;
7221
+ transactionId: string;
7222
+ declaration?: Record<string, unknown> | undefined;
7223
+ annotation?: Record<string, unknown> | undefined;
7224
+ originalActionId?: string | undefined;
7225
+ keepAssignment?: boolean | undefined;
7226
+ keepAssignmentIfAccepted?: boolean | undefined;
7227
+ keepAssignmentIfRejected?: boolean | undefined;
7228
+ waitFor?: boolean | undefined;
7229
+ createdAtLocation?: string | null | undefined;
7230
+ type?: "DECLARE" | undefined;
7231
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7232
+ eventId: string;
7233
+ transactionId: string;
7234
+ declaration?: Record<string, unknown> | undefined;
7235
+ annotation?: Record<string, unknown> | undefined;
7236
+ originalActionId?: string | undefined;
7237
+ keepAssignment?: boolean | undefined;
7238
+ keepAssignmentIfAccepted?: boolean | undefined;
7239
+ keepAssignmentIfRejected?: boolean | undefined;
7240
+ waitFor?: boolean | undefined;
7241
+ createdAtLocation?: string | null | undefined;
7242
+ type?: "REJECT" | undefined;
6659
7243
  content: {
6660
7244
  reason: string;
6661
7245
  };
6662
- } | {
6663
- id: string & import("zod").$brand<"UUID">;
7246
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7247
+ eventId: string;
6664
7248
  transactionId: string;
6665
- createdByUserType: "system" | "user";
6666
- createdAt: string;
6667
- createdBy: string;
6668
- createdByRole?: string | undefined;
6669
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6670
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6671
- declaration: Record<string, import("../commons").FieldUpdateValue>;
6672
- annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7249
+ declaration?: Record<string, unknown> | undefined;
7250
+ annotation?: Record<string, unknown> | undefined;
7251
+ originalActionId?: string | undefined;
7252
+ keepAssignment?: boolean | undefined;
7253
+ keepAssignmentIfAccepted?: boolean | undefined;
7254
+ keepAssignmentIfRejected?: boolean | undefined;
7255
+ waitFor?: boolean | undefined;
7256
+ createdAtLocation?: string | null | undefined;
7257
+ type?: "DUPLICATE_DETECTED" | undefined;
7258
+ content: {
7259
+ duplicates: {
7260
+ id: string;
7261
+ trackingId: string;
7262
+ }[];
7263
+ };
7264
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7265
+ eventId: string;
7266
+ transactionId: string;
7267
+ declaration?: Record<string, unknown> | undefined;
7268
+ annotation?: Record<string, unknown> | undefined;
7269
+ originalActionId?: string | undefined;
7270
+ keepAssignment?: boolean | undefined;
7271
+ keepAssignmentIfAccepted?: boolean | undefined;
7272
+ keepAssignmentIfRejected?: boolean | undefined;
7273
+ waitFor?: boolean | undefined;
7274
+ createdAtLocation?: string | null | undefined;
7275
+ type?: "MARK_AS_DUPLICATE" | undefined;
7276
+ content?: {
7277
+ duplicateOf: string;
7278
+ } | undefined;
7279
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7280
+ eventId: string;
7281
+ transactionId: string;
7282
+ declaration?: Record<string, unknown> | undefined;
7283
+ annotation?: Record<string, unknown> | undefined;
7284
+ originalActionId?: string | undefined;
7285
+ keepAssignment?: boolean | undefined;
7286
+ keepAssignmentIfAccepted?: boolean | undefined;
7287
+ keepAssignmentIfRejected?: boolean | undefined;
7288
+ waitFor?: boolean | undefined;
7289
+ createdAtLocation?: string | null | undefined;
7290
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
7291
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7292
+ eventId: string;
7293
+ transactionId: string;
7294
+ declaration?: Record<string, unknown> | undefined;
7295
+ annotation?: Record<string, unknown> | undefined;
7296
+ originalActionId?: string | undefined;
7297
+ keepAssignment?: boolean | undefined;
7298
+ keepAssignmentIfAccepted?: boolean | undefined;
7299
+ keepAssignmentIfRejected?: boolean | undefined;
7300
+ waitFor?: boolean | undefined;
7301
+ createdAtLocation?: string | null | undefined;
7302
+ type?: "ARCHIVE" | undefined;
7303
+ content?: {
7304
+ reason: string;
7305
+ } | undefined;
7306
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7307
+ eventId: string;
7308
+ transactionId: string;
7309
+ declaration?: Record<string, unknown> | undefined;
7310
+ annotation?: Record<string, unknown> | undefined;
7311
+ originalActionId?: string | undefined;
7312
+ keepAssignment?: boolean | undefined;
7313
+ keepAssignmentIfAccepted?: boolean | undefined;
7314
+ keepAssignmentIfRejected?: boolean | undefined;
7315
+ waitFor?: boolean | undefined;
7316
+ createdAtLocation?: string | null | undefined;
7317
+ type?: "UNARCHIVE" | undefined;
7318
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7319
+ eventId: string;
7320
+ transactionId: string;
7321
+ declaration?: Record<string, unknown> | undefined;
7322
+ annotation?: Record<string, unknown> | undefined;
7323
+ originalActionId?: string | undefined;
7324
+ keepAssignment?: boolean | undefined;
7325
+ keepAssignmentIfAccepted?: boolean | undefined;
7326
+ keepAssignmentIfRejected?: boolean | undefined;
7327
+ waitFor?: boolean | undefined;
7328
+ createdAtLocation?: string | null | undefined;
7329
+ type?: "REVOKE_REGISTRATION" | undefined;
7330
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7331
+ eventId: string;
7332
+ transactionId: string;
7333
+ declaration?: Record<string, unknown> | undefined;
7334
+ annotation?: Record<string, unknown> | undefined;
7335
+ originalActionId?: string | undefined;
7336
+ keepAssignment?: boolean | undefined;
7337
+ keepAssignmentIfAccepted?: boolean | undefined;
7338
+ keepAssignmentIfRejected?: boolean | undefined;
7339
+ waitFor?: boolean | undefined;
7340
+ createdAtLocation?: string | null | undefined;
7341
+ type?: "REINSTATE_REGISTRATION" | undefined;
7342
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7343
+ eventId: string;
7344
+ transactionId: string;
7345
+ declaration?: Record<string, unknown> | undefined;
7346
+ annotation?: Record<string, unknown> | undefined;
7347
+ originalActionId?: string | undefined;
7348
+ keepAssignment?: boolean | undefined;
7349
+ keepAssignmentIfAccepted?: boolean | undefined;
7350
+ keepAssignmentIfRejected?: boolean | undefined;
7351
+ waitFor?: boolean | undefined;
7352
+ createdAtLocation?: string | null | undefined;
7353
+ type: "ASSIGN";
7354
+ assignedTo: string;
7355
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7356
+ eventId: string;
7357
+ transactionId: string;
7358
+ declaration?: Record<string, unknown> | undefined;
7359
+ annotation?: Record<string, unknown> | undefined;
7360
+ originalActionId?: string | undefined;
7361
+ keepAssignment?: boolean | undefined;
7362
+ keepAssignmentIfAccepted?: boolean | undefined;
7363
+ keepAssignmentIfRejected?: boolean | undefined;
7364
+ waitFor?: boolean | undefined;
7365
+ createdAtLocation?: string | null | undefined;
7366
+ type?: "UNASSIGN" | undefined;
7367
+ assignedTo?: null | undefined;
7368
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7369
+ eventId: string;
7370
+ transactionId: string;
7371
+ declaration?: Record<string, unknown> | undefined;
7372
+ annotation?: Record<string, unknown> | undefined;
7373
+ originalActionId?: string | undefined;
7374
+ keepAssignment?: boolean | undefined;
7375
+ keepAssignmentIfAccepted?: boolean | undefined;
7376
+ keepAssignmentIfRejected?: boolean | undefined;
7377
+ waitFor?: boolean | undefined;
7378
+ createdAtLocation?: string | null | undefined;
7379
+ type?: "PRINT_CERTIFICATE" | undefined;
7380
+ content?: {
7381
+ templateId?: string | undefined;
7382
+ } | undefined;
7383
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7384
+ eventId: string;
7385
+ transactionId: string;
7386
+ declaration?: Record<string, unknown> | undefined;
7387
+ annotation?: Record<string, unknown> | undefined;
7388
+ originalActionId?: string | undefined;
7389
+ keepAssignment?: boolean | undefined;
7390
+ keepAssignmentIfAccepted?: boolean | undefined;
7391
+ keepAssignmentIfRejected?: boolean | undefined;
7392
+ waitFor?: boolean | undefined;
7393
+ createdAtLocation?: string | null | undefined;
7394
+ type?: "REQUEST_CORRECTION" | undefined;
7395
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7396
+ eventId: string;
7397
+ transactionId: string;
7398
+ declaration?: Record<string, unknown> | undefined;
7399
+ annotation?: Record<string, unknown> | undefined;
7400
+ originalActionId?: string | undefined;
7401
+ keepAssignment?: boolean | undefined;
7402
+ keepAssignmentIfAccepted?: boolean | undefined;
7403
+ keepAssignmentIfRejected?: boolean | undefined;
7404
+ waitFor?: boolean | undefined;
7405
+ createdAtLocation?: string | null | undefined;
7406
+ requestId: string;
7407
+ type?: "REJECT_CORRECTION" | undefined;
7408
+ content: {
7409
+ reason: string;
7410
+ };
7411
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7412
+ eventId: string;
7413
+ transactionId: string;
7414
+ declaration?: Record<string, unknown> | undefined;
7415
+ annotation?: Record<string, unknown> | undefined;
7416
+ originalActionId?: string | undefined;
7417
+ keepAssignment?: boolean | undefined;
7418
+ keepAssignmentIfAccepted?: boolean | undefined;
7419
+ keepAssignmentIfRejected?: boolean | undefined;
7420
+ waitFor?: boolean | undefined;
7421
+ createdAtLocation?: string | null | undefined;
7422
+ requestId: string;
7423
+ type?: "APPROVE_CORRECTION" | undefined;
7424
+ content?: {
7425
+ immediateCorrection?: boolean | undefined;
7426
+ } | undefined;
7427
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7428
+ eventId: string;
7429
+ transactionId: string;
7430
+ declaration?: Record<string, unknown> | undefined;
7431
+ annotation?: Record<string, unknown> | undefined;
7432
+ originalActionId?: string | undefined;
7433
+ keepAssignment?: boolean | undefined;
7434
+ keepAssignmentIfAccepted?: boolean | undefined;
7435
+ keepAssignmentIfRejected?: boolean | undefined;
7436
+ waitFor?: boolean | undefined;
7437
+ createdAtLocation?: string | null | undefined;
7438
+ type?: "READ" | undefined;
7439
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7440
+ eventId: string;
7441
+ transactionId: string;
7442
+ declaration?: Record<string, unknown> | undefined;
7443
+ annotation?: Record<string, unknown> | undefined;
7444
+ originalActionId?: string | undefined;
7445
+ keepAssignment?: boolean | undefined;
7446
+ keepAssignmentIfAccepted?: boolean | undefined;
7447
+ keepAssignmentIfRejected?: boolean | undefined;
7448
+ waitFor?: boolean | undefined;
7449
+ createdAtLocation?: string | null | undefined;
7450
+ type?: "CUSTOM" | undefined;
7451
+ customActionType: string;
7452
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7453
+ eventId: string;
7454
+ transactionId: string;
7455
+ declaration?: Record<string, unknown> | undefined;
7456
+ annotation?: Record<string, unknown> | undefined;
7457
+ originalActionId?: string | undefined;
7458
+ keepAssignment?: boolean | undefined;
7459
+ keepAssignmentIfAccepted?: boolean | undefined;
7460
+ keepAssignmentIfRejected?: boolean | undefined;
7461
+ waitFor?: boolean | undefined;
7462
+ createdAtLocation?: string | null | undefined;
7463
+ type?: "EDIT" | undefined;
7464
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
7465
+ actionId: string;
7466
+ };
7467
+ output: import("../commons").EventDocument;
7468
+ meta: import("trpc-to-openapi").OpenApiMeta;
7469
+ }>;
7470
+ reject: import("@trpc/server").TRPCMutationProcedure<{
7471
+ input: import("zod").input<import("zod").ZodObject<{
7472
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
7473
+ transactionId: import("zod").ZodString;
7474
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
7475
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
7476
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
7477
+ }, import("zod/v4/core").$strip>>;
7478
+ output: import("../commons").EventDocument;
7479
+ meta: import("trpc-to-openapi").OpenApiMeta;
7480
+ }>;
7481
+ }>>;
7482
+ reinstate: import("@trpc/server").TRPCBuiltRouter<{
7483
+ ctx: Partial<{
7484
+ token: `Bearer ${string}`;
7485
+ user: {
7486
+ id: string & import("zod").$brand<"UUID">;
7487
+ role: string;
7488
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7489
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
7490
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7491
+ type: "user";
7492
+ } | {
7493
+ id: string & import("zod").$brand<"UUID">;
7494
+ type: "system";
7495
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7496
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7497
+ signature?: undefined;
7498
+ };
7499
+ }>;
7500
+ meta: import("trpc-to-openapi").OpenApiMeta;
7501
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7502
+ transformer: true;
7503
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7504
+ request: import("@trpc/server").TRPCMutationProcedure<{
7505
+ input: import("../commons").ActionInput;
7506
+ output: import("../commons").EventDocument;
7507
+ meta: import("trpc-to-openapi").OpenApiMeta;
7508
+ }>;
7509
+ accept: import("@trpc/server").TRPCMutationProcedure<{
7510
+ input: (Omit<{
7511
+ eventId: string;
7512
+ transactionId: string;
7513
+ declaration?: Record<string, unknown> | undefined;
7514
+ annotation?: Record<string, unknown> | undefined;
7515
+ originalActionId?: string | undefined;
7516
+ keepAssignment?: boolean | undefined;
7517
+ keepAssignmentIfAccepted?: boolean | undefined;
7518
+ keepAssignmentIfRejected?: boolean | undefined;
7519
+ waitFor?: boolean | undefined;
7520
+ type?: "CREATE" | undefined;
7521
+ createdAtLocation?: string | null | undefined;
7522
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7523
+ eventId: string;
7524
+ transactionId: string;
7525
+ declaration?: Record<string, unknown> | undefined;
7526
+ annotation?: Record<string, unknown> | undefined;
7527
+ originalActionId?: string | undefined;
7528
+ keepAssignment?: boolean | undefined;
7529
+ keepAssignmentIfAccepted?: boolean | undefined;
7530
+ keepAssignmentIfRejected?: boolean | undefined;
7531
+ waitFor?: boolean | undefined;
7532
+ createdAtLocation?: string | null | undefined;
7533
+ type?: "REGISTER" | undefined;
7534
+ registrationNumber?: string | undefined;
7535
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7536
+ eventId: string;
7537
+ transactionId: string;
7538
+ declaration?: Record<string, unknown> | undefined;
7539
+ annotation?: Record<string, unknown> | undefined;
7540
+ originalActionId?: string | undefined;
7541
+ keepAssignment?: boolean | undefined;
7542
+ keepAssignmentIfAccepted?: boolean | undefined;
7543
+ keepAssignmentIfRejected?: boolean | undefined;
7544
+ waitFor?: boolean | undefined;
7545
+ type?: "NOTIFY" | undefined;
7546
+ createdAtLocation?: string | null | undefined;
7547
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7548
+ eventId: string;
7549
+ transactionId: string;
7550
+ declaration?: Record<string, unknown> | undefined;
7551
+ annotation?: Record<string, unknown> | undefined;
7552
+ originalActionId?: string | undefined;
7553
+ keepAssignment?: boolean | undefined;
7554
+ keepAssignmentIfAccepted?: boolean | undefined;
7555
+ keepAssignmentIfRejected?: boolean | undefined;
7556
+ waitFor?: boolean | undefined;
7557
+ createdAtLocation?: string | null | undefined;
7558
+ type?: "DECLARE" | undefined;
7559
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7560
+ eventId: string;
7561
+ transactionId: string;
7562
+ declaration?: Record<string, unknown> | undefined;
7563
+ annotation?: Record<string, unknown> | undefined;
7564
+ originalActionId?: string | undefined;
7565
+ keepAssignment?: boolean | undefined;
7566
+ keepAssignmentIfAccepted?: boolean | undefined;
7567
+ keepAssignmentIfRejected?: boolean | undefined;
7568
+ waitFor?: boolean | undefined;
7569
+ createdAtLocation?: string | null | undefined;
7570
+ type?: "REJECT" | undefined;
7571
+ content: {
7572
+ reason: string;
7573
+ };
7574
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7575
+ eventId: string;
7576
+ transactionId: string;
7577
+ declaration?: Record<string, unknown> | undefined;
7578
+ annotation?: Record<string, unknown> | undefined;
7579
+ originalActionId?: string | undefined;
7580
+ keepAssignment?: boolean | undefined;
7581
+ keepAssignmentIfAccepted?: boolean | undefined;
7582
+ keepAssignmentIfRejected?: boolean | undefined;
7583
+ waitFor?: boolean | undefined;
7584
+ createdAtLocation?: string | null | undefined;
7585
+ type?: "DUPLICATE_DETECTED" | undefined;
7586
+ content: {
7587
+ duplicates: {
7588
+ id: string;
7589
+ trackingId: string;
7590
+ }[];
7591
+ };
7592
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7593
+ eventId: string;
7594
+ transactionId: string;
7595
+ declaration?: Record<string, unknown> | undefined;
7596
+ annotation?: Record<string, unknown> | undefined;
7597
+ originalActionId?: string | undefined;
7598
+ keepAssignment?: boolean | undefined;
7599
+ keepAssignmentIfAccepted?: boolean | undefined;
7600
+ keepAssignmentIfRejected?: boolean | undefined;
7601
+ waitFor?: boolean | undefined;
7602
+ createdAtLocation?: string | null | undefined;
7603
+ type?: "MARK_AS_DUPLICATE" | undefined;
7604
+ content?: {
7605
+ duplicateOf: string;
7606
+ } | undefined;
7607
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7608
+ eventId: string;
7609
+ transactionId: string;
7610
+ declaration?: Record<string, unknown> | undefined;
7611
+ annotation?: Record<string, unknown> | undefined;
7612
+ originalActionId?: string | undefined;
7613
+ keepAssignment?: boolean | undefined;
7614
+ keepAssignmentIfAccepted?: boolean | undefined;
7615
+ keepAssignmentIfRejected?: boolean | undefined;
7616
+ waitFor?: boolean | undefined;
7617
+ createdAtLocation?: string | null | undefined;
7618
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
7619
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7620
+ eventId: string;
7621
+ transactionId: string;
7622
+ declaration?: Record<string, unknown> | undefined;
7623
+ annotation?: Record<string, unknown> | undefined;
7624
+ originalActionId?: string | undefined;
7625
+ keepAssignment?: boolean | undefined;
7626
+ keepAssignmentIfAccepted?: boolean | undefined;
7627
+ keepAssignmentIfRejected?: boolean | undefined;
7628
+ waitFor?: boolean | undefined;
7629
+ createdAtLocation?: string | null | undefined;
7630
+ type?: "ARCHIVE" | undefined;
7631
+ content?: {
7632
+ reason: string;
7633
+ } | undefined;
7634
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7635
+ eventId: string;
7636
+ transactionId: string;
7637
+ declaration?: Record<string, unknown> | undefined;
7638
+ annotation?: Record<string, unknown> | undefined;
7639
+ originalActionId?: string | undefined;
7640
+ keepAssignment?: boolean | undefined;
7641
+ keepAssignmentIfAccepted?: boolean | undefined;
7642
+ keepAssignmentIfRejected?: boolean | undefined;
7643
+ waitFor?: boolean | undefined;
7644
+ createdAtLocation?: string | null | undefined;
7645
+ type?: "UNARCHIVE" | undefined;
7646
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7647
+ eventId: string;
7648
+ transactionId: string;
7649
+ declaration?: Record<string, unknown> | undefined;
7650
+ annotation?: Record<string, unknown> | undefined;
7651
+ originalActionId?: string | undefined;
7652
+ keepAssignment?: boolean | undefined;
7653
+ keepAssignmentIfAccepted?: boolean | undefined;
7654
+ keepAssignmentIfRejected?: boolean | undefined;
7655
+ waitFor?: boolean | undefined;
7656
+ createdAtLocation?: string | null | undefined;
7657
+ type?: "REVOKE_REGISTRATION" | undefined;
7658
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7659
+ eventId: string;
7660
+ transactionId: string;
7661
+ declaration?: Record<string, unknown> | undefined;
7662
+ annotation?: Record<string, unknown> | undefined;
7663
+ originalActionId?: string | undefined;
7664
+ keepAssignment?: boolean | undefined;
7665
+ keepAssignmentIfAccepted?: boolean | undefined;
7666
+ keepAssignmentIfRejected?: boolean | undefined;
7667
+ waitFor?: boolean | undefined;
7668
+ createdAtLocation?: string | null | undefined;
7669
+ type?: "REINSTATE_REGISTRATION" | undefined;
7670
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7671
+ eventId: string;
7672
+ transactionId: string;
7673
+ declaration?: Record<string, unknown> | undefined;
7674
+ annotation?: Record<string, unknown> | undefined;
7675
+ originalActionId?: string | undefined;
7676
+ keepAssignment?: boolean | undefined;
7677
+ keepAssignmentIfAccepted?: boolean | undefined;
7678
+ keepAssignmentIfRejected?: boolean | undefined;
7679
+ waitFor?: boolean | undefined;
7680
+ createdAtLocation?: string | null | undefined;
7681
+ type: "ASSIGN";
7682
+ assignedTo: string;
7683
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7684
+ eventId: string;
7685
+ transactionId: string;
7686
+ declaration?: Record<string, unknown> | undefined;
7687
+ annotation?: Record<string, unknown> | undefined;
7688
+ originalActionId?: string | undefined;
7689
+ keepAssignment?: boolean | undefined;
7690
+ keepAssignmentIfAccepted?: boolean | undefined;
7691
+ keepAssignmentIfRejected?: boolean | undefined;
7692
+ waitFor?: boolean | undefined;
7693
+ createdAtLocation?: string | null | undefined;
7694
+ type?: "UNASSIGN" | undefined;
7695
+ assignedTo?: null | undefined;
7696
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7697
+ eventId: string;
7698
+ transactionId: string;
7699
+ declaration?: Record<string, unknown> | undefined;
7700
+ annotation?: Record<string, unknown> | undefined;
7701
+ originalActionId?: string | undefined;
7702
+ keepAssignment?: boolean | undefined;
7703
+ keepAssignmentIfAccepted?: boolean | undefined;
7704
+ keepAssignmentIfRejected?: boolean | undefined;
7705
+ waitFor?: boolean | undefined;
7706
+ createdAtLocation?: string | null | undefined;
7707
+ type?: "PRINT_CERTIFICATE" | undefined;
7708
+ content?: {
7709
+ templateId?: string | undefined;
7710
+ } | undefined;
7711
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7712
+ eventId: string;
7713
+ transactionId: string;
7714
+ declaration?: Record<string, unknown> | undefined;
7715
+ annotation?: Record<string, unknown> | undefined;
7716
+ originalActionId?: string | undefined;
7717
+ keepAssignment?: boolean | undefined;
7718
+ keepAssignmentIfAccepted?: boolean | undefined;
7719
+ keepAssignmentIfRejected?: boolean | undefined;
7720
+ waitFor?: boolean | undefined;
7721
+ createdAtLocation?: string | null | undefined;
7722
+ type?: "REQUEST_CORRECTION" | undefined;
7723
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7724
+ eventId: string;
7725
+ transactionId: string;
7726
+ declaration?: Record<string, unknown> | undefined;
7727
+ annotation?: Record<string, unknown> | undefined;
7728
+ originalActionId?: string | undefined;
7729
+ keepAssignment?: boolean | undefined;
7730
+ keepAssignmentIfAccepted?: boolean | undefined;
7731
+ keepAssignmentIfRejected?: boolean | undefined;
7732
+ waitFor?: boolean | undefined;
7733
+ createdAtLocation?: string | null | undefined;
7734
+ requestId: string;
7735
+ type?: "REJECT_CORRECTION" | undefined;
7736
+ content: {
7737
+ reason: string;
7738
+ };
7739
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7740
+ eventId: string;
7741
+ transactionId: string;
7742
+ declaration?: Record<string, unknown> | undefined;
7743
+ annotation?: Record<string, unknown> | undefined;
7744
+ originalActionId?: string | undefined;
7745
+ keepAssignment?: boolean | undefined;
7746
+ keepAssignmentIfAccepted?: boolean | undefined;
7747
+ keepAssignmentIfRejected?: boolean | undefined;
7748
+ waitFor?: boolean | undefined;
7749
+ createdAtLocation?: string | null | undefined;
7750
+ requestId: string;
7751
+ type?: "APPROVE_CORRECTION" | undefined;
7752
+ content?: {
7753
+ immediateCorrection?: boolean | undefined;
7754
+ } | undefined;
7755
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7756
+ eventId: string;
7757
+ transactionId: string;
7758
+ declaration?: Record<string, unknown> | undefined;
7759
+ annotation?: Record<string, unknown> | undefined;
7760
+ originalActionId?: string | undefined;
7761
+ keepAssignment?: boolean | undefined;
7762
+ keepAssignmentIfAccepted?: boolean | undefined;
7763
+ keepAssignmentIfRejected?: boolean | undefined;
7764
+ waitFor?: boolean | undefined;
7765
+ createdAtLocation?: string | null | undefined;
7766
+ type?: "READ" | undefined;
7767
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7768
+ eventId: string;
7769
+ transactionId: string;
7770
+ declaration?: Record<string, unknown> | undefined;
7771
+ annotation?: Record<string, unknown> | undefined;
7772
+ originalActionId?: string | undefined;
7773
+ keepAssignment?: boolean | undefined;
7774
+ keepAssignmentIfAccepted?: boolean | undefined;
7775
+ keepAssignmentIfRejected?: boolean | undefined;
7776
+ waitFor?: boolean | undefined;
7777
+ createdAtLocation?: string | null | undefined;
7778
+ type?: "CUSTOM" | undefined;
7779
+ customActionType: string;
7780
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7781
+ eventId: string;
7782
+ transactionId: string;
7783
+ declaration?: Record<string, unknown> | undefined;
7784
+ annotation?: Record<string, unknown> | undefined;
7785
+ originalActionId?: string | undefined;
7786
+ keepAssignment?: boolean | undefined;
7787
+ keepAssignmentIfAccepted?: boolean | undefined;
7788
+ keepAssignmentIfRejected?: boolean | undefined;
7789
+ waitFor?: boolean | undefined;
7790
+ createdAtLocation?: string | null | undefined;
7791
+ type?: "EDIT" | undefined;
7792
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
7793
+ actionId: string;
7794
+ };
7795
+ output: import("../commons").EventDocument;
7796
+ meta: import("trpc-to-openapi").OpenApiMeta;
7797
+ }>;
7798
+ reject: import("@trpc/server").TRPCMutationProcedure<{
7799
+ input: import("zod").input<import("zod").ZodObject<{
7800
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
7801
+ transactionId: import("zod").ZodString;
7802
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
7803
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
7804
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
7805
+ }, import("zod/v4/core").$strip>>;
7806
+ output: import("../commons").EventDocument;
7807
+ meta: import("trpc-to-openapi").OpenApiMeta;
7808
+ }>;
7809
+ }>>;
7810
+ }>>;
7811
+ duplicate: import("@trpc/server").TRPCBuiltRouter<{
7812
+ ctx: Partial<{
7813
+ token: `Bearer ${string}`;
7814
+ user: {
7815
+ id: string & import("zod").$brand<"UUID">;
7816
+ role: string;
7817
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7818
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
7819
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7820
+ type: "user";
7821
+ } | {
7822
+ id: string & import("zod").$brand<"UUID">;
7823
+ type: "system";
7824
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7825
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7826
+ signature?: undefined;
7827
+ };
7828
+ }>;
7829
+ meta: import("trpc-to-openapi").OpenApiMeta;
7830
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7831
+ transformer: true;
7832
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7833
+ markAsDuplicate: import("@trpc/server").TRPCMutationProcedure<{
7834
+ input: {
7835
+ eventId: string;
7836
+ transactionId: string;
7837
+ declaration?: Record<string, unknown> | undefined;
7838
+ annotation?: Record<string, unknown> | undefined;
7839
+ originalActionId?: string | undefined;
7840
+ keepAssignment?: boolean | undefined;
7841
+ keepAssignmentIfAccepted?: boolean | undefined;
7842
+ keepAssignmentIfRejected?: boolean | undefined;
7843
+ waitFor?: boolean | undefined;
7844
+ createdAtLocation?: string | null | undefined;
7845
+ type?: "MARK_AS_DUPLICATE" | undefined;
7846
+ content?: {
7847
+ duplicateOf: string;
7848
+ } | undefined;
7849
+ };
7850
+ output: {
7851
+ id: string & import("zod").$brand<"UUID">;
7852
+ type: string;
7853
+ createdAt: string;
7854
+ updatedAt: string;
7855
+ actions: ({
7856
+ id: string & import("zod").$brand<"UUID">;
7857
+ transactionId: string;
7858
+ createdByUserType: "system" | "user";
7859
+ createdAt: string;
7860
+ createdBy: string;
7861
+ createdByRole?: string | undefined;
7862
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7863
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7864
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7865
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7866
+ status: "Accepted" | "Rejected" | "Requested";
7867
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7868
+ type: "CREATE";
7869
+ } | {
7870
+ id: string & import("zod").$brand<"UUID">;
7871
+ transactionId: string;
7872
+ createdByUserType: "system" | "user";
7873
+ createdAt: string;
7874
+ createdBy: string;
7875
+ createdByRole?: string | undefined;
7876
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7877
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7878
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7879
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7880
+ status: "Accepted" | "Rejected" | "Requested";
7881
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7882
+ type: "REJECT";
7883
+ content: {
7884
+ reason: string;
7885
+ };
7886
+ } | {
7887
+ id: string & import("zod").$brand<"UUID">;
7888
+ transactionId: string;
7889
+ createdByUserType: "system" | "user";
7890
+ createdAt: string;
7891
+ createdBy: string;
7892
+ createdByRole?: string | undefined;
7893
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7894
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7895
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7896
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6673
7897
  status: "Accepted" | "Rejected" | "Requested";
6674
7898
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6675
7899
  type: "DUPLICATE_DETECTED";
@@ -6692,7 +7916,41 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6692
7916
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6693
7917
  status: "Accepted" | "Rejected" | "Requested";
6694
7918
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6695
- type: "MARK_AS_NOT_DUPLICATE";
7919
+ type: "MARK_AS_NOT_DUPLICATE";
7920
+ } | {
7921
+ id: string & import("zod").$brand<"UUID">;
7922
+ transactionId: string;
7923
+ createdByUserType: "system" | "user";
7924
+ createdAt: string;
7925
+ createdBy: string;
7926
+ createdByRole?: string | undefined;
7927
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7928
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7929
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7930
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7931
+ status: "Accepted" | "Rejected" | "Requested";
7932
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7933
+ type: "MARK_AS_DUPLICATE";
7934
+ content?: {
7935
+ duplicateOf: string & import("zod").$brand<"UUID">;
7936
+ } | undefined;
7937
+ } | {
7938
+ id: string & import("zod").$brand<"UUID">;
7939
+ transactionId: string;
7940
+ createdByUserType: "system" | "user";
7941
+ createdAt: string;
7942
+ createdBy: string;
7943
+ createdByRole?: string | undefined;
7944
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7945
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7946
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7947
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7948
+ status: "Accepted" | "Rejected" | "Requested";
7949
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7950
+ type: "ARCHIVE";
7951
+ content?: {
7952
+ reason: string;
7953
+ } | undefined;
6696
7954
  } | {
6697
7955
  id: string & import("zod").$brand<"UUID">;
6698
7956
  transactionId: string;
@@ -6706,10 +7964,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6706
7964
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6707
7965
  status: "Accepted" | "Rejected" | "Requested";
6708
7966
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6709
- type: "MARK_AS_DUPLICATE";
6710
- content?: {
6711
- duplicateOf: string & import("zod").$brand<"UUID">;
6712
- } | undefined;
7967
+ type: "UNARCHIVE";
6713
7968
  } | {
6714
7969
  id: string & import("zod").$brand<"UUID">;
6715
7970
  transactionId: string;
@@ -6723,10 +7978,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6723
7978
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6724
7979
  status: "Accepted" | "Rejected" | "Requested";
6725
7980
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6726
- type: "ARCHIVE";
6727
- content: {
6728
- reason: string;
6729
- };
7981
+ type: "REVOKE_REGISTRATION";
6730
7982
  } | {
6731
7983
  id: string & import("zod").$brand<"UUID">;
6732
7984
  transactionId: string;
@@ -6740,7 +7992,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6740
7992
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6741
7993
  status: "Accepted" | "Rejected" | "Requested";
6742
7994
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6743
- type: "UNARCHIVE";
7995
+ type: "REINSTATE_REGISTRATION";
6744
7996
  } | {
6745
7997
  id: string & import("zod").$brand<"UUID">;
6746
7998
  transactionId: string;
@@ -6827,7 +8079,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6827
8079
  status: "Accepted" | "Rejected" | "Requested";
6828
8080
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6829
8081
  type: "APPROVE_CORRECTION";
6830
- requestId: string;
8082
+ requestId: string & import("zod").$brand<"UUID">;
6831
8083
  content?: {
6832
8084
  immediateCorrection?: boolean | undefined;
6833
8085
  } | undefined;
@@ -6845,7 +8097,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6845
8097
  status: "Accepted" | "Rejected" | "Requested";
6846
8098
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6847
8099
  type: "REJECT_CORRECTION";
6848
- requestId: string;
8100
+ requestId: string & import("zod").$brand<"UUID">;
6849
8101
  content: {
6850
8102
  reason: string;
6851
8103
  };
@@ -6936,7 +8188,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6936
8188
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6937
8189
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6938
8190
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6939
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
8191
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
6940
8192
  status: "Rejected";
6941
8193
  })[];
6942
8194
  trackingId: string;
@@ -7058,9 +8310,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7058
8310
  status: "Accepted" | "Rejected" | "Requested";
7059
8311
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7060
8312
  type: "ARCHIVE";
7061
- content: {
8313
+ content?: {
7062
8314
  reason: string;
7063
- };
8315
+ } | undefined;
7064
8316
  } | {
7065
8317
  id: string & import("zod").$brand<"UUID">;
7066
8318
  transactionId: string;
@@ -7075,6 +8327,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7075
8327
  status: "Accepted" | "Rejected" | "Requested";
7076
8328
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7077
8329
  type: "UNARCHIVE";
8330
+ } | {
8331
+ id: string & import("zod").$brand<"UUID">;
8332
+ transactionId: string;
8333
+ createdByUserType: "system" | "user";
8334
+ createdAt: string;
8335
+ createdBy: string;
8336
+ createdByRole?: string | undefined;
8337
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8338
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
8339
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
8340
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
8341
+ status: "Accepted" | "Rejected" | "Requested";
8342
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8343
+ type: "REVOKE_REGISTRATION";
8344
+ } | {
8345
+ id: string & import("zod").$brand<"UUID">;
8346
+ transactionId: string;
8347
+ createdByUserType: "system" | "user";
8348
+ createdAt: string;
8349
+ createdBy: string;
8350
+ createdByRole?: string | undefined;
8351
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8352
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
8353
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
8354
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
8355
+ status: "Accepted" | "Rejected" | "Requested";
8356
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8357
+ type: "REINSTATE_REGISTRATION";
7078
8358
  } | {
7079
8359
  id: string & import("zod").$brand<"UUID">;
7080
8360
  transactionId: string;
@@ -7161,7 +8441,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7161
8441
  status: "Accepted" | "Rejected" | "Requested";
7162
8442
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7163
8443
  type: "APPROVE_CORRECTION";
7164
- requestId: string;
8444
+ requestId: string & import("zod").$brand<"UUID">;
7165
8445
  content?: {
7166
8446
  immediateCorrection?: boolean | undefined;
7167
8447
  } | undefined;
@@ -7179,7 +8459,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7179
8459
  status: "Accepted" | "Rejected" | "Requested";
7180
8460
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7181
8461
  type: "REJECT_CORRECTION";
7182
- requestId: string;
8462
+ requestId: string & import("zod").$brand<"UUID">;
7183
8463
  content: {
7184
8464
  reason: string;
7185
8465
  };
@@ -7270,7 +8550,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7270
8550
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7271
8551
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7272
8552
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7273
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
8553
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
7274
8554
  status: "Rejected";
7275
8555
  })[];
7276
8556
  trackingId: string;
@@ -7290,7 +8570,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7290
8570
  results: {
7291
8571
  id: string & import("zod").$brand<"UUID">;
7292
8572
  type: string;
7293
- status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
8573
+ status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
7294
8574
  legalStatuses: {
7295
8575
  NOTIFIED?: {
7296
8576
  createdAt: string;
@@ -7317,6 +8597,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7317
8597
  createdByRole?: string | undefined;
7318
8598
  registrationNumber: string;
7319
8599
  } | null | undefined;
8600
+ REVOKED?: {
8601
+ createdAt: string;
8602
+ createdBy: string;
8603
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
8604
+ createdByUserType?: "system" | "user" | null | undefined;
8605
+ acceptedAt: string;
8606
+ createdByRole?: string | undefined;
8607
+ } | null | undefined;
7320
8608
  };
7321
8609
  createdAt: string;
7322
8610
  dateOfEvent?: string | null | undefined;
@@ -7443,9 +8731,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7443
8731
  status: "Accepted" | "Rejected" | "Requested";
7444
8732
  originalActionId?: string | null | undefined;
7445
8733
  type: "ARCHIVE";
7446
- content: {
8734
+ content?: {
7447
8735
  reason: string;
7448
- };
8736
+ } | undefined;
7449
8737
  } | {
7450
8738
  id: string;
7451
8739
  transactionId: string;
@@ -7460,6 +8748,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7460
8748
  status: "Accepted" | "Rejected" | "Requested";
7461
8749
  originalActionId?: string | null | undefined;
7462
8750
  type: "UNARCHIVE";
8751
+ } | {
8752
+ id: string;
8753
+ transactionId: string;
8754
+ createdByUserType: "system" | "user";
8755
+ createdAt: string;
8756
+ createdBy: string;
8757
+ createdByRole?: string | undefined;
8758
+ createdBySignature?: string | null | undefined;
8759
+ createdAtLocation?: string | null | undefined;
8760
+ declaration: Record<string, unknown>;
8761
+ annotation?: Record<string, unknown> | null | undefined;
8762
+ status: "Accepted" | "Rejected" | "Requested";
8763
+ originalActionId?: string | null | undefined;
8764
+ type: "REVOKE_REGISTRATION";
8765
+ } | {
8766
+ id: string;
8767
+ transactionId: string;
8768
+ createdByUserType: "system" | "user";
8769
+ createdAt: string;
8770
+ createdBy: string;
8771
+ createdByRole?: string | undefined;
8772
+ createdBySignature?: string | null | undefined;
8773
+ createdAtLocation?: string | null | undefined;
8774
+ declaration: Record<string, unknown>;
8775
+ annotation?: Record<string, unknown> | null | undefined;
8776
+ status: "Accepted" | "Rejected" | "Requested";
8777
+ originalActionId?: string | null | undefined;
8778
+ type: "REINSTATE_REGISTRATION";
7463
8779
  } | {
7464
8780
  id: string;
7465
8781
  transactionId: string;
@@ -7655,7 +8971,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7655
8971
  createdBySignature?: string | null | undefined;
7656
8972
  createdAtLocation?: string | null | undefined;
7657
8973
  originalActionId?: string | null | undefined;
7658
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
8974
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
7659
8975
  status: "Rejected";
7660
8976
  })[];
7661
8977
  trackingId: string;
@@ -7668,18 +8984,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7668
8984
  ctx: Partial<{
7669
8985
  token: `Bearer ${string}`;
7670
8986
  user: {
7671
- id: string & import("zod").$brand<"UUID">;
7672
- type: "system";
7673
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7674
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7675
- signature?: undefined;
7676
- } | {
7677
8987
  id: string & import("zod").$brand<"UUID">;
7678
8988
  role: string;
7679
8989
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7680
8990
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7681
8991
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7682
8992
  type: "user";
8993
+ } | {
8994
+ id: string & import("zod").$brand<"UUID">;
8995
+ type: "system";
8996
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8997
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8998
+ signature?: undefined;
7683
8999
  };
7684
9000
  }>;
7685
9001
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7862,60 +9178,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7862
9178
  })[];
7863
9179
  meta: object;
7864
9180
  }>;
7865
- actions: import("@trpc/server").TRPCQueryProcedure<{
7866
- input: {
7867
- userId: string;
7868
- skip?: number | undefined;
7869
- count?: number | undefined;
7870
- timeStart?: string | undefined;
7871
- timeEnd?: string | undefined;
7872
- actionTypes?: ("APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN")[] | undefined;
7873
- };
7874
- output: {
7875
- results: {
7876
- actionType: string;
7877
- annotation: Record<string, any> | null;
7878
- assignedTo: string | null;
7879
- content: Record<string, any> | null;
7880
- createdAt: string | null;
7881
- createdAtLocation: (string & import("zod").$brand<"UUID">) | null;
7882
- createdBy: string;
7883
- createdByRole: string | null;
7884
- createdBySignature: string | null;
7885
- createdByUserType: import("../storage/postgres/events/schema/app/UserType").default;
7886
- customActionType: string | null;
7887
- declaration: Record<string, any>;
7888
- eventId: string & import("zod").$brand<"UUID">;
7889
- eventType: string | null;
7890
- id: (string & import("zod").$brand<"UUID">) | null;
7891
- originalActionId: (string & import("zod").$brand<"UUID">) | null;
7892
- registrationNumber: string | null;
7893
- requestId: string | null;
7894
- status: import("../storage/postgres/events/schema/app/ActionStatus").default;
7895
- trackingId: string | null;
7896
- transactionId: string | null;
7897
- updatedAt: string | null;
7898
- }[];
7899
- total: number;
7900
- };
7901
- meta: import("trpc-to-openapi").OpenApiMeta;
7902
- }>;
7903
9181
  roles: import("@trpc/server").TRPCBuiltRouter<{
7904
9182
  ctx: Partial<{
7905
9183
  token: `Bearer ${string}`;
7906
9184
  user: {
7907
- id: string & import("zod").$brand<"UUID">;
7908
- type: "system";
7909
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7910
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7911
- signature?: undefined;
7912
- } | {
7913
9185
  id: string & import("zod").$brand<"UUID">;
7914
9186
  role: string;
7915
9187
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7916
9188
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7917
9189
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7918
9190
  type: "user";
9191
+ } | {
9192
+ id: string & import("zod").$brand<"UUID">;
9193
+ type: "system";
9194
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9195
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9196
+ signature?: undefined;
7919
9197
  };
7920
9198
  }>;
7921
9199
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8028,64 +9306,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8028
9306
  ctx: Partial<{
8029
9307
  token: `Bearer ${string}`;
8030
9308
  user: {
8031
- id: string & import("zod").$brand<"UUID">;
8032
- type: "system";
8033
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8034
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8035
- signature?: undefined;
8036
- } | {
8037
9309
  id: string & import("zod").$brand<"UUID">;
8038
9310
  role: string;
8039
9311
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8040
9312
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8041
9313
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8042
9314
  type: "user";
9315
+ } | {
9316
+ id: string & import("zod").$brand<"UUID">;
9317
+ type: "system";
9318
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9319
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9320
+ signature?: undefined;
8043
9321
  };
8044
9322
  }>;
8045
9323
  meta: import("trpc-to-openapi").OpenApiMeta;
8046
9324
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8047
9325
  transformer: true;
8048
9326
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8049
- record: import("@trpc/server").TRPCMutationProcedure<{
8050
- input: {
8051
- operation: "user.create_user";
8052
- requestData: {
8053
- subjectId: string;
8054
- role: string;
8055
- primaryOfficeId: string;
8056
- };
8057
- } | {
8058
- operation: "user.deactivate" | "user.reactivate";
8059
- requestData: {
8060
- subjectId: string;
8061
- reason: string;
8062
- comment?: string | undefined;
8063
- };
8064
- } | {
8065
- operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin";
8066
- requestData: {
8067
- subjectId: string;
8068
- };
8069
- } | {
8070
- operation: "user.email_address_changed";
8071
- requestData: {
8072
- subjectId: string;
8073
- };
8074
- responseSummary: {
8075
- email: string;
8076
- };
8077
- } | {
8078
- operation: "user.phone_number_changed";
8079
- requestData: {
8080
- subjectId: string;
8081
- };
8082
- responseSummary: {
8083
- phoneNumber: string;
8084
- };
8085
- };
8086
- output: void;
8087
- meta: import("trpc-to-openapi").OpenApiMeta;
8088
- }>;
8089
9327
  list: import("@trpc/server").TRPCQueryProcedure<{
8090
9328
  input: {
8091
9329
  userId: string;
@@ -8128,93 +9366,216 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8128
9366
  id: string;
8129
9367
  clientId: string;
8130
9368
  createdAt: string;
8131
- operation: "event.search";
8132
- clientType: "system";
9369
+ operation: "event.search";
9370
+ clientType: "system";
9371
+ requestData: {
9372
+ query: Record<string, unknown> | null;
9373
+ limit: number | null;
9374
+ offset: number | null;
9375
+ };
9376
+ responseSummary: {
9377
+ total: number;
9378
+ eventIds: string[];
9379
+ };
9380
+ } | {
9381
+ id: string;
9382
+ clientId: string;
9383
+ clientType: "system" | "user";
9384
+ createdAt: string;
9385
+ operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reinstate_registration.request" | "event.actions.reject.request" | "event.actions.revoke_registration.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
9386
+ requestData: {
9387
+ eventId: string;
9388
+ actionType: string;
9389
+ eventType: string;
9390
+ trackingId: string;
9391
+ transactionId: string;
9392
+ };
9393
+ } | {
9394
+ id: string;
9395
+ clientId: string;
9396
+ clientType: "system" | "user";
9397
+ createdAt: string;
9398
+ operation: "event.actions.custom.request";
9399
+ requestData: {
9400
+ eventId: string;
9401
+ actionType: "CUSTOM";
9402
+ customAction: string;
9403
+ eventType: string;
9404
+ trackingId: string;
9405
+ transactionId: string;
9406
+ };
9407
+ } | {
9408
+ id: string;
9409
+ clientId: string;
9410
+ clientType: "system" | "user";
9411
+ createdAt: string;
9412
+ operation: "integrations.create";
9413
+ requestData: {
9414
+ name: string;
9415
+ scopes: string[];
9416
+ };
9417
+ responseSummary: {
9418
+ clientId: string;
9419
+ };
9420
+ } | {
9421
+ id: string;
9422
+ clientId: string;
9423
+ clientType: "system" | "user";
9424
+ createdAt: string;
9425
+ operation: "integrations.refreshToken";
9426
+ requestData: {
9427
+ clientId: string;
9428
+ };
9429
+ responseSummary: {
9430
+ clientId: string;
9431
+ };
9432
+ } | {
9433
+ id: string;
9434
+ clientId: string;
9435
+ clientType: "system" | "user";
9436
+ createdAt: string;
9437
+ operation: "integrations.deactivate";
9438
+ requestData: {
9439
+ id: string;
9440
+ };
9441
+ responseSummary: {
9442
+ id: string;
9443
+ status: string;
9444
+ };
9445
+ } | {
9446
+ id: string;
9447
+ clientId: string;
9448
+ clientType: "system" | "user";
9449
+ createdAt: string;
9450
+ operation: "integrations.activate";
8133
9451
  requestData: {
8134
- query: Record<string, unknown> | null;
8135
- limit: number | null;
8136
- offset: number | null;
9452
+ id: string;
8137
9453
  };
8138
9454
  responseSummary: {
8139
- total: number;
8140
- eventIds: string[];
9455
+ id: string;
9456
+ status: string;
8141
9457
  };
8142
9458
  } | {
8143
9459
  id: string;
8144
9460
  clientId: string;
8145
9461
  clientType: "system" | "user";
8146
9462
  createdAt: string;
8147
- operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reject.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
9463
+ operation: "integrations.delete";
8148
9464
  requestData: {
8149
- eventId: string;
8150
- actionType: string;
8151
- eventType: string;
8152
- trackingId: string;
8153
- transactionId: string;
9465
+ id: string;
9466
+ };
9467
+ responseSummary: {
9468
+ id: string;
9469
+ name: string;
8154
9470
  };
8155
9471
  } | {
8156
9472
  id: string;
8157
9473
  clientId: string;
8158
9474
  clientType: "system" | "user";
8159
9475
  createdAt: string;
8160
- operation: "event.actions.custom.request";
9476
+ operation: "integrations.refreshSecret";
8161
9477
  requestData: {
8162
- eventId: string;
8163
- actionType: "CUSTOM";
8164
- customAction: string;
8165
- eventType: string;
8166
- trackingId: string;
8167
- transactionId: string;
9478
+ id: string;
9479
+ };
9480
+ responseSummary: {
9481
+ clientId: string;
8168
9482
  };
8169
9483
  } | {
8170
9484
  id: string;
8171
9485
  clientId: string;
8172
9486
  clientType: "system" | "user";
8173
9487
  createdAt: string;
8174
- operation: "integrations.create";
9488
+ operation: "locations.create";
8175
9489
  requestData: {
9490
+ id: string;
9491
+ versionId: string;
8176
9492
  name: string;
8177
- scopes: string[];
8178
- };
8179
- responseSummary: {
8180
- clientId: string;
9493
+ externalId?: string | null | undefined;
9494
+ effectiveFrom: string;
9495
+ status: string;
9496
+ administrativeAreaId?: string | null | undefined;
9497
+ locationType?: string | null | undefined;
8181
9498
  };
8182
9499
  } | {
8183
9500
  id: string;
8184
9501
  clientId: string;
8185
9502
  clientType: "system" | "user";
8186
9503
  createdAt: string;
8187
- operation: "integrations.refreshToken";
9504
+ operation: "locations.update";
8188
9505
  requestData: {
8189
- clientId: string;
9506
+ id: string;
9507
+ versionId: string;
9508
+ name: string;
9509
+ externalId?: string | null | undefined;
9510
+ status: string;
9511
+ effectiveFrom: string;
9512
+ lastVersionId: string;
8190
9513
  };
8191
9514
  responseSummary: {
8192
- clientId: string;
9515
+ previousVersionId: string;
9516
+ versionId: string;
9517
+ changed: {
9518
+ name?: {
9519
+ from: string;
9520
+ to: string;
9521
+ } | undefined;
9522
+ externalId?: {
9523
+ from: string | null;
9524
+ to: string | null;
9525
+ } | undefined;
9526
+ status?: {
9527
+ from: string;
9528
+ to: string;
9529
+ } | undefined;
9530
+ };
8193
9531
  };
8194
9532
  } | {
8195
9533
  id: string;
8196
9534
  clientId: string;
8197
9535
  clientType: "system" | "user";
8198
9536
  createdAt: string;
8199
- operation: "integrations.deactivate";
9537
+ operation: "administrativeAreas.update";
8200
9538
  requestData: {
8201
9539
  id: string;
9540
+ versionId: string;
9541
+ name: string;
9542
+ externalId?: string | null | undefined;
9543
+ status: string;
9544
+ effectiveFrom: string;
9545
+ lastVersionId: string;
8202
9546
  };
8203
9547
  responseSummary: {
8204
- id: string;
8205
- status: string;
9548
+ previousVersionId: string;
9549
+ versionId: string;
9550
+ changed: {
9551
+ name?: {
9552
+ from: string;
9553
+ to: string;
9554
+ } | undefined;
9555
+ externalId?: {
9556
+ from: string | null;
9557
+ to: string | null;
9558
+ } | undefined;
9559
+ status?: {
9560
+ from: string;
9561
+ to: string;
9562
+ } | undefined;
9563
+ };
8206
9564
  };
8207
9565
  } | {
8208
9566
  id: string;
8209
9567
  clientId: string;
8210
9568
  clientType: "system" | "user";
8211
9569
  createdAt: string;
8212
- operation: "integrations.activate";
9570
+ operation: "locations.withdrawVersion";
8213
9571
  requestData: {
8214
9572
  id: string;
9573
+ versionId: string;
8215
9574
  };
8216
9575
  responseSummary: {
8217
- id: string;
9576
+ effectiveFrom: string;
9577
+ name: string;
9578
+ externalId?: string | null | undefined;
8218
9579
  status: string;
8219
9580
  };
8220
9581
  } | {
@@ -8222,25 +9583,31 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8222
9583
  clientId: string;
8223
9584
  clientType: "system" | "user";
8224
9585
  createdAt: string;
8225
- operation: "integrations.delete";
9586
+ operation: "administrativeAreas.withdrawVersion";
8226
9587
  requestData: {
8227
9588
  id: string;
9589
+ versionId: string;
8228
9590
  };
8229
9591
  responseSummary: {
8230
- id: string;
9592
+ effectiveFrom: string;
8231
9593
  name: string;
9594
+ externalId?: string | null | undefined;
9595
+ status: string;
8232
9596
  };
8233
9597
  } | {
8234
9598
  id: string;
8235
9599
  clientId: string;
8236
9600
  clientType: "system" | "user";
8237
9601
  createdAt: string;
8238
- operation: "integrations.refreshSecret";
9602
+ operation: "administrativeAreas.create";
8239
9603
  requestData: {
8240
9604
  id: string;
8241
- };
8242
- responseSummary: {
8243
- clientId: string;
9605
+ versionId: string;
9606
+ name: string;
9607
+ externalId?: string | null | undefined;
9608
+ effectiveFrom: string;
9609
+ status: string;
9610
+ parentId?: string | null | undefined;
8244
9611
  };
8245
9612
  } | {
8246
9613
  id: string;
@@ -8250,6 +9617,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8250
9617
  operation: "attachments.upload";
8251
9618
  requestData: {
8252
9619
  transactionId: string;
9620
+ eventId?: string | undefined;
8253
9621
  path: string | null;
8254
9622
  };
8255
9623
  responseSummary: {
@@ -8321,18 +9689,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8321
9689
  ctx: Partial<{
8322
9690
  token: `Bearer ${string}`;
8323
9691
  user: {
8324
- id: string & import("zod").$brand<"UUID">;
8325
- type: "system";
8326
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8327
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8328
- signature?: undefined;
8329
- } | {
8330
9692
  id: string & import("zod").$brand<"UUID">;
8331
9693
  role: string;
8332
9694
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8333
9695
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8334
9696
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8335
9697
  type: "user";
9698
+ } | {
9699
+ id: string & import("zod").$brand<"UUID">;
9700
+ type: "system";
9701
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9702
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9703
+ signature?: undefined;
8336
9704
  };
8337
9705
  }>;
8338
9706
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8363,16 +9731,82 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8363
9731
  }[];
8364
9732
  meta: object;
8365
9733
  }>;
8366
- set: import("@trpc/server").TRPCMutationProcedure<{
9734
+ create: import("@trpc/server").TRPCMutationProcedure<{
8367
9735
  input: {
8368
- id: string;
9736
+ id?: string | undefined;
9737
+ versionId?: string | undefined;
8369
9738
  name: string;
8370
9739
  externalId?: string | null | undefined;
8371
9740
  administrativeAreaId: string | null;
8372
9741
  locationType: string | null;
8373
- }[];
8374
- output: void;
8375
- meta: object;
9742
+ effectiveFrom?: string | undefined;
9743
+ status?: "active" | "inactive" | undefined;
9744
+ };
9745
+ output: {
9746
+ id: string & import("zod").$brand<"UUID">;
9747
+ name: string;
9748
+ externalId?: string | null | undefined;
9749
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
9750
+ locationType: string | null;
9751
+ status: "active" | "inactive";
9752
+ versions: {
9753
+ versionId: string & import("zod").$brand<"UUID">;
9754
+ effectiveFrom: string;
9755
+ name: string;
9756
+ externalId?: string | null | undefined;
9757
+ status: "active" | "inactive";
9758
+ }[];
9759
+ };
9760
+ meta: import("trpc-to-openapi").OpenApiMeta;
9761
+ }>;
9762
+ update: import("@trpc/server").TRPCMutationProcedure<{
9763
+ input: {
9764
+ id: string;
9765
+ versionId?: string | undefined;
9766
+ name: string;
9767
+ externalId?: string | null | undefined;
9768
+ status: "active" | "inactive";
9769
+ effectiveFrom?: string | undefined;
9770
+ lastVersionId: string;
9771
+ };
9772
+ output: {
9773
+ id: string & import("zod").$brand<"UUID">;
9774
+ name: string;
9775
+ externalId?: string | null | undefined;
9776
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
9777
+ locationType: string | null;
9778
+ status: "active" | "inactive";
9779
+ versions: {
9780
+ versionId: string & import("zod").$brand<"UUID">;
9781
+ effectiveFrom: string;
9782
+ name: string;
9783
+ externalId?: string | null | undefined;
9784
+ status: "active" | "inactive";
9785
+ }[];
9786
+ };
9787
+ meta: import("trpc-to-openapi").OpenApiMeta;
9788
+ }>;
9789
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
9790
+ input: {
9791
+ id: string;
9792
+ versionId: string;
9793
+ };
9794
+ output: {
9795
+ id: string & import("zod").$brand<"UUID">;
9796
+ name: string;
9797
+ externalId?: string | null | undefined;
9798
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
9799
+ locationType: string | null;
9800
+ status: "active" | "inactive";
9801
+ versions: {
9802
+ versionId: string & import("zod").$brand<"UUID">;
9803
+ effectiveFrom: string;
9804
+ name: string;
9805
+ externalId?: string | null | undefined;
9806
+ status: "active" | "inactive";
9807
+ }[];
9808
+ };
9809
+ meta: import("trpc-to-openapi").OpenApiMeta;
8376
9810
  }>;
8377
9811
  get: import("@trpc/server").TRPCQueryProcedure<{
8378
9812
  input: {
@@ -8407,18 +9841,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8407
9841
  ctx: Partial<{
8408
9842
  token: `Bearer ${string}`;
8409
9843
  user: {
8410
- id: string & import("zod").$brand<"UUID">;
8411
- type: "system";
8412
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8413
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8414
- signature?: undefined;
8415
- } | {
8416
9844
  id: string & import("zod").$brand<"UUID">;
8417
9845
  role: string;
8418
9846
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8419
9847
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8420
9848
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8421
9849
  type: "user";
9850
+ } | {
9851
+ id: string & import("zod").$brand<"UUID">;
9852
+ type: "system";
9853
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9854
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9855
+ signature?: undefined;
8422
9856
  };
8423
9857
  }>;
8424
9858
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8429,18 +9863,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8429
9863
  ctx: Partial<{
8430
9864
  token: `Bearer ${string}`;
8431
9865
  user: {
8432
- id: string & import("zod").$brand<"UUID">;
8433
- type: "system";
8434
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8435
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8436
- signature?: undefined;
8437
- } | {
8438
9866
  id: string & import("zod").$brand<"UUID">;
8439
9867
  role: string;
8440
9868
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8441
9869
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8442
9870
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8443
9871
  type: "user";
9872
+ } | {
9873
+ id: string & import("zod").$brand<"UUID">;
9874
+ type: "system";
9875
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9876
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9877
+ signature?: undefined;
8444
9878
  };
8445
9879
  }>;
8446
9880
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8462,10 +9896,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8462
9896
  eventType?: string | undefined;
8463
9897
  status?: {
8464
9898
  type: "anyOf";
8465
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
9899
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
8466
9900
  } | {
8467
9901
  type: "exact";
8468
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
9902
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
8469
9903
  } | undefined;
8470
9904
  createdAt?: {
8471
9905
  type: "exact";
@@ -8526,6 +9960,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8526
9960
  type: "exact";
8527
9961
  term: string;
8528
9962
  } | undefined;
9963
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
9964
+ type: "within";
9965
+ location: string | {
9966
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
9967
+ $location?: string | undefined;
9968
+ };
9969
+ } | undefined;
8529
9970
  createdAtLocation?: {
8530
9971
  type: "within";
8531
9972
  location: string | {
@@ -8601,10 +10042,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8601
10042
  eventType?: string | undefined;
8602
10043
  status?: {
8603
10044
  type: "anyOf";
8604
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
10045
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
8605
10046
  } | {
8606
10047
  type: "exact";
8607
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
10048
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
8608
10049
  } | undefined;
8609
10050
  createdAt?: {
8610
10051
  type: "exact";
@@ -8665,6 +10106,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8665
10106
  type: "exact";
8666
10107
  term: string;
8667
10108
  } | undefined;
10109
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
10110
+ type: "within";
10111
+ location: string | {
10112
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
10113
+ $location?: string | undefined;
10114
+ };
10115
+ } | undefined;
8668
10116
  createdAtLocation?: {
8669
10117
  type: "within";
8670
10118
  location: string | {
@@ -8736,7 +10184,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8736
10184
  }[];
8737
10185
  };
8738
10186
  action?: {
8739
- type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REQUEST_CORRECTION" | "UNARCHIVE";
10187
+ type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
8740
10188
  } | undefined;
8741
10189
  columns: {
8742
10190
  label: {
@@ -8748,7 +10196,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8748
10196
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8749
10197
  };
8750
10198
  }[];
8751
- icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
10199
+ icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileLock" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
8752
10200
  emptyMessage?: {
8753
10201
  id: string;
8754
10202
  defaultMessage: string;
@@ -8771,18 +10219,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8771
10219
  ctx: Partial<{
8772
10220
  token: `Bearer ${string}`;
8773
10221
  user: {
8774
- id: string & import("zod").$brand<"UUID">;
8775
- type: "system";
8776
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8777
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8778
- signature?: undefined;
8779
- } | {
8780
10222
  id: string & import("zod").$brand<"UUID">;
8781
10223
  role: string;
8782
10224
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8783
10225
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8784
10226
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8785
10227
  type: "user";
10228
+ } | {
10229
+ id: string & import("zod").$brand<"UUID">;
10230
+ type: "system";
10231
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10232
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10233
+ signature?: undefined;
8786
10234
  };
8787
10235
  }>;
8788
10236
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8810,33 +10258,96 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8810
10258
  }[];
8811
10259
  meta: import("trpc-to-openapi").OpenApiMeta;
8812
10260
  }>;
8813
- set: import("@trpc/server").TRPCMutationProcedure<{
10261
+ create: import("@trpc/server").TRPCMutationProcedure<{
8814
10262
  input: {
8815
- id: string;
10263
+ id?: string | undefined;
10264
+ versionId?: string | undefined;
8816
10265
  name: string;
8817
10266
  externalId?: string | null | undefined;
8818
10267
  parentId: string | null;
8819
- }[];
8820
- output: void;
8821
- meta: object;
10268
+ effectiveFrom?: string | undefined;
10269
+ status?: "active" | "inactive" | undefined;
10270
+ };
10271
+ output: {
10272
+ id: string & import("zod").$brand<"UUID">;
10273
+ name: string;
10274
+ externalId?: string | null | undefined;
10275
+ parentId: (string & import("zod").$brand<"UUID">) | null;
10276
+ status: "active" | "inactive";
10277
+ versions: {
10278
+ versionId: string & import("zod").$brand<"UUID">;
10279
+ effectiveFrom: string;
10280
+ name: string;
10281
+ externalId?: string | null | undefined;
10282
+ status: "active" | "inactive";
10283
+ }[];
10284
+ };
10285
+ meta: import("trpc-to-openapi").OpenApiMeta;
10286
+ }>;
10287
+ update: import("@trpc/server").TRPCMutationProcedure<{
10288
+ input: {
10289
+ id: string;
10290
+ versionId?: string | undefined;
10291
+ name: string;
10292
+ externalId?: string | null | undefined;
10293
+ status: "active" | "inactive";
10294
+ effectiveFrom?: string | undefined;
10295
+ lastVersionId: string;
10296
+ };
10297
+ output: {
10298
+ id: string & import("zod").$brand<"UUID">;
10299
+ name: string;
10300
+ externalId?: string | null | undefined;
10301
+ parentId: (string & import("zod").$brand<"UUID">) | null;
10302
+ status: "active" | "inactive";
10303
+ versions: {
10304
+ versionId: string & import("zod").$brand<"UUID">;
10305
+ effectiveFrom: string;
10306
+ name: string;
10307
+ externalId?: string | null | undefined;
10308
+ status: "active" | "inactive";
10309
+ }[];
10310
+ };
10311
+ meta: import("trpc-to-openapi").OpenApiMeta;
10312
+ }>;
10313
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
10314
+ input: {
10315
+ id: string;
10316
+ versionId: string;
10317
+ };
10318
+ output: {
10319
+ id: string & import("zod").$brand<"UUID">;
10320
+ name: string;
10321
+ externalId?: string | null | undefined;
10322
+ parentId: (string & import("zod").$brand<"UUID">) | null;
10323
+ status: "active" | "inactive";
10324
+ versions: {
10325
+ versionId: string & import("zod").$brand<"UUID">;
10326
+ effectiveFrom: string;
10327
+ name: string;
10328
+ externalId?: string | null | undefined;
10329
+ status: "active" | "inactive";
10330
+ }[];
10331
+ };
10332
+ meta: import("trpc-to-openapi").OpenApiMeta;
8822
10333
  }>;
8823
10334
  }>>;
8824
10335
  integrations: import("@trpc/server").TRPCBuiltRouter<{
8825
10336
  ctx: Partial<{
8826
10337
  token: `Bearer ${string}`;
8827
10338
  user: {
8828
- id: string & import("zod").$brand<"UUID">;
8829
- type: "system";
8830
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8831
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8832
- signature?: undefined;
8833
- } | {
8834
10339
  id: string & import("zod").$brand<"UUID">;
8835
10340
  role: string;
8836
10341
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8837
10342
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8838
10343
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8839
10344
  type: "user";
10345
+ } | {
10346
+ id: string & import("zod").$brand<"UUID">;
10347
+ type: "system";
10348
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10349
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10350
+ signature?: undefined;
8840
10351
  };
8841
10352
  }>;
8842
10353
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8847,6 +10358,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8847
10358
  input: {
8848
10359
  name: string;
8849
10360
  scopes: string[];
10361
+ credentials?: {
10362
+ clientId: string;
10363
+ clientSecret: string;
10364
+ } | undefined;
8850
10365
  };
8851
10366
  output: {
8852
10367
  clientId: string;
@@ -8877,7 +10392,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8877
10392
  scopes: string[];
8878
10393
  status: string;
8879
10394
  createdAt: string;
8880
- createdBy: string & import("zod").$brand<"UUID">;
10395
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8881
10396
  }[];
8882
10397
  meta: import("trpc-to-openapi").OpenApiMeta;
8883
10398
  }>;
@@ -8892,7 +10407,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8892
10407
  status: string;
8893
10408
  shaSecret: string | null;
8894
10409
  createdAt: string;
8895
- createdBy: string & import("zod").$brand<"UUID">;
10410
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8896
10411
  };
8897
10412
  meta: import("trpc-to-openapi").OpenApiMeta;
8898
10413
  }>;
@@ -8938,23 +10453,381 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8938
10453
  };
8939
10454
  meta: import("trpc-to-openapi").OpenApiMeta;
8940
10455
  }>;
10456
+ audit: import("@trpc/server").TRPCQueryProcedure<{
10457
+ input: {
10458
+ id: string;
10459
+ skip?: number | undefined;
10460
+ count?: number | undefined;
10461
+ timeStart?: string | undefined;
10462
+ timeEnd?: string | undefined;
10463
+ };
10464
+ output: {
10465
+ results: ({
10466
+ id: string;
10467
+ clientId: string;
10468
+ clientType: "system" | "user";
10469
+ createdAt: string;
10470
+ operation: "event.create";
10471
+ requestData: {
10472
+ transactionId: string;
10473
+ type: string;
10474
+ createdAtLocation: string | null;
10475
+ };
10476
+ responseSummary: {
10477
+ eventId: string;
10478
+ trackingId: string;
10479
+ };
10480
+ } | {
10481
+ id: string;
10482
+ clientId: string;
10483
+ clientType: "system" | "user";
10484
+ createdAt: string;
10485
+ operation: "event.get";
10486
+ requestData: {
10487
+ eventId: string;
10488
+ };
10489
+ responseSummary: {
10490
+ eventType: string;
10491
+ trackingId: string;
10492
+ };
10493
+ } | {
10494
+ id: string;
10495
+ clientId: string;
10496
+ createdAt: string;
10497
+ operation: "event.search";
10498
+ clientType: "system";
10499
+ requestData: {
10500
+ query: Record<string, unknown> | null;
10501
+ limit: number | null;
10502
+ offset: number | null;
10503
+ };
10504
+ responseSummary: {
10505
+ total: number;
10506
+ eventIds: string[];
10507
+ };
10508
+ } | {
10509
+ id: string;
10510
+ clientId: string;
10511
+ clientType: "system" | "user";
10512
+ createdAt: string;
10513
+ operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reinstate_registration.request" | "event.actions.reject.request" | "event.actions.revoke_registration.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
10514
+ requestData: {
10515
+ eventId: string;
10516
+ actionType: string;
10517
+ eventType: string;
10518
+ trackingId: string;
10519
+ transactionId: string;
10520
+ };
10521
+ } | {
10522
+ id: string;
10523
+ clientId: string;
10524
+ clientType: "system" | "user";
10525
+ createdAt: string;
10526
+ operation: "event.actions.custom.request";
10527
+ requestData: {
10528
+ eventId: string;
10529
+ actionType: "CUSTOM";
10530
+ customAction: string;
10531
+ eventType: string;
10532
+ trackingId: string;
10533
+ transactionId: string;
10534
+ };
10535
+ } | {
10536
+ id: string;
10537
+ clientId: string;
10538
+ clientType: "system" | "user";
10539
+ createdAt: string;
10540
+ operation: "integrations.create";
10541
+ requestData: {
10542
+ name: string;
10543
+ scopes: string[];
10544
+ };
10545
+ responseSummary: {
10546
+ clientId: string;
10547
+ };
10548
+ } | {
10549
+ id: string;
10550
+ clientId: string;
10551
+ clientType: "system" | "user";
10552
+ createdAt: string;
10553
+ operation: "integrations.refreshToken";
10554
+ requestData: {
10555
+ clientId: string;
10556
+ };
10557
+ responseSummary: {
10558
+ clientId: string;
10559
+ };
10560
+ } | {
10561
+ id: string;
10562
+ clientId: string;
10563
+ clientType: "system" | "user";
10564
+ createdAt: string;
10565
+ operation: "integrations.deactivate";
10566
+ requestData: {
10567
+ id: string;
10568
+ };
10569
+ responseSummary: {
10570
+ id: string;
10571
+ status: string;
10572
+ };
10573
+ } | {
10574
+ id: string;
10575
+ clientId: string;
10576
+ clientType: "system" | "user";
10577
+ createdAt: string;
10578
+ operation: "integrations.activate";
10579
+ requestData: {
10580
+ id: string;
10581
+ };
10582
+ responseSummary: {
10583
+ id: string;
10584
+ status: string;
10585
+ };
10586
+ } | {
10587
+ id: string;
10588
+ clientId: string;
10589
+ clientType: "system" | "user";
10590
+ createdAt: string;
10591
+ operation: "integrations.delete";
10592
+ requestData: {
10593
+ id: string;
10594
+ };
10595
+ responseSummary: {
10596
+ id: string;
10597
+ name: string;
10598
+ };
10599
+ } | {
10600
+ id: string;
10601
+ clientId: string;
10602
+ clientType: "system" | "user";
10603
+ createdAt: string;
10604
+ operation: "integrations.refreshSecret";
10605
+ requestData: {
10606
+ id: string;
10607
+ };
10608
+ responseSummary: {
10609
+ clientId: string;
10610
+ };
10611
+ } | {
10612
+ id: string;
10613
+ clientId: string;
10614
+ clientType: "system" | "user";
10615
+ createdAt: string;
10616
+ operation: "locations.create";
10617
+ requestData: {
10618
+ id: string;
10619
+ versionId: string;
10620
+ name: string;
10621
+ externalId?: string | null | undefined;
10622
+ effectiveFrom: string;
10623
+ status: string;
10624
+ administrativeAreaId?: string | null | undefined;
10625
+ locationType?: string | null | undefined;
10626
+ };
10627
+ } | {
10628
+ id: string;
10629
+ clientId: string;
10630
+ clientType: "system" | "user";
10631
+ createdAt: string;
10632
+ operation: "locations.update";
10633
+ requestData: {
10634
+ id: string;
10635
+ versionId: string;
10636
+ name: string;
10637
+ externalId?: string | null | undefined;
10638
+ status: string;
10639
+ effectiveFrom: string;
10640
+ lastVersionId: string;
10641
+ };
10642
+ responseSummary: {
10643
+ previousVersionId: string;
10644
+ versionId: string;
10645
+ changed: {
10646
+ name?: {
10647
+ from: string;
10648
+ to: string;
10649
+ } | undefined;
10650
+ externalId?: {
10651
+ from: string | null;
10652
+ to: string | null;
10653
+ } | undefined;
10654
+ status?: {
10655
+ from: string;
10656
+ to: string;
10657
+ } | undefined;
10658
+ };
10659
+ };
10660
+ } | {
10661
+ id: string;
10662
+ clientId: string;
10663
+ clientType: "system" | "user";
10664
+ createdAt: string;
10665
+ operation: "administrativeAreas.update";
10666
+ requestData: {
10667
+ id: string;
10668
+ versionId: string;
10669
+ name: string;
10670
+ externalId?: string | null | undefined;
10671
+ status: string;
10672
+ effectiveFrom: string;
10673
+ lastVersionId: string;
10674
+ };
10675
+ responseSummary: {
10676
+ previousVersionId: string;
10677
+ versionId: string;
10678
+ changed: {
10679
+ name?: {
10680
+ from: string;
10681
+ to: string;
10682
+ } | undefined;
10683
+ externalId?: {
10684
+ from: string | null;
10685
+ to: string | null;
10686
+ } | undefined;
10687
+ status?: {
10688
+ from: string;
10689
+ to: string;
10690
+ } | undefined;
10691
+ };
10692
+ };
10693
+ } | {
10694
+ id: string;
10695
+ clientId: string;
10696
+ clientType: "system" | "user";
10697
+ createdAt: string;
10698
+ operation: "locations.withdrawVersion";
10699
+ requestData: {
10700
+ id: string;
10701
+ versionId: string;
10702
+ };
10703
+ responseSummary: {
10704
+ effectiveFrom: string;
10705
+ name: string;
10706
+ externalId?: string | null | undefined;
10707
+ status: string;
10708
+ };
10709
+ } | {
10710
+ id: string;
10711
+ clientId: string;
10712
+ clientType: "system" | "user";
10713
+ createdAt: string;
10714
+ operation: "administrativeAreas.withdrawVersion";
10715
+ requestData: {
10716
+ id: string;
10717
+ versionId: string;
10718
+ };
10719
+ responseSummary: {
10720
+ effectiveFrom: string;
10721
+ name: string;
10722
+ externalId?: string | null | undefined;
10723
+ status: string;
10724
+ };
10725
+ } | {
10726
+ id: string;
10727
+ clientId: string;
10728
+ clientType: "system" | "user";
10729
+ createdAt: string;
10730
+ operation: "administrativeAreas.create";
10731
+ requestData: {
10732
+ id: string;
10733
+ versionId: string;
10734
+ name: string;
10735
+ externalId?: string | null | undefined;
10736
+ effectiveFrom: string;
10737
+ status: string;
10738
+ parentId?: string | null | undefined;
10739
+ };
10740
+ } | {
10741
+ id: string;
10742
+ clientId: string;
10743
+ clientType: "system" | "user";
10744
+ createdAt: string;
10745
+ operation: "attachments.upload";
10746
+ requestData: {
10747
+ transactionId: string;
10748
+ eventId?: string | undefined;
10749
+ path: string | null;
10750
+ };
10751
+ responseSummary: {
10752
+ fileUrl: string;
10753
+ };
10754
+ } | {
10755
+ id: string;
10756
+ clientId: string;
10757
+ clientType: "system" | "user";
10758
+ createdAt: string;
10759
+ operation: "user.create_user";
10760
+ requestData: {
10761
+ subjectId: string;
10762
+ role: string;
10763
+ primaryOfficeId: string;
10764
+ };
10765
+ } | {
10766
+ id: string;
10767
+ clientId: string;
10768
+ clientType: "system" | "user";
10769
+ createdAt: string;
10770
+ operation: "user.deactivate" | "user.reactivate";
10771
+ requestData: {
10772
+ subjectId: string;
10773
+ reason: string;
10774
+ comment?: string | undefined;
10775
+ };
10776
+ } | {
10777
+ id: string;
10778
+ clientId: string;
10779
+ clientType: "system" | "user";
10780
+ createdAt: string;
10781
+ operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin";
10782
+ requestData: {
10783
+ subjectId: string;
10784
+ };
10785
+ } | {
10786
+ id: string;
10787
+ clientId: string;
10788
+ clientType: "system" | "user";
10789
+ createdAt: string;
10790
+ operation: "user.email_address_changed";
10791
+ requestData: {
10792
+ subjectId: string;
10793
+ };
10794
+ responseSummary: {
10795
+ email: string;
10796
+ };
10797
+ } | {
10798
+ id: string;
10799
+ clientId: string;
10800
+ clientType: "system" | "user";
10801
+ createdAt: string;
10802
+ operation: "user.phone_number_changed";
10803
+ requestData: {
10804
+ subjectId: string;
10805
+ };
10806
+ responseSummary: {
10807
+ phoneNumber: string;
10808
+ };
10809
+ })[];
10810
+ total: number;
10811
+ };
10812
+ meta: import("trpc-to-openapi").OpenApiMeta;
10813
+ }>;
8941
10814
  }>>;
8942
10815
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8943
10816
  ctx: Partial<{
8944
10817
  token: `Bearer ${string}`;
8945
10818
  user: {
8946
- id: string & import("zod").$brand<"UUID">;
8947
- type: "system";
8948
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8949
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8950
- signature?: undefined;
8951
- } | {
8952
10819
  id: string & import("zod").$brand<"UUID">;
8953
10820
  role: string;
8954
10821
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8955
10822
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8956
10823
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8957
10824
  type: "user";
10825
+ } | {
10826
+ id: string & import("zod").$brand<"UUID">;
10827
+ type: "system";
10828
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10829
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10830
+ signature?: undefined;
8958
10831
  };
8959
10832
  }>;
8960
10833
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8968,6 +10841,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8968
10841
  } | {
8969
10842
  file: unknown;
8970
10843
  transactionId: unknown;
10844
+ eventId: unknown;
8971
10845
  path: unknown;
8972
10846
  };
8973
10847
  output: string;
@@ -8978,18 +10852,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8978
10852
  ctx: Partial<{
8979
10853
  token: `Bearer ${string}`;
8980
10854
  user: {
8981
- id: string & import("zod").$brand<"UUID">;
8982
- type: "system";
8983
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8984
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8985
- signature?: undefined;
8986
- } | {
8987
10855
  id: string & import("zod").$brand<"UUID">;
8988
10856
  role: string;
8989
10857
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8990
10858
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8991
10859
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8992
10860
  type: "user";
10861
+ } | {
10862
+ id: string & import("zod").$brand<"UUID">;
10863
+ type: "system";
10864
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10865
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10866
+ signature?: undefined;
8993
10867
  };
8994
10868
  }>;
8995
10869
  meta: import("trpc-to-openapi").OpenApiMeta;