@opencrvs/toolkit 2.1.0-rc.d1b9774 → 2.1.0-rc.d235243

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 (223) hide show
  1. package/README.md +2 -12
  2. package/build.sh +15 -5
  3. package/create-countryconfig/index.js +164 -4
  4. package/dist/application-config/index.js +36 -25
  5. package/dist/authentication/index.d.ts +8 -9
  6. package/dist/authentication/index.js +23 -8
  7. package/dist/cli.js +1981 -2823
  8. package/dist/commons/api/router.d.ts +252 -290
  9. package/dist/commons/application-config/index.d.ts +0 -2
  10. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  11. package/dist/commons/conditionals/validate.d.ts +19 -4
  12. package/dist/commons/events/ActionConfig.d.ts +5 -14
  13. package/dist/commons/events/ActionDocument.d.ts +30 -4
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +24 -12
  15. package/dist/commons/events/AuditLog.d.ts +1 -0
  16. package/dist/commons/events/Draft.d.ts +1 -21
  17. package/dist/commons/events/EventDocument.d.ts +4 -4
  18. package/dist/commons/events/FieldConfig.d.ts +26 -15
  19. package/dist/commons/events/FieldTypeMapping.d.ts +10 -10
  20. package/dist/commons/events/FieldValue.d.ts +1 -0
  21. package/dist/commons/events/FormConfig.d.ts +6 -0
  22. package/dist/commons/events/PageConfig.d.ts +4 -0
  23. package/dist/commons/events/locations.d.ts +4 -0
  24. package/dist/commons/events/scopes.d.ts +21 -1
  25. package/dist/commons/events/test.utils.d.ts +71 -22
  26. package/dist/commons/events/utils.d.ts +37 -2
  27. package/dist/conditionals/index.js +21 -7
  28. package/dist/environment/derived-variables.d.ts +18 -0
  29. package/dist/environment/derived-variables.d.ts.map +1 -1
  30. package/dist/environment/derived-variables.js +21 -0
  31. package/dist/environment/index.d.ts.map +1 -1
  32. package/dist/environment/index.js +2 -1
  33. package/dist/environment/manage-users.js +1 -1
  34. package/dist/environment/questions.d.ts +16 -0
  35. package/dist/environment/questions.d.ts.map +1 -1
  36. package/dist/environment/questions.js +27 -2
  37. package/dist/environment/setup-environment.d.ts +1 -1
  38. package/dist/environment/setup-environment.d.ts.map +1 -1
  39. package/dist/environment/setup-environment.js +633 -560
  40. package/dist/environment/swarm-to-k8s.js +3 -4
  41. package/dist/environment/templates.d.ts +0 -1
  42. package/dist/environment/templates.d.ts.map +1 -1
  43. package/dist/environment/templates.js +3 -8
  44. package/dist/environment/update-workflows.d.ts.map +1 -1
  45. package/dist/environment/update-workflows.js +6 -1
  46. package/dist/environment/utils.d.ts +0 -12
  47. package/dist/environment/utils.d.ts.map +1 -1
  48. package/dist/environment/utils.js +1 -28
  49. package/dist/events/index.js +2115 -1884
  50. package/dist/migrations/v2.1/add-recovery-link-notifications.js +4 -4
  51. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -1
  52. package/dist/migrations/v2.1/add-translations.js +4 -68
  53. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -1
  54. package/dist/migrations/v2.1/enable-telemetry.js +30 -13
  55. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  56. package/dist/migrations/v2.1/index.js +35 -1261
  57. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
  58. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
  59. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
  60. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  61. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  62. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  63. package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
  64. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  65. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  66. package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
  67. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  68. package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
  69. package/dist/migrations/v2.1/template-files.d.ts +8 -0
  70. package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
  71. package/dist/migrations/v2.1/template-files.js +49 -0
  72. package/dist/migrations/v2.1/upgrade-tilt.d.ts +8 -0
  73. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
  74. package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
  75. package/dist/migrations/v2.2/add-e2e-tests.d.ts +19 -0
  76. package/dist/migrations/v2.2/add-e2e-tests.d.ts.map +1 -0
  77. package/dist/migrations/v2.2/add-e2e-tests.js +143 -0
  78. package/dist/migrations/v2.2/index.d.ts +6 -0
  79. package/dist/migrations/v2.2/index.d.ts.map +1 -0
  80. package/dist/migrations/v2.2/index.js +279 -0
  81. package/dist/migrations/v2.2/template-files.d.ts +8 -0
  82. package/dist/migrations/v2.2/template-files.d.ts.map +1 -0
  83. package/dist/migrations/v2.2/template-files.js +49 -0
  84. package/dist/migrations/v2.2/upgrade-tilt.d.ts +8 -0
  85. package/dist/migrations/v2.2/upgrade-tilt.d.ts.map +1 -0
  86. package/dist/migrations/v2.2/upgrade-tilt.js +139 -0
  87. package/dist/notification/index.js +249 -207
  88. package/dist/scopes/index.d.ts +288 -5
  89. package/dist/scopes/index.js +22 -7
  90. package/dist/telemetry/index.js +4 -0
  91. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  92. package/dist/templates/charts-values/opencrvs-services/values.yaml +6 -0
  93. package/dist/templates/charts-values/opentelemetry/values.yaml +7 -0
  94. package/dist/templates/charts-values/traefik/values.yaml +2 -3
  95. package/dist/templates/countryconfig-template/.tiltignore +1 -0
  96. package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
  97. package/dist/templates/countryconfig-template/Tiltfile +112 -0
  98. package/dist/templates/countryconfig-template/assets/README.md +1 -0
  99. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
  100. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
  101. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
  102. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
  103. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
  104. package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
  105. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
  106. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
  107. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
  108. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
  109. package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
  110. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
  111. package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
  112. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
  113. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
  114. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
  115. package/dist/templates/countryconfig-template/e2e/README.md +36 -0
  116. package/dist/templates/countryconfig-template/e2e/constants.ts +28 -0
  117. package/dist/templates/countryconfig-template/e2e/login.e2e.ts +59 -0
  118. package/dist/templates/countryconfig-template/package.json +153 -0
  119. package/dist/templates/countryconfig-template/playwright.config.ts +42 -0
  120. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
  121. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
  122. package/dist/templates/countryconfig-template/tilt/common.tilt +159 -0
  123. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
  124. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
  125. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
  126. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
  127. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
  128. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
  129. package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
  130. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
  131. package/dist/translations/template.d.ts +11 -0
  132. package/dist/translations/template.d.ts.map +1 -0
  133. package/dist/translations/template.js +100 -0
  134. package/dist/verify/endpoints.d.ts.map +1 -1
  135. package/dist/verify/endpoints.js +180 -15
  136. package/opencrvs-toolkit-2.1.0-rc.d235243.tgz +0 -0
  137. package/package.json +2 -1
  138. package/tsconfig.build.tsbuildinfo +1 -1
  139. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  140. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  141. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
  142. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
  143. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
  144. package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
  145. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
  146. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
  147. package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
  148. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  149. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  150. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
  151. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  152. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  153. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
  154. package/dist/migrations/v2.0/create-events-index.d.ts +0 -3
  155. package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
  156. package/dist/migrations/v2.0/create-events-index.js +0 -325
  157. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
  158. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
  159. package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
  160. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
  161. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
  162. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
  163. package/dist/migrations/v2.0/index.d.ts +0 -13
  164. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  165. package/dist/migrations/v2.0/index.js +0 -103
  166. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  167. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  168. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
  169. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
  170. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
  171. package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
  172. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
  173. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
  174. package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
  175. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  176. package/dist/migrations/v2.0/migrate-scopes.js +0 -305
  177. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  178. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  179. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
  180. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  181. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  182. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
  183. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  184. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  185. package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
  186. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  187. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  188. package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
  189. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  190. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  191. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
  192. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
  193. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
  194. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
  195. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  196. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  197. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
  198. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
  199. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
  200. package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
  201. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  202. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  203. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
  204. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  205. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  206. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
  207. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
  208. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
  209. package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
  210. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  211. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  212. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  213. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
  214. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
  215. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
  216. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
  217. package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
  218. package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
  219. package/dist/migrations/v2.0/update-package-json.js +0 -105
  220. package/dist/translations/check.d.ts +0 -19
  221. package/dist/translations/check.d.ts.map +0 -1
  222. package/dist/translations/check.js +0 -127
  223. package/opencrvs-toolkit-2.1.0-rc.d1b9774.tgz +0 -0
@@ -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;
@@ -326,7 +328,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
326
328
  status: "Accepted" | "Rejected" | "Requested";
327
329
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
328
330
  type: "APPROVE_CORRECTION";
329
- requestId: string;
331
+ requestId: string & import("zod").$brand<"UUID">;
330
332
  content?: {
331
333
  immediateCorrection?: boolean | undefined;
332
334
  } | undefined;
@@ -344,7 +346,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
344
346
  status: "Accepted" | "Rejected" | "Requested";
345
347
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
346
348
  type: "REJECT_CORRECTION";
347
- requestId: string;
349
+ requestId: string & import("zod").$brand<"UUID">;
348
350
  content: {
349
351
  reason: string;
350
352
  };
@@ -446,7 +448,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
446
448
  input: {
447
449
  eventId: string;
448
450
  customActionType?: string | undefined;
449
- waitFor?: boolean | undefined;
450
451
  };
451
452
  output: {
452
453
  id: string & import("zod").$brand<"UUID">;
@@ -652,7 +653,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
652
653
  status: "Accepted" | "Rejected" | "Requested";
653
654
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
654
655
  type: "APPROVE_CORRECTION";
655
- requestId: string;
656
+ requestId: string & import("zod").$brand<"UUID">;
656
657
  content?: {
657
658
  immediateCorrection?: boolean | undefined;
658
659
  } | undefined;
@@ -670,7 +671,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
670
671
  status: "Accepted" | "Rejected" | "Requested";
671
672
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
672
673
  type: "REJECT_CORRECTION";
673
- requestId: string;
674
+ requestId: string & import("zod").$brand<"UUID">;
674
675
  content: {
675
676
  reason: string;
676
677
  };
@@ -977,7 +978,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
977
978
  status: "Accepted" | "Rejected" | "Requested";
978
979
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
979
980
  type: "APPROVE_CORRECTION";
980
- requestId: string;
981
+ requestId: string & import("zod").$brand<"UUID">;
981
982
  content?: {
982
983
  immediateCorrection?: boolean | undefined;
983
984
  } | undefined;
@@ -995,7 +996,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
995
996
  status: "Accepted" | "Rejected" | "Requested";
996
997
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
997
998
  type: "REJECT_CORRECTION";
998
- requestId: string;
999
+ requestId: string & import("zod").$brand<"UUID">;
999
1000
  content: {
1000
1001
  reason: string;
1001
1002
  };
@@ -1106,18 +1107,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1106
1107
  ctx: Partial<{
1107
1108
  token: `Bearer ${string}`;
1108
1109
  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
1110
  id: string & import("zod").$brand<"UUID">;
1116
1111
  role: string;
1117
1112
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1118
1113
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1119
1114
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1120
1115
  type: "user";
1116
+ } | {
1117
+ id: string & import("zod").$brand<"UUID">;
1118
+ type: "system";
1119
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1120
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1121
+ signature?: undefined;
1121
1122
  };
1122
1123
  }>;
1123
1124
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1158,7 +1159,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1158
1159
  keepAssignmentIfAccepted?: boolean | undefined;
1159
1160
  keepAssignmentIfRejected?: boolean | undefined;
1160
1161
  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";
1162
+ type: "DECLARE";
1162
1163
  status: "Accepted" | "Rejected" | "Requested";
1163
1164
  };
1164
1165
  output: {
@@ -1183,22 +1184,54 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1183
1184
  meta: import("trpc-to-openapi").OpenApiMeta;
1184
1185
  }>;
1185
1186
  }>>;
1186
- actions: import("@trpc/server").TRPCBuiltRouter<{
1187
+ file: import("@trpc/server").TRPCBuiltRouter<{
1187
1188
  ctx: Partial<{
1188
1189
  token: `Bearer ${string}`;
1189
1190
  user: {
1191
+ id: string & import("zod").$brand<"UUID">;
1192
+ role: string;
1193
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1194
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1195
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1196
+ type: "user";
1197
+ } | {
1190
1198
  id: string & import("zod").$brand<"UUID">;
1191
1199
  type: "system";
1192
1200
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1193
1201
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
1202
  signature?: undefined;
1195
- } | {
1203
+ };
1204
+ }>;
1205
+ meta: import("trpc-to-openapi").OpenApiMeta;
1206
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1207
+ transformer: true;
1208
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1209
+ getPresignedUrl: import("@trpc/server").TRPCQueryProcedure<{
1210
+ input: {
1211
+ filePath: string;
1212
+ };
1213
+ output: {
1214
+ presignedURL: string;
1215
+ };
1216
+ meta: import("trpc-to-openapi").OpenApiMeta;
1217
+ }>;
1218
+ }>>;
1219
+ actions: import("@trpc/server").TRPCBuiltRouter<{
1220
+ ctx: Partial<{
1221
+ token: `Bearer ${string}`;
1222
+ user: {
1196
1223
  id: string & import("zod").$brand<"UUID">;
1197
1224
  role: string;
1198
1225
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1199
1226
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1200
1227
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1201
1228
  type: "user";
1229
+ } | {
1230
+ id: string & import("zod").$brand<"UUID">;
1231
+ type: "system";
1232
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1233
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1234
+ signature?: undefined;
1202
1235
  };
1203
1236
  }>;
1204
1237
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1209,18 +1242,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1209
1242
  ctx: Partial<{
1210
1243
  token: `Bearer ${string}`;
1211
1244
  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
1245
  id: string & import("zod").$brand<"UUID">;
1219
1246
  role: string;
1220
1247
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1221
1248
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1222
1249
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1223
1250
  type: "user";
1251
+ } | {
1252
+ id: string & import("zod").$brand<"UUID">;
1253
+ type: "system";
1254
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1255
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1256
+ signature?: undefined;
1224
1257
  };
1225
1258
  }>;
1226
1259
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1513,18 +1546,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1513
1546
  ctx: Partial<{
1514
1547
  token: `Bearer ${string}`;
1515
1548
  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
1549
  id: string & import("zod").$brand<"UUID">;
1523
1550
  role: string;
1524
1551
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1525
1552
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1526
1553
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1527
1554
  type: "user";
1555
+ } | {
1556
+ id: string & import("zod").$brand<"UUID">;
1557
+ type: "system";
1558
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
+ signature?: undefined;
1528
1561
  };
1529
1562
  }>;
1530
1563
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1748,7 +1781,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1748
1781
  status: "Accepted" | "Rejected" | "Requested";
1749
1782
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1750
1783
  type: "APPROVE_CORRECTION";
1751
- requestId: string;
1784
+ requestId: string & import("zod").$brand<"UUID">;
1752
1785
  content?: {
1753
1786
  immediateCorrection?: boolean | undefined;
1754
1787
  } | undefined;
@@ -1766,7 +1799,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1766
1799
  status: "Accepted" | "Rejected" | "Requested";
1767
1800
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1768
1801
  type: "REJECT_CORRECTION";
1769
- requestId: string;
1802
+ requestId: string & import("zod").$brand<"UUID">;
1770
1803
  content: {
1771
1804
  reason: string;
1772
1805
  };
@@ -1869,18 +1902,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1869
1902
  ctx: Partial<{
1870
1903
  token: `Bearer ${string}`;
1871
1904
  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
1905
  id: string & import("zod").$brand<"UUID">;
1879
1906
  role: string;
1880
1907
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1881
1908
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1882
1909
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1883
1910
  type: "user";
1911
+ } | {
1912
+ id: string & import("zod").$brand<"UUID">;
1913
+ type: "system";
1914
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1915
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1916
+ signature?: undefined;
1884
1917
  };
1885
1918
  }>;
1886
1919
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2381,7 +2414,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2414
  status: "Accepted" | "Rejected" | "Requested";
2382
2415
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2383
2416
  type: "APPROVE_CORRECTION";
2384
- requestId: string;
2417
+ requestId: string & import("zod").$brand<"UUID">;
2385
2418
  content?: {
2386
2419
  immediateCorrection?: boolean | undefined;
2387
2420
  } | undefined;
@@ -2399,7 +2432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2399
2432
  status: "Accepted" | "Rejected" | "Requested";
2400
2433
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2401
2434
  type: "REJECT_CORRECTION";
2402
- requestId: string;
2435
+ requestId: string & import("zod").$brand<"UUID">;
2403
2436
  content: {
2404
2437
  reason: string;
2405
2438
  };
@@ -2502,18 +2535,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2502
2535
  ctx: Partial<{
2503
2536
  token: `Bearer ${string}`;
2504
2537
  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
2538
  id: string & import("zod").$brand<"UUID">;
2512
2539
  role: string;
2513
2540
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2514
2541
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2515
2542
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2516
2543
  type: "user";
2544
+ } | {
2545
+ id: string & import("zod").$brand<"UUID">;
2546
+ type: "system";
2547
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2548
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2549
+ signature?: undefined;
2517
2550
  };
2518
2551
  }>;
2519
2552
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2806,18 +2839,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2806
2839
  ctx: Partial<{
2807
2840
  token: `Bearer ${string}`;
2808
2841
  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
2842
  id: string & import("zod").$brand<"UUID">;
2816
2843
  role: string;
2817
2844
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2818
2845
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2819
2846
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2820
2847
  type: "user";
2848
+ } | {
2849
+ id: string & import("zod").$brand<"UUID">;
2850
+ type: "system";
2851
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2852
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2853
+ signature?: undefined;
2821
2854
  };
2822
2855
  }>;
2823
2856
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3110,18 +3143,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3110
3143
  ctx: Partial<{
3111
3144
  token: `Bearer ${string}`;
3112
3145
  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
3146
  id: string & import("zod").$brand<"UUID">;
3120
3147
  role: string;
3121
3148
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3122
3149
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3123
3150
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3124
3151
  type: "user";
3152
+ } | {
3153
+ id: string & import("zod").$brand<"UUID">;
3154
+ type: "system";
3155
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3156
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3157
+ signature?: undefined;
3125
3158
  };
3126
3159
  }>;
3127
3160
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3414,18 +3447,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3414
3447
  ctx: Partial<{
3415
3448
  token: `Bearer ${string}`;
3416
3449
  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
3450
  id: string & import("zod").$brand<"UUID">;
3424
3451
  role: string;
3425
3452
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3426
3453
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3427
3454
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3428
3455
  type: "user";
3456
+ } | {
3457
+ id: string & import("zod").$brand<"UUID">;
3458
+ type: "system";
3459
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3460
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3461
+ signature?: undefined;
3429
3462
  };
3430
3463
  }>;
3431
3464
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3718,18 +3751,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3718
3751
  ctx: Partial<{
3719
3752
  token: `Bearer ${string}`;
3720
3753
  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
3754
  id: string & import("zod").$brand<"UUID">;
3728
3755
  role: string;
3729
3756
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3730
3757
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3731
3758
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3732
3759
  type: "user";
3760
+ } | {
3761
+ id: string & import("zod").$brand<"UUID">;
3762
+ type: "system";
3763
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3764
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3765
+ signature?: undefined;
3733
3766
  };
3734
3767
  }>;
3735
3768
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4022,18 +4055,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4022
4055
  ctx: Partial<{
4023
4056
  token: `Bearer ${string}`;
4024
4057
  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
4058
  id: string & import("zod").$brand<"UUID">;
4032
4059
  role: string;
4033
4060
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4034
4061
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4035
4062
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4036
4063
  type: "user";
4064
+ } | {
4065
+ id: string & import("zod").$brand<"UUID">;
4066
+ type: "system";
4067
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4068
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4069
+ signature?: undefined;
4037
4070
  };
4038
4071
  }>;
4039
4072
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4326,18 +4359,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4326
4359
  ctx: Partial<{
4327
4360
  token: `Bearer ${string}`;
4328
4361
  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
4362
  id: string & import("zod").$brand<"UUID">;
4336
4363
  role: string;
4337
4364
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4338
4365
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4339
4366
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4340
4367
  type: "user";
4368
+ } | {
4369
+ id: string & import("zod").$brand<"UUID">;
4370
+ type: "system";
4371
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4372
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4373
+ signature?: undefined;
4341
4374
  };
4342
4375
  }>;
4343
4376
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4839,7 +4872,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4839
4872
  status: "Accepted" | "Rejected" | "Requested";
4840
4873
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4841
4874
  type: "APPROVE_CORRECTION";
4842
- requestId: string;
4875
+ requestId: string & import("zod").$brand<"UUID">;
4843
4876
  content?: {
4844
4877
  immediateCorrection?: boolean | undefined;
4845
4878
  } | undefined;
@@ -4857,7 +4890,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4857
4890
  status: "Accepted" | "Rejected" | "Requested";
4858
4891
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4859
4892
  type: "REJECT_CORRECTION";
4860
- requestId: string;
4893
+ requestId: string & import("zod").$brand<"UUID">;
4861
4894
  content: {
4862
4895
  reason: string;
4863
4896
  };
@@ -4960,18 +4993,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4960
4993
  ctx: Partial<{
4961
4994
  token: `Bearer ${string}`;
4962
4995
  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
4996
  id: string & import("zod").$brand<"UUID">;
4970
4997
  role: string;
4971
4998
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4972
4999
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4973
5000
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4974
5001
  type: "user";
5002
+ } | {
5003
+ id: string & import("zod").$brand<"UUID">;
5004
+ type: "system";
5005
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5006
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5007
+ signature?: undefined;
4975
5008
  };
4976
5009
  }>;
4977
5010
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5198,7 +5231,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5198
5231
  status: "Accepted" | "Rejected" | "Requested";
5199
5232
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5200
5233
  type: "APPROVE_CORRECTION";
5201
- requestId: string;
5234
+ requestId: string & import("zod").$brand<"UUID">;
5202
5235
  content?: {
5203
5236
  immediateCorrection?: boolean | undefined;
5204
5237
  } | undefined;
@@ -5216,7 +5249,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5216
5249
  status: "Accepted" | "Rejected" | "Requested";
5217
5250
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5218
5251
  type: "REJECT_CORRECTION";
5219
- requestId: string;
5252
+ requestId: string & import("zod").$brand<"UUID">;
5220
5253
  content: {
5221
5254
  reason: string;
5222
5255
  };
@@ -5533,7 +5566,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5533
5566
  status: "Accepted" | "Rejected" | "Requested";
5534
5567
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5535
5568
  type: "APPROVE_CORRECTION";
5536
- requestId: string;
5569
+ requestId: string & import("zod").$brand<"UUID">;
5537
5570
  content?: {
5538
5571
  immediateCorrection?: boolean | undefined;
5539
5572
  } | undefined;
@@ -5551,7 +5584,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5551
5584
  status: "Accepted" | "Rejected" | "Requested";
5552
5585
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5553
5586
  type: "REJECT_CORRECTION";
5554
- requestId: string;
5587
+ requestId: string & import("zod").$brand<"UUID">;
5555
5588
  content: {
5556
5589
  reason: string;
5557
5590
  };
@@ -5653,18 +5686,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5653
5686
  ctx: Partial<{
5654
5687
  token: `Bearer ${string}`;
5655
5688
  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
5689
  id: string & import("zod").$brand<"UUID">;
5663
5690
  role: string;
5664
5691
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5665
5692
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5666
5693
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5667
5694
  type: "user";
5695
+ } | {
5696
+ id: string & import("zod").$brand<"UUID">;
5697
+ type: "system";
5698
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5699
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5700
+ signature?: undefined;
5668
5701
  };
5669
5702
  }>;
5670
5703
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5675,18 +5708,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5675
5708
  ctx: Partial<{
5676
5709
  token: `Bearer ${string}`;
5677
5710
  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
5711
  id: string & import("zod").$brand<"UUID">;
5685
5712
  role: string;
5686
5713
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5687
5714
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5688
5715
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5689
5716
  type: "user";
5717
+ } | {
5718
+ id: string & import("zod").$brand<"UUID">;
5719
+ type: "system";
5720
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5721
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5722
+ signature?: undefined;
5690
5723
  };
5691
5724
  }>;
5692
5725
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5979,18 +6012,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5979
6012
  ctx: Partial<{
5980
6013
  token: `Bearer ${string}`;
5981
6014
  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
6015
  id: string & import("zod").$brand<"UUID">;
5989
6016
  role: string;
5990
6017
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5991
6018
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5992
6019
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5993
6020
  type: "user";
6021
+ } | {
6022
+ id: string & import("zod").$brand<"UUID">;
6023
+ type: "system";
6024
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6025
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6026
+ signature?: undefined;
5994
6027
  };
5995
6028
  }>;
5996
6029
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6283,18 +6316,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6283
6316
  ctx: Partial<{
6284
6317
  token: `Bearer ${string}`;
6285
6318
  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
6319
  id: string & import("zod").$brand<"UUID">;
6293
6320
  role: string;
6294
6321
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6295
6322
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6296
6323
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6297
6324
  type: "user";
6325
+ } | {
6326
+ id: string & import("zod").$brand<"UUID">;
6327
+ type: "system";
6328
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6329
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6330
+ signature?: undefined;
6298
6331
  };
6299
6332
  }>;
6300
6333
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6588,18 +6621,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6588
6621
  ctx: Partial<{
6589
6622
  token: `Bearer ${string}`;
6590
6623
  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
6624
  id: string & import("zod").$brand<"UUID">;
6598
6625
  role: string;
6599
6626
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6600
6627
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6601
6628
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6602
6629
  type: "user";
6630
+ } | {
6631
+ id: string & import("zod").$brand<"UUID">;
6632
+ type: "system";
6633
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6634
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6635
+ signature?: undefined;
6603
6636
  };
6604
6637
  }>;
6605
6638
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6827,7 +6860,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6827
6860
  status: "Accepted" | "Rejected" | "Requested";
6828
6861
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6829
6862
  type: "APPROVE_CORRECTION";
6830
- requestId: string;
6863
+ requestId: string & import("zod").$brand<"UUID">;
6831
6864
  content?: {
6832
6865
  immediateCorrection?: boolean | undefined;
6833
6866
  } | undefined;
@@ -6845,7 +6878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6845
6878
  status: "Accepted" | "Rejected" | "Requested";
6846
6879
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6847
6880
  type: "REJECT_CORRECTION";
6848
- requestId: string;
6881
+ requestId: string & import("zod").$brand<"UUID">;
6849
6882
  content: {
6850
6883
  reason: string;
6851
6884
  };
@@ -7161,7 +7194,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7161
7194
  status: "Accepted" | "Rejected" | "Requested";
7162
7195
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7163
7196
  type: "APPROVE_CORRECTION";
7164
- requestId: string;
7197
+ requestId: string & import("zod").$brand<"UUID">;
7165
7198
  content?: {
7166
7199
  immediateCorrection?: boolean | undefined;
7167
7200
  } | undefined;
@@ -7179,7 +7212,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7179
7212
  status: "Accepted" | "Rejected" | "Requested";
7180
7213
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7181
7214
  type: "REJECT_CORRECTION";
7182
- requestId: string;
7215
+ requestId: string & import("zod").$brand<"UUID">;
7183
7216
  content: {
7184
7217
  reason: string;
7185
7218
  };
@@ -7668,18 +7701,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7668
7701
  ctx: Partial<{
7669
7702
  token: `Bearer ${string}`;
7670
7703
  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
7704
  id: string & import("zod").$brand<"UUID">;
7678
7705
  role: string;
7679
7706
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7680
7707
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7681
7708
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7682
7709
  type: "user";
7710
+ } | {
7711
+ id: string & import("zod").$brand<"UUID">;
7712
+ type: "system";
7713
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7714
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7715
+ signature?: undefined;
7683
7716
  };
7684
7717
  }>;
7685
7718
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7862,60 +7895,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7862
7895
  })[];
7863
7896
  meta: object;
7864
7897
  }>;
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
7898
  roles: import("@trpc/server").TRPCBuiltRouter<{
7904
7899
  ctx: Partial<{
7905
7900
  token: `Bearer ${string}`;
7906
7901
  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
7902
  id: string & import("zod").$brand<"UUID">;
7914
7903
  role: string;
7915
7904
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7916
7905
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7917
7906
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7918
7907
  type: "user";
7908
+ } | {
7909
+ id: string & import("zod").$brand<"UUID">;
7910
+ type: "system";
7911
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7912
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7913
+ signature?: undefined;
7919
7914
  };
7920
7915
  }>;
7921
7916
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8028,64 +8023,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8028
8023
  ctx: Partial<{
8029
8024
  token: `Bearer ${string}`;
8030
8025
  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
8026
  id: string & import("zod").$brand<"UUID">;
8038
8027
  role: string;
8039
8028
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8040
8029
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8041
8030
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8042
8031
  type: "user";
8032
+ } | {
8033
+ id: string & import("zod").$brand<"UUID">;
8034
+ type: "system";
8035
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8036
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8037
+ signature?: undefined;
8043
8038
  };
8044
8039
  }>;
8045
8040
  meta: import("trpc-to-openapi").OpenApiMeta;
8046
8041
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8047
8042
  transformer: true;
8048
8043
  }, 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
8044
  list: import("@trpc/server").TRPCQueryProcedure<{
8090
8045
  input: {
8091
8046
  userId: string;
@@ -8379,6 +8334,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8379
8334
  operation: "attachments.upload";
8380
8335
  requestData: {
8381
8336
  transactionId: string;
8337
+ eventId?: string | undefined;
8382
8338
  path: string | null;
8383
8339
  };
8384
8340
  responseSummary: {
@@ -8450,18 +8406,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8450
8406
  ctx: Partial<{
8451
8407
  token: `Bearer ${string}`;
8452
8408
  user: {
8453
- id: string & import("zod").$brand<"UUID">;
8454
- type: "system";
8455
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8456
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8457
- signature?: undefined;
8458
- } | {
8459
8409
  id: string & import("zod").$brand<"UUID">;
8460
8410
  role: string;
8461
8411
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8462
8412
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8463
8413
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8464
8414
  type: "user";
8415
+ } | {
8416
+ id: string & import("zod").$brand<"UUID">;
8417
+ type: "system";
8418
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8419
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8420
+ signature?: undefined;
8465
8421
  };
8466
8422
  }>;
8467
8423
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8602,18 +8558,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8602
8558
  ctx: Partial<{
8603
8559
  token: `Bearer ${string}`;
8604
8560
  user: {
8605
- id: string & import("zod").$brand<"UUID">;
8606
- type: "system";
8607
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8608
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8609
- signature?: undefined;
8610
- } | {
8611
8561
  id: string & import("zod").$brand<"UUID">;
8612
8562
  role: string;
8613
8563
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8614
8564
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8615
8565
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8616
8566
  type: "user";
8567
+ } | {
8568
+ id: string & import("zod").$brand<"UUID">;
8569
+ type: "system";
8570
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8571
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8572
+ signature?: undefined;
8617
8573
  };
8618
8574
  }>;
8619
8575
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8624,18 +8580,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8624
8580
  ctx: Partial<{
8625
8581
  token: `Bearer ${string}`;
8626
8582
  user: {
8627
- id: string & import("zod").$brand<"UUID">;
8628
- type: "system";
8629
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8630
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8631
- signature?: undefined;
8632
- } | {
8633
8583
  id: string & import("zod").$brand<"UUID">;
8634
8584
  role: string;
8635
8585
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8636
8586
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8637
8587
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8638
8588
  type: "user";
8589
+ } | {
8590
+ id: string & import("zod").$brand<"UUID">;
8591
+ type: "system";
8592
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8593
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8594
+ signature?: undefined;
8639
8595
  };
8640
8596
  }>;
8641
8597
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8966,18 +8922,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8966
8922
  ctx: Partial<{
8967
8923
  token: `Bearer ${string}`;
8968
8924
  user: {
8969
- id: string & import("zod").$brand<"UUID">;
8970
- type: "system";
8971
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8972
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8973
- signature?: undefined;
8974
- } | {
8975
8925
  id: string & import("zod").$brand<"UUID">;
8976
8926
  role: string;
8977
8927
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8978
8928
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8979
8929
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8980
8930
  type: "user";
8931
+ } | {
8932
+ id: string & import("zod").$brand<"UUID">;
8933
+ type: "system";
8934
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8935
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8936
+ signature?: undefined;
8981
8937
  };
8982
8938
  }>;
8983
8939
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9083,18 +9039,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9083
9039
  ctx: Partial<{
9084
9040
  token: `Bearer ${string}`;
9085
9041
  user: {
9086
- id: string & import("zod").$brand<"UUID">;
9087
- type: "system";
9088
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9089
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9090
- signature?: undefined;
9091
- } | {
9092
9042
  id: string & import("zod").$brand<"UUID">;
9093
9043
  role: string;
9094
9044
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9095
9045
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9096
9046
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9097
9047
  type: "user";
9048
+ } | {
9049
+ id: string & import("zod").$brand<"UUID">;
9050
+ type: "system";
9051
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9052
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9053
+ signature?: undefined;
9098
9054
  };
9099
9055
  }>;
9100
9056
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9105,6 +9061,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9105
9061
  input: {
9106
9062
  name: string;
9107
9063
  scopes: string[];
9064
+ credentials?: {
9065
+ clientId: string;
9066
+ clientSecret: string;
9067
+ } | undefined;
9108
9068
  };
9109
9069
  output: {
9110
9070
  clientId: string;
@@ -9135,7 +9095,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9135
9095
  scopes: string[];
9136
9096
  status: string;
9137
9097
  createdAt: string;
9138
- createdBy: string & import("zod").$brand<"UUID">;
9098
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
9139
9099
  }[];
9140
9100
  meta: import("trpc-to-openapi").OpenApiMeta;
9141
9101
  }>;
@@ -9150,7 +9110,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9150
9110
  status: string;
9151
9111
  shaSecret: string | null;
9152
9112
  createdAt: string;
9153
- createdBy: string & import("zod").$brand<"UUID">;
9113
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
9154
9114
  };
9155
9115
  meta: import("trpc-to-openapi").OpenApiMeta;
9156
9116
  }>;
@@ -9488,6 +9448,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9488
9448
  operation: "attachments.upload";
9489
9449
  requestData: {
9490
9450
  transactionId: string;
9451
+ eventId?: string | undefined;
9491
9452
  path: string | null;
9492
9453
  };
9493
9454
  responseSummary: {
@@ -9558,18 +9519,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9558
9519
  ctx: Partial<{
9559
9520
  token: `Bearer ${string}`;
9560
9521
  user: {
9561
- id: string & import("zod").$brand<"UUID">;
9562
- type: "system";
9563
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9564
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9565
- signature?: undefined;
9566
- } | {
9567
9522
  id: string & import("zod").$brand<"UUID">;
9568
9523
  role: string;
9569
9524
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9570
9525
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9571
9526
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9572
9527
  type: "user";
9528
+ } | {
9529
+ id: string & import("zod").$brand<"UUID">;
9530
+ type: "system";
9531
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9532
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9533
+ signature?: undefined;
9573
9534
  };
9574
9535
  }>;
9575
9536
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9583,6 +9544,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9583
9544
  } | {
9584
9545
  file: unknown;
9585
9546
  transactionId: unknown;
9547
+ eventId: unknown;
9586
9548
  path: unknown;
9587
9549
  };
9588
9550
  output: string;
@@ -9593,18 +9555,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9593
9555
  ctx: Partial<{
9594
9556
  token: `Bearer ${string}`;
9595
9557
  user: {
9596
- id: string & import("zod").$brand<"UUID">;
9597
- type: "system";
9598
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9599
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9600
- signature?: undefined;
9601
- } | {
9602
9558
  id: string & import("zod").$brand<"UUID">;
9603
9559
  role: string;
9604
9560
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9605
9561
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9606
9562
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9607
9563
  type: "user";
9564
+ } | {
9565
+ id: string & import("zod").$brand<"UUID">;
9566
+ type: "system";
9567
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9568
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9569
+ signature?: undefined;
9608
9570
  };
9609
9571
  }>;
9610
9572
  meta: import("trpc-to-openapi").OpenApiMeta;