@opencrvs/toolkit 1.9.12-rc.f5ca5e6 → 1.9.12-rc.f77e9ca

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 (94) hide show
  1. package/build.sh +8 -0
  2. package/dist/application-config/index.js +2045 -41
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +3237 -0
  6. package/dist/commons/api/router.d.ts +423 -191
  7. package/dist/commons/application-config/index.d.ts +13 -16
  8. package/dist/commons/conditionals/conditionals.d.ts +8 -8
  9. package/dist/commons/events/ActionDocument.d.ts +196 -196
  10. package/dist/commons/events/ActionInput.d.ts +113 -113
  11. package/dist/commons/events/ActionType.d.ts +3 -3
  12. package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
  13. package/dist/commons/events/AuditLog.d.ts +345 -163
  14. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +461 -190
  16. package/dist/commons/events/Draft.d.ts +9 -9
  17. package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
  18. package/dist/commons/events/EventDocument.d.ts +80 -80
  19. package/dist/commons/events/EventIndex.d.ts +35 -27
  20. package/dist/commons/events/EventInput.d.ts +1 -1
  21. package/dist/commons/events/EventMetadata.d.ts +19 -19
  22. package/dist/commons/events/FieldConfig.d.ts +285 -69
  23. package/dist/commons/events/FieldType.d.ts +2 -1
  24. package/dist/commons/events/FieldTypeMapping.d.ts +98 -72
  25. package/dist/commons/events/FieldValue.d.ts +54 -26
  26. package/dist/commons/events/PlainDate.d.ts +1 -1
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +7 -7
  28. package/dist/commons/events/WorkqueueConfig.d.ts +443 -199
  29. package/dist/commons/events/defineConfig.d.ts +0 -4
  30. package/dist/commons/events/locations.d.ts +4 -4
  31. package/dist/commons/events/scopes.d.ts +4 -3
  32. package/dist/commons/events/state/index.d.ts +2 -2
  33. package/dist/commons/events/state/utils.d.ts +1 -1
  34. package/dist/commons/events/test.utils.d.ts +2 -2
  35. package/dist/commons/events/utils.d.ts +3 -175
  36. package/dist/commons/notification/UserNotifications.d.ts +6 -1
  37. package/dist/conditionals/index.js +74 -359
  38. package/dist/events/index.js +1197 -1263
  39. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  40. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  41. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  42. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  43. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  44. package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
  45. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  46. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  47. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  48. package/dist/migrations/v2.0/index.d.ts +7 -0
  49. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  50. package/dist/migrations/v2.0/index.js +3176 -0
  51. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  52. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  53. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  54. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  55. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  56. package/dist/migrations/v2.0/migrate-scopes.js +282 -0
  57. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  58. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  59. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  60. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  61. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  62. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  63. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  64. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  65. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  66. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  67. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  68. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  69. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  70. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  71. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  72. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  73. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  74. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  75. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  76. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  77. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  78. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  79. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  80. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  81. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  82. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  83. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  84. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  85. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  86. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  87. package/dist/notification/index.js +1003 -1134
  88. package/dist/scopes/index.d.ts +389 -152
  89. package/dist/scopes/index.js +128 -322
  90. package/opencrvs-toolkit-1.9.12-rc.f77e9ca.tgz +0 -0
  91. package/package.json +11 -7
  92. package/tsconfig.json +3 -0
  93. package/tsconfig.tsbuildinfo +1 -1
  94. package/opencrvs-toolkit-1.9.12-rc.f5ca5e6.tgz +0 -0
@@ -4,15 +4,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  user: {
5
5
  id: string;
6
6
  type: "system";
7
- primaryOfficeId?: undefined;
8
7
  signature?: undefined;
9
- administrativeAreaId?: undefined;
8
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10
10
  } | {
11
11
  id: string;
12
12
  type: "user";
13
13
  role: string;
14
14
  primaryOfficeId: string & import("zod").$brand<"UUID">;
15
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
15
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
16
16
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
17
17
  };
18
18
  }>;
@@ -26,15 +26,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  user: {
27
27
  id: string;
28
28
  type: "system";
29
- primaryOfficeId?: undefined;
30
29
  signature?: undefined;
31
- administrativeAreaId?: undefined;
30
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
32
32
  } | {
33
33
  id: string;
34
34
  type: "user";
35
35
  role: string;
36
36
  primaryOfficeId: string & import("zod").$brand<"UUID">;
37
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
37
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
38
38
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
39
39
  };
40
40
  }>;
@@ -48,15 +48,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
48
48
  user: {
49
49
  id: string;
50
50
  type: "system";
51
- primaryOfficeId?: undefined;
52
51
  signature?: undefined;
53
- administrativeAreaId?: undefined;
52
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
54
54
  } | {
55
55
  id: string;
56
56
  type: "user";
57
57
  role: string;
58
58
  primaryOfficeId: string & import("zod").$brand<"UUID">;
59
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
59
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
60
60
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
61
61
  };
62
62
  }>;
@@ -94,15 +94,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  user: {
95
95
  id: string;
96
96
  type: "system";
97
- primaryOfficeId?: undefined;
98
97
  signature?: undefined;
99
- administrativeAreaId?: undefined;
98
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
100
100
  } | {
101
101
  id: string;
102
102
  type: "user";
103
103
  role: string;
104
104
  primaryOfficeId: string & import("zod").$brand<"UUID">;
105
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
105
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
106
106
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
107
107
  };
108
108
  }>;
@@ -1056,15 +1056,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1056
1056
  user: {
1057
1057
  id: string;
1058
1058
  type: "system";
1059
- primaryOfficeId?: undefined;
1060
1059
  signature?: undefined;
1061
- administrativeAreaId?: undefined;
1060
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1061
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1062
1062
  } | {
1063
1063
  id: string;
1064
1064
  type: "user";
1065
1065
  role: string;
1066
1066
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1067
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1067
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1068
1068
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1069
1069
  };
1070
1070
  }>;
@@ -1135,15 +1135,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1135
1135
  user: {
1136
1136
  id: string;
1137
1137
  type: "system";
1138
- primaryOfficeId?: undefined;
1139
1138
  signature?: undefined;
1140
- administrativeAreaId?: undefined;
1139
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1140
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1141
1141
  } | {
1142
1142
  id: string;
1143
1143
  type: "user";
1144
1144
  role: string;
1145
1145
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1146
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1146
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1147
1147
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1148
1148
  };
1149
1149
  }>;
@@ -1157,15 +1157,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1157
1157
  user: {
1158
1158
  id: string;
1159
1159
  type: "system";
1160
- primaryOfficeId?: undefined;
1161
1160
  signature?: undefined;
1162
- administrativeAreaId?: undefined;
1161
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1162
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1163
1163
  } | {
1164
1164
  id: string;
1165
1165
  type: "user";
1166
1166
  role: string;
1167
1167
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1168
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1168
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1169
1169
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1170
1170
  };
1171
1171
  }>;
@@ -1201,15 +1201,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1201
1201
  user: {
1202
1202
  id: string;
1203
1203
  type: "system";
1204
- primaryOfficeId?: undefined;
1205
1204
  signature?: undefined;
1206
- administrativeAreaId?: undefined;
1205
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1206
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1207
1207
  } | {
1208
1208
  id: string;
1209
1209
  type: "user";
1210
1210
  role: string;
1211
1211
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1212
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1212
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1213
1213
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1214
1214
  };
1215
1215
  }>;
@@ -1554,15 +1554,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1554
1554
  user: {
1555
1555
  id: string;
1556
1556
  type: "system";
1557
- primaryOfficeId?: undefined;
1558
1557
  signature?: undefined;
1559
- administrativeAreaId?: undefined;
1558
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
1560
  } | {
1561
1561
  id: string;
1562
1562
  type: "user";
1563
1563
  role: string;
1564
1564
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1565
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1565
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1566
1566
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1567
1567
  };
1568
1568
  }>;
@@ -1598,15 +1598,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1598
1598
  user: {
1599
1599
  id: string;
1600
1600
  type: "system";
1601
- primaryOfficeId?: undefined;
1602
1601
  signature?: undefined;
1603
- administrativeAreaId?: undefined;
1602
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1603
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1604
1604
  } | {
1605
1605
  id: string;
1606
1606
  type: "user";
1607
1607
  role: string;
1608
1608
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1609
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1609
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1610
1610
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1611
1611
  };
1612
1612
  }>;
@@ -1642,15 +1642,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1642
1642
  user: {
1643
1643
  id: string;
1644
1644
  type: "system";
1645
- primaryOfficeId?: undefined;
1646
1645
  signature?: undefined;
1647
- administrativeAreaId?: undefined;
1646
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1647
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1648
1648
  } | {
1649
1649
  id: string;
1650
1650
  type: "user";
1651
1651
  role: string;
1652
1652
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1653
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1653
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1654
1654
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1655
1655
  };
1656
1656
  }>;
@@ -1686,15 +1686,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1686
1686
  user: {
1687
1687
  id: string;
1688
1688
  type: "system";
1689
- primaryOfficeId?: undefined;
1690
1689
  signature?: undefined;
1691
- administrativeAreaId?: undefined;
1690
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1691
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1692
1692
  } | {
1693
1693
  id: string;
1694
1694
  type: "user";
1695
1695
  role: string;
1696
1696
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1697
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1697
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1698
1698
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1699
1699
  };
1700
1700
  }>;
@@ -1730,15 +1730,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1730
1730
  user: {
1731
1731
  id: string;
1732
1732
  type: "system";
1733
- primaryOfficeId?: undefined;
1734
1733
  signature?: undefined;
1735
- administrativeAreaId?: undefined;
1734
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1735
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1736
1736
  } | {
1737
1737
  id: string;
1738
1738
  type: "user";
1739
1739
  role: string;
1740
1740
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1741
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1741
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1742
1742
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1743
1743
  };
1744
1744
  }>;
@@ -1774,15 +1774,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1774
1774
  user: {
1775
1775
  id: string;
1776
1776
  type: "system";
1777
- primaryOfficeId?: undefined;
1778
1777
  signature?: undefined;
1779
- administrativeAreaId?: undefined;
1778
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1779
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1780
1780
  } | {
1781
1781
  id: string;
1782
1782
  type: "user";
1783
1783
  role: string;
1784
1784
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1785
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1785
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1786
1786
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1787
1787
  };
1788
1788
  }>;
@@ -2128,15 +2128,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2128
2128
  user: {
2129
2129
  id: string;
2130
2130
  type: "system";
2131
- primaryOfficeId?: undefined;
2132
2131
  signature?: undefined;
2133
- administrativeAreaId?: undefined;
2132
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2133
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2134
2134
  } | {
2135
2135
  id: string;
2136
2136
  type: "user";
2137
2137
  role: string;
2138
2138
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2139
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2139
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2140
2140
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2141
2141
  };
2142
2142
  }>;
@@ -2781,15 +2781,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2781
2781
  user: {
2782
2782
  id: string;
2783
2783
  type: "system";
2784
- primaryOfficeId?: undefined;
2785
2784
  signature?: undefined;
2786
- administrativeAreaId?: undefined;
2785
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2786
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2787
2787
  } | {
2788
2788
  id: string;
2789
2789
  type: "user";
2790
2790
  role: string;
2791
2791
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2792
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2792
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2793
2793
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2794
2794
  };
2795
2795
  }>;
@@ -2803,15 +2803,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2803
2803
  user: {
2804
2804
  id: string;
2805
2805
  type: "system";
2806
- primaryOfficeId?: undefined;
2807
2806
  signature?: undefined;
2808
- administrativeAreaId?: undefined;
2807
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2808
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2809
2809
  } | {
2810
2810
  id: string;
2811
2811
  type: "user";
2812
2812
  role: string;
2813
2813
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2814
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2814
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2815
2815
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2816
2816
  };
2817
2817
  }>;
@@ -2847,15 +2847,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2847
2847
  user: {
2848
2848
  id: string;
2849
2849
  type: "system";
2850
- primaryOfficeId?: undefined;
2851
2850
  signature?: undefined;
2852
- administrativeAreaId?: undefined;
2851
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2852
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2853
2853
  } | {
2854
2854
  id: string;
2855
2855
  type: "user";
2856
2856
  role: string;
2857
2857
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2858
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2858
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2859
2859
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2860
2860
  };
2861
2861
  }>;
@@ -2891,15 +2891,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2891
2891
  user: {
2892
2892
  id: string;
2893
2893
  type: "system";
2894
- primaryOfficeId?: undefined;
2895
2894
  signature?: undefined;
2896
- administrativeAreaId?: undefined;
2895
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2896
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2897
2897
  } | {
2898
2898
  id: string;
2899
2899
  type: "user";
2900
2900
  role: string;
2901
2901
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2902
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2902
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2903
2903
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2904
2904
  };
2905
2905
  }>;
@@ -2936,15 +2936,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2936
2936
  user: {
2937
2937
  id: string;
2938
2938
  type: "system";
2939
- primaryOfficeId?: undefined;
2940
2939
  signature?: undefined;
2941
- administrativeAreaId?: undefined;
2940
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2941
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2942
2942
  } | {
2943
2943
  id: string;
2944
2944
  type: "user";
2945
2945
  role: string;
2946
2946
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2947
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2947
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2948
2948
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2949
2949
  };
2950
2950
  }>;
@@ -3596,7 +3596,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3596
3596
  results: {
3597
3597
  id: string & import("zod").$brand<"UUID">;
3598
3598
  type: string;
3599
- status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
3599
+ status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
3600
3600
  legalStatuses: {
3601
3601
  DECLARED?: {
3602
3602
  createdAt: string;
@@ -3954,15 +3954,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3954
3954
  user: {
3955
3955
  id: string;
3956
3956
  type: "system";
3957
- primaryOfficeId?: undefined;
3958
3957
  signature?: undefined;
3959
- administrativeAreaId?: undefined;
3958
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3959
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3960
3960
  } | {
3961
3961
  id: string;
3962
3962
  type: "user";
3963
3963
  role: string;
3964
3964
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3965
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
3965
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3966
3966
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3967
3967
  };
3968
3968
  }>;
@@ -3984,18 +3984,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3984
3984
  type: "user";
3985
3985
  status: "active" | "pending" | "deactivated";
3986
3986
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
3987
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
3987
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3988
3988
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3989
3989
  device?: string | undefined;
3990
3990
  fullHonorificName?: string | undefined;
3991
3991
  mobile?: string | undefined;
3992
3992
  email?: string | undefined;
3993
+ data?: Record<string, import("../commons").FieldValue> | undefined;
3993
3994
  } | {
3994
3995
  id: string;
3995
3996
  name: string;
3996
3997
  type: "system";
3997
- primaryOfficeId?: undefined;
3998
- administrativeAreaId?: undefined;
3998
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3999
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3999
4000
  signature?: undefined;
4000
4001
  avatar?: undefined;
4001
4002
  fullHonorificName?: string | undefined;
@@ -4026,6 +4027,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4026
4027
  originalFilename: string;
4027
4028
  type: string;
4028
4029
  } | undefined;
4030
+ data?: Record<string, unknown> | undefined;
4029
4031
  };
4030
4032
  output: {
4031
4033
  id: string;
@@ -4039,12 +4041,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4039
4041
  type: "user";
4040
4042
  status: "active" | "pending" | "deactivated";
4041
4043
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4042
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4044
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4043
4045
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4044
4046
  device?: string | undefined;
4045
4047
  fullHonorificName?: string | undefined;
4046
4048
  mobile?: string | undefined;
4047
4049
  email?: string | undefined;
4050
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4048
4051
  };
4049
4052
  meta: import("trpc-to-openapi").OpenApiMeta;
4050
4053
  }>;
@@ -4070,6 +4073,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4070
4073
  originalFilename: string;
4071
4074
  type: string;
4072
4075
  } | undefined;
4076
+ data?: Record<string, unknown> | undefined;
4073
4077
  } & {
4074
4078
  id: string;
4075
4079
  };
@@ -4085,12 +4089,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4085
4089
  type: "user";
4086
4090
  status: "active" | "pending" | "deactivated";
4087
4091
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4088
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4092
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4089
4093
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4090
4094
  device?: string | undefined;
4091
4095
  fullHonorificName?: string | undefined;
4092
4096
  mobile?: string | undefined;
4093
4097
  email?: string | undefined;
4098
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4094
4099
  };
4095
4100
  meta: import("trpc-to-openapi").OpenApiMeta;
4096
4101
  }>;
@@ -4108,18 +4113,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4108
4113
  type: "user";
4109
4114
  status: "active" | "pending" | "deactivated";
4110
4115
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4111
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4116
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4112
4117
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4113
4118
  device?: string | undefined;
4114
4119
  fullHonorificName?: string | undefined;
4115
4120
  mobile?: string | undefined;
4116
4121
  email?: string | undefined;
4122
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4117
4123
  } | {
4118
4124
  id: string;
4119
4125
  name: string;
4120
4126
  type: "system";
4121
- primaryOfficeId?: undefined;
4122
- administrativeAreaId?: undefined;
4127
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4128
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4123
4129
  signature?: undefined;
4124
4130
  avatar?: undefined;
4125
4131
  fullHonorificName?: string | undefined;
@@ -4135,9 +4141,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4135
4141
  sortOrder: "desc" | "asc";
4136
4142
  username?: string | undefined;
4137
4143
  mobile?: string | undefined;
4144
+ email?: string | undefined;
4138
4145
  status?: string | undefined;
4139
4146
  primaryOfficeId?: string | undefined;
4140
- locationId?: string | undefined;
4141
4147
  };
4142
4148
  output: ({
4143
4149
  id: string;
@@ -4151,18 +4157,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4151
4157
  type: "user";
4152
4158
  status: "active" | "pending" | "deactivated";
4153
4159
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4154
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4160
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4155
4161
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4156
4162
  device?: string | undefined;
4157
4163
  fullHonorificName?: string | undefined;
4158
4164
  mobile?: string | undefined;
4159
4165
  email?: string | undefined;
4166
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4160
4167
  } | {
4161
4168
  id: string;
4162
4169
  name: string;
4163
4170
  type: "system";
4164
- primaryOfficeId?: undefined;
4165
- administrativeAreaId?: undefined;
4171
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4172
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4166
4173
  signature?: undefined;
4167
4174
  avatar?: undefined;
4168
4175
  fullHonorificName?: string | undefined;
@@ -4183,25 +4190,25 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4183
4190
  output: {
4184
4191
  results: {
4185
4192
  id: (string & import("zod").$brand<"UUID">) | null;
4193
+ createdBy: string;
4194
+ createdAt: string | null;
4195
+ status: import("../storage/postgres/events/schema/app/ActionStatus").default;
4186
4196
  transactionId: string | null;
4187
4197
  eventId: string & import("zod").$brand<"UUID">;
4188
4198
  actionType: string;
4189
4199
  declaration: Record<string, any>;
4190
4200
  annotation: Record<string, any> | null;
4191
- createdBy: string;
4192
4201
  createdByRole: string | null;
4193
4202
  createdByUserType: import("../storage/postgres/events/schema/app/UserType").default;
4194
4203
  createdBySignature: string | null;
4195
4204
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null;
4196
- createdAt: string | null;
4197
- status: import("../storage/postgres/events/schema/app/ActionStatus").default;
4205
+ updatedAt: string | null;
4198
4206
  assignedTo: string | null;
4199
4207
  originalActionId: (string & import("zod").$brand<"UUID">) | null;
4200
4208
  registrationNumber: string | null;
4201
4209
  requestId: string | null;
4202
4210
  content: Record<string, any> | null;
4203
4211
  customActionType: string | null;
4204
- updatedAt: string | null;
4205
4212
  eventType: string | null;
4206
4213
  trackingId: string | null;
4207
4214
  }[];
@@ -4215,15 +4222,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4215
4222
  user: {
4216
4223
  id: string;
4217
4224
  type: "system";
4218
- primaryOfficeId?: undefined;
4219
4225
  signature?: undefined;
4220
- administrativeAreaId?: undefined;
4226
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4227
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4221
4228
  } | {
4222
4229
  id: string;
4223
4230
  type: "user";
4224
4231
  role: string;
4225
4232
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4226
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4233
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4227
4234
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4228
4235
  };
4229
4236
  }>;
@@ -4235,16 +4242,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4235
4242
  input: void;
4236
4243
  output: {
4237
4244
  id: string;
4238
- scopes: string[];
4245
+ scopes: (string & import("zod").$brand<"EncodedScope">)[];
4239
4246
  }[];
4240
4247
  meta: import("trpc-to-openapi").OpenApiMeta;
4241
4248
  }>;
4242
4249
  }>>;
4243
4250
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
4244
4251
  input: {
4245
- userId: string;
4246
- existingPassword: string;
4247
4252
  password: string;
4253
+ existingPassword?: string | undefined;
4248
4254
  };
4249
4255
  output: void;
4250
4256
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4290,7 +4296,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4290
4296
  meta: import("trpc-to-openapi").OpenApiMeta;
4291
4297
  }>;
4292
4298
  activate: import("@trpc/server").TRPCMutationProcedure<{
4293
- input: any;
4299
+ input: {
4300
+ userId: string;
4301
+ password: string;
4302
+ securityQNAs: {
4303
+ questionKey: string;
4304
+ answer: string;
4305
+ }[];
4306
+ };
4307
+ output: void;
4308
+ meta: import("trpc-to-openapi").OpenApiMeta;
4309
+ }>;
4310
+ deactivateSuperUser: import("@trpc/server").TRPCMutationProcedure<{
4311
+ input: {
4312
+ username: string;
4313
+ };
4294
4314
  output: void;
4295
4315
  meta: import("trpc-to-openapi").OpenApiMeta;
4296
4316
  }>;
@@ -4300,15 +4320,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4300
4320
  user: {
4301
4321
  id: string;
4302
4322
  type: "system";
4303
- primaryOfficeId?: undefined;
4304
4323
  signature?: undefined;
4305
- administrativeAreaId?: undefined;
4324
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4325
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4306
4326
  } | {
4307
4327
  id: string;
4308
4328
  type: "user";
4309
4329
  role: string;
4310
4330
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4311
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4331
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4312
4332
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4313
4333
  };
4314
4334
  }>;
@@ -4324,29 +4344,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4324
4344
  role: string;
4325
4345
  primaryOfficeId: string;
4326
4346
  };
4327
- responseSummary: Record<string, never>;
4328
4347
  } | {
4329
- operation: "user.deactivate";
4348
+ operation: "user.deactivate" | "user.reactivate";
4330
4349
  requestData: {
4331
4350
  subjectId: string;
4332
4351
  reason: string;
4333
4352
  comment?: string | undefined;
4334
4353
  };
4335
- responseSummary: Record<string, never>;
4336
4354
  } | {
4337
- operation: "user.reactivate";
4338
- requestData: {
4339
- subjectId: string;
4340
- reason: string;
4341
- comment?: string | undefined;
4342
- };
4343
- responseSummary: Record<string, never>;
4344
- } | {
4345
- operation: "user.edit_user";
4355
+ operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.username_reminder" | "user.username_reminder_by_admin";
4346
4356
  requestData: {
4347
4357
  subjectId: string;
4348
4358
  };
4349
- responseSummary: Record<string, never>;
4350
4359
  } | {
4351
4360
  operation: "user.email_address_changed";
4352
4361
  requestData: {
@@ -4355,36 +4364,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4355
4364
  responseSummary: {
4356
4365
  email: string;
4357
4366
  };
4358
- } | {
4359
- operation: "user.logged_in";
4360
- requestData: {
4361
- subjectId: string;
4362
- };
4363
- responseSummary: Record<string, never>;
4364
- } | {
4365
- operation: "user.logged_out";
4366
- requestData: {
4367
- subjectId: string;
4368
- };
4369
- responseSummary: Record<string, never>;
4370
- } | {
4371
- operation: "user.password_changed";
4372
- requestData: {
4373
- subjectId: string;
4374
- };
4375
- responseSummary: Record<string, never>;
4376
- } | {
4377
- operation: "user.password_reset";
4378
- requestData: {
4379
- subjectId: string;
4380
- };
4381
- responseSummary: Record<string, never>;
4382
- } | {
4383
- operation: "user.password_reset_by_admin";
4384
- requestData: {
4385
- subjectId: string;
4386
- };
4387
- responseSummary: Record<string, never>;
4388
4367
  } | {
4389
4368
  operation: "user.phone_number_changed";
4390
4369
  requestData: {
@@ -4393,18 +4372,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4393
4372
  responseSummary: {
4394
4373
  phoneNumber: string;
4395
4374
  };
4396
- } | {
4397
- operation: "user.username_reminder";
4398
- requestData: {
4399
- subjectId: string;
4400
- };
4401
- responseSummary: Record<string, never>;
4402
- } | {
4403
- operation: "user.username_reminder_by_admin";
4404
- requestData: {
4405
- subjectId: string;
4406
- };
4407
- responseSummary: Record<string, never>;
4408
4375
  };
4409
4376
  output: void;
4410
4377
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4416,17 +4383,224 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4416
4383
  count?: number | undefined;
4417
4384
  timeStart?: string | undefined;
4418
4385
  timeEnd?: string | undefined;
4386
+ excludeOperations?: string[] | undefined;
4419
4387
  };
4420
4388
  output: {
4421
- results: {
4389
+ results: ({
4422
4390
  id: string;
4423
4391
  clientId: string;
4424
- clientType: string;
4425
- operation: string;
4426
- requestData: Record<string, unknown> | null;
4427
- responseSummary: Record<string, unknown> | null;
4392
+ clientType: "system" | "user";
4428
4393
  createdAt: string;
4429
- }[];
4394
+ operation: "event.create";
4395
+ requestData: {
4396
+ transactionId: string;
4397
+ type: string;
4398
+ createdAtLocation: string | null;
4399
+ };
4400
+ responseSummary: {
4401
+ eventId: string;
4402
+ trackingId: string;
4403
+ };
4404
+ } | {
4405
+ id: string;
4406
+ clientId: string;
4407
+ clientType: "system" | "user";
4408
+ createdAt: string;
4409
+ operation: "event.get";
4410
+ requestData: {
4411
+ eventId: string;
4412
+ };
4413
+ responseSummary: {
4414
+ eventType: string;
4415
+ trackingId: string;
4416
+ };
4417
+ } | {
4418
+ id: string;
4419
+ clientId: string;
4420
+ createdAt: string;
4421
+ operation: "event.search";
4422
+ clientType: "system";
4423
+ requestData: {
4424
+ query: Record<string, unknown> | null;
4425
+ limit: number | null;
4426
+ offset: number | null;
4427
+ };
4428
+ responseSummary: {
4429
+ total: number;
4430
+ eventIds: string[];
4431
+ };
4432
+ } | {
4433
+ id: string;
4434
+ clientId: string;
4435
+ clientType: "system" | "user";
4436
+ createdAt: string;
4437
+ operation: "event.actions.notify.request" | "event.actions.declare.request" | "event.actions.register.request" | "event.actions.reject.request" | "event.actions.validate.request" | "event.actions.edit.request" | "event.actions.assign.request" | "event.actions.unassign.request" | "event.actions.read.request" | "event.actions.archive.request" | "event.actions.reinstate.request" | "event.actions.print_certificate.request" | "event.actions.correction.request.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request";
4438
+ requestData: {
4439
+ eventId: string;
4440
+ actionType: string;
4441
+ eventType: string;
4442
+ trackingId: string;
4443
+ transactionId: string;
4444
+ };
4445
+ } | {
4446
+ id: string;
4447
+ clientId: string;
4448
+ clientType: "system" | "user";
4449
+ createdAt: string;
4450
+ operation: "event.actions.custom.request";
4451
+ requestData: {
4452
+ eventId: string;
4453
+ actionType: "CUSTOM";
4454
+ customAction: string;
4455
+ eventType: string;
4456
+ trackingId: string;
4457
+ transactionId: string;
4458
+ };
4459
+ } | {
4460
+ id: string;
4461
+ clientId: string;
4462
+ clientType: "system" | "user";
4463
+ createdAt: string;
4464
+ operation: "integrations.create";
4465
+ requestData: {
4466
+ name: string;
4467
+ scopes: string[];
4468
+ };
4469
+ responseSummary: {
4470
+ clientId: string;
4471
+ };
4472
+ } | {
4473
+ id: string;
4474
+ clientId: string;
4475
+ clientType: "system" | "user";
4476
+ createdAt: string;
4477
+ operation: "integrations.refreshToken";
4478
+ requestData: {
4479
+ clientId: string;
4480
+ };
4481
+ responseSummary: {
4482
+ clientId: string;
4483
+ };
4484
+ } | {
4485
+ id: string;
4486
+ clientId: string;
4487
+ clientType: "system" | "user";
4488
+ createdAt: string;
4489
+ operation: "integrations.deactivate";
4490
+ requestData: {
4491
+ id: string;
4492
+ };
4493
+ responseSummary: {
4494
+ id: string;
4495
+ status: string;
4496
+ };
4497
+ } | {
4498
+ id: string;
4499
+ clientId: string;
4500
+ clientType: "system" | "user";
4501
+ createdAt: string;
4502
+ operation: "integrations.activate";
4503
+ requestData: {
4504
+ id: string;
4505
+ };
4506
+ responseSummary: {
4507
+ id: string;
4508
+ status: string;
4509
+ };
4510
+ } | {
4511
+ id: string;
4512
+ clientId: string;
4513
+ clientType: "system" | "user";
4514
+ createdAt: string;
4515
+ operation: "integrations.delete";
4516
+ requestData: {
4517
+ id: string;
4518
+ };
4519
+ responseSummary: {
4520
+ id: string;
4521
+ name: string;
4522
+ };
4523
+ } | {
4524
+ id: string;
4525
+ clientId: string;
4526
+ clientType: "system" | "user";
4527
+ createdAt: string;
4528
+ operation: "integrations.refreshSecret";
4529
+ requestData: {
4530
+ id: string;
4531
+ };
4532
+ responseSummary: {
4533
+ clientId: string;
4534
+ };
4535
+ } | {
4536
+ id: string;
4537
+ clientId: string;
4538
+ clientType: "system" | "user";
4539
+ createdAt: string;
4540
+ operation: "attachments.upload";
4541
+ requestData: {
4542
+ transactionId: string;
4543
+ path: string | null;
4544
+ };
4545
+ responseSummary: {
4546
+ fileUrl: string;
4547
+ };
4548
+ } | {
4549
+ id: string;
4550
+ clientId: string;
4551
+ clientType: "system" | "user";
4552
+ createdAt: string;
4553
+ operation: "user.create_user";
4554
+ requestData: {
4555
+ subjectId: string;
4556
+ role: string;
4557
+ primaryOfficeId: string;
4558
+ };
4559
+ } | {
4560
+ id: string;
4561
+ clientId: string;
4562
+ clientType: "system" | "user";
4563
+ createdAt: string;
4564
+ operation: "user.deactivate" | "user.reactivate";
4565
+ requestData: {
4566
+ subjectId: string;
4567
+ reason: string;
4568
+ comment?: string | undefined;
4569
+ };
4570
+ } | {
4571
+ id: string;
4572
+ clientId: string;
4573
+ clientType: "system" | "user";
4574
+ createdAt: string;
4575
+ operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.username_reminder" | "user.username_reminder_by_admin";
4576
+ requestData: {
4577
+ subjectId: string;
4578
+ };
4579
+ } | {
4580
+ id: string;
4581
+ clientId: string;
4582
+ clientType: "system" | "user";
4583
+ createdAt: string;
4584
+ operation: "user.email_address_changed";
4585
+ requestData: {
4586
+ subjectId: string;
4587
+ };
4588
+ responseSummary: {
4589
+ email: string;
4590
+ };
4591
+ } | {
4592
+ id: string;
4593
+ clientId: string;
4594
+ clientType: "system" | "user";
4595
+ createdAt: string;
4596
+ operation: "user.phone_number_changed";
4597
+ requestData: {
4598
+ subjectId: string;
4599
+ };
4600
+ responseSummary: {
4601
+ phoneNumber: string;
4602
+ };
4603
+ })[];
4430
4604
  total: number;
4431
4605
  };
4432
4606
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4439,15 +4613,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4439
4613
  user: {
4440
4614
  id: string;
4441
4615
  type: "system";
4442
- primaryOfficeId?: undefined;
4443
4616
  signature?: undefined;
4444
- administrativeAreaId?: undefined;
4617
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4618
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4445
4619
  } | {
4446
4620
  id: string;
4447
4621
  type: "user";
4448
4622
  role: string;
4449
4623
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4450
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4624
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4451
4625
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4452
4626
  };
4453
4627
  }>;
@@ -4512,15 +4686,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4512
4686
  user: {
4513
4687
  id: string;
4514
4688
  type: "system";
4515
- primaryOfficeId?: undefined;
4516
4689
  signature?: undefined;
4517
- administrativeAreaId?: undefined;
4690
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4691
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4518
4692
  } | {
4519
4693
  id: string;
4520
4694
  type: "user";
4521
4695
  role: string;
4522
4696
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4523
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4697
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4524
4698
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4525
4699
  };
4526
4700
  }>;
@@ -4534,15 +4708,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4534
4708
  user: {
4535
4709
  id: string;
4536
4710
  type: "system";
4537
- primaryOfficeId?: undefined;
4538
4711
  signature?: undefined;
4539
- administrativeAreaId?: undefined;
4712
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4713
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4540
4714
  } | {
4541
4715
  id: string;
4542
4716
  type: "user";
4543
4717
  role: string;
4544
4718
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4545
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4719
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4546
4720
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4547
4721
  };
4548
4722
  }>;
@@ -4565,10 +4739,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4565
4739
  eventType?: string | undefined;
4566
4740
  status?: {
4567
4741
  type: "anyOf";
4568
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4742
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4569
4743
  } | {
4570
4744
  type: "exact";
4571
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4745
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4572
4746
  } | undefined;
4573
4747
  createdAt?: {
4574
4748
  type: "exact";
@@ -4595,7 +4769,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4595
4769
  'legalStatuses.DECLARED.createdAtLocation'?: {
4596
4770
  type: "within";
4597
4771
  location: string | {
4598
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4772
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4599
4773
  $location?: string | undefined;
4600
4774
  };
4601
4775
  } | undefined;
@@ -4617,7 +4791,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4617
4791
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4618
4792
  type: "within";
4619
4793
  location: string | {
4620
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4794
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4621
4795
  $location?: string | undefined;
4622
4796
  };
4623
4797
  } | undefined;
@@ -4632,35 +4806,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4632
4806
  createdAtLocation?: {
4633
4807
  type: "within";
4634
4808
  location: string | {
4635
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4809
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4810
+ $location?: string | undefined;
4811
+ };
4812
+ } | {
4813
+ type: "exact";
4814
+ term: string | {
4815
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4636
4816
  $location?: string | undefined;
4637
4817
  };
4638
4818
  } | undefined;
4639
4819
  updatedAtLocation?: {
4640
4820
  type: "within";
4641
4821
  location: string | {
4642
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4822
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4823
+ $location?: string | undefined;
4824
+ };
4825
+ } | {
4826
+ type: "exact";
4827
+ term: string | {
4828
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4643
4829
  $location?: string | undefined;
4644
4830
  };
4645
4831
  } | undefined;
4646
4832
  updatedByUserRole?: {
4647
4833
  type: "exact";
4648
4834
  term: string | {
4649
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4835
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4650
4836
  $location?: string | undefined;
4651
4837
  };
4652
4838
  } | undefined;
4653
4839
  assignedTo?: {
4654
4840
  type: "exact";
4655
4841
  term: string | {
4656
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4842
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4657
4843
  $location?: string | undefined;
4658
4844
  };
4659
4845
  } | undefined;
4660
4846
  createdBy?: {
4661
4847
  type: "exact";
4662
4848
  term: string | {
4663
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4849
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4664
4850
  $location?: string | undefined;
4665
4851
  };
4666
4852
  } | undefined;
@@ -4671,7 +4857,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4671
4857
  updatedBy?: {
4672
4858
  type: "exact";
4673
4859
  term: string | {
4674
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4860
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4675
4861
  $location?: string | undefined;
4676
4862
  };
4677
4863
  } | undefined;
@@ -4691,10 +4877,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4691
4877
  eventType?: string | undefined;
4692
4878
  status?: {
4693
4879
  type: "anyOf";
4694
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4880
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4695
4881
  } | {
4696
4882
  type: "exact";
4697
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4883
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4698
4884
  } | undefined;
4699
4885
  createdAt?: {
4700
4886
  type: "exact";
@@ -4721,7 +4907,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4721
4907
  'legalStatuses.DECLARED.createdAtLocation'?: {
4722
4908
  type: "within";
4723
4909
  location: string | {
4724
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4910
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4725
4911
  $location?: string | undefined;
4726
4912
  };
4727
4913
  } | undefined;
@@ -4743,7 +4929,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4743
4929
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4744
4930
  type: "within";
4745
4931
  location: string | {
4746
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4932
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4747
4933
  $location?: string | undefined;
4748
4934
  };
4749
4935
  } | undefined;
@@ -4758,35 +4944,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4758
4944
  createdAtLocation?: {
4759
4945
  type: "within";
4760
4946
  location: string | {
4761
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4947
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4948
+ $location?: string | undefined;
4949
+ };
4950
+ } | {
4951
+ type: "exact";
4952
+ term: string | {
4953
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4762
4954
  $location?: string | undefined;
4763
4955
  };
4764
4956
  } | undefined;
4765
4957
  updatedAtLocation?: {
4766
4958
  type: "within";
4767
4959
  location: string | {
4768
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4960
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4961
+ $location?: string | undefined;
4962
+ };
4963
+ } | {
4964
+ type: "exact";
4965
+ term: string | {
4966
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4769
4967
  $location?: string | undefined;
4770
4968
  };
4771
4969
  } | undefined;
4772
4970
  updatedByUserRole?: {
4773
4971
  type: "exact";
4774
4972
  term: string | {
4775
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4973
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4776
4974
  $location?: string | undefined;
4777
4975
  };
4778
4976
  } | undefined;
4779
4977
  assignedTo?: {
4780
4978
  type: "exact";
4781
4979
  term: string | {
4782
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4980
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4783
4981
  $location?: string | undefined;
4784
4982
  };
4785
4983
  } | undefined;
4786
4984
  createdBy?: {
4787
4985
  type: "exact";
4788
4986
  term: string | {
4789
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4987
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4790
4988
  $location?: string | undefined;
4791
4989
  };
4792
4990
  } | undefined;
@@ -4797,7 +4995,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4797
4995
  updatedBy?: {
4798
4996
  type: "exact";
4799
4997
  term: string | {
4800
- $userField: "id" | "name" | "firstname" | "surname" | "fullHonorificName" | "role" | "administrativeAreaId" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4998
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4801
4999
  $location?: string | undefined;
4802
5000
  };
4803
5001
  } | undefined;
@@ -4819,7 +5017,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4819
5017
  description: string;
4820
5018
  };
4821
5019
  value: {
4822
- $event: "id" | "createdBy" | "createdByUserType" | "createdAtLocation" | "createdAt" | "status" | "assignedTo" | "updatedAt" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
5020
+ $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
4823
5021
  };
4824
5022
  }[];
4825
5023
  icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
@@ -4850,15 +5048,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4850
5048
  user: {
4851
5049
  id: string;
4852
5050
  type: "system";
4853
- primaryOfficeId?: undefined;
4854
5051
  signature?: undefined;
4855
- administrativeAreaId?: undefined;
5052
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5053
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4856
5054
  } | {
4857
5055
  id: string;
4858
5056
  type: "user";
4859
5057
  role: string;
4860
5058
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4861
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5059
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4862
5060
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4863
5061
  };
4864
5062
  }>;
@@ -4898,15 +5096,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4898
5096
  user: {
4899
5097
  id: string;
4900
5098
  type: "system";
4901
- primaryOfficeId?: undefined;
4902
5099
  signature?: undefined;
4903
- administrativeAreaId?: undefined;
5100
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5101
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4904
5102
  } | {
4905
5103
  id: string;
4906
5104
  type: "user";
4907
5105
  role: string;
4908
5106
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4909
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5107
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4910
5108
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4911
5109
  };
4912
5110
  }>;
@@ -4934,7 +5132,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4934
5132
  output: {
4935
5133
  id: string & import("zod").$brand<"UUID">;
4936
5134
  status: string;
4937
- scope: string[];
5135
+ scope: (string & import("zod").$brand<"EncodedScope">)[];
4938
5136
  };
4939
5137
  meta: import("trpc-to-openapi").OpenApiMeta;
4940
5138
  }>;
@@ -5016,15 +5214,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5016
5214
  user: {
5017
5215
  id: string;
5018
5216
  type: "system";
5019
- primaryOfficeId?: undefined;
5020
5217
  signature?: undefined;
5021
- administrativeAreaId?: undefined;
5218
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5219
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5022
5220
  } | {
5023
5221
  id: string;
5024
5222
  type: "user";
5025
5223
  role: string;
5026
5224
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5027
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5225
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5028
5226
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5029
5227
  };
5030
5228
  }>;
@@ -5045,6 +5243,40 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5045
5243
  meta: import("trpc-to-openapi").OpenApiMeta;
5046
5244
  }>;
5047
5245
  }>>;
5246
+ announcement: import("@trpc/server").TRPCBuiltRouter<{
5247
+ ctx: Partial<{
5248
+ token: `Bearer ${string}`;
5249
+ user: {
5250
+ id: string;
5251
+ type: "system";
5252
+ signature?: undefined;
5253
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5254
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5255
+ } | {
5256
+ id: string;
5257
+ type: "user";
5258
+ role: string;
5259
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
5260
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5261
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5262
+ };
5263
+ }>;
5264
+ meta: import("trpc-to-openapi").OpenApiMeta;
5265
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
5266
+ transformer: true;
5267
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5268
+ broadcast: import("@trpc/server").TRPCMutationProcedure<{
5269
+ input: {
5270
+ subject: string;
5271
+ body: string;
5272
+ locale: string;
5273
+ };
5274
+ output: {
5275
+ success: boolean;
5276
+ };
5277
+ meta: import("trpc-to-openapi").OpenApiMeta;
5278
+ }>;
5279
+ }>>;
5048
5280
  }>>;
5049
5281
  /** @knipignore */
5050
5282
  export type AppRouter = typeof appRouter;