@dakkitor/api-contracts 1.5.0 → 1.6.0
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.
- package/dist/abilities/abilities.contract.d.ts +6 -2
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +45 -1
- package/dist/abilities/abilities.contract.spec.js +98 -0
- package/dist/abilities/first-agent.abilities.json +8 -14
- package/dist/abilities/outreach.abilities.json +25 -0
- package/dist/abilities/second-agent.abilities.json +4 -13
- package/dist/actives/actives.contract.d.ts +3618 -3479
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +2 -0
- package/dist/actives/actives.contract.spec.d.ts +2 -0
- package/dist/actives/actives.contract.spec.d.ts.map +1 -0
- package/dist/actives/actives.contract.spec.js +35 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
- package/dist/auth/auth.contract.d.ts +108 -108
- package/dist/bookings/bookings.contract.d.ts +6644 -6452
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +718 -718
- package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
- package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
- package/dist/clients/clients.contract.d.ts +203 -203
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
- package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
- package/dist/common/common-schemas.d.ts +12 -12
- package/dist/companies/companies.contract.d.ts +74 -74
- package/dist/crews/crews.contract.d.ts +253 -253
- package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1137 -1107
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
- package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/document-intake/document-intake.contract.d.ts +601 -601
- package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +74 -74
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/interactions/interactions.contract.d.ts +6 -6
- package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
- package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
- package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
- package/dist/jobs/job-moderation-fields.spec.js +72 -0
- package/dist/jobs/jobs.contract.d.ts +4773 -4525
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +48 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
- package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
- package/dist/leads/leads.contract.d.ts +283 -283
- package/dist/locations/locations.contract.d.ts +49 -49
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/offices/offices.contract.d.ts +34 -34
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +13 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/outreach-requests.contract.d.ts +862 -217
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.contract.js +23 -3
- package/dist/outreach/outreach-requests.schemas.d.ts +56 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +3 -0
- package/dist/outreach/outreach.contract.d.ts +300 -38
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +18 -0
- package/dist/outreach/outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.spec.js +54 -0
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/own-research/own-research.contract.d.ts +775 -775
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/proofs/proof-type.enum.d.ts +4 -4
- package/dist/proofs/proofs.contract.d.ts +363 -363
- package/dist/proofs/proofs.dtos.d.ts +124 -124
- package/dist/qualifications/qualifications.contract.d.ts +38 -38
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
- package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
- package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.js +188 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.schemas.js +112 -0
- package/dist/shared/live-booking.schema.d.ts +4 -4
- package/dist/shared/summary-schemas.d.ts +6 -6
- package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
- package/dist/telegram/telegram.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +90 -90
- package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
- package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
- package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
- package/dist/users/__tests__/assignable-roles.spec.js +41 -0
- package/dist/users/users.contract.d.ts +399 -393
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +11 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
- package/dist/workers/workers.contract.d.ts +2919 -2919
- package/package.json +1 -1
- package/dist/bookings/bookings.contract.spec.d.ts +0 -2
- package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
- package/dist/bookings/bookings.contract.spec.js +0 -11
|
@@ -39,8 +39,8 @@ export declare const WorkerIdentityCaseEdgeSchema: z.ZodObject<{
|
|
|
39
39
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
40
40
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
workerId: string;
|
|
43
42
|
conflicts: string[];
|
|
43
|
+
workerId: string;
|
|
44
44
|
targetType: "WORKER" | "CURATED";
|
|
45
45
|
targetId: string;
|
|
46
46
|
signals: Record<string, unknown>;
|
|
@@ -49,8 +49,8 @@ export declare const WorkerIdentityCaseEdgeSchema: z.ZodObject<{
|
|
|
49
49
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
50
50
|
llmReason?: string | undefined;
|
|
51
51
|
}, {
|
|
52
|
-
workerId: string;
|
|
53
52
|
conflicts: string[];
|
|
53
|
+
workerId: string;
|
|
54
54
|
targetType: "WORKER" | "CURATED";
|
|
55
55
|
targetId: string;
|
|
56
56
|
signals: Record<string, unknown>;
|
|
@@ -71,27 +71,30 @@ export declare const WorkerIdentityCaseSummarySchema: z.ZodObject<{
|
|
|
71
71
|
lastName: z.ZodNullable<z.ZodString>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
id: string;
|
|
74
|
-
lastName: string | null;
|
|
75
74
|
firstName: string;
|
|
75
|
+
lastName: string | null;
|
|
76
76
|
}, {
|
|
77
77
|
id: string;
|
|
78
|
-
lastName: string | null;
|
|
79
78
|
firstName: string;
|
|
79
|
+
lastName: string | null;
|
|
80
80
|
}>>;
|
|
81
81
|
workers: z.ZodArray<z.ZodObject<{
|
|
82
82
|
id: z.ZodString;
|
|
83
83
|
firstName: z.ZodString;
|
|
84
84
|
lastName: z.ZodNullable<z.ZodString>;
|
|
85
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
85
86
|
agentName: z.ZodNullable<z.ZodString>;
|
|
86
87
|
}, "strip", z.ZodTypeAny, {
|
|
87
88
|
id: string;
|
|
88
|
-
lastName: string | null;
|
|
89
89
|
firstName: string;
|
|
90
|
+
lastName: string | null;
|
|
91
|
+
agentId: string | null;
|
|
90
92
|
agentName: string | null;
|
|
91
93
|
}, {
|
|
92
94
|
id: string;
|
|
93
|
-
lastName: string | null;
|
|
94
95
|
firstName: string;
|
|
96
|
+
lastName: string | null;
|
|
97
|
+
agentId: string | null;
|
|
95
98
|
agentName: string | null;
|
|
96
99
|
}>, "many">;
|
|
97
100
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -109,50 +112,52 @@ export declare const WorkerIdentityCaseSummarySchema: z.ZodObject<{
|
|
|
109
112
|
}>>;
|
|
110
113
|
createdAt: z.ZodString;
|
|
111
114
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
status: "PENDING" | "
|
|
115
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
113
116
|
id: string;
|
|
114
117
|
createdAt: string;
|
|
118
|
+
conflicts: string[];
|
|
119
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
120
|
+
curatedWorker: {
|
|
121
|
+
id: string;
|
|
122
|
+
firstName: string;
|
|
123
|
+
lastName: string | null;
|
|
124
|
+
} | null;
|
|
115
125
|
confidence: number | null;
|
|
116
126
|
workers: {
|
|
117
127
|
id: string;
|
|
118
|
-
lastName: string | null;
|
|
119
128
|
firstName: string;
|
|
129
|
+
lastName: string | null;
|
|
130
|
+
agentId: string | null;
|
|
120
131
|
agentName: string | null;
|
|
121
132
|
}[];
|
|
122
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
123
|
-
conflicts: string[];
|
|
124
|
-
curatedWorker: {
|
|
125
|
-
id: string;
|
|
126
|
-
lastName: string | null;
|
|
127
|
-
firstName: string;
|
|
128
|
-
} | null;
|
|
129
133
|
revision: number;
|
|
130
|
-
evidenceBadges: ("AI" | "
|
|
134
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
131
135
|
hasHardEvidence: boolean;
|
|
132
136
|
linkAudit: {
|
|
133
137
|
suggestedAction: "UNLINK";
|
|
134
138
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
135
139
|
} | null;
|
|
136
140
|
}, {
|
|
137
|
-
status: "PENDING" | "
|
|
141
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
138
142
|
id: string;
|
|
139
143
|
createdAt: string;
|
|
144
|
+
conflicts: string[];
|
|
145
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
146
|
+
curatedWorker: {
|
|
147
|
+
id: string;
|
|
148
|
+
firstName: string;
|
|
149
|
+
lastName: string | null;
|
|
150
|
+
} | null;
|
|
140
151
|
confidence: number | null;
|
|
141
152
|
workers: {
|
|
142
153
|
id: string;
|
|
143
|
-
lastName: string | null;
|
|
144
154
|
firstName: string;
|
|
155
|
+
lastName: string | null;
|
|
156
|
+
agentId: string | null;
|
|
145
157
|
agentName: string | null;
|
|
146
158
|
}[];
|
|
147
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
148
|
-
conflicts: string[];
|
|
149
|
-
curatedWorker: {
|
|
150
|
-
id: string;
|
|
151
|
-
lastName: string | null;
|
|
152
|
-
firstName: string;
|
|
153
|
-
} | null;
|
|
154
159
|
revision: number;
|
|
155
|
-
evidenceBadges: ("AI" | "
|
|
160
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
156
161
|
hasHardEvidence: boolean;
|
|
157
162
|
linkAudit: {
|
|
158
163
|
suggestedAction: "UNLINK";
|
|
@@ -165,12 +170,12 @@ export declare const WorkerIdentityCaseCuratedSubjectSchema: z.ZodObject<{
|
|
|
165
170
|
lastName: z.ZodNullable<z.ZodString>;
|
|
166
171
|
}, "strip", z.ZodTypeAny, {
|
|
167
172
|
id: string;
|
|
168
|
-
lastName: string | null;
|
|
169
173
|
firstName: string;
|
|
174
|
+
lastName: string | null;
|
|
170
175
|
}, {
|
|
171
176
|
id: string;
|
|
172
|
-
lastName: string | null;
|
|
173
177
|
firstName: string;
|
|
178
|
+
lastName: string | null;
|
|
174
179
|
}>;
|
|
175
180
|
/** Member documents the intelligence pipeline has not finished with — a
|
|
176
181
|
* staleness hint (spec §5): the case's evidence may still gain hard signals
|
|
@@ -199,27 +204,30 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
199
204
|
lastName: z.ZodNullable<z.ZodString>;
|
|
200
205
|
}, "strip", z.ZodTypeAny, {
|
|
201
206
|
id: string;
|
|
202
|
-
lastName: string | null;
|
|
203
207
|
firstName: string;
|
|
208
|
+
lastName: string | null;
|
|
204
209
|
}, {
|
|
205
210
|
id: string;
|
|
206
|
-
lastName: string | null;
|
|
207
211
|
firstName: string;
|
|
212
|
+
lastName: string | null;
|
|
208
213
|
}>>;
|
|
209
214
|
workers: z.ZodArray<z.ZodObject<{
|
|
210
215
|
id: z.ZodString;
|
|
211
216
|
firstName: z.ZodString;
|
|
212
217
|
lastName: z.ZodNullable<z.ZodString>;
|
|
218
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
213
219
|
agentName: z.ZodNullable<z.ZodString>;
|
|
214
220
|
}, "strip", z.ZodTypeAny, {
|
|
215
221
|
id: string;
|
|
216
|
-
lastName: string | null;
|
|
217
222
|
firstName: string;
|
|
223
|
+
lastName: string | null;
|
|
224
|
+
agentId: string | null;
|
|
218
225
|
agentName: string | null;
|
|
219
226
|
}, {
|
|
220
227
|
id: string;
|
|
221
|
-
lastName: string | null;
|
|
222
228
|
firstName: string;
|
|
229
|
+
lastName: string | null;
|
|
230
|
+
agentId: string | null;
|
|
223
231
|
agentName: string | null;
|
|
224
232
|
}>, "many">;
|
|
225
233
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -249,8 +257,8 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
249
257
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
250
258
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
251
259
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
workerId: string;
|
|
253
260
|
conflicts: string[];
|
|
261
|
+
workerId: string;
|
|
254
262
|
targetType: "WORKER" | "CURATED";
|
|
255
263
|
targetId: string;
|
|
256
264
|
signals: Record<string, unknown>;
|
|
@@ -259,8 +267,8 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
259
267
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
260
268
|
llmReason?: string | undefined;
|
|
261
269
|
}, {
|
|
262
|
-
workerId: string;
|
|
263
270
|
conflicts: string[];
|
|
271
|
+
workerId: string;
|
|
264
272
|
targetType: "WORKER" | "CURATED";
|
|
265
273
|
targetId: string;
|
|
266
274
|
signals: Record<string, unknown>;
|
|
@@ -277,12 +285,12 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
277
285
|
lastName: z.ZodNullable<z.ZodString>;
|
|
278
286
|
}, "strip", z.ZodTypeAny, {
|
|
279
287
|
id: string;
|
|
280
|
-
lastName: string | null;
|
|
281
288
|
firstName: string;
|
|
289
|
+
lastName: string | null;
|
|
282
290
|
}, {
|
|
283
291
|
id: string;
|
|
284
|
-
lastName: string | null;
|
|
285
292
|
firstName: string;
|
|
293
|
+
lastName: string | null;
|
|
286
294
|
}>, "many">;
|
|
287
295
|
pendingDocuments: z.ZodObject<{
|
|
288
296
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -303,34 +311,36 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
303
311
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
304
312
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
305
313
|
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
status: "PENDING" | "
|
|
314
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
307
315
|
id: string;
|
|
308
316
|
createdAt: string;
|
|
317
|
+
conflicts: string[];
|
|
318
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
319
|
+
curatedWorker: {
|
|
320
|
+
id: string;
|
|
321
|
+
firstName: string;
|
|
322
|
+
lastName: string | null;
|
|
323
|
+
} | null;
|
|
324
|
+
reviewedAt: string | null;
|
|
309
325
|
confidence: number | null;
|
|
310
326
|
workers: {
|
|
311
327
|
id: string;
|
|
312
|
-
lastName: string | null;
|
|
313
328
|
firstName: string;
|
|
329
|
+
lastName: string | null;
|
|
330
|
+
agentId: string | null;
|
|
314
331
|
agentName: string | null;
|
|
315
332
|
}[];
|
|
316
|
-
|
|
317
|
-
conflicts: string[];
|
|
318
|
-
reviewedAt: string | null;
|
|
319
|
-
curatedWorker: {
|
|
320
|
-
id: string;
|
|
321
|
-
lastName: string | null;
|
|
322
|
-
firstName: string;
|
|
323
|
-
} | null;
|
|
333
|
+
appliedCuratedWorkerId: string | null;
|
|
324
334
|
revision: number;
|
|
325
|
-
evidenceBadges: ("AI" | "
|
|
335
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
326
336
|
hasHardEvidence: boolean;
|
|
327
337
|
linkAudit: {
|
|
328
338
|
suggestedAction: "UNLINK";
|
|
329
339
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
330
340
|
} | null;
|
|
331
341
|
edges: {
|
|
332
|
-
workerId: string;
|
|
333
342
|
conflicts: string[];
|
|
343
|
+
workerId: string;
|
|
334
344
|
targetType: "WORKER" | "CURATED";
|
|
335
345
|
targetId: string;
|
|
336
346
|
signals: Record<string, unknown>;
|
|
@@ -341,8 +351,8 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
341
351
|
}[];
|
|
342
352
|
curatedSubjects: {
|
|
343
353
|
id: string;
|
|
344
|
-
lastName: string | null;
|
|
345
354
|
firstName: string;
|
|
355
|
+
lastName: string | null;
|
|
346
356
|
}[];
|
|
347
357
|
pendingDocuments: {
|
|
348
358
|
notExtracted: number;
|
|
@@ -350,36 +360,37 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
350
360
|
};
|
|
351
361
|
absorbedIntoCaseId: string | null;
|
|
352
362
|
obsoleteReason: string | null;
|
|
353
|
-
appliedCuratedWorkerId: string | null;
|
|
354
363
|
}, {
|
|
355
|
-
status: "PENDING" | "
|
|
364
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
356
365
|
id: string;
|
|
357
366
|
createdAt: string;
|
|
367
|
+
conflicts: string[];
|
|
368
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
369
|
+
curatedWorker: {
|
|
370
|
+
id: string;
|
|
371
|
+
firstName: string;
|
|
372
|
+
lastName: string | null;
|
|
373
|
+
} | null;
|
|
374
|
+
reviewedAt: string | null;
|
|
358
375
|
confidence: number | null;
|
|
359
376
|
workers: {
|
|
360
377
|
id: string;
|
|
361
|
-
lastName: string | null;
|
|
362
378
|
firstName: string;
|
|
379
|
+
lastName: string | null;
|
|
380
|
+
agentId: string | null;
|
|
363
381
|
agentName: string | null;
|
|
364
382
|
}[];
|
|
365
|
-
|
|
366
|
-
conflicts: string[];
|
|
367
|
-
reviewedAt: string | null;
|
|
368
|
-
curatedWorker: {
|
|
369
|
-
id: string;
|
|
370
|
-
lastName: string | null;
|
|
371
|
-
firstName: string;
|
|
372
|
-
} | null;
|
|
383
|
+
appliedCuratedWorkerId: string | null;
|
|
373
384
|
revision: number;
|
|
374
|
-
evidenceBadges: ("AI" | "
|
|
385
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
375
386
|
hasHardEvidence: boolean;
|
|
376
387
|
linkAudit: {
|
|
377
388
|
suggestedAction: "UNLINK";
|
|
378
389
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
379
390
|
} | null;
|
|
380
391
|
edges: {
|
|
381
|
-
workerId: string;
|
|
382
392
|
conflicts: string[];
|
|
393
|
+
workerId: string;
|
|
383
394
|
targetType: "WORKER" | "CURATED";
|
|
384
395
|
targetId: string;
|
|
385
396
|
signals: Record<string, unknown>;
|
|
@@ -390,8 +401,8 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
390
401
|
}[];
|
|
391
402
|
curatedSubjects: {
|
|
392
403
|
id: string;
|
|
393
|
-
lastName: string | null;
|
|
394
404
|
firstName: string;
|
|
405
|
+
lastName: string | null;
|
|
395
406
|
}[];
|
|
396
407
|
pendingDocuments: {
|
|
397
408
|
notExtracted: number;
|
|
@@ -399,7 +410,6 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
399
410
|
};
|
|
400
411
|
absorbedIntoCaseId: string | null;
|
|
401
412
|
obsoleteReason: string | null;
|
|
402
|
-
appliedCuratedWorkerId: string | null;
|
|
403
413
|
}>;
|
|
404
414
|
export declare const FilterWorkerIdentityCasesSchema: z.ZodObject<{
|
|
405
415
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -411,23 +421,23 @@ export declare const FilterWorkerIdentityCasesSchema: z.ZodObject<{
|
|
|
411
421
|
targetType: z.ZodOptional<z.ZodEnum<["EXISTING", "NEW"]>>;
|
|
412
422
|
search: z.ZodOptional<z.ZodString>;
|
|
413
423
|
}, "strip", z.ZodTypeAny, {
|
|
414
|
-
page: number;
|
|
415
424
|
limit: number;
|
|
416
|
-
|
|
417
|
-
|
|
425
|
+
page: number;
|
|
426
|
+
queue: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS";
|
|
427
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE" | undefined;
|
|
418
428
|
search?: string | undefined;
|
|
419
429
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
420
|
-
evidence?: "AI" | "SHARE_CODE" | "PHONE" | "NINO" | "EMAIL" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
421
430
|
targetType?: "NEW" | "EXISTING" | undefined;
|
|
431
|
+
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
422
432
|
}, {
|
|
423
|
-
status?: "PENDING" | "
|
|
424
|
-
page?: number | undefined;
|
|
425
|
-
limit?: number | undefined;
|
|
433
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE" | undefined;
|
|
426
434
|
search?: string | undefined;
|
|
435
|
+
limit?: number | undefined;
|
|
436
|
+
page?: number | undefined;
|
|
427
437
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
428
|
-
queue?: "NEEDS_REVIEW" | "CONFLICTS" | "RESOLVED" | undefined;
|
|
429
|
-
evidence?: "AI" | "SHARE_CODE" | "PHONE" | "NINO" | "EMAIL" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
430
438
|
targetType?: "NEW" | "EXISTING" | undefined;
|
|
439
|
+
queue?: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS" | undefined;
|
|
440
|
+
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
431
441
|
}>;
|
|
432
442
|
export type FilterWorkerIdentityCases = z.infer<typeof FilterWorkerIdentityCasesSchema>;
|
|
433
443
|
export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
@@ -443,27 +453,30 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
443
453
|
lastName: z.ZodNullable<z.ZodString>;
|
|
444
454
|
}, "strip", z.ZodTypeAny, {
|
|
445
455
|
id: string;
|
|
446
|
-
lastName: string | null;
|
|
447
456
|
firstName: string;
|
|
457
|
+
lastName: string | null;
|
|
448
458
|
}, {
|
|
449
459
|
id: string;
|
|
450
|
-
lastName: string | null;
|
|
451
460
|
firstName: string;
|
|
461
|
+
lastName: string | null;
|
|
452
462
|
}>>;
|
|
453
463
|
workers: z.ZodArray<z.ZodObject<{
|
|
454
464
|
id: z.ZodString;
|
|
455
465
|
firstName: z.ZodString;
|
|
456
466
|
lastName: z.ZodNullable<z.ZodString>;
|
|
467
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
457
468
|
agentName: z.ZodNullable<z.ZodString>;
|
|
458
469
|
}, "strip", z.ZodTypeAny, {
|
|
459
470
|
id: string;
|
|
460
|
-
lastName: string | null;
|
|
461
471
|
firstName: string;
|
|
472
|
+
lastName: string | null;
|
|
473
|
+
agentId: string | null;
|
|
462
474
|
agentName: string | null;
|
|
463
475
|
}, {
|
|
464
476
|
id: string;
|
|
465
|
-
lastName: string | null;
|
|
466
477
|
firstName: string;
|
|
478
|
+
lastName: string | null;
|
|
479
|
+
agentId: string | null;
|
|
467
480
|
agentName: string | null;
|
|
468
481
|
}>, "many">;
|
|
469
482
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -481,50 +494,52 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
481
494
|
}>>;
|
|
482
495
|
createdAt: z.ZodString;
|
|
483
496
|
}, "strip", z.ZodTypeAny, {
|
|
484
|
-
status: "PENDING" | "
|
|
497
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
485
498
|
id: string;
|
|
486
499
|
createdAt: string;
|
|
500
|
+
conflicts: string[];
|
|
501
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
502
|
+
curatedWorker: {
|
|
503
|
+
id: string;
|
|
504
|
+
firstName: string;
|
|
505
|
+
lastName: string | null;
|
|
506
|
+
} | null;
|
|
487
507
|
confidence: number | null;
|
|
488
508
|
workers: {
|
|
489
509
|
id: string;
|
|
490
|
-
lastName: string | null;
|
|
491
510
|
firstName: string;
|
|
511
|
+
lastName: string | null;
|
|
512
|
+
agentId: string | null;
|
|
492
513
|
agentName: string | null;
|
|
493
514
|
}[];
|
|
494
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
495
|
-
conflicts: string[];
|
|
496
|
-
curatedWorker: {
|
|
497
|
-
id: string;
|
|
498
|
-
lastName: string | null;
|
|
499
|
-
firstName: string;
|
|
500
|
-
} | null;
|
|
501
515
|
revision: number;
|
|
502
|
-
evidenceBadges: ("AI" | "
|
|
516
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
503
517
|
hasHardEvidence: boolean;
|
|
504
518
|
linkAudit: {
|
|
505
519
|
suggestedAction: "UNLINK";
|
|
506
520
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
507
521
|
} | null;
|
|
508
522
|
}, {
|
|
509
|
-
status: "PENDING" | "
|
|
523
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
510
524
|
id: string;
|
|
511
525
|
createdAt: string;
|
|
526
|
+
conflicts: string[];
|
|
527
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
528
|
+
curatedWorker: {
|
|
529
|
+
id: string;
|
|
530
|
+
firstName: string;
|
|
531
|
+
lastName: string | null;
|
|
532
|
+
} | null;
|
|
512
533
|
confidence: number | null;
|
|
513
534
|
workers: {
|
|
514
535
|
id: string;
|
|
515
|
-
lastName: string | null;
|
|
516
536
|
firstName: string;
|
|
537
|
+
lastName: string | null;
|
|
538
|
+
agentId: string | null;
|
|
517
539
|
agentName: string | null;
|
|
518
540
|
}[];
|
|
519
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
520
|
-
conflicts: string[];
|
|
521
|
-
curatedWorker: {
|
|
522
|
-
id: string;
|
|
523
|
-
lastName: string | null;
|
|
524
|
-
firstName: string;
|
|
525
|
-
} | null;
|
|
526
541
|
revision: number;
|
|
527
|
-
evidenceBadges: ("AI" | "
|
|
542
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
528
543
|
hasHardEvidence: boolean;
|
|
529
544
|
linkAudit: {
|
|
530
545
|
suggestedAction: "UNLINK";
|
|
@@ -536,30 +551,31 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
536
551
|
page: z.ZodNumber;
|
|
537
552
|
limit: z.ZodNumber;
|
|
538
553
|
}, "strip", z.ZodTypeAny, {
|
|
539
|
-
page: number;
|
|
540
554
|
limit: number;
|
|
555
|
+
page: number;
|
|
541
556
|
totalCount: number;
|
|
542
557
|
totalPages: number;
|
|
543
558
|
cases: {
|
|
544
|
-
status: "PENDING" | "
|
|
559
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
545
560
|
id: string;
|
|
546
561
|
createdAt: string;
|
|
562
|
+
conflicts: string[];
|
|
563
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
564
|
+
curatedWorker: {
|
|
565
|
+
id: string;
|
|
566
|
+
firstName: string;
|
|
567
|
+
lastName: string | null;
|
|
568
|
+
} | null;
|
|
547
569
|
confidence: number | null;
|
|
548
570
|
workers: {
|
|
549
571
|
id: string;
|
|
550
|
-
lastName: string | null;
|
|
551
572
|
firstName: string;
|
|
573
|
+
lastName: string | null;
|
|
574
|
+
agentId: string | null;
|
|
552
575
|
agentName: string | null;
|
|
553
576
|
}[];
|
|
554
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
555
|
-
conflicts: string[];
|
|
556
|
-
curatedWorker: {
|
|
557
|
-
id: string;
|
|
558
|
-
lastName: string | null;
|
|
559
|
-
firstName: string;
|
|
560
|
-
} | null;
|
|
561
577
|
revision: number;
|
|
562
|
-
evidenceBadges: ("AI" | "
|
|
578
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
563
579
|
hasHardEvidence: boolean;
|
|
564
580
|
linkAudit: {
|
|
565
581
|
suggestedAction: "UNLINK";
|
|
@@ -567,30 +583,31 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
567
583
|
} | null;
|
|
568
584
|
}[];
|
|
569
585
|
}, {
|
|
570
|
-
page: number;
|
|
571
586
|
limit: number;
|
|
587
|
+
page: number;
|
|
572
588
|
totalCount: number;
|
|
573
589
|
totalPages: number;
|
|
574
590
|
cases: {
|
|
575
|
-
status: "PENDING" | "
|
|
591
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
576
592
|
id: string;
|
|
577
593
|
createdAt: string;
|
|
594
|
+
conflicts: string[];
|
|
595
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
596
|
+
curatedWorker: {
|
|
597
|
+
id: string;
|
|
598
|
+
firstName: string;
|
|
599
|
+
lastName: string | null;
|
|
600
|
+
} | null;
|
|
578
601
|
confidence: number | null;
|
|
579
602
|
workers: {
|
|
580
603
|
id: string;
|
|
581
|
-
lastName: string | null;
|
|
582
604
|
firstName: string;
|
|
605
|
+
lastName: string | null;
|
|
606
|
+
agentId: string | null;
|
|
583
607
|
agentName: string | null;
|
|
584
608
|
}[];
|
|
585
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
586
|
-
conflicts: string[];
|
|
587
|
-
curatedWorker: {
|
|
588
|
-
id: string;
|
|
589
|
-
lastName: string | null;
|
|
590
|
-
firstName: string;
|
|
591
|
-
} | null;
|
|
592
609
|
revision: number;
|
|
593
|
-
evidenceBadges: ("AI" | "
|
|
610
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
594
611
|
hasHardEvidence: boolean;
|
|
595
612
|
linkAudit: {
|
|
596
613
|
suggestedAction: "UNLINK";
|
|
@@ -621,11 +638,11 @@ export declare const WorkerIdentityBackfillResultSchema: z.ZodObject<{
|
|
|
621
638
|
representedPhoneGroups: number;
|
|
622
639
|
}>;
|
|
623
640
|
}, "strip", z.ZodTypeAny, {
|
|
624
|
-
pending: number;
|
|
625
|
-
scanned: number;
|
|
626
641
|
conflicts: number;
|
|
627
|
-
llmCalls: number;
|
|
628
642
|
cases: number;
|
|
643
|
+
scanned: number;
|
|
644
|
+
llmCalls: number;
|
|
645
|
+
pending: number;
|
|
629
646
|
linkedScanned: number;
|
|
630
647
|
linkAudits: number;
|
|
631
648
|
autoApplied: number;
|
|
@@ -637,11 +654,11 @@ export declare const WorkerIdentityBackfillResultSchema: z.ZodObject<{
|
|
|
637
654
|
representedPhoneGroups: number;
|
|
638
655
|
};
|
|
639
656
|
}, {
|
|
640
|
-
pending: number;
|
|
641
|
-
scanned: number;
|
|
642
657
|
conflicts: number;
|
|
643
|
-
llmCalls: number;
|
|
644
658
|
cases: number;
|
|
659
|
+
scanned: number;
|
|
660
|
+
llmCalls: number;
|
|
661
|
+
pending: number;
|
|
645
662
|
linkedScanned: number;
|
|
646
663
|
linkAudits: number;
|
|
647
664
|
autoApplied: number;
|
|
@@ -692,11 +709,11 @@ export declare const WorkerIdentityBackfillStatusSchema: z.ZodObject<{
|
|
|
692
709
|
representedPhoneGroups: number;
|
|
693
710
|
}>;
|
|
694
711
|
}, "strip", z.ZodTypeAny, {
|
|
695
|
-
pending: number;
|
|
696
|
-
scanned: number;
|
|
697
712
|
conflicts: number;
|
|
698
|
-
llmCalls: number;
|
|
699
713
|
cases: number;
|
|
714
|
+
scanned: number;
|
|
715
|
+
llmCalls: number;
|
|
716
|
+
pending: number;
|
|
700
717
|
linkedScanned: number;
|
|
701
718
|
linkAudits: number;
|
|
702
719
|
autoApplied: number;
|
|
@@ -708,11 +725,11 @@ export declare const WorkerIdentityBackfillStatusSchema: z.ZodObject<{
|
|
|
708
725
|
representedPhoneGroups: number;
|
|
709
726
|
};
|
|
710
727
|
}, {
|
|
711
|
-
pending: number;
|
|
712
|
-
scanned: number;
|
|
713
728
|
conflicts: number;
|
|
714
|
-
llmCalls: number;
|
|
715
729
|
cases: number;
|
|
730
|
+
scanned: number;
|
|
731
|
+
llmCalls: number;
|
|
732
|
+
pending: number;
|
|
716
733
|
linkedScanned: number;
|
|
717
734
|
linkAudits: number;
|
|
718
735
|
autoApplied: number;
|
|
@@ -725,15 +742,14 @@ export declare const WorkerIdentityBackfillStatusSchema: z.ZodObject<{
|
|
|
725
742
|
};
|
|
726
743
|
}>>;
|
|
727
744
|
}, "strip", z.ZodTypeAny, {
|
|
728
|
-
startedAt: string | null;
|
|
729
745
|
error: string | null;
|
|
730
|
-
|
|
746
|
+
startedAt: string | null;
|
|
731
747
|
result: {
|
|
732
|
-
pending: number;
|
|
733
|
-
scanned: number;
|
|
734
748
|
conflicts: number;
|
|
735
|
-
llmCalls: number;
|
|
736
749
|
cases: number;
|
|
750
|
+
scanned: number;
|
|
751
|
+
llmCalls: number;
|
|
752
|
+
pending: number;
|
|
737
753
|
linkedScanned: number;
|
|
738
754
|
linkAudits: number;
|
|
739
755
|
autoApplied: number;
|
|
@@ -745,17 +761,17 @@ export declare const WorkerIdentityBackfillStatusSchema: z.ZodObject<{
|
|
|
745
761
|
representedPhoneGroups: number;
|
|
746
762
|
};
|
|
747
763
|
} | null;
|
|
764
|
+
finishedAt: string | null;
|
|
748
765
|
running: boolean;
|
|
749
766
|
}, {
|
|
750
|
-
startedAt: string | null;
|
|
751
767
|
error: string | null;
|
|
752
|
-
|
|
768
|
+
startedAt: string | null;
|
|
753
769
|
result: {
|
|
754
|
-
pending: number;
|
|
755
|
-
scanned: number;
|
|
756
770
|
conflicts: number;
|
|
757
|
-
llmCalls: number;
|
|
758
771
|
cases: number;
|
|
772
|
+
scanned: number;
|
|
773
|
+
llmCalls: number;
|
|
774
|
+
pending: number;
|
|
759
775
|
linkedScanned: number;
|
|
760
776
|
linkAudits: number;
|
|
761
777
|
autoApplied: number;
|
|
@@ -767,6 +783,7 @@ export declare const WorkerIdentityBackfillStatusSchema: z.ZodObject<{
|
|
|
767
783
|
representedPhoneGroups: number;
|
|
768
784
|
};
|
|
769
785
|
} | null;
|
|
786
|
+
finishedAt: string | null;
|
|
770
787
|
running: boolean;
|
|
771
788
|
}>;
|
|
772
789
|
export type WorkerIdentityBackfillStatus = z.infer<typeof WorkerIdentityBackfillStatusSchema>;
|
|
@@ -867,9 +884,9 @@ export declare const WorkerIdentitySuggestedMergeValuesSchema: z.ZodObject<{
|
|
|
867
884
|
tradeIds: z.ZodArray<z.ZodString, "many">;
|
|
868
885
|
mainTradeId: z.ZodNullable<z.ZodString>;
|
|
869
886
|
}, "strip", z.ZodTypeAny, {
|
|
870
|
-
email: string | null;
|
|
871
|
-
lastName: string | null;
|
|
872
887
|
firstName: string | null;
|
|
888
|
+
lastName: string | null;
|
|
889
|
+
email: string | null;
|
|
873
890
|
phoneNumbers: string[];
|
|
874
891
|
englishLevel: string | null;
|
|
875
892
|
nationality: string | null;
|
|
@@ -878,14 +895,14 @@ export declare const WorkerIdentitySuggestedMergeValuesSchema: z.ZodObject<{
|
|
|
878
895
|
dateOfBirth: string | null;
|
|
879
896
|
bio: string | null;
|
|
880
897
|
nino: string | null;
|
|
898
|
+
locationId: string | null;
|
|
881
899
|
shareCode: string | null;
|
|
882
900
|
tradeIds: string[];
|
|
883
|
-
locationId: string | null;
|
|
884
901
|
mainTradeId: string | null;
|
|
885
902
|
}, {
|
|
886
|
-
email: string | null;
|
|
887
|
-
lastName: string | null;
|
|
888
903
|
firstName: string | null;
|
|
904
|
+
lastName: string | null;
|
|
905
|
+
email: string | null;
|
|
889
906
|
phoneNumbers: string[];
|
|
890
907
|
englishLevel: string | null;
|
|
891
908
|
nationality: string | null;
|
|
@@ -894,9 +911,9 @@ export declare const WorkerIdentitySuggestedMergeValuesSchema: z.ZodObject<{
|
|
|
894
911
|
dateOfBirth: string | null;
|
|
895
912
|
bio: string | null;
|
|
896
913
|
nino: string | null;
|
|
914
|
+
locationId: string | null;
|
|
897
915
|
shareCode: string | null;
|
|
898
916
|
tradeIds: string[];
|
|
899
|
-
locationId: string | null;
|
|
900
917
|
mainTradeId: string | null;
|
|
901
918
|
}>;
|
|
902
919
|
export type WorkerIdentitySuggestedMergeValues = z.infer<typeof WorkerIdentitySuggestedMergeValuesSchema>;
|
|
@@ -1006,12 +1023,12 @@ export declare const CuratedLinkAuditReprocessingSchema: z.ZodObject<{
|
|
|
1006
1023
|
casesCreated: z.ZodNumber;
|
|
1007
1024
|
message: z.ZodNullable<z.ZodString>;
|
|
1008
1025
|
}, "strip", z.ZodTypeAny, {
|
|
1009
|
-
status: "COMPLETED" | "FAILED";
|
|
1010
1026
|
message: string | null;
|
|
1027
|
+
status: "COMPLETED" | "FAILED";
|
|
1011
1028
|
casesCreated: number;
|
|
1012
1029
|
}, {
|
|
1013
|
-
status: "COMPLETED" | "FAILED";
|
|
1014
1030
|
message: string | null;
|
|
1031
|
+
status: "COMPLETED" | "FAILED";
|
|
1015
1032
|
casesCreated: number;
|
|
1016
1033
|
}>;
|
|
1017
1034
|
export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
@@ -1027,27 +1044,30 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1027
1044
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1028
1045
|
}, "strip", z.ZodTypeAny, {
|
|
1029
1046
|
id: string;
|
|
1030
|
-
lastName: string | null;
|
|
1031
1047
|
firstName: string;
|
|
1048
|
+
lastName: string | null;
|
|
1032
1049
|
}, {
|
|
1033
1050
|
id: string;
|
|
1034
|
-
lastName: string | null;
|
|
1035
1051
|
firstName: string;
|
|
1052
|
+
lastName: string | null;
|
|
1036
1053
|
}>>;
|
|
1037
1054
|
workers: z.ZodArray<z.ZodObject<{
|
|
1038
1055
|
id: z.ZodString;
|
|
1039
1056
|
firstName: z.ZodString;
|
|
1040
1057
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1058
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
1041
1059
|
agentName: z.ZodNullable<z.ZodString>;
|
|
1042
1060
|
}, "strip", z.ZodTypeAny, {
|
|
1043
1061
|
id: string;
|
|
1044
|
-
lastName: string | null;
|
|
1045
1062
|
firstName: string;
|
|
1063
|
+
lastName: string | null;
|
|
1064
|
+
agentId: string | null;
|
|
1046
1065
|
agentName: string | null;
|
|
1047
1066
|
}, {
|
|
1048
1067
|
id: string;
|
|
1049
|
-
lastName: string | null;
|
|
1050
1068
|
firstName: string;
|
|
1069
|
+
lastName: string | null;
|
|
1070
|
+
agentId: string | null;
|
|
1051
1071
|
agentName: string | null;
|
|
1052
1072
|
}>, "many">;
|
|
1053
1073
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -1077,8 +1097,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1077
1097
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
1078
1098
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
1079
1099
|
}, "strip", z.ZodTypeAny, {
|
|
1080
|
-
workerId: string;
|
|
1081
1100
|
conflicts: string[];
|
|
1101
|
+
workerId: string;
|
|
1082
1102
|
targetType: "WORKER" | "CURATED";
|
|
1083
1103
|
targetId: string;
|
|
1084
1104
|
signals: Record<string, unknown>;
|
|
@@ -1087,8 +1107,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1087
1107
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
1088
1108
|
llmReason?: string | undefined;
|
|
1089
1109
|
}, {
|
|
1090
|
-
workerId: string;
|
|
1091
1110
|
conflicts: string[];
|
|
1111
|
+
workerId: string;
|
|
1092
1112
|
targetType: "WORKER" | "CURATED";
|
|
1093
1113
|
targetId: string;
|
|
1094
1114
|
signals: Record<string, unknown>;
|
|
@@ -1105,12 +1125,12 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1105
1125
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1106
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1107
1127
|
id: string;
|
|
1108
|
-
lastName: string | null;
|
|
1109
1128
|
firstName: string;
|
|
1129
|
+
lastName: string | null;
|
|
1110
1130
|
}, {
|
|
1111
1131
|
id: string;
|
|
1112
|
-
lastName: string | null;
|
|
1113
1132
|
firstName: string;
|
|
1133
|
+
lastName: string | null;
|
|
1114
1134
|
}>, "many">;
|
|
1115
1135
|
pendingDocuments: z.ZodObject<{
|
|
1116
1136
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -1131,34 +1151,36 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1131
1151
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
1132
1152
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
1133
1153
|
}, "strip", z.ZodTypeAny, {
|
|
1134
|
-
status: "PENDING" | "
|
|
1154
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1135
1155
|
id: string;
|
|
1136
1156
|
createdAt: string;
|
|
1157
|
+
conflicts: string[];
|
|
1158
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1159
|
+
curatedWorker: {
|
|
1160
|
+
id: string;
|
|
1161
|
+
firstName: string;
|
|
1162
|
+
lastName: string | null;
|
|
1163
|
+
} | null;
|
|
1164
|
+
reviewedAt: string | null;
|
|
1137
1165
|
confidence: number | null;
|
|
1138
1166
|
workers: {
|
|
1139
1167
|
id: string;
|
|
1140
|
-
lastName: string | null;
|
|
1141
1168
|
firstName: string;
|
|
1169
|
+
lastName: string | null;
|
|
1170
|
+
agentId: string | null;
|
|
1142
1171
|
agentName: string | null;
|
|
1143
1172
|
}[];
|
|
1144
|
-
|
|
1145
|
-
conflicts: string[];
|
|
1146
|
-
reviewedAt: string | null;
|
|
1147
|
-
curatedWorker: {
|
|
1148
|
-
id: string;
|
|
1149
|
-
lastName: string | null;
|
|
1150
|
-
firstName: string;
|
|
1151
|
-
} | null;
|
|
1173
|
+
appliedCuratedWorkerId: string | null;
|
|
1152
1174
|
revision: number;
|
|
1153
|
-
evidenceBadges: ("AI" | "
|
|
1175
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1154
1176
|
hasHardEvidence: boolean;
|
|
1155
1177
|
linkAudit: {
|
|
1156
1178
|
suggestedAction: "UNLINK";
|
|
1157
1179
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
1158
1180
|
} | null;
|
|
1159
1181
|
edges: {
|
|
1160
|
-
workerId: string;
|
|
1161
1182
|
conflicts: string[];
|
|
1183
|
+
workerId: string;
|
|
1162
1184
|
targetType: "WORKER" | "CURATED";
|
|
1163
1185
|
targetId: string;
|
|
1164
1186
|
signals: Record<string, unknown>;
|
|
@@ -1169,8 +1191,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1169
1191
|
}[];
|
|
1170
1192
|
curatedSubjects: {
|
|
1171
1193
|
id: string;
|
|
1172
|
-
lastName: string | null;
|
|
1173
1194
|
firstName: string;
|
|
1195
|
+
lastName: string | null;
|
|
1174
1196
|
}[];
|
|
1175
1197
|
pendingDocuments: {
|
|
1176
1198
|
notExtracted: number;
|
|
@@ -1178,36 +1200,37 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1178
1200
|
};
|
|
1179
1201
|
absorbedIntoCaseId: string | null;
|
|
1180
1202
|
obsoleteReason: string | null;
|
|
1181
|
-
appliedCuratedWorkerId: string | null;
|
|
1182
1203
|
}, {
|
|
1183
|
-
status: "PENDING" | "
|
|
1204
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1184
1205
|
id: string;
|
|
1185
1206
|
createdAt: string;
|
|
1207
|
+
conflicts: string[];
|
|
1208
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1209
|
+
curatedWorker: {
|
|
1210
|
+
id: string;
|
|
1211
|
+
firstName: string;
|
|
1212
|
+
lastName: string | null;
|
|
1213
|
+
} | null;
|
|
1214
|
+
reviewedAt: string | null;
|
|
1186
1215
|
confidence: number | null;
|
|
1187
1216
|
workers: {
|
|
1188
1217
|
id: string;
|
|
1189
|
-
lastName: string | null;
|
|
1190
1218
|
firstName: string;
|
|
1219
|
+
lastName: string | null;
|
|
1220
|
+
agentId: string | null;
|
|
1191
1221
|
agentName: string | null;
|
|
1192
1222
|
}[];
|
|
1193
|
-
|
|
1194
|
-
conflicts: string[];
|
|
1195
|
-
reviewedAt: string | null;
|
|
1196
|
-
curatedWorker: {
|
|
1197
|
-
id: string;
|
|
1198
|
-
lastName: string | null;
|
|
1199
|
-
firstName: string;
|
|
1200
|
-
} | null;
|
|
1223
|
+
appliedCuratedWorkerId: string | null;
|
|
1201
1224
|
revision: number;
|
|
1202
|
-
evidenceBadges: ("AI" | "
|
|
1225
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1203
1226
|
hasHardEvidence: boolean;
|
|
1204
1227
|
linkAudit: {
|
|
1205
1228
|
suggestedAction: "UNLINK";
|
|
1206
1229
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
1207
1230
|
} | null;
|
|
1208
1231
|
edges: {
|
|
1209
|
-
workerId: string;
|
|
1210
1232
|
conflicts: string[];
|
|
1233
|
+
workerId: string;
|
|
1211
1234
|
targetType: "WORKER" | "CURATED";
|
|
1212
1235
|
targetId: string;
|
|
1213
1236
|
signals: Record<string, unknown>;
|
|
@@ -1218,8 +1241,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1218
1241
|
}[];
|
|
1219
1242
|
curatedSubjects: {
|
|
1220
1243
|
id: string;
|
|
1221
|
-
lastName: string | null;
|
|
1222
1244
|
firstName: string;
|
|
1245
|
+
lastName: string | null;
|
|
1223
1246
|
}[];
|
|
1224
1247
|
pendingDocuments: {
|
|
1225
1248
|
notExtracted: number;
|
|
@@ -1227,51 +1250,52 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1227
1250
|
};
|
|
1228
1251
|
absorbedIntoCaseId: string | null;
|
|
1229
1252
|
obsoleteReason: string | null;
|
|
1230
|
-
appliedCuratedWorkerId: string | null;
|
|
1231
1253
|
}>;
|
|
1232
1254
|
reprocessing: z.ZodNullable<z.ZodObject<{
|
|
1233
1255
|
status: z.ZodEnum<["COMPLETED", "FAILED"]>;
|
|
1234
1256
|
casesCreated: z.ZodNumber;
|
|
1235
1257
|
message: z.ZodNullable<z.ZodString>;
|
|
1236
1258
|
}, "strip", z.ZodTypeAny, {
|
|
1237
|
-
status: "COMPLETED" | "FAILED";
|
|
1238
1259
|
message: string | null;
|
|
1260
|
+
status: "COMPLETED" | "FAILED";
|
|
1239
1261
|
casesCreated: number;
|
|
1240
1262
|
}, {
|
|
1241
|
-
status: "COMPLETED" | "FAILED";
|
|
1242
1263
|
message: string | null;
|
|
1264
|
+
status: "COMPLETED" | "FAILED";
|
|
1243
1265
|
casesCreated: number;
|
|
1244
1266
|
}>>;
|
|
1245
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1246
1268
|
case: {
|
|
1247
|
-
status: "PENDING" | "
|
|
1269
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1248
1270
|
id: string;
|
|
1249
1271
|
createdAt: string;
|
|
1272
|
+
conflicts: string[];
|
|
1273
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1274
|
+
curatedWorker: {
|
|
1275
|
+
id: string;
|
|
1276
|
+
firstName: string;
|
|
1277
|
+
lastName: string | null;
|
|
1278
|
+
} | null;
|
|
1279
|
+
reviewedAt: string | null;
|
|
1250
1280
|
confidence: number | null;
|
|
1251
1281
|
workers: {
|
|
1252
1282
|
id: string;
|
|
1253
|
-
lastName: string | null;
|
|
1254
1283
|
firstName: string;
|
|
1284
|
+
lastName: string | null;
|
|
1285
|
+
agentId: string | null;
|
|
1255
1286
|
agentName: string | null;
|
|
1256
1287
|
}[];
|
|
1257
|
-
|
|
1258
|
-
conflicts: string[];
|
|
1259
|
-
reviewedAt: string | null;
|
|
1260
|
-
curatedWorker: {
|
|
1261
|
-
id: string;
|
|
1262
|
-
lastName: string | null;
|
|
1263
|
-
firstName: string;
|
|
1264
|
-
} | null;
|
|
1288
|
+
appliedCuratedWorkerId: string | null;
|
|
1265
1289
|
revision: number;
|
|
1266
|
-
evidenceBadges: ("AI" | "
|
|
1290
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1267
1291
|
hasHardEvidence: boolean;
|
|
1268
1292
|
linkAudit: {
|
|
1269
1293
|
suggestedAction: "UNLINK";
|
|
1270
1294
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
1271
1295
|
} | null;
|
|
1272
1296
|
edges: {
|
|
1273
|
-
workerId: string;
|
|
1274
1297
|
conflicts: string[];
|
|
1298
|
+
workerId: string;
|
|
1275
1299
|
targetType: "WORKER" | "CURATED";
|
|
1276
1300
|
targetId: string;
|
|
1277
1301
|
signals: Record<string, unknown>;
|
|
@@ -1282,8 +1306,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1282
1306
|
}[];
|
|
1283
1307
|
curatedSubjects: {
|
|
1284
1308
|
id: string;
|
|
1285
|
-
lastName: string | null;
|
|
1286
1309
|
firstName: string;
|
|
1310
|
+
lastName: string | null;
|
|
1287
1311
|
}[];
|
|
1288
1312
|
pendingDocuments: {
|
|
1289
1313
|
notExtracted: number;
|
|
@@ -1291,43 +1315,44 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1291
1315
|
};
|
|
1292
1316
|
absorbedIntoCaseId: string | null;
|
|
1293
1317
|
obsoleteReason: string | null;
|
|
1294
|
-
appliedCuratedWorkerId: string | null;
|
|
1295
1318
|
};
|
|
1296
1319
|
reprocessing: {
|
|
1297
|
-
status: "COMPLETED" | "FAILED";
|
|
1298
1320
|
message: string | null;
|
|
1321
|
+
status: "COMPLETED" | "FAILED";
|
|
1299
1322
|
casesCreated: number;
|
|
1300
1323
|
} | null;
|
|
1301
1324
|
}, {
|
|
1302
1325
|
case: {
|
|
1303
|
-
status: "PENDING" | "
|
|
1326
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1304
1327
|
id: string;
|
|
1305
1328
|
createdAt: string;
|
|
1329
|
+
conflicts: string[];
|
|
1330
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1331
|
+
curatedWorker: {
|
|
1332
|
+
id: string;
|
|
1333
|
+
firstName: string;
|
|
1334
|
+
lastName: string | null;
|
|
1335
|
+
} | null;
|
|
1336
|
+
reviewedAt: string | null;
|
|
1306
1337
|
confidence: number | null;
|
|
1307
1338
|
workers: {
|
|
1308
1339
|
id: string;
|
|
1309
|
-
lastName: string | null;
|
|
1310
1340
|
firstName: string;
|
|
1341
|
+
lastName: string | null;
|
|
1342
|
+
agentId: string | null;
|
|
1311
1343
|
agentName: string | null;
|
|
1312
1344
|
}[];
|
|
1313
|
-
|
|
1314
|
-
conflicts: string[];
|
|
1315
|
-
reviewedAt: string | null;
|
|
1316
|
-
curatedWorker: {
|
|
1317
|
-
id: string;
|
|
1318
|
-
lastName: string | null;
|
|
1319
|
-
firstName: string;
|
|
1320
|
-
} | null;
|
|
1345
|
+
appliedCuratedWorkerId: string | null;
|
|
1321
1346
|
revision: number;
|
|
1322
|
-
evidenceBadges: ("AI" | "
|
|
1347
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1323
1348
|
hasHardEvidence: boolean;
|
|
1324
1349
|
linkAudit: {
|
|
1325
1350
|
suggestedAction: "UNLINK";
|
|
1326
1351
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
1327
1352
|
} | null;
|
|
1328
1353
|
edges: {
|
|
1329
|
-
workerId: string;
|
|
1330
1354
|
conflicts: string[];
|
|
1355
|
+
workerId: string;
|
|
1331
1356
|
targetType: "WORKER" | "CURATED";
|
|
1332
1357
|
targetId: string;
|
|
1333
1358
|
signals: Record<string, unknown>;
|
|
@@ -1338,8 +1363,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1338
1363
|
}[];
|
|
1339
1364
|
curatedSubjects: {
|
|
1340
1365
|
id: string;
|
|
1341
|
-
lastName: string | null;
|
|
1342
1366
|
firstName: string;
|
|
1367
|
+
lastName: string | null;
|
|
1343
1368
|
}[];
|
|
1344
1369
|
pendingDocuments: {
|
|
1345
1370
|
notExtracted: number;
|
|
@@ -1347,11 +1372,10 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1347
1372
|
};
|
|
1348
1373
|
absorbedIntoCaseId: string | null;
|
|
1349
1374
|
obsoleteReason: string | null;
|
|
1350
|
-
appliedCuratedWorkerId: string | null;
|
|
1351
1375
|
};
|
|
1352
1376
|
reprocessing: {
|
|
1353
|
-
status: "COMPLETED" | "FAILED";
|
|
1354
1377
|
message: string | null;
|
|
1378
|
+
status: "COMPLETED" | "FAILED";
|
|
1355
1379
|
casesCreated: number;
|
|
1356
1380
|
} | null;
|
|
1357
1381
|
}>;
|
|
@@ -1369,23 +1393,23 @@ export declare const workerIdentityCasesContract: {
|
|
|
1369
1393
|
targetType: z.ZodOptional<z.ZodEnum<["EXISTING", "NEW"]>>;
|
|
1370
1394
|
search: z.ZodOptional<z.ZodString>;
|
|
1371
1395
|
}, "strip", z.ZodTypeAny, {
|
|
1372
|
-
page: number;
|
|
1373
1396
|
limit: number;
|
|
1374
|
-
|
|
1375
|
-
|
|
1397
|
+
page: number;
|
|
1398
|
+
queue: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS";
|
|
1399
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE" | undefined;
|
|
1376
1400
|
search?: string | undefined;
|
|
1377
1401
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
1378
|
-
evidence?: "AI" | "SHARE_CODE" | "PHONE" | "NINO" | "EMAIL" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1379
1402
|
targetType?: "NEW" | "EXISTING" | undefined;
|
|
1403
|
+
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1380
1404
|
}, {
|
|
1381
|
-
status?: "PENDING" | "
|
|
1382
|
-
page?: number | undefined;
|
|
1383
|
-
limit?: number | undefined;
|
|
1405
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE" | undefined;
|
|
1384
1406
|
search?: string | undefined;
|
|
1407
|
+
limit?: number | undefined;
|
|
1408
|
+
page?: number | undefined;
|
|
1385
1409
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
1386
|
-
queue?: "NEEDS_REVIEW" | "CONFLICTS" | "RESOLVED" | undefined;
|
|
1387
|
-
evidence?: "AI" | "SHARE_CODE" | "PHONE" | "NINO" | "EMAIL" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1388
1410
|
targetType?: "NEW" | "EXISTING" | undefined;
|
|
1411
|
+
queue?: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS" | undefined;
|
|
1412
|
+
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1389
1413
|
}>;
|
|
1390
1414
|
metadata: {
|
|
1391
1415
|
tags: string[];
|
|
@@ -1397,7 +1421,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
1397
1421
|
method: "GET";
|
|
1398
1422
|
path: "/v2/worker-identity-cases";
|
|
1399
1423
|
responses: {
|
|
1400
|
-
|
|
1424
|
+
400: z.ZodObject<{
|
|
1401
1425
|
statusCode: z.ZodNumber;
|
|
1402
1426
|
message: z.ZodString;
|
|
1403
1427
|
code: z.ZodString;
|
|
@@ -1422,7 +1446,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
1422
1446
|
details?: unknown;
|
|
1423
1447
|
correlationId?: string | undefined;
|
|
1424
1448
|
}>;
|
|
1425
|
-
|
|
1449
|
+
401: z.ZodObject<{
|
|
1426
1450
|
statusCode: z.ZodNumber;
|
|
1427
1451
|
message: z.ZodString;
|
|
1428
1452
|
code: z.ZodString;
|
|
@@ -1510,27 +1534,30 @@ export declare const workerIdentityCasesContract: {
|
|
|
1510
1534
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1511
1535
|
}, "strip", z.ZodTypeAny, {
|
|
1512
1536
|
id: string;
|
|
1513
|
-
lastName: string | null;
|
|
1514
1537
|
firstName: string;
|
|
1538
|
+
lastName: string | null;
|
|
1515
1539
|
}, {
|
|
1516
1540
|
id: string;
|
|
1517
|
-
lastName: string | null;
|
|
1518
1541
|
firstName: string;
|
|
1542
|
+
lastName: string | null;
|
|
1519
1543
|
}>>;
|
|
1520
1544
|
workers: z.ZodArray<z.ZodObject<{
|
|
1521
1545
|
id: z.ZodString;
|
|
1522
1546
|
firstName: z.ZodString;
|
|
1523
1547
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1548
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
1524
1549
|
agentName: z.ZodNullable<z.ZodString>;
|
|
1525
1550
|
}, "strip", z.ZodTypeAny, {
|
|
1526
1551
|
id: string;
|
|
1527
|
-
lastName: string | null;
|
|
1528
1552
|
firstName: string;
|
|
1553
|
+
lastName: string | null;
|
|
1554
|
+
agentId: string | null;
|
|
1529
1555
|
agentName: string | null;
|
|
1530
1556
|
}, {
|
|
1531
1557
|
id: string;
|
|
1532
|
-
lastName: string | null;
|
|
1533
1558
|
firstName: string;
|
|
1559
|
+
lastName: string | null;
|
|
1560
|
+
agentId: string | null;
|
|
1534
1561
|
agentName: string | null;
|
|
1535
1562
|
}>, "many">;
|
|
1536
1563
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -1548,50 +1575,52 @@ export declare const workerIdentityCasesContract: {
|
|
|
1548
1575
|
}>>;
|
|
1549
1576
|
createdAt: z.ZodString;
|
|
1550
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1551
|
-
status: "PENDING" | "
|
|
1578
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1552
1579
|
id: string;
|
|
1553
1580
|
createdAt: string;
|
|
1554
|
-
confidence: number | null;
|
|
1555
|
-
workers: {
|
|
1556
|
-
id: string;
|
|
1557
|
-
lastName: string | null;
|
|
1558
|
-
firstName: string;
|
|
1559
|
-
agentName: string | null;
|
|
1560
|
-
}[];
|
|
1561
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1562
1581
|
conflicts: string[];
|
|
1582
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1563
1583
|
curatedWorker: {
|
|
1564
1584
|
id: string;
|
|
1585
|
+
firstName: string;
|
|
1565
1586
|
lastName: string | null;
|
|
1587
|
+
} | null;
|
|
1588
|
+
confidence: number | null;
|
|
1589
|
+
workers: {
|
|
1590
|
+
id: string;
|
|
1566
1591
|
firstName: string;
|
|
1567
|
-
|
|
1592
|
+
lastName: string | null;
|
|
1593
|
+
agentId: string | null;
|
|
1594
|
+
agentName: string | null;
|
|
1595
|
+
}[];
|
|
1568
1596
|
revision: number;
|
|
1569
|
-
evidenceBadges: ("AI" | "
|
|
1597
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1570
1598
|
hasHardEvidence: boolean;
|
|
1571
1599
|
linkAudit: {
|
|
1572
1600
|
suggestedAction: "UNLINK";
|
|
1573
1601
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
1574
1602
|
} | null;
|
|
1575
1603
|
}, {
|
|
1576
|
-
status: "PENDING" | "
|
|
1604
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1577
1605
|
id: string;
|
|
1578
1606
|
createdAt: string;
|
|
1607
|
+
conflicts: string[];
|
|
1608
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1609
|
+
curatedWorker: {
|
|
1610
|
+
id: string;
|
|
1611
|
+
firstName: string;
|
|
1612
|
+
lastName: string | null;
|
|
1613
|
+
} | null;
|
|
1579
1614
|
confidence: number | null;
|
|
1580
1615
|
workers: {
|
|
1581
1616
|
id: string;
|
|
1582
|
-
lastName: string | null;
|
|
1583
1617
|
firstName: string;
|
|
1618
|
+
lastName: string | null;
|
|
1619
|
+
agentId: string | null;
|
|
1584
1620
|
agentName: string | null;
|
|
1585
1621
|
}[];
|
|
1586
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1587
|
-
conflicts: string[];
|
|
1588
|
-
curatedWorker: {
|
|
1589
|
-
id: string;
|
|
1590
|
-
lastName: string | null;
|
|
1591
|
-
firstName: string;
|
|
1592
|
-
} | null;
|
|
1593
1622
|
revision: number;
|
|
1594
|
-
evidenceBadges: ("AI" | "
|
|
1623
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1595
1624
|
hasHardEvidence: boolean;
|
|
1596
1625
|
linkAudit: {
|
|
1597
1626
|
suggestedAction: "UNLINK";
|
|
@@ -1603,30 +1632,31 @@ export declare const workerIdentityCasesContract: {
|
|
|
1603
1632
|
page: z.ZodNumber;
|
|
1604
1633
|
limit: z.ZodNumber;
|
|
1605
1634
|
}, "strip", z.ZodTypeAny, {
|
|
1606
|
-
page: number;
|
|
1607
1635
|
limit: number;
|
|
1636
|
+
page: number;
|
|
1608
1637
|
totalCount: number;
|
|
1609
1638
|
totalPages: number;
|
|
1610
1639
|
cases: {
|
|
1611
|
-
status: "PENDING" | "
|
|
1640
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1612
1641
|
id: string;
|
|
1613
1642
|
createdAt: string;
|
|
1643
|
+
conflicts: string[];
|
|
1644
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1645
|
+
curatedWorker: {
|
|
1646
|
+
id: string;
|
|
1647
|
+
firstName: string;
|
|
1648
|
+
lastName: string | null;
|
|
1649
|
+
} | null;
|
|
1614
1650
|
confidence: number | null;
|
|
1615
1651
|
workers: {
|
|
1616
1652
|
id: string;
|
|
1617
|
-
lastName: string | null;
|
|
1618
1653
|
firstName: string;
|
|
1654
|
+
lastName: string | null;
|
|
1655
|
+
agentId: string | null;
|
|
1619
1656
|
agentName: string | null;
|
|
1620
1657
|
}[];
|
|
1621
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1622
|
-
conflicts: string[];
|
|
1623
|
-
curatedWorker: {
|
|
1624
|
-
id: string;
|
|
1625
|
-
lastName: string | null;
|
|
1626
|
-
firstName: string;
|
|
1627
|
-
} | null;
|
|
1628
1658
|
revision: number;
|
|
1629
|
-
evidenceBadges: ("AI" | "
|
|
1659
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1630
1660
|
hasHardEvidence: boolean;
|
|
1631
1661
|
linkAudit: {
|
|
1632
1662
|
suggestedAction: "UNLINK";
|
|
@@ -1634,30 +1664,31 @@ export declare const workerIdentityCasesContract: {
|
|
|
1634
1664
|
} | null;
|
|
1635
1665
|
}[];
|
|
1636
1666
|
}, {
|
|
1637
|
-
page: number;
|
|
1638
1667
|
limit: number;
|
|
1668
|
+
page: number;
|
|
1639
1669
|
totalCount: number;
|
|
1640
1670
|
totalPages: number;
|
|
1641
1671
|
cases: {
|
|
1642
|
-
status: "PENDING" | "
|
|
1672
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
1643
1673
|
id: string;
|
|
1644
1674
|
createdAt: string;
|
|
1675
|
+
conflicts: string[];
|
|
1676
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1677
|
+
curatedWorker: {
|
|
1678
|
+
id: string;
|
|
1679
|
+
firstName: string;
|
|
1680
|
+
lastName: string | null;
|
|
1681
|
+
} | null;
|
|
1645
1682
|
confidence: number | null;
|
|
1646
1683
|
workers: {
|
|
1647
1684
|
id: string;
|
|
1648
|
-
lastName: string | null;
|
|
1649
1685
|
firstName: string;
|
|
1686
|
+
lastName: string | null;
|
|
1687
|
+
agentId: string | null;
|
|
1650
1688
|
agentName: string | null;
|
|
1651
1689
|
}[];
|
|
1652
|
-
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1653
|
-
conflicts: string[];
|
|
1654
|
-
curatedWorker: {
|
|
1655
|
-
id: string;
|
|
1656
|
-
lastName: string | null;
|
|
1657
|
-
firstName: string;
|
|
1658
|
-
} | null;
|
|
1659
1690
|
revision: number;
|
|
1660
|
-
evidenceBadges: ("AI" | "
|
|
1691
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1661
1692
|
hasHardEvidence: boolean;
|
|
1662
1693
|
linkAudit: {
|
|
1663
1694
|
suggestedAction: "UNLINK";
|
|
@@ -1688,7 +1719,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
1688
1719
|
}>;
|
|
1689
1720
|
path: "/v2/worker-identity-cases/backfill";
|
|
1690
1721
|
responses: {
|
|
1691
|
-
|
|
1722
|
+
400: z.ZodObject<{
|
|
1692
1723
|
statusCode: z.ZodNumber;
|
|
1693
1724
|
message: z.ZodString;
|
|
1694
1725
|
code: z.ZodString;
|
|
@@ -1713,7 +1744,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
1713
1744
|
details?: unknown;
|
|
1714
1745
|
correlationId?: string | undefined;
|
|
1715
1746
|
}>;
|
|
1716
|
-
|
|
1747
|
+
401: z.ZodObject<{
|
|
1717
1748
|
statusCode: z.ZodNumber;
|
|
1718
1749
|
message: z.ZodString;
|
|
1719
1750
|
code: z.ZodString;
|
|
@@ -1811,7 +1842,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
1811
1842
|
method: "GET";
|
|
1812
1843
|
path: "/v2/worker-identity-cases/backfill/status";
|
|
1813
1844
|
responses: {
|
|
1814
|
-
|
|
1845
|
+
400: z.ZodObject<{
|
|
1815
1846
|
statusCode: z.ZodNumber;
|
|
1816
1847
|
message: z.ZodString;
|
|
1817
1848
|
code: z.ZodString;
|
|
@@ -1836,7 +1867,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
1836
1867
|
details?: unknown;
|
|
1837
1868
|
correlationId?: string | undefined;
|
|
1838
1869
|
}>;
|
|
1839
|
-
|
|
1870
|
+
401: z.ZodObject<{
|
|
1840
1871
|
statusCode: z.ZodNumber;
|
|
1841
1872
|
message: z.ZodString;
|
|
1842
1873
|
code: z.ZodString;
|
|
@@ -1939,11 +1970,11 @@ export declare const workerIdentityCasesContract: {
|
|
|
1939
1970
|
representedPhoneGroups: number;
|
|
1940
1971
|
}>;
|
|
1941
1972
|
}, "strip", z.ZodTypeAny, {
|
|
1942
|
-
pending: number;
|
|
1943
|
-
scanned: number;
|
|
1944
1973
|
conflicts: number;
|
|
1945
|
-
llmCalls: number;
|
|
1946
1974
|
cases: number;
|
|
1975
|
+
scanned: number;
|
|
1976
|
+
llmCalls: number;
|
|
1977
|
+
pending: number;
|
|
1947
1978
|
linkedScanned: number;
|
|
1948
1979
|
linkAudits: number;
|
|
1949
1980
|
autoApplied: number;
|
|
@@ -1955,11 +1986,11 @@ export declare const workerIdentityCasesContract: {
|
|
|
1955
1986
|
representedPhoneGroups: number;
|
|
1956
1987
|
};
|
|
1957
1988
|
}, {
|
|
1958
|
-
pending: number;
|
|
1959
|
-
scanned: number;
|
|
1960
1989
|
conflicts: number;
|
|
1961
|
-
llmCalls: number;
|
|
1962
1990
|
cases: number;
|
|
1991
|
+
scanned: number;
|
|
1992
|
+
llmCalls: number;
|
|
1993
|
+
pending: number;
|
|
1963
1994
|
linkedScanned: number;
|
|
1964
1995
|
linkAudits: number;
|
|
1965
1996
|
autoApplied: number;
|
|
@@ -1972,15 +2003,14 @@ export declare const workerIdentityCasesContract: {
|
|
|
1972
2003
|
};
|
|
1973
2004
|
}>>;
|
|
1974
2005
|
}, "strip", z.ZodTypeAny, {
|
|
1975
|
-
startedAt: string | null;
|
|
1976
2006
|
error: string | null;
|
|
1977
|
-
|
|
2007
|
+
startedAt: string | null;
|
|
1978
2008
|
result: {
|
|
1979
|
-
pending: number;
|
|
1980
|
-
scanned: number;
|
|
1981
2009
|
conflicts: number;
|
|
1982
|
-
llmCalls: number;
|
|
1983
2010
|
cases: number;
|
|
2011
|
+
scanned: number;
|
|
2012
|
+
llmCalls: number;
|
|
2013
|
+
pending: number;
|
|
1984
2014
|
linkedScanned: number;
|
|
1985
2015
|
linkAudits: number;
|
|
1986
2016
|
autoApplied: number;
|
|
@@ -1992,17 +2022,17 @@ export declare const workerIdentityCasesContract: {
|
|
|
1992
2022
|
representedPhoneGroups: number;
|
|
1993
2023
|
};
|
|
1994
2024
|
} | null;
|
|
2025
|
+
finishedAt: string | null;
|
|
1995
2026
|
running: boolean;
|
|
1996
2027
|
}, {
|
|
1997
|
-
startedAt: string | null;
|
|
1998
2028
|
error: string | null;
|
|
1999
|
-
|
|
2029
|
+
startedAt: string | null;
|
|
2000
2030
|
result: {
|
|
2001
|
-
pending: number;
|
|
2002
|
-
scanned: number;
|
|
2003
2031
|
conflicts: number;
|
|
2004
|
-
llmCalls: number;
|
|
2005
2032
|
cases: number;
|
|
2033
|
+
scanned: number;
|
|
2034
|
+
llmCalls: number;
|
|
2035
|
+
pending: number;
|
|
2006
2036
|
linkedScanned: number;
|
|
2007
2037
|
linkAudits: number;
|
|
2008
2038
|
autoApplied: number;
|
|
@@ -2014,6 +2044,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2014
2044
|
representedPhoneGroups: number;
|
|
2015
2045
|
};
|
|
2016
2046
|
} | null;
|
|
2047
|
+
finishedAt: string | null;
|
|
2017
2048
|
running: boolean;
|
|
2018
2049
|
}>;
|
|
2019
2050
|
};
|
|
@@ -2036,7 +2067,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2036
2067
|
}>;
|
|
2037
2068
|
path: "/v2/worker-identity-cases/audit-links";
|
|
2038
2069
|
responses: {
|
|
2039
|
-
|
|
2070
|
+
400: z.ZodObject<{
|
|
2040
2071
|
statusCode: z.ZodNumber;
|
|
2041
2072
|
message: z.ZodString;
|
|
2042
2073
|
code: z.ZodString;
|
|
@@ -2061,7 +2092,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2061
2092
|
details?: unknown;
|
|
2062
2093
|
correlationId?: string | undefined;
|
|
2063
2094
|
}>;
|
|
2064
|
-
|
|
2095
|
+
401: z.ZodObject<{
|
|
2065
2096
|
statusCode: z.ZodNumber;
|
|
2066
2097
|
message: z.ZodString;
|
|
2067
2098
|
code: z.ZodString;
|
|
@@ -2169,7 +2200,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2169
2200
|
method: "GET";
|
|
2170
2201
|
path: "/v2/worker-identity-cases/:id";
|
|
2171
2202
|
responses: {
|
|
2172
|
-
|
|
2203
|
+
400: z.ZodObject<{
|
|
2173
2204
|
statusCode: z.ZodNumber;
|
|
2174
2205
|
message: z.ZodString;
|
|
2175
2206
|
code: z.ZodString;
|
|
@@ -2194,7 +2225,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2194
2225
|
details?: unknown;
|
|
2195
2226
|
correlationId?: string | undefined;
|
|
2196
2227
|
}>;
|
|
2197
|
-
|
|
2228
|
+
401: z.ZodObject<{
|
|
2198
2229
|
statusCode: z.ZodNumber;
|
|
2199
2230
|
message: z.ZodString;
|
|
2200
2231
|
code: z.ZodString;
|
|
@@ -2281,27 +2312,30 @@ export declare const workerIdentityCasesContract: {
|
|
|
2281
2312
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2282
2313
|
}, "strip", z.ZodTypeAny, {
|
|
2283
2314
|
id: string;
|
|
2284
|
-
lastName: string | null;
|
|
2285
2315
|
firstName: string;
|
|
2316
|
+
lastName: string | null;
|
|
2286
2317
|
}, {
|
|
2287
2318
|
id: string;
|
|
2288
|
-
lastName: string | null;
|
|
2289
2319
|
firstName: string;
|
|
2320
|
+
lastName: string | null;
|
|
2290
2321
|
}>>;
|
|
2291
2322
|
workers: z.ZodArray<z.ZodObject<{
|
|
2292
2323
|
id: z.ZodString;
|
|
2293
2324
|
firstName: z.ZodString;
|
|
2294
2325
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2326
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
2295
2327
|
agentName: z.ZodNullable<z.ZodString>;
|
|
2296
2328
|
}, "strip", z.ZodTypeAny, {
|
|
2297
2329
|
id: string;
|
|
2298
|
-
lastName: string | null;
|
|
2299
2330
|
firstName: string;
|
|
2331
|
+
lastName: string | null;
|
|
2332
|
+
agentId: string | null;
|
|
2300
2333
|
agentName: string | null;
|
|
2301
2334
|
}, {
|
|
2302
2335
|
id: string;
|
|
2303
|
-
lastName: string | null;
|
|
2304
2336
|
firstName: string;
|
|
2337
|
+
lastName: string | null;
|
|
2338
|
+
agentId: string | null;
|
|
2305
2339
|
agentName: string | null;
|
|
2306
2340
|
}>, "many">;
|
|
2307
2341
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -2331,8 +2365,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2331
2365
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
2332
2366
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
2333
2367
|
}, "strip", z.ZodTypeAny, {
|
|
2334
|
-
workerId: string;
|
|
2335
2368
|
conflicts: string[];
|
|
2369
|
+
workerId: string;
|
|
2336
2370
|
targetType: "WORKER" | "CURATED";
|
|
2337
2371
|
targetId: string;
|
|
2338
2372
|
signals: Record<string, unknown>;
|
|
@@ -2341,8 +2375,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2341
2375
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
2342
2376
|
llmReason?: string | undefined;
|
|
2343
2377
|
}, {
|
|
2344
|
-
workerId: string;
|
|
2345
2378
|
conflicts: string[];
|
|
2379
|
+
workerId: string;
|
|
2346
2380
|
targetType: "WORKER" | "CURATED";
|
|
2347
2381
|
targetId: string;
|
|
2348
2382
|
signals: Record<string, unknown>;
|
|
@@ -2359,12 +2393,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
2359
2393
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2360
2394
|
}, "strip", z.ZodTypeAny, {
|
|
2361
2395
|
id: string;
|
|
2362
|
-
lastName: string | null;
|
|
2363
2396
|
firstName: string;
|
|
2397
|
+
lastName: string | null;
|
|
2364
2398
|
}, {
|
|
2365
2399
|
id: string;
|
|
2366
|
-
lastName: string | null;
|
|
2367
2400
|
firstName: string;
|
|
2401
|
+
lastName: string | null;
|
|
2368
2402
|
}>, "many">;
|
|
2369
2403
|
pendingDocuments: z.ZodObject<{
|
|
2370
2404
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -2385,34 +2419,36 @@ export declare const workerIdentityCasesContract: {
|
|
|
2385
2419
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
2386
2420
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
2387
2421
|
}, "strip", z.ZodTypeAny, {
|
|
2388
|
-
status: "PENDING" | "
|
|
2422
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
2389
2423
|
id: string;
|
|
2390
2424
|
createdAt: string;
|
|
2425
|
+
conflicts: string[];
|
|
2426
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2427
|
+
curatedWorker: {
|
|
2428
|
+
id: string;
|
|
2429
|
+
firstName: string;
|
|
2430
|
+
lastName: string | null;
|
|
2431
|
+
} | null;
|
|
2432
|
+
reviewedAt: string | null;
|
|
2391
2433
|
confidence: number | null;
|
|
2392
2434
|
workers: {
|
|
2393
2435
|
id: string;
|
|
2394
|
-
lastName: string | null;
|
|
2395
2436
|
firstName: string;
|
|
2437
|
+
lastName: string | null;
|
|
2438
|
+
agentId: string | null;
|
|
2396
2439
|
agentName: string | null;
|
|
2397
2440
|
}[];
|
|
2398
|
-
|
|
2399
|
-
conflicts: string[];
|
|
2400
|
-
reviewedAt: string | null;
|
|
2401
|
-
curatedWorker: {
|
|
2402
|
-
id: string;
|
|
2403
|
-
lastName: string | null;
|
|
2404
|
-
firstName: string;
|
|
2405
|
-
} | null;
|
|
2441
|
+
appliedCuratedWorkerId: string | null;
|
|
2406
2442
|
revision: number;
|
|
2407
|
-
evidenceBadges: ("AI" | "
|
|
2443
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2408
2444
|
hasHardEvidence: boolean;
|
|
2409
2445
|
linkAudit: {
|
|
2410
2446
|
suggestedAction: "UNLINK";
|
|
2411
2447
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
2412
2448
|
} | null;
|
|
2413
2449
|
edges: {
|
|
2414
|
-
workerId: string;
|
|
2415
2450
|
conflicts: string[];
|
|
2451
|
+
workerId: string;
|
|
2416
2452
|
targetType: "WORKER" | "CURATED";
|
|
2417
2453
|
targetId: string;
|
|
2418
2454
|
signals: Record<string, unknown>;
|
|
@@ -2423,8 +2459,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2423
2459
|
}[];
|
|
2424
2460
|
curatedSubjects: {
|
|
2425
2461
|
id: string;
|
|
2426
|
-
lastName: string | null;
|
|
2427
2462
|
firstName: string;
|
|
2463
|
+
lastName: string | null;
|
|
2428
2464
|
}[];
|
|
2429
2465
|
pendingDocuments: {
|
|
2430
2466
|
notExtracted: number;
|
|
@@ -2432,36 +2468,37 @@ export declare const workerIdentityCasesContract: {
|
|
|
2432
2468
|
};
|
|
2433
2469
|
absorbedIntoCaseId: string | null;
|
|
2434
2470
|
obsoleteReason: string | null;
|
|
2435
|
-
appliedCuratedWorkerId: string | null;
|
|
2436
2471
|
}, {
|
|
2437
|
-
status: "PENDING" | "
|
|
2472
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
2438
2473
|
id: string;
|
|
2439
2474
|
createdAt: string;
|
|
2475
|
+
conflicts: string[];
|
|
2476
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2477
|
+
curatedWorker: {
|
|
2478
|
+
id: string;
|
|
2479
|
+
firstName: string;
|
|
2480
|
+
lastName: string | null;
|
|
2481
|
+
} | null;
|
|
2482
|
+
reviewedAt: string | null;
|
|
2440
2483
|
confidence: number | null;
|
|
2441
2484
|
workers: {
|
|
2442
2485
|
id: string;
|
|
2443
|
-
lastName: string | null;
|
|
2444
2486
|
firstName: string;
|
|
2487
|
+
lastName: string | null;
|
|
2488
|
+
agentId: string | null;
|
|
2445
2489
|
agentName: string | null;
|
|
2446
2490
|
}[];
|
|
2447
|
-
|
|
2448
|
-
conflicts: string[];
|
|
2449
|
-
reviewedAt: string | null;
|
|
2450
|
-
curatedWorker: {
|
|
2451
|
-
id: string;
|
|
2452
|
-
lastName: string | null;
|
|
2453
|
-
firstName: string;
|
|
2454
|
-
} | null;
|
|
2491
|
+
appliedCuratedWorkerId: string | null;
|
|
2455
2492
|
revision: number;
|
|
2456
|
-
evidenceBadges: ("AI" | "
|
|
2493
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2457
2494
|
hasHardEvidence: boolean;
|
|
2458
2495
|
linkAudit: {
|
|
2459
2496
|
suggestedAction: "UNLINK";
|
|
2460
2497
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
2461
2498
|
} | null;
|
|
2462
2499
|
edges: {
|
|
2463
|
-
workerId: string;
|
|
2464
2500
|
conflicts: string[];
|
|
2501
|
+
workerId: string;
|
|
2465
2502
|
targetType: "WORKER" | "CURATED";
|
|
2466
2503
|
targetId: string;
|
|
2467
2504
|
signals: Record<string, unknown>;
|
|
@@ -2472,8 +2509,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2472
2509
|
}[];
|
|
2473
2510
|
curatedSubjects: {
|
|
2474
2511
|
id: string;
|
|
2475
|
-
lastName: string | null;
|
|
2476
2512
|
firstName: string;
|
|
2513
|
+
lastName: string | null;
|
|
2477
2514
|
}[];
|
|
2478
2515
|
pendingDocuments: {
|
|
2479
2516
|
notExtracted: number;
|
|
@@ -2481,7 +2518,6 @@ export declare const workerIdentityCasesContract: {
|
|
|
2481
2518
|
};
|
|
2482
2519
|
absorbedIntoCaseId: string | null;
|
|
2483
2520
|
obsoleteReason: string | null;
|
|
2484
|
-
appliedCuratedWorkerId: string | null;
|
|
2485
2521
|
}>;
|
|
2486
2522
|
404: z.ZodObject<{
|
|
2487
2523
|
statusCode: z.ZodNumber;
|
|
@@ -2590,7 +2626,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2590
2626
|
}>;
|
|
2591
2627
|
path: "/v2/worker-identity-cases/:id/confirm";
|
|
2592
2628
|
responses: {
|
|
2593
|
-
|
|
2629
|
+
400: z.ZodObject<{
|
|
2594
2630
|
statusCode: z.ZodNumber;
|
|
2595
2631
|
message: z.ZodString;
|
|
2596
2632
|
code: z.ZodString;
|
|
@@ -2615,7 +2651,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
2615
2651
|
details?: unknown;
|
|
2616
2652
|
correlationId?: string | undefined;
|
|
2617
2653
|
}>;
|
|
2618
|
-
|
|
2654
|
+
401: z.ZodObject<{
|
|
2619
2655
|
statusCode: z.ZodNumber;
|
|
2620
2656
|
message: z.ZodString;
|
|
2621
2657
|
code: z.ZodString;
|
|
@@ -2702,27 +2738,30 @@ export declare const workerIdentityCasesContract: {
|
|
|
2702
2738
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2703
2739
|
}, "strip", z.ZodTypeAny, {
|
|
2704
2740
|
id: string;
|
|
2705
|
-
lastName: string | null;
|
|
2706
2741
|
firstName: string;
|
|
2742
|
+
lastName: string | null;
|
|
2707
2743
|
}, {
|
|
2708
2744
|
id: string;
|
|
2709
|
-
lastName: string | null;
|
|
2710
2745
|
firstName: string;
|
|
2746
|
+
lastName: string | null;
|
|
2711
2747
|
}>>;
|
|
2712
2748
|
workers: z.ZodArray<z.ZodObject<{
|
|
2713
2749
|
id: z.ZodString;
|
|
2714
2750
|
firstName: z.ZodString;
|
|
2715
2751
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2752
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
2716
2753
|
agentName: z.ZodNullable<z.ZodString>;
|
|
2717
2754
|
}, "strip", z.ZodTypeAny, {
|
|
2718
2755
|
id: string;
|
|
2719
|
-
lastName: string | null;
|
|
2720
2756
|
firstName: string;
|
|
2757
|
+
lastName: string | null;
|
|
2758
|
+
agentId: string | null;
|
|
2721
2759
|
agentName: string | null;
|
|
2722
2760
|
}, {
|
|
2723
2761
|
id: string;
|
|
2724
|
-
lastName: string | null;
|
|
2725
2762
|
firstName: string;
|
|
2763
|
+
lastName: string | null;
|
|
2764
|
+
agentId: string | null;
|
|
2726
2765
|
agentName: string | null;
|
|
2727
2766
|
}>, "many">;
|
|
2728
2767
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -2752,8 +2791,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2752
2791
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
2753
2792
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
2754
2793
|
}, "strip", z.ZodTypeAny, {
|
|
2755
|
-
workerId: string;
|
|
2756
2794
|
conflicts: string[];
|
|
2795
|
+
workerId: string;
|
|
2757
2796
|
targetType: "WORKER" | "CURATED";
|
|
2758
2797
|
targetId: string;
|
|
2759
2798
|
signals: Record<string, unknown>;
|
|
@@ -2762,8 +2801,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2762
2801
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
2763
2802
|
llmReason?: string | undefined;
|
|
2764
2803
|
}, {
|
|
2765
|
-
workerId: string;
|
|
2766
2804
|
conflicts: string[];
|
|
2805
|
+
workerId: string;
|
|
2767
2806
|
targetType: "WORKER" | "CURATED";
|
|
2768
2807
|
targetId: string;
|
|
2769
2808
|
signals: Record<string, unknown>;
|
|
@@ -2780,12 +2819,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
2780
2819
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2781
2820
|
}, "strip", z.ZodTypeAny, {
|
|
2782
2821
|
id: string;
|
|
2783
|
-
lastName: string | null;
|
|
2784
2822
|
firstName: string;
|
|
2823
|
+
lastName: string | null;
|
|
2785
2824
|
}, {
|
|
2786
2825
|
id: string;
|
|
2787
|
-
lastName: string | null;
|
|
2788
2826
|
firstName: string;
|
|
2827
|
+
lastName: string | null;
|
|
2789
2828
|
}>, "many">;
|
|
2790
2829
|
pendingDocuments: z.ZodObject<{
|
|
2791
2830
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -2806,34 +2845,36 @@ export declare const workerIdentityCasesContract: {
|
|
|
2806
2845
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
2807
2846
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
2808
2847
|
}, "strip", z.ZodTypeAny, {
|
|
2809
|
-
status: "PENDING" | "
|
|
2848
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
2810
2849
|
id: string;
|
|
2811
2850
|
createdAt: string;
|
|
2851
|
+
conflicts: string[];
|
|
2852
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2853
|
+
curatedWorker: {
|
|
2854
|
+
id: string;
|
|
2855
|
+
firstName: string;
|
|
2856
|
+
lastName: string | null;
|
|
2857
|
+
} | null;
|
|
2858
|
+
reviewedAt: string | null;
|
|
2812
2859
|
confidence: number | null;
|
|
2813
2860
|
workers: {
|
|
2814
2861
|
id: string;
|
|
2815
|
-
lastName: string | null;
|
|
2816
2862
|
firstName: string;
|
|
2863
|
+
lastName: string | null;
|
|
2864
|
+
agentId: string | null;
|
|
2817
2865
|
agentName: string | null;
|
|
2818
2866
|
}[];
|
|
2819
|
-
|
|
2820
|
-
conflicts: string[];
|
|
2821
|
-
reviewedAt: string | null;
|
|
2822
|
-
curatedWorker: {
|
|
2823
|
-
id: string;
|
|
2824
|
-
lastName: string | null;
|
|
2825
|
-
firstName: string;
|
|
2826
|
-
} | null;
|
|
2867
|
+
appliedCuratedWorkerId: string | null;
|
|
2827
2868
|
revision: number;
|
|
2828
|
-
evidenceBadges: ("AI" | "
|
|
2869
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2829
2870
|
hasHardEvidence: boolean;
|
|
2830
2871
|
linkAudit: {
|
|
2831
2872
|
suggestedAction: "UNLINK";
|
|
2832
2873
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
2833
2874
|
} | null;
|
|
2834
2875
|
edges: {
|
|
2835
|
-
workerId: string;
|
|
2836
2876
|
conflicts: string[];
|
|
2877
|
+
workerId: string;
|
|
2837
2878
|
targetType: "WORKER" | "CURATED";
|
|
2838
2879
|
targetId: string;
|
|
2839
2880
|
signals: Record<string, unknown>;
|
|
@@ -2844,8 +2885,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2844
2885
|
}[];
|
|
2845
2886
|
curatedSubjects: {
|
|
2846
2887
|
id: string;
|
|
2847
|
-
lastName: string | null;
|
|
2848
2888
|
firstName: string;
|
|
2889
|
+
lastName: string | null;
|
|
2849
2890
|
}[];
|
|
2850
2891
|
pendingDocuments: {
|
|
2851
2892
|
notExtracted: number;
|
|
@@ -2853,36 +2894,37 @@ export declare const workerIdentityCasesContract: {
|
|
|
2853
2894
|
};
|
|
2854
2895
|
absorbedIntoCaseId: string | null;
|
|
2855
2896
|
obsoleteReason: string | null;
|
|
2856
|
-
appliedCuratedWorkerId: string | null;
|
|
2857
2897
|
}, {
|
|
2858
|
-
status: "PENDING" | "
|
|
2898
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
2859
2899
|
id: string;
|
|
2860
2900
|
createdAt: string;
|
|
2901
|
+
conflicts: string[];
|
|
2902
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2903
|
+
curatedWorker: {
|
|
2904
|
+
id: string;
|
|
2905
|
+
firstName: string;
|
|
2906
|
+
lastName: string | null;
|
|
2907
|
+
} | null;
|
|
2908
|
+
reviewedAt: string | null;
|
|
2861
2909
|
confidence: number | null;
|
|
2862
2910
|
workers: {
|
|
2863
2911
|
id: string;
|
|
2864
|
-
lastName: string | null;
|
|
2865
2912
|
firstName: string;
|
|
2913
|
+
lastName: string | null;
|
|
2914
|
+
agentId: string | null;
|
|
2866
2915
|
agentName: string | null;
|
|
2867
2916
|
}[];
|
|
2868
|
-
|
|
2869
|
-
conflicts: string[];
|
|
2870
|
-
reviewedAt: string | null;
|
|
2871
|
-
curatedWorker: {
|
|
2872
|
-
id: string;
|
|
2873
|
-
lastName: string | null;
|
|
2874
|
-
firstName: string;
|
|
2875
|
-
} | null;
|
|
2917
|
+
appliedCuratedWorkerId: string | null;
|
|
2876
2918
|
revision: number;
|
|
2877
|
-
evidenceBadges: ("AI" | "
|
|
2919
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2878
2920
|
hasHardEvidence: boolean;
|
|
2879
2921
|
linkAudit: {
|
|
2880
2922
|
suggestedAction: "UNLINK";
|
|
2881
2923
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
2882
2924
|
} | null;
|
|
2883
2925
|
edges: {
|
|
2884
|
-
workerId: string;
|
|
2885
2926
|
conflicts: string[];
|
|
2927
|
+
workerId: string;
|
|
2886
2928
|
targetType: "WORKER" | "CURATED";
|
|
2887
2929
|
targetId: string;
|
|
2888
2930
|
signals: Record<string, unknown>;
|
|
@@ -2893,8 +2935,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2893
2935
|
}[];
|
|
2894
2936
|
curatedSubjects: {
|
|
2895
2937
|
id: string;
|
|
2896
|
-
lastName: string | null;
|
|
2897
2938
|
firstName: string;
|
|
2939
|
+
lastName: string | null;
|
|
2898
2940
|
}[];
|
|
2899
2941
|
pendingDocuments: {
|
|
2900
2942
|
notExtracted: number;
|
|
@@ -2902,7 +2944,6 @@ export declare const workerIdentityCasesContract: {
|
|
|
2902
2944
|
};
|
|
2903
2945
|
absorbedIntoCaseId: string | null;
|
|
2904
2946
|
obsoleteReason: string | null;
|
|
2905
|
-
appliedCuratedWorkerId: string | null;
|
|
2906
2947
|
}>;
|
|
2907
2948
|
404: z.ZodObject<{
|
|
2908
2949
|
statusCode: z.ZodNumber;
|
|
@@ -3012,7 +3053,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
3012
3053
|
}>;
|
|
3013
3054
|
path: "/v2/worker-identity-cases/:id/reject";
|
|
3014
3055
|
responses: {
|
|
3015
|
-
|
|
3056
|
+
400: z.ZodObject<{
|
|
3016
3057
|
statusCode: z.ZodNumber;
|
|
3017
3058
|
message: z.ZodString;
|
|
3018
3059
|
code: z.ZodString;
|
|
@@ -3037,7 +3078,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
3037
3078
|
details?: unknown;
|
|
3038
3079
|
correlationId?: string | undefined;
|
|
3039
3080
|
}>;
|
|
3040
|
-
|
|
3081
|
+
401: z.ZodObject<{
|
|
3041
3082
|
statusCode: z.ZodNumber;
|
|
3042
3083
|
message: z.ZodString;
|
|
3043
3084
|
code: z.ZodString;
|
|
@@ -3124,27 +3165,30 @@ export declare const workerIdentityCasesContract: {
|
|
|
3124
3165
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3125
3166
|
}, "strip", z.ZodTypeAny, {
|
|
3126
3167
|
id: string;
|
|
3127
|
-
lastName: string | null;
|
|
3128
3168
|
firstName: string;
|
|
3169
|
+
lastName: string | null;
|
|
3129
3170
|
}, {
|
|
3130
3171
|
id: string;
|
|
3131
|
-
lastName: string | null;
|
|
3132
3172
|
firstName: string;
|
|
3173
|
+
lastName: string | null;
|
|
3133
3174
|
}>>;
|
|
3134
3175
|
workers: z.ZodArray<z.ZodObject<{
|
|
3135
3176
|
id: z.ZodString;
|
|
3136
3177
|
firstName: z.ZodString;
|
|
3137
3178
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3179
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
3138
3180
|
agentName: z.ZodNullable<z.ZodString>;
|
|
3139
3181
|
}, "strip", z.ZodTypeAny, {
|
|
3140
3182
|
id: string;
|
|
3141
|
-
lastName: string | null;
|
|
3142
3183
|
firstName: string;
|
|
3184
|
+
lastName: string | null;
|
|
3185
|
+
agentId: string | null;
|
|
3143
3186
|
agentName: string | null;
|
|
3144
3187
|
}, {
|
|
3145
3188
|
id: string;
|
|
3146
|
-
lastName: string | null;
|
|
3147
3189
|
firstName: string;
|
|
3190
|
+
lastName: string | null;
|
|
3191
|
+
agentId: string | null;
|
|
3148
3192
|
agentName: string | null;
|
|
3149
3193
|
}>, "many">;
|
|
3150
3194
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -3174,8 +3218,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3174
3218
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
3175
3219
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
3176
3220
|
}, "strip", z.ZodTypeAny, {
|
|
3177
|
-
workerId: string;
|
|
3178
3221
|
conflicts: string[];
|
|
3222
|
+
workerId: string;
|
|
3179
3223
|
targetType: "WORKER" | "CURATED";
|
|
3180
3224
|
targetId: string;
|
|
3181
3225
|
signals: Record<string, unknown>;
|
|
@@ -3184,8 +3228,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3184
3228
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
3185
3229
|
llmReason?: string | undefined;
|
|
3186
3230
|
}, {
|
|
3187
|
-
workerId: string;
|
|
3188
3231
|
conflicts: string[];
|
|
3232
|
+
workerId: string;
|
|
3189
3233
|
targetType: "WORKER" | "CURATED";
|
|
3190
3234
|
targetId: string;
|
|
3191
3235
|
signals: Record<string, unknown>;
|
|
@@ -3202,12 +3246,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
3202
3246
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3203
3247
|
}, "strip", z.ZodTypeAny, {
|
|
3204
3248
|
id: string;
|
|
3205
|
-
lastName: string | null;
|
|
3206
3249
|
firstName: string;
|
|
3250
|
+
lastName: string | null;
|
|
3207
3251
|
}, {
|
|
3208
3252
|
id: string;
|
|
3209
|
-
lastName: string | null;
|
|
3210
3253
|
firstName: string;
|
|
3254
|
+
lastName: string | null;
|
|
3211
3255
|
}>, "many">;
|
|
3212
3256
|
pendingDocuments: z.ZodObject<{
|
|
3213
3257
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -3228,34 +3272,36 @@ export declare const workerIdentityCasesContract: {
|
|
|
3228
3272
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
3229
3273
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
3230
3274
|
}, "strip", z.ZodTypeAny, {
|
|
3231
|
-
status: "PENDING" | "
|
|
3275
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
3232
3276
|
id: string;
|
|
3233
3277
|
createdAt: string;
|
|
3278
|
+
conflicts: string[];
|
|
3279
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3280
|
+
curatedWorker: {
|
|
3281
|
+
id: string;
|
|
3282
|
+
firstName: string;
|
|
3283
|
+
lastName: string | null;
|
|
3284
|
+
} | null;
|
|
3285
|
+
reviewedAt: string | null;
|
|
3234
3286
|
confidence: number | null;
|
|
3235
3287
|
workers: {
|
|
3236
3288
|
id: string;
|
|
3237
|
-
lastName: string | null;
|
|
3238
3289
|
firstName: string;
|
|
3290
|
+
lastName: string | null;
|
|
3291
|
+
agentId: string | null;
|
|
3239
3292
|
agentName: string | null;
|
|
3240
3293
|
}[];
|
|
3241
|
-
|
|
3242
|
-
conflicts: string[];
|
|
3243
|
-
reviewedAt: string | null;
|
|
3244
|
-
curatedWorker: {
|
|
3245
|
-
id: string;
|
|
3246
|
-
lastName: string | null;
|
|
3247
|
-
firstName: string;
|
|
3248
|
-
} | null;
|
|
3294
|
+
appliedCuratedWorkerId: string | null;
|
|
3249
3295
|
revision: number;
|
|
3250
|
-
evidenceBadges: ("AI" | "
|
|
3296
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3251
3297
|
hasHardEvidence: boolean;
|
|
3252
3298
|
linkAudit: {
|
|
3253
3299
|
suggestedAction: "UNLINK";
|
|
3254
3300
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
3255
3301
|
} | null;
|
|
3256
3302
|
edges: {
|
|
3257
|
-
workerId: string;
|
|
3258
3303
|
conflicts: string[];
|
|
3304
|
+
workerId: string;
|
|
3259
3305
|
targetType: "WORKER" | "CURATED";
|
|
3260
3306
|
targetId: string;
|
|
3261
3307
|
signals: Record<string, unknown>;
|
|
@@ -3266,8 +3312,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3266
3312
|
}[];
|
|
3267
3313
|
curatedSubjects: {
|
|
3268
3314
|
id: string;
|
|
3269
|
-
lastName: string | null;
|
|
3270
3315
|
firstName: string;
|
|
3316
|
+
lastName: string | null;
|
|
3271
3317
|
}[];
|
|
3272
3318
|
pendingDocuments: {
|
|
3273
3319
|
notExtracted: number;
|
|
@@ -3275,36 +3321,37 @@ export declare const workerIdentityCasesContract: {
|
|
|
3275
3321
|
};
|
|
3276
3322
|
absorbedIntoCaseId: string | null;
|
|
3277
3323
|
obsoleteReason: string | null;
|
|
3278
|
-
appliedCuratedWorkerId: string | null;
|
|
3279
3324
|
}, {
|
|
3280
|
-
status: "PENDING" | "
|
|
3325
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
3281
3326
|
id: string;
|
|
3282
3327
|
createdAt: string;
|
|
3328
|
+
conflicts: string[];
|
|
3329
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3330
|
+
curatedWorker: {
|
|
3331
|
+
id: string;
|
|
3332
|
+
firstName: string;
|
|
3333
|
+
lastName: string | null;
|
|
3334
|
+
} | null;
|
|
3335
|
+
reviewedAt: string | null;
|
|
3283
3336
|
confidence: number | null;
|
|
3284
3337
|
workers: {
|
|
3285
3338
|
id: string;
|
|
3286
|
-
lastName: string | null;
|
|
3287
3339
|
firstName: string;
|
|
3340
|
+
lastName: string | null;
|
|
3341
|
+
agentId: string | null;
|
|
3288
3342
|
agentName: string | null;
|
|
3289
3343
|
}[];
|
|
3290
|
-
|
|
3291
|
-
conflicts: string[];
|
|
3292
|
-
reviewedAt: string | null;
|
|
3293
|
-
curatedWorker: {
|
|
3294
|
-
id: string;
|
|
3295
|
-
lastName: string | null;
|
|
3296
|
-
firstName: string;
|
|
3297
|
-
} | null;
|
|
3344
|
+
appliedCuratedWorkerId: string | null;
|
|
3298
3345
|
revision: number;
|
|
3299
|
-
evidenceBadges: ("AI" | "
|
|
3346
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3300
3347
|
hasHardEvidence: boolean;
|
|
3301
3348
|
linkAudit: {
|
|
3302
3349
|
suggestedAction: "UNLINK";
|
|
3303
3350
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
3304
3351
|
} | null;
|
|
3305
3352
|
edges: {
|
|
3306
|
-
workerId: string;
|
|
3307
3353
|
conflicts: string[];
|
|
3354
|
+
workerId: string;
|
|
3308
3355
|
targetType: "WORKER" | "CURATED";
|
|
3309
3356
|
targetId: string;
|
|
3310
3357
|
signals: Record<string, unknown>;
|
|
@@ -3315,8 +3362,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3315
3362
|
}[];
|
|
3316
3363
|
curatedSubjects: {
|
|
3317
3364
|
id: string;
|
|
3318
|
-
lastName: string | null;
|
|
3319
3365
|
firstName: string;
|
|
3366
|
+
lastName: string | null;
|
|
3320
3367
|
}[];
|
|
3321
3368
|
pendingDocuments: {
|
|
3322
3369
|
notExtracted: number;
|
|
@@ -3324,7 +3371,6 @@ export declare const workerIdentityCasesContract: {
|
|
|
3324
3371
|
};
|
|
3325
3372
|
absorbedIntoCaseId: string | null;
|
|
3326
3373
|
obsoleteReason: string | null;
|
|
3327
|
-
appliedCuratedWorkerId: string | null;
|
|
3328
3374
|
}>;
|
|
3329
3375
|
404: z.ZodObject<{
|
|
3330
3376
|
statusCode: z.ZodNumber;
|
|
@@ -3456,7 +3502,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
3456
3502
|
}>;
|
|
3457
3503
|
path: "/v2/worker-identity-cases/:id/resolve-values";
|
|
3458
3504
|
responses: {
|
|
3459
|
-
|
|
3505
|
+
400: z.ZodObject<{
|
|
3460
3506
|
statusCode: z.ZodNumber;
|
|
3461
3507
|
message: z.ZodString;
|
|
3462
3508
|
code: z.ZodString;
|
|
@@ -3481,7 +3527,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
3481
3527
|
details?: unknown;
|
|
3482
3528
|
correlationId?: string | undefined;
|
|
3483
3529
|
}>;
|
|
3484
|
-
|
|
3530
|
+
401: z.ZodObject<{
|
|
3485
3531
|
statusCode: z.ZodNumber;
|
|
3486
3532
|
message: z.ZodString;
|
|
3487
3533
|
code: z.ZodString;
|
|
@@ -3573,9 +3619,9 @@ export declare const workerIdentityCasesContract: {
|
|
|
3573
3619
|
tradeIds: z.ZodArray<z.ZodString, "many">;
|
|
3574
3620
|
mainTradeId: z.ZodNullable<z.ZodString>;
|
|
3575
3621
|
}, "strip", z.ZodTypeAny, {
|
|
3576
|
-
email: string | null;
|
|
3577
|
-
lastName: string | null;
|
|
3578
3622
|
firstName: string | null;
|
|
3623
|
+
lastName: string | null;
|
|
3624
|
+
email: string | null;
|
|
3579
3625
|
phoneNumbers: string[];
|
|
3580
3626
|
englishLevel: string | null;
|
|
3581
3627
|
nationality: string | null;
|
|
@@ -3584,14 +3630,14 @@ export declare const workerIdentityCasesContract: {
|
|
|
3584
3630
|
dateOfBirth: string | null;
|
|
3585
3631
|
bio: string | null;
|
|
3586
3632
|
nino: string | null;
|
|
3633
|
+
locationId: string | null;
|
|
3587
3634
|
shareCode: string | null;
|
|
3588
3635
|
tradeIds: string[];
|
|
3589
|
-
locationId: string | null;
|
|
3590
3636
|
mainTradeId: string | null;
|
|
3591
3637
|
}, {
|
|
3592
|
-
email: string | null;
|
|
3593
|
-
lastName: string | null;
|
|
3594
3638
|
firstName: string | null;
|
|
3639
|
+
lastName: string | null;
|
|
3640
|
+
email: string | null;
|
|
3595
3641
|
phoneNumbers: string[];
|
|
3596
3642
|
englishLevel: string | null;
|
|
3597
3643
|
nationality: string | null;
|
|
@@ -3600,9 +3646,9 @@ export declare const workerIdentityCasesContract: {
|
|
|
3600
3646
|
dateOfBirth: string | null;
|
|
3601
3647
|
bio: string | null;
|
|
3602
3648
|
nino: string | null;
|
|
3649
|
+
locationId: string | null;
|
|
3603
3650
|
shareCode: string | null;
|
|
3604
3651
|
tradeIds: string[];
|
|
3605
|
-
locationId: string | null;
|
|
3606
3652
|
mainTradeId: string | null;
|
|
3607
3653
|
}>;
|
|
3608
3654
|
404: z.ZodObject<{
|
|
@@ -3676,7 +3722,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
3676
3722
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3677
3723
|
path: "/v2/worker-identity-cases/:id/refresh";
|
|
3678
3724
|
responses: {
|
|
3679
|
-
|
|
3725
|
+
400: z.ZodObject<{
|
|
3680
3726
|
statusCode: z.ZodNumber;
|
|
3681
3727
|
message: z.ZodString;
|
|
3682
3728
|
code: z.ZodString;
|
|
@@ -3701,7 +3747,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
3701
3747
|
details?: unknown;
|
|
3702
3748
|
correlationId?: string | undefined;
|
|
3703
3749
|
}>;
|
|
3704
|
-
|
|
3750
|
+
401: z.ZodObject<{
|
|
3705
3751
|
statusCode: z.ZodNumber;
|
|
3706
3752
|
message: z.ZodString;
|
|
3707
3753
|
code: z.ZodString;
|
|
@@ -3788,27 +3834,30 @@ export declare const workerIdentityCasesContract: {
|
|
|
3788
3834
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3789
3835
|
}, "strip", z.ZodTypeAny, {
|
|
3790
3836
|
id: string;
|
|
3791
|
-
lastName: string | null;
|
|
3792
3837
|
firstName: string;
|
|
3838
|
+
lastName: string | null;
|
|
3793
3839
|
}, {
|
|
3794
3840
|
id: string;
|
|
3795
|
-
lastName: string | null;
|
|
3796
3841
|
firstName: string;
|
|
3842
|
+
lastName: string | null;
|
|
3797
3843
|
}>>;
|
|
3798
3844
|
workers: z.ZodArray<z.ZodObject<{
|
|
3799
3845
|
id: z.ZodString;
|
|
3800
3846
|
firstName: z.ZodString;
|
|
3801
3847
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3848
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
3802
3849
|
agentName: z.ZodNullable<z.ZodString>;
|
|
3803
3850
|
}, "strip", z.ZodTypeAny, {
|
|
3804
3851
|
id: string;
|
|
3805
|
-
lastName: string | null;
|
|
3806
3852
|
firstName: string;
|
|
3853
|
+
lastName: string | null;
|
|
3854
|
+
agentId: string | null;
|
|
3807
3855
|
agentName: string | null;
|
|
3808
3856
|
}, {
|
|
3809
3857
|
id: string;
|
|
3810
|
-
lastName: string | null;
|
|
3811
3858
|
firstName: string;
|
|
3859
|
+
lastName: string | null;
|
|
3860
|
+
agentId: string | null;
|
|
3812
3861
|
agentName: string | null;
|
|
3813
3862
|
}>, "many">;
|
|
3814
3863
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -3838,8 +3887,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3838
3887
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
3839
3888
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
3840
3889
|
}, "strip", z.ZodTypeAny, {
|
|
3841
|
-
workerId: string;
|
|
3842
3890
|
conflicts: string[];
|
|
3891
|
+
workerId: string;
|
|
3843
3892
|
targetType: "WORKER" | "CURATED";
|
|
3844
3893
|
targetId: string;
|
|
3845
3894
|
signals: Record<string, unknown>;
|
|
@@ -3848,8 +3897,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3848
3897
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
3849
3898
|
llmReason?: string | undefined;
|
|
3850
3899
|
}, {
|
|
3851
|
-
workerId: string;
|
|
3852
3900
|
conflicts: string[];
|
|
3901
|
+
workerId: string;
|
|
3853
3902
|
targetType: "WORKER" | "CURATED";
|
|
3854
3903
|
targetId: string;
|
|
3855
3904
|
signals: Record<string, unknown>;
|
|
@@ -3866,12 +3915,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
3866
3915
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3867
3916
|
}, "strip", z.ZodTypeAny, {
|
|
3868
3917
|
id: string;
|
|
3869
|
-
lastName: string | null;
|
|
3870
3918
|
firstName: string;
|
|
3919
|
+
lastName: string | null;
|
|
3871
3920
|
}, {
|
|
3872
3921
|
id: string;
|
|
3873
|
-
lastName: string | null;
|
|
3874
3922
|
firstName: string;
|
|
3923
|
+
lastName: string | null;
|
|
3875
3924
|
}>, "many">;
|
|
3876
3925
|
pendingDocuments: z.ZodObject<{
|
|
3877
3926
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -3892,34 +3941,36 @@ export declare const workerIdentityCasesContract: {
|
|
|
3892
3941
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
3893
3942
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
3894
3943
|
}, "strip", z.ZodTypeAny, {
|
|
3895
|
-
status: "PENDING" | "
|
|
3944
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
3896
3945
|
id: string;
|
|
3897
3946
|
createdAt: string;
|
|
3947
|
+
conflicts: string[];
|
|
3948
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3949
|
+
curatedWorker: {
|
|
3950
|
+
id: string;
|
|
3951
|
+
firstName: string;
|
|
3952
|
+
lastName: string | null;
|
|
3953
|
+
} | null;
|
|
3954
|
+
reviewedAt: string | null;
|
|
3898
3955
|
confidence: number | null;
|
|
3899
3956
|
workers: {
|
|
3900
3957
|
id: string;
|
|
3901
|
-
lastName: string | null;
|
|
3902
3958
|
firstName: string;
|
|
3959
|
+
lastName: string | null;
|
|
3960
|
+
agentId: string | null;
|
|
3903
3961
|
agentName: string | null;
|
|
3904
3962
|
}[];
|
|
3905
|
-
|
|
3906
|
-
conflicts: string[];
|
|
3907
|
-
reviewedAt: string | null;
|
|
3908
|
-
curatedWorker: {
|
|
3909
|
-
id: string;
|
|
3910
|
-
lastName: string | null;
|
|
3911
|
-
firstName: string;
|
|
3912
|
-
} | null;
|
|
3963
|
+
appliedCuratedWorkerId: string | null;
|
|
3913
3964
|
revision: number;
|
|
3914
|
-
evidenceBadges: ("AI" | "
|
|
3965
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3915
3966
|
hasHardEvidence: boolean;
|
|
3916
3967
|
linkAudit: {
|
|
3917
3968
|
suggestedAction: "UNLINK";
|
|
3918
3969
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
3919
3970
|
} | null;
|
|
3920
3971
|
edges: {
|
|
3921
|
-
workerId: string;
|
|
3922
3972
|
conflicts: string[];
|
|
3973
|
+
workerId: string;
|
|
3923
3974
|
targetType: "WORKER" | "CURATED";
|
|
3924
3975
|
targetId: string;
|
|
3925
3976
|
signals: Record<string, unknown>;
|
|
@@ -3930,8 +3981,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3930
3981
|
}[];
|
|
3931
3982
|
curatedSubjects: {
|
|
3932
3983
|
id: string;
|
|
3933
|
-
lastName: string | null;
|
|
3934
3984
|
firstName: string;
|
|
3985
|
+
lastName: string | null;
|
|
3935
3986
|
}[];
|
|
3936
3987
|
pendingDocuments: {
|
|
3937
3988
|
notExtracted: number;
|
|
@@ -3939,36 +3990,37 @@ export declare const workerIdentityCasesContract: {
|
|
|
3939
3990
|
};
|
|
3940
3991
|
absorbedIntoCaseId: string | null;
|
|
3941
3992
|
obsoleteReason: string | null;
|
|
3942
|
-
appliedCuratedWorkerId: string | null;
|
|
3943
3993
|
}, {
|
|
3944
|
-
status: "PENDING" | "
|
|
3994
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
3945
3995
|
id: string;
|
|
3946
3996
|
createdAt: string;
|
|
3997
|
+
conflicts: string[];
|
|
3998
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3999
|
+
curatedWorker: {
|
|
4000
|
+
id: string;
|
|
4001
|
+
firstName: string;
|
|
4002
|
+
lastName: string | null;
|
|
4003
|
+
} | null;
|
|
4004
|
+
reviewedAt: string | null;
|
|
3947
4005
|
confidence: number | null;
|
|
3948
4006
|
workers: {
|
|
3949
4007
|
id: string;
|
|
3950
|
-
lastName: string | null;
|
|
3951
4008
|
firstName: string;
|
|
4009
|
+
lastName: string | null;
|
|
4010
|
+
agentId: string | null;
|
|
3952
4011
|
agentName: string | null;
|
|
3953
4012
|
}[];
|
|
3954
|
-
|
|
3955
|
-
conflicts: string[];
|
|
3956
|
-
reviewedAt: string | null;
|
|
3957
|
-
curatedWorker: {
|
|
3958
|
-
id: string;
|
|
3959
|
-
lastName: string | null;
|
|
3960
|
-
firstName: string;
|
|
3961
|
-
} | null;
|
|
4013
|
+
appliedCuratedWorkerId: string | null;
|
|
3962
4014
|
revision: number;
|
|
3963
|
-
evidenceBadges: ("AI" | "
|
|
4015
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3964
4016
|
hasHardEvidence: boolean;
|
|
3965
4017
|
linkAudit: {
|
|
3966
4018
|
suggestedAction: "UNLINK";
|
|
3967
4019
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
3968
4020
|
} | null;
|
|
3969
4021
|
edges: {
|
|
3970
|
-
workerId: string;
|
|
3971
4022
|
conflicts: string[];
|
|
4023
|
+
workerId: string;
|
|
3972
4024
|
targetType: "WORKER" | "CURATED";
|
|
3973
4025
|
targetId: string;
|
|
3974
4026
|
signals: Record<string, unknown>;
|
|
@@ -3979,8 +4031,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3979
4031
|
}[];
|
|
3980
4032
|
curatedSubjects: {
|
|
3981
4033
|
id: string;
|
|
3982
|
-
lastName: string | null;
|
|
3983
4034
|
firstName: string;
|
|
4035
|
+
lastName: string | null;
|
|
3984
4036
|
}[];
|
|
3985
4037
|
pendingDocuments: {
|
|
3986
4038
|
notExtracted: number;
|
|
@@ -3988,7 +4040,6 @@ export declare const workerIdentityCasesContract: {
|
|
|
3988
4040
|
};
|
|
3989
4041
|
absorbedIntoCaseId: string | null;
|
|
3990
4042
|
obsoleteReason: string | null;
|
|
3991
|
-
appliedCuratedWorkerId: string | null;
|
|
3992
4043
|
}>;
|
|
3993
4044
|
404: z.ZodObject<{
|
|
3994
4045
|
statusCode: z.ZodNumber;
|
|
@@ -4087,7 +4138,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
4087
4138
|
}>]>;
|
|
4088
4139
|
path: "/v2/worker-identity-cases/:id/resolve-link-audit";
|
|
4089
4140
|
responses: {
|
|
4090
|
-
|
|
4141
|
+
400: z.ZodObject<{
|
|
4091
4142
|
statusCode: z.ZodNumber;
|
|
4092
4143
|
message: z.ZodString;
|
|
4093
4144
|
code: z.ZodString;
|
|
@@ -4112,7 +4163,7 @@ export declare const workerIdentityCasesContract: {
|
|
|
4112
4163
|
details?: unknown;
|
|
4113
4164
|
correlationId?: string | undefined;
|
|
4114
4165
|
}>;
|
|
4115
|
-
|
|
4166
|
+
401: z.ZodObject<{
|
|
4116
4167
|
statusCode: z.ZodNumber;
|
|
4117
4168
|
message: z.ZodString;
|
|
4118
4169
|
code: z.ZodString;
|
|
@@ -4200,27 +4251,30 @@ export declare const workerIdentityCasesContract: {
|
|
|
4200
4251
|
lastName: z.ZodNullable<z.ZodString>;
|
|
4201
4252
|
}, "strip", z.ZodTypeAny, {
|
|
4202
4253
|
id: string;
|
|
4203
|
-
lastName: string | null;
|
|
4204
4254
|
firstName: string;
|
|
4255
|
+
lastName: string | null;
|
|
4205
4256
|
}, {
|
|
4206
4257
|
id: string;
|
|
4207
|
-
lastName: string | null;
|
|
4208
4258
|
firstName: string;
|
|
4259
|
+
lastName: string | null;
|
|
4209
4260
|
}>>;
|
|
4210
4261
|
workers: z.ZodArray<z.ZodObject<{
|
|
4211
4262
|
id: z.ZodString;
|
|
4212
4263
|
firstName: z.ZodString;
|
|
4213
4264
|
lastName: z.ZodNullable<z.ZodString>;
|
|
4265
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
4214
4266
|
agentName: z.ZodNullable<z.ZodString>;
|
|
4215
4267
|
}, "strip", z.ZodTypeAny, {
|
|
4216
4268
|
id: string;
|
|
4217
|
-
lastName: string | null;
|
|
4218
4269
|
firstName: string;
|
|
4270
|
+
lastName: string | null;
|
|
4271
|
+
agentId: string | null;
|
|
4219
4272
|
agentName: string | null;
|
|
4220
4273
|
}, {
|
|
4221
4274
|
id: string;
|
|
4222
|
-
lastName: string | null;
|
|
4223
4275
|
firstName: string;
|
|
4276
|
+
lastName: string | null;
|
|
4277
|
+
agentId: string | null;
|
|
4224
4278
|
agentName: string | null;
|
|
4225
4279
|
}>, "many">;
|
|
4226
4280
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -4250,8 +4304,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4250
4304
|
llmVerdict: z.ZodOptional<z.ZodEnum<["SAME", "DIFFERENT", "UNSURE"]>>;
|
|
4251
4305
|
llmReason: z.ZodOptional<z.ZodString>;
|
|
4252
4306
|
}, "strip", z.ZodTypeAny, {
|
|
4253
|
-
workerId: string;
|
|
4254
4307
|
conflicts: string[];
|
|
4308
|
+
workerId: string;
|
|
4255
4309
|
targetType: "WORKER" | "CURATED";
|
|
4256
4310
|
targetId: string;
|
|
4257
4311
|
signals: Record<string, unknown>;
|
|
@@ -4260,8 +4314,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4260
4314
|
llmVerdict?: "SAME" | "DIFFERENT" | "UNSURE" | undefined;
|
|
4261
4315
|
llmReason?: string | undefined;
|
|
4262
4316
|
}, {
|
|
4263
|
-
workerId: string;
|
|
4264
4317
|
conflicts: string[];
|
|
4318
|
+
workerId: string;
|
|
4265
4319
|
targetType: "WORKER" | "CURATED";
|
|
4266
4320
|
targetId: string;
|
|
4267
4321
|
signals: Record<string, unknown>;
|
|
@@ -4278,12 +4332,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
4278
4332
|
lastName: z.ZodNullable<z.ZodString>;
|
|
4279
4333
|
}, "strip", z.ZodTypeAny, {
|
|
4280
4334
|
id: string;
|
|
4281
|
-
lastName: string | null;
|
|
4282
4335
|
firstName: string;
|
|
4336
|
+
lastName: string | null;
|
|
4283
4337
|
}, {
|
|
4284
4338
|
id: string;
|
|
4285
|
-
lastName: string | null;
|
|
4286
4339
|
firstName: string;
|
|
4340
|
+
lastName: string | null;
|
|
4287
4341
|
}>, "many">;
|
|
4288
4342
|
pendingDocuments: z.ZodObject<{
|
|
4289
4343
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -4304,34 +4358,36 @@ export declare const workerIdentityCasesContract: {
|
|
|
4304
4358
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
4305
4359
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
4306
4360
|
}, "strip", z.ZodTypeAny, {
|
|
4307
|
-
status: "PENDING" | "
|
|
4361
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
4308
4362
|
id: string;
|
|
4309
4363
|
createdAt: string;
|
|
4364
|
+
conflicts: string[];
|
|
4365
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4366
|
+
curatedWorker: {
|
|
4367
|
+
id: string;
|
|
4368
|
+
firstName: string;
|
|
4369
|
+
lastName: string | null;
|
|
4370
|
+
} | null;
|
|
4371
|
+
reviewedAt: string | null;
|
|
4310
4372
|
confidence: number | null;
|
|
4311
4373
|
workers: {
|
|
4312
4374
|
id: string;
|
|
4313
|
-
lastName: string | null;
|
|
4314
4375
|
firstName: string;
|
|
4376
|
+
lastName: string | null;
|
|
4377
|
+
agentId: string | null;
|
|
4315
4378
|
agentName: string | null;
|
|
4316
4379
|
}[];
|
|
4317
|
-
|
|
4318
|
-
conflicts: string[];
|
|
4319
|
-
reviewedAt: string | null;
|
|
4320
|
-
curatedWorker: {
|
|
4321
|
-
id: string;
|
|
4322
|
-
lastName: string | null;
|
|
4323
|
-
firstName: string;
|
|
4324
|
-
} | null;
|
|
4380
|
+
appliedCuratedWorkerId: string | null;
|
|
4325
4381
|
revision: number;
|
|
4326
|
-
evidenceBadges: ("AI" | "
|
|
4382
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4327
4383
|
hasHardEvidence: boolean;
|
|
4328
4384
|
linkAudit: {
|
|
4329
4385
|
suggestedAction: "UNLINK";
|
|
4330
4386
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
4331
4387
|
} | null;
|
|
4332
4388
|
edges: {
|
|
4333
|
-
workerId: string;
|
|
4334
4389
|
conflicts: string[];
|
|
4390
|
+
workerId: string;
|
|
4335
4391
|
targetType: "WORKER" | "CURATED";
|
|
4336
4392
|
targetId: string;
|
|
4337
4393
|
signals: Record<string, unknown>;
|
|
@@ -4342,8 +4398,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4342
4398
|
}[];
|
|
4343
4399
|
curatedSubjects: {
|
|
4344
4400
|
id: string;
|
|
4345
|
-
lastName: string | null;
|
|
4346
4401
|
firstName: string;
|
|
4402
|
+
lastName: string | null;
|
|
4347
4403
|
}[];
|
|
4348
4404
|
pendingDocuments: {
|
|
4349
4405
|
notExtracted: number;
|
|
@@ -4351,36 +4407,37 @@ export declare const workerIdentityCasesContract: {
|
|
|
4351
4407
|
};
|
|
4352
4408
|
absorbedIntoCaseId: string | null;
|
|
4353
4409
|
obsoleteReason: string | null;
|
|
4354
|
-
appliedCuratedWorkerId: string | null;
|
|
4355
4410
|
}, {
|
|
4356
|
-
status: "PENDING" | "
|
|
4411
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
4357
4412
|
id: string;
|
|
4358
4413
|
createdAt: string;
|
|
4414
|
+
conflicts: string[];
|
|
4415
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4416
|
+
curatedWorker: {
|
|
4417
|
+
id: string;
|
|
4418
|
+
firstName: string;
|
|
4419
|
+
lastName: string | null;
|
|
4420
|
+
} | null;
|
|
4421
|
+
reviewedAt: string | null;
|
|
4359
4422
|
confidence: number | null;
|
|
4360
4423
|
workers: {
|
|
4361
4424
|
id: string;
|
|
4362
|
-
lastName: string | null;
|
|
4363
4425
|
firstName: string;
|
|
4426
|
+
lastName: string | null;
|
|
4427
|
+
agentId: string | null;
|
|
4364
4428
|
agentName: string | null;
|
|
4365
4429
|
}[];
|
|
4366
|
-
|
|
4367
|
-
conflicts: string[];
|
|
4368
|
-
reviewedAt: string | null;
|
|
4369
|
-
curatedWorker: {
|
|
4370
|
-
id: string;
|
|
4371
|
-
lastName: string | null;
|
|
4372
|
-
firstName: string;
|
|
4373
|
-
} | null;
|
|
4430
|
+
appliedCuratedWorkerId: string | null;
|
|
4374
4431
|
revision: number;
|
|
4375
|
-
evidenceBadges: ("AI" | "
|
|
4432
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4376
4433
|
hasHardEvidence: boolean;
|
|
4377
4434
|
linkAudit: {
|
|
4378
4435
|
suggestedAction: "UNLINK";
|
|
4379
4436
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
4380
4437
|
} | null;
|
|
4381
4438
|
edges: {
|
|
4382
|
-
workerId: string;
|
|
4383
4439
|
conflicts: string[];
|
|
4440
|
+
workerId: string;
|
|
4384
4441
|
targetType: "WORKER" | "CURATED";
|
|
4385
4442
|
targetId: string;
|
|
4386
4443
|
signals: Record<string, unknown>;
|
|
@@ -4391,8 +4448,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4391
4448
|
}[];
|
|
4392
4449
|
curatedSubjects: {
|
|
4393
4450
|
id: string;
|
|
4394
|
-
lastName: string | null;
|
|
4395
4451
|
firstName: string;
|
|
4452
|
+
lastName: string | null;
|
|
4396
4453
|
}[];
|
|
4397
4454
|
pendingDocuments: {
|
|
4398
4455
|
notExtracted: number;
|
|
@@ -4400,51 +4457,52 @@ export declare const workerIdentityCasesContract: {
|
|
|
4400
4457
|
};
|
|
4401
4458
|
absorbedIntoCaseId: string | null;
|
|
4402
4459
|
obsoleteReason: string | null;
|
|
4403
|
-
appliedCuratedWorkerId: string | null;
|
|
4404
4460
|
}>;
|
|
4405
4461
|
reprocessing: z.ZodNullable<z.ZodObject<{
|
|
4406
4462
|
status: z.ZodEnum<["COMPLETED", "FAILED"]>;
|
|
4407
4463
|
casesCreated: z.ZodNumber;
|
|
4408
4464
|
message: z.ZodNullable<z.ZodString>;
|
|
4409
4465
|
}, "strip", z.ZodTypeAny, {
|
|
4410
|
-
status: "COMPLETED" | "FAILED";
|
|
4411
4466
|
message: string | null;
|
|
4467
|
+
status: "COMPLETED" | "FAILED";
|
|
4412
4468
|
casesCreated: number;
|
|
4413
4469
|
}, {
|
|
4414
|
-
status: "COMPLETED" | "FAILED";
|
|
4415
4470
|
message: string | null;
|
|
4471
|
+
status: "COMPLETED" | "FAILED";
|
|
4416
4472
|
casesCreated: number;
|
|
4417
4473
|
}>>;
|
|
4418
4474
|
}, "strip", z.ZodTypeAny, {
|
|
4419
4475
|
case: {
|
|
4420
|
-
status: "PENDING" | "
|
|
4476
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
4421
4477
|
id: string;
|
|
4422
4478
|
createdAt: string;
|
|
4479
|
+
conflicts: string[];
|
|
4480
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4481
|
+
curatedWorker: {
|
|
4482
|
+
id: string;
|
|
4483
|
+
firstName: string;
|
|
4484
|
+
lastName: string | null;
|
|
4485
|
+
} | null;
|
|
4486
|
+
reviewedAt: string | null;
|
|
4423
4487
|
confidence: number | null;
|
|
4424
4488
|
workers: {
|
|
4425
4489
|
id: string;
|
|
4426
|
-
lastName: string | null;
|
|
4427
4490
|
firstName: string;
|
|
4491
|
+
lastName: string | null;
|
|
4492
|
+
agentId: string | null;
|
|
4428
4493
|
agentName: string | null;
|
|
4429
4494
|
}[];
|
|
4430
|
-
|
|
4431
|
-
conflicts: string[];
|
|
4432
|
-
reviewedAt: string | null;
|
|
4433
|
-
curatedWorker: {
|
|
4434
|
-
id: string;
|
|
4435
|
-
lastName: string | null;
|
|
4436
|
-
firstName: string;
|
|
4437
|
-
} | null;
|
|
4495
|
+
appliedCuratedWorkerId: string | null;
|
|
4438
4496
|
revision: number;
|
|
4439
|
-
evidenceBadges: ("AI" | "
|
|
4497
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4440
4498
|
hasHardEvidence: boolean;
|
|
4441
4499
|
linkAudit: {
|
|
4442
4500
|
suggestedAction: "UNLINK";
|
|
4443
4501
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
4444
4502
|
} | null;
|
|
4445
4503
|
edges: {
|
|
4446
|
-
workerId: string;
|
|
4447
4504
|
conflicts: string[];
|
|
4505
|
+
workerId: string;
|
|
4448
4506
|
targetType: "WORKER" | "CURATED";
|
|
4449
4507
|
targetId: string;
|
|
4450
4508
|
signals: Record<string, unknown>;
|
|
@@ -4455,8 +4513,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4455
4513
|
}[];
|
|
4456
4514
|
curatedSubjects: {
|
|
4457
4515
|
id: string;
|
|
4458
|
-
lastName: string | null;
|
|
4459
4516
|
firstName: string;
|
|
4517
|
+
lastName: string | null;
|
|
4460
4518
|
}[];
|
|
4461
4519
|
pendingDocuments: {
|
|
4462
4520
|
notExtracted: number;
|
|
@@ -4464,43 +4522,44 @@ export declare const workerIdentityCasesContract: {
|
|
|
4464
4522
|
};
|
|
4465
4523
|
absorbedIntoCaseId: string | null;
|
|
4466
4524
|
obsoleteReason: string | null;
|
|
4467
|
-
appliedCuratedWorkerId: string | null;
|
|
4468
4525
|
};
|
|
4469
4526
|
reprocessing: {
|
|
4470
|
-
status: "COMPLETED" | "FAILED";
|
|
4471
4527
|
message: string | null;
|
|
4528
|
+
status: "COMPLETED" | "FAILED";
|
|
4472
4529
|
casesCreated: number;
|
|
4473
4530
|
} | null;
|
|
4474
4531
|
}, {
|
|
4475
4532
|
case: {
|
|
4476
|
-
status: "PENDING" | "
|
|
4533
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "CONFLICT" | "OBSOLETE";
|
|
4477
4534
|
id: string;
|
|
4478
4535
|
createdAt: string;
|
|
4536
|
+
conflicts: string[];
|
|
4537
|
+
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4538
|
+
curatedWorker: {
|
|
4539
|
+
id: string;
|
|
4540
|
+
firstName: string;
|
|
4541
|
+
lastName: string | null;
|
|
4542
|
+
} | null;
|
|
4543
|
+
reviewedAt: string | null;
|
|
4479
4544
|
confidence: number | null;
|
|
4480
4545
|
workers: {
|
|
4481
4546
|
id: string;
|
|
4482
|
-
lastName: string | null;
|
|
4483
4547
|
firstName: string;
|
|
4548
|
+
lastName: string | null;
|
|
4549
|
+
agentId: string | null;
|
|
4484
4550
|
agentName: string | null;
|
|
4485
4551
|
}[];
|
|
4486
|
-
|
|
4487
|
-
conflicts: string[];
|
|
4488
|
-
reviewedAt: string | null;
|
|
4489
|
-
curatedWorker: {
|
|
4490
|
-
id: string;
|
|
4491
|
-
lastName: string | null;
|
|
4492
|
-
firstName: string;
|
|
4493
|
-
} | null;
|
|
4552
|
+
appliedCuratedWorkerId: string | null;
|
|
4494
4553
|
revision: number;
|
|
4495
|
-
evidenceBadges: ("AI" | "
|
|
4554
|
+
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4496
4555
|
hasHardEvidence: boolean;
|
|
4497
4556
|
linkAudit: {
|
|
4498
4557
|
suggestedAction: "UNLINK";
|
|
4499
4558
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
4500
4559
|
} | null;
|
|
4501
4560
|
edges: {
|
|
4502
|
-
workerId: string;
|
|
4503
4561
|
conflicts: string[];
|
|
4562
|
+
workerId: string;
|
|
4504
4563
|
targetType: "WORKER" | "CURATED";
|
|
4505
4564
|
targetId: string;
|
|
4506
4565
|
signals: Record<string, unknown>;
|
|
@@ -4511,8 +4570,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4511
4570
|
}[];
|
|
4512
4571
|
curatedSubjects: {
|
|
4513
4572
|
id: string;
|
|
4514
|
-
lastName: string | null;
|
|
4515
4573
|
firstName: string;
|
|
4574
|
+
lastName: string | null;
|
|
4516
4575
|
}[];
|
|
4517
4576
|
pendingDocuments: {
|
|
4518
4577
|
notExtracted: number;
|
|
@@ -4520,11 +4579,10 @@ export declare const workerIdentityCasesContract: {
|
|
|
4520
4579
|
};
|
|
4521
4580
|
absorbedIntoCaseId: string | null;
|
|
4522
4581
|
obsoleteReason: string | null;
|
|
4523
|
-
appliedCuratedWorkerId: string | null;
|
|
4524
4582
|
};
|
|
4525
4583
|
reprocessing: {
|
|
4526
|
-
status: "COMPLETED" | "FAILED";
|
|
4527
4584
|
message: string | null;
|
|
4585
|
+
status: "COMPLETED" | "FAILED";
|
|
4528
4586
|
casesCreated: number;
|
|
4529
4587
|
} | null;
|
|
4530
4588
|
}>;
|