@opencrvs/toolkit 2.0.0-rc.3edb4f4 → 2.0.0-rc.71d2a40

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.
@@ -2,13 +2,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: Partial<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
- id: string;
5
+ id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
7
  signature?: undefined;
8
8
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
9
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10
10
  } | {
11
- id: string;
11
+ id: string & import("zod").$brand<"UUID">;
12
12
  type: "user";
13
13
  role: string;
14
14
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -24,13 +24,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  ctx: Partial<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
- id: string;
27
+ id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
29
  signature?: undefined;
30
30
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
31
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
32
32
  } | {
33
- id: string;
33
+ id: string & import("zod").$brand<"UUID">;
34
34
  type: "user";
35
35
  role: string;
36
36
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -46,13 +46,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
46
46
  ctx: Partial<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
- id: string;
49
+ id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
51
  signature?: undefined;
52
52
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
53
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
54
54
  } | {
55
- id: string;
55
+ id: string & import("zod").$brand<"UUID">;
56
56
  type: "user";
57
57
  role: string;
58
58
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -92,13 +92,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
92
92
  ctx: Partial<{
93
93
  token: `Bearer ${string}`;
94
94
  user: {
95
- id: string;
95
+ id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
97
  signature?: undefined;
98
98
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
99
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
100
100
  } | {
101
- id: string;
101
+ id: string & import("zod").$brand<"UUID">;
102
102
  type: "user";
103
103
  role: string;
104
104
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1054,13 +1054,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1054
1054
  ctx: Partial<{
1055
1055
  token: `Bearer ${string}`;
1056
1056
  user: {
1057
- id: string;
1057
+ id: string & import("zod").$brand<"UUID">;
1058
1058
  type: "system";
1059
1059
  signature?: undefined;
1060
1060
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1061
1061
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1062
1062
  } | {
1063
- id: string;
1063
+ id: string & import("zod").$brand<"UUID">;
1064
1064
  type: "user";
1065
1065
  role: string;
1066
1066
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1133,13 +1133,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1133
1133
  ctx: Partial<{
1134
1134
  token: `Bearer ${string}`;
1135
1135
  user: {
1136
- id: string;
1136
+ id: string & import("zod").$brand<"UUID">;
1137
1137
  type: "system";
1138
1138
  signature?: undefined;
1139
1139
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1140
1140
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1141
1141
  } | {
1142
- id: string;
1142
+ id: string & import("zod").$brand<"UUID">;
1143
1143
  type: "user";
1144
1144
  role: string;
1145
1145
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1155,13 +1155,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1155
1155
  ctx: Partial<{
1156
1156
  token: `Bearer ${string}`;
1157
1157
  user: {
1158
- id: string;
1158
+ id: string & import("zod").$brand<"UUID">;
1159
1159
  type: "system";
1160
1160
  signature?: undefined;
1161
1161
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1162
1162
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1163
1163
  } | {
1164
- id: string;
1164
+ id: string & import("zod").$brand<"UUID">;
1165
1165
  type: "user";
1166
1166
  role: string;
1167
1167
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1199,13 +1199,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1199
1199
  ctx: Partial<{
1200
1200
  token: `Bearer ${string}`;
1201
1201
  user: {
1202
- id: string;
1202
+ id: string & import("zod").$brand<"UUID">;
1203
1203
  type: "system";
1204
1204
  signature?: undefined;
1205
1205
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1206
1206
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1207
1207
  } | {
1208
- id: string;
1208
+ id: string & import("zod").$brand<"UUID">;
1209
1209
  type: "user";
1210
1210
  role: string;
1211
1211
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1552,13 +1552,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1552
1552
  ctx: Partial<{
1553
1553
  token: `Bearer ${string}`;
1554
1554
  user: {
1555
- id: string;
1555
+ id: string & import("zod").$brand<"UUID">;
1556
1556
  type: "system";
1557
1557
  signature?: undefined;
1558
1558
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
1559
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
1560
  } | {
1561
- id: string;
1561
+ id: string & import("zod").$brand<"UUID">;
1562
1562
  type: "user";
1563
1563
  role: string;
1564
1564
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1596,13 +1596,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1596
1596
  ctx: Partial<{
1597
1597
  token: `Bearer ${string}`;
1598
1598
  user: {
1599
- id: string;
1599
+ id: string & import("zod").$brand<"UUID">;
1600
1600
  type: "system";
1601
1601
  signature?: undefined;
1602
1602
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1603
1603
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1604
1604
  } | {
1605
- id: string;
1605
+ id: string & import("zod").$brand<"UUID">;
1606
1606
  type: "user";
1607
1607
  role: string;
1608
1608
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1640,13 +1640,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1640
1640
  ctx: Partial<{
1641
1641
  token: `Bearer ${string}`;
1642
1642
  user: {
1643
- id: string;
1643
+ id: string & import("zod").$brand<"UUID">;
1644
1644
  type: "system";
1645
1645
  signature?: undefined;
1646
1646
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1647
1647
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1648
1648
  } | {
1649
- id: string;
1649
+ id: string & import("zod").$brand<"UUID">;
1650
1650
  type: "user";
1651
1651
  role: string;
1652
1652
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1684,13 +1684,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1684
1684
  ctx: Partial<{
1685
1685
  token: `Bearer ${string}`;
1686
1686
  user: {
1687
- id: string;
1687
+ id: string & import("zod").$brand<"UUID">;
1688
1688
  type: "system";
1689
1689
  signature?: undefined;
1690
1690
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1691
1691
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1692
1692
  } | {
1693
- id: string;
1693
+ id: string & import("zod").$brand<"UUID">;
1694
1694
  type: "user";
1695
1695
  role: string;
1696
1696
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1728,13 +1728,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1728
1728
  ctx: Partial<{
1729
1729
  token: `Bearer ${string}`;
1730
1730
  user: {
1731
- id: string;
1731
+ id: string & import("zod").$brand<"UUID">;
1732
1732
  type: "system";
1733
1733
  signature?: undefined;
1734
1734
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1735
1735
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1736
1736
  } | {
1737
- id: string;
1737
+ id: string & import("zod").$brand<"UUID">;
1738
1738
  type: "user";
1739
1739
  role: string;
1740
1740
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -1772,13 +1772,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1772
1772
  ctx: Partial<{
1773
1773
  token: `Bearer ${string}`;
1774
1774
  user: {
1775
- id: string;
1775
+ id: string & import("zod").$brand<"UUID">;
1776
1776
  type: "system";
1777
1777
  signature?: undefined;
1778
1778
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1779
1779
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1780
1780
  } | {
1781
- id: string;
1781
+ id: string & import("zod").$brand<"UUID">;
1782
1782
  type: "user";
1783
1783
  role: string;
1784
1784
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -2126,13 +2126,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2126
2126
  ctx: Partial<{
2127
2127
  token: `Bearer ${string}`;
2128
2128
  user: {
2129
- id: string;
2129
+ id: string & import("zod").$brand<"UUID">;
2130
2130
  type: "system";
2131
2131
  signature?: undefined;
2132
2132
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2133
2133
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2134
2134
  } | {
2135
- id: string;
2135
+ id: string & import("zod").$brand<"UUID">;
2136
2136
  type: "user";
2137
2137
  role: string;
2138
2138
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -2779,13 +2779,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2779
2779
  ctx: Partial<{
2780
2780
  token: `Bearer ${string}`;
2781
2781
  user: {
2782
- id: string;
2782
+ id: string & import("zod").$brand<"UUID">;
2783
2783
  type: "system";
2784
2784
  signature?: undefined;
2785
2785
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2786
2786
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2787
2787
  } | {
2788
- id: string;
2788
+ id: string & import("zod").$brand<"UUID">;
2789
2789
  type: "user";
2790
2790
  role: string;
2791
2791
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -2801,13 +2801,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2801
2801
  ctx: Partial<{
2802
2802
  token: `Bearer ${string}`;
2803
2803
  user: {
2804
- id: string;
2804
+ id: string & import("zod").$brand<"UUID">;
2805
2805
  type: "system";
2806
2806
  signature?: undefined;
2807
2807
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2808
2808
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2809
2809
  } | {
2810
- id: string;
2810
+ id: string & import("zod").$brand<"UUID">;
2811
2811
  type: "user";
2812
2812
  role: string;
2813
2813
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -2845,13 +2845,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2845
2845
  ctx: Partial<{
2846
2846
  token: `Bearer ${string}`;
2847
2847
  user: {
2848
- id: string;
2848
+ id: string & import("zod").$brand<"UUID">;
2849
2849
  type: "system";
2850
2850
  signature?: undefined;
2851
2851
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2852
2852
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2853
2853
  } | {
2854
- id: string;
2854
+ id: string & import("zod").$brand<"UUID">;
2855
2855
  type: "user";
2856
2856
  role: string;
2857
2857
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -2889,13 +2889,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2889
2889
  ctx: Partial<{
2890
2890
  token: `Bearer ${string}`;
2891
2891
  user: {
2892
- id: string;
2892
+ id: string & import("zod").$brand<"UUID">;
2893
2893
  type: "system";
2894
2894
  signature?: undefined;
2895
2895
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2896
2896
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2897
2897
  } | {
2898
- id: string;
2898
+ id: string & import("zod").$brand<"UUID">;
2899
2899
  type: "user";
2900
2900
  role: string;
2901
2901
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -2934,13 +2934,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2934
2934
  ctx: Partial<{
2935
2935
  token: `Bearer ${string}`;
2936
2936
  user: {
2937
- id: string;
2937
+ id: string & import("zod").$brand<"UUID">;
2938
2938
  type: "system";
2939
2939
  signature?: undefined;
2940
2940
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2941
2941
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2942
2942
  } | {
2943
- id: string;
2943
+ id: string & import("zod").$brand<"UUID">;
2944
2944
  type: "user";
2945
2945
  role: string;
2946
2946
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -3952,13 +3952,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3952
3952
  ctx: Partial<{
3953
3953
  token: `Bearer ${string}`;
3954
3954
  user: {
3955
- id: string;
3955
+ id: string & import("zod").$brand<"UUID">;
3956
3956
  type: "system";
3957
3957
  signature?: undefined;
3958
3958
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3959
3959
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3960
3960
  } | {
3961
- id: string;
3961
+ id: string & import("zod").$brand<"UUID">;
3962
3962
  type: "user";
3963
3963
  role: string;
3964
3964
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -3973,7 +3973,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3973
3973
  get: import("@trpc/server").TRPCQueryProcedure<{
3974
3974
  input: string;
3975
3975
  output: {
3976
- id: string;
3976
+ id: string & import("zod").$brand<"UUID">;
3977
3977
  name: {
3978
3978
  use: string;
3979
3979
  given: string[];
@@ -3992,7 +3992,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3992
3992
  email?: string | undefined;
3993
3993
  data?: Record<string, import("../commons").FieldValue> | undefined;
3994
3994
  } | {
3995
- id: string;
3995
+ id: string & import("zod").$brand<"UUID">;
3996
3996
  name: string;
3997
3997
  type: "system";
3998
3998
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4012,25 +4012,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4012
4012
  given: string[];
4013
4013
  family: string;
4014
4014
  }[];
4015
- email: string;
4016
4015
  role: string;
4017
4016
  primaryOfficeId: string;
4018
- username?: string | undefined;
4019
- mobile?: string | undefined;
4017
+ data?: Record<string, unknown> | undefined;
4020
4018
  fullHonorificName?: string | undefined;
4021
- emailForNotification?: string | undefined;
4022
- password?: string | undefined;
4023
4019
  device?: string | undefined;
4024
- status?: "active" | "pending" | undefined;
4020
+ email?: string | undefined;
4021
+ mobile?: string | undefined;
4022
+ username?: undefined;
4023
+ password?: undefined;
4025
4024
  signature?: {
4026
4025
  path: string;
4027
4026
  originalFilename: string;
4028
4027
  type: string;
4029
4028
  } | undefined;
4030
- data?: Record<string, unknown> | undefined;
4031
4029
  };
4032
4030
  output: {
4033
- id: string;
4031
+ id: string & import("zod").$brand<"UUID">;
4034
4032
  name: {
4035
4033
  use: string;
4036
4034
  given: string[];
@@ -4049,36 +4047,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4049
4047
  email?: string | undefined;
4050
4048
  data?: Record<string, import("../commons").FieldValue> | undefined;
4051
4049
  };
4052
- meta: object;
4050
+ meta: import("trpc-to-openapi").OpenApiMeta;
4053
4051
  }>;
4054
4052
  update: import("@trpc/server").TRPCMutationProcedure<{
4055
4053
  input: {
4054
+ id: string;
4055
+ data?: Record<string, unknown> | undefined;
4056
4056
  name?: {
4057
4057
  use: string;
4058
4058
  given: string[];
4059
4059
  family: string;
4060
4060
  }[] | undefined;
4061
- username?: string | undefined;
4062
- email?: string | undefined;
4063
- mobile?: string | undefined;
4064
- fullHonorificName?: string | undefined;
4065
- emailForNotification?: string | undefined;
4066
- password?: string | undefined;
4067
4061
  role?: string | undefined;
4068
- primaryOfficeId?: string | undefined;
4062
+ fullHonorificName?: string | undefined;
4069
4063
  device?: string | undefined;
4070
- status?: "active" | "pending" | undefined;
4064
+ primaryOfficeId?: string | undefined;
4065
+ email?: string | undefined;
4066
+ mobile?: string | undefined;
4071
4067
  signature?: {
4072
4068
  path: string;
4073
4069
  originalFilename: string;
4074
4070
  type: string;
4075
4071
  } | undefined;
4076
- data?: Record<string, unknown> | undefined;
4077
- } & {
4078
- id: string;
4072
+ status?: "active" | "deactivated" | undefined;
4079
4073
  };
4080
4074
  output: {
4081
- id: string;
4075
+ id: string & import("zod").$brand<"UUID">;
4082
4076
  name: {
4083
4077
  use: string;
4084
4078
  given: string[];
@@ -4102,7 +4096,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4102
4096
  list: import("@trpc/server").TRPCQueryProcedure<{
4103
4097
  input: string[];
4104
4098
  output: ({
4105
- id: string;
4099
+ id: string & import("zod").$brand<"UUID">;
4106
4100
  name: {
4107
4101
  use: string;
4108
4102
  given: string[];
@@ -4121,7 +4115,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4121
4115
  email?: string | undefined;
4122
4116
  data?: Record<string, import("../commons").FieldValue> | undefined;
4123
4117
  } | {
4124
- id: string;
4118
+ id: string & import("zod").$brand<"UUID">;
4125
4119
  name: string;
4126
4120
  type: "system";
4127
4121
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4147,7 +4141,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4147
4141
  sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
4148
4142
  };
4149
4143
  output: ({
4150
- id: string;
4144
+ id: string & import("zod").$brand<"UUID">;
4151
4145
  name: {
4152
4146
  use: string;
4153
4147
  given: string[];
@@ -4166,7 +4160,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4166
4160
  email?: string | undefined;
4167
4161
  data?: Record<string, import("../commons").FieldValue> | undefined;
4168
4162
  } | {
4169
- id: string;
4163
+ id: string & import("zod").$brand<"UUID">;
4170
4164
  name: string;
4171
4165
  type: "system";
4172
4166
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4221,13 +4215,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4221
4215
  ctx: Partial<{
4222
4216
  token: `Bearer ${string}`;
4223
4217
  user: {
4224
- id: string;
4218
+ id: string & import("zod").$brand<"UUID">;
4225
4219
  type: "system";
4226
4220
  signature?: undefined;
4227
4221
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4228
4222
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4229
4223
  } | {
4230
- id: string;
4224
+ id: string & import("zod").$brand<"UUID">;
4231
4225
  type: "user";
4232
4226
  role: string;
4233
4227
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -4296,6 +4290,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4296
4290
  output: void;
4297
4291
  meta: import("trpc-to-openapi").OpenApiMeta;
4298
4292
  }>;
4293
+ resendInvite: import("@trpc/server").TRPCMutationProcedure<{
4294
+ input: string;
4295
+ output: void;
4296
+ meta: import("trpc-to-openapi").OpenApiMeta;
4297
+ }>;
4299
4298
  activate: import("@trpc/server").TRPCMutationProcedure<{
4300
4299
  input: {
4301
4300
  userId: string;
@@ -4308,17 +4307,27 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4308
4307
  output: void;
4309
4308
  meta: import("trpc-to-openapi").OpenApiMeta;
4310
4309
  }>;
4310
+ sendUsernameReminder: import("@trpc/server").TRPCMutationProcedure<{
4311
+ input: string;
4312
+ output: void;
4313
+ meta: import("trpc-to-openapi").OpenApiMeta;
4314
+ }>;
4315
+ sendResetPasswordInvite: import("@trpc/server").TRPCMutationProcedure<{
4316
+ input: string;
4317
+ output: void;
4318
+ meta: import("trpc-to-openapi").OpenApiMeta;
4319
+ }>;
4311
4320
  audit: import("@trpc/server").TRPCBuiltRouter<{
4312
4321
  ctx: Partial<{
4313
4322
  token: `Bearer ${string}`;
4314
4323
  user: {
4315
- id: string;
4324
+ id: string & import("zod").$brand<"UUID">;
4316
4325
  type: "system";
4317
4326
  signature?: undefined;
4318
4327
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4319
4328
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4320
4329
  } | {
4321
- id: string;
4330
+ id: string & import("zod").$brand<"UUID">;
4322
4331
  type: "user";
4323
4332
  role: string;
4324
4333
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -4346,7 +4355,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4346
4355
  comment?: string | undefined;
4347
4356
  };
4348
4357
  } | {
4349
- 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";
4358
+ 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";
4350
4359
  requestData: {
4351
4360
  subjectId: string;
4352
4361
  };
@@ -4566,7 +4575,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4566
4575
  clientId: string;
4567
4576
  clientType: "system" | "user";
4568
4577
  createdAt: string;
4569
- 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";
4578
+ 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";
4570
4579
  requestData: {
4571
4580
  subjectId: string;
4572
4581
  };
@@ -4605,13 +4614,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4605
4614
  ctx: Partial<{
4606
4615
  token: `Bearer ${string}`;
4607
4616
  user: {
4608
- id: string;
4617
+ id: string & import("zod").$brand<"UUID">;
4609
4618
  type: "system";
4610
4619
  signature?: undefined;
4611
4620
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4612
4621
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4613
4622
  } | {
4614
- id: string;
4623
+ id: string & import("zod").$brand<"UUID">;
4615
4624
  type: "user";
4616
4625
  role: string;
4617
4626
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -4678,13 +4687,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4678
4687
  ctx: Partial<{
4679
4688
  token: `Bearer ${string}`;
4680
4689
  user: {
4681
- id: string;
4690
+ id: string & import("zod").$brand<"UUID">;
4682
4691
  type: "system";
4683
4692
  signature?: undefined;
4684
4693
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4685
4694
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4686
4695
  } | {
4687
- id: string;
4696
+ id: string & import("zod").$brand<"UUID">;
4688
4697
  type: "user";
4689
4698
  role: string;
4690
4699
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -4700,13 +4709,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4700
4709
  ctx: Partial<{
4701
4710
  token: `Bearer ${string}`;
4702
4711
  user: {
4703
- id: string;
4712
+ id: string & import("zod").$brand<"UUID">;
4704
4713
  type: "system";
4705
4714
  signature?: undefined;
4706
4715
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4707
4716
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4708
4717
  } | {
4709
- id: string;
4718
+ id: string & import("zod").$brand<"UUID">;
4710
4719
  type: "user";
4711
4720
  role: string;
4712
4721
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -4763,7 +4772,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4763
4772
  'legalStatuses.DECLARED.createdAtLocation'?: {
4764
4773
  type: "within";
4765
4774
  location: string | {
4766
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4775
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4767
4776
  $location?: string | undefined;
4768
4777
  };
4769
4778
  } | undefined;
@@ -4785,7 +4794,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4785
4794
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4786
4795
  type: "within";
4787
4796
  location: string | {
4788
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4797
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4789
4798
  $location?: string | undefined;
4790
4799
  };
4791
4800
  } | undefined;
@@ -4800,47 +4809,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4800
4809
  createdAtLocation?: {
4801
4810
  type: "within";
4802
4811
  location: string | {
4803
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4812
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4804
4813
  $location?: string | undefined;
4805
4814
  };
4806
4815
  } | {
4807
4816
  type: "exact";
4808
4817
  term: string | {
4809
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4818
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4810
4819
  $location?: string | undefined;
4811
4820
  };
4812
4821
  } | undefined;
4813
4822
  updatedAtLocation?: {
4814
4823
  type: "within";
4815
4824
  location: string | {
4816
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4825
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4817
4826
  $location?: string | undefined;
4818
4827
  };
4819
4828
  } | {
4820
4829
  type: "exact";
4821
4830
  term: string | {
4822
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4831
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4823
4832
  $location?: string | undefined;
4824
4833
  };
4825
4834
  } | undefined;
4826
4835
  updatedByUserRole?: {
4827
4836
  type: "exact";
4828
4837
  term: string | {
4829
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4838
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4830
4839
  $location?: string | undefined;
4831
4840
  };
4832
4841
  } | undefined;
4833
4842
  assignedTo?: {
4834
4843
  type: "exact";
4835
4844
  term: string | {
4836
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4845
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4837
4846
  $location?: string | undefined;
4838
4847
  };
4839
4848
  } | undefined;
4840
4849
  createdBy?: {
4841
4850
  type: "exact";
4842
4851
  term: string | {
4843
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4852
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4844
4853
  $location?: string | undefined;
4845
4854
  };
4846
4855
  } | undefined;
@@ -4851,7 +4860,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4851
4860
  updatedBy?: {
4852
4861
  type: "exact";
4853
4862
  term: string | {
4854
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4863
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4855
4864
  $location?: string | undefined;
4856
4865
  };
4857
4866
  } | undefined;
@@ -4901,7 +4910,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4901
4910
  'legalStatuses.DECLARED.createdAtLocation'?: {
4902
4911
  type: "within";
4903
4912
  location: string | {
4904
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4913
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4905
4914
  $location?: string | undefined;
4906
4915
  };
4907
4916
  } | undefined;
@@ -4923,7 +4932,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4923
4932
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4924
4933
  type: "within";
4925
4934
  location: string | {
4926
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4935
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4927
4936
  $location?: string | undefined;
4928
4937
  };
4929
4938
  } | undefined;
@@ -4938,47 +4947,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4938
4947
  createdAtLocation?: {
4939
4948
  type: "within";
4940
4949
  location: string | {
4941
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4950
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4942
4951
  $location?: string | undefined;
4943
4952
  };
4944
4953
  } | {
4945
4954
  type: "exact";
4946
4955
  term: string | {
4947
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4956
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4948
4957
  $location?: string | undefined;
4949
4958
  };
4950
4959
  } | undefined;
4951
4960
  updatedAtLocation?: {
4952
4961
  type: "within";
4953
4962
  location: string | {
4954
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4963
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4955
4964
  $location?: string | undefined;
4956
4965
  };
4957
4966
  } | {
4958
4967
  type: "exact";
4959
4968
  term: string | {
4960
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4969
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4961
4970
  $location?: string | undefined;
4962
4971
  };
4963
4972
  } | undefined;
4964
4973
  updatedByUserRole?: {
4965
4974
  type: "exact";
4966
4975
  term: string | {
4967
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4976
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4968
4977
  $location?: string | undefined;
4969
4978
  };
4970
4979
  } | undefined;
4971
4980
  assignedTo?: {
4972
4981
  type: "exact";
4973
4982
  term: string | {
4974
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4983
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4975
4984
  $location?: string | undefined;
4976
4985
  };
4977
4986
  } | undefined;
4978
4987
  createdBy?: {
4979
4988
  type: "exact";
4980
4989
  term: string | {
4981
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4990
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4982
4991
  $location?: string | undefined;
4983
4992
  };
4984
4993
  } | undefined;
@@ -4989,7 +4998,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4989
4998
  updatedBy?: {
4990
4999
  type: "exact";
4991
5000
  term: string | {
4992
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
5001
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4993
5002
  $location?: string | undefined;
4994
5003
  };
4995
5004
  } | undefined;
@@ -5040,13 +5049,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5040
5049
  ctx: Partial<{
5041
5050
  token: `Bearer ${string}`;
5042
5051
  user: {
5043
- id: string;
5052
+ id: string & import("zod").$brand<"UUID">;
5044
5053
  type: "system";
5045
5054
  signature?: undefined;
5046
5055
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5047
5056
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5048
5057
  } | {
5049
- id: string;
5058
+ id: string & import("zod").$brand<"UUID">;
5050
5059
  type: "user";
5051
5060
  role: string;
5052
5061
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -5088,13 +5097,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5088
5097
  ctx: Partial<{
5089
5098
  token: `Bearer ${string}`;
5090
5099
  user: {
5091
- id: string;
5100
+ id: string & import("zod").$brand<"UUID">;
5092
5101
  type: "system";
5093
5102
  signature?: undefined;
5094
5103
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5095
5104
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5096
5105
  } | {
5097
- id: string;
5106
+ id: string & import("zod").$brand<"UUID">;
5098
5107
  type: "user";
5099
5108
  role: string;
5100
5109
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -5140,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5140
5149
  scopes: string[];
5141
5150
  status: string;
5142
5151
  createdAt: string;
5143
- createdBy: string;
5152
+ createdBy: string & import("zod").$brand<"UUID">;
5144
5153
  }[];
5145
5154
  meta: import("trpc-to-openapi").OpenApiMeta;
5146
5155
  }>;
@@ -5155,7 +5164,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5155
5164
  status: string;
5156
5165
  shaSecret: string | null;
5157
5166
  createdAt: string;
5158
- createdBy: string;
5167
+ createdBy: string & import("zod").$brand<"UUID">;
5159
5168
  };
5160
5169
  meta: import("trpc-to-openapi").OpenApiMeta;
5161
5170
  }>;
@@ -5206,13 +5215,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5206
5215
  ctx: Partial<{
5207
5216
  token: `Bearer ${string}`;
5208
5217
  user: {
5209
- id: string;
5218
+ id: string & import("zod").$brand<"UUID">;
5210
5219
  type: "system";
5211
5220
  signature?: undefined;
5212
5221
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5213
5222
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5214
5223
  } | {
5215
- id: string;
5224
+ id: string & import("zod").$brand<"UUID">;
5216
5225
  type: "user";
5217
5226
  role: string;
5218
5227
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -5241,13 +5250,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5241
5250
  ctx: Partial<{
5242
5251
  token: `Bearer ${string}`;
5243
5252
  user: {
5244
- id: string;
5253
+ id: string & import("zod").$brand<"UUID">;
5245
5254
  type: "system";
5246
5255
  signature?: undefined;
5247
5256
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5248
5257
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5249
5258
  } | {
5250
- id: string;
5259
+ id: string & import("zod").$brand<"UUID">;
5251
5260
  type: "user";
5252
5261
  role: string;
5253
5262
  primaryOfficeId: string & import("zod").$brand<"UUID">;
@@ -60,6 +60,7 @@ export declare const UserAuditRecordInput: z.ZodDiscriminatedUnion<[z.ZodObject<
60
60
  "user.password_changed": "user.password_changed";
61
61
  "user.password_reset": "user.password_reset";
62
62
  "user.password_reset_by_admin": "user.password_reset_by_admin";
63
+ "user.resend_invite": "user.resend_invite";
63
64
  "user.username_reminder": "user.username_reminder";
64
65
  "user.username_reminder_by_admin": "user.username_reminder_by_admin";
65
66
  }>;
@@ -340,6 +341,7 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
340
341
  "user.password_changed": "user.password_changed";
341
342
  "user.password_reset": "user.password_reset";
342
343
  "user.password_reset_by_admin": "user.password_reset_by_admin";
344
+ "user.resend_invite": "user.resend_invite";
343
345
  "user.username_reminder": "user.username_reminder";
344
346
  "user.username_reminder_by_admin": "user.username_reminder_by_admin";
345
347
  }>;
@@ -5,6 +5,7 @@ export declare const TriggerEvent: {
5
5
  readonly USERNAME_REMINDER: "username-reminder";
6
6
  readonly RESET_PASSWORD: "reset-password";
7
7
  readonly RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin";
8
+ readonly RESEND_INVITE: "resend-invite";
8
9
  readonly TWO_FA: "2fa";
9
10
  readonly ALL_USER_NOTIFICATION: "all-user-notification";
10
11
  readonly CHANGE_PHONE_NUMBER: "change-phone-number";
@@ -112,6 +113,20 @@ export declare const TriggerPayload: {
112
113
  role: z.ZodString;
113
114
  }, z.core.$strip>;
114
115
  }, z.core.$strip>;
116
+ readonly "resend-invite": z.ZodObject<{
117
+ recipient: z.ZodObject<{
118
+ name: z.ZodOptional<z.ZodObject<{
119
+ firstname: z.ZodString;
120
+ surname: z.ZodString;
121
+ middlename: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>>;
123
+ mobile: z.ZodOptional<z.ZodString>;
124
+ email: z.ZodOptional<z.ZodString>;
125
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ }, z.core.$strip>;
127
+ username: z.ZodString;
128
+ temporaryPassword: z.ZodString;
129
+ }, z.core.$strip>;
115
130
  readonly "2fa": z.ZodObject<{
116
131
  recipient: z.ZodObject<{
117
132
  name: z.ZodOptional<z.ZodObject<{
@@ -938,6 +938,7 @@ var UserSubjectOnlyEntrySchema = AuditLogEntryBase.extend({
938
938
  "user.password_changed",
939
939
  "user.password_reset",
940
940
  "user.password_reset_by_admin",
941
+ "user.resend_invite",
941
942
  "user.username_reminder",
942
943
  "user.username_reminder_by_admin"
943
944
  ]),
@@ -520,6 +520,7 @@ var UserSubjectOnlyEntrySchema = AuditLogEntryBase.extend({
520
520
  "user.password_changed",
521
521
  "user.password_reset",
522
522
  "user.password_reset_by_admin",
523
+ "user.resend_invite",
523
524
  "user.username_reminder",
524
525
  "user.username_reminder_by_admin"
525
526
  ]),
@@ -6934,6 +6935,7 @@ var TriggerEvent = {
6934
6935
  USERNAME_REMINDER: "username-reminder",
6935
6936
  RESET_PASSWORD: "reset-password",
6936
6937
  RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin",
6938
+ RESEND_INVITE: "resend-invite",
6937
6939
  TWO_FA: "2fa",
6938
6940
  ALL_USER_NOTIFICATION: "all-user-notification",
6939
6941
  CHANGE_PHONE_NUMBER: "change-phone-number",
@@ -6971,6 +6973,10 @@ var TriggerPayload = {
6971
6973
  role: z44.string()
6972
6974
  })
6973
6975
  }),
6976
+ [TriggerEvent.RESEND_INVITE]: BasePayload.extend({
6977
+ username: z44.string(),
6978
+ temporaryPassword: z44.string()
6979
+ }),
6974
6980
  [TriggerEvent.TWO_FA]: BasePayload.extend({
6975
6981
  code: z44.string()
6976
6982
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.3edb4f4",
3
+ "version": "2.0.0-rc.71d2a40",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {