@opencrvs/toolkit 1.9.7-rc.d83a5b8 → 1.9.7-rc.d9e4fe7

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.
@@ -21,7 +21,7 @@ export declare const ActionCreationMetadata: z.ZodObject<{
21
21
  user: "user";
22
22
  }>>>;
23
23
  acceptedAt: z.ZodISODateTime;
24
- createdByRole: z.ZodString;
24
+ createdByRole: z.ZodOptional<z.ZodString>;
25
25
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  }, z.core.$strip>;
27
27
  export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
@@ -34,7 +34,7 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
34
34
  user: "user";
35
35
  }>>>;
36
36
  acceptedAt: z.ZodISODateTime;
37
- createdByRole: z.ZodString;
37
+ createdByRole: z.ZodOptional<z.ZodString>;
38
38
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  registrationNumber: z.ZodString;
40
40
  }, z.core.$strip>;
@@ -49,7 +49,7 @@ export declare const LegalStatuses: z.ZodObject<{
49
49
  user: "user";
50
50
  }>>>;
51
51
  acceptedAt: z.ZodISODateTime;
52
- createdByRole: z.ZodString;
52
+ createdByRole: z.ZodOptional<z.ZodString>;
53
53
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  }, z.core.$strip>>>;
55
55
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -61,7 +61,7 @@ export declare const LegalStatuses: z.ZodObject<{
61
61
  user: "user";
62
62
  }>>>;
63
63
  acceptedAt: z.ZodISODateTime;
64
- createdByRole: z.ZodString;
64
+ createdByRole: z.ZodOptional<z.ZodString>;
65
65
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  registrationNumber: z.ZodString;
67
67
  }, z.core.$strip>>>;
@@ -91,7 +91,7 @@ export declare const EventMetadata: z.ZodObject<{
91
91
  user: "user";
92
92
  }>>>;
93
93
  acceptedAt: z.ZodISODateTime;
94
- createdByRole: z.ZodString;
94
+ createdByRole: z.ZodOptional<z.ZodString>;
95
95
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
96
  }, z.core.$strip>>>;
97
97
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -103,7 +103,7 @@ export declare const EventMetadata: z.ZodObject<{
103
103
  user: "user";
104
104
  }>>>;
105
105
  acceptedAt: z.ZodISODateTime;
106
- createdByRole: z.ZodString;
106
+ createdByRole: z.ZodOptional<z.ZodString>;
107
107
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
108
  registrationNumber: z.ZodString;
109
109
  }, z.core.$strip>>>;
@@ -116,7 +116,7 @@ export declare const EventMetadata: z.ZodObject<{
116
116
  system: "system";
117
117
  user: "user";
118
118
  }>>>;
119
- updatedByUserRole: z.ZodString;
119
+ updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
120
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
121
121
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
122
  updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
@@ -72,25 +72,24 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
72
72
  createdAt: string;
73
73
  createdBy: string;
74
74
  acceptedAt: string;
75
- createdByRole: string;
76
75
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
77
76
  createdByUserType?: "system" | "user" | null | undefined;
77
+ createdByRole?: string | undefined;
78
78
  createdBySignature?: string | null | undefined;
79
79
  } | null | undefined;
80
80
  REGISTERED?: {
81
81
  createdAt: string;
82
82
  createdBy: string;
83
83
  acceptedAt: string;
84
- createdByRole: string;
85
84
  registrationNumber: string;
86
85
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
87
86
  createdByUserType?: "system" | "user" | null | undefined;
87
+ createdByRole?: string | undefined;
88
88
  createdBySignature?: string | null | undefined;
89
89
  } | null | undefined;
90
90
  };
91
91
  createdAt: string;
92
92
  createdBy: string;
93
- updatedByUserRole: string;
94
93
  updatedAt: string;
95
94
  trackingId: string;
96
95
  potentialDuplicates: {
@@ -102,6 +101,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
102
101
  dateOfEvent?: string | null | undefined;
103
102
  placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined;
104
103
  createdByUserType?: "system" | "user" | null | undefined;
104
+ updatedByUserRole?: string | null | undefined;
105
105
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
106
  createdBySignature?: string | null | undefined;
107
107
  updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -12,10 +12,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
12
12
  createdByUserType: "system" | "user";
13
13
  createdAt: string;
14
14
  createdBy: string;
15
- createdByRole: string;
16
15
  declaration: Record<string, import("..").FieldUpdateValue>;
17
16
  status: "Rejected" | "Requested" | "Accepted";
18
17
  type: "REGISTER";
18
+ createdByRole?: string | undefined;
19
19
  createdBySignature?: string | null | undefined;
20
20
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
21
21
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -27,7 +27,6 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
27
27
  createdByUserType: "system" | "user";
28
28
  createdAt: string;
29
29
  createdBy: string;
30
- createdByRole: string;
31
30
  declaration: Record<string, import("..").FieldUpdateValue>;
32
31
  status: "Rejected" | "Requested" | "Accepted";
33
32
  type: "DUPLICATE_DETECTED";
@@ -37,6 +36,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
37
36
  trackingId: string;
38
37
  }[];
39
38
  };
39
+ createdByRole?: string | undefined;
40
40
  createdBySignature?: string | null | undefined;
41
41
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
42
42
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -47,13 +47,13 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
47
47
  createdByUserType: "system" | "user";
48
48
  createdAt: string;
49
49
  createdBy: string;
50
- createdByRole: string;
51
50
  declaration: Record<string, import("..").FieldUpdateValue>;
52
51
  status: "Rejected" | "Requested" | "Accepted";
53
52
  type: "EDIT";
54
53
  content: {
55
54
  comment?: string | undefined;
56
55
  };
56
+ createdByRole?: string | undefined;
57
57
  createdBySignature?: string | null | undefined;
58
58
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
59
59
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -64,10 +64,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
64
64
  createdByUserType: "system" | "user";
65
65
  createdAt: string;
66
66
  createdBy: string;
67
- createdByRole: string;
68
67
  declaration: Record<string, import("..").FieldUpdateValue>;
69
68
  status: "Rejected" | "Requested" | "Accepted";
70
69
  type: "PRINT_CERTIFICATE";
70
+ createdByRole?: string | undefined;
71
71
  createdBySignature?: string | null | undefined;
72
72
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
73
73
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -81,10 +81,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
81
81
  createdByUserType: "system" | "user";
82
82
  createdAt: string;
83
83
  createdBy: string;
84
- createdByRole: string;
85
84
  declaration: Record<string, import("..").FieldUpdateValue>;
86
85
  status: "Rejected" | "Requested" | "Accepted";
87
86
  type: "REQUEST_CORRECTION";
87
+ createdByRole?: string | undefined;
88
88
  createdBySignature?: string | null | undefined;
89
89
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
90
90
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -95,11 +95,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
95
95
  createdByUserType: "system" | "user";
96
96
  createdAt: string;
97
97
  createdBy: string;
98
- createdByRole: string;
99
98
  declaration: Record<string, import("..").FieldUpdateValue>;
100
99
  status: "Rejected" | "Requested" | "Accepted";
101
100
  type: "CUSTOM";
102
101
  customActionType: string;
102
+ createdByRole?: string | undefined;
103
103
  createdBySignature?: string | null | undefined;
104
104
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
105
105
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -110,10 +110,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
110
110
  createdByUserType: "system" | "user";
111
111
  createdAt: string;
112
112
  createdBy: string;
113
- createdByRole: string;
114
113
  declaration: Record<string, import("..").FieldUpdateValue>;
115
114
  status: "Rejected" | "Requested" | "Accepted";
116
115
  type: "CREATE";
116
+ createdByRole?: string | undefined;
117
117
  createdBySignature?: string | null | undefined;
118
118
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
119
119
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -124,13 +124,13 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
124
124
  createdByUserType: "system" | "user";
125
125
  createdAt: string;
126
126
  createdBy: string;
127
- createdByRole: string;
128
127
  declaration: Record<string, import("..").FieldUpdateValue>;
129
128
  status: "Rejected" | "Requested" | "Accepted";
130
129
  type: "REJECT";
131
130
  content: {
132
131
  reason: string;
133
132
  };
133
+ createdByRole?: string | undefined;
134
134
  createdBySignature?: string | null | undefined;
135
135
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
136
136
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -141,10 +141,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
141
141
  createdByUserType: "system" | "user";
142
142
  createdAt: string;
143
143
  createdBy: string;
144
- createdByRole: string;
145
144
  declaration: Record<string, import("..").FieldUpdateValue>;
146
145
  status: "Rejected" | "Requested" | "Accepted";
147
146
  type: "MARK_AS_NOT_DUPLICATE";
147
+ createdByRole?: string | undefined;
148
148
  createdBySignature?: string | null | undefined;
149
149
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
150
150
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -155,10 +155,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
155
155
  createdByUserType: "system" | "user";
156
156
  createdAt: string;
157
157
  createdBy: string;
158
- createdByRole: string;
159
158
  declaration: Record<string, import("..").FieldUpdateValue>;
160
159
  status: "Rejected" | "Requested" | "Accepted";
161
160
  type: "MARK_AS_DUPLICATE";
161
+ createdByRole?: string | undefined;
162
162
  createdBySignature?: string | null | undefined;
163
163
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
164
164
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -172,13 +172,13 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
172
172
  createdByUserType: "system" | "user";
173
173
  createdAt: string;
174
174
  createdBy: string;
175
- createdByRole: string;
176
175
  declaration: Record<string, import("..").FieldUpdateValue>;
177
176
  status: "Rejected" | "Requested" | "Accepted";
178
177
  type: "ARCHIVE";
179
178
  content: {
180
179
  reason: string;
181
180
  };
181
+ createdByRole?: string | undefined;
182
182
  createdBySignature?: string | null | undefined;
183
183
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
184
184
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -189,10 +189,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
189
189
  createdByUserType: "system" | "user";
190
190
  createdAt: string;
191
191
  createdBy: string;
192
- createdByRole: string;
193
192
  declaration: Record<string, import("..").FieldUpdateValue>;
194
193
  status: "Rejected" | "Requested" | "Accepted";
195
194
  type: "NOTIFY";
195
+ createdByRole?: string | undefined;
196
196
  createdBySignature?: string | null | undefined;
197
197
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
198
198
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -203,10 +203,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
203
203
  createdByUserType: "system" | "user";
204
204
  createdAt: string;
205
205
  createdBy: string;
206
- createdByRole: string;
207
206
  declaration: Record<string, import("..").FieldUpdateValue>;
208
207
  status: "Rejected" | "Requested" | "Accepted";
209
208
  type: "DECLARE";
209
+ createdByRole?: string | undefined;
210
210
  createdBySignature?: string | null | undefined;
211
211
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
212
212
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -217,11 +217,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
217
217
  createdByUserType: "system" | "user";
218
218
  createdAt: string;
219
219
  createdBy: string;
220
- createdByRole: string;
221
220
  declaration: Record<string, import("..").FieldUpdateValue>;
222
221
  status: "Rejected" | "Requested" | "Accepted";
223
222
  type: "ASSIGN";
224
223
  assignedTo: string;
224
+ createdByRole?: string | undefined;
225
225
  createdBySignature?: string | null | undefined;
226
226
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
227
227
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -232,11 +232,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
232
232
  createdByUserType: "system" | "user";
233
233
  createdAt: string;
234
234
  createdBy: string;
235
- createdByRole: string;
236
235
  declaration: Record<string, import("..").FieldUpdateValue>;
237
236
  status: "Rejected" | "Requested" | "Accepted";
238
237
  type: "APPROVE_CORRECTION";
239
238
  requestId: string;
239
+ createdByRole?: string | undefined;
240
240
  createdBySignature?: string | null | undefined;
241
241
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
242
242
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -247,7 +247,6 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
247
247
  createdByUserType: "system" | "user";
248
248
  createdAt: string;
249
249
  createdBy: string;
250
- createdByRole: string;
251
250
  declaration: Record<string, import("..").FieldUpdateValue>;
252
251
  status: "Rejected" | "Requested" | "Accepted";
253
252
  type: "REJECT_CORRECTION";
@@ -255,6 +254,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
255
254
  content: {
256
255
  reason: string;
257
256
  };
257
+ createdByRole?: string | undefined;
258
258
  createdBySignature?: string | null | undefined;
259
259
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
260
260
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -265,10 +265,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
265
265
  createdByUserType: "system" | "user";
266
266
  createdAt: string;
267
267
  createdBy: string;
268
- createdByRole: string;
269
268
  declaration: Record<string, import("..").FieldUpdateValue>;
270
269
  status: "Rejected" | "Requested" | "Accepted";
271
270
  type: "UNASSIGN";
271
+ createdByRole?: string | undefined;
272
272
  createdBySignature?: string | null | undefined;
273
273
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
274
274
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -279,10 +279,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
279
279
  createdByUserType: "system" | "user";
280
280
  createdAt: string;
281
281
  createdBy: string;
282
- createdByRole: string;
283
282
  declaration: Record<string, import("..").FieldUpdateValue>;
284
283
  status: "Rejected" | "Requested" | "Accepted";
285
284
  type: "READ";
285
+ createdByRole?: string | undefined;
286
286
  createdBySignature?: string | null | undefined;
287
287
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
288
288
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
@@ -293,9 +293,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
293
293
  createdByUserType: "system" | "user";
294
294
  createdAt: string;
295
295
  createdBy: string;
296
- createdByRole: string;
297
296
  type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
298
297
  status: "Rejected";
298
+ createdByRole?: string | undefined;
299
299
  createdBySignature?: string | null | undefined;
300
300
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
301
301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -311,7 +311,7 @@ export declare function getLegalStatuses(actions: Action[]): {
311
311
  createdByUserType: "system" | "user";
312
312
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
313
313
  acceptedAt: string;
314
- createdByRole: string;
314
+ createdByRole: string | undefined;
315
315
  createdBySignature: string | null | undefined;
316
316
  registrationNumber: string | null | undefined;
317
317
  } | null;
@@ -321,7 +321,7 @@ export declare function getLegalStatuses(actions: Action[]): {
321
321
  createdByUserType: "system" | "user";
322
322
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
323
323
  acceptedAt: string;
324
- createdByRole: string;
324
+ createdByRole: string | undefined;
325
325
  createdBySignature: string | null | undefined;
326
326
  registrationNumber: string | null | undefined;
327
327
  } | null;
@@ -26325,10 +26325,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26325
26325
  createdByUserType: "system" | "user";
26326
26326
  createdAt: string;
26327
26327
  createdBy: string;
26328
- createdByRole: string;
26329
26328
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26330
26329
  status: "Rejected" | "Requested" | "Accepted";
26331
26330
  type: "REGISTER";
26331
+ createdByRole?: string | undefined;
26332
26332
  createdBySignature?: string | null | undefined;
26333
26333
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26334
26334
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26340,7 +26340,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26340
26340
  createdByUserType: "system" | "user";
26341
26341
  createdAt: string;
26342
26342
  createdBy: string;
26343
- createdByRole: string;
26344
26343
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26345
26344
  status: "Rejected" | "Requested" | "Accepted";
26346
26345
  type: "DUPLICATE_DETECTED";
@@ -26350,6 +26349,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26350
26349
  trackingId: string;
26351
26350
  }[];
26352
26351
  };
26352
+ createdByRole?: string | undefined;
26353
26353
  createdBySignature?: string | null | undefined;
26354
26354
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26355
26355
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26360,13 +26360,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26360
26360
  createdByUserType: "system" | "user";
26361
26361
  createdAt: string;
26362
26362
  createdBy: string;
26363
- createdByRole: string;
26364
26363
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26365
26364
  status: "Rejected" | "Requested" | "Accepted";
26366
26365
  type: "EDIT";
26367
26366
  content: {
26368
26367
  comment?: string | undefined;
26369
26368
  };
26369
+ createdByRole?: string | undefined;
26370
26370
  createdBySignature?: string | null | undefined;
26371
26371
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26372
26372
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26377,10 +26377,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26377
26377
  createdByUserType: "system" | "user";
26378
26378
  createdAt: string;
26379
26379
  createdBy: string;
26380
- createdByRole: string;
26381
26380
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26382
26381
  status: "Rejected" | "Requested" | "Accepted";
26383
26382
  type: "PRINT_CERTIFICATE";
26383
+ createdByRole?: string | undefined;
26384
26384
  createdBySignature?: string | null | undefined;
26385
26385
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26386
26386
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26394,10 +26394,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26394
26394
  createdByUserType: "system" | "user";
26395
26395
  createdAt: string;
26396
26396
  createdBy: string;
26397
- createdByRole: string;
26398
26397
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26399
26398
  status: "Rejected" | "Requested" | "Accepted";
26400
26399
  type: "REQUEST_CORRECTION";
26400
+ createdByRole?: string | undefined;
26401
26401
  createdBySignature?: string | null | undefined;
26402
26402
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26403
26403
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26408,11 +26408,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26408
26408
  createdByUserType: "system" | "user";
26409
26409
  createdAt: string;
26410
26410
  createdBy: string;
26411
- createdByRole: string;
26412
26411
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26413
26412
  status: "Rejected" | "Requested" | "Accepted";
26414
26413
  type: "CUSTOM";
26415
26414
  customActionType: string;
26415
+ createdByRole?: string | undefined;
26416
26416
  createdBySignature?: string | null | undefined;
26417
26417
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26418
26418
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26423,10 +26423,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26423
26423
  createdByUserType: "system" | "user";
26424
26424
  createdAt: string;
26425
26425
  createdBy: string;
26426
- createdByRole: string;
26427
26426
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26428
26427
  status: "Rejected" | "Requested" | "Accepted";
26429
26428
  type: "CREATE";
26429
+ createdByRole?: string | undefined;
26430
26430
  createdBySignature?: string | null | undefined;
26431
26431
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26432
26432
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26437,13 +26437,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26437
26437
  createdByUserType: "system" | "user";
26438
26438
  createdAt: string;
26439
26439
  createdBy: string;
26440
- createdByRole: string;
26441
26440
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26442
26441
  status: "Rejected" | "Requested" | "Accepted";
26443
26442
  type: "REJECT";
26444
26443
  content: {
26445
26444
  reason: string;
26446
26445
  };
26446
+ createdByRole?: string | undefined;
26447
26447
  createdBySignature?: string | null | undefined;
26448
26448
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26449
26449
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26454,10 +26454,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26454
26454
  createdByUserType: "system" | "user";
26455
26455
  createdAt: string;
26456
26456
  createdBy: string;
26457
- createdByRole: string;
26458
26457
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26459
26458
  status: "Rejected" | "Requested" | "Accepted";
26460
26459
  type: "MARK_AS_NOT_DUPLICATE";
26460
+ createdByRole?: string | undefined;
26461
26461
  createdBySignature?: string | null | undefined;
26462
26462
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26463
26463
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26468,10 +26468,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26468
26468
  createdByUserType: "system" | "user";
26469
26469
  createdAt: string;
26470
26470
  createdBy: string;
26471
- createdByRole: string;
26472
26471
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26473
26472
  status: "Rejected" | "Requested" | "Accepted";
26474
26473
  type: "MARK_AS_DUPLICATE";
26474
+ createdByRole?: string | undefined;
26475
26475
  createdBySignature?: string | null | undefined;
26476
26476
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26477
26477
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26485,13 +26485,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26485
26485
  createdByUserType: "system" | "user";
26486
26486
  createdAt: string;
26487
26487
  createdBy: string;
26488
- createdByRole: string;
26489
26488
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26490
26489
  status: "Rejected" | "Requested" | "Accepted";
26491
26490
  type: "ARCHIVE";
26492
26491
  content: {
26493
26492
  reason: string;
26494
26493
  };
26494
+ createdByRole?: string | undefined;
26495
26495
  createdBySignature?: string | null | undefined;
26496
26496
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26497
26497
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26502,10 +26502,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26502
26502
  createdByUserType: "system" | "user";
26503
26503
  createdAt: string;
26504
26504
  createdBy: string;
26505
- createdByRole: string;
26506
26505
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26507
26506
  status: "Rejected" | "Requested" | "Accepted";
26508
26507
  type: "NOTIFY";
26508
+ createdByRole?: string | undefined;
26509
26509
  createdBySignature?: string | null | undefined;
26510
26510
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26511
26511
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26516,10 +26516,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26516
26516
  createdByUserType: "system" | "user";
26517
26517
  createdAt: string;
26518
26518
  createdBy: string;
26519
- createdByRole: string;
26520
26519
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26521
26520
  status: "Rejected" | "Requested" | "Accepted";
26522
26521
  type: "DECLARE";
26522
+ createdByRole?: string | undefined;
26523
26523
  createdBySignature?: string | null | undefined;
26524
26524
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26525
26525
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26530,11 +26530,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26530
26530
  createdByUserType: "system" | "user";
26531
26531
  createdAt: string;
26532
26532
  createdBy: string;
26533
- createdByRole: string;
26534
26533
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26535
26534
  status: "Rejected" | "Requested" | "Accepted";
26536
26535
  type: "ASSIGN";
26537
26536
  assignedTo: string;
26537
+ createdByRole?: string | undefined;
26538
26538
  createdBySignature?: string | null | undefined;
26539
26539
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26540
26540
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26545,11 +26545,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26545
26545
  createdByUserType: "system" | "user";
26546
26546
  createdAt: string;
26547
26547
  createdBy: string;
26548
- createdByRole: string;
26549
26548
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26550
26549
  status: "Rejected" | "Requested" | "Accepted";
26551
26550
  type: "APPROVE_CORRECTION";
26552
26551
  requestId: string;
26552
+ createdByRole?: string | undefined;
26553
26553
  createdBySignature?: string | null | undefined;
26554
26554
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26555
26555
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26560,7 +26560,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26560
26560
  createdByUserType: "system" | "user";
26561
26561
  createdAt: string;
26562
26562
  createdBy: string;
26563
- createdByRole: string;
26564
26563
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26565
26564
  status: "Rejected" | "Requested" | "Accepted";
26566
26565
  type: "REJECT_CORRECTION";
@@ -26568,6 +26567,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26568
26567
  content: {
26569
26568
  reason: string;
26570
26569
  };
26570
+ createdByRole?: string | undefined;
26571
26571
  createdBySignature?: string | null | undefined;
26572
26572
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26573
26573
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26578,10 +26578,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26578
26578
  createdByUserType: "system" | "user";
26579
26579
  createdAt: string;
26580
26580
  createdBy: string;
26581
- createdByRole: string;
26582
26581
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26583
26582
  status: "Rejected" | "Requested" | "Accepted";
26584
26583
  type: "UNASSIGN";
26584
+ createdByRole?: string | undefined;
26585
26585
  createdBySignature?: string | null | undefined;
26586
26586
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26587
26587
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26592,10 +26592,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26592
26592
  createdByUserType: "system" | "user";
26593
26593
  createdAt: string;
26594
26594
  createdBy: string;
26595
- createdByRole: string;
26596
26595
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26597
26596
  status: "Rejected" | "Requested" | "Accepted";
26598
26597
  type: "READ";
26598
+ createdByRole?: string | undefined;
26599
26599
  createdBySignature?: string | null | undefined;
26600
26600
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26601
26601
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26606,9 +26606,9 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26606
26606
  createdByUserType: "system" | "user";
26607
26607
  createdAt: string;
26608
26608
  createdBy: string;
26609
- createdByRole: string;
26610
26609
  type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
26611
26610
  status: "Rejected";
26611
+ createdByRole?: string | undefined;
26612
26612
  createdBySignature?: string | null | undefined;
26613
26613
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26614
26614
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -993,6 +993,7 @@ var SCOPES = {
993
993
  RECORD_IMPORT: "record.import",
994
994
  RECORD_EXPORT: "record.export",
995
995
  RECORD_REINDEX: "record.reindex",
996
+ INTEGRATION_CREATE: "integration.create",
996
997
  // declare
997
998
  RECORD_DECLARE_BIRTH: "record.declare-birth",
998
999
  RECORD_DECLARE_BIRTH_MY_JURISDICTION: "record.declare-birth:my-jurisdiction",
@@ -1067,7 +1068,8 @@ var IntegrationScopes = z10.union([
1067
1068
  z10.literal(SCOPES.WEBHOOK),
1068
1069
  z10.literal(SCOPES.NATIONALID),
1069
1070
  z10.literal(SCOPES.NOTIFICATION_API),
1070
- z10.literal(SCOPES.RECORDSEARCH)
1071
+ z10.literal(SCOPES.RECORDSEARCH),
1072
+ z10.literal(SCOPES.INTEGRATION_CREATE)
1071
1073
  ]);
1072
1074
  var InternalOperationsScopes = z10.union([
1073
1075
  z10.literal(SCOPES.RECORD_REINDEX),
@@ -1435,7 +1437,7 @@ var ActionBase = z12.object({
1435
1437
  ),
1436
1438
  createdAt: z12.string().datetime().describe("Timestamp indicating when the action was created."),
1437
1439
  createdBy: z12.string().describe("Identifier of the user who created the action."),
1438
- createdByRole: z12.string().describe("Role of the user who created the action."),
1440
+ createdByRole: z12.string().optional().describe("Role of the user who created the action."),
1439
1441
  createdBySignature: z12.string().nullish().describe("Reference to the signature of the user who created the action."),
1440
1442
  // @TODO: createdAtLocation should be non-nullable in the future once all actions have this field populated.
1441
1443
  createdAtLocation: UUID.nullish().describe(
@@ -1679,7 +1681,7 @@ var ActionCreationMetadata = z14.object({
1679
1681
  ),
1680
1682
  createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1681
1683
  acceptedAt: z14.iso.datetime().describe("Timestamp when the action request was accepted."),
1682
- createdByRole: z14.string().describe("Role of the user at the time of action request creation."),
1684
+ createdByRole: z14.string().optional().describe("Role of the user at the time of action request creation."),
1683
1685
  createdBySignature: z14.string().nullish().describe("Signature of the user who created the action request.")
1684
1686
  });
1685
1687
  var RegistrationCreationMetadata = ActionCreationMetadata.extend({
@@ -1703,7 +1705,7 @@ var EventMetadata = z14.object({
1703
1705
  placeOfEvent: UUID.nullish(),
1704
1706
  createdBy: z14.string().describe("ID of the user who created the event."),
1705
1707
  createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1706
- updatedByUserRole: z14.string().describe("Role of the user who last changed the status."),
1708
+ updatedByUserRole: z14.string().nullish().describe("Role of the user who last changed the status."),
1707
1709
  // @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
1708
1710
  createdAtLocation: UUID.nullish().describe(
1709
1711
  "Location of the user who created the event."